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

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...

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Phil (Philip) Mason
Sent: Thursday, October 27, 2011 7:46 AM
To: CDT General developers list.
Subject: [cdt-dev] Getting a list of global variables and their addresses

Hello all,


I’m extending the memory views so they have an additional pane which shows which where symbols reside in memory. I only need to do so for the global variables and I can get the information I need from GDB using the MI commands –symbol-list-variables (or –symbol-info-symbol) but I don’t think these are used anywhere in DSF.


Is there currently a recommended way of getting a list of the global variables and their addresses or do I need to start from scratch?


Any suggestions about the best way to proceed would be appreciated.


Thanks in advance


Phil Mason



Back to the top