diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-06-05 19:16:04 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-06-05 19:16:04 +0300 |
commit | 9ae5c0a2e12c25f37736d9b106c55227b55521e6 (patch) | |
tree | 2ce563b68d2694c9358c497f9a887ea20704c6b1 /src/dynlib.c | |
parent | 5d29c0f006d071008eba8d235db917d5c8b271bb (diff) |
Fix emacs-module-tests on MS-Windows
* src/print.c (print_vectorlike): Make sure module function's
address prints with a leading "0x". This fixes emacs-module-tests
on MS-Windows. Fix whitespace.
* src/dynlib.c (dynlib_addr): Remove unused variable. Update
commentary.
Diffstat (limited to 'src/dynlib.c')
-rw-r--r-- | src/dynlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dynlib.c b/src/dynlib.c index 79e98b0f288..47ba5e3d91b 100644 --- a/src/dynlib.c +++ b/src/dynlib.c @@ -126,7 +126,6 @@ void dynlib_addr (void *addr, const char **fname, const char **symname) { static char dll_filename[MAX_UTF8_PATH]; - static char addr_str[22]; static GetModuleHandleExA_Proc s_pfn_Get_Module_HandleExA = NULL; char *dll_fn = NULL; HMODULE hm_kernel32 = NULL; @@ -216,8 +215,9 @@ dynlib_addr (void *addr, const char **fname, const char **symname) of the module functions will be unexported, and probably even static, which means the symbols can be obtained only if we link against libbfd (and the DLL can be stripped anyway). So we just - show the address and the file name; they can use that with - addr2line or GDB to recover the symbolic name. */ + show the address and the file name (see print_vectorlike in + print.c); they can use that with addr2line or GDB to recover the + symbolic name. */ *symname = NULL; } |