diff options
author | Fred Fish <fnf@specifix.com> | 1996-01-10 18:40:24 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-01-10 18:40:24 +0000 |
commit | 0d14c7df689bea7cc7d8cfb953a51ada7c700d1d (patch) | |
tree | 7005a840d6c39499480d2317207d66abf1e483b9 /gdb/stabsread.c | |
parent | 367c2d2aef1d1280fcf7ede175b7683ab1ed5bf5 (diff) | |
download | gdb-0d14c7df689bea7cc7d8cfb953a51ada7c700d1d.zip gdb-0d14c7df689bea7cc7d8cfb953a51ada7c700d1d.tar.gz gdb-0d14c7df689bea7cc7d8cfb953a51ada7c700d1d.tar.bz2 |
From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
* gdbserver/low-linux.c: New file.
* remote.c (remote_read_bytes): Fix aborts on larger packets.
* config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
Define.
* stabsread.c (define_symbol): If register value is too large,
tell what it is and what max is.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 1be6cd2..ee22e65 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -177,7 +177,7 @@ struct complaint range_type_base_complaint = {"base type %d of range type is not defined", 0, 0}; struct complaint reg_value_complaint = - {"register number too large in symbol %s", 0, 0}; + {"register number %d too large (max %d) in symbol %s", 0, 0}; struct complaint vtbl_notfound_complaint = {"virtual function table pointer not found when defining class `%s'", 0, 0}; @@ -955,7 +955,8 @@ define_symbol (valu, string, desc, type, objfile) SYMBOL_VALUE (sym) = STAB_REG_TO_REGNUM (valu); if (SYMBOL_VALUE (sym) >= NUM_REGS) { - complain (®_value_complaint, SYMBOL_SOURCE_NAME (sym)); + complain (®_value_complaint, SYMBOL_VALUE (sym), NUM_REGS, + SYMBOL_SOURCE_NAME (sym)); SYMBOL_VALUE (sym) = SP_REGNUM; /* Known safe, though useless */ } SYMBOL_NAMESPACE (sym) = VAR_NAMESPACE; @@ -969,7 +970,8 @@ define_symbol (valu, string, desc, type, objfile) SYMBOL_VALUE (sym) = STAB_REG_TO_REGNUM (valu); if (SYMBOL_VALUE (sym) >= NUM_REGS) { - complain (®_value_complaint, SYMBOL_SOURCE_NAME (sym)); + complain (®_value_complaint, SYMBOL_VALUE (sym), NUM_REGS, + SYMBOL_SOURCE_NAME (sym)); SYMBOL_VALUE (sym) = SP_REGNUM; /* Known safe, though useless */ } SYMBOL_NAMESPACE (sym) = VAR_NAMESPACE; @@ -1191,7 +1193,8 @@ define_symbol (valu, string, desc, type, objfile) SYMBOL_VALUE (sym) = STAB_REG_TO_REGNUM (valu); if (SYMBOL_VALUE (sym) >= NUM_REGS) { - complain (®_value_complaint, SYMBOL_SOURCE_NAME (sym)); + complain (®_value_complaint, SYMBOL_VALUE (sym), NUM_REGS, + SYMBOL_SOURCE_NAME (sym)); SYMBOL_VALUE (sym) = SP_REGNUM; /* Known safe, though useless */ } SYMBOL_NAMESPACE (sym) = VAR_NAMESPACE; |