This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb influencing app behaviour ?
- From: Danny Backx <danny dot backx at scarlet dot be>
- To: gdb <gdb at sourceware dot org>
- Date: Mon, 14 Mar 2011 21:26:13 +0100
- Subject: gdb influencing app behaviour ?
- Reply-to: danny dot backx at scarlet dot be
Hi,
I was trying to debug the interaction between RoadMap and gpsd's client
library recently.
I believe I've found my problem, but I think gdb influenced application
behaviour in a way I'd like to understand.
The application uses some gtk call which presumably ends up using
select(2) to trigger a function when data can be read from a socket.
The application appears to behave differently when I set a breakpoint in
that function. (The application and the library were both trying to read
from the socket, by setting the breakpoint the other one would always
win the race.)
How can this be explained ? Am I wrong ?
This is on Ubuntu on a regular PC. http://sf.net/projects/roadmap and
http://gpsd.berlios.de .
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info