From b6807d988a28dc2718bae1abba1f28779bc0c3c3 Mon Sep 17 00:00:00 2001
From: Tom Tromey <tromey@redhat.com>
Date: Mon, 6 May 2013 19:44:04 +0000
Subject: 	* 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.

---
 gdb/testsuite/gdb.dwarf2/implptrconst.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 gdb/testsuite/gdb.dwarf2/implptrconst.c

(limited to 'gdb/testsuite/gdb.dwarf2/implptrconst.c')

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;
+}
-- 
cgit v1.1