gdb-981029 core-dumps in cplus-dem.c and a patch
bjornw@fairplay.no
bjornw@fairplay.no
Mon Nov 16 13:20:00 GMT 1998
Hi gdb'ers!
This is my first posting to this group - I don't know if its the correct place,
but..
I downloaded gdb-981029 and tried to compile it on my linux 2.0.36 RedHat 5.1 using
egcs-19981109 and binutils-2.9.1.0.15.
No problems in compiling the products, but gdb core-dumps when it tries to load
my executable program. Seems like you missed some null-pointers. Here is a small patch:
Another question: How can I get gdb to work with my multithreaded programs? I keep on
getting SIGUSR1 signals per new thread that starts.
*** cplus-dem.c~ Fri Oct 30 05:18:57 1998
--- cplus-dem.c Mon Nov 16 22:13:25 1998
***************
*** 774,779 ****
--- 774,780 ----
{
string_delete (work->previous_argument);
free ((char*) work->previous_argument);
+ work->previous_argument = NULL;
}
/* If demangling was successful, ensure that the demangled string is null
***************
*** 3026,3032 ****
if (work->forgetting_types)
return;
! if (work -> ntypes >= work -> typevec_size)
{
if (work -> typevec_size == 0)
{
--- 3027,3033 ----
if (work->forgetting_types)
return;
! if (work->typevec == 0 || work -> ntypes >= work -> typevec_size)
{
if (work -> typevec_size == 0)
{
-------------------------------------------------------
Bjørn Wennberg email: bjornw@fairplay.no
ms: +47 950 82 657
Senior Programmer phone: +47 22405538
FairPlay International AS fax: +47 22405539
More information about the Gdb-patches
mailing list