aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-12-03 00:13:45 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-12-03 00:13:45 +0000
commit504d5c7e6af52a59551dfa0b4a008f730eec5203 (patch)
tree873bac0c389fb263f87b2b491c07b9205f637bb8 /gdb
parent07c0b9a747acfd63ec940fdd8cc87ddcb8e98ece (diff)
downloadgdb-504d5c7e6af52a59551dfa0b4a008f730eec5203.zip
gdb-504d5c7e6af52a59551dfa0b4a008f730eec5203.tar.gz
gdb-504d5c7e6af52a59551dfa0b4a008f730eec5203.tar.bz2
* somsolib.c (dld_cache): Replace boolean by int for field is_valid.
Fixes a build failure on HP/UX. * hpread.c (told_objfile): Replace boolean type by int. Fixes a build failure on HP/UX. (hpread_has_name): Advance declaration to avoid a compilation warning. (pst_syms_count): Add missing variable type. By change, the compiler was defaulting to int, which seems a good choice. Fixes a compilation warning. (pst_syms_size): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog13
-rw-r--r--gdb/hpread.c8
-rw-r--r--gdb/somsolib.c2
3 files changed, 19 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 378db56..a07b153 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,18 @@
2002-12-02 J. Brobecker <brobecker@gnat.com>
+ * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
+ Fixes a build failure on HP/UX.
+
+ * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
+ failure on HP/UX.
+ (hpread_has_name): Advance declaration to avoid a compilation warning.
+ (pst_syms_count): Add missing variable type. By change, the compiler
+ was defaulting to int, which seems a good choice. Fixes a compilation
+ warning.
+ (pst_syms_size): Likewise.
+
+2002-12-02 J. Brobecker <brobecker@gnat.com>
+
* hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
(hppa_gdbarch_init): Detect osabi from objfile. Will be needed
later to set the proper gdbarch methods depending on the osabi.
diff --git a/gdb/hpread.c b/gdb/hpread.c
index 0011c31..b2e64f4 100644
--- a/gdb/hpread.c
+++ b/gdb/hpread.c
@@ -220,6 +220,8 @@ static unsigned long hpread_get_line (sltpointer, struct objfile *);
static CORE_ADDR hpread_get_location (sltpointer, struct objfile *);
+int hpread_has_name (enum dntt_entry_type kind);
+
static void hpread_psymtab_to_symtab_1 (struct partial_symtab *);
void hpread_psymtab_to_symtab (struct partial_symtab *);
@@ -596,11 +598,11 @@ pst_syms_struct;
static pst_syms_struct *pst_syms_array = 0;
-static pst_syms_count = 0;
-static pst_syms_size = 0;
+static int pst_syms_count = 0;
+static int pst_syms_size = 0;
/* used by the TELL_OBJFILE macro */
-static boolean told_objfile = 0;
+static int told_objfile = 0;
/* Set up psymtab symbol index stuff */
static void
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index 2eb1ff5..6cc9f45 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -191,7 +191,7 @@ addr_and_unwind_t;
/* When adding fields, be sure to clear them in _initialize_som_solib. */
static struct
{
- boolean is_valid;
+ int is_valid;
addr_and_unwind_t hook;
addr_and_unwind_t hook_stub;
addr_and_unwind_t load;