This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: (patch) hpjyg11: hp-symtab-read.c & related
- To: Jimmy Guo <guo at cup dot hp dot com>
- Subject: Re: (patch) hpjyg11: hp-symtab-read.c & related
- From: David Taylor <taylor at cygnus dot com>
- Date: Tue, 22 Feb 2000 19:15:14 -0500
- cc: gdb-patches at sourceware dot cygnus dot com
Date: Fri, 5 Nov 1999 12:57:57 -0800 (PST)
From: Jimmy Guo <guo@cup.hp.com>
1999-11-04 Jimmy Guo <guo@cup.hp.com>
[...]
* gdbtypes.h (BOUND_BY_VARIABLE,TYPE_ARRAY_HIGH_BOUND_TYPE,
TYPE_ARRAY_LOW_BOUND_TYPE): Define.
[...]
The gdbtypes.h part of this patch is approved.
Index: gdb/gdbtypes.h
/opt/gnu/bin/diff -r -c -N /view/guo.wdb.c//CLO/Components/WDB/Src/gnu/gdb/gdbtypes.h gdb/gdbtypes.h
*** /view/guo.wdb.c//CLO/Components/WDB/Src/gnu/gdb/gdbtypes.h Thu Nov 4 14:57:54 1999
--- gdb/gdbtypes.h Thu Nov 4 15:00:42 1999
***************
*** 246,252 ****
/* FIXME, these should probably be restricted to a Fortran-specific
field in some fashion. */
! #define BOUND_CANNOT_BE_DETERMINED 5
#define BOUND_BY_REF_ON_STACK 4
#define BOUND_BY_VALUE_ON_STACK 3
#define BOUND_BY_REF_IN_REG 2
--- 246,253 ----
/* FIXME, these should probably be restricted to a Fortran-specific
field in some fashion. */
! #define BOUND_CANNOT_BE_DETERMINED 6
! #define BOUND_BY_VARIABLE 5
#define BOUND_BY_REF_ON_STACK 4
#define BOUND_BY_VALUE_ON_STACK 3
#define BOUND_BY_REF_IN_REG 2
***************
*** 704,709 ****
--- 705,716 ----
#define TYPE_ARRAY_LOWER_BOUND_VALUE(arraytype) \
(TYPE_FIELD_BITPOS((TYPE_FIELD_TYPE((arraytype),0)),0))
+
+ #define TYPE_ARRAY_HIGH_BOUND_TYPE(arraytype) \
+ (TYPE_FIELD_TYPE((TYPE_FIELD_TYPE((arraytype),0)),1))
+
+ #define TYPE_ARRAY_LOW_BOUND_TYPE(arraytype) \
+ (TYPE_FIELD_TYPE((TYPE_FIELD_TYPE((arraytype),0)),0))
/* C++ */