This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH] section_addr_info more cleanups
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] section_addr_info more cleanups
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Thu, 27 Apr 2000 11:12:16 -0400 (EDT)
I just checked this in.
Hopefully this is the last batch of changes to get rid of text_addr
use in the section_addr_info structure.
Elena
2000-04-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* cxux-nat.c (add_shared_symbol_files): Don't treat .text section
as special in the section_addr_info structure.
* pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
* osfsolib.c (symbol_add_stub): Ditto.
* irix5-nat.c (symbol_add_stub): Ditto.
Index: cxux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/cxux-nat.c,v
retrieving revision 1.1.1.5
diff -c -r1.1.1.5 cxux-nat.c
*** cxux-nat.c 1999/10/12 04:37:19 1.1.1.5
--- cxux-nat.c 2000/04/27 15:04:08
***************
*** 386,392 ****
{
struct section_addr_info section_addrs;
memset (§ion_addrs, 0, sizeof (section_addrs));
! section_addrs.text_addr = lms.l_addr;
symbol_file_add (path_name, 1, §ion_addrs, 0, 0);
free (path_name);
}
--- 386,393 ----
{
struct section_addr_info section_addrs;
memset (§ion_addrs, 0, sizeof (section_addrs));
! section_addrs.other[0].addr = lms.l_addr;
! section_addrs.other[0].name = ".text";
symbol_file_add (path_name, 1, §ion_addrs, 0, 0);
free (path_name);
}
Index: irix5-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/irix5-nat.c,v
retrieving revision 1.2
diff -c -r1.2 irix5-nat.c
*** irix5-nat.c 2000/04/04 02:08:52 1.2
--- irix5-nat.c 2000/04/27 15:04:09
***************
*** 852,858 ****
text_addr = bfd_section_vma (so->abfd, lowest_sect) + LM_OFFSET (so);
}
! section_addrs.text_addr = text_addr;
so->objfile = symbol_file_add (so->so_name, so->from_tty,
§ion_addrs, 0, 0);
return (1);
--- 852,860 ----
text_addr = bfd_section_vma (so->abfd, lowest_sect) + LM_OFFSET (so);
}
! section_addrs.other[0].name = ".text";
! section_addrs.other[0].addr = text_addr;
so->objfile = symbol_file_add (so->so_name, so->from_tty,
§ion_addrs, 0, 0);
return (1);
Index: osfsolib.c
===================================================================
RCS file: /cvs/src/src/gdb/osfsolib.c,v
retrieving revision 1.2
diff -c -r1.2 osfsolib.c
*** osfsolib.c 2000/04/04 02:08:52 1.2
--- osfsolib.c 2000/04/27 15:04:09
***************
*** 598,604 ****
text_addr = bfd_section_vma (so->abfd, lowest_sect) + LM_OFFSET (so);
}
! section_addrs.text_addr = text_addr;
so->objfile = symbol_file_add (so->so_name, so->from_tty,
§ion_addrs, 0, OBJF_SHARED);
return (1);
--- 598,605 ----
text_addr = bfd_section_vma (so->abfd, lowest_sect) + LM_OFFSET (so);
}
! section_addrs.other[0].addr = text_addr;
! section_addrs.other[0].name = ".text";
so->objfile = symbol_file_add (so->so_name, so->from_tty,
§ion_addrs, 0, OBJF_SHARED);
return (1);
Index: pa64solib.c
===================================================================
RCS file: /cvs/src/src/gdb/pa64solib.c,v
retrieving revision 1.1.1.6
diff -c -r1.1.1.6 pa64solib.c
*** pa64solib.c 1999/11/17 02:30:27 1.1.1.6
--- pa64solib.c 2000/04/27 15:04:09
***************
*** 272,278 ****
tmp_bfd = NULL;
/* Now let the generic code load up symbols for this library. */
! section_addrs.text_addr = text_addr;
so->objfile = symbol_file_add (name, from_tty, §ion_addrs, 0, OBJF_SHARED);
so->abfd = so->objfile->obfd;
--- 272,279 ----
tmp_bfd = NULL;
/* Now let the generic code load up symbols for this library. */
! section_addrs.other[0].addr = text_addr;
! section_addrs.other[0].name = ".text";
so->objfile = symbol_file_add (name, from_tty, §ion_addrs, 0, OBJF_SHARED);
so->abfd = so->objfile->obfd;