diff options
Diffstat (limited to 'gdb/windows-tdep.c')
-rw-r--r-- | gdb/windows-tdep.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c index 9049f1e..2516e4e 100644 --- a/gdb/windows-tdep.c +++ b/gdb/windows-tdep.c @@ -573,28 +573,21 @@ windows_xfer_shared_library (const char* so_name, CORE_ADDR load_addr, static void windows_iterate_over_objfiles_in_search_order - (struct gdbarch *gdbarch, - iterate_over_objfiles_in_search_order_cb_ftype *cb, - void *cb_data, struct objfile *current_objfile) + (gdbarch *gdbarch, iterate_over_objfiles_in_search_order_cb_ftype cb, + objfile *current_objfile) { - int stop; - if (current_objfile) { - stop = cb (current_objfile, cb_data); - if (stop) + if (cb (current_objfile)) return; } for (objfile *objfile : current_program_space->objfiles ()) - { - if (objfile != current_objfile) - { - stop = cb (objfile, cb_data); - if (stop) - return; - } - } + if (objfile != current_objfile) + { + if (cb (objfile)) + return; + } } static void |