aboutsummaryrefslogtreecommitdiff
path: root/gdb/libunwind-frame.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-02-21 19:39:32 +0000
committerPedro Alves <palves@redhat.com>2012-02-21 19:39:32 +0000
commitb54a8fd70210fd1fc7b4f41c4679737066951033 (patch)
tree759bfff66926faf35b830ce2bde4d7722762c7f0 /gdb/libunwind-frame.h
parent82c2def5ff08bb3f5a8c554d78d9a0ddc65dafe0 (diff)
downloadgdb-b54a8fd70210fd1fc7b4f41c4679737066951033.zip
gdb-b54a8fd70210fd1fc7b4f41c4679737066951033.tar.gz
gdb-b54a8fd70210fd1fc7b4f41c4679737066951033.tar.bz2
2012-02-21 Tristan Gingold <gingold@adacore.com>
Pedro Alves <palves@redhat.com> * ia64-tdep.c: Do not include libunwind-ia64.h. * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard. Include libunwind-ia64.h instead of libunwind.h. * configure.ac (--with-libunwind, $enable_libunwind): Don't check for libunwind.h existence. * configure, config.in: Regenerate.
Diffstat (limited to 'gdb/libunwind-frame.h')
-rw-r--r--gdb/libunwind-frame.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/libunwind-frame.h b/gdb/libunwind-frame.h
index 0251819..ef98177 100644
--- a/gdb/libunwind-frame.h
+++ b/gdb/libunwind-frame.h
@@ -19,8 +19,6 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#ifdef HAVE_LIBUNWIND_H
-
struct frame_info;
struct frame_id;
struct regcache;
@@ -29,7 +27,13 @@ struct gdbarch;
#ifndef LIBUNWIND_FRAME_H
#define LIBUNWIND_FRAME_H 1
-#include "libunwind.h"
+/* IA-64 is the only target that currently uses libunwind. If some
+ other target wants to use it, we will need to do some abstracting
+ in order to make it possible to have more than one libunwind-frame
+ instance. Including "libunwind.h" is wrong as that ends up
+ including the libunwind-$(arch).h for the host gdb is running
+ on. */
+#include "libunwind-ia64.h"
struct libunwind_descr
{
@@ -72,5 +76,3 @@ int libunwind_get_reg_special (struct gdbarch *gdbarch,
int regnum, void *buf);
#endif /* libunwind-frame.h */
-
-#endif /* HAVE_LIBUNWIND_H */