public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org, Victor Leschuk <vleschuk@accesssoftek.com>
Subject: [commit] [PATCH 5/8] DWARF-5 basic functionality
Date: Mon, 20 Feb 2017 20:07:00 -0000	[thread overview]
Message-ID: <20170220200748.GD24098@host1.jankratochvil.net> (raw)
In-Reply-To: <20170220195229.GA13688@host1.jankratochvil.net>

On Mon, 20 Feb 2017 20:52:29 +0100, Jan Kratochvil wrote:
> gdb/ChangeLog
> 2017-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	* defs.h (read_unsigned_leb128): New declaration.
> 	* dwarf2loc.c (decode_debug_loclists_addresses): New function.
> 	(decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
> 	(dwarf2_find_location_expression): Call also
> 	decode_debug_loclists_addresses.  Handle DWARF-5 ULEB128 length.
> 	* dwarf2loc.h (dwarf2_version): New declaration.
> 	* dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
> 	rnglists.
> 	(dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
> 	.debug_rnglists.
> 	(struct dwop_section_names): Add loclists_dwo.
> 	(dwop_section_names): Add .debug_loclists.dwo.
> 	(struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
> 	(struct dwarf2_per_cu_data): Add dwarf_version.
> 	(struct dwo_sections): Add loclists.
> 	(struct attr_abbrev): Add implicit_const.
> 	(read_indirect_line_string): New declaration.
> 	(read_unsigned_leb128): Delete declaration.
> 	(rcuh_kind): New definition.
> 	(read_and_check_comp_unit_head): Change parameter
> 	is_debug_types_section to section_kind.
> 	(dwarf2_locate_sections): Handle loclists, line_str and rnglists.
> 	(read_comp_unit_head): Change parameter abfd to section, add parameter
> 	section_kind.  Handle DWARF-5.
> 	(error_check_comp_unit_head): Accept also DWARF version 5.
> 	(read_and_check_comp_unit_head): Change parameter
> 	is_debug_types_section to section_kind.
> 	(read_and_check_type_unit_head): Delete function.
> 	(read_abbrev_offset): Handle DWARF-5.
> 	(create_debug_type_hash_table): Add parameter section_kind.  Process
> 	only DW_UT_type.  Use signature and type_offset_in_tu from struct
> 	comp_unit_head.
> 	(create_debug_types_hash_table): Update create_debug_type_hash_table
> 	caller.
> 	(create_all_type_units): Call create_debug_type_hash_table.
> 	(read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
> 	read_and_check_type_unit_head caller to read_and_check_comp_unit_head
> 	caller.
> 	(skip_one_die): Handle DW_FORM_implicit_const.
> 	(dwarf2_rnglists_process): New function.
> 	(dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
> 	(abbrev_table_read_table): Handle DW_FORM_implicit_const.
> 	(read_attribute_value): Handle DW_FORM_implicit_const,
> 	DW_FORM_line_strp.
> 	(read_attribute): Handle DW_FORM_implicit_const.
> 	(read_indirect_string_at_offset_from): New function from
> 	read_indirect_string_at_offset.
> 	(read_indirect_string_at_offset): Call
> 	read_indirect_string_at_offset_from.
> 	(read_indirect_line_string_at_offset): New function.
> 	(read_indirect_string): New function comment.
> 	(read_indirect_line_string): New function.
> 	(read_unsigned_leb128): Make it global.
> 	(dwarf2_string_attr): Handle DWARF-5.
> 	(add_include_dir_stub, read_formatted_entries): New functions.
> 	(dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
> 	Handle DWARF-5.
> 	(per_cu_header_read_in): Update read_comp_unit_head caller.
> 	(dwarf2_version): New function.
> 	* symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
> 	rnglists.
> 	* xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
> 	fields.
> 
> gdb/testsuite/ChangeLog
> 	* gdb.dwarf2/dw2-error.exp (file $testfile): Update expected string.

43988095a5a4c53e6d5b00a6335454919c4fac55


Jan

  reply	other threads:[~2017-02-20 20:07 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-12 20:23 [PATCH 1/8] Rename read_unsigned_leb128 to gdb_read_unsigned_leb128 Jan Kratochvil
2017-02-12 20:23 ` [PATCH 2/8] Code cleanup: Split create_debug_types_hash_table Jan Kratochvil
2017-02-16 19:33   ` Pedro Alves
2017-02-12 20:23 ` [PATCH 3/8] Code cleanup: Split dwarf2_ranges_read to a callback Jan Kratochvil
2017-02-17  1:19   ` Pedro Alves
2017-02-19 21:26     ` Jan Kratochvil
2017-02-20 11:11       ` Pedro Alves
2017-02-12 20:23 ` [PATCH 8/8] DWARF-5: DW_FORM_data16 Jan Kratochvil
2017-02-17 12:09   ` Pedro Alves
2017-02-19 21:26     ` Jan Kratochvil
2017-02-20 11:44       ` Pedro Alves
2017-02-17 12:24   ` Pedro Alves
2017-02-12 20:23 ` [PATCH 5/8] DWARF-5 basic functionality Jan Kratochvil
2017-02-17 11:41   ` Pedro Alves
2017-02-19 21:26     ` Jan Kratochvil
2017-02-20 11:41       ` Pedro Alves
2017-02-20 19:52         ` Jan Kratochvil
2017-02-20 20:07           ` Jan Kratochvil [this message]
2017-02-12 20:23 ` [PATCH 7/8] DWARF-5: Macros Jan Kratochvil
2017-02-17 11:59   ` Pedro Alves
2017-02-12 20:23 ` [PATCH 4/8] Code cleanup: Refactor abbrev_table_read_table cycle Jan Kratochvil
2017-02-17  1:21   ` Pedro Alves
2017-02-12 20:23 ` [PATCH 6/8] DWARF-5: call sites Jan Kratochvil
2017-02-12 20:41   ` Eli Zaretskii
2017-02-17 11:57   ` Pedro Alves
2017-02-19 21:26     ` Jan Kratochvil
2017-02-16 15:23 ` [PATCH 1/8] Rename read_unsigned_leb128 to gdb_read_unsigned_leb128 Pedro Alves
2017-02-16 19:40   ` Jan Kratochvil
2017-02-16 20:01     ` Pedro Alves
2017-02-16 22:54       ` Pedro Alves
2017-02-17  1:28         ` Pedro Alves
2017-02-19 21:25         ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170220200748.GD24098@host1.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=vleschuk@accesssoftek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).