WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: GDB warning...  (Read 2006 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
GDB warning...
« on: October 18, 2015, 08:46:22 PM »
Running TC6 x86, trying to troubleshoot segmentation fault in a C++ program.

Upon first run receive message hinting creation of .gdbinit file. Created with suggested content:
add-auto-load-safe-path /tmp/tcloop/glibc_add_lib/lib/libthread_db-1.0.so

This warning disappeared but a second warning persists:
Code: [Select]
tc@box:~$ gdb
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) exec-file mfmr
(gdb) run
Starting program: /home/tc/.local/bin/mfmr
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Quick research, finding stuff like this:
https://sourceware.org/bugzilla/show_bug.cgi?id=14466
https://groups.google.com/forum/?_escaped_fragment_=topic/gnu.gdb.bug/JfboqAItJ9g#!topic/gnu.gdb.bug/JfboqAItJ9g

These complaints dated ~2012-2013, query resolved in newer GDB release. TC repo has v7.5.1, current available is 7.10:
https://www.gnu.org/software/gdb/download/

Any suggestions to try or should i requested an updated version for TC 6?

Thanks.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: GDB warning...
« Reply #1 on: October 18, 2015, 09:08:05 PM »
Tried some bug queries and checked GDB changelogs, didn't see anything obvious. Notice this warning is common amongst GDB users posting their debug output. So as a new user to GDB, just need to know if this is simply benign verbose output or does this warning indicate GDB functionality is affected?

I was already able to use this GDB version to identify/fix one segmentation fault...there's at least one more gremlin. Thanks.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: GDB warning...
« Reply #2 on: October 19, 2015, 11:58:01 AM »
You can ignore the warning if you're not debugging linux-gate.so. It's quite unlikely there's any bug in that library.
The only barriers that can stop you are the ones you create yourself.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: GDB warning...
« Reply #3 on: October 19, 2015, 04:41:55 PM »
OK thanks curaga.