This is the mail archive of the
mailing list for the GDB project.
Re: [PATCHv2 1/2] gdb: Remove unneeded parameter from set_breakpoint_location_function
On 7/1/19 7:02 PM, Andrew Burgess wrote:
> The explicit_loc parameter in set_breakpoint_location_function is not
> useful. This parameter is set from two possible fields of the
> symtab_and_line used to create the breakpoint; the explicit_pc field,
> and the explicit_line field.
> First, the explicit_line field, this is not currently set for any
> breakpoint command, so will never be true.
> Next, the explicit_pc field. This can be true but will never be true
> at the same time that the sal->msymbol field is also true - the
> sal->msymbol is only ever set in linespec.c:minsym_found, which
> doesn't allow for explicitly setting the pc.
> The result of this is that if we are setting a breakpoint on an
> msymbol that could turn out to be an ifunc, then we will not also have
> either an explicit_pc or an explicit_line, this check can therefore be
> There should be no user visible changes after this commit.
> * breakpoint.c (set_breakpoint_location_function): Remove
> explicit_loc parameter.
> (momentary_breakpoint_from_master): Update call to
> (add_location_to_breakpoint): Likewise.