* [RFA] Initialize new struct data
@ 2001-06-21 10:10 Keith Seitz
2001-06-21 15:54 ` Keith Seitz
0 siblings, 1 reply; 3+ messages in thread
From: Keith Seitz @ 2001-06-21 10:10 UTC (permalink / raw)
To: gdb-patches
Hi,
I think this qualifies as obvious, but I'd rather be safe than sorry.
cli-out.c added a new data member to ui_out_data called "suppress_output".
This new member was left uninitialized in cli_out_new, suppressing all
command output.
Keith
ChangeLog
2001-06-21 Keith Seitz <keiths@redhat.com>
* cli-out.c (cli_out_new): Initialize new structure member
"suppress_output".
Patch
Index: cli-out.c
===================================================================
RCS file: /cvs/src/src/gdb/cli-out.c,v
retrieving revision 1.10
diff -p -u -r1.10 cli-out.c
--- cli-out.c 2001/06/19 20:30:11 1.10
+++ cli-out.c 2001/06/21 17:03:54
@@ -363,6 +363,7 @@ cli_out_new (struct ui_file *stream)
struct ui_out_data *data = XMALLOC (struct ui_out_data);
data->stream = stream;
+ data->suppress_output = 0;
return ui_out_new (&cli_ui_out_impl, data, flags);
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Initialize new struct data
2001-06-21 10:10 [RFA] Initialize new struct data Keith Seitz
@ 2001-06-21 15:54 ` Keith Seitz
2001-06-22 8:05 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Keith Seitz @ 2001-06-21 15:54 UTC (permalink / raw)
To: gdb-patches
On Thu, 21 Jun 2001, Keith Seitz wrote:
> I think this qualifies as obvious, but I'd rather be safe than sorry.
Ok, just talked to Andrew. This is as obvious as I thought. I've committed
this.
Keith
>
> ChangeLog
> 2001-06-21 Keith Seitz <keiths@redhat.com>
>
> * cli-out.c (cli_out_new): Initialize new structure member
> "suppress_output".
>
> Patch
> Index: cli-out.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/cli-out.c,v
> retrieving revision 1.10
> diff -p -u -r1.10 cli-out.c
> --- cli-out.c 2001/06/19 20:30:11 1.10
> +++ cli-out.c 2001/06/21 17:03:54
> @@ -363,6 +363,7 @@ cli_out_new (struct ui_file *stream)
>
> struct ui_out_data *data = XMALLOC (struct ui_out_data);
> data->stream = stream;
> + data->suppress_output = 0;
> return ui_out_new (&cli_ui_out_impl, data, flags);
> }
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Initialize new struct data
2001-06-21 15:54 ` Keith Seitz
@ 2001-06-22 8:05 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2001-06-22 8:05 UTC (permalink / raw)
To: Keith Seitz; +Cc: gdb-patches
> I think this qualifies as obvious, but I'd rather be safe than sorry.
Yes and thanks. I must have been picking up unused memory out of the heap.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-06-22 8:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-21 10:10 [RFA] Initialize new struct data Keith Seitz
2001-06-21 15:54 ` Keith Seitz
2001-06-22 8:05 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox