Multiple commands in gdb separated by some sort of delimiter ';'?

前端 未结 6 1405
故里飘歌
故里飘歌 2020-12-12 12:53

I am trying to execute two commands at once in gdb:

finish; next

I tried using the \';\' to separate the commands but gdb did not let me do

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-12 13:10

    i ran across another way to do multiple commands in GDB using a Bash HERE document.

    example:

    cat << EOF | gdb
    print "command_1"
    print "..."
    print "command_n"
    EOF
    

    this has limited value/usability IMO because GDB quits after executing the list of commands.

提交回复
热议问题