aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/break-interp-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/break-interp-main.c')
-rw-r--r--gdb/testsuite/gdb.base/break-interp-main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/break-interp-main.c b/gdb/testsuite/gdb.base/break-interp-main.c
index 57b81f6..e12ec2b 100644
--- a/gdb/testsuite/gdb.base/break-interp-main.c
+++ b/gdb/testsuite/gdb.base/break-interp-main.c
@@ -15,12 +15,16 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-extern void libfunc (void);
+#include <assert.h>
+
+extern void libfunc (const char *action);
int
-main (void)
+main (int argc, char **argv)
{
- libfunc ();
+ assert (argc == 2);
+
+ libfunc (argv[1]);
return 0;
}