Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Lukas Durfina <ldurfina@tachyum.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] gdbsupport: Fix a type of sentinel
Date: Tue, 28 Jan 2020 16:44:00 -0000	[thread overview]
Message-ID: <a9ae26e1-fff3-ab2e-cb61-3ac5e3ae8f16@simark.ca> (raw)
In-Reply-To: <20200128142830.89282-1-ldurfina@tachyum.com>

On 2020-01-28 9:28 a.m., Lukas Durfina wrote:
> ---
>  gdbsupport/ChangeLog | 4 ++++
>  gdbsupport/environ.c | 2 +-
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog
> index 6ea2f2c253..3c77483294 100644
> --- a/gdbsupport/ChangeLog
> +++ b/gdbsupport/ChangeLog
> @@ -1,3 +1,7 @@
> +2020-01-28 Lukas Durfina <ldurfina@tachyum.com>
> +
> +	* environ.c (gdb_environ::set): Fix a type of sentinel.
> +
>  2020-01-24  Christian Biesinger  <cbiesinger@google.com>
>  
>  	* thread-pool.c (set_thread_name): Add an overload for the NetBSD
> diff --git a/gdbsupport/environ.c b/gdbsupport/environ.c
> index 55d0a74c37..32434ee0b7 100644
> --- a/gdbsupport/environ.c
> +++ b/gdbsupport/environ.c
> @@ -105,7 +105,7 @@ gdb_environ::get (const char *var) const
>  void
>  gdb_environ::set (const char *var, const char *value)
>  {
> -  char *fullvar = concat (var, "=", value, NULL);
> +  char *fullvar = concat (var, "=", value, (char *) NULL);
>  
>    /* We have to unset the variable in the vector if it exists.  */
>    unset (var, false);
> -- 
> 2.17.1
> 

Hi Lukas,

Can you please indicate in your commit message the reason why you need this
change?  I presume it fixes some compilation error, in which case please
indicate at least what is the error message and what is the compiler you are
using (name and version).  If you are cross compiling, it can also be good
to mention that as well.

Simon


  parent reply	other threads:[~2020-01-28 16:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-28 14:28 Lukas Durfina
2020-01-28 15:05 ` [PATCH 2/2] gdb: " Lukas Durfina
2020-01-28 16:53   ` Simon Marchi
2020-01-28 17:13     ` Aktemur, Tankut Baris
2020-01-30 14:52       ` Lukas Durfina
2020-01-28 16:44 ` Simon Marchi [this message]
2020-01-31 10:09   ` [PATCH 1/2] gdbsupport: " Tom Tromey
2020-01-31 18:37     ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a9ae26e1-fff3-ab2e-cb61-3ac5e3ae8f16@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=ldurfina@tachyum.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox