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 symtab/17559] confusion on what the result of find_pc_symtab is


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

--- Comment #5 from Doug Evans <xdje42 at gmail dot com> ---
Filing here so I don't forget.
I believe this is another case where we want that actual source's symtab (be it
primary or non-primary), and thus find_pc_line would be a better choice here.

void
tui_show_disassem (struct gdbarch *gdbarch, CORE_ADDR start_addr)
{
  struct symtab *s = find_pc_symtab (start_addr);
  ...
}

This case is not entirely clear, as I don't see "s" being used for
TUI_DISASM_WIN, but I think the intent is there.

-- 
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]