gdb: new function to wrap up executing command line scripts/commands
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 9 Sep 2020 10:26:22 +0000 (11:26 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 2 Nov 2020 17:42:11 +0000 (17:42 +0000)
commit74d877e5221f3459aa9f4f9354194b714d306e18
treea87a21a30a91ea1030503cabbca2848e20a6aee1
parent64aaad6349d2b2c45063a5383f877ce9a3a0c354
gdb: new function to wrap up executing command line scripts/commands

Small refactor to wrap up executing the scripts and commands passed
using the -x, -ex, -ix, -iex command line flags.

There should be no user visible changes after this commit.

gdb/ChangeLog:

* main.c (execute_cmdargs): New function.
(captured_main_1): Make use of execute_cmdargs.
gdb/ChangeLog
gdb/main.c