Add a missing break in record_linux_system_call
authorTom Tromey <tom@tromey.com>
Thu, 5 Apr 2018 21:37:56 +0000 (15:37 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 5 May 2018 04:04:46 +0000 (22:04 -0600)
This adds a "break" at the end of the RECORD_SYS_RECVFROM case in
record_linux_system_call.  This seemed correct to me.

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

* linux-record.c (record_linux_system_call) <case
RECORD_SYS_RECVFROM>: Add "break".

gdb/ChangeLog
gdb/linux-record.c

index c2f521cd1e7f91815a8d1501dad76fc237a01a13..27c42130eb99e40a7f397055a3b189dd32092537 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-04  Tom Tromey  <tom@tromey.com>
+
+       * linux-record.c (record_linux_system_call) <case
+       RECORD_SYS_RECVFROM>: Add "break".
+
 2018-05-04  Tom Tromey  <tom@tromey.com>
 
        * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
index 1e332e1dd9d3bd2de299e61e7bf631cd19047e9d..1d0735e41aea46df244aecfb9ad2175b9d669aa3 100644 (file)
@@ -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);