aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-05-08 14:57:41 +0000
committerMark Kettenis <kettenis@gnu.org>2005-05-08 14:57:41 +0000
commitb57b6c2e22c1cac0016636a25697ef651af1b5eb (patch)
treed9615d00cdefc7f180facb63fae9a6ab9194e77e /gdb/defs.h
parent9cedd1a6ad508a60411968315995dcf71f5d3ac2 (diff)
downloadfsf-binutils-gdb-b57b6c2e22c1cac0016636a25697ef651af1b5eb.zip
fsf-binutils-gdb-b57b6c2e22c1cac0016636a25697ef651af1b5eb.tar.gz
fsf-binutils-gdb-b57b6c2e22c1cac0016636a25697ef651af1b5eb.tar.bz2
* defs.h (gdb_byte): New typedef. Tweak comments.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 30178a4..dcb9eb2 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1,7 +1,7 @@
/* *INDENT-OFF* */ /* ATTR_FORMAT confuses indent, avoid running it for now */
/* Basic, host-specific, and target-specific definitions for GDB.
Copyright 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
- 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GDB.
@@ -63,15 +63,16 @@
#include "libiberty.h"
-/* For BFD64 and bfd_vma. */
+/* Rather than duplicate all the logic in BFD for figuring out what
+ types to use (which can be pretty complicated), symply define them
+ in terms of the corresponding type from BFD. */
+
#include "bfd.h"
-/* An address in the program being debugged. Host byte order. Rather
- than duplicate all the logic in BFD which figures out what type
- this is (long, long long, etc.) and whether it needs to be 64
- bits (the host/target interactions are subtle), we just use
- bfd_vma. */
+/* A byte from the program being debugged. */
+typedef bfd_byte gdb_byte;
+/* An address in the program being debugged. Host byte order. */
typedef bfd_vma CORE_ADDR;
/* This is to make sure that LONGEST is at least as big as CORE_ADDR. */