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