After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 395077 - Detect that there's no debugging info
Detect that there's no debugging info
Status: RESOLVED WONTFIX
Product: nemiver
Classification: Other
Component: general
trunk
Other Linux
: Normal enhancement
: ---
Assigned To: Seemanta Dutta
Nemiver maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2007-01-10 17:21 UTC by Marko Anastasov
Modified: 2020-03-10 11:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marko Anastasov 2007-01-10 17:21:10 UTC
When you start nemiver with a program that has no debugging info, it shows three message boxes:

There is no file name info for symbol@addr: @0x000000...
Assertion failed: !a_file_name.empty()
File path info is missing for function 'main'

and the default logging (nothing specified) prints:

|X|virtual void nemiver::DBGPerspective::append_visual_breakpoint(const nemiver::common::UString&, int):nmv-dbg-perspective.cc:3635:condition (!a_file_name.empty()) failed; raising exception

|E|void nemiver::DBGPerspective::on_debugger_breakpoints_set_signal(const std::map<int, nemiver::IDebugger::BreakPoint, std::less<int>, std::allocator<std::pair<const int, nemiver::IDebugger::BreakPoint> > >&):nmv-dbg-perspective.cc:1360:caught exception: 'Assertion failed: !a_file_name.empty()'

Anyway, this is easy to reproduce.

I just suggest that this could be managed in future in a less verbose way, say, a message box that says "No debugging symbols found", which is what ddd prints.
Comment 1 Jonathon Jongsma 2007-06-15 15:06:24 UTC
This bug is somewhat related to Bug 447890. If that bug were fixed, we would be down to two popup warnings for this case.
Comment 2 Dodji Seketeli 2009-07-04 08:43:35 UTC
Now with the growing number of distributions out there that support PackageKit, I think we can even propose to download the missing debug information.

However, we must be very careful when doing that, because they might be interesting corner cases. I'd propose at least a gconf option to disable the option at will.
Comment 3 Seemanta Dutta 2010-05-26 21:34:26 UTC
I would like to take up this bug. Can you please assign it to me ? If any pointers on how I go about fixing it would be helpful.

~seemanta
Comment 4 Dodji Seketeli 2010-05-27 12:43:19 UTC
Just to be sure I understand well,

Do you intend to implement a PackageKit based solution to download debug info packages for programs that are being debugged by Nemiver?
Comment 5 Dodji Seketeli 2010-05-27 12:44:24 UTC
Btw, Seemanta, I have assigned you the bug as you asked :-)
Comment 6 Dodji Seketeli 2010-09-07 09:07:12 UTC
Now that we have disassembly support in Nemiver, it's worth noting that when no debug info is installed, the tool won't pop up any window anymore telling you there is no source file for a given symbol. Instead, it will automatically disassemble the region of code around the current instruction pointer. If you are brave enough, the disassembly will be enough for you. Otherwise you'll have to install the relevant debug info.
Comment 7 André Klapper 2020-03-10 11:55:20 UTC
Closing all open Nemiver tasks as this project does not seem to be maintained anymore. Please see https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/235#note_732192 for further information. Thanks!