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