This is the mail archive of the gdb-prs@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]

[Bug tdep/19279] New: x86: sizeof($cs) and other segment registers returns 4 instead of 2


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

            Bug ID: 19279
           Summary: x86: sizeof($cs) and other segment registers returns 4
                    instead of 2
           Product: gdb
           Version: 7.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: b7.10110111 at gmail dot com
  Target Milestone: ---

To reproduce, just run

gdb -q -ex 'p sizeof($cs)' -ex 'q'

and see the result being "$1 = 4" instead of expected "$1 = 2", which you'd get
if you replaced "cs" with e.g. "ax" (also a 16-bit register).

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

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