This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: About bfd in gdb
- From: Andrew Cagney <cagney at gnu dot org>
- To: libra <mr924352 at cs dot nthu dot edu dot tw>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 08 Jul 2004 17:51:56 -0400
- Subject: Re: About bfd in gdb
- References: <1088992739.40e8b5e3cc227@webmail.cs.nthu.edu.tw>
Have a look at include/gdb/remote-sim.h
Andrew
> At first, thanks for your reply.
>
> After survey the gdb source code,i can roughly take the gdb source code into
> two part, one is gdb and the other is sim. (Maybe now, it must add the third
> part that is binutils(bfd and opcodes))
>
> My question is :
> Because the gdb source code is complex, i do not know how these two part(gdb
> and sim) communicate with each other.In other word, which file is the
> interface that can connect these two part.Once i add a new simulator(sim ,ISA)
> into the gdb source code, the gdb can connct to my new sim,and run my program
> on the new sim and debug it. Any documentation can reference
>
>
> My idea is that the gdb is just an interface that connect to the simulator(sim)
> , after doing that i can run my own program and debug it (ex:use arm-elf-gdb
> or just use the simulator arm-elf-run).
>
> thanks a lot!!
>
>