Operating System - HP-UX
1832983 Members
2903 Online
110048 Solutions
New Discussion

Re: Regarding Core File / Stack Image

 
Srinivasan S_1
Advisor

Regarding Core File / Stack Image

Hi,

I have an application which outputs core.
I knew that in debug mode we can use gdb -c to know where the program aborted.

If suppose application is not compiled in "DEBUG MODE" as core dont have debugging symbols I am not able to get stack trace.

Is there any way to know the stack trace ?

Kindly let me know. Thanks for suggestions in advance.
5 REPLIES 5
Muthukumar_5
Honored Contributor

Re: Regarding Core File / Stack Image

You can get informations as,

file core
what core

hth.
Easy to suggest when don't know about the problem!
Srinivasan S_1
Advisor

Re: Regarding Core File / Stack Image

Thanks for your effort.

But I would like to have stack trace ( function) and not the application which aborted.

With Regards,
Srinivasan S
Muthukumar_5
Honored Contributor

Re: Regarding Core File / Stack Image

Can you able to get stack information with adb as,

adb
adb> c
adb> m

hth.
Easy to suggest when don't know about the problem!
Srinivasan S_1
Advisor

Re: Regarding Core File / Stack Image

No I am not getting.

with c it says "symbol not found".

Did you mean $c or $m then,
$c says can't unwind -- no_entry

But still i am not getting the trace.

Regards,
Srinivasan S

D Block 2
Respected Contributor

Re: Regarding Core File / Stack Image

the adb commands are low-level, and generally preceded by the '$'.

adb
$C
$T

you might be lucky and get a Back-Trace or Stack-Trace, but keep in my the Symbolic names are 'mangled'.. you will need to get your code compiled with the -g option.

Also, get the GNU's debugger downloaded free and use the Window version called: WDB.

http://www.hp.com/go/wdb

it's free !!
Golf is a Good Walk Spoiled, Mark Twain.