summaryrefslogtreecommitdiff
path: root/libbacktrace/unknown.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-17 17:43:26 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-17 17:43:26 +0000
commit03d628c32b7797af1dae192a8813437dfef6379b (patch)
tree1f6d4c83174476f69b57d4ce3b3d17b1fc4e11b5 /libbacktrace/unknown.c
parent0540d3cf3b00ec126995eb5fc016506ca99cba33 (diff)
downloadgcc-03d628c32b7797af1dae192a8813437dfef6379b.tar.gz
PR bootstrap/54609
* unknown.c (unknown_fileline): Add state parameter, remove fileline_data parameter, name error_callback parameter. (backtrace_initialize): Add state parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191402 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/unknown.c')
-rw-r--r--libbacktrace/unknown.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbacktrace/unknown.c b/libbacktrace/unknown.c
index 4ff10b64427..fab5867d8d2 100644
--- a/libbacktrace/unknown.c
+++ b/libbacktrace/unknown.c
@@ -40,9 +40,9 @@ POSSIBILITY OF SUCH DAMAGE. */
/* A trivial routine that always fails to find fileline data. */
static int
-unknown_fileline (void *fileline_data ATTRIBUTE_UNUSED,
+unknown_fileline (struct backtrace_state *state ATTRIBUTE_UNUSED,
uintptr_t pc, backtrace_full_callback callback,
- backtrace_error_callback ATTRIBUTE_UNUSED,
+ backtrace_error_callback error_callback ATTRIBUTE_UNUSED,
void *data)
{
@@ -53,12 +53,12 @@ unknown_fileline (void *fileline_data ATTRIBUTE_UNUSED,
debug info. */
int
-backtrace_initialize (int descriptor ATTRIBUTE_UNUSED,
+backtrace_initialize (struct backtrace_state *state ATTRIBUTE_UNUSED,
+ int descriptor ATTRIBUTE_UNUSED,
backtrace_error_callback error_callback ATTRIBUTE_UNUSED,
- void *data ATTRIBUTE_UNUSED, fileline *fileline_fn,
- void **fileline_data)
+ void *data ATTRIBUTE_UNUSED, fileline *fileline_fn)
{
+ state->fileline_data = NULL;
*fileline_fn = unknown_fileline;
- *fileline_data = NULL;
return 1;
}