--- gdb/tilegx-tdep.c | 4 ++++ 1 files changed, 4 insertions(+) diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c index 2f1d824..6432edb 100644 --- a/gdb/tilegx-tdep.c +++ b/gdb/tilegx-tdep.c @@ -746,6 +746,10 @@ tilegx_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) return sal.end; } + /* for plt stub, just return the start pc */ + if (in_plt_section (pc, NULL)) + return pc; + /* Otherwise, try to skip prologue the hard way. */ return tilegx_analyze_prologue (gdbarch, pc, pc + 8 * TILEGX_BUNDLE_SIZE_IN_BYTES, -- 1.7.10.3