aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
AgeCommit message (Collapse)AuthorFilesLines
1996-12-10 * monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.David Edelsohn1-25/+32
1996-11-01Make gdb compile & link cleanly on powerpc-linuxMichael Meissner1-3/+3
1996-11-01Thu Oct 31 16:37:17 1996 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-6/+25
* m32r-tdep.c: Improved frame_chain and fn prologue analysis. * configure.tgt: Add entry for m32r target. * monitor.h: Add a flag to tell monitor_store_register to use (val, regno) instead of (regno, val). * monitor.c: Make monitor_store_register honor the above flag. Make monitor_exp ignore DC1/DC3 for m32r. Increase buf size in monitor_dump_regs.
1996-06-28 * configure,configure.in: Add target sparclet.Dawn Perchik1-2/+45
* monitor.h,monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if command to start process running on target is different from one to continue execution), MO_HEX_PREFIX (if addresses from monitor have a "0x" prefix). * monitor.c,parse.c,sparc-tdep.c: Don't require strings in the registers array. This is to allow NULLs to be place holders in the tm-*.h file so that only minor changes are needed when a new processor is introduced (eg, one without floating point). * sparc-tdep.c: Conditionally remove dependancies on floating point. * sparclet-rom.c,config/sparc/sparclet.mt,config/sparc/tm-sparclet.h: New files for target sparclet. * symfile.c: Add option for 2nd parameter on load command : a load offset added to the vma of each section.
1996-06-28 * monitor.c (monitor_debug): Fix remotedebug buffering.Dawn Perchik1-12/+42
1996-04-19 * monitor.c: Use int rather than LONGEST for values, sinceStan Shebs1-61/+121
the formatting strings are not prepared to accept long longs. PR 9432
1995-11-29Make debugging remote gdb friendlierMichael Meissner1-218/+52
1995-10-24 * monitor.c (monitor_expect_regexp): Same as monitor_expect, butStu Grossman1-21/+95
with the obvious extension. (monitor_read_memory_single): Use regexp for getmem.resp_delim because of parsing ambiguities caused by certain monitors. (monitor_read_memory): Use new regexp stuff to parse getmem.resp_delim. * sh3-rom.c: Finish off table. Use new regexp capability for getmem commands.
1995-09-13 * monitor.c (monitor_make_srec): Fix thinkos in computationJeff Law1-23/+18
of addr_size. Critical patch from Stu.
1995-08-01* configure.in: Check for working mmap, ansi headers, string.h,J.T. Conklin1-4/+5
strings.h, and memory.h. * configure: Regenerated. * gdb_stat.h: New file, "portable" <sys/stat.h>. * gdb_string.h: New file, "portable" <string.h>. * altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c, convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c, gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c, i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c, mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c, rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c, symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c, ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h" instead of <sys/stat.h>. * alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c, ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c, core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c, dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c, exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c, fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c, inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c, m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c, monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c, printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c, remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c, remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c, remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c, remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c, remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c, solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c, symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include "gdb_string.h" instead of <string.h>. * gdbtk.c: Likewise. * config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h, sparc/xm-sun4os4.h (HAVE_MMAP): Removed. * config/xm-lynx.h, config/i386/xm-ptx.h, config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h, config/mips/xm-irix3.h, config/mips/xm-mips.h, config/mips/xm-news-mips.h, config/mips/xm-riscos.h, config/pa/hppah.h, config/rs6000/xm-rs6000.h, config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h, config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h, config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed. * config/mips/xm-irix3.h, config/mips/xm-mips.h, config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-06-21Hmm.. The ChangeLog went in, but not the code....Steve Chamberlain1-43/+111
* monitor.c: Turn on caching. (monitor_printf): If a ^C was sent, don't expect to see its echo. (monitor_open): Enable caching. (monitor_resume, monitor_load): Flush cache. (monitor_xfer_memory): Call cache routine. (monitor_dump_regs): New. (monitor_fetch_registers): If monitor_dump_regs available then use it. (monitor_load): Don't ref exec_bfd if it's NULL. (monitor_load_srec): Use new monitor_make_srec calling convention. (monitor_make_srec): Rewrite to cope with two, three and four byte addresses. * remote-hms.c (hms_cmds): Initialze end-of-command delim. * dcache.h, dcache.h: Rewritten. * remote.c: Reenable caching. (getpkt): Reduce MAX_TRIES to 3. (remote_xfer_memory): Use dcache_xfer_memory. * defs.h (error_hook): New. * top.c (error_hook): New definition. * utils.c (error): Use error_hook if initialized. * sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use HAVE_SOCKETS in place of #ifndef GO32.
1995-06-20 * monitor.c (monitor_wait): Don't use the watchdog timeoutStan Shebs1-6/+24
if its value is 0. * w89k-rom.c (w89k_open): Define to be static.
1995-05-18 * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,J.T. Conklin1-4/+22
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-17* monitor.c (monitor_printf): Changed format specification inJ.T. Conklin1-51/+288
error message to work with pre-ansi compilers. (monitor_load_srec): reduced length of s-records from 128 to 32 bytes so download is more reliable with the rom68k monitor. * rom68k-rom.c: Added trailing space to prompt string. * config/i386/xm-i386sco.h (HAVE_STRSTR): Removed. * config/i386/xm-go32.h, mswin/xm.h (SYS_SIGLIST_MISSING): Removed. * defs.h, config/{xm-lynx.h, xm-nbsd.h}, config/i386/{xm-i386bsd.h, xm-linux.h}, config/m68k/xm-hp300bsd.h, config/mips/xm-irix4.h, config/ns32k/xm-ns32km3.h, doc/gdbint.texinfo (PSIGNAL_IN_SIGNAL_H): Removed.
1995-05-04 * monitor.c (monitor_command): Don't use PROMPT until monitorStan Shebs1-383/+129
target is known to be open. (monitor_make_srec): Don't define size of hextab.
1995-03-30start-sanitize-gdbtkStu Grossman1-279/+433
* 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-08 * monitor.c (monitor_load): Set PC to start address when doneStu Grossman1-0/+4
loading. * array-rom.c monitor.h rom68k-rom.c: Clean up target_ops. Remove ref to monitor_create_inferior.
1995-03-08 * monitor.c: More general cleanups. Add prototypes, removeStu Grossman1-138/+26
unused routines. Fix bug with wrong number of args to error().
1995-03-07 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to makeStu Grossman1-1100/+359
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-02-28 * defs.h: define SWAP_TARGET_AND_HOST macro.Kung Hsu1-21/+8
* findvar.c, monitor.c, hppa-tdep.c: remove definition of SWAP_TARGET_AND_HOST.
1995-02-27 * monitor.c: General gcc -Wall lint cleanup and reformat.Stan Shebs1-912/+1022
(monitor_command): If no args, send an empty command.
1995-02-24 * monitor.c (monitor_load_ascii_srec): Add a one second sleepStu Grossman1-4/+5
after send LOAD_CMD to prevent loss of first S-record.
1995-02-09 * monitor.c: Fix so all the output shows up in the GUI commandRob Savoye1-21/+23
window.
1995-02-03 * array-rom.c: Remove the non GDB remote protocol config stuff.Rob Savoye1-67/+515
* monitor.c: All reading/writing functions for memory and registers work.
1994-12-30 * monitor.[ch], op50-rom.c, rom68k-rom.c, w89k-rom.c: Add supportRob Savoye1-19/+94
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-12-21 * monitor.c: Now supports xmodem as a remoteloadprotocol.Rob Savoye1-4/+27
1994-11-18 * monitor.[ch], w89k-rom.c, op50n-rom.c, idp-rom.c: Add supportRob Savoye1-3/+15
for two variables used to control the load protocol and conversion type.
1994-11-15 * op50-rom.c, w89k-rom.c, monitor.c: Modify to use two variablesRob Savoye1-4/+45
to set remote load type and protocol. * rom68k-rom.c: Add to_stop in target_ops.
1994-11-10 * rom68k-rom.c: New file. Replaces the old remote-mon.c and usesRob Savoye1-154/+342
the new generic ROM interface in monitor.c. * config/m68k/monitor.mt: Use new ROM support. * monitor.c: Add support for xmodem download protocol.
1994-10-18 * monitor.c (set_loadtype_command): Fixed so it doesn't core dump.Rob Savoye1-44/+285
* monitor.c (monitor_load): check the load type and load the file accordingly. Default to gr_load_image(). * monitor.c (monitor_load_ascii_srec): Load an ascii file in srecord format by downloading to the monitor. * w89k-rom.c, op50n-rom.c: set supported load types.
1994-10-13Cleanup debugging messages.Rob Savoye1-34/+19
1994-10-12Cleanup debug logging, fix single stepping. WinBond works good!Rob Savoye1-88/+115
1994-10-12Breakpoints work, run works. Fixed "monitor" command.Rob Savoye1-53/+102
1994-10-11Writing to memory now works for both targets.Rob Savoye1-39/+54
1994-10-11Memory_reads_inferior() and monitor_fetch_registers() now work good onRob Savoye1-0/+988
both targets. On to the "set" functions...