From c371fede2c39f22500acee991247c543ada9e2d38d5bf0ae1b43016784da5fed Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 21 Sep 2020 20:59:59 +0000 Subject: [PATCH] Regenerate patches from git to add commit hash OBS-URL: https://build.opensuse.org/package/show/devel:tools/dwarves?expand=0&rev=44 --- ...oader-Bail-out-at-DW_TAG_imported_unit-tags.patch | 11 ++++++++--- ...re-entries-in-a-DW_TAG_partial_unit-for-now.patch | 12 +++++++++--- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/dwarves-dwarf_loader-Bail-out-at-DW_TAG_imported_unit-tags.patch b/dwarves-dwarf_loader-Bail-out-at-DW_TAG_imported_unit-tags.patch index 260dae8..c820094 100644 --- a/dwarves-dwarf_loader-Bail-out-at-DW_TAG_imported_unit-tags.patch +++ b/dwarves-dwarf_loader-Bail-out-at-DW_TAG_imported_unit-tags.patch @@ -1,4 +1,7 @@ -dwarf_loader: Bail out at DW_TAG_imported_unit tags +From 2ecc308518edfe059f34fd1ad69ef39ad011cab9 Mon Sep 17 00:00:00 2001 +From: Arnaldo Carvalho de Melo +Date: Fri, 18 Sep 2020 16:56:13 -0300 +Subject: [PATCH] dwarf_loader: Bail out at DW_TAG_imported_unit tags We need to support these in a future version, for now, just bail out to avoid segfaults afterwards. @@ -12,13 +15,12 @@ avoid segfaults afterwards. Reported-by: Tom de Vries Bugtracker: https://github.com/acmel/dwarves/issues/10 Signed-off-by: Arnaldo Carvalho de Melo - --- dwarf_loader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dwarf_loader.c b/dwarf_loader.c -index 90c1e11..4d4a72e 100644 +index 74e0227..fd058aa 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -1615,6 +1615,8 @@ static struct tag *__die__process_tag(Dwarf_Die *die, struct cu *cu, @@ -30,3 +32,6 @@ index 90c1e11..4d4a72e 100644 case DW_TAG_array_type: tag = die__create_new_array(die, cu); break; case DW_TAG_base_type: +-- +2.28.0 + diff --git a/dwarves-dwarf_loader-Ignore-entries-in-a-DW_TAG_partial_unit-for-now.patch b/dwarves-dwarf_loader-Ignore-entries-in-a-DW_TAG_partial_unit-for-now.patch index 5f55edb..39c571d 100644 --- a/dwarves-dwarf_loader-Ignore-entries-in-a-DW_TAG_partial_unit-for-now.patch +++ b/dwarves-dwarf_loader-Ignore-entries-in-a-DW_TAG_partial_unit-for-now.patch @@ -1,4 +1,8 @@ -dwarf_loader: Ignore entries in a DW_TAG_partial_unit, for now +From 8c92fd298101171dc8479acf4af2fdd2fad88c28 Mon Sep 17 00:00:00 2001 +From: Arnaldo Carvalho de Melo +Date: Fri, 18 Sep 2020 13:53:01 -0300 +Subject: [PATCH] dwarf_loader: Ignore entries in a DW_TAG_partial_unit, for + now We will have to keep all CUs in memory and do lookups in imported units, for now, just don't segfault. @@ -6,13 +10,12 @@ for now, just don't segfault. Reported-by: Tom de Vries Bugtracker: https://github.com/acmel/dwarves/issues/10 Signed-off-by: Arnaldo Carvalho de Melo - --- dwarf_loader.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dwarf_loader.c b/dwarf_loader.c -index 09edcfb..90c1e11 100644 +index b8d7b35..74e0227 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -2085,7 +2085,19 @@ static int die__process(Dwarf_Die *die, struct cu *cu) @@ -36,3 +39,6 @@ index 09edcfb..90c1e11 100644 fprintf(stderr, "%s: DW_TAG_compile_unit, DW_TAG_type_unit or DW_TAG_partial_unit expected got %s!\n", __FUNCTION__, dwarf_tag_name(tag)); return -EINVAL; +-- +2.28.0 +