Databases
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
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.