This is the mail archive of the gdb@sourceware.org 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: How to pass a command to simulator through GDB


On Wed, Oct 24, 2007 at 10:01:00PM +0800, ligang@sunnorth.com.cn wrote:
> I add one line in the baseboard file ---- set_board_info 
> gdb,target_sim_options "mac".
> But, it will work as "(gdb) target sim mac" which don't work like above.
> 
> What should i do?

Try overriding "gdb_load"; you can use TCL's "rename" command to reuse
the existing one if it's already loaded.  If you can send the command
before "target sim" you can override "gdb_start" instead.

-- 
Daniel Jacobowitz
CodeSourcery


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