This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Can back trace be stopped from always prints "char*" strings ?
- From: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Chris Johns <chrisj at rtems dot org>, gdb at sourceware dot org
- Date: Wed, 12 Mar 2008 11:22:51 -0300
- Subject: Re: Can back trace be stopped from always prints "char*" strings ?
- References: <47D79ECF.7000900@rtems.org> <20080312123350.GA8997@caradoc.them.org>
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