When a breakpoint is placed on a location which is described by a symbol file registered using the new JIT interface in gdb 7.0, and the program is restarted, it will fail with a message like: Warning: Cannot insert breakpoint 1. Error accessing memory address 0x40010200: Input/output error. This is because the breakpoint is resolved to the address of a JITted function which doesn't exist at the start of the next run. The attached patch fixes this by disabling breakpoint locations referring to JITted code between runs. Its against the gdb 7.0 sources. I hope its of acceptable quality.
Created attachment 4264 [details] patch against gdb 7.0
The best thing to do is submit the patch following the contribution instructions; see http://sourceware.org/gdb/contribute/ FWIW the idea seems reasonable to me.