This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Switch hppa64 to multi-arch-partial
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 27 Jul 2003 12:35:30 -0400
- Subject: [commit] Switch hppa64 to multi-arch-partial
Hello,
The attached switches hppa64 to multi-arch partial. Building a 64 bit
debugger using:
CC="cc +DA2.0W -Ae" configure hppa64-hp-hpux11.00
Builds. The GDB can even set breakpoints vis:
$ ./gdb ./gdb
GNU gdb 5.3.90_2003-07-27-cvs
Copyright 2003 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 "hppa64-hp-hpux11.00"...
(no debugging symbols found)...
Setting up the environment for debugging gdb.
Breakpoint 1 at 0x40000000001c8dbc
Breakpoint 2 at 0x40000000000960c0
(top-gdb) b main
Breakpoint 3 at 0x400000000008a224
ru(top-gdb) run
Starting program: /moe/scratch/cagney/60/hppa64/gdb/gdb
(no debugging symbols found)...warning: Lowest section in
/usr/lib/pa20_64/libxcurses.1 is .text at 4000000000019620
(no debugging symbols found)...warning: Lowest section in
/usr/lib/pa20_64/libm.2 is .text at 40000000000068d0
(no debugging symbols found)...warning: Lowest section in
/usr/lib/pa20_64/libc.2 is .text at 4000000000031040
(no debugging symbols found)...
(no debugging symbols found)...
Breakpoint 3, 0x400000000008a224 in main ()
I don't think the symbol problem is being caused by multi-arch.
committed,
Andrew
2003-07-27 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
GDB_MULTI_ACH_PARTIAL.
Index: config/pa/tm-hppa64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa64.h,v
retrieving revision 1.24
diff -u -r1.24 tm-hppa64.h
--- config/pa/tm-hppa64.h 22 Jul 2003 12:48:23 -0000 1.24
+++ config/pa/tm-hppa64.h 27 Jul 2003 16:31:15 -0000
@@ -32,9 +32,14 @@
gotten working yet. */
#define GDB_TARGET_IS_HPPA_20W
-/* FIXME: brobecker 2003-04-21: Although 32bit hppa is partially multiarched,
- the conversion for hppa64 hasn't been completed yet. */
-#define GDB_MULTI_ARCH 0
+/* NOTE: cagney/2003-07-27: Using CC='cc +DA2.0W -Ae' configure
+ hppa64-hp-hpux11.00; GDB managed to build / start / break main /
+ run with multi-arch enabled. Not sure about much else as there
+ appears to be an unrelated problem in the SOM symbol table reader
+ causing GDB to loose line number information. Since prior to this
+ switch and a other recent tweaks, 64 bit PA hadn't been building
+ for some months, this is probably the lesser of several evils. */
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
/* FIXME: brobecker 2003-05-22: All the definition from this point until
the include of pa/tm-hppah.h are extracted from tm-hppa.h and tm-hppah.h.