aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-04-01 11:24:43 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-04-01 11:24:43 +0000
commit576c39135f412f8014181e97628e18f8ace275f1 (patch)
tree3d613d557a61cae22ede004d9141867c6c0a3562 /gdb
parent241b4dff18277873995facbd21ab34c12c1d3c14 (diff)
downloadgdb-576c39135f412f8014181e97628e18f8ace275f1.zip
gdb-576c39135f412f8014181e97628e18f8ace275f1.tar.gz
gdb-576c39135f412f8014181e97628e18f8ace275f1.tar.bz2
* dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
Handle relocated symbol address. * partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING: Do not relocate a zero address.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/partial-stab.h9
2 files changed, 15 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f49f9b1..77c8703 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+Sat Apr 1 03:22:20 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
+
+ * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
+ Handle relocated symbol address.
+ * partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
+ Do not relocate a zero address.
+
Thu Mar 30 19:46:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
* config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h
index f1ab991..38bac24 100644
--- a/gdb/partial-stab.h
+++ b/gdb/partial-stab.h
@@ -1,5 +1,5 @@
/* Shared code to pre-read a stab (dbx-style), when building a psymtab.
- Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994
+ Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995
Free Software Foundation, Inc.
This file is part of GDB.
@@ -200,6 +200,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
char *p;
valu = CUR_SYMBOL_VALUE + ANOFFSET (section_offsets, SECT_OFF_TEXT);
+#ifdef SOFUN_ADDRESS_MAYBE_MISSING
+ /* A zero value is probably an indication for the SunPRO 3.0
+ compiler. end_psymtab explicitly tests for zero, so
+ don't relocate it. */
+ if (CUR_SYMBOL_VALUE == 0)
+ valu = 0;
+#endif
past_first_source_file = 1;