* config/mips/mipsm3.mh, config/i386/i386m3.mh,
config/ns32k/ns32km3.mh: Define NAT_FILE. * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H (it was inconsistent and namespace-wrong) to NM_M3_H. * m3-nat.c (mach_really_wait): Change parameter name to ourstatus. (m3_open): New function. (m3_ops): Use it. * TODO: Update Mach section. * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
This commit is contained in:
parent
d41b3eed26
commit
01cd70b985
8 changed files with 33 additions and 26 deletions
|
@ -1,3 +1,16 @@
|
||||||
|
Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* config/mips/mipsm3.mh, config/i386/i386m3.mh,
|
||||||
|
config/ns32k/ns32km3.mh: Define NAT_FILE.
|
||||||
|
* config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
|
||||||
|
(it was inconsistent and namespace-wrong) to NM_M3_H.
|
||||||
|
* m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
|
||||||
|
(m3_open): New function.
|
||||||
|
(m3_ops): Use it.
|
||||||
|
* TODO: Update Mach section.
|
||||||
|
|
||||||
|
* Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
|
||||||
|
|
||||||
Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
|
Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
|
||||||
|
|
||||||
* printcmd.c (printf_command): Add missing single-letter
|
* printcmd.c (printf_command): Add missing single-letter
|
||||||
|
|
|
@ -446,8 +446,6 @@ OBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
|
||||||
c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o nlmread.o \
|
c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o nlmread.o \
|
||||||
serial.o mdebugread.o
|
serial.o mdebugread.o
|
||||||
|
|
||||||
RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
|
|
||||||
|
|
||||||
TSOBS = inflow.o
|
TSOBS = inflow.o
|
||||||
|
|
||||||
NTSOBS = standalone.o
|
NTSOBS = standalone.o
|
||||||
|
@ -574,14 +572,6 @@ gdb1: gdb
|
||||||
rm -f gdb1
|
rm -f gdb1
|
||||||
cp gdb gdb1
|
cp gdb gdb1
|
||||||
|
|
||||||
# This is a remote stub which runs under unix and starts up an
|
|
||||||
# inferior process. This is at least useful for debugging GDB's
|
|
||||||
# remote support.
|
|
||||||
rapp: $(RAPP_OBS)
|
|
||||||
rm -f rapp_init.c
|
|
||||||
$(srcdir)/munch $(MUNCH_DEFINE) $(RAPP_OBS) > rapp_init.c
|
|
||||||
$(CC-LD) $(INTERNAL_LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS)
|
|
||||||
|
|
||||||
config.status:
|
config.status:
|
||||||
@echo "You must configure gdb. Look at the README file for details."
|
@echo "You must configure gdb. Look at the README file for details."
|
||||||
@false
|
@false
|
||||||
|
|
15
gdb/TODO
15
gdb/TODO
|
@ -10,9 +10,8 @@ bug-gdb@prep.ai.mit.edu.
|
||||||
Things to do for Mach
|
Things to do for Mach
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
This section is up to date as of 28 Oct 1993.
|
Note: If mach_port_t is undefined, you have mach2 headers instead of
|
||||||
|
mach3 headers. Get the mach3 headers or typedef it to unsigned int.
|
||||||
All my attempted compilation was on douglas.gnu.ai.mit.edu.
|
|
||||||
|
|
||||||
0. Get it to compile and run again, especially for non-threaded
|
0. Get it to compile and run again, especially for non-threaded
|
||||||
programs (some of the following are sub-tasks for this).
|
programs (some of the following are sub-tasks for this).
|
||||||
|
@ -45,15 +44,9 @@ Believed to be fixed (fix not yet tested).
|
||||||
|
|
||||||
6. i386_mach3_float_info and register_addr were undefined in the
|
6. i386_mach3_float_info and register_addr were undefined in the
|
||||||
link. I haven't investigated, but probably just another easy
|
link. I haven't investigated, but probably just another easy
|
||||||
configuration thing or something.
|
configuration thing or something. (possibly already fixed).
|
||||||
|
|
||||||
7. I couldn't find mach_port_t in any of the headers in
|
7. Implement the features which CMU gdb has which the main GDB does
|
||||||
/usr/include/*.h or /usr/include/mach/*.h (I think those are the two
|
|
||||||
places I grepped; I don't know what headers I was actually getting).
|
|
||||||
Typedeffing it to void * in nm-m3.h seemed to work, but of course
|
|
||||||
that's hardly an elegant solution.
|
|
||||||
|
|
||||||
8. Implement the features which CMU gdb has which the main GDB does
|
|
||||||
not. This could be done by getting paperwork from CMU and merging
|
not. This could be done by getting paperwork from CMU and merging
|
||||||
their changes, or by reimplementing them.
|
their changes, or by reimplementing them.
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
XDEPFILES= i387-tdep.o coredep.o
|
XDEPFILES= i387-tdep.o coredep.o
|
||||||
NATDEPFILES= i386m3-nat.o m3-nat.o
|
NATDEPFILES= i386m3-nat.o m3-nat.o
|
||||||
XM_FILE= xm-i386m3.h
|
XM_FILE= xm-i386m3.h
|
||||||
|
NAT_FILE= nm-m3.h
|
||||||
|
|
||||||
# Don't use the mmalloc library in Mach 3.
|
# Don't use the mmalloc library in Mach 3.
|
||||||
MMALLOC =
|
MMALLOC =
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
XDEPFILES= coredep.o
|
XDEPFILES= coredep.o
|
||||||
NATDEPFILES= mipsm3-nat.o m3-nat.o
|
NATDEPFILES= mipsm3-nat.o m3-nat.o
|
||||||
XM_FILE= xm-mipsm3.h
|
XM_FILE= xm-mipsm3.h
|
||||||
|
NAT_FILE= nm-m3.h
|
||||||
|
|
||||||
# Don't use the mmalloc library in Mach 3.
|
# Don't use the mmalloc library in Mach 3.
|
||||||
MMALLOC =
|
MMALLOC =
|
||||||
|
|
|
@ -18,8 +18,8 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
#ifndef _OS_MACH3_H_
|
#ifndef NM_M3_H
|
||||||
#define _OS_MACH3_H
|
#define NM_M3_H
|
||||||
|
|
||||||
#include <mach.h>
|
#include <mach.h>
|
||||||
|
|
||||||
|
@ -114,4 +114,4 @@ struct emul_stack_top {
|
||||||
/* If in mach_msg() and ^C is typed set immediate_quit */
|
/* If in mach_msg() and ^C is typed set immediate_quit */
|
||||||
#define REQUEST_QUIT() mach3_request_quit ()
|
#define REQUEST_QUIT() mach3_request_quit ()
|
||||||
|
|
||||||
#endif /* _OS_MACH3_H_ */
|
#endif /* NM_M3_H */
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
NATDEPFILES= m3-nat.o ns32km3-nat.o
|
NATDEPFILES= m3-nat.o ns32km3-nat.o
|
||||||
XM_FILE= xm-ns32km3.h
|
XM_FILE= xm-ns32km3.h
|
||||||
|
NAT_FILE= nm-m3.h
|
||||||
|
|
||||||
# Don't use the mmalloc library in Mach 3.
|
# Don't use the mmalloc library in Mach 3.
|
||||||
MMALLOC =
|
MMALLOC =
|
||||||
|
|
12
gdb/m3-nat.c
12
gdb/m3-nat.c
|
@ -1211,7 +1211,7 @@ int mach_really_waiting;
|
||||||
Returns the inferior_pid for rest of gdb.
|
Returns the inferior_pid for rest of gdb.
|
||||||
Side effects: Set *OURSTATUS. */
|
Side effects: Set *OURSTATUS. */
|
||||||
int
|
int
|
||||||
mach_really_wait (w)
|
mach_really_wait (ourstatus)
|
||||||
struct target_waitstatus *ourstatus;
|
struct target_waitstatus *ourstatus;
|
||||||
{
|
{
|
||||||
int pid;
|
int pid;
|
||||||
|
@ -4225,6 +4225,14 @@ m3_detach (args, from_tty)
|
||||||
}
|
}
|
||||||
#endif /* ATTACH_DETACH */
|
#endif /* ATTACH_DETACH */
|
||||||
|
|
||||||
|
static void
|
||||||
|
m3_open (arg, from_tty)
|
||||||
|
char *arg;
|
||||||
|
int from_tty;
|
||||||
|
{
|
||||||
|
error ("Use the \"run\" command to start a Unix child process.");
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef DUMP_SYSCALL
|
#ifdef DUMP_SYSCALL
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
#define STR(x) #x
|
#define STR(x) #x
|
||||||
|
@ -4445,7 +4453,7 @@ struct target_ops m3_ops = {
|
||||||
"mach", /* to_shortname */
|
"mach", /* to_shortname */
|
||||||
"Mach child process", /* to_longname */
|
"Mach child process", /* to_longname */
|
||||||
"Mach child process (started by the \"run\" command).", /* to_doc */
|
"Mach child process (started by the \"run\" command).", /* to_doc */
|
||||||
??_open, /* to_open */
|
m3_open, /* to_open */
|
||||||
0, /* to_close */
|
0, /* to_close */
|
||||||
m3_attach, /* to_attach */
|
m3_attach, /* to_attach */
|
||||||
m3_detach, /* to_detach */
|
m3_detach, /* to_detach */
|
||||||
|
|
Loading…
Add table
Reference in a new issue