From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28192 invoked from network); 9 Mar 1998 12:41:10 -0000 Received: from mail11.voicenet.com (HELO voicenet.com) (207.103.0.37) by mail2.redhat.com with SMTP; 9 Mar 1998 12:41:10 -0000 Received: (qmail 28756 invoked from network); 9 Mar 1998 12:40:58 -0000 Received: from rotary915-pri.voicenet.com (HELO voicenet.com) (209.71.52.15) by mail11.voicenet.com with SMTP; 9 Mar 1998 12:40:58 -0000 Message-ID: <3503E3B7.4E683772@voicenet.com> Date: Mon, 09 Mar 1998 07:42:34 -0500 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: bug-gdb@prep.ai.mit.edu CC: "axp-list@redhat.com" Subject: gdb core dumps when "where" and sym malloc on stack Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit the following code in mdebugread.c fixes a gdb/alpha/linux bug which causes gdb to go core. the t->pointer_type contains a NULL, and shouldn't be used if it finds "malloc" on a linux/alpha stack trace. if (STREQ(name, "malloc") && t->code == TYPE_CODE_VOID && t->pointer_type ) { /* I don't know why, but, at least under Linux/Alpha, when linking against a malloc without debugging symbols, its read as a function returning void---this is bad because it means we cannot call functions with string arguments interactively; i.e., "call printf("howdy\n")" would fail with the error message "program has no memory available". To avoid this, we patch up the type and make it void* instead. (davidm@azstarnet.com) */ t = t->pointer_type; } } gat