From 2858b1f25e008ebb4fc04ef3142932b487878528 Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Fri, 8 Sep 1995 20:00:56 +0000 Subject: * solib.c (solib_map_sections): Copy full path name into so_list structure so that symbol_file_add can find it. --- gdb/ChangeLog | 21 +++++++++++++++++++++ gdb/solib.c | 22 ++++++++++++++-------- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4a16ce..473ffbd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,24 @@ +Fri Sep 8 12:57:41 1995 Kung Hsu + + * solib.c (solib_map_sections): Copy full path name into so_list + structure so that symbol_file_add can find it. + +Tue Sep 5 17:47:53 1995 Doug Evans + + * config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs + have size 4. + (REGISTER_VIRTUAL_SIZE): Likewise. + (REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float. + Upper 32 fp regs have type double. + * sparc-tdep.c (NUM_SPARC_FPREGS): Replace with + (FP_REGISTER_BYTES): this, and update all uses. + (FP_MAX_REGNUM): Define if not already. + (get_saved_register): Handle new sparc64 fp regs. + (sparc_frame_find_saved_regs): Likewise. + (sparc_print_register_hook): Only print fp regs < 32 as doubles. + Add code to handle long doubles when gdb does. + (_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64. + Sat Sep 2 06:41:26 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) * configure.in: Explicitly `exit 0' for broken shells. diff --git a/gdb/solib.c b/gdb/solib.c index d44156d..89d7e7d 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "defs.h" @@ -50,7 +50,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "language.h" #include "gdbcmd.h" -#define MAX_PATH_SIZE 256 /* FIXME: Should be dynamic */ +#define MAX_PATH_SIZE 512 /* FIXME: Should be dynamic */ /* On SVR4 systems, for the initial implementation, use some runtime startup symbol as the "startup mapping complete" breakpoint address. The models @@ -262,6 +262,12 @@ solib_map_sections (so) so -> abfd = abfd; abfd -> cacheable = true; + /* copy full path name into so_name, so that later symbol_file_add can find + it */ + if (strlen (scratch_pathname) >= MAX_PATH_SIZE) + error ("Full path name length of shared library exceeds MAX_PATH_SIZE in so_list structure."); + strcpy (so->so_name, scratch_pathname); + if (!bfd_check_format (abfd, bfd_object)) { error ("\"%s\": not in executable format: %s.", @@ -942,15 +948,15 @@ symbol_add_stub (arg) static int match_main (soname) char *soname; { -char **mainp; + char **mainp; -for (mainp = main_name_list; *mainp != NULL; mainp++) - { - if (strcmp (soname, *mainp) == 0) + for (mainp = main_name_list; *mainp != NULL; mainp++) + { + if (strcmp (soname, *mainp) == 0) return (1); - } + } -return (0); + return (0); } /* -- cgit v1.1