Bug 316890 - Show function arguments in the Debug view
Summary: Show function arguments in the Debug view
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-15 08:44 EDT by Samuel Hultgren CLA
Modified: 2020-09-04 15:24 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Hultgren CLA 2010-06-15 08:44:14 EDT
Build Identifier: 20100218-1602

It would be nice if the Debug view could show the arguments on the Stack.

for example, as it is now when debugging the function func with signature :
    int func(int intarg, char* strarg, struct myStruct obj);
the Debug view shows 
    func() at C:/tmp/tests/args/Debug/../src/args.c:20

The proposition is that it would be nice to show something like more like what the gdb 'where' command shows:
    #0  func (intarg=2, strarg=0x402029 "two", structptr=...) at ../src/args.c:20

If this information could be used more in the Stack of the Debug view.



Reproducible: Always
Comment 1 Elena Laskavaia CLA 2010-06-15 08:47:38 EDT
What is wrong with Variables view?
Comment 2 Samuel Hultgren CLA 2010-06-22 07:36:17 EDT
Sorry for the late reply.

(In reply to comment #1)
> What is wrong with Variables view?

The Variables view only shows values and variables for the current function.
It doesn't cover the case when you are several calls deep, for example, main calls func1 with some argument, which calls func2 with some other arg.
When debugging func2 it would be nice to be able to see what arguments all previous functions where called with, in this case, func1 and main.
Comment 3 Elena Laskavaia CLA 2010-06-22 09:45:28 EDT
It shows variables for the function you selected. Select function in the next stack frame and you will see another set of variables.