aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorGustavo Romero <gustavo.romero@linaro.org>2024-04-18 20:10:35 +0000
committerLuis Machado <luis.machado@arm.com>2024-04-19 15:29:39 +0100
commita0e28bb1515572fca428b452a523f882eea16797 (patch)
tree050bbe485a741bc4a05efeb8f7a407245c7860ca /gdb/target.h
parent681ad8174d092fbbc54f5f9b2cf7024a1c990379 (diff)
downloadgdb-a0e28bb1515572fca428b452a523f882eea16797.zip
gdb-a0e28bb1515572fca428b452a523f882eea16797.tar.gz
gdb-a0e28bb1515572fca428b452a523f882eea16797.tar.bz2
gdb: Use passed gdbarch instead of calling current_inferior
In do_examine function, use passed gdbarch when checking if an address is tagged instead of calling current_inferior()->arch() to make the code more localized and help modularity by not calling a current_* function, which disguises the use of a global state/variable. There is no change in the code behavior. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> Suggested-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org> Approved-By: Luis Machado <luis.machado@arm.com> Tested-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'gdb/target.h')
0 files changed, 0 insertions, 0 deletions