From 83d1f9b28a76cba7244c7c196db25d7f3838fcdc Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Mon, 20 Sep 2021 23:45:50 +0300 Subject: [PATCH] Don't clean() address_translation table --- .vscode/launch.json | 2 +- elfio/elfio.hpp | 3 --- examples/proc_mem/sudo_gdb.sh | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index abb9789..f3e752a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -71,7 +71,7 @@ "ignoreFailures": true } ], - "miDebuggerPath": "/home/user/ELFIO/mygdb.sh" + "miDebuggerPath": "/home/user/ELFIO/examples/proc_mem/sudo_gdb.sh" } ] } \ No newline at end of file diff --git a/elfio/elfio.hpp b/elfio/elfio.hpp index 7235cbf..f0064e9 100644 --- a/elfio/elfio.hpp +++ b/elfio/elfio.hpp @@ -393,9 +393,6 @@ class elfio delete it; } segments_.clear(); - - std::vector empty_address_translation; - addr_translator.set_address_translation( empty_address_translation ); } //------------------------------------------------------------------------------ diff --git a/examples/proc_mem/sudo_gdb.sh b/examples/proc_mem/sudo_gdb.sh index 359a187..ec1cf29 100755 --- a/examples/proc_mem/sudo_gdb.sh +++ b/examples/proc_mem/sudo_gdb.sh @@ -1,3 +1,3 @@ # The file is used for VSCode debugging ability. Use it as following: -# "miDebuggerPath": "/home/user/ELFIO/proc_mem/sudo_gdb.sh" +# "miDebuggerPath": "/home/user/ELFIO/examples/proc_mem/sudo_gdb.sh" sudo /usr/bin/gdb "$@"