aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-05-06 01:35:57 +0000
committerJim Blandy <jimb@codesourcery.com>2001-05-06 01:35:57 +0000
commit644a1fe1ca256e8fa6a23276c25b0c7d3a687a0f (patch)
tree3b50b28a409822f02f20ff43e20b6bc835ff718e /gdb/breakpoint.h
parent9f60f21b6db87a986e7ba2ebd326624ce9409ff3 (diff)
downloadgdb-644a1fe1ca256e8fa6a23276c25b0c7d3a687a0f.zip
gdb-644a1fe1ca256e8fa6a23276c25b0c7d3a687a0f.tar.gz
gdb-644a1fe1ca256e8fa6a23276c25b0c7d3a687a0f.tar.bz2
* breakpoint.c (check_duplicates): Use the breakpoint's type, not
its address, to decide whether it's a watchpoint or not. Zero is a valid code address. (update_breakpoints_after_exec): Admonishing comments. * breakpoint.h (struct breakpoint): Doc fixes.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index cd9d1b7..1ef4a79 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -193,16 +193,17 @@ struct breakpoint
/* Number assigned to distinguish breakpoints. */
int number;
- /* Address to break at, or NULL if not a breakpoint. */
+ /* Address to break at.
+ Note that zero is a perfectly valid code address on some
+ platforms (for example, the mn10200 and mn10300 simulators).
+ NULL is not a special value for this field. */
CORE_ADDR address;
- /* Line number of this address. Only matters if address is
- non-NULL. */
+ /* Line number of this address. */
int line_number;
- /* Source file name of this address. Only matters if address is
- non-NULL. */
+ /* Source file name of this address. */
char *source_file;
@@ -217,11 +218,10 @@ struct breakpoint
control of the target insert_breakpoint and remove_breakpoint routines.
No other code should assume anything about the value(s) here. */
char shadow_contents[BREAKPOINT_MAX];
- /* Nonzero if this breakpoint is now inserted. Only matters if address
- is non-NULL. */
+ /* Nonzero if this breakpoint is now inserted. */
char inserted;
/* Nonzero if this is not the first breakpoint in the list
- for the given address. Only matters if address is non-NULL. */
+ for the given address. */
char duplicate;
/* Chain of command lines to execute when this breakpoint is hit. */
struct command_line *commands;
@@ -231,8 +231,7 @@ struct breakpoint
/* Conditional. Break only if this expression's value is nonzero. */
struct expression *cond;
- /* String we used to set the breakpoint (malloc'd). Only matters if
- address is non-NULL. */
+ /* String we used to set the breakpoint (malloc'd). */
char *addr_string;
/* Language we used to set the breakpoint. */
enum language language;