diff options
author | Juan Cespedes <cespedes@debian.org> | 2004-06-14 18:08:37 +0200 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 2004-06-14 18:08:37 +0200 |
commit | 5c3fe0697b202cc7d95e90459de0fb312b297b27 (patch) | |
tree | 3b4fbff0a29e7e2c9c74bb2a0fd8bf97a9b2ddcc /display_args.c | |
parent | efe85f0668a077b1e851df4b3f87a380cf2269fd (diff) | |
download | ltrace-5c3fe0697b202cc7d95e90459de0fb312b297b27.tar.gz |
Version 0.3.33
* Fixed two bugs, thanks to Mauro Meneghin <G1ld0@lycos.it>:
+ 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 <taw@users.sf.net>)
* Some fixes from Jakub Bogusz <qboosh@pld-linux.org>:
+ Small 64-bit cleanup of code
+ support for more than 6 function arguments on amd64
+ Adapted SPARC port from Jakub Jelinek <jakub@redhat.com>
+ Added alpha support
Diffstat (limited to 'display_args.c')
-rw-r--r-- | display_args.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |