Don't clean() address_translation table

This commit is contained in:
Serge Lamikhov-Center 2021-09-20 23:45:50 +03:00
parent 18a691314f
commit 83d1f9b28a
3 changed files with 2 additions and 5 deletions

2
.vscode/launch.json vendored
View File

@ -71,7 +71,7 @@
"ignoreFailures": true "ignoreFailures": true
} }
], ],
"miDebuggerPath": "/home/user/ELFIO/mygdb.sh" "miDebuggerPath": "/home/user/ELFIO/examples/proc_mem/sudo_gdb.sh"
} }
] ]
} }

View File

@ -393,9 +393,6 @@ class elfio
delete it; delete it;
} }
segments_.clear(); segments_.clear();
std::vector<address_translation> empty_address_translation;
addr_translator.set_address_translation( empty_address_translation );
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -1,3 +1,3 @@
# The file is used for VSCode debugging ability. Use it as following: # 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 "$@" sudo /usr/bin/gdb "$@"