-
as seen on Super User
- Search for 'Super User'
Hi,
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 --version
QEMU PC emulator version 0.11.0 (qemu-kvm-0.11.0), Copyright (c) 2003-2008 Fabrice Bellard
$…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I attached to a program with gdb in OSX and I want to use CFShow in the gdb console etc. However, nothing shows up. printf shows nothing as well:
(gdb) call (int) printf("Hello\n")
$10 = 6
(gdb) call (int) printf("Hello World!\n")
$11 = 13
Apple suggests the following tip for when attaching with…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello all,
Last week I was a debugging a code and a weird situation came up: gdb passes through two different return clauses. I made a simple example that illustrates the situation:
#include <iostream>
using namespace std;
int test() {
string a = "asd";
string b = "asd";
while…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I compiled GDB 7 on a Mac OS X Leopard system. When stepping through a C program, GDB fails to step through 'printf()' statements, which probably don't have associated debug information, and starts printing "Cannot find bounds of current function."
Here's some output:
$ /usr/local/bin/gdb try1
GNU…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
This is my first time creating an iPhone App and I am having difficulty with the memory management because I have never had to deal with it before.
I have a UITableViewController and it all works fine until I try to scroll down in the simulator. It crashes saying that it cannot allocate that much…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I'm trying to debug a segfault in PHP/Apache running on RHEL4.
This is a production server, so I'm trying to install a separate copy of apache and php, and run apache through gdb.
When I load httpd through gdb and then do run -X, I get the error (no debugging symbols found)...Error while reading…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
HI,
I am normally a C programmer.
I do regularly debug C programs on unix environment using tools like gdb,dbx.
i have never done debugging of big applications of C++.
Is that much different from how we debug in C.
theoretically i am quite good in C++ but have never got a chance to debug C++ programs…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
Hello all.
I'm working on a 3d music visualizer using Ogre3d, basically it's a spectrum analizer, a lot like the old xmms plugin:
(http)://www.youtube.com/watch?v=_6NKBiwYN24
It works well, the bars are drawn and updated, there are no framerate issues, but it crashes randomly. Sometimes it can run…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
On a Cisco device, I know that enabling debugging can incur a performance hit since debugging has such a high priority on the CPU. I know that to log debugging, you have to set logging up to the debugging level (logging buffered 4096 debugging, for example) and also enable debugging on some feature…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
The .NET 3.5 application I am working on consists of bunch of different solutions. Some of these solutions consist of managed code(C#) and others have unmanaged code(C++). Methods written in C# communicate with the ones written in C++. I am trying to trace the dependencies between these various…
>>> More