![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding a columnfrom a specifit line number to a specific line number | Ezy | Shell Programming and Scripting | 2 | 05-12-2008 08:29 AM |
| Appending line number to each line and getting total number of lines | chiru_h | Shell Programming and Scripting | 2 | 03-25-2008 10:19 AM |
| Function Trace | ajcannon | Shell Programming and Scripting | 3 | 10-05-2007 03:55 AM |
| Date format conversion function | Cecile | UNIX for Dummies Questions & Answers | 9 | 08-31-2006 09:46 AM |
| conversion of a input function to i18n | nirnay_s | UNIX for Advanced & Expert Users | 4 | 06-08-2006 06:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
function trace back and address to line number conversion
Hi,
I am new to AIX and I am developing a small tool for our product which helps debug memory leaks etc. Q1)Is there a way in which i can get a function trace back as to the call (lets say malloc() )has been made in which file--> in which function. I tried using the #pragma options ( i might be making a mistake in the sub options for tbtable would need guidance here too) and -qtbtable=full which says that a full stack trace would be appended as a text file at the end of the object file that we create if we create the obj file using the -g option. But I dont seem to see any stack trace at the end of the obj file. Can someone tell me what possibly could be my mistake? or suggest a better way of getting a stack trace now using __builtin_return_address() i can get the code address from where the fucntion call ( malloc() ) has been made. Q2)Is there any function which will help me find the line number of the function call ( malloc() ). On HP UX we have addr2line() function which does this thing... on AIX i dont have an idea which function does it. Thank you very much in advance. Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|