HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Pro*C - How to include -g option for dbx to be used

 
arich
Occasional Visitor

Pro*C - How to include -g option for dbx to be used

Hi,
I need one urgent help. I have got one executable binary file which is causing Segmentation Error. From sources, I came to know that I need to include -g option to the compiler(demo_proc.mk) so that the 'dbx' debugger can analyse the coredump and find the line causing segmentation error.I am new to Pro*C however, one of the Pro*c resources in our team have added -g option to this, but still it doesn't seem to work. So, could anyone please confirm whether in this attached demo_proc.mk file -g option has been included correctly or something else needs to be done!
1 REPLY

Re: Pro*C - How to include -g option for dbx to be used

I see the -g added, though you need a space:
CFLAGS_NEW=-g $(CFLAGS)
CFLAGS64=-q64 $(CFLAGS_NEW)

You won't be able to use dbx, only gdb on HP-UX.

After you have fixed up your makefile, you need to clean and rebuild.