summaryrefslogtreecommitdiff
path: root/lua_scripts
diff options
context:
space:
mode:
authorMika Westerberg <ext-mika.1.westerberg@nokia.com>2008-11-07 13:02:49 +0200
committerLauri Leukkunen <lle@rahina.org>2008-12-07 04:32:46 +0200
commitae06ff19cae24b8f1227b4dd6115f57ce8481554 (patch)
treed3d4d66e7518498b365726c59fcf6151fcfdf252 /lua_scripts
parent10092ed4daf1da4558f8c5a28ec98743a8c983c3 (diff)
Added support for debugging x86 binaries under emulation mode.
Diffstat (limited to 'lua_scripts')
-rw-r--r--lua_scripts/pathmaps/emulate/00_default.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/lua_scripts/pathmaps/emulate/00_default.lua b/lua_scripts/pathmaps/emulate/00_default.lua
index 0e1b20d..021fd7f 100644
--- a/lua_scripts/pathmaps/emulate/00_default.lua
+++ b/lua_scripts/pathmaps/emulate/00_default.lua
@@ -46,10 +46,19 @@ mapall_chain = {
{ path = "/etc/osso-af-init/dbus-systembus.sh",
map_to = sb1_compat_dir },
- -- ldoconfig is static binary, and needs to be wrapped
+ -- ldconfig is static binary, and needs to be wrapped
{path = "/sbin/ldconfig", replace_by = sbox_dir ..
"/share/scratchbox2/wrappers/ldconfig"},
+ --
+ -- Gdb needs some special parameters before it
+ -- can be run so we wrap it.
+ --
+ {path = "/usr/bin/gdb", replace_by = sbox_dir ..
+ "/share/scratchbox2/wrappers/gdb"},
+ -- gdb wants to have access to our dynamic linker also.
+ {path = "/usr/lib/libsb2/ld-2.5.so", use_orig_path = true},
+
--
{prefix = session_dir, use_orig_path = true},
{prefix = "/tmp", replace_by = tmp_dir_dest},