gdb/breakpoint: add a 'force_condition' parameter to 'create_breakpoint'
[binutils-gdb.git] / gdb / ChangeLog
1 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * breakpoint.h (create_breakpoint): Add a new parameter,
4 'force_condition'.
5 * breakpoint.c (create_breakpoint): Use the 'force_condition'
6 argument when 'parse_extra' is false to check if the condition
7 is invalid at all of the breakpoint locations.
8 Update the users below.
9 (break_command_1)
10 (dprintf_command)
11 (trace_command)
12 (ftrace_command)
13 (strace_command)
14 (create_tracepoint_from_upload): Update.
15 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
16 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
17 * python/py-breakpoint.c (bppy_init): Update.
18 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
19
20 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
21
22 * breakpoint.c (print_one_breakpoint_location): Display "N" for
23 disabled-by-condition locations on MI-like output.
24 (breakpoint_1): Do not display the disabled-by-condition footnote
25 if the output is MI-like.
26
27 2021-04-21 Frederic Cambus <fred@statdns.com>
28
29 * syscalls/update-netbsd.sh: Fix script name display in usage, and
30 update year range in generated copyright notices.
31
32 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
33
34 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
35 qualifier_seq_noopt.
36
37 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
38
39 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
40
41 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
44 (producer_is_icc): Replace use of std::regex with gdb's
45 compiled_regex.
46
47 2021-04-17 Tom Tromey <tom@tromey.com>
48
49 PR gdb/23743:
50 * dwarf2/read.c (class offset_view): New.
51 (struct symbol_table_slot): Remove.
52 (struct mapped_index) <symbol_table, constant_pool>: Change type.
53 <symbol_name_index, symbol_vec_index>: New methods.
54 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
55 Rewrite.
56 (read_gdb_index_from_buffer): Update.
57 (struct dw2_symtab_iterator) <vec>: Change type.
58 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
59 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
60 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
61 <append_array, append_offset>: New methods.
62 (write_hash_table, add_address_entry, write_gdbindex_1)
63 (write_debug_names): Update.
64 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
65
66 2021-04-17 Tom Tromey <tom@tromey.com>
67
68 * dwarf2/index-write.c (write_psymtabs_to_index): Check
69 partial_symtabs.
70
71 2021-04-17 Tom Tromey <tom@tromey.com>
72
73 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
74 from map_matching_symbols. Change parameters.
75 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
76 Rename from map_matching_symbols. Change parameters.
77 * dwarf2/read.c (struct dwarf2_gdb_index)
78 <expand_matching_symbols>: Rename from map_matching_symbols.
79 Change parameters.
80 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
81 Rename from map_matching_symbols. Change parameters.
82 (dwarf2_gdb_index::expand_matching_symbols): Rename from
83 dw2_map_matching_symbols. Change parameters.
84 (dwarf2_gdb_index::expand_matching_symbols): Remove old
85 implementation.
86 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
87 map_matching_symbols. Change parameters.
88 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
89 from map_matching_symbols. Change parameters.
90 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
91 map_matching_symbols. Change parameters.
92 * ada-lang.c (map_matching_symbols): New function.
93 (add_nonlocal_symbols): Update.
94
95 2021-04-17 Tom Tromey <tom@tromey.com>
96
97 * quick-symbol.h (struct quick_symbol_functions)
98 <expand_symtabs_with_fullname>: Remove.
99 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
100 Remove.
101 * psympriv.h (struct psymbol_functions)
102 <expand_symtabs_with_fullname>: Remove.
103 * dwarf2/read.c (struct dwarf2_base_index_functions)
104 <expand_symtabs_with_fullname>: Remove.
105 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
106 Remove.
107 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
108 Update comment.
109 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
110 Rewrite.
111
112 2021-04-17 Tom Tromey <tom@tromey.com>
113
114 * symfile-debug.c (objfile::expand_symtabs_for_function):
115 Rewrite.
116 * quick-symbol.h (struct quick_symbol_functions)
117 <expand_symtabs_for_function>: Remove.
118 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
119 Remove.
120 * psympriv.h (struct psymbol_functions)
121 <expand_symtabs_for_function>: Remove.
122 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
123 Update comment.
124 * dwarf2/read.c (struct dwarf2_gdb_index)
125 <expand_symtabs_for_function>: Remove.
126 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
127 Remove.
128 (find_slot_in_mapped_hash): Remove.
129 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
130 (dw2_symtab_iter_init): Remove one overload.
131 (dwarf2_gdb_index::expand_symtabs_for_function)
132 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
133
134 2021-04-17 Tom Tromey <tom@tromey.com>
135
136 * symfile-debug.c (objfile::map_symtabs_matching_filename):
137 Rewrite.
138 * quick-symbol.h (struct quick_symbol_functions)
139 <map_symtabs_matching_filename>: Remove.
140 * psymtab.c (partial_map_expand_apply)
141 (psymbol_functions::map_symtabs_matching_filename): Remove.
142 * psympriv.h (struct psymbol_functions)
143 <map_symtabs_matching_filename>: Remove.
144 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
145 Update comment.
146 * dwarf2/read.c (struct dwarf2_base_index_functions)
147 <map_symtabs_matching_filename>: Remove.
148 (dw2_map_expand_apply)
149 (dwarf2_base_index_functions::map_symtabs_matching_filename):
150 Remove.
151
152 2021-04-17 Tom Tromey <tom@tromey.com>
153
154 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
155 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
156 Remove.
157 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
158 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
159 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
160 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
161 Remove.
162 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
163 (dwarf2_gdb_index::lookup_symbol)
164 (dwarf2_debug_names_index::lookup_symbol): Remove.
165
166 2021-04-17 Tom Tromey <tom@tromey.com>
167
168 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
169 * symmisc.c (maintenance_expand_symtabs): Update.
170 * symfile.c (expand_symtabs_matching): Update.
171 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
172 parameter.
173 * quick-symbol.h (struct quick_symbol_functions)
174 <expand_symtabs_matching>: Add 'domain' parameter.
175 * psymtab.c (recursively_search_psymtabs)
176 (psymbol_functions::expand_symtabs_matching): Add 'domain'
177 parameter.
178 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
179 Add 'domain' parameter.
180 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
181 'domain' parameter.
182 * linespec.c (iterate_over_all_matching_symtabs): Update.
183 * dwarf2/read.c (struct dwarf2_gdb_index)
184 <expand_symtabs_matching>: Add 'domain' parameter.
185 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
186 'domain' parameter.
187 (dw2_expand_symtabs_matching)
188 (dwarf2_gdb_index::expand_symtabs_matching)
189 (dw2_debug_names_iterator)
190 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
191 parameter.
192
193 2021-04-17 Tom Tromey <tom@tromey.com>
194
195 * symtab.c (global_symbol_searcher::expand_symtabs)
196 (default_collect_symbol_completion_matches_break_on): Update.
197 * symmisc.c (maintenance_expand_symtabs): Update.
198 * symfile.h (expand_symtabs_matching): Add search_flags
199 parameter.
200 * symfile.c (expand_symtabs_matching): Add search_flags
201 parameter.
202 * symfile-debug.c (objfile::expand_symtabs_matching): Add
203 search_flags parameter.
204 * quick-symbol.h (struct quick_symbol_functions)
205 <expand_symtabs_matching>: Add search_flags parameter.
206 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
207 * psymtab.c (recursively_search_psymtabs)
208 (psymbol_functions::expand_symtabs_matching): Add search_flags
209 parameter.
210 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
211 Add search_flags parameter.
212 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
213 search_flags parameter.
214 * linespec.c (iterate_over_all_matching_symtabs): Update.
215 * dwarf2/read.c (struct dwarf2_gdb_index)
216 <expand_symtabs_matching>: Add search_flags parameter.
217 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
218 search_flags parameter.
219 (dw2_map_matching_symbols): Update.
220 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
221 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
222 parameter.
223 (dw2_debug_names_iterator): Change block_index to search flags.
224 <m_block_index>: Likewise.
225 (dw2_debug_names_iterator::next)
226 (dwarf2_debug_names_index::lookup_symbol)
227 (dwarf2_debug_names_index::expand_symtabs_for_function)
228 (dwarf2_debug_names_index::map_matching_symbols)
229 (dwarf2_debug_names_index::map_matching_symbols): Update.
230 (dwarf2_debug_names_index::expand_symtabs_matching): Add
231 search_flags parameter.
232 * ada-lang.c (ada_add_global_exceptions)
233 (collect_symbol_completion_matches): Update.
234
235 2021-04-17 Tom Tromey <tom@tromey.com>
236
237 * symtab.c (default_collect_symbol_completion_matches_break_on):
238 Update.
239 * symfile.h (expand_symtabs_matching): Return bool.
240 * symfile.c (expand_symtabs_matching): Return bool.
241 * symfile-debug.c (objfile::expand_symtabs_matching): Return
242 bool.
243 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
244 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
245 bool.
246 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
247 bool.
248 * psympriv.h (struct psymbol_functions)
249 <expand_symtabs_matching>: Return bool.
250 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
251 bool.
252 * dwarf2/read.c (struct dwarf2_gdb_index)
253 <expand_symtabs_matching>: Return bool.
254 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
255 Return bool.
256 (dw2_expand_symtabs_matching_symbol): Return bool.
257 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
258 (dw2_expand_symtabs_matching)
259 (dwarf2_gdb_index::expand_symtabs_matching)
260 (dwarf2_debug_names_index::expand_symtabs_matching)
261 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
262
263 2021-04-17 Tom Tromey <tom@tromey.com>
264
265 * quick-symbol.h (enum block_search_flag_values): New.
266 (block_search_flags): New enum flags type.
267
268 2021-04-16 Tom Tromey <tom@tromey.com>
269
270 * rust-parse.c: New file.
271 * rust-exp.y: Remove.
272 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
273 (SFILES): Remove rust-exp.y.
274 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
275
276 2021-04-16 Luis Machado <luis.machado@linaro.org>
277
278 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
279
280 2021-04-15 John Baldwin <jhb@FreeBSD.org>
281
282 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
283 use throughout file.
284
285 2021-04-15 Tom Tromey <tromey@adacore.com>
286
287 * ada-valprint.c (ada_value_print_array): Handle optimized-out
288 arrays.
289
290 2021-04-15 Tom Tromey <tromey@adacore.com>
291
292 * printcmd.c (print_variable_and_value): Use
293 common_val_print_checked.
294
295 2021-04-15 Tom Tromey <tromey@adacore.com>
296
297 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
298 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
299 Update.
300 * p-exp.y (variable): Update.
301 * m2-exp.y (variable): Update.
302 * go-exp.y (variable): Update.
303 * expprint.c (dump_for_expression): New overload.
304 * expop.h (check_objfile): New overload.
305 (check_constant): New overload.
306 (class var_value_operation): Use block_symbol.
307 <get_symbol>: Rewrite.
308 * eval.c (var_value_operation::evaluate)
309 (var_value_operation::evaluate_funcall)
310 (var_value_operation::evaluate_for_address)
311 (var_value_operation::evaluate_for_address)
312 (var_value_operation::evaluate_with_coercion)
313 (var_value_operation::evaluate_for_sizeof)
314 (var_value_operation::evaluate_for_cast): Update.
315 * d-exp.y (PrimaryExpression): Update.
316 * c-exp.y (variable): Update.
317 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
318 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
319 (ada_var_value_operation::evaluate)
320 (ada_var_value_operation::resolve)
321 (ada_funcall_operation::resolve): Update.
322 * ada-exp.y (write_var_from_sym, write_object_renaming)
323 (write_ambiguous_var, write_var_or_type, write_name_assoc)
324 (maybe_overload): Update.
325 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
326
327 2021-04-15 Tom Tromey <tom@tromey.com>
328 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * NEWS: Add entry.
331 * main.c (captured_main_1): Call check_quiet_mode.
332 * top.c (startup_quiet): New global.
333 (check_quiet_mode): New function.
334 (show_startup_quiet): New function.
335 (init_main): Register new command.
336 * top.h (check_quiet_mode): Declare.
337
338 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 PR cli/25956
341 * NEWS: Mention new early init files and command line options.
342 * config.in: Regenerate.
343 * configure: Regenerate.
344 * configure.ac: Define GDBEARLYINIT.
345 * main.c (get_earlyinit_files): New function.
346 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
347 CMDARG_EARLYINIT_COMMAND.
348 (captured_main_1): Add support for new command line flags, and for
349 processing startup files.
350 (print_gdb_help): Include startup files in the output.
351
352 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
355 (relocate_file_path_maybe_in_datadir): ...this.
356 (class gdb_initfile_finder): New class.
357 (get_init_files): Now uses gdb_initfile_finder.
358 (print_gdb_help): Print 'None found' when there are no init files.
359
360 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
361
362 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
363 corresponding child of the abstract DIE when iterating the
364 children of the concrete DIE.
365
366 2021-04-13 Tom de Vries <tdevries@suse.de>
367
368 * ui-style.c (read_semi_number, extended_color): Change idx parameter
369 type to regoff_t *.
370
371 2021-04-13 Luis Machado <luis.machado@linaro.org>
372
373 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
374 hex values.
375
376 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
377
378 * rs6000-tdep.c: Add support for single-stepping of
379 prefixed instructions.
380
381 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
382
383 PR gdb/27525
384 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
385 handle the addpcis/lnia instruction.
386
387 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
388
389 * MAINTAINERS (Write After Approval): Add myself.
390
391 2021-4-12 Carl Love <cel@us.ibm.com>
392
393 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
394 (rs6000_builtin_type_vec128): Add append_composite_type_field for
395 float128.
396
397 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
400 * nat/windows-nat.h: Likewise.
401
402 2021-04-10 Eli Zaretskii <eliz@gnu.org>
403
404 * windows-nat.c (windows_nat::handle_load_dll): Call
405 windows_add_dll if get_image_name failed to glean the name of the
406 DLL by using the lpImageName pointer.
407 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
408 (windows_add_dll): Now does what windows_add_all_dlls did before,
409 but also accepts an argument LOAD_ADDR, which, if non-NULL,
410 specifies the address where the DLL was loaded into the inferior,
411 and looks for the single DLL loaded at that address.
412
413 2021-04-09 Luis Machado <luis.machado@linaro.org>
414
415 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
416
417 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
418
419 * darwin-nat.c (darwin_nat_target::resume): Remove status
420 variable.
421
422 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
423
424 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
425 prologue end for Intel compilers.
426 * amd64-tdep.c (amd64_skip_prologue): Likewise.
427 * producer.c (producer_is_icc_ge_19): New function.
428 * producer.h (producer_is_icc_ge_19): New declaration.
429
430 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
431
432 * producer.c: (producer_is_icc): Update for new version scheme.
433 (producer_parsing_tests): Update names and expected results.
434 * producer.h: (producer_is_icc): Update comment accordingly.
435
436 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * target.h (struct target_ops) <follow_fork>: Return void.
439 (target_follow_fork): Likewise.
440 * target.c (default_follow_fork): Likewise.
441 (target_follow_fork): Likewise.
442 * infrun.c (follow_fork_inferior): Adjust.
443 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
444 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
445 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
446 * linux-nat.c (linux_nat_target::follow_fork): Return void.
447 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
448 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
449 * remote.c (class remote_target) <follow_fork>: Likewise.
450 (remote_target::follow_fork): Likewise.
451 * target-delegates.c: Re-generate.
452
453 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
454
455 * ctfread.c (fetch_tid_type): New function, use throughout file.
456 (read_forward_type): New function.
457 (read_type_record): Call read_forward_type.
458
459 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * f-exp.h (class fortran_structop_operation): New class.
462 * f-exp.y (exp): Create fortran_structop_operation instead of the
463 generic structop_operation.
464 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
465 expression as EVAL_NORMAL if the result type was dynamic so we can
466 extract the actual array bounds.
467 (fortran_structop_operation::evaluate): New function.
468
469 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * eval.c (evaluate_subexp_standard): Remove
472 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
473 STRUCTOP_PTR.
474
475 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * valops.c (value_cast): Call value_deeply_equal before performing
478 any cast.
479
480 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * gdbtypes.c (types_equal): Move pointer equality check earlier in
483 the function.
484
485 2021-04-07 Caroline Tice <cmtice@google.com>
486
487 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
488 the search paths used resolve relative location of .dwo file.
489
490 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
493 assert.
494 (dwarf2_section_info::get_file_name): Add an assert.
495 (dwarf2_section_info::read_string): Display a minimal, sane error
496 when the dwarf2_section_info is not associated with a bfd section.
497
498 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * top.c (staged_gdb_datadir): Update comment.
501 (set_gdb_datadir): Copy the value of gdb_datadir back into
502 staged_datadir.
503 (init_main): Initialise staged_gdb_datadir.
504
505 2021-04-06 Tom de Vries <tdevries@suse.de>
506
507 PR breakpoints/25884
508 * infcmd.c (prepare_one_step): Using inline frame info to narrow
509 stepping range.
510
511 2021-04-06 Tom de Vries <tdevries@suse.de>
512
513 PR tui/27680
514 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
515 to style.parse.
516
517 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
518
519 * avr-tdep.c (avr_frame_unwind_cache): Use
520 trad_frame_saved_reg::is_addr.
521
522 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
523
524 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
525 adjust callers.
526
527 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
530 objfile parameter for objfile_per_bfd_storage, adjust callers.
531 (struct standard_psymtab) <standard_psymtab>: Likewise.
532 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
533 * psymtab.c (partial_symtab::partial_symtab): Likewise.
534 * ctfread.c (struct ctf_psymtab): Likewise.
535 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
536 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
537 (dwarf2_create_include_psymtab): Likewise.
538 * objfiles.h (struct objfile_per_bfd_storage)
539 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
540 <get_bfd>: New method.
541 <m_bfd>: New field.
542 * objfiles.c (get_objfile_bfd_data): Adjust.
543
544 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * psymtab.c (partial_symtab::partial_symtab): Change
547 last_objfile_name to be an std::string.
548 * symfile.c (allocate_symtab): Likewise.
549
550 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
551
552 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
553 methods.
554 (struct objfile) <intern>: Use
555 objfile::objfile_per_bfd_storage::intern.
556
557 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
558
559 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
560 with type::is_flag_enum.
561
562 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
563
564 * gdbtypes.h (struct type) <is_flag_enum,
565 set_is_flag_enum>: New methods.
566 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
567 write call sites to use type::set_is_flag_enum.
568
569 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
570
571 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
572 with type::is_declared_class.
573
574 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
575
576 * gdbtypes.h (struct type) <is_declared_class,
577 set_is_declared_class>: New methods.
578 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
579 write call sites to use type::set_is_declared_class.
580
581 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
582
583 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
584 to avoid deprecation warnings.
585
586 2021-04-01 Martin Liska <mliska@suse.cz>
587
588 * cp-name-parser.y: Use startswith instead of strncmp.
589 * m2-exp.y: Likewise.
590 * macroexp.c (substitute_args): Likewise.
591 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
592 * rust-exp.y: Likewise.
593
594 2021-03-31 Tom Tromey <tom@tromey.com>
595
596 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
597 with dw2_map_matching_symbols.
598 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
599 dw2_expand_symtabs_matching.
600
601 2021-03-31 Tom Tromey <tromey@adacore.com>
602
603 * dwarf2/stringify.h: Fix typo.
604
605 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
606
607 PR gdb/27541
608 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
609 with objfiles using READNOW.
610
611 2021-03-29 Tom Tromey <tromey@adacore.com>
612
613 * top.c (check_frame_language_change): Update.
614 * language.c (language_info): Remove parameter.
615 * language.h (language_info): Remove parameter.
616
617 2021-03-29 Luis Machado <luis.machado@linaro.org>
618
619 * compile/compile.c (get_args): Don't add empty argv entries.
620
621 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
622
623 gdb:
624 * procfs.c (procfs_target::attach): Define inf.
625 Use it.
626 (procfs_target::create_inferior): Likewise.
627
628 2021-03-28 Tom Tromey <tom@tromey.com>
629
630 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
631 (elf_symfile_read): Simplify.
632 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
633 (make_lazy_dwarf_reader): New function.
634 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
635 (dwarf2_initialize_objfile): Return void. Remove index_kind
636 parameter. Push on 'qf' list.
637 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
638 type. Remove 'index_kind' parameter.
639 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
640
641 2021-03-27 Tom Tromey <tom@tromey.com>
642
643 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
644
645 2021-03-27 Tom Tromey <tom@tromey.com>
646
647 * elfread.c (elf_symfile_read): Don't clear 'qf'.
648
649 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
650
651 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
652 rid of 'local'.
653
654 2021-03-26 Tom Tromey <tom@tromey.com>
655
656 * symtab.c (struct output_source_filename_data): Add 'output'
657 method and operator().
658 (output_source_filename_data::output): Rename from
659 output_source_filename.
660 (output_partial_symbol_filename): Remove.
661 (info_sources_command): Update.
662 (struct add_partial_filename_data): Add operator().
663 (add_partial_filename_data::operator()): Rename from
664 maybe_add_partial_symtab_filename.
665 (make_source_files_completion_list): Update.
666 * symfile.c (quick_symbol_functions): Update.
667 * symfile-debug.c (objfile::map_symbol_filenames): Update.
668 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
669 'need_fullname'. Remove 'data' parameter.
670 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
671 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
672 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
673 Change type of 'fun' and 'need_fullname'. Remove 'data'
674 parameter.
675 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
676 of 'fun' and 'need_fullname'. Remove 'data' parameter.
677 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
678 parameter.
679 (mi_cmd_file_list_exec_source_files): Update.
680 * dwarf2/read.c
681 (dwarf2_base_index_functions::map_symbol_filenames): Update.
682
683 2021-03-26 Tom Tromey <tom@tromey.com>
684
685 * ada-lang.c (struct match_data): Add operator().
686 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
687 (callback): Remove 'callback'.
688
689 2021-03-26 Tom Tromey <tom@tromey.com>
690
691 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
692 call make_ignore_params once.
693
694 2021-03-26 Tom Tromey <tom@tromey.com>
695
696 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
697 "user" check.
698
699 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
700 Pedro Alves <pedro@palves.net>
701
702 * async-event.c: Include "infrun.h".
703 (async_event_handler_marked): New.
704 * async-event.h (async_event_handler_marked): Declare.
705 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
706 inferior before calling target method. Don't commit-resumed if
707 target_has_pending_events is true.
708 * remote.c (remote_target::has_pending_events): New.
709 * target-delegates.c: Regenerate.
710 * target.c (target_has_pending_events): New.
711 * target.h (target_ops::has_pending_events): New target method.
712 (target_has_pending_events): New.
713
714 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
715 Pedro Alves <pedro@palves.net>
716
717 * infcmd.c (run_command_1, attach_command, detach_command)
718 (interrupt_target_1): Use scoped_disable_commit_resumed.
719 * infrun.c (do_target_resume): Remove
720 target_commit_resume call.
721 (commit_resume_all_targets): Remove.
722 (maybe_set_commit_resumed_all_targets): New.
723 (maybe_call_commit_resumed_all_targets): New.
724 (enable_commit_resumed): New.
725 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
726 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
727 (scoped_disable_commit_resumed::reset)
728 (scoped_disable_commit_resumed::reset_and_commit)
729 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
730 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
731 New.
732 (proceed): Use scoped_disable_commit_resumed and
733 maybe_call_commit_resumed_all_targets.
734 (fetch_inferior_event): Use scoped_disable_commit_resumed.
735 * infrun.h (struct scoped_disable_commit_resumed): New.
736 (maybe_call_commit_resumed_all_process_targets): New.
737 (struct scoped_enable_commit_resumed): New.
738 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
739 * process-stratum-target.h (class process_stratum_target):
740 <commit_resumed_state>: New.
741 * record-full.c (record_full_wait_1): Change commit_resumed_state
742 around calling commit_resumed.
743 * remote.c (class remote_target) <commit_resume>: Rename to...
744 <commit_resumed>: ... this.
745 (struct stop_reply): Move up.
746 (remote_target::commit_resume): Rename to...
747 (remote_target::commit_resumed): ... this. Check if there is any
748 thread pending vCont resume.
749 (remote_target::remote_stop_ns): Generate stop replies for resumed
750 but pending vCont threads.
751 (remote_target::wait_ns): Add gdb_assert.
752 * target-delegates.c: Regenerate.
753 * target.c (target_wait, target_resume): Assert that the current
754 process_stratum target isn't in commit-resumed state.
755 (defer_target_commit_resume): Remove.
756 (target_commit_resume): Remove.
757 (target_commit_resumed): New.
758 (make_scoped_defer_target_commit_resume): Remove.
759 (target_stop): Assert that the current process_stratum target
760 isn't in commit-resumed state.
761 * target.h (struct target_ops) <commit_resume>: Rename to ...
762 <commit_resumed>: ... this.
763 (target_commit_resume): Remove.
764 (target_commit_resumed): New.
765 (make_scoped_defer_target_commit_resume): Remove.
766 * top.c (wait_sync_command_done): Use
767 scoped_enable_commit_resumed.
768
769 2021-03-26 Pedro Alves <pedro@palves.net>
770
771 * target.c (target_always_non_stop_p): Also check whether the
772 target can async.
773
774 2021-03-26 Tom Tromey <tom@tromey.com>
775
776 * dwarf2/read.c (dwarf2_read_debug_names)
777 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
778 (dw2_debug_names_iterator::next, create_type_unit_group):
779 Simplify.
780
781 2021-03-25 Pedro Alves <pedro@palves.net>
782
783 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
784 around setting the breakpoint.
785
786 2021-03-25 Pedro Alves <pedro@palves.net>
787
788 * remote.c
789 (remote_target::check_pending_events_prevent_wildcard_vcont):
790 Check whether the event's ptid is not null_ptid before looking up
791 the corresponding inferior.
792
793 2021-03-24 Changbin Du <changbin.du@gmail.com>
794
795 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
796 read_code.
797
798 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * target.h (current_top_target): Remove, make callers use the
801 current inferior instead.
802 * target.c (current_top_target): Remove.
803
804 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * target.h (target_shortname): Change to function declaration.
807 (target_longname): Likewise.
808 (target_attach_no_wait): Likewise.
809 (target_post_attach): Likewise.
810 (target_prepare_to_store): Likewise.
811 (target_supports_enable_disable_tracepoint): Likewise.
812 (target_supports_string_tracing): Likewise.
813 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
814 (target_supports_dumpcore): Likewise.
815 (target_dumpcore): Likewise.
816 (target_can_run_breakpoint_commands): Likewise.
817 (target_files_info): Likewise.
818 (target_post_startup_inferior): Likewise.
819 (target_insert_fork_catchpoint): Likewise.
820 (target_remove_fork_catchpoint): Likewise.
821 (target_insert_vfork_catchpoint): Likewise.
822 (target_remove_vfork_catchpoint): Likewise.
823 (target_insert_exec_catchpoint): Likewise.
824 (target_remove_exec_catchpoint): Likewise.
825 (target_set_syscall_catchpoint): Likewise.
826 (target_rcmd): Likewise.
827 (target_can_lock_scheduler): Likewise.
828 (target_can_async_p): Likewise.
829 (target_is_async_p): Likewise.
830 (target_execution_direction): Likewise.
831 (target_extra_thread_info): Likewise.
832 (target_pid_to_exec_file): Likewise.
833 (target_thread_architecture): Likewise.
834 (target_find_memory_regions): Likewise.
835 (target_make_corefile_notes): Likewise.
836 (target_get_bookmark): Likewise.
837 (target_goto_bookmark): Likewise.
838 (target_stopped_by_watchpoint): Likewise.
839 (target_stopped_by_sw_breakpoint): Likewise.
840 (target_supports_stopped_by_sw_breakpoint): Likewise.
841 (target_stopped_by_hw_breakpoint): Likewise.
842 (target_supports_stopped_by_hw_breakpoint): Likewise.
843 (target_have_steppable_watchpoint): Likewise.
844 (target_can_use_hardware_watchpoint): Likewise.
845 (target_region_ok_for_hw_watchpoint): Likewise.
846 (target_can_do_single_step): Likewise.
847 (target_insert_watchpoint): Likewise.
848 (target_remove_watchpoint): Likewise.
849 (target_insert_hw_breakpoint): Likewise.
850 (target_remove_hw_breakpoint): Likewise.
851 (target_can_accel_watchpoint_condition): Likewise.
852 (target_can_execute_reverse): Likewise.
853 (target_get_ada_task_ptid): Likewise.
854 (target_filesystem_is_local): Likewise.
855 (target_trace_init): Likewise.
856 (target_download_tracepoint): Likewise.
857 (target_can_download_tracepoint): Likewise.
858 (target_download_trace_state_variable): Likewise.
859 (target_enable_tracepoint): Likewise.
860 (target_disable_tracepoint): Likewise.
861 (target_trace_start): Likewise.
862 (target_trace_set_readonly_regions): Likewise.
863 (target_get_trace_status): Likewise.
864 (target_get_tracepoint_status): Likewise.
865 (target_trace_stop): Likewise.
866 (target_trace_find): Likewise.
867 (target_get_trace_state_variable_value): Likewise.
868 (target_save_trace_data): Likewise.
869 (target_upload_tracepoints): Likewise.
870 (target_upload_trace_state_variables): Likewise.
871 (target_get_raw_trace_data): Likewise.
872 (target_get_min_fast_tracepoint_insn_len): Likewise.
873 (target_set_disconnected_tracing): Likewise.
874 (target_set_circular_trace_buffer): Likewise.
875 (target_set_trace_buffer_size): Likewise.
876 (target_set_trace_notes): Likewise.
877 (target_get_tib_address): Likewise.
878 (target_set_permissions): Likewise.
879 (target_static_tracepoint_marker_at): Likewise.
880 (target_static_tracepoint_markers_by_strid): Likewise.
881 (target_traceframe_info): Likewise.
882 (target_use_agent): Likewise.
883 (target_can_use_agent): Likewise.
884 (target_augmented_libraries_svr4_read): Likewise.
885 (target_log_command): Likewise.
886 * target.c (target_shortname): New.
887 (target_longname): New.
888 (target_attach_no_wait): New.
889 (target_post_attach): New.
890 (target_prepare_to_store): New.
891 (target_supports_enable_disable_tracepoint): New.
892 (target_supports_string_tracing): New.
893 (target_supports_evaluation_of_breakpoint_conditions): New.
894 (target_supports_dumpcore): New.
895 (target_dumpcore): New.
896 (target_can_run_breakpoint_commands): New.
897 (target_files_info): New.
898 (target_post_startup_inferior): New.
899 (target_insert_fork_catchpoint): New.
900 (target_remove_fork_catchpoint): New.
901 (target_insert_vfork_catchpoint): New.
902 (target_remove_vfork_catchpoint): New.
903 (target_insert_exec_catchpoint): New.
904 (target_remove_exec_catchpoint): New.
905 (target_set_syscall_catchpoint): New.
906 (target_rcmd): New.
907 (target_can_lock_scheduler): New.
908 (target_can_async_p): New.
909 (target_is_async_p): New.
910 (target_execution_direction): New.
911 (target_extra_thread_info): New.
912 (target_pid_to_exec_file): New.
913 (target_thread_architecture): New.
914 (target_find_memory_regions): New.
915 (target_make_corefile_notes): New.
916 (target_get_bookmark): New.
917 (target_goto_bookmark): New.
918 (target_stopped_by_watchpoint): New.
919 (target_stopped_by_sw_breakpoint): New.
920 (target_supports_stopped_by_sw_breakpoint): New.
921 (target_stopped_by_hw_breakpoint): New.
922 (target_supports_stopped_by_hw_breakpoint): New.
923 (target_have_steppable_watchpoint): New.
924 (target_can_use_hardware_watchpoint): New.
925 (target_region_ok_for_hw_watchpoint): New.
926 (target_can_do_single_step): New.
927 (target_insert_watchpoint): New.
928 (target_remove_watchpoint): New.
929 (target_insert_hw_breakpoint): New.
930 (target_remove_hw_breakpoint): New.
931 (target_can_accel_watchpoint_condition): New.
932 (target_can_execute_reverse): New.
933 (target_get_ada_task_ptid): New.
934 (target_filesystem_is_local): New.
935 (target_trace_init): New.
936 (target_download_tracepoint): New.
937 (target_can_download_tracepoint): New.
938 (target_download_trace_state_variable): New.
939 (target_enable_tracepoint): New.
940 (target_disable_tracepoint): New.
941 (target_trace_start): New.
942 (target_trace_set_readonly_regions): New.
943 (target_get_trace_status): New.
944 (target_get_tracepoint_status): New.
945 (target_trace_stop): New.
946 (target_trace_find): New.
947 (target_get_trace_state_variable_value): New.
948 (target_save_trace_data): New.
949 (target_upload_tracepoints): New.
950 (target_upload_trace_state_variables): New.
951 (target_get_raw_trace_data): New.
952 (target_get_min_fast_tracepoint_insn_len): New.
953 (target_set_disconnected_tracing): New.
954 (target_set_circular_trace_buffer): New.
955 (target_set_trace_buffer_size): New.
956 (target_set_trace_notes): New.
957 (target_get_tib_address): New.
958 (target_set_permissions): New.
959 (target_static_tracepoint_marker_at): New.
960 (target_static_tracepoint_markers_by_strid): New.
961 (target_traceframe_info): New.
962 (target_use_agent): New.
963 (target_can_use_agent): New.
964 (target_augmented_libraries_svr4_read): New.
965 (target_log_command): New.
966 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
967 * infrun.c (set_schedlock_func): Adjust.
968 * mi/mi-main.c (exec_reverse_continue): Adjust.
969 * reverse.c (exec_reverse_once): Adjust.
970 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
971 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
972 * remote-sim.c (gdbsim_target::detach): Adjust.
973 (gdbsim_target::files_info): Adjust.
974
975 2021-03-24 Tom Tromey <tom@tromey.com>
976
977 * dwarf2/read.c (dw2_map_matching_symbols): Update.
978 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
979 (check_match, dw2_expand_symtabs_matching)
980 (dwarf2_debug_names_index::map_matching_symbols)
981 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
982
983 2021-03-24 Keith Seitz <keiths@redhat.com>
984
985 * compile/compile-cplus-types.c
986 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
987 thinko.
988
989 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
990
991 * gdbarch.sh (gdbarch_data_registry): Make static.
992 * gdbarch.c: Re-generate.
993
994 2021-03-24 Luis Machado <luis.machado@linaro.org>
995
996 * NEWS: Mention memory tagging changes.
997
998 2021-03-24 Luis Machado <luis.machado@linaro.org>
999
1000 * printcmd.c (decode_format): Handle the 'm' modifier.
1001 (do_examine): Display allocation tags when required/supported.
1002 (should_validate_memtags): New function.
1003 (print_command_1): Display memory tag mismatches.
1004 * valprint.c (show_memory_tag_violations): New function.
1005 (value_print_option_defs): Add new option "memory-tag-violations".
1006 (user_print_options) <memory_tag_violations>: Initialize to 1.
1007 * valprint.h (struct format_data) <print_tags>: New field.
1008 (value_print_options) <memory_tag_violations>: New field.
1009
1010 2021-03-24 Luis Machado <luis.machado@linaro.org>
1011
1012 * printcmd.c: Include gdbsupport/rsp-low.h.
1013 (memory_tag_list): New static global.
1014 (process_print_command_args): Factored out of
1015 print_command_1.
1016 (print_command_1): Use process_print_command_args.
1017 (show_addr_not_tagged, show_memory_tagging_unsupported)
1018 (memory_tag_command, memory_tag_print_tag_command)
1019 (memory_tag_print_logical_tag_command)
1020 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1021 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1022 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1023 functions.
1024 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1025
1026 2021-03-24 Luis Machado <luis.machado@linaro.org>
1027
1028 * aarch64-linux-tdep.c
1029 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1030 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1031
1032 2021-03-24 Luis Machado <luis.machado@linaro.org>
1033
1034 * aarch64-linux-tdep.c
1035 (aarch64_linux_report_signal_info): New function.
1036 (aarch64_linux_init_abi): Register
1037 aarch64_linux_report_signal_info as the report_signal_info hook.
1038 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1039 (SEGV_MTESERR): Define.
1040
1041 2021-03-24 Luis Machado <luis.machado@linaro.org>
1042
1043 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1044 (aarch64_linux_ltag_tests): New function.
1045 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1046
1047 2021-03-24 Luis Machado <luis.machado@linaro.org>
1048
1049 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1050 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1051 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1052 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1053 functions.
1054 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1055 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1056 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1057 (aarch64_linux_get_ltag): New functions.
1058 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1059 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1060 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1061 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1062
1063 2021-03-24 Luis Machado <luis.machado@linaro.org>
1064
1065 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1066 bit.
1067 (struct smaps_data): New struct.
1068 (decode_vmflags): Handle the 'mt' flag.
1069 (parse_smaps_data): New function, refactored from
1070 linux_find_memory_regions_full.
1071 (linux_address_in_memtag_page): New function.
1072 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1073 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1074
1075 2021-03-24 Luis Machado <luis.machado@linaro.org>
1076
1077 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1078 instead of char arrays.
1079
1080 2021-03-24 Luis Machado <luis.machado@linaro.org>
1081
1082 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1083 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1084 nat/aarch64-mte-linux-ptrace.h.
1085 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1086 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1087 override.
1088 <fetch_memtags>: New method override.
1089 <store_memtags>: New method override.
1090 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1091 (aarch64_linux_nat_target::fetch_memtags): New method.
1092 (aarch64_linux_nat_target::store_memtags): New method.
1093 * arch/aarch64-mte-linux.c: New file.
1094 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1095 (AARCH64_MTE_GRANULE_SIZE): Define.
1096 (aarch64_memtag_type): New enum.
1097 (aarch64_mte_get_tag_granules): New prototype.
1098 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1099 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1100 * nat/aarch64-mte-linux-ptrace.c: New file.
1101 * nat/aarch64-mte-linux-ptrace.h: New file.
1102
1103 2021-03-24 Luis Machado <luis.machado@linaro.org>
1104
1105 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1106 * nat/aarch64-mte-linux-ptrace.h: New file.
1107
1108 2021-03-24 Luis Machado <luis.machado@linaro.org>
1109
1110 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1111 (store_mteregs_to_thread): New function.
1112 (aarch64_linux_nat_target::fetch_registers): Update to call
1113 fetch_mteregs_from_thread.
1114 (aarch64_linux_nat_target::store_registers): Update to call
1115 store_mteregs_to_thread.
1116 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1117 (aarch64_cannot_store_register): Handle MTE registers.
1118 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1119 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1120 <has_mte>: New method.
1121 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1122
1123 2021-03-24 Luis Machado <luis.machado@linaro.org>
1124
1125 * aarch64-linux-nat.c
1126 (aarch64_linux_nat_target::read_description): Take MTE flag into
1127 account.
1128 Slight refactor to hwcap flag checking.
1129 * aarch64-linux-tdep.c
1130 (aarch64_linux_core_read_description): Likewise.
1131 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1132 MTE.
1133 (aarch64_read_description): Add mte_p parameter and update to use it.
1134 Update the documentation.
1135 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1136 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1137 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1138 (aarch64_create_target_description): Add mte_p parameter and update
1139 the code to use it.
1140 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1141 parameter.
1142 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1143 * features/aarch64-mte.c: New file, generated.
1144 * features/aarch64-mte.xml: New file.
1145
1146 2021-03-24 Luis Machado <luis.machado@linaro.org>
1147
1148 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1149 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1150 * aarch64-linux-tdep.c: Likewise
1151 * arch/aarch64-mte-linux.h: New file.
1152
1153 2021-03-24 Luis Machado <luis.machado@linaro.org>
1154
1155 * remote: Include gdbsupport/selftest.h.
1156 (test_memory_tagging_functions): New function.
1157 (_initialize_remote): Register test_memory_tagging_functions.
1158
1159 2021-03-24 Luis Machado <luis.machado@linaro.org>
1160
1161 * remote.c (PACKET_memory_tagging_feature): New enum.
1162 (remote_memory_tagging_p): New function.
1163 (remote_protocol_features): New "memory-tagging" entry.
1164 (remote_target::remote_query_supported): Handle memory tagging
1165 support.
1166 (remote_target::supports_memory_tagging): Implement.
1167 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1168 (create_store_memtags_request): New functions.
1169 (remote_target::fetch_memtags): Implement.
1170 (remote_target::store_memtags): Implement.
1171 (_initialize_remote): Add new "memory-tagging-feature"
1172 config command.
1173
1174 2021-03-24 Luis Machado <luis.machado@linaro.org>
1175
1176 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1177 (default_memtag_matches_p, default_set_memtags)
1178 (default_get_memtag): New functions.
1179 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1180 (default_memtag_matches_p, default_set_memtags)
1181 (default_get_memtag): New prototypes.
1182 * gdbarch.c: Regenerate.
1183 * gdbarch.h: Regenerate.
1184 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1185 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1186 (enum memtag_type): New enum.
1187
1188 2021-03-24 Luis Machado <luis.machado@linaro.org>
1189
1190 * remote.c (remote_target) <supports_memory_tagging>: New method
1191 override.
1192 <fetch_memtags>: New method override.
1193 <store_memtags>: New method override.
1194 (remote_target::supports_memory_tagging): New method.
1195 (remote_target::fetch_memtags): New method.
1196 (remote_target::store_memtags): New method.
1197 * target-delegates.c: Regenerate.
1198 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1199 method.
1200 <fetch_memtags>: New virtual method.
1201 <store_memtags>: New virtual method.
1202 (target_supports_memory_tagging): Define.
1203 (target_fetch_memtags): Define.
1204 (target_store_memtags): Define.
1205 * target-debug.h (target_debug_print_size_t)
1206 (target_debug_print_const_gdb_byte_vector_r)
1207 (target_debug_print_gdb_byte_vector_r): New functions.
1208
1209 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1210
1211 * target.h (target_longname): Remove.
1212
1213 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * target.h (target_is_pushed): Remove, update callers to use
1216 inferior::target_is_pushed instead.
1217 * target.c (target_is_pushed): Remove.
1218
1219 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1220
1221 * target.h (push_target): Remove, update callers to use
1222 inferior::push_target.
1223 * target.c (push_target): Remove.
1224 * inferior.h (class inferior) <push_target>: New overload.
1225
1226 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1227
1228 * target.h (unpush_target): Remove, update all callers
1229 to use `inferior::unpush_target` instead.
1230 (struct target_unpusher) <operator()>: Just declare.
1231 * target.c (unpush_target): Remove.
1232 (target_unpusher::operator()): New.
1233
1234 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1235
1236 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1237 error.
1238 (process_full_comp_unit): Validate the top-level tag before
1239 processing the first DIE.
1240 (read_func_scope): Ensure we have a valid builder.
1241
1242 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * objc-lang.c (objc_demangle): Renamed to
1245 objc_language::demangle_symbol, and moved later in the file.
1246 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1247 member function.
1248 (objc_language::demangle_symbol): Defined outside of class
1249 declaration. The definition is the old objc_demangle with NULL
1250 changed to nullptr, and if conditions relating to nullptr pointers
1251 or null character checks made explicit.
1252 * objc-lang.h (objc_demangle): Delete declaration.
1253
1254 2021-03-22 Martin Liska <mliska@suse.cz>
1255
1256 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1257 (_initialize_arm_tdep): Likewise.
1258
1259 2021-03-20 Tom Tromey <tom@tromey.com>
1260
1261 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1262 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1263 * psymtab.h (make_psymbol_functions): Don't declare.
1264 * psymtab.c (make_psymbol_functions): Remove.
1265 (maintenance_print_psymbols): Update.
1266 * psympriv.h (struct psymbol_functions): Add no-argument
1267 constructor.
1268 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1269 <partial_symtabs>: Remove.
1270 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1271 * elfread.c (read_partial_symbols): Update.
1272 (elf_symfile_read): Remove check for existing partial symbols.
1273 Don't clear "qf".
1274 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1275 partial symbols.
1276 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1277 partial symtabs.
1278 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1279 parameter.
1280 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1281 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1282
1283 2021-03-20 Tom Tromey <tom@tromey.com>
1284
1285 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1286 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1287 * symfile-debug.c (objfile::has_partial_symbols)
1288 (objfile::find_last_source_symtab)
1289 (objfile::forget_cached_source_info)
1290 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1291 (objfile::print_stats, objfile::dump)
1292 (objfile::expand_symtabs_for_function)
1293 (objfile::expand_all_symtabs)
1294 (objfile::expand_symtabs_with_fullname)
1295 (objfile::map_matching_symbols)
1296 (objfile::expand_symtabs_matching)
1297 (objfile::find_pc_sect_compunit_symtab)
1298 (objfile::map_symbol_filenames)
1299 (objfile::find_compunit_symtab_by_address)
1300 (objfile::lookup_global_symbol_language)
1301 (objfile::require_partial_symbols): Update.
1302 * psymtab.c (maintenance_print_psymbols)
1303 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1304 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1305 * objfiles.c (objfile_relocate1): Update.
1306 * elfread.c (elf_symfile_read): Update.
1307
1308 2021-03-20 Tom Tromey <tom@tromey.com>
1309
1310 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1311
1312 2021-03-20 Tom Tromey <tom@tromey.com>
1313
1314 * psymtab.c (psymbol_functions::count_psyms): Rename.
1315 (psymbol_functions::print_stats): Update.
1316 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1317 method.
1318
1319 2021-03-20 Tom Tromey <tom@tromey.com>
1320
1321 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1322 (psymbol_functions::find_pc_sect_psymtab): Rename.
1323 (psymbol_functions::find_pc_sect_compunit_symtab)
1324 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1325 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1326 Declare new method.
1327 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1328
1329 2021-03-20 Tom Tromey <tom@tromey.com>
1330
1331 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1332 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1333 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1334 parameter.
1335 (add_psymbol_to_bcache): Remove.
1336 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1337 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1338 Likewise.
1339 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1340 <add_psymbol>: Likewise.
1341 (standard_psymtab, legacy_psymtab): Likewise.
1342 * mdebugread.c (parse_partial_symbols): Update.
1343 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1344 (handle_psymbol_enumerators): Update.
1345 (new_psymtab): Add partial_symtabs parameter.
1346 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1347 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1348 parameter.
1349 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1350 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1351 Update.
1352 * dbxread.c (read_dbx_symtab): Update.
1353 (start_psymtab): Add partial_symtabs parameter.
1354 (dbx_end_psymtab): Update.
1355 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1356 (ctf_psymtab): Add partial_symtabs parameter.
1357 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1358 Update.
1359 (scan_partial_symbols): Add partial_symtabs parameter.
1360 (scan_partial_symbols, elfctf_build_psymtabs)
1361 (ctf_psymtab_add_enums): Update.
1362
1363 2021-03-20 Tom Tromey <tom@tromey.com>
1364
1365 * symfile.c (read_symbols): Use objfile method.
1366 * symfile-debug.c (objfile::require_partial_symbols): New method.
1367 * psymtab.h (require_partial_symbols): Don't declare.
1368 * psymtab.c (require_partial_symbols): Use objfile method. Now
1369 static.
1370 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1371 (psymbol_functions::lookup_symbol)
1372 (psymbol_functions::lookup_global_symbol_language)
1373 (psymbol_functions::find_last_source_symtab)
1374 (psymbol_functions::forget_cached_source_info)
1375 (psymbol_functions::print_stats)
1376 (psymbol_functions::expand_symtabs_for_function)
1377 (psymbol_functions::expand_all_symtabs)
1378 (psymbol_functions::expand_symtabs_with_fullname)
1379 (psymbol_functions::map_symbol_filenames)
1380 (psymbol_functions::map_matching_symbols)
1381 (psymbol_functions::expand_symtabs_matching)
1382 (psymbol_functions::find_compunit_symtab_by_address)
1383 (maintenance_print_psymbols, maintenance_info_psymtabs)
1384 (maintenance_check_psymtabs): Update.
1385 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1386 new method.
1387
1388 2021-03-20 Tom Tromey <tom@tromey.com>
1389
1390 * xcoffread.c (xcoff_sym_fns): Update.
1391 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1392 * symfile-debug.c (objfile::has_partial_symbols): Use
1393 can_lazily_read_symbols.
1394 (debug_sym_read_psymbols): Remove.
1395 (debug_sym_fns, install_symfile_debug_logging): Update.
1396 * quick-symbol.h (struct quick_symbol_functions)
1397 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1398 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1399 * mipsread.c (ecoff_sym_fns): Update.
1400 * machoread.c (macho_sym_fns): Update.
1401 * elfread.c (struct lazy_dwarf_reader): New.
1402 (elf_symfile_read): Update.
1403 (read_psyms): Now a method of lazy_dwarf_reader.
1404 (elf_sym_fns): Update.
1405 (elf_sym_fns_lazy_psyms): Remove.
1406 * dbxread.c (aout_sym_fns): Update.
1407 * coffread.c (coff_sym_fns): Update.
1408
1409 2021-03-20 Tom Tromey <tom@tromey.com>
1410
1411 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1412 (reread_symbols): Move reset_psymtabs call later.
1413 * objfiles.c (objfile::objfile): Don't initialize
1414 partial_symtabs.
1415
1416 2021-03-20 Tom Tromey <tom@tromey.com>
1417
1418 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1419 set_partial_symtabs.
1420 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1421 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1422 parameter.
1423 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1424 parameter.
1425 (psymbol_functions::find_pc_sect_compunit_symtab)
1426 (psymbol_functions::print_stats, psymbol_functions::dump)
1427 (psymbol_functions::has_symbols): Update.
1428 (make_psymbol_functions, dump_psymtab_addrmap): Add
1429 partial_symtabs parameter.
1430 (maintenance_print_psymbols): Update.
1431 (psymbol_functions::expand_symtabs_matching): Update.
1432 * psympriv.h (struct psymbol_functions): Add constructor.
1433 <m_partial_symtabs>: New member.
1434 <set_partial_symtabs>: New method.
1435
1436 2021-03-20 Tom Tromey <tom@tromey.com>
1437
1438 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1439 parameter.
1440 (process_psymtab_comp_unit_reader)
1441 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1442 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1443 Reference psymtabs via per_bfd.
1444
1445 2021-03-20 Tom Tromey <tom@tromey.com>
1446
1447 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1448 Remove.
1449 (add_address_entry): Remove objfile parameter.
1450 (add_address_entry_worker): Update.
1451 (write_address_map): Replace objfile parameter with per_bfd.
1452 (write_gdbindex, write_psymtabs_to_index): Update.
1453
1454 2021-03-20 Tom Tromey <tom@tromey.com>
1455
1456 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1457 print_bcache parameter.
1458 * symfile-debug.c (objfile::print_stats): Add print_bcache
1459 parameter.
1460 * quick-symbol.h (struct quick_symbol_functions)
1461 <print_stats>: Add print_bcache parameter.
1462 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1463 code to psymtab.c.
1464 (print_objfile_statistics): Move psymtab code to psymtab.c.
1465 * psymtab.c (count_psyms): Move from symmisc.c.
1466 (psymbol_functions::print_stats): Print partial symbol and bcache
1467 statistics. Add print_bcache parameter.
1468 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1469 (struct objfile) <print_stats>: Add print_bcache parameter.
1470 * maint.c (maintenance_print_statistics): Update.
1471
1472 2021-03-20 Tom Tromey <tom@tromey.com>
1473
1474 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1475 member.
1476 * dwarf2/read.c (create_addrmap_from_index)
1477 (create_addrmap_from_aranges): Set per_bfd addrmap.
1478 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1479 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1480 per_bfd addrmap.
1481 (dwarf2_read_debug_names): Don't set partial_symtabs.
1482 (dwarf2_initialize_objfile): Likewise.
1483
1484 2021-03-20 Tom Tromey <tom@tromey.com>
1485
1486 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1487 earlier.
1488
1489 2021-03-20 Tom Tromey <tom@tromey.com>
1490
1491 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1492 (~psymtab_discarder, keep): Update.
1493 <m_objfile>: Remove.
1494 <m_partial_symtabs>: New member.
1495 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1496
1497 2021-03-20 Tom Tromey <tom@tromey.com>
1498
1499 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1500 (xcoff_end_psymtab): Update.
1501 (scan_xcoff_symtab): Add partial_symtabs parameter.
1502 (xcoff_initial_scan): Update.
1503 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1504 * mdebugread.c (mdebug_build_psymtabs): Update.
1505 (parse_partial_symbols): Add partial_symtabs parameter.
1506 * dbxread.c (dbx_symfile_read): Update.
1507 (read_dbx_symtab): Add partial_symtabs parameter.
1508 (read_dbx_symtab): Update.
1509 (dbx_end_psymtab): Add partial_symtabs parameter.
1510
1511 2021-03-20 Tom Tromey <tom@tromey.com>
1512
1513 * quick-symbol.h (struct quick_symbol_functions)
1514 <relocated>: New method.
1515 * psymtab.h (struct psymbol_functions) <relocated>: New
1516 method.
1517 <fill_psymbol_map>: Declare method.
1518 <m_psymbol_map>: New member.
1519 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1520 (psymbol_functions::find_compunit_symtab_by_address): Update.
1521 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1522 (struct objfile) <psymbol_map>: Remove.
1523 * objfiles.c (objfile_relocate1): Update.
1524
1525 2021-03-20 Tom Tromey <tom@tromey.com>
1526
1527 * psympriv.h (struct psymbol_functions): New.
1528 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1529 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1530 (objfile::lookup_global_symbol_language): Update.
1531 * quick-symbol.h (struct quick_symbol_functions): Convert function
1532 pointers to methods. Add virtual destructor.
1533 (quick_symbol_functions_up): New typedef.
1534 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1535 (dwarf2_debug_names_functions): Don't declare.
1536 (make_psymbol_functions): Declare.
1537 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1538 (psymbol_functions::find_pc_sect_compunit_symtab)
1539 (psymbol_functions::lookup_symbol)
1540 (psymbol_functions::lookup_global_symbol_language)
1541 (psymbol_functions::find_last_source_symtab)
1542 (psymbol_functions::forget_cached_source_info)
1543 (psymbol_functions::print_stats, psymbol_functions::dump)
1544 (psymbol_functions::expand_symtabs_for_function)
1545 (psymbol_functions::expand_all_symtabs)
1546 (psymbol_functions::expand_symtabs_with_fullname)
1547 (psymbol_functions::map_symbol_filenames)
1548 (psymbol_functions::map_matching_symbols)
1549 (psymbol_functions::expand_symtabs_matching)
1550 (psymbol_functions::has_symbols)
1551 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1552 (psym_functions): Remove.
1553 (make_psymbol_functions): New function.
1554 * objfiles.h (struct objfile) <qf>: Change type.
1555 * elfread.c (elf_symfile_read): Update.
1556 * dwarf2/read.c (struct dwarf2_base_index_functions)
1557 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1558 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1559 (dwarf2_base_index_functions::find_last_source_symtab)
1560 (dwarf2_base_index_functions::forget_cached_source_info)
1561 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1562 (dwarf2_gdb_index::lookup_symbol)
1563 (dwarf2_base_index_functions::print_stats)
1564 (dwarf2_gdb_index::dump)
1565 (dwarf2_gdb_index::expand_symtabs_for_function)
1566 (dwarf2_base_index_functions::expand_all_symtabs)
1567 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1568 Rename.
1569 (dwarf2_gdb_index::map_matching_symbols): New method.
1570 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1571 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1572 (dwarf2_base_index_functions::map_symbol_filenames)
1573 (dwarf2_base_index_functions::has_symbols): Rename.
1574 (dwarf2_gdb_index_functions): Remove.
1575 (dwarf2_debug_names_index::lookup_symbol)
1576 (dwarf2_debug_names_index::dump)
1577 (dwarf2_debug_names_index::expand_symtabs_for_function)
1578 (dwarf2_debug_names_index::map_matching_symbols)
1579 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1580 (dwarf2_debug_names_functions): Remove.
1581 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1582 Declare.
1583
1584 2021-03-20 Tom Tromey <tom@tromey.com>
1585
1586 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1587 null.
1588 * xcoffread.c (xcoff_sym_fns): Update.
1589 * symfile.h (struct sym_fns) <qf>: Remove.
1590 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1591 * symfile-debug.c (objfile::has_partial_symbols)
1592 (objfile::find_last_source_symtab)
1593 (objfile::forget_cached_source_info)
1594 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1595 (objfile::print_stats, objfile::dump)
1596 (objfile::expand_symtabs_for_function)
1597 (objfile::expand_all_symtabs)
1598 (objfile::expand_symtabs_with_fullname)
1599 (objfile::map_matching_symbols)
1600 (objfile::expand_symtabs_matching)
1601 (objfile::find_pc_sect_compunit_symtab)
1602 (objfile::map_symbol_filenames)
1603 (objfile::find_compunit_symtab_by_address)
1604 (objfile::lookup_global_symbol_language, debug_sym_fns)
1605 (install_symfile_debug_logging): Update.
1606 * objfiles.h (struct objfile) <qf>: New member.
1607 * mipsread.c (ecoff_sym_fns): Update.
1608 * machoread.c (macho_sym_fns): Update.
1609 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1610 Don't declare.
1611 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1612 * dbxread.c (aout_sym_fns): Update.
1613 * coffread.c (coff_sym_fns): Update.
1614
1615 2021-03-20 Tom Tromey <tom@tromey.com>
1616
1617 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1618 (expand_symtabs_file_matcher_ftype)
1619 (expand_symtabs_symbol_matcher_ftype)
1620 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1621 Move to quick-symbol.h.
1622 * quick-symbol.h: New file.
1623
1624 2021-03-20 Tom Tromey <tom@tromey.com>
1625
1626 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1627 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1628 (basic_lookup_transparent_type_quick)
1629 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1630 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1631 Update.
1632 * symmisc.c (print_objfile_statistics, dump_objfile)
1633 (maintenance_expand_symtabs): Update.
1634 * symfile.c (symbol_file_add_with_addrs)
1635 (expand_symtabs_matching, map_symbol_filenames): Update.
1636 * symfile-debug.c (objfile::has_partial_symbols)
1637 (objfile::find_last_source_symtab)
1638 (objfile::forget_cached_source_info)
1639 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1640 (objfile::print_stats, objfile::dump)
1641 (objfile::expand_symtabs_for_function)
1642 (objfile::expand_all_symtabs)
1643 (objfile::expand_symtabs_with_fullname)
1644 (objfile::map_matching_symbols)
1645 (objfile::expand_symtabs_matching)
1646 (objfile::find_pc_sect_compunit_symtab)
1647 (objfile::map_symbol_filenames)
1648 (objfile::find_compunit_symtab_by_address)
1649 (objfile::lookup_global_symbol_language): New methods.
1650 (debug_sym_quick_functions): Remove.
1651 (debug_sym_fns, install_symfile_debug_logging): Update.
1652 * source.c (forget_cached_source_info_for_objfile)
1653 (select_source_symtab): Update.
1654 * objfiles.h (struct objfile): Add methods corresponding to
1655 quick_symbol_functions.
1656 * objfiles.c (objfile::has_partial_symbols): Move to
1657 symfile-debug.c.
1658 * linespec.c (iterate_over_all_matching_symtabs): Update.
1659 * cp-support.c (add_symbol_overload_list_qualified): Update.
1660 * ada-lang.c (add_nonlocal_symbols): Update.
1661
1662 2021-03-20 Tom Tromey <tom@tromey.com>
1663
1664 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1665 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1666 bool.
1667 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1668 * psymtab.c (psym_has_symbols): Return bool.
1669 * objfiles.c (objfile::has_partial_symbols): Return bool.
1670 * dwarf2/read.c (dw2_has_symbols): Return bool.
1671
1672 2021-03-20 Tom Tromey <tom@tromey.com>
1673
1674 * symfile.c (read_symbols): Update.
1675 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1676 (objfile_has_partial_symbols): Don't declare.
1677 * objfiles.c (objfile::has_partial_symbols): Rename from
1678 objfile_has_partial_symbols.
1679 (objfile_has_symbols, have_partial_symbols): Update.
1680 * elfread.c (elf_symfile_read): Update.
1681 * dwarf2/read.c (dwarf2_has_info): Update.
1682 * coffread.c (coff_symfile_read): Update.
1683
1684 2021-03-20 Tom Tromey <tom@tromey.com>
1685
1686 * coffread.c: Include dwarf2/public.h.
1687 * dwarf2/frame.c: Include dwarf2/public.h.
1688 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1689 * dwarf2/public.h: New file.
1690 * dwarf2/read.c: Include dwarf2/public.h.
1691 * elfread.c: Include dwarf2/public.h.
1692 * machoread.c: Include dwarf2/public.h.
1693 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1694 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1695 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1696 * xcoffread.c: Include dwarf2/public.h.
1697
1698 2021-03-20 Tom Tromey <tom@tromey.com>
1699
1700 * symfile.h (enum dwarf2_section_enum)
1701 (dwarf2_get_section_info): Move to dwarf2/read.h.
1702 * dwarf2/read.h (enum dwarf2_section_enum)
1703 (dwarf2_get_section_info): Move from symfile.h.
1704
1705 2021-03-19 Pedro Alves <pedro@palves.net>
1706
1707 * thread.c (any_thread_of_inferior): Check if there's a selected
1708 thread before calling inferior_thread().
1709
1710 2021-03-18 Tom Tromey <tromey@adacore.com>
1711
1712 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1713 get_DW_UT_name.
1714 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1715 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1716
1717 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1718
1719 * python/py-param.c (get_set_value): Update header comment.
1720
1721 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1722
1723 * infrun.c (check_multi_target_resumption): Remove argument to
1724 all_non_exited_inferiors.
1725
1726 2021-03-16 Christian Biesinger <cbiesinger@google.com>
1727
1728 * windows-nat.c (windows_init_thread_list): Add message to
1729 debug log.
1730
1731 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1734 well as PyLong_Check for Python 2.
1735
1736 2021-03-15 Tom Tromey <tromey@adacore.com>
1737
1738 PR build/27579:
1739 * rust-exp.y (maker_map): Use gdb::hash_enum.
1740 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1741
1742 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1743
1744 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1745 end of debug print.
1746
1747 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1750 parameter, adjust caller.
1751
1752 2021-03-15 Tom Tromey <tromey@adacore.com>
1753
1754 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1755
1756 2021-03-15 Tom Tromey <tromey@adacore.com>
1757
1758 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1759 ada_ensure_varsize_limit.
1760
1761 2021-03-15 Tom Tromey <tromey@adacore.com>
1762
1763 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1764 fixed-point.
1765 * ada-exp.y (maybe_overload): New function.
1766 (ada_wrap_overload): New function.
1767 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1768 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1769 (or_else_exp, xor_exp, primary): Update.
1770
1771 2021-03-15 Tom Tromey <tromey@adacore.com>
1772
1773 PR ada/27545:
1774 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1775 call for tagged type.
1776
1777 2021-03-15 Tom Tromey <tromey@adacore.com>
1778
1779 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1780 assignment.
1781
1782 2021-03-15 Tom Tromey <tromey@adacore.com>
1783
1784 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1785 container.
1786 (ada_assign_operation::evaluate): Update.
1787 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1788 Change return type.
1789
1790 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1791
1792 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1793
1794 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * python/python.c (gdbpy_source_objfile_script): Use
1797 make_scoped_restore to restore gdbpy_current_objfile.
1798 (gdbpy_execute_objfile_script): Likewise.
1799
1800 2021-03-14 Tom Tromey <tom@tromey.com>
1801
1802 * dwarf2/read.c (read_attribute_value): Use cu_header
1803 consistently.
1804
1805 2021-03-14 Tom Tromey <tom@tromey.com>
1806
1807 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1808 (peek_die_abbrev): Use reader.abfd.
1809
1810 2021-03-14 Tom Tromey <tom@tromey.com>
1811
1812 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1813 m_header_read_in.
1814
1815 2021-03-13 Tom Tromey <tom@tromey.com>
1816
1817 * dwarf2/read.c (struct partial_die_info): Update.
1818 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1819 (load_partial_dies, partial_die_info::partial_die_info): Update.
1820 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1821
1822 2021-03-13 Tom Tromey <tom@tromey.com>
1823
1824 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1825
1826 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1827
1828 PR threads/27239
1829 * cp-support.c: Use scoped_segv_handler_restore.
1830 * event-top.c (thread_local_segv_handler): Made static.
1831 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1832 New function.
1833 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1834 function.
1835 * event-top.h (class scoped_segv_handler_restore): New class.
1836 (thread_local_segv_handler): Removed.
1837
1838 2021-03-10 Tom Tromey <tromey@adacore.com>
1839
1840 * parser-defs.h (parser_state): Change completion to bool.
1841 <parse_completion>: Likewise.
1842 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1843 (ada_resolve_variable, ada_resolve_function): Update.
1844 * ada-lang.c (ada_find_operator_symbol): Change
1845 parse_completion to bool.
1846 (ada_resolve_funcall, ada_resolve_variable)
1847 (ada_resolve_function): Likewise.
1848
1849 2021-03-09 Tom Tromey <tromey@adacore.com>
1850
1851 * eval.c (operation::evaluate_funcall): Use function formal
1852 parameter types when evaluating.
1853
1854 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1857 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1858 and owner to m_owner.
1859
1860 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1861
1862 * f-exp.h (eval_op_f_loc): Declare.
1863 (expr::fortran_loc_operation): New typedef.
1864 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1865 UNOP_INTRINSIC.
1866 (f77_keywords): Add LOC keyword.
1867 * f-lang.c (eval_op_f_loc): New function.
1868 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1869
1870 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1871
1872 * f-exp.h (eval_op_f_array_shape): Declare.
1873 (fortran_array_shape_operation): New type.
1874 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1875 UNOP_INTRINSIC.
1876 (f77_keywords): Add "shape" keyword.
1877 * f-lang.c (fortran_array_shape): New function.
1878 (eval_op_f_array_shape): New function.
1879 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1880
1881 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1882
1883 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1884 of this function.
1885 (expr::fortran_array_size_1arg): New type.
1886 (expr::fortran_array_size_2arg): Likewise.
1887 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1888 UNOP_OR_BINOP_INTRINSIC.
1889 (f77_keywords): Add "size" keyword.
1890 * f-lang.c (fortran_array_size): New function.
1891 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1892 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1893
1894 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * f-exp.h (eval_op_f_rank): Declare.
1897 (expr::fortran_rank_operation): New typedef.
1898 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1899 UNOP_INTRINSIC.
1900 (f77_keywords): Add "rank" keyword.
1901 * f-lang.c (eval_op_f_rank): New function.
1902 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1903
1904 2021-03-08 Tom Tromey <tom@tromey.com>
1905
1906 * printcmd.c (set_command): Remove null check.
1907 * value.c (init_if_undefined_command): Remove null check.
1908
1909 2021-03-08 Tom Tromey <tom@tromey.com>
1910
1911 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1912 Update.
1913 * p-exp.y (variable): Update.
1914 * go-exp.y (variable): Update.
1915 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1916 Remove overload for objfile.
1917 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1918 parameter.
1919 (check_objfile): Likewise.
1920 (dump_for_expression): Likewise. Remove overload for objfile.
1921 (class var_msym_value_operation): Use bound_minimal_symbol.
1922 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1923 parameter.
1924 (var_msym_value_operation::evaluate_for_address)
1925 (var_msym_value_operation::evaluate_for_sizeof)
1926 (var_msym_value_operation::evaluate_for_cast): Update.
1927 * d-exp.y (PrimaryExpression): Update.
1928 * c-exp.y (variable): Update.
1929 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1930 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1931 Update.
1932 * ada-exp.y (write_var_or_type): Update.
1933
1934 2021-03-08 Tom Tromey <tom@tromey.com>
1935
1936 * parser-defs.h (exp_uses_objfile): Return bool.
1937 * parse.c (exp_uses_objfile): Return bool.
1938
1939 2021-03-08 Tom Tromey <tom@tromey.com>
1940
1941 * value.h (eval_skip_value): Don't declare.
1942 * opencl-lang.c (eval_opencl_assign): Update.
1943 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1944 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1945 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1946 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1947 * expop.h (typeof_operation::evaluate)
1948 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1949 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1950 (cxx_cast_operation::evaluate): Update.
1951 * eval.c (eval_skip_value): Remove.
1952 (eval_op_scope, eval_op_var_entry_value)
1953 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1954 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1955 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1956 (eval_op_binary, eval_op_subscript, eval_op_equal)
1957 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1958 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1959 (eval_op_complement, eval_op_lognot, eval_op_ind)
1960 (eval_op_memval, eval_op_preinc, eval_op_predec)
1961 (eval_op_postinc, eval_op_postdec, eval_op_type)
1962 (eval_binop_assign_modify, eval_op_objc_msgcall)
1963 (eval_multi_subscript, logical_and_operation::evaluate)
1964 (logical_or_operation::evaluate, array_operation::evaluate)
1965 (operation::evaluate_for_cast)
1966 (var_msym_value_operation::evaluate_for_cast)
1967 (var_value_operation::evaluate_for_cast): Update.
1968 * c-lang.c (c_string_operation::evaluate): Update.
1969 * c-exp.h (objc_nsstring_operation::evaluate)
1970 (objc_selector_operation::evaluate): Update.
1971 * ada-lang.c (ada_assign_operation::evaluate)
1972 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1973 (ada_atr_size): Update.
1974
1975 2021-03-08 Tom Tromey <tom@tromey.com>
1976
1977 * eval.c: Merge "namespace" scopes.
1978
1979 2021-03-08 Tom Tromey <tom@tromey.com>
1980
1981 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1982 <release>: Inline.
1983 * parse.c (expr_builder::expr_builder, expr_builder::release):
1984 Remove.
1985
1986 2021-03-08 Tom Tromey <tom@tromey.com>
1987
1988 * parse.c (expression::expression, expression::~expression):
1989 Remove.
1990 * expression.h (struct expression): Inline constructor. Remove
1991 destructor.
1992
1993 2021-03-08 Tom Tromey <tom@tromey.com>
1994
1995 * std-operator.def (BINOP_END): Remove.
1996 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1997 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1998 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1999 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2000 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2001 BINOP_END.
2002
2003 2021-03-08 Tom Tromey <tom@tromey.com>
2004
2005 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2006
2007 2021-03-08 Tom Tromey <tom@tromey.com>
2008
2009 * std-operator.def (OP_EXTENDED0): Remove.
2010
2011 2021-03-08 Tom Tromey <tom@tromey.com>
2012
2013 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2014 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2015 Remove.
2016
2017 2021-03-08 Tom Tromey <tom@tromey.com>
2018
2019 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2020 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2021
2022 2021-03-08 Tom Tromey <tom@tromey.com>
2023
2024 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2025 * ada-lang.c (ada_binop_minmax): Update.
2026 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2027 Use BINOP_MIN and BINOP_MAX.
2028
2029 2021-03-08 Tom Tromey <tom@tromey.com>
2030
2031 * value.h (evaluate_subexp_with_coercion): Don't declare.
2032 * parse.c (exp_descriptor_standard): Remove.
2033 (expr_builder::expr_builder, expr_builder::release): Update.
2034 (expression::expression): Remove size_t parameter.
2035 (expression::~expression): Simplify.
2036 (expression::resize): Remove.
2037 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2038 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2039 (write_exp_elt_longcst, write_exp_elt_floatcst)
2040 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2041 (write_exp_string_vector, write_exp_bitstring): Remove.
2042 * p-lang.h (class pascal_language) <opcode_print_table,
2043 op_print_tab>: Remove.
2044 * p-lang.c (pascal_language::op_print_tab): Remove.
2045 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2046 Remove.
2047 * objc-lang.c (objc_op_print_tab): Remove.
2048 (class objc_language) <opcode_print_table>: Remove.
2049 * m2-lang.h (class m2_language) <opcode_print_table,
2050 op_print_tab>: Remove.
2051 * m2-lang.c (m2_language::op_print_tab): Remove.
2052 * language.h (struct language_defn) <post_parser, expression_ops,
2053 opcode_print_table>: Remove.
2054 * language.c (language_defn::expression_ops)
2055 (auto_or_unknown_language::opcode_print_table): Remove.
2056 * go-lang.h (class go_language) <opcode_print_table,
2057 op_print_tab>: Remove.
2058 * go-lang.c (go_language::op_print_tab): Remove.
2059 * f-lang.h (class f_language) <opcode_print_table>: Remove
2060 <op_print_tab>: Remove.
2061 * f-lang.c (f_language::op_print_tab): Remove.
2062 * expression.h (union exp_element): Remove.
2063 (struct expression): Remove size_t parameter from constructor.
2064 <resize>: Remove.
2065 <first_opcode>: Update.
2066 <nelts, elts>: Remove.
2067 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2068 (evaluate_subexp_standard, print_expression, op_string)
2069 (dump_raw_expression): Don't declare.
2070 * expprint.c (print_expression, print_subexp)
2071 (print_subexp_funcall, print_subexp_standard, op_string)
2072 (dump_raw_expression, dump_subexp, dump_subexp_body)
2073 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2074 (dump_prefix_expression): Update.
2075 * eval.c (evaluate_subexp): Remove.
2076 (evaluate_expression, evaluate_type): Update.
2077 (evaluate_subexpression_type): Remove.
2078 (fetch_subexp_value): Remove "pc" parameter. Update.
2079 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2080 (evaluate_subexp_standard, evaluate_subexp_for_address)
2081 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2082 (evaluate_subexp_for_cast): Remove.
2083 (parse_and_eval_type): Update.
2084 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2085 * d-lang.c (d_op_print_tab): Remove.
2086 (class d_language) <opcode_print_table>: Remove.
2087 * c-lang.h (c_op_print_tab): Don't declare.
2088 * c-lang.c (c_op_print_tab): Remove.
2089 (class c_language, class cplus_language, class asm_language, class
2090 minimal_language) <opcode_print_table>: Remove.
2091 * breakpoint.c (update_watchpoint, watchpoint_check)
2092 (watchpoint_exp_is_const, watch_command_1): Update.
2093 * ax-gdb.h (union exp_element): Don't declare.
2094 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2095 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2096 (gen_expr_binop_rest): Remove.
2097 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2098 * ada-lang.c (ada_op_print_tab): Remove.
2099 (class ada_language) <post_parser, opcode_print_table>: Remove.
2100
2101 2021-03-08 Tom Tromey <tom@tromey.com>
2102
2103 * go-lang.c (go_language::expression_ops): Don't declare.
2104 * go-lang.h (class go_language) <expression_ops>: Remove.
2105 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2106 Remove.
2107 (class opencl_language) <expression_ops>: Remove.
2108 * d-lang.c (class d_language) <expression_ops>: Remove.
2109 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2110 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2111 (class c_language, class cplus_language, class asm_language)
2112 (class minimal_language) <expression_ops>: Remove.
2113
2114 2021-03-08 Tom Tromey <tom@tromey.com>
2115
2116 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2117 (evaluate_subexp_type, assign_aggregate)
2118 (aggregate_assign_positional, aggregate_assign_from_choices)
2119 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2120 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2121 (ada_operator_check, ada_forward_operator_length)
2122 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2123 Remove.
2124 (post_parser): Update.
2125 (class ada_language) <expresssion_ops>: Remove.
2126
2127 2021-03-08 Tom Tromey <tom@tromey.com>
2128
2129 * m2-lang.h (class m2_language) <expresssion_ops,
2130 exp_descriptor_modula2>: Remove.
2131 * m2-lang.c (evaluate_subexp_modula2)
2132 (m2_language::exp_descriptor_modula2): Remove.
2133
2134 2021-03-08 Tom Tromey <tom@tromey.com>
2135
2136 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2137 <exp_descriptor_tab>: Remove.
2138 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2139 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2140 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2141 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2142 Remove.
2143
2144 2021-03-08 Tom Tromey <tom@tromey.com>
2145
2146 * rust-lang.h (class rust_language) <expression_ops,
2147 exp_descriptor_tab>: Remove.
2148 * rust-lang.c (rust_evaluate_funcall): Remove.
2149 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2150 EVAL_SKIP.
2151 (rust_evaluate_subexp): Remove.
2152 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2153 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2154 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2155
2156 2021-03-08 Tom Tromey <tom@tromey.com>
2157
2158 * ada-exp.y: Create operations.
2159 (empty_stoken): Remove.
2160 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2161 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2162 (components): New global.
2163 (push_component, choice_component, pop_component, pop_components):
2164 New functions.
2165 (associations): New global
2166 (push_association, pop_association, pop_associations): New
2167 functions.
2168 (ada_parse): Update.
2169 (write_var_from_sym, write_int): Create operations.
2170 (write_exp_op_with_string): Remove.
2171 (write_object_renaming, write_selectors, write_ambiguous_var)
2172 (write_var_or_type, write_name_assoc): Create operations.
2173 * ada-lang.h (ada_index_type): Declare.
2174 * ada-lang.c (ada_index_type): No longer static.
2175
2176 2021-03-08 Tom Tromey <tom@tromey.com>
2177
2178 * f-exp.y: Create operations.
2179 (f_language::parser): Update.
2180
2181 2021-03-08 Tom Tromey <tom@tromey.com>
2182
2183 * m2-exp.y: Create operations.
2184 (m2_language::parser): Update.
2185
2186 2021-03-08 Tom Tromey <tom@tromey.com>
2187
2188 * p-exp.y: Create operations.
2189 (pascal_language::parser): Update.
2190
2191 2021-03-08 Tom Tromey <tom@tromey.com>
2192
2193 * d-exp.y: Create operations.
2194 (d_parse): Update.
2195
2196 2021-03-08 Tom Tromey <tom@tromey.com>
2197
2198 * go-exp.y: Create operations.
2199 (go_language::parser): Update.
2200
2201 2021-03-08 Tom Tromey <tom@tromey.com>
2202
2203 * objc-lang.c (end_msglist): Create operations.
2204 * c-exp.y: Change parser to create operations.
2205 (write_destructor_name): Remove.
2206 (c_parse): Update.
2207
2208 2021-03-08 Tom Tromey <tom@tromey.com>
2209
2210 * rust-exp.y: Create operations.
2211 (rust_parser::convert_params_to_expression): Change return type.
2212 (binop_maker_ftype): New typedef.
2213 (maker_map): New global.
2214 (rust_parser::convert_ast_to_expression): Change return type.
2215 (rust_language::parser): Update.
2216 (_initialize_rust_exp): Initialize maker_map.
2217
2218 2021-03-08 Tom Tromey <tom@tromey.com>
2219
2220 * stap-probe.c (binop_maker_ftype): New typedef.
2221 (stap_maker_map): New global.
2222 (stap_make_binop): New function.
2223 (stap_parse_register_operand): Return operation_up.
2224 (stap_parse_single_operand, stap_parse_argument_conditionally)
2225 (stap_parse_argument_1): Likewise.
2226 (stap_parse_argument): Create operations.
2227 (stap_probe::parse_arguments): Update.
2228 (_initialize_stap_probe): Initialize stap_maker_map.
2229 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2230 type.
2231 * i386-tdep.h (i386_stap_parse_special_token): Change return
2232 type.
2233 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2234 (i386_stap_parse_special_token_three_arg_disp)
2235 (i386_stap_parse_special_token): Change return type.
2236 * gdbarch.sh (stap_parse_special_token): Change return type.
2237 * gdbarch.c: Rebuild.
2238 * gdbarch.h: Rebuild.
2239 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2240 type.
2241 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2242 return type.
2243
2244 2021-03-08 Tom Tromey <tom@tromey.com>
2245
2246 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2247 * gdbarch.h: Rebuild.
2248 * gdbarch.c: Rebuild.
2249 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2250 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2251 return type.
2252 (amd64_dtrace_parse_probe_argument): Update.
2253
2254 2021-03-08 Tom Tromey <tom@tromey.com>
2255
2256 * parser-defs.h (struct parser_state) <push, push_new,
2257 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2258 wrap2>: New methods.
2259 <m_operations>: New member.
2260 * parse.c (parser_state::push_c_string)
2261 (parser_state::push_symbol, parser_state::push_dollar): New
2262 methods.
2263
2264 2021-03-08 Tom Tromey <tom@tromey.com>
2265
2266 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2267 New member.
2268 (struct parser_state) <mark_struct_expression>: New method.
2269 * parse.c (parser_state::mark_struct_expression): Update assert.
2270 (parser_state::mark_struct_expression): New method.
2271 (parser_state::mark_completion_tag): Update assert.
2272 (parse_expression_for_completion): Handle expout_last_op.
2273
2274 2021-03-08 Tom Tromey <tom@tromey.com>
2275
2276 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2277 now in superclass.
2278 * value.h (fetch_subexp_value): Add "op" parameter.
2279 * value.c (init_if_undefined_command): Update.
2280 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2281 * stap-probe.c (stap_probe::compile_to_ax): Update.
2282 * printcmd.c (set_command): Update.
2283 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2284 Update.
2285 * parser-defs.h (struct expr_builder) <set_operation>: New
2286 method.
2287 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2288 * expression.h (struct expression) <first_opcode>: Update.
2289 <op>: New member.
2290 * expprint.c (dump_raw_expression, dump_prefix_expression):
2291 Update.
2292 * expop.h (class var_value_operation) <get_symbol>: New method.
2293 (class register_operation) <get_name>: New method.
2294 (class equal_operation): No longer a typedef, now a subclass.
2295 (class unop_memval_operation) <get_type>: New method.
2296 (class assign_operation) <get_lhs>: New method.
2297 (class unop_cast_operation) <get_type>: New method.
2298 * eval.c (evaluate_expression, evaluate_type)
2299 (evaluate_subexpression_type): Update.
2300 (fetch_subexp_value): Add "op" parameter.
2301 (parse_and_eval_type): Update.
2302 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2303 * breakpoint.c (update_watchpoint, watchpoint_check)
2304 (watchpoint_exp_is_const, watch_command_1): Update.
2305 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2306 Update.
2307
2308 2021-03-08 Tom Tromey <tom@tromey.com>
2309
2310 * ada-lang.c (ada_value_binop): Do not use op_string.
2311
2312 2021-03-08 Tom Tromey <tom@tromey.com>
2313
2314 * expprint.c (dump_for_expression): New overload.
2315 * expop.h (check_objfile, dump_for_expression): Declare new
2316 overloads.
2317 * ada-lang.c (check_objfile): New overload.
2318 (assign_component, ada_aggregate_component::uses_objfile)
2319 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2320 (ada_aggregate_component::assign_aggregate)
2321 (ada_positional_component::uses_objfile)
2322 (ada_positional_component::dump, ada_positional_component::assign)
2323 (ada_discrete_range_association::uses_objfile)
2324 (ada_discrete_range_association::dump)
2325 (ada_discrete_range_association::assign)
2326 (ada_name_association::uses_objfile, ada_name_association::dump)
2327 (ada_name_association::assign)
2328 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2329 (ada_choices_component::assign)
2330 (ada_others_component::uses_objfile, ada_others_component::dump)
2331 (ada_others_component::assign, ada_assign_operation::evaluate):
2332 New methods.
2333 * ada-exp.h (ada_string_operation) <get_name>: New method.
2334 (class ada_assign_operation): New.
2335 (class ada_component): New.
2336 (ada_component_up): New typedef.
2337 (class ada_aggregate_operation, class ada_aggregate_component)
2338 (class ada_positional_component, class ada_others_component)
2339 (class ada_association): New.
2340 (ada_association_up): New typedef.
2341 (class ada_choices_component)
2342 (class ada_discrete_range_association)
2343 (class ada_name_association): New.
2344
2345 2021-03-08 Tom Tromey <tom@tromey.com>
2346
2347 * ada-lang.c (ada_var_value_operation::resolve)
2348 (ada_funcall_operation::resolve)
2349 (ada_ternop_slice_operation::resolve): New methods.
2350 * ada-exp.h (struct ada_resolvable): New.
2351 (class ada_var_value_operation): Derive from ada_resolvable.
2352 <get_block, resolve>: New methods.
2353 (class ada_funcall_operation): Derive from ada_resolvable.
2354 <resolve>: New method.
2355 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2356 <resolve>: New method.
2357
2358 2021-03-08 Tom Tromey <tom@tromey.com>
2359
2360 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2361 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2362 method.
2363 (class ada_funcall_operation): New.
2364
2365 2021-03-08 Tom Tromey <tom@tromey.com>
2366
2367 * ada-lang.c (ada_structop_operation::evaluate): New method.
2368 * ada-exp.h (class ada_structop_operation): New.
2369
2370 2021-03-08 Tom Tromey <tom@tromey.com>
2371
2372 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2373 * ada-exp.h (class ada_unop_ind_operation): New.
2374
2375 2021-03-08 Tom Tromey <tom@tromey.com>
2376
2377 * ada-lang.c (ada_binop_exp): No longer static.
2378 * ada-exp.h (ada_binop_exp_operation): New typedef.
2379
2380 2021-03-08 Tom Tromey <tom@tromey.com>
2381
2382 * ada-lang.c (ada_val_atr): No longer static.
2383 (ada_atr_val_operation::evaluate): New method.
2384 * ada-exp.h (class ada_atr_val_operation): New.
2385
2386 2021-03-08 Tom Tromey <tom@tromey.com>
2387
2388 * ada-lang.c (ada_pos_atr): No longer static.
2389 * ada-exp.h (ada_pos_operation): New typedef.
2390
2391 2021-03-08 Tom Tromey <tom@tromey.com>
2392
2393 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2394 parameters.
2395 (ada_evaluate_subexp): Use it.
2396
2397 2021-03-08 Tom Tromey <tom@tromey.com>
2398
2399 * ada-lang.c (ada_binop_minmax): No longer static.
2400 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2401 New typedefs.
2402
2403 2021-03-08 Tom Tromey <tom@tromey.com>
2404
2405 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2406 New method.
2407 * ada-exp.h (class ada_var_msym_value_operation): New.
2408
2409 2021-03-08 Tom Tromey <tom@tromey.com>
2410
2411 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2412 (ada_var_value_operation::evaluate): New methods.
2413 * ada-exp.h (class ada_var_value_operation): New.
2414
2415 2021-03-08 Tom Tromey <tom@tromey.com>
2416
2417 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2418 * ada-exp.h (class ada_unop_atr_operation): New.
2419
2420 2021-03-08 Tom Tromey <tom@tromey.com>
2421
2422 * ada-lang.c (ada_binop_in_bounds): No longer static.
2423 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2424
2425 2021-03-08 Tom Tromey <tom@tromey.com>
2426
2427 * ada-lang.c (ada_ternop_slice): No longer static.
2428 * ada-exp.h (class ada_ternop_slice_operation): New.
2429
2430 2021-03-08 Tom Tromey <tom@tromey.com>
2431
2432 * ada-exp.h (ada_bitwise_operation): New template class.
2433 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2434 (ada_bitwise_xor_operation): New typedefs.
2435
2436 2021-03-08 Tom Tromey <tom@tromey.com>
2437
2438 * ada-lang.c (ada_equal_binop): No longer static.
2439 * ada-exp.h (class ada_binop_equal_operation): New.
2440
2441 2021-03-08 Tom Tromey <tom@tromey.com>
2442
2443 * ada-lang.c (ada_mult_binop): No longer static.
2444 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2445 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2446
2447 2021-03-08 Tom Tromey <tom@tromey.com>
2448
2449 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2450 * ada-exp.h (class ada_binop_addsub_operation): New.
2451
2452 2021-03-08 Tom Tromey <tom@tromey.com>
2453
2454 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2455 (ada_resolve_variable): Declare.
2456 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2457 (ada_resolve_variable): New functions.
2458 (resolve_subexp): Update.
2459
2460 2021-03-08 Tom Tromey <tom@tromey.com>
2461
2462 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2463 method.
2464 * c-exp.h (class opencl_ternop_cond_operation): New.
2465
2466 2021-03-08 Tom Tromey <tom@tromey.com>
2467
2468 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2469 method.
2470 * c-exp.h (class opencl_logical_binop_operation): New.
2471
2472 2021-03-08 Tom Tromey <tom@tromey.com>
2473
2474 * opencl-lang.c (opencl_structop_operation::evaluate): New
2475 method.
2476 * c-exp.h (class opencl_structop_operation): New.
2477
2478 2021-03-08 Tom Tromey <tom@tromey.com>
2479
2480 * opencl-lang.c (opencl_logical_not): No longer static. Change
2481 parameters.
2482 (evaluate_subexp_opencl): Update.
2483 * c-exp.h (opencl_notequal_operation): New typedef.
2484
2485 2021-03-08 Tom Tromey <tom@tromey.com>
2486
2487 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2488 static. Change parameters.
2489 (eval_opencl_assign): No longer static. Add "op" parameter.
2490 (evaluate_subexp_opencl): Update.
2491 * c-exp.h (opencl_binop_operation): New template class.
2492 (opencl_assign_operation, opencl_equal_operation)
2493 (opencl_notequal_operation, opencl_less_operation)
2494 (opencl_gtr_operation, opencl_geq_operation)
2495 (opencl_leq_operation): New typedefs.
2496
2497 2021-03-08 Tom Tromey <tom@tromey.com>
2498
2499 * opencl-lang.c (opencl_value_cast): No longer static.
2500 * c-exp.h (opencl_cast_type_operation): New typedef.
2501
2502 2021-03-08 Tom Tromey <tom@tromey.com>
2503
2504 * f-exp.h (eval_op_f_allocated): Declare.
2505 (fortran_allocated_operation): New typedef.
2506 * f-lang.c (eval_op_f_allocated): No longer static.
2507
2508 2021-03-08 Tom Tromey <tom@tromey.com>
2509
2510 * f-lang.c (eval_op_f_associated): New functions.
2511 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2512 typedefs.
2513
2514 2021-03-08 Tom Tromey <tom@tromey.com>
2515
2516 * f-lang.c (fortran_bound_1arg::evaluate)
2517 (fortran_bound_2arg::evaluate): New methods.
2518 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2519 New.
2520
2521 2021-03-08 Tom Tromey <tom@tromey.com>
2522
2523 * expop.h (class unop_addr_operation) <get_expression>: New
2524 method.
2525 * f-lang.c (fortran_undetermined::value_subarray)
2526 (fortran_undetermined::evaluate): New methods.
2527 (fortran_prepare_argument): New overload.
2528 * f-exp.h (class fortran_range_operation)
2529 (class fortran_undetermined): New classes.
2530
2531 2021-03-08 Tom Tromey <tom@tromey.com>
2532
2533 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2534 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2535 method.
2536
2537 2021-03-08 Tom Tromey <tom@tromey.com>
2538
2539 * expression.h (class operation) <evaluate_funcall>: New methods.
2540 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2541 (class var_value_operation) <evaluate_funcall>: New method.
2542 (class structop_base_operation) <evaluate_funcall>: New method.
2543 (class var_msym_value_operation) <evaluate_funcall>: New method.
2544 (class structop_member_base): New class.
2545 (class structop_member_operation): Derive from
2546 structop_member_base.
2547 (class structop_mptr_operation): Derive from
2548 structop_member_base.
2549 (class funcall_operation): New class.
2550 * eval.c (operation::evaluate_funcall)
2551 (var_value_operation::evaluate_funcall)
2552 (scope_operation::evaluate_funcall)
2553 (structop_member_base::evaluate_funcall)
2554 (structop_base_operation::evaluate_funcall): New methods.
2555
2556 2021-03-08 Tom Tromey <tom@tromey.com>
2557
2558 * expop.h (class array_operation): New.
2559 * eval.c (array_operation::evaluate_struct_tuple)
2560 (array_operation::evaluate): New methods.
2561
2562 2021-03-08 Tom Tromey <tom@tromey.com>
2563
2564 * expop.h (class adl_func_operation): New.
2565 * eval.c (adl_func_operation::evaluate): New method.
2566
2567 2021-03-08 Tom Tromey <tom@tromey.com>
2568
2569 * ada-lang.c (ada_unop_in_range): No longer static.
2570 * ada-exp.h (class ada_unop_range_operation): New.
2571
2572 2021-03-08 Tom Tromey <tom@tromey.com>
2573
2574 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2575 No longer static.
2576 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2577 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2578
2579 2021-03-08 Tom Tromey <tom@tromey.com>
2580
2581 * expop.h (class logical_and_operation)
2582 (class logical_or_operation): New.
2583 * eval.c (logical_and_operation::evaluate)
2584 (logical_or_operation::evaluate): New methods.
2585 * ax-gdb.c (logical_and_operation::do_generate_ax)
2586 (logical_or_operation::do_generate_ax): New methods.
2587
2588 2021-03-08 Tom Tromey <tom@tromey.com>
2589
2590 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2591 static.
2592 * m2-exp.h: New file.
2593
2594 2021-03-08 Tom Tromey <tom@tromey.com>
2595
2596 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2597 * rust-exp.h (class rust_aggregate_operation): New.
2598
2599 2021-03-08 Tom Tromey <tom@tromey.com>
2600
2601 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2602 No longer static.
2603 * rust-exp.h (class rust_struct_anon): New.
2604 (class rust_structop): New.
2605
2606 2021-03-08 Tom Tromey <tom@tromey.com>
2607
2608 * rust-lang.c (rust_range): No longer static.
2609 * rust-exp.h (class rust_range_operation): New.
2610
2611 2021-03-08 Tom Tromey <tom@tromey.com>
2612
2613 * rust-lang.c (rust_subscript): No longer static.
2614 * rust-exp.h (class rust_subscript_operation): New.
2615
2616 2021-03-08 Tom Tromey <tom@tromey.com>
2617
2618 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2619 parameter.
2620 (rust_evaluate_subexp): Update.
2621 * rust-exp.h (class rust_unop_ind_operation): New.
2622
2623 2021-03-08 Tom Tromey <tom@tromey.com>
2624
2625 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2626 longer static. Add "opcode" parameter.
2627 (rust_evaluate_subexp): Update.
2628 * rust-exp.h: New file.
2629
2630 2021-03-08 Tom Tromey <tom@tromey.com>
2631
2632 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2633 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2634 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2635 (evaluate_subexp_f): Update.
2636 * f-exp.h: New file.
2637
2638 2021-03-08 Tom Tromey <tom@tromey.com>
2639
2640 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2641 * ada-exp.h (class ada_ternop_range_operation): New.
2642
2643 2021-03-08 Tom Tromey <tom@tromey.com>
2644
2645 * ada-lang.c (ada_qual_operation::evaluate): New method.
2646 * ada-exp.h (class ada_qual_operation): New.
2647
2648 2021-03-08 Tom Tromey <tom@tromey.com>
2649
2650 * ada-lang.c (ada_string_operation::evaluate): New method.
2651 * ada-exp.h (class ada_string_operation): New.
2652
2653 2021-03-08 Tom Tromey <tom@tromey.com>
2654
2655 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2656 * ada-exp.h: New file.
2657
2658 2021-03-08 Tom Tromey <tom@tromey.com>
2659
2660 * expop.h (class multi_subscript_operation): New.
2661 * eval.c (multi_subscript_operation::evaluate): New method.
2662
2663 2021-03-08 Tom Tromey <tom@tromey.com>
2664
2665 * eval.c (objc_msgcall_operation::evaluate): New method.
2666 * c-exp.h (class objc_msgcall_operation): New.
2667
2668 2021-03-08 Tom Tromey <tom@tromey.com>
2669
2670 * expop.h (class var_value_operation): New.
2671 * eval.c (var_value_operation::evaluate)
2672 (var_value_operation::evaluate_for_address)
2673 (var_value_operation::evaluate_with_coercion)
2674 (var_value_operation::evaluate_for_sizeof)
2675 (var_value_operation::evaluate_for_cast): New methods.
2676 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2677
2678 2021-03-08 Tom Tromey <tom@tromey.com>
2679
2680 * expop.h (cxx_cast_ftype): New typedef.
2681 (cxx_cast_operation): New template.
2682 (dynamic_cast_operation, reinterpret_cast_operation): New
2683 typedefs.
2684
2685 2021-03-08 Tom Tromey <tom@tromey.com>
2686
2687 * expop.h (class unop_cast_type_operation): New.
2688 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2689 method.
2690
2691 2021-03-08 Tom Tromey <tom@tromey.com>
2692
2693 * expop.h (class unop_cast_operation): New.
2694 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2695
2696 2021-03-08 Tom Tromey <tom@tromey.com>
2697
2698 * expop.h (class assign_modify_operation): New.
2699 * eval.c (eval_binop_assign_modify): No longer static.
2700 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2701
2702 2021-03-08 Tom Tromey <tom@tromey.com>
2703
2704 * expop.h (class assign_operation): New.
2705 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2706
2707 2021-03-08 Tom Tromey <tom@tromey.com>
2708
2709 * expop.h (class type_instance_operation): New.
2710 * eval.c (type_instance_operation::evaluate): New method.
2711
2712 2021-03-08 Tom Tromey <tom@tromey.com>
2713
2714 * expop.h (class op_this_operation): New.
2715 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2716
2717 2021-03-08 Tom Tromey <tom@tromey.com>
2718
2719 * expop.h (class unop_memval_operation)
2720 (class unop_memval_type_operation): New.
2721 * eval.c (eval_op_memval): No longer static.
2722 (unop_memval_operation::evaluate_for_address)
2723 (unop_memval_type_operation::evaluate_for_address)
2724 (unop_memval_operation::evaluate_for_sizeof)
2725 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2726 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2727 (unop_memval_type_operation::do_generate_ax): New methods.
2728
2729 2021-03-08 Tom Tromey <tom@tromey.com>
2730
2731 * expop.h (class unop_alignof_operation): New.
2732 * eval.c (eval_op_alignof): No longer static.
2733
2734 2021-03-08 Tom Tromey <tom@tromey.com>
2735
2736 * expop.h (class unop_sizeof_operation): New.
2737 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2738
2739 2021-03-08 Tom Tromey <tom@tromey.com>
2740
2741 * expop.h (class unop_addr_operation): New.
2742 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2743
2744 2021-03-08 Tom Tromey <tom@tromey.com>
2745
2746 * expop.h (class typeid_operation): New.
2747
2748 2021-03-08 Tom Tromey <tom@tromey.com>
2749
2750 * expop.h (class decltype_operation): New.
2751
2752 2021-03-08 Tom Tromey <tom@tromey.com>
2753
2754 * expop.h (class typeof_operation): New.
2755
2756 2021-03-08 Tom Tromey <tom@tromey.com>
2757
2758 * expop.h (class type_operation): New.
2759 * eval.c (eval_op_type): No longer static.
2760
2761 2021-03-08 Tom Tromey <tom@tromey.com>
2762
2763 * expop.h (class unop_ind_base_operation)
2764 (class unop_ind_operation): New.
2765 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2766 (unop_ind_base_operation::evaluate_for_address)
2767 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2768 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2769
2770 2021-03-08 Tom Tromey <tom@tromey.com>
2771
2772 * expop.h (unop_incr_operation): New template.
2773 (preinc_operation, predec_operation, postinc_operation)
2774 (postdec_operation): New typedefs.
2775 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2776 (eval_op_postdec): No longer static.
2777
2778 2021-03-08 Tom Tromey <tom@tromey.com>
2779
2780 * expop.h (unary_ftype): New typedef.
2781 (unop_operation, usual_ax_binop_operation): New templates.
2782 (unary_plus_operation, unary_neg_operation)
2783 (unary_complement_operation, unary_logical_not_operation): New
2784 typedefs.
2785 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2786 (eval_op_lognot): No longer static.
2787 * ax-gdb.c (gen_expr_unop): New function.
2788
2789 2021-03-08 Tom Tromey <tom@tromey.com>
2790
2791 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2792
2793 2021-03-08 Tom Tromey <tom@tromey.com>
2794
2795 * expop.h (class repeat_operation): New.
2796 * eval.c (eval_op_repeat): No longer static. Remove "op"
2797 parameter.
2798 (evaluate_subexp_standard): Update.
2799 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2800
2801 2021-03-08 Tom Tromey <tom@tromey.com>
2802
2803 * expop.h (class comparison_operation): New.
2804 (equal_operation, notequal_operation, less_operation)
2805 (gtr_operation, geq_operation, leq_operation): New typedefs.
2806 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2807 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2808
2809 2021-03-08 Tom Tromey <tom@tromey.com>
2810
2811 * expop.h (class subscript_operation): New.
2812 * eval.c (eval_op_subscript): No longer static.
2813
2814 2021-03-08 Tom Tromey <tom@tromey.com>
2815
2816 * expop.h (class binop_operation, class usual_ax_binop_operation):
2817 New.
2818 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2819 (div_operation, rem_operation, lsh_operation, rsh_operation)
2820 (bitwise_and_operation, bitwise_ior_operation)
2821 (bitwise_xor_operation): New typedefs.
2822 * eval.c (eval_op_binary): No longer static.
2823
2824 2021-03-08 Tom Tromey <tom@tromey.com>
2825
2826 * expop.h (class sub_operation): New.
2827 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2828 (evaluate_subexp_standard): Update.
2829
2830 2021-03-08 Tom Tromey <tom@tromey.com>
2831
2832 * expop.h (class add_operation): New.
2833 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2834 (evaluate_subexp_standard): Update.
2835
2836 2021-03-08 Tom Tromey <tom@tromey.com>
2837
2838 * expop.h (class concat_operation): New.
2839 * eval.c (eval_op_concat): No longer static. Remove "op"
2840 parameter.
2841 (evaluate_subexp_standard): Update.
2842
2843 2021-03-08 Tom Tromey <tom@tromey.com>
2844
2845 * expop.h (class structop_member_operation)
2846 (class structop_mptr_operation): New.
2847 * eval.c (eval_op_member): No longer static.
2848
2849 2021-03-08 Tom Tromey <tom@tromey.com>
2850
2851 * expop.h (class structop_ptr_operation): New.
2852 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2853 parameter.
2854
2855 2021-03-08 Tom Tromey <tom@tromey.com>
2856
2857 * expop.h (class structop_base_operation)
2858 (class structop_operation): New.
2859 * eval.c (eval_op_structop_struct): No longer static.
2860
2861 2021-03-08 Tom Tromey <tom@tromey.com>
2862
2863 * expop.h (class complex_operation): New.
2864
2865 2021-03-08 Tom Tromey <tom@tromey.com>
2866
2867 * eval.c (eval_op_objc_selector): No longer static.
2868 * c-exp.h (class objc_selector_operation): New.
2869
2870 2021-03-08 Tom Tromey <tom@tromey.com>
2871
2872 * eval.c: Include c-exp.h.
2873 * c-exp.h (class objc_nsstring_operation): New.
2874
2875 2021-03-08 Tom Tromey <tom@tromey.com>
2876
2877 * c-lang.c (c_string_operation::evaluate): New method.
2878 * c-exp.h: New file.
2879
2880 2021-03-08 Tom Tromey <tom@tromey.com>
2881
2882 * expop.h (class ternop_cond_operation): New.
2883 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2884
2885 2021-03-08 Tom Tromey <tom@tromey.com>
2886
2887 * expop.h (class ternop_slice_operation): New.
2888 * eval.c (eval_op_ternop): No longer static.
2889
2890 2021-03-08 Tom Tromey <tom@tromey.com>
2891
2892 * expop.h (class string_operation): New.
2893 * eval.c (eval_op_string): No longer static.
2894
2895 2021-03-08 Tom Tromey <tom@tromey.com>
2896
2897 * expop.h (class internalvar_operation): New.
2898 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2899
2900 2021-03-08 Tom Tromey <tom@tromey.com>
2901
2902 * expop.h (class bool_operation): New.
2903
2904 2021-03-08 Tom Tromey <tom@tromey.com>
2905
2906 * expop.h (class register_operation): New.
2907 * eval.c (eval_op_register): No longer static.
2908 * ax-gdb.c (register_operation::do_generate_ax): New method.
2909
2910 2021-03-08 Tom Tromey <tom@tromey.com>
2911
2912 * expop.h (class last_operation): New.
2913
2914 2021-03-08 Tom Tromey <tom@tromey.com>
2915
2916 * expop.h (class func_static_var_operation): New.
2917 * eval.c (eval_op_func_static_var): No longer static.
2918
2919 2021-03-08 Tom Tromey <tom@tromey.com>
2920
2921 * expop.h (class var_entry_value_operation): New.
2922 * eval.c (eval_op_var_entry_value): No longer static.
2923
2924 2021-03-08 Tom Tromey <tom@tromey.com>
2925
2926 * expression.h (class operation) <set_outermost>: New method.
2927 * expop.h (class var_msym_value_operation): New.
2928 * eval.c (eval_op_var_msym_value): No longer static.
2929 (var_msym_value_operation::evaluate_for_address)
2930 (var_msym_value_operation::evaluate_for_sizeof)
2931 (var_msym_value_operation::evaluate_for_cast): New methods.
2932 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2933 method.
2934
2935 2021-03-08 Tom Tromey <tom@tromey.com>
2936
2937 * expop.h (class long_const_operation): New.
2938 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2939
2940 2021-03-08 Tom Tromey <tom@tromey.com>
2941
2942 * expop.h (class scope_operation): New.
2943 * eval.c (eval_op_scope): No longer static.
2944 (scope_operation::evaluate_for_address): New method.
2945 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2946
2947 2021-03-08 Tom Tromey <tom@tromey.com>
2948
2949 * expprint.c (float_const_operation::dump): New method.
2950 * expop.h (float_data): New typedef.
2951 (class float_const_operation): New.
2952
2953 2021-03-08 Tom Tromey <tom@tromey.com>
2954
2955 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2956 * ax-gdb.c (gen_expr_binop): New function.
2957 (gen_expr_structop): Likewise.
2958
2959 2021-03-08 Tom Tromey <tom@tromey.com>
2960
2961 * expprint.c (expr::dump_for_expression): New functions.
2962 * expop.h (dump_for_expression): New overloads.
2963 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2964 Update.
2965
2966 2021-03-08 Tom Tromey <tom@tromey.com>
2967
2968 * expression.h (expr::operation): New class.
2969 (expr::make_operation): New function.
2970 (expr::operation_up): New typedef.
2971 * expop.h: New file.
2972 * eval.c (operation::evaluate_for_cast)
2973 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2974 New methods.
2975 * ax-gdb.c (operation::generate_ax): New method.
2976
2977 2021-03-08 Tom Tromey <tom@tromey.com>
2978
2979 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2980 (gen_expr_binop_rest): New overload.
2981
2982 2021-03-08 Tom Tromey <tom@tromey.com>
2983
2984 * eval.c (eval_multi_subscript): New function.
2985 (evaluate_subexp_standard): Use it.
2986
2987 2021-03-08 Tom Tromey <tom@tromey.com>
2988
2989 * ada-lang.c (ada_binop_exp): New function.
2990 (ada_evaluate_subexp): Use it.
2991
2992 2021-03-08 Tom Tromey <tom@tromey.com>
2993
2994 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2995 parameters.
2996 (ada_evaluate_subexp): Use it.
2997
2998 2021-03-08 Tom Tromey <tom@tromey.com>
2999
3000 * ada-lang.c (ada_binop_minmax): New function.
3001 (ada_evaluate_subexp): Use it.
3002
3003 2021-03-08 Tom Tromey <tom@tromey.com>
3004
3005 * ada-lang.c (ada_unop_atr): New function.
3006 (ada_evaluate_subexp): Use it.
3007
3008 2021-03-08 Tom Tromey <tom@tromey.com>
3009
3010 * ada-lang.c (ada_binop_in_bounds): New function.
3011 (ada_evaluate_subexp): Use it.
3012
3013 2021-03-08 Tom Tromey <tom@tromey.com>
3014
3015 * ada-lang.c (ada_ternop_slice): New function.
3016 (ada_evaluate_subexp): Use it.
3017
3018 2021-03-08 Tom Tromey <tom@tromey.com>
3019
3020 * ada-lang.c (ada_equal_binop): New function.
3021 (ada_evaluate_subexp): Use it.
3022
3023 2021-03-08 Tom Tromey <tom@tromey.com>
3024
3025 * ada-lang.c (ada_mult_binop): New function.
3026 (ada_evaluate_subexp): Use it.
3027
3028 2021-03-08 Tom Tromey <tom@tromey.com>
3029
3030 * ada-lang.c (ada_abs): New function.
3031 (ada_evaluate_subexp): Use it.
3032
3033 2021-03-08 Tom Tromey <tom@tromey.com>
3034
3035 * ada-lang.c (ada_atr_size): New function.
3036 (ada_evaluate_subexp): Use it.
3037
3038 2021-03-08 Tom Tromey <tom@tromey.com>
3039
3040 * ada-lang.c (ada_atr_tag): New function.
3041 (ada_evaluate_subexp): Use it.
3042
3043 2021-03-08 Tom Tromey <tom@tromey.com>
3044
3045 * ada-lang.c (ada_unop_in_range): New function.
3046 (ada_evaluate_subexp): Use it.
3047
3048 2021-03-08 Tom Tromey <tom@tromey.com>
3049
3050 * ada-lang.c (ada_unop_neg): New function.
3051 (ada_evaluate_subexp): Use it.
3052
3053 2021-03-08 Tom Tromey <tom@tromey.com>
3054
3055 * ada-lang.c (eval_ternop_in_range): New function.
3056 (ada_evaluate_subexp): Use it.
3057
3058 2021-03-08 Tom Tromey <tom@tromey.com>
3059
3060 * opencl-lang.c (eval_opencl_assign): New function.
3061 (evaluate_subexp_opencl): Use it.
3062
3063 2021-03-08 Tom Tromey <tom@tromey.com>
3064
3065 * eval.c (eval_op_objc_msgcall): New function.
3066 (evaluate_subexp_standard): Use it.
3067
3068 2021-03-08 Tom Tromey <tom@tromey.com>
3069
3070 * eval.c (eval_binop_assign_modify): New function.
3071 (evaluate_subexp_standard): Use it.
3072
3073 2021-03-08 Tom Tromey <tom@tromey.com>
3074
3075 * m2-lang.c (eval_op_m2_subscript): New function.
3076 (evaluate_subexp_modula2): Use it.
3077
3078 2021-03-08 Tom Tromey <tom@tromey.com>
3079
3080 * m2-lang.c (eval_op_m2_high): New function.
3081 (evaluate_subexp_modula2): Use it.
3082
3083 2021-03-08 Tom Tromey <tom@tromey.com>
3084
3085 * eval.c (evaluate_subexp_for_address_base): New function.
3086 (evaluate_subexp_for_address): Use it.
3087 (evaluate_subexp_for_sizeof_base): New function.
3088 (evaluate_subexp_for_sizeof): Use it.
3089
3090 2021-03-08 Tom Tromey <tom@tromey.com>
3091
3092 * rust-lang.c (eval_op_rust_structop): New function.
3093 (rust_evaluate_subexp): Use it.
3094
3095 2021-03-08 Tom Tromey <tom@tromey.com>
3096
3097 * rust-lang.c (eval_op_rust_struct_anon): New function.
3098 (rust_evaluate_subexp): Use it.
3099
3100 2021-03-08 Tom Tromey <tom@tromey.com>
3101
3102 * rust-lang.c (eval_op_rust_array): New function.
3103 (rust_evaluate_subexp): Use it.
3104
3105 2021-03-08 Tom Tromey <tom@tromey.com>
3106
3107 * rust-lang.c (eval_op_rust_complement): New function.
3108 (rust_evaluate_subexp): Use it.
3109
3110 2021-03-08 Tom Tromey <tom@tromey.com>
3111
3112 * rust-lang.c (eval_op_rust_ind): New function.
3113 (rust_evaluate_subexp): Use it.
3114
3115 2021-03-08 Tom Tromey <tom@tromey.com>
3116
3117 * rust-lang.c (rust_subscript): Change parameters.
3118 (rust_evaluate_subexp): Update.
3119
3120 2021-03-08 Tom Tromey <tom@tromey.com>
3121
3122 * rust-lang.c (rust_range): Change parameters.
3123 (rust_evaluate_subexp): Update.
3124
3125 2021-03-08 Tom Tromey <tom@tromey.com>
3126
3127 * f-lang.c (eval_op_f_allocated): New function.
3128 (evaluate_subexp_f): Use it.
3129
3130 2021-03-08 Tom Tromey <tom@tromey.com>
3131
3132 * f-lang.c (fortran_require_array): New function.
3133 (evaluate_subexp_f): Use it.
3134
3135 2021-03-08 Tom Tromey <tom@tromey.com>
3136
3137 * f-lang.c (eval_op_f_kind): New function.
3138 (evaluate_subexp_f): Use it.
3139
3140 2021-03-08 Tom Tromey <tom@tromey.com>
3141
3142 * f-lang.c (eval_op_f_cmplx): New function.
3143 (evaluate_subexp_f): Use it.
3144
3145 2021-03-08 Tom Tromey <tom@tromey.com>
3146
3147 * f-lang.c (eval_op_f_modulo): New function.
3148 (evaluate_subexp_f): Use it.
3149
3150 2021-03-08 Tom Tromey <tom@tromey.com>
3151
3152 * f-lang.c (eval_op_f_floor): New function.
3153 (evaluate_subexp_f): Use it.
3154
3155 2021-03-08 Tom Tromey <tom@tromey.com>
3156
3157 * f-lang.c (eval_op_f_ceil): New function.
3158 (evaluate_subexp_f): Use it.
3159
3160 2021-03-08 Tom Tromey <tom@tromey.com>
3161
3162 * f-lang.c (eval_op_f_mod): New function.
3163 (evaluate_subexp_f): Use it.
3164
3165 2021-03-08 Tom Tromey <tom@tromey.com>
3166
3167 * f-lang.c (eval_op_f_abs): New function.
3168 (evaluate_subexp_f): Use it.
3169
3170 2021-03-08 Tom Tromey <tom@tromey.com>
3171
3172 * eval.c (eval_op_type): New function.
3173 (evaluate_subexp_standard): Use it.
3174
3175 2021-03-08 Tom Tromey <tom@tromey.com>
3176
3177 * eval.c (eval_op_postdec): New function.
3178 (evaluate_subexp_standard): Use it.
3179
3180 2021-03-08 Tom Tromey <tom@tromey.com>
3181
3182 * eval.c (eval_op_postinc): New function.
3183 (evaluate_subexp_standard): Use it.
3184
3185 2021-03-08 Tom Tromey <tom@tromey.com>
3186
3187 * eval.c (eval_op_predec): New file.
3188 (evaluate_subexp_standard): Use it.
3189
3190 2021-03-08 Tom Tromey <tom@tromey.com>
3191
3192 * eval.c (eval_op_preinc): New function.
3193 (evaluate_subexp_standard): Use it.
3194
3195 2021-03-08 Tom Tromey <tom@tromey.com>
3196
3197 * eval.c (eval_op_memval): New function.
3198 (evaluate_subexp_standard): Use it.
3199
3200 2021-03-08 Tom Tromey <tom@tromey.com>
3201
3202 * eval.c (eval_op_alignof): New function.
3203 (evaluate_subexp_standard): Use it.
3204
3205 2021-03-08 Tom Tromey <tom@tromey.com>
3206
3207 * eval.c (eval_op_ind): New function.
3208 (evaluate_subexp_standard): Use it.
3209
3210 2021-03-08 Tom Tromey <tom@tromey.com>
3211
3212 * eval.c (eval_op_lognot): New function.
3213 (evaluate_subexp_standard): Use it.
3214
3215 2021-03-08 Tom Tromey <tom@tromey.com>
3216
3217 * eval.c (eval_op_complement): New function.
3218 (evaluate_subexp_standard): Use it.
3219
3220 2021-03-08 Tom Tromey <tom@tromey.com>
3221
3222 * eval.c (eval_op_neg): New function.
3223 (evaluate_subexp_standard): Use it.
3224
3225 2021-03-08 Tom Tromey <tom@tromey.com>
3226
3227 * eval.c (eval_op_plus): New function.
3228 (evaluate_subexp_standard): Use it.
3229
3230 2021-03-08 Tom Tromey <tom@tromey.com>
3231
3232 * eval.c (eval_op_repeat): New function.
3233 (evaluate_subexp_standard): Use it.
3234
3235 2021-03-08 Tom Tromey <tom@tromey.com>
3236
3237 * eval.c (eval_op_leq): New function.
3238 (evaluate_subexp_standard): Use it.
3239
3240 2021-03-08 Tom Tromey <tom@tromey.com>
3241
3242 * eval.c (eval_op_geq): New function.
3243 (evaluate_subexp_standard): Use it.
3244
3245 2021-03-08 Tom Tromey <tom@tromey.com>
3246
3247 * eval.c (eval_op_gtr): New function.
3248 (evaluate_subexp_standard): Use it.
3249
3250 2021-03-08 Tom Tromey <tom@tromey.com>
3251
3252 * eval.c (eval_op_less): New function.
3253 (evaluate_subexp_standard): Use it.
3254
3255 2021-03-08 Tom Tromey <tom@tromey.com>
3256
3257 * eval.c (eval_op_notequal): New function.
3258 (evaluate_subexp_standard): Use it.
3259
3260 2021-03-08 Tom Tromey <tom@tromey.com>
3261
3262 * eval.c (eval_op_equal): New function.
3263 (evaluate_subexp_standard): Use it.
3264
3265 2021-03-08 Tom Tromey <tom@tromey.com>
3266
3267 * eval.c (eval_op_subscript): New function.
3268 (evaluate_subexp_standard): Use it.
3269
3270 2021-03-08 Tom Tromey <tom@tromey.com>
3271
3272 * eval.c (eval_op_binary): New function.
3273 (evaluate_subexp_standard): Use it.
3274
3275 2021-03-08 Tom Tromey <tom@tromey.com>
3276
3277 * eval.c (eval_op_sub): New function.
3278 (evaluate_subexp_standard): Use it.
3279
3280 2021-03-08 Tom Tromey <tom@tromey.com>
3281
3282 * eval.c (eval_op_add): New function.
3283 (evaluate_subexp_standard): Use it.
3284
3285 2021-03-08 Tom Tromey <tom@tromey.com>
3286
3287 * eval.c (eval_op_member): New function.
3288 (evaluate_subexp_standard): Use it.
3289
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3291
3292 * eval.c (eval_op_structop_ptr): New function.
3293 (evaluate_subexp_standard): Use it.
3294
3295 2021-03-08 Tom Tromey <tom@tromey.com>
3296
3297 * eval.c (eval_op_structop_struct): New function.
3298 (evaluate_subexp_standard): Use it.
3299
3300 2021-03-08 Tom Tromey <tom@tromey.com>
3301
3302 * eval.c (eval_op_ternop): New function.
3303 (evaluate_subexp_standard): Use it.
3304
3305 2021-03-08 Tom Tromey <tom@tromey.com>
3306
3307 * eval.c (eval_op_concat): New function.
3308 (evaluate_subexp_standard): Use it.
3309
3310 2021-03-08 Tom Tromey <tom@tromey.com>
3311
3312 * eval.c (eval_op_objc_selector): New function.
3313 (evaluate_subexp_standard): Use it.
3314
3315 2021-03-08 Tom Tromey <tom@tromey.com>
3316
3317 * eval.c (eval_op_string): New function.
3318 (evaluate_subexp_standard): Use it.
3319
3320 2021-03-08 Tom Tromey <tom@tromey.com>
3321
3322 * eval.c (eval_op_register): New function.
3323 (evaluate_subexp_standard): Use it.
3324
3325 2021-03-08 Tom Tromey <tom@tromey.com>
3326
3327 * eval.c (eval_op_func_static_var): New function.
3328 (evaluate_subexp_standard): Use it.
3329
3330 2021-03-08 Tom Tromey <tom@tromey.com>
3331
3332 * eval.c (eval_op_var_msym_value): New function.
3333 (evaluate_subexp_standard): Use it.
3334
3335 2021-03-08 Tom Tromey <tom@tromey.com>
3336
3337 * eval.c (eval_op_var_entry_value): New function.
3338 (evaluate_subexp_standard): Use it.
3339
3340 2021-03-08 Tom Tromey <tom@tromey.com>
3341
3342 * eval.c (eval_op_scope): New function.
3343 (evaluate_subexp_standard): Use it.
3344
3345 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3346
3347 PR gdb/27528:
3348 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3349
3350 2021-03-06 Tom Tromey <tom@tromey.com>
3351
3352 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3353 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3354 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3355 (locate_dwz_sections, dwz_search_other_debugdirs)
3356 (dwarf2_get_dwz_file): Move to dwz.c.
3357 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3358 read.h.
3359 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3360 (dwarf2_get_dwz_file): Move from read.c.
3361
3362 2021-03-06 Tom Tromey <tom@tromey.com>
3363
3364 * debuginfod-support.h: Include scoped_fd.h.
3365
3366 2021-03-06 Tom Tromey <tom@tromey.com>
3367
3368 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3369 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3370 (get_abbrev_section_for_cu, read_attribute_value)
3371 (get_debug_line_section): Update.
3372 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3373
3374 2021-03-06 Tom Tromey <tom@tromey.com>
3375
3376 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3377 method.
3378 * dwarf2/read.c (section_is_p): Remove.
3379 (dwarf2_per_bfd::locate_sections)
3380 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3381 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3382 (dwarf2_locate_common_dwp_sections)
3383 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3384 Update.
3385
3386 2021-03-06 Tom Tromey <tom@tromey.com>
3387
3388 * xcoffread.c: Include sect-names.h.
3389 * symfile.h (struct dwarf2_section_names, struct
3390 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3391 * dwarf2/sect-names.h: New file, from symfile.h.
3392 * dwarf2/read.c: Include sect-names.h.
3393
3394 2021-03-06 Tom Tromey <tom@tromey.com>
3395
3396 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3397 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3398 (abbrev_table::read): Update.
3399 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3400 (struct abbrev_info): Reformat.
3401 <attrs>: Now an array.
3402 (struct abbrev_table) <alloc_abbrev>: Remove.
3403
3404 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3405
3406 * ctfread.c (ctf_psymtab_add_enums): New function.
3407 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3408
3409 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3410
3411 * ctfread.c (read_func_kind_type): Set up function arguments.
3412
3413 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3414 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3417 includes.
3418 (riscv_csrset): New static global.
3419 (riscv_update_csrmap): New function.
3420 (riscv_iterate_over_regset_sections): Process CSRs.
3421
3422 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3423
3424 * riscv-tdep.c (riscv_feature_name_csr): Define.
3425 (riscv_feature_name_cpu): Define.
3426 (riscv_feature_name_fpu): Define.
3427 (riscv_feature_name_virtual): Define.
3428 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3429 (riscv_freg_feature): Use riscv_feature_name_fpu.
3430 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3431 (riscv_csr_feature): Use riscv_feature_name_csr.
3432 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3433
3434 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3435 Craig Blackmore <craig.blackmore@embecosm.com>
3436
3437 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3438 (ALLDEPFILES): Add riscv-none-tdep.c.
3439 * configure: Regenerate.
3440 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3441 support.
3442 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3443 * elf-none-tdep.c: New file.
3444 * elf-none-tdep.h: New file.
3445 * riscv-none-tdep.c: New file.
3446
3447 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3448 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * corelow.c: Add 'xml-tdesc.h' include.
3451 (core_target::read_description): Load the target description from
3452 the core file when possible.
3453 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3454 note.
3455 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3456 (gcore_elf_make_tdesc_note): New function.
3457 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3458 * linux-tdep.c (linux_make_corefile_notes): Add target description
3459 note.
3460
3461 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * Makefile.in (SFILES): Add gcore-elf.c.
3464 (HFILES_NO_SRCDIR): Add gcore-elf.h
3465 * configure: Regenerate.
3466 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3467 support.
3468 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3469 (struct fbsd_collect_regset_section_cb_data): Delete.
3470 (fbsd_collect_regset_section_cb): Delete.
3471 (fbsd_collect_thread_registers): Delete.
3472 (struct fbsd_corefile_thread_data): Delete.
3473 (fbsd_corefile_thread): Delete.
3474 (fbsd_make_corefile_notes): Call
3475 gcore_elf_build_thread_register_notes instead of the now deleted
3476 FreeBSD code.
3477 * gcore-elf.c: New file, the content was moved here from
3478 linux-tdep.c, functions were renamed and given minor cleanup.
3479 * gcore-elf.h: New file.
3480 * gcore.c (gcore_find_signalled_thread): Moved here from
3481 linux-tdep.c and given a new name. Minor cleanups.
3482 * gcore.h (gcore_find_signalled_thread): Declare.
3483 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3484 (struct linux_collect_regset_section_cb_data): Delete.
3485 (linux_collect_regset_section_cb): Delete.
3486 (linux_collect_thread_registers): Delete.
3487 (linux_corefile_thread): Call
3488 gcore_elf_build_thread_register_notes.
3489 (find_signalled_thread): Delete.
3490 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3491
3492 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 PR gdb/27147
3495 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3496 process_stratum_target parameter,
3497 sparc_store_inferior_registers): update callers.
3498 * sparc-nat.c (sparc_fetch_inferior_registers,
3499 sparc_store_inferior_registers): Add process_stratum_target
3500 parameter. Switch current thread before calling
3501 sparc_supply_gregset / sparc_collect_rwindow.
3502 (sparc_store_inferior_registers): Likewise.
3503 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3504 (sparc32obsd_collect_uthread): Likewise.
3505 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3506 Add assertion.
3507 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3508 sparc64obsd_supply_uthread): Add assertion.
3509
3510 2021-03-04 Tom Tromey <tromey@adacore.com>
3511
3512 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3513 (aux_add_nonlocal_symbols): Update.
3514 (ada_add_block_symbols): Change "found_sym" to bool.
3515
3516 2021-03-03 Tom Tromey <tromey@adacore.com>
3517
3518 * ada-lang.c (ada_resolve_function): Update comment.
3519 (is_nonfunction, add_symbols_from_enclosing_procs)
3520 (remove_extra_symbols): Likewise.
3521 (struct match_data): Add constructor, initializers.
3522 (add_nonlocal_symbols): Remove memset.
3523 (aux_add_nonlocal_symbols): Update comment.
3524 (ada_add_block_renamings, add_nonlocal_symbols)
3525 (ada_add_all_symbols): Likewise.
3526 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3527
3528 2021-03-02 Tom Tromey <tromey@adacore.com>
3529
3530 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3531 (cast_to_gnat_encoded_fixed_point_type): Remove.
3532 (ada_value_cast, ada_evaluate_subexp): Update.
3533 (gnat_encoded_fixed_point_type_info)
3534 (ada_is_gnat_encoded_fixed_point_type)
3535 (gnat_encoded_fixed_point_delta)
3536 (gnat_encoded_fixed_point_scaling_factor): Remove.
3537 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3538 (gnat_encoded_fixed_point_delta)
3539 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3540 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3541 (ada_print_type): Update.
3542 * ada-valprint.c (ada_value_print_num): Update.
3543 * dwarf2/read.c (ada_get_gnat_encoded_number)
3544 (ada_get_gnat_encoded_ratio): New functions.
3545 (finish_fixed_point_type): Use them. Add parameters.
3546 (GNAT_FIXED_POINT_SUFFIX): New define.
3547 (gnat_encoded_fixed_point_type_info): New function.
3548 (read_base_type): Handle gnat encodings.
3549
3550 2021-03-02 Tom Tromey <tromey@adacore.com>
3551
3552 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3553 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3554 std::string.
3555 (GROW_VECT): Remove.
3556 (grow_vect): Remove.
3557
3558 2021-03-02 Tom Tromey <tromey@adacore.com>
3559
3560 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3561 * ada-lang.c (resolve_subexp): Update.
3562 (ada_resolve_function): Accept a vector.
3563 (is_nonfunction, add_defn_to_vec)
3564 (add_symbols_from_enclosing_procs): Likewise.
3565 (num_defns_collected, defns_collected): Remove.
3566 (remove_extra_symbols): Return a vector.
3567 (remove_irrelevant_renamings): Return void.
3568 (ada_add_local_symbols): Accept a vector.
3569 (struct match_data) <obstackp>: Remove.
3570 <resultp>: New member.
3571 (aux_add_nonlocal_symbols): Update.
3572 (ada_add_block_renamings, add_nonlocal_symbols)
3573 (ada_add_all_symbols): Accept a vector.
3574 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3575 vector.
3576 (ada_lookup_symbol): Update.
3577 (ada_add_block_symbols): Accept a vector.
3578 (get_var_value, iterate_over_symbols): Update.
3579 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3580 Update.
3581
3582 2021-03-02 Tom Tromey <tromey@adacore.com>
3583
3584 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3585
3586 2021-03-02 Tom Tromey <tromey@adacore.com>
3587
3588 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3589 auto_obstack.
3590 <root>: Initialize.
3591 (ada_pspace_data): Remove destructor.
3592 <sym_cache>: Now a unique_ptr.
3593 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3594 (ada_get_symbol_cache): Use 'new'.
3595 (ada_clear_symbol_cache): Rewrite.
3596
3597 2021-03-02 Tom Tromey <tromey@adacore.com>
3598
3599 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3600 is null.
3601
3602 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3603
3604 PR gdb/27393
3605 * source.c (add_path): Skip empty dirnames.
3606
3607 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3608
3609 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3610 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3611
3612 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3613
3614 PR gdb/26861
3615 * target.c (target_mourn_inferior): Only compare pids in
3616 target_mourn_inferior.
3617
3618 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3619
3620 PR gdb/26819
3621 * remote.c (remote_target::start_remote): Ensure the single
3622 thread, automatically added for remote targets without the
3623 concept of threading, is initially in set to the "resumed"
3624 state.
3625 * remote.c (remote_target::add_current_inferior_and_thread):
3626 Add return value - return the main thread.
3627
3628 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3629
3630 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3631 (mi_tsv_created): Likewise.
3632 (mi_tsv_deleted): Likewise.
3633
3634 2021-02-25 Tom de Vries <tdevries@suse.de>
3635
3636 PR symtab/27354
3637 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3638 section_kind for &dwo_file->sections.info.
3639
3640 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3641
3642 PR fortran/26155
3643 * f-lang.c (fortran_argument_convert): Delete declaration.
3644 (fortran_prepare_argument): New function.
3645 (evaluate_subexp_f): Move logic to new function
3646 fortran_prepare_argument.
3647
3648 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * f-exp.y (f77_keywords): Add 'associated'.
3651 * f-lang.c (fortran_associated): New function.
3652 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3653 (operator_length_f): Likewise.
3654 (print_unop_or_binop_subexp_f): New function.
3655 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3656 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3657 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3658 (operator_check_f): Likewise.
3659 * std-operator.def: Add FORTRAN_ASSOCIATED.
3660
3661 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3662
3663 * f-exp.y (fortran_operators): Add ".xor.".
3664
3665 2021-02-24 Tom de Vries <tdevries@suse.de>
3666
3667 PR symtab/27336
3668 * dwarf2/attribute.c (attribute::form_is_signed): New function
3669 factored out of ...
3670 * dwarf2/attribute.h (attribute::as_signed): ... here.
3671 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3672 (attribute::form_is_signed): Declare.
3673 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3674 for DW_AT_decl_file.
3675
3676 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3677
3678 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3679 order for <sys/ptrace.h> and <asm/ptrace.h>.
3680
3681 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3682
3683 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3684 <sys/ptrace.h>.
3685
3686 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3687
3688 * exec.c (set_section_command): Move variable declarations into
3689 the function body, and use std::string instead of a fixed size
3690 buffer.
3691
3692 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3693
3694 * exec.c (exec_target::get_section_table): Delete member function.
3695 (section_table_read_available_memory): Use current_top_target, not
3696 just the exec_ops target.
3697 * target-delegates.c: Regenerate.
3698 * target.c (default_get_section_table): New function.
3699 * target.h (target_ops::get_section_table): Change default
3700 behaviour to call default_get_section_table.
3701 (default_get_section_table): Declare.
3702
3703 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3704
3705 * exec.c (exec_target::close): Call new clear_target_sections
3706 function.
3707 (program_space::add_target_sections): Update name of member
3708 variable.
3709 (program_space::add_target_sections): Update name of member
3710 variable.
3711 (program_space::remove_target_sections): Likewise.
3712 (exec_one_fork): Use new target_sections member function.
3713 (exec_target::get_section_table): Likewise.
3714 (exec_target::files_info): Likewise.
3715 (set_section_command): Likewise.
3716 (exec_set_section_address): Likewise.
3717 (exec_target::has_memory): Use new target_sections member
3718 function.
3719 * progspace.h (program_space::clear_target_sections): New member
3720 function.
3721 (program_space::target_sections): Rename member variable to
3722 m_target_sections, replace with a new member function.
3723 (program_space::m_target_sections): New member variable.
3724 * solib-dsbt.c (scan_dyntag): Use new member function.
3725 * solib-svr4.c (scan_dyntag): Likewise.
3726
3727 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3730 return type const.
3731 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3732 (section_table_read_available_memory): Make local const.
3733 (exec_target::xfer_partial): Make local const.
3734 (print_section_info): Make parameter const.
3735 * gdb/exec.h (print_section_info): Likewise.
3736 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3737 const.
3738 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3739 Likewise.
3740 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3741 Likewise.
3742 * gdb/s390-tdep.c (s390_load): Likewise.
3743 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3744 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3745 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3746 Rename to...
3747 (target_debug_print_const_target_section_table_p): ...this.
3748 * gdb/target-delegates.c: Regenerate.
3749 * gdb/target.c (target_get_section_table): Make return type const.
3750 (target_section_by_addr): Likewise. Also make some locals const.
3751 (memory_xfer_partial_1): Make some locals const.
3752 * gdb/target.h (struct target_ops) <get_section_table>: Make
3753 return type const.
3754 (target_section_by_addr): Likewise.
3755 (target_get_section_table): Likewise.
3756
3757 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3758
3759 * NEWS: Mention new 'maint info target-sections' command.
3760 * maint.c (maintenance_info_target_sections): New function.
3761 (_initialize_maint_cmds): Register new command.
3762
3763 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3764
3765 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3766 (riscv_features_from_bfd): ...this. Change parameter type to
3767 'bfd*', and update as required.
3768 (riscv_find_default_target_description): Update call to
3769 riscv_features_from_bfd. Select a default xlen based on
3770 info.bfd_arch_info.
3771 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3772
3773 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3776 dynamic types in UNOP_IND.
3777
3778 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 PR gdb/26828
3781 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3782 Instantiate queue.
3783 (~dwarf2_queue_guard): Clear queue.
3784 (queue_comp_unit): Assert that queue is
3785 instantiated.
3786 (process_queue): Adjust.
3787 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3788
3789 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3790
3791 PR gdb/26828
3792 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3793 to decide whether or not to enqueue it for expansion.
3794 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3795 after calling maybe_queue_comp_unit.
3796
3797 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * linux-nat.c (linux_nat_filter_event): Return void.
3800
3801 2021-02-22 Tom Tromey <tromey@adacore.com>
3802
3803 * solib-svr4.c (enable_break): Update.
3804 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3805 type.
3806 (target_bfd_reopen): Change parameter type.
3807 * bfd-target.h (target_bfd_reopen): Change parameter type.
3808
3809 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3810
3811 * thread.c (add_thread_silent): Add assert.
3812 (find_thread_ptid): Add assert.
3813
3814 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3815
3816 PR gdb/27435
3817 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3818 (target_unpush_up): Likewise.
3819 * procfs.c (procfs_target::attach): Push target early. Use
3820 target_unpush_up to unpush target in case of error.
3821 * target.h (struct target_unpusher): Move here.
3822 (target_unpush_up): Likewise.
3823
3824 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3825
3826 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3827 (which in turn includes <gnulib/config.h>) before include
3828 of <signal.h>.
3829
3830 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3831
3832 PR 27158
3833 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3834 (decode_j_type_insn): Likewise.
3835 (decode_cj_type_insn): Likewise.
3836 (decode_b_type_insn): Likewise.
3837 (decode): Likewise.
3838
3839 2021-02-18 Tom Tromey <tom@tromey.com>
3840
3841 * expression.h (struct expression) <evaluate>: Declare method.
3842 * eval.c (evaluate_subexp): Simplify.
3843 (expression::evaluate): New method.
3844 (evaluate_expression, evaluate_type): Use expression::evaluate.
3845
3846 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3847
3848 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3849 to accessing it.
3850 (ada_lookup_name_info): Likewise.
3851
3852 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3853
3854 * aclocal.m4: Regenerate.
3855
3856 2021-02-12 Tom de Vries <tdevries@suse.de>
3857
3858 PR threads/26228
3859 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3860 (lin_thread_signals): New static var.
3861 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3862 New function.
3863 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3864 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3865 Declare.
3866 * linux-thread-db.c (check_thread_signals): Use
3867 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3868
3869 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * f-exp.y (f77_keywords): Add allocated.
3872 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3873 (operator_length_f): Likewise.
3874 (print_subexp_f): Likewise.
3875 (dump_subexp_body_f): Likewise.
3876 (operator_check_f): Likewise.
3877 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3878
3879 2021-02-11 Tom de Vries <tdevries@suse.de>
3880
3881 PR symtab/27353
3882 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3883 Return true for DW_FORM_strx.
3884
3885 2021-02-11 Tom Tromey <tromey@adacore.com>
3886
3887 PR gdb/27383:
3888 * parse.c (write_exp_symbol_reference): Write sym.block.
3889
3890 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * NEWS: Mention changes to 'maint info sections'.
3893 * maint.c (match_substring): Return a bool, fix whitespace issue.
3894 (struct single_bfd_flag_info): New struct.
3895 (bfd_flag_info): New static global.
3896 (match_bfd_flags): Return a bool, use bfd_flag_info.
3897 (print_bfd_flags): Use bfd_flag_info.
3898 (maint_print_section_info): Delete trailing whitespace.
3899 (struct maint_info_sections_opts): New struct.
3900 (maint_info_sections_option_defs): New static global.
3901 (maint_info_sections_completer): New function.
3902 (maintenance_info_sections): Use option parsing mechanism.
3903 (_initialize_maint_cmds): Update command help text for 'maint info
3904 sections' and register a command completer.
3905
3906 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3909 functionality merged into...
3910 (maint_print_all_sections): ...this new function.
3911 (maintenance_info_sections): Make use of maint_print_all_sections,
3912 allow all objects to be printed even where there's no executable.
3913
3914 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * breakpoint.c (resolve_sal_pc): Make use of
3917 bound_minimal_symbol::obj_section.
3918 * maint.c (maintenance_translate_address): Likewise.
3919 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3920 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3921 member function.
3922 * printcmd.c (info_address_command): Make use of
3923 bound_minimal_symbol::obj_section.
3924
3925 2021-02-11 Alan Modra <amodra@gmail.com>
3926
3927 * arm-symbian-tdep.c: Delete.
3928 * NEWS: Mention arm-symbian removal.
3929 * Makefile.in: Remove arm-symbian-tdep entries.
3930 * configure.tgt: Remove arm*-*-symbianelf*.
3931 * doc/gdb.texinfo: Remove mention of SymbianOS.
3932 * osabi.c (gdb_osabi_names): Remove "Symbian".
3933 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3934 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3935 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3936 handling.
3937 * testsuite/gdb.base/dup-sect.exp: Likewise.
3938 * testsuite/gdb.base/long_long.exp: Likewise.
3939 * testsuite/gdb.base/solib-weak.exp: Likewise.
3940 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3941 * testsuite/gdb.python/py-section-script.exp: Likewise.
3942 * testsuite/lib/dwarf.exp: Likewise.
3943 * testsuite/lib/gdb.exp: Likewise.
3944
3945 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3948 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3949 (one_or_two_args): New pattern.
3950 (f77_keywords): Add lbound and ubound.
3951 * f-lang.c (fortran_bounds_all_dims): New function.
3952 (fortran_bounds_for_dimension): New function.
3953 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3954 (operator_length_f): Likewise.
3955 (print_subexp_f): Likewise.
3956 (dump_subexp_body_f): Likewise.
3957 (operator_check_f): Likewise.
3958 * std-operator.def (FORTRAN_LBOUND): Define.
3959 (FORTRAN_UBOUND): Define.
3960
3961 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3962
3963 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3964 and set_section_index member functions where appropriate.
3965 * coffread.c (coff_symtab_read): Likewise.
3966 (process_coff_symbol): Likewise.
3967 * ctfread.c (set_symbol_address): Likewise.
3968 * dwarf2/read.c (add_partial_symbol): Likewise.
3969 (var_decode_location): Likewise.
3970 * language.c: Likewise.
3971 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3972 (compact_minimal_symbols): Likewise.
3973 (minimal_symbol_upper_bound): Likewise.
3974 * objfiles.c (relocate_one_symbol): Likewise.
3975 * psympriv.h (partial_symbol::obj_section): Likewise.
3976 (partial_symbol::address): Likewise.
3977 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3978 * stabsread.c (scan_file_globals): Likewise.
3979 * symmisc.c (dump_msymbols): Likewise.
3980 * symtab.c (general_symbol_info::obj_section): Likewise.
3981 (fixup_section): Likewise.
3982 (get_msymbol_address): Likewise.
3983 * symtab.h (general_symbol_info::section): Rename to...
3984 (general_symbol_info::m_section): ...this.
3985 (general_symbol_info::set_section_index): New member function.
3986 (general_symbol_info::section_index): Likewise.
3987 (SYMBOL_SECTION): Delete.
3988 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3989 set_section_index member functions where appropriate.
3990 (MSYMBOL_SECTION): Delete.
3991 (symbol::symbol): Update to initialize 'm_section'.
3992 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3993 (process_xcoff_symbol): Likewise.
3994
3995 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3996
3997 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3998 MSYMBOL_OBJ_SECTION.
3999 * findvar.c (language_defn::read_var_value): Likewise.
4000 * infcmd.c (jump_command): Likewise.
4001 * linespec.c (minsym_found): Likewise.
4002 * maint.c (maintenance_translate_address): Likewise.
4003 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4004 (minimal_symbol_upper_bound): Likewise.
4005 * parse.c (find_minsym_type_and_address): Likewise.
4006 (operator_check_standard): Likewise.
4007 * printcmd.c (info_address_command): Likewise.
4008 * symmisc.c (dump_msymbols): Likewise.
4009 (print_symbol): Likewise.
4010 * symtab.c (general_symbol_info::obj_section): Define new
4011 function.
4012 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4013 (find_pc_sect_compunit_symtab): Likewise.
4014 (find_function_start_sal): Likewise.
4015 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4016 MSYMBOL_OBJ_SECTION.
4017 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4018 function.
4019 (SYMBOL_OBJ_SECTION): Delete.
4020 (MSYMBOL_OBJ_SECTION): Delete.
4021
4022 2021-02-09 Tom Tromey <tom@tromey.com>
4023
4024 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4025
4026 2021-02-09 Tom de Vries <tdevries@suse.de>
4027
4028 PR symtab/27341
4029 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4030 construct an array type. Add assert to ensure that element_type is
4031 not being modified.
4032
4033 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4034
4035 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4036 (gcore_collect_regset_section_cb): Delete.
4037 (gcore_collect_thread_registers): Delete.
4038 (gcore_build_thread_register_notes): Delete.
4039 (gcore_find_signalled_thread): Delete.
4040 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4041 'gdbarch' and 'thread_info' declarations.
4042 (gcore_build_thread_register_notes): Delete declaration.
4043 (gcore_find_signalled_thread): Likewise.
4044 * fbsd-tdep.c: Remove 'gcore.h' include.
4045 (struct fbsd_collect_regset_section_cb_data): New struct.
4046 (fbsd_collect_regset_section_cb): New function.
4047 (fbsd_collect_thread_registers): New function.
4048 (struct fbsd_corefile_thread_data): New struct.
4049 (fbsd_corefile_thread): New function.
4050 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4051 * linux-tdep.c: Remove 'gcore.h' include.
4052 (struct linux_collect_regset_section_cb_data): New struct.
4053 (linux_collect_regset_section_cb): New function.
4054 (linux_collect_thread_registers): New function.
4055 (linux_corefile_thread): Call Linux specific code.
4056 (find_signalled_thread): New function.
4057 (linux_make_corefile_notes): Call find_signalled_thread.
4058
4059 2021-02-09 Tom Tromey <tromey@adacore.com>
4060
4061 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4062 not_lval value.
4063 * value.c (value_contents_copy_raw): Now static.
4064 * value.h (value_contents_copy_raw): Don't declare.
4065
4066 2021-02-09 Tom Tromey <tromey@adacore.com>
4067
4068 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4069 fields.
4070
4071 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4072
4073 PR tdep/27369
4074 * arc-linux-tdep.c (handle_atomic_sequence): New.
4075 (arc_linux_software_single_step): Call handle_atomic_sequence().
4076
4077 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4080 function.
4081 (REQUIRE_WINDOW): Call is_valid member function.
4082 (REQUIRE_WINDOW_FOR_SETTER): New define.
4083 (gdbpy_tui_is_valid): Call is_valid member function.
4084 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4085 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4086 tui_active too.
4087 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4088 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4089 the function.
4090
4091 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4092
4093 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4094 for the title is not nullptr.
4095
4096 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4097
4098 * tui-layout.c (saved_tui_windows): Delete.
4099 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4100 call new get_windows member function instead.
4101 (tui_get_window_by_name): Check in tui_windows.
4102 (tui_layout_window::apply): Don't add to tui_windows.
4103 * tui-layout.h (tui_layout_base::get_windows): New member function.
4104 (tui_layout_window::get_windows): Likewise.
4105 (tui_layout_split::get_windows): Likewise.
4106
4107 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4110 of the window objects.
4111
4112 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * python/python.c (gdbpy_print_stack): Reformat an error message.
4115
4116 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 * tui/tui-interp.c (tui_command_line_handler): New function.
4119 (tui_interp::resume): Register tui_command_line_handler as the
4120 input_handler.
4121 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4122 function.
4123 (tui_getc_1): Delete handling of '\n' and '\r'.
4124 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4125
4126 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4127
4128 * tui/tui-regs.c (tui_data_window::display_registers_from):
4129 Mark invisible register sub windows.
4130 (tui_data_window::check_register_values): Ignore invisible
4131 register sub windows.
4132
4133 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4134
4135 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4136 n_spaces with a negative value.
4137
4138 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4139
4140 * tui/tui-regs.c (tui_data_window::display_registers_from):
4141 Add refresh_window call.
4142
4143 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4144
4145 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4146
4147 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4148
4149 * symmisc.c (std_in, std_out, std_err): Remove.
4150 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4151
4152 2021-02-05 Tom de Vries <tdevries@suse.de>
4153
4154 PR breakpoints/27330
4155 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4156 glibc object file has debug info.
4157
4158 2021-02-05 Tom de Vries <tdevries@suse.de>
4159
4160 PR symtab/27333
4161 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4162
4163 2021-02-05 Tom de Vries <tdevries@suse.de>
4164
4165 PR breakpoints/27313
4166 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4167 syscall numbers.
4168
4169 2021-02-05 Tom Tromey <tom@tromey.com>
4170
4171 * compile/compile-c-support.c (get_compile_context)
4172 (c_get_compile_context, cplus_get_compile_context): Change return
4173 type.
4174 * language.c (language_defn::get_compile_instance): New method.
4175 * language.h (language_defn::get_compile_instance): Change return
4176 type. No longer inline.
4177 * c-lang.c (c_language::get_compile_instance): Change return type.
4178 (cplus_language::get_compile_instance): Change return type.
4179 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4180 Change return type.
4181 * compile/compile.c (compile_to_object): Update.
4182
4183 2021-02-05 Tom Tromey <tom@tromey.com>
4184
4185 * parser-defs.h (write_exp_symbol_reference): Declare.
4186 * parse.c (write_exp_symbol_reference): New function.
4187 * p-exp.y (variable): Use write_exp_symbol_reference.
4188 * m2-exp.y (variable): Use write_exp_symbol_reference.
4189 * f-exp.y (variable): Use write_exp_symbol_reference.
4190 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4191 * c-exp.y (variable): Use write_exp_symbol_reference.
4192
4193 2021-02-05 Tom de Vries <tdevries@suse.de>
4194
4195 PR exp/27265
4196 * valarith.c (complex_binop): Throw an error if complex type can't
4197 be created.
4198
4199 2021-02-05 Tom de Vries <tdevries@suse.de>
4200
4201 PR symtab/27307
4202 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4203 return.
4204
4205 2021-02-05 Tom de Vries <tdevries@suse.de>
4206
4207 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4208
4209 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4210
4211 * configure.tgt (riscv*-*-*): Set gdb_sim.
4212
4213 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4214
4215 * target.c (target_is_non_stop_p): Return bool.
4216 * target.h (target_is_non_stop_p): Return bool.
4217
4218 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * record-full.c (record_full_async_inferior_event_handler):
4221 Don't clear async event handler.
4222 (record_full_base_target::wait): Clear async event handler at
4223 beginning.
4224
4225 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * record-btrace.c (record_btrace_handle_async_inferior_event):
4228 Don't clear async event handler.
4229 (record_btrace_target::wait): Clear async event handler at
4230 beginning.
4231
4232 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4233
4234 * remote.c (remote_target::wait): Clear async event handler at
4235 beginning, mark if needed at the end.
4236 (remote_async_inferior_event_handler): Don't set or clear async
4237 event handler.
4238
4239 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4240
4241 * async-event.h (async_event_handler_func): Add documentation.
4242 * async-event.c (check_async_event_handlers): Don't clear
4243 async_event_handler ready flag.
4244 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4245 flag.
4246 * record-btrace.c (record_btrace_handle_async_inferior_event):
4247 Likewise.
4248 * record-full.c (record_full_async_inferior_event_handler):
4249 Likewise.
4250 * remote-notif.c (remote_async_get_pending_events_handler):
4251 Likewise.
4252 * remote.c (remote_async_inferior_event_handler): Likewise.
4253
4254 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4255
4256 * infrun.c (handle_inferior_event): Move stop_soon variable to
4257 inner scope.
4258
4259 2021-02-03 Pedro Alves <pedro@palves.net>
4260
4261 * infcmd.c (detach_command): Hold strong reference to target, and
4262 if all-stop on entry, restart threads on exit.
4263 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4264 (restart_stepped_thread): ... this new function. Also handle
4265 trap_expected.
4266 (restart_after_all_stop_detach): New function.
4267 * infrun.h (restart_after_all_stop_detach): Declare.
4268
4269 2021-02-03 Pedro Alves <pedro@palves.net>
4270
4271 * infrun.c (struct step_over_info): Initialize fields.
4272 (prepare_for_detach): Handle ongoing in-line step over.
4273
4274 2021-02-03 Pedro Alves <pedro@palves.net>
4275
4276 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4277 here...
4278 * remote.c (remote_target::remote_detach_1): ... and here ...
4279 * target.c (target_detach): ... instead of here.
4280 * target.h (target_ops::detach): Add comment.
4281
4282 2021-02-03 Pedro Alves <pedro@palves.net>
4283
4284 * infrun.c (struct wait_one_event): Move higher up.
4285 (prepare_for_detach): Abort in-progress displaced steps instead of
4286 letting them complete.
4287 (handle_one): If the inferior is detaching, don't add the thread
4288 back to the global step-over chain.
4289 (restart_threads): Don't restart threads if detaching.
4290 (handle_signal_stop): Remove inferior::detaching reference.
4291
4292 2021-02-03 Pedro Alves <pedro@palves.net>
4293
4294 * infrun.c (prepare_for_detach): Don't release scoped_restore
4295 before returning.
4296
4297 2021-02-03 Pedro Alves <pedro@palves.net>
4298
4299 * infrun.c (handle_one): New function, factored out from ...
4300 (stop_all_threads): ... here.
4301
4302 2021-02-03 Pedro Alves <pedro@palves.net>
4303
4304 * remote.c (remote_notif_stop_ack): Don't error out on
4305 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4306 (remote_target::discard_pending_stop_replies): Don't delete
4307 in-flight notification; instead, clear its contents.
4308
4309 2021-02-03 Pedro Alves <pedro@palves.net>
4310
4311 * remote.c (extended_remote_target::attach): Set target async in
4312 the target-non-stop path too.
4313
4314 2021-02-03 Pedro Alves <pedro@palves.net>
4315
4316 PR gdb/27055
4317 * infrun.c (handle_signal_stop): Move main context_switch call
4318 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4319
4320 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4321
4322 * NEWS (Changed commands): Add entry for the behavior change of
4323 the inferior command.
4324 * inferior.c (inferior_command): When no argument is given to the
4325 inferior command, display info about the currently selected
4326 inferior.
4327
4328 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4329
4330 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4331 a sect_offset.
4332 (read_attribute_reprocess): Adjust.
4333
4334 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4337 <gnu_ranges_base>: ... this...
4338 <rnglists_base>: ... and this.
4339 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4340 <gnu_ranges_base>: ... this...
4341 <rnglists_base>: ... and this.
4342 (read_cutu_die_from_dwo): Adjust
4343 (dwarf2_get_pc_bounds): Adjust
4344 (dwarf2_record_block_ranges): Adjust.
4345 (read_full_die_1): Adjust
4346 (partial_die_info::read): Adjust.
4347 (read_rnglist_index): Adjust.
4348
4349 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4350
4351 PR gdb/26813
4352 * dwarf2/read.c (read_loclists_rnglists_header): Add
4353 header_offset parameter and use it.
4354 (read_loclist_index): Read header of the current contribution,
4355 not the one at the beginning of the section.
4356 (read_rnglist_index): Likewise.
4357
4358 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4359
4360 PR gdb/26813
4361 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4362 requires_reprocessing flag.
4363 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4364 DW_FORM_loclistx.
4365 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4366 and DW_FORM_loclistx.
4367 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4368 instead of set_address for DW_FORM_loclistx and
4369 DW_FORM_rnglistx.
4370
4371 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * dwarf2/read.c (read_loclist_index): Remove bound check for
4374 start of offset.
4375 (read_rnglist_index): Likewise.
4376
4377 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4378
4379 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4380 of the offset.
4381
4382 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4383
4384 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4385
4386 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * dwarf2/read.c (read_loclist_index): Change complaints into
4389 errors.
4390
4391 2021-02-02 Tom de Vries <tdevries@suse.de>
4392
4393 PR symtab/24620
4394 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4395 psymtab == nullptr.
4396
4397 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4398
4399 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4400 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4401 here from linux-tdep.c and given a new name. Minor cleanups.
4402 (gcore_collect_regset_section_cb): Likewise.
4403 (gcore_collect_thread_registers): Likewise.
4404 (gcore_build_thread_register_notes): Likewise.
4405 (gcore_find_signalled_thread): Likewise.
4406 * gcore.h (gcore_build_thread_register_notes): Declare.
4407 (gcore_find_signalled_thread): Declare.
4408 * fbsd-tdep.c: Add 'gcore.h' include.
4409 (struct fbsd_collect_regset_section_cb_data): Delete.
4410 (fbsd_collect_regset_section_cb): Delete.
4411 (fbsd_collect_thread_registers): Delete.
4412 (struct fbsd_corefile_thread_data): Delete.
4413 (fbsd_corefile_thread): Delete.
4414 (fbsd_make_corefile_notes): Call
4415 gcore_build_thread_register_notes instead of the now deleted
4416 FreeBSD code.
4417 * linux-tdep.c: Add 'gcore.h' include.
4418 (struct linux_collect_regset_section_cb_data): Delete.
4419 (linux_collect_regset_section_cb): Delete.
4420 (linux_collect_thread_registers): Delete.
4421 (linux_corefile_thread): Call
4422 gcore_build_thread_register_notes.
4423 (find_signalled_thread): Delete.
4424 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4425
4426 2021-01-29 Tom de Vries <tdevries@suse.de>
4427
4428 PR breakpoints/26063
4429 * infrun.c (process_event_stop_test): Reset
4430 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4431 changed.
4432
4433 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4436 assert. Extend the header comment.
4437
4438 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4441 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4442 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4443 (tui_locator_win_info_ptr): Delete declaration.
4444 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4445 (tui_disasm_window::set_contents): Fetch state from tui_location
4446 global.
4447 (tui_get_begin_asm_address): Likewise.
4448 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4449 for locator window.
4450 (get_locator_window): Delete.
4451 (initialize_known_windows): Treat locator window just like all the
4452 rest.
4453 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4454 (tui_source_window::set_contents): Fetch state from tui_location
4455 global.
4456 (tui_source_window::showing_source_p): Likewise.
4457 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4458 (_locator): Delete.
4459 (tui_locator_win_info_ptr): Delete.
4460 (tui_locator_window::make_status_line): Fetch state from
4461 tui_location global.
4462 (tui_locator_window::rerender): Remove check of 'handle',
4463 reindent function body.
4464 (tui_locator_window::set_locator_fullname): Delete.
4465 (tui_locator_window::set_locator_info): Delete.
4466 (tui_update_locator_fullname): Delete.
4467 (tui_show_frame_info): Likewise.
4468 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4469 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4470 tui/tui-location.h and renamed to
4471 tui_location_tracker::set_location.
4472 (tui_locator_window::set_locator_fullname): Moved to
4473 tui/tui-location.h and renamed to
4474 tui_location_tracker::set_fullname.
4475 (tui_locator_window::full_name): Delete.
4476 (tui_locator_window::proc_name): Delete.
4477 (tui_locator_window::line_no): Delete.
4478 (tui_locator_window::addr): Delete.
4479 (tui_locator_window::gdbarch): Delete.
4480 (tui_update_locator_fullname): Delete declaration.
4481 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4482 for locator window.
4483 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4484 (tui_display_main): Call function on tui_location directly.
4485 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4486 * tui/tui-location.c: New file.
4487 * tui/tui-location.h: New file.
4488
4489 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4490
4491 * gdbtypes.h (get_type_arch): Rename to...
4492 (struct type) <arch>: ... this, update all users.
4493
4494 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4495
4496 * gdbtypes.h (struct type) <arch>: Rename to...
4497 <arch_owner>: ... this, update all users.
4498 <objfile>: Rename to...
4499 <objfile_owner>: ... this, update all users.
4500
4501 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * gdbcmd.h (execute_command_to_string): Update comment.
4504 * top.c (execute_command_to_string): Update header comment.
4505
4506 2021-01-28 Tom de Vries <tdevries@suse.de>
4507
4508 PR breakpoints/27205
4509 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4510 (create_longjmp_master_breakpoint_names): New function, factored out
4511 of ...
4512 (create_longjmp_master_breakpoint): ... here. Only try to install
4513 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4514 breakpoint in libc.so failed.
4515
4516 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4517
4518 PR gdb/27133
4519 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4520 unique_ptr is released when the wrapped pointer is kept for later
4521 use.
4522
4523 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4524
4525 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4526 BLR and BR instructions.
4527 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4528 (enum aarch64_masks): New.
4529
4530 2021-01-26 Tom Tromey <tromey@adacore.com>
4531
4532 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4533 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4534 (windows_init_thread_list, windows_nat::handle_load_dll)
4535 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4536 (windows_nat_target::resume)
4537 (windows_nat_target::get_windows_debug_event)
4538 (windows_nat_target::interrupt, windows_xfer_memory)
4539 (windows_nat_target::close): Update.
4540 * nat/windows-nat.c (DEBUG_EVENTS): Use
4541 debug_prefixed_printf_cond.
4542 (matching_pending_stop, fetch_pending_stop)
4543 (continue_last_debug_event): Update.
4544
4545 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4546
4547 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4548 elfcore_write_file_note.
4549
4550 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4551
4552 * arc-tdep.c (arc_add_reggroups): New function.
4553 (arc_gdbarch_init): Call arc_add_reggroups.
4554
4555 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4556
4557 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4558
4559 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4560 Simon Marchi <simon.marchi@polymtl.ca>
4561 Tom de Vries <tdevries@suse.de>
4562
4563 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4564 DW_AT_ranges.
4565
4566 2021-01-25 Tom Tromey <tromey@adacore.com>
4567
4568 * dwarf2/read.c (get_mpz): New function.
4569 (get_dwarf2_rational_constant): Use it.
4570
4571 2021-01-25 Tom Tromey <tromey@adacore.com>
4572
4573 * ada-lang.c (resolve_subexp): Handle array context.
4574
4575 2021-01-23 Tom Tromey <tom@tromey.com>
4576
4577 PR compile/25575
4578 * compile/compile-loc2c.c (note_register): New function.
4579 (pushf_register_address, pushf_register): Use it.
4580
4581 2021-01-23 Tom Tromey <tom@tromey.com>
4582
4583 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4584 Change type of "registers_used".
4585 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4586 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4587 (locexpr_generate_c_location, loclist_generate_c_location): Change
4588 type of "registers_used".
4589 * compile/compile.h (compile_dwarf_expr_to_c)
4590 (compile_dwarf_bounds_to_c): Update.
4591 * compile/compile-loc2c.c (pushf_register_address)
4592 (pushf_register, do_compile_dwarf_expr_to_c)
4593 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4594 of "registers_used".
4595 * compile/compile-c.h (generate_c_for_variable_locations):
4596 Update.
4597 * compile/compile-c-symbols.c (generate_vla_size)
4598 (generate_c_for_for_one_variable): Change type of
4599 "registers_used".
4600 (generate_c_for_variable_locations): Return std::vector.
4601 * compile/compile-c-support.c (generate_register_struct): Change
4602 type of "registers_used".
4603 (compute): Update.
4604
4605 2021-01-23 Tom Tromey <tom@tromey.com>
4606
4607 * compile/compile-internal.h (class compile_instance)
4608 <set_arguments>: Change return type.
4609 * compile/compile.c (compile_to_object): Remove call to reset.
4610 (compile_instance::set_arguments): Change return type.
4611
4612 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4613
4614 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4615 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4616
4617 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4618
4619 * Makefile.in (SELFTESTS_SRCS): Add
4620 unittests/gdb_tilde_expand-selftests.c.
4621 * unittests/gdb_tilde_expand-selftests.c: New file.
4622
4623 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 PR cli/25956
4626 * NEWS: Mention new command.
4627 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4628 (version_style): Define.
4629 (cli_style_option::cli_style_option): Add intensity parameter, and
4630 use as appropriate.
4631 (_initialize_cli_style): Register version style set/show commands.
4632 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4633 (version_style): Declare.
4634 * top.c (print_gdb_version): Use version_stype, and styled_string
4635 to print the GDB version string.
4636
4637 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * utils.c (emit_style_escape): Only emit an escape sequence if the
4640 requested style is different than the current applied style.
4641 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4642 current applied_style.
4643 (fputs_styled): Remove is_default check.
4644 (fputs_styled_unfiltered): Likewise.
4645 (vfprintf_styled_no_gdbfmt): Likewise.
4646
4647 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4648
4649 * remote.h (remote_debug_printf): New.
4650 (remote_debug_printf_nofunc): New.
4651 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4652 * remote.c: Use above macros throughout file.
4653
4654 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4655
4656 * remote.h (remote_debug): Change to bool.
4657 * remote.c (remote_debug): Change to bool.
4658 (_initialize_remote): Adjust.
4659
4660 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * target.h (remote_debug): Move to...
4663 * remote.h (remote_debug): ... here.
4664 * top.c (remote_debug): Move to...
4665 * remote.c (remote_debug): ... here.
4666 * remote-sim.c: Include remote.h.
4667
4668 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4669
4670 * cli/cli-cmds.c (show_remote_debug): Remove.
4671 (show_remote_timeout): Remove.
4672 (_initialize_cli_cmds): Don't register commands.
4673 * remote.c (show_remote_debug): Move here.
4674 (show_remote_timeout): Move here.
4675 (_initialize_remote): Register commands.
4676
4677 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4678
4679 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4680 type::objfile method instead.
4681
4682 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4683
4684 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4685 use the type::is_objfile_owned method.
4686
4687 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
4688
4689 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4690 (TYPE_OWNER): Remove.
4691 (TYPE_OBJFILE): Adjust.
4692 (struct main_type) <flag_objfile_owned>: Rename to...
4693 <m_flag_objfile_owned>: ... this.
4694 <owner>: Rename to...
4695 <m_owner>: ... this.
4696 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4697 methods.
4698 (TYPE_ALLOC): Adjust.
4699 * gdbtypes.c (alloc_type): Adjust.
4700 (alloc_type_arch): Adjust.
4701 (alloc_type_copy): Adjust.
4702 (get_type_arch): Adjust.
4703 (smash_type): Adjust.
4704 (lookup_array_range_type): Adjust.
4705 (recursive_dump_type): Adjust.
4706 (copy_type_recursive): Adjust.
4707 * compile/compile-c-types.c (convert_func): Adjust.
4708 (convert_type_basic): Adjust.
4709 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4710 Adjust.
4711 * language.c
4712 (language_arch_info::type_and_symbol::alloc_type_symbol):
4713 Adjust.
4714
4715 2021-01-21 Luis Machado <luis.machado@linaro.org>
4716
4717 * coffread.c (enter_linenos): Passing string to complaint.
4718 * valops.c (value_assign): Make array view.
4719
4720 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4721
4722 * auto-load.h (debug_auto_load): Move here.
4723 (auto_load_debug_printf): New.
4724 * auto-load.c: Use auto_load_debug_printf.
4725 (debug_auto_load): Move to header.
4726 * linux-thread-db.c (try_thread_db_load): Use
4727 auto_load_debug_printf.
4728 * main.c (captured_main_1): Likewise.
4729
4730 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4731
4732 * f-valprint.c (f77_array_offset_tbl): Remove.
4733
4734 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4735
4736 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4737
4738 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4739
4740 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4741 of gdb_select.
4742
4743 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
4744
4745 PR python/19151
4746 * python/py-breakpoint.c (bppy_get_location): Handle
4747 bp_hardware_breakpoint.
4748 (bppy_init): Likewise.
4749 (gdbpy_breakpoint_created): Likewise.
4750
4751 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4752
4753 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4754
4755 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4756
4757 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4758 (_initialize_gdb_bfd): Adjust.
4759
4760 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 PR gdb/26828
4763 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4764
4765 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * dwarf2/read.c (follow_die_offset): Add logging.
4768 (dwarf2_per_objfile::age_comp_units): Add logging.
4769
4770 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4771
4772 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4773 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4774 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4775 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4776 * arm-tdep.c (struct frame_unwind): Make static.
4777 * auto-load.c (auto_load_safe_path_vec): Make static.
4778 * csky-tdep.c (csky_stub_unwind): Make static.
4779 * gdbarch.c (gdbarch_data_registry): Make static.
4780 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4781 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4782 * i386-tdep.c (i386_frame_setup_skip_insns,
4783 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4784 Make static.
4785 * infrun.c (observer_mode): Make static.
4786 * linux-nat.c (sigchld_action): Make static.
4787 * linux-thread-db.c (thread_db_list): Make static.
4788 * maint-test-options.c (maintenance_test_options_list):
4789 * mep-tdep.c (mep_csr_registers): Make static.
4790 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4791 (stats): Make static.
4792 * nat/linux-osdata.c (struct osdata_type): Make static.
4793 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4794 * progspace.c (last_program_space_num): Make static.
4795 * python/py-param.c (struct parm_constant): Remove struct type
4796 name.
4797 (parm_constants): Make static.
4798 * python/py-record-btrace.c (btpy_list_methods): Make static.
4799 * python/py-record.c (recpy_gap_type): Make static.
4800 * record.c (record_goto_cmdlist): Make static.
4801 * regcache.c (regcache_descr_handle): Make static.
4802 * registry.h (DEFINE_REGISTRY): Make definition static.
4803 * symmisc.c (std_in, std_out, std_err): Make static.
4804 * top.c (previous_saved_command_line): Make static.
4805 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4806 static.
4807 * unittests/command-def-selftests.c (nr_duplicates,
4808 nr_invalid_prefixcmd, lists): Make static.
4809 * unittests/observable-selftests.c (test_notification): Make
4810 static.
4811 * unittests/optional/assignment/1.cc (counter): Make static.
4812 * unittests/optional/assignment/2.cc (counter): Make static.
4813 * unittests/optional/assignment/3.cc (counter): Make static.
4814 * unittests/optional/assignment/4.cc (counter): Make static.
4815 * unittests/optional/assignment/5.cc (counter): Make static.
4816 * unittests/optional/assignment/6.cc (counter): Make static.
4817
4818 2021-01-20 Joel Sherrill <joel@rtems.org>
4819
4820 PR gdb/27219
4821 * remote.c (struct remote_thread_info) <resume_state>: Rename
4822 to...
4823 <get_resume_state>: ... this.
4824 (remote_target::resume): Adjust.
4825 (remote_target::commit_resume): Adjust.
4826 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4827
4828 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4829 Tom Tromey <tom@tromey.com>
4830
4831 * stap-probe.c (stap_parse_single_operand): Handle '!'
4832 operator.
4833 (stap_parse_argument_conditionally): Likewise.
4834 Skip spaces after processing open-parenthesis sub-expression.
4835 (stap_parse_argument_1): Skip spaces after call to
4836 stap_parse_argument_conditionally.
4837 Handle case when right-side expression is a parenthesized
4838 sub-expression.
4839 Skip spaces after call to stap_parse_argument_1.
4840
4841 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4842
4843 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4844
4845 2021-01-19 Luis Machado <luis.machado@linaro.org>
4846
4847 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4848 memory and save data.
4849 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4850 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4851 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4852 (trad_frame_value_bytes_p): Remove.
4853 (trad_frame_reset_saved_regs): Adjust documentation.
4854 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4855 constructor and reset the state of the registers.
4856 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4857 (trad_frame_value_bytes_p, trad_frame_set_value)
4858 (trad_frame_set_realreg, trad_frame_set_addr)
4859 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4860 (trad_frame_set_reg_realreg): Update to call member function.
4861 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4862 (trad_frame_get_prev_register): Likewise.
4863
4864 * aarch64-tdep.c (aarch64_analyze_prologue)
4865 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4866 (aarch64_prologue_prev_register): Update to use member functions.
4867 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4868 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4869 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4870 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4871 (arm_make_epilogue_frame_cache): Likewise.
4872 * avr-tdep.c (avr_frame_unwind_cache)
4873 (avr_frame_prev_register): Likewise.
4874 * cris-tdep.c (cris_scan_prologue): Likewise.
4875 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4876 * frv-tdep.c (frv_analyze_prologue): Likewise.
4877 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4878 * lm32-tdep.c (lm32_frame_cache): Likewise.
4879 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4880 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4881 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4882 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4883 (reset_saved_regs): Adjust to set realreg.
4884 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4885 call member functions.
4886 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4887 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4888 (s390_backchain_frame_unwind_cache): Likewise.
4889 * score-tdep.c (score7_analyze_prologue)
4890 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4891 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4892 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4893 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4894 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4895 * tilegx-tdep.c (tilegx_analyze_prologue)
4896 (tilegx_frame_cache): Likewise.
4897 * v850-tdep.c (v850_frame_cache): Likewise.
4898 * vax-tdep.c (vax_frame_cache): Likewise.
4899
4900 2021-01-19 Luis Machado <luis.machado@linaro.org>
4901
4902 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4903 of buffer + length.
4904 (put_frame_register_bytes): Likewise.
4905 Adjust documentation.
4906 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4907 (safe_frame_unwind_memory): Likewise.
4908 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4909 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4910 gdb::array_view.
4911 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4912 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4913 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4914 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4915 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4916 * dwarf2/loc.c (rw_pieced_value): Likewise.
4917 * hppa-tdep.c (hppa_frame_cache): Likewise.
4918 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4919 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4920 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4921 (i386_linux_rt_sigtramp_start): Likewise.
4922 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4923 * i386-tdep.c (i386_register_to_value): Likewise.
4924 * i387-tdep.c (i387_register_to_value): Likewise.
4925 * ia64-tdep.c (ia64_register_to_value): Likewise.
4926 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4927 (m32r_linux_rt_sigtramp_start): Likewise.
4928 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4929 * m68k-tdep.c (m68k_register_to_value): Likewise.
4930 * mips-tdep.c (mips_register_to_value)
4931 (mips_value_to_register): Likewise.
4932 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4933 (ppcfbsd_sigtramp_frame_cache): Likewise.
4934 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4935 (ppcobsd_sigtramp_frame_cache): Likewise.
4936 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4937 (rs6000_register_to_value): Likewise.
4938 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4939 * tramp-frame.c (tramp_frame_start): Likewise.
4940 * valops.c (value_assign): Likewise.
4941
4942 2021-01-19 Luis Machado <luis.machado@linaro.org>
4943
4944 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4945 array_view.
4946 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4947 instead of buffer and size.
4948 (trad_frame_set_reg_value_bytes): Likewise.
4949 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4950 (trad_frame_set_value_bytes): Likewise.
4951
4952 2021-01-18 Mike Frysinger <vapier@gentoo.org>
4953
4954 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4955
4956 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4957
4958 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4959 (riscv_fbsd_gregset): Use riscv_supply_regset.
4960 (riscv_fbsd_fpregset): Likewise.
4961 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4962 (riscv_linux_fregset): Likewise.
4963 * riscv-tdep.c (riscv_supply_regset): Define new function.
4964 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4965
4966 2021-01-18 Tom de Vries <tdevries@suse.de>
4967
4968 PR tdep/27172
4969 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4970 New macro.
4971 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4972 for SEGV_BNDERR.
4973
4974 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4975
4976 * remote.c (class remote_target) <remote_hostio_send_command,
4977 remote_hostio_parse_result>: Constify parameter.
4978 (remote_hostio_parse_result): Likewise.
4979 (remote_target::remote_hostio_send_command): Adjust.
4980 (remote_target::remote_hostio_pread_vFile): Adjust.
4981 (remote_target::fileio_readlink): Adjust.
4982 (remote_target::fileio_fstat): Adjust.
4983
4984 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4985
4986 * remote.c (remote_target::start_remote): Move wait_status to
4987 narrower scope.
4988
4989 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * remote.c (class remote_target):
4992 <add_current_inferior_and_thread>: Constify parameter.
4993 (stop_reply_extract_thread): Likewise.
4994 (remote_target::get_current_thread): Likewise.
4995 (remote_target::add_current_inferior_and_thread): Likewise.
4996
4997 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4998
4999 * remote.c (class remote_target)
5000 <remote_unpack_thread_info_response,
5001 parse_threadlist_response>: Constify parameter and/or return
5002 value and or local variable.
5003 (stub_unpack_int): Likewise.
5004 (unpack_nibble): Likewise.
5005 (unpack_byte): Likewise.
5006 (unpack_int): Likewise.
5007 (unpack_string): Likewise.
5008 (unpack_threadid): Likewise.
5009 (remote_target::remote_unpack_thread_info_response): Likewise.
5010 (remote_target::parse_threadlist_response): Likewise.
5011
5012 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5015
5016 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5017
5018 * MAINTAINERS (Write After Approval): Add myself.
5019
5020 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5021
5022 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5023 because is_trivially_default_constructible was first implemented with
5024 gcc-5.
5025
5026 2021-01-14 Tom de Vries <tdevries@suse.de>
5027
5028 PR breakpoints/27151
5029 * objfiles.h (in_plt_section): Handle .plt.sec.
5030
5031 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5032
5033 PR gdb/26819
5034 * remote.c
5035 (remote_target::select_thread_for_ambiguous_stop_reply): New
5036 member function.
5037 (remote_target::process_stop_reply): Call
5038 select_thread_for_ambiguous_stop_reply.
5039
5040 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * record-btrace.c (class record_btrace_target): Remove.
5043 (record_btrace_target::commit_resume): Remove.
5044 * record-full.c (class record_full_target): Remove.
5045 (record_full_target::commit_resume): Remove.
5046
5047 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * remote.c (enum class resume_state): New.
5050 (struct resumed_pending_vcont_info): New.
5051 (struct remote_thread_info) <resume_state, set_not_resumed,
5052 set_resumed_pending_vcont, resumed_pending_vcont_info,
5053 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5054 New.
5055 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5056 (remote_target::remote_add_thread): Adjust.
5057 (remote_target::process_initial_stop_replies): Adjust.
5058 (remote_target::resume): Adjust.
5059 (remote_target::commit_resume): Rely on state in
5060 remote_thread_info and not on tp->executing.
5061 (remote_target::process_stop_reply): Adjust.
5062
5063 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5064
5065 * arc-tdep.h (arc_debug_printf): New.
5066 * arc-tdep.c: Use arc_debug_printf.
5067 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5068 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5069 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5070
5071 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5072
5073 * arc-tdep.h (arc_debug): Change type to bool.
5074 * arc-tdep.c (arc_debug): Change type to bool.
5075 (arc_analyze_prologue): Adjust.
5076 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5077 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5078
5079 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * auto-load.c (auto_load_objfile_script_1): Use bool.
5082 (execute_script_contents): Use bool.
5083
5084 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5085
5086 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5087 comment here.
5088 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5089 comment to header.
5090 * extension-priv.h (struct extension_language_script_ops)
5091 <auto_load_enabled>: Return bool.
5092 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5093 comment here.
5094 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5095 comment to header.
5096 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5097 move comment here.
5098 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5099 move comment to header.
5100 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5101 move comment here.
5102 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5103 move comment to header.
5104
5105 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5106
5107 * auto-load.h (file_is_auto_load_safe): Change return type to
5108 bool, move comment here.
5109 * auto-load.c (file_is_auto_load_safe): Change return type and
5110 advice_printed to bool. Move comment to header.
5111
5112 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 * jit.c (jit_debug_printf): New, use throughout file.
5115
5116 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5117
5118 * infrun.c (normal_stop): Fix indentation.
5119
5120 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5121
5122 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5123 declarations to ...
5124 * symfile.h: ... here.
5125 * symfile.c: Update doc.
5126
5127 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5128
5129 * target.h (baud_rate, serial_parity): Move declarations...
5130 * serial.h: ... here.
5131 * main.c: Include serial.h.
5132 * serial.c (baud_rate, serial_parity): Update doc.
5133
5134 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5135
5136 * top.c (pre_init_ui_hook): Remove.
5137
5138 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5139
5140 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5141 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5142 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5143 * features/aarch64-fpu.xml: Add bfloat16 type.
5144
5145 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5146
5147 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5148
5149 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5150
5151 * f-exp.y (dot_ops): Rename to...
5152 (fortran_operators): ...this. Add a header comment. Add symbol
5153 based operators.
5154 (yylex): Update to use fortran_operators not dot_ops. Remove
5155 special handling for '**', this is now included in
5156 fortran_operators.
5157
5158 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5159
5160 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5161 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5162 * aarch64-tdep.c: Use aarch64_debug_printf.
5163
5164 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5165
5166 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5167 file.
5168
5169 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5170
5171 * jit.c (jit_debug): Change type to bool.
5172 (_initialize_jit): Adjust.
5173
5174 2021-01-09 Tom Tromey <tom@tromey.com>
5175
5176 PR compile/23672
5177 * compile/compile.c (compile_to_object): Avoid crash when
5178 osabi_triplet_regexp returns NULL.
5179
5180 2021-01-09 Tom Tromey <tom@tromey.com>
5181
5182 * tracepoint.h (class collection_list) <append_exp>: Take a
5183 std::string.
5184 * tracepoint.c (collection_list::append_exp): Take a std::string.
5185 (encode_actions_1): Update.
5186
5187 2021-01-08 Tom Tromey <tromey@adacore.com>
5188
5189 * parse.c (parse_expression): Add void_context_p parameter. Use
5190 parse_exp_in_context.
5191 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5192 parse_expression.
5193 (print_command, call_command): Update.
5194 * expression.h (parse_expression): Add void_context_p parameter.
5195
5196 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5197
5198 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5199 for internalvar components that have a dynamic location.
5200
5201 2021-01-08 Tom de Vries <tdevries@suse.de>
5202
5203 PR gdb/26881
5204 * breakpoint.c (create_exception_master_breakpoint_probe)
5205 (create_exception_master_breakpoint_hook): Factor out
5206 of ...
5207 (create_exception_master_breakpoint): ... here. Only try to install
5208 the master exception breakpoint in objfile.debug using the
5209 _Unwind_DebugHook method, if the install using probes in objfile
5210 failed.
5211
5212 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5213
5214 * f-lang.c (fortran_value_subarray): Call value_from_component.
5215
5216 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5217
5218 * remote-sim.c: Include memory-map.h.
5219 (gdbsim_target): Define memory_map override.
5220 (gdbsim_target::memory_map): Define.
5221
5222 2021-01-07 Tom Tromey <tromey@adacore.com>
5223
5224 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5225
5226 2021-01-07 Tom Tromey <tromey@adacore.com>
5227
5228 * ada-lang.c (add_component_interval): Start loop using vector's
5229 updated size.
5230
5231 2021-01-06 Tom Tromey <tromey@adacore.com>
5232
5233 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5234 Do not cast result.
5235 * valarith.c (fixed_point_binop): Handle multiplication
5236 and division specially.
5237 * valops.c (value_to_gdb_mpq): New function.
5238 (value_cast_to_fixed_point): Use it.
5239
5240 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5241
5242 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5243 Call wnoutrefresh instead of tui_win_info::refresh_window.
5244
5245 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5246
5247 * tui/tui-source.c (tui_source_window::show_line_number):
5248 Redraw second space after line number.
5249
5250 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5251
5252 PR tui/26927
5253 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5254 Fix source pad size in prefresh.
5255 (tui_source_window_base::show_source_content): Grow source pad
5256 if necessary.
5257
5258 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5259
5260 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5261 (bfin_frame_align): Use align_down.
5262
5263 2021-01-04 Tom de Vries <tdevries@suse.de>
5264
5265 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5266 terminators that do not terminate anything.
5267
5268 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * debug.c (debug_print_depth): New.
5271 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5272 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5273 * infrun.c (start_step_over): Use
5274 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5275 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5276 INFRUN_SCOPED_DEBUG_START_END.
5277 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5278
5279 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5282
5283 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5284
5285 * utils.c (vfprintf_unfiltered): Print timestamp only when
5286 previous debug output ended with a newline.
5287
5288 2021-01-04 Luis Machado <luis.machado@linaro.org>
5289
5290 Update all users of trad_frame_saved_reg to use the new member
5291 functions.
5292
5293 Remote all struct keywords from declarations of trad_frame_saved_reg
5294 types, except on forward declarations.
5295
5296 * aarch64-tdep.c: Update.
5297 * alpha-mdebug-tdep.c: Update.
5298 * alpha-tdep.c: Update.
5299 * arc-tdep.c: Update.
5300 * arm-tdep.c: Update.
5301 * avr-tdep.c: Update.
5302 * cris-tdep.c: Update.
5303 * csky-tdep.c: Update.
5304 * frv-tdep.c: Update.
5305 * hppa-linux-tdep.c: Update.
5306 * hppa-tdep.c: Update.
5307 * hppa-tdep.h: Update.
5308 * lm32-tdep.c: Update.
5309 * m32r-linux-tdep.c: Update.
5310 * m32r-tdep.c: Update.
5311 * m68hc11-tdep.c: Update.
5312 * mips-tdep.c: Update.
5313 * moxie-tdep.c: Update.
5314 * riscv-tdep.c: Update.
5315 * rs6000-tdep.c: Update.
5316 * s390-linux-tdep.c: Update.
5317 * s390-tdep.c: Update.
5318 * score-tdep.c: Update.
5319 * sparc-netbsd-tdep.c: Update.
5320 * sparc-sol2-tdep.c: Update.
5321 * sparc64-fbsd-tdep.c: Update.
5322 * sparc64-netbsd-tdep.c: Update.
5323 * sparc64-obsd-tdep.c: Update.
5324 * sparc64-sol2-tdep.c: Update.
5325 * tilegx-tdep.c: Update.
5326 * v850-tdep.c: Update.
5327 * vax-tdep.c: Update.
5328
5329 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5330 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5331
5332 * trad-frame.c: Update.
5333 Remove TF_REG_* enum.
5334 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5335 a trivially-constructible struct.
5336 (trad_frame_reset_saved_regs): Adjust to use member function.
5337 (trad_frame_value_p): Likewise.
5338 (trad_frame_addr_p): Likewise.
5339 (trad_frame_realreg_p): Likewise.
5340 (trad_frame_value_bytes_p): Likewise.
5341 (trad_frame_set_value): Likewise.
5342 (trad_frame_set_realreg): Likewise.
5343 (trad_frame_set_addr): Likewise.
5344 (trad_frame_set_unknown): Likewise.
5345 (trad_frame_set_value_bytes): Likewise.
5346 (trad_frame_get_prev_register): Likewise.
5347 * trad-frame.h: Update.
5348 (trad_frame_saved_reg_kind): New enum.
5349 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5350 <m_kind, m_reg>: New member fields.
5351 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5352 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5353 <is_addr, is_unknown, is_value_bytes>: New member functions.
5354
5355 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5356
5357 * target-float.c: Fix typos.
5358
5359 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5360
5361 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5362
5363 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5364
5365 * gdbarch.sh: Update copyright year range.
5366
5367 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5368
5369 Update copyright year range in copyright header of all GDB files.
5370
5371 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5372
5373 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5374 to the list of directories to update.
5375
5376 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5377
5378 * top.c (print_gdb_version): Update copyright year.
5379
5380 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5381
5382 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5383
5384 For older changes see ChangeLog-2020.
5385 \f
5386 Local Variables:
5387 mode: change-log
5388 left-margin: 8
5389 fill-column: 74
5390 version-control: never
5391 coding: utf-8
5392 End: