gdb

Where is GDB documentation specific to the Cell Linux environment?

Where can documentation be found for the features of GDB, and the debugging process, specific to debugging of Cell Linux programs mixing PPU and SPU code? ...

Adding gdb to MinGW

I've gone to http://sourceforge.net/project/showfiles.php?group_id=2435, downloaded the Automated MinGW Installer for MinGW 5.1.4 and at the same time the GNU Source-Level Debugger Release Candidate: GDB 6.8-3. I've then installed MinGW base tools into C:\MinGW. No problem so far. However when I come to install the gdb debugger it has a...

Xcode: attaching to a remote process for debugging

Using Xcode 3.1 on OSX 10.5; is it possible to attach (the debugger) to a running remote process? I know that it's possible to start and debug a remote process (as explained here), but it would be great if I could find a way to attach to an already running remote process... edit to add: Thanks. I've submitted a bug report to Apple. Wil...

What might this gdb output mean?

Trying to create my first iPhone app that would play back audio. When I try to set up playback, messages like these appear in gdb: =shlibs-removed,shlib-info=[num="54",name="AudioIPCPlugIn",kind="B",dyld-addr="0x2c2000",reason="dyld",requested-state="E",state="E",path="/System/Library/Extensions/AudioIPCDriver.kext/Contents/ Resources/...

gvim and gdb for C?

In emacs there is a handy way to launch the gdb and gui options for gdb, the C debugger. Is there a similar option in gvim? ...

What's the bare minimum Cygwin install to have DDD running properly on XP?

I’m using the gcc in MinGW that comes with Strawberry Perl, on Windows XP. I’d like to have ddd (the Data Display Debugger) as well but apparently on Windows the simplest way to get ddd is by running Cygwin. So what's the bare minimum of Cygwin I can install to get ddd up and running? I'd prefer if I could run ddd natively on Win32 but t...

Prettify my gdb

Is there a way to highlight and color gdb output during interactive debugging? Please don't reply I should use ddd, nemiver, emacs, vim, or any other front-end, I just prefer gdb as it is, but would like to see its output with some terminal colors. Thank you ...

What can perform Cheat-Engine like tasks in Linux?

In short, how can I search, view, and modify in-memory values in linux, preferably as easily/simply as possible. Like this. ...

Is this a bug in gdb ? Does someone know how to fix it ?

I am currently running gdb version 6.7.1 on Ubuntu Linux, and working in a C++ project. Surprisingly I was trying to debug a constructor and I have found that local variables declared within the scope of the constructor are not followed or noticed by gdb. Is this a bug ? Thanks for any information .. ...

How to print <incomplete type> variable in gdb

Sometimes gdb prints "incomplete type" for some type of variables. What does this mean and how can we see that value? ...

How do I print the full value of a long string in gdb?

I want to print the full length of a C-string in GDB. By default it's being abbreviated, how do I force GDB to print the string in full? ...

Environment Variables in Python on Linux

Python's access to environment variables does not accurately reflect the operating system's view of the processes environment. os.getenv and os.environ do not function as expected in particular cases. Is there a way to properly get the running process' environment? To demonstrate what I mean, take the two roughly equivalent programs...

How do I print the elements of a C++ vector in GDB?

I want to examine the contents of a std::vector in GDB, how do I do it? Let's say it's a std::vector<int> for the sake of simplicity. ...

Debugging a memory error with GDB and C++

I'm running my C++ program in gdb. I'm not real experienced with gdb, but I'm getting messages like: warning: HEAP[test.exe]: warning: Heap block at 064EA560 modified at 064EA569 past requested size of 1 How can I track down where this is happening at? Viewing the memory doesn't give me any clues. Thanks! ...

Inspect the return value of a function in gdb

Is it possible to inspect the return value of a function in gdb assuming the return value is not assigned to a variable? ...

gdb executable file format

I'm trying to use GDB to debug (to find an annoying segfault). When I run: gdb ./filename from the command line, I get the following error: This GDB was configured as "i686-pc-linux- gnu"..."/path/exec": not in executable format: File format not recognized When I execute: file /path/executable/ I get the following info: ELF ...

How to dump data stored in objective-c object (NSArray or NSDictionary)

Forgive me for a potentially silly question here, but in other programming languages (scripting ones like PHP or Perl) it is often easy to dump everything contained within a variable. For instance, in PHP there are the var_dump() or print_r() functions. Perl has the Data Dumper CPAN class, etc etc. Is there something like this for Obje...

Mutli-threaded application hanging on _dl_sysinfo_int80

I have a multi-threaded application that is hanging on a call to _dl_sysinfo_int80(). According to gdb, all threads are stuck in this call. The top of the stack trace looks like: #0 0x002727a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x004f23de in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0 #2 0x004ef00b in _L_...

Make GDB print control flow of functions as they are called

How do I make gdb print functions of interest as they are called, indented according to how deep in the stack they are? I want to be able to say something like (made up): (gdb) trace Foo* Bar* printf And have gdb print all functions which begin with Foo or Bar, as they are called. Kind of like gnu cflow, except using the debugging sy...

How to debug .pc files?

I am using emacs + gdb to debug a bunch of .c files in unix -- and it always worked well. But some of the projects I work in also have a bunch of .pc (Pro*C/C++) files. These files generate .c and .i related files after compilation. But during runtime I am able only to see the .i files in gdb -- which are not useful for debugging and are...