diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-03-26 16:50:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-03-26 16:50:45 +0000 |
commit | 61762cc80211370c0817c70f3ba9d187722e9314 (patch) | |
tree | 75edc39d2b835d63849ccaee416bddb2a4ba735d | |
parent | 8874d55e59659ac40d9d7609d42c5a8af246ab29 (diff) | |
download | gdb-61762cc80211370c0817c70f3ba9d187722e9314.tar.gz |
* exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ.
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/exec.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 80420fcdc5c..5d95ba19800 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2005-03-26 Mark Kettenis <kettenis@gnu.org> + * exec.c (bfdsec_to_vmap): Use strcmp instead of DEPRECATED_STREQ. + * inflow.h: Update copyright year. Remove #ifdef SHORT_PGRP code. Callapse HAVE_TERMIO and HAVE_SGTTY. diff --git a/gdb/exec.c b/gdb/exec.c index 6bf524a7810..48b83bca25f 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -392,14 +392,14 @@ bfdsec_to_vmap (struct bfd *abfd, struct bfd_section *sect, void *arg3) if ((bfd_get_section_flags (abfd, sect) & SEC_LOAD) == 0) return; - if (DEPRECATED_STREQ (bfd_section_name (abfd, sect), ".text")) + if (strcmp (bfd_section_name (abfd, sect), ".text") == 0) { vp->tstart = bfd_section_vma (abfd, sect); vp->tend = vp->tstart + bfd_section_size (abfd, sect); vp->tvma = bfd_section_vma (abfd, sect); vp->toffs = sect->filepos; } - else if (DEPRECATED_STREQ (bfd_section_name (abfd, sect), ".data")) + else if (strcmp (bfd_section_name (abfd, sect), ".data") == 0) { vp->dstart = bfd_section_vma (abfd, sect); vp->dend = vp->dstart + bfd_section_size (abfd, sect); |