Skip to content

Commit f2ec0ec

Browse files
author
Joel Brobecker
committed
* mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
containing the correct breakpoint instruction to use on mips-irix. Use it when the osabi is GDB_OSABI_IRIX.
1 parent 3c95f01 commit f2ec0ec

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

gdb/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2010-01-09 Joel Brobecker <[email protected]>
2+
3+
Use the correct breakpoint instruction on mips-irix.
4+
* mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
5+
containing the correct breakpoint instruction to use on mips-irix.
6+
Use it when the osabi is GDB_OSABI_IRIX.
7+
18
2010-01-09 Joel Brobecker <[email protected]>
29

310
-Wunused warning in procfs.c (mips-irix only).

gdb/mips-tdep.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5045,6 +5045,9 @@ mips_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
50455045
static gdb_byte big_breakpoint[] = { 0, 0x5, 0, 0xd };
50465046
static gdb_byte pmon_big_breakpoint[] = { 0, 0, 0, 0xd };
50475047
static gdb_byte idt_big_breakpoint[] = { 0, 0, 0x0a, 0xd };
5048+
/* Likewise, IRIX appears to expect a different breakpoint,
5049+
although this is not apparent until you try to use pthreads. */
5050+
static gdb_byte irix_big_breakpoint[] = { 0, 0, 0, 0xd };
50485051

50495052
*lenptr = sizeof (big_breakpoint);
50505053

@@ -5054,6 +5057,8 @@ mips_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
50545057
|| strcmp (target_shortname, "pmon") == 0
50555058
|| strcmp (target_shortname, "lsi") == 0)
50565059
return pmon_big_breakpoint;
5060+
else if (gdbarch_osabi (gdbarch) == GDB_OSABI_IRIX)
5061+
return irix_big_breakpoint;
50575062
else
50585063
return big_breakpoint;
50595064
}

0 commit comments

Comments
 (0)