Changeset eb522e8 in mainline for kernel/generic/src/debug/stacktrace.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/debug/stacktrace.c
r9e2e715 reb522e8 41 41 #define STACK_FRAMES_MAX 20 42 42 43 void 44 stack_trace_ctx(stack_trace_ops_t *ops, stack_trace_context_t *ctx) 43 void stack_trace_ctx(stack_trace_ops_t *ops, stack_trace_context_t *ctx) 45 44 { 46 45 int cnt = 0; … … 54 53 if (ops->symbol_resolve && 55 54 ops->symbol_resolve(ctx->pc, &symbol, &offset)) { 56 57 printf("%p: %s +%" PRIp "()\n",58 ctx->fp, symbol,offset);55 if (offset) 56 printf("%p: %s()+%p\n", (void *) ctx->fp, 57 symbol, (void *) offset); 59 58 else 60 printf("%p: %s()\n", 61 ctx->fp, symbol); 62 } else { 63 printf("%p: %p()\n", ctx->fp, ctx->pc); 64 } 59 printf("%p: %s()\n", (void *) ctx->fp, symbol); 60 } else 61 printf("%p: %p()\n", (void *) ctx->fp, (void *) ctx->pc); 62 65 63 if (!ops->return_address_get(ctx, &pc)) 66 64 break; 65 67 66 if (!ops->frame_pointer_prev(ctx, &fp)) 68 67 break; 68 69 69 ctx->fp = fp; 70 70 ctx->pc = pc;
Note:
See TracChangeset
for help on using the changeset viewer.