Bug 21814 - Make it possible to view disassembly with raw bytes using x/i command
Summary: Make it possible to view disassembly with raw bytes using x/i command
Status: UNCONFIRMED
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: 8.0
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: good-first-bug
Depends on:
Blocks:
 
Reported: 2017-07-21 19:13 UTC by Ruslan
Modified: 2018-04-12 20:08 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan 2017-07-21 19:13:02 UTC
I know two modes of GDB disassembly:

First command be used to show instructions as well as raw byte, but it seems to not accept number of instructions to disassemble — only memory range:
    disas/r $pc,+30

Second command can disassemble exactly N instructions, like follows, but without raw bytes:
    x/10i $pc

I'd be good to have a hybrid of these two modes: make the raw bytes visible as in disas/r and be able to specify exact number of instructions to disassemble as in x/10i.