aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/foll-exec.c19
2 files changed, 15 insertions, 9 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2f922f4..65517ea 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2021-06-10 Bhuvanendra Kumar N <Bhuvanendra.KumarN@amd.com>
+
+ * gdb.base/foll-exec.c: convert the multi-line function call into
+ single line.
+
2021-06-10 Tom de Vries <tdevries@suse.de>
* lib/cp-support.exp (cp_test_ptype_class): Break up regexp.
diff --git a/gdb/testsuite/gdb.base/foll-exec.c b/gdb/testsuite/gdb.base/foll-exec.c
index fea62b0..1e9b873 100644
--- a/gdb/testsuite/gdb.base/foll-exec.c
+++ b/gdb/testsuite/gdb.base/foll-exec.c
@@ -39,18 +39,19 @@ int main (int argc, char ** argv)
memcpy (prog + len - 9, "execd-prog", 10);
prog[len + 1] = 0;
- execlp (prog, /* tbreak-execlp */
- prog,
- "execlp arg1 from foll-exec",
- (char *) 0);
+ /* In the following function call, maximum line length exceed the limit 80.
+ This is intentional and required for clang compiler such that complete
+ function call should be in a single line, please do not make it
+ multi-line. */
+ execlp (prog, /* tbreak-execlp */ prog, "execlp arg1 from foll-exec", (char *) 0);
printf ("foll-exec is about to execl(execd-prog)...\n");
- execl (prog, /* tbreak-execl */
- prog,
- "execl arg1 from foll-exec",
- "execl arg2 from foll-exec",
- (char *) 0);
+ /* In the following function call, maximum line length exceed the limit 80.
+ This is intentional and required for clang compiler such that complete
+ function call should be in a single line, please do not make it
+ multi-line. */
+ execl (prog, /* tbreak-execl */ prog, "execl arg1 from foll-exec", "execl arg2 from foll-exec", (char *) 0);
{
static char * argv[] = {