This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [aeb] Re: GNU toolchain and AEB


Hi Fernando! Could you reproduce the problem?
I really could need a "working" debugger! I have seen the bug described below
not only in the toolstips, but also while trying to watch objects.

I donīt use optimization, but sometimes it feels like debugging optimized code.
(It does this funny jumping in the code, even if there are no jump commands).
The following looks also strange to me:
	74	void TaskList::insert(Task * pTask) 
-	75	{ 
-	76	        Task * ppPrev = this->pTop; 
 	77	
 	78	        // 
 	79	        // Handle  the case of an empty list. 
 	80	        // 
-	81	        if (ppPrev == NULL) 
 	82	        { 
 	83	                ppPrev == pTask; 
 	84	                return;  
 	85	        } 

This is how it looks in gdb. No instruction at "ppPrev == pTask; " and
"return;  ". 


I am doing this embedded programming for the first time. I didnīt thought
that it is that hard.
Sorry to be that impatient! Itīs just urgend for me! :-)
Best regards,
Jens-Christian

Am Don, 11 Jan 2001 schrieben Sie:
> 
> Hi everybody!
> This is a bug report about:
> 
> Today I encounter a problem with the gdb. I had the tooltips for variables
> turned on. When moving the mousepointer over a field of a class, gdb startet to
> allocote ruff amounts of mem. Only the limit of 128MB of swap could stop
> it, it crashed and my X crashed too. I could mail you the project
> and explain you how to reproduce this error.
> 
> This is how to reproduce it:
> 
> 1.) install & say "make" in the adeos dir
> 2.) download & start it to a AT91EB01 or AT91EB40
> It will stop in "main" at "os.start();"
> 3.) set a breakpoint in sched.cpp, function "Sched::start(void)",
> third line "schedule();"
> 4.) continue
> 5.) move mousepointer over "state" from the line above
> "state = Started;" Having
> tooltips turned on, it should crash. Or try to add it to the list of
> watch exprecions.
> 
> My arm-elf-gdb is from 20001212.
> 
> Regards,
> 
> Jens-Christian
> 
> Am Don, 11 Jan 2001 schrieben Sie:
> > Jens-Christian Lache wrote:
> > > 
> > > > Yes this sounds serious.  But I guess I know that it is caused by a
> > > > bug in the C++ symbol handling in GDB.  It gets into an infinite loop
> > > > when we are looking for an overloaded symbol (I don't know the
> > > > exact circunstances).
> > > >
> > > > Someone has been fixing C++ things lately.  Have you tried getting the
> > > > latest insight from CVS to see if it works better for you?
> > > Could you be a little more precise about lately? Mine is from 20001212.
> > 
> > Jee! That sounds new enough.
> > 
> > I guess I will have to take you on your offer to try to reproduce it.
> > 
> > What I am going to do is to try and find someone from the GDB C++ area
> > to look at it.  I myself have not played with that code for a while and
> > I am full of GUI stuff to do.
> > 
> > I have seem a similar problem, so I will bug them with this one as well.
> > Lets hope they find it fast.
> > 
> > Maybe you should turn off your variable ballons in the meanwhile to
> > avoid accidentaly
> > tripping over one of those classes.  There is a preference under
> > Preferences->Source
> > to turn them off.
> > 
> > 
> > > Thankīs again for your great support,  :-)
> > > 
> > You're welcome.
> > 
> > 
> > P.S.:  Can you post your messages to the list?  We use the archives as a
> > knowledge base
> >        so if other people have a similar problem they can use our
> > findings by searching
> >        the old messages.  Also, sometimes there are other people who
> > know something
> >        about the problem we are tracking down and they can jump in and
> > help us.
> > :-)
> > 
> > 
> > -- 
> > Fernando Nasser
> > Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
> > 2323 Yonge Street, Suite #300
> > Toronto, Ontario   M4P 2C9
> -- 
> 
> 
> Jens-Christian Lache
> Technische Universitaet Hamburg-Harburg
> www.tu-harburg.de/~sejl1601
> Mail:
> lache@tu-harburg.de
> lache@ngi.de
> Tel.:
> +0491759610756
> 

----------------------------------------
Content-Type: application/x-gzip; name="adeos.tgz"
Content-Transfer-Encoding: base64
Content-Description: 
----------------------------------------

-- 


Jens-Christian Lache
Technische Universitaet Hamburg-Harburg
www.tu-harburg.de/~sejl1601
Mail:
lache@tu-harburg.de
lache@ngi.de
Tel.:
+0491759610756

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]