Skip to content
Advertisement

Tag: gdb

How do I debug Android native code into kernel?

I compiled goldfish kernel with: I started the AVD with the compiled kernel. emulator -kernel goldfish/arch/arm/boot/zImage -avd TestAVD I pushed a compiled c program onto AVD. And I downloaded the libs (I’m not sure if it’s the proper way) run gdbserver: forward port: run gdb specify the search directory: connect to device I breaked at, for example, close. I couln’d

How to print a binary value(1010) into decimal value(10) in GDB?

I want to print the decimal value of 1010 in gdb, but it prints the result as it is what I gave last. Answer GDB’s p[rint] command prints the value of the expression you provide, which is interpreted in the source language of the program being debugged. In C, your 1010 is a decimal literal, not a binary literal, so

gdb catch syscall condition and string comparisson

I would like to catch a system call (more specifically access) and set a condition on it based on string comparison (obviously for arguments that are strings). Specific example: when debugging ls I would like to catch access syscalls for specific pathnames (the 1st argument) int access(const char *pathname, int mode); So far, I have succeeded in manually inspecting the

GDB Missing separate debuginfos Fedora 22

I’m trying to debug a 32-bit ELF with GDB on Fedora 22, but I keep getting the following message: I did exacty that — I ran: I get that all dependencies are resolved and that there’s nothing to do. Namely, this message: But even then, when I try running the same file in gdb, I get the exact same warning

Debug information file conventions for Red Hat/Fedora?

According to lothar’s answer at How to generate gcc debug symbol outside the build target, I can create a two part executable – the stripped executable and the debug information file. After creating the stripped executable and the debug information file, I install the executable as normal (with make install). But I’m not sure what to do with the debug

gdb backtrace with no user input?

I’m wondering if it’s possible to launch an application via GDB, on a SegFault write the backtrace to a file (to look at later), and then exit GDB all without any user input. I’m running an application from a shell script in an infinite loop (so if it crashes it reloads) on OS boot from a non-interactive session. The application

gdb step not working as expected

I am debugging static multi-threaded x86-64 C++ application on Linux. I can set breakpoints on functions and stop on them and I can walk step by step over function body. But when I try to step into another function, gdb not stops at it’s beginning and it seems that it just continues execution. When I interrupt program execution, gdb goes

Advertisement