This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] undefined printf format crashes gdb


On 08/13/2013 01:56 PM, Andrew Burgess wrote:
> Current gdb HEAD:
> 
>   (gdb) printf "%#p", 0
>   ./printcmd.c:2655: internal-error: ui_printf: Assertion `*p == 'p' && *(p + 1) == '\0'' failed.
>   A problem internal to GDB has been detected,
>   further debugging may prove unreliable.
>   Quit this debugging session? (y or n) y
> 
> With my patch:
> 
>   (gdb) printf "%#p", 0
>   Inappropriate modifiers to format specifier 'p' in printf
> 
> The man page for printf (on my machine) says # on pointers is undefined,
> but my undefined seems better than the current undefined :) 
> 
> OK to apply?

OK.

Thanks,
-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]