]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Change how some psymbol readers access the psymtab storage
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2021-03-20 Tom Tromey <tom@tromey.com>
2
3 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
4 (xcoff_end_psymtab): Update.
5 (scan_xcoff_symtab): Add partial_symtabs parameter.
6 (xcoff_initial_scan): Update.
7 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
8 * mdebugread.c (mdebug_build_psymtabs): Update.
9 (parse_partial_symbols): Add partial_symtabs parameter.
10 * dbxread.c (dbx_symfile_read): Update.
11 (read_dbx_symtab): Add partial_symtabs parameter.
12 (read_dbx_symtab): Update.
13 (dbx_end_psymtab): Add partial_symtabs parameter.
14
15 2021-03-20 Tom Tromey <tom@tromey.com>
16
17 * quick-symbol.h (struct quick_symbol_functions)
18 <relocated>: New method.
19 * psymtab.h (struct psymbol_functions) <relocated>: New
20 method.
21 <fill_psymbol_map>: Declare method.
22 <m_psymbol_map>: New member.
23 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
24 (psymbol_functions::find_compunit_symtab_by_address): Update.
25 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
26 (struct objfile) <psymbol_map>: Remove.
27 * objfiles.c (objfile_relocate1): Update.
28
29 2021-03-20 Tom Tromey <tom@tromey.com>
30
31 * psympriv.h (struct psymbol_functions): New.
32 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
33 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
34 (objfile::lookup_global_symbol_language): Update.
35 * quick-symbol.h (struct quick_symbol_functions): Convert function
36 pointers to methods. Add virtual destructor.
37 (quick_symbol_functions_up): New typedef.
38 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
39 (dwarf2_debug_names_functions): Don't declare.
40 (make_psymbol_functions): Declare.
41 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
42 (psymbol_functions::find_pc_sect_compunit_symtab)
43 (psymbol_functions::lookup_symbol)
44 (psymbol_functions::lookup_global_symbol_language)
45 (psymbol_functions::find_last_source_symtab)
46 (psymbol_functions::forget_cached_source_info)
47 (psymbol_functions::print_stats, psymbol_functions::dump)
48 (psymbol_functions::expand_symtabs_for_function)
49 (psymbol_functions::expand_all_symtabs)
50 (psymbol_functions::expand_symtabs_with_fullname)
51 (psymbol_functions::map_symbol_filenames)
52 (psymbol_functions::map_matching_symbols)
53 (psymbol_functions::expand_symtabs_matching)
54 (psymbol_functions::has_symbols)
55 (psymbol_functions::find_compunit_symtab_by_address): Rename.
56 (psym_functions): Remove.
57 (make_psymbol_functions): New function.
58 * objfiles.h (struct objfile) <qf>: Change type.
59 * elfread.c (elf_symfile_read): Update.
60 * dwarf2/read.c (struct dwarf2_base_index_functions)
61 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
62 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
63 (dwarf2_base_index_functions::find_last_source_symtab)
64 (dwarf2_base_index_functions::forget_cached_source_info)
65 (dwarf2_base_index_functions::map_symtabs_matching_filename)
66 (dwarf2_gdb_index::lookup_symbol)
67 (dwarf2_base_index_functions::print_stats)
68 (dwarf2_gdb_index::dump)
69 (dwarf2_gdb_index::expand_symtabs_for_function)
70 (dwarf2_base_index_functions::expand_all_symtabs)
71 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
72 Rename.
73 (dwarf2_gdb_index::map_matching_symbols): New method.
74 (dwarf2_gdb_index::expand_symtabs_matching): New method.
75 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
76 (dwarf2_base_index_functions::map_symbol_filenames)
77 (dwarf2_base_index_functions::has_symbols): Rename.
78 (dwarf2_gdb_index_functions): Remove.
79 (dwarf2_debug_names_index::lookup_symbol)
80 (dwarf2_debug_names_index::dump)
81 (dwarf2_debug_names_index::expand_symtabs_for_function)
82 (dwarf2_debug_names_index::map_matching_symbols)
83 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
84 (dwarf2_debug_names_functions): Remove.
85 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
86 Declare.
87
88 2021-03-20 Tom Tromey <tom@tromey.com>
89
90 * psymtab.c (require_partial_symbols): Check that 'sf' is not
91 null.
92 * xcoffread.c (xcoff_sym_fns): Update.
93 * symfile.h (struct sym_fns) <qf>: Remove.
94 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
95 * symfile-debug.c (objfile::has_partial_symbols)
96 (objfile::find_last_source_symtab)
97 (objfile::forget_cached_source_info)
98 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
99 (objfile::print_stats, objfile::dump)
100 (objfile::expand_symtabs_for_function)
101 (objfile::expand_all_symtabs)
102 (objfile::expand_symtabs_with_fullname)
103 (objfile::map_matching_symbols)
104 (objfile::expand_symtabs_matching)
105 (objfile::find_pc_sect_compunit_symtab)
106 (objfile::map_symbol_filenames)
107 (objfile::find_compunit_symtab_by_address)
108 (objfile::lookup_global_symbol_language, debug_sym_fns)
109 (install_symfile_debug_logging): Update.
110 * objfiles.h (struct objfile) <qf>: New member.
111 * mipsread.c (ecoff_sym_fns): Update.
112 * machoread.c (macho_sym_fns): Update.
113 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
114 Don't declare.
115 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
116 * dbxread.c (aout_sym_fns): Update.
117 * coffread.c (coff_sym_fns): Update.
118
119 2021-03-20 Tom Tromey <tom@tromey.com>
120
121 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
122 (expand_symtabs_file_matcher_ftype)
123 (expand_symtabs_symbol_matcher_ftype)
124 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
125 Move to quick-symbol.h.
126 * quick-symbol.h: New file.
127
128 2021-03-20 Tom Tromey <tom@tromey.com>
129
130 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
131 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
132 (basic_lookup_transparent_type_quick)
133 (find_pc_sect_compunit_symtab, find_symbol_at_address)
134 (find_line_symtab, global_symbol_searcher::expand_symtabs):
135 Update.
136 * symmisc.c (print_objfile_statistics, dump_objfile)
137 (maintenance_expand_symtabs): Update.
138 * symfile.c (symbol_file_add_with_addrs)
139 (expand_symtabs_matching, map_symbol_filenames): Update.
140 * symfile-debug.c (objfile::has_partial_symbols)
141 (objfile::find_last_source_symtab)
142 (objfile::forget_cached_source_info)
143 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
144 (objfile::print_stats, objfile::dump)
145 (objfile::expand_symtabs_for_function)
146 (objfile::expand_all_symtabs)
147 (objfile::expand_symtabs_with_fullname)
148 (objfile::map_matching_symbols)
149 (objfile::expand_symtabs_matching)
150 (objfile::find_pc_sect_compunit_symtab)
151 (objfile::map_symbol_filenames)
152 (objfile::find_compunit_symtab_by_address)
153 (objfile::lookup_global_symbol_language): New methods.
154 (debug_sym_quick_functions): Remove.
155 (debug_sym_fns, install_symfile_debug_logging): Update.
156 * source.c (forget_cached_source_info_for_objfile)
157 (select_source_symtab): Update.
158 * objfiles.h (struct objfile): Add methods corresponding to
159 quick_symbol_functions.
160 * objfiles.c (objfile::has_partial_symbols): Move to
161 symfile-debug.c.
162 * linespec.c (iterate_over_all_matching_symtabs): Update.
163 * cp-support.c (add_symbol_overload_list_qualified): Update.
164 * ada-lang.c (add_nonlocal_symbols): Update.
165
166 2021-03-20 Tom Tromey <tom@tromey.com>
167
168 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
169 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
170 bool.
171 * symfile-debug.c (debug_qf_has_symbols): Return bool.
172 * psymtab.c (psym_has_symbols): Return bool.
173 * objfiles.c (objfile::has_partial_symbols): Return bool.
174 * dwarf2/read.c (dw2_has_symbols): Return bool.
175
176 2021-03-20 Tom Tromey <tom@tromey.com>
177
178 * symfile.c (read_symbols): Update.
179 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
180 (objfile_has_partial_symbols): Don't declare.
181 * objfiles.c (objfile::has_partial_symbols): Rename from
182 objfile_has_partial_symbols.
183 (objfile_has_symbols, have_partial_symbols): Update.
184 * elfread.c (elf_symfile_read): Update.
185 * dwarf2/read.c (dwarf2_has_info): Update.
186 * coffread.c (coff_symfile_read): Update.
187
188 2021-03-20 Tom Tromey <tom@tromey.com>
189
190 * coffread.c: Include dwarf2/public.h.
191 * dwarf2/frame.c: Include dwarf2/public.h.
192 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
193 * dwarf2/public.h: New file.
194 * dwarf2/read.c: Include dwarf2/public.h.
195 * elfread.c: Include dwarf2/public.h.
196 * machoread.c: Include dwarf2/public.h.
197 * symfile.h (dwarf2_has_info, enum dw_index_kind)
198 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
199 (dwarf2_build_frame_info): Move to dwarf2/public.h.
200 * xcoffread.c: Include dwarf2/public.h.
201
202 2021-03-20 Tom Tromey <tom@tromey.com>
203
204 * symfile.h (enum dwarf2_section_enum)
205 (dwarf2_get_section_info): Move to dwarf2/read.h.
206 * dwarf2/read.h (enum dwarf2_section_enum)
207 (dwarf2_get_section_info): Move from symfile.h.
208
209 2021-03-19 Pedro Alves <pedro@palves.net>
210
211 * thread.c (any_thread_of_inferior): Check if there's a selected
212 thread before calling inferior_thread().
213
214 2021-03-18 Tom Tromey <tromey@adacore.com>
215
216 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
217 get_DW_UT_name.
218 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
219 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
220
221 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * python/py-param.c (get_set_value): Update header comment.
224
225 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
226
227 * infrun.c (check_multi_target_resumption): Remove argument to
228 all_non_exited_inferiors.
229
230 2021-03-16 Christian Biesinger <cbiesinger@google.com>
231
232 * windows-nat.c (windows_init_thread_list): Add message to
233 debug log.
234
235 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
238 well as PyLong_Check for Python 2.
239
240 2021-03-15 Tom Tromey <tromey@adacore.com>
241
242 PR build/27579:
243 * rust-exp.y (maker_map): Use gdb::hash_enum.
244 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
245
246 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
247
248 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
249 end of debug print.
250
251 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
252
253 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
254 parameter, adjust caller.
255
256 2021-03-15 Tom Tromey <tromey@adacore.com>
257
258 * ada-exp.y (simple_exp): Always push a result for unary '+'.
259
260 2021-03-15 Tom Tromey <tromey@adacore.com>
261
262 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
263 ada_ensure_varsize_limit.
264
265 2021-03-15 Tom Tromey <tromey@adacore.com>
266
267 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
268 fixed-point.
269 * ada-exp.y (maybe_overload): New function.
270 (ada_wrap_overload): New function.
271 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
272 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
273 (or_else_exp, xor_exp, primary): Update.
274
275 2021-03-15 Tom Tromey <tromey@adacore.com>
276
277 PR ada/27545:
278 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
279 call for tagged type.
280
281 2021-03-15 Tom Tromey <tromey@adacore.com>
282
283 * ada-exp.y (exp1): Handle resolution of the right hand side of an
284 assignment.
285
286 2021-03-15 Tom Tromey <tromey@adacore.com>
287
288 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
289 container.
290 (ada_assign_operation::evaluate): Update.
291 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
292 Change return type.
293
294 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
295
296 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
297
298 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
299
300 * python/python.c (gdbpy_source_objfile_script): Use
301 make_scoped_restore to restore gdbpy_current_objfile.
302 (gdbpy_execute_objfile_script): Likewise.
303
304 2021-03-14 Tom Tromey <tom@tromey.com>
305
306 * dwarf2/read.c (read_attribute_value): Use cu_header
307 consistently.
308
309 2021-03-14 Tom Tromey <tom@tromey.com>
310
311 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
312 (peek_die_abbrev): Use reader.abfd.
313
314 2021-03-14 Tom Tromey <tom@tromey.com>
315
316 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
317 m_header_read_in.
318
319 2021-03-13 Tom Tromey <tom@tromey.com>
320
321 * dwarf2/read.c (struct partial_die_info): Update.
322 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
323 (load_partial_dies, partial_die_info::partial_die_info): Update.
324 * dwarf2/abbrev.h (lookup_abbrev): Constify.
325
326 2021-03-13 Tom Tromey <tom@tromey.com>
327
328 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
329
330 2021-03-12 Christian Biesinger <cbiesinger@google.com>
331
332 PR threads/27239
333 * cp-support.c: Use scoped_segv_handler_restore.
334 * event-top.c (thread_local_segv_handler): Made static.
335 (scoped_segv_handler_restore::scoped_segv_handler_restore):
336 New function.
337 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
338 function.
339 * event-top.h (class scoped_segv_handler_restore): New class.
340 (thread_local_segv_handler): Removed.
341
342 2021-03-10 Tom Tromey <tromey@adacore.com>
343
344 * parser-defs.h (parser_state): Change completion to bool.
345 <parse_completion>: Likewise.
346 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
347 (ada_resolve_variable, ada_resolve_function): Update.
348 * ada-lang.c (ada_find_operator_symbol): Change
349 parse_completion to bool.
350 (ada_resolve_funcall, ada_resolve_variable)
351 (ada_resolve_function): Likewise.
352
353 2021-03-09 Tom Tromey <tromey@adacore.com>
354
355 * eval.c (operation::evaluate_funcall): Use function formal
356 parameter types when evaluating.
357
358 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
361 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
362 and owner to m_owner.
363
364 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
365
366 * f-exp.h (eval_op_f_loc): Declare.
367 (expr::fortran_loc_operation): New typedef.
368 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
369 UNOP_INTRINSIC.
370 (f77_keywords): Add LOC keyword.
371 * f-lang.c (eval_op_f_loc): New function.
372 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
373
374 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * f-exp.h (eval_op_f_array_shape): Declare.
377 (fortran_array_shape_operation): New type.
378 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
379 UNOP_INTRINSIC.
380 (f77_keywords): Add "shape" keyword.
381 * f-lang.c (fortran_array_shape): New function.
382 (eval_op_f_array_shape): New function.
383 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
384
385 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
388 of this function.
389 (expr::fortran_array_size_1arg): New type.
390 (expr::fortran_array_size_2arg): Likewise.
391 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
392 UNOP_OR_BINOP_INTRINSIC.
393 (f77_keywords): Add "size" keyword.
394 * f-lang.c (fortran_array_size): New function.
395 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
396 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
397
398 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * f-exp.h (eval_op_f_rank): Declare.
401 (expr::fortran_rank_operation): New typedef.
402 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
403 UNOP_INTRINSIC.
404 (f77_keywords): Add "rank" keyword.
405 * f-lang.c (eval_op_f_rank): New function.
406 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
407
408 2021-03-08 Tom Tromey <tom@tromey.com>
409
410 * printcmd.c (set_command): Remove null check.
411 * value.c (init_if_undefined_command): Remove null check.
412
413 2021-03-08 Tom Tromey <tom@tromey.com>
414
415 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
416 Update.
417 * p-exp.y (variable): Update.
418 * go-exp.y (variable): Update.
419 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
420 Remove overload for objfile.
421 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
422 parameter.
423 (check_objfile): Likewise.
424 (dump_for_expression): Likewise. Remove overload for objfile.
425 (class var_msym_value_operation): Use bound_minimal_symbol.
426 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
427 parameter.
428 (var_msym_value_operation::evaluate_for_address)
429 (var_msym_value_operation::evaluate_for_sizeof)
430 (var_msym_value_operation::evaluate_for_cast): Update.
431 * d-exp.y (PrimaryExpression): Update.
432 * c-exp.y (variable): Update.
433 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
434 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
435 Update.
436 * ada-exp.y (write_var_or_type): Update.
437
438 2021-03-08 Tom Tromey <tom@tromey.com>
439
440 * parser-defs.h (exp_uses_objfile): Return bool.
441 * parse.c (exp_uses_objfile): Return bool.
442
443 2021-03-08 Tom Tromey <tom@tromey.com>
444
445 * value.h (eval_skip_value): Don't declare.
446 * opencl-lang.c (eval_opencl_assign): Update.
447 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
448 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
449 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
450 * expression.h (enum noside) <EVAL_SKIP>: Remove.
451 * expop.h (typeof_operation::evaluate)
452 (decltype_operation::evaluate, unop_addr_operation::evaluate)
453 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
454 (cxx_cast_operation::evaluate): Update.
455 * eval.c (eval_skip_value): Remove.
456 (eval_op_scope, eval_op_var_entry_value)
457 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
458 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
459 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
460 (eval_op_binary, eval_op_subscript, eval_op_equal)
461 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
462 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
463 (eval_op_complement, eval_op_lognot, eval_op_ind)
464 (eval_op_memval, eval_op_preinc, eval_op_predec)
465 (eval_op_postinc, eval_op_postdec, eval_op_type)
466 (eval_binop_assign_modify, eval_op_objc_msgcall)
467 (eval_multi_subscript, logical_and_operation::evaluate)
468 (logical_or_operation::evaluate, array_operation::evaluate)
469 (operation::evaluate_for_cast)
470 (var_msym_value_operation::evaluate_for_cast)
471 (var_value_operation::evaluate_for_cast): Update.
472 * c-lang.c (c_string_operation::evaluate): Update.
473 * c-exp.h (objc_nsstring_operation::evaluate)
474 (objc_selector_operation::evaluate): Update.
475 * ada-lang.c (ada_assign_operation::evaluate)
476 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
477 (ada_atr_size): Update.
478
479 2021-03-08 Tom Tromey <tom@tromey.com>
480
481 * eval.c: Merge "namespace" scopes.
482
483 2021-03-08 Tom Tromey <tom@tromey.com>
484
485 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
486 <release>: Inline.
487 * parse.c (expr_builder::expr_builder, expr_builder::release):
488 Remove.
489
490 2021-03-08 Tom Tromey <tom@tromey.com>
491
492 * parse.c (expression::expression, expression::~expression):
493 Remove.
494 * expression.h (struct expression): Inline constructor. Remove
495 destructor.
496
497 2021-03-08 Tom Tromey <tom@tromey.com>
498
499 * std-operator.def (BINOP_END): Remove.
500 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
501 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
502 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
503 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
504 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
505 BINOP_END.
506
507 2021-03-08 Tom Tromey <tom@tromey.com>
508
509 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
510
511 2021-03-08 Tom Tromey <tom@tromey.com>
512
513 * std-operator.def (OP_EXTENDED0): Remove.
514
515 2021-03-08 Tom Tromey <tom@tromey.com>
516
517 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
518 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
519 Remove.
520
521 2021-03-08 Tom Tromey <tom@tromey.com>
522
523 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
524 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
525
526 2021-03-08 Tom Tromey <tom@tromey.com>
527
528 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
529 * ada-lang.c (ada_binop_minmax): Update.
530 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
531 Use BINOP_MIN and BINOP_MAX.
532
533 2021-03-08 Tom Tromey <tom@tromey.com>
534
535 * value.h (evaluate_subexp_with_coercion): Don't declare.
536 * parse.c (exp_descriptor_standard): Remove.
537 (expr_builder::expr_builder, expr_builder::release): Update.
538 (expression::expression): Remove size_t parameter.
539 (expression::~expression): Simplify.
540 (expression::resize): Remove.
541 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
542 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
543 (write_exp_elt_longcst, write_exp_elt_floatcst)
544 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
545 (write_exp_string_vector, write_exp_bitstring): Remove.
546 * p-lang.h (class pascal_language) <opcode_print_table,
547 op_print_tab>: Remove.
548 * p-lang.c (pascal_language::op_print_tab): Remove.
549 * opencl-lang.c (class opencl_language) <opcode_print_table>:
550 Remove.
551 * objc-lang.c (objc_op_print_tab): Remove.
552 (class objc_language) <opcode_print_table>: Remove.
553 * m2-lang.h (class m2_language) <opcode_print_table,
554 op_print_tab>: Remove.
555 * m2-lang.c (m2_language::op_print_tab): Remove.
556 * language.h (struct language_defn) <post_parser, expression_ops,
557 opcode_print_table>: Remove.
558 * language.c (language_defn::expression_ops)
559 (auto_or_unknown_language::opcode_print_table): Remove.
560 * go-lang.h (class go_language) <opcode_print_table,
561 op_print_tab>: Remove.
562 * go-lang.c (go_language::op_print_tab): Remove.
563 * f-lang.h (class f_language) <opcode_print_table>: Remove
564 <op_print_tab>: Remove.
565 * f-lang.c (f_language::op_print_tab): Remove.
566 * expression.h (union exp_element): Remove.
567 (struct expression): Remove size_t parameter from constructor.
568 <resize>: Remove.
569 <first_opcode>: Update.
570 <nelts, elts>: Remove.
571 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
572 (evaluate_subexp_standard, print_expression, op_string)
573 (dump_raw_expression): Don't declare.
574 * expprint.c (print_expression, print_subexp)
575 (print_subexp_funcall, print_subexp_standard, op_string)
576 (dump_raw_expression, dump_subexp, dump_subexp_body)
577 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
578 (dump_prefix_expression): Update.
579 * eval.c (evaluate_subexp): Remove.
580 (evaluate_expression, evaluate_type): Update.
581 (evaluate_subexpression_type): Remove.
582 (fetch_subexp_value): Remove "pc" parameter. Update.
583 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
584 (evaluate_subexp_standard, evaluate_subexp_for_address)
585 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
586 (evaluate_subexp_for_cast): Remove.
587 (parse_and_eval_type): Update.
588 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
589 * d-lang.c (d_op_print_tab): Remove.
590 (class d_language) <opcode_print_table>: Remove.
591 * c-lang.h (c_op_print_tab): Don't declare.
592 * c-lang.c (c_op_print_tab): Remove.
593 (class c_language, class cplus_language, class asm_language, class
594 minimal_language) <opcode_print_table>: Remove.
595 * breakpoint.c (update_watchpoint, watchpoint_check)
596 (watchpoint_exp_is_const, watch_command_1): Update.
597 * ax-gdb.h (union exp_element): Don't declare.
598 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
599 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
600 (gen_expr_binop_rest): Remove.
601 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
602 * ada-lang.c (ada_op_print_tab): Remove.
603 (class ada_language) <post_parser, opcode_print_table>: Remove.
604
605 2021-03-08 Tom Tromey <tom@tromey.com>
606
607 * go-lang.c (go_language::expression_ops): Don't declare.
608 * go-lang.h (class go_language) <expression_ops>: Remove.
609 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
610 Remove.
611 (class opencl_language) <expression_ops>: Remove.
612 * d-lang.c (class d_language) <expression_ops>: Remove.
613 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
614 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
615 (class c_language, class cplus_language, class asm_language)
616 (class minimal_language) <expression_ops>: Remove.
617
618 2021-03-08 Tom Tromey <tom@tromey.com>
619
620 * ada-lang.c (resolve_subexp, replace_operator_with_call)
621 (evaluate_subexp_type, assign_aggregate)
622 (aggregate_assign_positional, aggregate_assign_from_choices)
623 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
624 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
625 (ada_operator_check, ada_forward_operator_length)
626 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
627 Remove.
628 (post_parser): Update.
629 (class ada_language) <expresssion_ops>: Remove.
630
631 2021-03-08 Tom Tromey <tom@tromey.com>
632
633 * m2-lang.h (class m2_language) <expresssion_ops,
634 exp_descriptor_modula2>: Remove.
635 * m2-lang.c (evaluate_subexp_modula2)
636 (m2_language::exp_descriptor_modula2): Remove.
637
638 2021-03-08 Tom Tromey <tom@tromey.com>
639
640 * f-lang.h (class f_language) <expresssion_ops>: Remove.
641 <exp_descriptor_tab>: Remove.
642 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
643 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
644 (print_subexp_f, dump_subexp_body_f, operator_check_f)
645 (f_language::exp_descriptor_tab, fortran_prepare_argument):
646 Remove.
647
648 2021-03-08 Tom Tromey <tom@tromey.com>
649
650 * rust-lang.h (class rust_language) <expression_ops,
651 exp_descriptor_tab>: Remove.
652 * rust-lang.c (rust_evaluate_funcall): Remove.
653 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
654 EVAL_SKIP.
655 (rust_evaluate_subexp): Remove.
656 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
657 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
658 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
659
660 2021-03-08 Tom Tromey <tom@tromey.com>
661
662 * ada-exp.y: Create operations.
663 (empty_stoken): Remove.
664 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
665 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
666 (components): New global.
667 (push_component, choice_component, pop_component, pop_components):
668 New functions.
669 (associations): New global
670 (push_association, pop_association, pop_associations): New
671 functions.
672 (ada_parse): Update.
673 (write_var_from_sym, write_int): Create operations.
674 (write_exp_op_with_string): Remove.
675 (write_object_renaming, write_selectors, write_ambiguous_var)
676 (write_var_or_type, write_name_assoc): Create operations.
677 * ada-lang.h (ada_index_type): Declare.
678 * ada-lang.c (ada_index_type): No longer static.
679
680 2021-03-08 Tom Tromey <tom@tromey.com>
681
682 * f-exp.y: Create operations.
683 (f_language::parser): Update.
684
685 2021-03-08 Tom Tromey <tom@tromey.com>
686
687 * m2-exp.y: Create operations.
688 (m2_language::parser): Update.
689
690 2021-03-08 Tom Tromey <tom@tromey.com>
691
692 * p-exp.y: Create operations.
693 (pascal_language::parser): Update.
694
695 2021-03-08 Tom Tromey <tom@tromey.com>
696
697 * d-exp.y: Create operations.
698 (d_parse): Update.
699
700 2021-03-08 Tom Tromey <tom@tromey.com>
701
702 * go-exp.y: Create operations.
703 (go_language::parser): Update.
704
705 2021-03-08 Tom Tromey <tom@tromey.com>
706
707 * objc-lang.c (end_msglist): Create operations.
708 * c-exp.y: Change parser to create operations.
709 (write_destructor_name): Remove.
710 (c_parse): Update.
711
712 2021-03-08 Tom Tromey <tom@tromey.com>
713
714 * rust-exp.y: Create operations.
715 (rust_parser::convert_params_to_expression): Change return type.
716 (binop_maker_ftype): New typedef.
717 (maker_map): New global.
718 (rust_parser::convert_ast_to_expression): Change return type.
719 (rust_language::parser): Update.
720 (_initialize_rust_exp): Initialize maker_map.
721
722 2021-03-08 Tom Tromey <tom@tromey.com>
723
724 * stap-probe.c (binop_maker_ftype): New typedef.
725 (stap_maker_map): New global.
726 (stap_make_binop): New function.
727 (stap_parse_register_operand): Return operation_up.
728 (stap_parse_single_operand, stap_parse_argument_conditionally)
729 (stap_parse_argument_1): Likewise.
730 (stap_parse_argument): Create operations.
731 (stap_probe::parse_arguments): Update.
732 (_initialize_stap_probe): Initialize stap_maker_map.
733 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
734 type.
735 * i386-tdep.h (i386_stap_parse_special_token): Change return
736 type.
737 * i386-tdep.c (i386_stap_parse_special_token_triplet)
738 (i386_stap_parse_special_token_three_arg_disp)
739 (i386_stap_parse_special_token): Change return type.
740 * gdbarch.sh (stap_parse_special_token): Change return type.
741 * gdbarch.c: Rebuild.
742 * gdbarch.h: Rebuild.
743 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
744 type.
745 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
746 return type.
747
748 2021-03-08 Tom Tromey <tom@tromey.com>
749
750 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
751 * gdbarch.h: Rebuild.
752 * gdbarch.c: Rebuild.
753 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
754 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
755 return type.
756 (amd64_dtrace_parse_probe_argument): Update.
757
758 2021-03-08 Tom Tromey <tom@tromey.com>
759
760 * parser-defs.h (struct parser_state) <push, push_new,
761 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
762 wrap2>: New methods.
763 <m_operations>: New member.
764 * parse.c (parser_state::push_c_string)
765 (parser_state::push_symbol, parser_state::push_dollar): New
766 methods.
767
768 2021-03-08 Tom Tromey <tom@tromey.com>
769
770 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
771 New member.
772 (struct parser_state) <mark_struct_expression>: New method.
773 * parse.c (parser_state::mark_struct_expression): Update assert.
774 (parser_state::mark_struct_expression): New method.
775 (parser_state::mark_completion_tag): Update assert.
776 (parse_expression_for_completion): Handle expout_last_op.
777
778 2021-03-08 Tom Tromey <tom@tromey.com>
779
780 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
781 now in superclass.
782 * value.h (fetch_subexp_value): Add "op" parameter.
783 * value.c (init_if_undefined_command): Update.
784 * tracepoint.c (validate_actionline, encode_actions_1): Update.
785 * stap-probe.c (stap_probe::compile_to_ax): Update.
786 * printcmd.c (set_command): Update.
787 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
788 Update.
789 * parser-defs.h (struct expr_builder) <set_operation>: New
790 method.
791 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
792 * expression.h (struct expression) <first_opcode>: Update.
793 <op>: New member.
794 * expprint.c (dump_raw_expression, dump_prefix_expression):
795 Update.
796 * expop.h (class var_value_operation) <get_symbol>: New method.
797 (class register_operation) <get_name>: New method.
798 (class equal_operation): No longer a typedef, now a subclass.
799 (class unop_memval_operation) <get_type>: New method.
800 (class assign_operation) <get_lhs>: New method.
801 (class unop_cast_operation) <get_type>: New method.
802 * eval.c (evaluate_expression, evaluate_type)
803 (evaluate_subexpression_type): Update.
804 (fetch_subexp_value): Add "op" parameter.
805 (parse_and_eval_type): Update.
806 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
807 * breakpoint.c (update_watchpoint, watchpoint_check)
808 (watchpoint_exp_is_const, watch_command_1): Update.
809 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
810 Update.
811
812 2021-03-08 Tom Tromey <tom@tromey.com>
813
814 * ada-lang.c (ada_value_binop): Do not use op_string.
815
816 2021-03-08 Tom Tromey <tom@tromey.com>
817
818 * expprint.c (dump_for_expression): New overload.
819 * expop.h (check_objfile, dump_for_expression): Declare new
820 overloads.
821 * ada-lang.c (check_objfile): New overload.
822 (assign_component, ada_aggregate_component::uses_objfile)
823 (ada_aggregate_component::dump, ada_aggregate_component::assign)
824 (ada_aggregate_component::assign_aggregate)
825 (ada_positional_component::uses_objfile)
826 (ada_positional_component::dump, ada_positional_component::assign)
827 (ada_discrete_range_association::uses_objfile)
828 (ada_discrete_range_association::dump)
829 (ada_discrete_range_association::assign)
830 (ada_name_association::uses_objfile, ada_name_association::dump)
831 (ada_name_association::assign)
832 (ada_choices_component::uses_objfile, ada_choices_component::dump)
833 (ada_choices_component::assign)
834 (ada_others_component::uses_objfile, ada_others_component::dump)
835 (ada_others_component::assign, ada_assign_operation::evaluate):
836 New methods.
837 * ada-exp.h (ada_string_operation) <get_name>: New method.
838 (class ada_assign_operation): New.
839 (class ada_component): New.
840 (ada_component_up): New typedef.
841 (class ada_aggregate_operation, class ada_aggregate_component)
842 (class ada_positional_component, class ada_others_component)
843 (class ada_association): New.
844 (ada_association_up): New typedef.
845 (class ada_choices_component)
846 (class ada_discrete_range_association)
847 (class ada_name_association): New.
848
849 2021-03-08 Tom Tromey <tom@tromey.com>
850
851 * ada-lang.c (ada_var_value_operation::resolve)
852 (ada_funcall_operation::resolve)
853 (ada_ternop_slice_operation::resolve): New methods.
854 * ada-exp.h (struct ada_resolvable): New.
855 (class ada_var_value_operation): Derive from ada_resolvable.
856 <get_block, resolve>: New methods.
857 (class ada_funcall_operation): Derive from ada_resolvable.
858 <resolve>: New method.
859 (class ada_ternop_slice_operation): Derive from ada_resolvable.
860 <resolve>: New method.
861
862 2021-03-08 Tom Tromey <tom@tromey.com>
863
864 * ada-lang.c (ada_funcall_operation::evaluate): New method.
865 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
866 method.
867 (class ada_funcall_operation): New.
868
869 2021-03-08 Tom Tromey <tom@tromey.com>
870
871 * ada-lang.c (ada_structop_operation::evaluate): New method.
872 * ada-exp.h (class ada_structop_operation): New.
873
874 2021-03-08 Tom Tromey <tom@tromey.com>
875
876 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
877 * ada-exp.h (class ada_unop_ind_operation): New.
878
879 2021-03-08 Tom Tromey <tom@tromey.com>
880
881 * ada-lang.c (ada_binop_exp): No longer static.
882 * ada-exp.h (ada_binop_exp_operation): New typedef.
883
884 2021-03-08 Tom Tromey <tom@tromey.com>
885
886 * ada-lang.c (ada_val_atr): No longer static.
887 (ada_atr_val_operation::evaluate): New method.
888 * ada-exp.h (class ada_atr_val_operation): New.
889
890 2021-03-08 Tom Tromey <tom@tromey.com>
891
892 * ada-lang.c (ada_pos_atr): No longer static.
893 * ada-exp.h (ada_pos_operation): New typedef.
894
895 2021-03-08 Tom Tromey <tom@tromey.com>
896
897 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
898 parameters.
899 (ada_evaluate_subexp): Use it.
900
901 2021-03-08 Tom Tromey <tom@tromey.com>
902
903 * ada-lang.c (ada_binop_minmax): No longer static.
904 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
905 New typedefs.
906
907 2021-03-08 Tom Tromey <tom@tromey.com>
908
909 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
910 New method.
911 * ada-exp.h (class ada_var_msym_value_operation): New.
912
913 2021-03-08 Tom Tromey <tom@tromey.com>
914
915 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
916 (ada_var_value_operation::evaluate): New methods.
917 * ada-exp.h (class ada_var_value_operation): New.
918
919 2021-03-08 Tom Tromey <tom@tromey.com>
920
921 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
922 * ada-exp.h (class ada_unop_atr_operation): New.
923
924 2021-03-08 Tom Tromey <tom@tromey.com>
925
926 * ada-lang.c (ada_binop_in_bounds): No longer static.
927 * ada-exp.h (class ada_binop_in_bounds_operation): New.
928
929 2021-03-08 Tom Tromey <tom@tromey.com>
930
931 * ada-lang.c (ada_ternop_slice): No longer static.
932 * ada-exp.h (class ada_ternop_slice_operation): New.
933
934 2021-03-08 Tom Tromey <tom@tromey.com>
935
936 * ada-exp.h (ada_bitwise_operation): New template class.
937 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
938 (ada_bitwise_xor_operation): New typedefs.
939
940 2021-03-08 Tom Tromey <tom@tromey.com>
941
942 * ada-lang.c (ada_equal_binop): No longer static.
943 * ada-exp.h (class ada_binop_equal_operation): New.
944
945 2021-03-08 Tom Tromey <tom@tromey.com>
946
947 * ada-lang.c (ada_mult_binop): No longer static.
948 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
949 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
950
951 2021-03-08 Tom Tromey <tom@tromey.com>
952
953 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
954 * ada-exp.h (class ada_binop_addsub_operation): New.
955
956 2021-03-08 Tom Tromey <tom@tromey.com>
957
958 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
959 (ada_resolve_variable): Declare.
960 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
961 (ada_resolve_variable): New functions.
962 (resolve_subexp): Update.
963
964 2021-03-08 Tom Tromey <tom@tromey.com>
965
966 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
967 method.
968 * c-exp.h (class opencl_ternop_cond_operation): New.
969
970 2021-03-08 Tom Tromey <tom@tromey.com>
971
972 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
973 method.
974 * c-exp.h (class opencl_logical_binop_operation): New.
975
976 2021-03-08 Tom Tromey <tom@tromey.com>
977
978 * opencl-lang.c (opencl_structop_operation::evaluate): New
979 method.
980 * c-exp.h (class opencl_structop_operation): New.
981
982 2021-03-08 Tom Tromey <tom@tromey.com>
983
984 * opencl-lang.c (opencl_logical_not): No longer static. Change
985 parameters.
986 (evaluate_subexp_opencl): Update.
987 * c-exp.h (opencl_notequal_operation): New typedef.
988
989 2021-03-08 Tom Tromey <tom@tromey.com>
990
991 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
992 static. Change parameters.
993 (eval_opencl_assign): No longer static. Add "op" parameter.
994 (evaluate_subexp_opencl): Update.
995 * c-exp.h (opencl_binop_operation): New template class.
996 (opencl_assign_operation, opencl_equal_operation)
997 (opencl_notequal_operation, opencl_less_operation)
998 (opencl_gtr_operation, opencl_geq_operation)
999 (opencl_leq_operation): New typedefs.
1000
1001 2021-03-08 Tom Tromey <tom@tromey.com>
1002
1003 * opencl-lang.c (opencl_value_cast): No longer static.
1004 * c-exp.h (opencl_cast_type_operation): New typedef.
1005
1006 2021-03-08 Tom Tromey <tom@tromey.com>
1007
1008 * f-exp.h (eval_op_f_allocated): Declare.
1009 (fortran_allocated_operation): New typedef.
1010 * f-lang.c (eval_op_f_allocated): No longer static.
1011
1012 2021-03-08 Tom Tromey <tom@tromey.com>
1013
1014 * f-lang.c (eval_op_f_associated): New functions.
1015 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1016 typedefs.
1017
1018 2021-03-08 Tom Tromey <tom@tromey.com>
1019
1020 * f-lang.c (fortran_bound_1arg::evaluate)
1021 (fortran_bound_2arg::evaluate): New methods.
1022 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1023 New.
1024
1025 2021-03-08 Tom Tromey <tom@tromey.com>
1026
1027 * expop.h (class unop_addr_operation) <get_expression>: New
1028 method.
1029 * f-lang.c (fortran_undetermined::value_subarray)
1030 (fortran_undetermined::evaluate): New methods.
1031 (fortran_prepare_argument): New overload.
1032 * f-exp.h (class fortran_range_operation)
1033 (class fortran_undetermined): New classes.
1034
1035 2021-03-08 Tom Tromey <tom@tromey.com>
1036
1037 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1038 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1039 method.
1040
1041 2021-03-08 Tom Tromey <tom@tromey.com>
1042
1043 * expression.h (class operation) <evaluate_funcall>: New methods.
1044 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1045 (class var_value_operation) <evaluate_funcall>: New method.
1046 (class structop_base_operation) <evaluate_funcall>: New method.
1047 (class var_msym_value_operation) <evaluate_funcall>: New method.
1048 (class structop_member_base): New class.
1049 (class structop_member_operation): Derive from
1050 structop_member_base.
1051 (class structop_mptr_operation): Derive from
1052 structop_member_base.
1053 (class funcall_operation): New class.
1054 * eval.c (operation::evaluate_funcall)
1055 (var_value_operation::evaluate_funcall)
1056 (scope_operation::evaluate_funcall)
1057 (structop_member_base::evaluate_funcall)
1058 (structop_base_operation::evaluate_funcall): New methods.
1059
1060 2021-03-08 Tom Tromey <tom@tromey.com>
1061
1062 * expop.h (class array_operation): New.
1063 * eval.c (array_operation::evaluate_struct_tuple)
1064 (array_operation::evaluate): New methods.
1065
1066 2021-03-08 Tom Tromey <tom@tromey.com>
1067
1068 * expop.h (class adl_func_operation): New.
1069 * eval.c (adl_func_operation::evaluate): New method.
1070
1071 2021-03-08 Tom Tromey <tom@tromey.com>
1072
1073 * ada-lang.c (ada_unop_in_range): No longer static.
1074 * ada-exp.h (class ada_unop_range_operation): New.
1075
1076 2021-03-08 Tom Tromey <tom@tromey.com>
1077
1078 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1079 No longer static.
1080 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1081 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1082
1083 2021-03-08 Tom Tromey <tom@tromey.com>
1084
1085 * expop.h (class logical_and_operation)
1086 (class logical_or_operation): New.
1087 * eval.c (logical_and_operation::evaluate)
1088 (logical_or_operation::evaluate): New methods.
1089 * ax-gdb.c (logical_and_operation::do_generate_ax)
1090 (logical_or_operation::do_generate_ax): New methods.
1091
1092 2021-03-08 Tom Tromey <tom@tromey.com>
1093
1094 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1095 static.
1096 * m2-exp.h: New file.
1097
1098 2021-03-08 Tom Tromey <tom@tromey.com>
1099
1100 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1101 * rust-exp.h (class rust_aggregate_operation): New.
1102
1103 2021-03-08 Tom Tromey <tom@tromey.com>
1104
1105 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1106 No longer static.
1107 * rust-exp.h (class rust_struct_anon): New.
1108 (class rust_structop): New.
1109
1110 2021-03-08 Tom Tromey <tom@tromey.com>
1111
1112 * rust-lang.c (rust_range): No longer static.
1113 * rust-exp.h (class rust_range_operation): New.
1114
1115 2021-03-08 Tom Tromey <tom@tromey.com>
1116
1117 * rust-lang.c (rust_subscript): No longer static.
1118 * rust-exp.h (class rust_subscript_operation): New.
1119
1120 2021-03-08 Tom Tromey <tom@tromey.com>
1121
1122 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1123 parameter.
1124 (rust_evaluate_subexp): Update.
1125 * rust-exp.h (class rust_unop_ind_operation): New.
1126
1127 2021-03-08 Tom Tromey <tom@tromey.com>
1128
1129 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1130 longer static. Add "opcode" parameter.
1131 (rust_evaluate_subexp): Update.
1132 * rust-exp.h: New file.
1133
1134 2021-03-08 Tom Tromey <tom@tromey.com>
1135
1136 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1137 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1138 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1139 (evaluate_subexp_f): Update.
1140 * f-exp.h: New file.
1141
1142 2021-03-08 Tom Tromey <tom@tromey.com>
1143
1144 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1145 * ada-exp.h (class ada_ternop_range_operation): New.
1146
1147 2021-03-08 Tom Tromey <tom@tromey.com>
1148
1149 * ada-lang.c (ada_qual_operation::evaluate): New method.
1150 * ada-exp.h (class ada_qual_operation): New.
1151
1152 2021-03-08 Tom Tromey <tom@tromey.com>
1153
1154 * ada-lang.c (ada_string_operation::evaluate): New method.
1155 * ada-exp.h (class ada_string_operation): New.
1156
1157 2021-03-08 Tom Tromey <tom@tromey.com>
1158
1159 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1160 * ada-exp.h: New file.
1161
1162 2021-03-08 Tom Tromey <tom@tromey.com>
1163
1164 * expop.h (class multi_subscript_operation): New.
1165 * eval.c (multi_subscript_operation::evaluate): New method.
1166
1167 2021-03-08 Tom Tromey <tom@tromey.com>
1168
1169 * eval.c (objc_msgcall_operation::evaluate): New method.
1170 * c-exp.h (class objc_msgcall_operation): New.
1171
1172 2021-03-08 Tom Tromey <tom@tromey.com>
1173
1174 * expop.h (class var_value_operation): New.
1175 * eval.c (var_value_operation::evaluate)
1176 (var_value_operation::evaluate_for_address)
1177 (var_value_operation::evaluate_with_coercion)
1178 (var_value_operation::evaluate_for_sizeof)
1179 (var_value_operation::evaluate_for_cast): New methods.
1180 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1181
1182 2021-03-08 Tom Tromey <tom@tromey.com>
1183
1184 * expop.h (cxx_cast_ftype): New typedef.
1185 (cxx_cast_operation): New template.
1186 (dynamic_cast_operation, reinterpret_cast_operation): New
1187 typedefs.
1188
1189 2021-03-08 Tom Tromey <tom@tromey.com>
1190
1191 * expop.h (class unop_cast_type_operation): New.
1192 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1193 method.
1194
1195 2021-03-08 Tom Tromey <tom@tromey.com>
1196
1197 * expop.h (class unop_cast_operation): New.
1198 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1199
1200 2021-03-08 Tom Tromey <tom@tromey.com>
1201
1202 * expop.h (class assign_modify_operation): New.
1203 * eval.c (eval_binop_assign_modify): No longer static.
1204 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1205
1206 2021-03-08 Tom Tromey <tom@tromey.com>
1207
1208 * expop.h (class assign_operation): New.
1209 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1210
1211 2021-03-08 Tom Tromey <tom@tromey.com>
1212
1213 * expop.h (class type_instance_operation): New.
1214 * eval.c (type_instance_operation::evaluate): New method.
1215
1216 2021-03-08 Tom Tromey <tom@tromey.com>
1217
1218 * expop.h (class op_this_operation): New.
1219 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1220
1221 2021-03-08 Tom Tromey <tom@tromey.com>
1222
1223 * expop.h (class unop_memval_operation)
1224 (class unop_memval_type_operation): New.
1225 * eval.c (eval_op_memval): No longer static.
1226 (unop_memval_operation::evaluate_for_address)
1227 (unop_memval_type_operation::evaluate_for_address)
1228 (unop_memval_operation::evaluate_for_sizeof)
1229 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1230 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1231 (unop_memval_type_operation::do_generate_ax): New methods.
1232
1233 2021-03-08 Tom Tromey <tom@tromey.com>
1234
1235 * expop.h (class unop_alignof_operation): New.
1236 * eval.c (eval_op_alignof): No longer static.
1237
1238 2021-03-08 Tom Tromey <tom@tromey.com>
1239
1240 * expop.h (class unop_sizeof_operation): New.
1241 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1242
1243 2021-03-08 Tom Tromey <tom@tromey.com>
1244
1245 * expop.h (class unop_addr_operation): New.
1246 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1247
1248 2021-03-08 Tom Tromey <tom@tromey.com>
1249
1250 * expop.h (class typeid_operation): New.
1251
1252 2021-03-08 Tom Tromey <tom@tromey.com>
1253
1254 * expop.h (class decltype_operation): New.
1255
1256 2021-03-08 Tom Tromey <tom@tromey.com>
1257
1258 * expop.h (class typeof_operation): New.
1259
1260 2021-03-08 Tom Tromey <tom@tromey.com>
1261
1262 * expop.h (class type_operation): New.
1263 * eval.c (eval_op_type): No longer static.
1264
1265 2021-03-08 Tom Tromey <tom@tromey.com>
1266
1267 * expop.h (class unop_ind_base_operation)
1268 (class unop_ind_operation): New.
1269 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1270 (unop_ind_base_operation::evaluate_for_address)
1271 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1272 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1273
1274 2021-03-08 Tom Tromey <tom@tromey.com>
1275
1276 * expop.h (unop_incr_operation): New template.
1277 (preinc_operation, predec_operation, postinc_operation)
1278 (postdec_operation): New typedefs.
1279 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1280 (eval_op_postdec): No longer static.
1281
1282 2021-03-08 Tom Tromey <tom@tromey.com>
1283
1284 * expop.h (unary_ftype): New typedef.
1285 (unop_operation, usual_ax_binop_operation): New templates.
1286 (unary_plus_operation, unary_neg_operation)
1287 (unary_complement_operation, unary_logical_not_operation): New
1288 typedefs.
1289 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1290 (eval_op_lognot): No longer static.
1291 * ax-gdb.c (gen_expr_unop): New function.
1292
1293 2021-03-08 Tom Tromey <tom@tromey.com>
1294
1295 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1296
1297 2021-03-08 Tom Tromey <tom@tromey.com>
1298
1299 * expop.h (class repeat_operation): New.
1300 * eval.c (eval_op_repeat): No longer static. Remove "op"
1301 parameter.
1302 (evaluate_subexp_standard): Update.
1303 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1304
1305 2021-03-08 Tom Tromey <tom@tromey.com>
1306
1307 * expop.h (class comparison_operation): New.
1308 (equal_operation, notequal_operation, less_operation)
1309 (gtr_operation, geq_operation, leq_operation): New typedefs.
1310 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1311 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1312
1313 2021-03-08 Tom Tromey <tom@tromey.com>
1314
1315 * expop.h (class subscript_operation): New.
1316 * eval.c (eval_op_subscript): No longer static.
1317
1318 2021-03-08 Tom Tromey <tom@tromey.com>
1319
1320 * expop.h (class binop_operation, class usual_ax_binop_operation):
1321 New.
1322 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1323 (div_operation, rem_operation, lsh_operation, rsh_operation)
1324 (bitwise_and_operation, bitwise_ior_operation)
1325 (bitwise_xor_operation): New typedefs.
1326 * eval.c (eval_op_binary): No longer static.
1327
1328 2021-03-08 Tom Tromey <tom@tromey.com>
1329
1330 * expop.h (class sub_operation): New.
1331 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1332 (evaluate_subexp_standard): Update.
1333
1334 2021-03-08 Tom Tromey <tom@tromey.com>
1335
1336 * expop.h (class add_operation): New.
1337 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1338 (evaluate_subexp_standard): Update.
1339
1340 2021-03-08 Tom Tromey <tom@tromey.com>
1341
1342 * expop.h (class concat_operation): New.
1343 * eval.c (eval_op_concat): No longer static. Remove "op"
1344 parameter.
1345 (evaluate_subexp_standard): Update.
1346
1347 2021-03-08 Tom Tromey <tom@tromey.com>
1348
1349 * expop.h (class structop_member_operation)
1350 (class structop_mptr_operation): New.
1351 * eval.c (eval_op_member): No longer static.
1352
1353 2021-03-08 Tom Tromey <tom@tromey.com>
1354
1355 * expop.h (class structop_ptr_operation): New.
1356 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1357 parameter.
1358
1359 2021-03-08 Tom Tromey <tom@tromey.com>
1360
1361 * expop.h (class structop_base_operation)
1362 (class structop_operation): New.
1363 * eval.c (eval_op_structop_struct): No longer static.
1364
1365 2021-03-08 Tom Tromey <tom@tromey.com>
1366
1367 * expop.h (class complex_operation): New.
1368
1369 2021-03-08 Tom Tromey <tom@tromey.com>
1370
1371 * eval.c (eval_op_objc_selector): No longer static.
1372 * c-exp.h (class objc_selector_operation): New.
1373
1374 2021-03-08 Tom Tromey <tom@tromey.com>
1375
1376 * eval.c: Include c-exp.h.
1377 * c-exp.h (class objc_nsstring_operation): New.
1378
1379 2021-03-08 Tom Tromey <tom@tromey.com>
1380
1381 * c-lang.c (c_string_operation::evaluate): New method.
1382 * c-exp.h: New file.
1383
1384 2021-03-08 Tom Tromey <tom@tromey.com>
1385
1386 * expop.h (class ternop_cond_operation): New.
1387 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1388
1389 2021-03-08 Tom Tromey <tom@tromey.com>
1390
1391 * expop.h (class ternop_slice_operation): New.
1392 * eval.c (eval_op_ternop): No longer static.
1393
1394 2021-03-08 Tom Tromey <tom@tromey.com>
1395
1396 * expop.h (class string_operation): New.
1397 * eval.c (eval_op_string): No longer static.
1398
1399 2021-03-08 Tom Tromey <tom@tromey.com>
1400
1401 * expop.h (class internalvar_operation): New.
1402 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1403
1404 2021-03-08 Tom Tromey <tom@tromey.com>
1405
1406 * expop.h (class bool_operation): New.
1407
1408 2021-03-08 Tom Tromey <tom@tromey.com>
1409
1410 * expop.h (class register_operation): New.
1411 * eval.c (eval_op_register): No longer static.
1412 * ax-gdb.c (register_operation::do_generate_ax): New method.
1413
1414 2021-03-08 Tom Tromey <tom@tromey.com>
1415
1416 * expop.h (class last_operation): New.
1417
1418 2021-03-08 Tom Tromey <tom@tromey.com>
1419
1420 * expop.h (class func_static_var_operation): New.
1421 * eval.c (eval_op_func_static_var): No longer static.
1422
1423 2021-03-08 Tom Tromey <tom@tromey.com>
1424
1425 * expop.h (class var_entry_value_operation): New.
1426 * eval.c (eval_op_var_entry_value): No longer static.
1427
1428 2021-03-08 Tom Tromey <tom@tromey.com>
1429
1430 * expression.h (class operation) <set_outermost>: New method.
1431 * expop.h (class var_msym_value_operation): New.
1432 * eval.c (eval_op_var_msym_value): No longer static.
1433 (var_msym_value_operation::evaluate_for_address)
1434 (var_msym_value_operation::evaluate_for_sizeof)
1435 (var_msym_value_operation::evaluate_for_cast): New methods.
1436 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1437 method.
1438
1439 2021-03-08 Tom Tromey <tom@tromey.com>
1440
1441 * expop.h (class long_const_operation): New.
1442 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1443
1444 2021-03-08 Tom Tromey <tom@tromey.com>
1445
1446 * expop.h (class scope_operation): New.
1447 * eval.c (eval_op_scope): No longer static.
1448 (scope_operation::evaluate_for_address): New method.
1449 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1450
1451 2021-03-08 Tom Tromey <tom@tromey.com>
1452
1453 * expprint.c (float_const_operation::dump): New method.
1454 * expop.h (float_data): New typedef.
1455 (class float_const_operation): New.
1456
1457 2021-03-08 Tom Tromey <tom@tromey.com>
1458
1459 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1460 * ax-gdb.c (gen_expr_binop): New function.
1461 (gen_expr_structop): Likewise.
1462
1463 2021-03-08 Tom Tromey <tom@tromey.com>
1464
1465 * expprint.c (expr::dump_for_expression): New functions.
1466 * expop.h (dump_for_expression): New overloads.
1467 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1468 Update.
1469
1470 2021-03-08 Tom Tromey <tom@tromey.com>
1471
1472 * expression.h (expr::operation): New class.
1473 (expr::make_operation): New function.
1474 (expr::operation_up): New typedef.
1475 * expop.h: New file.
1476 * eval.c (operation::evaluate_for_cast)
1477 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1478 New methods.
1479 * ax-gdb.c (operation::generate_ax): New method.
1480
1481 2021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1484 (gen_expr_binop_rest): New overload.
1485
1486 2021-03-08 Tom Tromey <tom@tromey.com>
1487
1488 * eval.c (eval_multi_subscript): New function.
1489 (evaluate_subexp_standard): Use it.
1490
1491 2021-03-08 Tom Tromey <tom@tromey.com>
1492
1493 * ada-lang.c (ada_binop_exp): New function.
1494 (ada_evaluate_subexp): Use it.
1495
1496 2021-03-08 Tom Tromey <tom@tromey.com>
1497
1498 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1499 parameters.
1500 (ada_evaluate_subexp): Use it.
1501
1502 2021-03-08 Tom Tromey <tom@tromey.com>
1503
1504 * ada-lang.c (ada_binop_minmax): New function.
1505 (ada_evaluate_subexp): Use it.
1506
1507 2021-03-08 Tom Tromey <tom@tromey.com>
1508
1509 * ada-lang.c (ada_unop_atr): New function.
1510 (ada_evaluate_subexp): Use it.
1511
1512 2021-03-08 Tom Tromey <tom@tromey.com>
1513
1514 * ada-lang.c (ada_binop_in_bounds): New function.
1515 (ada_evaluate_subexp): Use it.
1516
1517 2021-03-08 Tom Tromey <tom@tromey.com>
1518
1519 * ada-lang.c (ada_ternop_slice): New function.
1520 (ada_evaluate_subexp): Use it.
1521
1522 2021-03-08 Tom Tromey <tom@tromey.com>
1523
1524 * ada-lang.c (ada_equal_binop): New function.
1525 (ada_evaluate_subexp): Use it.
1526
1527 2021-03-08 Tom Tromey <tom@tromey.com>
1528
1529 * ada-lang.c (ada_mult_binop): New function.
1530 (ada_evaluate_subexp): Use it.
1531
1532 2021-03-08 Tom Tromey <tom@tromey.com>
1533
1534 * ada-lang.c (ada_abs): New function.
1535 (ada_evaluate_subexp): Use it.
1536
1537 2021-03-08 Tom Tromey <tom@tromey.com>
1538
1539 * ada-lang.c (ada_atr_size): New function.
1540 (ada_evaluate_subexp): Use it.
1541
1542 2021-03-08 Tom Tromey <tom@tromey.com>
1543
1544 * ada-lang.c (ada_atr_tag): New function.
1545 (ada_evaluate_subexp): Use it.
1546
1547 2021-03-08 Tom Tromey <tom@tromey.com>
1548
1549 * ada-lang.c (ada_unop_in_range): New function.
1550 (ada_evaluate_subexp): Use it.
1551
1552 2021-03-08 Tom Tromey <tom@tromey.com>
1553
1554 * ada-lang.c (ada_unop_neg): New function.
1555 (ada_evaluate_subexp): Use it.
1556
1557 2021-03-08 Tom Tromey <tom@tromey.com>
1558
1559 * ada-lang.c (eval_ternop_in_range): New function.
1560 (ada_evaluate_subexp): Use it.
1561
1562 2021-03-08 Tom Tromey <tom@tromey.com>
1563
1564 * opencl-lang.c (eval_opencl_assign): New function.
1565 (evaluate_subexp_opencl): Use it.
1566
1567 2021-03-08 Tom Tromey <tom@tromey.com>
1568
1569 * eval.c (eval_op_objc_msgcall): New function.
1570 (evaluate_subexp_standard): Use it.
1571
1572 2021-03-08 Tom Tromey <tom@tromey.com>
1573
1574 * eval.c (eval_binop_assign_modify): New function.
1575 (evaluate_subexp_standard): Use it.
1576
1577 2021-03-08 Tom Tromey <tom@tromey.com>
1578
1579 * m2-lang.c (eval_op_m2_subscript): New function.
1580 (evaluate_subexp_modula2): Use it.
1581
1582 2021-03-08 Tom Tromey <tom@tromey.com>
1583
1584 * m2-lang.c (eval_op_m2_high): New function.
1585 (evaluate_subexp_modula2): Use it.
1586
1587 2021-03-08 Tom Tromey <tom@tromey.com>
1588
1589 * eval.c (evaluate_subexp_for_address_base): New function.
1590 (evaluate_subexp_for_address): Use it.
1591 (evaluate_subexp_for_sizeof_base): New function.
1592 (evaluate_subexp_for_sizeof): Use it.
1593
1594 2021-03-08 Tom Tromey <tom@tromey.com>
1595
1596 * rust-lang.c (eval_op_rust_structop): New function.
1597 (rust_evaluate_subexp): Use it.
1598
1599 2021-03-08 Tom Tromey <tom@tromey.com>
1600
1601 * rust-lang.c (eval_op_rust_struct_anon): New function.
1602 (rust_evaluate_subexp): Use it.
1603
1604 2021-03-08 Tom Tromey <tom@tromey.com>
1605
1606 * rust-lang.c (eval_op_rust_array): New function.
1607 (rust_evaluate_subexp): Use it.
1608
1609 2021-03-08 Tom Tromey <tom@tromey.com>
1610
1611 * rust-lang.c (eval_op_rust_complement): New function.
1612 (rust_evaluate_subexp): Use it.
1613
1614 2021-03-08 Tom Tromey <tom@tromey.com>
1615
1616 * rust-lang.c (eval_op_rust_ind): New function.
1617 (rust_evaluate_subexp): Use it.
1618
1619 2021-03-08 Tom Tromey <tom@tromey.com>
1620
1621 * rust-lang.c (rust_subscript): Change parameters.
1622 (rust_evaluate_subexp): Update.
1623
1624 2021-03-08 Tom Tromey <tom@tromey.com>
1625
1626 * rust-lang.c (rust_range): Change parameters.
1627 (rust_evaluate_subexp): Update.
1628
1629 2021-03-08 Tom Tromey <tom@tromey.com>
1630
1631 * f-lang.c (eval_op_f_allocated): New function.
1632 (evaluate_subexp_f): Use it.
1633
1634 2021-03-08 Tom Tromey <tom@tromey.com>
1635
1636 * f-lang.c (fortran_require_array): New function.
1637 (evaluate_subexp_f): Use it.
1638
1639 2021-03-08 Tom Tromey <tom@tromey.com>
1640
1641 * f-lang.c (eval_op_f_kind): New function.
1642 (evaluate_subexp_f): Use it.
1643
1644 2021-03-08 Tom Tromey <tom@tromey.com>
1645
1646 * f-lang.c (eval_op_f_cmplx): New function.
1647 (evaluate_subexp_f): Use it.
1648
1649 2021-03-08 Tom Tromey <tom@tromey.com>
1650
1651 * f-lang.c (eval_op_f_modulo): New function.
1652 (evaluate_subexp_f): Use it.
1653
1654 2021-03-08 Tom Tromey <tom@tromey.com>
1655
1656 * f-lang.c (eval_op_f_floor): New function.
1657 (evaluate_subexp_f): Use it.
1658
1659 2021-03-08 Tom Tromey <tom@tromey.com>
1660
1661 * f-lang.c (eval_op_f_ceil): New function.
1662 (evaluate_subexp_f): Use it.
1663
1664 2021-03-08 Tom Tromey <tom@tromey.com>
1665
1666 * f-lang.c (eval_op_f_mod): New function.
1667 (evaluate_subexp_f): Use it.
1668
1669 2021-03-08 Tom Tromey <tom@tromey.com>
1670
1671 * f-lang.c (eval_op_f_abs): New function.
1672 (evaluate_subexp_f): Use it.
1673
1674 2021-03-08 Tom Tromey <tom@tromey.com>
1675
1676 * eval.c (eval_op_type): New function.
1677 (evaluate_subexp_standard): Use it.
1678
1679 2021-03-08 Tom Tromey <tom@tromey.com>
1680
1681 * eval.c (eval_op_postdec): New function.
1682 (evaluate_subexp_standard): Use it.
1683
1684 2021-03-08 Tom Tromey <tom@tromey.com>
1685
1686 * eval.c (eval_op_postinc): New function.
1687 (evaluate_subexp_standard): Use it.
1688
1689 2021-03-08 Tom Tromey <tom@tromey.com>
1690
1691 * eval.c (eval_op_predec): New file.
1692 (evaluate_subexp_standard): Use it.
1693
1694 2021-03-08 Tom Tromey <tom@tromey.com>
1695
1696 * eval.c (eval_op_preinc): New function.
1697 (evaluate_subexp_standard): Use it.
1698
1699 2021-03-08 Tom Tromey <tom@tromey.com>
1700
1701 * eval.c (eval_op_memval): New function.
1702 (evaluate_subexp_standard): Use it.
1703
1704 2021-03-08 Tom Tromey <tom@tromey.com>
1705
1706 * eval.c (eval_op_alignof): New function.
1707 (evaluate_subexp_standard): Use it.
1708
1709 2021-03-08 Tom Tromey <tom@tromey.com>
1710
1711 * eval.c (eval_op_ind): New function.
1712 (evaluate_subexp_standard): Use it.
1713
1714 2021-03-08 Tom Tromey <tom@tromey.com>
1715
1716 * eval.c (eval_op_lognot): New function.
1717 (evaluate_subexp_standard): Use it.
1718
1719 2021-03-08 Tom Tromey <tom@tromey.com>
1720
1721 * eval.c (eval_op_complement): New function.
1722 (evaluate_subexp_standard): Use it.
1723
1724 2021-03-08 Tom Tromey <tom@tromey.com>
1725
1726 * eval.c (eval_op_neg): New function.
1727 (evaluate_subexp_standard): Use it.
1728
1729 2021-03-08 Tom Tromey <tom@tromey.com>
1730
1731 * eval.c (eval_op_plus): New function.
1732 (evaluate_subexp_standard): Use it.
1733
1734 2021-03-08 Tom Tromey <tom@tromey.com>
1735
1736 * eval.c (eval_op_repeat): New function.
1737 (evaluate_subexp_standard): Use it.
1738
1739 2021-03-08 Tom Tromey <tom@tromey.com>
1740
1741 * eval.c (eval_op_leq): New function.
1742 (evaluate_subexp_standard): Use it.
1743
1744 2021-03-08 Tom Tromey <tom@tromey.com>
1745
1746 * eval.c (eval_op_geq): New function.
1747 (evaluate_subexp_standard): Use it.
1748
1749 2021-03-08 Tom Tromey <tom@tromey.com>
1750
1751 * eval.c (eval_op_gtr): New function.
1752 (evaluate_subexp_standard): Use it.
1753
1754 2021-03-08 Tom Tromey <tom@tromey.com>
1755
1756 * eval.c (eval_op_less): New function.
1757 (evaluate_subexp_standard): Use it.
1758
1759 2021-03-08 Tom Tromey <tom@tromey.com>
1760
1761 * eval.c (eval_op_notequal): New function.
1762 (evaluate_subexp_standard): Use it.
1763
1764 2021-03-08 Tom Tromey <tom@tromey.com>
1765
1766 * eval.c (eval_op_equal): New function.
1767 (evaluate_subexp_standard): Use it.
1768
1769 2021-03-08 Tom Tromey <tom@tromey.com>
1770
1771 * eval.c (eval_op_subscript): New function.
1772 (evaluate_subexp_standard): Use it.
1773
1774 2021-03-08 Tom Tromey <tom@tromey.com>
1775
1776 * eval.c (eval_op_binary): New function.
1777 (evaluate_subexp_standard): Use it.
1778
1779 2021-03-08 Tom Tromey <tom@tromey.com>
1780
1781 * eval.c (eval_op_sub): New function.
1782 (evaluate_subexp_standard): Use it.
1783
1784 2021-03-08 Tom Tromey <tom@tromey.com>
1785
1786 * eval.c (eval_op_add): New function.
1787 (evaluate_subexp_standard): Use it.
1788
1789 2021-03-08 Tom Tromey <tom@tromey.com>
1790
1791 * eval.c (eval_op_member): New function.
1792 (evaluate_subexp_standard): Use it.
1793
1794 2021-03-08 Tom Tromey <tom@tromey.com>
1795
1796 * eval.c (eval_op_structop_ptr): New function.
1797 (evaluate_subexp_standard): Use it.
1798
1799 2021-03-08 Tom Tromey <tom@tromey.com>
1800
1801 * eval.c (eval_op_structop_struct): New function.
1802 (evaluate_subexp_standard): Use it.
1803
1804 2021-03-08 Tom Tromey <tom@tromey.com>
1805
1806 * eval.c (eval_op_ternop): New function.
1807 (evaluate_subexp_standard): Use it.
1808
1809 2021-03-08 Tom Tromey <tom@tromey.com>
1810
1811 * eval.c (eval_op_concat): New function.
1812 (evaluate_subexp_standard): Use it.
1813
1814 2021-03-08 Tom Tromey <tom@tromey.com>
1815
1816 * eval.c (eval_op_objc_selector): New function.
1817 (evaluate_subexp_standard): Use it.
1818
1819 2021-03-08 Tom Tromey <tom@tromey.com>
1820
1821 * eval.c (eval_op_string): New function.
1822 (evaluate_subexp_standard): Use it.
1823
1824 2021-03-08 Tom Tromey <tom@tromey.com>
1825
1826 * eval.c (eval_op_register): New function.
1827 (evaluate_subexp_standard): Use it.
1828
1829 2021-03-08 Tom Tromey <tom@tromey.com>
1830
1831 * eval.c (eval_op_func_static_var): New function.
1832 (evaluate_subexp_standard): Use it.
1833
1834 2021-03-08 Tom Tromey <tom@tromey.com>
1835
1836 * eval.c (eval_op_var_msym_value): New function.
1837 (evaluate_subexp_standard): Use it.
1838
1839 2021-03-08 Tom Tromey <tom@tromey.com>
1840
1841 * eval.c (eval_op_var_entry_value): New function.
1842 (evaluate_subexp_standard): Use it.
1843
1844 2021-03-08 Tom Tromey <tom@tromey.com>
1845
1846 * eval.c (eval_op_scope): New function.
1847 (evaluate_subexp_standard): Use it.
1848
1849 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1850
1851 PR gdb/27528:
1852 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1853
1854 2021-03-06 Tom Tromey <tom@tromey.com>
1855
1856 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1857 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1858 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1859 (locate_dwz_sections, dwz_search_other_debugdirs)
1860 (dwarf2_get_dwz_file): Move to dwz.c.
1861 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1862 read.h.
1863 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1864 (dwarf2_get_dwz_file): Move from read.c.
1865
1866 2021-03-06 Tom Tromey <tom@tromey.com>
1867
1868 * debuginfod-support.h: Include scoped_fd.h.
1869
1870 2021-03-06 Tom Tromey <tom@tromey.com>
1871
1872 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1873 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1874 (get_abbrev_section_for_cu, read_attribute_value)
1875 (get_debug_line_section): Update.
1876 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1877
1878 2021-03-06 Tom Tromey <tom@tromey.com>
1879
1880 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1881 method.
1882 * dwarf2/read.c (section_is_p): Remove.
1883 (dwarf2_per_bfd::locate_sections)
1884 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1885 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1886 (dwarf2_locate_common_dwp_sections)
1887 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1888 Update.
1889
1890 2021-03-06 Tom Tromey <tom@tromey.com>
1891
1892 * xcoffread.c: Include sect-names.h.
1893 * symfile.h (struct dwarf2_section_names, struct
1894 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1895 * dwarf2/sect-names.h: New file, from symfile.h.
1896 * dwarf2/read.c: Include sect-names.h.
1897
1898 2021-03-06 Tom Tromey <tom@tromey.com>
1899
1900 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1901 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1902 (abbrev_table::read): Update.
1903 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1904 (struct abbrev_info): Reformat.
1905 <attrs>: Now an array.
1906 (struct abbrev_table) <alloc_abbrev>: Remove.
1907
1908 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1909
1910 * ctfread.c (ctf_psymtab_add_enums): New function.
1911 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1912
1913 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1914
1915 * ctfread.c (read_func_kind_type): Set up function arguments.
1916
1917 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1918 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1921 includes.
1922 (riscv_csrset): New static global.
1923 (riscv_update_csrmap): New function.
1924 (riscv_iterate_over_regset_sections): Process CSRs.
1925
1926 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * riscv-tdep.c (riscv_feature_name_csr): Define.
1929 (riscv_feature_name_cpu): Define.
1930 (riscv_feature_name_fpu): Define.
1931 (riscv_feature_name_virtual): Define.
1932 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1933 (riscv_freg_feature): Use riscv_feature_name_fpu.
1934 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1935 (riscv_csr_feature): Use riscv_feature_name_csr.
1936 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1937
1938 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1939 Craig Blackmore <craig.blackmore@embecosm.com>
1940
1941 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1942 (ALLDEPFILES): Add riscv-none-tdep.c.
1943 * configure: Regenerate.
1944 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1945 support.
1946 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1947 * elf-none-tdep.c: New file.
1948 * elf-none-tdep.h: New file.
1949 * riscv-none-tdep.c: New file.
1950
1951 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1952 Andrew Burgess <andrew.burgess@embecosm.com>
1953
1954 * corelow.c: Add 'xml-tdesc.h' include.
1955 (core_target::read_description): Load the target description from
1956 the core file when possible.
1957 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1958 note.
1959 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1960 (gcore_elf_make_tdesc_note): New function.
1961 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1962 * linux-tdep.c (linux_make_corefile_notes): Add target description
1963 note.
1964
1965 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 * Makefile.in (SFILES): Add gcore-elf.c.
1968 (HFILES_NO_SRCDIR): Add gcore-elf.h
1969 * configure: Regenerate.
1970 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1971 support.
1972 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1973 (struct fbsd_collect_regset_section_cb_data): Delete.
1974 (fbsd_collect_regset_section_cb): Delete.
1975 (fbsd_collect_thread_registers): Delete.
1976 (struct fbsd_corefile_thread_data): Delete.
1977 (fbsd_corefile_thread): Delete.
1978 (fbsd_make_corefile_notes): Call
1979 gcore_elf_build_thread_register_notes instead of the now deleted
1980 FreeBSD code.
1981 * gcore-elf.c: New file, the content was moved here from
1982 linux-tdep.c, functions were renamed and given minor cleanup.
1983 * gcore-elf.h: New file.
1984 * gcore.c (gcore_find_signalled_thread): Moved here from
1985 linux-tdep.c and given a new name. Minor cleanups.
1986 * gcore.h (gcore_find_signalled_thread): Declare.
1987 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1988 (struct linux_collect_regset_section_cb_data): Delete.
1989 (linux_collect_regset_section_cb): Delete.
1990 (linux_collect_thread_registers): Delete.
1991 (linux_corefile_thread): Call
1992 gcore_elf_build_thread_register_notes.
1993 (find_signalled_thread): Delete.
1994 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1995
1996 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 PR gdb/27147
1999 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2000 process_stratum_target parameter,
2001 sparc_store_inferior_registers): update callers.
2002 * sparc-nat.c (sparc_fetch_inferior_registers,
2003 sparc_store_inferior_registers): Add process_stratum_target
2004 parameter. Switch current thread before calling
2005 sparc_supply_gregset / sparc_collect_rwindow.
2006 (sparc_store_inferior_registers): Likewise.
2007 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2008 (sparc32obsd_collect_uthread): Likewise.
2009 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2010 Add assertion.
2011 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2012 sparc64obsd_supply_uthread): Add assertion.
2013
2014 2021-03-04 Tom Tromey <tromey@adacore.com>
2015
2016 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2017 (aux_add_nonlocal_symbols): Update.
2018 (ada_add_block_symbols): Change "found_sym" to bool.
2019
2020 2021-03-03 Tom Tromey <tromey@adacore.com>
2021
2022 * ada-lang.c (ada_resolve_function): Update comment.
2023 (is_nonfunction, add_symbols_from_enclosing_procs)
2024 (remove_extra_symbols): Likewise.
2025 (struct match_data): Add constructor, initializers.
2026 (add_nonlocal_symbols): Remove memset.
2027 (aux_add_nonlocal_symbols): Update comment.
2028 (ada_add_block_renamings, add_nonlocal_symbols)
2029 (ada_add_all_symbols): Likewise.
2030 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2031
2032 2021-03-02 Tom Tromey <tromey@adacore.com>
2033
2034 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2035 (cast_to_gnat_encoded_fixed_point_type): Remove.
2036 (ada_value_cast, ada_evaluate_subexp): Update.
2037 (gnat_encoded_fixed_point_type_info)
2038 (ada_is_gnat_encoded_fixed_point_type)
2039 (gnat_encoded_fixed_point_delta)
2040 (gnat_encoded_fixed_point_scaling_factor): Remove.
2041 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2042 (gnat_encoded_fixed_point_delta)
2043 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2044 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2045 (ada_print_type): Update.
2046 * ada-valprint.c (ada_value_print_num): Update.
2047 * dwarf2/read.c (ada_get_gnat_encoded_number)
2048 (ada_get_gnat_encoded_ratio): New functions.
2049 (finish_fixed_point_type): Use them. Add parameters.
2050 (GNAT_FIXED_POINT_SUFFIX): New define.
2051 (gnat_encoded_fixed_point_type_info): New function.
2052 (read_base_type): Handle gnat encodings.
2053
2054 2021-03-02 Tom Tromey <tromey@adacore.com>
2055
2056 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2057 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2058 std::string.
2059 (GROW_VECT): Remove.
2060 (grow_vect): Remove.
2061
2062 2021-03-02 Tom Tromey <tromey@adacore.com>
2063
2064 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2065 * ada-lang.c (resolve_subexp): Update.
2066 (ada_resolve_function): Accept a vector.
2067 (is_nonfunction, add_defn_to_vec)
2068 (add_symbols_from_enclosing_procs): Likewise.
2069 (num_defns_collected, defns_collected): Remove.
2070 (remove_extra_symbols): Return a vector.
2071 (remove_irrelevant_renamings): Return void.
2072 (ada_add_local_symbols): Accept a vector.
2073 (struct match_data) <obstackp>: Remove.
2074 <resultp>: New member.
2075 (aux_add_nonlocal_symbols): Update.
2076 (ada_add_block_renamings, add_nonlocal_symbols)
2077 (ada_add_all_symbols): Accept a vector.
2078 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2079 vector.
2080 (ada_lookup_symbol): Update.
2081 (ada_add_block_symbols): Accept a vector.
2082 (get_var_value, iterate_over_symbols): Update.
2083 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2084 Update.
2085
2086 2021-03-02 Tom Tromey <tromey@adacore.com>
2087
2088 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2089
2090 2021-03-02 Tom Tromey <tromey@adacore.com>
2091
2092 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2093 auto_obstack.
2094 <root>: Initialize.
2095 (ada_pspace_data): Remove destructor.
2096 <sym_cache>: Now a unique_ptr.
2097 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2098 (ada_get_symbol_cache): Use 'new'.
2099 (ada_clear_symbol_cache): Rewrite.
2100
2101 2021-03-02 Tom Tromey <tromey@adacore.com>
2102
2103 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2104 is null.
2105
2106 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
2107
2108 PR gdb/27393
2109 * source.c (add_path): Skip empty dirnames.
2110
2111 2021-02-25 Kevin Buettner <kevinb@redhat.com>
2112
2113 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2114 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2115
2116 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 PR gdb/26861
2119 * target.c (target_mourn_inferior): Only compare pids in
2120 target_mourn_inferior.
2121
2122 2021-02-25 Jan Matyas <jmatyas@codasip.com>
2123
2124 PR gdb/26819
2125 * remote.c (remote_target::start_remote): Ensure the single
2126 thread, automatically added for remote targets without the
2127 concept of threading, is initially in set to the "resumed"
2128 state.
2129 * remote.c (remote_target::add_current_inferior_and_thread):
2130 Add return value - return the main thread.
2131
2132 2021-02-25 Jan Vrany <jan.vrany@labware.com>
2133
2134 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2135 (mi_tsv_created): Likewise.
2136 (mi_tsv_deleted): Likewise.
2137
2138 2021-02-25 Tom de Vries <tdevries@suse.de>
2139
2140 PR symtab/27354
2141 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2142 section_kind for &dwo_file->sections.info.
2143
2144 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 PR fortran/26155
2147 * f-lang.c (fortran_argument_convert): Delete declaration.
2148 (fortran_prepare_argument): New function.
2149 (evaluate_subexp_f): Move logic to new function
2150 fortran_prepare_argument.
2151
2152 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * f-exp.y (f77_keywords): Add 'associated'.
2155 * f-lang.c (fortran_associated): New function.
2156 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2157 (operator_length_f): Likewise.
2158 (print_unop_or_binop_subexp_f): New function.
2159 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2160 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2161 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2162 (operator_check_f): Likewise.
2163 * std-operator.def: Add FORTRAN_ASSOCIATED.
2164
2165 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * f-exp.y (fortran_operators): Add ".xor.".
2168
2169 2021-02-24 Tom de Vries <tdevries@suse.de>
2170
2171 PR symtab/27336
2172 * dwarf2/attribute.c (attribute::form_is_signed): New function
2173 factored out of ...
2174 * dwarf2/attribute.h (attribute::as_signed): ... here.
2175 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2176 (attribute::form_is_signed): Declare.
2177 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2178 for DW_AT_decl_file.
2179
2180 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2181
2182 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2183 order for <sys/ptrace.h> and <asm/ptrace.h>.
2184
2185 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2186
2187 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2188 <sys/ptrace.h>.
2189
2190 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * exec.c (set_section_command): Move variable declarations into
2193 the function body, and use std::string instead of a fixed size
2194 buffer.
2195
2196 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * exec.c (exec_target::get_section_table): Delete member function.
2199 (section_table_read_available_memory): Use current_top_target, not
2200 just the exec_ops target.
2201 * target-delegates.c: Regenerate.
2202 * target.c (default_get_section_table): New function.
2203 * target.h (target_ops::get_section_table): Change default
2204 behaviour to call default_get_section_table.
2205 (default_get_section_table): Declare.
2206
2207 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * exec.c (exec_target::close): Call new clear_target_sections
2210 function.
2211 (program_space::add_target_sections): Update name of member
2212 variable.
2213 (program_space::add_target_sections): Update name of member
2214 variable.
2215 (program_space::remove_target_sections): Likewise.
2216 (exec_one_fork): Use new target_sections member function.
2217 (exec_target::get_section_table): Likewise.
2218 (exec_target::files_info): Likewise.
2219 (set_section_command): Likewise.
2220 (exec_set_section_address): Likewise.
2221 (exec_target::has_memory): Use new target_sections member
2222 function.
2223 * progspace.h (program_space::clear_target_sections): New member
2224 function.
2225 (program_space::target_sections): Rename member variable to
2226 m_target_sections, replace with a new member function.
2227 (program_space::m_target_sections): New member variable.
2228 * solib-dsbt.c (scan_dyntag): Use new member function.
2229 * solib-svr4.c (scan_dyntag): Likewise.
2230
2231 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2234 return type const.
2235 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2236 (section_table_read_available_memory): Make local const.
2237 (exec_target::xfer_partial): Make local const.
2238 (print_section_info): Make parameter const.
2239 * gdb/exec.h (print_section_info): Likewise.
2240 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2241 const.
2242 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2243 Likewise.
2244 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2245 Likewise.
2246 * gdb/s390-tdep.c (s390_load): Likewise.
2247 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2248 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2249 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2250 Rename to...
2251 (target_debug_print_const_target_section_table_p): ...this.
2252 * gdb/target-delegates.c: Regenerate.
2253 * gdb/target.c (target_get_section_table): Make return type const.
2254 (target_section_by_addr): Likewise. Also make some locals const.
2255 (memory_xfer_partial_1): Make some locals const.
2256 * gdb/target.h (struct target_ops) <get_section_table>: Make
2257 return type const.
2258 (target_section_by_addr): Likewise.
2259 (target_get_section_table): Likewise.
2260
2261 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * NEWS: Mention new 'maint info target-sections' command.
2264 * maint.c (maintenance_info_target_sections): New function.
2265 (_initialize_maint_cmds): Register new command.
2266
2267 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2268
2269 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2270 (riscv_features_from_bfd): ...this. Change parameter type to
2271 'bfd*', and update as required.
2272 (riscv_find_default_target_description): Update call to
2273 riscv_features_from_bfd. Select a default xlen based on
2274 info.bfd_arch_info.
2275 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2276
2277 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2278
2279 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2280 dynamic types in UNOP_IND.
2281
2282 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2283
2284 PR gdb/26828
2285 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2286 Instantiate queue.
2287 (~dwarf2_queue_guard): Clear queue.
2288 (queue_comp_unit): Assert that queue is
2289 instantiated.
2290 (process_queue): Adjust.
2291 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2292
2293 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2294
2295 PR gdb/26828
2296 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2297 to decide whether or not to enqueue it for expansion.
2298 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2299 after calling maybe_queue_comp_unit.
2300
2301 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * linux-nat.c (linux_nat_filter_event): Return void.
2304
2305 2021-02-22 Tom Tromey <tromey@adacore.com>
2306
2307 * solib-svr4.c (enable_break): Update.
2308 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2309 type.
2310 (target_bfd_reopen): Change parameter type.
2311 * bfd-target.h (target_bfd_reopen): Change parameter type.
2312
2313 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2314
2315 * thread.c (add_thread_silent): Add assert.
2316 (find_thread_ptid): Add assert.
2317
2318 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2319
2320 PR gdb/27435
2321 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2322 (target_unpush_up): Likewise.
2323 * procfs.c (procfs_target::attach): Push target early. Use
2324 target_unpush_up to unpush target in case of error.
2325 * target.h (struct target_unpusher): Move here.
2326 (target_unpush_up): Likewise.
2327
2328 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2329
2330 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2331 (which in turn includes <gnulib/config.h>) before include
2332 of <signal.h>.
2333
2334 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2335
2336 PR 27158
2337 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2338 (decode_j_type_insn): Likewise.
2339 (decode_cj_type_insn): Likewise.
2340 (decode_b_type_insn): Likewise.
2341 (decode): Likewise.
2342
2343 2021-02-18 Tom Tromey <tom@tromey.com>
2344
2345 * expression.h (struct expression) <evaluate>: Declare method.
2346 * eval.c (evaluate_subexp): Simplify.
2347 (expression::evaluate): New method.
2348 (evaluate_expression, evaluate_type): Use expression::evaluate.
2349
2350 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2351
2352 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2353 to accessing it.
2354 (ada_lookup_name_info): Likewise.
2355
2356 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2357
2358 * aclocal.m4: Regenerate.
2359
2360 2021-02-12 Tom de Vries <tdevries@suse.de>
2361
2362 PR threads/26228
2363 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2364 (lin_thread_signals): New static var.
2365 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2366 New function.
2367 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2368 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2369 Declare.
2370 * linux-thread-db.c (check_thread_signals): Use
2371 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2372
2373 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * f-exp.y (f77_keywords): Add allocated.
2376 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2377 (operator_length_f): Likewise.
2378 (print_subexp_f): Likewise.
2379 (dump_subexp_body_f): Likewise.
2380 (operator_check_f): Likewise.
2381 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2382
2383 2021-02-11 Tom de Vries <tdevries@suse.de>
2384
2385 PR symtab/27353
2386 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2387 Return true for DW_FORM_strx.
2388
2389 2021-02-11 Tom Tromey <tromey@adacore.com>
2390
2391 PR gdb/27383:
2392 * parse.c (write_exp_symbol_reference): Write sym.block.
2393
2394 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * NEWS: Mention changes to 'maint info sections'.
2397 * maint.c (match_substring): Return a bool, fix whitespace issue.
2398 (struct single_bfd_flag_info): New struct.
2399 (bfd_flag_info): New static global.
2400 (match_bfd_flags): Return a bool, use bfd_flag_info.
2401 (print_bfd_flags): Use bfd_flag_info.
2402 (maint_print_section_info): Delete trailing whitespace.
2403 (struct maint_info_sections_opts): New struct.
2404 (maint_info_sections_option_defs): New static global.
2405 (maint_info_sections_completer): New function.
2406 (maintenance_info_sections): Use option parsing mechanism.
2407 (_initialize_maint_cmds): Update command help text for 'maint info
2408 sections' and register a command completer.
2409
2410 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2413 functionality merged into...
2414 (maint_print_all_sections): ...this new function.
2415 (maintenance_info_sections): Make use of maint_print_all_sections,
2416 allow all objects to be printed even where there's no executable.
2417
2418 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * breakpoint.c (resolve_sal_pc): Make use of
2421 bound_minimal_symbol::obj_section.
2422 * maint.c (maintenance_translate_address): Likewise.
2423 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2424 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2425 member function.
2426 * printcmd.c (info_address_command): Make use of
2427 bound_minimal_symbol::obj_section.
2428
2429 2021-02-11 Alan Modra <amodra@gmail.com>
2430
2431 * arm-symbian-tdep.c: Delete.
2432 * NEWS: Mention arm-symbian removal.
2433 * Makefile.in: Remove arm-symbian-tdep entries.
2434 * configure.tgt: Remove arm*-*-symbianelf*.
2435 * doc/gdb.texinfo: Remove mention of SymbianOS.
2436 * osabi.c (gdb_osabi_names): Remove "Symbian".
2437 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2438 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2439 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2440 handling.
2441 * testsuite/gdb.base/dup-sect.exp: Likewise.
2442 * testsuite/gdb.base/long_long.exp: Likewise.
2443 * testsuite/gdb.base/solib-weak.exp: Likewise.
2444 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2445 * testsuite/gdb.python/py-section-script.exp: Likewise.
2446 * testsuite/lib/dwarf.exp: Likewise.
2447 * testsuite/lib/gdb.exp: Likewise.
2448
2449 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2452 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2453 (one_or_two_args): New pattern.
2454 (f77_keywords): Add lbound and ubound.
2455 * f-lang.c (fortran_bounds_all_dims): New function.
2456 (fortran_bounds_for_dimension): New function.
2457 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2458 (operator_length_f): Likewise.
2459 (print_subexp_f): Likewise.
2460 (dump_subexp_body_f): Likewise.
2461 (operator_check_f): Likewise.
2462 * std-operator.def (FORTRAN_LBOUND): Define.
2463 (FORTRAN_UBOUND): Define.
2464
2465 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2468 and set_section_index member functions where appropriate.
2469 * coffread.c (coff_symtab_read): Likewise.
2470 (process_coff_symbol): Likewise.
2471 * ctfread.c (set_symbol_address): Likewise.
2472 * dwarf2/read.c (add_partial_symbol): Likewise.
2473 (var_decode_location): Likewise.
2474 * language.c: Likewise.
2475 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2476 (compact_minimal_symbols): Likewise.
2477 (minimal_symbol_upper_bound): Likewise.
2478 * objfiles.c (relocate_one_symbol): Likewise.
2479 * psympriv.h (partial_symbol::obj_section): Likewise.
2480 (partial_symbol::address): Likewise.
2481 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2482 * stabsread.c (scan_file_globals): Likewise.
2483 * symmisc.c (dump_msymbols): Likewise.
2484 * symtab.c (general_symbol_info::obj_section): Likewise.
2485 (fixup_section): Likewise.
2486 (get_msymbol_address): Likewise.
2487 * symtab.h (general_symbol_info::section): Rename to...
2488 (general_symbol_info::m_section): ...this.
2489 (general_symbol_info::set_section_index): New member function.
2490 (general_symbol_info::section_index): Likewise.
2491 (SYMBOL_SECTION): Delete.
2492 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2493 set_section_index member functions where appropriate.
2494 (MSYMBOL_SECTION): Delete.
2495 (symbol::symbol): Update to initialize 'm_section'.
2496 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2497 (process_xcoff_symbol): Likewise.
2498
2499 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2502 MSYMBOL_OBJ_SECTION.
2503 * findvar.c (language_defn::read_var_value): Likewise.
2504 * infcmd.c (jump_command): Likewise.
2505 * linespec.c (minsym_found): Likewise.
2506 * maint.c (maintenance_translate_address): Likewise.
2507 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2508 (minimal_symbol_upper_bound): Likewise.
2509 * parse.c (find_minsym_type_and_address): Likewise.
2510 (operator_check_standard): Likewise.
2511 * printcmd.c (info_address_command): Likewise.
2512 * symmisc.c (dump_msymbols): Likewise.
2513 (print_symbol): Likewise.
2514 * symtab.c (general_symbol_info::obj_section): Define new
2515 function.
2516 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2517 (find_pc_sect_compunit_symtab): Likewise.
2518 (find_function_start_sal): Likewise.
2519 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2520 MSYMBOL_OBJ_SECTION.
2521 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2522 function.
2523 (SYMBOL_OBJ_SECTION): Delete.
2524 (MSYMBOL_OBJ_SECTION): Delete.
2525
2526 2021-02-09 Tom Tromey <tom@tromey.com>
2527
2528 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2529
2530 2021-02-09 Tom de Vries <tdevries@suse.de>
2531
2532 PR symtab/27341
2533 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2534 construct an array type. Add assert to ensure that element_type is
2535 not being modified.
2536
2537 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2540 (gcore_collect_regset_section_cb): Delete.
2541 (gcore_collect_thread_registers): Delete.
2542 (gcore_build_thread_register_notes): Delete.
2543 (gcore_find_signalled_thread): Delete.
2544 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2545 'gdbarch' and 'thread_info' declarations.
2546 (gcore_build_thread_register_notes): Delete declaration.
2547 (gcore_find_signalled_thread): Likewise.
2548 * fbsd-tdep.c: Remove 'gcore.h' include.
2549 (struct fbsd_collect_regset_section_cb_data): New struct.
2550 (fbsd_collect_regset_section_cb): New function.
2551 (fbsd_collect_thread_registers): New function.
2552 (struct fbsd_corefile_thread_data): New struct.
2553 (fbsd_corefile_thread): New function.
2554 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2555 * linux-tdep.c: Remove 'gcore.h' include.
2556 (struct linux_collect_regset_section_cb_data): New struct.
2557 (linux_collect_regset_section_cb): New function.
2558 (linux_collect_thread_registers): New function.
2559 (linux_corefile_thread): Call Linux specific code.
2560 (find_signalled_thread): New function.
2561 (linux_make_corefile_notes): Call find_signalled_thread.
2562
2563 2021-02-09 Tom Tromey <tromey@adacore.com>
2564
2565 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2566 not_lval value.
2567 * value.c (value_contents_copy_raw): Now static.
2568 * value.h (value_contents_copy_raw): Don't declare.
2569
2570 2021-02-09 Tom Tromey <tromey@adacore.com>
2571
2572 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2573 fields.
2574
2575 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2576
2577 PR tdep/27369
2578 * arc-linux-tdep.c (handle_atomic_sequence): New.
2579 (arc_linux_software_single_step): Call handle_atomic_sequence().
2580
2581 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2584 function.
2585 (REQUIRE_WINDOW): Call is_valid member function.
2586 (REQUIRE_WINDOW_FOR_SETTER): New define.
2587 (gdbpy_tui_is_valid): Call is_valid member function.
2588 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2589 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2590 tui_active too.
2591 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2592 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2593 the function.
2594
2595 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2598 for the title is not nullptr.
2599
2600 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2601
2602 * tui-layout.c (saved_tui_windows): Delete.
2603 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2604 call new get_windows member function instead.
2605 (tui_get_window_by_name): Check in tui_windows.
2606 (tui_layout_window::apply): Don't add to tui_windows.
2607 * tui-layout.h (tui_layout_base::get_windows): New member function.
2608 (tui_layout_window::get_windows): Likewise.
2609 (tui_layout_split::get_windows): Likewise.
2610
2611 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2614 of the window objects.
2615
2616 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * python/python.c (gdbpy_print_stack): Reformat an error message.
2619
2620 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * tui/tui-interp.c (tui_command_line_handler): New function.
2623 (tui_interp::resume): Register tui_command_line_handler as the
2624 input_handler.
2625 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2626 function.
2627 (tui_getc_1): Delete handling of '\n' and '\r'.
2628 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2629
2630 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2631
2632 * tui/tui-regs.c (tui_data_window::display_registers_from):
2633 Mark invisible register sub windows.
2634 (tui_data_window::check_register_values): Ignore invisible
2635 register sub windows.
2636
2637 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2638
2639 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2640 n_spaces with a negative value.
2641
2642 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2643
2644 * tui/tui-regs.c (tui_data_window::display_registers_from):
2645 Add refresh_window call.
2646
2647 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2648
2649 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2650
2651 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2652
2653 * symmisc.c (std_in, std_out, std_err): Remove.
2654 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2655
2656 2021-02-05 Tom de Vries <tdevries@suse.de>
2657
2658 PR breakpoints/27330
2659 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2660 glibc object file has debug info.
2661
2662 2021-02-05 Tom de Vries <tdevries@suse.de>
2663
2664 PR symtab/27333
2665 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2666
2667 2021-02-05 Tom de Vries <tdevries@suse.de>
2668
2669 PR breakpoints/27313
2670 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2671 syscall numbers.
2672
2673 2021-02-05 Tom Tromey <tom@tromey.com>
2674
2675 * compile/compile-c-support.c (get_compile_context)
2676 (c_get_compile_context, cplus_get_compile_context): Change return
2677 type.
2678 * language.c (language_defn::get_compile_instance): New method.
2679 * language.h (language_defn::get_compile_instance): Change return
2680 type. No longer inline.
2681 * c-lang.c (c_language::get_compile_instance): Change return type.
2682 (cplus_language::get_compile_instance): Change return type.
2683 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2684 Change return type.
2685 * compile/compile.c (compile_to_object): Update.
2686
2687 2021-02-05 Tom Tromey <tom@tromey.com>
2688
2689 * parser-defs.h (write_exp_symbol_reference): Declare.
2690 * parse.c (write_exp_symbol_reference): New function.
2691 * p-exp.y (variable): Use write_exp_symbol_reference.
2692 * m2-exp.y (variable): Use write_exp_symbol_reference.
2693 * f-exp.y (variable): Use write_exp_symbol_reference.
2694 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2695 * c-exp.y (variable): Use write_exp_symbol_reference.
2696
2697 2021-02-05 Tom de Vries <tdevries@suse.de>
2698
2699 PR exp/27265
2700 * valarith.c (complex_binop): Throw an error if complex type can't
2701 be created.
2702
2703 2021-02-05 Tom de Vries <tdevries@suse.de>
2704
2705 PR symtab/27307
2706 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2707 return.
2708
2709 2021-02-05 Tom de Vries <tdevries@suse.de>
2710
2711 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2712
2713 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2714
2715 * configure.tgt (riscv*-*-*): Set gdb_sim.
2716
2717 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2718
2719 * target.c (target_is_non_stop_p): Return bool.
2720 * target.h (target_is_non_stop_p): Return bool.
2721
2722 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * record-full.c (record_full_async_inferior_event_handler):
2725 Don't clear async event handler.
2726 (record_full_base_target::wait): Clear async event handler at
2727 beginning.
2728
2729 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * record-btrace.c (record_btrace_handle_async_inferior_event):
2732 Don't clear async event handler.
2733 (record_btrace_target::wait): Clear async event handler at
2734 beginning.
2735
2736 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2737
2738 * remote.c (remote_target::wait): Clear async event handler at
2739 beginning, mark if needed at the end.
2740 (remote_async_inferior_event_handler): Don't set or clear async
2741 event handler.
2742
2743 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2744
2745 * async-event.h (async_event_handler_func): Add documentation.
2746 * async-event.c (check_async_event_handlers): Don't clear
2747 async_event_handler ready flag.
2748 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2749 flag.
2750 * record-btrace.c (record_btrace_handle_async_inferior_event):
2751 Likewise.
2752 * record-full.c (record_full_async_inferior_event_handler):
2753 Likewise.
2754 * remote-notif.c (remote_async_get_pending_events_handler):
2755 Likewise.
2756 * remote.c (remote_async_inferior_event_handler): Likewise.
2757
2758 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * infrun.c (handle_inferior_event): Move stop_soon variable to
2761 inner scope.
2762
2763 2021-02-03 Pedro Alves <pedro@palves.net>
2764
2765 * infcmd.c (detach_command): Hold strong reference to target, and
2766 if all-stop on entry, restart threads on exit.
2767 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2768 (restart_stepped_thread): ... this new function. Also handle
2769 trap_expected.
2770 (restart_after_all_stop_detach): New function.
2771 * infrun.h (restart_after_all_stop_detach): Declare.
2772
2773 2021-02-03 Pedro Alves <pedro@palves.net>
2774
2775 * infrun.c (struct step_over_info): Initialize fields.
2776 (prepare_for_detach): Handle ongoing in-line step over.
2777
2778 2021-02-03 Pedro Alves <pedro@palves.net>
2779
2780 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2781 here...
2782 * remote.c (remote_target::remote_detach_1): ... and here ...
2783 * target.c (target_detach): ... instead of here.
2784 * target.h (target_ops::detach): Add comment.
2785
2786 2021-02-03 Pedro Alves <pedro@palves.net>
2787
2788 * infrun.c (struct wait_one_event): Move higher up.
2789 (prepare_for_detach): Abort in-progress displaced steps instead of
2790 letting them complete.
2791 (handle_one): If the inferior is detaching, don't add the thread
2792 back to the global step-over chain.
2793 (restart_threads): Don't restart threads if detaching.
2794 (handle_signal_stop): Remove inferior::detaching reference.
2795
2796 2021-02-03 Pedro Alves <pedro@palves.net>
2797
2798 * infrun.c (prepare_for_detach): Don't release scoped_restore
2799 before returning.
2800
2801 2021-02-03 Pedro Alves <pedro@palves.net>
2802
2803 * infrun.c (handle_one): New function, factored out from ...
2804 (stop_all_threads): ... here.
2805
2806 2021-02-03 Pedro Alves <pedro@palves.net>
2807
2808 * remote.c (remote_notif_stop_ack): Don't error out on
2809 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2810 (remote_target::discard_pending_stop_replies): Don't delete
2811 in-flight notification; instead, clear its contents.
2812
2813 2021-02-03 Pedro Alves <pedro@palves.net>
2814
2815 * remote.c (extended_remote_target::attach): Set target async in
2816 the target-non-stop path too.
2817
2818 2021-02-03 Pedro Alves <pedro@palves.net>
2819
2820 PR gdb/27055
2821 * infrun.c (handle_signal_stop): Move main context_switch call
2822 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2823
2824 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2825
2826 * NEWS (Changed commands): Add entry for the behavior change of
2827 the inferior command.
2828 * inferior.c (inferior_command): When no argument is given to the
2829 inferior command, display info about the currently selected
2830 inferior.
2831
2832 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2833
2834 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2835 a sect_offset.
2836 (read_attribute_reprocess): Adjust.
2837
2838 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2841 <gnu_ranges_base>: ... this...
2842 <rnglists_base>: ... and this.
2843 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2844 <gnu_ranges_base>: ... this...
2845 <rnglists_base>: ... and this.
2846 (read_cutu_die_from_dwo): Adjust
2847 (dwarf2_get_pc_bounds): Adjust
2848 (dwarf2_record_block_ranges): Adjust.
2849 (read_full_die_1): Adjust
2850 (partial_die_info::read): Adjust.
2851 (read_rnglist_index): Adjust.
2852
2853 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2854
2855 PR gdb/26813
2856 * dwarf2/read.c (read_loclists_rnglists_header): Add
2857 header_offset parameter and use it.
2858 (read_loclist_index): Read header of the current contribution,
2859 not the one at the beginning of the section.
2860 (read_rnglist_index): Likewise.
2861
2862 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2863
2864 PR gdb/26813
2865 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2866 requires_reprocessing flag.
2867 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2868 DW_FORM_loclistx.
2869 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2870 and DW_FORM_loclistx.
2871 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2872 instead of set_address for DW_FORM_loclistx and
2873 DW_FORM_rnglistx.
2874
2875 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2876
2877 * dwarf2/read.c (read_loclist_index): Remove bound check for
2878 start of offset.
2879 (read_rnglist_index): Likewise.
2880
2881 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2884 of the offset.
2885
2886 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2889
2890 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2891
2892 * dwarf2/read.c (read_loclist_index): Change complaints into
2893 errors.
2894
2895 2021-02-02 Tom de Vries <tdevries@suse.de>
2896
2897 PR symtab/24620
2898 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2899 psymtab == nullptr.
2900
2901 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2902
2903 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2904 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2905 here from linux-tdep.c and given a new name. Minor cleanups.
2906 (gcore_collect_regset_section_cb): Likewise.
2907 (gcore_collect_thread_registers): Likewise.
2908 (gcore_build_thread_register_notes): Likewise.
2909 (gcore_find_signalled_thread): Likewise.
2910 * gcore.h (gcore_build_thread_register_notes): Declare.
2911 (gcore_find_signalled_thread): Declare.
2912 * fbsd-tdep.c: Add 'gcore.h' include.
2913 (struct fbsd_collect_regset_section_cb_data): Delete.
2914 (fbsd_collect_regset_section_cb): Delete.
2915 (fbsd_collect_thread_registers): Delete.
2916 (struct fbsd_corefile_thread_data): Delete.
2917 (fbsd_corefile_thread): Delete.
2918 (fbsd_make_corefile_notes): Call
2919 gcore_build_thread_register_notes instead of the now deleted
2920 FreeBSD code.
2921 * linux-tdep.c: Add 'gcore.h' include.
2922 (struct linux_collect_regset_section_cb_data): Delete.
2923 (linux_collect_regset_section_cb): Delete.
2924 (linux_collect_thread_registers): Delete.
2925 (linux_corefile_thread): Call
2926 gcore_build_thread_register_notes.
2927 (find_signalled_thread): Delete.
2928 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2929
2930 2021-01-29 Tom de Vries <tdevries@suse.de>
2931
2932 PR breakpoints/26063
2933 * infrun.c (process_event_stop_test): Reset
2934 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2935 changed.
2936
2937 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2940 assert. Extend the header comment.
2941
2942 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2945 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2946 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2947 (tui_locator_win_info_ptr): Delete declaration.
2948 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2949 (tui_disasm_window::set_contents): Fetch state from tui_location
2950 global.
2951 (tui_get_begin_asm_address): Likewise.
2952 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2953 for locator window.
2954 (get_locator_window): Delete.
2955 (initialize_known_windows): Treat locator window just like all the
2956 rest.
2957 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2958 (tui_source_window::set_contents): Fetch state from tui_location
2959 global.
2960 (tui_source_window::showing_source_p): Likewise.
2961 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2962 (_locator): Delete.
2963 (tui_locator_win_info_ptr): Delete.
2964 (tui_locator_window::make_status_line): Fetch state from
2965 tui_location global.
2966 (tui_locator_window::rerender): Remove check of 'handle',
2967 reindent function body.
2968 (tui_locator_window::set_locator_fullname): Delete.
2969 (tui_locator_window::set_locator_info): Delete.
2970 (tui_update_locator_fullname): Delete.
2971 (tui_show_frame_info): Likewise.
2972 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2973 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2974 tui/tui-location.h and renamed to
2975 tui_location_tracker::set_location.
2976 (tui_locator_window::set_locator_fullname): Moved to
2977 tui/tui-location.h and renamed to
2978 tui_location_tracker::set_fullname.
2979 (tui_locator_window::full_name): Delete.
2980 (tui_locator_window::proc_name): Delete.
2981 (tui_locator_window::line_no): Delete.
2982 (tui_locator_window::addr): Delete.
2983 (tui_locator_window::gdbarch): Delete.
2984 (tui_update_locator_fullname): Delete declaration.
2985 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2986 for locator window.
2987 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2988 (tui_display_main): Call function on tui_location directly.
2989 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2990 * tui/tui-location.c: New file.
2991 * tui/tui-location.h: New file.
2992
2993 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2994
2995 * gdbtypes.h (get_type_arch): Rename to...
2996 (struct type) <arch>: ... this, update all users.
2997
2998 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2999
3000 * gdbtypes.h (struct type) <arch>: Rename to...
3001 <arch_owner>: ... this, update all users.
3002 <objfile>: Rename to...
3003 <objfile_owner>: ... this, update all users.
3004
3005 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3006
3007 * gdbcmd.h (execute_command_to_string): Update comment.
3008 * top.c (execute_command_to_string): Update header comment.
3009
3010 2021-01-28 Tom de Vries <tdevries@suse.de>
3011
3012 PR breakpoints/27205
3013 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3014 (create_longjmp_master_breakpoint_names): New function, factored out
3015 of ...
3016 (create_longjmp_master_breakpoint): ... here. Only try to install
3017 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3018 breakpoint in libc.so failed.
3019
3020 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3021
3022 PR gdb/27133
3023 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3024 unique_ptr is released when the wrapped pointer is kept for later
3025 use.
3026
3027 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3028
3029 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3030 BLR and BR instructions.
3031 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3032 (enum aarch64_masks): New.
3033
3034 2021-01-26 Tom Tromey <tromey@adacore.com>
3035
3036 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3037 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3038 (windows_init_thread_list, windows_nat::handle_load_dll)
3039 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3040 (windows_nat_target::resume)
3041 (windows_nat_target::get_windows_debug_event)
3042 (windows_nat_target::interrupt, windows_xfer_memory)
3043 (windows_nat_target::close): Update.
3044 * nat/windows-nat.c (DEBUG_EVENTS): Use
3045 debug_prefixed_printf_cond.
3046 (matching_pending_stop, fetch_pending_stop)
3047 (continue_last_debug_event): Update.
3048
3049 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3050
3051 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3052 elfcore_write_file_note.
3053
3054 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
3055
3056 * arc-tdep.c (arc_add_reggroups): New function.
3057 (arc_gdbarch_init): Call arc_add_reggroups.
3058
3059 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
3060
3061 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3062
3063 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3064 Simon Marchi <simon.marchi@polymtl.ca>
3065 Tom de Vries <tdevries@suse.de>
3066
3067 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3068 DW_AT_ranges.
3069
3070 2021-01-25 Tom Tromey <tromey@adacore.com>
3071
3072 * dwarf2/read.c (get_mpz): New function.
3073 (get_dwarf2_rational_constant): Use it.
3074
3075 2021-01-25 Tom Tromey <tromey@adacore.com>
3076
3077 * ada-lang.c (resolve_subexp): Handle array context.
3078
3079 2021-01-23 Tom Tromey <tom@tromey.com>
3080
3081 PR compile/25575
3082 * compile/compile-loc2c.c (note_register): New function.
3083 (pushf_register_address, pushf_register): Use it.
3084
3085 2021-01-23 Tom Tromey <tom@tromey.com>
3086
3087 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3088 Change type of "registers_used".
3089 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3090 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3091 (locexpr_generate_c_location, loclist_generate_c_location): Change
3092 type of "registers_used".
3093 * compile/compile.h (compile_dwarf_expr_to_c)
3094 (compile_dwarf_bounds_to_c): Update.
3095 * compile/compile-loc2c.c (pushf_register_address)
3096 (pushf_register, do_compile_dwarf_expr_to_c)
3097 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3098 of "registers_used".
3099 * compile/compile-c.h (generate_c_for_variable_locations):
3100 Update.
3101 * compile/compile-c-symbols.c (generate_vla_size)
3102 (generate_c_for_for_one_variable): Change type of
3103 "registers_used".
3104 (generate_c_for_variable_locations): Return std::vector.
3105 * compile/compile-c-support.c (generate_register_struct): Change
3106 type of "registers_used".
3107 (compute): Update.
3108
3109 2021-01-23 Tom Tromey <tom@tromey.com>
3110
3111 * compile/compile-internal.h (class compile_instance)
3112 <set_arguments>: Change return type.
3113 * compile/compile.c (compile_to_object): Remove call to reset.
3114 (compile_instance::set_arguments): Change return type.
3115
3116 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3117
3118 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3119 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3120
3121 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3122
3123 * Makefile.in (SELFTESTS_SRCS): Add
3124 unittests/gdb_tilde_expand-selftests.c.
3125 * unittests/gdb_tilde_expand-selftests.c: New file.
3126
3127 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 PR cli/25956
3130 * NEWS: Mention new command.
3131 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3132 (version_style): Define.
3133 (cli_style_option::cli_style_option): Add intensity parameter, and
3134 use as appropriate.
3135 (_initialize_cli_style): Register version style set/show commands.
3136 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3137 (version_style): Declare.
3138 * top.c (print_gdb_version): Use version_stype, and styled_string
3139 to print the GDB version string.
3140
3141 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * utils.c (emit_style_escape): Only emit an escape sequence if the
3144 requested style is different than the current applied style.
3145 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3146 current applied_style.
3147 (fputs_styled): Remove is_default check.
3148 (fputs_styled_unfiltered): Likewise.
3149 (vfprintf_styled_no_gdbfmt): Likewise.
3150
3151 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * remote.h (remote_debug_printf): New.
3154 (remote_debug_printf_nofunc): New.
3155 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3156 * remote.c: Use above macros throughout file.
3157
3158 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3159
3160 * remote.h (remote_debug): Change to bool.
3161 * remote.c (remote_debug): Change to bool.
3162 (_initialize_remote): Adjust.
3163
3164 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3165
3166 * target.h (remote_debug): Move to...
3167 * remote.h (remote_debug): ... here.
3168 * top.c (remote_debug): Move to...
3169 * remote.c (remote_debug): ... here.
3170 * remote-sim.c: Include remote.h.
3171
3172 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3173
3174 * cli/cli-cmds.c (show_remote_debug): Remove.
3175 (show_remote_timeout): Remove.
3176 (_initialize_cli_cmds): Don't register commands.
3177 * remote.c (show_remote_debug): Move here.
3178 (show_remote_timeout): Move here.
3179 (_initialize_remote): Register commands.
3180
3181 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3182
3183 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3184 type::objfile method instead.
3185
3186 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3187
3188 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3189 use the type::is_objfile_owned method.
3190
3191 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3194 (TYPE_OWNER): Remove.
3195 (TYPE_OBJFILE): Adjust.
3196 (struct main_type) <flag_objfile_owned>: Rename to...
3197 <m_flag_objfile_owned>: ... this.
3198 <owner>: Rename to...
3199 <m_owner>: ... this.
3200 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3201 methods.
3202 (TYPE_ALLOC): Adjust.
3203 * gdbtypes.c (alloc_type): Adjust.
3204 (alloc_type_arch): Adjust.
3205 (alloc_type_copy): Adjust.
3206 (get_type_arch): Adjust.
3207 (smash_type): Adjust.
3208 (lookup_array_range_type): Adjust.
3209 (recursive_dump_type): Adjust.
3210 (copy_type_recursive): Adjust.
3211 * compile/compile-c-types.c (convert_func): Adjust.
3212 (convert_type_basic): Adjust.
3213 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3214 Adjust.
3215 * language.c
3216 (language_arch_info::type_and_symbol::alloc_type_symbol):
3217 Adjust.
3218
3219 2021-01-21 Luis Machado <luis.machado@linaro.org>
3220
3221 * coffread.c (enter_linenos): Passing string to complaint.
3222 * valops.c (value_assign): Make array view.
3223
3224 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3225
3226 * auto-load.h (debug_auto_load): Move here.
3227 (auto_load_debug_printf): New.
3228 * auto-load.c: Use auto_load_debug_printf.
3229 (debug_auto_load): Move to header.
3230 * linux-thread-db.c (try_thread_db_load): Use
3231 auto_load_debug_printf.
3232 * main.c (captured_main_1): Likewise.
3233
3234 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3235
3236 * f-valprint.c (f77_array_offset_tbl): Remove.
3237
3238 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3241
3242 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3243
3244 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3245 of gdb_select.
3246
3247 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
3248
3249 PR python/19151
3250 * python/py-breakpoint.c (bppy_get_location): Handle
3251 bp_hardware_breakpoint.
3252 (bppy_init): Likewise.
3253 (gdbpy_breakpoint_created): Likewise.
3254
3255 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3256
3257 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3258
3259 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3260
3261 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3262 (_initialize_gdb_bfd): Adjust.
3263
3264 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 PR gdb/26828
3267 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3268
3269 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * dwarf2/read.c (follow_die_offset): Add logging.
3272 (dwarf2_per_objfile::age_comp_units): Add logging.
3273
3274 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3275
3276 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3277 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3278 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3279 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3280 * arm-tdep.c (struct frame_unwind): Make static.
3281 * auto-load.c (auto_load_safe_path_vec): Make static.
3282 * csky-tdep.c (csky_stub_unwind): Make static.
3283 * gdbarch.c (gdbarch_data_registry): Make static.
3284 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3285 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3286 * i386-tdep.c (i386_frame_setup_skip_insns,
3287 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3288 Make static.
3289 * infrun.c (observer_mode): Make static.
3290 * linux-nat.c (sigchld_action): Make static.
3291 * linux-thread-db.c (thread_db_list): Make static.
3292 * maint-test-options.c (maintenance_test_options_list):
3293 * mep-tdep.c (mep_csr_registers): Make static.
3294 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3295 (stats): Make static.
3296 * nat/linux-osdata.c (struct osdata_type): Make static.
3297 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3298 * progspace.c (last_program_space_num): Make static.
3299 * python/py-param.c (struct parm_constant): Remove struct type
3300 name.
3301 (parm_constants): Make static.
3302 * python/py-record-btrace.c (btpy_list_methods): Make static.
3303 * python/py-record.c (recpy_gap_type): Make static.
3304 * record.c (record_goto_cmdlist): Make static.
3305 * regcache.c (regcache_descr_handle): Make static.
3306 * registry.h (DEFINE_REGISTRY): Make definition static.
3307 * symmisc.c (std_in, std_out, std_err): Make static.
3308 * top.c (previous_saved_command_line): Make static.
3309 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3310 static.
3311 * unittests/command-def-selftests.c (nr_duplicates,
3312 nr_invalid_prefixcmd, lists): Make static.
3313 * unittests/observable-selftests.c (test_notification): Make
3314 static.
3315 * unittests/optional/assignment/1.cc (counter): Make static.
3316 * unittests/optional/assignment/2.cc (counter): Make static.
3317 * unittests/optional/assignment/3.cc (counter): Make static.
3318 * unittests/optional/assignment/4.cc (counter): Make static.
3319 * unittests/optional/assignment/5.cc (counter): Make static.
3320 * unittests/optional/assignment/6.cc (counter): Make static.
3321
3322 2021-01-20 Joel Sherrill <joel@rtems.org>
3323
3324 PR gdb/27219
3325 * remote.c (struct remote_thread_info) <resume_state>: Rename
3326 to...
3327 <get_resume_state>: ... this.
3328 (remote_target::resume): Adjust.
3329 (remote_target::commit_resume): Adjust.
3330 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3331
3332 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3333 Tom Tromey <tom@tromey.com>
3334
3335 * stap-probe.c (stap_parse_single_operand): Handle '!'
3336 operator.
3337 (stap_parse_argument_conditionally): Likewise.
3338 Skip spaces after processing open-parenthesis sub-expression.
3339 (stap_parse_argument_1): Skip spaces after call to
3340 stap_parse_argument_conditionally.
3341 Handle case when right-side expression is a parenthesized
3342 sub-expression.
3343 Skip spaces after call to stap_parse_argument_1.
3344
3345 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3346
3347 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3348
3349 2021-01-19 Luis Machado <luis.machado@linaro.org>
3350
3351 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3352 memory and save data.
3353 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3354 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3355 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3356 (trad_frame_value_bytes_p): Remove.
3357 (trad_frame_reset_saved_regs): Adjust documentation.
3358 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3359 constructor and reset the state of the registers.
3360 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3361 (trad_frame_value_bytes_p, trad_frame_set_value)
3362 (trad_frame_set_realreg, trad_frame_set_addr)
3363 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3364 (trad_frame_set_reg_realreg): Update to call member function.
3365 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3366 (trad_frame_get_prev_register): Likewise.
3367
3368 * aarch64-tdep.c (aarch64_analyze_prologue)
3369 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3370 (aarch64_prologue_prev_register): Update to use member functions.
3371 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3372 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3373 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3374 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3375 (arm_make_epilogue_frame_cache): Likewise.
3376 * avr-tdep.c (avr_frame_unwind_cache)
3377 (avr_frame_prev_register): Likewise.
3378 * cris-tdep.c (cris_scan_prologue): Likewise.
3379 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3380 * frv-tdep.c (frv_analyze_prologue): Likewise.
3381 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3382 * lm32-tdep.c (lm32_frame_cache): Likewise.
3383 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3384 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3385 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3386 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3387 (reset_saved_regs): Adjust to set realreg.
3388 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3389 call member functions.
3390 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3391 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3392 (s390_backchain_frame_unwind_cache): Likewise.
3393 * score-tdep.c (score7_analyze_prologue)
3394 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3395 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3396 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3397 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3398 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3399 * tilegx-tdep.c (tilegx_analyze_prologue)
3400 (tilegx_frame_cache): Likewise.
3401 * v850-tdep.c (v850_frame_cache): Likewise.
3402 * vax-tdep.c (vax_frame_cache): Likewise.
3403
3404 2021-01-19 Luis Machado <luis.machado@linaro.org>
3405
3406 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3407 of buffer + length.
3408 (put_frame_register_bytes): Likewise.
3409 Adjust documentation.
3410 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3411 (safe_frame_unwind_memory): Likewise.
3412 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3413 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3414 gdb::array_view.
3415 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3416 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3417 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3418 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3419 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3420 * dwarf2/loc.c (rw_pieced_value): Likewise.
3421 * hppa-tdep.c (hppa_frame_cache): Likewise.
3422 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3423 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3424 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3425 (i386_linux_rt_sigtramp_start): Likewise.
3426 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3427 * i386-tdep.c (i386_register_to_value): Likewise.
3428 * i387-tdep.c (i387_register_to_value): Likewise.
3429 * ia64-tdep.c (ia64_register_to_value): Likewise.
3430 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3431 (m32r_linux_rt_sigtramp_start): Likewise.
3432 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3433 * m68k-tdep.c (m68k_register_to_value): Likewise.
3434 * mips-tdep.c (mips_register_to_value)
3435 (mips_value_to_register): Likewise.
3436 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3437 (ppcfbsd_sigtramp_frame_cache): Likewise.
3438 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3439 (ppcobsd_sigtramp_frame_cache): Likewise.
3440 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3441 (rs6000_register_to_value): Likewise.
3442 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3443 * tramp-frame.c (tramp_frame_start): Likewise.
3444 * valops.c (value_assign): Likewise.
3445
3446 2021-01-19 Luis Machado <luis.machado@linaro.org>
3447
3448 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3449 array_view.
3450 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3451 instead of buffer and size.
3452 (trad_frame_set_reg_value_bytes): Likewise.
3453 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3454 (trad_frame_set_value_bytes): Likewise.
3455
3456 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3457
3458 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3459
3460 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3463 (riscv_fbsd_gregset): Use riscv_supply_regset.
3464 (riscv_fbsd_fpregset): Likewise.
3465 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3466 (riscv_linux_fregset): Likewise.
3467 * riscv-tdep.c (riscv_supply_regset): Define new function.
3468 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3469
3470 2021-01-18 Tom de Vries <tdevries@suse.de>
3471
3472 PR tdep/27172
3473 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3474 New macro.
3475 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3476 for SEGV_BNDERR.
3477
3478 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3479
3480 * remote.c (class remote_target) <remote_hostio_send_command,
3481 remote_hostio_parse_result>: Constify parameter.
3482 (remote_hostio_parse_result): Likewise.
3483 (remote_target::remote_hostio_send_command): Adjust.
3484 (remote_target::remote_hostio_pread_vFile): Adjust.
3485 (remote_target::fileio_readlink): Adjust.
3486 (remote_target::fileio_fstat): Adjust.
3487
3488 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3489
3490 * remote.c (remote_target::start_remote): Move wait_status to
3491 narrower scope.
3492
3493 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * remote.c (class remote_target):
3496 <add_current_inferior_and_thread>: Constify parameter.
3497 (stop_reply_extract_thread): Likewise.
3498 (remote_target::get_current_thread): Likewise.
3499 (remote_target::add_current_inferior_and_thread): Likewise.
3500
3501 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3502
3503 * remote.c (class remote_target)
3504 <remote_unpack_thread_info_response,
3505 parse_threadlist_response>: Constify parameter and/or return
3506 value and or local variable.
3507 (stub_unpack_int): Likewise.
3508 (unpack_nibble): Likewise.
3509 (unpack_byte): Likewise.
3510 (unpack_int): Likewise.
3511 (unpack_string): Likewise.
3512 (unpack_threadid): Likewise.
3513 (remote_target::remote_unpack_thread_info_response): Likewise.
3514 (remote_target::parse_threadlist_response): Likewise.
3515
3516 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3517
3518 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3519
3520 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3521
3522 * MAINTAINERS (Write After Approval): Add myself.
3523
3524 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3525
3526 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3527 because is_trivially_default_constructible was first implemented with
3528 gcc-5.
3529
3530 2021-01-14 Tom de Vries <tdevries@suse.de>
3531
3532 PR breakpoints/27151
3533 * objfiles.h (in_plt_section): Handle .plt.sec.
3534
3535 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3536
3537 PR gdb/26819
3538 * remote.c
3539 (remote_target::select_thread_for_ambiguous_stop_reply): New
3540 member function.
3541 (remote_target::process_stop_reply): Call
3542 select_thread_for_ambiguous_stop_reply.
3543
3544 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3545
3546 * record-btrace.c (class record_btrace_target): Remove.
3547 (record_btrace_target::commit_resume): Remove.
3548 * record-full.c (class record_full_target): Remove.
3549 (record_full_target::commit_resume): Remove.
3550
3551 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * remote.c (enum class resume_state): New.
3554 (struct resumed_pending_vcont_info): New.
3555 (struct remote_thread_info) <resume_state, set_not_resumed,
3556 set_resumed_pending_vcont, resumed_pending_vcont_info,
3557 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3558 New.
3559 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3560 (remote_target::remote_add_thread): Adjust.
3561 (remote_target::process_initial_stop_replies): Adjust.
3562 (remote_target::resume): Adjust.
3563 (remote_target::commit_resume): Rely on state in
3564 remote_thread_info and not on tp->executing.
3565 (remote_target::process_stop_reply): Adjust.
3566
3567 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * arc-tdep.h (arc_debug_printf): New.
3570 * arc-tdep.c: Use arc_debug_printf.
3571 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3572 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3573 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3574
3575 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * arc-tdep.h (arc_debug): Change type to bool.
3578 * arc-tdep.c (arc_debug): Change type to bool.
3579 (arc_analyze_prologue): Adjust.
3580 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3581 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3582
3583 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * auto-load.c (auto_load_objfile_script_1): Use bool.
3586 (execute_script_contents): Use bool.
3587
3588 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3591 comment here.
3592 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3593 comment to header.
3594 * extension-priv.h (struct extension_language_script_ops)
3595 <auto_load_enabled>: Return bool.
3596 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3597 comment here.
3598 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3599 comment to header.
3600 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3601 move comment here.
3602 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3603 move comment to header.
3604 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3605 move comment here.
3606 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3607 move comment to header.
3608
3609 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3610
3611 * auto-load.h (file_is_auto_load_safe): Change return type to
3612 bool, move comment here.
3613 * auto-load.c (file_is_auto_load_safe): Change return type and
3614 advice_printed to bool. Move comment to header.
3615
3616 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3617
3618 * jit.c (jit_debug_printf): New, use throughout file.
3619
3620 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3621
3622 * infrun.c (normal_stop): Fix indentation.
3623
3624 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3625
3626 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3627 declarations to ...
3628 * symfile.h: ... here.
3629 * symfile.c: Update doc.
3630
3631 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3632
3633 * target.h (baud_rate, serial_parity): Move declarations...
3634 * serial.h: ... here.
3635 * main.c: Include serial.h.
3636 * serial.c (baud_rate, serial_parity): Update doc.
3637
3638 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3639
3640 * top.c (pre_init_ui_hook): Remove.
3641
3642 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3643
3644 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3645 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3646 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3647 * features/aarch64-fpu.xml: Add bfloat16 type.
3648
3649 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3652
3653 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * f-exp.y (dot_ops): Rename to...
3656 (fortran_operators): ...this. Add a header comment. Add symbol
3657 based operators.
3658 (yylex): Update to use fortran_operators not dot_ops. Remove
3659 special handling for '**', this is now included in
3660 fortran_operators.
3661
3662 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3663
3664 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3665 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3666 * aarch64-tdep.c: Use aarch64_debug_printf.
3667
3668 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3671 file.
3672
3673 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3674
3675 * jit.c (jit_debug): Change type to bool.
3676 (_initialize_jit): Adjust.
3677
3678 2021-01-09 Tom Tromey <tom@tromey.com>
3679
3680 PR compile/23672
3681 * compile/compile.c (compile_to_object): Avoid crash when
3682 osabi_triplet_regexp returns NULL.
3683
3684 2021-01-09 Tom Tromey <tom@tromey.com>
3685
3686 * tracepoint.h (class collection_list) <append_exp>: Take a
3687 std::string.
3688 * tracepoint.c (collection_list::append_exp): Take a std::string.
3689 (encode_actions_1): Update.
3690
3691 2021-01-08 Tom Tromey <tromey@adacore.com>
3692
3693 * parse.c (parse_expression): Add void_context_p parameter. Use
3694 parse_exp_in_context.
3695 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3696 parse_expression.
3697 (print_command, call_command): Update.
3698 * expression.h (parse_expression): Add void_context_p parameter.
3699
3700 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3701
3702 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3703 for internalvar components that have a dynamic location.
3704
3705 2021-01-08 Tom de Vries <tdevries@suse.de>
3706
3707 PR gdb/26881
3708 * breakpoint.c (create_exception_master_breakpoint_probe)
3709 (create_exception_master_breakpoint_hook): Factor out
3710 of ...
3711 (create_exception_master_breakpoint): ... here. Only try to install
3712 the master exception breakpoint in objfile.debug using the
3713 _Unwind_DebugHook method, if the install using probes in objfile
3714 failed.
3715
3716 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3717
3718 * f-lang.c (fortran_value_subarray): Call value_from_component.
3719
3720 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3721
3722 * remote-sim.c: Include memory-map.h.
3723 (gdbsim_target): Define memory_map override.
3724 (gdbsim_target::memory_map): Define.
3725
3726 2021-01-07 Tom Tromey <tromey@adacore.com>
3727
3728 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3729
3730 2021-01-07 Tom Tromey <tromey@adacore.com>
3731
3732 * ada-lang.c (add_component_interval): Start loop using vector's
3733 updated size.
3734
3735 2021-01-06 Tom Tromey <tromey@adacore.com>
3736
3737 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3738 Do not cast result.
3739 * valarith.c (fixed_point_binop): Handle multiplication
3740 and division specially.
3741 * valops.c (value_to_gdb_mpq): New function.
3742 (value_cast_to_fixed_point): Use it.
3743
3744 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3745
3746 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3747 Call wnoutrefresh instead of tui_win_info::refresh_window.
3748
3749 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3750
3751 * tui/tui-source.c (tui_source_window::show_line_number):
3752 Redraw second space after line number.
3753
3754 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3755
3756 PR tui/26927
3757 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3758 Fix source pad size in prefresh.
3759 (tui_source_window_base::show_source_content): Grow source pad
3760 if necessary.
3761
3762 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3763
3764 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3765 (bfin_frame_align): Use align_down.
3766
3767 2021-01-04 Tom de Vries <tdevries@suse.de>
3768
3769 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3770 terminators that do not terminate anything.
3771
3772 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * debug.c (debug_print_depth): New.
3775 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3776 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3777 * infrun.c (start_step_over): Use
3778 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3779 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3780 INFRUN_SCOPED_DEBUG_START_END.
3781 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3782
3783 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3786
3787 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3788
3789 * utils.c (vfprintf_unfiltered): Print timestamp only when
3790 previous debug output ended with a newline.
3791
3792 2021-01-04 Luis Machado <luis.machado@linaro.org>
3793
3794 Update all users of trad_frame_saved_reg to use the new member
3795 functions.
3796
3797 Remote all struct keywords from declarations of trad_frame_saved_reg
3798 types, except on forward declarations.
3799
3800 * aarch64-tdep.c: Update.
3801 * alpha-mdebug-tdep.c: Update.
3802 * alpha-tdep.c: Update.
3803 * arc-tdep.c: Update.
3804 * arm-tdep.c: Update.
3805 * avr-tdep.c: Update.
3806 * cris-tdep.c: Update.
3807 * csky-tdep.c: Update.
3808 * frv-tdep.c: Update.
3809 * hppa-linux-tdep.c: Update.
3810 * hppa-tdep.c: Update.
3811 * hppa-tdep.h: Update.
3812 * lm32-tdep.c: Update.
3813 * m32r-linux-tdep.c: Update.
3814 * m32r-tdep.c: Update.
3815 * m68hc11-tdep.c: Update.
3816 * mips-tdep.c: Update.
3817 * moxie-tdep.c: Update.
3818 * riscv-tdep.c: Update.
3819 * rs6000-tdep.c: Update.
3820 * s390-linux-tdep.c: Update.
3821 * s390-tdep.c: Update.
3822 * score-tdep.c: Update.
3823 * sparc-netbsd-tdep.c: Update.
3824 * sparc-sol2-tdep.c: Update.
3825 * sparc64-fbsd-tdep.c: Update.
3826 * sparc64-netbsd-tdep.c: Update.
3827 * sparc64-obsd-tdep.c: Update.
3828 * sparc64-sol2-tdep.c: Update.
3829 * tilegx-tdep.c: Update.
3830 * v850-tdep.c: Update.
3831 * vax-tdep.c: Update.
3832
3833 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3834 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3835
3836 * trad-frame.c: Update.
3837 Remove TF_REG_* enum.
3838 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3839 a trivially-constructible struct.
3840 (trad_frame_reset_saved_regs): Adjust to use member function.
3841 (trad_frame_value_p): Likewise.
3842 (trad_frame_addr_p): Likewise.
3843 (trad_frame_realreg_p): Likewise.
3844 (trad_frame_value_bytes_p): Likewise.
3845 (trad_frame_set_value): Likewise.
3846 (trad_frame_set_realreg): Likewise.
3847 (trad_frame_set_addr): Likewise.
3848 (trad_frame_set_unknown): Likewise.
3849 (trad_frame_set_value_bytes): Likewise.
3850 (trad_frame_get_prev_register): Likewise.
3851 * trad-frame.h: Update.
3852 (trad_frame_saved_reg_kind): New enum.
3853 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3854 <m_kind, m_reg>: New member fields.
3855 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3856 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3857 <is_addr, is_unknown, is_value_bytes>: New member functions.
3858
3859 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 * target-float.c: Fix typos.
3862
3863 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3864
3865 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3866
3867 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3868
3869 * gdbarch.sh: Update copyright year range.
3870
3871 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3872
3873 Update copyright year range in copyright header of all GDB files.
3874
3875 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3876
3877 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3878 to the list of directories to update.
3879
3880 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3881
3882 * top.c (print_gdb_version): Update copyright year.
3883
3884 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3885
3886 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3887
3888 For older changes see ChangeLog-2020.
3889 \f
3890 Local Variables:
3891 mode: change-log
3892 left-margin: 8
3893 fill-column: 74
3894 version-control: never
3895 coding: utf-8
3896 End: