aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-lang.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-10-04 18:45:04 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-10-10 17:36:20 +0100
commit9c13221eaf486d6c140f6202f836d80e2a8a69fe (patch)
treea2379effd042996541a847aea643d4e05ddc41b9 /gdb/p-lang.h
parentf04b2702faf409b0d54a1dacd4ef4beb4272c35d (diff)
downloadbinutils-9c13221eaf486d6c140f6202f836d80e2a8a69fe.zip
binutils-9c13221eaf486d6c140f6202f836d80e2a8a69fe.tar.gz
binutils-9c13221eaf486d6c140f6202f836d80e2a8a69fe.tar.bz2
gdbserver: make arch and osabi names gdb::unique_xmalloc_ptr<char>
Convert target_desc::arch and target_desc::osabi from 'const char*' to gdb::unique_xmalloc_ptr<char>. This also allows us to remove the user defined ~target_desc destructor. I doubt it ever actually occurred, but in theory at least, there was a memory leak in set_tdesc_architecture and set_tdesc_osabi where the member variables were assigned without freeing any previous value... but I suspect that usually these fields are only set once. There should be no user visible changes after this commit. Approved-By: Tom Tromey <tom@tromey.com> Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/p-lang.h')
0 files changed, 0 insertions, 0 deletions