aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-03 09:21:23 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-02-03 11:06:26 -0500
commit79846903c6289b2ff12d1830bc2cbf900710556c (patch)
treec89e5a9e8b3face4c8232ecdb730b8c9200a6a6a /gdb/inferior.h
parent650160322c09b9b36d4415b56518ab9e71e8acba (diff)
downloadgdb-79846903c6289b2ff12d1830bc2cbf900710556c.zip
gdb-79846903c6289b2ff12d1830bc2cbf900710556c.tar.gz
gdb-79846903c6289b2ff12d1830bc2cbf900710556c.tar.bz2
gdb: change inferior::tdesc_info to non-pointer
I initially made this field a unique pointer, to have automatic memory management. But I then thought that the field didn't really need to be allocated separately from struct inferior. So make it a regular non-pointer field of inferior. Remove target_desc_info_free, as it's no longer needed. Change-Id: Ica2b97071226f31c40e86222a2f6922454df1229
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 5b5eab0..d902881 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -633,7 +633,7 @@ public:
/* Info about an inferior's target description (if it's fetched; the
user supplied description's filename, if any; etc.). */
- target_desc_info *tdesc_info = NULL;
+ target_desc_info tdesc_info;
/* The architecture associated with the inferior through the
connection to the target.