public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11704] Cannot load debugging info
       [not found] <bug-11704-4717@http.sourceware.org/bugzilla/>
@ 2014-09-12 22:21 ` sergiodj at redhat dot com
  0 siblings, 0 replies; 7+ messages in thread
From: sergiodj at redhat dot com @ 2014-09-12 22:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=11704

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergiodj at redhat dot com

--- Comment #7 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Hi David, do you still see this issue with a recent GDB?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/11704] Cannot load debugging info
  2010-06-14 18:29 [Bug gdb/11704] New: " dimabarts at yahoo dot com
                   ` (4 preceding siblings ...)
  2010-06-16 17:38 ` dimabarts at yahoo dot com
@ 2010-06-17 17:03 ` tromey at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-06-17 17:03 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-06-17 17:03 -------
(In reply to comment #4)
> > For this one it would be interesting to see what is happening inside gdb
> 
> I don't know how to look inside gdb as I don't have a working debugger. (If I
had dbx I'd just use that)

In this case you could probably use strace to see what system call is failing.
That might help, anyway.
 
> > AFAIK you can't generally use symbol-file with a .o.
> 
> Not sure what symbol-file is for then. Certainly didn't work with the source
.c file.

I think it is there to support the case where the inferior process does
not have debug symbols, but you have an unstripped executable as well.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11704

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/11704] Cannot load debugging info
  2010-06-14 18:29 [Bug gdb/11704] New: " dimabarts at yahoo dot com
                   ` (3 preceding siblings ...)
  2010-06-16  0:35 ` dimabarts at yahoo dot com
@ 2010-06-16 17:38 ` dimabarts at yahoo dot com
  2010-06-17 17:03 ` tromey at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: dimabarts at yahoo dot com @ 2010-06-16 17:38 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From dimabarts at yahoo dot com  2010-06-16 17:38 -------
(In reply to comment #4)
I meant gdb above of course, not dbx.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11704

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/11704] Cannot load debugging info
  2010-06-14 18:29 [Bug gdb/11704] New: " dimabarts at yahoo dot com
                   ` (2 preceding siblings ...)
  2010-06-15 21:46 ` tromey at redhat dot com
@ 2010-06-16  0:35 ` dimabarts at yahoo dot com
  2010-06-16 17:38 ` dimabarts at yahoo dot com
  2010-06-17 17:03 ` tromey at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: dimabarts at yahoo dot com @ 2010-06-16  0:35 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From dimabarts at yahoo dot com  2010-06-16 00:35 -------
> For this one it would be interesting to see what is happening inside gdb

I don't know how to look inside gdb as I don't have a working debugger. (If I had dbx I'd just use that)

> AFAIK you can't generally use symbol-file with a .o.

Not sure what symbol-file is for then. Certainly didn't work with the source .c file.

Has anyone actually tested dbx when it's compiled via Sun's cc as opposed to gcc? I have gcc 2.8.1 (and 
building dbx has failed quite miserably), is it worth installing a newer version? Is it possible that there's 
a gdb binary for solaris 10 somewhere so I won't have to build from source?


(In reply to comment #3)
> (In reply to comment #2)
> > Reading symbols from /export/home/dbarts/C/hello...Can't read symbols from
> > /export/home/dbarts/C/hello: Invalid operation
> 
> This is a different error message than the first time.
> For this one it would be interesting to see what is happening inside gdb
> when this error is printed.
> 
> AFAIK you can't generally use symbol-file with a .o.
> 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11704

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/11704] Cannot load debugging info
  2010-06-14 18:29 [Bug gdb/11704] New: " dimabarts at yahoo dot com
  2010-06-14 20:58 ` [Bug gdb/11704] " tromey at redhat dot com
  2010-06-14 21:22 ` dimabarts at yahoo dot com
@ 2010-06-15 21:46 ` tromey at redhat dot com
  2010-06-16  0:35 ` dimabarts at yahoo dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-06-15 21:46 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-06-15 21:46 -------
(In reply to comment #2)
> Reading symbols from /export/home/dbarts/C/hello...Can't read symbols from
> /export/home/dbarts/C/hello: Invalid operation

This is a different error message than the first time.
For this one it would be interesting to see what is happening inside gdb
when this error is printed.

AFAIK you can't generally use symbol-file with a .o.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11704

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/11704] Cannot load debugging info
  2010-06-14 18:29 [Bug gdb/11704] New: " dimabarts at yahoo dot com
  2010-06-14 20:58 ` [Bug gdb/11704] " tromey at redhat dot com
@ 2010-06-14 21:22 ` dimabarts at yahoo dot com
  2010-06-15 21:46 ` tromey at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dimabarts at yahoo dot com @ 2010-06-14 21:22 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From dimabarts at yahoo dot com  2010-06-14 21:22 -------
(In reply to comment #1)
> > % cc hello.o -o hello
> 
> Try changing that to:
> 
> cc hello.o -g -o hello
> 
> I think you need -g on the link line to tell the linker to preserve debuginfo.
> 
> You can always check gdb here by using readelf or something like that to
> see if the executable does in fact have debuginfo.

Thanks but no dice...

% cc hello.o -g -o hello
% ~/gdb-7.1/gdb/gdb hello
Reading symbols from /export/home/dbarts/C/hello...Can't read symbols from
/export/home/dbarts/C/hello: Invalid operation

I've checked man ld and the flag -g isn't mentioned at all (although there's the
opposite one, -s). Here's another experiment - without any executables:
% ~/gdb-7.1/gdb/gdb
(gdb) symbol-file hello.o
Reading symbols from /export/home/dbarts/C/hello.o...(no debugging symbols
found)...done.

But there is dbg info:
% ls -l hello.o
-rw-r--r--   1 dbarts   staff       1040 Jun 14 14:18 hello.o
% strip hello.o
% ls -l hello.o
-rw-r--r--   1 dbarts   staff        760 Jun 14 17:15 hello.o

So 25% of original hello.o had consisted of dbg info.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11704

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/11704] Cannot load debugging info
  2010-06-14 18:29 [Bug gdb/11704] New: " dimabarts at yahoo dot com
@ 2010-06-14 20:58 ` tromey at redhat dot com
  2010-06-14 21:22 ` dimabarts at yahoo dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2010-06-14 20:58 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-06-14 20:58 -------
> % cc hello.o -o hello

Try changing that to:

cc hello.o -g -o hello

I think you need -g on the link line to tell the linker to preserve debuginfo.

You can always check gdb here by using readelf or something like that to
see if the executable does in fact have debuginfo.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com
             Status|UNCONFIRMED                 |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=11704

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-12 22:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11704-4717@http.sourceware.org/bugzilla/>
2014-09-12 22:21 ` [Bug gdb/11704] Cannot load debugging info sergiodj at redhat dot com
2010-06-14 18:29 [Bug gdb/11704] New: " dimabarts at yahoo dot com
2010-06-14 20:58 ` [Bug gdb/11704] " tromey at redhat dot com
2010-06-14 21:22 ` dimabarts at yahoo dot com
2010-06-15 21:46 ` tromey at redhat dot com
2010-06-16  0:35 ` dimabarts at yahoo dot com
2010-06-16 17:38 ` dimabarts at yahoo dot com
2010-06-17 17:03 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).