diff options
author | Pedro Alves <palves@redhat.com> | 2010-02-12 01:24:09 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-02-12 01:24:09 +0000 |
commit | 15c3d785c32724ff94d54a613fcb627d1da0b721 (patch) | |
tree | adb5ddc9dfd935f7e226f68e679a55519c915cd3 /gdb | |
parent | fd9b8c249a7a95cc869675f09634e62c808483bc (diff) | |
download | gdb-15c3d785c32724ff94d54a613fcb627d1da0b721.zip gdb-15c3d785c32724ff94d54a613fcb627d1da0b721.tar.gz gdb-15c3d785c32724ff94d54a613fcb627d1da0b721.tar.bz2 |
* breakpoint.c (allocate_bp_location): Use bp_loc_other for
bp_tracepoint and bp_fast_tracepoint, not
bp_loc_software_breakpoint.
(update_global_location_list): Tracepoints are never duplicates of
anything.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/breakpoint.c | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b3c083b..8bb2b49 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2010-02-12 Pedro Alves <pedro@codesourcery.com> + * breakpoint.c (allocate_bp_location): Use bp_loc_other for + bp_tracepoint and bp_fast_tracepoint, not + bp_loc_software_breakpoint. + (update_global_location_list): Tracepoints are never duplicates of + anything. + +2010-02-12 Pedro Alves <pedro@codesourcery.com> + * breakpoint.c (break_command_really): Change return type to int. Return false if no breakpoint was created, true otherwise. (trace_command): Don't set the tracepoint count if no tracepoint diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 574ecdf..8c97949 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4812,8 +4812,6 @@ allocate_bp_location (struct breakpoint *bpt) switch (bpt->type) { case bp_breakpoint: - case bp_tracepoint: - case bp_fast_tracepoint: case bp_until: case bp_finish: case bp_longjmp: @@ -4838,6 +4836,8 @@ allocate_bp_location (struct breakpoint *bpt) break; case bp_watchpoint: case bp_catchpoint: + case bp_tracepoint: + case bp_fast_tracepoint: loc->loc_type = bp_loc_other; break; default: @@ -8575,7 +8575,8 @@ update_global_location_list (int should_insert) || b->enable_state == bp_startup_disabled || !loc->enabled || loc->shlib_disabled - || !breakpoint_address_is_meaningful (b)) + || !breakpoint_address_is_meaningful (b) + || tracepoint_type (b)) continue; /* Permanent breakpoint should always be inserted. */ |