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