Solved

build this program with debug info under linux

Posted on 2014-09-30
4
243 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question of running the program built from sample in codeproject website 3 81
delete-remove 14 97
outlook office 365 8 143
boost::uuid crashes 17 9
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
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.

809 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