--- gdb/tilegx-tdep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c index 2c4e349..2452232 100644 --- a/gdb/tilegx-tdep.c +++ b/gdb/tilegx-tdep.c @@ -758,6 +758,10 @@ tilegx_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc) return max (start_pc, post_prologue_pc); } + /* for plt stub, just return the start pc */ + if (in_plt_section (start_pc, NULL)) + return start_pc; + /* Otherwise, try to skip prologue the hard way. */ return tilegx_analyze_prologue (gdbarch, start_pc, -- 1.7.10.4