Run arguments

Peter Barada peter@the-baradas.com
Thu Apr 22 16:30:00 GMT 2004


>Forgive the ignorance level for the following question
>
>I am using gdb for debugging an embedded C application.
>I can call numerous embedded functions and pass parameters to it, add
>breakpoints and step
>through the code - so far so good.
>
>Some of the functions return values as part of their functionality
>
>as in
>
>int MYFUNCTION ( suppliedparam, rtndparam)
>{
>    some code  ......
>
>   return (rtndparam)
>
>}
>
>The question is
>How do I get to get the value of returned parameters output to the command line.
>
>i.e in the above example I want to know what the value of  rtndparam is

Place a breakpoint on the return statement, run the program and at the
breakpoint, type "print rtndparam".

-- 
Peter Barada
peter@the-baradas.com



More information about the Gdb mailing list