[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DDD Breakpoints/Local variables



On Wed, Apr 14, 1999 at 09:52:13PM +0200, J.H.M. Dassen wrote:
> On Wed, Apr 14, 1999 at 12:44:56 -0600, Jake Griesbach wrote:
> > egcs-2.91.66 with -g and -ggdb3 set.  I then load ddd, and set the
> > breakpoint by selecting a source line and selecting set breakpoint.  When
> > I hit run, I get the following output:
> > 
> > (gdb) run
> > Starting program: /home/griesbac/temp/src/bjsim/bjsim 
> > Breakpoint 1 at 0x823c07c: file bjsim.c, line 523.
> > Cannot insert breakpoint 1:
> > Cannot access memory at address 0x823c07c.
> > (gdb)
> 
> This is quite likely a gdb rather than a DDD problem (I vaguely recall
> similar bugs being reported - check the BTS).
> 
I've oft gotten similar errors.  Try setting a breakpoint on main(), then
adding other breakpoints after main starts.  That way shlibs are loaded, for
one thing.

	-=- James Mastros
-- 
"My friend Data: You see the world with the wonder of a child, and that
makes you more human then any of us."
	-=- Lt. Tasha Yar, upon the occasion of her death.


Reply to: