tests/tcg: clean-up gdb confirm/pagination settings

We can do this all in the run-test.py script so remove the extraneous
bits from the individual tests which got copied from the original
non-CI gdb tests.

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230829161528.2707696-8-alex.bennee@linaro.org>
This commit is contained in:
Alex Bennée 2023-08-29 17:15:23 +01:00
parent d84842be6c
commit a8fea70f65
10 changed files with 2 additions and 33 deletions

View File

@ -83,6 +83,8 @@ if __name__ == '__main__':
gdb_cmd += " %s" % (args.gdb_args)
# run quietly and ignore .gdbinit
gdb_cmd += " -q -n -batch"
# disable pagination
gdb_cmd += " -ex 'set pagination off'"
# disable prompts in case of crash
gdb_cmd += " -ex 'set confirm off'"
# connect to remote

View File

@ -76,9 +76,6 @@ except (gdb.error, AttributeError):
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
# Run the actual tests
run_test()
except:

View File

@ -66,9 +66,6 @@ except (gdb.error, AttributeError):
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
# Run the actual tests
run_test()
except:

View File

@ -115,9 +115,6 @@ if gdb.parse_and_eval('$pc') == 0:
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
# Run the actual tests
run_test()
except (gdb.error):

View File

@ -73,10 +73,6 @@ if gdb.parse_and_eval('$pc') == 0:
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
gdb.execute("set confirm off")
# Run the actual tests
run_test()
except (gdb.error):

View File

@ -51,10 +51,6 @@ def main():
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
gdb.execute("set confirm off")
# Run the actual tests
run_test()
except gdb.error:

View File

@ -42,10 +42,6 @@ if gdb.parse_and_eval('$pc') == 0:
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
gdb.execute("set confirm off")
# Run the actual tests
run_test()
except (gdb.error):

View File

@ -45,10 +45,6 @@ if gdb.parse_and_eval('$pc') == 0:
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
gdb.execute("set confirm off")
# Run the actual tests
run_test()
except (gdb.error):

View File

@ -61,10 +61,6 @@ if gdb.parse_and_eval("$pc") == 0:
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
gdb.execute("set confirm off")
# Run the actual tests
run_test()
except (gdb.error):

View File

@ -49,10 +49,6 @@ def main():
exit(0)
try:
# These are not very useful in scripts
gdb.execute("set pagination off")
gdb.execute("set confirm off")
# Run the actual tests
run_test()
except gdb.error: