Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Can back trace be stopped from always prints "char*" strings ?
@ 2008-03-12 11:50 Chris Johns
  2008-03-12 14:00 ` Daniel Jacobowitz
  2008-03-12 20:15 ` Michael Snyder
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Johns @ 2008-03-12 11:50 UTC (permalink / raw)
  To: gdb

Hello,

I have a union being passed to a function. The union is:

typedef union {
   /** This is a pointer to a string name. */
   const char *name_p;
   /** This is the actual 32-bit "raw" integer name. */
   uint32_t    name_u32;
} Objects_Name;

The problem is the bt command ties to read the string pointed to by name_p 
how-ever this can be any value if the name_u32 field has been set. This has 
side effects on the embedded target I am using like killing the session.

Is there a way to stop the bt accessing the char* data and just printing the 
pointer value ?

Regards
Chris


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-13  3:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-12 11:50 Can back trace be stopped from always prints "char*" strings ? Chris Johns
2008-03-12 14:00 ` Daniel Jacobowitz
2008-03-12 14:23   ` Paul Koning
2008-03-13 18:13     ` Chris Johns
2008-03-12 15:05   ` Thiago Jung Bauermann
2008-03-12 20:15 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox