GNU Binutils with patches for OS216
Revisão | 15cf126c04a3720fb856f7f3bfb56869d5855939 (tree) |
---|---|
Hora | 2015-10-30 02:43:02 |
Autor | Simon Marchi <simon.marchi@poly...> |
Commiter | Simon Marchi |
Cast gdb_dlsym return value
gdb/ChangeLog:
* jit.c (jit_reader_load): Add cast.
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
2 | 2 | |
3 | + * jit.c (jit_reader_load): Add cast. | |
4 | + | |
5 | +2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> | |
6 | + | |
3 | 7 | * dwarf2read.c (partial_die_full_name): Add cast. |
4 | 8 | |
5 | 9 | 2015-10-29 Pedro Alves <palves@redhat.com> |
@@ -177,7 +177,7 @@ jit_reader_load (const char *file_name) | ||
177 | 177 | so = gdb_dlopen (file_name); |
178 | 178 | old_cleanups = make_cleanup_dlclose (so); |
179 | 179 | |
180 | - init_fn = gdb_dlsym (so, reader_init_fn_sym); | |
180 | + init_fn = (reader_init_fn_type *) gdb_dlsym (so, reader_init_fn_sym); | |
181 | 181 | if (!init_fn) |
182 | 182 | error (_("Could not locate initialization function: %s."), |
183 | 183 | reader_init_fn_sym); |