GDB 7.4 adds shlib_events BPs, casuing problem in debugging vmlinux

Joakim Tjernlund
2012-05-30T13:49:35Z

Using above gdb I get this when trying to debug a kernel with a BDI2000 emulator:
#> powerpc-softfloat_4.5.3-linux-gnu-gdb vmlinux
GNU gdb (Gentoo 7.4 p1) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-softfloat_4.5.3-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/local/src/kenth_os2kernel.git/vmlinux...done.
(gdb) tar remote bdi:2001
Remote debugging using bdi:2001
0xeff80050 in ?? ()
(gdb) mon reset
(gdb) cont
Continuing.
Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0xc0000000: Unknown error 4294967295.

This ia because gdb always inserts a special BP:

(gdb) maintenance info breakpoints
Num Type Disp Enb Address What
-1 shlib events keep y 0xc0000000 <_stext> inf 1

I cannot get rid of this shared lib BP.
Also linux does not use shard libs so why is it inserted in the fist place?
Is there some tweak I can use to disable this BP(patch even)?

Jocke