aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-20 22:38:03 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-20 22:38:03 +0000
commitd4a0983ab06c518f0bd43b99b5208236e18759c9 (patch)
tree4512c15ae5f24797c251b3e2245682949a7b7257 /gdb/xcoffread.c
parent7691379e7ff734bc7bc40d66bb547f60ac0a0923 (diff)
downloadgdb-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/xcoffread.c')
-rw-r--r--gdb/xcoffread.c16
1 files changed, 10 insertions, 6 deletions
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. */