OSDN Git Service

* breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
authoraristovski <aristovski>
Wed, 3 Sep 2008 13:39:55 +0000 (13:39 +0000)
committeraristovski <aristovski>
Wed, 3 Sep 2008 13:39:55 +0000 (13:39 +0000)
commit76bf1a5f2f398d9dca5137de1ae8ae7c160b70b8
tree26ba3a8c68803051c81e376ce3a4a03145cee177
parentc2f57a5c9cb1ab745bfdfa1f07930353c4accaaa
* 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]