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