537 // dladdr() for all platforms. Name of the nearest function is copied |
537 // dladdr() for all platforms. Name of the nearest function is copied |
538 // to buf. Distance from its base address is optionally returned as offset. |
538 // to buf. Distance from its base address is optionally returned as offset. |
539 // If function name is not found, buf[0] is set to '\0' and offset is |
539 // If function name is not found, buf[0] is set to '\0' and offset is |
540 // set to -1 (if offset is non-NULL). |
540 // set to -1 (if offset is non-NULL). |
541 static bool dll_address_to_function_name(address addr, char* buf, |
541 static bool dll_address_to_function_name(address addr, char* buf, |
542 int buflen, int* offset); |
542 int buflen, int* offset, |
|
543 bool demangle = true); |
543 |
544 |
544 // Locate DLL/DSO. On success, full path of the library is copied to |
545 // Locate DLL/DSO. On success, full path of the library is copied to |
545 // buf, and offset is optionally set to be the distance between addr |
546 // buf, and offset is optionally set to be the distance between addr |
546 // and the library's base address. On failure, buf[0] is set to '\0' |
547 // and the library's base address. On failure, buf[0] is set to '\0' |
547 // and offset is set to -1 (if offset is non-NULL). |
548 // and offset is set to -1 (if offset is non-NULL). |