Hi,
Am new to AIX and am trying to find a function that works similar to the function dladdr on HP-UX which takes parameter as an address and a Dl_info type.
On AIX am finding it hard to get a function that does the same job as dladdr does.
Basically what I am doing is getting an address from _builtin_return_address and then pass this as one of the parameters to dladdr and the other as a Dl_info type.
The Dl_info type has 4 elements
function name
file name
nearest object
and one more such thing (sorry since i dont use this one I dont remember it at the moment :|)
This way I am able to trace a function call (a malloc call) on HP UX.
Now there is a dl_info on aix but it does not seem to serve the same purpose.
Could some one please guide me as to how I could do the same on AIX as I have done on HP UX.
1)to find somethign similar to Dl_info(on hp ux) in AIX
2)to find somethign similar to dladdr(on hp-ux) in AIX
Thank you very much in advance