?
Solved

build this program with debug info under linux

Posted on 2014-09-30
4
Medium Priority
?
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

770 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