Operating System - HP-UX
1835085 Members
2824 Online
110073 Solutions
New Discussion

Re Debugging a C program using GDB

 
Sreeram_4
New Member

Re Debugging a C program using GDB

Hi I have an a.out file( no source code) obtained by compiling a c program [gcc ]
I have no debugging information in it.
I need to know the values of the user defined function arguments.
Suppose i know the names of the functions, can i by any chance print the values of the function parameters.
For example say that i have a function called "foo"

gdb>break foo

After breaking at that function, is there a way to print out the paramater values of that function.


Thanks,
Sreeram