X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fremote-sim.c;h=53f310907176886fc9496844ecf3cff26a16310f;hb=6f6dbfc4bc78fbdb026cd777c8a1b47de9285632;hp=3f3075a1413100d3f0d6b9bb4f66356a353407af;hpb=c35b149212fc1bf4cf991e42354b0303682bcead;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 3f3075a141..53f3109071 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -1,7 +1,7 @@ /* Generic remote debugging interface for simulators. Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Cygnus Support. Steve Chamberlain (sac@cygnus.com). @@ -471,7 +471,7 @@ gdbsim_create_inferior (struct target_ops *target, char *exec_file, char *args, sim_create_inferior (gdbsim_desc, exec_bfd, argv, env); inferior_ptid = remote_sim_ptid; - add_inferior_silent (ptid_get_pid (inferior_ptid)); + inferior_appeared (current_inferior (), ptid_get_pid (inferior_ptid)); add_thread_silent (inferior_ptid); insert_breakpoints (); /* Needed to get correct instruction in cache */ @@ -771,8 +771,8 @@ gdbsim_xfer_inferior_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, /* FIXME: Send to something other than STDOUT? */ printf_filtered ("gdbsim_xfer_inferior_memory: myaddr 0x"); gdb_print_host_address (myaddr, gdb_stdout); - printf_filtered (", memaddr 0x%s, len %d, write %d\n", - paddr_nz (memaddr), len, write); + printf_filtered (", memaddr %s, len %d, write %d\n", + paddress (target_gdbarch, memaddr), len, write); if (remote_debug && write) dump_mem (myaddr, len); } @@ -793,7 +793,7 @@ gdbsim_xfer_inferior_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, static void gdbsim_files_info (struct target_ops *target) { - char *file = "nothing"; + const char *file = "nothing"; if (exec_bfd) file = bfd_get_filename (exec_bfd);