aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-05-18 03:13:09 +0000
committerStan Shebs <shebs@codesourcery.com>1994-05-18 03:13:09 +0000
commit298f0428b445a9316814ddd6e1bc9994db40d9e3 (patch)
tree415cc49ff3e27e943b8c57bf9b37c0c25afc82cf /gdb
parent20b3c1aae5908ae77ed6b6b104997bb2009c417a (diff)
downloadgdb-298f0428b445a9316814ddd6e1bc9994db40d9e3.zip
gdb-298f0428b445a9316814ddd6e1bc9994db40d9e3.tar.gz
gdb-298f0428b445a9316814ddd6e1bc9994db40d9e3.tar.bz2
Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
* xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use the auxent if the symbol's name is ".file". From David Edelsohn <c1dje@watson.ibm.com>.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/xcoffread.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4895a0f..56ccbbd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
+ the auxent if the symbol's name is ".file". From David Edelsohn
+ <c1dje@watson.ibm.com>.
+
Tue May 17 11:08:22 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* breakpoint.c (breakpoint_1): Fix typo.
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index de8f77a..50a3e29 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -1429,8 +1429,9 @@ function_entry_point:
/* XCOFF, according to the AIX 3.2 documentation, puts the filename
in cs->c_name. But xlc 1.3.0.2 has decided to do things the
standard COFF way and put it in the auxent. We use the auxent if
- there is one, otherwise use the name. Simple enough. */
- if (cs->c_naux > 0)
+ the symbol is ".file" and an auxent exists, otherwise use the symbol
+ itself. Simple enough. */
+ if (!strcmp (cs->c_name, ".file") && cs->c_naux > 0)
filestring = coff_getfilename (&main_aux);
else
filestring = cs->c_name;