Add a nasty hack to get remote kernel gdb working from ddb. ddb would
complain before that a suitable gdb port had not been setup because gdbdev was NULL. This abuses the fact that the gdb port is hard-coded to the address normally assigned to sio1 and thus hard-codes in sio1 as the gdb port. Yuck.
This commit is contained in:
parent
b162b45509
commit
a0e1678488
@ -3240,10 +3240,19 @@ siogdbattach(port, speed)
|
||||
int s;
|
||||
u_char cfcr;
|
||||
struct siocnstate sp;
|
||||
int unit = 1; /* XXX !!! */
|
||||
|
||||
siogdbiobase = port;
|
||||
gdbdefaultrate = speed;
|
||||
|
||||
printf("sio%d: gdb debugging port\n", unit);
|
||||
siogdbunit = unit;
|
||||
#if DDB > 0
|
||||
gdbdev = makedev(CDEV_MAJOR, unit);
|
||||
gdb_getc = siocngetc;
|
||||
gdb_putc = siocnputc;
|
||||
#endif
|
||||
|
||||
s = spltty();
|
||||
|
||||
/*
|
||||
|
@ -3240,10 +3240,19 @@ siogdbattach(port, speed)
|
||||
int s;
|
||||
u_char cfcr;
|
||||
struct siocnstate sp;
|
||||
int unit = 1; /* XXX !!! */
|
||||
|
||||
siogdbiobase = port;
|
||||
gdbdefaultrate = speed;
|
||||
|
||||
printf("sio%d: gdb debugging port\n", unit);
|
||||
siogdbunit = unit;
|
||||
#if DDB > 0
|
||||
gdbdev = makedev(CDEV_MAJOR, unit);
|
||||
gdb_getc = siocngetc;
|
||||
gdb_putc = siocnputc;
|
||||
#endif
|
||||
|
||||
s = spltty();
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user