-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6827 from tkelman/patch-libunwind
Add libunwind patch from Pyston
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
deps/0001-Change-the-RBP-validation-heuristic-to-allow-size-0-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From e1d7c78d95e4b73a311f10149d0a54547d307d5d Mon Sep 17 00:00:00 2001 | ||
From: Kevin Modzelewski <[email protected]> | ||
Date: Tue, 22 Apr 2014 15:50:40 -0700 | ||
Subject: [PATCH] Change the RBP-validation heuristic to allow size-0 call frames | ||
|
||
--- | ||
diff --git a/src/x86_64/Gstep.c b/src/x86_64/Gstep.c | ||
index 9fa0967..809d60b 100644 | ||
--- a/src/x86_64/Gstep.c | ||
+++ b/src/x86_64/Gstep.c | ||
@@ -173,7 +173,7 @@ unw_step (unw_cursor_t *cursor) | ||
anything about new RBP (rbp1) since it may not be a frame | ||
pointer in the frame above. Just check we get the value. */ | ||
if (ret < 0 | ||
- || rbp <= c->dwarf.cfa | ||
+ || rbp < c->dwarf.cfa | ||
|| (rbp - c->dwarf.cfa) > 0x4000) | ||
{ | ||
rip_loc = DWARF_NULL_LOC; | ||
-- | ||
1.7.4.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters