Michael Welsh Duggan | 22 Sep 2009 16:38
Favicon

bug#4519: 23.1.50; GDB MI problems: mi_cmd_stack_info_frame: No arguments required

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

When running gdb via M-x gdb on some code of mine, I end up in a state
where it becomes no longer responsive to 'C-c C-s' or 'C-c C-n'
commands.

More specifically, I started running gdb by typing M-x gdb.  Arguments
were:
gdb -i=mi /home/mwd/bin/rwcut 

From here I typed "start --python-file /tmp/foo.py --help", and then
stepped through my code using 'C-c C-s' and 'C-c C-n'.  At one point,
after 'C-c C-n', where a library was being dynamically loaded, I get the
following output in my *gdb-rwcut* buffer:

[Thread debugging using libthread_db enabled]
[New Thread 0xb7f786c0 (LWP 5633)]
(gdb) mi_cmd_stack_info_frame: No arguments required

At this point, gud no longer syncs with gdb (does not follow along in
source files).  

The debug log below contains information up to this point, plus typing
'C-c C-n' once beyond the point where the above erroneous condition
begins.

gdb information:
GNU gdb Fedora (6.8-37.el5)

(Continue reading)

Nick Roberts | 23 Sep 2009 12:54
Picon

bug#4519: 23.1.50; GDB MI problems: mi_cmd_stack_info_frame: No arguments required

Michael Welsh Duggan writes:
 > Please describe exactly what actions triggered the bug
 > and the precise symptoms of the bug:
 > 
 > When running gdb via M-x gdb on some code of mine, I end up in a state
 > where it becomes no longer responsive to 'C-c C-s' or 'C-c C-n'
 > commands.
 > 
 > More specifically, I started running gdb by typing M-x gdb.  Arguments
 > were:
 > gdb -i=mi /home/mwd/bin/rwcut 
 > 
 > >From here I typed "start --python-file /tmp/foo.py --help", and then
 > stepped through my code using 'C-c C-s' and 'C-c C-n'.  At one point,
 > after 'C-c C-n', where a library was being dynamically loaded, I get the
 > following output in my *gdb-rwcut* buffer:
 > 
 > [Thread debugging using libthread_db enabled]
 > [New Thread 0xb7f786c0 (LWP 5633)]
 > (gdb) mi_cmd_stack_info_frame: No arguments required

Does the patch below fix the immediate problem?

You appear to be debugging a multi-threaded program with GDB 6.8.  The thread
buffer won't work in this case as it uses the MI -thread-info command which is
part of GDB 7.0.  This is due to be released in the next week or so.  Emacs
23.1 probably works better with GDB 6.8, at least for multi-threaded
applications.

--

-- 
(Continue reading)

Michael Welsh Duggan | 23 Sep 2009 18:45
Favicon

bug#4519: 23.1.50; GDB MI problems: mi_cmd_stack_info_frame: No arguments required

Nick Roberts <nickrob <at> snap.net.nz> writes:

[...]

> Does the patch below fix the immediate problem?

It does.  Thank you.

--

-- 
Michael Welsh Duggan
(mwd <at> cert.org)

Nick Roberts | 24 Sep 2009 01:25
Picon

bug#4519: 23.1.50; GDB MI problems: mi_cmd_stack_info_frame: No arguments required

 > > Does the patch below fix the immediate problem?
 > 
 > It does.  Thank you.

OK, I've committed this change and closed the report.  Please do report
any further bugs you see.  That way this mode will become much better than
the previous one.

Thanks,
Nick


Gmane