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 | 304270b6be4c0983933af3f6fe4c6b686a99a99d (patch) | |
tree | 65b274adb68d6d6c794822498b2e150975351427 | |
parent | e560f274e3a75b65dfc208d3ca261afd5b454292 (diff) | |
download | gdb-304270b6be4c0983933af3f6fe4c6b686a99a99d.zip gdb-304270b6be4c0983933af3f6fe4c6b686a99a99d.tar.gz gdb-304270b6be4c0983933af3f6fe4c6b686a99a99d.tar.bz2 |
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 5285f49..37b511d 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 49b2c89..063cca1 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 |