Re: [Anjuta-list] Basic problems with Anjuta



---- "Sébastien Granjoux" <seb sfo free fr> wrote: 
> Hi
> 
> Steve a écrit :
 
> > It would be OK if Anjuta just stepped over the gtk_init() to the next line
>  > just as it stepped over gtk_set_locale() but it didn't. It appears to 
> have
>  > executed a Continue command and run the program to the end which in this
>  > case is an infinite loop.
> 
> Ok, I think I understand your case. There is an issue with step when a 
> dynamic library is loaded.
> 
> In Anjuta, it is possible to put breakpoint in dynamic libraries. It 
> means in piece code which are not loaded when the program starts. To do 
> this, Anjuta gets a signal each time a new library is loaded and check 
> if it can place additional breakpoints. The problem is that this signal 
> interrupt the current gdb operation step, run or whatever and Anjuta 
> doesn't know which one. So, in all case Anjuta restart gdb with 
> continue. If you were doing a step operation, you have no luck and the 
> program will not stop.
> 
> I have added a note in the documentation on Anjuta 2.24 about this 
> (chapter 6.2.2), I hope it is clear enough.
> 
> Since that time, gdb has been improved and there is now a better way to 
> do this but it is currently not used by Anjuta.
> 

So an interesting exercise to confirm this would be to link with static libraries and see if I can step through the program then. What is the configure option to do that? 'CFLAGS=-g -O0 LDFLAGS=-static' doesn't work. Assumng that what you say is true, and I am not doubting you here, that would mean that 
the step function is unreliable at best. Unless you keep track of what causes dynamic libraries to be loaded, you never know when a step will execute a Continue command. I will have to stick to using breakpoints.

> > Select Forward. The Project Type window is displayed with the 'C' tab visible.
> > Select GTK+ and click Forward. The Basic Information window is displayed.
>  >...
> 
> I have repeated the same things. You have hit several bugs:
> 
> 1. The preferences are not saved correctly the first time.
> http://bugzilla.gnome.org/show_bug.cgi?id=307886
> 
> 2. There is problem to set the yellow arrow
> http://bugzilla.gnome.org/show_bug.cgi?id=559867
> 
> 3. The problem with dynamic libraries and step that I have explained above.

Thanks,
Steve




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