This is the mail archive of the gdb-prs@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]

[Bug gdb/9307] display command does not work under certain condition.


------- Additional Comments From tromey at redhat dot com  2010-02-17 19:41 -------
Still a bug.
I reproduced it with this program:

struct K {
  void method () { }

  int k;

  K() : k(23) { }

  int m2 ()
  {
    k += 7;
    return k;
  }
};

int main() {
  K k;

  k.method();
  return k.m2();
}

I break in m2, then display k.
Then print method()
Then another display k -- this does nothing.

I am not sure about this proposed patch, however.
I don't think block_found should show up in value code, only in symtab code.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com
   Last reconfirmed|0000-00-00 00:00:00         |2010-02-17 19:41:47
               date|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=9307

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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