This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can back trace be stopped from always prints "char*" strings ?


On Wed, 2008-03-12 at 08:33 -0400, Daniel Jacobowitz wrote:
> On Wed, Mar 12, 2008 at 08:13:51PM +1100, Chris Johns wrote:
> > Is there a way to stop the bt accessing the char* data and just printing 
> > the pointer value ?
> 
> I don't think there is.  You might want to look at "set mem
> inaccessible-by-default" and the "mem" command; that's good for
> preventing stray memory reads.

I think the newly introduced "set print frame-arguments" would help
here. It went in after GDB 6.7 though.
-- 
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]