public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/15933] New: TUI shows registers of the wrong frame the first time
@ 2013-09-05 11:09 palves at redhat dot com
  2013-09-05 11:09 ` [Bug tui/15933] " palves at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: palves at redhat dot com @ 2013-09-05 11:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15933

            Bug ID: 15933
           Summary: TUI shows registers of the wrong frame the first time
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com

When the TUI's register window is first displayed, it always shows the
registers of the current frame, instead of of the selected frame, which is
obviously bogus.

E.g.,

 (gdb) step             # into "function"
 (gdb) up
 (gdb) tui reg general  # or C-x 2, C-x 2

shows the registers of "function", rather than the caller's.

A subsequent:

 (gdb) frame

or 

 (gdb) down
 (gdb) up

"fix" it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tui/15933] TUI shows registers of the wrong frame the first time
  2013-09-05 11:09 [Bug tui/15933] New: TUI shows registers of the wrong frame the first time palves at redhat dot com
@ 2013-09-05 11:09 ` palves at redhat dot com
  2013-09-05 11:20 ` cvs-commit at gcc dot gnu.org
  2013-09-05 11:50 ` palves at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: palves at redhat dot com @ 2013-09-05 11:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15933

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |palves at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tui/15933] TUI shows registers of the wrong frame the first time
  2013-09-05 11:09 [Bug tui/15933] New: TUI shows registers of the wrong frame the first time palves at redhat dot com
  2013-09-05 11:09 ` [Bug tui/15933] " palves at redhat dot com
@ 2013-09-05 11:20 ` cvs-commit at gcc dot gnu.org
  2013-09-05 11:50 ` palves at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2013-09-05 11:20 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15933

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    palves@sourceware.org    2013-09-05 11:20:16

Modified files:
    gdb            : ChangeLog 
    gdb/tui        : tui-regs.c 

Log message:
    [PR tui/15933] TUI shows registers of the wrong frame the first time

    I've stumbled on this by inspection.

    When the TUI's register window is first displayed, it always shows the
    registers of the current frame, instead of of the selected frame,
    which is obviously bogus.

    E.g.,

    (gdb) step             # into "function"
    (gdb) up
    (gdb) tui reg general  # or C-x 2, C-x 2

    shows the registers of "function", rather than the caller's.

    A subsequent:

    (gdb) frame

    or

    (gdb) down
    (gdb) up

    can be used as workaround to "fix" it.

    gdb/
    2013-09-05  Pedro Alves  <palves@redhat.com>

    PR tui/15933
    * tui/tui-regs.c (tui_show_registers): Show registers of the
    selected frame, not the current frame.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15973&r2=1.15974
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/tui/tui-regs.c.diff?cvsroot=src&r1=1.50&r2=1.51

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tui/15933] TUI shows registers of the wrong frame the first time
  2013-09-05 11:09 [Bug tui/15933] New: TUI shows registers of the wrong frame the first time palves at redhat dot com
  2013-09-05 11:09 ` [Bug tui/15933] " palves at redhat dot com
  2013-09-05 11:20 ` cvs-commit at gcc dot gnu.org
@ 2013-09-05 11:50 ` palves at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: palves at redhat dot com @ 2013-09-05 11:50 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15933

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.7

--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-05 11:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05 11:09 [Bug tui/15933] New: TUI shows registers of the wrong frame the first time palves at redhat dot com
2013-09-05 11:09 ` [Bug tui/15933] " palves at redhat dot com
2013-09-05 11:20 ` cvs-commit at gcc dot gnu.org
2013-09-05 11:50 ` palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).