diff options
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -42,7 +42,6 @@ #include "readline/tilde.h" #include "gdbcore.h" -#include <ctype.h> #include <sys/stat.h> #include "solib.h" #include <algorithm> @@ -653,13 +652,13 @@ program_space::add_target_sections (struct objfile *objfile) gdb_assert (objfile != nullptr); /* Compute the number of sections to add. */ - for (obj_section *osect : objfile->sections ()) + for (obj_section &osect : objfile->sections ()) { - if (bfd_section_size (osect->the_bfd_section) == 0) + if (bfd_section_size (osect.the_bfd_section) == 0) continue; - m_target_sections.emplace_back (osect->addr (), osect->endaddr (), - osect->the_bfd_section, objfile); + m_target_sections.emplace_back (osect.addr (), osect.endaddr (), + osect.the_bfd_section, objfile); } } @@ -1015,7 +1014,7 @@ set_section_command (const char *args, int from_tty) error (_("Must specify section name and its virtual address")); /* Parse out section name. */ - for (secname = args; !isspace (*args); args++); + for (secname = args; !c_isspace (*args); args++); unsigned seclen = args - secname; /* Parse out new virtual address. */ |