diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-03-22 21:06:34 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-03-22 21:06:34 +0000 |
commit | dd90784ccd58dfb449e9ccfd731b91db27e345d6 (patch) | |
tree | bd555cc67e2a42a9ae99304478c39f55f1367b22 /gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c | |
parent | dc80f6ae78dff1ae428d4d312eb47f5b6bb8cea6 (diff) | |
download | gdb-dd90784ccd58dfb449e9ccfd731b91db27e345d6.zip gdb-dd90784ccd58dfb449e9ccfd731b91db27e345d6.tar.gz gdb-dd90784ccd58dfb449e9ccfd731b91db27e345d6.tar.bz2 |
gdb/
* dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
label abort_expression.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
DWARF_VALUE_OPTIMIZED_OUT.
gdb/testsuite/
* gdb.dwarf2/dw2-entry-value-main.c: New file.
* gdb.dwarf2/dw2-entry-value.S: New file.
* gdb.dwarf2/dw2-entry-value.exp: New file.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c b/gdb/testsuite/gdb.dwarf2/dw2-entry-value-main.c new file mode 100644 index 0000000..ad3e42a --- /dev/null +++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-value-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 <http://www.gnu.org/licenses/>. */ + +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; +} |