mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
gdb/
* breakpoint.c (print_one_breakpoint_location): Remove dead code. (update_dprintf_command_list): Assert that 'printf_line' is non-null. Remove condition check.
This commit is contained in:
parent
5bf480a5cb
commit
f28045c2aa
@ -1,3 +1,9 @@
|
||||
2013-01-11 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* breakpoint.c (print_one_breakpoint_location): Remove dead code.
|
||||
(update_dprintf_command_list): Assert that 'printf_line' is
|
||||
non-null. Remove condition check.
|
||||
|
||||
2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Code cleanup.
|
||||
|
@ -6095,15 +6095,6 @@ print_one_breakpoint_location (struct breakpoint *b,
|
||||
}
|
||||
}
|
||||
|
||||
if (!part_of_multiple && b->extra_string
|
||||
&& b->type == bp_dprintf && !b->commands)
|
||||
{
|
||||
annotate_field (7);
|
||||
ui_out_text (uiout, "\t(agent printf) ");
|
||||
ui_out_field_string (uiout, "printf", b->extra_string);
|
||||
ui_out_text (uiout, "\n");
|
||||
}
|
||||
|
||||
l = b->commands ? b->commands->commands : NULL;
|
||||
if (!part_of_multiple && l)
|
||||
{
|
||||
@ -8894,8 +8885,8 @@ update_dprintf_command_list (struct breakpoint *b)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
_("Invalid dprintf style."));
|
||||
|
||||
gdb_assert (printf_line != NULL);
|
||||
/* Manufacture a printf/continue sequence. */
|
||||
if (printf_line)
|
||||
{
|
||||
struct command_line *printf_cmd_line, *cont_cmd_line = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user