From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199706031414.HAA30021@panda.mosberger> Date: Tue, 3 Jun 1997 07:14:09 -0700 From: David Mosberger-Tang Subject: Re: GDB patch In-Reply-To: >>>>> On Tue, 3 Jun 1997 09:42:47 -0400 (EDT), Jeff Odom said: Jeff> I've posted a message to the axp mailing list, but I also Jeff> wanted to make sure you knew about this. Single-stepping over Jeff> malloc() calls seems to crash gdb under alpha. The problem Jeff> seems to come from one of your patches, Jeff> + * mdebugread.c (parse_symbol): When we find a malloc() symbol with Jeff> + return type VOID, assume no debugging info is available for that Jeff> + object file and patch the return value into VOID *. Otherwise, Jeff> + operations requiring an implicit call to malloc() will fail. Jeff> where t->pointer_type for a "void" t is NULL. Removing the Jeff> patch seems to work, but I'm still not convinced that I've Jeff> done the right thing. Obviously you patched the code for a Jeff> good reason, and either the problem has been fixed ealier up Jeff> the line, or it's been broken further elsewhere. Jeff> Any comments/suggestions? I'm don't know why it fails, but the reason I made that patch is so you can do stuff like: gdb> p printf("Hello World\n") (passing the "Hello World\n" string constant causes gdb to implicitly call malloc()). It certainly used to work with ECOFF. With ELF, I probably always had debug info available while working on these things, si I never noticed. In other words, it's quite possible that the problem got introduced during the ELF->ECOFF switch. --david -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com