This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: Type information in -data-evaluate-expression


 > >  > So this really does not hurt. I can even call 
 > >  > -data-evaluate-expression abort() directly and am still able to
 > >  > continue debugging.
 > > 
 > > I guess other unpleasant things could happen, like variables changing
 > > value.
 > 
 > So what are you proposing? Variable tooltips is something users like.

I don't think they like variables to change value when they move the
mouse around e.g.

  #define ADD4 addtox (4)

  int x = 1;

  void addtox (int i)
  {
    x = x + i;
  }  

adds 4 to x every time the mouse lingers over ADD4.  It's a contrived example
but there are probably more realistic scenarios.  In Emacs, I don't compute
the tooltip if the macro expands to a function.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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