gdb/guile: use return values of add_setshow functions in add_setshow_generic
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * guile/scm-param.c (struct param_smob) <set_command,
4 show_command>: Remove.
5 <commands>: New.
6 (pascm_is_valid): Adjust.
7 (add_setshow_generic): Use return values of add_setshow
8 functions, return a set_show_commands.
9 (gdbscm_register_parameter_x): Adjust.
10
11 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * command.h (add_setshow_enum_cmd): Remove context parameter.
14 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
15 set context.
16 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
17 context here.
18
19 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
22 assert.
23
24 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * cli/cli-decode.h (struct cmd_list_element) <set_context,
27 context>: New.
28 <context>: Rename to...
29 <m_context>: ... this.
30 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
31 * command.h (set_cmd_context, get_cmd_context): Remove, use
32 cmd_list_element::set_context and cmd_list_element::context
33 everywhere instead.
34
35 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * NEWS: Mention changes to 'info sources'.
38 * symtab.c (info_sources_filter::print): Delete.
39 (struct output_source_filename_data) <print_header>: Delete
40 declaration. <printed_filename_p>: New member function.
41 (output_source_filename_data::print_header): Delete.
42 (info_sources_worker): Update group-by-objfile style output to
43 make it CLI suitable, simplify non-group-by-objfile now this is
44 only used from the MI.
45 (info_sources_command): Make group-by-objfile be the default for
46 CLI info sources command.
47 * symtab.h (struct info_sources_filter) <print>: Delete.
48
49 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * NEWS: Mention additions to -file-list-exec-source-files.
52 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
53 --group-by-objfile option.
54 * symtab.c (isrc_flag_option_def): Rename to...
55 (isrc_match_flag_option_def): ...this.
56 (info_sources_option_defs): Rename to...
57 (info_sources_match_option_defs): ...this, and update to rename of
58 isrc_flag_option_def.
59 (struct filename_grouping_opts): New struct.
60 (isrc_grouping_flag_option_def): New type.
61 (info_sources_grouping_option_defs): New static global.
62 (make_info_sources_options_def_group): Update to return two option
63 groups.
64 (info_sources_command_completer): Update for changes to
65 make_info_sources_options_def_group.
66 (info_sources_worker): Add extra parameter, use this to display
67 alternative output format.
68 (info_sources_command): Pass extra parameter to
69 info_sources_worker.
70 (_initialize_symtab): Update for changes to
71 make_info_sources_options_def_group.
72 * symtab.h (info_sources_worker): Add extra parameter.
73
74 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * NEWS: Mention additions to -file-list-exec-source-files.
77 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
78 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
79 options, and make use of info_sources_worker.
80 * symtab.c (struct info_sources_filter): Moved to symtab.h.
81 (info_sources_filter::print): Take uiout argument, produce output
82 through uiout.
83 (struct output_source_filename_data)
84 <output_source_filename_data>: Take uiout argument, store into
85 m_uiout. <output>: Rewrite comment, add additional arguments to
86 declaration. <operator()>: Send more arguments to
87 output. <m_uiout>: New member variable.
88 (output_source_filename_data::output): Take extra arguments,
89 produce output through m_uiout, and structure for MI.
90 (output_source_filename_data::print_header): Produce output
91 through m_uiout.
92 (info_sources_worker): New function, the implementation is taken
93 from info_sources_command, but modified so produce output through
94 a ui_out.
95 (info_sources_command): The second half of this function has gone
96 to become info_sources_worker.
97 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
98 extra parameter to print member function.
99 (info_sources_worker): Declare.
100
101 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * symtab.c (struct info_sources_filter): New.
104 (info_sources_filter::info_sources_filter): New function.
105 (info_sources_filter::matches): New function.
106 (info_sources_filter::print): New function.
107 (struct filename_partial_match_opts): Moved to later in the file
108 and update the comment.
109 (struct output_source_filename_data)
110 <output_source_filename_data>: New constructor. <regexp>: Delete,
111 this is now in info_sources_filter. <c_regexp>: Delete, this is
112 now in info_sources_filter. <reset_output>: New member function.
113 <filename_seen_cache>: Rename to m_filename_seen_cache, change
114 from being a pointer, to being an actual object. <first>: Rename
115 to m_first. <print_header>: New member function. <partial_match>:
116 Delete.
117 (output_source_filename_data::output): Update now
118 m_filename_seen_cache is no longer a pointer, and for other member
119 variable name changes. Add a header comment.
120 (print_info_sources_header): Renamed to...
121 (output_source_filename_data::print_header): ...this. Update now
122 it's a member function and to take account of member variable
123 renaming.
124 (info_sources_command): Add a header comment, delete stack local
125 filename_seen_cache, initialization of output_source_filename_data
126 is now done by the constructor. Call print_header member function
127 instead of print_info_sources_header, call reset_output member
128 function instead of manually performing the reset.
129
130 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * dwarf2/read.c (struct dwarf2_base_index_functions)
133 <has_unexpanded_symtabs>: Declare.
134 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
135 function.
136 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
137 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
138 Declare.
139 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
140 new function.
141 * quick-symbol.h (struct quick_symbol_functions)
142 <has_unexpanded_symtabs>: Declare.
143 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
144 function.
145
146 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
149 setting prototyped flag.
150
151 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
154 an empty gdb::optional when calling value_struct_elt.
155 (desc_data): Likewise.
156 (desc_one_bound): Likewise.
157 * eval.c (structop_base_operation::evaluate_funcall): Pass
158 gdb::array_view, not a gdb::array_view* to value_struct_elt.
159 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
160 an empty gdb::optional when calling value_struct_elt.
161 (eval_op_structop_ptr): Likewise.
162 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
163 * guile/scm-value.c (gdbscm_value_field): Likewise.
164 * m2-lang.c (eval_op_m2_high): Likewise.
165 (eval_op_m2_subscript): Likewise.
166 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
167 * python/py-value.c (valpy_getitem): Likewise.
168 * rust-lang.c (rust_val_print_str): Likewise.
169 (rust_range): Likewise.
170 (rust_subscript): Likewise.
171 (eval_op_rust_structop): Likewise.
172 (rust_aggregate_operation::evaluate): Likewise.
173 * valarith.c (value_user_defined_op): Likewise.
174 * valops.c (search_struct_method): Change parameter type, update
175 function body accordingly, and update header comment.
176 (value_struct_elt): Change parameter type, update function body
177 accordingly.
178 * value.h (value_struct_elt): Update declaration.
179
180 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
181
182 PR gdb/27994
183 * eval.c (structop_base_operation::evaluate_funcall): Pass
184 array_view instead of array to value_struct_elt.
185 * valarith.c (value_user_defined_op): Likewise.
186 * valops.c (typecmp): Change parameter type from array pointer to
187 array_view. Update header comment, and update body accordingly.
188 (search_struct_method): Likewise.
189 (value_struct_elt): Likewise.
190 * value.h (value_struct_elt): Update declaration.
191
192 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
193
194 PR gdb/27994
195 * eval.c (structop_base_operation::evaluate_funcall): Add a
196 nullptr to the end of the args array, which should not be included
197 in the argument array_view. Pass all the arguments through to
198 value_struct_elt.
199 * valops.c (search_struct_method): Update header comment.
200 (value_struct_elt): Likewise.
201
202 2021-06-25 Tom Tromey <tom@tromey.com>
203
204 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
205 logic.
206
207 2021-06-25 Tom Tromey <tom@tromey.com>
208
209 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
210 (scan_partial_symbols, partial_die_parent_scope)
211 (add_partial_symbol, add_partial_subprogram)
212 (compute_delayed_physnames, rust_union_quirks)
213 (process_full_comp_unit, process_full_type_unit)
214 (process_imported_unit_die, process_die, dw2_linkage_name)
215 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
216 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
217 (read_variable, dwarf2_get_subprogram_pc_bounds)
218 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
219 (dwarf2_attach_fn_fields_to_type)
220 (quirk_ada_thick_pointer_struct, read_structure_type)
221 (handle_struct_member_die, process_structure_scope)
222 (read_array_type, read_array_order, prototyped_function_p)
223 (read_subroutine_type, dwarf2_init_complex_target_type)
224 (read_base_type, read_subrange_type, read_unspecified_type)
225 (load_partial_dies, partial_die_info::fixup, set_cu_language)
226 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
227 (dwarf2_canonicalize_name, follow_die_offset)
228 (prepare_one_comp_unit): Update.
229 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
230
231 2021-06-25 Tom Tromey <tom@tromey.com>
232
233 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
234 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
235 set language_defn. Handle DW_LANG_OpenCL.
236 (prepare_one_comp_unit): Check producer and set language_defn.
237
238 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * NEWS: Mention Python BP_CATCHPOINT feature.
241 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
242 (bppy_init): Likewise.
243 (gdbpy_breakpoint_created): Likewise.
244
245 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
248 bp_catchpoint.
249 (bpscm_want_scm_wrapper_p): Likewise.
250 (gdbscm_make_breakpoint): Likewise.
251 (breakpoint_integer_constants): Likewise.
252
253 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
254
255 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
256 for invalid breakpoint numbers, and unsupported breakpoint
257 numbers.
258
259 2021-06-25 Tom Tromey <tom@tromey.com>
260
261 * dwarf2/index-write.c (struct addrmap_index_data): Add
262 initializers.
263 <operator()>: Declare.
264 (addrmap_index_data::operator()): Rename from
265 add_address_entry_worker. Remove 'datap' parameter.
266 (write_address_map): Update.
267 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
268 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
269 parameters.
270 (dump_psymtab_addrmap): Update.
271 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
272 parameter.
273 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
274 (struct mutable_foreach_data): Remove.
275 (addrmap_mutable_foreach_worker): Update.
276 (addrmap_mutable_foreach): Remove 'data' parameter.
277 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
278 (addrmap_foreach): Remove 'data' parameter.
279
280 2021-06-25 Tom Tromey <tromey@adacore.com>
281
282 * python/py-type.c (typy_get_name): Decode an Ada type name.
283
284 2021-06-25 Tom Tromey <tromey@adacore.com>
285
286 * ada-lang.c (ada_decode): Add wrap parameter.
287 * ada-lang.h (ada_decode): Add wrap parameter.
288
289 2021-06-25 Luis Machado <luis.machado@linaro.org>
290
291 * corelow.c (core_target::core_target) Update to read target
292 description.
293
294 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * python/lib/gdb/__init__.py: Format.
297
298 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * infrun.c (do_target_wait): Remove wait_ptid parameter.
301 (fetch_inferior_event): Adjust.
302
303 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
306 with name of chosen unwinder.
307 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
308 unwinder in debug message.
309
310 2021-06-22 Andreas Schwab <schwab@suse.de>
311
312 PR symtab/27999
313 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
314 DW_LLE_start_end.
315
316 2021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * breakpoint.c (insert_bp_location): If we catch a
319 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
320 been deleted.
321
322 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * NEWS: Mention new target feature name.
325 * arch/riscv.c (riscv_create_target_description): GDB doesn't
326 currently create target descriptions containing vector registers.
327 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
328 variable.
329 <operator==>: Also compare vlen.
330 <hash>: Also include vlen.
331 * riscv-tdep.c (riscv_feature_name_vector): New static global.
332 (struct riscv_vector_feature): New struct.
333 (riscv_vector_feature): New static global.
334 (riscv_register_reggroup_p): Ensure vector registers are part of
335 the 'all' group, and part of the 'vector' group.
336 (riscv_dwarf_reg_to_regnum): Handle vector registers.
337 (riscv_gdbarch_init): Check vector register feature.
338 * riscv-tdep.h: Add vector registers to GDB's internal register
339 numbers, and to the DWARF register numbers.
340
341 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * NEWS: Mention the two new methods.
344 * python/py-frame.c (frapy_level): New function.
345 (frame_object_methods): Register 'level' method.
346 * python/py-unwind.c (pending_framepy_level): New function.
347 (pending_frame_object_methods): Register 'level' method.
348
349 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
350
351 * python/py-inferior.c (infpy_get_connection_num): Call
352 gdb_py_object_from_longest instead of PyLong_FromLong directly.
353
354 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
355
356 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
357 saving user registers.
358
359 2021-06-19 Mike Frysinger <vapier@gentoo.org>
360
361 * acinclude.m4: Delete most m4_include's of ../config files.
362 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
363 * aclocal.m4: Regenerate.
364 * configure: Regenerate.
365
366 2021-06-17 Pedro Alves <pedro@palves.net>
367
368 * scoped_ignore_signal.h (scoped_ignore_signal): Add
369 ConsumePending template parameter.
370 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
371 sigtimedwait if ConsumePending is false.
372 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
373 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
374 <m_ignore_signal>: Initialize with ConsumePending=false.
375
376 2021-06-17 Pedro Alves <pedro@palves.net>
377
378 * Makefile.in (SELFTESTS_SRCS): Add
379 unittests/scoped_ignore_signal-selftests.c.
380 * unittests/scoped_ignore_signal-selftests.c: New.
381
382 2021-06-17 Pedro Alves <pedro@palves.net>
383
384 * gdbsupport/scoped_ignore_signal.h: New.
385 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
386 instead of <signal.h>. Don't include <unistd.h>.
387 (scoped_ignore_sigpipe): Remove.
388 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
389 instead of <signal.h>. Don't include <unistd.h>.
390 (lazy_init): New.
391 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
392 and lazy_init.
393
394 2021-06-17 Pedro Alves <pedro@palves.net>
395
396 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
397 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
398 * inflow.h: Delete, moved to gdbsupport/ under a different name.
399 * ser-unix.c: Don't include "inflow.h". Include
400 "gdbsupport/scoped_ignore_sigttou.h".
401
402 2021-06-17 Pedro Alves <pedro@palves.net>
403
404 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
405 ...
406 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
407 tui_getc_1.
408 (cur_seq, start_sequence): New.
409 (tui_getc_1): Pass key escape sequences for curses control keys to
410 readline. Handle mouse and ctrl-l here.
411 (tui_resize_all): Disable/reenable the keypad if the command
412 window has the focus too.
413 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
414 setting.
415 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
416
417 2021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
420
421 2021-06-16 Tom de Vries <tdevries@suse.de>
422
423 PR symtab/26327
424 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
425 (dwarf2_cu::get_builder): Declare and move ...
426 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
427 of ancestor. Assert return value is non-null.
428 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
429 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
430 (dwarf2_per_objfile): Add sym_cu field.
431
432 2021-06-15 Alan Modra <amodra@gmail.com>
433
434 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
435
436 2021-06-14 Mike Frysinger <vapier@gentoo.org>
437
438 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
439 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
440
441 2021-06-14 John Baldwin <jhb@FreeBSD.org>
442
443 * configure.ac: Check for <sys/procctl.h>.
444 * config.in, configure: Regenerate.
445 * fbsd-nat.c: Include <sys/procctl.h> if present.
446 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
447 (fbsd_nat_target::create_inferior)
448 (fbsd_nat_target::supports_disable_randomization): New.
449 * fbsd-nat.h (fbsd_nat_target::create_inferior)
450 (fbsd_nat_target::supports_disable_randomization): New.
451
452 2021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
453
454 * compile/compile.c: Include missing header signal.h.
455
456 2021-06-12 John Baldwin <jhb@FreeBSD.org>
457
458 * remote.c (remote_new_objfile): Fix indentation.
459
460 2021-06-11 Kevin Buettner <kevinb@redhat.com>
461
462 * solib.c (libpthread_name_p): Match "libc" in addition
463 to "libpthread".
464 * linux-thread-db.c (libpthread_objfile_p): New function.
465 (libpthread_name_p): Adjust preexisting callers to use
466 libpthread_objfile_p().
467
468 2021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
469
470 * dwarf2/loc.h (struct call_site_stuff): Remove.
471
472 2021-06-11 Tom Tromey <tom@tromey.com>
473
474 PR rust/23427
475 * rust-parse.c (rust_parser::lex_identifier): Handle raw
476 identifiers.
477 (rust_lex_tests): Add raw identifier tests.
478
479 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
480
481 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
482 instead of '== None'.
483 (FrameVars): Use 'is not None' instead of '!= None'.
484 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
485 Use 'is None' instead of '== None' and 'is not None' instead of '!=
486 None'.
487
488 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * inferior.h (class inferior) <in_initial_library_scan>: New.
491 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
492 * infrun.c (follow_fork_inferior): Likewise.
493 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
494 by try_thread_db_load_1
495 (thread_db_load): Return early if in_initial_library_scan is
496 set.
497 * remote.c (remote_new_objfile): Return early if
498 in_initial_library_scan is set.
499
500 2021-06-07 Pedro Alves <pedro@palves.net>
501
502 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
503 ctor.
504 * symtab.h (struct symbol): Add defaulted copy assignment
505 operator.
506
507 2021-06-07 Pedro Alves <pedro@palves.net>
508
509 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
510 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
511 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
512 local.
513
514 2021-06-07 Pedro Alves <pedro@palves.net>
515
516 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
517 (nat_sigval_t): ... this and remove typedef of same name.
518 (struct nat_siginfo): Rename to ...
519 (nat_siginfo_t): ... this and remove typedef of same name.
520 (struct compat_sigval): Rename to ...
521 (compat_sigval_t): ... this and remove typedef of same name.
522 (struct compat_siginfo): Rename to ...
523 (compat_siginfo_t): ... this and remove typedef of same name.
524 (struct compat_x32_siginfo): Rename to ...
525 (compat_x32_siginfo_t): ... this and remove typedef of same name.
526 (amd64_linux_siginfo_fixup_common): Adjust.
527
528 2021-06-07 Pedro Alves <pedro@palves.net>
529
530 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
531 __attribute__ __aligned__ from the typedef to the struct.
532
533 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 PR gdb/27847
536 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
537 type_align, and spot case where the alignment is unknown.
538
539 2021-06-07 Carl Love <cel@us.ibm.com>
540
541 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
542 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
543 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
544 ppc64_pcrel_linkage2_target): New functions.
545 (ppc64_standard_linkage9, ppc64_standard_linkage10,
546 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
547 instruction patterns.
548 (ppc64_standard_linkage9, ppc64_standard_linkage10,
549 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
550 in define MAX expression.
551 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
552 ppc64_standard_linkage10, ppc64_standard_linkage11,
553 ppc64_standard_linkage12.
554 * (ppc_insn_prefix_dform): New function.
555
556 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
557
558 PR gdb/27899
559 * sparc-nat.c (sparc_fetch_inferior_registers): Set
560 inferior_ptid instead of using switch_to_thread.
561 (sparc_store_inferior_registers): Likewise.
562
563 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
564
565 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
566 (compile_to_object): Ignore SIGPIPE before calling the plugin.
567
568 2021-06-05 Tom Tromey <tom@tromey.com>
569
570 * data-directory/Makefile.in (Makefile): Use correct directory
571 name.
572
573 2021-06-05 Tom Tromey <tom@tromey.com>
574
575 * data-directory/Makefile.in (Makefile): Rewrite.
576
577 2021-06-05 Tom Tromey <tromey@adacore.com>
578
579 * configure: Rebuild.
580 * configure.ac: Add ACX_NONCANONICAL_TARGET.
581
582 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
583
584 * NEWS: Document 'set disassembler-options' support for the ARC
585 target.
586 * arc-tdep.c (arc_gdbarch_init): Set
587 'gdbarch_valid_disassembler_options'.
588
589 2021-06-04 Tom Tromey <tromey@adacore.com>
590
591 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
592 parameter.
593 * dwarf2/loc.c (dwarf2_evaluate_property) <case
594 PROP_VARIABLE_NAME>: New case.
595 (compute_var_value): New function.
596 (sect_variable_value): Use compute_var_value.
597 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
598 (var_decl_name): New function.
599 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
600 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
601 constant.
602 (union dynamic_prop_data) <variable_name>: New member.
603 (struct dynamic_prop) <variable_name, set_variable_name>: New
604 methods.
605
606 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * remote.c (remote_target)
609 <select_thread_for_ambiguous_stop_reply>: Add additional debug
610 output.
611
612 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
613
614 * python/py-tui.c (class tui_py_window): Add click function.
615 (tui_py_window::click): Likewise.
616
617 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
618
619 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
620 * tui/tui-data.h (struct tui_win_info): Add click function.
621 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
622 (tui_deprep_terminal): Disable mouse events.
623 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
624 * tui/tui.c (tui_disable): Disable mouse events.
625
626 2021-06-03 Magne Hov <mhov@undo.io>
627
628 PR python/27841
629 * eval.c (expression::evaluate): Check inferior_ptid.
630
631 2021-06-03 Pedro Alves <pedro@palves.net>
632
633 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
634 affiliation.
635 (Global Maintainers): Update my address.
636 (Write After Approval): Remove stale entry.
637
638 2021-06-03 John Baldwin <jhb@FreeBSD.org>
639
640 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
641 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
642 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
643 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
644 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
645 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
646 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
647 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
648 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
649 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
650 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
651 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
652 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
653 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
654 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
655 (fbsd_report_signal_info): New.
656 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
657 report_signal_info method.
658
659 2021-06-03 Magne Hov <mhov@undo.io>
660
661 * MAINTAINERS (Write After Approval): Add Magne Hov.
662
663 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
664
665 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
666 gdb.SYMBOL_LABEL_DOMAIN constant.
667
668 2021-06-01 John Baldwin <jhb@FreeBSD.org>
669
670 * infrun.c (handle_inferior_event): Only call
671 gdbarch_displaced_step_restore_all_in_ptid if
672 gdbarch_supports_displaced_stepping is true.
673
674 2021-06-01 Tom Tromey <tromey@adacore.com>
675
676 * Makefile.in (all-data-directory): Remove.
677 (data-directory/Makefile): Remove.
678
679 2021-06-01 Tom Tromey <tromey@adacore.com>
680
681 * configure: Rebuild.
682 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
683
684 2021-06-01 Tom Tromey <tromey@adacore.com>
685
686 * silent-rules.mk (ECHO_CC): New variable.
687
688 2021-06-01 Tom Tromey <tromey@adacore.com>
689
690 * Makefile.in (SUBDIRS): Add testsuite.
691 (all): Don't exclude testsuite.
692
693 2021-06-01 Tom Tromey <tromey@adacore.com>
694
695 * configure.ac: Copy some code from testsuite/configure.ac.
696 (enable_libctf): Subst this, not ENABLE_LIBCTF.
697 * configure: Rebuild.
698
699 2021-06-01 Tom de Vries <tdevries@suse.de>
700
701 PR symtab/26096
702 * minsyms.c (msymbol_is_cold_clone): New function.
703 (msymbol_is_function): Use msymbol_is_cold_clone.
704
705 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
706 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 PR gdb/14383
709 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
710 (ALLDEPFILES): Add arm-none-tdep.c
711 * arm-none-tdep.c: New file.
712 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
713
714 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
715 Richard Bunt <richard.bunt@arm.com>
716
717 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
718 check for why the backtrace stopped.
719
720 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
721
722 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
723 Update all callers.
724 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
725 signature parameter, update all callers.
726 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
727 signature parameter.
728
729 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
730
731 * dwarf2/read.h (signatured_type_up): New, use where possible.
732
733 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
736
737 2021-05-30 Tom Tromey <tom@tromey.com>
738
739 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
740 is_debug_types.
741 (create_signatured_type_table_from_index)
742 (create_signatured_type_table_from_debug_names, add_type_unit)
743 (read_comp_units_from_section): Update.
744
745 2021-05-30 Tom Tromey <tom@tromey.com>
746
747 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
748 m_num_psymtabs>: Remove.
749 (resize_symtabs): Update.
750 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
751 (dwarf2_per_bfd::allocate_signatured_type): Update.
752
753 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * Fix tab after space indentation issues throughout.
756
757 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * Fix some indentation mistakes throughout.
760
761 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * breakpoint.h (iterate_over_bp_locations): Remove. Update
764 users to use all_bp_locations.
765 (all_bp_locations): New.
766 * breakpoint.c (all_bp_locations): Make non-static.
767 (iterate_over_bp_locations): Remove.
768
769 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * breakpoint.h (iterate_over_breakpoints): Remove. Update
772 callers to use all_breakpoints or all_breakpoints_safe.
773 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
774 all_breakpoints_safe): Move here.
775 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
776 non-static.
777 (iterate_over_breakpoints): Remove.
778 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
779 Return void.
780 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
781 return value logic.
782 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
783
784 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * breakpoint.c (get_first_locp_gte_addr): Remove.
787 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
788 all_bp_locations_at_addr.
789 (struct bp_locations_at_addr_range): New.
790 (all_bp_locations_at_addr): New.
791 (bp_locations_compare_addrs): New.
792
793 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
794
795 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
796 all_bp_locations.
797 (all_bp_locations): New.
798
799 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * breakpoint.c (bp_locations): Change to std::vector, update all
802 users.
803 (bp_locations_count): Remove.
804 (update_global_location_list): Change to work with indices
805 rather than bp_location**.
806
807 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * breakpoint.h (bp_locations_range): New.
810 (struct breakpoint) <locations>: New. Use where possible.
811
812 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * breakpoint.h (all_tracepoints): Remove.
815 (breakpoint_iterator): Move here.
816 (struct tracepoint_filter): New.
817 (tracepoint_iterator): New.
818 (tracepoint_range): New.
819 (all_tracepoints): New.
820 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
821 all_tracepoints.
822 (breakpoint_iterator): Move to header.
823 (all_tracepoints): New.
824 * tracepoint.c (start_tracing): Adjust.
825
826 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * breakpoint.c (breakpoint_safe_range): New.
829 (all_breakpoints_safe): New. Use instead of
830 ALL_BREAKPOINTS_SAFE where possible.
831
832 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
835 all_breakpoints.
836 (breakpoint_iterator): New.
837 (breakpoint_range): New.
838 (all_breakpoints): New.
839
840 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
841
842 * python/py-tui.c (tui_py_window::output): Add full_window
843 argument.
844 (gdbpy_tui_write): Parse "full_window" argument.
845
846 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
847
848 * make-init-c: Add option to reverse function calls.
849
850 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
851
852 * Makefile.in (INIT_FILES_FILTER_OUT): New.
853 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
854 (stamp-init): Use make-init-c.
855 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
856 * silent-rules.mk (ECHO_INIT_C): Change.
857 * make-init-c: New file.
858
859 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * command.h (add_alias_cmd): Accept target as
862 cmd_list_element. Update callers.
863
864 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
865
866 * command.h (add_info_alias): Accept target as
867 cmd_list_element. Update callers.
868
869 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * command.h (add_com_alias): Accept target as
872 cmd_list_element. Update callers.
873
874 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * python/py-param.c (add_setshow_generic): Use return values of
877 add_setshow functions.
878
879 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
880
881 * mi/mi-main.c (_initialize_mi_main):
882 * python/py-auto-load.c (gdbpy_initialize_auto_load):
883 * remote.c (_initialize_remote):
884
885 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
886
887 * command.h (set_show_commands): New.
888 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
889 add_setshow_boolean_cmd, add_setshow_filename_cmd,
890 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
891 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
892 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
893 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
894 Return set_show_commands. Adjust callers.
895 * cli/cli-decode.c (add_setshow_cmd_full): Return
896 set_show_commands, remove result parameters, adjust callers.
897
898 2021-05-27 Tom de Vries <tdevries@suse.de>
899
900 PR symtab/27919
901 * dwarf2/read.c (process_psymtab_comp_unit):
902
903 2021-05-27 Tom de Vries <tdevries@suse.de>
904
905 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
906 error.
907
908 2021-05-27 Tom de Vries <tdevries@suse.de>
909
910 PR symtab/27898
911 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
912 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
913 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
914 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
915 load_all_dies init.
916 (dwarf2_per_cu_data): Remove load_all_dies field.
917
918 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
919
920 * regcache.c (reg_buffer::reg_buffer): Default-initialize
921 m_registers array.
922
923 2021-05-26 Tom Tromey <tom@tromey.com>
924
925 * dwarf2/read.c (allocate_type_unit_groups_table)
926 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
927 htab_delete_entry.
928 (free_line_header_voidp): Remove.
929 * completer.c
930 (completion_tracker::completion_hash_entry::deleter): Remove.
931 (completion_tracker::discard_completions): Use htab_delete_entry.
932 * utils.h (htab_delete_entry): New template function.
933
934 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
935
936 * python/py-tui.c (tui_py_window::refresh_window):
937 Avoid flickering.
938
939 2021-05-23 Tom de Vries <tdevries@suse.de>
940
941 PR tdep/27822
942 * target.h (struct target_ops): Mention target_thread_architecture in
943 read_description comment.
944 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
945 pid to determine if process is 64-bit or 32-bit.
946 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
947 Same.
948 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
949 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
950 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
951 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
952 Likewise, use pid to determine if kernel supports reading VFP
953 registers.
954
955 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
956
957 * main.c (enum cmdarg_kind): Fix option type comments for
958 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
959
960 2021-05-21 Tom de Vries <tdevries@suse.de>
961
962 PR testsuite/25047
963 * contrib/cc-with-tweaks.sh: Handle -l.
964
965 2021-05-21 Tom de Vries <tdevries@suse.de>
966
967 PR breakpoint/27889
968 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
969 objects. Call get_jiter_objfile_data with the_objfile.
970
971 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * linespec.c (linespec_p): Remove. Replace all uses with
974 "linespec *".
975
976 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
977 Pedro Alves <pedro@palves.net>
978
979 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
980 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
981 command_line_up instead of struct command_line.
982 (build_command_line): Likewise.
983 (get_command_line): Update the cmd function call parameter.
984 (process_next_line): Use unique_ptr command_line_up instead
985 of struct command_line.
986 (recurse_read_control_structure): Change the the type of
987 next to command_line_up.
988 (read_command_lines_1): Change type of `next' to be
989 command_line_up and update all references of `next'
990 accordingly.
991
992 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
993
994 * MAINTAINERS (Write After Approval): Add myself.
995
996 2021-05-19 John Baldwin <jhb@FreeBSD.org>
997
998 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
999
1000 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1001
1002 * inflow.c (new_tty): Do not leak tty.
1003
1004 2021-05-17 Tom Tromey <tom@tromey.com>
1005
1006 * dwarf2/read.h: Update include.
1007 * dwarf2/read.c: Update include.
1008 * dwarf2/line-header.c: Update include.
1009 * dwarf2/cu.h: Update include.
1010 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1011 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1012 * Makefile.in (COMMON_SFILES): Update.
1013
1014 2021-05-17 Tom Tromey <tom@tromey.com>
1015
1016 * dwarf2/read.c (maybe_queue_comp_unit)
1017 (dwarf2_per_objfile::age_comp_units): Update.
1018 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1019 dwarf2_cu methods.
1020 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1021 add_dependence>: New methods.
1022 <m_dependencies>: Add "m_" prefix. Now private.
1023 <m_mark>: Add "m_" prefix.
1024 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1025 (dwarf2_mark_helper): New function.
1026 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1027
1028 2021-05-17 Tom Tromey <tom@tromey.com>
1029
1030 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1031 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1032 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1033 * dwarf2/cu.c: New file.
1034 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1035
1036 2021-05-17 Tom Tromey <tom@tromey.com>
1037
1038 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1039 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1040 Move to cu.h.
1041 * dwarf2/cu.h: New file.
1042
1043 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1046 set brace-list-open to 0 for C and C++ modes.
1047
1048 2021-05-17 Tom Tromey <tromey@adacore.com>
1049
1050 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1051 if frame is null.
1052
1053 2021-05-17 Tom Tromey <tromey@adacore.com>
1054
1055 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1056 (group_from_gid): Subtract one from strncpy length.
1057
1058 2021-05-17 Tom Tromey <tromey@adacore.com>
1059
1060 * source.c (add_path): Check 'p' before using 'p[-1]'.
1061
1062 2021-05-17 Tom Tromey <tromey@adacore.com>
1063
1064 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1065 (dwarf2_per_cu_data_up): New typedef.
1066 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1067 <all_comp_units>: Use dwarf2_per_cu_data_up.
1068 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1069 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1070 (create_cu_from_index_list): Likewise.
1071 (create_signatured_type_table_from_index)
1072 (create_cus_from_debug_names_list, add_type_unit)
1073 (read_comp_units_from_section): Update.
1074 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1075 (run_test): Update.
1076
1077 2021-05-17 Tom Tromey <tom@tromey.com>
1078
1079 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1080 (sort_tu_by_abbrev_offset): Remove.
1081 (build_type_psymtabs): Update.
1082
1083 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * py-project.toml: New.
1086 * gdb-gdb.py.in: Re-format.
1087
1088 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1091 New, use it.
1092 * command.h (cmd_func_p): Remove.
1093 * cli/cli-decode.c (cmd_func_p): Remove.
1094
1095 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1096
1097 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1098
1099 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1100
1101 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1102 to...
1103 <alias_target>: ... this.
1104 (add_alias_cmd): Rename old to target.
1105 (add_info_alias): Rename old_name to target_name.
1106 (add_com_alias): Likewise.
1107
1108 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1109
1110 * Rename "prefixlist" parameters to "subcommands" throughout.
1111 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1112 <subcommands>: ... this.
1113 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1114 (lookup_cmd_with_subcommands): ... this.
1115
1116 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1119
1120 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1121
1122 * cli/cli-decode.h (prefixname): Make const, move implementation
1123 to cli/cli-decode.c.
1124 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1125
1126 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
1127
1128 * ctfread.c (new_symbol): Set function address.
1129 (read_func_kind_type): Remove incorrect type name setting.
1130 Don't copy name returned from ctf_type_ame_raw throughout file.
1131
1132 2021-05-14 Tom Tromey <tom@tromey.com>
1133
1134 * rust-lang.c (rust_language::val_print_struct)
1135 (rust_language::print_enum): Use common_val_print, not
1136 value_print_inner.
1137
1138 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1139
1140 * python/py-inferior.c (infpy_get_connection_num): New function.
1141 (inferior_object_getset): Add a new element for 'connection_num'.
1142 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1143
1144 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1147 argument type, update and re-wrap, header comment.
1148 (remote_target::commit_resumed): Convert any_process_wildcard and
1149 may_global_wildcard_vcont from int to bool.
1150
1151 2021-05-14 Kent Cheung <kent.cheung@arm.com>
1152
1153 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1154 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1155 just before printing child values.
1156 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1157 printing string representation.
1158 * python/py-prettyprint.c (print_children): Check max_depth just
1159 before printing child values.
1160 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1161 printing string representation.
1162
1163 2021-05-14 Mike Frysinger <vapier@gentoo.org>
1164
1165 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1166 sim/callback.h & sim/sim.h.
1167
1168 2021-05-13 Mike Frysinger <vapier@gentoo.org>
1169
1170 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1171 sim-regno.h include.
1172
1173 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1174
1175 * inf-child.h (inf_child_target) <follow_exec>: New.
1176 * inf-child.c (inf_child_target::follow_exec): New.
1177
1178 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1179
1180 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1181 parameter.
1182 (target_follow_exec): Likewise.
1183 * target.c (target_follow_exec): Add ptid_t parameter.
1184 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1185 don't push target nor create thread.
1186 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1187 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1188 (thread_db_target::follow_exec): New.
1189 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1190 (remote_target::follow_exec): Call
1191 process_stratum_target::follow_exec.
1192 * target-delegates.c: Re-generate.
1193
1194 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1195
1196 * infrun.c (follow_exec): Call target_follow_fork when
1197 follow-exec-mode is same.
1198 * target.h (target_follow_fork): Improve doc.
1199
1200 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1203 Remove.
1204 * cli/cli-setshow.c (do_show_command): Adjust.
1205
1206 2021-05-13 Luis Machado <luis.machado@linaro.org>
1207
1208 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1209 include the last address in the range.
1210
1211 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * python/python-internal.h (gdbpy_parse_command_name): Return
1214 gdb::unique_xmalloc_ptr.
1215 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1216 (cmdpy_init): Adjust.
1217 * python/py-param.c (parmpy_init): Adjust.
1218 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1219 when done.
1220
1221 2021-05-12 George Barrett <bob@bob131.so>
1222
1223 * NEWS (Guile API): Note the addition of the new procedure.
1224 * guile/scm-value.c (gdbscm_value_const_value): Add
1225 implementation of value-const-value procedure.
1226 (value_functions): Add value-const-value procedure.
1227
1228 2021-05-12 George Barrett <bob@bob131.so>
1229
1230 * NEWS (Guile API): Note the addition of new procedures.
1231 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1232 for reference value creation.
1233 (gdbscm_value_reference_value): Add implementation of
1234 value-reference-value procedure.
1235 (gdbscm_value_rvalue_reference_value): Add implementation of
1236 value-rvalue-reference-value procedure.
1237 (value_functions): Add value-reference-value procedure. Add
1238 value-rvalue-reference-value procedure.
1239
1240 2021-05-12 George Barrett <bob@bob131.so>
1241
1242 * guile/scm-type.c (type_integer_constants): Add binding for
1243 TYPE_CODE_RVALUE_REF.
1244 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1245 dereferencing of rvalue references.
1246 * NEWS (Guile API): Note improvements in rvalue reference support.
1247
1248 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1249
1250 * btrace.c (handle_pt_insn_events): Ignore status update enable
1251 events.
1252
1253 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1256 indentation.
1257
1258 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1261
1262 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
1263
1264 PR gdb/27614
1265 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1266 argument.
1267
1268 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1269
1270 * nat/linux-waitpid.c (status_to_str): Show signal name.
1271
1272 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * python/py-breakpoint.c (pybp_debug): New static global.
1275 (show_pybp_debug): New function.
1276 (pybp_debug_printf): Define.
1277 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1278 (gdbpy_breakpoint_created): Add some debugging.
1279 (gdbpy_breakpoint_deleted): Likewise.
1280 (gdbpy_breakpoint_modified): Likewise.
1281 (_initialize_py_breakpoint): New function.
1282
1283 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * python/py-unwind.c (pyuw_debug): Convert to bool.
1286 (show_pyuw_debug): New function.
1287 (pyuw_debug_printf): Define.
1288 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1289 (pyuw_this_id): Convert to new debug print macros.
1290 (pyuw_prev_register): Likewise.
1291 (pyuw_sniffer): Likewise.
1292 (pyuw_dealloc_cache): Likewise.
1293 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1294 show function when registering.
1295
1296 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1297
1298 * dummy-frame.c (fprint_dummy_frames): Convert use of
1299 fprint_frame_id to use frame_id::to_string.
1300 * frame.c (fprint_field): Delete.
1301 (fprint_frame_id): Moved to...
1302 (frame_id::to_string): ...this, rewritten to return a string.
1303 (fprint_frame): Convert use of fprint_frame_id to use
1304 frame_id::to_string.
1305 (compute_frame_id): Likewise.
1306 (frame_id_p): Likewise.
1307 (frame_id_eq): Likewise.
1308 (frame_id_inner): Likewise.
1309 * frame.h (struct frame_id) <to_string>: New member function.
1310 (fprint_frame_id): Delete declaration.
1311 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1312 fprint_frame_id to use frame_id::to_string.
1313 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1314 * python/py-unwind.c (unwind_infopy_str): Likewise.
1315 (pyuw_this_id): Likewise.
1316
1317 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1318
1319 * nat/linux-waitpid.c (status_to_str): Return std::string.
1320 * nat/linux-waitpid.h (status_to_str): Likewise.
1321 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1322 (linux_nat_target::attach): Adjust.
1323 (linux_handle_extended_wait): Adjust.
1324 (wait_lwp): Adjust.
1325 (stop_wait_callback): Adjust.
1326 (linux_nat_filter_event): Adjust.
1327 (linux_nat_wait_1): Adjust.
1328 * nat/linux-waitpid.c (status_to_str): Adjust.
1329 * nat/linux-waitpid.h (status_to_str): Adjust.
1330
1331 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1332
1333 * infrun.h (infrun_debug_printf): Add missing space.
1334
1335 2021-05-08 Pedro Alves <pedro@palves.net>
1336
1337 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1338 Remove references to HAVE_PERSONALITY.
1339 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1340 (maybe_disable_address_space_randomization)
1341 (~maybe_disable_address_space_randomizatio): Remove references to
1342 HAVE_PERSONALITY.
1343 * config.in, configure: Regenerate.
1344
1345 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1348 include.
1349 (source_script_with_search): Perform tilde expansion.
1350
1351 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * target-descriptions.c (struct target_desc_info) <filename>:
1354 Make std::string.
1355 (copy_inferior_target_desc_info): Adjust.
1356 (target_desc_info_free): Adjust.
1357 (target_find_description): Adjust.
1358 (set_tdesc_filename_cmd): Adjust.
1359 (show_tdesc_filename_cmd): Adjust.
1360 (unset_tdesc_filename_cmd): Adjust.
1361 (maint_print_c_tdesc_cmd): Adjust.
1362
1363 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * target-descriptions.c (struct target_desc_info): Initialize
1366 fields.
1367 (get_tdesc_info): Use new.
1368 (target_desc_info_free): Use delete.
1369
1370 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1371
1372 * target-descriptions.c (struct target_desc_info) <fetched>:
1373 bool.
1374 (target_find_description): Adjust.
1375 (target_clear_description): Adjust.
1376
1377 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * target-descriptions.c (struct target_desc_info) <tdesc>:
1380 Adjust doc.
1381 (target_desc_fetched): Remove.
1382 (current_target_desc): Remove.
1383 (target_description_filename): Remove.
1384 (target_find_description): Adjust.
1385 (target_clear_description): Adjust.
1386 (target_current_description): Adjust.
1387 (set_tdesc_filename_cmd): Adjust.
1388 (show_tdesc_filename_cmd): Adjust.
1389 (unset_tdesc_filename_cmd): Adjust.
1390 (maint_print_c_tdesc_cmd): Adjust.
1391 (maint_print_xml_tdesc_cmd): Adjust.
1392
1393 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * infcmd.c (notice_new_inferior): Change parameter type.
1396 * inferior.h (notice_new_inferior): Change parameter type.
1397 * remote.c (remote_notice_new_inferior): Change parameter type to
1398 bool. Also update type of local variable to bool.
1399 (remote_target::update_thread_list): Change type of local variable
1400 to bool.
1401 (remote_target::process_stop_reply): Pass bool instead of int to
1402 remote_notice_new_inferior.
1403
1404 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1405
1406 * target.c (target_stack::unpush): Call target_ops::find_beneath
1407 to get the target beneath `t`.
1408
1409 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1410
1411 * target.c (target_close): Check in all inferiors that the
1412 target is not pushed.
1413
1414 2021-05-07 Aaron Merey <amerey@redhat.com>
1415
1416 * debuginfod-support.c (debuginfod_init): Remove.
1417 (get_debuginfod_client): New function.
1418
1419 2021-05-07 Tom Tromey <tom@tromey.com>
1420
1421 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1422 * utils.c (streq_hash): Remove.
1423 * utils.h (streq_hash): Don't declare.
1424 * completer.c (completion_tracker::discard_completions): Update
1425 comment.
1426 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1427
1428 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 * Re-format all Python files using black.
1431
1432 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1435 function return type.
1436 * guile/guile.c (gdbscm_source_script): Update to handle change in
1437 gdbscm_safe_source_script.
1438 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1439 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1440 type.
1441
1442 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * inferior.h (class inferior) <args>: Change type to
1445 unique_xmalloc_ptr.
1446 * inferior.c (inferior::~inferior): Don't free args.
1447 * infcmd.c (get_inferior_args): Adjust.
1448 (set_inferior_args): Adjust.
1449
1450 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1453 breakpoint locations when the breakpoint actually has a location.
1454
1455 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1456
1457 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1458 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1459 mi_cmd_break_condition.
1460 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1461 * breakpoint.h (set_breakpoint_condition): Declare a new
1462 overload.
1463 * breakpoint.c (set_breakpoint_condition): New overloaded function
1464 extracted out from ...
1465 (condition_command): ... this.
1466 * NEWS: Mention the change.
1467
1468 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1469
1470 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1471 '--force-condition' flag to force the condition in the
1472 '-break-insert' and '-dprintf-insert' commands.
1473 * NEWS: Mention the change.
1474
1475 2021-05-04 Tom de Vries <tdevries@suse.de>
1476
1477 PR guile/27806
1478 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1479 memory functions.
1480
1481 2021-04-30 Tom Tromey <tom@tromey.com>
1482
1483 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1484 (add_signatured_type_cu_to_table): Remove.
1485 (create_debug_type_hash_table): Assume dwo_file is non-null.
1486 (create_debug_types_hash_table): Update comment.
1487 (create_all_type_units): Remove.
1488 (sort_tu_by_abbrev_offset): Update comment.
1489 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1490 (build_type_psymtabs): Remove.
1491 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1492 Update.
1493 (read_comp_units_from_section): Add types_htab, section_kind
1494 parameters.
1495 (create_all_comp_units): Read type units.
1496
1497 2021-04-30 Tom Tromey <tom@tromey.com>
1498
1499 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1500 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1501 <get_cu>: Now inline.
1502 <all_type_units>: Remove.
1503 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1504 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1505 (dwarf2_per_bfd::get_tu): Remove.
1506 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1507 (create_signatured_type_table_from_index)
1508 (create_signatured_type_table_from_debug_names)
1509 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1510 (dwarf2_base_index_functions::expand_all_symtabs)
1511 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1512 (dwarf2_base_index_functions::map_symbol_filenames)
1513 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1514 (add_signatured_type_cu_to_table, create_all_type_units)
1515 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1516 (create_all_comp_units): Update.
1517 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1518 (write_debug_names): Update.
1519
1520 2021-04-30 Tom Tromey <tom@tromey.com>
1521
1522 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1523 allocate_signatured_type>: Change return type.
1524 <all_comp_units, all_type_units>: Hold unique pointers.
1525 (struct dwarf2_per_cu_data): Add constructor and initializers.
1526 (struct signatured_type): Derive from dwarf2_per_cu_data.
1527 * dwarf2/read.c (type_unit_group): Derive from
1528 dwarf2_per_cu_data.
1529 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1530 (dwarf2_per_bfd::get_tu)
1531 (dwarf2_per_bfd::allocate_signatured_type)
1532 (dwarf2_per_bfd::allocate_signatured_type)
1533 (create_cu_from_index_list, create_cus_from_index_list)
1534 (create_signatured_type_table_from_index)
1535 (create_signatured_type_table_from_debug_names)
1536 (create_addrmap_from_aranges)
1537 (dwarf2_base_index_functions::find_last_source_symtab)
1538 (dw_expand_symtabs_matching_file_matcher)
1539 (dwarf2_gdb_index::expand_symtabs_matching)
1540 (dwarf2_base_index_functions::map_symbol_filenames)
1541 (create_cus_from_debug_names_list)
1542 (dw2_debug_names_iterator::next)
1543 (dwarf2_debug_names_index::expand_symtabs_matching)
1544 (create_debug_type_hash_table, add_type_unit)
1545 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1546 Update.
1547 (allocate_type_unit_groups_table): Use delete.
1548 (create_type_unit_group): Change return type. Use new.
1549 (get_type_unit_group, build_type_psymtabs_1)
1550 (build_type_psymtab_dependencies)
1551 (process_skeletonless_type_unit, set_partial_user)
1552 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1553 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1554 (read_signatured_type): Update.
1555 (dwarf2_find_containing_comp_unit): Change type of
1556 'all_comp_units'.
1557 (run_test): Update.
1558 (dwarf2_per_bfd::allocate_per_cu)
1559 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1560 Use new.
1561 (add_signatured_type_cu_to_table): Update.
1562 * dwarf2/index-write.c (write_one_signatured_type)
1563 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1564 (write_debug_names): Update.
1565
1566 2021-04-30 Tom Tromey <tromey@adacore.com>
1567
1568 * nat/windows-nat.h (get_image_name): Don't declare.
1569 * nat/windows-nat.c (get_image_name): Now static.
1570
1571 2021-04-30 Tom Tromey <tromey@adacore.com>
1572
1573 * windows-nat.c (windows_nat::handle_load_dll): Update.
1574 (windows_nat_target::get_windows_debug_event): Call
1575 dll_loaded_event.
1576 (windows_add_all_dlls, windows_add_dll): Move to
1577 nat/windows-nat.c.
1578 * nat/windows-nat.h (handle_load_dll): Change parameters.
1579 (dll_loaded_event, windows_add_all_dlls): Declare.
1580 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1581 from windows-nat.c.
1582 (dll_loaded_event): New function.
1583
1584 2021-04-30 Tom Tromey <tromey@adacore.com>
1585
1586 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1587 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1588 Declare.
1589 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1590 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1591
1592 2021-04-30 Tom Tromey <tromey@adacore.com>
1593
1594 * windows-nat.c: Move code to nat/windows-nat.[ch].
1595 (_initialize_windows_nat): Call initialize_loadable.
1596 * nat/windows-nat.h (AdjustTokenPrivileges)
1597 (DebugActiveProcessStop, DebugBreakProcess)
1598 (DebugSetProcessKillOnExit, EnumProcessModules)
1599 (EnumProcessModulesEx, GetModuleInformation)
1600 (GetModuleFileNameExA, GetModuleFileNameExW)
1601 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1602 (GetCurrentConsoleFont, Wow64SuspendThread)
1603 (Wow64GetThreadContext, Wow64SetThreadContext)
1604 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1605 (AdjustTokenPrivileges_ftype)
1606 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1607 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1608 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1609 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1610 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1611 (GetConsoleFontSize_ftype)
1612 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1613 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1614 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1615 (initialize_loadable): Declare.
1616 * nat/windows-nat.c (AdjustTokenPrivileges)
1617 (DebugActiveProcessStop, DebugBreakProcess)
1618 (DebugSetProcessKillOnExit, EnumProcessModules)
1619 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1620 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1621 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1622 (Wow64GetThreadContext, Wow64SetThreadContext)
1623 (Wow64GetThreadSelectorEntry): Define.
1624 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1625 from windows-nat.c.
1626 (initialize_loadable): Likewise, and rename.
1627
1628 2021-04-30 Tom Tromey <tromey@adacore.com>
1629
1630 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1631 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1632 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1633 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1634 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1635 (bad): New template functions.
1636 (_initialize_loadable): Update.
1637
1638 2021-04-30 Tom Tromey <tromey@adacore.com>
1639
1640 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1641
1642 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * auto-load.h: Split namespace declaration.
1645
1646 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1647
1648 * infrun.c (save_waitstatus): Move variables to inner scope.
1649
1650 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * NEWS: Fix typo and stray full stop.
1653
1654 2021-04-28 Tom Tromey <tromey@adacore.com>
1655
1656 * ada-exp.y (primary): Use new type for null pointer.
1657 * ada-lang.c (ada_type_match): Remove "may_deref"
1658 parameter. Handle null pointer.
1659 (ada_args_match): Update.
1660 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1661 Handle null pointer.
1662
1663 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * NEWS: Mention new commands.
1666 * python/python.c (python_ignore_environment): New static global.
1667 (show_python_ignore_environment): New function.
1668 (set_python_ignore_environment): New function.
1669 (python_dont_write_bytecode): New static global.
1670 (show_python_dont_write_bytecode): New function.
1671 (set_python_dont_write_bytecode): New function.
1672 (_initialize_python): Register new commands.
1673
1674 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * extension-priv.h (struct extension_language_ops): Rename
1677 'finish_initialization' to 'initialize'.
1678 * extension.c (finish_ext_lang_initialization): Renamed to...
1679 (ext_lang_initialization): ...this, update comment, and updated
1680 the calls to reflect the change in struct extension_language_ops.
1681 * extension.h (finish_ext_lang_initialization): Renamed to...
1682 (ext_lang_initialization): ...this.
1683 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1684 (gdbscm_initialize): ...this, update comment at definition.
1685 (guile_extension_ops): Update.
1686 * main.c (captured_main_1): Update call to
1687 finish_ext_lang_initialization.
1688 * python/python.c (gdbpy_finish_initialization): Rename to...
1689 (gdbpy_initialize): ...this, update comment at definition, and
1690 update call to do_finish_initialization.
1691 (python_extension_ops): Update.
1692 (do_finish_initialization): Rename to...
1693 (do_initialize): ...this, and update comment.
1694
1695 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1696
1697 * main.c (captured_main_1): Add a call to
1698 finish_ext_lang_initialization.
1699 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1700
1701 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1704 (gdbscm_finish_initialization): Add code moved from
1705 _initialize_guile.
1706 (_initialize_guile): Move code to gdbscm_finish_initialization.
1707 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1708 _initialize_scm_arch.
1709 (_initialize_scm_arch): New function.
1710 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1711 into _initialize_scm_block.
1712 (_initialize_scm_block): New function.
1713 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1714 into _initialize_scm_frame.
1715 (_initialize_scm_frame): New function.
1716 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1717 into _initialize_scm_objfile.
1718 (_initialize_scm_objfile): New function.
1719 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1720 code into _initialize_scm_progspace.
1721 (_initialize_scm_progspace): New function.
1722 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1723 into _initialize_scm_symbol.
1724 (_initialize_scm_symbol): New function.
1725 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1726 into _initialize_scm_symtab.
1727 (_initialize_scm_symtab): New function.
1728 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1729 _initialize_scm_type.
1730 (_initialize_scm_type): New function.
1731
1732 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * python/py-arch.c (_initialize_py_arch): New function.
1735 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1736 * python/py-block.c (_initialize_py_block): New function.
1737 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1738 * python/py-inferior.c (_initialize_py_inferior): New function.
1739 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1740 * python/py-objfile.c (_initialize_py_objfile): New function.
1741 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1742 * python/py-progspace.c (_initialize_py_progspace): New function.
1743 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1744 * python/py-registers.c (_initialize_py_registers): New function.
1745 (gdbpy_initialize_registers): Move code to
1746 _initialize_py_registers.
1747 * python/py-symbol.c (_initialize_py_symbol): New function.
1748 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1749 * python/py-symtab.c (_initialize_py_symtab): New function.
1750 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1751 * python/py-type.c (_initialize_py_type): New function.
1752 (gdbpy_initialize_types): Move code to _initialize_py_type.
1753 * python/py-unwind.c (_initialize_py_unwind): New function.
1754 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1755 * python/python.c (_initialize_python): Move call to
1756 do_start_initialization to gdbpy_finish_initialization.
1757 (gdbpy_finish_initialization): Add call to
1758 do_start_initialization.
1759
1760 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * extension.c (struct scoped_default_signal): New struct.
1763 (scoped_default_sigint): New typedef.
1764 (finish_ext_lang_initialization): Make use of
1765 scoped_default_sigint.
1766
1767 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * main.c (captured_main_1): Don't pass argument to gdb_init.
1770 * top.c (gdb_init): Remove unused argument, and add header
1771 comment.
1772 * top.h (gdb_init): Remove argument.
1773
1774 2021-04-27 Luis Machado <luis.machado@linaro.org>
1775
1776 * psymtab.c (psymbol_functions::dump): Output newline.
1777 Remove wrap.
1778 * symmisc.c (dump_objfile): Likewise.
1779
1780 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1781 Simon Marchi <simon.marchi@polymtl.ca>
1782
1783 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1784 when attaching the 'auto_load_new_objfile' observer, so
1785 other observers can specify it as a dependency.
1786 * gdb/auto-load.h (struct token): Declare
1787 'auto_load_new_objfile_observer_token' as token to be used
1788 for the 'auto_load_new_objfile' observer.
1789 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1790 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1791 observer, so it gets notified after the latter.
1792
1793 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1794 Simon Marchi <simon.marchi@polymtl.ca>
1795
1796 * unittests/observable-selftests.c (dependency_test_counters):
1797 New.
1798 (observer_token0, observer_token1, observer_token2,
1799 observer_token3, observer_token4, observer_token5): New.
1800 (struct dependency_observer_data): New struct.
1801 (observer_dependency_test_callback): New function.
1802 (test_observers): New.
1803 (run_dependency_test): New function.
1804 (test_dependency): New.
1805 (_initialize_observer_selftest): Register dependency test.
1806
1807 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1808
1809 PR gdb/27773
1810 * cli/cli-dump.c (dump_binary_file): Check result of
1811 gdb_fopen_cloexec.
1812
1813 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1814
1815 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1816 by passing `process_stratum_target*` parameter.
1817
1818 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1819
1820 PR gdb/22640
1821 * typeprint.h (struct type_print_options): Add print_in_hex
1822 flag.
1823 (struct print_offset_data): Add print_in_hex flag, add a
1824 constructor accepting a type_print_options* argument.
1825 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1826 default value for print_in_hex.
1827 (print_offset_data::indentation): Allow more horizontal space.
1828 (print_offset_data::print_offset_data): Add ctor.
1829 (print_offset_data::maybe_print_hole, print_offset_data::update):
1830 Handle the print_in_hex flag.
1831 (whatis_exp): Handle 'x' and 'd' flags.
1832 (print_offsets_and_sizes_in_hex): Declare.
1833 (set_print_offsets_and_sizes_in_hex): Create.
1834 (show_print_offsets_and_sizes_in_hex): Create.
1835 (_initialize_typeprint): Update help message for the ptype
1836 command, register the 'set print type hex' and 'show print type
1837 hex' commands.
1838 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1839 (c_type_print_base): Construct the print_offset_data
1840 object using the type_print_optons parameter.
1841 * rust-lang.c (rust_language::print_type): Construct the
1842 print_offset_data object using the type_print_optons parameter.
1843 * NEWS: Mention the new flags of the ptype command.
1844
1845 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1846
1847 * typeprint.h (struct type_print_options): Move before
1848 print_offset_data.
1849
1850 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1851
1852 GDB 10.2 released.
1853
1854 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * observable.c (observer_debug): Change to bool.
1857
1858 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * dwarf2/read.c: Add 'unordered_set' include.
1861 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1862 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1863 of per_Bfd->filenames_cache cache, and use function local
1864 filenames_cache instead. Reindent.
1865 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1866
1867 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1868
1869 * breakpoint.c (iterate_over_bp_locations): Change callback to
1870 function view, remove data parameter.
1871 * breakpoint.h (iterate_over_bp_locations): Likewise.
1872 * record-full.c (record_full_sync_record_breakpoints): Remove
1873 data parameter.
1874
1875 2021-04-22 Tom Tromey <tom@tromey.com>
1876
1877 * c-typeprint.c (c_type_print_base_struct_union): Use
1878 print_spaces_filtered_with_print_options.
1879
1880 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 PR gdb/27757
1883 * python/py-type.c (typy_range): Check that bounds are constant
1884 before accessing them as such.
1885 * guile/scm-type.c (gdbscm_type_range): Likewise.
1886
1887 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1888
1889 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1890 * inferior.c (inferior::add_continuation): New method, adapted
1891 from 'add_inferior_continuation'.
1892 (inferior::do_all_continuations): New method, adapted from
1893 'do_all_inferior_continuations'.
1894 (inferior::~inferior): Clear the list of continuations directly.
1895 * inferior.h (class inferior) <continuations>: Rename into...
1896 <m_continuations>: ...this and make private.
1897 * continuations.c: Remove.
1898 * continuations.h: Remove.
1899 * event-top.c: Don't include "continuations.h".
1900
1901 Update the users below.
1902 * inf-loop.c (inferior_event_handler)
1903 * infcmd.c (attach_command)
1904 (notice_new_inferior): Update.
1905
1906 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1907
1908 * inferior.h (class inferior) <continuations>: Change the type
1909 to be an std::list of std::function's.
1910 Update the references and uses below.
1911 * continuations.c (struct continuation): Delete.
1912 (make_continuation): Delete.
1913 (do_my_continuations_1): Delete.
1914 (do_my_continuations): Delete.
1915 (discard_my_continuations_1): Delete.
1916 (discard_my_continuations): Delete.
1917 (add_inferior_continuation): Update.
1918 (do_all_inferior_continuations): Update.
1919 (discard_all_inferior_continuations): Update.
1920 * continuations.h (add_inferior_continuation): Update to take
1921 an std::function as the parameter.
1922 * infcmd.c (struct attach_command_continuation_args): Delete.
1923 (attach_command_continuation): Delete.
1924 (attach_command_continuation_free_args): Delete.
1925 (attach_command): Update.
1926 (notice_new_inferior): Update.
1927
1928 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1929
1930 * continuations.h: Update the general comment.
1931 * inferior.h (class inferior) <continuations>: Update the comment.
1932 * interps.c: Do not include "continuations.h".
1933
1934 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1935
1936 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1937 parameter. Update the references below.
1938 * continuations.c (do_my_continuations_1)
1939 (do_my_continuations)
1940 (do_all_inferior_continuations): Update.
1941 * inf-loop.c (inferior_event_handler): Update.
1942 * infcmd.c (attach_command_continuation): Update.
1943
1944 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1945
1946 * infcmd.c (attach_post_wait): Update the function comment.
1947
1948 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1949
1950 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1951 Update the references below.
1952 (struct attach_command_continuation_args)
1953 (attach_command_continuation)
1954 (attach_command_continuation_free_args)
1955 (attach_command)
1956 (notice_new_inferior): Update to remove the reference to 'args'.
1957
1958 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1959 Tom de Vries <tdevries@suse.de>
1960
1961 PR remote/27710
1962 * remote.c (remote_target_is_non_stop_p): New function.
1963 * remote.h (remote_target_is_non_stop_p): Declare.
1964 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1965 to check non-stopness using notif_state->remote rather current target.
1966
1967 2021-04-22 Tom Tromey <tom@tromey.com>
1968
1969 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1970 (struct typed_val_int) <val>: Now ULONGEST.
1971 (rust_parser::parse_array_type): Remove negative check.
1972 (rust_lex_int_test): Change 'value' to ULONGEST.
1973
1974 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * arch-utils.c (default_addressable_memory_unit_size): Return a
1977 value based on bfd's bits per byte.
1978
1979 2021-04-21 Tom Tromey <tom@tromey.com>
1980
1981 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1982 unsigned char.
1983 (struct dwarf2_per_cu_data): Rearrange.
1984 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1985 unsigned char.
1986 (struct comp_unit_head): Rearrange.
1987 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1988
1989 2021-04-21 Tom de Vries <tdevries@suse.de>
1990
1991 PR build/27681
1992 * configure.ac: Remove --without-included-regex/--with-included-regex.
1993 * config.in: Regenerate.
1994 * configure: Regenerate.
1995 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1996
1997 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1998
1999 * breakpoint.h (create_breakpoint): Add a new parameter,
2000 'force_condition'.
2001 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2002 argument when 'parse_extra' is false to check if the condition
2003 is invalid at all of the breakpoint locations.
2004 Update the users below.
2005 (break_command_1)
2006 (dprintf_command)
2007 (trace_command)
2008 (ftrace_command)
2009 (strace_command)
2010 (create_tracepoint_from_upload): Update.
2011 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2012 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2013 * python/py-breakpoint.c (bppy_init): Update.
2014 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2015
2016 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2017
2018 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2019 disabled-by-condition locations on MI-like output.
2020 (breakpoint_1): Do not display the disabled-by-condition footnote
2021 if the output is MI-like.
2022
2023 2021-04-21 Frederic Cambus <fred@statdns.com>
2024
2025 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2026 update year range in generated copyright notices.
2027
2028 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2029
2030 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2031 qualifier_seq_noopt.
2032
2033 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2034
2035 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2036
2037 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2040 (producer_is_icc): Replace use of std::regex with gdb's
2041 compiled_regex.
2042
2043 2021-04-17 Tom Tromey <tom@tromey.com>
2044
2045 PR gdb/23743:
2046 * dwarf2/read.c (class offset_view): New.
2047 (struct symbol_table_slot): Remove.
2048 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2049 <symbol_name_index, symbol_vec_index>: New methods.
2050 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2051 Rewrite.
2052 (read_gdb_index_from_buffer): Update.
2053 (struct dw2_symtab_iterator) <vec>: Change type.
2054 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2055 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2056 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2057 <append_array, append_offset>: New methods.
2058 (write_hash_table, add_address_entry, write_gdbindex_1)
2059 (write_debug_names): Update.
2060 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2061
2062 2021-04-17 Tom Tromey <tom@tromey.com>
2063
2064 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2065 partial_symtabs.
2066
2067 2021-04-17 Tom Tromey <tom@tromey.com>
2068
2069 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2070 from map_matching_symbols. Change parameters.
2071 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2072 Rename from map_matching_symbols. Change parameters.
2073 * dwarf2/read.c (struct dwarf2_gdb_index)
2074 <expand_matching_symbols>: Rename from map_matching_symbols.
2075 Change parameters.
2076 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2077 Rename from map_matching_symbols. Change parameters.
2078 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2079 dw2_map_matching_symbols. Change parameters.
2080 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2081 implementation.
2082 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2083 map_matching_symbols. Change parameters.
2084 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2085 from map_matching_symbols. Change parameters.
2086 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2087 map_matching_symbols. Change parameters.
2088 * ada-lang.c (map_matching_symbols): New function.
2089 (add_nonlocal_symbols): Update.
2090
2091 2021-04-17 Tom Tromey <tom@tromey.com>
2092
2093 * quick-symbol.h (struct quick_symbol_functions)
2094 <expand_symtabs_with_fullname>: Remove.
2095 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2096 Remove.
2097 * psympriv.h (struct psymbol_functions)
2098 <expand_symtabs_with_fullname>: Remove.
2099 * dwarf2/read.c (struct dwarf2_base_index_functions)
2100 <expand_symtabs_with_fullname>: Remove.
2101 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2102 Remove.
2103 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2104 Update comment.
2105 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2106 Rewrite.
2107
2108 2021-04-17 Tom Tromey <tom@tromey.com>
2109
2110 * symfile-debug.c (objfile::expand_symtabs_for_function):
2111 Rewrite.
2112 * quick-symbol.h (struct quick_symbol_functions)
2113 <expand_symtabs_for_function>: Remove.
2114 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2115 Remove.
2116 * psympriv.h (struct psymbol_functions)
2117 <expand_symtabs_for_function>: Remove.
2118 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2119 Update comment.
2120 * dwarf2/read.c (struct dwarf2_gdb_index)
2121 <expand_symtabs_for_function>: Remove.
2122 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2123 Remove.
2124 (find_slot_in_mapped_hash): Remove.
2125 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2126 (dw2_symtab_iter_init): Remove one overload.
2127 (dwarf2_gdb_index::expand_symtabs_for_function)
2128 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2129
2130 2021-04-17 Tom Tromey <tom@tromey.com>
2131
2132 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2133 Rewrite.
2134 * quick-symbol.h (struct quick_symbol_functions)
2135 <map_symtabs_matching_filename>: Remove.
2136 * psymtab.c (partial_map_expand_apply)
2137 (psymbol_functions::map_symtabs_matching_filename): Remove.
2138 * psympriv.h (struct psymbol_functions)
2139 <map_symtabs_matching_filename>: Remove.
2140 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2141 Update comment.
2142 * dwarf2/read.c (struct dwarf2_base_index_functions)
2143 <map_symtabs_matching_filename>: Remove.
2144 (dw2_map_expand_apply)
2145 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2146 Remove.
2147
2148 2021-04-17 Tom Tromey <tom@tromey.com>
2149
2150 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2151 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2152 Remove.
2153 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2154 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2155 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2156 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2157 Remove.
2158 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2159 (dwarf2_gdb_index::lookup_symbol)
2160 (dwarf2_debug_names_index::lookup_symbol): Remove.
2161
2162 2021-04-17 Tom Tromey <tom@tromey.com>
2163
2164 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2165 * symmisc.c (maintenance_expand_symtabs): Update.
2166 * symfile.c (expand_symtabs_matching): Update.
2167 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2168 parameter.
2169 * quick-symbol.h (struct quick_symbol_functions)
2170 <expand_symtabs_matching>: Add 'domain' parameter.
2171 * psymtab.c (recursively_search_psymtabs)
2172 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2173 parameter.
2174 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2175 Add 'domain' parameter.
2176 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2177 'domain' parameter.
2178 * linespec.c (iterate_over_all_matching_symtabs): Update.
2179 * dwarf2/read.c (struct dwarf2_gdb_index)
2180 <expand_symtabs_matching>: Add 'domain' parameter.
2181 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2182 'domain' parameter.
2183 (dw2_expand_symtabs_matching)
2184 (dwarf2_gdb_index::expand_symtabs_matching)
2185 (dw2_debug_names_iterator)
2186 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2187 parameter.
2188
2189 2021-04-17 Tom Tromey <tom@tromey.com>
2190
2191 * symtab.c (global_symbol_searcher::expand_symtabs)
2192 (default_collect_symbol_completion_matches_break_on): Update.
2193 * symmisc.c (maintenance_expand_symtabs): Update.
2194 * symfile.h (expand_symtabs_matching): Add search_flags
2195 parameter.
2196 * symfile.c (expand_symtabs_matching): Add search_flags
2197 parameter.
2198 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2199 search_flags parameter.
2200 * quick-symbol.h (struct quick_symbol_functions)
2201 <expand_symtabs_matching>: Add search_flags parameter.
2202 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2203 * psymtab.c (recursively_search_psymtabs)
2204 (psymbol_functions::expand_symtabs_matching): Add search_flags
2205 parameter.
2206 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2207 Add search_flags parameter.
2208 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2209 search_flags parameter.
2210 * linespec.c (iterate_over_all_matching_symtabs): Update.
2211 * dwarf2/read.c (struct dwarf2_gdb_index)
2212 <expand_symtabs_matching>: Add search_flags parameter.
2213 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2214 search_flags parameter.
2215 (dw2_map_matching_symbols): Update.
2216 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2217 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2218 parameter.
2219 (dw2_debug_names_iterator): Change block_index to search flags.
2220 <m_block_index>: Likewise.
2221 (dw2_debug_names_iterator::next)
2222 (dwarf2_debug_names_index::lookup_symbol)
2223 (dwarf2_debug_names_index::expand_symtabs_for_function)
2224 (dwarf2_debug_names_index::map_matching_symbols)
2225 (dwarf2_debug_names_index::map_matching_symbols): Update.
2226 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2227 search_flags parameter.
2228 * ada-lang.c (ada_add_global_exceptions)
2229 (collect_symbol_completion_matches): Update.
2230
2231 2021-04-17 Tom Tromey <tom@tromey.com>
2232
2233 * symtab.c (default_collect_symbol_completion_matches_break_on):
2234 Update.
2235 * symfile.h (expand_symtabs_matching): Return bool.
2236 * symfile.c (expand_symtabs_matching): Return bool.
2237 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2238 bool.
2239 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2240 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2241 bool.
2242 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2243 bool.
2244 * psympriv.h (struct psymbol_functions)
2245 <expand_symtabs_matching>: Return bool.
2246 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2247 bool.
2248 * dwarf2/read.c (struct dwarf2_gdb_index)
2249 <expand_symtabs_matching>: Return bool.
2250 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2251 Return bool.
2252 (dw2_expand_symtabs_matching_symbol): Return bool.
2253 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2254 (dw2_expand_symtabs_matching)
2255 (dwarf2_gdb_index::expand_symtabs_matching)
2256 (dwarf2_debug_names_index::expand_symtabs_matching)
2257 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2258
2259 2021-04-17 Tom Tromey <tom@tromey.com>
2260
2261 * quick-symbol.h (enum block_search_flag_values): New.
2262 (block_search_flags): New enum flags type.
2263
2264 2021-04-16 Tom Tromey <tom@tromey.com>
2265
2266 * rust-parse.c: New file.
2267 * rust-exp.y: Remove.
2268 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2269 (SFILES): Remove rust-exp.y.
2270 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2271
2272 2021-04-16 Luis Machado <luis.machado@linaro.org>
2273
2274 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2275
2276 2021-04-15 John Baldwin <jhb@FreeBSD.org>
2277
2278 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2279 use throughout file.
2280
2281 2021-04-15 Tom Tromey <tromey@adacore.com>
2282
2283 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2284 arrays.
2285
2286 2021-04-15 Tom Tromey <tromey@adacore.com>
2287
2288 * printcmd.c (print_variable_and_value): Use
2289 common_val_print_checked.
2290
2291 2021-04-15 Tom Tromey <tromey@adacore.com>
2292
2293 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2294 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2295 Update.
2296 * p-exp.y (variable): Update.
2297 * m2-exp.y (variable): Update.
2298 * go-exp.y (variable): Update.
2299 * expprint.c (dump_for_expression): New overload.
2300 * expop.h (check_objfile): New overload.
2301 (check_constant): New overload.
2302 (class var_value_operation): Use block_symbol.
2303 <get_symbol>: Rewrite.
2304 * eval.c (var_value_operation::evaluate)
2305 (var_value_operation::evaluate_funcall)
2306 (var_value_operation::evaluate_for_address)
2307 (var_value_operation::evaluate_for_address)
2308 (var_value_operation::evaluate_with_coercion)
2309 (var_value_operation::evaluate_for_sizeof)
2310 (var_value_operation::evaluate_for_cast): Update.
2311 * d-exp.y (PrimaryExpression): Update.
2312 * c-exp.y (variable): Update.
2313 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2314 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2315 (ada_var_value_operation::evaluate)
2316 (ada_var_value_operation::resolve)
2317 (ada_funcall_operation::resolve): Update.
2318 * ada-exp.y (write_var_from_sym, write_object_renaming)
2319 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2320 (maybe_overload): Update.
2321 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2322
2323 2021-04-15 Tom Tromey <tom@tromey.com>
2324 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * NEWS: Add entry.
2327 * main.c (captured_main_1): Call check_quiet_mode.
2328 * top.c (startup_quiet): New global.
2329 (check_quiet_mode): New function.
2330 (show_startup_quiet): New function.
2331 (init_main): Register new command.
2332 * top.h (check_quiet_mode): Declare.
2333
2334 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 PR cli/25956
2337 * NEWS: Mention new early init files and command line options.
2338 * config.in: Regenerate.
2339 * configure: Regenerate.
2340 * configure.ac: Define GDBEARLYINIT.
2341 * main.c (get_earlyinit_files): New function.
2342 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2343 CMDARG_EARLYINIT_COMMAND.
2344 (captured_main_1): Add support for new command line flags, and for
2345 processing startup files.
2346 (print_gdb_help): Include startup files in the output.
2347
2348 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2351 (relocate_file_path_maybe_in_datadir): ...this.
2352 (class gdb_initfile_finder): New class.
2353 (get_init_files): Now uses gdb_initfile_finder.
2354 (print_gdb_help): Print 'None found' when there are no init files.
2355
2356 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2357
2358 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2359 corresponding child of the abstract DIE when iterating the
2360 children of the concrete DIE.
2361
2362 2021-04-13 Tom de Vries <tdevries@suse.de>
2363
2364 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2365 type to regoff_t *.
2366
2367 2021-04-13 Luis Machado <luis.machado@linaro.org>
2368
2369 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2370 hex values.
2371
2372 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2373
2374 * rs6000-tdep.c: Add support for single-stepping of
2375 prefixed instructions.
2376
2377 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2378
2379 PR gdb/27525
2380 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2381 handle the addpcis/lnia instruction.
2382
2383 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2384
2385 * MAINTAINERS (Write After Approval): Add myself.
2386
2387 2021-4-12 Carl Love <cel@us.ibm.com>
2388
2389 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2390 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2391 float128.
2392
2393 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2394
2395 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2396 * nat/windows-nat.h: Likewise.
2397
2398 2021-04-10 Eli Zaretskii <eliz@gnu.org>
2399
2400 * windows-nat.c (windows_nat::handle_load_dll): Call
2401 windows_add_dll if get_image_name failed to glean the name of the
2402 DLL by using the lpImageName pointer.
2403 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2404 (windows_add_dll): Now does what windows_add_all_dlls did before,
2405 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2406 specifies the address where the DLL was loaded into the inferior,
2407 and looks for the single DLL loaded at that address.
2408
2409 2021-04-09 Luis Machado <luis.machado@linaro.org>
2410
2411 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2412
2413 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2414
2415 * darwin-nat.c (darwin_nat_target::resume): Remove status
2416 variable.
2417
2418 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2419
2420 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2421 prologue end for Intel compilers.
2422 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2423 * producer.c (producer_is_icc_ge_19): New function.
2424 * producer.h (producer_is_icc_ge_19): New declaration.
2425
2426 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2427
2428 * producer.c: (producer_is_icc): Update for new version scheme.
2429 (producer_parsing_tests): Update names and expected results.
2430 * producer.h: (producer_is_icc): Update comment accordingly.
2431
2432 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2433
2434 * target.h (struct target_ops) <follow_fork>: Return void.
2435 (target_follow_fork): Likewise.
2436 * target.c (default_follow_fork): Likewise.
2437 (target_follow_fork): Likewise.
2438 * infrun.c (follow_fork_inferior): Adjust.
2439 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2440 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2441 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2442 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2443 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2444 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2445 * remote.c (class remote_target) <follow_fork>: Likewise.
2446 (remote_target::follow_fork): Likewise.
2447 * target-delegates.c: Re-generate.
2448
2449 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
2450
2451 * ctfread.c (fetch_tid_type): New function, use throughout file.
2452 (read_forward_type): New function.
2453 (read_type_record): Call read_forward_type.
2454
2455 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2456
2457 * f-exp.h (class fortran_structop_operation): New class.
2458 * f-exp.y (exp): Create fortran_structop_operation instead of the
2459 generic structop_operation.
2460 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2461 expression as EVAL_NORMAL if the result type was dynamic so we can
2462 extract the actual array bounds.
2463 (fortran_structop_operation::evaluate): New function.
2464
2465 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * eval.c (evaluate_subexp_standard): Remove
2468 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2469 STRUCTOP_PTR.
2470
2471 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * valops.c (value_cast): Call value_deeply_equal before performing
2474 any cast.
2475
2476 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2477
2478 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2479 the function.
2480
2481 2021-04-07 Caroline Tice <cmtice@google.com>
2482
2483 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2484 the search paths used resolve relative location of .dwo file.
2485
2486 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2489 assert.
2490 (dwarf2_section_info::get_file_name): Add an assert.
2491 (dwarf2_section_info::read_string): Display a minimal, sane error
2492 when the dwarf2_section_info is not associated with a bfd section.
2493
2494 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * top.c (staged_gdb_datadir): Update comment.
2497 (set_gdb_datadir): Copy the value of gdb_datadir back into
2498 staged_datadir.
2499 (init_main): Initialise staged_gdb_datadir.
2500
2501 2021-04-06 Tom de Vries <tdevries@suse.de>
2502
2503 PR breakpoints/25884
2504 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2505 stepping range.
2506
2507 2021-04-06 Tom de Vries <tdevries@suse.de>
2508
2509 PR tui/27680
2510 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2511 to style.parse.
2512
2513 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2514
2515 * avr-tdep.c (avr_frame_unwind_cache): Use
2516 trad_frame_saved_reg::is_addr.
2517
2518 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2519
2520 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2521 adjust callers.
2522
2523 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2526 objfile parameter for objfile_per_bfd_storage, adjust callers.
2527 (struct standard_psymtab) <standard_psymtab>: Likewise.
2528 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2529 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2530 * ctfread.c (struct ctf_psymtab): Likewise.
2531 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2532 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2533 (dwarf2_create_include_psymtab): Likewise.
2534 * objfiles.h (struct objfile_per_bfd_storage)
2535 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2536 <get_bfd>: New method.
2537 <m_bfd>: New field.
2538 * objfiles.c (get_objfile_bfd_data): Adjust.
2539
2540 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * psymtab.c (partial_symtab::partial_symtab): Change
2543 last_objfile_name to be an std::string.
2544 * symfile.c (allocate_symtab): Likewise.
2545
2546 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2547
2548 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2549 methods.
2550 (struct objfile) <intern>: Use
2551 objfile::objfile_per_bfd_storage::intern.
2552
2553 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2556 with type::is_flag_enum.
2557
2558 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2559
2560 * gdbtypes.h (struct type) <is_flag_enum,
2561 set_is_flag_enum>: New methods.
2562 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2563 write call sites to use type::set_is_flag_enum.
2564
2565 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2566
2567 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2568 with type::is_declared_class.
2569
2570 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2571
2572 * gdbtypes.h (struct type) <is_declared_class,
2573 set_is_declared_class>: New methods.
2574 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2575 write call sites to use type::set_is_declared_class.
2576
2577 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2578
2579 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2580 to avoid deprecation warnings.
2581
2582 2021-04-01 Martin Liska <mliska@suse.cz>
2583
2584 * cp-name-parser.y: Use startswith instead of strncmp.
2585 * m2-exp.y: Likewise.
2586 * macroexp.c (substitute_args): Likewise.
2587 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2588 * rust-exp.y: Likewise.
2589
2590 2021-03-31 Tom Tromey <tom@tromey.com>
2591
2592 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2593 with dw2_map_matching_symbols.
2594 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2595 dw2_expand_symtabs_matching.
2596
2597 2021-03-31 Tom Tromey <tromey@adacore.com>
2598
2599 * dwarf2/stringify.h: Fix typo.
2600
2601 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 PR gdb/27541
2604 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2605 with objfiles using READNOW.
2606
2607 2021-03-29 Tom Tromey <tromey@adacore.com>
2608
2609 * top.c (check_frame_language_change): Update.
2610 * language.c (language_info): Remove parameter.
2611 * language.h (language_info): Remove parameter.
2612
2613 2021-03-29 Luis Machado <luis.machado@linaro.org>
2614
2615 * compile/compile.c (get_args): Don't add empty argv entries.
2616
2617 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2618
2619 gdb:
2620 * procfs.c (procfs_target::attach): Define inf.
2621 Use it.
2622 (procfs_target::create_inferior): Likewise.
2623
2624 2021-03-28 Tom Tromey <tom@tromey.com>
2625
2626 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2627 (elf_symfile_read): Simplify.
2628 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2629 (make_lazy_dwarf_reader): New function.
2630 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2631 (dwarf2_initialize_objfile): Return void. Remove index_kind
2632 parameter. Push on 'qf' list.
2633 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2634 type. Remove 'index_kind' parameter.
2635 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2636
2637 2021-03-27 Tom Tromey <tom@tromey.com>
2638
2639 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2640
2641 2021-03-27 Tom Tromey <tom@tromey.com>
2642
2643 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2644
2645 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2646
2647 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2648 rid of 'local'.
2649
2650 2021-03-26 Tom Tromey <tom@tromey.com>
2651
2652 * symtab.c (struct output_source_filename_data): Add 'output'
2653 method and operator().
2654 (output_source_filename_data::output): Rename from
2655 output_source_filename.
2656 (output_partial_symbol_filename): Remove.
2657 (info_sources_command): Update.
2658 (struct add_partial_filename_data): Add operator().
2659 (add_partial_filename_data::operator()): Rename from
2660 maybe_add_partial_symtab_filename.
2661 (make_source_files_completion_list): Update.
2662 * symfile.c (quick_symbol_functions): Update.
2663 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2664 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2665 'need_fullname'. Remove 'data' parameter.
2666 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2667 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2668 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2669 Change type of 'fun' and 'need_fullname'. Remove 'data'
2670 parameter.
2671 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2672 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2673 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2674 parameter.
2675 (mi_cmd_file_list_exec_source_files): Update.
2676 * dwarf2/read.c
2677 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2678
2679 2021-03-26 Tom Tromey <tom@tromey.com>
2680
2681 * ada-lang.c (struct match_data): Add operator().
2682 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2683 (callback): Remove 'callback'.
2684
2685 2021-03-26 Tom Tromey <tom@tromey.com>
2686
2687 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2688 call make_ignore_params once.
2689
2690 2021-03-26 Tom Tromey <tom@tromey.com>
2691
2692 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2693 "user" check.
2694
2695 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2696 Pedro Alves <pedro@palves.net>
2697
2698 * async-event.c: Include "infrun.h".
2699 (async_event_handler_marked): New.
2700 * async-event.h (async_event_handler_marked): Declare.
2701 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2702 inferior before calling target method. Don't commit-resumed if
2703 target_has_pending_events is true.
2704 * remote.c (remote_target::has_pending_events): New.
2705 * target-delegates.c: Regenerate.
2706 * target.c (target_has_pending_events): New.
2707 * target.h (target_ops::has_pending_events): New target method.
2708 (target_has_pending_events): New.
2709
2710 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2711 Pedro Alves <pedro@palves.net>
2712
2713 * infcmd.c (run_command_1, attach_command, detach_command)
2714 (interrupt_target_1): Use scoped_disable_commit_resumed.
2715 * infrun.c (do_target_resume): Remove
2716 target_commit_resume call.
2717 (commit_resume_all_targets): Remove.
2718 (maybe_set_commit_resumed_all_targets): New.
2719 (maybe_call_commit_resumed_all_targets): New.
2720 (enable_commit_resumed): New.
2721 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2722 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2723 (scoped_disable_commit_resumed::reset)
2724 (scoped_disable_commit_resumed::reset_and_commit)
2725 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2726 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2727 New.
2728 (proceed): Use scoped_disable_commit_resumed and
2729 maybe_call_commit_resumed_all_targets.
2730 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2731 * infrun.h (struct scoped_disable_commit_resumed): New.
2732 (maybe_call_commit_resumed_all_process_targets): New.
2733 (struct scoped_enable_commit_resumed): New.
2734 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2735 * process-stratum-target.h (class process_stratum_target):
2736 <commit_resumed_state>: New.
2737 * record-full.c (record_full_wait_1): Change commit_resumed_state
2738 around calling commit_resumed.
2739 * remote.c (class remote_target) <commit_resume>: Rename to...
2740 <commit_resumed>: ... this.
2741 (struct stop_reply): Move up.
2742 (remote_target::commit_resume): Rename to...
2743 (remote_target::commit_resumed): ... this. Check if there is any
2744 thread pending vCont resume.
2745 (remote_target::remote_stop_ns): Generate stop replies for resumed
2746 but pending vCont threads.
2747 (remote_target::wait_ns): Add gdb_assert.
2748 * target-delegates.c: Regenerate.
2749 * target.c (target_wait, target_resume): Assert that the current
2750 process_stratum target isn't in commit-resumed state.
2751 (defer_target_commit_resume): Remove.
2752 (target_commit_resume): Remove.
2753 (target_commit_resumed): New.
2754 (make_scoped_defer_target_commit_resume): Remove.
2755 (target_stop): Assert that the current process_stratum target
2756 isn't in commit-resumed state.
2757 * target.h (struct target_ops) <commit_resume>: Rename to ...
2758 <commit_resumed>: ... this.
2759 (target_commit_resume): Remove.
2760 (target_commit_resumed): New.
2761 (make_scoped_defer_target_commit_resume): Remove.
2762 * top.c (wait_sync_command_done): Use
2763 scoped_enable_commit_resumed.
2764
2765 2021-03-26 Pedro Alves <pedro@palves.net>
2766
2767 * target.c (target_always_non_stop_p): Also check whether the
2768 target can async.
2769
2770 2021-03-26 Tom Tromey <tom@tromey.com>
2771
2772 * dwarf2/read.c (dwarf2_read_debug_names)
2773 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2774 (dw2_debug_names_iterator::next, create_type_unit_group):
2775 Simplify.
2776
2777 2021-03-25 Pedro Alves <pedro@palves.net>
2778
2779 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2780 around setting the breakpoint.
2781
2782 2021-03-25 Pedro Alves <pedro@palves.net>
2783
2784 * remote.c
2785 (remote_target::check_pending_events_prevent_wildcard_vcont):
2786 Check whether the event's ptid is not null_ptid before looking up
2787 the corresponding inferior.
2788
2789 2021-03-24 Changbin Du <changbin.du@gmail.com>
2790
2791 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2792 read_code.
2793
2794 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2795
2796 * target.h (current_top_target): Remove, make callers use the
2797 current inferior instead.
2798 * target.c (current_top_target): Remove.
2799
2800 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2801
2802 * target.h (target_shortname): Change to function declaration.
2803 (target_longname): Likewise.
2804 (target_attach_no_wait): Likewise.
2805 (target_post_attach): Likewise.
2806 (target_prepare_to_store): Likewise.
2807 (target_supports_enable_disable_tracepoint): Likewise.
2808 (target_supports_string_tracing): Likewise.
2809 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2810 (target_supports_dumpcore): Likewise.
2811 (target_dumpcore): Likewise.
2812 (target_can_run_breakpoint_commands): Likewise.
2813 (target_files_info): Likewise.
2814 (target_post_startup_inferior): Likewise.
2815 (target_insert_fork_catchpoint): Likewise.
2816 (target_remove_fork_catchpoint): Likewise.
2817 (target_insert_vfork_catchpoint): Likewise.
2818 (target_remove_vfork_catchpoint): Likewise.
2819 (target_insert_exec_catchpoint): Likewise.
2820 (target_remove_exec_catchpoint): Likewise.
2821 (target_set_syscall_catchpoint): Likewise.
2822 (target_rcmd): Likewise.
2823 (target_can_lock_scheduler): Likewise.
2824 (target_can_async_p): Likewise.
2825 (target_is_async_p): Likewise.
2826 (target_execution_direction): Likewise.
2827 (target_extra_thread_info): Likewise.
2828 (target_pid_to_exec_file): Likewise.
2829 (target_thread_architecture): Likewise.
2830 (target_find_memory_regions): Likewise.
2831 (target_make_corefile_notes): Likewise.
2832 (target_get_bookmark): Likewise.
2833 (target_goto_bookmark): Likewise.
2834 (target_stopped_by_watchpoint): Likewise.
2835 (target_stopped_by_sw_breakpoint): Likewise.
2836 (target_supports_stopped_by_sw_breakpoint): Likewise.
2837 (target_stopped_by_hw_breakpoint): Likewise.
2838 (target_supports_stopped_by_hw_breakpoint): Likewise.
2839 (target_have_steppable_watchpoint): Likewise.
2840 (target_can_use_hardware_watchpoint): Likewise.
2841 (target_region_ok_for_hw_watchpoint): Likewise.
2842 (target_can_do_single_step): Likewise.
2843 (target_insert_watchpoint): Likewise.
2844 (target_remove_watchpoint): Likewise.
2845 (target_insert_hw_breakpoint): Likewise.
2846 (target_remove_hw_breakpoint): Likewise.
2847 (target_can_accel_watchpoint_condition): Likewise.
2848 (target_can_execute_reverse): Likewise.
2849 (target_get_ada_task_ptid): Likewise.
2850 (target_filesystem_is_local): Likewise.
2851 (target_trace_init): Likewise.
2852 (target_download_tracepoint): Likewise.
2853 (target_can_download_tracepoint): Likewise.
2854 (target_download_trace_state_variable): Likewise.
2855 (target_enable_tracepoint): Likewise.
2856 (target_disable_tracepoint): Likewise.
2857 (target_trace_start): Likewise.
2858 (target_trace_set_readonly_regions): Likewise.
2859 (target_get_trace_status): Likewise.
2860 (target_get_tracepoint_status): Likewise.
2861 (target_trace_stop): Likewise.
2862 (target_trace_find): Likewise.
2863 (target_get_trace_state_variable_value): Likewise.
2864 (target_save_trace_data): Likewise.
2865 (target_upload_tracepoints): Likewise.
2866 (target_upload_trace_state_variables): Likewise.
2867 (target_get_raw_trace_data): Likewise.
2868 (target_get_min_fast_tracepoint_insn_len): Likewise.
2869 (target_set_disconnected_tracing): Likewise.
2870 (target_set_circular_trace_buffer): Likewise.
2871 (target_set_trace_buffer_size): Likewise.
2872 (target_set_trace_notes): Likewise.
2873 (target_get_tib_address): Likewise.
2874 (target_set_permissions): Likewise.
2875 (target_static_tracepoint_marker_at): Likewise.
2876 (target_static_tracepoint_markers_by_strid): Likewise.
2877 (target_traceframe_info): Likewise.
2878 (target_use_agent): Likewise.
2879 (target_can_use_agent): Likewise.
2880 (target_augmented_libraries_svr4_read): Likewise.
2881 (target_log_command): Likewise.
2882 * target.c (target_shortname): New.
2883 (target_longname): New.
2884 (target_attach_no_wait): New.
2885 (target_post_attach): New.
2886 (target_prepare_to_store): New.
2887 (target_supports_enable_disable_tracepoint): New.
2888 (target_supports_string_tracing): New.
2889 (target_supports_evaluation_of_breakpoint_conditions): New.
2890 (target_supports_dumpcore): New.
2891 (target_dumpcore): New.
2892 (target_can_run_breakpoint_commands): New.
2893 (target_files_info): New.
2894 (target_post_startup_inferior): New.
2895 (target_insert_fork_catchpoint): New.
2896 (target_remove_fork_catchpoint): New.
2897 (target_insert_vfork_catchpoint): New.
2898 (target_remove_vfork_catchpoint): New.
2899 (target_insert_exec_catchpoint): New.
2900 (target_remove_exec_catchpoint): New.
2901 (target_set_syscall_catchpoint): New.
2902 (target_rcmd): New.
2903 (target_can_lock_scheduler): New.
2904 (target_can_async_p): New.
2905 (target_is_async_p): New.
2906 (target_execution_direction): New.
2907 (target_extra_thread_info): New.
2908 (target_pid_to_exec_file): New.
2909 (target_thread_architecture): New.
2910 (target_find_memory_regions): New.
2911 (target_make_corefile_notes): New.
2912 (target_get_bookmark): New.
2913 (target_goto_bookmark): New.
2914 (target_stopped_by_watchpoint): New.
2915 (target_stopped_by_sw_breakpoint): New.
2916 (target_supports_stopped_by_sw_breakpoint): New.
2917 (target_stopped_by_hw_breakpoint): New.
2918 (target_supports_stopped_by_hw_breakpoint): New.
2919 (target_have_steppable_watchpoint): New.
2920 (target_can_use_hardware_watchpoint): New.
2921 (target_region_ok_for_hw_watchpoint): New.
2922 (target_can_do_single_step): New.
2923 (target_insert_watchpoint): New.
2924 (target_remove_watchpoint): New.
2925 (target_insert_hw_breakpoint): New.
2926 (target_remove_hw_breakpoint): New.
2927 (target_can_accel_watchpoint_condition): New.
2928 (target_can_execute_reverse): New.
2929 (target_get_ada_task_ptid): New.
2930 (target_filesystem_is_local): New.
2931 (target_trace_init): New.
2932 (target_download_tracepoint): New.
2933 (target_can_download_tracepoint): New.
2934 (target_download_trace_state_variable): New.
2935 (target_enable_tracepoint): New.
2936 (target_disable_tracepoint): New.
2937 (target_trace_start): New.
2938 (target_trace_set_readonly_regions): New.
2939 (target_get_trace_status): New.
2940 (target_get_tracepoint_status): New.
2941 (target_trace_stop): New.
2942 (target_trace_find): New.
2943 (target_get_trace_state_variable_value): New.
2944 (target_save_trace_data): New.
2945 (target_upload_tracepoints): New.
2946 (target_upload_trace_state_variables): New.
2947 (target_get_raw_trace_data): New.
2948 (target_get_min_fast_tracepoint_insn_len): New.
2949 (target_set_disconnected_tracing): New.
2950 (target_set_circular_trace_buffer): New.
2951 (target_set_trace_buffer_size): New.
2952 (target_set_trace_notes): New.
2953 (target_get_tib_address): New.
2954 (target_set_permissions): New.
2955 (target_static_tracepoint_marker_at): New.
2956 (target_static_tracepoint_markers_by_strid): New.
2957 (target_traceframe_info): New.
2958 (target_use_agent): New.
2959 (target_can_use_agent): New.
2960 (target_augmented_libraries_svr4_read): New.
2961 (target_log_command): New.
2962 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2963 * infrun.c (set_schedlock_func): Adjust.
2964 * mi/mi-main.c (exec_reverse_continue): Adjust.
2965 * reverse.c (exec_reverse_once): Adjust.
2966 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2967 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2968 * remote-sim.c (gdbsim_target::detach): Adjust.
2969 (gdbsim_target::files_info): Adjust.
2970
2971 2021-03-24 Tom Tromey <tom@tromey.com>
2972
2973 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2974 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2975 (check_match, dw2_expand_symtabs_matching)
2976 (dwarf2_debug_names_index::map_matching_symbols)
2977 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2978
2979 2021-03-24 Keith Seitz <keiths@redhat.com>
2980
2981 * compile/compile-cplus-types.c
2982 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2983 thinko.
2984
2985 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2986
2987 * gdbarch.sh (gdbarch_data_registry): Make static.
2988 * gdbarch.c: Re-generate.
2989
2990 2021-03-24 Luis Machado <luis.machado@linaro.org>
2991
2992 * NEWS: Mention memory tagging changes.
2993
2994 2021-03-24 Luis Machado <luis.machado@linaro.org>
2995
2996 * printcmd.c (decode_format): Handle the 'm' modifier.
2997 (do_examine): Display allocation tags when required/supported.
2998 (should_validate_memtags): New function.
2999 (print_command_1): Display memory tag mismatches.
3000 * valprint.c (show_memory_tag_violations): New function.
3001 (value_print_option_defs): Add new option "memory-tag-violations".
3002 (user_print_options) <memory_tag_violations>: Initialize to 1.
3003 * valprint.h (struct format_data) <print_tags>: New field.
3004 (value_print_options) <memory_tag_violations>: New field.
3005
3006 2021-03-24 Luis Machado <luis.machado@linaro.org>
3007
3008 * printcmd.c: Include gdbsupport/rsp-low.h.
3009 (memory_tag_list): New static global.
3010 (process_print_command_args): Factored out of
3011 print_command_1.
3012 (print_command_1): Use process_print_command_args.
3013 (show_addr_not_tagged, show_memory_tagging_unsupported)
3014 (memory_tag_command, memory_tag_print_tag_command)
3015 (memory_tag_print_logical_tag_command)
3016 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3017 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3018 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3019 functions.
3020 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3021
3022 2021-03-24 Luis Machado <luis.machado@linaro.org>
3023
3024 * aarch64-linux-tdep.c
3025 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3026 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3027
3028 2021-03-24 Luis Machado <luis.machado@linaro.org>
3029
3030 * aarch64-linux-tdep.c
3031 (aarch64_linux_report_signal_info): New function.
3032 (aarch64_linux_init_abi): Register
3033 aarch64_linux_report_signal_info as the report_signal_info hook.
3034 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3035 (SEGV_MTESERR): Define.
3036
3037 2021-03-24 Luis Machado <luis.machado@linaro.org>
3038
3039 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3040 (aarch64_linux_ltag_tests): New function.
3041 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3042
3043 2021-03-24 Luis Machado <luis.machado@linaro.org>
3044
3045 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3046 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3047 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3048 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3049 functions.
3050 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3051 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3052 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3053 (aarch64_linux_get_ltag): New functions.
3054 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3055 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3056 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3057 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3058
3059 2021-03-24 Luis Machado <luis.machado@linaro.org>
3060
3061 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3062 bit.
3063 (struct smaps_data): New struct.
3064 (decode_vmflags): Handle the 'mt' flag.
3065 (parse_smaps_data): New function, refactored from
3066 linux_find_memory_regions_full.
3067 (linux_address_in_memtag_page): New function.
3068 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3069 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3070
3071 2021-03-24 Luis Machado <luis.machado@linaro.org>
3072
3073 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3074 instead of char arrays.
3075
3076 2021-03-24 Luis Machado <luis.machado@linaro.org>
3077
3078 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3079 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3080 nat/aarch64-mte-linux-ptrace.h.
3081 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3082 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3083 override.
3084 <fetch_memtags>: New method override.
3085 <store_memtags>: New method override.
3086 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3087 (aarch64_linux_nat_target::fetch_memtags): New method.
3088 (aarch64_linux_nat_target::store_memtags): New method.
3089 * arch/aarch64-mte-linux.c: New file.
3090 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3091 (AARCH64_MTE_GRANULE_SIZE): Define.
3092 (aarch64_memtag_type): New enum.
3093 (aarch64_mte_get_tag_granules): New prototype.
3094 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3095 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3096 * nat/aarch64-mte-linux-ptrace.c: New file.
3097 * nat/aarch64-mte-linux-ptrace.h: New file.
3098
3099 2021-03-24 Luis Machado <luis.machado@linaro.org>
3100
3101 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3102 * nat/aarch64-mte-linux-ptrace.h: New file.
3103
3104 2021-03-24 Luis Machado <luis.machado@linaro.org>
3105
3106 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3107 (store_mteregs_to_thread): New function.
3108 (aarch64_linux_nat_target::fetch_registers): Update to call
3109 fetch_mteregs_from_thread.
3110 (aarch64_linux_nat_target::store_registers): Update to call
3111 store_mteregs_to_thread.
3112 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3113 (aarch64_cannot_store_register): Handle MTE registers.
3114 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3115 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3116 <has_mte>: New method.
3117 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3118
3119 2021-03-24 Luis Machado <luis.machado@linaro.org>
3120
3121 * aarch64-linux-nat.c
3122 (aarch64_linux_nat_target::read_description): Take MTE flag into
3123 account.
3124 Slight refactor to hwcap flag checking.
3125 * aarch64-linux-tdep.c
3126 (aarch64_linux_core_read_description): Likewise.
3127 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3128 MTE.
3129 (aarch64_read_description): Add mte_p parameter and update to use it.
3130 Update the documentation.
3131 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3132 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3133 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3134 (aarch64_create_target_description): Add mte_p parameter and update
3135 the code to use it.
3136 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3137 parameter.
3138 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3139 * features/aarch64-mte.c: New file, generated.
3140 * features/aarch64-mte.xml: New file.
3141
3142 2021-03-24 Luis Machado <luis.machado@linaro.org>
3143
3144 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3145 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3146 * aarch64-linux-tdep.c: Likewise
3147 * arch/aarch64-mte-linux.h: New file.
3148
3149 2021-03-24 Luis Machado <luis.machado@linaro.org>
3150
3151 * remote: Include gdbsupport/selftest.h.
3152 (test_memory_tagging_functions): New function.
3153 (_initialize_remote): Register test_memory_tagging_functions.
3154
3155 2021-03-24 Luis Machado <luis.machado@linaro.org>
3156
3157 * remote.c (PACKET_memory_tagging_feature): New enum.
3158 (remote_memory_tagging_p): New function.
3159 (remote_protocol_features): New "memory-tagging" entry.
3160 (remote_target::remote_query_supported): Handle memory tagging
3161 support.
3162 (remote_target::supports_memory_tagging): Implement.
3163 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3164 (create_store_memtags_request): New functions.
3165 (remote_target::fetch_memtags): Implement.
3166 (remote_target::store_memtags): Implement.
3167 (_initialize_remote): Add new "memory-tagging-feature"
3168 config command.
3169
3170 2021-03-24 Luis Machado <luis.machado@linaro.org>
3171
3172 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3173 (default_memtag_matches_p, default_set_memtags)
3174 (default_get_memtag): New functions.
3175 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3176 (default_memtag_matches_p, default_set_memtags)
3177 (default_get_memtag): New prototypes.
3178 * gdbarch.c: Regenerate.
3179 * gdbarch.h: Regenerate.
3180 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3181 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3182 (enum memtag_type): New enum.
3183
3184 2021-03-24 Luis Machado <luis.machado@linaro.org>
3185
3186 * remote.c (remote_target) <supports_memory_tagging>: New method
3187 override.
3188 <fetch_memtags>: New method override.
3189 <store_memtags>: New method override.
3190 (remote_target::supports_memory_tagging): New method.
3191 (remote_target::fetch_memtags): New method.
3192 (remote_target::store_memtags): New method.
3193 * target-delegates.c: Regenerate.
3194 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3195 method.
3196 <fetch_memtags>: New virtual method.
3197 <store_memtags>: New virtual method.
3198 (target_supports_memory_tagging): Define.
3199 (target_fetch_memtags): Define.
3200 (target_store_memtags): Define.
3201 * target-debug.h (target_debug_print_size_t)
3202 (target_debug_print_const_gdb_byte_vector_r)
3203 (target_debug_print_gdb_byte_vector_r): New functions.
3204
3205 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * target.h (target_longname): Remove.
3208
3209 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * target.h (target_is_pushed): Remove, update callers to use
3212 inferior::target_is_pushed instead.
3213 * target.c (target_is_pushed): Remove.
3214
3215 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3216
3217 * target.h (push_target): Remove, update callers to use
3218 inferior::push_target.
3219 * target.c (push_target): Remove.
3220 * inferior.h (class inferior) <push_target>: New overload.
3221
3222 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3223
3224 * target.h (unpush_target): Remove, update all callers
3225 to use `inferior::unpush_target` instead.
3226 (struct target_unpusher) <operator()>: Just declare.
3227 * target.c (unpush_target): Remove.
3228 (target_unpusher::operator()): New.
3229
3230 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3231
3232 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3233 error.
3234 (process_full_comp_unit): Validate the top-level tag before
3235 processing the first DIE.
3236 (read_func_scope): Ensure we have a valid builder.
3237
3238 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3239
3240 * objc-lang.c (objc_demangle): Renamed to
3241 objc_language::demangle_symbol, and moved later in the file.
3242 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3243 member function.
3244 (objc_language::demangle_symbol): Defined outside of class
3245 declaration. The definition is the old objc_demangle with NULL
3246 changed to nullptr, and if conditions relating to nullptr pointers
3247 or null character checks made explicit.
3248 * objc-lang.h (objc_demangle): Delete declaration.
3249
3250 2021-03-22 Martin Liska <mliska@suse.cz>
3251
3252 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3253 (_initialize_arm_tdep): Likewise.
3254
3255 2021-03-20 Tom Tromey <tom@tromey.com>
3256
3257 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3258 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3259 * psymtab.h (make_psymbol_functions): Don't declare.
3260 * psymtab.c (make_psymbol_functions): Remove.
3261 (maintenance_print_psymbols): Update.
3262 * psympriv.h (struct psymbol_functions): Add no-argument
3263 constructor.
3264 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3265 <partial_symtabs>: Remove.
3266 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3267 * elfread.c (read_partial_symbols): Update.
3268 (elf_symfile_read): Remove check for existing partial symbols.
3269 Don't clear "qf".
3270 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3271 partial symbols.
3272 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3273 partial symtabs.
3274 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3275 parameter.
3276 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3277 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3278
3279 2021-03-20 Tom Tromey <tom@tromey.com>
3280
3281 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3282 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3283 * symfile-debug.c (objfile::has_partial_symbols)
3284 (objfile::find_last_source_symtab)
3285 (objfile::forget_cached_source_info)
3286 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3287 (objfile::print_stats, objfile::dump)
3288 (objfile::expand_symtabs_for_function)
3289 (objfile::expand_all_symtabs)
3290 (objfile::expand_symtabs_with_fullname)
3291 (objfile::map_matching_symbols)
3292 (objfile::expand_symtabs_matching)
3293 (objfile::find_pc_sect_compunit_symtab)
3294 (objfile::map_symbol_filenames)
3295 (objfile::find_compunit_symtab_by_address)
3296 (objfile::lookup_global_symbol_language)
3297 (objfile::require_partial_symbols): Update.
3298 * psymtab.c (maintenance_print_psymbols)
3299 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3300 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3301 * objfiles.c (objfile_relocate1): Update.
3302 * elfread.c (elf_symfile_read): Update.
3303
3304 2021-03-20 Tom Tromey <tom@tromey.com>
3305
3306 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3307
3308 2021-03-20 Tom Tromey <tom@tromey.com>
3309
3310 * psymtab.c (psymbol_functions::count_psyms): Rename.
3311 (psymbol_functions::print_stats): Update.
3312 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3313 method.
3314
3315 2021-03-20 Tom Tromey <tom@tromey.com>
3316
3317 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3318 (psymbol_functions::find_pc_sect_psymtab): Rename.
3319 (psymbol_functions::find_pc_sect_compunit_symtab)
3320 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3321 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3322 Declare new method.
3323 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3324
3325 2021-03-20 Tom Tromey <tom@tromey.com>
3326
3327 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3328 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3329 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3330 parameter.
3331 (add_psymbol_to_bcache): Remove.
3332 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3333 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3334 Likewise.
3335 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3336 <add_psymbol>: Likewise.
3337 (standard_psymtab, legacy_psymtab): Likewise.
3338 * mdebugread.c (parse_partial_symbols): Update.
3339 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3340 (handle_psymbol_enumerators): Update.
3341 (new_psymtab): Add partial_symtabs parameter.
3342 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3343 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3344 parameter.
3345 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3346 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3347 Update.
3348 * dbxread.c (read_dbx_symtab): Update.
3349 (start_psymtab): Add partial_symtabs parameter.
3350 (dbx_end_psymtab): Update.
3351 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3352 (ctf_psymtab): Add partial_symtabs parameter.
3353 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3354 Update.
3355 (scan_partial_symbols): Add partial_symtabs parameter.
3356 (scan_partial_symbols, elfctf_build_psymtabs)
3357 (ctf_psymtab_add_enums): Update.
3358
3359 2021-03-20 Tom Tromey <tom@tromey.com>
3360
3361 * symfile.c (read_symbols): Use objfile method.
3362 * symfile-debug.c (objfile::require_partial_symbols): New method.
3363 * psymtab.h (require_partial_symbols): Don't declare.
3364 * psymtab.c (require_partial_symbols): Use objfile method. Now
3365 static.
3366 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3367 (psymbol_functions::lookup_symbol)
3368 (psymbol_functions::lookup_global_symbol_language)
3369 (psymbol_functions::find_last_source_symtab)
3370 (psymbol_functions::forget_cached_source_info)
3371 (psymbol_functions::print_stats)
3372 (psymbol_functions::expand_symtabs_for_function)
3373 (psymbol_functions::expand_all_symtabs)
3374 (psymbol_functions::expand_symtabs_with_fullname)
3375 (psymbol_functions::map_symbol_filenames)
3376 (psymbol_functions::map_matching_symbols)
3377 (psymbol_functions::expand_symtabs_matching)
3378 (psymbol_functions::find_compunit_symtab_by_address)
3379 (maintenance_print_psymbols, maintenance_info_psymtabs)
3380 (maintenance_check_psymtabs): Update.
3381 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3382 new method.
3383
3384 2021-03-20 Tom Tromey <tom@tromey.com>
3385
3386 * xcoffread.c (xcoff_sym_fns): Update.
3387 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3388 * symfile-debug.c (objfile::has_partial_symbols): Use
3389 can_lazily_read_symbols.
3390 (debug_sym_read_psymbols): Remove.
3391 (debug_sym_fns, install_symfile_debug_logging): Update.
3392 * quick-symbol.h (struct quick_symbol_functions)
3393 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3394 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3395 * mipsread.c (ecoff_sym_fns): Update.
3396 * machoread.c (macho_sym_fns): Update.
3397 * elfread.c (struct lazy_dwarf_reader): New.
3398 (elf_symfile_read): Update.
3399 (read_psyms): Now a method of lazy_dwarf_reader.
3400 (elf_sym_fns): Update.
3401 (elf_sym_fns_lazy_psyms): Remove.
3402 * dbxread.c (aout_sym_fns): Update.
3403 * coffread.c (coff_sym_fns): Update.
3404
3405 2021-03-20 Tom Tromey <tom@tromey.com>
3406
3407 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3408 (reread_symbols): Move reset_psymtabs call later.
3409 * objfiles.c (objfile::objfile): Don't initialize
3410 partial_symtabs.
3411
3412 2021-03-20 Tom Tromey <tom@tromey.com>
3413
3414 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3415 set_partial_symtabs.
3416 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3417 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3418 parameter.
3419 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3420 parameter.
3421 (psymbol_functions::find_pc_sect_compunit_symtab)
3422 (psymbol_functions::print_stats, psymbol_functions::dump)
3423 (psymbol_functions::has_symbols): Update.
3424 (make_psymbol_functions, dump_psymtab_addrmap): Add
3425 partial_symtabs parameter.
3426 (maintenance_print_psymbols): Update.
3427 (psymbol_functions::expand_symtabs_matching): Update.
3428 * psympriv.h (struct psymbol_functions): Add constructor.
3429 <m_partial_symtabs>: New member.
3430 <set_partial_symtabs>: New method.
3431
3432 2021-03-20 Tom Tromey <tom@tromey.com>
3433
3434 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3435 parameter.
3436 (process_psymtab_comp_unit_reader)
3437 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3438 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3439 Reference psymtabs via per_bfd.
3440
3441 2021-03-20 Tom Tromey <tom@tromey.com>
3442
3443 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3444 Remove.
3445 (add_address_entry): Remove objfile parameter.
3446 (add_address_entry_worker): Update.
3447 (write_address_map): Replace objfile parameter with per_bfd.
3448 (write_gdbindex, write_psymtabs_to_index): Update.
3449
3450 2021-03-20 Tom Tromey <tom@tromey.com>
3451
3452 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3453 print_bcache parameter.
3454 * symfile-debug.c (objfile::print_stats): Add print_bcache
3455 parameter.
3456 * quick-symbol.h (struct quick_symbol_functions)
3457 <print_stats>: Add print_bcache parameter.
3458 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3459 code to psymtab.c.
3460 (print_objfile_statistics): Move psymtab code to psymtab.c.
3461 * psymtab.c (count_psyms): Move from symmisc.c.
3462 (psymbol_functions::print_stats): Print partial symbol and bcache
3463 statistics. Add print_bcache parameter.
3464 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3465 (struct objfile) <print_stats>: Add print_bcache parameter.
3466 * maint.c (maintenance_print_statistics): Update.
3467
3468 2021-03-20 Tom Tromey <tom@tromey.com>
3469
3470 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3471 member.
3472 * dwarf2/read.c (create_addrmap_from_index)
3473 (create_addrmap_from_aranges): Set per_bfd addrmap.
3474 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3475 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3476 per_bfd addrmap.
3477 (dwarf2_read_debug_names): Don't set partial_symtabs.
3478 (dwarf2_initialize_objfile): Likewise.
3479
3480 2021-03-20 Tom Tromey <tom@tromey.com>
3481
3482 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3483 earlier.
3484
3485 2021-03-20 Tom Tromey <tom@tromey.com>
3486
3487 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3488 (~psymtab_discarder, keep): Update.
3489 <m_objfile>: Remove.
3490 <m_partial_symtabs>: New member.
3491 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3492
3493 2021-03-20 Tom Tromey <tom@tromey.com>
3494
3495 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3496 (xcoff_end_psymtab): Update.
3497 (scan_xcoff_symtab): Add partial_symtabs parameter.
3498 (xcoff_initial_scan): Update.
3499 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3500 * mdebugread.c (mdebug_build_psymtabs): Update.
3501 (parse_partial_symbols): Add partial_symtabs parameter.
3502 * dbxread.c (dbx_symfile_read): Update.
3503 (read_dbx_symtab): Add partial_symtabs parameter.
3504 (read_dbx_symtab): Update.
3505 (dbx_end_psymtab): Add partial_symtabs parameter.
3506
3507 2021-03-20 Tom Tromey <tom@tromey.com>
3508
3509 * quick-symbol.h (struct quick_symbol_functions)
3510 <relocated>: New method.
3511 * psymtab.h (struct psymbol_functions) <relocated>: New
3512 method.
3513 <fill_psymbol_map>: Declare method.
3514 <m_psymbol_map>: New member.
3515 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3516 (psymbol_functions::find_compunit_symtab_by_address): Update.
3517 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3518 (struct objfile) <psymbol_map>: Remove.
3519 * objfiles.c (objfile_relocate1): Update.
3520
3521 2021-03-20 Tom Tromey <tom@tromey.com>
3522
3523 * psympriv.h (struct psymbol_functions): New.
3524 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3525 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3526 (objfile::lookup_global_symbol_language): Update.
3527 * quick-symbol.h (struct quick_symbol_functions): Convert function
3528 pointers to methods. Add virtual destructor.
3529 (quick_symbol_functions_up): New typedef.
3530 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3531 (dwarf2_debug_names_functions): Don't declare.
3532 (make_psymbol_functions): Declare.
3533 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3534 (psymbol_functions::find_pc_sect_compunit_symtab)
3535 (psymbol_functions::lookup_symbol)
3536 (psymbol_functions::lookup_global_symbol_language)
3537 (psymbol_functions::find_last_source_symtab)
3538 (psymbol_functions::forget_cached_source_info)
3539 (psymbol_functions::print_stats, psymbol_functions::dump)
3540 (psymbol_functions::expand_symtabs_for_function)
3541 (psymbol_functions::expand_all_symtabs)
3542 (psymbol_functions::expand_symtabs_with_fullname)
3543 (psymbol_functions::map_symbol_filenames)
3544 (psymbol_functions::map_matching_symbols)
3545 (psymbol_functions::expand_symtabs_matching)
3546 (psymbol_functions::has_symbols)
3547 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3548 (psym_functions): Remove.
3549 (make_psymbol_functions): New function.
3550 * objfiles.h (struct objfile) <qf>: Change type.
3551 * elfread.c (elf_symfile_read): Update.
3552 * dwarf2/read.c (struct dwarf2_base_index_functions)
3553 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3554 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3555 (dwarf2_base_index_functions::find_last_source_symtab)
3556 (dwarf2_base_index_functions::forget_cached_source_info)
3557 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3558 (dwarf2_gdb_index::lookup_symbol)
3559 (dwarf2_base_index_functions::print_stats)
3560 (dwarf2_gdb_index::dump)
3561 (dwarf2_gdb_index::expand_symtabs_for_function)
3562 (dwarf2_base_index_functions::expand_all_symtabs)
3563 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3564 Rename.
3565 (dwarf2_gdb_index::map_matching_symbols): New method.
3566 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3567 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3568 (dwarf2_base_index_functions::map_symbol_filenames)
3569 (dwarf2_base_index_functions::has_symbols): Rename.
3570 (dwarf2_gdb_index_functions): Remove.
3571 (dwarf2_debug_names_index::lookup_symbol)
3572 (dwarf2_debug_names_index::dump)
3573 (dwarf2_debug_names_index::expand_symtabs_for_function)
3574 (dwarf2_debug_names_index::map_matching_symbols)
3575 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3576 (dwarf2_debug_names_functions): Remove.
3577 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3578 Declare.
3579
3580 2021-03-20 Tom Tromey <tom@tromey.com>
3581
3582 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3583 null.
3584 * xcoffread.c (xcoff_sym_fns): Update.
3585 * symfile.h (struct sym_fns) <qf>: Remove.
3586 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3587 * symfile-debug.c (objfile::has_partial_symbols)
3588 (objfile::find_last_source_symtab)
3589 (objfile::forget_cached_source_info)
3590 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3591 (objfile::print_stats, objfile::dump)
3592 (objfile::expand_symtabs_for_function)
3593 (objfile::expand_all_symtabs)
3594 (objfile::expand_symtabs_with_fullname)
3595 (objfile::map_matching_symbols)
3596 (objfile::expand_symtabs_matching)
3597 (objfile::find_pc_sect_compunit_symtab)
3598 (objfile::map_symbol_filenames)
3599 (objfile::find_compunit_symtab_by_address)
3600 (objfile::lookup_global_symbol_language, debug_sym_fns)
3601 (install_symfile_debug_logging): Update.
3602 * objfiles.h (struct objfile) <qf>: New member.
3603 * mipsread.c (ecoff_sym_fns): Update.
3604 * machoread.c (macho_sym_fns): Update.
3605 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3606 Don't declare.
3607 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3608 * dbxread.c (aout_sym_fns): Update.
3609 * coffread.c (coff_sym_fns): Update.
3610
3611 2021-03-20 Tom Tromey <tom@tromey.com>
3612
3613 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3614 (expand_symtabs_file_matcher_ftype)
3615 (expand_symtabs_symbol_matcher_ftype)
3616 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3617 Move to quick-symbol.h.
3618 * quick-symbol.h: New file.
3619
3620 2021-03-20 Tom Tromey <tom@tromey.com>
3621
3622 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3623 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3624 (basic_lookup_transparent_type_quick)
3625 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3626 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3627 Update.
3628 * symmisc.c (print_objfile_statistics, dump_objfile)
3629 (maintenance_expand_symtabs): Update.
3630 * symfile.c (symbol_file_add_with_addrs)
3631 (expand_symtabs_matching, map_symbol_filenames): Update.
3632 * symfile-debug.c (objfile::has_partial_symbols)
3633 (objfile::find_last_source_symtab)
3634 (objfile::forget_cached_source_info)
3635 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3636 (objfile::print_stats, objfile::dump)
3637 (objfile::expand_symtabs_for_function)
3638 (objfile::expand_all_symtabs)
3639 (objfile::expand_symtabs_with_fullname)
3640 (objfile::map_matching_symbols)
3641 (objfile::expand_symtabs_matching)
3642 (objfile::find_pc_sect_compunit_symtab)
3643 (objfile::map_symbol_filenames)
3644 (objfile::find_compunit_symtab_by_address)
3645 (objfile::lookup_global_symbol_language): New methods.
3646 (debug_sym_quick_functions): Remove.
3647 (debug_sym_fns, install_symfile_debug_logging): Update.
3648 * source.c (forget_cached_source_info_for_objfile)
3649 (select_source_symtab): Update.
3650 * objfiles.h (struct objfile): Add methods corresponding to
3651 quick_symbol_functions.
3652 * objfiles.c (objfile::has_partial_symbols): Move to
3653 symfile-debug.c.
3654 * linespec.c (iterate_over_all_matching_symtabs): Update.
3655 * cp-support.c (add_symbol_overload_list_qualified): Update.
3656 * ada-lang.c (add_nonlocal_symbols): Update.
3657
3658 2021-03-20 Tom Tromey <tom@tromey.com>
3659
3660 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3661 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3662 bool.
3663 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3664 * psymtab.c (psym_has_symbols): Return bool.
3665 * objfiles.c (objfile::has_partial_symbols): Return bool.
3666 * dwarf2/read.c (dw2_has_symbols): Return bool.
3667
3668 2021-03-20 Tom Tromey <tom@tromey.com>
3669
3670 * symfile.c (read_symbols): Update.
3671 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3672 (objfile_has_partial_symbols): Don't declare.
3673 * objfiles.c (objfile::has_partial_symbols): Rename from
3674 objfile_has_partial_symbols.
3675 (objfile_has_symbols, have_partial_symbols): Update.
3676 * elfread.c (elf_symfile_read): Update.
3677 * dwarf2/read.c (dwarf2_has_info): Update.
3678 * coffread.c (coff_symfile_read): Update.
3679
3680 2021-03-20 Tom Tromey <tom@tromey.com>
3681
3682 * coffread.c: Include dwarf2/public.h.
3683 * dwarf2/frame.c: Include dwarf2/public.h.
3684 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3685 * dwarf2/public.h: New file.
3686 * dwarf2/read.c: Include dwarf2/public.h.
3687 * elfread.c: Include dwarf2/public.h.
3688 * machoread.c: Include dwarf2/public.h.
3689 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3690 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3691 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3692 * xcoffread.c: Include dwarf2/public.h.
3693
3694 2021-03-20 Tom Tromey <tom@tromey.com>
3695
3696 * symfile.h (enum dwarf2_section_enum)
3697 (dwarf2_get_section_info): Move to dwarf2/read.h.
3698 * dwarf2/read.h (enum dwarf2_section_enum)
3699 (dwarf2_get_section_info): Move from symfile.h.
3700
3701 2021-03-19 Pedro Alves <pedro@palves.net>
3702
3703 * thread.c (any_thread_of_inferior): Check if there's a selected
3704 thread before calling inferior_thread().
3705
3706 2021-03-18 Tom Tromey <tromey@adacore.com>
3707
3708 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3709 get_DW_UT_name.
3710 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3711 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3712
3713 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3714
3715 * python/py-param.c (get_set_value): Update header comment.
3716
3717 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3718
3719 * infrun.c (check_multi_target_resumption): Remove argument to
3720 all_non_exited_inferiors.
3721
3722 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3723
3724 * windows-nat.c (windows_init_thread_list): Add message to
3725 debug log.
3726
3727 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3730 well as PyLong_Check for Python 2.
3731
3732 2021-03-15 Tom Tromey <tromey@adacore.com>
3733
3734 PR build/27579:
3735 * rust-exp.y (maker_map): Use gdb::hash_enum.
3736 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3737
3738 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3741 end of debug print.
3742
3743 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3744
3745 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3746 parameter, adjust caller.
3747
3748 2021-03-15 Tom Tromey <tromey@adacore.com>
3749
3750 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3751
3752 2021-03-15 Tom Tromey <tromey@adacore.com>
3753
3754 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3755 ada_ensure_varsize_limit.
3756
3757 2021-03-15 Tom Tromey <tromey@adacore.com>
3758
3759 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3760 fixed-point.
3761 * ada-exp.y (maybe_overload): New function.
3762 (ada_wrap_overload): New function.
3763 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3764 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3765 (or_else_exp, xor_exp, primary): Update.
3766
3767 2021-03-15 Tom Tromey <tromey@adacore.com>
3768
3769 PR ada/27545:
3770 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3771 call for tagged type.
3772
3773 2021-03-15 Tom Tromey <tromey@adacore.com>
3774
3775 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3776 assignment.
3777
3778 2021-03-15 Tom Tromey <tromey@adacore.com>
3779
3780 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3781 container.
3782 (ada_assign_operation::evaluate): Update.
3783 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3784 Change return type.
3785
3786 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3787
3788 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3789
3790 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * python/python.c (gdbpy_source_objfile_script): Use
3793 make_scoped_restore to restore gdbpy_current_objfile.
3794 (gdbpy_execute_objfile_script): Likewise.
3795
3796 2021-03-14 Tom Tromey <tom@tromey.com>
3797
3798 * dwarf2/read.c (read_attribute_value): Use cu_header
3799 consistently.
3800
3801 2021-03-14 Tom Tromey <tom@tromey.com>
3802
3803 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3804 (peek_die_abbrev): Use reader.abfd.
3805
3806 2021-03-14 Tom Tromey <tom@tromey.com>
3807
3808 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3809 m_header_read_in.
3810
3811 2021-03-13 Tom Tromey <tom@tromey.com>
3812
3813 * dwarf2/read.c (struct partial_die_info): Update.
3814 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3815 (load_partial_dies, partial_die_info::partial_die_info): Update.
3816 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3817
3818 2021-03-13 Tom Tromey <tom@tromey.com>
3819
3820 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3821
3822 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3823
3824 PR threads/27239
3825 * cp-support.c: Use scoped_segv_handler_restore.
3826 * event-top.c (thread_local_segv_handler): Made static.
3827 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3828 New function.
3829 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3830 function.
3831 * event-top.h (class scoped_segv_handler_restore): New class.
3832 (thread_local_segv_handler): Removed.
3833
3834 2021-03-10 Tom Tromey <tromey@adacore.com>
3835
3836 * parser-defs.h (parser_state): Change completion to bool.
3837 <parse_completion>: Likewise.
3838 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3839 (ada_resolve_variable, ada_resolve_function): Update.
3840 * ada-lang.c (ada_find_operator_symbol): Change
3841 parse_completion to bool.
3842 (ada_resolve_funcall, ada_resolve_variable)
3843 (ada_resolve_function): Likewise.
3844
3845 2021-03-09 Tom Tromey <tromey@adacore.com>
3846
3847 * eval.c (operation::evaluate_funcall): Use function formal
3848 parameter types when evaluating.
3849
3850 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3851
3852 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3853 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3854 and owner to m_owner.
3855
3856 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3857
3858 * f-exp.h (eval_op_f_loc): Declare.
3859 (expr::fortran_loc_operation): New typedef.
3860 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3861 UNOP_INTRINSIC.
3862 (f77_keywords): Add LOC keyword.
3863 * f-lang.c (eval_op_f_loc): New function.
3864 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3865
3866 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3867
3868 * f-exp.h (eval_op_f_array_shape): Declare.
3869 (fortran_array_shape_operation): New type.
3870 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3871 UNOP_INTRINSIC.
3872 (f77_keywords): Add "shape" keyword.
3873 * f-lang.c (fortran_array_shape): New function.
3874 (eval_op_f_array_shape): New function.
3875 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3876
3877 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3878
3879 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3880 of this function.
3881 (expr::fortran_array_size_1arg): New type.
3882 (expr::fortran_array_size_2arg): Likewise.
3883 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3884 UNOP_OR_BINOP_INTRINSIC.
3885 (f77_keywords): Add "size" keyword.
3886 * f-lang.c (fortran_array_size): New function.
3887 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3888 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3889
3890 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * f-exp.h (eval_op_f_rank): Declare.
3893 (expr::fortran_rank_operation): New typedef.
3894 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3895 UNOP_INTRINSIC.
3896 (f77_keywords): Add "rank" keyword.
3897 * f-lang.c (eval_op_f_rank): New function.
3898 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3899
3900 2021-03-08 Tom Tromey <tom@tromey.com>
3901
3902 * printcmd.c (set_command): Remove null check.
3903 * value.c (init_if_undefined_command): Remove null check.
3904
3905 2021-03-08 Tom Tromey <tom@tromey.com>
3906
3907 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3908 Update.
3909 * p-exp.y (variable): Update.
3910 * go-exp.y (variable): Update.
3911 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3912 Remove overload for objfile.
3913 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3914 parameter.
3915 (check_objfile): Likewise.
3916 (dump_for_expression): Likewise. Remove overload for objfile.
3917 (class var_msym_value_operation): Use bound_minimal_symbol.
3918 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3919 parameter.
3920 (var_msym_value_operation::evaluate_for_address)
3921 (var_msym_value_operation::evaluate_for_sizeof)
3922 (var_msym_value_operation::evaluate_for_cast): Update.
3923 * d-exp.y (PrimaryExpression): Update.
3924 * c-exp.y (variable): Update.
3925 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3926 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3927 Update.
3928 * ada-exp.y (write_var_or_type): Update.
3929
3930 2021-03-08 Tom Tromey <tom@tromey.com>
3931
3932 * parser-defs.h (exp_uses_objfile): Return bool.
3933 * parse.c (exp_uses_objfile): Return bool.
3934
3935 2021-03-08 Tom Tromey <tom@tromey.com>
3936
3937 * value.h (eval_skip_value): Don't declare.
3938 * opencl-lang.c (eval_opencl_assign): Update.
3939 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3940 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3941 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3942 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3943 * expop.h (typeof_operation::evaluate)
3944 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3945 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3946 (cxx_cast_operation::evaluate): Update.
3947 * eval.c (eval_skip_value): Remove.
3948 (eval_op_scope, eval_op_var_entry_value)
3949 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3950 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3951 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3952 (eval_op_binary, eval_op_subscript, eval_op_equal)
3953 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3954 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3955 (eval_op_complement, eval_op_lognot, eval_op_ind)
3956 (eval_op_memval, eval_op_preinc, eval_op_predec)
3957 (eval_op_postinc, eval_op_postdec, eval_op_type)
3958 (eval_binop_assign_modify, eval_op_objc_msgcall)
3959 (eval_multi_subscript, logical_and_operation::evaluate)
3960 (logical_or_operation::evaluate, array_operation::evaluate)
3961 (operation::evaluate_for_cast)
3962 (var_msym_value_operation::evaluate_for_cast)
3963 (var_value_operation::evaluate_for_cast): Update.
3964 * c-lang.c (c_string_operation::evaluate): Update.
3965 * c-exp.h (objc_nsstring_operation::evaluate)
3966 (objc_selector_operation::evaluate): Update.
3967 * ada-lang.c (ada_assign_operation::evaluate)
3968 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3969 (ada_atr_size): Update.
3970
3971 2021-03-08 Tom Tromey <tom@tromey.com>
3972
3973 * eval.c: Merge "namespace" scopes.
3974
3975 2021-03-08 Tom Tromey <tom@tromey.com>
3976
3977 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3978 <release>: Inline.
3979 * parse.c (expr_builder::expr_builder, expr_builder::release):
3980 Remove.
3981
3982 2021-03-08 Tom Tromey <tom@tromey.com>
3983
3984 * parse.c (expression::expression, expression::~expression):
3985 Remove.
3986 * expression.h (struct expression): Inline constructor. Remove
3987 destructor.
3988
3989 2021-03-08 Tom Tromey <tom@tromey.com>
3990
3991 * std-operator.def (BINOP_END): Remove.
3992 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3993 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3994 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3995 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3996 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3997 BINOP_END.
3998
3999 2021-03-08 Tom Tromey <tom@tromey.com>
4000
4001 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4002
4003 2021-03-08 Tom Tromey <tom@tromey.com>
4004
4005 * std-operator.def (OP_EXTENDED0): Remove.
4006
4007 2021-03-08 Tom Tromey <tom@tromey.com>
4008
4009 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4010 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4011 Remove.
4012
4013 2021-03-08 Tom Tromey <tom@tromey.com>
4014
4015 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4016 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4017
4018 2021-03-08 Tom Tromey <tom@tromey.com>
4019
4020 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4021 * ada-lang.c (ada_binop_minmax): Update.
4022 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4023 Use BINOP_MIN and BINOP_MAX.
4024
4025 2021-03-08 Tom Tromey <tom@tromey.com>
4026
4027 * value.h (evaluate_subexp_with_coercion): Don't declare.
4028 * parse.c (exp_descriptor_standard): Remove.
4029 (expr_builder::expr_builder, expr_builder::release): Update.
4030 (expression::expression): Remove size_t parameter.
4031 (expression::~expression): Simplify.
4032 (expression::resize): Remove.
4033 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4034 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4035 (write_exp_elt_longcst, write_exp_elt_floatcst)
4036 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4037 (write_exp_string_vector, write_exp_bitstring): Remove.
4038 * p-lang.h (class pascal_language) <opcode_print_table,
4039 op_print_tab>: Remove.
4040 * p-lang.c (pascal_language::op_print_tab): Remove.
4041 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4042 Remove.
4043 * objc-lang.c (objc_op_print_tab): Remove.
4044 (class objc_language) <opcode_print_table>: Remove.
4045 * m2-lang.h (class m2_language) <opcode_print_table,
4046 op_print_tab>: Remove.
4047 * m2-lang.c (m2_language::op_print_tab): Remove.
4048 * language.h (struct language_defn) <post_parser, expression_ops,
4049 opcode_print_table>: Remove.
4050 * language.c (language_defn::expression_ops)
4051 (auto_or_unknown_language::opcode_print_table): Remove.
4052 * go-lang.h (class go_language) <opcode_print_table,
4053 op_print_tab>: Remove.
4054 * go-lang.c (go_language::op_print_tab): Remove.
4055 * f-lang.h (class f_language) <opcode_print_table>: Remove
4056 <op_print_tab>: Remove.
4057 * f-lang.c (f_language::op_print_tab): Remove.
4058 * expression.h (union exp_element): Remove.
4059 (struct expression): Remove size_t parameter from constructor.
4060 <resize>: Remove.
4061 <first_opcode>: Update.
4062 <nelts, elts>: Remove.
4063 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4064 (evaluate_subexp_standard, print_expression, op_string)
4065 (dump_raw_expression): Don't declare.
4066 * expprint.c (print_expression, print_subexp)
4067 (print_subexp_funcall, print_subexp_standard, op_string)
4068 (dump_raw_expression, dump_subexp, dump_subexp_body)
4069 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4070 (dump_prefix_expression): Update.
4071 * eval.c (evaluate_subexp): Remove.
4072 (evaluate_expression, evaluate_type): Update.
4073 (evaluate_subexpression_type): Remove.
4074 (fetch_subexp_value): Remove "pc" parameter. Update.
4075 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4076 (evaluate_subexp_standard, evaluate_subexp_for_address)
4077 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4078 (evaluate_subexp_for_cast): Remove.
4079 (parse_and_eval_type): Update.
4080 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4081 * d-lang.c (d_op_print_tab): Remove.
4082 (class d_language) <opcode_print_table>: Remove.
4083 * c-lang.h (c_op_print_tab): Don't declare.
4084 * c-lang.c (c_op_print_tab): Remove.
4085 (class c_language, class cplus_language, class asm_language, class
4086 minimal_language) <opcode_print_table>: Remove.
4087 * breakpoint.c (update_watchpoint, watchpoint_check)
4088 (watchpoint_exp_is_const, watch_command_1): Update.
4089 * ax-gdb.h (union exp_element): Don't declare.
4090 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4091 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4092 (gen_expr_binop_rest): Remove.
4093 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4094 * ada-lang.c (ada_op_print_tab): Remove.
4095 (class ada_language) <post_parser, opcode_print_table>: Remove.
4096
4097 2021-03-08 Tom Tromey <tom@tromey.com>
4098
4099 * go-lang.c (go_language::expression_ops): Don't declare.
4100 * go-lang.h (class go_language) <expression_ops>: Remove.
4101 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4102 Remove.
4103 (class opencl_language) <expression_ops>: Remove.
4104 * d-lang.c (class d_language) <expression_ops>: Remove.
4105 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4106 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4107 (class c_language, class cplus_language, class asm_language)
4108 (class minimal_language) <expression_ops>: Remove.
4109
4110 2021-03-08 Tom Tromey <tom@tromey.com>
4111
4112 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4113 (evaluate_subexp_type, assign_aggregate)
4114 (aggregate_assign_positional, aggregate_assign_from_choices)
4115 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4116 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4117 (ada_operator_check, ada_forward_operator_length)
4118 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4119 Remove.
4120 (post_parser): Update.
4121 (class ada_language) <expresssion_ops>: Remove.
4122
4123 2021-03-08 Tom Tromey <tom@tromey.com>
4124
4125 * m2-lang.h (class m2_language) <expresssion_ops,
4126 exp_descriptor_modula2>: Remove.
4127 * m2-lang.c (evaluate_subexp_modula2)
4128 (m2_language::exp_descriptor_modula2): Remove.
4129
4130 2021-03-08 Tom Tromey <tom@tromey.com>
4131
4132 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4133 <exp_descriptor_tab>: Remove.
4134 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4135 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4136 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4137 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4138 Remove.
4139
4140 2021-03-08 Tom Tromey <tom@tromey.com>
4141
4142 * rust-lang.h (class rust_language) <expression_ops,
4143 exp_descriptor_tab>: Remove.
4144 * rust-lang.c (rust_evaluate_funcall): Remove.
4145 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4146 EVAL_SKIP.
4147 (rust_evaluate_subexp): Remove.
4148 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4149 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4150 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4151
4152 2021-03-08 Tom Tromey <tom@tromey.com>
4153
4154 * ada-exp.y: Create operations.
4155 (empty_stoken): Remove.
4156 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4157 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4158 (components): New global.
4159 (push_component, choice_component, pop_component, pop_components):
4160 New functions.
4161 (associations): New global
4162 (push_association, pop_association, pop_associations): New
4163 functions.
4164 (ada_parse): Update.
4165 (write_var_from_sym, write_int): Create operations.
4166 (write_exp_op_with_string): Remove.
4167 (write_object_renaming, write_selectors, write_ambiguous_var)
4168 (write_var_or_type, write_name_assoc): Create operations.
4169 * ada-lang.h (ada_index_type): Declare.
4170 * ada-lang.c (ada_index_type): No longer static.
4171
4172 2021-03-08 Tom Tromey <tom@tromey.com>
4173
4174 * f-exp.y: Create operations.
4175 (f_language::parser): Update.
4176
4177 2021-03-08 Tom Tromey <tom@tromey.com>
4178
4179 * m2-exp.y: Create operations.
4180 (m2_language::parser): Update.
4181
4182 2021-03-08 Tom Tromey <tom@tromey.com>
4183
4184 * p-exp.y: Create operations.
4185 (pascal_language::parser): Update.
4186
4187 2021-03-08 Tom Tromey <tom@tromey.com>
4188
4189 * d-exp.y: Create operations.
4190 (d_parse): Update.
4191
4192 2021-03-08 Tom Tromey <tom@tromey.com>
4193
4194 * go-exp.y: Create operations.
4195 (go_language::parser): Update.
4196
4197 2021-03-08 Tom Tromey <tom@tromey.com>
4198
4199 * objc-lang.c (end_msglist): Create operations.
4200 * c-exp.y: Change parser to create operations.
4201 (write_destructor_name): Remove.
4202 (c_parse): Update.
4203
4204 2021-03-08 Tom Tromey <tom@tromey.com>
4205
4206 * rust-exp.y: Create operations.
4207 (rust_parser::convert_params_to_expression): Change return type.
4208 (binop_maker_ftype): New typedef.
4209 (maker_map): New global.
4210 (rust_parser::convert_ast_to_expression): Change return type.
4211 (rust_language::parser): Update.
4212 (_initialize_rust_exp): Initialize maker_map.
4213
4214 2021-03-08 Tom Tromey <tom@tromey.com>
4215
4216 * stap-probe.c (binop_maker_ftype): New typedef.
4217 (stap_maker_map): New global.
4218 (stap_make_binop): New function.
4219 (stap_parse_register_operand): Return operation_up.
4220 (stap_parse_single_operand, stap_parse_argument_conditionally)
4221 (stap_parse_argument_1): Likewise.
4222 (stap_parse_argument): Create operations.
4223 (stap_probe::parse_arguments): Update.
4224 (_initialize_stap_probe): Initialize stap_maker_map.
4225 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4226 type.
4227 * i386-tdep.h (i386_stap_parse_special_token): Change return
4228 type.
4229 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4230 (i386_stap_parse_special_token_three_arg_disp)
4231 (i386_stap_parse_special_token): Change return type.
4232 * gdbarch.sh (stap_parse_special_token): Change return type.
4233 * gdbarch.c: Rebuild.
4234 * gdbarch.h: Rebuild.
4235 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4236 type.
4237 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4238 return type.
4239
4240 2021-03-08 Tom Tromey <tom@tromey.com>
4241
4242 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4243 * gdbarch.h: Rebuild.
4244 * gdbarch.c: Rebuild.
4245 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4246 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4247 return type.
4248 (amd64_dtrace_parse_probe_argument): Update.
4249
4250 2021-03-08 Tom Tromey <tom@tromey.com>
4251
4252 * parser-defs.h (struct parser_state) <push, push_new,
4253 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4254 wrap2>: New methods.
4255 <m_operations>: New member.
4256 * parse.c (parser_state::push_c_string)
4257 (parser_state::push_symbol, parser_state::push_dollar): New
4258 methods.
4259
4260 2021-03-08 Tom Tromey <tom@tromey.com>
4261
4262 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4263 New member.
4264 (struct parser_state) <mark_struct_expression>: New method.
4265 * parse.c (parser_state::mark_struct_expression): Update assert.
4266 (parser_state::mark_struct_expression): New method.
4267 (parser_state::mark_completion_tag): Update assert.
4268 (parse_expression_for_completion): Handle expout_last_op.
4269
4270 2021-03-08 Tom Tromey <tom@tromey.com>
4271
4272 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4273 now in superclass.
4274 * value.h (fetch_subexp_value): Add "op" parameter.
4275 * value.c (init_if_undefined_command): Update.
4276 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4277 * stap-probe.c (stap_probe::compile_to_ax): Update.
4278 * printcmd.c (set_command): Update.
4279 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4280 Update.
4281 * parser-defs.h (struct expr_builder) <set_operation>: New
4282 method.
4283 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4284 * expression.h (struct expression) <first_opcode>: Update.
4285 <op>: New member.
4286 * expprint.c (dump_raw_expression, dump_prefix_expression):
4287 Update.
4288 * expop.h (class var_value_operation) <get_symbol>: New method.
4289 (class register_operation) <get_name>: New method.
4290 (class equal_operation): No longer a typedef, now a subclass.
4291 (class unop_memval_operation) <get_type>: New method.
4292 (class assign_operation) <get_lhs>: New method.
4293 (class unop_cast_operation) <get_type>: New method.
4294 * eval.c (evaluate_expression, evaluate_type)
4295 (evaluate_subexpression_type): Update.
4296 (fetch_subexp_value): Add "op" parameter.
4297 (parse_and_eval_type): Update.
4298 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4299 * breakpoint.c (update_watchpoint, watchpoint_check)
4300 (watchpoint_exp_is_const, watch_command_1): Update.
4301 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4302 Update.
4303
4304 2021-03-08 Tom Tromey <tom@tromey.com>
4305
4306 * ada-lang.c (ada_value_binop): Do not use op_string.
4307
4308 2021-03-08 Tom Tromey <tom@tromey.com>
4309
4310 * expprint.c (dump_for_expression): New overload.
4311 * expop.h (check_objfile, dump_for_expression): Declare new
4312 overloads.
4313 * ada-lang.c (check_objfile): New overload.
4314 (assign_component, ada_aggregate_component::uses_objfile)
4315 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4316 (ada_aggregate_component::assign_aggregate)
4317 (ada_positional_component::uses_objfile)
4318 (ada_positional_component::dump, ada_positional_component::assign)
4319 (ada_discrete_range_association::uses_objfile)
4320 (ada_discrete_range_association::dump)
4321 (ada_discrete_range_association::assign)
4322 (ada_name_association::uses_objfile, ada_name_association::dump)
4323 (ada_name_association::assign)
4324 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4325 (ada_choices_component::assign)
4326 (ada_others_component::uses_objfile, ada_others_component::dump)
4327 (ada_others_component::assign, ada_assign_operation::evaluate):
4328 New methods.
4329 * ada-exp.h (ada_string_operation) <get_name>: New method.
4330 (class ada_assign_operation): New.
4331 (class ada_component): New.
4332 (ada_component_up): New typedef.
4333 (class ada_aggregate_operation, class ada_aggregate_component)
4334 (class ada_positional_component, class ada_others_component)
4335 (class ada_association): New.
4336 (ada_association_up): New typedef.
4337 (class ada_choices_component)
4338 (class ada_discrete_range_association)
4339 (class ada_name_association): New.
4340
4341 2021-03-08 Tom Tromey <tom@tromey.com>
4342
4343 * ada-lang.c (ada_var_value_operation::resolve)
4344 (ada_funcall_operation::resolve)
4345 (ada_ternop_slice_operation::resolve): New methods.
4346 * ada-exp.h (struct ada_resolvable): New.
4347 (class ada_var_value_operation): Derive from ada_resolvable.
4348 <get_block, resolve>: New methods.
4349 (class ada_funcall_operation): Derive from ada_resolvable.
4350 <resolve>: New method.
4351 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4352 <resolve>: New method.
4353
4354 2021-03-08 Tom Tromey <tom@tromey.com>
4355
4356 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4357 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4358 method.
4359 (class ada_funcall_operation): New.
4360
4361 2021-03-08 Tom Tromey <tom@tromey.com>
4362
4363 * ada-lang.c (ada_structop_operation::evaluate): New method.
4364 * ada-exp.h (class ada_structop_operation): New.
4365
4366 2021-03-08 Tom Tromey <tom@tromey.com>
4367
4368 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4369 * ada-exp.h (class ada_unop_ind_operation): New.
4370
4371 2021-03-08 Tom Tromey <tom@tromey.com>
4372
4373 * ada-lang.c (ada_binop_exp): No longer static.
4374 * ada-exp.h (ada_binop_exp_operation): New typedef.
4375
4376 2021-03-08 Tom Tromey <tom@tromey.com>
4377
4378 * ada-lang.c (ada_val_atr): No longer static.
4379 (ada_atr_val_operation::evaluate): New method.
4380 * ada-exp.h (class ada_atr_val_operation): New.
4381
4382 2021-03-08 Tom Tromey <tom@tromey.com>
4383
4384 * ada-lang.c (ada_pos_atr): No longer static.
4385 * ada-exp.h (ada_pos_operation): New typedef.
4386
4387 2021-03-08 Tom Tromey <tom@tromey.com>
4388
4389 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4390 parameters.
4391 (ada_evaluate_subexp): Use it.
4392
4393 2021-03-08 Tom Tromey <tom@tromey.com>
4394
4395 * ada-lang.c (ada_binop_minmax): No longer static.
4396 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4397 New typedefs.
4398
4399 2021-03-08 Tom Tromey <tom@tromey.com>
4400
4401 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4402 New method.
4403 * ada-exp.h (class ada_var_msym_value_operation): New.
4404
4405 2021-03-08 Tom Tromey <tom@tromey.com>
4406
4407 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4408 (ada_var_value_operation::evaluate): New methods.
4409 * ada-exp.h (class ada_var_value_operation): New.
4410
4411 2021-03-08 Tom Tromey <tom@tromey.com>
4412
4413 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4414 * ada-exp.h (class ada_unop_atr_operation): New.
4415
4416 2021-03-08 Tom Tromey <tom@tromey.com>
4417
4418 * ada-lang.c (ada_binop_in_bounds): No longer static.
4419 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4420
4421 2021-03-08 Tom Tromey <tom@tromey.com>
4422
4423 * ada-lang.c (ada_ternop_slice): No longer static.
4424 * ada-exp.h (class ada_ternop_slice_operation): New.
4425
4426 2021-03-08 Tom Tromey <tom@tromey.com>
4427
4428 * ada-exp.h (ada_bitwise_operation): New template class.
4429 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4430 (ada_bitwise_xor_operation): New typedefs.
4431
4432 2021-03-08 Tom Tromey <tom@tromey.com>
4433
4434 * ada-lang.c (ada_equal_binop): No longer static.
4435 * ada-exp.h (class ada_binop_equal_operation): New.
4436
4437 2021-03-08 Tom Tromey <tom@tromey.com>
4438
4439 * ada-lang.c (ada_mult_binop): No longer static.
4440 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4441 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4442
4443 2021-03-08 Tom Tromey <tom@tromey.com>
4444
4445 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4446 * ada-exp.h (class ada_binop_addsub_operation): New.
4447
4448 2021-03-08 Tom Tromey <tom@tromey.com>
4449
4450 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4451 (ada_resolve_variable): Declare.
4452 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4453 (ada_resolve_variable): New functions.
4454 (resolve_subexp): Update.
4455
4456 2021-03-08 Tom Tromey <tom@tromey.com>
4457
4458 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4459 method.
4460 * c-exp.h (class opencl_ternop_cond_operation): New.
4461
4462 2021-03-08 Tom Tromey <tom@tromey.com>
4463
4464 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4465 method.
4466 * c-exp.h (class opencl_logical_binop_operation): New.
4467
4468 2021-03-08 Tom Tromey <tom@tromey.com>
4469
4470 * opencl-lang.c (opencl_structop_operation::evaluate): New
4471 method.
4472 * c-exp.h (class opencl_structop_operation): New.
4473
4474 2021-03-08 Tom Tromey <tom@tromey.com>
4475
4476 * opencl-lang.c (opencl_logical_not): No longer static. Change
4477 parameters.
4478 (evaluate_subexp_opencl): Update.
4479 * c-exp.h (opencl_notequal_operation): New typedef.
4480
4481 2021-03-08 Tom Tromey <tom@tromey.com>
4482
4483 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4484 static. Change parameters.
4485 (eval_opencl_assign): No longer static. Add "op" parameter.
4486 (evaluate_subexp_opencl): Update.
4487 * c-exp.h (opencl_binop_operation): New template class.
4488 (opencl_assign_operation, opencl_equal_operation)
4489 (opencl_notequal_operation, opencl_less_operation)
4490 (opencl_gtr_operation, opencl_geq_operation)
4491 (opencl_leq_operation): New typedefs.
4492
4493 2021-03-08 Tom Tromey <tom@tromey.com>
4494
4495 * opencl-lang.c (opencl_value_cast): No longer static.
4496 * c-exp.h (opencl_cast_type_operation): New typedef.
4497
4498 2021-03-08 Tom Tromey <tom@tromey.com>
4499
4500 * f-exp.h (eval_op_f_allocated): Declare.
4501 (fortran_allocated_operation): New typedef.
4502 * f-lang.c (eval_op_f_allocated): No longer static.
4503
4504 2021-03-08 Tom Tromey <tom@tromey.com>
4505
4506 * f-lang.c (eval_op_f_associated): New functions.
4507 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4508 typedefs.
4509
4510 2021-03-08 Tom Tromey <tom@tromey.com>
4511
4512 * f-lang.c (fortran_bound_1arg::evaluate)
4513 (fortran_bound_2arg::evaluate): New methods.
4514 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4515 New.
4516
4517 2021-03-08 Tom Tromey <tom@tromey.com>
4518
4519 * expop.h (class unop_addr_operation) <get_expression>: New
4520 method.
4521 * f-lang.c (fortran_undetermined::value_subarray)
4522 (fortran_undetermined::evaluate): New methods.
4523 (fortran_prepare_argument): New overload.
4524 * f-exp.h (class fortran_range_operation)
4525 (class fortran_undetermined): New classes.
4526
4527 2021-03-08 Tom Tromey <tom@tromey.com>
4528
4529 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4530 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4531 method.
4532
4533 2021-03-08 Tom Tromey <tom@tromey.com>
4534
4535 * expression.h (class operation) <evaluate_funcall>: New methods.
4536 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4537 (class var_value_operation) <evaluate_funcall>: New method.
4538 (class structop_base_operation) <evaluate_funcall>: New method.
4539 (class var_msym_value_operation) <evaluate_funcall>: New method.
4540 (class structop_member_base): New class.
4541 (class structop_member_operation): Derive from
4542 structop_member_base.
4543 (class structop_mptr_operation): Derive from
4544 structop_member_base.
4545 (class funcall_operation): New class.
4546 * eval.c (operation::evaluate_funcall)
4547 (var_value_operation::evaluate_funcall)
4548 (scope_operation::evaluate_funcall)
4549 (structop_member_base::evaluate_funcall)
4550 (structop_base_operation::evaluate_funcall): New methods.
4551
4552 2021-03-08 Tom Tromey <tom@tromey.com>
4553
4554 * expop.h (class array_operation): New.
4555 * eval.c (array_operation::evaluate_struct_tuple)
4556 (array_operation::evaluate): New methods.
4557
4558 2021-03-08 Tom Tromey <tom@tromey.com>
4559
4560 * expop.h (class adl_func_operation): New.
4561 * eval.c (adl_func_operation::evaluate): New method.
4562
4563 2021-03-08 Tom Tromey <tom@tromey.com>
4564
4565 * ada-lang.c (ada_unop_in_range): No longer static.
4566 * ada-exp.h (class ada_unop_range_operation): New.
4567
4568 2021-03-08 Tom Tromey <tom@tromey.com>
4569
4570 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4571 No longer static.
4572 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4573 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4574
4575 2021-03-08 Tom Tromey <tom@tromey.com>
4576
4577 * expop.h (class logical_and_operation)
4578 (class logical_or_operation): New.
4579 * eval.c (logical_and_operation::evaluate)
4580 (logical_or_operation::evaluate): New methods.
4581 * ax-gdb.c (logical_and_operation::do_generate_ax)
4582 (logical_or_operation::do_generate_ax): New methods.
4583
4584 2021-03-08 Tom Tromey <tom@tromey.com>
4585
4586 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4587 static.
4588 * m2-exp.h: New file.
4589
4590 2021-03-08 Tom Tromey <tom@tromey.com>
4591
4592 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4593 * rust-exp.h (class rust_aggregate_operation): New.
4594
4595 2021-03-08 Tom Tromey <tom@tromey.com>
4596
4597 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4598 No longer static.
4599 * rust-exp.h (class rust_struct_anon): New.
4600 (class rust_structop): New.
4601
4602 2021-03-08 Tom Tromey <tom@tromey.com>
4603
4604 * rust-lang.c (rust_range): No longer static.
4605 * rust-exp.h (class rust_range_operation): New.
4606
4607 2021-03-08 Tom Tromey <tom@tromey.com>
4608
4609 * rust-lang.c (rust_subscript): No longer static.
4610 * rust-exp.h (class rust_subscript_operation): New.
4611
4612 2021-03-08 Tom Tromey <tom@tromey.com>
4613
4614 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4615 parameter.
4616 (rust_evaluate_subexp): Update.
4617 * rust-exp.h (class rust_unop_ind_operation): New.
4618
4619 2021-03-08 Tom Tromey <tom@tromey.com>
4620
4621 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4622 longer static. Add "opcode" parameter.
4623 (rust_evaluate_subexp): Update.
4624 * rust-exp.h: New file.
4625
4626 2021-03-08 Tom Tromey <tom@tromey.com>
4627
4628 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4629 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4630 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4631 (evaluate_subexp_f): Update.
4632 * f-exp.h: New file.
4633
4634 2021-03-08 Tom Tromey <tom@tromey.com>
4635
4636 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4637 * ada-exp.h (class ada_ternop_range_operation): New.
4638
4639 2021-03-08 Tom Tromey <tom@tromey.com>
4640
4641 * ada-lang.c (ada_qual_operation::evaluate): New method.
4642 * ada-exp.h (class ada_qual_operation): New.
4643
4644 2021-03-08 Tom Tromey <tom@tromey.com>
4645
4646 * ada-lang.c (ada_string_operation::evaluate): New method.
4647 * ada-exp.h (class ada_string_operation): New.
4648
4649 2021-03-08 Tom Tromey <tom@tromey.com>
4650
4651 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4652 * ada-exp.h: New file.
4653
4654 2021-03-08 Tom Tromey <tom@tromey.com>
4655
4656 * expop.h (class multi_subscript_operation): New.
4657 * eval.c (multi_subscript_operation::evaluate): New method.
4658
4659 2021-03-08 Tom Tromey <tom@tromey.com>
4660
4661 * eval.c (objc_msgcall_operation::evaluate): New method.
4662 * c-exp.h (class objc_msgcall_operation): New.
4663
4664 2021-03-08 Tom Tromey <tom@tromey.com>
4665
4666 * expop.h (class var_value_operation): New.
4667 * eval.c (var_value_operation::evaluate)
4668 (var_value_operation::evaluate_for_address)
4669 (var_value_operation::evaluate_with_coercion)
4670 (var_value_operation::evaluate_for_sizeof)
4671 (var_value_operation::evaluate_for_cast): New methods.
4672 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4673
4674 2021-03-08 Tom Tromey <tom@tromey.com>
4675
4676 * expop.h (cxx_cast_ftype): New typedef.
4677 (cxx_cast_operation): New template.
4678 (dynamic_cast_operation, reinterpret_cast_operation): New
4679 typedefs.
4680
4681 2021-03-08 Tom Tromey <tom@tromey.com>
4682
4683 * expop.h (class unop_cast_type_operation): New.
4684 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4685 method.
4686
4687 2021-03-08 Tom Tromey <tom@tromey.com>
4688
4689 * expop.h (class unop_cast_operation): New.
4690 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4691
4692 2021-03-08 Tom Tromey <tom@tromey.com>
4693
4694 * expop.h (class assign_modify_operation): New.
4695 * eval.c (eval_binop_assign_modify): No longer static.
4696 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4697
4698 2021-03-08 Tom Tromey <tom@tromey.com>
4699
4700 * expop.h (class assign_operation): New.
4701 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4702
4703 2021-03-08 Tom Tromey <tom@tromey.com>
4704
4705 * expop.h (class type_instance_operation): New.
4706 * eval.c (type_instance_operation::evaluate): New method.
4707
4708 2021-03-08 Tom Tromey <tom@tromey.com>
4709
4710 * expop.h (class op_this_operation): New.
4711 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4712
4713 2021-03-08 Tom Tromey <tom@tromey.com>
4714
4715 * expop.h (class unop_memval_operation)
4716 (class unop_memval_type_operation): New.
4717 * eval.c (eval_op_memval): No longer static.
4718 (unop_memval_operation::evaluate_for_address)
4719 (unop_memval_type_operation::evaluate_for_address)
4720 (unop_memval_operation::evaluate_for_sizeof)
4721 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4722 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4723 (unop_memval_type_operation::do_generate_ax): New methods.
4724
4725 2021-03-08 Tom Tromey <tom@tromey.com>
4726
4727 * expop.h (class unop_alignof_operation): New.
4728 * eval.c (eval_op_alignof): No longer static.
4729
4730 2021-03-08 Tom Tromey <tom@tromey.com>
4731
4732 * expop.h (class unop_sizeof_operation): New.
4733 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4734
4735 2021-03-08 Tom Tromey <tom@tromey.com>
4736
4737 * expop.h (class unop_addr_operation): New.
4738 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4739
4740 2021-03-08 Tom Tromey <tom@tromey.com>
4741
4742 * expop.h (class typeid_operation): New.
4743
4744 2021-03-08 Tom Tromey <tom@tromey.com>
4745
4746 * expop.h (class decltype_operation): New.
4747
4748 2021-03-08 Tom Tromey <tom@tromey.com>
4749
4750 * expop.h (class typeof_operation): New.
4751
4752 2021-03-08 Tom Tromey <tom@tromey.com>
4753
4754 * expop.h (class type_operation): New.
4755 * eval.c (eval_op_type): No longer static.
4756
4757 2021-03-08 Tom Tromey <tom@tromey.com>
4758
4759 * expop.h (class unop_ind_base_operation)
4760 (class unop_ind_operation): New.
4761 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4762 (unop_ind_base_operation::evaluate_for_address)
4763 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4764 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4765
4766 2021-03-08 Tom Tromey <tom@tromey.com>
4767
4768 * expop.h (unop_incr_operation): New template.
4769 (preinc_operation, predec_operation, postinc_operation)
4770 (postdec_operation): New typedefs.
4771 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4772 (eval_op_postdec): No longer static.
4773
4774 2021-03-08 Tom Tromey <tom@tromey.com>
4775
4776 * expop.h (unary_ftype): New typedef.
4777 (unop_operation, usual_ax_binop_operation): New templates.
4778 (unary_plus_operation, unary_neg_operation)
4779 (unary_complement_operation, unary_logical_not_operation): New
4780 typedefs.
4781 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4782 (eval_op_lognot): No longer static.
4783 * ax-gdb.c (gen_expr_unop): New function.
4784
4785 2021-03-08 Tom Tromey <tom@tromey.com>
4786
4787 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4788
4789 2021-03-08 Tom Tromey <tom@tromey.com>
4790
4791 * expop.h (class repeat_operation): New.
4792 * eval.c (eval_op_repeat): No longer static. Remove "op"
4793 parameter.
4794 (evaluate_subexp_standard): Update.
4795 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4796
4797 2021-03-08 Tom Tromey <tom@tromey.com>
4798
4799 * expop.h (class comparison_operation): New.
4800 (equal_operation, notequal_operation, less_operation)
4801 (gtr_operation, geq_operation, leq_operation): New typedefs.
4802 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4803 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4804
4805 2021-03-08 Tom Tromey <tom@tromey.com>
4806
4807 * expop.h (class subscript_operation): New.
4808 * eval.c (eval_op_subscript): No longer static.
4809
4810 2021-03-08 Tom Tromey <tom@tromey.com>
4811
4812 * expop.h (class binop_operation, class usual_ax_binop_operation):
4813 New.
4814 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4815 (div_operation, rem_operation, lsh_operation, rsh_operation)
4816 (bitwise_and_operation, bitwise_ior_operation)
4817 (bitwise_xor_operation): New typedefs.
4818 * eval.c (eval_op_binary): No longer static.
4819
4820 2021-03-08 Tom Tromey <tom@tromey.com>
4821
4822 * expop.h (class sub_operation): New.
4823 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4824 (evaluate_subexp_standard): Update.
4825
4826 2021-03-08 Tom Tromey <tom@tromey.com>
4827
4828 * expop.h (class add_operation): New.
4829 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4830 (evaluate_subexp_standard): Update.
4831
4832 2021-03-08 Tom Tromey <tom@tromey.com>
4833
4834 * expop.h (class concat_operation): New.
4835 * eval.c (eval_op_concat): No longer static. Remove "op"
4836 parameter.
4837 (evaluate_subexp_standard): Update.
4838
4839 2021-03-08 Tom Tromey <tom@tromey.com>
4840
4841 * expop.h (class structop_member_operation)
4842 (class structop_mptr_operation): New.
4843 * eval.c (eval_op_member): No longer static.
4844
4845 2021-03-08 Tom Tromey <tom@tromey.com>
4846
4847 * expop.h (class structop_ptr_operation): New.
4848 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4849 parameter.
4850
4851 2021-03-08 Tom Tromey <tom@tromey.com>
4852
4853 * expop.h (class structop_base_operation)
4854 (class structop_operation): New.
4855 * eval.c (eval_op_structop_struct): No longer static.
4856
4857 2021-03-08 Tom Tromey <tom@tromey.com>
4858
4859 * expop.h (class complex_operation): New.
4860
4861 2021-03-08 Tom Tromey <tom@tromey.com>
4862
4863 * eval.c (eval_op_objc_selector): No longer static.
4864 * c-exp.h (class objc_selector_operation): New.
4865
4866 2021-03-08 Tom Tromey <tom@tromey.com>
4867
4868 * eval.c: Include c-exp.h.
4869 * c-exp.h (class objc_nsstring_operation): New.
4870
4871 2021-03-08 Tom Tromey <tom@tromey.com>
4872
4873 * c-lang.c (c_string_operation::evaluate): New method.
4874 * c-exp.h: New file.
4875
4876 2021-03-08 Tom Tromey <tom@tromey.com>
4877
4878 * expop.h (class ternop_cond_operation): New.
4879 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4880
4881 2021-03-08 Tom Tromey <tom@tromey.com>
4882
4883 * expop.h (class ternop_slice_operation): New.
4884 * eval.c (eval_op_ternop): No longer static.
4885
4886 2021-03-08 Tom Tromey <tom@tromey.com>
4887
4888 * expop.h (class string_operation): New.
4889 * eval.c (eval_op_string): No longer static.
4890
4891 2021-03-08 Tom Tromey <tom@tromey.com>
4892
4893 * expop.h (class internalvar_operation): New.
4894 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4895
4896 2021-03-08 Tom Tromey <tom@tromey.com>
4897
4898 * expop.h (class bool_operation): New.
4899
4900 2021-03-08 Tom Tromey <tom@tromey.com>
4901
4902 * expop.h (class register_operation): New.
4903 * eval.c (eval_op_register): No longer static.
4904 * ax-gdb.c (register_operation::do_generate_ax): New method.
4905
4906 2021-03-08 Tom Tromey <tom@tromey.com>
4907
4908 * expop.h (class last_operation): New.
4909
4910 2021-03-08 Tom Tromey <tom@tromey.com>
4911
4912 * expop.h (class func_static_var_operation): New.
4913 * eval.c (eval_op_func_static_var): No longer static.
4914
4915 2021-03-08 Tom Tromey <tom@tromey.com>
4916
4917 * expop.h (class var_entry_value_operation): New.
4918 * eval.c (eval_op_var_entry_value): No longer static.
4919
4920 2021-03-08 Tom Tromey <tom@tromey.com>
4921
4922 * expression.h (class operation) <set_outermost>: New method.
4923 * expop.h (class var_msym_value_operation): New.
4924 * eval.c (eval_op_var_msym_value): No longer static.
4925 (var_msym_value_operation::evaluate_for_address)
4926 (var_msym_value_operation::evaluate_for_sizeof)
4927 (var_msym_value_operation::evaluate_for_cast): New methods.
4928 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4929 method.
4930
4931 2021-03-08 Tom Tromey <tom@tromey.com>
4932
4933 * expop.h (class long_const_operation): New.
4934 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4935
4936 2021-03-08 Tom Tromey <tom@tromey.com>
4937
4938 * expop.h (class scope_operation): New.
4939 * eval.c (eval_op_scope): No longer static.
4940 (scope_operation::evaluate_for_address): New method.
4941 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4942
4943 2021-03-08 Tom Tromey <tom@tromey.com>
4944
4945 * expprint.c (float_const_operation::dump): New method.
4946 * expop.h (float_data): New typedef.
4947 (class float_const_operation): New.
4948
4949 2021-03-08 Tom Tromey <tom@tromey.com>
4950
4951 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4952 * ax-gdb.c (gen_expr_binop): New function.
4953 (gen_expr_structop): Likewise.
4954
4955 2021-03-08 Tom Tromey <tom@tromey.com>
4956
4957 * expprint.c (expr::dump_for_expression): New functions.
4958 * expop.h (dump_for_expression): New overloads.
4959 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4960 Update.
4961
4962 2021-03-08 Tom Tromey <tom@tromey.com>
4963
4964 * expression.h (expr::operation): New class.
4965 (expr::make_operation): New function.
4966 (expr::operation_up): New typedef.
4967 * expop.h: New file.
4968 * eval.c (operation::evaluate_for_cast)
4969 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4970 New methods.
4971 * ax-gdb.c (operation::generate_ax): New method.
4972
4973 2021-03-08 Tom Tromey <tom@tromey.com>
4974
4975 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4976 (gen_expr_binop_rest): New overload.
4977
4978 2021-03-08 Tom Tromey <tom@tromey.com>
4979
4980 * eval.c (eval_multi_subscript): New function.
4981 (evaluate_subexp_standard): Use it.
4982
4983 2021-03-08 Tom Tromey <tom@tromey.com>
4984
4985 * ada-lang.c (ada_binop_exp): New function.
4986 (ada_evaluate_subexp): Use it.
4987
4988 2021-03-08 Tom Tromey <tom@tromey.com>
4989
4990 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4991 parameters.
4992 (ada_evaluate_subexp): Use it.
4993
4994 2021-03-08 Tom Tromey <tom@tromey.com>
4995
4996 * ada-lang.c (ada_binop_minmax): New function.
4997 (ada_evaluate_subexp): Use it.
4998
4999 2021-03-08 Tom Tromey <tom@tromey.com>
5000
5001 * ada-lang.c (ada_unop_atr): New function.
5002 (ada_evaluate_subexp): Use it.
5003
5004 2021-03-08 Tom Tromey <tom@tromey.com>
5005
5006 * ada-lang.c (ada_binop_in_bounds): New function.
5007 (ada_evaluate_subexp): Use it.
5008
5009 2021-03-08 Tom Tromey <tom@tromey.com>
5010
5011 * ada-lang.c (ada_ternop_slice): New function.
5012 (ada_evaluate_subexp): Use it.
5013
5014 2021-03-08 Tom Tromey <tom@tromey.com>
5015
5016 * ada-lang.c (ada_equal_binop): New function.
5017 (ada_evaluate_subexp): Use it.
5018
5019 2021-03-08 Tom Tromey <tom@tromey.com>
5020
5021 * ada-lang.c (ada_mult_binop): New function.
5022 (ada_evaluate_subexp): Use it.
5023
5024 2021-03-08 Tom Tromey <tom@tromey.com>
5025
5026 * ada-lang.c (ada_abs): New function.
5027 (ada_evaluate_subexp): Use it.
5028
5029 2021-03-08 Tom Tromey <tom@tromey.com>
5030
5031 * ada-lang.c (ada_atr_size): New function.
5032 (ada_evaluate_subexp): Use it.
5033
5034 2021-03-08 Tom Tromey <tom@tromey.com>
5035
5036 * ada-lang.c (ada_atr_tag): New function.
5037 (ada_evaluate_subexp): Use it.
5038
5039 2021-03-08 Tom Tromey <tom@tromey.com>
5040
5041 * ada-lang.c (ada_unop_in_range): New function.
5042 (ada_evaluate_subexp): Use it.
5043
5044 2021-03-08 Tom Tromey <tom@tromey.com>
5045
5046 * ada-lang.c (ada_unop_neg): New function.
5047 (ada_evaluate_subexp): Use it.
5048
5049 2021-03-08 Tom Tromey <tom@tromey.com>
5050
5051 * ada-lang.c (eval_ternop_in_range): New function.
5052 (ada_evaluate_subexp): Use it.
5053
5054 2021-03-08 Tom Tromey <tom@tromey.com>
5055
5056 * opencl-lang.c (eval_opencl_assign): New function.
5057 (evaluate_subexp_opencl): Use it.
5058
5059 2021-03-08 Tom Tromey <tom@tromey.com>
5060
5061 * eval.c (eval_op_objc_msgcall): New function.
5062 (evaluate_subexp_standard): Use it.
5063
5064 2021-03-08 Tom Tromey <tom@tromey.com>
5065
5066 * eval.c (eval_binop_assign_modify): New function.
5067 (evaluate_subexp_standard): Use it.
5068
5069 2021-03-08 Tom Tromey <tom@tromey.com>
5070
5071 * m2-lang.c (eval_op_m2_subscript): New function.
5072 (evaluate_subexp_modula2): Use it.
5073
5074 2021-03-08 Tom Tromey <tom@tromey.com>
5075
5076 * m2-lang.c (eval_op_m2_high): New function.
5077 (evaluate_subexp_modula2): Use it.
5078
5079 2021-03-08 Tom Tromey <tom@tromey.com>
5080
5081 * eval.c (evaluate_subexp_for_address_base): New function.
5082 (evaluate_subexp_for_address): Use it.
5083 (evaluate_subexp_for_sizeof_base): New function.
5084 (evaluate_subexp_for_sizeof): Use it.
5085
5086 2021-03-08 Tom Tromey <tom@tromey.com>
5087
5088 * rust-lang.c (eval_op_rust_structop): New function.
5089 (rust_evaluate_subexp): Use it.
5090
5091 2021-03-08 Tom Tromey <tom@tromey.com>
5092
5093 * rust-lang.c (eval_op_rust_struct_anon): New function.
5094 (rust_evaluate_subexp): Use it.
5095
5096 2021-03-08 Tom Tromey <tom@tromey.com>
5097
5098 * rust-lang.c (eval_op_rust_array): New function.
5099 (rust_evaluate_subexp): Use it.
5100
5101 2021-03-08 Tom Tromey <tom@tromey.com>
5102
5103 * rust-lang.c (eval_op_rust_complement): New function.
5104 (rust_evaluate_subexp): Use it.
5105
5106 2021-03-08 Tom Tromey <tom@tromey.com>
5107
5108 * rust-lang.c (eval_op_rust_ind): New function.
5109 (rust_evaluate_subexp): Use it.
5110
5111 2021-03-08 Tom Tromey <tom@tromey.com>
5112
5113 * rust-lang.c (rust_subscript): Change parameters.
5114 (rust_evaluate_subexp): Update.
5115
5116 2021-03-08 Tom Tromey <tom@tromey.com>
5117
5118 * rust-lang.c (rust_range): Change parameters.
5119 (rust_evaluate_subexp): Update.
5120
5121 2021-03-08 Tom Tromey <tom@tromey.com>
5122
5123 * f-lang.c (eval_op_f_allocated): New function.
5124 (evaluate_subexp_f): Use it.
5125
5126 2021-03-08 Tom Tromey <tom@tromey.com>
5127
5128 * f-lang.c (fortran_require_array): New function.
5129 (evaluate_subexp_f): Use it.
5130
5131 2021-03-08 Tom Tromey <tom@tromey.com>
5132
5133 * f-lang.c (eval_op_f_kind): New function.
5134 (evaluate_subexp_f): Use it.
5135
5136 2021-03-08 Tom Tromey <tom@tromey.com>
5137
5138 * f-lang.c (eval_op_f_cmplx): New function.
5139 (evaluate_subexp_f): Use it.
5140
5141 2021-03-08 Tom Tromey <tom@tromey.com>
5142
5143 * f-lang.c (eval_op_f_modulo): New function.
5144 (evaluate_subexp_f): Use it.
5145
5146 2021-03-08 Tom Tromey <tom@tromey.com>
5147
5148 * f-lang.c (eval_op_f_floor): New function.
5149 (evaluate_subexp_f): Use it.
5150
5151 2021-03-08 Tom Tromey <tom@tromey.com>
5152
5153 * f-lang.c (eval_op_f_ceil): New function.
5154 (evaluate_subexp_f): Use it.
5155
5156 2021-03-08 Tom Tromey <tom@tromey.com>
5157
5158 * f-lang.c (eval_op_f_mod): New function.
5159 (evaluate_subexp_f): Use it.
5160
5161 2021-03-08 Tom Tromey <tom@tromey.com>
5162
5163 * f-lang.c (eval_op_f_abs): New function.
5164 (evaluate_subexp_f): Use it.
5165
5166 2021-03-08 Tom Tromey <tom@tromey.com>
5167
5168 * eval.c (eval_op_type): New function.
5169 (evaluate_subexp_standard): Use it.
5170
5171 2021-03-08 Tom Tromey <tom@tromey.com>
5172
5173 * eval.c (eval_op_postdec): New function.
5174 (evaluate_subexp_standard): Use it.
5175
5176 2021-03-08 Tom Tromey <tom@tromey.com>
5177
5178 * eval.c (eval_op_postinc): New function.
5179 (evaluate_subexp_standard): Use it.
5180
5181 2021-03-08 Tom Tromey <tom@tromey.com>
5182
5183 * eval.c (eval_op_predec): New file.
5184 (evaluate_subexp_standard): Use it.
5185
5186 2021-03-08 Tom Tromey <tom@tromey.com>
5187
5188 * eval.c (eval_op_preinc): New function.
5189 (evaluate_subexp_standard): Use it.
5190
5191 2021-03-08 Tom Tromey <tom@tromey.com>
5192
5193 * eval.c (eval_op_memval): New function.
5194 (evaluate_subexp_standard): Use it.
5195
5196 2021-03-08 Tom Tromey <tom@tromey.com>
5197
5198 * eval.c (eval_op_alignof): New function.
5199 (evaluate_subexp_standard): Use it.
5200
5201 2021-03-08 Tom Tromey <tom@tromey.com>
5202
5203 * eval.c (eval_op_ind): New function.
5204 (evaluate_subexp_standard): Use it.
5205
5206 2021-03-08 Tom Tromey <tom@tromey.com>
5207
5208 * eval.c (eval_op_lognot): New function.
5209 (evaluate_subexp_standard): Use it.
5210
5211 2021-03-08 Tom Tromey <tom@tromey.com>
5212
5213 * eval.c (eval_op_complement): New function.
5214 (evaluate_subexp_standard): Use it.
5215
5216 2021-03-08 Tom Tromey <tom@tromey.com>
5217
5218 * eval.c (eval_op_neg): New function.
5219 (evaluate_subexp_standard): Use it.
5220
5221 2021-03-08 Tom Tromey <tom@tromey.com>
5222
5223 * eval.c (eval_op_plus): New function.
5224 (evaluate_subexp_standard): Use it.
5225
5226 2021-03-08 Tom Tromey <tom@tromey.com>
5227
5228 * eval.c (eval_op_repeat): New function.
5229 (evaluate_subexp_standard): Use it.
5230
5231 2021-03-08 Tom Tromey <tom@tromey.com>
5232
5233 * eval.c (eval_op_leq): New function.
5234 (evaluate_subexp_standard): Use it.
5235
5236 2021-03-08 Tom Tromey <tom@tromey.com>
5237
5238 * eval.c (eval_op_geq): New function.
5239 (evaluate_subexp_standard): Use it.
5240
5241 2021-03-08 Tom Tromey <tom@tromey.com>
5242
5243 * eval.c (eval_op_gtr): New function.
5244 (evaluate_subexp_standard): Use it.
5245
5246 2021-03-08 Tom Tromey <tom@tromey.com>
5247
5248 * eval.c (eval_op_less): New function.
5249 (evaluate_subexp_standard): Use it.
5250
5251 2021-03-08 Tom Tromey <tom@tromey.com>
5252
5253 * eval.c (eval_op_notequal): New function.
5254 (evaluate_subexp_standard): Use it.
5255
5256 2021-03-08 Tom Tromey <tom@tromey.com>
5257
5258 * eval.c (eval_op_equal): New function.
5259 (evaluate_subexp_standard): Use it.
5260
5261 2021-03-08 Tom Tromey <tom@tromey.com>
5262
5263 * eval.c (eval_op_subscript): New function.
5264 (evaluate_subexp_standard): Use it.
5265
5266 2021-03-08 Tom Tromey <tom@tromey.com>
5267
5268 * eval.c (eval_op_binary): New function.
5269 (evaluate_subexp_standard): Use it.
5270
5271 2021-03-08 Tom Tromey <tom@tromey.com>
5272
5273 * eval.c (eval_op_sub): New function.
5274 (evaluate_subexp_standard): Use it.
5275
5276 2021-03-08 Tom Tromey <tom@tromey.com>
5277
5278 * eval.c (eval_op_add): New function.
5279 (evaluate_subexp_standard): Use it.
5280
5281 2021-03-08 Tom Tromey <tom@tromey.com>
5282
5283 * eval.c (eval_op_member): New function.
5284 (evaluate_subexp_standard): Use it.
5285
5286 2021-03-08 Tom Tromey <tom@tromey.com>
5287
5288 * eval.c (eval_op_structop_ptr): New function.
5289 (evaluate_subexp_standard): Use it.
5290
5291 2021-03-08 Tom Tromey <tom@tromey.com>
5292
5293 * eval.c (eval_op_structop_struct): New function.
5294 (evaluate_subexp_standard): Use it.
5295
5296 2021-03-08 Tom Tromey <tom@tromey.com>
5297
5298 * eval.c (eval_op_ternop): New function.
5299 (evaluate_subexp_standard): Use it.
5300
5301 2021-03-08 Tom Tromey <tom@tromey.com>
5302
5303 * eval.c (eval_op_concat): New function.
5304 (evaluate_subexp_standard): Use it.
5305
5306 2021-03-08 Tom Tromey <tom@tromey.com>
5307
5308 * eval.c (eval_op_objc_selector): New function.
5309 (evaluate_subexp_standard): Use it.
5310
5311 2021-03-08 Tom Tromey <tom@tromey.com>
5312
5313 * eval.c (eval_op_string): New function.
5314 (evaluate_subexp_standard): Use it.
5315
5316 2021-03-08 Tom Tromey <tom@tromey.com>
5317
5318 * eval.c (eval_op_register): New function.
5319 (evaluate_subexp_standard): Use it.
5320
5321 2021-03-08 Tom Tromey <tom@tromey.com>
5322
5323 * eval.c (eval_op_func_static_var): New function.
5324 (evaluate_subexp_standard): Use it.
5325
5326 2021-03-08 Tom Tromey <tom@tromey.com>
5327
5328 * eval.c (eval_op_var_msym_value): New function.
5329 (evaluate_subexp_standard): Use it.
5330
5331 2021-03-08 Tom Tromey <tom@tromey.com>
5332
5333 * eval.c (eval_op_var_entry_value): New function.
5334 (evaluate_subexp_standard): Use it.
5335
5336 2021-03-08 Tom Tromey <tom@tromey.com>
5337
5338 * eval.c (eval_op_scope): New function.
5339 (evaluate_subexp_standard): Use it.
5340
5341 2021-03-06 Chernov Sergey <klen_s@mail.ru>
5342
5343 PR gdb/27528:
5344 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5345
5346 2021-03-06 Tom Tromey <tom@tromey.com>
5347
5348 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5349 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5350 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5351 (locate_dwz_sections, dwz_search_other_debugdirs)
5352 (dwarf2_get_dwz_file): Move to dwz.c.
5353 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5354 read.h.
5355 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5356 (dwarf2_get_dwz_file): Move from read.c.
5357
5358 2021-03-06 Tom Tromey <tom@tromey.com>
5359
5360 * debuginfod-support.h: Include scoped_fd.h.
5361
5362 2021-03-06 Tom Tromey <tom@tromey.com>
5363
5364 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5365 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5366 (get_abbrev_section_for_cu, read_attribute_value)
5367 (get_debug_line_section): Update.
5368 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5369
5370 2021-03-06 Tom Tromey <tom@tromey.com>
5371
5372 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5373 method.
5374 * dwarf2/read.c (section_is_p): Remove.
5375 (dwarf2_per_bfd::locate_sections)
5376 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5377 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5378 (dwarf2_locate_common_dwp_sections)
5379 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5380 Update.
5381
5382 2021-03-06 Tom Tromey <tom@tromey.com>
5383
5384 * xcoffread.c: Include sect-names.h.
5385 * symfile.h (struct dwarf2_section_names, struct
5386 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5387 * dwarf2/sect-names.h: New file, from symfile.h.
5388 * dwarf2/read.c: Include sect-names.h.
5389
5390 2021-03-06 Tom Tromey <tom@tromey.com>
5391
5392 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5393 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5394 (abbrev_table::read): Update.
5395 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5396 (struct abbrev_info): Reformat.
5397 <attrs>: Now an array.
5398 (struct abbrev_table) <alloc_abbrev>: Remove.
5399
5400 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5401
5402 * ctfread.c (ctf_psymtab_add_enums): New function.
5403 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5404
5405 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5406
5407 * ctfread.c (read_func_kind_type): Set up function arguments.
5408
5409 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5410 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5413 includes.
5414 (riscv_csrset): New static global.
5415 (riscv_update_csrmap): New function.
5416 (riscv_iterate_over_regset_sections): Process CSRs.
5417
5418 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5419
5420 * riscv-tdep.c (riscv_feature_name_csr): Define.
5421 (riscv_feature_name_cpu): Define.
5422 (riscv_feature_name_fpu): Define.
5423 (riscv_feature_name_virtual): Define.
5424 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5425 (riscv_freg_feature): Use riscv_feature_name_fpu.
5426 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5427 (riscv_csr_feature): Use riscv_feature_name_csr.
5428 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5429
5430 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5431 Craig Blackmore <craig.blackmore@embecosm.com>
5432
5433 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5434 (ALLDEPFILES): Add riscv-none-tdep.c.
5435 * configure: Regenerate.
5436 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5437 support.
5438 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5439 * elf-none-tdep.c: New file.
5440 * elf-none-tdep.h: New file.
5441 * riscv-none-tdep.c: New file.
5442
5443 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5444 Andrew Burgess <andrew.burgess@embecosm.com>
5445
5446 * corelow.c: Add 'xml-tdesc.h' include.
5447 (core_target::read_description): Load the target description from
5448 the core file when possible.
5449 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5450 note.
5451 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5452 (gcore_elf_make_tdesc_note): New function.
5453 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5454 * linux-tdep.c (linux_make_corefile_notes): Add target description
5455 note.
5456
5457 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * Makefile.in (SFILES): Add gcore-elf.c.
5460 (HFILES_NO_SRCDIR): Add gcore-elf.h
5461 * configure: Regenerate.
5462 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5463 support.
5464 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5465 (struct fbsd_collect_regset_section_cb_data): Delete.
5466 (fbsd_collect_regset_section_cb): Delete.
5467 (fbsd_collect_thread_registers): Delete.
5468 (struct fbsd_corefile_thread_data): Delete.
5469 (fbsd_corefile_thread): Delete.
5470 (fbsd_make_corefile_notes): Call
5471 gcore_elf_build_thread_register_notes instead of the now deleted
5472 FreeBSD code.
5473 * gcore-elf.c: New file, the content was moved here from
5474 linux-tdep.c, functions were renamed and given minor cleanup.
5475 * gcore-elf.h: New file.
5476 * gcore.c (gcore_find_signalled_thread): Moved here from
5477 linux-tdep.c and given a new name. Minor cleanups.
5478 * gcore.h (gcore_find_signalled_thread): Declare.
5479 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5480 (struct linux_collect_regset_section_cb_data): Delete.
5481 (linux_collect_regset_section_cb): Delete.
5482 (linux_collect_thread_registers): Delete.
5483 (linux_corefile_thread): Call
5484 gcore_elf_build_thread_register_notes.
5485 (find_signalled_thread): Delete.
5486 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5487
5488 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5489
5490 PR gdb/27147
5491 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5492 process_stratum_target parameter,
5493 sparc_store_inferior_registers): update callers.
5494 * sparc-nat.c (sparc_fetch_inferior_registers,
5495 sparc_store_inferior_registers): Add process_stratum_target
5496 parameter. Switch current thread before calling
5497 sparc_supply_gregset / sparc_collect_rwindow.
5498 (sparc_store_inferior_registers): Likewise.
5499 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5500 (sparc32obsd_collect_uthread): Likewise.
5501 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5502 Add assertion.
5503 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5504 sparc64obsd_supply_uthread): Add assertion.
5505
5506 2021-03-04 Tom Tromey <tromey@adacore.com>
5507
5508 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5509 (aux_add_nonlocal_symbols): Update.
5510 (ada_add_block_symbols): Change "found_sym" to bool.
5511
5512 2021-03-03 Tom Tromey <tromey@adacore.com>
5513
5514 * ada-lang.c (ada_resolve_function): Update comment.
5515 (is_nonfunction, add_symbols_from_enclosing_procs)
5516 (remove_extra_symbols): Likewise.
5517 (struct match_data): Add constructor, initializers.
5518 (add_nonlocal_symbols): Remove memset.
5519 (aux_add_nonlocal_symbols): Update comment.
5520 (ada_add_block_renamings, add_nonlocal_symbols)
5521 (ada_add_all_symbols): Likewise.
5522 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5523
5524 2021-03-02 Tom Tromey <tromey@adacore.com>
5525
5526 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5527 (cast_to_gnat_encoded_fixed_point_type): Remove.
5528 (ada_value_cast, ada_evaluate_subexp): Update.
5529 (gnat_encoded_fixed_point_type_info)
5530 (ada_is_gnat_encoded_fixed_point_type)
5531 (gnat_encoded_fixed_point_delta)
5532 (gnat_encoded_fixed_point_scaling_factor): Remove.
5533 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5534 (gnat_encoded_fixed_point_delta)
5535 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5536 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5537 (ada_print_type): Update.
5538 * ada-valprint.c (ada_value_print_num): Update.
5539 * dwarf2/read.c (ada_get_gnat_encoded_number)
5540 (ada_get_gnat_encoded_ratio): New functions.
5541 (finish_fixed_point_type): Use them. Add parameters.
5542 (GNAT_FIXED_POINT_SUFFIX): New define.
5543 (gnat_encoded_fixed_point_type_info): New function.
5544 (read_base_type): Handle gnat encodings.
5545
5546 2021-03-02 Tom Tromey <tromey@adacore.com>
5547
5548 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5549 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5550 std::string.
5551 (GROW_VECT): Remove.
5552 (grow_vect): Remove.
5553
5554 2021-03-02 Tom Tromey <tromey@adacore.com>
5555
5556 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5557 * ada-lang.c (resolve_subexp): Update.
5558 (ada_resolve_function): Accept a vector.
5559 (is_nonfunction, add_defn_to_vec)
5560 (add_symbols_from_enclosing_procs): Likewise.
5561 (num_defns_collected, defns_collected): Remove.
5562 (remove_extra_symbols): Return a vector.
5563 (remove_irrelevant_renamings): Return void.
5564 (ada_add_local_symbols): Accept a vector.
5565 (struct match_data) <obstackp>: Remove.
5566 <resultp>: New member.
5567 (aux_add_nonlocal_symbols): Update.
5568 (ada_add_block_renamings, add_nonlocal_symbols)
5569 (ada_add_all_symbols): Accept a vector.
5570 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5571 vector.
5572 (ada_lookup_symbol): Update.
5573 (ada_add_block_symbols): Accept a vector.
5574 (get_var_value, iterate_over_symbols): Update.
5575 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5576 Update.
5577
5578 2021-03-02 Tom Tromey <tromey@adacore.com>
5579
5580 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5581
5582 2021-03-02 Tom Tromey <tromey@adacore.com>
5583
5584 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5585 auto_obstack.
5586 <root>: Initialize.
5587 (ada_pspace_data): Remove destructor.
5588 <sym_cache>: Now a unique_ptr.
5589 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5590 (ada_get_symbol_cache): Use 'new'.
5591 (ada_clear_symbol_cache): Rewrite.
5592
5593 2021-03-02 Tom Tromey <tromey@adacore.com>
5594
5595 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5596 is null.
5597
5598 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5599
5600 PR gdb/27393
5601 * source.c (add_path): Skip empty dirnames.
5602
5603 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5604
5605 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5606 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5607
5608 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5609
5610 PR gdb/26861
5611 * target.c (target_mourn_inferior): Only compare pids in
5612 target_mourn_inferior.
5613
5614 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5615
5616 PR gdb/26819
5617 * remote.c (remote_target::start_remote): Ensure the single
5618 thread, automatically added for remote targets without the
5619 concept of threading, is initially in set to the "resumed"
5620 state.
5621 * remote.c (remote_target::add_current_inferior_and_thread):
5622 Add return value - return the main thread.
5623
5624 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5625
5626 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5627 (mi_tsv_created): Likewise.
5628 (mi_tsv_deleted): Likewise.
5629
5630 2021-02-25 Tom de Vries <tdevries@suse.de>
5631
5632 PR symtab/27354
5633 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5634 section_kind for &dwo_file->sections.info.
5635
5636 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5637
5638 PR fortran/26155
5639 * f-lang.c (fortran_argument_convert): Delete declaration.
5640 (fortran_prepare_argument): New function.
5641 (evaluate_subexp_f): Move logic to new function
5642 fortran_prepare_argument.
5643
5644 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * f-exp.y (f77_keywords): Add 'associated'.
5647 * f-lang.c (fortran_associated): New function.
5648 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5649 (operator_length_f): Likewise.
5650 (print_unop_or_binop_subexp_f): New function.
5651 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5652 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5653 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5654 (operator_check_f): Likewise.
5655 * std-operator.def: Add FORTRAN_ASSOCIATED.
5656
5657 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5658
5659 * f-exp.y (fortran_operators): Add ".xor.".
5660
5661 2021-02-24 Tom de Vries <tdevries@suse.de>
5662
5663 PR symtab/27336
5664 * dwarf2/attribute.c (attribute::form_is_signed): New function
5665 factored out of ...
5666 * dwarf2/attribute.h (attribute::as_signed): ... here.
5667 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5668 (attribute::form_is_signed): Declare.
5669 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5670 for DW_AT_decl_file.
5671
5672 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5673
5674 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5675 order for <sys/ptrace.h> and <asm/ptrace.h>.
5676
5677 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5678
5679 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5680 <sys/ptrace.h>.
5681
5682 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5683
5684 * exec.c (set_section_command): Move variable declarations into
5685 the function body, and use std::string instead of a fixed size
5686 buffer.
5687
5688 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5689
5690 * exec.c (exec_target::get_section_table): Delete member function.
5691 (section_table_read_available_memory): Use current_top_target, not
5692 just the exec_ops target.
5693 * target-delegates.c: Regenerate.
5694 * target.c (default_get_section_table): New function.
5695 * target.h (target_ops::get_section_table): Change default
5696 behaviour to call default_get_section_table.
5697 (default_get_section_table): Declare.
5698
5699 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5700
5701 * exec.c (exec_target::close): Call new clear_target_sections
5702 function.
5703 (program_space::add_target_sections): Update name of member
5704 variable.
5705 (program_space::add_target_sections): Update name of member
5706 variable.
5707 (program_space::remove_target_sections): Likewise.
5708 (exec_one_fork): Use new target_sections member function.
5709 (exec_target::get_section_table): Likewise.
5710 (exec_target::files_info): Likewise.
5711 (set_section_command): Likewise.
5712 (exec_set_section_address): Likewise.
5713 (exec_target::has_memory): Use new target_sections member
5714 function.
5715 * progspace.h (program_space::clear_target_sections): New member
5716 function.
5717 (program_space::target_sections): Rename member variable to
5718 m_target_sections, replace with a new member function.
5719 (program_space::m_target_sections): New member variable.
5720 * solib-dsbt.c (scan_dyntag): Use new member function.
5721 * solib-svr4.c (scan_dyntag): Likewise.
5722
5723 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5724
5725 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5726 return type const.
5727 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5728 (section_table_read_available_memory): Make local const.
5729 (exec_target::xfer_partial): Make local const.
5730 (print_section_info): Make parameter const.
5731 * gdb/exec.h (print_section_info): Likewise.
5732 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5733 const.
5734 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5735 Likewise.
5736 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5737 Likewise.
5738 * gdb/s390-tdep.c (s390_load): Likewise.
5739 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5740 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5741 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5742 Rename to...
5743 (target_debug_print_const_target_section_table_p): ...this.
5744 * gdb/target-delegates.c: Regenerate.
5745 * gdb/target.c (target_get_section_table): Make return type const.
5746 (target_section_by_addr): Likewise. Also make some locals const.
5747 (memory_xfer_partial_1): Make some locals const.
5748 * gdb/target.h (struct target_ops) <get_section_table>: Make
5749 return type const.
5750 (target_section_by_addr): Likewise.
5751 (target_get_section_table): Likewise.
5752
5753 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5754
5755 * NEWS: Mention new 'maint info target-sections' command.
5756 * maint.c (maintenance_info_target_sections): New function.
5757 (_initialize_maint_cmds): Register new command.
5758
5759 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5760
5761 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5762 (riscv_features_from_bfd): ...this. Change parameter type to
5763 'bfd*', and update as required.
5764 (riscv_find_default_target_description): Update call to
5765 riscv_features_from_bfd. Select a default xlen based on
5766 info.bfd_arch_info.
5767 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5768
5769 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5770
5771 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5772 dynamic types in UNOP_IND.
5773
5774 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 PR gdb/26828
5777 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5778 Instantiate queue.
5779 (~dwarf2_queue_guard): Clear queue.
5780 (queue_comp_unit): Assert that queue is
5781 instantiated.
5782 (process_queue): Adjust.
5783 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5784
5785 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5786
5787 PR gdb/26828
5788 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5789 to decide whether or not to enqueue it for expansion.
5790 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5791 after calling maybe_queue_comp_unit.
5792
5793 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * linux-nat.c (linux_nat_filter_event): Return void.
5796
5797 2021-02-22 Tom Tromey <tromey@adacore.com>
5798
5799 * solib-svr4.c (enable_break): Update.
5800 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5801 type.
5802 (target_bfd_reopen): Change parameter type.
5803 * bfd-target.h (target_bfd_reopen): Change parameter type.
5804
5805 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5806
5807 * thread.c (add_thread_silent): Add assert.
5808 (find_thread_ptid): Add assert.
5809
5810 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5811
5812 PR gdb/27435
5813 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5814 (target_unpush_up): Likewise.
5815 * procfs.c (procfs_target::attach): Push target early. Use
5816 target_unpush_up to unpush target in case of error.
5817 * target.h (struct target_unpusher): Move here.
5818 (target_unpush_up): Likewise.
5819
5820 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5821
5822 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5823 (which in turn includes <gnulib/config.h>) before include
5824 of <signal.h>.
5825
5826 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5827
5828 PR 27158
5829 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5830 (decode_j_type_insn): Likewise.
5831 (decode_cj_type_insn): Likewise.
5832 (decode_b_type_insn): Likewise.
5833 (decode): Likewise.
5834
5835 2021-02-18 Tom Tromey <tom@tromey.com>
5836
5837 * expression.h (struct expression) <evaluate>: Declare method.
5838 * eval.c (evaluate_subexp): Simplify.
5839 (expression::evaluate): New method.
5840 (evaluate_expression, evaluate_type): Use expression::evaluate.
5841
5842 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5843
5844 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5845 to accessing it.
5846 (ada_lookup_name_info): Likewise.
5847
5848 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5849
5850 * aclocal.m4: Regenerate.
5851
5852 2021-02-12 Tom de Vries <tdevries@suse.de>
5853
5854 PR threads/26228
5855 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5856 (lin_thread_signals): New static var.
5857 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5858 New function.
5859 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5860 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5861 Declare.
5862 * linux-thread-db.c (check_thread_signals): Use
5863 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5864
5865 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5866
5867 * f-exp.y (f77_keywords): Add allocated.
5868 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5869 (operator_length_f): Likewise.
5870 (print_subexp_f): Likewise.
5871 (dump_subexp_body_f): Likewise.
5872 (operator_check_f): Likewise.
5873 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5874
5875 2021-02-11 Tom de Vries <tdevries@suse.de>
5876
5877 PR symtab/27353
5878 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5879 Return true for DW_FORM_strx.
5880
5881 2021-02-11 Tom Tromey <tromey@adacore.com>
5882
5883 PR gdb/27383:
5884 * parse.c (write_exp_symbol_reference): Write sym.block.
5885
5886 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5887
5888 * NEWS: Mention changes to 'maint info sections'.
5889 * maint.c (match_substring): Return a bool, fix whitespace issue.
5890 (struct single_bfd_flag_info): New struct.
5891 (bfd_flag_info): New static global.
5892 (match_bfd_flags): Return a bool, use bfd_flag_info.
5893 (print_bfd_flags): Use bfd_flag_info.
5894 (maint_print_section_info): Delete trailing whitespace.
5895 (struct maint_info_sections_opts): New struct.
5896 (maint_info_sections_option_defs): New static global.
5897 (maint_info_sections_completer): New function.
5898 (maintenance_info_sections): Use option parsing mechanism.
5899 (_initialize_maint_cmds): Update command help text for 'maint info
5900 sections' and register a command completer.
5901
5902 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5903
5904 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5905 functionality merged into...
5906 (maint_print_all_sections): ...this new function.
5907 (maintenance_info_sections): Make use of maint_print_all_sections,
5908 allow all objects to be printed even where there's no executable.
5909
5910 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5911
5912 * breakpoint.c (resolve_sal_pc): Make use of
5913 bound_minimal_symbol::obj_section.
5914 * maint.c (maintenance_translate_address): Likewise.
5915 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5916 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5917 member function.
5918 * printcmd.c (info_address_command): Make use of
5919 bound_minimal_symbol::obj_section.
5920
5921 2021-02-11 Alan Modra <amodra@gmail.com>
5922
5923 * arm-symbian-tdep.c: Delete.
5924 * NEWS: Mention arm-symbian removal.
5925 * Makefile.in: Remove arm-symbian-tdep entries.
5926 * configure.tgt: Remove arm*-*-symbianelf*.
5927 * doc/gdb.texinfo: Remove mention of SymbianOS.
5928 * osabi.c (gdb_osabi_names): Remove "Symbian".
5929 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5930 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5931 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5932 handling.
5933 * testsuite/gdb.base/dup-sect.exp: Likewise.
5934 * testsuite/gdb.base/long_long.exp: Likewise.
5935 * testsuite/gdb.base/solib-weak.exp: Likewise.
5936 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5937 * testsuite/gdb.python/py-section-script.exp: Likewise.
5938 * testsuite/lib/dwarf.exp: Likewise.
5939 * testsuite/lib/gdb.exp: Likewise.
5940
5941 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5942
5943 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5944 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5945 (one_or_two_args): New pattern.
5946 (f77_keywords): Add lbound and ubound.
5947 * f-lang.c (fortran_bounds_all_dims): New function.
5948 (fortran_bounds_for_dimension): New function.
5949 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5950 (operator_length_f): Likewise.
5951 (print_subexp_f): Likewise.
5952 (dump_subexp_body_f): Likewise.
5953 (operator_check_f): Likewise.
5954 * std-operator.def (FORTRAN_LBOUND): Define.
5955 (FORTRAN_UBOUND): Define.
5956
5957 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5958
5959 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5960 and set_section_index member functions where appropriate.
5961 * coffread.c (coff_symtab_read): Likewise.
5962 (process_coff_symbol): Likewise.
5963 * ctfread.c (set_symbol_address): Likewise.
5964 * dwarf2/read.c (add_partial_symbol): Likewise.
5965 (var_decode_location): Likewise.
5966 * language.c: Likewise.
5967 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5968 (compact_minimal_symbols): Likewise.
5969 (minimal_symbol_upper_bound): Likewise.
5970 * objfiles.c (relocate_one_symbol): Likewise.
5971 * psympriv.h (partial_symbol::obj_section): Likewise.
5972 (partial_symbol::address): Likewise.
5973 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5974 * stabsread.c (scan_file_globals): Likewise.
5975 * symmisc.c (dump_msymbols): Likewise.
5976 * symtab.c (general_symbol_info::obj_section): Likewise.
5977 (fixup_section): Likewise.
5978 (get_msymbol_address): Likewise.
5979 * symtab.h (general_symbol_info::section): Rename to...
5980 (general_symbol_info::m_section): ...this.
5981 (general_symbol_info::set_section_index): New member function.
5982 (general_symbol_info::section_index): Likewise.
5983 (SYMBOL_SECTION): Delete.
5984 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5985 set_section_index member functions where appropriate.
5986 (MSYMBOL_SECTION): Delete.
5987 (symbol::symbol): Update to initialize 'm_section'.
5988 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5989 (process_xcoff_symbol): Likewise.
5990
5991 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5994 MSYMBOL_OBJ_SECTION.
5995 * findvar.c (language_defn::read_var_value): Likewise.
5996 * infcmd.c (jump_command): Likewise.
5997 * linespec.c (minsym_found): Likewise.
5998 * maint.c (maintenance_translate_address): Likewise.
5999 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6000 (minimal_symbol_upper_bound): Likewise.
6001 * parse.c (find_minsym_type_and_address): Likewise.
6002 (operator_check_standard): Likewise.
6003 * printcmd.c (info_address_command): Likewise.
6004 * symmisc.c (dump_msymbols): Likewise.
6005 (print_symbol): Likewise.
6006 * symtab.c (general_symbol_info::obj_section): Define new
6007 function.
6008 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6009 (find_pc_sect_compunit_symtab): Likewise.
6010 (find_function_start_sal): Likewise.
6011 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6012 MSYMBOL_OBJ_SECTION.
6013 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6014 function.
6015 (SYMBOL_OBJ_SECTION): Delete.
6016 (MSYMBOL_OBJ_SECTION): Delete.
6017
6018 2021-02-09 Tom Tromey <tom@tromey.com>
6019
6020 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6021
6022 2021-02-09 Tom de Vries <tdevries@suse.de>
6023
6024 PR symtab/27341
6025 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6026 construct an array type. Add assert to ensure that element_type is
6027 not being modified.
6028
6029 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6030
6031 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6032 (gcore_collect_regset_section_cb): Delete.
6033 (gcore_collect_thread_registers): Delete.
6034 (gcore_build_thread_register_notes): Delete.
6035 (gcore_find_signalled_thread): Delete.
6036 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6037 'gdbarch' and 'thread_info' declarations.
6038 (gcore_build_thread_register_notes): Delete declaration.
6039 (gcore_find_signalled_thread): Likewise.
6040 * fbsd-tdep.c: Remove 'gcore.h' include.
6041 (struct fbsd_collect_regset_section_cb_data): New struct.
6042 (fbsd_collect_regset_section_cb): New function.
6043 (fbsd_collect_thread_registers): New function.
6044 (struct fbsd_corefile_thread_data): New struct.
6045 (fbsd_corefile_thread): New function.
6046 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6047 * linux-tdep.c: Remove 'gcore.h' include.
6048 (struct linux_collect_regset_section_cb_data): New struct.
6049 (linux_collect_regset_section_cb): New function.
6050 (linux_collect_thread_registers): New function.
6051 (linux_corefile_thread): Call Linux specific code.
6052 (find_signalled_thread): New function.
6053 (linux_make_corefile_notes): Call find_signalled_thread.
6054
6055 2021-02-09 Tom Tromey <tromey@adacore.com>
6056
6057 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6058 not_lval value.
6059 * value.c (value_contents_copy_raw): Now static.
6060 * value.h (value_contents_copy_raw): Don't declare.
6061
6062 2021-02-09 Tom Tromey <tromey@adacore.com>
6063
6064 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6065 fields.
6066
6067 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
6068
6069 PR tdep/27369
6070 * arc-linux-tdep.c (handle_atomic_sequence): New.
6071 (arc_linux_software_single_step): Call handle_atomic_sequence().
6072
6073 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6074
6075 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6076 function.
6077 (REQUIRE_WINDOW): Call is_valid member function.
6078 (REQUIRE_WINDOW_FOR_SETTER): New define.
6079 (gdbpy_tui_is_valid): Call is_valid member function.
6080 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6081 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6082 tui_active too.
6083 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6084 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6085 the function.
6086
6087 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6088
6089 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6090 for the title is not nullptr.
6091
6092 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * tui-layout.c (saved_tui_windows): Delete.
6095 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6096 call new get_windows member function instead.
6097 (tui_get_window_by_name): Check in tui_windows.
6098 (tui_layout_window::apply): Don't add to tui_windows.
6099 * tui-layout.h (tui_layout_base::get_windows): New member function.
6100 (tui_layout_window::get_windows): Likewise.
6101 (tui_layout_split::get_windows): Likewise.
6102
6103 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6104
6105 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6106 of the window objects.
6107
6108 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6109
6110 * python/python.c (gdbpy_print_stack): Reformat an error message.
6111
6112 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6113
6114 * tui/tui-interp.c (tui_command_line_handler): New function.
6115 (tui_interp::resume): Register tui_command_line_handler as the
6116 input_handler.
6117 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6118 function.
6119 (tui_getc_1): Delete handling of '\n' and '\r'.
6120 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6121
6122 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6123
6124 * tui/tui-regs.c (tui_data_window::display_registers_from):
6125 Mark invisible register sub windows.
6126 (tui_data_window::check_register_values): Ignore invisible
6127 register sub windows.
6128
6129 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6130
6131 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6132 n_spaces with a negative value.
6133
6134 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6135
6136 * tui/tui-regs.c (tui_data_window::display_registers_from):
6137 Add refresh_window call.
6138
6139 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6140
6141 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6142
6143 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6144
6145 * symmisc.c (std_in, std_out, std_err): Remove.
6146 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6147
6148 2021-02-05 Tom de Vries <tdevries@suse.de>
6149
6150 PR breakpoints/27330
6151 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6152 glibc object file has debug info.
6153
6154 2021-02-05 Tom de Vries <tdevries@suse.de>
6155
6156 PR symtab/27333
6157 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6158
6159 2021-02-05 Tom de Vries <tdevries@suse.de>
6160
6161 PR breakpoints/27313
6162 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6163 syscall numbers.
6164
6165 2021-02-05 Tom Tromey <tom@tromey.com>
6166
6167 * compile/compile-c-support.c (get_compile_context)
6168 (c_get_compile_context, cplus_get_compile_context): Change return
6169 type.
6170 * language.c (language_defn::get_compile_instance): New method.
6171 * language.h (language_defn::get_compile_instance): Change return
6172 type. No longer inline.
6173 * c-lang.c (c_language::get_compile_instance): Change return type.
6174 (cplus_language::get_compile_instance): Change return type.
6175 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6176 Change return type.
6177 * compile/compile.c (compile_to_object): Update.
6178
6179 2021-02-05 Tom Tromey <tom@tromey.com>
6180
6181 * parser-defs.h (write_exp_symbol_reference): Declare.
6182 * parse.c (write_exp_symbol_reference): New function.
6183 * p-exp.y (variable): Use write_exp_symbol_reference.
6184 * m2-exp.y (variable): Use write_exp_symbol_reference.
6185 * f-exp.y (variable): Use write_exp_symbol_reference.
6186 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6187 * c-exp.y (variable): Use write_exp_symbol_reference.
6188
6189 2021-02-05 Tom de Vries <tdevries@suse.de>
6190
6191 PR exp/27265
6192 * valarith.c (complex_binop): Throw an error if complex type can't
6193 be created.
6194
6195 2021-02-05 Tom de Vries <tdevries@suse.de>
6196
6197 PR symtab/27307
6198 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6199 return.
6200
6201 2021-02-05 Tom de Vries <tdevries@suse.de>
6202
6203 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6204
6205 2021-02-04 Mike Frysinger <vapier@gentoo.org>
6206
6207 * configure.tgt (riscv*-*-*): Set gdb_sim.
6208
6209 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6210
6211 * target.c (target_is_non_stop_p): Return bool.
6212 * target.h (target_is_non_stop_p): Return bool.
6213
6214 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * record-full.c (record_full_async_inferior_event_handler):
6217 Don't clear async event handler.
6218 (record_full_base_target::wait): Clear async event handler at
6219 beginning.
6220
6221 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6222
6223 * record-btrace.c (record_btrace_handle_async_inferior_event):
6224 Don't clear async event handler.
6225 (record_btrace_target::wait): Clear async event handler at
6226 beginning.
6227
6228 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * remote.c (remote_target::wait): Clear async event handler at
6231 beginning, mark if needed at the end.
6232 (remote_async_inferior_event_handler): Don't set or clear async
6233 event handler.
6234
6235 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * async-event.h (async_event_handler_func): Add documentation.
6238 * async-event.c (check_async_event_handlers): Don't clear
6239 async_event_handler ready flag.
6240 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6241 flag.
6242 * record-btrace.c (record_btrace_handle_async_inferior_event):
6243 Likewise.
6244 * record-full.c (record_full_async_inferior_event_handler):
6245 Likewise.
6246 * remote-notif.c (remote_async_get_pending_events_handler):
6247 Likewise.
6248 * remote.c (remote_async_inferior_event_handler): Likewise.
6249
6250 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6251
6252 * infrun.c (handle_inferior_event): Move stop_soon variable to
6253 inner scope.
6254
6255 2021-02-03 Pedro Alves <pedro@palves.net>
6256
6257 * infcmd.c (detach_command): Hold strong reference to target, and
6258 if all-stop on entry, restart threads on exit.
6259 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6260 (restart_stepped_thread): ... this new function. Also handle
6261 trap_expected.
6262 (restart_after_all_stop_detach): New function.
6263 * infrun.h (restart_after_all_stop_detach): Declare.
6264
6265 2021-02-03 Pedro Alves <pedro@palves.net>
6266
6267 * infrun.c (struct step_over_info): Initialize fields.
6268 (prepare_for_detach): Handle ongoing in-line step over.
6269
6270 2021-02-03 Pedro Alves <pedro@palves.net>
6271
6272 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6273 here...
6274 * remote.c (remote_target::remote_detach_1): ... and here ...
6275 * target.c (target_detach): ... instead of here.
6276 * target.h (target_ops::detach): Add comment.
6277
6278 2021-02-03 Pedro Alves <pedro@palves.net>
6279
6280 * infrun.c (struct wait_one_event): Move higher up.
6281 (prepare_for_detach): Abort in-progress displaced steps instead of
6282 letting them complete.
6283 (handle_one): If the inferior is detaching, don't add the thread
6284 back to the global step-over chain.
6285 (restart_threads): Don't restart threads if detaching.
6286 (handle_signal_stop): Remove inferior::detaching reference.
6287
6288 2021-02-03 Pedro Alves <pedro@palves.net>
6289
6290 * infrun.c (prepare_for_detach): Don't release scoped_restore
6291 before returning.
6292
6293 2021-02-03 Pedro Alves <pedro@palves.net>
6294
6295 * infrun.c (handle_one): New function, factored out from ...
6296 (stop_all_threads): ... here.
6297
6298 2021-02-03 Pedro Alves <pedro@palves.net>
6299
6300 * remote.c (remote_notif_stop_ack): Don't error out on
6301 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6302 (remote_target::discard_pending_stop_replies): Don't delete
6303 in-flight notification; instead, clear its contents.
6304
6305 2021-02-03 Pedro Alves <pedro@palves.net>
6306
6307 * remote.c (extended_remote_target::attach): Set target async in
6308 the target-non-stop path too.
6309
6310 2021-02-03 Pedro Alves <pedro@palves.net>
6311
6312 PR gdb/27055
6313 * infrun.c (handle_signal_stop): Move main context_switch call
6314 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6315
6316 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6317
6318 * NEWS (Changed commands): Add entry for the behavior change of
6319 the inferior command.
6320 * inferior.c (inferior_command): When no argument is given to the
6321 inferior command, display info about the currently selected
6322 inferior.
6323
6324 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6327 a sect_offset.
6328 (read_attribute_reprocess): Adjust.
6329
6330 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6333 <gnu_ranges_base>: ... this...
6334 <rnglists_base>: ... and this.
6335 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6336 <gnu_ranges_base>: ... this...
6337 <rnglists_base>: ... and this.
6338 (read_cutu_die_from_dwo): Adjust
6339 (dwarf2_get_pc_bounds): Adjust
6340 (dwarf2_record_block_ranges): Adjust.
6341 (read_full_die_1): Adjust
6342 (partial_die_info::read): Adjust.
6343 (read_rnglist_index): Adjust.
6344
6345 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6346
6347 PR gdb/26813
6348 * dwarf2/read.c (read_loclists_rnglists_header): Add
6349 header_offset parameter and use it.
6350 (read_loclist_index): Read header of the current contribution,
6351 not the one at the beginning of the section.
6352 (read_rnglist_index): Likewise.
6353
6354 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6355
6356 PR gdb/26813
6357 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6358 requires_reprocessing flag.
6359 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6360 DW_FORM_loclistx.
6361 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6362 and DW_FORM_loclistx.
6363 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6364 instead of set_address for DW_FORM_loclistx and
6365 DW_FORM_rnglistx.
6366
6367 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6368
6369 * dwarf2/read.c (read_loclist_index): Remove bound check for
6370 start of offset.
6371 (read_rnglist_index): Likewise.
6372
6373 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6374
6375 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6376 of the offset.
6377
6378 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6379
6380 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6381
6382 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6383
6384 * dwarf2/read.c (read_loclist_index): Change complaints into
6385 errors.
6386
6387 2021-02-02 Tom de Vries <tdevries@suse.de>
6388
6389 PR symtab/24620
6390 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6391 psymtab == nullptr.
6392
6393 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6394
6395 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6396 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6397 here from linux-tdep.c and given a new name. Minor cleanups.
6398 (gcore_collect_regset_section_cb): Likewise.
6399 (gcore_collect_thread_registers): Likewise.
6400 (gcore_build_thread_register_notes): Likewise.
6401 (gcore_find_signalled_thread): Likewise.
6402 * gcore.h (gcore_build_thread_register_notes): Declare.
6403 (gcore_find_signalled_thread): Declare.
6404 * fbsd-tdep.c: Add 'gcore.h' include.
6405 (struct fbsd_collect_regset_section_cb_data): Delete.
6406 (fbsd_collect_regset_section_cb): Delete.
6407 (fbsd_collect_thread_registers): Delete.
6408 (struct fbsd_corefile_thread_data): Delete.
6409 (fbsd_corefile_thread): Delete.
6410 (fbsd_make_corefile_notes): Call
6411 gcore_build_thread_register_notes instead of the now deleted
6412 FreeBSD code.
6413 * linux-tdep.c: Add 'gcore.h' include.
6414 (struct linux_collect_regset_section_cb_data): Delete.
6415 (linux_collect_regset_section_cb): Delete.
6416 (linux_collect_thread_registers): Delete.
6417 (linux_corefile_thread): Call
6418 gcore_build_thread_register_notes.
6419 (find_signalled_thread): Delete.
6420 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6421
6422 2021-01-29 Tom de Vries <tdevries@suse.de>
6423
6424 PR breakpoints/26063
6425 * infrun.c (process_event_stop_test): Reset
6426 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6427 changed.
6428
6429 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6430
6431 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6432 assert. Extend the header comment.
6433
6434 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6435
6436 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6437 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6438 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6439 (tui_locator_win_info_ptr): Delete declaration.
6440 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6441 (tui_disasm_window::set_contents): Fetch state from tui_location
6442 global.
6443 (tui_get_begin_asm_address): Likewise.
6444 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6445 for locator window.
6446 (get_locator_window): Delete.
6447 (initialize_known_windows): Treat locator window just like all the
6448 rest.
6449 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6450 (tui_source_window::set_contents): Fetch state from tui_location
6451 global.
6452 (tui_source_window::showing_source_p): Likewise.
6453 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6454 (_locator): Delete.
6455 (tui_locator_win_info_ptr): Delete.
6456 (tui_locator_window::make_status_line): Fetch state from
6457 tui_location global.
6458 (tui_locator_window::rerender): Remove check of 'handle',
6459 reindent function body.
6460 (tui_locator_window::set_locator_fullname): Delete.
6461 (tui_locator_window::set_locator_info): Delete.
6462 (tui_update_locator_fullname): Delete.
6463 (tui_show_frame_info): Likewise.
6464 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6465 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6466 tui/tui-location.h and renamed to
6467 tui_location_tracker::set_location.
6468 (tui_locator_window::set_locator_fullname): Moved to
6469 tui/tui-location.h and renamed to
6470 tui_location_tracker::set_fullname.
6471 (tui_locator_window::full_name): Delete.
6472 (tui_locator_window::proc_name): Delete.
6473 (tui_locator_window::line_no): Delete.
6474 (tui_locator_window::addr): Delete.
6475 (tui_locator_window::gdbarch): Delete.
6476 (tui_update_locator_fullname): Delete declaration.
6477 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6478 for locator window.
6479 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6480 (tui_display_main): Call function on tui_location directly.
6481 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6482 * tui/tui-location.c: New file.
6483 * tui/tui-location.h: New file.
6484
6485 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6486
6487 * gdbtypes.h (get_type_arch): Rename to...
6488 (struct type) <arch>: ... this, update all users.
6489
6490 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6491
6492 * gdbtypes.h (struct type) <arch>: Rename to...
6493 <arch_owner>: ... this, update all users.
6494 <objfile>: Rename to...
6495 <objfile_owner>: ... this, update all users.
6496
6497 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6498
6499 * gdbcmd.h (execute_command_to_string): Update comment.
6500 * top.c (execute_command_to_string): Update header comment.
6501
6502 2021-01-28 Tom de Vries <tdevries@suse.de>
6503
6504 PR breakpoints/27205
6505 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6506 (create_longjmp_master_breakpoint_names): New function, factored out
6507 of ...
6508 (create_longjmp_master_breakpoint): ... here. Only try to install
6509 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6510 breakpoint in libc.so failed.
6511
6512 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6513
6514 PR gdb/27133
6515 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6516 unique_ptr is released when the wrapped pointer is kept for later
6517 use.
6518
6519 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6520
6521 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6522 BLR and BR instructions.
6523 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6524 (enum aarch64_masks): New.
6525
6526 2021-01-26 Tom Tromey <tromey@adacore.com>
6527
6528 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6529 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6530 (windows_init_thread_list, windows_nat::handle_load_dll)
6531 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6532 (windows_nat_target::resume)
6533 (windows_nat_target::get_windows_debug_event)
6534 (windows_nat_target::interrupt, windows_xfer_memory)
6535 (windows_nat_target::close): Update.
6536 * nat/windows-nat.c (DEBUG_EVENTS): Use
6537 debug_prefixed_printf_cond.
6538 (matching_pending_stop, fetch_pending_stop)
6539 (continue_last_debug_event): Update.
6540
6541 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6542
6543 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6544 elfcore_write_file_note.
6545
6546 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6547
6548 * arc-tdep.c (arc_add_reggroups): New function.
6549 (arc_gdbarch_init): Call arc_add_reggroups.
6550
6551 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6552
6553 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6554
6555 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6556 Simon Marchi <simon.marchi@polymtl.ca>
6557 Tom de Vries <tdevries@suse.de>
6558
6559 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6560 DW_AT_ranges.
6561
6562 2021-01-25 Tom Tromey <tromey@adacore.com>
6563
6564 * dwarf2/read.c (get_mpz): New function.
6565 (get_dwarf2_rational_constant): Use it.
6566
6567 2021-01-25 Tom Tromey <tromey@adacore.com>
6568
6569 * ada-lang.c (resolve_subexp): Handle array context.
6570
6571 2021-01-23 Tom Tromey <tom@tromey.com>
6572
6573 PR compile/25575
6574 * compile/compile-loc2c.c (note_register): New function.
6575 (pushf_register_address, pushf_register): Use it.
6576
6577 2021-01-23 Tom Tromey <tom@tromey.com>
6578
6579 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6580 Change type of "registers_used".
6581 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6582 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6583 (locexpr_generate_c_location, loclist_generate_c_location): Change
6584 type of "registers_used".
6585 * compile/compile.h (compile_dwarf_expr_to_c)
6586 (compile_dwarf_bounds_to_c): Update.
6587 * compile/compile-loc2c.c (pushf_register_address)
6588 (pushf_register, do_compile_dwarf_expr_to_c)
6589 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6590 of "registers_used".
6591 * compile/compile-c.h (generate_c_for_variable_locations):
6592 Update.
6593 * compile/compile-c-symbols.c (generate_vla_size)
6594 (generate_c_for_for_one_variable): Change type of
6595 "registers_used".
6596 (generate_c_for_variable_locations): Return std::vector.
6597 * compile/compile-c-support.c (generate_register_struct): Change
6598 type of "registers_used".
6599 (compute): Update.
6600
6601 2021-01-23 Tom Tromey <tom@tromey.com>
6602
6603 * compile/compile-internal.h (class compile_instance)
6604 <set_arguments>: Change return type.
6605 * compile/compile.c (compile_to_object): Remove call to reset.
6606 (compile_instance::set_arguments): Change return type.
6607
6608 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6609
6610 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6611 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6612
6613 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6614
6615 * Makefile.in (SELFTESTS_SRCS): Add
6616 unittests/gdb_tilde_expand-selftests.c.
6617 * unittests/gdb_tilde_expand-selftests.c: New file.
6618
6619 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6620
6621 PR cli/25956
6622 * NEWS: Mention new command.
6623 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6624 (version_style): Define.
6625 (cli_style_option::cli_style_option): Add intensity parameter, and
6626 use as appropriate.
6627 (_initialize_cli_style): Register version style set/show commands.
6628 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6629 (version_style): Declare.
6630 * top.c (print_gdb_version): Use version_stype, and styled_string
6631 to print the GDB version string.
6632
6633 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6634
6635 * utils.c (emit_style_escape): Only emit an escape sequence if the
6636 requested style is different than the current applied style.
6637 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6638 current applied_style.
6639 (fputs_styled): Remove is_default check.
6640 (fputs_styled_unfiltered): Likewise.
6641 (vfprintf_styled_no_gdbfmt): Likewise.
6642
6643 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6644
6645 * remote.h (remote_debug_printf): New.
6646 (remote_debug_printf_nofunc): New.
6647 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6648 * remote.c: Use above macros throughout file.
6649
6650 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6651
6652 * remote.h (remote_debug): Change to bool.
6653 * remote.c (remote_debug): Change to bool.
6654 (_initialize_remote): Adjust.
6655
6656 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6657
6658 * target.h (remote_debug): Move to...
6659 * remote.h (remote_debug): ... here.
6660 * top.c (remote_debug): Move to...
6661 * remote.c (remote_debug): ... here.
6662 * remote-sim.c: Include remote.h.
6663
6664 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6665
6666 * cli/cli-cmds.c (show_remote_debug): Remove.
6667 (show_remote_timeout): Remove.
6668 (_initialize_cli_cmds): Don't register commands.
6669 * remote.c (show_remote_debug): Move here.
6670 (show_remote_timeout): Move here.
6671 (_initialize_remote): Register commands.
6672
6673 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6674
6675 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6676 type::objfile method instead.
6677
6678 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6679
6680 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6681 use the type::is_objfile_owned method.
6682
6683 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6684
6685 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6686 (TYPE_OWNER): Remove.
6687 (TYPE_OBJFILE): Adjust.
6688 (struct main_type) <flag_objfile_owned>: Rename to...
6689 <m_flag_objfile_owned>: ... this.
6690 <owner>: Rename to...
6691 <m_owner>: ... this.
6692 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6693 methods.
6694 (TYPE_ALLOC): Adjust.
6695 * gdbtypes.c (alloc_type): Adjust.
6696 (alloc_type_arch): Adjust.
6697 (alloc_type_copy): Adjust.
6698 (get_type_arch): Adjust.
6699 (smash_type): Adjust.
6700 (lookup_array_range_type): Adjust.
6701 (recursive_dump_type): Adjust.
6702 (copy_type_recursive): Adjust.
6703 * compile/compile-c-types.c (convert_func): Adjust.
6704 (convert_type_basic): Adjust.
6705 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6706 Adjust.
6707 * language.c
6708 (language_arch_info::type_and_symbol::alloc_type_symbol):
6709 Adjust.
6710
6711 2021-01-21 Luis Machado <luis.machado@linaro.org>
6712
6713 * coffread.c (enter_linenos): Passing string to complaint.
6714 * valops.c (value_assign): Make array view.
6715
6716 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6717
6718 * auto-load.h (debug_auto_load): Move here.
6719 (auto_load_debug_printf): New.
6720 * auto-load.c: Use auto_load_debug_printf.
6721 (debug_auto_load): Move to header.
6722 * linux-thread-db.c (try_thread_db_load): Use
6723 auto_load_debug_printf.
6724 * main.c (captured_main_1): Likewise.
6725
6726 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * f-valprint.c (f77_array_offset_tbl): Remove.
6729
6730 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6731
6732 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6733
6734 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6735
6736 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6737 of gdb_select.
6738
6739 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
6740
6741 PR python/19151
6742 * python/py-breakpoint.c (bppy_get_location): Handle
6743 bp_hardware_breakpoint.
6744 (bppy_init): Likewise.
6745 (gdbpy_breakpoint_created): Likewise.
6746
6747 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6748
6749 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6750
6751 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6754 (_initialize_gdb_bfd): Adjust.
6755
6756 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6757
6758 PR gdb/26828
6759 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6760
6761 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6762
6763 * dwarf2/read.c (follow_die_offset): Add logging.
6764 (dwarf2_per_objfile::age_comp_units): Add logging.
6765
6766 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6767
6768 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6769 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6770 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6771 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6772 * arm-tdep.c (struct frame_unwind): Make static.
6773 * auto-load.c (auto_load_safe_path_vec): Make static.
6774 * csky-tdep.c (csky_stub_unwind): Make static.
6775 * gdbarch.c (gdbarch_data_registry): Make static.
6776 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6777 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6778 * i386-tdep.c (i386_frame_setup_skip_insns,
6779 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6780 Make static.
6781 * infrun.c (observer_mode): Make static.
6782 * linux-nat.c (sigchld_action): Make static.
6783 * linux-thread-db.c (thread_db_list): Make static.
6784 * maint-test-options.c (maintenance_test_options_list):
6785 * mep-tdep.c (mep_csr_registers): Make static.
6786 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6787 (stats): Make static.
6788 * nat/linux-osdata.c (struct osdata_type): Make static.
6789 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6790 * progspace.c (last_program_space_num): Make static.
6791 * python/py-param.c (struct parm_constant): Remove struct type
6792 name.
6793 (parm_constants): Make static.
6794 * python/py-record-btrace.c (btpy_list_methods): Make static.
6795 * python/py-record.c (recpy_gap_type): Make static.
6796 * record.c (record_goto_cmdlist): Make static.
6797 * regcache.c (regcache_descr_handle): Make static.
6798 * registry.h (DEFINE_REGISTRY): Make definition static.
6799 * symmisc.c (std_in, std_out, std_err): Make static.
6800 * top.c (previous_saved_command_line): Make static.
6801 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6802 static.
6803 * unittests/command-def-selftests.c (nr_duplicates,
6804 nr_invalid_prefixcmd, lists): Make static.
6805 * unittests/observable-selftests.c (test_notification): Make
6806 static.
6807 * unittests/optional/assignment/1.cc (counter): Make static.
6808 * unittests/optional/assignment/2.cc (counter): Make static.
6809 * unittests/optional/assignment/3.cc (counter): Make static.
6810 * unittests/optional/assignment/4.cc (counter): Make static.
6811 * unittests/optional/assignment/5.cc (counter): Make static.
6812 * unittests/optional/assignment/6.cc (counter): Make static.
6813
6814 2021-01-20 Joel Sherrill <joel@rtems.org>
6815
6816 PR gdb/27219
6817 * remote.c (struct remote_thread_info) <resume_state>: Rename
6818 to...
6819 <get_resume_state>: ... this.
6820 (remote_target::resume): Adjust.
6821 (remote_target::commit_resume): Adjust.
6822 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6823
6824 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6825 Tom Tromey <tom@tromey.com>
6826
6827 * stap-probe.c (stap_parse_single_operand): Handle '!'
6828 operator.
6829 (stap_parse_argument_conditionally): Likewise.
6830 Skip spaces after processing open-parenthesis sub-expression.
6831 (stap_parse_argument_1): Skip spaces after call to
6832 stap_parse_argument_conditionally.
6833 Handle case when right-side expression is a parenthesized
6834 sub-expression.
6835 Skip spaces after call to stap_parse_argument_1.
6836
6837 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6838
6839 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6840
6841 2021-01-19 Luis Machado <luis.machado@linaro.org>
6842
6843 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6844 memory and save data.
6845 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6846 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6847 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6848 (trad_frame_value_bytes_p): Remove.
6849 (trad_frame_reset_saved_regs): Adjust documentation.
6850 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6851 constructor and reset the state of the registers.
6852 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6853 (trad_frame_value_bytes_p, trad_frame_set_value)
6854 (trad_frame_set_realreg, trad_frame_set_addr)
6855 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6856 (trad_frame_set_reg_realreg): Update to call member function.
6857 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6858 (trad_frame_get_prev_register): Likewise.
6859
6860 * aarch64-tdep.c (aarch64_analyze_prologue)
6861 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6862 (aarch64_prologue_prev_register): Update to use member functions.
6863 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6864 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6865 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6866 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6867 (arm_make_epilogue_frame_cache): Likewise.
6868 * avr-tdep.c (avr_frame_unwind_cache)
6869 (avr_frame_prev_register): Likewise.
6870 * cris-tdep.c (cris_scan_prologue): Likewise.
6871 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6872 * frv-tdep.c (frv_analyze_prologue): Likewise.
6873 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6874 * lm32-tdep.c (lm32_frame_cache): Likewise.
6875 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6876 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6877 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6878 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6879 (reset_saved_regs): Adjust to set realreg.
6880 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6881 call member functions.
6882 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6883 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6884 (s390_backchain_frame_unwind_cache): Likewise.
6885 * score-tdep.c (score7_analyze_prologue)
6886 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6887 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6888 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6889 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6890 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6891 * tilegx-tdep.c (tilegx_analyze_prologue)
6892 (tilegx_frame_cache): Likewise.
6893 * v850-tdep.c (v850_frame_cache): Likewise.
6894 * vax-tdep.c (vax_frame_cache): Likewise.
6895
6896 2021-01-19 Luis Machado <luis.machado@linaro.org>
6897
6898 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6899 of buffer + length.
6900 (put_frame_register_bytes): Likewise.
6901 Adjust documentation.
6902 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6903 (safe_frame_unwind_memory): Likewise.
6904 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6905 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6906 gdb::array_view.
6907 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6908 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6909 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6910 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6911 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6912 * dwarf2/loc.c (rw_pieced_value): Likewise.
6913 * hppa-tdep.c (hppa_frame_cache): Likewise.
6914 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6915 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6916 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6917 (i386_linux_rt_sigtramp_start): Likewise.
6918 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6919 * i386-tdep.c (i386_register_to_value): Likewise.
6920 * i387-tdep.c (i387_register_to_value): Likewise.
6921 * ia64-tdep.c (ia64_register_to_value): Likewise.
6922 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6923 (m32r_linux_rt_sigtramp_start): Likewise.
6924 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6925 * m68k-tdep.c (m68k_register_to_value): Likewise.
6926 * mips-tdep.c (mips_register_to_value)
6927 (mips_value_to_register): Likewise.
6928 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6929 (ppcfbsd_sigtramp_frame_cache): Likewise.
6930 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6931 (ppcobsd_sigtramp_frame_cache): Likewise.
6932 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6933 (rs6000_register_to_value): Likewise.
6934 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6935 * tramp-frame.c (tramp_frame_start): Likewise.
6936 * valops.c (value_assign): Likewise.
6937
6938 2021-01-19 Luis Machado <luis.machado@linaro.org>
6939
6940 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6941 array_view.
6942 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6943 instead of buffer and size.
6944 (trad_frame_set_reg_value_bytes): Likewise.
6945 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6946 (trad_frame_set_value_bytes): Likewise.
6947
6948 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6949
6950 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6951
6952 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6953
6954 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6955 (riscv_fbsd_gregset): Use riscv_supply_regset.
6956 (riscv_fbsd_fpregset): Likewise.
6957 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6958 (riscv_linux_fregset): Likewise.
6959 * riscv-tdep.c (riscv_supply_regset): Define new function.
6960 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6961
6962 2021-01-18 Tom de Vries <tdevries@suse.de>
6963
6964 PR tdep/27172
6965 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6966 New macro.
6967 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6968 for SEGV_BNDERR.
6969
6970 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6971
6972 * remote.c (class remote_target) <remote_hostio_send_command,
6973 remote_hostio_parse_result>: Constify parameter.
6974 (remote_hostio_parse_result): Likewise.
6975 (remote_target::remote_hostio_send_command): Adjust.
6976 (remote_target::remote_hostio_pread_vFile): Adjust.
6977 (remote_target::fileio_readlink): Adjust.
6978 (remote_target::fileio_fstat): Adjust.
6979
6980 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6981
6982 * remote.c (remote_target::start_remote): Move wait_status to
6983 narrower scope.
6984
6985 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6986
6987 * remote.c (class remote_target):
6988 <add_current_inferior_and_thread>: Constify parameter.
6989 (stop_reply_extract_thread): Likewise.
6990 (remote_target::get_current_thread): Likewise.
6991 (remote_target::add_current_inferior_and_thread): Likewise.
6992
6993 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6994
6995 * remote.c (class remote_target)
6996 <remote_unpack_thread_info_response,
6997 parse_threadlist_response>: Constify parameter and/or return
6998 value and or local variable.
6999 (stub_unpack_int): Likewise.
7000 (unpack_nibble): Likewise.
7001 (unpack_byte): Likewise.
7002 (unpack_int): Likewise.
7003 (unpack_string): Likewise.
7004 (unpack_threadid): Likewise.
7005 (remote_target::remote_unpack_thread_info_response): Likewise.
7006 (remote_target::parse_threadlist_response): Likewise.
7007
7008 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7011
7012 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
7013
7014 * MAINTAINERS (Write After Approval): Add myself.
7015
7016 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7017
7018 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7019 because is_trivially_default_constructible was first implemented with
7020 gcc-5.
7021
7022 2021-01-14 Tom de Vries <tdevries@suse.de>
7023
7024 PR breakpoints/27151
7025 * objfiles.h (in_plt_section): Handle .plt.sec.
7026
7027 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 PR gdb/26819
7030 * remote.c
7031 (remote_target::select_thread_for_ambiguous_stop_reply): New
7032 member function.
7033 (remote_target::process_stop_reply): Call
7034 select_thread_for_ambiguous_stop_reply.
7035
7036 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7037
7038 * record-btrace.c (class record_btrace_target): Remove.
7039 (record_btrace_target::commit_resume): Remove.
7040 * record-full.c (class record_full_target): Remove.
7041 (record_full_target::commit_resume): Remove.
7042
7043 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * remote.c (enum class resume_state): New.
7046 (struct resumed_pending_vcont_info): New.
7047 (struct remote_thread_info) <resume_state, set_not_resumed,
7048 set_resumed_pending_vcont, resumed_pending_vcont_info,
7049 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7050 New.
7051 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7052 (remote_target::remote_add_thread): Adjust.
7053 (remote_target::process_initial_stop_replies): Adjust.
7054 (remote_target::resume): Adjust.
7055 (remote_target::commit_resume): Rely on state in
7056 remote_thread_info and not on tp->executing.
7057 (remote_target::process_stop_reply): Adjust.
7058
7059 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7060
7061 * arc-tdep.h (arc_debug_printf): New.
7062 * arc-tdep.c: Use arc_debug_printf.
7063 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7064 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7065 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7066
7067 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7068
7069 * arc-tdep.h (arc_debug): Change type to bool.
7070 * arc-tdep.c (arc_debug): Change type to bool.
7071 (arc_analyze_prologue): Adjust.
7072 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7073 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7074
7075 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7076
7077 * auto-load.c (auto_load_objfile_script_1): Use bool.
7078 (execute_script_contents): Use bool.
7079
7080 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7081
7082 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7083 comment here.
7084 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7085 comment to header.
7086 * extension-priv.h (struct extension_language_script_ops)
7087 <auto_load_enabled>: Return bool.
7088 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7089 comment here.
7090 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7091 comment to header.
7092 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7093 move comment here.
7094 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7095 move comment to header.
7096 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7097 move comment here.
7098 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7099 move comment to header.
7100
7101 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7102
7103 * auto-load.h (file_is_auto_load_safe): Change return type to
7104 bool, move comment here.
7105 * auto-load.c (file_is_auto_load_safe): Change return type and
7106 advice_printed to bool. Move comment to header.
7107
7108 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7109
7110 * jit.c (jit_debug_printf): New, use throughout file.
7111
7112 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7113
7114 * infrun.c (normal_stop): Fix indentation.
7115
7116 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7117
7118 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7119 declarations to ...
7120 * symfile.h: ... here.
7121 * symfile.c: Update doc.
7122
7123 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7124
7125 * target.h (baud_rate, serial_parity): Move declarations...
7126 * serial.h: ... here.
7127 * main.c: Include serial.h.
7128 * serial.c (baud_rate, serial_parity): Update doc.
7129
7130 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7131
7132 * top.c (pre_init_ui_hook): Remove.
7133
7134 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7135
7136 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7137 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7138 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7139 * features/aarch64-fpu.xml: Add bfloat16 type.
7140
7141 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7142
7143 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7144
7145 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 * f-exp.y (dot_ops): Rename to...
7148 (fortran_operators): ...this. Add a header comment. Add symbol
7149 based operators.
7150 (yylex): Update to use fortran_operators not dot_ops. Remove
7151 special handling for '**', this is now included in
7152 fortran_operators.
7153
7154 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7155
7156 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7157 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7158 * aarch64-tdep.c: Use aarch64_debug_printf.
7159
7160 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7161
7162 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7163 file.
7164
7165 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7166
7167 * jit.c (jit_debug): Change type to bool.
7168 (_initialize_jit): Adjust.
7169
7170 2021-01-09 Tom Tromey <tom@tromey.com>
7171
7172 PR compile/23672
7173 * compile/compile.c (compile_to_object): Avoid crash when
7174 osabi_triplet_regexp returns NULL.
7175
7176 2021-01-09 Tom Tromey <tom@tromey.com>
7177
7178 * tracepoint.h (class collection_list) <append_exp>: Take a
7179 std::string.
7180 * tracepoint.c (collection_list::append_exp): Take a std::string.
7181 (encode_actions_1): Update.
7182
7183 2021-01-08 Tom Tromey <tromey@adacore.com>
7184
7185 * parse.c (parse_expression): Add void_context_p parameter. Use
7186 parse_exp_in_context.
7187 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7188 parse_expression.
7189 (print_command, call_command): Update.
7190 * expression.h (parse_expression): Add void_context_p parameter.
7191
7192 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7195 for internalvar components that have a dynamic location.
7196
7197 2021-01-08 Tom de Vries <tdevries@suse.de>
7198
7199 PR gdb/26881
7200 * breakpoint.c (create_exception_master_breakpoint_probe)
7201 (create_exception_master_breakpoint_hook): Factor out
7202 of ...
7203 (create_exception_master_breakpoint): ... here. Only try to install
7204 the master exception breakpoint in objfile.debug using the
7205 _Unwind_DebugHook method, if the install using probes in objfile
7206 failed.
7207
7208 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7209
7210 * f-lang.c (fortran_value_subarray): Call value_from_component.
7211
7212 2021-01-07 Mike Frysinger <vapier@gentoo.org>
7213
7214 * remote-sim.c: Include memory-map.h.
7215 (gdbsim_target): Define memory_map override.
7216 (gdbsim_target::memory_map): Define.
7217
7218 2021-01-07 Tom Tromey <tromey@adacore.com>
7219
7220 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7221
7222 2021-01-07 Tom Tromey <tromey@adacore.com>
7223
7224 * ada-lang.c (add_component_interval): Start loop using vector's
7225 updated size.
7226
7227 2021-01-06 Tom Tromey <tromey@adacore.com>
7228
7229 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7230 Do not cast result.
7231 * valarith.c (fixed_point_binop): Handle multiplication
7232 and division specially.
7233 * valops.c (value_to_gdb_mpq): New function.
7234 (value_cast_to_fixed_point): Use it.
7235
7236 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7237
7238 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7239 Call wnoutrefresh instead of tui_win_info::refresh_window.
7240
7241 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7242
7243 * tui/tui-source.c (tui_source_window::show_line_number):
7244 Redraw second space after line number.
7245
7246 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7247
7248 PR tui/26927
7249 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7250 Fix source pad size in prefresh.
7251 (tui_source_window_base::show_source_content): Grow source pad
7252 if necessary.
7253
7254 2021-01-04 Mike Frysinger <vapier@gentoo.org>
7255
7256 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7257 (bfin_frame_align): Use align_down.
7258
7259 2021-01-04 Tom de Vries <tdevries@suse.de>
7260
7261 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7262 terminators that do not terminate anything.
7263
7264 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7265
7266 * debug.c (debug_print_depth): New.
7267 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7268 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7269 * infrun.c (start_step_over): Use
7270 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7271 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7272 INFRUN_SCOPED_DEBUG_START_END.
7273 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7274
7275 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7276
7277 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7278
7279 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7280
7281 * utils.c (vfprintf_unfiltered): Print timestamp only when
7282 previous debug output ended with a newline.
7283
7284 2021-01-04 Luis Machado <luis.machado@linaro.org>
7285
7286 Update all users of trad_frame_saved_reg to use the new member
7287 functions.
7288
7289 Remote all struct keywords from declarations of trad_frame_saved_reg
7290 types, except on forward declarations.
7291
7292 * aarch64-tdep.c: Update.
7293 * alpha-mdebug-tdep.c: Update.
7294 * alpha-tdep.c: Update.
7295 * arc-tdep.c: Update.
7296 * arm-tdep.c: Update.
7297 * avr-tdep.c: Update.
7298 * cris-tdep.c: Update.
7299 * csky-tdep.c: Update.
7300 * frv-tdep.c: Update.
7301 * hppa-linux-tdep.c: Update.
7302 * hppa-tdep.c: Update.
7303 * hppa-tdep.h: Update.
7304 * lm32-tdep.c: Update.
7305 * m32r-linux-tdep.c: Update.
7306 * m32r-tdep.c: Update.
7307 * m68hc11-tdep.c: Update.
7308 * mips-tdep.c: Update.
7309 * moxie-tdep.c: Update.
7310 * riscv-tdep.c: Update.
7311 * rs6000-tdep.c: Update.
7312 * s390-linux-tdep.c: Update.
7313 * s390-tdep.c: Update.
7314 * score-tdep.c: Update.
7315 * sparc-netbsd-tdep.c: Update.
7316 * sparc-sol2-tdep.c: Update.
7317 * sparc64-fbsd-tdep.c: Update.
7318 * sparc64-netbsd-tdep.c: Update.
7319 * sparc64-obsd-tdep.c: Update.
7320 * sparc64-sol2-tdep.c: Update.
7321 * tilegx-tdep.c: Update.
7322 * v850-tdep.c: Update.
7323 * vax-tdep.c: Update.
7324
7325 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7326 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7327
7328 * trad-frame.c: Update.
7329 Remove TF_REG_* enum.
7330 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7331 a trivially-constructible struct.
7332 (trad_frame_reset_saved_regs): Adjust to use member function.
7333 (trad_frame_value_p): Likewise.
7334 (trad_frame_addr_p): Likewise.
7335 (trad_frame_realreg_p): Likewise.
7336 (trad_frame_value_bytes_p): Likewise.
7337 (trad_frame_set_value): Likewise.
7338 (trad_frame_set_realreg): Likewise.
7339 (trad_frame_set_addr): Likewise.
7340 (trad_frame_set_unknown): Likewise.
7341 (trad_frame_set_value_bytes): Likewise.
7342 (trad_frame_get_prev_register): Likewise.
7343 * trad-frame.h: Update.
7344 (trad_frame_saved_reg_kind): New enum.
7345 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7346 <m_kind, m_reg>: New member fields.
7347 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7348 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7349 <is_addr, is_unknown, is_value_bytes>: New member functions.
7350
7351 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7352
7353 * target-float.c: Fix typos.
7354
7355 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
7356
7357 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7358
7359 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7360
7361 * gdbarch.sh: Update copyright year range.
7362
7363 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7364
7365 Update copyright year range in copyright header of all GDB files.
7366
7367 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7368
7369 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7370 to the list of directories to update.
7371
7372 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7373
7374 * top.c (print_gdb_version): Update copyright year.
7375
7376 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
7377
7378 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
7379
7380 For older changes see ChangeLog-2020.
7381 \f
7382 Local Variables:
7383 mode: change-log
7384 left-margin: 8
7385 fill-column: 74
7386 version-control: never
7387 coding: utf-8
7388 End:
This page took 0.172727 seconds and 5 git commands to generate.