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

[Bug gdb/20770] New: gdbserver for mipsbe crash after reach breakpoint


https://sourceware.org/bugzilla/show_bug.cgi?id=20770

            Bug ID: 20770
           Summary: gdbserver for mipsbe crash after reach breakpoint
           Product: gdb
           Version: 7.12
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: jorge at senin dot org
  Target Milestone: ---

Created attachment 9609
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9609&action=edit
patch for compile mips big endian

I have compiled gdbserver for mips big endian using Debian mips cross complier

---
wget https://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz
tar zxvf gdb-7.12.tar.gz
cd gdb-7.12/
cd gdb/gdbserver/
patch -p1 < ./mips-patch 
./configure --host=mips-linux-gnu 
make LDFLAGS=-static 
----

After compile gdbserver i copied it to my hardware target and I launched it
attaching to a PID:
---
gdbserver :1234 --attach 1884
---

Using IDA, I set few breakpoints, start debugging, press play to continue
running until breakpoint. Then I reach my firts break point that stops IDA and
give me the program control. From here, every next action I do (step in, step
over, run until breakpoint, etc...) ever crash the gdbserver with this output:

---
linux-low.c:2627: A problem internal to GDBserver has been detected.
int maybe_hw_step(thread_info*): Assertion `has_reinsert_breakpoints (thread)'
failed.
---

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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