* 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).
This commit is contained in:
Jim Kingdon 1994-01-20 22:38:03 +00:00
parent 7691379e7f
commit d4a0983ab0
2 changed files with 17 additions and 6 deletions

View File

@ -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) Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* infrun.c (wait_for_inferior): Don't set frame for * infrun.c (wait_for_inferior): Don't set frame for

View File

@ -61,7 +61,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
struct coff_symbol { struct coff_symbol {
char *c_name; char *c_name;
int c_symnum; /* symbol number of this entry */ 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; long c_value;
unsigned char c_sclass; unsigned char c_sclass;
int c_secnum; int c_secnum;
@ -1070,7 +1070,7 @@ read_xcoff_symtab (objfile, nsyms)
bfd_coff_swap_sym_in (abfd, raw_symbol, symbol); bfd_coff_swap_sym_in (abfd, raw_symbol, symbol);
cs->c_symnum = symnum; cs->c_symnum = symnum;
cs->c_nsyms = symbol->n_numaux; cs->c_naux = symbol->n_numaux;
if (symbol->n_zeroes) { if (symbol->n_zeroes) {
symname_alloced = 0; symname_alloced = 0;
/* We must use the original, unswapped, name here so the name field /* 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; 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. */ /* dealing with a symbol with a csect entry. */
@ -1259,11 +1259,15 @@ function_entry_point:
already available for it. Process traceback table for already available for it. Process traceback table for
functions with only one auxent. */ functions with only one auxent. */
if (cs->c_nsyms == 1) if (cs->c_naux == 1)
ptb = retrieve_tracebackinfo (abfd, textsec, cs); ptb = retrieve_tracebackinfo (abfd, textsec, cs);
else if (cs->c_nsyms != 2) else if (cs->c_naux != 2)
abort (); {
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. */ /* If there is traceback info, create and add parameters for it. */