Bug 1238611 - Use PIE version of gdbserver for JimDB (x86); r=jmaher

This commit is contained in:
Geoff Brown 2016-02-16 13:15:59 -07:00
parent 3fdb2719e9
commit ecefc94bfd
4 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,10 @@
[
{
"size": 2178685,
"visibility": "public",
"digest": "3cc22e0fd0c97ed5f7c834665ed9f2692c423767ce5013b753fdeccd174c611e89371bf9fc191dce1ab2089999a66222e0e7b092b52ab742434b9ae2fdd5ec68",
"algorithm": "sha512",
"filename": "jimdb-x86-pie-linux_x86.tar.bz2",
"unpack": true
}
]

View File

@ -0,0 +1,10 @@
[
{
"size": 2263182,
"visibility": "public",
"digest": "24711d54143978caa77c5db54fc7da142c82c827a9bbbfad0a133ed30440e9a46b7e7fcd9ade886dbc5f0d7cd11a4facb3aeb573303becf6169234edef6f84e9",
"algorithm": "sha512",
"filename": "jimdb-x86-pie-linux_x64.tar.bz2",
"unpack": true
}
]

View File

@ -0,0 +1,10 @@
[
{
"size": 2105007,
"visibility": "public",
"digest": "e1d86b076f686dcd9dada92a0d0c9a8fca9ac2311017b214713d9f314fa65123a97e997c5c8fdf90c1579cd7be66b2069314c7e193c80081855af531b804c3c0",
"algorithm": "sha512",
"filename": "jimdb-x86-pie-mac_x64.tar.bz2",
"unpack": true
}
]

View File

@ -733,9 +733,7 @@ def _get_device_platform(substs):
pie = '-pie' pie = '-pie'
if substs['TARGET_CPU'].startswith('arm'): if substs['TARGET_CPU'].startswith('arm'):
return 'arm%s' % pie return 'arm%s' % pie
if sdk_level and sdk_level >= 21: return 'x86%s' % pie
_log_warning("PIE gdbserver is not yet available for x86: you may not be able to debug on this platform")
return 'x86'
def _update_gdbinit(substs, path): def _update_gdbinit(substs, path):
if os.path.exists(path): if os.path.exists(path):