gdb.git
16 years agoFix makefilepython
Vladimir Prus [Tue, 19 Feb 2008 18:19:07 +0000 (19 21:19 +0300)]
Fix makefile

16 years agoWIP on python scripting
Vladimir Prus [Mon, 21 Jan 2008 16:08:47 +0000 (21 19:08 +0300)]
WIP on python scripting

16 years agoImplement custom pretty-printing of varobj using Python code.
Vladimir Prus [Thu, 17 Jan 2008 14:15:26 +0000 (17 17:15 +0300)]
Implement custom pretty-printing of varobj using Python code.

Pretty raw, in particular memory management is a mess.

16 years agoUpdatemirror
Vladimir Prus [Tue, 19 Feb 2008 19:07:21 +0000 (19 22:07 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Tue, 19 Feb 2008 18:40:25 +0000 (19 21:40 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Sat, 16 Feb 2008 19:17:46 +0000 (16 22:17 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Tue, 12 Feb 2008 18:39:42 +0000 (12 21:39 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Wed, 6 Feb 2008 07:48:15 +0000 (6 10:48 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Tue, 5 Feb 2008 08:53:43 +0000 (5 11:53 +0300)]
Update

16 years agoUpdate stored value when format changes.
Vladimir Prus [Tue, 15 Jan 2008 20:29:36 +0000 (15 23:29 +0300)]
Update stored value when format changes.

* varobj.c (varobj_set_display_format): Recomputed
print_value.
(c_value_of_variable): Return print_value.

16 years agoUpdate
Vladimir Prus [Mon, 4 Feb 2008 06:12:21 +0000 (4 09:12 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Fri, 1 Feb 2008 16:25:22 +0000 (1 19:25 +0300)]
Update

16 years agoMake mi_cmd_break_insert exception-safe.
Vladimir Prus [Sun, 27 Jan 2008 14:06:05 +0000 (27 17:06 +0300)]
Make mi_cmd_break_insert exception-safe.

[gdb]
* breakpoint.c (break_command_1): Return void.
(break_command_really): Return void.  Rethrow
exceptions instead of returning.
(gdb_breakpoint): Remove the error_message parameter.
Return void.  Rename to set_breakpoint.
* gdb.h (gdb_breakpoint): Rename and move to...
        * breakpoint.h (set_breakpoint): ...here.
* mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
event hooks even if exception is thrown.  Adjust to
gdb_breakpoint interface changes.

[gdb/testsuite]
* gdb.mi/basic.c (return_1): New function.
* gdb.mi/mi-break.exp: Make sure that failed -break-insert
don't cause future evaluations of function to report
creation of internal breakpoints.

16 years agoUpdate
Vladimir Prus [Fri, 1 Feb 2008 16:22:33 +0000 (1 19:22 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Fri, 1 Feb 2008 09:46:34 +0000 (1 12:46 +0300)]
Update

16 years agoRethrow exception properly.
Vladimir Prus [Sat, 26 Jan 2008 19:32:10 +0000 (26 22:32 +0300)]
Rethrow exception properly.

[gdb]
        Properly rethrow exception.  This fixes errors
about non-existent functions for -break-insert.

* breakpoint.c (break_command_really): Use throw_exception
for rethrowing.  If rethrowing, don't print the exception.

[gdb/testsuite]
* gdb.mi/mi-break.exp (test_error): New.
Call it.

16 years agoUpdate
Vladimir Prus [Fri, 1 Feb 2008 06:45:23 +0000 (1 09:45 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Wed, 30 Jan 2008 09:45:41 +0000 (30 12:45 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Wed, 30 Jan 2008 07:45:27 +0000 (30 10:45 +0300)]
Update

16 years agoUse vector for varobj_list_children interface.
Vladimir Prus [Thu, 17 Jan 2008 14:42:52 +0000 (17 17:42 +0300)]
Use vector for varobj_list_children interface.

* gdb/varobj.c (varobj_list_children): Return vector
of varobjs.
* gdb/varobj.h (varobj_list_children): Adjust
prototype.
(varobj_p): Declare.  Declare vector thereof.
* mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
for varobj_list_children change.

16 years agoUpdate
Vladimir Prus [Wed, 30 Jan 2008 07:06:03 +0000 (30 10:06 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Tue, 29 Jan 2008 17:53:32 +0000 (29 20:53 +0300)]
Update

16 years agoUse multiple locations for hardware watchpoints.
Vladimir Prus [Tue, 20 Nov 2007 17:10:54 +0000 (20 20:10 +0300)]
Use multiple locations for hardware watchpoints.

This eliminates the need to traverse value chain, doing
various checks, in three different places.

* breakpoint.h (struct bp_location): New fields
lengths and watchpoint_type.
(struct breakpoint): Remove the val_chain field.
* breakpoint.c (is_hardware_watchpoint): New.
(free_valchain): Remove.
(update_watchpoint): New.
(insert_bp_location): For hardware watchpoint, just
directly insert it.
(insert_breakpoints): Call update_watchpoint_locations
on all watchpoints.  If we have failed to insert
any location of a hardware watchpoint, remove all inserted
locations.
(remove_breakpoint): For hardware watchpoints, directly
remove location.
(watchpoints_triggered): Iterate over locations.
(bpstat_stop_status): Use only first location of
a resource watchpoint.
(delete_breakpoint): Don't call free_valchain.
(print_one_breakpoint): Don't print all
locations for watchpoints.
(breakpoint_re_set_one): Use update_watchpoint for
watchpoints.

testsuite/
* gdb.base/watchpoint-solib.exp: New.
* gdb.base/watchpoint-solib.c: New.
* gdb.base/watchpoint-solib-shr.c: New.

16 years agoUpdate
Vladimir Prus [Tue, 29 Jan 2008 16:48:58 +0000 (29 19:48 +0300)]
Update

16 years agoDon't reset watchpoint block on solib load.
Vladimir Prus [Tue, 20 Nov 2007 10:55:08 +0000 (20 13:55 +0300)]
Don't reset watchpoint block on solib load.

* breakpoint.c (insert_bp_location): For watchpoints,
recompute condition.
(breakpoint_re_set_one): Instead of recomputing value
and condition for watchpoints, just reset value and
let insert_breakpoints/insert_bp_location recompute it.
Don't do anything about disabled watchpoint.

16 years agoUpdate
Vladimir Prus [Tue, 29 Jan 2008 16:25:14 +0000 (29 19:25 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Sat, 26 Jan 2008 18:26:22 +0000 (26 21:26 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Wed, 23 Jan 2008 11:27:20 +0000 (23 14:27 +0300)]
Update

16 years agoInform about new thread in a single place.
Vladimir Prus [Fri, 14 Dec 2007 16:23:53 +0000 (14 19:23 +0300)]
Inform about new thread in a single place.

[gdb/ChangeLog]
2007-12-21  Vladimir Prus <vladimir@codesourcery.com>
            Chris Demetriou  <cgd@google.com>
* thread.c (add_thread_silent): Renamed
from add_thread.
(print_thread_events): New variable definition.
(show_print_thread_events): New function.
(_initialize_thread): Add "set print thread-events" and
"show print thread-events" commands.
(add_thread): Announce new thread.
* gdbthread.h (add_thread_silent): Declare.
(print_thread_events): New variable declaration.
* inf-ttrace.c (inf_ttrace_wait): Don't
inform about new thread, as add_thread is always
called too, and will take care of that.
* infrun.c (handle_inferior_event): Likewise.
* procfs.c (procfs_wait): Likewise.
* remote.c (remote_currthread): Likewise.
* sol-thread.c (sol_thread_wait): Likewise.
* win32-nat.c (get_win32_debug_event): Likewise.
* linux-thread-db.c (attach_thread): Likewise.
Remove the verbose parameter.
(check_event): Make detach_thread be verbose
only if print_thread_events is set.
* linux-nat.c (lin_lwp_attach_lwp): Don't inform
about new thread.  This is called only from
linux-thread-db.c:attach_thread, which will take care.
Remove the verbose parameter.
* linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.

[gdb/doc/ChangeLog]
2007-12-19  Chris Demetriou  <cgd@google.com>

        * gdb.texinfo (Threads): Document new "set print thread-events"
        and "show print thread-events" commands.

[gdb/testsuite/ChangeLog]
2007-12-19  Chris Demetriou  <cgd@google.com>

        * gdb.threads/thread_events.c: New testcase source file.
        * gdb.threads/thread_events.exp: New testcase expect file.

16 years agoUpdate
Vladimir Prus [Wed, 23 Jan 2008 11:19:47 +0000 (23 14:19 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Wed, 23 Jan 2008 07:35:33 +0000 (23 10:35 +0300)]
Update

16 years agoFix -break-insert -i.
Vladimir Prus [Tue, 22 Jan 2008 09:40:46 +0000 (22 12:40 +0300)]
Fix -break-insert -i.

gdb/
* breakpoint.c (break_command_really): New parameter
ignore_count.
        (break_command_1): Pass 0 as
ignore_count to break_command_really.
(gdb_breakpoint): Pass ignore_count to
break_command_really.

gdb/testsuite
* gdb.mi/basics.c: Setup for testing breakpoints
ignore count.
* gdb.mi/mi-break.exp: Test for breakpoint ignore count.
* gdb.mi/mi-cli.exp: Adjust.
* gdb.mi/mi2-cli.exp: Adjust.

16 years agoUpdate
Vladimir Prus [Tue, 22 Jan 2008 19:40:36 +0000 (22 22:40 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Tue, 22 Jan 2008 09:51:07 +0000 (22 12:51 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Mon, 21 Jan 2008 16:34:41 +0000 (21 19:34 +0300)]
Update

16 years agoDon't try to skip over breakpoint.
Vladimir Prus [Thu, 29 Nov 2007 12:32:39 +0000 (29 15:32 +0300)]
Don't try to skip over breakpoint.

* infrun.c (handle_inferior_event): If
we failed to remove breakpoints, error,
don't try to increment PC by hand.

16 years agoUpdate
Vladimir Prus [Mon, 21 Jan 2008 16:32:18 +0000 (21 19:32 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Wed, 9 Jan 2008 19:56:27 +0000 (9 22:56 +0300)]
Update

16 years agoHandle solaris dynamic linker name change.
Vladimir Prus [Fri, 21 Dec 2007 18:57:01 +0000 (21 21:57 +0300)]
Handle solaris dynamic linker name change.

Ignore change in name of dynamic linker during
execution.  This also unbreaks pending breakpoints.

* solist.h (struct target_so_ops): New field
same.
* solib-svr4.c (svr4_same): New.
(_initialize_svr4_solib): Register svr4_same.
* solib.c (update_solib_list): Use ops->same,
if available.

16 years agoUpdate
Vladimir Prus [Mon, 7 Jan 2008 15:02:40 +0000 (7 18:02 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Tue, 18 Dec 2007 11:06:19 +0000 (18 14:06 +0300)]
Update

16 years agoAnnounce mi pending breakpoint support.
Vladimir Prus [Sun, 16 Dec 2007 21:26:21 +0000 (17 00:26 +0300)]
Announce mi pending breakpoint support.

gdb/
* mi/mi-main.c (mi_cmd_list_features): Announce
the 'pending-breakpoints' feature.

gdb/doc/
* gdb.texinfo (Miscellaneous gdb/mi Commands):
Document 'pending-breakpoints' feature of
-list-features.

16 years agoUpdate
Vladimir Prus [Tue, 18 Dec 2007 11:02:19 +0000 (18 14:02 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Sun, 16 Dec 2007 19:16:01 +0000 (16 22:16 +0300)]
Update

16 years agoRemove unused things.
Vladimir Prus [Sat, 15 Dec 2007 11:53:14 +0000 (15 14:53 +0300)]
Remove unused things.

* breakpoint.c (bpstat_have_active_hw_watchpoints):
Remove
(bpstat_stop_status): Remove unused variable
real_breakpoint.
* breakpoint.h (bpstat_have_active_hw_watchpoints):
Remove prototype.

16 years agoRemove target_pid_or_tid_to_str.
Vladimir Prus [Fri, 14 Dec 2007 13:09:16 +0000 (14 16:09 +0300)]
Remove target_pid_or_tid_to_str.

This macros has added in 1999 and used by
config/pa/nm-hppah.h. The latter file was itself
deleted in 2004, so now target_pid_or_tid_to_str
is always the same as target_pid_to_str.

* gdb/target.h (target_pid_or_tid_to_str): Remove.
* gdb/infrun.c (handle_inferior_event):
Use target_pid_to_str instead of target_pid_or_tid_to_str.
(normal_stop): Likewise.

16 years agoUpdate
Vladimir Prus [Sun, 16 Dec 2007 19:12:16 +0000 (16 22:12 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Fri, 14 Dec 2007 18:34:30 +0000 (14 21:34 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Fri, 14 Dec 2007 13:49:07 +0000 (14 16:49 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Thu, 6 Dec 2007 14:02:08 +0000 (6 17:02 +0300)]
Update

16 years agoLocalize infrun use of remove_breakpoints.
Vladimir Prus [Fri, 23 Nov 2007 13:19:03 +0000 (23 16:19 +0300)]
Localize infrun use of remove_breakpoints.

* infrun.c (handle_inferior_event): Remove
calls to remove_breakpoints, except where needed to
communicate change of breakpoint locations to inferior.
(keep_going): If steppping over breakpoint, remove
breakpoints.

16 years agoUpdate
Vladimir Prus [Thu, 6 Dec 2007 12:59:37 +0000 (6 15:59 +0300)]
Update

16 years agoClarify infrun variable naming.
Vladimir Prus [Fri, 23 Nov 2007 12:46:26 +0000 (23 15:46 +0300)]
Clarify infrun variable naming.

* infrun.c (trap_expected): Rename
to stepping_over_breakpoint.  Document.
(stepping_past_breakpoint): Remove.
(stepping_past_breakpoint_ptdi): Renamed
to deferred_step_ptid.
(struct execution_control_state): Rename
the another_trap field to stepping_over_breakpoint.
(struct inferior_status): Rename the trap_expected
field to stepping_over_breakpoint.
(clear_proceed_status, proceed)
(init_execution_control_state, context_switch)
(handle_inferior_event, currently_stepping)
(keep_going, save_inferior_status)
(restore_inferior_status, prepare_to_proceed): Adjust.
* gdbthread.h (struct thread_info): Rename the
trap_expected field to stepping_over_breakpoint.
* thread.c (load_infrun_state, save_infrun_state):
Adjust.

16 years agoUpdate
Vladimir Prus [Thu, 6 Dec 2007 08:42:49 +0000 (6 11:42 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Fri, 30 Nov 2007 10:20:58 +0000 (30 13:20 +0300)]
Update

16 years agoMerge branch 'consecutive' into mirror
Vladimir Prus [Fri, 30 Nov 2007 10:02:15 +0000 (30 13:02 +0300)]
Merge branch 'consecutive' into mirror

16 years agoUpdate
Vladimir Prus [Fri, 30 Nov 2007 10:01:01 +0000 (30 13:01 +0300)]
Update

16 years agoMerge branch 'insert_breakpoints_throws' into mirror
Vladimir Prus [Fri, 30 Nov 2007 09:58:01 +0000 (30 12:58 +0300)]
Merge branch 'insert_breakpoints_throws' into mirror

16 years agoUpdate
Vladimir Prus [Fri, 30 Nov 2007 09:57:45 +0000 (30 12:57 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Fri, 30 Nov 2007 07:46:21 +0000 (30 10:46 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Fri, 30 Nov 2007 07:24:24 +0000 (30 10:24 +0300)]
Update

16 years agoMake insert_breakpoints return void.
Vladimir Prus [Thu, 29 Nov 2007 18:53:59 +0000 (29 21:53 +0300)]
Make insert_breakpoints return void.

* breakpoint.h (insert_breakpoints): Change
return type to void.
* breakpoint.c (insert_breakpoints): Change
return type to void.  Rename local return_val
variable to error.
* infrun.c (keep_going): Instead of checking
return value from insert_breakpoints, catch exception.

16 years agoUpdate
Vladimir Prus [Thu, 29 Nov 2007 07:51:32 +0000 (29 10:51 +0300)]
Update

16 years agoStop infrun from tracking breakpoint insertion status.
Vladimir Prus [Sun, 18 Nov 2007 11:06:45 +0000 (18 14:06 +0300)]
Stop infrun from tracking breakpoint insertion status.

The checks of breakpoints_inserted before calling remove_breakpoints
are removed, as remove_breakpoint won't touch uninserted breakpoints.
In a number of places, we're interested if a breakpoint is inserted
at particular PC, and we now use breakpoint_inserted_here_p.  In a few
places, insert_breakpoints can be called unconditionally, since it
won't try to insert already inserted breakpoint.

* breakpoint.h (regular_breakpoint_inserted_here_p): New
declaration.
* breakpoint.c (regular_breakpoint_inserted_here_p): New.
(breakpoint_inserted_here_p): Use
regular_breakpoint_inserted_here_p.
* infrun.c (breakpoints_inserted): Remove.
(resume): Don't check for breakpoints_inserted before
remove_hw_watchpoints. Use breakpoint_inserted_here_p.
(proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
(handle_inferior_event): Don't use breakpoints_inserted.
Use breakpoints_meant_to_be_inserted and
breakpoints_inserted_here_p.
(insert_step_resume_breakpoint_at_sal, keep_going): Use
breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
(normal_stop): Don't check for breakpoints_inserted.  Don't
set breakpoints_inserted.
(keep_going): Don't check for breakpoints_inserted.
(insert_step_resume_breakpoint_at_sal): Don't insert
        breakpoints

16 years agoUpdate
Vladimir Prus [Thu, 29 Nov 2007 07:30:29 +0000 (29 10:30 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Wed, 28 Nov 2007 12:51:15 +0000 (28 15:51 +0300)]
Update

16 years agoFix stepping over breakpoints using software single stepping.
Vladimir Prus [Tue, 27 Nov 2007 17:44:51 +0000 (27 20:44 +0300)]
Fix stepping over breakpoints using software single stepping.

* infrun.c (resume): Set right thread
even if stepping over breakpoint using software
single step.

16 years agoUpdate
Vladimir Prus [Wed, 28 Nov 2007 12:48:06 +0000 (28 15:48 +0300)]
Update

16 years agoDon't ignore consecutive breakpoints.
Vladimir Prus [Fri, 23 Nov 2007 20:05:40 +0000 (23 23:05 +0300)]
Don't ignore consecutive breakpoints.

* infrun.c (handle_inferior_event): Don't
ignore beakpoints if trap_expected is set.

16 years agoUpdate
Vladimir Prus [Fri, 23 Nov 2007 16:56:59 +0000 (23 19:56 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Tue, 20 Nov 2007 17:37:51 +0000 (20 20:37 +0300)]
Update

16 years agoMerge branch 'from_tty_and_flag' into mirror
Vladimir Prus [Tue, 20 Nov 2007 17:35:18 +0000 (20 20:35 +0300)]
Merge branch 'from_tty_and_flag' into mirror

16 years agoUpdate
Vladimir Prus [Tue, 20 Nov 2007 08:21:59 +0000 (20 11:21 +0300)]
Update

16 years agoClarify infrun thread resumption logic.
Vladimir Prus [Sat, 17 Nov 2007 22:16:07 +0000 (18 01:16 +0300)]
Clarify infrun thread resumption logic.

* infrun.c (resume): Clarify logic that
decides if a single thread must be resumed. Add
comments.

16 years agoMake disable_breakpoints_in_unloaded_shlib static.
Vladimir Prus [Mon, 19 Nov 2007 19:36:07 +0000 (19 22:36 +0300)]
Make disable_breakpoints_in_unloaded_shlib static.

* breakpoint.c (disable_breakpoints_in_unloaded_shlib):
Make static.

16 years agoUpdate
Vladimir Prus [Tue, 20 Nov 2007 08:07:13 +0000 (20 11:07 +0300)]
Update

16 years agoRemove unused breakpoint fields.
Vladimir Prus [Mon, 19 Nov 2007 14:43:41 +0000 (19 17:43 +0300)]
Remove unused breakpoint fields.

* breakpoint.h (struct breakpoint): Remove
from_tty and flag fields.
* breakpoint.c (break_command_1): Don't set
from_tty and flag field set of breakpoint.
(create_ada_exception_breakpoint): Don't set
the from_tty field.

16 years agoUpdate
Vladimir Prus [Fri, 16 Nov 2007 18:59:36 +0000 (16 21:59 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Thu, 15 Nov 2007 07:12:33 +0000 (15 10:12 +0300)]
Update

16 years agoUpdate
Vladimir Prus [Thu, 15 Nov 2007 06:53:04 +0000 (15 09:53 +0300)]
Update

16 years agoMerge commit '997dde587a7d905bc862bce6af27ce2c3ab4484e' into mirror
Vladimir Prus [Thu, 15 Nov 2007 06:47:29 +0000 (15 09:47 +0300)]
Merge commit '997dde587a7d905bc862bce6af27ce2c3ab4484e' into mirror

16 years agoUpdate
Vladimir Prus [Thu, 15 Nov 2007 06:46:47 +0000 (15 09:46 +0300)]
Update

16 years agoMerge commit 'e412d5bce8dc07b8e9f7a3c78276df5b02ee7d7f' into mirror
Vladimir Prus [Thu, 15 Nov 2007 06:43:58 +0000 (15 09:43 +0300)]
Merge commit 'e412d5bce8dc07b8e9f7a3c78276df5b02ee7d7f' into mirror

16 years agoUpdate
Vladimir Prus [Thu, 15 Nov 2007 06:30:39 +0000 (15 09:30 +0300)]
Update

16 years agoMerge commit '11627d82afe62aa41c71310e946050dc303f7d42' into mirror
Vladimir Prus [Thu, 15 Nov 2007 06:25:51 +0000 (15 09:25 +0300)]
Merge commit '11627d82afe62aa41c71310e946050dc303f7d42' into mirror

16 years agoUpdate
Vladimir Prus [Thu, 15 Nov 2007 06:25:10 +0000 (15 09:25 +0300)]
Update

16 years agoMerge commit 'ec9c7853b07801d6c4b0973156e5e5dfee5ead2f' into mirror
Vladimir Prus [Thu, 15 Nov 2007 06:18:28 +0000 (15 09:18 +0300)]
Merge commit 'ec9c7853b07801d6c4b0973156e5e5dfee5ead2f' into mirror

16 years agoUpdate entries
Vladimir Prus [Thu, 15 Nov 2007 06:16:38 +0000 (15 09:16 +0300)]
Update entries

16 years agoSummarize changes
Vladimir Prus [Thu, 15 Nov 2007 06:09:57 +0000 (15 09:09 +0300)]
Summarize changes

16 years agoMerge commit 'e1c46bff8634642eb8b98264ef020c30fefe1907' into mirror
Vladimir Prus [Thu, 15 Nov 2007 06:04:03 +0000 (15 09:04 +0300)]
Merge commit 'e1c46bff8634642eb8b98264ef020c30fefe1907' into mirror

16 years agoUpdate from CVS
Vladimir Prus [Thu, 15 Nov 2007 06:03:38 +0000 (15 09:03 +0300)]
Update from CVS

16 years agoApply const qualifier to some users of bp_location.
Vladimir Prus [Wed, 14 Nov 2007 17:07:38 +0000 (14 20:07 +0300)]
Apply const qualifier to some users of bp_location.

* breakpoint.h (struct bpstats): Make
the breakpoint_at field point at const bp_location.
* breakpoint.c (bpstat_alloc): Accept const
bp_location.
(breakpoint_here_p, breakpoint_inserted_here_p)
(software_breakpoint_inserted_here_p)
(breakpoint_thread_match, bpstat_stop_status,
        read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
const bp_location for iteration.
(print_it_typical, print_bp_stop_message): Use
const bp_location variable.

16 years agoMake mark_breakpoints_out static.
Vladimir Prus [Wed, 14 Nov 2007 16:45:41 +0000 (14 19:45 +0300)]
Make mark_breakpoints_out static.

* breakpoint.h (mark_breakpoints_out): Remove
declaration.
* breakpoint.c (mark_breakpoints_out): Make static.

16 years agoPrevent clear_command from directly modifying breakpoint list.
Vladimir Prus [Wed, 14 Nov 2007 16:14:21 +0000 (14 19:14 +0300)]
Prevent clear_command from directly modifying breakpoint list.

gdb/
* Makefile.in (breakpoint_h): Update dependency.
* breakpoint.c (clear_command): Do not remove
breakpoints from breakpoint_chain.  Collect breakpoints
to delete in a vector.
* breakpoint.h (breakpoint_p): New typedef for pointer to
breakpoint.  Register vector of breakpoint_p.

testsuite/
* gdb.base/ending-run.exp: Expect the list of cleared
breakpoint to come in natural order, not the reversed one.

16 years agoRemove 'run_cleanup'.
Vladimir Prus [Wed, 14 Nov 2007 12:43:07 +0000 (14 15:43 +0300)]
Remove 'run_cleanup'.

16 years agoRemove CLEAR_SOLIB use.
Vladimir Prus [Wed, 14 Nov 2007 11:55:49 +0000 (14 14:55 +0300)]
Remove CLEAR_SOLIB use.

16 years agoInitial import
Vladimir Prus [Wed, 14 Nov 2007 11:32:04 +0000 (14 14:32 +0300)]
Initial import