From 6f7fc51a18f8e4d2e97412fbb10b096e7de4f6c8 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 21 Aug 2023 17:19:33 -0700 Subject: [PATCH] ext: Specialize GDBSignal MACRO to gem5 The goal is to fix this issue which appears to be affects some Apple users: https://github.com/gem5/gem5/issues/94. By specializing the `EXC_*` to gem5 we avoid the name conflicts plagiing some users. Change-Id: I031f7110b4b4ae82677b6586903cd57b22ca2137 --- ext/gdbremote/signals.hh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/gdbremote/signals.hh b/ext/gdbremote/signals.hh index 11835e6f5a..07c0064d39 100644 --- a/ext/gdbremote/signals.hh +++ b/ext/gdbremote/signals.hh @@ -168,12 +168,12 @@ namespace gem5{ INFO = 142, //information request unknown = 143, //unknown signal - EXC_BAD_ACCESS = 145, //could not access memory - EXC_BAD_INSTRUCTION = 146, //illegal instruction/operand - EXC_ARITHMETIC = 147, //arithmetic exception - EXC_EMULATION = 148, //emulation instruction - EXC_SOFTWARE = 149, //software generated exception - EXC_BREAKPOINT = 150, //breakpoint + GEM5_EXC_BAD_ACCESS = 145, //could not access memory + GEM5_EXC_BAD_INSTRUCTION = 146, //illegal instruction/operand + GEM5_EXC_ARITHMETIC = 147, //arithmetic exception + GEM5_EXC_EMULATION = 148, //emulation instruction + GEM5_EXC_SOFTWARE = 149, //software generated exception + GEM5_EXC_BREAKPOINT = 150, //breakpoint LIBRT = 151, //librt internal signal };