From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3907b4baa4685dd9a33f390309e48d62.axp-list@archive.invalid> X-Archive-Original-Message-ID: <19970721162253.46394@hoohoo.ncsa.uiuc.edu> Date: Mon, 21 Jul 1997 20:07:15 -0400 From: Uncle George Subject: gdb/linux/alpha/malloc not happy Message-ID: <33D3F766.4BBD@voicenet.com> Date: Mon, 21 Jul 1997 19:57:26 -0400 From: Uncle George Reply-To: gatgul@voicenet.com Organization: sloppy, at best X-Mailer: Mozilla 3.01Gold (WinNT; I) MIME-Version: 1.0 To: davidm@azstarnet.com CC: linux-axp@redhat.com Subject: gdb/linux/alpha/malloc not happy Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, This particular piece of code from mdebugread.c seems to break the "where" functionality on my linux/alpha/elf ( linux 2.0.27 ). Generally it goes core when the t = t->pointer_type; is used - pointer_type seems to contain 0x0 Took the piece out, and can print stack traces with "malloc" in it. Any Comment????? gdb is 4-16 ( from redhat 4.2/alpha/srms ) ----------------mdebugread.c @ ~ line 840 ------------- else { t = parse_type (cur_fd, ax, sh->index + 1, 0, bigend, name); #if gb if (STREQ(name, "malloc") && t->code == TYPE_CODE_VOID) { /* 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; } #endif } b = top_stack->cur_block; -- Uncle George ( aka G. Baeslack ) http://www.voicenet.com/~gatgul -- 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