From 4066fc10776b1940f8a1abde88685d33bf9d576b Mon Sep 17 00:00:00 2001 From: Manoj Iyer Date: Mon, 6 Jun 2005 22:24:25 +0000 Subject: [PATCH] solib-svr4.c gdb_byteised. --- gdb/ChangeLog | 9 +++++++++ gdb/solib-svr4.c | 16 ++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc22633703..61aca1b355 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2005-06-06 Manoj Iyer + + * solib-svr4.c: Change type of 'lm' to gdb_byte. + (elf_locate_base): Converted types of buf, bufend, pbuf, to gdb_byte. + (first_link_map_member): Converted type of r_map_buf to gdb_byte. + (open_symbol_file_object): Converted type of l_name_buf to gdb_byte. + (svr4_fetch_objfile_link_map): Converted type of l_name_buf to + gdb_byte. + 2005-06-04 Richard Sandiford * MAINTAINERS: Update my email address. diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index a1e21b8494..f260ba980b 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -57,7 +57,7 @@ struct lm_info /* Pointer to copy of link map from inferior. The type is char * rather than void *, so that we may use byte offsets to find the various fields without the need for a cast. */ - char *lm; + gdb_byte *lm; }; /* On SVR4 systems, a list of symbols in the dynamic linker where @@ -292,8 +292,8 @@ elf_locate_base (void) struct bfd_section *dyninfo_sect; int dyninfo_sect_size; CORE_ADDR dyninfo_addr; - char *buf; - char *bufend; + gdb_byte *buf; + gdb_byte *bufend; int arch_size; /* Find the start address of the .dynamic section. */ @@ -337,7 +337,7 @@ elf_locate_base (void) } else if (dyn_tag == DT_MIPS_RLD_MAP) { - char *pbuf; + gdb_byte *pbuf; int pbuf_size = TARGET_PTR_BIT / HOST_CHAR_BIT; pbuf = alloca (pbuf_size); @@ -372,7 +372,7 @@ elf_locate_base (void) } else if (dyn_tag == DT_MIPS_RLD_MAP) { - char *pbuf; + gdb_byte *pbuf; int pbuf_size = TARGET_PTR_BIT / HOST_CHAR_BIT; pbuf = alloca (pbuf_size); @@ -468,7 +468,7 @@ first_link_map_member (void) { CORE_ADDR lm = 0; struct link_map_offsets *lmo = svr4_fetch_link_map_offsets (); - char *r_map_buf = xmalloc (lmo->r_map_size); + gdb_byte *r_map_buf = xmalloc (lmo->r_map_size); struct cleanup *cleanups = make_cleanup (xfree, r_map_buf); read_memory (debug_base + lmo->r_map_offset, r_map_buf, lmo->r_map_size); @@ -515,7 +515,7 @@ open_symbol_file_object (void *from_ttyp) int errcode; int from_tty = *(int *)from_ttyp; struct link_map_offsets *lmo = svr4_fetch_link_map_offsets (); - char *l_name_buf = xmalloc (lmo->l_name_size); + gdb_byte *l_name_buf = xmalloc (lmo->l_name_size); struct cleanup *cleanups = make_cleanup (xfree, l_name_buf); if (symfile_objfile) @@ -690,7 +690,7 @@ svr4_fetch_objfile_link_map (struct objfile *objfile) struct lm_info objfile_lm_info; struct cleanup *old_chain; CORE_ADDR name_address; - char *l_name_buf = xmalloc (lmo->l_name_size); + gdb_byte *l_name_buf = xmalloc (lmo->l_name_size); old_chain = make_cleanup (xfree, l_name_buf); /* Set up the buffer to contain the portion of the link_map -- 2.34.1