10-11-2008
Which debugger is appropriate for the executalbe file compiled with make?
I ask a question about the executalbe file compiled with make. Which debugger is appropriate? I tried to use gdb. But it failed to give the code with 'list' command.
Program received signal SIGTSTP, Stopped (user).
0x0000000000472621 in DivergeTreeLogLikelihood ()
(gdb) bt
#0 0x0000000000472621 in LogLikelihood ()
#1 0x0000000000422191 in LogLikelihood ()
#2 0x0000000000424ae3 in uRun ()
#3 0x0000000000409b46 in main ()
(gdb) frame 3
#3 0x0000000000409b46 in main ()
(gdb) list
105 in ../../gcc/config/i386/crtfastmath.c
(gdb) list 105
100 in ../../gcc/config/i386/crtfastmath.c
(gdb) list crtfastmath.c:105
100 in ../../gcc/config/i386/crtfastmath.c
(gdb) list crtfastmath.c:100
95 in ../../gcc/config/i386/crtfastmath.c
(gdb) list crtfastmath.c:95
90 in ../../gcc/config/i386/crtfastmath.c
Last edited by radoulov; 10-11-2008 at 06:00 PM..
Reason: debugter: debugger
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've got Solaris9 and it comes with no compiler. I've downloaded gcc from GNU, but you can't compile the files without the compiler (chicken before the egg situation). Some sites point to an ftp site of ftp.ai.prep.mit.edu where a compiled version of the GNU gcc exists, but when I have gone there... (3 Replies)
Discussion started by: AJA
3 Replies
2. Programming
Hi,
We are trying to run dbx on a core file for which we have the original executable and libs, but not the source / object tree. We have recompiled the objects from the original source, but dbx complains that they were compiled at a different time, and refuses to read them:
Object file:... (0 Replies)
Discussion started by: Sabari Nath S
0 Replies
3. Programming
Anyone pls. help !!!
I want to debug C source file using GVD debugger. However, I am unable to find the way to debug source files.
Thanks in advance (2 Replies)
Discussion started by: argupta
2 Replies
4. Solaris
im using the sunstudio but it is very slow , is there ant other GUI debugger
for sun Solaris or at list some ways to make it faster ?
im using to debug throw telnet connection connected to remote server
thanks (0 Replies)
Discussion started by: umen
0 Replies
5. Programming
Hello all! I've searched the archives, google, documentation and I can't seem to find any answer regarding my question.
Our code has to be lint free and due to the following lint warning ---> logical expression always true: op "||" <--- we are forced to #include <note.h > (which appears to be... (3 Replies)
Discussion started by: quattro20v
3 Replies
6. Programming
How I can get the current make-file name in a make-file
So, if I run make with specified file:make -f target.mak
is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Discussion started by: alex_5161
2 Replies
7. UNIX for Advanced & Expert Users
I've got a executable binary file (source code fortran77, compiled using gfortran).
I'm not sure this is even possible but I remember someone I knew was able to view the source code that created this binary file, i.e. he used a program that enabled him to see what the source code was.
Is this... (2 Replies)
Discussion started by: lost.identity
2 Replies
8. Programming
GNU insight debugger is not available now a days and it is required to debug/inspect
assembly code as written in the book Assembly Language Programming step by step in Linux so my question is; is there any alternative to insight that I can use instead of insight in which I can get the same... (5 Replies)
Discussion started by: vectrum
5 Replies
9. UNIX for Dummies Questions & Answers
Hi there,
I have a Debian Squeeze server.
How can I check if my kernel was compiled with NFS server support?
Extra question: if it is not, how do I enable NFS support in my kernel?
Thanks for your help.
Santiago (3 Replies)
Discussion started by: chebarbudo
3 Replies
10. Linux
Hi gud day,
I would like to ask if possible to load the driver i compiled module without installing it in the ubuntu-kernel-distro/updates* or simple not executing "make install". what i mean is i compile the compat wireless driver using make and i want to try to load
on the system without... (1 Reply)
Discussion started by: jao_madn
1 Replies
LEARN ABOUT MOJAVE
xpc_abort
xpc_abort(3) BSD Library Functions Manual xpc_abort(3)
NAME
xpc_abort -- conditions which cause XPC to abort
DESCRIPTION
The XPC API will aggressively defend itself against perceived misuse. Wherever XPC can definitively detect misuse of its APIs or data corrup-
tion, it will abort. For example, if the retain count of an object underflows by calling xpc_release(3) on it too many times, XPC will abort
the process.
Many frameworks opt to keep the program limping along in such a state (and will perhaps print a warning message to the system log), but
aborting upon detection provides unmistakable warning that there is a bug present in the application which should be fixed before shipping.
When XPC aborts a process, it will place information about the condition which triggered the abort in the Application Specific Information
section of the crash report. The message will be human-readable, prefixed with "XPC API Misuse:", and the crash report will indicate the
stack trace which caused the abort.
XPC will also abort if it detects unrecoverable data corruption in its internal state. The messages for these conditions will be prefixd with
"Bug in libxpc:". If you come across such a crash, please file a bug and include the generated crash log, system log and steps to reproduce
(if there are any identifiable steps).
Currently, the manner in which XPC aborts the process will result in termination due to SIGILL (illegal instruction). The exact signal raised
may change from release to release (or platform to platform). But on OS X Lion, SIGILL may be used as a hint that the process was terminated
intentionally.
DEBUGGING
When debugging in Xcode or at the gdb command prompt, the debugger acts as the exception handler for the process being debugged. As a result,
if the process is aborted by XPC, no crash report will be generated, and thus it may not be obvious why the program was terminated.
As mentioned before, SIGILL is an indication that the process was terminated intentionally. If you observe the last frame in the crashing
stack to be _xpc_api_misuse(), you may use the xpc_debugger_api_misuse_info() API from within the debugger to obtain a human-readable string
describing why the process was aborted. For example:
Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand.
0x000000010012b25e in _xpc_api_misuse ()
(gdb) p (char *)xpc_debugger_api_misuse_info()
$1 = 0x7fff5fbff908 "XPC API Misuse: Over-release of object."
(gdb)
This message indicates that xpc_release(3) was called too many times on an object.
IMPORTANT: The xpc_debugger_api_misuse_info() API can ONLY be called from within a debugger. It is not meant to be called directly from the
program. Do not call it directly from your code, and do not rely on the address of the result for any reason.
SEE ALSO
xpc(3), xpc_object(3), xpc_objects(3)
Darwin 1 July, 2011 Darwin