From: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
To: gdb-patches@sources.redhat.com
Subject: 5.1 PATCH: Allow gdb to link on mips-sgi-irix5.3
Date: Thu, 26 Jul 2001 14:42:00 -0000 [thread overview]
Message-ID: <15200.36561.946734.92731@xayide.TechFak.Uni-Bielefeld.DE> (raw)
I just tried the current CVS version, configured on IRIX 6.2 for
mips-sgi-irix5.3, to allow debugging O32 binaries on IRIX 6 during my work
to re-integrate O32 ABI support for IRIX 6 into GCC.
gdb failed to link, though:
ld32: ERROR 33 : Unresolved text symbol "no_shared_libraries" -- 1st referenced by libgdb.a(remote.o).
The patch below fixes this.
Unfortunately, the resulting gdb does not work at all:
* Trying to debug a trivial hello world compiled with cc -32 -g (i.e. with
mdebug debugging information) lets gdb abort with an internal error:
% cc -32 -g -o hello-cc hello.c
% gdb/gdb ./hello-cc
GNU gdb 2001-07-26-cvs (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-sgi-irix5.3".../vol/gnu/src/gdb/src/gdb/mdebugread.c:2443: gdb-internal-error: sect_index_data not initialized
* Trying the same thing with a gcc-compiled binary (using gas, so stabs are
in use) is not much better:
% gcc -g -o hello-gcc hello.c
% gdb/gdb ./hello-gcc
GNU gdb 2001-07-26-cvs (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-sgi-irix5.3"...
(gdb) b main
Breakpoint 1 at 0x400c44: file /homes/ro/src/c/test/hello.c, line 7.
(gdb) run
Starting program: /vol/gcc/obj/gdb/5.3/./hello-gcc
/vol/gnu/src/gdb/src/gdb/regcache.c:281: gdb-internal-error: legacy_read_register_gen: Assertion `regnum >= 0 && regnum < (NUM_REGS + NUM_PSEUDO_REGS)' failed.
Both programs can be debugged with gdb 5.0 ;-(
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
Thu Jul 26 23:27:26 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/irix5.mh (NATDEPFILES): Add solib.o.
Index: config/mips/irix5.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/irix5.mh,v
retrieving revision 1.2
diff -u -p -r1.2 irix5.mh
--- irix5.mh 2000/06/12 06:09:05 1.2
+++ irix5.mh 2001/07/26 21:31:57
@@ -2,7 +2,7 @@
XDEPFILES=
XM_FILE= xm-irix5.h
NAT_FILE= nm-irix5.h
-NATDEPFILES= fork-child.o irix5-nat.o corelow.o procfs.o \
+NATDEPFILES= fork-child.o solib.o irix5-nat.o corelow.o procfs.o \
proc-api.o proc-events.o proc-flags.o proc-why.o
XM_CLIBS=-lbsd -lsun
next reply other threads:[~2001-07-26 14:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-26 14:42 Rainer Orth [this message]
2001-07-26 15:13 ` Elena Zannoni
2001-07-27 2:06 ` Eli Zaretskii
2001-07-27 4:55 ` Rainer Orth
2001-07-27 7:25 ` Eli Zaretskii
2001-07-27 7:28 ` Rainer Orth
2001-07-30 13:14 Rainer Orth
2001-07-31 1:40 ` Eli Zaretskii
2001-07-31 8:19 ` Andrew Cagney
2001-10-14 13:59 ` Andrew Cagney
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=15200.36561.946734.92731@xayide.TechFak.Uni-Bielefeld.DE \
--to=ro@techfak.uni-bielefeld.de \
--cc=gdb-patches@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