egdb doesn't behave like this though.
$ gdb myprogram myprogram.core
[some output]
Reading symbols from
/usr/local/lib/libMYLIBRARY.so.0.0.../usr/src/gnu/usr.bin/binutils/gdb/dwarf2read.c:5447:
internal-error: could not find partial DIE in cache
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) Please answer y or n.
/usr/src/gnu/usr.bin/binutils/gdb/dwarf2read.c:5447: internal-error:
could not find partial DIE in cache
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
/usr/src/gnu/usr.bin/binutils/gdb/dwarf2read.c:5447: internal-error:
could not find partial DIE in cache
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
Abort trap (core dumped)
$ gdb gdb gdb.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "amd64-unknown-openbsd5.8"...(no debugging
symbols found)
Core was generated by `gdb'.
Program terminated with signal 6, Aborted.
(no debugging symbols found)
Loaded symbols for /usr/bin/gdb
Reading symbols from /usr/lib/libreadline.so.4.0...done.
Loaded symbols for /usr/lib/libreadline.so.4.0
Reading symbols from /usr/lib/libiberty.so.12.0...done.
Loaded symbols for /usr/lib/libiberty.so.12.0
Reading symbols from /usr/lib/libncurses.so.14.0...done.
Loaded symbols for /usr/lib/libncurses.so.14.0
Reading symbols from /usr/lib/libm.so.9.0...done.
Loaded symbols for /usr/lib/libm.so.9.0
Reading symbols from /usr/lib/libkvm.so.16.1...done.
Loaded symbols for /usr/lib/libkvm.so.16.1
Reading symbols from /usr/lib/libc.so.80.1...done.
Loaded symbols for /usr/lib/libc.so.80.1
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0 0x000012110cd2890a in kill () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) bt
#0 0x000012110cd2890a in kill () at <stdin>:2
#1 0x000012110cd62b19 in abort () at
/usr/src/lib/libc/stdlib/abort.c:53
#2 0x0000120e90b508a5 in internal_vproblem () from /usr/bin/gdb
#3 0x0000120e90b50acb in internal_verror () from /usr/bin/gdb
#4 0x0000120e90b50b71 in internal_error () from /usr/bin/gdb
#5 0x0000120e90c0a2b5 in find_partial_die_in_comp_unit () from
/usr/bin/gdb
#6 0x0000120e90c0a388 in find_partial_die () from /usr/bin/gdb
#7 0x0000120e90c0a665 in fixup_partial_die () from /usr/bin/gdb
#8 0x0000120e90c0b06b in scan_partial_symbols () from /usr/bin/gdb
#9 0x0000120e90c0c570 in dwarf2_build_psymtabs () from /usr/bin/gdb
#10 0x0000120e90c0169b in elf_symfile_read () from /usr/bin/gdb
#11 0x0000120e90bc3388 in syms_from_objfile () from /usr/bin/gdb
#12 0x0000120e90bc36e6 in symbol_file_add_with_addrs_or_offsets () from
/usr/bin/gdb
#13 0x0000120e90bc3f95 in symbol_file_add_from_bfd () from /usr/bin/gdb
#14 0x0000120e90b6030a in symbol_add_stub () from /usr/bin/gdb
#15 0x0000120e90b4f7e6 in catcher () from /usr/bin/gdb
#16 0x0000120e90b4f856 in catch_errors () from /usr/bin/gdb
#17 0x0000120e90b6017b in solib_read_symbols () from /usr/bin/gdb
#18 0x0000120e90b60893 in solib_add () from /usr/bin/gdb
#19 0x0000120e90b5fe2d in solib_add_stub () from /usr/bin/gdb
#20 0x0000120e90b4f7e6 in catcher () from /usr/bin/gdb
#21 0x0000120e90b4f856 in catch_errors () from /usr/bin/gdb
#22 0x0000120e90b5fd26 in core_open () from /usr/bin/gdb
#23 0x0000120e90b4ee20 in do_captured_command () from /usr/bin/gdb
#24 0x0000120e90b4f7e6 in catcher () from /usr/bin/gdb
#25 0x0000120e90b4f856 in catch_errors () from /usr/bin/gdb
#26 0x0000120e90b4f935 in catch_command_errors () from /usr/bin/gdb
#27 0x0000120e90b44f3f in captured_main () from /usr/bin/gdb
#28 0x0000120e90b4f7e6 in catcher () from /usr/bin/gdb
#29 0x0000120e90b4f856 in catch_errors () from /usr/bin/gdb
#30 0x0000120e90b444bb in gdb_main () from /usr/bin/gdb
#31 0x0000120e90b44467 in main () from /usr/bin/gdb
Current language: auto; currently asm
(gdb)