aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2005-06-23 09:21:45 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2005-06-23 09:21:45 +0000
commit4247cafddf8c48cc8dced916f0ee045356afeb08 (patch)
tree32861c4ce8e24f8a7b66413a5680ea9916122296
parent7d329e61dae01961982e5a49a8960e96be3825cc (diff)
downloadgdb-4247cafddf8c48cc8dced916f0ee045356afeb08.zip
gdb-4247cafddf8c48cc8dced916f0ee045356afeb08.tar.gz
gdb-4247cafddf8c48cc8dced916f0ee045356afeb08.tar.bz2
* gdb_ptrace.h: Fix typos when checking for PT_ATTACH. Reported
by Chad Harrington <harrington.chad@gmail.com>.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdb_ptrace.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 236e17e..34f798e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-23 Andreas Schwab <schwab@suse.de>
+
+ * gdb_ptrace.h: Fix typos when checking for PT_ATTACH. Reported
+ by Chad Harrington <harrington.chad@gmail.com>.
+
2005-06-22 Mark Kettenis <kettenis@gnu.org>
* remote.c (extended_remote_restart): Pass buffer in call to
diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h
index f060ce6..7d27e3e 100644
--- a/gdb/gdb_ptrace.h
+++ b/gdb/gdb_ptrace.h
@@ -92,8 +92,8 @@
/* Not all systems support attaching and detaching. */
-#ifndef PT_ATTCH
-# ifdef PTRACE_DETACH
+#ifndef PT_ATTACH
+# ifdef PTRACE_ATTACH
# define PT_ATTACH PTRACE_ATTACH
# endif
#endif