Converting Lots of Code to Data in IDA
Well unfortunately I pressed "C" in the data section of the binary, I worked a lot and saved it since I had a lot of work with the saved ones. I tried to convert this huge section back to data, but whenever I select rows and hit 'D', only the row where the cursor is converted to data.
So my question is, how do I tag / convert a large amount of data to code in IDA (specifically 6.1)
(Target architecture is ARM, if that matters.)
D
is the definition of individual data. You can go to the first instruction and use U
for Undefine
. It will remove more code than Convert to Data.
You can do this with a quick IDAPython script, eg. enter:
for a in xrange(startaddr, endaddr): MakeCode(a)
in the Python field of the Output window.