Changes in uspace/lib/libc/include/stacktrace.h [e515b21a:47246f4] in mainline
- File:
-
- 1 edited
-
uspace/lib/libc/include/stacktrace.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/stacktrace.h
re515b21a r47246f4 1 1 /* 2 2 * Copyright (c) 2009 Jakub Jermar 3 * Copyright (c) 2010 Jiri Svoboda4 3 * All rights reserved. 5 4 * … … 40 39 #include <bool.h> 41 40 42 typedef struct { 43 void *op_arg; 44 int (*read_uintptr)(void *, uintptr_t, uintptr_t *); 45 } stacktrace_t; 46 47 extern void stacktrace_print(void); 48 extern void stacktrace_print_fp_pc(uintptr_t, uintptr_t); 41 extern void stack_trace(void); 42 extern void stack_trace_fp_pc(uintptr_t, uintptr_t); 49 43 50 44 /* 51 45 * The following interface is to be implemented by each architecture. 52 46 */ 53 extern bool stacktrace_fp_valid(stacktrace_t *, uintptr_t); 54 extern int stacktrace_fp_prev(stacktrace_t *, uintptr_t, uintptr_t *); 55 extern int stacktrace_ra_get(stacktrace_t *, uintptr_t, uintptr_t *); 56 57 extern void stacktrace_prepare(void); 58 extern uintptr_t stacktrace_fp_get(void); 59 extern uintptr_t stacktrace_pc_get(); 47 extern bool frame_pointer_validate(uintptr_t); 48 extern uintptr_t frame_pointer_get(void); 49 extern uintptr_t frame_pointer_prev(uintptr_t); 50 extern uintptr_t return_address_get(uintptr_t); 51 extern uintptr_t program_counter_get(); 60 52 61 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
