From: Joel Brobecker Date: Thu, 31 Oct 2002 23:34:47 +0000 (+0000) Subject: * hppa-tdep.c (low_text_segment_addres): Fix a compilation warning. X-Git-Tag: gdb_5_3-2002-12-12-release~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8541bb9646caced9d48d70673b354b69952c91be;p=thirdparty%2Fbinutils-gdb.git * hppa-tdep.c (low_text_segment_addres): Fix a compilation warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c4db953052b..4078ec5303e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-10-31 Joel Brobecker + + * hppa-tdep.c (low_text_segment_addres): Fix a compilation warning. + 2002-10-25 Mark Kettenis * Makefile.in (i386v-nat.o): Add $(i386_tdep_h). diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 3890fc2f773..0f29cb3455b 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -300,7 +300,7 @@ static CORE_ADDR low_text_segment_address; static void record_text_segment_lowaddr (bfd *abfd, asection *section, void *ignored) { - if ((section->flags & (SEC_ALLOC | SEC_LOAD | SEC_READONLY) + if (((section->flags & (SEC_ALLOC | SEC_LOAD | SEC_READONLY)) == (SEC_ALLOC | SEC_LOAD | SEC_READONLY)) && section->vma < low_text_segment_address) low_text_segment_address = section->vma;