aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-12 05:33:15 +0000
committerMike Frysinger <vapier@gentoo.org>2012-04-12 05:33:15 +0000
commit81eb0a20fcefcddb5863de3b53ffdc93df2881be (patch)
tree8f2fe4ed81a63654e2e0382f472765e0023b5c0c
parent0e50663e56b137681ba887d22f7e3f0088f0cdb3 (diff)
downloadgdb-81eb0a20fcefcddb5863de3b53ffdc93df2881be.zip
gdb-81eb0a20fcefcddb5863de3b53ffdc93df2881be.tar.gz
gdb-81eb0a20fcefcddb5863de3b53ffdc93df2881be.tar.bz2
gdb: add callback defines for new ARGV handling
The common sim code has slightly unfinished support for these already, but even arch ports are unable to handle these if the common header does not define them. This is because the generated callback header includes simple common gdb/sim headers only which causes it to skip the new ARGV syscalls. Plus, it isn't like providing these in the common header will break any sim targets which don't want them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--include/gdb/ChangeLog4
-rw-r--r--include/gdb/callback.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog
index a2ab59f..cb8df1c 100644
--- a/include/gdb/ChangeLog
+++ b/include/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2012-04-12 Mike Frysinger <vapier@gentoo.org>
+
+ * callback.h (CB_SYS_argc, CB_SYS_argnlen, CB_SYS_argn): Define.
+
2012-02-03 Kevin Buettner <kevinb@redhat.com>
* sim-rl78.h: New file.
diff --git a/include/gdb/callback.h b/include/gdb/callback.h
index 9b6cf85..5c0d2db 100644
--- a/include/gdb/callback.h
+++ b/include/gdb/callback.h
@@ -231,6 +231,11 @@ extern host_callback default_callback;
#define CB_SYS_truncate 21
#define CB_SYS_ftruncate 22
#define CB_SYS_pipe 23
+
+/* New ARGV support. */
+#define CB_SYS_argc 24
+#define CB_SYS_argnlen 25
+#define CB_SYS_argn 26
/* Struct use to pass and return information necessary to perform a
system call. */