X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fx86-linux-nat.c;h=85c7f0ddc94b510a43246a9a6582611c0009588c;hb=3f3bd8b8c14d844533b70b25c7f1a8cbdbac2639;hp=fd15dc9b87209de27f267ab37c62e69dca70fb63;hpb=0747795c085d3b2a35da6bb474f32c58ce1b70c8;p=binutils-gdb.git diff --git a/gdb/x86-linux-nat.c b/gdb/x86-linux-nat.c index fd15dc9b872..85c7f0ddc94 100644 --- a/gdb/x86-linux-nat.c +++ b/gdb/x86-linux-nat.c @@ -1,6 +1,6 @@ /* Native-dependent code for GNU/Linux x86 (i386 and x86-64). - Copyright (C) 1999-2019 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of GDB. @@ -35,7 +35,7 @@ #ifdef __x86_64__ #include "amd64-linux-tdep.h" #endif -#include "common/x86-xstate.h" +#include "gdbsupport/x86-xstate.h" #include "nat/linux-btrace.h" #include "nat/linux-nat.h" #include "nat/x86-linux.h" @@ -217,16 +217,15 @@ x86_linux_nat_target::enable_btrace (ptid_t ptid, const struct btrace_config *conf) { struct btrace_target_info *tinfo = nullptr; - TRY + try { tinfo = linux_enable_btrace (ptid, conf); } - CATCH (exception, RETURN_MASK_ERROR) + catch (const gdb_exception_error &exception) { error (_("Could not enable branch tracing for %s: %s"), - target_pid_to_str (ptid), exception.message); + target_pid_to_str (ptid).c_str (), exception.what ()); } - END_CATCH return tinfo; } @@ -311,6 +310,7 @@ x86_linux_get_thread_area (pid_t pid, void *addr, unsigned int *base_addr) } +void _initialize_x86_linux_nat (); void _initialize_x86_linux_nat () {