aboutsummaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 15:46:05 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-12 15:58:06 +0200
commitb30320dd03ddba56152cfe615eadeb0a8e40864e (patch)
tree356e58746f144df2bcbc9d45025cde59e3734789 /i386
parent498cfc1840f2c50cf2681372a2b01e8066a2980f (diff)
downloadgnumach-b30320dd03ddba56152cfe615eadeb0a8e40864e.tar.gz
gnumach-b30320dd03ddba56152cfe615eadeb0a8e40864e.tar.bz2
gnumach-b30320dd03ddba56152cfe615eadeb0a8e40864e.zip
x86_64: don't bother printing function arguments
They are in registers, and most probably very quickly overwritten.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/db_trace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/i386/i386/db_trace.c b/i386/i386/db_trace.c
index cb678853..0ef72518 100644
--- a/i386/i386/db_trace.c
+++ b/i386/i386/db_trace.c
@@ -223,6 +223,10 @@ db_find_trace_symbols(void)
*/
const int db_numargs_default = 5;
+#ifdef __x86_64
+/* Args are in registers */
+#define db_numargs(fp, task) -1
+#else
static int
db_numargs(
struct i386_frame *fp,
@@ -249,6 +253,7 @@ db_numargs(
}
return args;
}
+#endif
struct interrupt_frame {
struct i386_frame *if_frame; /* point to next frame */