lncg / edb-debugger

Automatically exported from code.google.com/p/edb-debugger
GNU General Public License v2.0
0 stars 0 forks source link

Labels in jumps and disassembly. #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In jump instructions:
Instead of seeing JMP 0x00007FFA92...
I'd like to see JMP <somelabel> 0x00007FFA92...
Where <somelabel> is editable.

Within instruction stream:

Instead of seeing 
NOP
NOP
NOP

I'd like to see either

NOP
somelabel:
NOP
NOP

or

            NOP
somelabel:  NOP
            NOP

Changing somelabel in a JMP instruction should also change the name within the 
instruction steam.

This is not trivial, we don't know all the possible jump targets. We can do a 
lot based on the known instructions from analysis, but force-adding/removing 
labels is a probably a good idea.

Original issue reported on code.google.com by evan.teran on 3 Oct 2012 at 3:22

GoogleCodeExporter commented 9 years ago

Original comment by evan.teran on 4 Apr 2014 at 3:44

GoogleCodeExporter commented 9 years ago
edb now has basic label support in the GUI. You can right click on any 
instruction and give it a label. The UI will then refer to that address by the 
label in the disassembly.

Some notes:

1. labels take higher precedence than symbols since the user has chosen to name 
the address

2. labels only apply to code.

3. No two addresses may have the same label, but that's ok, because there are 
essentially NO restrictions on what you can label the address. Heck, you can 
probably shove some Unicode symbols in there ;-).

Eventually, labels should be saved and loaded with sessions, but not yet.

Original comment by evan.teran on 31 Dec 2014 at 4:04