Solved

build this program with debug info under linux

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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 this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

831 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