diff options
author | Andrey Volkov <avolkov@transas.com> | 2002-06-10 19:19:37 +0000 |
---|---|---|
committer | Andrey Volkov <avolkov@transas.com> | 2002-06-10 19:19:37 +0000 |
commit | a04038db9f8be340b5b8709a1627efbb0b005f27 (patch) | |
tree | 4c75140b4ed9ee66332d92d321638e75eb497a03 | |
parent | b58ccb963b8c8241913ebc61aedf5cd033a35c6e (diff) | |
download | gdb-a04038db9f8be340b5b8709a1627efbb0b005f27.tar.gz |
ser-e7kpc.c: Fix duplicated define and call of _initialize_ser_e7000pc
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/ser-e7kpc.c | 12 |
2 files changed, 10 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5285f49ee8f..37b511d3b4e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-06-10 Andrey Volkov <avolkov@transas.com> + + * ser-e7kpc.c: Fix duplicated define and call of + _initialize_ser_e7000pc + + 2002-06-09 Daniel Jacobowitz <drow@mvista.com> * signals/signals.c (target_signal_from_host): Fix #ifdef diff --git a/gdb/ser-e7kpc.c b/gdb/ser-e7kpc.c index 49b2c89c324..063cca13d63 100644 --- a/gdb/ser-e7kpc.c +++ b/gdb/ser-e7kpc.c @@ -423,16 +423,12 @@ static struct serial_ops e7000pc_ops = e7000pc_noop, /* wait for output to drain */ }; -void -_initialize_ser_e7000pc (void) -{ - serial_add_interface (&e7000pc_ops); -} -#else +#endif /*_WIN32 or __GO32__*/ void _initialize_ser_e7000pc (void) { - +#if defined __GO32__ || defined _WIN32 + serial_add_interface (&e7000pc_ops); +#endif } -#endif |