Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Getting a list of global variables and their addresses

On 27/10/2011 10:27 AM, Marc Khouzam wrote:
DSF-GDB does not show global variables automatically. 
See [variables][cdi] Variables view should show globals (or should it?)
CDI-GDB does show them, so you may want to look into how it does it.
P.S. -symbol-list-variables does not seem to be a valid GDB command, maybe you meant -stack-list-variables?
As for -symbol-info-symbol, I can't find anything close to that...

CDI/GDB uses the binary parser associated with the project to retrieve the list of global variables. The list of variables returned by
"info variables" command can be very long and we had concerns that it would affect the performance.

According gdb documentation 'symbol-list-variables' is supposed to be an MI equivalent of 'info variables' but it is not implemented yet.

Back to the top