Solved

build this program with debug info under linux

Posted on 2014-09-30
4
233 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
helpful.
I missed the -g in the CCFlag.  Now it is working.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
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.

772 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