ORBit2 trace ...



Hi there,

	Just in case it's useful for anyone - if you pull ORBit2 and
switch:

- #undef TRACE_DEBUG
+ #define TRACE_DEBUG

	in orb/orb-core/orbit-small.c

	Then you can get a dump of all CORBA method invocations, eg. on
the regression tests:

Testing constants...
Testing attributes...
: ([0x80e4c80])->getBasicServer () => [0x80e5e88]
: ([0x80e5e88])->_get_foo () => 'Retn String'
: ([0x80e5e88])->_set_foo ('In string')
: ([0x80e5e88])->_get_bah () => 0xaabbccdd
Testing strings...
: ([0x80e5f20])->opString ('In string', 'Inout in string', ) => 'Retn
String'
: ([0x80e5f20])->opOneWay ('In string')[ one way ]
Testing longs...
: ([0x80e4c80])->getBasicServer () => [0x80e60d0]
: ([0x80e60d0])->opLong (0x12345678, 0x34567812, ) => 0xaabbccdd
Testing enums...
: ([0x80e4c80])->getBasicServer () => [0x80e60d0]
: ([0x80e60d0])->opEnum (0, 1, ) => 4

	etc.

	As you can see it needs finishing; enums should print their nice
textual names; the layout needs sorting, 'out' and 'inout' parameters need
their valued presenting sensibly somehow...

	But it's functional and might be useful for someone.

	Regards,

		Michael.

-- 
 mmeeks@gnu.org  <><, Pseudo Engineer, itinerant idiot





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]