public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: lmcghaw@connx.com
To: gdb-gnats@sources.redhat.com
Subject: gdb/2336: gdb 6.7 release unable to load elf symbol tables on solaris
Date: Thu, 11 Oct 2007 21:38:00 -0000	[thread overview]
Message-ID: <20071011213504.14292.qmail@sourceware.org> (raw)


>Number:         2336
>Category:       gdb
>Synopsis:       gdb 6.7 release unable to load elf symbol tables on solaris
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 11 21:38:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Larry McGhaw
>Release:        unknown-1.0
>Organization:
>Environment:
solaris 8
>Description:
a freshly configured gdb 6.7 is unable to read elf32-sparc symbol tables on solaris 8.

error is :
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.

I have tried with a variety of images, all with the same result.

gdb 6.4 works fine

=================================================
>How-To-Repeat:
/export/home/cnxuser/gdb-6.7/gdb> gdb /usr/local/bin/isql
GNU gdb 6.7
Copyright (C) 2007 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 "sparc-sun-solaris2.8"...
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Setting up the environment for debugging gdb.
No symbol table is loaded.  Use the "file" command.
No symbol table is loaded.  Use the "file" command.
/export/home/cnxuser/gdb-6.7/gdb/.gdbinit:8: Error in sourced command file:
No breakpoint number 0.
(gdb) run
Starting program: /usr/local/bin/isql 
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
Error while reading shared library symbols:
I'm sorry, Dave, I can't do that.  Symbol format `elf32-sparc' unknown.
[New LWP 1]
[New LWP 2]
[New LWP 3]
 
>Fix:
The configure script and or make file needs to be fixed for solaris .. it is missing
the Makefile in the gdb directory for linux looks like this .. the elfread.obj is here and gets pulled in when init.c is built.
CONFIG_OBS=  $(SUBDIR_CLI_OBS) $(SUBDIR_MI_OBS) elfread.o posix-hdep.o $(SUBDIR_TUI_OBS)

on solaris the CONFIG_OBS line looks like this:
CONFIG_OBS=  $(SUBDIR_CLI_OBS) $(SUBDIR_MI_OBS) sol-thread.o posix-hdep.o $(SUBDIR_TUI_OBS)

elfread.o is not present, and never gets pulled into init.c
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2007-10-11 21:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11 21:38 lmcghaw [this message]
2007-10-11 21:48 Daniel Jacobowitz
2007-10-23 12:18 Alves, Pedro Miguel
2007-10-23 12:18 Pedro Alves
2007-10-23 12:37 drow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071011213504.14292.qmail@sourceware.org \
    --to=lmcghaw@connx.com \
    --cc=gdb-gnats@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).