linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Ran Shalit <ranshalit@gmail.com>,
	linuxppc-dev@lists.ozlabs.org, gdb <gdb@sourceware.org>
Subject: Re: gdb with powerpc
Date: Wed, 12 Aug 2015 00:57:17 +0100	[thread overview]
Message-ID: <55CA8BDD.30708@redhat.com> (raw)
In-Reply-To: <CAJ2oMhLr9aoZ258hm0-xuRuW5iksLMOgNOL=hQh6S4SteFNDeg@mail.gmail.com>

On 08/11/2015 05:50 PM, Ran Shalit wrote:
> Hello,
> 
> I would like to ask if anyone tried remote debugging with
> gdb/gdbserver on powerpc.
> I've tried to cross-compile gdb for powerpc, but I get into troubles.
> I am using the following compiler:
> powerpc-buildroot-linux-gnu-gcc (Buildroot 2014.11) 4.8.3
> 

> gcc -c -g -O2    -I. -I.././gdb -I.././gdb/config

Looks like you're using your host x86 gcc to build a ppc program.
That can't work.

> As an alternative, Is anyone familiar with binary package with
> gdb/gdbserver for powerpc used with x86 host ?

Please try following the instructions at:

 https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver

Thanks,
Pedro Alves

  reply	other threads:[~2015-08-11 23:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-11 16:50 gdb with powerpc Ran Shalit
2015-08-11 23:57 ` Pedro Alves [this message]
2015-08-12  3:24 ` Bob Cochran

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=55CA8BDD.30708@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=ranshalit@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;
as well as URLs for NNTP newsgroup(s).