From: Joel Brobecker <brobecker@adacore.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: New ARI warning Sun Mar 4 01:53:53 UTC 2012
Date: Wed, 07 Mar 2012 16:09:00 -0000 [thread overview]
Message-ID: <20120307160851.GO2853@adacore.com> (raw)
In-Reply-To: <4F52E18A.3050201@codesourcery.com>
Hi Yao,
I wish I had taken the time to answer a little sooner. Sorry about that.
I hope it doesn't give the impression that we're disinterested.
First of all, a big thank you for keeping on eye on the new ARI
regressions, it's always appreciated when one doesn't have to ping
about it.
> >> gdb/remote.c:10757: code: sprintf: Do not use sprintf, instead use xsnprintf or xstrprintf
> > gdb/remote.c:10757: sprintf (rs->buf, ', use);
>
> Looks like sprintf has been widely used in gdb/remote.c, so I'll
> give a separate fix.
That would be awesome. This behavior has been expanding just because
we're repeating the current patterns.
> >> gdb/common/agent.c:193: regression: strerror: Do not use strerror(), instead use safe_strerror()
> > gdb/common/agent.c:193: path, strerror (errno));
>
> We don't have a safe_strerror in GDBserver, so I am inclined to wrap
> strerror by safe_strerror in GDBserver.
Not sure I understand what you are proposing here... Pedro is probably
your best reviewer anyway.
I had a look at safe_strerror, just to see what it's about. It's mostly
about not returning NULL, it seems. But the implementation is dependent
on the host (Windows or POSIX), so it could be a pain to move to common.
--
Joel
prev parent reply other threads:[~2012-03-07 16:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-04 1:54 GDB Administrator
2012-03-04 3:29 ` Yao Qi
2012-03-07 16:09 ` Joel Brobecker [this message]
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=20120307160851.GO2853@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.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