[C++] linux-thread-db.c: dladdr cast
Fixes: src/gdb/linux-thread-db.c: In function ‘int try_thread_db_load_1(thread_db_info*)’: src/gdb/linux-thread-db.c:769:53: error: invalid conversion from ‘td_err_e (*)(ps_prochandle*, td_thragent_t**) {aka td_err_e (*)(ps_prochandle*, td_thragent**)}’ to ‘const void*’ [-fpermissive] library = dladdr_to_soname (*info->td_ta_new_p); ^ src/gdb/linux-thread-db.c:637:1: error: initializing argument 1 of ‘const char* dladdr_to_soname(const void*)’ [-fpermissive] dladdr_to_soname (const void *addr) ^ gdb/ChangeLog: 2015-11-19 Pedro Alves <palves@redhat.com> * linux-thread-db.c (try_thread_db_load_1): Add cast.
This commit is contained in:
parent
915ef8b18e
commit
f8708a1426
|
@ -1,3 +1,7 @@
|
|||
2015-11-19 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* linux-thread-db.c (try_thread_db_load_1): Add cast.
|
||||
|
||||
2015-11-19 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* remote.c (remote_unpush_target): Use
|
||||
|
|
|
@ -766,7 +766,7 @@ try_thread_db_load_1 (struct thread_db_info *info)
|
|||
struct ui_file *file;
|
||||
const char *library;
|
||||
|
||||
library = dladdr_to_soname (*info->td_ta_new_p);
|
||||
library = dladdr_to_soname ((const void *) *info->td_ta_new_p);
|
||||
if (library == NULL)
|
||||
library = LIBTHREAD_DB_SO;
|
||||
|
||||
|
|
Loading…
Reference in New Issue