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

gdb influencing app behaviour ?


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


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