From: Yao Qi <qiyaoltc@gmail.com>
To: Simon Marchi <simon.marchi@ericsson.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove dead serial_interface_lookup calls
Date: Thu, 12 Jan 2017 08:32:00 -0000 [thread overview]
Message-ID: <20170112083228.GM9518@E107787-LIN> (raw)
In-Reply-To: <20170111155847.13244-1-simon.marchi@ericsson.com>
On 17-01-11 10:58:47, Simon Marchi wrote:
> By inspecting the serial_add_interface calls, I found that the serial
> interface names that we have today are:
>
> - hardwire
> - terminal
> - pipe
> - tcp
> - event
>
> The calls to serial_interface_lookup with any other names are most
> likely leftovers which can be removed since these serial interfaces
> don't exist anymore. If you go back to the commits that added the
> lines this patch removes, you'll find the serial interface that existed
> at that time.
It would be nice to show the commits remove these serial interfaces.
>
> gdb/ChangeLog:
>
> * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
Patch is good to me.
> ---
> gdb/serial.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/gdb/serial.c b/gdb/serial.c
> index ac7c1b99c1..afb70758c6 100644
> --- a/gdb/serial.c
> +++ b/gdb/serial.c
> @@ -209,11 +209,7 @@ serial_open (const char *name)
> const struct serial_ops *ops;
> const char *open_name = name;
>
> - if (strcmp (name, "pc") == 0)
> - ops = serial_interface_lookup ("pc");
It was removed by cb2a4ac5dae478fcd9d6e772530c3aba0576fc7a
-static struct serial_ops e7000pc_ops =
-{
- "pc",
- 0,
- e7000pc_open,
- e7000pc_close,
- e7000pc_readchar,
- e7000pc_write,
- e7000pc_noop, /* flush output */
> - else if (startswith (name, "lpt"))
> - ops = serial_interface_lookup ("parallel");
It was removed by e386d4d2fb55042f77d0557a0849ed2464aee7b3
-static struct serial_ops go32_ops =
-{
- "parallel",
- 0,
- go32_open,
- go32_close,
- go32_readchar,
- go32_write,
- go32_noop, /* flush output */
--
Yao (é½å°§)
next prev parent reply other threads:[~2017-01-12 8:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-11 15:59 Simon Marchi
2017-01-12 8:32 ` Yao Qi [this message]
2017-01-12 15:42 ` 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=20170112083228.GM9518@E107787-LIN \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.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