Red Hat Bugzilla – Bug 459414
debug info message not MI compliant
Last modified: 2008-09-10 03:04:29 EDT
Description of problem:
GDB when used with the MI interpreter outputs the following message, when the inferior is restarted after a new version of the image of the inferior is generated:
"Missing separate debuginfos, use: debuginfo-install gcc.i386 glib2.i386 glibc.i686 glibmm24.i386 libgtop2.i386 libselinux.i386 libsigc++20.i386 libxml2.i386 zlib.i386"
The problem with that string is that it does not comply with the GDB/MI format, so it breaks GDB/MI clients.
Basically, each line of the message should be preceded by a '~' character, then by a '"' character, and the line should be ended by the '\n"' string.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. compile a program file foo.c into a program foo.
2. gdb --interpreter=mi2 foo
3. break main
5. in another shell, do:
recompile foo.c into foo.
6. the former gdb prompt, do:
'Missing separate debuginfos, use: debuginfo-install gcc.i386 glib2.i386 glibc.i686 glibmm24.i386 libgtop2.i386 libselinux.i386 libsigc++20.i386 libxml2.i386 zlib.i386'
Appears before the normal GDB/MI formatted messages, normally returned by GDB.
All the messages returned by GDB should be MI compliant, when GDB is using the MI interpreter.
http://www.redhat.com/archives/fedora-extras-commits/2008-March/msg03025.html - this is what added this message. The fix would be to use fprintf_filtered instead of bare printf.
Created attachment 314563 [details]
(In reply to comment #2)
> The fix would be to use fprintf_filtered instead of bare printf.
It works fine, thanks. (used _unfiltered for no paginating for these messages)
~"Missing separate debuginfos, use: debuginfo-install gd.x86_64 libXpm.x86_64\n"
~"`/tmp/link' has changed; re-reading symbols.\n"
gdb-6.8-18.fc9 has been submitted as an update for Fedora 9.
Ian, can I close this bug now?
I forgot / did not turn the Bug to MODIFIED after its CVS commit/build:
* Sat Aug 23 2008 Jan Kratochvil <email@example.com> - 6.8-18
- Fix MI debuginfo print on reloaded exec, found by Denys Vlasenko (BZ 459414).
Still the Bug should get CLOSED automatically by Bodhi when the gdb-6.8-18.fc9 update gets shipped. It is still `pending' as the Bodhi infrastructure is somehow suspended recently (possibly due to the recent RH/F security issue).
Formerly the updates were shipping about in 1-3 days.
gdb-6.8-18.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.