radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.66k stars 3k forks source link

Warning/error message if there is no such asm.cpu #7179

Open Darkkey opened 7 years ago

Darkkey commented 7 years ago

E.g.

:> e asm.cpu = Atmega128

Gives nothing if there is no such chip supported (in e asm.cpu=?), but it should at least warn.

Also it's strange that after this command, the CPU value is still set

:> e asm.cpu
ATmega128

even if it's not supported correctly:

:> e asm.cpu =?
ATmega8
ATmega168
ATmega328p
ATmega32u4
ATmega1280
ATmega2560
ATmega48
Maijin commented 7 years ago

ok same for asm.os

radare commented 7 years ago

this will produce lot of errors because of the switches between different asm.bits in the startup process of r2 when loading a file. this requires more work than just adding an eprintf

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. Considering a lot has changed since its creation, we kindly ask you to check again if the issue you reported is still relevant in the current version of radare2. If it is, update this issue with a comment, otherwise it will be automatically closed if no further activity occurs. Thank you for your contributions.