X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsymfile.c;h=0d67bfd834594cd68ad1da3aec9e2811dc32bfd8;hb=173981bc49c9e8fce9271cb47714952dbe2ec627;hp=55a9f5c516cc2ed67d14db67c5a606a38f532797;hpb=e6a959d68b8181c816851dcfc91ae0b2b9296df3;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/symfile.c b/gdb/symfile.c index 55a9f5c516..0d67bfd834 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1,6 +1,6 @@ /* Generic symbol file reading for the GNU debugger, GDB. - Copyright (C) 1990-2015 Free Software Foundation, Inc. + Copyright (C) 1990-2016 Free Software Foundation, Inc. Contributed by Cygnus Support, using pieces from other GDB modules. @@ -1738,7 +1738,7 @@ symfile_bfd_open (const char *name) #if defined(__GO32__) || defined(_WIN32) || defined (__CYGWIN__) if (desc < 0) { - char *exename = alloca (strlen (expanded_name) + 5); + char *exename = (char *) alloca (strlen (expanded_name) + 5); strcat (strcpy (exename, expanded_name), ".exe"); desc = openp (getenv ("PATH"), @@ -2142,8 +2142,6 @@ generic_load (const char *args, int from_tty) ui_out_text (uiout, ", load size "); ui_out_field_fmt (uiout, "load-size", "%lu", total_progress.data_count); ui_out_text (uiout, "\n"); - /* We were doing this in remote-mips.c, I suspect it is right - for other targets too. */ regcache_write_pc (get_current_regcache (), entry); /* Reset breakpoints, now that we have changed the load image. For @@ -2156,12 +2154,6 @@ generic_load (const char *args, int from_tty) breakpoint_re_set (); - /* FIXME: are we supposed to call symbol_file_add or not? According - to a comment from remote-mips.c (where a call to symbol_file_add - was commented out), making the call confuses GDB if more than one - file is loaded in. Some targets do (e.g., remote-vx.c) but - others don't (or didn't - perhaps they have all been deleted). */ - print_transfer_performance (gdb_stdout, total_progress.data_count, total_progress.write_count, &start_time, &end_time);