* breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
authorAleksandar Ristovski <aristovski@qnx.com>
Wed, 3 Sep 2008 13:39:56 +0000 (13:39 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Wed, 3 Sep 2008 13:39:56 +0000 (13:39 +0000)
commit514f746bdc40681c8a32ef8077adeae4f2098db2
tree55d90a7ec4954e25b8bf969c68f6a63841f2820a
parentee60f13c8b7d9ed38d7d5d63f8889277848ff675
* breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
non-permanent breakpoints.
(bpstat_stop_status): Change enable_state to bp_disabled only for
non-permanent breakpoints.
(bp_loc_is_permanent): New function.
(create_breakpoint): Check if the location points to a permanent
breakpoint and if it does, make breakpoint permanent.
(update_breakpoint_locations): Make sure new locations of permanent
breakpoints are properly initialized.
* i386-tdep.c (i386_skip_permanent_breakpoint): New function.
(i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.

* gdb.arch/i386-bp_permanent.exp: New test.
gdb/ChangeLog
gdb/breakpoint.c
gdb/i386-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/i386-bp_permanent.exp [new file with mode: 0644]