Add test for load command
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 26 Feb 2018 19:30:43 +0000 (14:30 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Feb 2018 20:57:37 +0000 (15:57 -0500)
commit3275ef477498e0500d7ea440f1bc51787acf4610
treebf127ecd492b49710c78428d202042ad2f220d4e
parentc5196c9298b7df29652c0ebe24a43ac6c9c76b0d
Add test for load command

There doesn't seem to by any test for the load command.  I suggest to
add this test, so that we can have a minimum of confidence we don't
break it completely while refactoring the code that implements it.

gdb/testsuite/ChangeLog:

* gdb.base/load-command.c: New file.
* gdb.base/load-command.exp: New file.
* lib/gdb.exp (gdb_is_target_remote_prompt): Rename to...
(gdb_is_target_1): ...this, and generalize for other targets
than just remote.
(gdb_is_target_remote): Use gdb_is_target_1.
(gdb_is_target_native): use gdb_is_target_1.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/load-command.c [new file with mode: 0644]
gdb/testsuite/gdb.base/load-command.exp [new file with mode: 0644]
gdb/testsuite/lib/gdb.exp