godzie44 / BugStalker

Rust debugger for Linux x86-64
MIT License
490 stars 15 forks source link

Commands instruction? #39

Open taladar opened 1 month ago

taladar commented 1 month ago

While I haven't tried BugStalker yet (just discovered it) I have noticed the absence of one gdb command that would probably be quite easy to implement and has proved useful in gdb in the past for me.

That is the commands instruction which simply sets a list of commands to be executed automatically when a breakpoint is hit. This can be useful to e.g. print all the backtraces for a given breakpoint or some specific pieces of data at every occurence relatively quickly.

godzie44 commented 1 month ago

Thanks for the idea! I have never used this functionality in GDB (because I didn’t know), I will definitely try to implement it in version 0.3.0