From 5c3fe0697b202cc7d95e90459de0fb312b297b27 Mon Sep 17 00:00:00 2001 From: Juan Cespedes Date: Mon, 14 Jun 2004 18:08:37 +0200 Subject: Version 0.3.33 * Fixed two bugs, thanks to Mauro Meneghin : + Cope correctly with breakpoint values greater than sizeof(long) bytes + Fixed small bug in option -r (closes: Bug#212792) * Show help if no (or few) arguments are given, just like strace and fenris (thanks, Tomasz Wegrzanowski ) * Some fixes from Jakub Bogusz : + Small 64-bit cleanup of code + support for more than 6 function arguments on amd64 + Adapted SPARC port from Jakub Jelinek + Added alpha support --- display_args.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'display_args.c') diff --git a/display_args.c b/display_args.c index fa071af..b236415 100644 --- a/display_args.c +++ b/display_args.c @@ -39,7 +39,7 @@ display_arg(enum tof type, struct process * proc, int arg_num, enum arg_type at) if (!arg) { return fprintf(output, "NULL"); } else { - return fprintf(output, "%p", (unsigned)arg); + return fprintf(output, "%p", (void *)arg); } case ARGTYPE_FORMAT: return display_format(type, proc, arg_num); @@ -85,7 +85,7 @@ static int string_maxlength=INT_MAX; static int display_string(enum tof type, struct process * proc, int arg_num) { void * addr; - char * str1; + unsigned char * str1; int i; int len=0; @@ -141,7 +141,7 @@ display_unknown(enum tof type, struct process * proc, int arg_num) { static int display_format(enum tof type, struct process * proc, int arg_num) { void * addr; - char * str1; + unsigned char * str1; int i; int len=0; @@ -170,7 +170,7 @@ display_format(enum tof type, struct process * proc, int arg_num) { for(i=0; str1[i]; i++) { if (str1[i]=='%') { while(1) { - char c = str1[++i]; + unsigned char c = str1[++i]; if (c == '%') { break; } else if (!c) { -- cgit v1.2.3