Minor typo in frame.c debug printing

Andrew Cagney ac131313@redhat.com
Wed Jul 2 19:14:00 GMT 2003


> Hi guys,
> 
> There is a minor typo in frame_register_unwind line 549 -
> 
> --- frame.c 26 Jun 2003 02:15:22 -0000 1.1.1.2
> +++ frame.c 2 Jul 2003 17:41:22 -0000
> @@ -543,13 +543,13 @@
>        fprintf_unfiltered (gdb_stdlog, " *bufferp=");
>        if (bufferp == NULL)
>   fprintf_unfiltered (gdb_stdlog, "<NULL>");
>        else
>   {
>     int i;
> -   const char *buf = bufferp;
> +   const unsigned char *buf = bufferp;
>     fprintf_unfiltered (gdb_stdlog, "[");
>     for (i = 0; i < register_size (current_gdbarch, regnum); i++)
>       fprintf_unfiltered (gdb_stdlog, "%02x", buf[i]);
>     fprintf_unfiltered (gdb_stdlog, "]");
>   }
>        fprintf_unfiltered (gdb_stdlog, " }\n");
> 
> Otherwise when the char gets promoted to an int it may get sign-extended
> (depending on the host architecture).

Are your sources up-to-date?  I thought I just fixed this.

Andrew




More information about the Gdb mailing list