# ./gdb ./gdb GNU gdb (GDB) 7.2.50.20110124-cvs Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /tmp/root/test_gdb/gdb...done. (gdb) b dwarf2read.c:1435 Breakpoint 1 at 0x8193fd3: file dwarf2read.c, line 1435. (gdb) b check_attr_location Breakpoint 2 at 0x81ac40a: file dwarf2read.c, line 14391 (gdb) set args ./dbg_info_test (gdb) r Starting program: /tmp/root/test_gdb/gdb ./dbg_info_test GNU gdb (GDB) 7.2.50.20110124-cvs Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /tmp/root/test_gdb/dbg_info_test...Reading symbols from /tmp/root/test_gdb/dbg_info_test.dbg... Breakpoint 1, dwarf2_locate_sections (abfd=0x8479b60, sectp=0x8498960, ignore_ptr=0x0) at dwarf2read.c:1435 (gdb) p sectp->name $1 = 0x84907ab ".zdebug_loc" (gdb) n 1471 in dwarf2read.c (gdb) p dwarf2_per_objfile->loc $2 = {asection = 0x8498960, buffer = 0x0, size = 245, was_mmapped = 0, readin = 0, uncompressed_size = 792} (gdb) c Continuing. done. done. (gdb) b func1 Breakpoint 2, check_attr_location (info=0x849eed0, attr=0x84a3328) at dwarf2read.c:14391 14391 in dwarf2read.c (gdb) p *info $3 = {asection = 0x8498960, buffer = 0x0, size = 245, was_mmapped = 0, readin = 0, uncompressed_size = 792} (gdb) b dwarf2_read_section Breakpoint 3 at dwarf2read.c, line 1554. (gdb) disa 2 (gdb) c Continuing. Breakpoint 3, dwarf2_read_section (objfile=0x849a2c8, info=0x849eed0) at dwarf2read.c:1554 1554 dwarf2read.c (gdb) p *info $4 = {asection = 0x8498960, buffer = 0x0, size = 245, was_mmapped = 0, readin = 0, uncompressed_size = 792} (gdb) bt #0 dwarf2_read_section (objfile=0x849a2c8, info=0x849eed0) at dwarf2read.c:1554 #1 0x081ac376 in fill_in_loclist_baton (cu=0x8491130, baton=0x84a7354, attr=0x84a3328) at dwarf2read.c:14376 #2 0x081ac5a7 in dwarf2_symbol_mark_computed (attr=0x84a3328, sym=0x84a7328, cu=0x8491130) at dwarf2read.c:14411 #3 0x0819bfde in read_func_scope (die=0x84a32b0, cu=0x8491130) at dwarf2read.c:5652 #4 0x0819a3ce in process_die (die=0x84a32b0, cu=0x8491130) at dwarf2read.c:4669 #5 0x0819b38f in read_file_scope (die=0x84a2f50, cu=0x8491130) at dwarf2read.c:5303 #6 0x0819a3a0 in process_die (die=0x84a2f50, cu=0x8491130) at dwarf2read.c:4662 #7 0x0819a26d in process_full_comp_unit (per_cu=0x84a11a4) at dwarf2read.c:4616 #8 0x08199be9 in process_queue (objfile=0x849a2c8) at dwarf2read.c:4381 #9 0x081949b2 in dw2_do_instantiate_symtab (objfile=0x849a2c8, per_cu=0x84a11a4) at dwarf2read.c:1777 #10 0x08199dbe in psymtab_to_symtab_1 (pst=0x84a1330) at dwarf2read.c:4457 #11 0x08199afc in dwarf2_psymtab_to_symtab (pst=0x84a1330) at dwarf2read.c:4338 #12 0x0812eca9 in psymtab_to_symtab (pst=0x84a1330) at psymtab.c:623 #13 0x0812e784 in lookup_symbol_aux_psymtabs (objfile=0x849a2c8, block_index=0, name=0xbffff480 "func1", domain=VAR_DOMAIN) at psymtab.c:429 #14 0x08128dac in lookup_symbol_aux_quick (objfile=0x849a2c8, kind=0, name=0xbffff480 "func1", domain=VAR_DOMAIN) at symtab.c:1383 #15 0x08128fb8 in lookup_symbol_global (name=0xbffff480 "func1", block=0x0, domain=VAR_DOMAIN) at symtab.c:1504 #16 0x08128ed5 in basic_lookup_symbol_nonlocal (name=0xbffff480 "func1", block=0x0, domain=VAR_DOMAIN) at symtab.c:1461 #17 0x0812896b in lookup_symbol_aux (name=0xbffff480 "func1", block=0x0, domain=VAR_DOMAIN, language=language_c, is_a_field_of_this=0x0) at symtab.c:1170 #18 0x08128789 in lookup_symbol_in_language (name=0xbffff480 "func1", block=0x0, domain=VAR_DOMAIN, lang=language_c, is_a_field_of_this=0x0) at symtab.c:1077 #19 0x081287d1 in lookup_symbol (name=0xbffff480 "func1", block=0x0, domain=VAR_DOMAIN, is_a_field_of_this=0x0) at symtab.c:1091 #20 0x081de795 in find_imps (symtab=0x0, block=0x0, method=0x8434192 "func1", syms=0x0, nsym=0xbffff550, ndebug=0xbffff54c) at objc-lang.c:1339 #21 0x0813a80d in decode_objc (argptr=0xbffff7d4, funfirstline=1, file_symtab=0x0, canonical=0xbffff748, saved_arg=0x8434192 "func1") at linespec.c:1146 #22 0x08139f2c in decode_line_1 (argptr=0xbffff7d4, funfirstline=1, default_symtab=0x0, default_line=0, canonical=0xbffff748, not_found_ptr=0xbffff734) at linespec.c:778 #23 0x080f621f in parse_breakpoint_sals (address=0xbffff7d4, sals=0xbffff770, addr_string=0xbffff748, not_found_ptr=0xbffff734) at breakpoint.c:7493 #24 0x080f6408 in do_captured_parse_breakpoint (ui=0x8471b10, data=0xbffff738) at breakpoint.c:7563 #25 0x081574af in catch_exception (uiout=0x8471b10, func=0x80f63d0 , func_args=0xbffff738, mask=6) at exceptions.c:471 #26 0x080f6a15 in create_breakpoint (gdbarch=0x846ae18, arg=0x8434192 "func1", cond_string=0x0, thread=0, parse_condition_and_thread=1, tempflag=0, type_wanted=bp_breakpoint, ignore_count=0, pending_break_support=AUTO_BOOLEAN_AUTO, ops=0x0, from_tty=1, enabled=1, internal=0) at breakpoint.c:7746 #27 0x080f70d9 in break_command_1 (arg=0x8434192 "func1", flag=0, from_tty=1) at breakpoint.c:7977 #28 0x080f7257 in break_command (arg=0x8434192 "func1", from_tty=1) at breakpoint.c:8050 #29 0x080c3b67 in do_cfunc (c=0x844a318, args=0x8434192 "func1", from_tty=1) at cli-decode.c:67 #30 0x080c6215 in cmd_func (cmd=0x844a318, args=0x8434192 "func1", from_tty=1) at cli-decode.c:1777 #31 0x08055e6d in execute_command (p=0x8434196 "1", from_tty=1) at top.c:428 #32 0x0815e241 in command_handler (command=0x8434190 "b func1") at event-top.c:499 #33 0x0815e7a5 in command_line_handler (rl=0x8478f40 "\330\371I\b\350\371I\b") at event-top.c:704 #34 0x08259fc2 in rl_callback_read_char () #35 0x0815da03 in rl_callback_read_char_wrapper (client_data=0x0) at event-top.c:177 #36 0x0815e139 in stdin_event_handler (error=0, client_data=0x0) at event-top.c:434 #37 0x0815cecc in handle_file_event (data=...) at event-loop.c:831 #38 0x0815c710 in process_event () at event-loop.c:402 #39 0x0815c7d4 in gdb_do_one_event (data=0x0) at event-loop.c:467 #40 0x0815766d in catch_errors (func=0x815c71e , func_args=0x0, errstring=0x832e051 "", mask=6) at exceptions.c:521 #41 0x080d9950 in tui_command_loop (data=0x0) at tui-interp.c:172 #42 0x08157d38 in current_interp_command_loop () at interps.c:291 #43 0x0804d0ee in captured_command_loop (data=0x0) at main.c:228 #44 0x0815766d in catch_errors (func=0x804d0e3 , func_args=0x0, errstring=0x830e1ff "", mask=6) at exceptions.c:521 #45 0x0804dfad in captured_main (data=0xbffffca0) at main.c:933 #46 0x0815766d in catch_errors (func=0x804d124 , func_args=0xbffffca0, errstring=0x830e1ff "", mask=6) at exceptions.c:521 #47 0x0804dfe3 in gdb_main (args=0xbffffca0) at main.c:942 #48 0x0804ce73 in main (argc=2, argv=0xbffffd64) at gdb.c:35 (gdb)