[MI] -exec-return or CLI 'return' do not trigger MI events

Vladimir Prus vladimir@codesourcery.com
Fri Feb 12 10:29:00 GMT 2010


Marc Khouzam wrote:

> Hi,
> 
> I just noticed that GDB 7.0.1 does not issue MI events
> *running and *stopped for the CLI 'return' command.
> This is the relevant output, while the whole (small)
> session is after.
> 
> (gdb) -exec-return
> 
^done,frame={level="0",addr="0x08048412",func="foo",args=[],file="a.cc",fullname="/local/lmckhou/testing/a.cc",line="6"}
> (gdb) return
> &"return\n"
> ~"#0  main () at a.cc:9\n"
> ~"9\t    return 0;\n"
> ^done
> 
> Do you want me to write a bug?

For all I can tell, the 'return' command does not actually resume the target.
It just pops the stack.

- Volodya




More information about the Gdb mailing list