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 "$@"