+2001-03-19 Andrew Cagney <ac131313@redhat.com>
+
+ * remote.c (remote_cisco_section_offsets): Do not cast result from
+ bfd_get_section_name.
+ (compare_sections_command): Ditto.
+ (remote_cisco_section_offsets): Make ``p'' a const pointer.
+ (compare_sections_command): Ditto for ``sectname''.
+
2001-03-19 Andrew Cagney <ac131313@redhat.com>
From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
asection *sect;
bfd *abfd;
int len;
- char *p;
if (symfile_objfile == NULL)
return -1; /* no can do nothin' */
sect != 0;
sect = sect->next)
{
- p = (unsigned char *) bfd_get_section_name (abfd, sect);
+ const char *p = bfd_get_section_name (abfd, sect);
len = strlen (p);
if (strcmp (p + len - 4, "data") == 0) /* ends in "data" */
if (data_base == 0 ||
struct cleanup *old_chain;
char *tmp;
char *sectdata;
- char *sectname;
+ const char *sectname;
char *buf = alloca (PBUFSIZ);
bfd_size_type size;
bfd_vma lma;
if (size == 0)
continue; /* skip zero-length section */
- sectname = (char *) bfd_get_section_name (exec_bfd, s);
+ sectname = bfd_get_section_name (exec_bfd, s);
if (args && strcmp (args, sectname) != 0)
continue; /* not the section selected by user */