* Two variants of stack symbol lookup -- one that uses the DDB interfaces * and bypasses linker locking, and the other that doesn't. */
| 252 | * and bypasses linker locking, and the other that doesn't. |
| 253 | */ |
| 254 | static int |
| 255 | stack_symbol(vm_offset_t pc, char *namebuf, u_int buflen, long *offset, |
| 256 | int flags) |
| 257 | { |
| 258 | int error; |
| 259 | |
| 260 | error = linker_search_symbol_name_flags((caddr_t)pc, namebuf, buflen, |
| 261 | offset, flags); |
| 262 | if (error == 0 || error == EWOULDBLOCK) |
| 263 | return (error); |
| 264 | |
| 265 | *offset = 0; |
| 266 | strlcpy(namebuf, "??", buflen); |
| 267 | return (ENOENT); |
| 268 | } |
| 269 | |
| 270 | static int |
| 271 | stack_symbol_ddb(vm_offset_t pc, const char **name, long *offset) |
no test coverage detected