When some assert() fails, gdb breaks but doesn't show the aborting thread. In case of a signal (like a segfault), it works fine. Is there an easy way to know what threads has just aborted?
Esp., I am using Xcode here.
...
Hi ,
I want to write a ruby program that could inspect the variable value of a program by launch the gdb and then print that value. How could I achieve this?
If I were in the shell, I would do this :
shell > gdb test
[...gbd started]
(gdb) p variable
$1 = 20
(gdb)
I also like to hear other ways that can achieve the same g...
I'm taking a networking class at school and am using C/GDB for the first time. Our assignment is to make a webserver that communicates with a client browser. I am well underway and can open files and send them to the client. Everything goes great till I open a very large file and then I seg fault. I'm not a pro at C/GDB so I'm sorry if t...
I am trying to add a breakpoint in my program using
b {line number}
but I am always getting an error that says:
No symbol table is loaded. Use the "file" command.
What should I do?
...
I am using cygwin on windows XP. I have a C++ project using makefile. But I am getting a segmentation fault. But gdb is not stopping at breakpoints. I have -g option enabled in makefiles. Gdb shows me the line where the fault is generated. But if I run after inserting breakpoint at any point before the fault line, gdb does not stops. It...
Is there a way to log all exceptions happening within JVM?
A system is built from a big number of smaller components provided by different groups. All of them are running within the same JVM (under Weblogic).
Error reporting policies are rather different in those groups, so sometimes we have cases of suppressed exceptions, which makes...
I was trying to debug a multi-threaded process on a Linux server running Slackware 12 using gdb 6.6
Once I attach and issue the command "thread apply all bt full" it comes back with nothing ( back on to the gdb prompt ).
Any idea why this happens?
...
I've a got Qt QWebView that just contains a SWF running in the embedded flash player.
i.e. the HTML looks like this:
<body style="margin: 0px; overflow:hidden; background: #FFFFFF">
<object type="application/x-shockwave-flash" data="preview.swf" width="100%" height="100%">
</object>
</body>
Everything is working ...
Is it possible to run GDB with a program assembled with as and linked with ld? With gcc adding the flag -g allows for debugging but I get the error No symbol table is loaded. Use the "file" command when I try to add breakpoints to a loaded program.
Thanks!
EDIT Maybe I should make it clear that I'm learning and programming in assembly...
howdy.
i'd like to have gdb immediately run the executable, as if i'd typed "run".
(motivation: i dislike typing "run")
one way is to can pipe the command to gdb like this:
echo run | gdb myApp
but the problem with this approach is that you lose interactivity with gdb.
eg, if a breakpoint triggers or myApp crashes, gdb quits.
this metho...
Is there a way to speed up gdb when it loads a very large c++ binary?
The binary I am talking about is about 50MB in a release build (no debug symbols)
A debug build is bigger then 400MB and gdb needs more then 2 minutes to load it.
Maybe there are some settings that speed up loading the application into gdb ?
Any help is very apprec...
I'm compiling a i386 C++ app on Snow Leopard.
When I compile with -D_FILE_OFFSET_BITS=64 I can't use the binary with gdb. I get the following error message:
warning: Could not find object file "/var/folders/kw/kwmH332LGwCIh3GrRREgCk+++TI/-Tmp-//ccZfMAM5.o" - no debug information available for "test.cpp".
...
when i try debugging a program using GDB i get the following error:
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
Cannot find new threads: generic error
how to solve it?
...
I am trying to use the debugger in a thread but the values of the watched variables dont get updated in them unless i remove the break point, make it run for a while then put break point back. They also get refreshed if a messageBox appears. Why is this?
...
In general i see the process's pid which is running in the background and start dbx on that process using the command dbx -a <pid>
similarly how could i do it using gdb?
...
Hello stackers,
in https://rt.cpan.org/Ticket/Display.html?id=37194#txn-641389 I reopened a bug concerning a Perl crash in conjunction with the libreadline XS bindings. I attached the necessary debug information, but until now there has been no acknowledgement from the maintainer. I want this finally fixed; it's a major inconvenience to...
Is there a GUI for GDB that will allow me to debug applications that create threads using clone() syscall? I tried Insight and KDBG, but for some reason when the new cloned thread is created, I can't see it in the thread list. The clone syscall is called through inline assembly. Is it not possible because the thread created shares PID wi...
Can GDB be used as if it was a traditional assembly monitor?
As soon as you step into eg. library code it returns:
No function contains program counter for selected frame
GDB the debugger is able to step into unknown code but GDB the UI stops working.
In this related question you can find a pair of proposed solutions but neither qui...
I've compiled my C program using gcc 4.4.1 using the flag -g, but when I try to step through one of my functions in gdb version 7.0, I get the message: "Single stepping until exit from function _DictionaryTree_getNodeList,
which has no line number information."
Can someone tell me why this is happening?
...
I have a couple of questions regarding core dumps. I have gdb on Windows, using Cygwin.
What is the location of core dump file? Is it a.exe.stackdump file? (This is the only file that generated after crash) I read on other forums that the core dump file is named "core". But I don't see any file with name "core".
What is the command for...