This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pushed] gdbserver: redo stepping over breakpoint that was on top of a permanent breakpoint


Pedro Alves <palves@redhat.com> writes:

> +      unsigned int increment_pc;
> +
> +      if (the_low_target.breakpoint_len > the_low_target.decr_pc_after_break)
> +	increment_pc = the_low_target.breakpoint_len;
> +      else
> +	increment_pc = the_low_target.decr_pc_after_break;

AFAICS, the_low_target.breakpoint_len is greater or equal to
the_low_target.decr_pc_after_break.  Why don't we use .breakpoint_len
instead?  The code is correct, however, the comparison here leads me to
think under what situation .breakpoint_len is less than .decr_pc_after_break.

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]