Module Name: src Committed By: joerg Date: Sat Feb 6 18:23:26 UTC 2016
Modified Files: src/external/gpl3/gdb/dist/gdb: dtrace-probe.c Log Message: Avoid empty loop. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/dtrace-probe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gdb/dtrace-probe.c diff -u src/external/gpl3/gdb/dist/gdb/dtrace-probe.c:1.1.1.1 src/external/gpl3/gdb/dist/gdb/dtrace-probe.c:1.2 --- src/external/gpl3/gdb/dist/gdb/dtrace-probe.c:1.1.1.1 Wed Feb 3 02:59:11 2016 +++ src/external/gpl3/gdb/dist/gdb/dtrace-probe.c Sat Feb 6 18:23:26 2016 @@ -421,7 +421,8 @@ dtrace_process_dof_probe (struct objfile arg.type_str = xstrdup (p); /* Use strtab_size as a sentinel. */ - while (*p++ != '\0' && p - strtab < strtab_size); + while (*p != '\0' && p - strtab < strtab_size) + ++p; /* Try to parse a type expression from the type string. If this does not work then we set the type to `long