summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2003-11-06 18:24:55 +0000
committerDaniel Jacobowitz <dan@debian.org>2003-11-06 18:24:55 +0000
commit273c08bbadade079efcf31d9116355149e869211 (patch)
tree0f0d15e950614c7baadef1fb62f310dc31ed6ce5 /gdb/breakpoint.h
parentd690c2db1d476b8748f46fbd99f4acf7942a3cb4 (diff)
downloadgdb-273c08bbadade079efcf31d9116355149e869211.tar.gz
* breakpoint.h (struct bp_location): Add section.
(struct breakpoint): Remove section. * breakpoint.c (insert_breakpoints, remove_breakpoint) (breakpoint_here_p, breakpoint_inserted_here_p) (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint) (describe_other_breakpoints, check_duplicates, set_raw_breakpoint) (clear_command, delete_breakpoint, breakpoint_re_set_one): Access section through loc.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 2dde3c9b4ff..85cc8b9f3bb 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -237,6 +237,10 @@ struct bp_location
bp_loc_other. */
CORE_ADDR address;
+ /* For any breakpoint type with an address, this is the BFD section
+ associated with the address. Used primarily for overlay debugging. */
+ asection *section;
+
/* "Real" contents of byte where breakpoint has been inserted.
Valid only when breakpoints are in the program. Under the complete
control of the target insert_breakpoint and remove_breakpoint routines.
@@ -379,8 +383,6 @@ struct breakpoint
triggered. */
char *exec_pathname;
- asection *section;
-
/* Methods associated with this breakpoint. */
struct breakpoint_ops *ops;
};