aboutsummaryrefslogtreecommitdiff
path: root/ndk-gdb.py
AgeCommit message (Collapse)Author
2015-01-22Three fixes for ndk-gdb and ndk-gdb.py:Alexander Ivchenko
1) Always try to use app_process32/app_process64 to avoid pulling symlinks (this does not work on win hosts). 2) Don't change the name of linker64 when pulling it from the device (otherwise symbols from linker64 are not being loaded in 64-bit case). 3) Always pull app_process32/app_process64 as app_process to avoid inconsistency. Change-Id: I1e4f066b77ee2fc37b879c1a1924b8396921539c Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
2015-01-19Fix ndk-gdb.py for debugging applications on x86_64Alexander Ivchenko
For details, please, refer to f91d44c1ad581021f2e33aad7918b83fbafdbf40 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com> Change-Id: Ic9af37f43adf4684e81555ba94692e9a084ff507
2014-01-06Fix ndk-gdb.py failure on missing directory.Todd Fiala
This change fixes a list comprehension call that generates an exception when the PYPRPR_GNUSTDCXX_BASE directory does not exist. Change-Id: Icb5c9258b9960bc09cda167137f585225ba239db
2013-08-11ndk-gdb.py: Fix ndk_bin_path determinationRay Donnelly
It wasn't correct on 64bit. This meant that the gnumake found on those systems tended to be the system one. Now, sys.executable is used and if that fails, some more exhaustive checks of platform.platform() and sys.maxsize are used (in-case the user uses their own Python - note if this happens, arch differences between that Python and the NDK could still cause the system make to be used, but this is a small corner case that will usually work ok ..)
2013-08-11ndk-gdb.py: Handle quoted paths in find_programRay Donnelly
The quotes in os.environ['PATH'] need to be removed otherwise executables are not found.
2013-07-28Minor tidy-ups for ndk-gdb.pyRay Donnelly
Made the description format use RawTextHelpFormatter to prevent line breaks in the filename on Windows. Also replaced \ with / in NDK so it looks more tidy.
2013-06-14PyPrPr :: Added --stdcxx-py-pr argument and support to ndk-gdb.pyRay Donnelly
This is the last commit needed to enable Python pretty-printers in ndk-gdb.py Valid options are 'auto', 'none', 'stlport', 'gnustdcxx' and 'gnustdcxx-$VER' where $VER is a foldername in: $NDK/prebuilt/$SYSTEM/share/pretty-printers/libstdcxx with 'gcc-' removed. 'auto' mode works by looking at the .so files for a libstdc++ library, and as such only works in the shared scenario. When linking statically to a libstdc++ library, the required printers must be specified. The default value of this option is 'none', if people feel 'auto' is preferable then I'll change it. Change-Id: Icdebd4f787387b99eaa60e0cf48058e9b8c484d4
2013-06-05Implement java-wait feature in ndk-gdb.pyRay Donnelly
Prevents early breakpoints from being missed. Original bug report from: https://code.google.com/p/android/issues/detail?id=41278 Original shell script version from: https://android-review.googlesource.com/#/c/48029/ Change-Id: I62809e73ee06ce962f4de3fc8ddc652744384c5b
2013-06-04Add --gnumake-flag to ndk-gdb.py to allow customizationRay Donnelly
2013-04-09Fix ndk-gdb to search compatibile ABI in order of CPU_ABISAndrew Hsieh
Instead of in the order of APP_ABIS, which will miss armeabi-v7a if APP_ABI := armeabi armeabi-v7a (note that armeabi appears first and get matched) ndk-gdb.py looks in the order of CPU_ABIS already. Fixed two bugs (unrelated nonetheless). See https://code.google.com/p/android/issues/detail?id=54033 Change-Id: I4c97e90a552a16598295e0b1597882f7d3c939b8
2013-01-08Added ndk-gdb{.py|-py|-py.cmd}Ray Donnelly
Pythonic replacements for the ndk-gdb shell script. Attempts to emulate the old behaviour, including verbose mode and logging and also the general layout of the shell script. Added a new command line option, --tui/-t to launch gdb in text user interface mode, if the gdb is built with support for this. Change-Id: Ic02feb18d70fe449bf54a531ffb973513dc82783