public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Geert Vancompernolle <gvcompernolle@scarlet.be>
To: Keith Seitz <keiths@redhat.com>
Cc: Geert Vancompernolle <geert.vancompernolle@gmail.com>,
	        Insight Forum <insight@sourceware.org>
Subject: Re: Building for target mips2_fp_le possible?
Date: Sat, 10 May 2008 11:11:00 -0000	[thread overview]
Message-ID: <482582CA.9010802@scarlet.be> (raw)
In-Reply-To: <4820A820.3070401@redhat.com>

Keith Seitz wrote:
> Geert Vancompernolle wrote:
>
>> 1. When running ./config.sub mips, I only get the target 
>> "mips-unknown-elf".
>>
>> Is there a possibility to compile for mips2_fp_le?  Can 
>> mips-unknown-elf be used for that?
>
> Good question -- I don't know! You should ask on the gdb@ list if gdb 
> can be configured for your target. [Insight is the gui on top of gdb: 
> if gdb can debug it, Insight should also be able to.]
>
>> 2. Is it possible to build for a Windows host and a Linux target?  I 
>> would like to know if I can run Insight on a Win32 platform and using 
>> it to debug an embedded Linux system.
>
> While I've never tried it, I would guess that it is possible. Again, 
> your best bet is to ask the gdb folks. I haven't built/used anything 
> but linux native for a long time (occasionally cygwin native).
>
> Keith
>
>
Well, I (think I) finally figured out how to proceed with that config.sub.

In my very case, I want to compile Insight for PC as host and 
mips2_fp_le as target.  The only thing which is important, is that the 
configuration file must be able to find the compilers for the target given.

So, what I did was the following:

* I added the following section into the config.sub file (in the "case 
$basic_machine in" section):

    mips2_fp_le)
        basic_machine=$basic_machine-unknown
        os=-linux
        ;;

   I added it just after the following lines:

    mips3*)
        basic_machine=`echo $basic_machine | sed -e 
's/mips3/mips64/'`-unknown
        ;;

* This will result in searching for "mips2_fp_le-gcc", 
"mips2_fp_le-g++", and so on during the run of "./configure 
--target=mips2_fp_le"

* The only thing that is important, is that ./configure can find the 
compilers for the target given.  So, ./configure must be able to fine 
"mips2_fp_le-gcc", "mips2_fp_le-g++", and so on, to be able to compile 
gdb for the target.
   Therefore, it's best to make sure the path is extended to the 
location where ./configure is supposed to find all the executables for 
that target.

* Once this is done, I should have the Insight GUI running on the PC, 
while the gdb should have been compiled for the mips2_fp_le target.

I still have to test it, though (I'm at home and the set-up is at the 
office), but I will come back with the results of this "experiment".


-- 
Best rgds,

-- Geert

  parent reply	other threads:[~2008-05-10 11:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06 17:51 Geert Vancompernolle
2008-05-06 18:57 ` Keith Seitz
2008-05-10  5:34   ` Geert Vancompernolle
2008-05-10 11:11   ` Geert Vancompernolle [this message]
2008-05-10 17:30     ` Maciej W. Rozycki
2008-05-10 18:52       ` Geert Vancompernolle
2008-05-10 18:52       ` Geert Vancompernolle
2008-05-10 23:42         ` Maciej W. Rozycki
2008-05-11  4:48           ` Geert Vancompernolle

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=482582CA.9010802@scarlet.be \
    --to=gvcompernolle@scarlet.be \
    --cc=geert.vancompernolle@gmail.com \
    --cc=insight@sourceware.org \
    --cc=keiths@redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).