0

i want to write a code which will work like backtrace utility on ARM9 architecture.

i did come across the code back trace for ulibc in arm. But from above code i want to know the details of data structure layout and parameter used in above code. Can anyone throw some light on the above.

thanks in advance.

4

1 回答 1

0

在 glibc 中,它在 dlfcn/dlfcn.h 中定义,看起来像

/* Structure containing information about object searched using
   `dladdr'.  */
typedef struct
{
  __const char *dli_fname;      /* File name of defining object.  */
  void *dli_fbase;              /* Load address of that object.  */
  __const char *dli_sname;      /* Name of nearest symbol.  */
  void *dli_saddr;              /* Exact value of nearest symbol.  */
} Dl_info;
于 2012-02-02T15:02:11.717 回答