From: Jim Kingdon Date: Tue, 20 Dec 1994 21:06:13 +0000 (+0000) Subject: * sparc-tdep.c, a29k-tdep.c, findvar.c (get_saved_register): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=888a18ee7705f72f8f4488f78ee5ceb532d811ef;p=binutils-gdb.git * sparc-tdep.c, a29k-tdep.c, findvar.c (get_saved_register): if !target_has_registers, call error(). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b6f836f98b0..1cceef74de5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Tue Dec 20 11:44:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + * sparc-tdep.c, a29k-tdep.c, findvar.c (get_saved_register): + if !target_has_registers, call error(). + * value.h: Remove obsolete comments about FRAME vs struct frame_info *. diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c index e3a855fca75..dd2f4e8a31d 100644 --- a/gdb/a29k-tdep.c +++ b/gdb/a29k-tdep.c @@ -667,6 +667,10 @@ get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lvalp) CORE_ADDR addr; enum lval_type lval; + if (!target_has_registers) + error ("No registers."); + + /* Probably now redundant with the target_has_registers check. */ if (frame == 0) return; diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 59914b1acf6..96cea9df105 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -519,6 +519,9 @@ get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval) struct frame_info *frame1; CORE_ADDR addr; + if (!target_has_registers) + error ("No registers."); + if (optimized) *optimized = 0;