]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Change serial "open" functions to throw exception
authorTom Tromey <tromey@adacore.com>
Fri, 1 Sep 2023 18:11:37 +0000 (12:11 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 27 Nov 2023 19:55:14 +0000 (12:55 -0700)
commita2e0acea420cca881296c6fcf58920f3d7c05a45
tree54f369a7b5a2ead36e15f14e2d0d154a30286fab
parentad3cf8c64e6e4794fc48d28c90f20cbbfdc51ca4
Change serial "open" functions to throw exception

remote.c assumes that a failure to open the serial connection will set
errno.  This is somewhat true, because the Windows code tries to set
errno appropriately -- but only somewhat, because it isn't clear that
the "pex" code sets it, and the tcp code seems to do the wrong thing.
It seems better to simply have the serial open functions throw on
error.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30770
gdb/remote.c
gdb/ser-event.c
gdb/ser-mingw.c
gdb/ser-pipe.c
gdb/ser-tcp.c
gdb/ser-tcp.h
gdb/ser-uds.c
gdb/ser-unix.c
gdb/serial.c
gdb/serial.h