Solved

build this program with debug info under linux

Posted on 2014-09-30
4
237 Views
Last Modified: 2014-09-30
Hi Experts,

I need to build sipp with debug info ( symbols).

Can you please take a look at the make file and let me know which options should I pass or modify in order to get symbols included with binary ?

Thanks
make.txt
0
Comment
Question by:bachra04
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 40353134
See https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging%20Options ("3.9 Options for Debugging Your Program or GCC"). Since I assume from youzr makefile that you are on HP/UX, add the ones you need to

CFLAGS_hpux=-D__HPUX -DPROTOTYPES +W829

Open in new window


i.e.

CFLAGS_hpux=-D__HPUX -DPROTOTYPES +W829 -ggdb3

Open in new window


with '-ggdb3' creating all possible debug information. For more on that, see http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html
0
 
LVL 2

Author Comment

by:bachra04
ID: 40353171
I m using ubuntu and the program is a know tool called sipp ( open source).
http://sipp.sourceforge.net/
0
 
LVL 86

Expert Comment

by:jkr
ID: 40353184
Ooops, sorry, had forgotten the question title ;o) - well, that does not make a big difference, in this case, change

CFLAGS_linux=-g -D__LINUX -pthread 

Open in new window


to

CFLAGS_linux=-g -D__LINUX -pthread -ggdb3

Open in new window

0
 
LVL 2

Author Closing Comment

by:bachra04
ID: 40353213
helpful.
I missed the -g in the CCFlag.  Now it is working.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Task manager indicates my c++ program memory consumption is growing? 12 98
Arduino EDI - Programming language 3 80
Least Squares Curve Fitting 4 61
Computer slow / BSOD 10 42
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now