aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index 0d2be09..ddaa390 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -36,6 +36,8 @@
#include "objfiles.h"
#include "value.h"
+#include "cli/cli-decode.h"
+
extern void _initialize_maint_cmds (void);
static void maintenance_command (char *, int);
@@ -289,9 +291,9 @@ print_bfd_flags (flagword flags)
}
static void
-print_section_info (const char *name, flagword flags,
- CORE_ADDR addr, CORE_ADDR endaddr,
- unsigned long filepos)
+maint_print_section_info (const char *name, flagword flags,
+ CORE_ADDR addr, CORE_ADDR endaddr,
+ unsigned long filepos)
{
/* FIXME-32x64: Need print_address_numeric with field width. */
printf_filtered (" 0x%s", paddr (addr));
@@ -319,7 +321,7 @@ print_bfd_section_info (bfd *abfd,
addr = bfd_section_vma (abfd, asect);
endaddr = addr + bfd_section_size (abfd, asect);
- print_section_info (name, flags, addr, endaddr, asect->filepos);
+ maint_print_section_info (name, flags, addr, endaddr, asect->filepos);
}
}
@@ -335,7 +337,7 @@ print_objfile_section_info (bfd *abfd,
|| match_substring (string, name)
|| match_bfd_flags (string, flags))
{
- print_section_info (name, flags, asect->addr, asect->endaddr,
+ maint_print_section_info (name, flags, asect->addr, asect->endaddr,
asect->the_bfd_section->filepos);
}
}