diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-20 22:38:03 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-20 22:38:03 +0000 |
commit | d4a0983ab06c518f0bd43b99b5208236e18759c9 (patch) | |
tree | 4512c15ae5f24797c251b3e2245682949a7b7257 /gdb | |
parent | 7691379e7ff734bc7bc40d66bb547f60ac0a0923 (diff) | |
download | gdb-d4a0983ab06c518f0bd43b99b5208236e18759c9.zip gdb-d4a0983ab06c518f0bd43b99b5208236e18759c9.tar.gz gdb-d4a0983ab06c518f0bd43b99b5208236e18759c9.tar.bz2 |
* xcoffread.c (read_xcoff_symtab): complain() not abort().
* xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
a completely gratuitous difference between xcoffread.c and coffread.c).
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/xcoffread.c | 16 |
2 files changed, 17 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 70d51e5..91a8e46 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * xcoffread.c (read_xcoff_symtab): complain() not abort(). + + * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes + a completely gratuitous difference between xcoffread.c and coffread.c). + Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * infrun.c (wait_for_inferior): Don't set frame for diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index d9a723a..71fe6e0 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -61,7 +61,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ struct coff_symbol { char *c_name; int c_symnum; /* symbol number of this entry */ - int c_nsyms; /* 0 if syment only, 1 if syment + auxent */ + int c_naux; /* 0 if syment only, 1 if syment + auxent */ long c_value; unsigned char c_sclass; int c_secnum; @@ -1070,7 +1070,7 @@ read_xcoff_symtab (objfile, nsyms) bfd_coff_swap_sym_in (abfd, raw_symbol, symbol); cs->c_symnum = symnum; - cs->c_nsyms = symbol->n_numaux; + cs->c_naux = symbol->n_numaux; if (symbol->n_zeroes) { symname_alloced = 0; /* We must use the original, unswapped, name here so the name field @@ -1136,7 +1136,7 @@ read_xcoff_symtab (objfile, nsyms) goto function_entry_point; } - if ((cs->c_sclass == C_EXT || cs->c_sclass == C_HIDEXT) && cs->c_nsyms == 1) + if ((cs->c_sclass == C_EXT || cs->c_sclass == C_HIDEXT) && cs->c_naux == 1) { /* dealing with a symbol with a csect entry. */ @@ -1259,11 +1259,15 @@ function_entry_point: already available for it. Process traceback table for functions with only one auxent. */ - if (cs->c_nsyms == 1) + if (cs->c_naux == 1) ptb = retrieve_tracebackinfo (abfd, textsec, cs); - else if (cs->c_nsyms != 2) - abort (); + else if (cs->c_naux != 2) + { + static struct complaint msg = + {"Expected one or two auxents for function", 0, 0}; + complain (&msg); + } /* If there is traceback info, create and add parameters for it. */ |