diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-07-31 20:31:16 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-07-31 20:31:16 +0000 |
commit | f51582eaf6915a365ff221dd1bd779ae3d29e941 (patch) | |
tree | 12af400f3907b96ecad07d3e0abc0bac37f4f089 /gdb | |
parent | 31eaa3821255d058aaa4abc5bf6a67d28ef1a0b1 (diff) | |
download | gdb-f51582eaf6915a365ff221dd1bd779ae3d29e941.tar.gz |
* breakpoint.c (insert_bp_location): Document return value.
(insert_breakpoint_locations): Fix documentation.
(remove_breakpoints): Add documentation.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/breakpoint.c | 11 |
2 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e86cf187f46..175f36389c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> + * breakpoint.c (insert_bp_location): Document return value. + (insert_breakpoint_locations): Fix documentation. + (remove_breakpoints): Add documentation. + +2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com> + * breakpoint.c (insert_bp_location): Remove disabled_breaks argument. Update callers. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index edfa661125b..8fe16e6b4c0 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1574,6 +1574,8 @@ should_be_inserted (struct bp_location *bl) /* Insert a low-level "breakpoint" of some type. BL is the breakpoint location. Any error messages are printed to TMP_ERROR_STREAM; and HW_BREAKPOINT_ERROR is used to report problems. + Returns 0 for success, 1 if the bp_location type is not supported or + -1 for failure. NOTE drow/2003-09-09: This routine could be broken down to an object-style method for each breakpoint or catchpoint type. */ @@ -1897,10 +1899,7 @@ insert_breakpoints (void) insert_breakpoint_locations (); } -/* insert_breakpoints is used when starting or continuing the program. - remove_breakpoints is used when the program stops. - Both return zero if successful, - or an `errno' value if could not write the inferior. */ +/* Used when starting or continuing the program. */ static void insert_breakpoint_locations (void) @@ -2001,6 +2000,10 @@ You may have requested too many hardware breakpoints/watchpoints.\n"); do_cleanups (cleanups); } +/* Used when the program stops. + Returns zero if successful, or non-zero if there was a problem + removing a breakpoint location. */ + int remove_breakpoints (void) { |