This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb -ex "thread apply all bt full" truncates C++ classes
- From: Reza Roboubi <rezarob at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 21 Aug 2014 23:02:52 -0700
- Subject: Re: gdb -ex "thread apply all bt full" truncates C++ classes
- Authentication-results: sourceware.org; auth=none
- References: <CAA51LV47YeMN81Sk9CjNhFNxQfCGZAtoSfViDtnLM1wXXzV22g at mail dot gmail dot com> <53F5B916 dot 60807 at redhat dot com>
On Thu, Aug 21, 2014 at 2:17 AM, Pedro Alves <palves@redhat.com> wrote:
> On 08/21/2014 05:38 AM, Reza Roboubi wrote:
>> When I run
>> gdb <executable-file> --core core --batch --quiet -ex "where" -ex
>> "thread apply all bt full" -ex "quit"
>>
>> Things like C++ or STL classes(as function parameters) are
>> truncated(they show up as "...") in the backtrace.
>> Can gdb treat them like C structs and print the contents?
>
> Add:
>
> -ex "set print frame-arguments all"
>
> See:
>
> https://sourceware.org/gdb/current/onlinedocs/gdb/Print-Settings.html
Thanks so much Pedro. I couldn't make gdb follow the C++ "this"
pointer as well, but I suppose not following a pointer is
understandable.
Reza.