diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-03 15:57:06 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-03 15:57:06 +0000 |
commit | e6b3eacaca03f328175064c698a4542e96a63df7 (patch) | |
tree | 3b4b48ad37a35072e392f91c7eabc5af07546dcd /gdb/breakpoint.h | |
parent | bfacf227ec8ee6b1c73311e323bd93c1eddd9ca6 (diff) | |
download | gdb-e6b3eacaca03f328175064c698a4542e96a63df7.tar.gz |
gdb/
Code cleanup.
* breakpoint.c (print_breakpoint_location): Replace bp_location field
source_file references by symtab field references. Remove variables
sal and fullname.
(momentary_breakpoint_from_master, add_location_to_breakpoint):
(clear_command, say_where): Replace bp_location field source_file
references by symtab field references.
(bp_location_dtor): Remove the source_file reference.
(update_static_tracepoint): Replace bp_location field source_file
references by symtab field references.
(breakpoint_free_objfile): New function.
* breakpoint.h (struct bp_location): Extend the comment for line_number.
Replace the field source_file by field symtab, extend its comment.
(breakpoint_free_objfile): New declaration.
* objfiles.c (free_objfile): Call breakpoint_free_objfile.
* tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
field source_file references by symtab field references.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index df9d36615a6..7a2c629dfe1 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -465,13 +465,17 @@ struct bp_location it becomes 0 this location is retired. */ int events_till_retirement; - /* Line number of this address. */ + /* Line number which was used to place this location. + + Breakpoint placed into a comment keeps it's user specified line number + despite ADDRESS resolves into a different line number. */ int line_number; - /* Source file name of this address. */ + /* Symtab which was used to place this location. This is used + to find the corresponding source file name. */ - char *source_file; + struct symtab *symtab; }; /* Return values for bpstat_explains_signal. Note that the order of @@ -1550,4 +1554,6 @@ extern struct gdbarch *get_sal_arch (struct symtab_and_line sal); extern void handle_solib_event (void); +extern void breakpoint_free_objfile (struct objfile *objfile); + #endif /* !defined (BREAKPOINT_H) */ |