diff options
author | Tom Tromey <tromey@adacore.com> | 2023-09-01 11:04:58 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-11-27 12:55:14 -0700 |
commit | 4dda9cc4b03788d1cf0416b39a3ab3780caf27fd (patch) | |
tree | fb451490273515f22bd1f2f2ec85d82493124fd5 /gdb/ser-base.h | |
parent | c618a1c548193d2a6a8c3d909a3d1c620a156b5d (diff) | |
download | binutils-4dda9cc4b03788d1cf0416b39a3ab3780caf27fd.zip binutils-4dda9cc4b03788d1cf0416b39a3ab3780caf27fd.tar.gz binutils-4dda9cc4b03788d1cf0416b39a3ab3780caf27fd.tar.bz2 |
Fix latent bug in ser_windows_send_break
The ClearCommBreak documentation says:
If the function fails, the return value is zero.
ser_windows_send_break inverts this check. This has never been
noticed because the caller doesn't check the result.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30770
Diffstat (limited to 'gdb/ser-base.h')
0 files changed, 0 insertions, 0 deletions