OSDN Git Service

* cris/sim-if.c: Include errno.h.
authorHans-Peter Nilsson <hp@axis.com>
Sun, 18 Jan 2009 22:17:03 +0000 (22:17 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Sun, 18 Jan 2009 22:17:03 +0000 (22:17 +0000)
commit35c95b2b57b61d962e5404886905dfe2829fb6bb
tree3bb93a8894482e553d50835c1e5179eaee864391
parent8d2e8ad63204a3019f9b12f4a467a6e2b9a6c23b
* cris/sim-if.c: Include errno.h.
(cris_start_address, cris_program_offset): New variables.
(OPTION_CRIS_PROGRAM_OFFSET, OPTION_CRIS_STARTADDR): New option
enums.
(cris_options): New options --cris-program-offset and
--cris-start-address.
(cris_option_handler): Handle new options.
(cris_program_offset_write, cris_set_section_offset_iterator)
(cris_offset_sections, cris_offset_sections): New functions.
(sim_load): Use cris_program_offset_write as function argument to
cris_load_elf_file, not sim_write.
(struct offsetinfo): New struct.
(cris_handle_interpreter): Fix typo in comment.
(sim_open): Call cris_offset_sections as soon as the bfd of the
infile is available.  Gate bfd validity checks on abfd non-NULL.
(sim_create_inferior): Let cris_start_address when != -1 override
other start-address choices.
sim/ChangeLog
sim/cris/sim-if.c