Subject: Pointers lose contents in gdb
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Brian de Alwis <bsdealwi@undergrad.math.uwaterloo.ca>
List: netbsd-bugs
Date: 02/23/1994 18:33:40
This is a very strange bug, and I'm not on my system at home, so you'll
have to rely on my description. Any advice on how to narrow it will be
much appreciated. I have reproduced it several times.

I was debugging a C++ program in gdb from an xterm while using X. In the
middle of stepping through a function, I printed the value of a pointer,
and then changed to another window to use GhostView/GhostScript to view
a file. When I returned to the original window, the pointer had been set
to 0x0.

I can only suspect the ptrace code, since the program works fine outside
of the debugger (now that my bug is fixed :).

This is with the tar_files of the 12th. I'm sorry, but I haven't had time
to upgrade to a newer -current (midterms... :(.
-- 
Brian de Alwis - University of Waterloo: bsdealwis@undergrad.math.uwaterloo.ca
`How extraordinarily lucky Minta is! She is marrying a man who has a gold
 watch in a wash-leather bag!' - _To_the_Lighthouse_, Virginia Woolf.

------------------------------------------------------------------------------