public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* m32c gdb link error on master
@ 2015-08-03 22:28 Joel Sherrill
  2015-08-04 16:29 ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Sherrill @ 2015-08-03 22:28 UTC (permalink / raw)
  To: gdb

Hi

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'
collect2: error: ld returned 1 exit status

--joel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m32c gdb link error on master
  2015-08-03 22:28 m32c gdb link error on master Joel Sherrill
@ 2015-08-04 16:29 ` Nick Clifton
  2015-08-05  1:26   ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2015-08-04 16:29 UTC (permalink / raw)
  To: Joel Sherrill, DJ Delorie; +Cc: gdb

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");
+}
+

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: m32c gdb link error on master
  2015-08-04 16:29 ` Nick Clifton
@ 2015-08-05  1:26   ` Mike Frysinger
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2015-08-05  1:26 UTC (permalink / raw)
  To: Nick Clifton; +Cc: Joel Sherrill, DJ Delorie, gdb

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

On 04 Aug 2015 17:28, Nick Clifton wrote:
> 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 ?

no trailing whitespace, but otherwise looks fine.  this is one of the
few that need to be gutted a bit more but i've been putting it off.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-05  1:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-03 22:28 m32c gdb link error on master Joel Sherrill
2015-08-04 16:29 ` Nick Clifton
2015-08-05  1:26   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).