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