summaryrefslogtreecommitdiff
path: root/src/mi
diff options
context:
space:
mode:
authorGregory LEOCADIE <gregory.leocadie@datadoghq.com>2023-01-05 16:13:29 +0100
committerDave Watson <dade.watson@gmail.com>2023-01-11 08:56:12 -0800
commitb1d6f6efe425c93ba5d692f6c6be53d3ef52606d (patch)
treeee137dbff73a44df2a00f75fc24ea21af498ad37 /src/mi
parentd75341299b5002b6cdc30682314d5538ed1e17f2 (diff)
downloadlibunwind-master.tar.gz
Adjust backtrace2 signatureHEADv1.7.0-rc2master
Diffstat (limited to 'src/mi')
-rw-r--r--src/mi/backtrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mi/backtrace.c b/src/mi/backtrace.c
index 8fea3444..e532b79d 100644
--- a/src/mi/backtrace.c
+++ b/src/mi/backtrace.c
@@ -77,7 +77,7 @@ unw_backtrace (void **buffer, int size)
}
int
-unw_backtrace2 (void **buffer, int size, unw_context_t* uc2)
+unw_backtrace2 (void **buffer, int size, unw_context_t* uc2, int flag)
{
if (size == 0)
return 0;
@@ -89,7 +89,7 @@ unw_backtrace2 (void **buffer, int size, unw_context_t* uc2)
// need to copy, because the context will be modified by tdep_trace
unw_context_t uc = *(unw_context_t*)uc2;
- if (unlikely (unw_init_local2 (&cursor, &uc, UNW_INIT_SIGNAL_FRAME) < 0))
+ if (unlikely (unw_init_local2 (&cursor, &uc, flag) < 0))
return 0;
// get the first ip from the context
@@ -110,7 +110,7 @@ unw_backtrace2 (void **buffer, int size, unw_context_t* uc2)
// and add 1 to it (the one we retrieved above)
if (unlikely (tdep_trace (&cursor, buffer, &n) < 0))
{
- return slow_backtrace (buffer, remaining_size, &uc, UNW_INIT_SIGNAL_FRAME) + 1;
+ return slow_backtrace (buffer, remaining_size, &uc, flag) + 1;
}
return n + 1;