summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorDavid Carlier <dcarlier@afilias.info>2020-01-28 12:53:32 +0000
committerPetr Viktorin <encukou@gmail.com>2020-01-28 13:53:32 +0100
commitaabdeb766b7fa581e7de01f3c953b12792f0736d (patch)
tree3ed6c4b6c00b8142775b9a996e84e3be383d3265 /Python/ceval.c
parent2cca8efe46935c39c445f585bce54954fad2485b (diff)
downloadcpython-git-aabdeb766b7fa581e7de01f3c953b12792f0736d.tar.gz
bpo-38960: DTrace build fix for FreeBSD. (GH-17451)
DTrace build fix for FreeBSD. - allowing passing an extra flag as it need to define the arch size. - casting some probe's arguments.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 2c0a23dfdd..2770dc6d08 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -5447,7 +5447,7 @@ dtrace_function_entry(PyFrameObject *f)
funcname = PyUnicode_AsUTF8(f->f_code->co_name);
lineno = PyCode_Addr2Line(f->f_code, f->f_lasti);
- PyDTrace_FUNCTION_ENTRY(filename, funcname, lineno);
+ PyDTrace_FUNCTION_ENTRY((char *)filename, (char *)funcname, lineno);
}
static void
@@ -5461,7 +5461,7 @@ dtrace_function_return(PyFrameObject *f)
funcname = PyUnicode_AsUTF8(f->f_code->co_name);
lineno = PyCode_Addr2Line(f->f_code, f->f_lasti);
- PyDTrace_FUNCTION_RETURN(filename, funcname, lineno);
+ PyDTrace_FUNCTION_RETURN((char *)filename, (char *)funcname, lineno);
}
/* DTrace equivalent of maybe_call_line_trace. */
@@ -5493,7 +5493,7 @@ maybe_dtrace_line(PyFrameObject *frame,
co_name = PyUnicode_AsUTF8(frame->f_code->co_name);
if (!co_name)
co_name = "?";
- PyDTrace_LINE(co_filename, co_name, line);
+ PyDTrace_LINE((char *)co_filename, (char *)co_name, line);
}
*instr_prev = frame->f_lasti;
}