X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fppc%2Fsim_calls.c;h=470c95862a14ffdfff801340e39e3b3d42e56cc4;hb=c88960d081f0b37ec03c66a13115e2a68e40d1ad;hp=23d46dc0c88b885747653a27200981917a6bd0b2;hpb=3fd725ef34e474e36bf2bea93a770589c69ee1e6;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c index 23d46dc0c8..470c95862a 100644 --- a/sim/ppc/sim_calls.c +++ b/sim/ppc/sim_calls.c @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + along with this program; if not, see . */ @@ -64,7 +63,7 @@ SIM_DESC sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, - char **argv) + char * const *argv) { callbacks = callback; @@ -78,7 +77,8 @@ sim_open (SIM_OPEN_KIND kind, root_device = psim_tree(); simulator = NULL; - psim_options(root_device, argv + 1); + if (psim_options (root_device, argv + 1, kind) == NULL) + return NULL; if (ppc_trace[trace_opts]) print_options (); @@ -98,7 +98,7 @@ sim_close (SIM_DESC sd, int quitting) SIM_RC -sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, bfd *abfd, int from_tty) { TRACE(trace_gdb, ("sim_load(prog=%s, from_tty=%d) called\n", prog, from_tty)); @@ -165,8 +165,8 @@ sim_info (SIM_DESC sd, int verbose) SIM_RC sim_create_inferior (SIM_DESC sd, struct bfd *abfd, - char **argv, - char **envp) + char * const *argv, + char * const *envp) { unsigned_word entry_point; TRACE(trace_gdb, ("sim_create_inferior(start_address=0x%x, ...)\n", @@ -248,7 +248,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal) } void -sim_do_command (SIM_DESC sd, char *cmd) +sim_do_command (SIM_DESC sd, const char *cmd) { TRACE(trace_gdb, ("sim_do_commands(cmd=%s) called\n", cmd ? cmd : "(null)")); @@ -260,7 +260,7 @@ sim_do_command (SIM_DESC sd, char *cmd) } char ** -sim_complete_command (SIM_DESC sd, char *text, char *word) +sim_complete_command (SIM_DESC sd, const char *text, const char *word) { return NULL; }