In tree gdb doesn't work for much of anything these days. It can't even
consistently give a complete kernel backtrace. Jhb is graciously
maintaining gdb in ports. It will be installed as the awkwardly named
gdb7111 IIRC.
On Thu, Dec 8, 2016 at 06:53 Slawa Olhovchenkov <slw at zxy.spb.ru> wrote:
> % gdb ./edge_stat
>
> GNU gdb 6.1.1 [FreeBSD]
>
> 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-marcel-freebsd"...
>
> (gdb) break main
>
> Segmentation fault (core dumped)
>
>
>
> % gdb /usr/bin/gdb /tmp/gdb.13573.core
>
> GNU gdb 6.1.1 [FreeBSD]
>
> 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-marcel-freebsd"...(no debugging
symbols
> found)...
>
> Core was generated by `gdb'.
>
> Program terminated with signal 11, Segmentation fault.
>
> Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
>
> Loaded symbols for /lib/libm.so.5
>
> Reading symbols from /lib/libncursesw.so.8...(no debugging symbols
> found)...done.
>
> Loaded symbols for /lib/libncursesw.so.8
>
> Reading symbols from /usr/lib/libgnuregex.so.5...(no debugging symbols
> found)...done.
>
> Loaded symbols for /usr/lib/libgnuregex.so.5
>
> Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
>
> Loaded symbols for /lib/libc.so.7
>
> Reading symbols from /usr/lib/libthread_db.so...(no debugging symbols
> found)...done.
>
> Loaded symbols for /usr/lib/libthread_db.so
>
> Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
> found)...done.
>
> Loaded symbols for /libexec/ld-elf.so.1
>
> #0 0x00000000005da00b in cplus_demangle_v3_callback ()
>
> (gdb) bt
>
> #0 0x00000000005da00b in cplus_demangle_v3_callback ()
>
> #1 0x00000000005d9f9c in cplus_demangle_v3 ()
>
> #2 0x00000000005ca13c in cplus_demangle ()
>
> #3 0x0000000000487454 in class_name_from_physname ()
>
> #4 0x000000000053a4f3 in dwarf2_read_section ()
>
> #5 0x000000000053a0cc in dwarf2_read_section ()
>
> #6 0x0000000000539bd9 in dwarf2_read_section ()
>
> #7 0x0000000000537395 in dwarf2_read_section ()
>
> #8 0x0000000000539c21 in dwarf2_read_section ()
>
> #9 0x0000000000539643 in dwarf2_read_section ()
>
> #10 0x0000000000538a6c in dwarf2_read_section ()
>
> #11 0x00000000005352fb in dwarf2_read_section ()
>
> #12 0x0000000000533bfd in dwarf2_read_section ()
>
> #13 0x00000000004cfc46 in psymtab_to_symtab ()
>
> #14 0x00000000004c9cfb in lookup_symbol_global ()
>
> #15 0x0000000000482273 in cp_lookup_symbol_namespace ()
>
> #16 0x0000000000482059 in cp_lookup_symbol_nonlocal ()
>
> #17 0x0000000000481f63 in cp_lookup_symbol_nonlocal ()
>
> #18 0x00000000004c9780 in lookup_symbol ()
>
> #19 0x00000000005035cf in find_imps ()
>
> #20 0x0000000000514df9 in decode_line_1 ()
>
> #21 0x0000000000514589 in decode_line_1 ()
>
> #22 0x000000000046eff9 in _initialize_breakpoint ()
>
> #23 0x000000000046f48b in _initialize_breakpoint ()
>
> #24 0x00000000004ab289 in catch_exceptions ()
>
> #25 0x00000000004ab368 in catch_exceptions_with_msg ()
>
> #26 0x000000000046b169 in break_command ()
>
> #27 0x00000000004ab996 in execute_command ()
>
> #28 0x0000000000465293 in gdb_disable_readline ()
>
> #29 0x0000000000465182 in gdb_setup_readline ()
>
> #30 0x00000000005e266f in rl_callback_read_char ()
>
> #31 0x0000000000464c79 in gdb_setup_readline ()
>
> #32 0x0000000000465a46 in gdb_do_one_event ()
>
> #33 0x00000000004ab289 in catch_exceptions ()
>
> #34 0x00000000004ab42a in catch_errors ()
>
> #35 0x0000000000551168 in _initialize_tui_interp ()
>
> #36 0x0000000000448689 in gdb_main ()
>
> #37 0x00000000004ab289 in catch_exceptions ()
>
> #38 0x00000000004ab42a in catch_errors ()
>
> #39 0x0000000000448526 in gdb_main ()
>
> #40 0x00000000004ab289 in catch_exceptions ()
>
> #41 0x00000000004ab42a in catch_errors ()
>
> #42 0x0000000000447977 in gdb_main ()
>
> #43 0x0000000000447931 in main ()
>
> _______________________________________________
>
> freebsd-stable at freebsd.org mailing list
>
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
>
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at
freebsd.org"
>
>