aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-03-26 02:48:23 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-03-26 02:48:23 +0000
commitb9179dbce95be8ab496758e27909ad5ea2cdd8cd (patch)
treef82611bc6b0bebf0eabad402f19bbd91b5deb869 /gdb/coffread.c
parent0285c67df190b85c05973783e204cd1869644c76 (diff)
downloadgdb-b9179dbce95be8ab496758e27909ad5ea2cdd8cd.zip
gdb-b9179dbce95be8ab496758e27909ad5ea2cdd8cd.tar.gz
gdb-b9179dbce95be8ab496758e27909ad5ea2cdd8cd.tar.bz2
2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Andrew Cagney <ac131313@redhat.com> * coffread.c (coff_symtab_read): Initialize ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds the ``.ef'' info. * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 526e0e4..7f775de 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -740,7 +740,7 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
char *filestring = "";
int depth = 0;
int fcn_first_line = 0;
- CORE_ADDR fcn_first_line_addr;
+ CORE_ADDR fcn_first_line_addr = 0;
int fcn_last_line = 0;
int fcn_start_addr = 0;
long fcn_line_ptr = 0;
@@ -1009,6 +1009,8 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
}
else if (STREQ (cs->c_name, ".ef"))
{
+ if (!within_function)
+ error ("Bad coff function information\n");
/* the value of .ef is the address of epilogue code;
not useful for gdb. */
/* { main_aux.x_sym.x_misc.x_lnsz.x_lnno