This is the mail archive of the gdb-patches@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]

Re: [RFA] sim/ppc/sim_calls.c: fix broken REGISTER_NAME call


sim/ppc/sim_calls.o is part of GDB_OBJ, and is not linked into psim.

Here is the relevant stack trace:

  [top] where
  #0  legacy_register_name (i=64)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/arch-utils.c:120
  #1  0x815eae4 in sim_fetch_register (sd=0x1, regno=64,
      buf=0xbffff1a0 "¸ Q\b@", length=4)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/sim/ppc/sim_calls.c:190
  #2  0x812e594 in gdbsim_fetch_register (regno=64)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/remote-sim.c:288
  #3  0x811a6cf in read_register (regno=64)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/regcache.c:534
  #4  0x811aae3 in generic_target_read_pc (pid=42)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/regcache.c:724
  #5  0x80cc79c in gdbarch_read_pc (gdbarch=0x85120b8, pid=42)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/gdbarch.c:2134
  #6  0x811ab21 in read_pc_pid (pid=42)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/regcache.c:742
  #7  0x811ab42 in read_pc ()
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/regcache.c:751
  #8  0x80beefc in proceed (addr=4294967295, siggnal=TARGET_SIGNAL_DEFAULT,
      step=0)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/infrun.c:982
  #9  0x812e9ad in gdbsim_create_inferior (
      exec_file=0x850ed78 "/tantor/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/tests/powerpc-eabi/rh6.0/001121/gdb/testsuite/gdb.base/run", args=0x84f5bd8 "",
      env=0x84f5bf8)
      at /babar/build/gnupro-00r1/i686-pc-linux-gnulibc2.1/src/gdb/remote-sim.c:434

psim does not have a need for sim_fetch_register and sim_store_register.

Michael

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