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: [PATCH] Make sure to update registers if frame information has changed


On Wed, Jul 1, 2015 at 8:36 AM, Patrick Palka <patrick@parcs.ath.cx> wrote:
> When I removed TUI's frame_changed hook to fix PR tui/13378 I assumed
> that there's no reason to refresh register information following a call
> to "up", "down" or "frame".  This assumption was made to fix the problem
> of refreshing frame information twice following a sync-execution normal
> stop (once in tui_normal_stop and then in tui_before_prompt) -- the
> second refresh removing any highlights made by the first.
>
> I was wrong about that -- GDB's snapshot of register information is
> per-frame, and when the frame changes, registers do too (most
> prominently the %rip and %rsp registers).  So e.g. GDB 7.8 would
> highlight such register changes after invoking "up", "down" or "frame",
> and current GDB does not.
>
> To fix this regression, I added another (sufficient) condition for

To be more precise, s/I added/this patch adds/


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