From b99b5f66e1d6f80624e8a28b8ebbf9235d50041e Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 8 Sep 2011 15:24:25 +0000 Subject: gdb/ * stack.c (print_frame_args): New variable except. Wrap read_var_value and common_val_print into TRY_CATCH. gdb/testsuite/ * gdb.dwarf2/dw2-param-error-main.c: New file. * gdb.dwarf2/dw2-param-error.S: New file. * gdb.dwarf2/dw2-param-error.exp: New file. --- gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c (limited to 'gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c') diff --git a/gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c b/gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c new file mode 100644 index 0000000..ad3e42a --- /dev/null +++ b/gdb/testsuite/gdb.dwarf2/dw2-param-error-main.c @@ -0,0 +1,37 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2011 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +asm (".globl f_start"); +asm ("f_start:"); + +volatile int v; + +void +f (int x) +{ + v++; +} + +asm (".globl f_end"); +asm ("f_end:"); + +int +main (void) +{ + f (1); + return 0; +} -- cgit v1.1