summaryrefslogtreecommitdiffstats
path: root/runtime/stack.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-04-11 18:49:33 +0000
committerhunt <hunt>2005-04-11 18:49:33 +0000
commitac902b1d1fa1444bd978334173738dd48afdcc5d (patch)
tree697ca741f92da7e2fe1d736aee8be58742611775 /runtime/stack.c
parent156fc47f2e418fccb026674437855e65dd68476b (diff)
downloadsystemtap-steved-ac902b1d1fa1444bd978334173738dd48afdcc5d.tar.gz
systemtap-steved-ac902b1d1fa1444bd978334173738dd48afdcc5d.tar.xz
systemtap-steved-ac902b1d1fa1444bd978334173738dd48afdcc5d.zip
i386 fixes.
Diffstat (limited to 'runtime/stack.c')
-rw-r--r--runtime/stack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/stack.c b/runtime/stack.c
index 4aca6c54..e63d1d8b 100644
--- a/runtime/stack.c
+++ b/runtime/stack.c
@@ -97,15 +97,15 @@ static inline unsigned long _stp_sprint_context_stack (
while (valid_stack_ptr(tinfo, (void *)ebp)) {
addr = *(unsigned long *)(ebp + 4);
_stp_symbol_sprint (str, addr);
- _stp_string_cat ("\n");
+ _stp_string_cat (str, "\n");
ebp = *(unsigned long *)ebp;
}
#else
while (valid_stack_ptr(tinfo, stack)) {
addr = *stack++;
if (_stp_kta (addr)) {
- _stp_symbol_sprint (addr);
- _stp_string_cat ("\n");
+ _stp_symbol_sprint (str, addr);
+ _stp_string_cat (str, "\n");
}
}
#endif
@@ -125,6 +125,7 @@ static void __stp_stack_print (unsigned long *stack, int verbose, int levels)
ebp = _stp_print_context_stack (context, stack, ebp);
stack = (unsigned long*)context->previous_esp;
}
+ _stp_print_flush ();
}
static void __stp_stack_sprint (String str, unsigned long *stack, int verbose, int levels)
@@ -172,7 +173,6 @@ String _stp_stack_sprint (String str, int verbose, int levels)
{
unsigned long stack;
__stp_stack_sprint (str, &stack, verbose, levels);
- _stp_log ("sss: str=%s\n", str->buf);
return str;
}