Using gdb I wish to log all instructions and their addresses - and preferably register values before and after each instruction if possible - but only within a library. I am debugging an Android application and can break and step within the library but I'd like to more or less automate the collection of instructions and register values within said library. I am connected to gdb on an Android emulator via gdbserver on the Android instance and gdb with remote target on my local machine.
Can gdb log all instructions and their addresses solely within a particular shared library?
54 Views Asked by Brendan At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in DEBUGGING
- Eclipse find source file from library
- Debug native code in Android Studio
- Breakpoint "concurrency" in Intellij
- PhpStorm IDE. Collapse custom/debug code
- How does one debug infinite recursion in Haskell?
- Android Studio missing exception stacktrace in Logcat
- java FileNotFoundException wont locate a file in the same project
- How can I debug scala.js unit tests?
- Why Eclipse Debugger does not stop on scoped exception breakpoint (how to stop on handled exception)
- Suggestions for my Selection Sort / Java
- Fortran Debugging
- Debug Excel VSTO add-in when launched by double-clicking existing file
- Starting GDB with interpreter mi via .gdbinit file
- How to print call stack in Swift?
- Preventing threads in Xcode
Related Questions in GDB
- How to run program in gdb via bashscript with backtrace?
- Starting GDB with interpreter mi via .gdbinit file
- How to find illegal instructions in a program?
- Strange gdb 7.9 boost on Yosemite 10.10.13
- How to call fortran module helper subroutine in GDB?
- GDB can't access/step into file for debugging
- Segmentation fault - Invalid free unresolved - C
- redirect I/Os in GDB in MI mode
- Understanding assembly of a simple C program
- GDB Python pretty-printer not indenting substructures
- Can gdb break on/dprintf on/specify location as: return from specified function?
- Understanding Red-Black Tree Traversal of STL multiset in GDB
- How to drill down into shared_ptr [Netbeans, clang++, gdb]
- Following memory allocation in gdb
- How can I break on UBSan reports in gdb and continue?
Related Questions in GDBSERVER
- Debugging a haxe based ndk app on android with gdb
- In Eclipse, how to load executable to remote ARM based embedded target while remote debugging
- How to automate gdb core dumping when receiving signal
- how to trace guest OS when qemu is run with kvm enabled and cpu is host?
- Remote debugging using gdbserver over ssh
- Eclipse CDT Remote Debugging ("Attach to Applicaton" or "Remote Application")
- gdb info line : ... but contains no code
- add gdb target achitecture: aarch64
- gdb remote cross debugging fails with "Remote 'g' packet reply is too long"
- gdb remote debugging - program crashes when stepping into a shared library
- Remote debugging w/ Eclipse CDT gdbserver: stdin/stdout
- How to start an android app with valgrind
- How to terminate gdbserver?
- gdb remote debugging of c++ process started via ssh: how to redirect stdin
- Breakpoints when connecting to gdbserver through eclipse
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It can, but doing this will be excruciatingly slow.
Also, there is no easy way to do this: you will have to use embedded Python and write script to print whatever data you want.