aboutsummaryrefslogtreecommitdiff
path: root/ndk-gdb.py
AgeCommit message (Collapse)Author
2015-11-16Move gdbserver out of prebuilt/.Dan Albert
Also stops installing gdbserver into the source directory. Bug: http://b/25432797 Bug: http://b/25454836 Change-Id: I4af1ae19473b528f167ceff19c021c760367335e
2015-11-16Move host-tools into its own directory.Dan Albert
We don't want the various NDK module packages to have overlapping paths. Bug: http://b/25454836 Change-Id: I94f9b153434553d518e677e53df079343e019327
2015-11-16Move ndk-gdb into the host-tools package.Dan Albert
Bug: http://b/25454836 Change-Id: I30f4f44a6a3fefb977bc94111adfb3edc28d6ee6
2015-11-16ndk-gdb: don't warn when using pretty printer 'none'.Josh Gao
Change-Id: I46c1145b06807d5da3ab490d6905b779a5b9d3a3
2015-11-16ndk-gdb: make -x work.Josh Gao
Change-Id: I853ca330d082316482855e0a027970185215d7a6
2015-11-13ndk-gdb: search for gdbrunner in python-packages dir.Josh Gao
Change-Id: I84a4a3500f2a9a386e1ddb11405448644b2bad2c
2015-11-13ndk-gdb.py: add pretty printer support.Josh Gao
Bug: http://b/25648674 Change-Id: Iae021a611ad77cf721d36213d6b276a2023042b1
2015-11-13ndk-gdb.py: fix library pulling.Josh Gao
Change-Id: I7213f3b47d12448fe1eeacf0743ee58d52fbfdf7
2015-11-13ndk-gdb.py: fix changed prebuilt path.Josh Gao
Change-Id: I95bc77792ca6f2a60827aa36758709115da4c7df
2015-11-11Rewrite ndk-gdb.py to use gdbrunner module.Josh Gao
Change-Id: Ibbc7f4ea185b60f4521254dc6b99130bc16d964f
2015-09-16[ndk-gdb.py] Fix gdb.setup paths on win32.Josh Gao
os.normpath converts slashes to backslashes on windows, which gdb does not like. Change-Id: Iaba0ab1abda6a34d07f67b952bd259717decce9d
2015-09-16[ndk-gdb.py] Copy gdbserver to app directory on M+.Josh Gao
Bug: http://b/23791565 Change-Id: I5312a1813bb7c9cbb601f7fc2bd039c25b6cdc4f
2015-09-16[ndk-gdb.py] Improve error message.Josh Gao
Bug: http://b/23787206 Change-Id: I589dac158485cc3605586ec8f9598de8d5d29ba4
2015-09-16[ndk-gdb.py] Make ctrl-c behavior more correct.Josh Gao
Previously, ctrl-c would send SIGINT to all of the children spawned by ndk-gdb.py, which would result in everything immediately blowing up because gdbserver would get killed. Bug: http://b/23906844 Change-Id: Ic4b2a111759a95d6d82b6ffb185dd114b8ec0df0
2015-09-16[ndk-gdb.py] Reuse the result of adb shell ps.Josh Gao
Remove another adb shell roundtrip. Bug: http://b/23793246 Change-Id: Idf1dccddb8c5ed8cb1327fadfffbfbf0822232e2
2015-09-09[ndk-gdb.py] Fix project relative paths.Josh Gao
Change-Id: Ic7fec5ba367fcce939dde585826e274fcbd12d41
2015-09-08[ndk-gdb.py] Select which ps command to run on the device.Josh Gao
Saves an adb roundtrip. Bug: http://b/23793246 Change-Id: Iffce325f7576102cdbf8d2ca7530c77c049b1503
2015-09-08Expand tilde in ndk-gdb.py project path argument.Josh Gao
Bug: http://b/23899431 Change-Id: I9ff4b38ae5c4c03467ecc61aebda5fdcc9ae8608
2015-09-04More ndk-gdb.py argument tweaks.Josh Gao
Change-Id: I4be46cc93159b28faf78d8231b24d918fa330788
2015-09-04Replace useless call to ls with useless call to echo for speed.Josh Gao
Saves about 25ms on my machine. Bug: http://b/23793246 Change-Id: I89484477c200825eeee1d2c9c3f3e1df3c225222
2015-09-04Fix output indentation.Josh Gao
Change-Id: I4d79ca1a314c8f8cb454be4bd2a58882b96e9126
2015-09-04Use the detected app directory for the device gdbserver path.Josh Gao
Change-Id: I693ffcbc66d74bcabea643e0ebc8a4d26a169414
2015-09-03Correct platform path used by ndk-gdb.py.Josh Gao
Bug: http://b/23790835 Change-Id: I5c4d145a99a30b48e78253d55cc2f58bec63d670
2015-09-02Remove lie.Josh Gao
Change-Id: Ia2d616f81060241bc723784226b2ee2b073c3f03
2015-09-02Use the multiarch gdb path.Josh Gao
Bug: http://b/22128526 Change-Id: I64a2babfa1f3db91af742e02e73b9abae9a38573
2015-09-02Remove DEVICE_SERIAL global from ndk-gdb.py.Josh Gao
Change-Id: I8e800ea28a3a90493a19e4bf05d1125737d25c3b
2015-09-02Remove unnecessary close.Josh Gao
Change-Id: I8e9b5add36b6ad13ef1da3815b6323b1d2414deb
2015-09-02Clean up ndk-gdb arguments.Josh Gao
Change-Id: Ia9c02a569ff4196674838bfd07d011ed7904aca0
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