[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-debug-dev] Address from CLocalVariable
|
Hi Brent,
As far as I know the binary parsers used by CDT are written
in Java are parts of the CDT Core plugin. There is also an extension point to
contribute a binary parser.
Regards,
Mikhail
Hi Mikhail,
I am using tools from the MIPS
Software Development Environment (SDE), including their gcc, gdb, etc.
Which GNU program usually parses a binary file?
I found
the links I was looking for in the plugin.xml file, as you suggested. Now
I have menu items that allow a user to select variables and functions.
Thanks for the pointer.
~Brent
On Mon,
2006-10-23 at 12:02 +0100, Mikhail Khodjaiants wrote:
Hi
Brent,
In my Modules view I
see the opposite behaviour: the globals are listed in the view, but the list
in the "Add Globals" dialog is empty. The problem is that the Modules view
content provider is based on the C Model, but the dialog uses the associated
binary parser to retrieve globals. These two features should use the same
underlying mechanism. I submitted a bugzilla entry - https://bugs.eclipse.org/bugs/show_bug.cgi?id=161926.
By the way, what is
your environment and which binary parser you are using?
Regarding your
problems. First, the functions should be displayed in the Modules view
along with globals, so probably it's the same problem. Second, you should
be able to contribute actions to the Outline view. The CDT debugger
contributes the "Toggle watchpoint" and "Toggle Breakpoint" actions to
variables and functions in the Outline view. See the corresponding plugin.xml
file for details.
Mikhail
From: cdt-debug-dev-bounces@xxxxxxxxxxx
[mailto:cdt-debug-dev-bounces@xxxxxxxxxxx] On Behalf Of Brent Washburne
Sent: 21 October 2006 00:28
To: CDT Debug
developers list
Subject: 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. |
--
IMPORTANT NOTICE: The contents of this email and any attachments
are confidential and may also be privileged. If you are not the intended
recipient, please notify the sender immediately and do not disclose the
contents to any other person, use it for any purpose, or store or copy the
information in any medium. Thank you.
_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
--
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.