projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2bb0d
)
gdb: remove unused variables in xtensa-linux-nat.c
author
Simon Marchi
<simon.marchi@polymtl.ca>
Tue, 16 Nov 2021 02:38:44 +0000
(21:38 -0500)
committer
Simon Marchi
<simon.marchi@polymtl.ca>
Tue, 16 Nov 2021 02:38:44 +0000
(21:38 -0500)
While build-testing this file, the compiler complained about these two
unused variables, remove them.
Change-Id: I3c54f779f12c16ef6184af58aca75eaad042ce4e
gdb/xtensa-linux-nat.c
patch
|
blob
|
history
diff --git
a/gdb/xtensa-linux-nat.c
b/gdb/xtensa-linux-nat.c
index 54f1a0df0fe6248c5c2f5d6f051f3bf61e44d4ba..7bc1689b9f5d103c10f40f02d70f31fa7cc7f9c3 100644
(file)
--- a/
gdb/xtensa-linux-nat.c
+++ b/
gdb/xtensa-linux-nat.c
@@
-204,7
+204,6
@@
fetch_gregs (struct regcache *regcache, int regnum)
{
int tid = regcache->ptid ().lwp ();
gdb_gregset_t regs;
- int areg;
if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0)
{
@@
-223,7
+222,6
@@
store_gregs (struct regcache *regcache, int regnum)
{
int tid = regcache->ptid ().lwp ();
gdb_gregset_t regs;
- int areg;
if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0)
{