public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Assign 'targerr' instead of 'targ' to gdb_stdtargerr.
@ 2014-07-02 19:14 Marc Khouzam
  2014-07-03 18:16 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Khouzam @ 2014-07-02 19:14 UTC (permalink / raw)
  To: gdb-patches; +Cc: Marc Khouzam

Hi,

I noticed this what-seems-to-be-typo when browsing the code.
I'm not sure if the target can have two distinct streams or not 
but the code seems to think so.  I figure might as well fix it.
The original suspicious code was introduced at the same time as when
saved_output.targerr was added, so it really does look like a typo.
It was in commit 8d4d924b.

Is this ok?

Thanks


2014-07-02  Marc Khouzam  <marc.khouzam@ericsson.com>

    * cli/cli-logging.c (pop_output_files): Assign targerr to
    gdb_stdtargerr.

diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index ca2d76e..aae0039 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -171,7 +171,7 @@ pop_output_files (void)
       gdb_stderr = saved_output.err;
       gdb_stdlog = saved_output.log;
       gdb_stdtarg = saved_output.targ;
-      gdb_stdtargerr = saved_output.targ;
+      gdb_stdtargerr = saved_output.targerr;
     }
 
   saved_output.out = NULL;
-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Assign 'targerr' instead of 'targ' to gdb_stdtargerr.
  2014-07-02 19:14 [PATCH] Assign 'targerr' instead of 'targ' to gdb_stdtargerr Marc Khouzam
@ 2014-07-03 18:16 ` Tom Tromey
  2014-07-03 19:02   ` Marc Khouzam
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2014-07-03 18:16 UTC (permalink / raw)
  To: Marc Khouzam; +Cc: gdb-patches

>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:

Marc> 2014-07-02  Marc Khouzam  <marc.khouzam@ericsson.com>

Marc>     * cli/cli-logging.c (pop_output_files): Assign targerr to
Marc>     gdb_stdtargerr.

Ok.  Thanks for finding this.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] Assign 'targerr' instead of 'targ' to gdb_stdtargerr.
  2014-07-03 18:16 ` Tom Tromey
@ 2014-07-03 19:02   ` Marc Khouzam
  0 siblings, 0 replies; 3+ messages in thread
From: Marc Khouzam @ 2014-07-03 19:02 UTC (permalink / raw)
  To: 'Tom Tromey'; +Cc: 'gdb-patches@sourceware.org'

> -----Original Message-----
> From: Tom Tromey [mailto:tromey@redhat.com]
> Sent: Thursday, July 03, 2014 2:17 PM
> To: Marc Khouzam
> Cc: gdb-patches@sourceware.org
> Subject: Re: [PATCH] Assign 'targerr' instead of 'targ' to gdb_stdtargerr.
> 
> >>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
> 
> Marc> 2014-07-02  Marc Khouzam  <marc.khouzam@ericsson.com>
> 
> Marc>     * cli/cli-logging.c (pop_output_files): Assign targerr to
> Marc>     gdb_stdtargerr.
> 
> Ok.  Thanks for finding this.

Thanks.  I committed it to master.

> 
> Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-03 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 19:14 [PATCH] Assign 'targerr' instead of 'targ' to gdb_stdtargerr Marc Khouzam
2014-07-03 18:16 ` Tom Tromey
2014-07-03 19:02   ` Marc Khouzam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).