aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/m68k
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-03-25 00:36:01 +0000
committerStu Grossman <grossman@cygnus>1995-03-25 00:36:01 +0000
commita25a9f49ca74743dc2210e1f4f7f401098d94134 (patch)
tree32b258ffc038d1dce5dcec6ccc75481520e21faa /gdb/config/m68k
parent1ef0c066d9137e86018ddf1528e0210b176fd09a (diff)
downloadfsf-binutils-gdb-a25a9f49ca74743dc2210e1f4f7f401098d94134.zip
fsf-binutils-gdb-a25a9f49ca74743dc2210e1f4f7f401098d94134.tar.gz
fsf-binutils-gdb-a25a9f49ca74743dc2210e1f4f7f401098d94134.tar.bz2
* configure.in: Move test for m68*-est-* before m68*-*-coff*.
* findvar.c: Move default def of CANNOT_STORE_REGISTER closer to the beginning of the code. * (write_register_gen): New routine. Analogous to read_register_gen. * (write_register_bytes): Another rewrite! Make it smarter about not updating regs with the same value. * monitor.c (printf_monitor readchar): Use stderr instead of stdout to output debug info. Also cleanup readchar a little. * (expect): Make sure that excessive responses are null terminated. * (monitor_open): Check for magic number in monitor_ops struct. Allow multiple commands as init strings. Also, clear all breakpoints. * (monitor_resume monitor_wait): Send a command to dump all the regs for those targets which don't do so when waking up after a continue command. * (monitor_wait): Handle excessive response output better. * (monitor_write_memory): Use block fill, word, and long word commands (if they exist) to write memory more efficiently. * General cleanups to use flag bits instead of individual flag words in monitor_ops struct. * (monitor_command): Return output from command. * (monitor_load_srec): Allocate buffer only once. Use alloca. Wait for load response string instead of using a timeout to start sending S-records. Fix bug where value of srec_frame shrinks. If hashmark is set, print `-' for retransmissions. General cleanups. * (monitor_make_srec): Get rid of S-record default type kludge. * monitor.h: Use seperate struct for memory and register read/write commands. Memory commands can come in byte, word, long, and longlong forms. * (monitor_ops): Change lots of fields. Generalize some stuff. Put all flags into flags word. Allow init to be a list of commands. Add command for clearing all breakpoints, block fill, dumping all registers. * remote-est.c: Rewrite to use new monitor conventions. * config/m68k/est.mt (TDEPFILES): Add monitor.o. * config/m68k/tm-est.h: Set NUM_REGS to 18. * testsuite/gdb.base/break.exp: Lots of cleanups. Use gdb_test more thoroughly.
Diffstat (limited to 'gdb/config/m68k')
-rw-r--r--gdb/config/m68k/est.mt2
-rw-r--r--gdb/config/m68k/tm-est.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/config/m68k/est.mt b/gdb/config/m68k/est.mt
index 4e0a332..d93fb97 100644
--- a/gdb/config/m68k/est.mt
+++ b/gdb/config/m68k/est.mt
@@ -1,3 +1,3 @@
# Target: m68k emulator EST-300
-TDEPFILES= m68k-tdep.o remote-est.o
+TDEPFILES= m68k-tdep.o monitor.o remote-est.o
TM_FILE= tm-est.h
diff --git a/gdb/config/m68k/tm-est.h b/gdb/config/m68k/tm-est.h
index 466d5d3..4b71aaa 100644
--- a/gdb/config/m68k/tm-est.h
+++ b/gdb/config/m68k/tm-est.h
@@ -28,6 +28,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* We have more complex, useful breakpoints on the target. */
#define DECR_PC_AFTER_BREAK 0
+#define NUM_REGS 18
+
#include "m68k/tm-m68k.h"
#undef FRAME_CHAIN