Linux Assembly Debugger

前端 未结 3 1591
轻奢々
轻奢々 2021-02-07 15:53

I need a debugger for assembly on Linux. I am extremely surprised by the LACK of debuggers out there for Linux! It should have various features, such as showing the registers an

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-07 16:44

    I am not sure what exactly you mean when you say that gdb is not friendly with NASM. The thing is that gdb uses AT&T notation for displaying assembler. NASM uses Intel notation. There are couple of differences, which you can find on google.

    You can configure gdb to display assembler using Intel notation. The command is set disassembly-flavor intel

    Programs that you've tried, kdb, ffffd and friends are all gdb front-ends. I.e. they present you different UI while use gdb as their back-end.

    I think your best and perhaps the only reasonable option is gdb. Other option is to write debugger your-self, but this is quiet complicated.

    Hope it helps.

提交回复
热议问题