How to make gdb emit the commands it is executing in batch mode
Asked Answered
U

1

1

Is there a way to call gdb --batch --commands some_gdb_script some_executable and have it emit both the commands it executes, along with the command results? I do not want to install anything other than gdb, such as xdotool etc. It should just work within stock gdb with no extensions.

Uitlander answered 28/3, 2020 at 22:52 Comment(0)
K
1

have it emit both the commands it executes, along with the command results?

See this bug.

Using set trace-commands on almost achieves the desired result.

Krystinakrystle answered 29/3, 2020 at 1:7 Comment(1)
I would have never figured that out on my own. Thank you!Uitlander

© 2022 - 2024 — McMap. All rights reserved.