aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index b2233b9..3724537 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -3556,7 +3556,7 @@ minsym_found (struct linespec_state *self, struct objfile *objfile,
/* The minimal symbol might point to a function descriptor;
resolve it to the actual code address instead. */
- pc = gdbarch_convert_from_func_ptr_addr (gdbarch, sal.pc, &current_target);
+ pc = gdbarch_convert_from_func_ptr_addr (gdbarch, sal.pc, current_target);
if (pc != sal.pc)
sal = find_pc_sect_line (pc, NULL, 0);
@@ -3573,7 +3573,7 @@ minsym_found (struct linespec_state *self, struct objfile *objfile,
stay correct from the last find_pc_sect_line above. */
sal.pc = MSYMBOL_VALUE_ADDRESS (objfile, msymbol);
sal.pc = gdbarch_convert_from_func_ptr_addr (gdbarch, sal.pc,
- &current_target);
+ current_target);
if (gdbarch_skip_entrypoint_p (gdbarch))
sal.pc = gdbarch_skip_entrypoint (gdbarch, sal.pc);
}
@@ -3665,7 +3665,7 @@ add_minsym (struct minimal_symbol *minsym, void *d)
NULL, 0);
sal.section = MSYMBOL_OBJ_SECTION (info->objfile, minsym);
pc
- = gdbarch_convert_from_func_ptr_addr (gdbarch, sal.pc, &current_target);
+ = gdbarch_convert_from_func_ptr_addr (gdbarch, sal.pc, current_target);
if (pc != sal.pc)
sal = find_pc_sect_line (pc, NULL, 0);
@@ -3689,7 +3689,7 @@ add_minsym (struct minimal_symbol *minsym, void *d)
struct gdbarch *gdbarch = get_objfile_arch (info->objfile);
CORE_ADDR addr = gdbarch_convert_from_func_ptr_addr
(gdbarch, BMSYMBOL_VALUE_ADDRESS (mo),
- &current_target);
+ current_target);
if (addr == BMSYMBOL_VALUE_ADDRESS (mo))
return;