diff options
author | Mark Wielaard <mark@klomp.org> | 2021-07-04 00:08:32 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-07-04 00:08:32 +0200 |
commit | 6648d378bd94f50b455a8550db5f43ef3690b451 (patch) | |
tree | 74bf8b5714126665aab35b710a73b534fd19d50a /src | |
parent | e8b5a5e9d8b8a503755a8a48c23a64a695664270 (diff) | |
download | elfutils-6648d378bd94f50b455a8550db5f43ef3690b451.tar.gz |
readelf: Handle line tables without line number statements correctly
When we see a line table without line number statements we need to
continue with the next table. Add a testcase for this situation.
https://sourceware.org/bugzilla/show_bug.cgi?id=28032
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readelf.c b/src/readelf.c index 1f13f765..161d7e65 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -8751,7 +8751,7 @@ print_debug_line_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, if (linep == lineendp) { puts (_("\nNo line number statements.")); - return; + continue; } puts (_("\nLine number statements:")); |