Operating System - HP-UX
1751856 Members
5681 Online
108782 Solutions
New Discussion

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

 
arich
New Member

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 1
Dennis Handly
Acclaimed Contributor

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.