coredump-reader: set confirmation off

The undefined function may cause the debugger not able to run
properly. Print a "set confirm off" instruction to the beginning of
output file to solve this problem.

(xt-gdb) break _MemErrorVector
Breakpoint 1 at 0x9f180400
(xt-gdb) break _MemoryExceptionVector_text_start
Function "_MemoryExceptionVector_text_start" not defined.
Make breakpoint pending on future shared library load? (y or [n]) run
Please answer y or [n].
...

Signed-off-by: Brent Lu <brent.lu@intel.com>
This commit is contained in:
Brent Lu 2023-01-03 22:06:18 +08:00 committed by Liam Girdwood
parent 3b8ef3a791
commit a6214d06b1
1 changed files with 3 additions and 0 deletions

View File

@ -719,6 +719,9 @@ class CoreDumpReader(object):
stdoutOpen() stdoutOpen()
# disable confirmation request for undefined breakpoint
stdoutPrint("set confirm off\n")
# for XTOS SOF build # for XTOS SOF build
stdoutPrint("break _MemErrorVector\n") stdoutPrint("break _MemErrorVector\n")
# for Zephyr SOF build # for Zephyr SOF build