Dman95 / SASM

SASM - simple crossplatform IDE for NASM, MASM, GAS and FASM assembly languages

Home Page:http://dman95.github.io/SASM/

Repository from Github https://github.comDman95/SASMRepository from Github https://github.comDman95/SASM

Bug: Debugging does not work when .gdbinit is present in home directory.

McBride-SallyJoeBob opened this issue · comments

Environment: [Ubuntu 20.04 LTS] GDB 9.2

Steps to reproduce: Added .gdbinit file to home directory which gives custom GDB ui. Ran SASM with the following options

assembly options: -f elf -gstabs $SOURCE$ -l $LSTOUTPUT$ -o $PROGRAM.OBJ$
linking options: -o $PROGRAM$ -m elf_i386 $PROGRAM.OBJ$
Assembler path: nasm
linker path: ld

Expected behavior: Debugger launches normally, allowing to view registers memory and breakpoints and debug.

Actual behavior: Debugger freezes after successful build. Registers and memory are greyed out and none of the debug commands work.

Possible solution: Use gdb -nx to always avoid gdbinit no matter what. For the class I am using this software in, we often need to add a gdbinit file because we are debugging a QEMU emulator. As a result any time I want to debug using SASM, I must first remove the .gdbinit file before proceeding.