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