So, are you trying to execute more than one command in the same line of GDB?
Unfortunately it will NOT work this way:
(gdb) mon si ; mon regsGDB doesn't recognize the above command as two commands. Fortunately you can execute these two commands creating a definition (like a MACRO) this way:(gdb) define sishow > mon si > mon regs > end
I'm creating the "sishow" command, then when I type it in the terminal it will execute "mon si" and then "mon regs". These commands will do the step instruction and show the registers to me.Advertisements