This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA 8/9] Add a missing break in record_linux_system_call


This adds a "break" at the end of the RECORD_SYS_RECVFROM case in
record_linux_system_call.  This seemed correct to me.

ChangeLog
2018-04-21  Tom Tromey  <tom@tromey.com>

	* linux-record.c (record_linux_system_call) <case
	RECORD_SYS_RECVFROM>: Add "break".
---
 gdb/ChangeLog      | 5 +++++
 gdb/linux-record.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/gdb/linux-record.c b/gdb/linux-record.c
index 1e332e1dd9..1d0735e41a 100644
--- a/gdb/linux-record.c
+++ b/gdb/linux-record.c
@@ -881,6 +881,7 @@ Do you want to stop the program?"),
 	      if (record_linux_sockaddr (regcache, tdep, tmpulongest, len))
 		return -1;
 	    }
+	  break;
 	case RECORD_SYS_RECV:
 	  regcache_raw_read_unsigned (regcache, tdep->arg2,
 				      &tmpulongest);
-- 
2.13.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]