aboutsummaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-03 01:07:12 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-03 01:07:12 +0000
commit8ffd75c8a93075fb4a23bda7ae66e3b579038c6b (patch)
tree49685682ddada743c17ff32ee585d5c03b1054d7 /gdb/infptrace.c
parent2bff8e38bcfa1cbc460bd605e6907bc99158a096 (diff)
downloadgdb-8ffd75c8a93075fb4a23bda7ae66e3b579038c6b.zip
gdb-8ffd75c8a93075fb4a23bda7ae66e3b579038c6b.tar.gz
gdb-8ffd75c8a93075fb4a23bda7ae66e3b579038c6b.tar.bz2
Mips bringup and general cleanup
* cplus-dem.c: Move CPLUS_MARKER define to after defs.h. * infptrace.c (PT_WRITE_D, PT_READ_D): Use correct values. (This still doesn't seem to make MIPS bkpts work.) * mipsread.c: Remove dup "Reading symbol data..." msg. (symbol_file_command, add_file_command): Remove, obsol. * printcmd.c (ptype_command): Say "an enum" rather than "a enum". Wrap output appropriately. * stack.c (locals_info, catch_info, args_info): Check selected_frame rather than target_has_stack or coredumping. * valprint.c (type_print_varspec_suffix): Wrap "ptype" output of enums appropriately.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r--gdb/infptrace.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 03bb271..a5b976d 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -32,7 +32,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/dir.h>
#include <signal.h>
#include <sys/ioctl.h>
+#ifndef USG
#include <sys/ptrace.h>
+#endif
+
#if !defined (PT_KILL)
#define PT_KILL 8
#define PT_STEP 9
@@ -40,9 +43,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define PT_READ_U 3
#define PT_WRITE_U 6
#define PT_READ_I 1
+#define PT_READ_D 2
#define PT_WRITE_I 4
-/* The Following Change is for a Sun */
-#define PT_WRITE_D 4
+#define PT_WRITE_D 5
#endif /* No PT_KILL. */
#ifndef PT_ATTACH