About bfd in gdb

Andrew Cagney cagney@gnu.org
Thu Jul 8 21:52:00 GMT 2004


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!!
> 
> 



More information about the Gdb mailing list