mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-23 12:09:49 +00:00
Remove dead serial_interface_lookup calls
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. The commits that removed the "pc" and "parallel" interfaces are respectively:cb2a4ac5da
ande386d4d2fb
gdb/ChangeLog: * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
This commit is contained in:
parent
1181551ef0
commit
ca1ca08b08
@ -1,3 +1,7 @@
|
||||
2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
|
||||
|
||||
2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
|
||||
|
@ -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");
|
||||
else if (startswith (name, "lpt"))
|
||||
ops = serial_interface_lookup ("parallel");
|
||||
else if (startswith (name, "|"))
|
||||
if (startswith (name, "|"))
|
||||
{
|
||||
ops = serial_interface_lookup ("pipe");
|
||||
/* Discard ``|'' and any space before the command itself. */
|
||||
|
Loading…
Reference in New Issue
Block a user