summaryrefslogtreecommitdiff
path: root/gdb/monitor.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace preg() with phex(). Cleanup monitor.c.Andrew Cagney2000-05-221-1/+2
|
* 2000-05-03 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-05-031-3/+6
| | | | | | * monitor.c (monitor_fetch_register): MAX_REGISTER_RAW_SIZE is not static in the MULTI_ARCH world, so don't use it in a static array declaration.
* 2000-04-03 H.J. Lu <hjl@gnu.org>H.J. Lu2000-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX is defined and <regex.h> otherwise. * irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h". * monitor.c: Likewise. * osfsolib.c: Likewise. * solib.c: Likewise. * source.c: Likewise. * symtab.c: Likewise. * Makefile.in (REGEX): Changed to @REGEX@. (REGEX_CFLAGS): New. (REGEX1): Removed. (ADD_DEPS): Use $(REGEX) instead of $(REGEX1). (INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS). * configure.in (--with-included-regex): New switch. (REGEX): New. Subsstitue @REGEX@ in Makefile.in. (REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in. * configure: Regenerated.
* The set debug changesDaniel Berlin2000-03-281-7/+3
|
* Replace ../include/wait.h with gdb_wait.h.Andrew Cagney2000-02-091-1/+1
|
* import gdb-2000-02-01 snapshotJason Molenda2000-02-021-3/+2
|
* import gdb-1999-11-16 snapshotJason Molenda1999-11-171-0/+1
|
* import gdb-1999-10-11 snapshotJason Molenda1999-10-121-126/+149
|
* import gdb-1999-09-08 snapshotStan Shebs1999-09-091-16/+36
|
* import gdb-1999-08-09 snapshotJason Molenda1999-08-091-40/+8
|
* import gdb-1999-08-02 snapshotJason Molenda1999-08-021-3/+37
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-321/+382
|
* import gdb-1999-0519Jason Molenda1999-05-191-7/+23
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-14/+20
|
* Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1999-04-161-0/+2296
|
* Initial creation of sourceware repositoryStan Shebs1999-04-161-2294/+0
|
* 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda1999-01-131-0/+3
| | | | | | | * monitor.c (init_monitor_ops): Initialize the monitor_ops structure if it hasn't already been done. PR 18735
* hp merge changes -- too numerous to mention here; see ChangeLog andDavid Taylor1998-12-281-14/+38
| | | | ChangeLog-gdbtk for details.
* * monitor.c (monitor_printable_string): New function to convert a intoAndrew Cagney1998-12-141-31/+121
| | | | | | | | | | | | | a printable representation. (monitor_error): Call error after converting string into printable format. (monitor_printf{,_noecho}): If EXTRA_RDEBUG is defined, convert string into printable form before printing. (monitor_expect): Ditto. (monitor_read_memory{,_single}): Call monitor_error, not error. (monitor_read_memory): Return immediately if length is 0. * ppcbug-rom.c (init_ppc_cmds): Fill in dump_registers field, which is now required.
* 1998-12-03 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda1998-12-041-0/+3
| | | | | | | | | | | | | | | | | * monitor.c (monitor_read_memory): Zero out pattern buffers before calling re_search. (parse_register_dump): Ditto. PR 18049. This bug had existed erratically since I upgraded to the new gnu-regex.c this last summer. The problem is mostly in parse_register_dump; the allocated structure has some random values in it and there is a flag set in the register_pattern structure by the gnu-regex library which indicates that the values in the re_registers should be trusted. If those arbitrary contents aren't zero, gnu-regex tries to run realloc on them and we get a core dump on some hosts for some targets when the moon is just right.
* Clean up function return types. Functions not returning values,Andrew Cagney1998-12-031-14/+10
| | | | functions unnecessarily returning values.
* CARP: --enable-build-warnings=-Werror: Fix problems stopping GDB beingAndrew Cagney1998-11-251-48/+56
| | | | canadian-crossed to host i386-cygwin.
* Wed Apr 29 10:20:40 1998 John Metzler <jmetzler@cygnus.com>John Metzler1998-04-291-58/+473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nec4102rom.c : New file implements rom monitor adapter for nec-vr4102 board. This board hosts the vr4111 chip. This file required extenstions to the monitor_ops structure, hooks for wiat filter, new flags. This version does not support more than one breakpoint and resuming after a breakpoint in 16 bit mode is completely disfunctional. * monitor.h : Defined additional hooks for dmpregs, confinuer_hooks and wait_filter. These additions require that all rom monitor interfaces be recoded to to initializa monitor ops using assignments rather than static structure initialization. Added new bits to flags MO_EXACT_DUMPADDR, MO_HAS_BLOCKWRITES * monitor.c (RDEBUG): Conditional tracing throughout the file. (fromhex): Now recognized upper cse hex digits (monitor_printf_noecho): (monitor_readchar): Tracing interferes with input timing. (monitor_open): Register different memory write functions with dcache_init if MO_HAS_BLOCKWRITES. (flush_monior_dcache): Added as an additional utilty. (monitor-resume): Call continue hook if one has been supplied. (monitor_wait_filter): New function Factored out of monitor wait and used if alternate wait-filter has not been provided. (monitor_wait): call alternate wait filter if provided. Call monitor_dump_regs, a new function factored out from inline code. (monitor_dump_block): A new function used as a utility when monitors must dump several blocks of registers using different commands. (monitor_dump_regs): Call alternate function if provided. Uses new hook in monitor.h. (monitor_write_memory): Engage previouly added hook MO_FILL_USES_ADDR. (monitor_write_even_block): new function supports writing long blocks of 4byte words. (longlongendswap): new internal function (monitor_write_memory_longlongs): new function writes large blocks using command to enter a long long. (monitor_write-memory_block): new Function figures out which block mod to use. (monitor_read_memory): Can now handle dump formats in which the bytes preceeding the requested data is not printed. * monitor.h: Added new fields to the structure
* * monitor.c (monitor_write, monitor_readchar): New functions.Mark Alexander1998-01-241-4/+45
| | | | | * monitor.h (monitor_write, monitor_readchar): Declare. * dve3900-rom.c: Add support for fast loading on ethernet connections.
* * monitor.h (MO_PRINT_PROGRAM_OUTPUT): Define.Mark Alexander1998-01-051-0/+10
| | | | | | * monitor.c (monitor_wait): Echo program output. * dve3900-rom.c (_initialize_r3900_rom): Remove MO_HANDLE_NL flag, add MO_PRINT_PROGRAM_OUTPUT flag.
* * dve3900-rom.c: New file to support Densan DVE-R3900/20 board.Mark Alexander1997-12-291-95/+152
| | | | | | | | | | | | | | | | | | | | * monitor.c (monitor_debug): Move to utils.c, rename to puts_debug. (monitor_write_memory, monitor_read_memory, monitor_insert_breakpoint, monitor_remove_breakpoint): Remove useless address bits if current monitor has MO_ADDR_BITS_REMOVE flag. * monitor.h (MO_ADDR_BITS_REMOVE): Define. * utils.c (puts_debug): Formerly monitor_debug from monitor.c; move here and make public. Add better support for carriage returns. * defs.h (puts_debug): Declare. * dsrec.c (load_srec): Use puts_debug to print remotedebug information. Output header record correctly. (make_srec): Output a header record instead of a termination record if sect is non-NULL (value is ignored), but abfd is NULL. * config/mips/tm-tx39.h (DEFAULT_MIPS_TYPE): Remove definition. (REGISTER_NAMES): Define to add R3900-specific registers. * config/mips/tm-tx39l.h: Ditto. * config/mips/tx39.mt (TDEPFILES): Add dve3900-rom.o and support files. * config/mips/tx39l.mt: Ditto.
* * monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.David Edelsohn1996-12-101-25/+32
|
* Make gdb compile & link cleanly on powerpc-linuxMichael Meissner1996-11-011-3/+3
|
* Thu Oct 31 16:37:17 1996 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1996-11-011-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.
* * configure,configure.in: Add target sparclet.Dawn Perchik1996-06-281-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.
* * monitor.c (monitor_debug): Fix remotedebug buffering.Dawn Perchik1996-06-281-12/+42
|
* * monitor.c: Use int rather than LONGEST for values, sinceStan Shebs1996-04-191-61/+121
| | | | | the formatting strings are not prepared to accept long longs. PR 9432
* Make debugging remote gdb friendlierMichael Meissner1995-11-291-218/+52
|
* * monitor.c (monitor_expect_regexp): Same as monitor_expect, butStu Grossman1995-10-241-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.
* * monitor.c (monitor_make_srec): Fix thinkos in computationJeff Law1995-09-131-23/+18
| | | | | of addr_size. Critical patch from Stu.
* * configure.in: Check for working mmap, ansi headers, string.h,J.T. Conklin1995-08-011-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.
* Hmm.. The ChangeLog went in, but not the code....Steve Chamberlain1995-06-211-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.
* * monitor.c (monitor_wait): Don't use the watchdog timeoutStan Shebs1995-06-201-6/+24
| | | | | if its value is 0. * w89k-rom.c (w89k_open): Define to be static.
* * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,J.T. Conklin1995-05-181-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.
* * monitor.c (monitor_printf): Changed format specification inJ.T. Conklin1995-05-171-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.
* * monitor.c (monitor_command): Don't use PROMPT until monitorStan Shebs1995-05-041-383/+129
| | | | | target is known to be open. (monitor_make_srec): Don't define size of hextab.
* start-sanitize-gdbtkStu Grossman1995-03-301-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.
* * monitor.c (monitor_load): Set PC to start address when doneStu Grossman1995-03-081-0/+4
| | | | | | | loading. * array-rom.c monitor.h rom68k-rom.c: Clean up target_ops. Remove ref to monitor_create_inferior.
* * monitor.c: More general cleanups. Add prototypes, removeStu Grossman1995-03-081-138/+26
| | | | unused routines. Fix bug with wrong number of args to error().
* * Makefile.in: Add rules for monitor.o and rom68k-rom.o to makeStu Grossman1995-03-071-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.
* * defs.h: define SWAP_TARGET_AND_HOST macro.Kung Hsu1995-02-281-21/+8
| | | | | * findvar.c, monitor.c, hppa-tdep.c: remove definition of SWAP_TARGET_AND_HOST.
* * monitor.c: General gcc -Wall lint cleanup and reformat.Stan Shebs1995-02-271-912/+1022
| | | | (monitor_command): If no args, send an empty command.
* * monitor.c (monitor_load_ascii_srec): Add a one second sleepStu Grossman1995-02-241-4/+5
| | | | after send LOAD_CMD to prevent loss of first S-record.
* * monitor.c: Fix so all the output shows up in the GUI commandRob Savoye1995-02-091-21/+23
| | | | window.
* * array-rom.c: Remove the non GDB remote protocol config stuff.Rob Savoye1995-02-031-67/+515
| | | | | * monitor.c: All reading/writing functions for memory and registers work.