On Wed, Feb 12, 2003 at 11:00:07PM +0100, David Hedbor @ Pike developers forum scribbled:
Gdb seems to be >broken on my development machine with the kernel 2.5 - it cannot set >breakpoints.
Seems to happen if you use the -ac patch set in 2.4 kernels as well. Quite annoying and the lack breakpoints is only part of the problem. Seems like ptrace() calls fails incorrectly. I don't know if this is a gdb bug but it rather seems like a kernel bug. Took me forever to figure out why my gdb didn't work.
It's a gdb bug, AFAIK. And in the 2.5 kernel there is new threading code which breaks gdb even more. It used to work before I last upgraded gdb - so it's not the kernel. Right now pressing 'r' makes gdb halt the process on SIGSTOP and then after 'c' report failure to set breakpoints.
marek