General
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch a struccture elements from a core file

Masthan
Advisor

How to fetch a struccture elements from a core file

Hi All,

From the core file I am able to fetch the structure address, is there a way to fetch (by typecasting so) the elements of structure?

Thanks,
Masthan
3 REPLIES
avizen9
Esteemed Contributor

Re: How to fetch a struccture elements from a core file

not sure,
can you eleborate more, what exectly are you looking for,

give more details so somebody will respose you, thanks,
Srimalik
Valued Contributor

Re: How to fetch a struccture elements from a core file

If you have the address and the format of structure you can go on using x/x or x/s etc to print invidual members on the offset addresses. Just be aware of the alinments :-).


abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: How to fetch a struccture elements from a core file

>is there a way to fetch (by typecasting so) the elements of structure?

Sure if you have debug info:
p *(struct foo*)hex-address

Your other thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1342714