diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-17 15:37:58 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 11:14:26 -0400 |
commit | 3fe0dfd1604f9bf8d51a7473f7f27e16242986be (patch) | |
tree | 29cbbacf6997fd331d8d383de4546f0482bd87a2 /gdb/mi | |
parent | 30932f40120fa64147f8b5f7d9e4c462825c4e47 (diff) | |
download | fsf-binutils-gdb-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.zip fsf-binutils-gdb-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.tar.gz fsf-binutils-gdb-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.tar.bz2 |
gdb: rename struct so_list to shobj
Now that so_list lists are implemented using intrusive_list, it doesn't
really make sense for the element type to be named "_list". Rename to
just `struct shobj` (`struct so` was deemed to be not greppable enough).
Change-Id: I1063061901298bb40fee73bf0cce44cd12154c0e
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-file.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-interp.c | 6 | ||||
-rw-r--r-- | gdb/mi/mi-interp.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index b9231b7..756a50f 100644 --- a/gdb/mi/mi-cmd-file.c +++ b/gdb/mi/mi-cmd-file.c @@ -163,7 +163,7 @@ mi_cmd_file_list_shared_libraries (const char *command, /* Print the table header. */ ui_out_emit_list list_emitter (uiout, "shared-libraries"); - for (const so_list &so : current_program_space->solibs ()) + for (const shobj &so : current_program_space->solibs ()) { if (so.so_name.empty ()) continue; diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 0fae567..ebd7f15 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -724,7 +724,7 @@ mi_interp::on_target_resumed (ptid_t ptid) /* See mi-interp.h. */ void -mi_output_solib_attribs (ui_out *uiout, const so_list &solib) +mi_output_solib_attribs (ui_out *uiout, const shobj &solib) { gdbarch *gdbarch = current_inferior ()->arch (); @@ -745,7 +745,7 @@ mi_output_solib_attribs (ui_out *uiout, const so_list &solib) } void -mi_interp::on_solib_loaded (const so_list &solib) +mi_interp::on_solib_loaded (const shobj &solib) { ui_out *uiout = this->interp_ui_out (); @@ -762,7 +762,7 @@ mi_interp::on_solib_loaded (const so_list &solib) } void -mi_interp::on_solib_unloaded (const so_list &solib) +mi_interp::on_solib_unloaded (const shobj &solib) { ui_out *uiout = this->interp_ui_out (); diff --git a/gdb/mi/mi-interp.h b/gdb/mi/mi-interp.h index 781a8dc..3110c0a 100644 --- a/gdb/mi/mi-interp.h +++ b/gdb/mi/mi-interp.h @@ -60,8 +60,8 @@ public: void on_record_changed (inferior *inf, int started, const char *method, const char *format) override; void on_target_resumed (ptid_t ptid) override; - void on_solib_loaded (const so_list &so) override; - void on_solib_unloaded (const so_list &so) override; + void on_solib_loaded (const shobj &so) override; + void on_solib_unloaded (const shobj &so) override; void on_about_to_proceed () override; void on_traceframe_changed (int tfnum, int tpnum) override; void on_tsv_created (const trace_state_variable *tsv) override; @@ -108,7 +108,7 @@ public: /* Output the shared object attributes to UIOUT. */ -void mi_output_solib_attribs (ui_out *uiout, const so_list &solib); +void mi_output_solib_attribs (ui_out *uiout, const shobj &solib); /* Returns the INTERP's data cast as mi_interp if INTERP is an MI, and returns NULL otherwise. */ |