Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libbacktrace
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
libbacktrace
Commits
811741b0
Commit
811741b0
authored
Jan 25, 2018
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
desired CRC is zero. (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
parent
8a4e4ea5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
elf.c
elf.c
+14
-7
No files found.
elf.c
View file @
811741b0
...
@@ -997,7 +997,6 @@ elf_open_debugfile_by_debuglink (struct backtrace_state *state,
...
@@ -997,7 +997,6 @@ elf_open_debugfile_by_debuglink (struct backtrace_state *state,
void
*
data
)
void
*
data
)
{
{
int
ddescriptor
;
int
ddescriptor
;
uint32_t
got_crc
;
ddescriptor
=
elf_find_debugfile_by_debuglink
(
state
,
filename
,
ddescriptor
=
elf_find_debugfile_by_debuglink
(
state
,
filename
,
debuglink_name
,
debuglink_name
,
...
@@ -1005,11 +1004,16 @@ elf_open_debugfile_by_debuglink (struct backtrace_state *state,
...
@@ -1005,11 +1004,16 @@ elf_open_debugfile_by_debuglink (struct backtrace_state *state,
if
(
ddescriptor
<
0
)
if
(
ddescriptor
<
0
)
return
-
1
;
return
-
1
;
got_crc
=
elf_crc32_file
(
state
,
ddescriptor
,
error_callback
,
data
);
if
(
debuglink_crc
!=
0
)
if
(
got_crc
!=
debuglink_crc
)
{
{
backtrace_close
(
ddescriptor
,
error_callback
,
data
);
uint32_t
got_crc
;
return
-
1
;
got_crc
=
elf_crc32_file
(
state
,
ddescriptor
,
error_callback
,
data
);
if
(
got_crc
!=
debuglink_crc
)
{
backtrace_close
(
ddescriptor
,
error_callback
,
data
);
return
-
1
;
}
}
}
return
ddescriptor
;
return
ddescriptor
;
...
@@ -2634,8 +2638,11 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor,
...
@@ -2634,8 +2638,11 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor,
unsigned
int
using_debug_view
;
unsigned
int
using_debug_view
;
uint16_t
*
zdebug_table
;
uint16_t
*
zdebug_table
;
*
found_sym
=
0
;
if
(
!
debuginfo
)
*
found_dwarf
=
0
;
{
*
found_sym
=
0
;
*
found_dwarf
=
0
;
}
shdrs_view_valid
=
0
;
shdrs_view_valid
=
0
;
names_view_valid
=
0
;
names_view_valid
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment