gdb: remove trailing '.' from perror_with_name calls
I ran into this error while working on AArch64 GDB: Unable to fetch VFP registers.: Invalid argument. Notice the '.:' in the middle of this error message. This is because of this call in aarch64-linux-nat.c: perror_with_name (_("Unable to fetch VFP registers.")); The perror_with_name function take a string, and adds ': <message>' to the end the string, so I don't think the string that we pass to perror_with_name should end in '.'. This commit removes all of the trailing '.' characters from perror_with_name calls, which give more readable error messages. I don't believe that any of these errors are tested in the testsuite (after a little grepping).
This commit is contained in:
parent
5ca5b31d63
commit
deb70aa032
6 changed files with 36 additions and 36 deletions
|
@ -1138,7 +1138,7 @@ fetch_all_gp_regs (struct regcache *regcache, int tid)
|
|||
have_ptrace_getsetregs = 0;
|
||||
return 0;
|
||||
}
|
||||
perror_with_name (_("Couldn't get general-purpose registers."));
|
||||
perror_with_name (_("Couldn't get general-purpose registers"));
|
||||
}
|
||||
|
||||
supply_gregset (regcache, (const gdb_gregset_t *) &gregset);
|
||||
|
@ -1190,7 +1190,7 @@ fetch_all_fp_regs (struct regcache *regcache, int tid)
|
|||
have_ptrace_getsetfpregs = 0;
|
||||
return 0;
|
||||
}
|
||||
perror_with_name (_("Couldn't get floating-point registers."));
|
||||
perror_with_name (_("Couldn't get floating-point registers"));
|
||||
}
|
||||
|
||||
supply_fpregset (regcache, (const gdb_fpregset_t *) &fpregs);
|
||||
|
@ -1690,7 +1690,7 @@ store_all_gp_regs (const struct regcache *regcache, int tid, int regno)
|
|||
have_ptrace_getsetregs = 0;
|
||||
return 0;
|
||||
}
|
||||
perror_with_name (_("Couldn't get general-purpose registers."));
|
||||
perror_with_name (_("Couldn't get general-purpose registers"));
|
||||
}
|
||||
|
||||
fill_gregset (regcache, &gregset, regno);
|
||||
|
@ -1702,7 +1702,7 @@ store_all_gp_regs (const struct regcache *regcache, int tid, int regno)
|
|||
have_ptrace_getsetregs = 0;
|
||||
return 0;
|
||||
}
|
||||
perror_with_name (_("Couldn't set general-purpose registers."));
|
||||
perror_with_name (_("Couldn't set general-purpose registers"));
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
@ -1752,7 +1752,7 @@ store_all_fp_regs (const struct regcache *regcache, int tid, int regno)
|
|||
have_ptrace_getsetfpregs = 0;
|
||||
return 0;
|
||||
}
|
||||
perror_with_name (_("Couldn't get floating-point registers."));
|
||||
perror_with_name (_("Couldn't get floating-point registers"));
|
||||
}
|
||||
|
||||
fill_fpregset (regcache, &fpregs, regno);
|
||||
|
@ -1764,7 +1764,7 @@ store_all_fp_regs (const struct regcache *regcache, int tid, int regno)
|
|||
have_ptrace_getsetfpregs = 0;
|
||||
return 0;
|
||||
}
|
||||
perror_with_name (_("Couldn't set floating-point registers."));
|
||||
perror_with_name (_("Couldn't set floating-point registers"));
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue