aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-10-09 18:15:59 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-10-09 18:15:59 +0000
commita3aa444856b0133cf550d60a1da23c118aa828a0 (patch)
treecde653deec9ad54c445974ba10ec41aad8cdb193
parent0f317a0ca716d3a589cd8d54387167b749a01bf4 (diff)
downloadgdb-a3aa444856b0133cf550d60a1da23c118aa828a0.zip
gdb-a3aa444856b0133cf550d60a1da23c118aa828a0.tar.gz
gdb-a3aa444856b0133cf550d60a1da23c118aa828a0.tar.bz2
2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
* cofflink.c: Include "safe-ctype.h". (coff_link_add_symbols): Use ISDIGIT instead of isdigit.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/cofflink.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d8fa41a..55d3448 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * cofflink.c: Include "safe-ctype.h".
+ (coff_link_add_symbols): Use ISDIGIT instead of isdigit.
+
2003-10-08 Dave Brolley <brolley@redhat.com>
On behalf of Michael Snyder <msnyder@redhat.com>
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index dbe7fbf..91a3822 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -27,6 +27,7 @@
#include "libbfd.h"
#include "coff/internal.h"
#include "libcoff.h"
+#include "safe-ctype.h"
static bfd_boolean coff_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info);
static bfd_boolean coff_link_check_archive_element (bfd *abfd, struct bfd_link_info *info, bfd_boolean *pneeded);
@@ -582,7 +583,7 @@ coff_link_add_symbols (bfd *abfd,
for (stab = abfd->sections; stab; stab = stab->next)
if (strncmp (".stab", stab->name, 5) == 0
&& (!stab->name[5]
- || (stab->name[5] == '.' && isdigit (stab->name[6]))))
+ || (stab->name[5] == '.' && ISDIGIT (stab->name[6]))))
{
struct coff_link_hash_table *table;
struct coff_section_tdata *secdata