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: Pedro Alves <palves at redhat dot com>
- To: Reza Roboubi <rezarob at gmail dot com>, gdb at sourceware dot org
- Date: Thu, 21 Aug 2014 10:17:10 +0100
- 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>
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,
Pedro Alves