aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2025-01-29 10:50:30 +0100
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2025-01-29 11:17:33 +0100
commitddf8e29147ecf49398544b6d322cfcbdd3ffae34 (patch)
tree97c9c302a3976bec93960b3888b6cb8f5f66512b /gdb/source.c
parent072208e719f9e024408be3a97595bcbdbaf6395c (diff)
downloadbinutils-ddf8e29147ecf49398544b6d322cfcbdd3ffae34.zip
binutils-ddf8e29147ecf49398544b6d322cfcbdd3ffae34.tar.gz
binutils-ddf8e29147ecf49398544b6d322cfcbdd3ffae34.tar.bz2
gdbserver: convert init_register_cache and new_register_cache into constructors
This is a refactoring that converts init_register_cache (struct regcache *regcache, const struct target_desc *tdesc, unsigned char *regbuf) into the constructor regcache (const target_desc *tdesc, unsigned char *regbuf) and converts new_register_cache (const struct target_desc *tdesc) into the constructor regcache (const target_desc *tdesc) Also use DISABLE_COPY_AND_ASSIGN for additional compile-time safety. Tested by rebuilding gdbserver with '--enable-inprocess-agent=no' and with '--enable-inprocess-agent=yes'. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/source.c')
0 files changed, 0 insertions, 0 deletions