From 7d2bd6aedc726f3bb86f0c01086ecbd45245179e Mon Sep 17 00:00:00 2001 From: dg Date: Mon, 3 Jan 1994 08:10:47 +0000 Subject: [PATCH] Only use syscallmap if FM_TRAP or EX_TRAPSTK are defined. --- gnu/usr.bin/gdb/config/i386bsd-dep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/usr.bin/gdb/config/i386bsd-dep.c b/gnu/usr.bin/gdb/config/i386bsd-dep.c index d298fb02ac06..80e11fa137c1 100644 --- a/gnu/usr.bin/gdb/config/i386bsd-dep.c +++ b/gnu/usr.bin/gdb/config/i386bsd-dep.c @@ -1543,6 +1543,7 @@ static int trapmap[] = tEIP, tEFLAGS, tCS, tSS, tDS, tES, tES, tES /* lies: no fs or gs */ }; +#if defined(FM_TRAP) || defined(EX_TRAPSTK) static int syscallmap[] = { sEAX, sECX, sEDX, sEBX, @@ -1550,6 +1551,7 @@ static int syscallmap[] = sEIP, sEFLAGS, sCS, sSS, sCS, sCS, sCS, sCS /* lies: no ds, es, fs or gs */ }; +#endif static int *regmap; static void