take over some minor changes from the script shipped with ubuntu utopic gdb package
use a divert for gdb-add-index to use our script instead of the original shipped with gdb