Accept mips-sgi-irix output in a few ld tests
[deliverable/binutils-gdb.git] / gdb / linux-tdep.c
index 567b01c5d15cf1b9576f370a6548f06824b8bc4a..18cee91dd3e88f2b67a19c5a82406d115adf164c 100644 (file)
@@ -839,9 +839,10 @@ linux_info_proc (struct gdbarch *gdbarch, const char *args,
                           "      Size", "    Offset", "objfile");
            }
 
-         for (line = strtok (map.get (), "\n");
+         char *saveptr;
+         for (line = strtok_r (map.get (), "\n", &saveptr);
               line;
-              line = strtok (NULL, "\n"))
+              line = strtok_r (NULL, "\n", &saveptr))
            {
              ULONGEST addr, endaddr, offset, inode;
              const char *permissions, *device, *mapping_filename;
This page took 0.027277 seconds and 4 git commands to generate.