This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] info scope function command not showing symbols properly.
- From: Tom Tromey <tromey at redhat dot com>
- To: "Waqas\, Muhammad" <Muhammad_Waqas at mentor dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 28 Aug 2013 15:05:02 -0600
- Subject: Re: [RFC] info scope function command not showing symbols properly.
- Authentication-results: sourceware.org; auth=none
- References: <53A5AC689E2AD547AE0EA5642E101306BB63BD at EU-MBX-04 dot mgc dot mentorg dot com>
>>>>> ">" == Waqas, Muhammad <Muhammad_Waqas@mentor.com> writes:
>> I was printing symbols and got some problem in info scope.
>> Here is the source (case 1)
>> (gdb) info scope f
>> Scope for f:
>> Symbol Z is a typedef.
>> Symbol zz is a variable at frame base reg $rbp offset 16+-48, length 8.
>> Symbol p is a variable at frame base reg $rbp offset 16+-32, length 8.
>> Here GDB only show symbols enclosed in 1st parenthesis. why not it
>> shows symbols in 2nd parathions?
I think the result is somewhat odd, but maybe not totally unexpected.
If you want a specific result I think you need to specify a line number
in the function.
It may be handy to have a variant of info scope that shows the contents
of all the scopes in a function.
Tom