From: "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
To: daryll@d2.com (Daryll Strauss)
Cc: gdb-patches@cygnus.com
Subject: Re: GDB 4.16.85 on IRIX 6.2
Date: Sun, 15 Feb 1998 23:52:00 -0000 [thread overview]
Message-ID: <199802160751.IAA21227@red.regent.e-technik.tu-muenchen.de> (raw)
In-Reply-To: <19980211135547.55673@jolt>
gdb-4.16.85 should work mostly with -n32 compiled executables, the
notable exception is function calling in the inferior process, which
might pass the wrong arguments to the called functions, due to ABI
calling differences.
I'd bet that you were using native make when building gdb-4.16.85, which
triggers a bug in gdb/Makefile.in, a patch to fix this is included below.
Alternatively you could use gnu make.
The symptom is a truncated gdb/init.c file, if you don't find
_initialize_elfread in it, you are hit by the problem.
Removing gdb/init.c, applying the patch and rebuilding GDB should get rid
the problem.
Index: Makefile.in
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/Makefile.in,v
retrieving revision 1.605
diff -u -r1.605 Makefile.in
--- Makefile.in 1998/02/05 01:47:26 1.605
+++ Makefile.in 1998/02/09 20:36:06
@@ -629,7 +629,7 @@
@echo '#include "ansidecl.h"' >>init.c-tmp
@echo 'extern void initialize_all_files PARAMS ((void));' >>init.c-tmp
@echo 'void initialize_all_files PARAMS ((void)) {' >>init.c-tmp
- @echo $(OBS) $(TSOBS) | \
+ @-echo $(OBS) $(TSOBS) | \
tr ' ' '\012' | \
sed -e '/^Onindy.o/d' \
-e '/^nindy.o/d' \
> I've been looking for a GDB that works with IRIX 6.2, particularly when
> we compile our applications in SGI's N32 format. When I compile
> helloworld with or without the -n32 switch and run gdb I get the
> following message:
>
> GNU gdb 4.16.85
> Copyright 1997 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-irix6.2"...
>
> I'm sorry, Dave, I can't do that. Symbol format `elf32-bigmips' unknown.
> No display number 0.
> Disabling display 0 to avoid infinite recursion.
>
> If I compile without the -n32 switch and run 4.16 (which I compiled
> under IRIX 5.3) GDB actually works on the non -n32 library but complains
> there are no debugging symbols found with -n32. I hope this is useful
> information for you. Let me know if I can help test any patches.
>
> - |Daryll
>
>
>
>
>
>
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de
prev parent reply other threads:[~1998-02-15 23:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-11 14:01 Daryll Strauss
1998-02-15 23:52 ` Peter.Schauer [this message]
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=199802160751.IAA21227@red.regent.e-technik.tu-muenchen.de \
--to=peter.schauer@regent.e-technik.tu-muenchen.de \
--cc=daryll@d2.com \
--cc=gdb-patches@cygnus.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