]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
linux-record: Fix bad fall-through for pipe/pipe2
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 17 Mar 2016 08:58:56 +0000 (09:58 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 17 Mar 2016 08:58:56 +0000 (09:58 +0100)
commitafdab9165435e17169b4984eeb29ea751319aa74
tree89fddbbf91d3a3d7a803e69ba9fcd6054d82ab5c
parentf3f8e58e933b923aa5d447b32824e0fe121ecf79
linux-record: Fix bad fall-through for pipe/pipe2

This patch added handling for some syscalls to linux-record.c:

  https://sourceware.org/ml/gdb-patches/2015-10/msg00452.html

But for both `pipe' and `pipe2' the patch lacks a statement after an
`if', such that the following `break' is interpreted as the `if'-body
instead.

This adds the missing (return-) statements for the conditionals.

gdb/ChangeLog:

* linux-record.c (record_linux_system_call): Add missing return
statements to handling of pipe and pipe2 syscalls.
gdb/ChangeLog
gdb/linux-record.c