projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[gdb/symtab] Fix line-table end-of-sequence sorting
[deliverable/binutils-gdb.git]
/
gdb
/
buildsym.c
diff --git
a/gdb/buildsym.c
b/gdb/buildsym.c
index 0c4c3007eaf231d284a03631e426a719b3107a07..bd0ca49140106b8c2d7abf67ea112e7283cae4bb 100644
(file)
--- a/
gdb/buildsym.c
+++ b/
gdb/buildsym.c
@@
-943,6
+943,10
@@
buildsym_compunit::end_symtab_with_blockvector (struct block *static_block,
= [] (const linetable_entry &ln1,
const linetable_entry &ln2) -> bool
{
+ if (ln1.pc == ln2.pc
+ && ((ln1.line == 0) != (ln2.line == 0)))
+ return ln1.line == 0;
+
return (ln1.pc < ln2.pc);
};
This page took
0.026985 seconds
and
4
git commands to generate.