Which debugger is appropriate for the executalbe file compiled with make?


 
Thread Tools Search this Thread
Top Forums Programming Which debugger is appropriate for the executalbe file compiled with make?
# 1  
Old 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
# 2  
Old 10-11-2008
Can we edit the title?

Which debugger ....
# 3  
Old 10-11-2008
you have to use gcc -g

to get the compiler to include symbols for the debugger. Plus the source code has to be in the same directory as the executable.
# 4  
Old 10-11-2008
the exe file is compiled with make utility. I checked its options. Only -d exists.

Many large projects are compiled in the way. There should be a good debugger. I guess.
# 5  
Old 10-11-2008
Are the two options identical?

-ggdb
-g
# 6  
Old 10-12-2008
Add -g to the cflags in makefile

ok!!

thx to jim
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Is it possible to insert compile module after compiled "make" without installing

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

2. UNIX for Dummies Questions & Answers

Make sure kernel was compiled with NFS server support

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

3. Programming

Alternative debugger to GNU insight debugger

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

4. UNIX for Advanced & Expert Users

Viewing a compiled executable file

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

5. Programming

makeutility: how to get the make-file name inside of the make-file?

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

6. Programming

Can C determine which OS it's being compiled on?

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

7. Solaris

looking for different debugger for Solaris or to make sunstudio faster

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

8. Programming

How to debug C source file using GVD debugger

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

9. Programming

dbx error ("Executable contains object file compiled on ...")

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

10. UNIX for Dummies Questions & Answers

Compiled Compiler

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
Login or Register to Ask a Question