start-sanitize-gdbtk
* 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.
This commit is contained in:
parent
6d7bcd2f26
commit
a706069fdb
@ -1,3 +1,27 @@
|
||||
Wed Mar 29 17:09:29 1995 Stu Grossman (grossman@cygnus.com)
|
||||
|
||||
start-sanitize-gdbtk
|
||||
* 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.
|
||||
|
||||
Wed Mar 29 09:11:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||
|
||||
* defs.h (atof): Don't provide an external declaration if atof is
|
||||
|
@ -4,6 +4,9 @@ TERMCAP = -lcurses
|
||||
|
||||
XM_FILE= xm-hppah.h
|
||||
XDEPFILES= ser-tcp.o
|
||||
XM_CLIBS= -L/usr/lib/X11R5
|
||||
|
||||
X11_CFLAGS= -I/usr/include/X11R5
|
||||
|
||||
NAT_FILE= nm-hppah.h
|
||||
NATDEPFILES= hppah-nat.o coredep.o corelow.o inftarg.o fork-child.o somread.o infptrace.o hpread.o somsolib.o
|
||||
|
@ -578,13 +578,14 @@ arguments. */
|
||||
can assume it is operating on a pristine CALL_DUMMY, not one that
|
||||
has already been customized for a different function). */
|
||||
|
||||
#define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \
|
||||
#define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \
|
||||
{ \
|
||||
*(int *)((char *) dummyname+168) = (0x40000000|((fun-(pc+168))>>2)); \
|
||||
if (!gcc_p \
|
||||
store_unsigned_integer (dummyname + 168, 4, \
|
||||
0x40000000 | ((fun - (pc + 168)) >> 2)); \
|
||||
if (!gcc_p \
|
||||
&& (TYPE_CODE (type) == TYPE_CODE_STRUCT \
|
||||
|| TYPE_CODE (type) == TYPE_CODE_UNION)) \
|
||||
*(int *)((char *) dummyname+176) = (TYPE_LENGTH (type) & 0x1fff); \
|
||||
|| TYPE_CODE (type) == TYPE_CODE_UNION)) \
|
||||
store_unsigned_integer (dummyname + 176, 4, TYPE_LENGTH (type) & 0x1fff); \
|
||||
}
|
||||
|
||||
|
||||
|
712
gdb/monitor.c
712
gdb/monitor.c
File diff suppressed because it is too large
Load Diff
@ -81,6 +81,7 @@ struct monitor_ops
|
||||
char **init; /* List of init commands. NULL terminated. */
|
||||
char *cont; /* continue command */
|
||||
char *step; /* single step */
|
||||
char *stop; /* Interrupt program string */
|
||||
char *set_break; /* set a breakpoint */
|
||||
char *clr_break; /* clear a breakpoint */
|
||||
char *clr_all_break; /* Clear all breakpoints */
|
||||
|
@ -104,6 +104,7 @@ static struct monitor_ops est_cmds =
|
||||
est_inits, /* Init strings */
|
||||
"go\r", /* continue command */
|
||||
"sidr\r", /* single step */
|
||||
"\003", /* ^C interrupts the program */
|
||||
"sb %x\r", /* set a breakpoint */
|
||||
"rb %x\r", /* clear a breakpoint */
|
||||
"rb\r", /* clear all breakpoints */
|
||||
|
@ -99,24 +99,33 @@ static struct target_ops rom68k_ops;
|
||||
static char *rom68k_loadtypes[] = {"none", "srec", "default", NULL};
|
||||
static char *rom68k_loadprotos[] = {"none", NULL};
|
||||
|
||||
static char *rom68k_inits[] = {".\r\r", NULL}; /* Exits pm/pr & download cmds */
|
||||
|
||||
static struct monitor_ops rom68k_cmds =
|
||||
{
|
||||
1, /* 1 for ASCII, 0 for binary */
|
||||
".\r\r", /* monitor init string */
|
||||
"go \r", /* execute or usually GO command */
|
||||
"go \r", /* continue command */
|
||||
"st \r", /* single step */
|
||||
0, /* flags */
|
||||
rom68k_inits, /* monitor init string */
|
||||
"go\r", /* continue command */
|
||||
"st\r", /* single step */
|
||||
NULL, /* No way to interrupt program */
|
||||
"db %x\r", /* set a breakpoint */
|
||||
"cb %x\r", /* clear a breakpoint */
|
||||
0, /* 0 for number, 1 for address */
|
||||
"cb *\r", /* clear all breakpoints */
|
||||
"fm %x %x %x\r", /* fill (start len val) */
|
||||
{
|
||||
"pm %x %x\r", /* setmem.cmd (addr, value) */
|
||||
"pm %x %x\r", /* setmem.cmdb (addr, value) */
|
||||
"pm.w %x %x\r", /* setmem.cmdw (addr, value) */
|
||||
"pm.l %x %x\r", /* setmem.cmdl (addr, value) */
|
||||
NULL, /* setmem.cmdll (addr, value) */
|
||||
NULL, /* setreg.resp_delim */
|
||||
NULL, /* setreg.term */
|
||||
NULL, /* setreg.term_cmd */
|
||||
},
|
||||
{
|
||||
"dm %x %x\r", /* getmem.cmd (addr, len) */
|
||||
"dm %x %x\r", /* getmem.cmdb (addr, len) */
|
||||
"dm.w %x %x\r", /* getmem.cmdw (addr, len) */
|
||||
"dm.l %x %x\r", /* getmem.cmdl (addr, len) */
|
||||
NULL, /* getmem.cmdll (addr, len) */
|
||||
" ", /* getmem.resp_delim */
|
||||
NULL, /* getmem.term */
|
||||
NULL, /* getmem.term_cmd */
|
||||
@ -133,10 +142,12 @@ static struct monitor_ops rom68k_cmds =
|
||||
"= ", /* getreg.term */
|
||||
".\r" /* getreg.term_cmd */
|
||||
},
|
||||
"dr\r", /* dump_registers */
|
||||
/* register_pattern */
|
||||
"\\(\\w+\\)=\\([0-9a-fA-F]+\\( +[0-9a-fA-F]+\\b\\)*\\)",
|
||||
rom68k_supply_register, /* supply_register */
|
||||
"dc\r", /* download command */
|
||||
"Waiting for S-records from host... ", /* Load response */
|
||||
"ROM68K :->", /* monitor command prompt */
|
||||
"=", /* end-of-command delimitor */
|
||||
".\r", /* optional command terminator */
|
||||
@ -145,7 +156,8 @@ static struct monitor_ops rom68k_cmds =
|
||||
rom68k_loadprotos, /* loadprotos */
|
||||
"9600", /* supported baud rates */
|
||||
SERIAL_1_STOPBITS, /* number of stop bits */
|
||||
rom68k_regnames /* registers names */
|
||||
rom68k_regnames, /* registers names */
|
||||
MONITOR_OPS_MAGIC /* magic */
|
||||
};
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user