https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983
Tom de Vries changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983
--- Comment #7 from Tom de Vries ---
Author: vries
Date: Tue Feb 12 14:00:59 2019
New Revision: 268796
URL: https://gcc.gnu.org/viewcvs?rev=268796&root=gcc&view=rev
Log:
[libbacktrace] Handle bsearch with NULL base in dwarf_lookup_pc
The call t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983
Tom de Vries changed:
What|Removed |Added
Keywords||patch
Status|WAITING
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983
--- Comment #5 from Ian Lance Taylor ---
I would be inclined to just skip the bsearch when the count is zero.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983
--- Comment #4 from Tom de Vries ---
Ian, how do you want this fixed?
We could add a safe_bsearch:
...
diff --git a/libbacktrace/internal.h b/libbacktrace/internal.h
index 065b9535e8b..7d9aa5e88c5 100644
--- a/libbacktrace/internal.h
+++ b/libba