aboutsummaryrefslogtreecommitdiff
path: root/gdb/proc-why.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/proc-why.c
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/proc-why.c')
-rw-r--r--gdb/proc-why.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/gdb/proc-why.c b/gdb/proc-why.c
index 8519911..7b20eea 100644
--- a/gdb/proc-why.c
+++ b/gdb/proc-why.c
@@ -33,17 +33,16 @@
struct trans
{
- int value; /* The numeric value. */
- const char *name; /* The equivalent symbolic value. */
- const char *desc; /* Short description of value. */
+ int value; /* The numeric value. */
+ const char *name; /* The equivalent symbolic value. */
+ const char *desc; /* Short description of value. */
};
/* Translate values in the pr_why field of a `struct prstatus' or
`struct lwpstatus'. */
-static struct trans pr_why_table[] =
-{
- { PR_REQUESTED, "PR_REQUESTED",
+static struct trans pr_why_table[] = {
+ { PR_REQUESTED, "PR_REQUESTED",
"Directed to stop by debugger via P(IO)CSTOP or P(IO)CWSTOP" },
{ PR_SIGNALLED, "PR_SIGNALLED", "Receipt of a traced signal" },
{ PR_SYSENTRY, "PR_SYSENTRY", "Entry to a traced system call" },
@@ -73,30 +72,31 @@ proc_prettyfprint_why (FILE *file, unsigned long why, unsigned long what,
if (verbose)
fprintf (file, ": %s ", pr_why_table[i].desc);
- switch (why) {
- case PR_REQUESTED:
- break; /* Nothing more to print. */
- case PR_SIGNALLED:
- proc_prettyfprint_signal (file, what, verbose);
- break;
- case PR_FAULTED:
- proc_prettyfprint_fault (file, what, verbose);
- break;
- case PR_SYSENTRY:
- fprintf (file, "Entry to ");
- proc_prettyfprint_syscall (file, what, verbose);
- break;
- case PR_SYSEXIT:
- fprintf (file, "Exit from ");
- proc_prettyfprint_syscall (file, what, verbose);
- break;
- case PR_JOBCONTROL:
- proc_prettyfprint_signal (file, what, verbose);
- break;
- default:
- fprintf (file, "Unknown why %ld, what %ld\n", why, what);
- break;
- }
+ switch (why)
+ {
+ case PR_REQUESTED:
+ break; /* Nothing more to print. */
+ case PR_SIGNALLED:
+ proc_prettyfprint_signal (file, what, verbose);
+ break;
+ case PR_FAULTED:
+ proc_prettyfprint_fault (file, what, verbose);
+ break;
+ case PR_SYSENTRY:
+ fprintf (file, "Entry to ");
+ proc_prettyfprint_syscall (file, what, verbose);
+ break;
+ case PR_SYSEXIT:
+ fprintf (file, "Exit from ");
+ proc_prettyfprint_syscall (file, what, verbose);
+ break;
+ case PR_JOBCONTROL:
+ proc_prettyfprint_signal (file, what, verbose);
+ break;
+ default:
+ fprintf (file, "Unknown why %ld, what %ld\n", why, what);
+ break;
+ }
fprintf (file, "\n");
return;