This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: simulator question , please reply me


Thank You very much !!! that's a really good info. I'll try it right now. And 
I'm posting it in the mailing list, because I think this is good stuff. A 
Step-by-step howto (using a simulator). One more time, thank you.
Best Regards, Miguel.

Zitat von "D.Venkatasubramanian, Noida" <dvenkat@noida.hcltech.com>:

> Hi,
> 
> Download the source code for simulator and GCC. 
> Build it for target=h8300-elf. Use newlib for building GCC.
> 
> I do it something like this
> 
> First make this directories 
> /gcc_release/h8300-elf/tools
> 
> All the make commands are run from different obj directories for gcc,
> newlib, binutils, gdb etc. Configure and make as you do always.
> 
> First build binutils in some directory (say) /gcc_release/h8300-elf/tools/
> with similar command given below.
> 
> /binutils/configure --prefix=/gcc_release/h8300-elf/tools/
> --target=h8300-elf
> 
> make all
> 
> make install
> 
> Then add /gcc_release/h8300-elf/tools/ and /gcc_release/h8300-elf/tools/bin
> to your path. This is where your binutils was installed.
> 
> Then build GCC, I do it in the same directory
> (--prefix=/gcc_release/h8300-elf/tools/)
> 
> /gcc_3_3/configure --prefix=/gcc_release/h8300-elf/tools/ --target=h8300-elf
> --with-newlib --enable-languages=c,c++ --with-gnu-ld --with-gnu-as
> --with-ld=/gcc_release/h8300-elf/tools/h8300-elf/bin/ld
> --with-as=/gcc_release/h8300-elf/tools/h8300-elf/bin/as
> --with-headers=/gcc_3_3/combined/newlib/libc/include/
> 
> make all-gcc
> 
> make install-gcc
> 
> Then build newlib by configuring it also similar to binutils. make and
> install it.
> 
> Then again make gcc, do not configure it again, just the given below:
> 
> make all
> 
> make install
> 
> Finally, configure and install gdb similar to binutils.
> 
> The h8 compiler built would be h8300-elf-gcc. Compile any program with this
> compiler.
> 
> Run the executable produced on h8300-elf-gdb as:
> 
> h8300-elf-gdb a.out
> 
> It should bring up the gdb interface
> 
> Then give target sim command
> It should say "Connected to simulator"
> 
> Then load a.out
> 
> Then you can run your program, as you do normally.
> 
> I hope this was helpful.
> 
> Regards,
> 
> Venky
> 
> 
>  >-----Original Message-----
>  >From: msarasa@fh-konstanz.de [mailto:msarasa@fh-konstanz.de]
>  >Sent: Friday, November 29, 2002 3:38 PM
>  >To: Kazu Hirata
>  >Cc: D.Venkatasubramanian, Noida
>  >Subject: simulator question , please reply me
>  >
>  >
>  >
>  >As I read in your post , you're using the h8300 simulator for 
>  >gdb, and I have 
>  >a really important question. I have to define a new simulator 
>  >for a RISC 
>  >microprocessor. It's not defined yet. But , first I would 
>  >like to understand 
>  >how does the other simulators work. E.g., Could you tell me , 
>  >step by step if 
>  >possible, what should I do to use the h8300 simulator? , I've 
>  >tried the 
>  >command "target sim" but it doesn't work, I receive only an 
>  >error message. , 
>  >Do you know if there's docs about this problem. Hope you 
>  >could help me!, I've 
>  >just begginned , and I've no idea now, i'm lost. 
>  >Thank you very much for your time , Miguel Angel.
>  >
> 





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]