[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-debug-dev] Address from CLocalVariable
|
Hi Alain,
Your suggestion to use
Stackframe.evaluateExpression("&myLocalVariable"); worked perfectly. Thanks!
Hi Mikhail,
Your Modules view must be different than mine (Eclipse 3.2.1, CDT 3.1.1). While debugging a C program, my Modules view shows the application name in a tree view, and when opened, it lists all the .c files in my project. There are no global variables listed there.
My Variables view has a pop-up menu with an option to "Add Global Variables..." and that will allow me to select some globals to add to my list of variables.
But the only place to find a list of functions is in the Outline view, unless I'm overlooking another view. Should they be listed somewhere else?
Here's my problem: I've created a new view and I want to add all types of symbols (variables and functions) to this list. I used a menu item in the Variables view as the mechanism to add symbols to my view. This now works for local and global variables, but not for functions. For some reason, I tried adding the same pop-up menu item to org.eclipse.ui.views.ContentOutline but it didn't work -- any idea why?
Or should I just have my own list of symbols, and how would I get this list? Lots of questions, I know.
~Brent
On Fri, 2006-10-20 at 10:43 -0400, Alain Magloire wrote:
>
> Hi Brent,
>
> The variables shown in the Modules view are global variables. The
> variables listed in the Variables view are local variables allocated in
> the current stack frame. Yes, there is no way get the address of a local
> variable, but there is a way to get the address of a stack frame -
> ICStackFrame.getAddress.
>
For the address of the local variable, maybe he could evaluate the
_expression_ on the Stackframe:
Stackframe.evaluateExpression("&myLocalVariable");
Note: I did not try it.
_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
Brent Washburne
Sr. Software Engineer
First Silicon Solutions (FS2), a division of MIPS Technologies, Inc.
4000 SW Kruse Way Place
Bldg 3, Suite 210
Lake Oswego, OR 97035
Phone: (503) 489-0311
Fax: (503) 489-0315
_____________________________
IMPORTANT NOTICE: This email message, which includes any attachments, may contain confidential, proprietary and/or privileged information for the sole use of the intended recipient.
Any unauthorized review, use, copying, disclosure or distribution is prohibited. If you are not the intended recipient, please immediately contact the sender by reply email and permanently destroy the original and any copies of this message. Thank you.
|