From 81a9a963a1d5374ada16859384e378b5561f4b2a Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 27 Feb 2002 01:40:36 +0000 Subject: [PATCH] * memattr.c (mem_command): Eliminate ``true'' and ``false''. * osfsolib.c (solib_map_sections): Ditto. * irix5-nat.c (solib_map_sections): Ditto. * corelow.c (gdb_check_format): Ditto. * symfile.c (symfile_bfd_open): Ditto. * solib.c (solib_map_sections): Ditto. Partially fix PR gdb/354. --- gdb/ChangeLog | 10 ++++++++++ gdb/corelow.c | 4 ++-- gdb/irix5-nat.c | 2 +- gdb/memattr.c | 18 +++++++++--------- gdb/osfsolib.c | 2 +- gdb/solib.c | 2 +- gdb/symfile.c | 2 +- 7 files changed, 25 insertions(+), 15 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4dc3e5b..b897c32 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2002-02-26 Andrew Cagney + * memattr.c (mem_command): Eliminate ``true'' and ``false''. + * osfsolib.c (solib_map_sections): Ditto. + * irix5-nat.c (solib_map_sections): Ditto. + * corelow.c (gdb_check_format): Ditto. + * symfile.c (symfile_bfd_open): Ditto. + * solib.c (solib_map_sections): Ditto. + Fix PR gdb/354. + +2002-02-26 Andrew Cagney + * remote.c (_initialize_remote): By default, disable ``e'' and ``E'' step out-of-range packets. diff --git a/gdb/corelow.c b/gdb/corelow.c index 59318b1..68219c5 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -169,10 +169,10 @@ gdb_check_format (bfd *abfd) { if (cf->check_format (abfd)) { - return (true); + return (1); } } - return (false); + return (0); } /* Discard all vestiges of any previous core file and mark data and stack diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index c3543b1..459abe3 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -434,7 +434,7 @@ solib_map_sections (void *arg) } /* Leave bfd open, core_xfer_memory and "info files" need it. */ so->abfd = abfd; - abfd->cacheable = true; + abfd->cacheable = 1; if (!bfd_check_format (abfd, bfd_object)) { diff --git a/gdb/memattr.c b/gdb/memattr.c index 8d7b0d8..7387e8d 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -31,9 +31,9 @@ const struct mem_attrib default_mem_attrib = { MEM_RW, /* mode */ MEM_WIDTH_UNSPECIFIED, - false, /* hwbreak */ - false, /* cache */ - false /* verify */ + 0, /* hwbreak */ + 0, /* cache */ + 0 /* verify */ }; static struct mem_region *mem_region_chain = NULL; @@ -183,21 +183,21 @@ mem_command (char *args, int from_tty) #if 0 else if (strcmp (tok, "hwbreak") == 0) - attrib.hwbreak = true; + attrib.hwbreak = 1; else if (strcmp (tok, "swbreak") == 0) - attrib.hwbreak = false; + attrib.hwbreak = 0; #endif else if (strcmp (tok, "cache") == 0) - attrib.cache = true; + attrib.cache = 1; else if (strcmp (tok, "nocache") == 0) - attrib.cache = false; + attrib.cache = 0; #if 0 else if (strcmp (tok, "verify") == 0) - attrib.verify = true; + attrib.verify = 1; else if (strcmp (tok, "noverify") == 0) - attrib.verify = false; + attrib.verify = 0; #endif else diff --git a/gdb/osfsolib.c b/gdb/osfsolib.c index 2ef7947..345ab08 100644 --- a/gdb/osfsolib.c +++ b/gdb/osfsolib.c @@ -253,7 +253,7 @@ solib_map_sections (char *arg) } /* Leave bfd open, core_xfer_memory and "info files" need it. */ so->abfd = abfd; - abfd->cacheable = true; + abfd->cacheable = 1; if (!bfd_check_format (abfd, bfd_object)) { diff --git a/gdb/solib.c b/gdb/solib.c index 2aa87e3..c47c438 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -237,7 +237,7 @@ solib_map_sections (PTR arg) /* Leave bfd open, core_xfer_memory and "info files" need it. */ so->abfd = abfd; - abfd->cacheable = true; + abfd->cacheable = 1; /* copy full path name into so_name, so that later symbol_file_add can find it */ diff --git a/gdb/symfile.c b/gdb/symfile.c index ebdd62b..feca03b 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1094,7 +1094,7 @@ symfile_bfd_open (char *name) error ("\"%s\": can't open to read symbols: %s.", name, bfd_errmsg (bfd_get_error ())); } - sym_bfd->cacheable = true; + sym_bfd->cacheable = 1; if (!bfd_check_format (sym_bfd, bfd_object)) { -- 2.7.4