Fix reconnecting to a gdbserver already debugging multiple processes, II
[deliverable/binutils-gdb.git] / ld / testplug4.c
index fe7665aea3fedc2fd03ac4d50d82e26ce0523bd7..adaedf47c3fa131f8c9f30a5457f020bf2b75a4a 100644 (file)
@@ -1,6 +1,6 @@
 /* Test plugin for the GNU linker.  Check non-object IR file as well as
    get_input_file, get_view, release_input_file and get_symbols interfaces.
-   Copyright (C) 2016 Free Software Foundation, Inc.
+   Copyright (C) 2016-2020 Free Software Foundation, Inc.
 
    This file is part of the GNU Binutils.
 
@@ -608,7 +608,7 @@ onall_symbols_read (void)
 #define EXPECTED_VIEW "/* The first line of this file must match the expectation of"
 #define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)
       if (file.filesize != SIZE_OF_PR20070B_C
-         || SIZE_OF_PR20070B_C < sizeof EXPECTED_VIEW_LENGTH
+         || SIZE_OF_PR20070B_C < EXPECTED_VIEW_LENGTH
          || memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
        {
          char result[EXPECTED_VIEW_LENGTH + 1];
This page took 0.023966 seconds and 4 git commands to generate.