diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-06 19:44:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-06 19:44:04 +0000 |
commit | b6807d988a28dc2718bae1abba1f28779bc0c3c3 (patch) | |
tree | bb4adece022138ab739318623eec8dce672a03b8 /gdb/testsuite/gdb.dwarf2/implptrconst.c | |
parent | 3aef2284c6976e2b497d5e712cf0cedcc14bed58 (diff) | |
download | binutils-b6807d988a28dc2718bae1abba1f28779bc0c3c3.zip binutils-b6807d988a28dc2718bae1abba1f28779bc0c3c3.tar.gz binutils-b6807d988a28dc2718bae1abba1f28779bc0c3c3.tar.bz2 |
* dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
(indirect_pieced_value): Call dwarf2_fetch_constant_bytes
if needed.
* dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
* dwarf2read.c (write_constant_as_bytes)
(dwarf2_fetch_constant_bytes): New functions.
gdb/testsuite
* gdb.dwarf2/implptrconst.c: New file.
* gdb.dwarf2/implptrconst.exp: New file.
* lib/dwarf.exp (Dwarf::_nz_quote): New proc.
(Dwarf::_handle_DW_FORM): Handle DW_FORM_block1.
(Dwarf::_location): Handle DW_OP_GNU_implicit_pointer.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/implptrconst.c')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/implptrconst.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/implptrconst.c b/gdb/testsuite/gdb.dwarf2/implptrconst.c new file mode 100644 index 0000000..a6eef1f --- /dev/null +++ b/gdb/testsuite/gdb.dwarf2/implptrconst.c @@ -0,0 +1,22 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2013 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/>. */ + +int +main () +{ + return 0; +} |