aboutsummaryrefslogtreecommitdiff
path: root/gdb/corefile.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2001-04-14 19:23:02 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2001-04-14 19:23:02 +0000
commit46c6cdcf5ed83c113db573e6dcea6e9efcd9b7e6 (patch)
tree0f6b9ba4db7356755969a5c89a4fbb26f2019a19 /gdb/corefile.c
parent767e4b0d59713b91d92e9c635159302e183bc71d (diff)
downloadfsf-binutils-gdb-46c6cdcf5ed83c113db573e6dcea6e9efcd9b7e6.zip
fsf-binutils-gdb-46c6cdcf5ed83c113db573e6dcea6e9efcd9b7e6.tar.gz
fsf-binutils-gdb-46c6cdcf5ed83c113db573e6dcea6e9efcd9b7e6.tar.bz2
* 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.
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r--gdb/corefile.c34
1 files changed, 6 insertions, 28 deletions
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);
}