This is the mail archive of the gdb-patches@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: [RFC] info scope function command not showing symbols properly.


>>>>> ">" == 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


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