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