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 gdb/22877] New: Disassemble instructions emulated by the Linux kernel


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

            Bug ID: 22877
           Summary: Disassemble instructions emulated by the Linux kernel
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: noring at nocrew dot org
  Target Milestone: ---

Compilers often generate machine code that is not directly supported by the
processor, for example RDHWR for the mips:5900 and LL, SC, SYNC, etc. for the
mips:3000. These instructions are trapped and emulated by the Linux kernel.

Currently, GDB does not disassemble them or present them as nonsensical
instructions as in the case with RDHWR for the mips:5900.

When debugging, it would be helpful to have GDB properly disassemble emulated
instructions as well. Perhaps an option such as "-M linux-emulation" could
activate this feature. It would also be helpful to indicate which instructions
are emulated, perhaps with a comment in the resulting disassembly.

-- 
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]