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: About bfd in gdb


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


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