]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/tui: update maybe_update to take gdbarch
authorAndrew Burgess <aburgess@redhat.com>
Thu, 6 Feb 2025 12:16:48 +0000 (12:16 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 14 Feb 2025 21:06:30 +0000 (21:06 +0000)
commit6ea89e2ddb2af33f1778faeeeb8149a2f575fbd3
treefeae67c070a71d02ec8edf73fbb861c2ecb29b62
parent9436542558915d5564d05ccb29d1b43a26e37698
gdb/tui: update maybe_update to take gdbarch

This is a refactor to setup for the next commit.

The maybe_update function currently takes a frame_info_ptr&, however,
it only uses this to get the frame's gdbarch.

In the next commit I want to call maybe_update when I have a gdbarch,
but no frame_info_ptr& (the inferior hasn't even started).

So, update maybe_update to take the gdbarch, and update the callers to
pass that through.  Most callers already have the gdbarch to hand, but
in one place I do need to extract this from the frame_info_ptr&.

There should be no user visible changes after this commit.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/tui/tui-disasm.c
gdb/tui/tui-disasm.h
gdb/tui/tui-source.c
gdb/tui/tui-source.h
gdb/tui/tui-status.c
gdb/tui/tui-winsource.h