Simplify MI breakpoint setting.

* breakpoint.c (break_command_really): Make nonstatic and
    	rename to...
    	(create_breakpoint): ...this. Rename prior function by this name
    	to...
    	(create_breakpoint_sal): ...this.
    	(create_breakpoints): Rename to...
    	(create_breakpoints_sal): ...this.
    	(set_breakpoint): Remove.
    	* breakpoint.h: Adjust to above changes.
    	* mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
This commit is contained in:
Vladimir Prus
2010-03-16 08:42:20 +00:00
parent 1aa3738469
commit 8cdf0e1506
4 changed files with 115 additions and 139 deletions

View File

@@ -792,12 +792,15 @@ extern void awatch_command_wrapper (char *, int);
extern void rwatch_command_wrapper (char *, int);
extern void tbreak_command (char *, int);
extern void set_breakpoint (struct gdbarch *gdbarch,
char *address, char *condition,
int hardwareflag, int tempflag,
int thread, int ignore_count,
int pending,
int enabled);
extern int create_breakpoint (struct gdbarch *gdbarch, char *arg,
char *cond_string, int thread,
int parse_condition_and_thread,
int tempflag, int hardwareflag, int traceflag,
int ignore_count,
enum auto_boolean pending_break_support,
struct breakpoint_ops *ops,
int from_tty,
int enabled);
extern void insert_breakpoints (void);