User forums > Using Code::Blocks

view function return value

<< < (2/2)

Jenna:

--- Quote from: roshi on December 09, 2008, 01:35:18 pm ---Now is it possible to send commands to gdb from within C::B? (will google for it)

--- End quote ---

If execution stopped at a breakpoint, you can send a command to gdb with "Debug -> Send user command to debugger" .

thomas:
That's a nice find, btw... didn't know about this command. Seems to work ok too, at least in non-optimized builds.

roshi:
How about integrating that one into the watch view?
Some in charge of that part / gdb part.

Cheers

thomas:
Integrating it into the watch window so it's automatically visible with the other watches won't work because it runs up to after the next return statement in the current frame, so it would be impossible to set breakpoints anywhere.

However, it should be easy to implement it as a button, similar to "step out". Actually it could replace "step out", since you can see "finish" as "step out with return value", kind of.
Yiannis?

mandrav:

--- Quote from: thomas on December 10, 2008, 08:26:45 pm ---However, it should be easy to implement it as a button, similar to "step out". Actually it could replace "step out", since you can see "finish" as "step out with return value", kind of.
Yiannis?

--- End quote ---

Yes, that's true. The reason I didn't use it originally was because at the time I was writing those parts of the debugger, gdb 5.x was used by most people, which didn't support 'finish' from what I recall.

Navigation

[0] Message Index

[*] Previous page

Go to full version