Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: Joel Sherrill <joel.sherrill@oarcorp.com>, DJ Delorie <dj@redhat.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: m32c gdb link error on master
Date: Tue, 04 Aug 2015 16:29:00 -0000	[thread overview]
Message-ID: <55C0E84B.4090701@redhat.com> (raw)
In-Reply-To: <55BFEAF1.3050206@oarcorp.com>

Hi DJ,

On 03/08/15 23:28, Joel Sherrill wrote:
> The m32c fails to link gdb when the simulator is enabled. It
> fails with this error:
>
> remote-sim.o: In function `gdbsim_files_info':
> /home/joel/test-gcc/b-m32c-rtems4.11-bin/gdb/../../binutils-gdb/gdb/remote-sim.c:1163:
> undefined reference to `sim_info'

The patch below provides a stub function to fix this problem.  OK to apply ?

Cheers
   Nick

sim/m32c/ChangeLog
2015-08-04  Nick Clifton  <nickc@redhat.com>

	* gdb-if.c (sim_info): Stub function to allow GDB to be built
	with this simulator.

diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c
index be00545..373b551 100644
--- a/sim/m32c/gdb-if.c
+++ b/sim/m32c/gdb-if.c
@@ -705,3 +705,10 @@ sim_complete_command (SIM_DESC sd, const char 
*text, const char *word)
  {
    return NULL;
  }
+
+void
+sim_info (SIM_DESC sd, int verbose)
+{
+  printf ("The m32c minisim doesn't collect any statistics.\n");
+}
+


  reply	other threads:[~2015-08-04 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 22:28 Joel Sherrill
2015-08-04 16:29 ` Nick Clifton [this message]
2015-08-05  1:26   ` Mike Frysinger

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=55C0E84B.4090701@redhat.com \
    --to=nickc@redhat.com \
    --cc=dj@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=joel.sherrill@oarcorp.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