From 46c6cdcf5ed83c113db573e6dcea6e9efcd9b7e6 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Sat, 14 Apr 2001 19:23:02 +0000 Subject: * target.h (target_ops): Removed to_core_file_to_sym_file vector function. * corelow.c (core_ops): Updated for above change. * gnu-nat.c (core_ops): Likewise. * inftarg.c (child_ops): Likewise. * monitor.c (monitor_ops): Likewise. * ppc-bdm.c (bdm_ppc_ops): Likewise. * remote-adapt.c (adapt_ops): Likewise. * remote-bug.c (bug_ops): Likewise. * remote-e7000.c (e7000_ops): Likewise. * remote-eb.c (eb_ops): Likewise. * remote-es.c (es1800_ops, es1800_child_ops): Likewise. * remote-mm.c (mm_ops): Likewise. * remote-nindy.c (nindy_ops): Likewise. * remote-nrom.c (nrom_ops): Likewise. * remote-os9k.c (rombug_ops): Likewise. * remote-rdp.c (remote_rdp_ops): Likewise. * remote-sim.c (gdbsim_ops): Likewise. * remote-st.c (st2000_ops): Likewise. * v850ice.c (v850ice_ops): Likewise. * target.c (cleanup_target): Likewise (update_current_target): Likewise. (setup_target_debug): Likewise (debug_to_core_file_to_sym_file): Removed. * corefile.c (core_file_command) [HPUXHPPA]: Removed code that sets symbol file from information obtained from the core file. * corelow.c (core_file_to_sym_file): Removed. --- gdb/corefile.c | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) (limited to 'gdb/corefile.c') diff --git a/gdb/corefile.c b/gdb/corefile.c index 716bb04..846208e 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -69,35 +69,13 @@ core_file_command (char *filename, int from_tty) dont_repeat (); /* Either way, seems bogus. */ t = find_core_target (); - if (t != NULL) - if (!filename) - (t->to_detach) (filename, from_tty); - else - { - /* Yes, we were given the path of a core file. Do we already - have a symbol file? If not, can we determine it from the - core file? If we can, do so. - */ -#ifdef HPUXHPPA - if (symfile_objfile == NULL) - { - char *symfile; - symfile = t->to_core_file_to_sym_file (filename); - if (symfile) - { - char *symfile_copy = xstrdup (symfile); - - make_cleanup (xfree, symfile_copy); - symbol_file_add_main (symfile_copy, from_tty); - } - else - warning ("Unknown symbols for '%s'; use the 'symbol-file' command.", filename); - } -#endif - (t->to_open) (filename, from_tty); - } - else + if (t == NULL) error ("GDB can't read core files on this machine."); + + if (!filename) + (t->to_detach) (filename, from_tty); + else + (t->to_open) (filename, from_tty); } -- cgit v1.1