From: Max Filippov <jcmvbkbc@gmail.com>
To: gdb-patches@sourceware.org
Cc: Maxim Grigoriev <maxim2405@gmail.com>,
Woody LaRue <larue@cadence.com>, Marc Gauthier <marc@cadence.com>,
linux-xtensa@linux-xtensa.org, Max Filippov <jcmvbkbc@gmail.com>
Subject: [PATCH 1/2] gdb: xtensa: make locally used functions static
Date: Wed, 09 Mar 2016 21:48:00 -0000 [thread overview]
Message-ID: <1457560106-5830-2-git-send-email-jcmvbkbc@gmail.com> (raw)
In-Reply-To: <1457560106-5830-1-git-send-email-jcmvbkbc@gmail.com>
This fixes 'no previous prototype for function' warnings when building
gdb/xtensa-linux-nat.c
2016-03-10 Max Filippov <jcmvbkbc@gmail.com>
gdb/
* xtensa-linux-nat.c (supply_gregset_reg,
xtensa_linux_fetch_inferior_registers,
xtensa_linux_store_inferior_registers): Mark as static.
---
gdb/xtensa-linux-nat.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index fa62732..4247f70 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -103,7 +103,7 @@ fill_gregset (const struct regcache *regcache,
}
}
-void
+static void
supply_gregset_reg (struct regcache *regcache,
const gdb_gregset_t *gregsetp, int regnum)
{
@@ -260,7 +260,7 @@ store_xtregs (struct regcache *regcache, int regnum)
perror_with_name (_("Couldn't write extended registers"));
}
-void
+static void
xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum)
{
@@ -275,7 +275,7 @@ xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
fetch_xtregs (regcache, regnum);
}
-void
+static void
xtensa_linux_store_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum)
{
--
2.1.4
next prev parent reply other threads:[~2016-03-09 21:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-09 21:48 [PATCH 0/2] xtensa: add hardware breakpoints support Max Filippov
2016-03-09 21:48 ` Max Filippov [this message]
2016-03-09 21:49 ` [PATCH 2/2] gdb: xtensa: support hardware breakpoints/watchpoints Max Filippov
2016-03-10 17:17 ` [PATCH 0/2] xtensa: add hardware breakpoints support Pedro Alves
2016-03-10 20:18 ` Max Filippov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1457560106-5830-2-git-send-email-jcmvbkbc@gmail.com \
--to=jcmvbkbc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=larue@cadence.com \
--cc=linux-xtensa@linux-xtensa.org \
--cc=marc@cadence.com \
--cc=maxim2405@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox