From: David Mosberger-Tang <davidm@azstarnet.com>
Subject: Re: GDB patch
Date: Tue, 3 Jun 1997 07:14:09 -0700 [thread overview]
Message-ID: <199706031414.HAA30021@panda.mosberger> (raw)
In-Reply-To: <Pine.LNX.3.95.970603093721.14220A-100000@naphta.mb.jhu.edu>
>>>>> On Tue, 3 Jun 1997 09:42:47 -0400 (EDT), Jeff Odom <zeus@jhu.edu> 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
next parent reply other threads:[~1997-06-03 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.3.95.970603093721.14220A-100000@naphta.mb.jhu.edu>
1997-06-03 14:14 ` David Mosberger-Tang [this message]
1997-06-03 15:19 ` GDB patch Jeff Odom
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox