summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2002-06-18 21:58:55 +0000
committerKeith Seitz <keiths@redhat.com>2002-06-18 21:58:55 +0000
commit221ea385940527924acd72069506108b77a5f554 (patch)
treed4c59d2eb424593126b240c6fe272a9431a3ec24
parent7cd524839ae09d0bc5448c45414ba03f1a6e854e (diff)
downloadppe42-binutils-221ea385940527924acd72069506108b77a5f554.tar.gz
ppe42-binutils-221ea385940527924acd72069506108b77a5f554.zip
* breakpoint.c (condition_command): Post breakpoint_modify
when a condition is added to an existing breakpoint. (commands_command): Likewise for commands. (set_ignore_count): Likewise for ignore counts. If no tty, do not simply return, still need to send event notification. (ignore_command): Only print a newline if the command came from a tty. Don't call breakpoints_changed, since this is now properly handled by set_ignore_count.
-rw-r--r--gdb/ChangeLog13
-rw-r--r--gdb/breakpoint.c30
2 files changed, 30 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4d97346e35..95eb89575e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,16 @@
+2002-06-18 Keith Seitz <keiths@redhat.com>
+
+ * breakpoint.c (condition_command): Post breakpoint_modify
+ when a condition is added to an existing breakpoint.
+ (commands_command): Likewise for commands.
+ (set_ignore_count): Likewise for ignore counts.
+ If no tty, do not simply return, still need to send event
+ notification.
+ (ignore_command): Only print a newline if the command came
+ from a tty.
+ Don't call breakpoints_changed, since this is now properly
+ handled by set_ignore_count.
+
2002-06-18 Andrew Cagney <cagney@redhat.com>
* MAINTAINERS: Note that cris-elf target can be compiled with
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 1861370eaa..187061e45e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -553,6 +553,7 @@ condition_command (char *arg, int from_tty)
error ("Junk at end of expression");
}
breakpoints_changed ();
+ breakpoint_modify_event (b->number);
return;
}
@@ -592,6 +593,7 @@ commands_command (char *arg, int from_tty)
free_command_lines (&b->commands);
b->commands = l;
breakpoints_changed ();
+ breakpoint_modify_event (b->number);
return;
}
error ("No breakpoint number %d.", bnum);
@@ -7071,18 +7073,20 @@ set_ignore_count (int bptnum, int count, int from_tty)
if (b->number == bptnum)
{
b->ignore_count = count;
- if (!from_tty)
- return;
- else if (count == 0)
- printf_filtered ("Will stop next time breakpoint %d is reached.",
- bptnum);
- else if (count == 1)
- printf_filtered ("Will ignore next crossing of breakpoint %d.",
- bptnum);
- else
- printf_filtered ("Will ignore next %d crossings of breakpoint %d.",
- count, bptnum);
+ if (from_tty)
+ {
+ if (count == 0)
+ printf_filtered ("Will stop next time breakpoint %d is reached.",
+ bptnum);
+ else if (count == 1)
+ printf_filtered ("Will ignore next crossing of breakpoint %d.",
+ bptnum);
+ else
+ printf_filtered ("Will ignore next %d crossings of breakpoint %d.",
+ count, bptnum);
+ }
breakpoints_changed ();
+ breakpoint_modify_event (b->number);
return;
}
@@ -7119,8 +7123,8 @@ ignore_command (char *args, int from_tty)
set_ignore_count (num,
longest_to_int (value_as_long (parse_and_eval (p))),
from_tty);
- printf_filtered ("\n");
- breakpoints_changed ();
+ if (from_tty)
+ printf_filtered ("\n");
}
/* Call FUNCTION on each of the breakpoints
OpenPOWER on IntegriCloud