The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
5 views

Homebrew install gdb, symlink error with binutils

I'm trying to install GDB via Homebrew on OSX Mavericks via the command brew install homebrew/dupes/gdb. This error message pops up during install: gdb requires special privileges to access Mach ...
1
vote
0answers
38 views

Dtrace shows posix_spawn called with only 3 argument. Trying to launch by hand

I ran dtruss on a process that launches another one: the League of Legends Launcher starts the main game process with certain arguments that I can't seem to pass via the command line. What caught my ...
3
votes
1answer
864 views

Software: Launching League of Legends spectator mode from Command Line (Mac)

Background: tl;dr at the end League of Legends has a spectator mode, in which you can watch someone else's game (essentially a replay) with a 3 minute delay. Popular LoL website OP.GG has figured ...
0
votes
0answers
103 views

Debugging linux kernel, SIGKILL

Trying to debug linux kernel (vmlinux) with gdb during my education, but after I run kernel I just got "program terminated with SIGKILL": gdb vmlinux-3.11.0-12-generic ...GDB header... Reading ...
-1
votes
1answer
199 views

How to install gdb on Arch Linux

How do I install the GNU Debugger (gdb) on Arch Linux? I've checked that I don't already have gdb installed by running this command: gdb -help I've tried this: sudo apt-get install gdb but it's ...
0
votes
0answers
41 views

Use Netbeans or Eclipse as a GDB front end

Is it possible to use Netbeans or Eclipse as a GDB front end to debug a non-Netbeans or non-Eclipse project? Thanks!
1
vote
1answer
84 views

Debug info package for centos

Hi I am getting the following on each line of gdb instruction steps. Does anyone know what package I need to install to remove this message from a CentOS build? Missing separate debuginfos, use: ...
0
votes
0answers
52 views

How to debug a kernel created using ubuntu-vm-builder?

Aim: Trying to perform a code walkthrough of what functions are getting called for sending and receiving packets over the network. I am building a kernel and using gdb for debugging/ tracing ...
1
vote
0answers
23 views

Old gdb cannot find out how to do logging

I'm running an obsolete Red Hat OS and debugging with the built-in gdb but I cannot figure out how to do logging. I've tried: set logging on But get: No symbol "logging" in current context It ...
2
votes
0answers
206 views

Where is the console ST2/GDB

I'm using sublime text 2. I got GDB to work but I don't see a console window anywhere. I see the GDB console but nothing that outputs text from my C++ program. How do I use GDB and see my the console ...
-1
votes
4answers
2k views

How to know if gdb is installed?

How can i know if gdb is installed in a unix machine? I run the following commands: > gdb > gdb main and the result is gdb: command not found but i don't if this means that gdb is ...
0
votes
0answers
53 views

GDB for NCGL distribution

There's a need in our project to do live debugging by attaching gdb to process. The distribution is "NCGL" (I believe it is Nortel Carrier Grade Linux). [root@bcm450R6-227 root]#cat /etc/issue NCGL ...
2
votes
1answer
93 views

Can I remotely monitor printf results of a C program?

I have a long running C program in which I've started from the Terminal.app using: gdb program_name gdb run I'm using many printf statements to monitor the progress of the program. Unfortunately, ...
0
votes
1answer
170 views

Why gdb is bind to fixed version of autoconf?

Edit 1: I am trying to build gdb from source. Why can't I use autoconf 2.65 instead of 2.64? It is confusing:( /var/lib/gforge/chroot/home/users/mirror/ins/ins-autoconf/bin/autoreconf -iv ...
2
votes
4answers
5k views

Why can't I find termcap library when I build gdb?

make and then failed with: configure: error: no termcap library found, but that termcap lib is just there, why can't make find it? checking for library containing zlibVersion... -lz checking zlib.h ...
1
vote
1answer
85 views

MacPorts, how to run “post-destroot” script

I'm trying to install MacPorts gdb; it seems to be poorly supported… Running "port install" installs it to /opt/local/libexec/gnubin/gdb, but the intent doesn't seem to be to add that to $PATH. The ...
1
vote
1answer
185 views

how to override truncation in gdb

When I print in gdb by running: p cmd.c_str() the result is truncated to 200 characters. is there a way that I can set the default truncation to something higher like 1000 characters?
0
votes
1answer
99 views

Valgrind cannot attach on OSX Lion

When I run valgrind with the options --tool=memcheck --db-attach=yes and then try to attach when an error pops up i get: valgrind: m_debugger.c:235 (ptrace_setregs): Assertion 'Unimplemented ...
2
votes
1answer
886 views

GDB debugging tool for linux

I'm executing a pro*c executable in linux and I've got segmentation fault error. But there is no core file dumped. Thus, I want to debug the program using GDB debugging tool. However, I see that it ...
1
vote
0answers
127 views

XCode to debug gdb-debuggable executable

I have compiled a cmake-based executable that is (miraculously) debuggable in gdb. So examining hundreds of variables with the terminal becomes a little bit slow for very large projects and I would ...
0
votes
2answers
893 views

(How) Can I get a core dump when running a program with sudo?

Cores apparently are not dumped when the using sudo despite ulimit -c being set to unlimited. Is there any way around this?
2
votes
2answers
938 views

In GDB, how can I jump directly up to the topmost call stack frame?

I have a C program that seg faults after descending deep into an infinite recursive mess. Backtracing the process in GDB is useless because the call stack frame is at least 1000 frames deep, and the ...
0
votes
0answers
664 views

How can I run GDB without root permissions on a Mac?

When I start GDB from the command line I have no problems. But when I start debugging a program from NetBeans (C++), I get this message: "Type the name and password of a user in the "Developer Tools" ...
2
votes
4answers
3k views

How to change the default directory in emacs?

When I'm using M-x gdb when lots of source files are open in emacs, the default directory in emacs is often different with the directory of my working copy to run that file i want to run. It's ...
6
votes
1answer
3k views

How to turn off GDB TUI?

I have this GDB TUI/layout on. How to return to default GDB view? I can't just restart GDB because I have important backtrace on my hand and as long as I have these extra windows I can't scroll well ...
2
votes
1answer
797 views

How to tell emacs gdb to show current code line in the center of buffer?

Using the debugger in emacs is nice: You can step through the code with the next command, and emacs will always show the code line that is currently executed, like this: int x; int y; =>int z; ...
7
votes
5answers
9k views

How to dump memory to a file in gdb (osx)? Need to rescue my work

I need to know how I can dump memory in Safari.app, to a file. I've entered gdb attach 6741 (my safari PID). Now what? I tried searching for help on gdb on google, but I couldn't find anything that ...
1
vote
4answers
3k views

sending one key stroke to two windows (Ubuntu)

I'm running Ubuntu Linux. I have two open Terminal windows running side by side. I'm looking to be able to hit the enter key once, and have that key stroke sent to both windows. (What I'm doing is ...
1
vote
2answers
1k views

GDB breakpoint problems attaching to QEMU

I have the following problem: When I connect gdb to qemu for debugging, it won't break on breakpoints. I can set breakpoints, break with ctrl+c etc. Any clues how this can be fixed? I have: $ qemu ...