aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.h
AgeCommit message (Collapse)AuthorFilesLines
1995-10-24 * monitor.h (struct memrw_cmd->resp_delim): Document this as a regexp.Stu Grossman1-1/+2
1995-10-16 * Makefile.in sh3-rom.c config/sh/sh.mt config/sh/tm-sh.h: AddStu Grossman1-6/+0
sh3 monitor support. * monitor.c: Cleanup regexp compilation stuff to make it easier to use several regexps. * monitor.h: Get rid of struct rom_cmd_data. It's no longer used. * config/m68k/tm-monitor.h: Don't redefine NUM_REGS here. It just causes GDB to crash.
1995-08-02Update FSF address.Fred Fish1-1/+1
1995-05-19* defs.h (ATTR_FORMAT): New macro, expands to gcc's formatJ.T. Conklin1-2/+4
attribute when compiled by gcc. * defs.h, language.h, monitor.h: Changed many function declarations to use ATTR_FORMAT. * breakpoint.c (delete_command); source.c (directory_command); top.c (define_command): Changed call to query() that had too many arguments. * printcmd.c (address_info): Changed call to printf_filtered() that had too many arguments.
1995-05-18 * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,J.T. Conklin1-1/+2
printf_filtered, printf_unfiltered, printfi_filtered, query, warning, error, fatal, fatal_dump_core): Use stdarg.h macros when compiling with an ANSI compiler. * complain.c (complain): Likewise. * language.c (type_error, range_error): Likewise. * monitor.c (monitor_printf, monitor_printf_noecho): Likewise. * remote-array.c (printf_monitor, debuglogs): Likewise. * remote-mips.c (mips_error): Likewise. * remote-os9k.c (printf_monitor): Likewise. * remote-st.c (printf_stdebug): Likewise. * gdbtk.c (gdbtk_query): Likewise. * defs.h, complain.h, language.h, monitor.h: Add prototypes to match above changes. * printcmd.c: Remove uneeded #include <varargs.h>. * remote-e7000.c: Likewise. * f-typeprint.c (f_type_print_base): Fix typo found by above changes.
1995-05-11 * hppa-tdep.c (read_unwind_info): Cosmetic cleanup.Stu Grossman1-1/+2
* (unwind_command): Clean it up and make it print things out nicer. * monitor.c: Add ^C handling capability (mostly ripped off from remote.c). * (monitor_printf): Make it check the command echo. * (monitor_printf_noecho): Similar to above, but doesn't check for echo. * (monitor_stop): No longer waits for prompt. That is the job of the caller. This makes things work much better for monitor_wait, which waits for the prompt itself. * (monitor_open): Deal with new monitor_stop semantics. Also, flush input after sending init strings to get rid of junk that may be output. Also, don't always send \r to remote. Use monitor_ops->line_term cuz proper character isn't always \r. * (monitor_fetch_register): Switch to completely different algorithm to deal with lame-ass monitors which put spaces in the middle of numbers, and prompt with a space!!!!! * (monitor_read_memory_single): New routine to be used with monitors that can only return one byte/short/long at a time. This is selected via MO_GETMEM_READ_SINGLE. * (monitor_load_srec): Use monitor_printf_noecho for sending S records. Most targets don't echo them. * (monitor.h): Get rid of cmd_delim. Add line_delim. * op50n-rom.c (op50n_cmds): Fill it up. Make it work. * w89k-rom.c: Change all eols from \r to \n. Change load_resp to ^Q to prevent error message. * config/pa/tm-hppa.h (CALL_DUMMY (for hppro)): Add special instruction sequence at end to make restore_pc_queue happy.
1995-04-17 * cpu32bug-rom.c monitor.h op50-rom.c remote-est.c rom68k-rom.cStu Grossman1-3/+0
w89k-rom.c: Remove loadtypes, loadprotos and baudrates. * op50-rom.c: Fix copyrights and add load routine to op50n_cmds. * rom68k-rom.c (_initialize_rom68k): Don't set baud rate. * w89k-rom.c: Fix copyrights.
1995-04-17 * monitor.c: Move all xmodem stuff into xmodem.[ch]. RemoveStu Grossman1-4/+8
unnecessary remoteloadprotocol and remoteloadtype support. * (expect expect_prompt): Change names to monitor_expect and monitor_expect_prompt. Make them global. * (printf_monitor): Change name to monitor_printf. Make global. * (monitor_read_memory): Flush command echo to avoid parsing ambiguity with CPU32Bug monitor. * (monitor_load): Remove remoteloadprotocol and remoteloadtype support. Call target_ops->load_routine, default to monitor_load_srec. * (monitor_load_srec): Remove everything but S-record support. * monitor.h (monitor_ops): Add load_routine to provide monitor specific download capability. * remote-est.c: Clean up copyrights and comments. * w89k-rom.c: Use new xmodem support. * xmodem.c xmodem.h: New files to support xmodem downloads. * rom68k-rom.c remote-est.c: Fix copyrights, add load_routine entry to monitor_ops. * cpu32bug-rom.c: New file to support Moto BCC debuggers. * config/m68k/est.mt (TDEPFILES): Add cpu32bug.o. * config/pa/hppapro.mt (TDEPFILES): Add xmodem.o.
1995-04-13 * monitor.h (init_monitor_ops): Declare.Stan Shebs1-2/+5
* rom68k-rom.c: Clarify some comments. (rom68k_open): Define as static, to match decl.
1995-04-03 * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.Stu Grossman1-0/+1
* monitor.c (monitor_read_memory): Use previously mentioned flag to send proper format memory examine commands to the w89k monitor. Also, try to handle bizarre format of memory dump... * op50-rom.c w89k-rom.c: Update to new monitor.[ch] conventions.
1995-03-30start-sanitize-gdbtkStu Grossman1-0/+1
* Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate locations (per-host) for X11 include files. * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force the use of R5 libs. (X11_CFLAGS): Add this to indicate the locs of the R5 include files. end-sanitize-gdbtk * monitor.c monitor.h remote-est.c rom68k-rom.c: Add start of support for interrupting target. * monitor.c (monitor_open): Send stop command before doing anything else. * (monitor_load_srec): Fix record size calculation to prevent end of segment from getting trashed. * rom68k-rom.c: Update to latest version of struct monitor_ops. * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Fix byte-order problems. Makes DOS hosted function calling work. * sparclite/crt0.s: Define _start to make COFF happy. * testsuite/config/rom68k.exp (gdb_target_rom68k): Use $targetname, $serialport and $baud instead of hardwired variables. * testsuite/gdb.base/{sigall.exp signals.exp}: Skip these if the target doesn't support signals.
1995-03-25 * configure.in: Move test for m68*-est-* before m68*-*-coff*.Stu Grossman1-30/+56
* 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.
1995-03-15 * findvar.c (read_register_bytes write_register_bytes): MakeStu Grossman1-0/+8
these routines much smarter about updating registers from the target, only doing so when absolutely necessary. This really speeds up register modification on some remote targets. * monitor.c: More cleanups. Get rid of monitor_load_ascii_srec. BFD makes this unnecessary. Lots of debugging speedups. * (expect): NULL terminate return string. * (monitor_open monitor_supply_register parse_register_dump monitor_wait monitor_fetch_register): Switch to using GNU regexp library to parse multi-register displays. * (monitor_read_memory): Read multiple bytes (up to 16) at once. * (monitor_create_inferior): Call clear_proceed_status to make run command notice first breakpoint. * (monitor_load): Clean up. Reset inferior_pid, set pc to start address and reset symbol table stuff to make loads put things into a fresh state. * (monitor_load_srec): Lower sleep time to 1 second. * monitor.h (struct monitor_ops): Add register_pattern and supply_register to monitor_ops. * rom68k-rom.c: Add new support for handling register dumps.
1995-03-08 * monitor.c array-rom.c monitor.h rom68k-rom.c: Move target_opsStu Grossman1-16/+2
into monitor.c. * monitor.c (monitor_create_inferior): Allow run command to start program.
1995-03-08 * monitor.c (monitor_load): Set PC to start address when doneStu Grossman1-2/+1
loading. * array-rom.c monitor.h rom68k-rom.c: Clean up target_ops. Remove ref to monitor_create_inferior.
1995-03-07 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to makeStu Grossman1-18/+49
Sun make (with VPATH) work... * monitor.c monitor.h rom68k-rom.c: Serious cleanup to make IDP (rom68k) target work right. * array-rom.c op50-rom.c w89k-rom.c: Partial updates to new monitor.c interface. More work needs to be done here. * config/m68k/tm-monitor.h: Change DECR_PC_AFTER_BREAK to 0 to match the IDP monitor. Also, set NUM_REGS to 18 cuz there's no floating-point for this card.
1995-01-18Add GDBPROTO macro for checking the type of protocol.Rob Savoye1-1/+4
1994-12-30 * monitor.[ch], op50-rom.c, rom68k-rom.c, w89k-rom.c: Add supportRob Savoye1-0/+4
to monitor config structure for supported baud rates for a target and variable stop bits. * monitor.c (monitor_fetch_register): Store register values in big endian format on any host.
1994-11-15 * op50-rom.c, w89k-rom.c, monitor.c: Modify to use two variablesRob Savoye1-0/+2
to set remote load type and protocol. * rom68k-rom.c: Add to_stop in target_ops.
1994-10-15 * monitor.h, remote-mon.c: Hack up to so the old ROM monitorRob Savoye1-0/+12
interface code still works with the new ROM monitor structures. Fake out a couple of fields.
1994-10-12Cleanup debug logging, fix single stepping. WinBond works good!Rob Savoye1-0/+1
1994-10-12Breakpoints work, run works. Fixed "monitor" command.Rob Savoye1-0/+3
1994-10-11Memory_reads_inferior() and monitor_fetch_registers() now work good onRob Savoye1-15/+47
both targets. On to the "set" functions...
1993-02-14Remote support for the Rom68k monitor and the Motorola Bug monitor. This isRob Savoye1-0/+62
the first attempt at a generic debug monitor support file.