Changeset 218


Ignore:
Timestamp:
Jan 5, 2004, 6:10:18 PM (21 years ago)
Author:
Gary Byers
Message:

Don't assume that dladdr exists if STATIC is defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/plbt.c

    r6 r218  
    150150  if ((fun == 0) || (fun == fulltag_misc)) {
    151151    spname = "unknown ?";
     152#ifndef STATIC
    152153    if (dladdr((void *)pc, &info)) {
    153154      spname = (char *)(info.dli_sname);
    154155    }
     156#endif
    155157    Dprintf("(#x%08X) #x%08X : (subprimitive %s)", frame, pc, spname);
    156158  } else {
     
    182184  Dl_info foreign_info;
    183185
     186#ifndef STATIC
    184187  if (dladdr((void *)pc, &foreign_info)) {
    185188    Dprintf("(#x%08x) #x%08X : %s + %d", frame, pc, foreign_info.dli_sname,
    186189            pc-((int)foreign_info.dli_saddr));
    187190  } else {
     191#endif
    188192    Dprintf("(#x%08X) #x%08X : foreign code (%s)", frame, pc, "unknown");
    189   }
    190 
     193#ifndef STATIC
     194  }
     195#endif
    191196}
    192197
     
    284289  void *pc = (void *) (((c_frame *)frame)->savelr);
    285290#endif
     291#ifndef STATIC
    286292  if (dladdr(pc, &info)) {
    287293    if (delta) {
     
    290296    return info.dli_sname;
    291297  }
     298#endif
    292299  if (delta) {
    293300    *delta = 0;
Note: See TracChangeset for help on using the changeset viewer.