"maint print arch" causing gdb crash
Fri Oct 5 22:05:00 GMT 2012
On 10/5/12 7:13 AM, ali_anwar wrote:
> 'gdbarch_dump' is in some cases passing a NULL pointer to 'sprintf'
> when printing 'gdbarch->stap_gdb_register_suffix' etc. Printing NULL
> pointers like this is undefined behavior. With glibc passing a NULL
> pointer just prints "(null)". With the MSVC libc, however, GDB crashes.
> Attached patch fixes this issue using the similar approach discussed
> in following scenario:
> There are some newly added variables due to which "maint print arch"
> command was causing gdb crash on whindows host. This patch takes care
> of them.
Yes please, this is good!
More information about the Gdb-patches