Closed ppetrovic98 closed 6 months ago
The GDB python script is placed inside lldb/tools/lldb-crash-server/gdb-interop folder, but if you think that it should be placed somewhere else, please let me know.
I just updated PR with newest changes. Since GDB script is mostly different, I changed previous commit and commit message.
GDB Python script that defines save_regs and set_regs GDB custom commands.
'save_regs' - reading IP, SP and BP register values from corefile.
'set_regs' - setting current (live) registers to values read from corefile.
The
save_regs
command should be executed after loading a corefile but before connecting GDB to Crash server.The
load_regs
command is used after connecting GDB to Crash server.