backtrace.c (f9124e1e) | backtrace.c (5258b990) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 129 unchanged lines hidden (view full) --- 138#if defined FREEBSD || defined NETBSD 139#include <dlfcn.h> 140#include <pthread.h> 141#include <setjmp.h> 142#include <stddef.h> 143#include <stdio.h> 144#include "backtrace.h" 145 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 129 unchanged lines hidden (view full) --- 138#if defined FREEBSD || defined NETBSD 139#include <dlfcn.h> 140#include <pthread.h> 141#include <setjmp.h> 142#include <stddef.h> 143#include <stdio.h> 144#include "backtrace.h" 145 |
146#define FRAME_PTR_OFFSET 1 | 146#define FRAME_PTR_OFFSET 3 |
147#define FRAME_OFFSET 0 148 149int backtrace( void **buffer, int max_frames ) 150{ 151 struct frame *fp; 152 jmp_buf ctx; 153 int i; 154 /* get stack- and framepointer */ --- 209 unchanged lines hidden --- | 147#define FRAME_OFFSET 0 148 149int backtrace( void **buffer, int max_frames ) 150{ 151 struct frame *fp; 152 jmp_buf ctx; 153 int i; 154 /* get stack- and framepointer */ --- 209 unchanged lines hidden --- |