aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>1997-12-17 10:49:19 +0000
committerMichael Snyder <msnyder@vmware.com>1997-12-17 10:49:19 +0000
commit7a880bf32dbebda7c52b1b9225ea0dca1a66882e (patch)
treeeb3ea4ad6c38f53f578782777c9af32b72d9cd47
parent7165fd141e6a114fd4e91c6965489c5e443c8820 (diff)
downloadgdb-7a880bf32dbebda7c52b1b9225ea0dca1a66882e.zip
gdb-7a880bf32dbebda7c52b1b9225ea0dca1a66882e.tar.gz
gdb-7a880bf32dbebda7c52b1b9225ea0dca1a66882e.tar.bz2
Wed Dec 17 10:47:05 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* tracepoint.c (set_raw_tracepoint): initialize addr_string to NULL; (trace_actions_command): call readline_begin_hook only if from_tty is true.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/tracepoint.c20
2 files changed, 18 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index af6d8e6..0dceb05 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+Wed Dec 17 10:47:05 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
+
+ * tracepoint.c (set_raw_tracepoint): initialize addr_string
+ to NULL; (trace_actions_command): call readline_begin_hook only
+ if from_tty is true.
+
Tue Dec 16 20:05:48 1997 Mark Alexander <marka@cygnus.com>
* configure.tgt: Change little-endian tx39 target name to tx39l.
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index eda6d27..f2c5160 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -328,10 +328,11 @@ set_raw_tracepoint (sal)
t->language = current_language->la_language;
t->input_radix = input_radix;
t->line_number = sal.line;
- t->enabled = enabled;
- t->next = 0;
- t->step_count = 0;
- t->pass_count = 0;
+ t->enabled = enabled;
+ t->next = 0;
+ t->step_count = 0;
+ t->pass_count = 0;
+ t->addr_string = NULL;
/* Add this tracepoint to the end of the chain
so that a list of tracepoints will come out in order
@@ -767,10 +768,13 @@ trace_actions_command (args, from_tty)
sprintf (tmpbuf, "Enter actions for tracepoint %d, one per line.",
t->number);
- if (readline_begin_hook)
- (*readline_begin_hook) ("%s %s\n", tmpbuf, end_msg);
- else if (from_tty && input_from_terminal_p ())
- printf_filtered ("%s\n%s\n", tmpbuf, end_msg);
+ if (from_tty)
+ {
+ if (readline_begin_hook)
+ (*readline_begin_hook) ("%s %s\n", tmpbuf, end_msg);
+ else if (input_from_terminal_p ())
+ printf_filtered ("%s\n%s\n", tmpbuf, end_msg);
+ }
free_actions (t);
read_actions (t);