Don't include sys/personality.h in linux-low.cc anymore
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1845e254
AB
12021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
4 include.
5 (source_script_with_search): Perform tilde expansion.
6
91e3c425
SM
72021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * target-descriptions.c (struct target_desc_info) <filename>:
10 Make std::string.
11 (copy_inferior_target_desc_info): Adjust.
12 (target_desc_info_free): Adjust.
13 (target_find_description): Adjust.
14 (set_tdesc_filename_cmd): Adjust.
15 (show_tdesc_filename_cmd): Adjust.
16 (unset_tdesc_filename_cmd): Adjust.
17 (maint_print_c_tdesc_cmd): Adjust.
18
0b2f7ade
SM
192021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * target-descriptions.c (struct target_desc_info): Initialize
22 fields.
23 (get_tdesc_info): Use new.
24 (target_desc_info_free): Use delete.
25
820c4490
SM
262021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * target-descriptions.c (struct target_desc_info) <fetched>:
29 bool.
30 (target_find_description): Adjust.
31 (target_clear_description): Adjust.
32
c2962e6a
SM
332021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * target-descriptions.c (struct target_desc_info) <tdesc>:
36 Adjust doc.
37 (target_desc_fetched): Remove.
38 (current_target_desc): Remove.
39 (target_description_filename): Remove.
40 (target_find_description): Adjust.
41 (target_clear_description): Adjust.
42 (target_current_description): Adjust.
43 (set_tdesc_filename_cmd): Adjust.
44 (show_tdesc_filename_cmd): Adjust.
45 (unset_tdesc_filename_cmd): Adjust.
46 (maint_print_c_tdesc_cmd): Adjust.
47 (maint_print_xml_tdesc_cmd): Adjust.
48
8a82de58
AB
492021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * infcmd.c (notice_new_inferior): Change parameter type.
52 * inferior.h (notice_new_inferior): Change parameter type.
53 * remote.c (remote_notice_new_inferior): Change parameter type to
54 bool. Also update type of local variable to bool.
55 (remote_target::update_thread_list): Change type of local variable
56 to bool.
57 (remote_target::process_stop_reply): Pass bool instead of int to
58 remote_notice_new_inferior.
59
bedc4734
SM
602021-05-07 Simon Marchi <simon.marchi@efficios.com>
61
62 * target.c (target_stack::unpush): Call target_ops::find_beneath
63 to get the target beneath `t`.
64
27f0a431
SM
652021-05-07 Simon Marchi <simon.marchi@efficios.com>
66
67 * target.c (target_close): Check in all inferiors that the
68 target is not pushed.
69
1d1669e4
AM
702021-05-07 Aaron Merey <amerey@redhat.com>
71
72 * debuginfod-support.c (debuginfod_init): Remove.
73 (get_debuginfod_client): New function.
74
2698f5ea
TT
752021-05-07 Tom Tromey <tom@tromey.com>
76
77 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
78 * utils.c (streq_hash): Remove.
79 * utils.h (streq_hash): Don't declare.
80 * completer.c (completion_tracker::discard_completions): Update
81 comment.
82 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
83
13123da8
SM
842021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * Re-format all Python files using black.
87
4cf88725
TV
882021-05-07 Tom de Vries <tdevries@suse.de>
89
90 PR symtab/26327
91 * dwarf2/read.c (struct dwarf2_cu): Remove ancestor.
92 (dwarf2_cu::get_builder): Remove ancestor-related code.
93 (new_symbol): Remove code supporting pre-4.1 gcc that show arguments
94 of inlined functions as locals.
95 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
96
9589edb8
AB
972021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * guile/guile-internal.h (gdbscm_safe_source_script): Change
100 function return type.
101 * guile/guile.c (gdbscm_source_script): Update to handle change in
102 gdbscm_safe_source_script.
103 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
104 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
105 type.
106
ec66d6ea
SM
1072021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * inferior.h (class inferior) <args>: Change type to
110 unique_xmalloc_ptr.
111 * inferior.c (inferior::~inferior): Don't free args.
112 * infcmd.c (get_inferior_args): Adjust.
113 (set_inferior_args): Adjust.
114
0618ecf6
AB
1152021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
118 breakpoint locations when the breakpoint actually has a location.
119
79aabb73
TBA
1202021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
121
122 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
123 * mi/mi-cmds.c: Change the binding of "-break-condition" to
124 mi_cmd_break_condition.
125 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
126 * breakpoint.h (set_breakpoint_condition): Declare a new
127 overload.
128 * breakpoint.c (set_breakpoint_condition): New overloaded function
129 extracted out from ...
130 (condition_command): ... this.
131 * NEWS: Mention the change.
132
10e578d7
TBA
1332021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
134
135 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
136 '--force-condition' flag to force the condition in the
137 '-break-insert' and '-dprintf-insert' commands.
138 * NEWS: Mention the change.
139
225bda24
TV
1402021-05-04 Tom de Vries <tdevries@suse.de>
141
142 PR guile/27806
143 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
144 memory functions.
145
b8efb248
TT
1462021-04-30 Tom Tromey <tom@tromey.com>
147
148 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
149 (add_signatured_type_cu_to_table): Remove.
150 (create_debug_type_hash_table): Assume dwo_file is non-null.
151 (create_debug_types_hash_table): Update comment.
152 (create_all_type_units): Remove.
153 (sort_tu_by_abbrev_offset): Update comment.
154 (build_type_psymtabs): Rename from build_type_psymtabs_1.
155 (build_type_psymtabs): Remove.
156 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
157 Update.
158 (read_comp_units_from_section): Add types_htab, section_kind
159 parameters.
160 (create_all_comp_units): Read type units.
161
91eea9cc
TT
1622021-04-30 Tom Tromey <tom@tromey.com>
163
164 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
165 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
166 <get_cu>: Now inline.
167 <all_type_units>: Remove.
168 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
169 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
170 (dwarf2_per_bfd::get_tu): Remove.
171 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
172 (create_signatured_type_table_from_index)
173 (create_signatured_type_table_from_debug_names)
174 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
175 (dwarf2_base_index_functions::expand_all_symtabs)
176 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
177 (dwarf2_base_index_functions::map_symbol_filenames)
178 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
179 (add_signatured_type_cu_to_table, create_all_type_units)
180 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
181 (create_all_comp_units): Update.
182 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
183 (write_debug_names): Update.
184
0d305d5c
TT
1852021-04-30 Tom Tromey <tom@tromey.com>
186
187 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
188 allocate_signatured_type>: Change return type.
189 <all_comp_units, all_type_units>: Hold unique pointers.
190 (struct dwarf2_per_cu_data): Add constructor and initializers.
191 (struct signatured_type): Derive from dwarf2_per_cu_data.
192 * dwarf2/read.c (type_unit_group): Derive from
193 dwarf2_per_cu_data.
194 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
195 (dwarf2_per_bfd::get_tu)
196 (dwarf2_per_bfd::allocate_signatured_type)
197 (dwarf2_per_bfd::allocate_signatured_type)
198 (create_cu_from_index_list, create_cus_from_index_list)
199 (create_signatured_type_table_from_index)
200 (create_signatured_type_table_from_debug_names)
201 (create_addrmap_from_aranges)
202 (dwarf2_base_index_functions::find_last_source_symtab)
203 (dw_expand_symtabs_matching_file_matcher)
204 (dwarf2_gdb_index::expand_symtabs_matching)
205 (dwarf2_base_index_functions::map_symbol_filenames)
206 (create_cus_from_debug_names_list)
207 (dw2_debug_names_iterator::next)
208 (dwarf2_debug_names_index::expand_symtabs_matching)
209 (create_debug_type_hash_table, add_type_unit)
210 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
211 Update.
212 (allocate_type_unit_groups_table): Use delete.
213 (create_type_unit_group): Change return type. Use new.
214 (get_type_unit_group, build_type_psymtabs_1)
215 (build_type_psymtab_dependencies)
216 (process_skeletonless_type_unit, set_partial_user)
217 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
218 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
219 (read_signatured_type): Update.
220 (dwarf2_find_containing_comp_unit): Change type of
221 'all_comp_units'.
222 (run_test): Update.
223 (dwarf2_per_bfd::allocate_per_cu)
224 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
225 Use new.
226 (add_signatured_type_cu_to_table): Update.
227 * dwarf2/index-write.c (write_one_signatured_type)
228 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
229 (write_debug_names): Update.
230
1bee48c7
TT
2312021-04-30 Tom Tromey <tromey@adacore.com>
232
233 * nat/windows-nat.h (get_image_name): Don't declare.
234 * nat/windows-nat.c (get_image_name): Now static.
235
e228ef97
TT
2362021-04-30 Tom Tromey <tromey@adacore.com>
237
238 * windows-nat.c (windows_nat::handle_load_dll): Update.
239 (windows_nat_target::get_windows_debug_event): Call
240 dll_loaded_event.
241 (windows_add_all_dlls, windows_add_dll): Move to
242 nat/windows-nat.c.
243 * nat/windows-nat.h (handle_load_dll): Change parameters.
244 (dll_loaded_event, windows_add_all_dlls): Declare.
245 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
246 from windows-nat.c.
247 (dll_loaded_event): New function.
248
de071872
TT
2492021-04-30 Tom Tromey <tromey@adacore.com>
250
251 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
252 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
253 Declare.
254 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
255 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
256
9e439f00
TT
2572021-04-30 Tom Tromey <tromey@adacore.com>
258
259 * windows-nat.c: Move code to nat/windows-nat.[ch].
260 (_initialize_windows_nat): Call initialize_loadable.
261 * nat/windows-nat.h (AdjustTokenPrivileges)
262 (DebugActiveProcessStop, DebugBreakProcess)
263 (DebugSetProcessKillOnExit, EnumProcessModules)
264 (EnumProcessModulesEx, GetModuleInformation)
265 (GetModuleFileNameExA, GetModuleFileNameExW)
266 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
267 (GetCurrentConsoleFont, Wow64SuspendThread)
268 (Wow64GetThreadContext, Wow64SetThreadContext)
269 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
270 (AdjustTokenPrivileges_ftype)
271 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
272 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
273 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
274 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
275 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
276 (GetConsoleFontSize_ftype)
277 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
278 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
279 (Wow64GetThreadSelectorEntry_ftype): Likewise.
280 (initialize_loadable): Declare.
281 * nat/windows-nat.c (AdjustTokenPrivileges)
282 (DebugActiveProcessStop, DebugBreakProcess)
283 (DebugSetProcessKillOnExit, EnumProcessModules)
284 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
285 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
286 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
287 (Wow64GetThreadContext, Wow64SetThreadContext)
288 (Wow64GetThreadSelectorEntry): Define.
289 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
290 from windows-nat.c.
291 (initialize_loadable): Likewise, and rename.
292
1053c638
TT
2932021-04-30 Tom Tromey <tromey@adacore.com>
294
295 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
296 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
297 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
298 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
299 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
300 (bad): New template functions.
301 (_initialize_loadable): Update.
302
2869ac4b
TT
3032021-04-30 Tom Tromey <tromey@adacore.com>
304
305 * ada-lang.c (ada_index_type): Use ada_check_typedef.
306
e197dfae
SM
3072021-04-29 Simon Marchi <simon.marchi@efficios.com>
308
309 * auto-load.h: Split namespace declaration.
310
89ba430c
SM
3112021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * infrun.c (save_waitstatus): Move variables to inner scope.
314
8eb82ba1
AB
3152021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * NEWS: Fix typo and stray full stop.
318
db2534b7
TT
3192021-04-28 Tom Tromey <tromey@adacore.com>
320
321 * ada-exp.y (primary): Use new type for null pointer.
322 * ada-lang.c (ada_type_match): Remove "may_deref"
323 parameter. Handle null pointer.
324 (ada_args_match): Update.
325 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
326 Handle null pointer.
327
edeaceda
AB
3282021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * NEWS: Mention new commands.
331 * python/python.c (python_ignore_environment): New static global.
332 (show_python_ignore_environment): New function.
333 (set_python_ignore_environment): New function.
334 (python_dont_write_bytecode): New static global.
335 (show_python_dont_write_bytecode): New function.
336 (set_python_dont_write_bytecode): New function.
337 (_initialize_python): Register new commands.
338
041ca48e
AB
3392021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * extension-priv.h (struct extension_language_ops): Rename
342 'finish_initialization' to 'initialize'.
343 * extension.c (finish_ext_lang_initialization): Renamed to...
344 (ext_lang_initialization): ...this, update comment, and updated
345 the calls to reflect the change in struct extension_language_ops.
346 * extension.h (finish_ext_lang_initialization): Renamed to...
347 (ext_lang_initialization): ...this.
348 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
349 (gdbscm_initialize): ...this, update comment at definition.
350 (guile_extension_ops): Update.
351 * main.c (captured_main_1): Update call to
352 finish_ext_lang_initialization.
353 * python/python.c (gdbpy_finish_initialization): Rename to...
354 (gdbpy_initialize): ...this, update comment at definition, and
355 update call to do_finish_initialization.
356 (python_extension_ops): Update.
357 (do_finish_initialization): Rename to...
358 (do_initialize): ...this, and update comment.
359
1178f01a
AB
3602021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 * main.c (captured_main_1): Add a call to
363 finish_ext_lang_initialization.
364 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
365
880ae75a
AB
3662021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
369 (gdbscm_finish_initialization): Add code moved from
370 _initialize_guile.
371 (_initialize_guile): Move code to gdbscm_finish_initialization.
372 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
373 _initialize_scm_arch.
374 (_initialize_scm_arch): New function.
375 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
376 into _initialize_scm_block.
377 (_initialize_scm_block): New function.
378 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
379 into _initialize_scm_frame.
380 (_initialize_scm_frame): New function.
381 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
382 into _initialize_scm_objfile.
383 (_initialize_scm_objfile): New function.
384 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
385 code into _initialize_scm_progspace.
386 (_initialize_scm_progspace): New function.
387 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
388 into _initialize_scm_symbol.
389 (_initialize_scm_symbol): New function.
390 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
391 into _initialize_scm_symtab.
392 (_initialize_scm_symtab): New function.
393 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
394 _initialize_scm_type.
395 (_initialize_scm_type): New function.
396
8e3685bf
AB
3972021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * python/py-arch.c (_initialize_py_arch): New function.
400 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
401 * python/py-block.c (_initialize_py_block): New function.
402 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
403 * python/py-inferior.c (_initialize_py_inferior): New function.
404 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
405 * python/py-objfile.c (_initialize_py_objfile): New function.
406 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
407 * python/py-progspace.c (_initialize_py_progspace): New function.
408 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
409 * python/py-registers.c (_initialize_py_registers): New function.
410 (gdbpy_initialize_registers): Move code to
411 _initialize_py_registers.
412 * python/py-symbol.c (_initialize_py_symbol): New function.
413 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
414 * python/py-symtab.c (_initialize_py_symtab): New function.
415 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
416 * python/py-type.c (_initialize_py_type): New function.
417 (gdbpy_initialize_types): Move code to _initialize_py_type.
418 * python/py-unwind.c (_initialize_py_unwind): New function.
419 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
420 * python/python.c (_initialize_python): Move call to
421 do_start_initialization to gdbpy_finish_initialization.
422 (gdbpy_finish_initialization): Add call to
423 do_start_initialization.
424
913832e9
AB
4252021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * extension.c (struct scoped_default_signal): New struct.
428 (scoped_default_sigint): New typedef.
429 (finish_ext_lang_initialization): Make use of
430 scoped_default_sigint.
431
a3b5ef3e
AB
4322021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
433
434 * main.c (captured_main_1): Don't pass argument to gdb_init.
435 * top.c (gdb_init): Remove unused argument, and add header
436 comment.
437 * top.h (gdb_init): Remove argument.
438
b9f90c72
LM
4392021-04-27 Luis Machado <luis.machado@linaro.org>
440
441 * psymtab.c (psymbol_functions::dump): Output newline.
442 Remove wrap.
443 * symmisc.c (dump_objfile): Likewise.
444
2c473def
MW
4452021-04-27 Michael Weghorn <m.weghorn@posteo.de>
446 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
449 when attaching the 'auto_load_new_objfile' observer, so
450 other observers can specify it as a dependency.
451 * gdb/auto-load.h (struct token): Declare
452 'auto_load_new_objfile_observer_token' as token to be used
453 for the 'auto_load_new_objfile' observer.
454 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
455 'python_new_objfile' observer depend on 'auto_load_new_objfile'
456 observer, so it gets notified after the latter.
457
9a6e099f
MW
4582021-04-27 Michael Weghorn <m.weghorn@posteo.de>
459 Simon Marchi <simon.marchi@polymtl.ca>
460
461 * unittests/observable-selftests.c (dependency_test_counters):
462 New.
463 (observer_token0, observer_token1, observer_token2,
464 observer_token3, observer_token4, observer_token5): New.
465 (struct dependency_observer_data): New struct.
466 (observer_dependency_test_callback): New function.
467 (test_observers): New.
468 (run_dependency_test): New function.
469 (test_dependency): New.
470 (_initialize_observer_selftest): Register dependency test.
471
bea3329b
SM
4722021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
473
474 PR gdb/27773
475 * cli/cli-dump.c (dump_binary_file): Check result of
476 gdb_fopen_cloexec.
477
c290cb01
ST
4782021-04-25 Sergei Trofimovich <siarheit@google.com>
479
480 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
481 by passing `process_stratum_target*` parameter.
482
fbb46296
LS
4832021-04-25 Lancelot Six <lsix@lancelotsix.com>
484
485 PR gdb/22640
486 * typeprint.h (struct type_print_options): Add print_in_hex
487 flag.
488 (struct print_offset_data): Add print_in_hex flag, add a
489 constructor accepting a type_print_options* argument.
490 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
491 default value for print_in_hex.
492 (print_offset_data::indentation): Allow more horizontal space.
493 (print_offset_data::print_offset_data): Add ctor.
494 (print_offset_data::maybe_print_hole, print_offset_data::update):
495 Handle the print_in_hex flag.
496 (whatis_exp): Handle 'x' and 'd' flags.
497 (print_offsets_and_sizes_in_hex): Declare.
498 (set_print_offsets_and_sizes_in_hex): Create.
499 (show_print_offsets_and_sizes_in_hex): Create.
500 (_initialize_typeprint): Update help message for the ptype
501 command, register the 'set print type hex' and 'show print type
502 hex' commands.
503 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
504 (c_type_print_base): Construct the print_offset_data
505 object using the type_print_optons parameter.
506 * rust-lang.c (rust_language::print_type): Construct the
507 print_offset_data object using the type_print_optons parameter.
508 * NEWS: Mention the new flags of the ptype command.
509
18bbba46
LS
5102021-04-25 Lancelot Six <lsix@lancelotsix.com>
511
512 * typeprint.h (struct type_print_options): Move before
513 print_offset_data.
514
77393c9b
JB
5152021-04-25 Joel Brobecker <brobecker@adacore.com>
516
517 GDB 10.2 released.
518
98c897e3
SM
5192021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * observable.c (observer_debug): Change to bool.
522
9fc29955
AB
5232021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * dwarf2/read.c: Add 'unordered_set' include.
526 (dwarf2_base_index_functions::map_symbol_filenames): Replace
527 'visited' hash table with 'qfn_cache' unordered_set. Remove use
528 of per_Bfd->filenames_cache cache, and use function local
529 filenames_cache instead. Reindent.
530 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
531
0406545d
SM
5322021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
533
534 * breakpoint.c (iterate_over_bp_locations): Change callback to
535 function view, remove data parameter.
536 * breakpoint.h (iterate_over_bp_locations): Likewise.
537 * record-full.c (record_full_sync_record_breakpoints): Remove
538 data parameter.
539
432ce4cf
TT
5402021-04-22 Tom Tromey <tom@tromey.com>
541
542 * c-typeprint.c (c_type_print_base_struct_union): Use
543 print_spaces_filtered_with_print_options.
544
e25d6d93
SM
5452021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
546
547 PR gdb/27757
548 * python/py-type.c (typy_range): Check that bounds are constant
549 before accessing them as such.
550 * guile/scm-type.c (gdbscm_type_range): Likewise.
551
4efeb0d3
TBA
5522021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
553
554 * Makefile.in (COMMON_SFILES): Remove continuations.c.
555 * inferior.c (inferior::add_continuation): New method, adapted
556 from 'add_inferior_continuation'.
557 (inferior::do_all_continuations): New method, adapted from
558 'do_all_inferior_continuations'.
559 (inferior::~inferior): Clear the list of continuations directly.
560 * inferior.h (class inferior) <continuations>: Rename into...
561 <m_continuations>: ...this and make private.
562 * continuations.c: Remove.
563 * continuations.h: Remove.
564 * event-top.c: Don't include "continuations.h".
565
566 Update the users below.
567 * inf-loop.c (inferior_event_handler)
568 * infcmd.c (attach_command)
569 (notice_new_inferior): Update.
570
c4c493de
TBA
5712021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
572
573 * inferior.h (class inferior) <continuations>: Change the type
574 to be an std::list of std::function's.
575 Update the references and uses below.
576 * continuations.c (struct continuation): Delete.
577 (make_continuation): Delete.
578 (do_my_continuations_1): Delete.
579 (do_my_continuations): Delete.
580 (discard_my_continuations_1): Delete.
581 (discard_my_continuations): Delete.
582 (add_inferior_continuation): Update.
583 (do_all_inferior_continuations): Update.
584 (discard_all_inferior_continuations): Update.
585 * continuations.h (add_inferior_continuation): Update to take
586 an std::function as the parameter.
587 * infcmd.c (struct attach_command_continuation_args): Delete.
588 (attach_command_continuation): Delete.
589 (attach_command_continuation_free_args): Delete.
590 (attach_command): Update.
591 (notice_new_inferior): Update.
592
1194676e
TBA
5932021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594
595 * continuations.h: Update the general comment.
596 * inferior.h (class inferior) <continuations>: Update the comment.
597 * interps.c: Do not include "continuations.h".
598
35682f0a
TBA
5992021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
600
601 * continuations.h (do_all_inferior_continuations): Remove the 'err'
602 parameter. Update the references below.
603 * continuations.c (do_my_continuations_1)
604 (do_my_continuations)
605 (do_all_inferior_continuations): Update.
606 * inf-loop.c (inferior_event_handler): Update.
607 * infcmd.c (attach_command_continuation): Update.
608
6fee5eee
TBA
6092021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610
611 * infcmd.c (attach_post_wait): Update the function comment.
612
27d0790a
TBA
6132021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
614
615 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
616 Update the references below.
617 (struct attach_command_continuation_args)
618 (attach_command_continuation)
619 (attach_command_continuation_free_args)
620 (attach_command)
621 (notice_new_inferior): Update to remove the reference to 'args'.
622
c39ebbf4
TV
6232021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
624 Tom de Vries <tdevries@suse.de>
625
626 PR remote/27710
627 * remote.c (remote_target_is_non_stop_p): New function.
628 * remote.h (remote_target_is_non_stop_p): Declare.
629 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
630 to check non-stopness using notif_state->remote rather current target.
631
22f80c0f
TT
6322021-04-22 Tom Tromey <tom@tromey.com>
633
634 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
635 (struct typed_val_int) <val>: Now ULONGEST.
636 (rust_parser::parse_array_type): Remove negative check.
637 (rust_lex_int_test): Change 'value' to ULONGEST.
638
05f3c0f0
AB
6392021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * arch-utils.c (default_addressable_memory_unit_size): Return a
642 value based on bfd's bits per byte.
643
7e7a35fb
TT
6442021-04-21 Tom Tromey <tom@tromey.com>
645
646 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
647 unsigned char.
648 (struct dwarf2_per_cu_data): Rearrange.
649 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
650 unsigned char.
651 (struct comp_unit_head): Rearrange.
652 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
653
ff507520
TV
6542021-04-21 Tom de Vries <tdevries@suse.de>
655
656 PR build/27681
657 * configure.ac: Remove --without-included-regex/--with-included-regex.
658 * config.in: Regenerate.
659 * configure: Regenerate.
660 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
661
10a636cc
TBA
6622021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
663
664 * breakpoint.h (create_breakpoint): Add a new parameter,
665 'force_condition'.
666 * breakpoint.c (create_breakpoint): Use the 'force_condition'
667 argument when 'parse_extra' is false to check if the condition
668 is invalid at all of the breakpoint locations.
669 Update the users below.
670 (break_command_1)
671 (dprintf_command)
672 (trace_command)
673 (ftrace_command)
674 (strace_command)
675 (create_tracepoint_from_upload): Update.
676 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
677 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
678 * python/py-breakpoint.c (bppy_init): Update.
679 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
680
85c88e2a
TBA
6812021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
682
683 * breakpoint.c (print_one_breakpoint_location): Display "N" for
684 disabled-by-condition locations on MI-like output.
685 (breakpoint_1): Do not display the disabled-by-condition footnote
686 if the output is MI-like.
687
fd34472c
FC
6882021-04-21 Frederic Cambus <fred@statdns.com>
689
690 * syscalls/update-netbsd.sh: Fix script name display in usage, and
691 update year range in generated copyright notices.
692
184dcd81
FW
6932021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
694
695 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
696 qualifier_seq_noopt.
697
525174e8
FW
6982021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
699
700 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
701
f5dc2ee3
AB
7022021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
703
704 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
705 (producer_is_icc): Replace use of std::regex with gdb's
706 compiled_regex.
707
42c2c694
TT
7082021-04-17 Tom Tromey <tom@tromey.com>
709
710 PR gdb/23743:
711 * dwarf2/read.c (class offset_view): New.
712 (struct symbol_table_slot): Remove.
713 (struct mapped_index) <symbol_table, constant_pool>: Change type.
714 <symbol_name_index, symbol_vec_index>: New methods.
715 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
716 Rewrite.
717 (read_gdb_index_from_buffer): Update.
718 (struct dw2_symtab_iterator) <vec>: Change type.
719 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
720 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
721 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
722 <append_array, append_offset>: New methods.
723 (write_hash_table, add_address_entry, write_gdbindex_1)
724 (write_debug_names): Update.
725 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
726
da314dd3
TT
7272021-04-17 Tom Tromey <tom@tromey.com>
728
729 * dwarf2/index-write.c (write_psymtabs_to_index): Check
730 partial_symtabs.
731
0b7b2c2a
TT
7322021-04-17 Tom Tromey <tom@tromey.com>
733
734 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
735 from map_matching_symbols. Change parameters.
736 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
737 Rename from map_matching_symbols. Change parameters.
738 * dwarf2/read.c (struct dwarf2_gdb_index)
739 <expand_matching_symbols>: Rename from map_matching_symbols.
740 Change parameters.
741 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
742 Rename from map_matching_symbols. Change parameters.
743 (dwarf2_gdb_index::expand_matching_symbols): Rename from
744 dw2_map_matching_symbols. Change parameters.
745 (dwarf2_gdb_index::expand_matching_symbols): Remove old
746 implementation.
747 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
748 map_matching_symbols. Change parameters.
749 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
750 from map_matching_symbols. Change parameters.
751 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
752 map_matching_symbols. Change parameters.
753 * ada-lang.c (map_matching_symbols): New function.
754 (add_nonlocal_symbols): Update.
755
90160b57
TT
7562021-04-17 Tom Tromey <tom@tromey.com>
757
758 * quick-symbol.h (struct quick_symbol_functions)
759 <expand_symtabs_with_fullname>: Remove.
760 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
761 Remove.
762 * psympriv.h (struct psymbol_functions)
763 <expand_symtabs_with_fullname>: Remove.
764 * dwarf2/read.c (struct dwarf2_base_index_functions)
765 <expand_symtabs_with_fullname>: Remove.
766 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
767 Remove.
768 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
769 Update comment.
770 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
771 Rewrite.
772
7089bd88
TT
7732021-04-17 Tom Tromey <tom@tromey.com>
774
775 * symfile-debug.c (objfile::expand_symtabs_for_function):
776 Rewrite.
777 * quick-symbol.h (struct quick_symbol_functions)
778 <expand_symtabs_for_function>: Remove.
779 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
780 Remove.
781 * psympriv.h (struct psymbol_functions)
782 <expand_symtabs_for_function>: Remove.
783 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
784 Update comment.
785 * dwarf2/read.c (struct dwarf2_gdb_index)
786 <expand_symtabs_for_function>: Remove.
787 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
788 Remove.
789 (find_slot_in_mapped_hash): Remove.
790 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
791 (dw2_symtab_iter_init): Remove one overload.
792 (dwarf2_gdb_index::expand_symtabs_for_function)
793 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
794
536a40f3
TT
7952021-04-17 Tom Tromey <tom@tromey.com>
796
797 * symfile-debug.c (objfile::map_symtabs_matching_filename):
798 Rewrite.
799 * quick-symbol.h (struct quick_symbol_functions)
800 <map_symtabs_matching_filename>: Remove.
801 * psymtab.c (partial_map_expand_apply)
802 (psymbol_functions::map_symtabs_matching_filename): Remove.
803 * psympriv.h (struct psymbol_functions)
804 <map_symtabs_matching_filename>: Remove.
805 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
806 Update comment.
807 * dwarf2/read.c (struct dwarf2_base_index_functions)
808 <map_symtabs_matching_filename>: Remove.
809 (dw2_map_expand_apply)
810 (dwarf2_base_index_functions::map_symtabs_matching_filename):
811 Remove.
812
84d865e3
TT
8132021-04-17 Tom Tromey <tom@tromey.com>
814
815 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
816 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
817 Remove.
818 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
819 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
820 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
821 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
822 Remove.
823 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
824 (dwarf2_gdb_index::lookup_symbol)
825 (dwarf2_debug_names_index::lookup_symbol): Remove.
826
3bfa51a7
TT
8272021-04-17 Tom Tromey <tom@tromey.com>
828
829 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
830 * symmisc.c (maintenance_expand_symtabs): Update.
831 * symfile.c (expand_symtabs_matching): Update.
832 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
833 parameter.
834 * quick-symbol.h (struct quick_symbol_functions)
835 <expand_symtabs_matching>: Add 'domain' parameter.
836 * psymtab.c (recursively_search_psymtabs)
837 (psymbol_functions::expand_symtabs_matching): Add 'domain'
838 parameter.
839 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
840 Add 'domain' parameter.
841 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
842 'domain' parameter.
843 * linespec.c (iterate_over_all_matching_symtabs): Update.
844 * dwarf2/read.c (struct dwarf2_gdb_index)
845 <expand_symtabs_matching>: Add 'domain' parameter.
846 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
847 'domain' parameter.
848 (dw2_expand_symtabs_matching)
849 (dwarf2_gdb_index::expand_symtabs_matching)
850 (dw2_debug_names_iterator)
851 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
852 parameter.
853
03a8ea51
TT
8542021-04-17 Tom Tromey <tom@tromey.com>
855
856 * symtab.c (global_symbol_searcher::expand_symtabs)
857 (default_collect_symbol_completion_matches_break_on): Update.
858 * symmisc.c (maintenance_expand_symtabs): Update.
859 * symfile.h (expand_symtabs_matching): Add search_flags
860 parameter.
861 * symfile.c (expand_symtabs_matching): Add search_flags
862 parameter.
863 * symfile-debug.c (objfile::expand_symtabs_matching): Add
864 search_flags parameter.
865 * quick-symbol.h (struct quick_symbol_functions)
866 <expand_symtabs_matching>: Add search_flags parameter.
867 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
868 * psymtab.c (recursively_search_psymtabs)
869 (psymbol_functions::expand_symtabs_matching): Add search_flags
870 parameter.
871 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
872 Add search_flags parameter.
873 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
874 search_flags parameter.
875 * linespec.c (iterate_over_all_matching_symtabs): Update.
876 * dwarf2/read.c (struct dwarf2_gdb_index)
877 <expand_symtabs_matching>: Add search_flags parameter.
878 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
879 search_flags parameter.
880 (dw2_map_matching_symbols): Update.
881 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
882 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
883 parameter.
884 (dw2_debug_names_iterator): Change block_index to search flags.
885 <m_block_index>: Likewise.
886 (dw2_debug_names_iterator::next)
887 (dwarf2_debug_names_index::lookup_symbol)
888 (dwarf2_debug_names_index::expand_symtabs_for_function)
889 (dwarf2_debug_names_index::map_matching_symbols)
890 (dwarf2_debug_names_index::map_matching_symbols): Update.
891 (dwarf2_debug_names_index::expand_symtabs_matching): Add
892 search_flags parameter.
893 * ada-lang.c (ada_add_global_exceptions)
894 (collect_symbol_completion_matches): Update.
895
df35e626
TT
8962021-04-17 Tom Tromey <tom@tromey.com>
897
898 * symtab.c (default_collect_symbol_completion_matches_break_on):
899 Update.
900 * symfile.h (expand_symtabs_matching): Return bool.
901 * symfile.c (expand_symtabs_matching): Return bool.
902 * symfile-debug.c (objfile::expand_symtabs_matching): Return
903 bool.
904 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
905 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
906 bool.
907 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
908 bool.
909 * psympriv.h (struct psymbol_functions)
910 <expand_symtabs_matching>: Return bool.
911 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
912 bool.
913 * dwarf2/read.c (struct dwarf2_gdb_index)
914 <expand_symtabs_matching>: Return bool.
915 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
916 Return bool.
917 (dw2_expand_symtabs_matching_symbol): Return bool.
918 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
919 (dw2_expand_symtabs_matching)
920 (dwarf2_gdb_index::expand_symtabs_matching)
921 (dwarf2_debug_names_index::expand_symtabs_matching)
922 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
923
e357e990
TT
9242021-04-17 Tom Tromey <tom@tromey.com>
925
926 * quick-symbol.h (enum block_search_flag_values): New.
927 (block_search_flags): New enum flags type.
928
3cbc7ac3
TT
9292021-04-16 Tom Tromey <tom@tromey.com>
930
931 * rust-parse.c: New file.
932 * rust-exp.y: Remove.
933 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
934 (SFILES): Remove rust-exp.y.
935 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
936
1b6b755e
LM
9372021-04-16 Luis Machado <luis.machado@linaro.org>
938
939 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
940
c45ecc9d
JB
9412021-04-15 John Baldwin <jhb@FreeBSD.org>
942
943 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
944 use throughout file.
945
a15a276b
TT
9462021-04-15 Tom Tromey <tromey@adacore.com>
947
948 * ada-valprint.c (ada_value_print_array): Handle optimized-out
949 arrays.
950
644a2e75
TT
9512021-04-15 Tom Tromey <tromey@adacore.com>
952
953 * printcmd.c (print_variable_and_value): Use
954 common_val_print_checked.
955
9e5e03df
TT
9562021-04-15 Tom Tromey <tromey@adacore.com>
957
958 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
959 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
960 Update.
961 * p-exp.y (variable): Update.
962 * m2-exp.y (variable): Update.
963 * go-exp.y (variable): Update.
964 * expprint.c (dump_for_expression): New overload.
965 * expop.h (check_objfile): New overload.
966 (check_constant): New overload.
967 (class var_value_operation): Use block_symbol.
968 <get_symbol>: Rewrite.
969 * eval.c (var_value_operation::evaluate)
970 (var_value_operation::evaluate_funcall)
971 (var_value_operation::evaluate_for_address)
972 (var_value_operation::evaluate_for_address)
973 (var_value_operation::evaluate_with_coercion)
974 (var_value_operation::evaluate_for_sizeof)
975 (var_value_operation::evaluate_for_cast): Update.
976 * d-exp.y (PrimaryExpression): Update.
977 * c-exp.y (variable): Update.
978 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
979 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
980 (ada_var_value_operation::evaluate)
981 (ada_var_value_operation::resolve)
982 (ada_funcall_operation::resolve): Update.
983 * ada-exp.y (write_var_from_sym, write_object_renaming)
984 (write_ambiguous_var, write_var_or_type, write_name_assoc)
985 (maybe_overload): Update.
986 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
987
5809fbf2
TT
9882021-04-15 Tom Tromey <tom@tromey.com>
989 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * NEWS: Add entry.
992 * main.c (captured_main_1): Call check_quiet_mode.
993 * top.c (startup_quiet): New global.
994 (check_quiet_mode): New function.
995 (show_startup_quiet): New function.
996 (init_main): Register new command.
997 * top.h (check_quiet_mode): Declare.
998
92e4e97a
AB
9992021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1000
1001 PR cli/25956
1002 * NEWS: Mention new early init files and command line options.
1003 * config.in: Regenerate.
1004 * configure: Regenerate.
1005 * configure.ac: Define GDBEARLYINIT.
1006 * main.c (get_earlyinit_files): New function.
1007 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1008 CMDARG_EARLYINIT_COMMAND.
1009 (captured_main_1): Add support for new command line flags, and for
1010 processing startup files.
1011 (print_gdb_help): Include startup files in the output.
1012
54b4dcc5
AB
10132021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1016 (relocate_file_path_maybe_in_datadir): ...this.
1017 (class gdb_initfile_finder): New class.
1018 (get_init_files): Now uses gdb_initfile_finder.
1019 (print_gdb_help): Print 'None found' when there are no init files.
1020
34dc0f95
TBA
10212021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1022
1023 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1024 corresponding child of the abstract DIE when iterating the
1025 children of the concrete DIE.
1026
329534fd
TV
10272021-04-13 Tom de Vries <tdevries@suse.de>
1028
1029 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1030 type to regoff_t *.
1031
d9d2ef05
LM
10322021-04-13 Luis Machado <luis.machado@linaro.org>
1033
1034 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1035 hex values.
1036
c8a37944
WS
10372021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1038
1039 * rs6000-tdep.c: Add support for single-stepping of
1040 prefixed instructions.
1041
b722acca
WS
10422021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1043
e3d528d7
WS
1044 PR gdb/27525
1045 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1046 handle the addpcis/lnia instruction.
1047
10482021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1049
b722acca
WS
1050 * MAINTAINERS (Write After Approval): Add myself.
1051
6ba4cb84
CL
10522021-4-12 Carl Love <cel@us.ibm.com>
1053
1054 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1055 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1056 float128.
1057
d4717483
SM
10582021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1059
1060 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1061 * nat/windows-nat.h: Likewise.
1062
b3885679
EZ
10632021-04-10 Eli Zaretskii <eliz@gnu.org>
1064
1065 * windows-nat.c (windows_nat::handle_load_dll): Call
1066 windows_add_dll if get_image_name failed to glean the name of the
1067 DLL by using the lpImageName pointer.
1068 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1069 (windows_add_dll): Now does what windows_add_all_dlls did before,
1070 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1071 specifies the address where the DLL was loaded into the inferior,
1072 and looks for the single DLL loaded at that address.
1073
1ef6a596
LM
10742021-04-09 Luis Machado <luis.machado@linaro.org>
1075
1076 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1077
83a559f7
DQ
10782021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1079
1080 * darwin-nat.c (darwin_nat_target::resume): Remove status
1081 variable.
1082
16e311ab
FW
10832021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1084
1085 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1086 prologue end for Intel compilers.
1087 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1088 * producer.c (producer_is_icc_ge_19): New function.
1089 * producer.h (producer_is_icc_ge_19): New declaration.
1090
fbb3bcfc
FW
10912021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1092
1093 * producer.c: (producer_is_icc): Update for new version scheme.
1094 (producer_parsing_tests): Update names and expected results.
1095 * producer.h: (producer_is_icc): Update comment accordingly.
1096
e97007b6
SM
10972021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1098
1099 * target.h (struct target_ops) <follow_fork>: Return void.
1100 (target_follow_fork): Likewise.
1101 * target.c (default_follow_fork): Likewise.
1102 (target_follow_fork): Likewise.
1103 * infrun.c (follow_fork_inferior): Adjust.
1104 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1105 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1106 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1107 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1108 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1109 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1110 * remote.c (class remote_target) <follow_fork>: Likewise.
1111 (remote_target::follow_fork): Likewise.
1112 * target-delegates.c: Re-generate.
1113
dc2b480f
WP
11142021-04-07 Weimin Pan <weimin.pan@oracle.com>
1115
1116 * ctfread.c (fetch_tid_type): New function, use throughout file.
1117 (read_forward_type): New function.
1118 (read_type_record): Call read_forward_type.
1119
0a703a4c
AB
11202021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * f-exp.h (class fortran_structop_operation): New class.
1123 * f-exp.y (exp): Create fortran_structop_operation instead of the
1124 generic structop_operation.
1125 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1126 expression as EVAL_NORMAL if the result type was dynamic so we can
1127 extract the actual array bounds.
1128 (fortran_structop_operation::evaluate): New function.
1129
11302021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * eval.c (evaluate_subexp_standard): Remove
1133 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1134 STRUCTOP_PTR.
1135
30ab3586
AB
11362021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * valops.c (value_cast): Call value_deeply_equal before performing
1139 any cast.
1140
5e18990f
AB
11412021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1144 the function.
1145
56d467f4
CT
11462021-04-07 Caroline Tice <cmtice@google.com>
1147
1148 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1149 the search paths used resolve relative location of .dwo file.
1150
1fd999d9
AB
11512021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1154 assert.
1155 (dwarf2_section_info::get_file_name): Add an assert.
1156 (dwarf2_section_info::read_string): Display a minimal, sane error
1157 when the dwarf2_section_info is not associated with a bfd section.
1158
79c02443
AB
11592021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * top.c (staged_gdb_datadir): Update comment.
1162 (set_gdb_datadir): Copy the value of gdb_datadir back into
1163 staged_datadir.
1164 (init_main): Initialise staged_gdb_datadir.
1165
340d00fb
TV
11662021-04-06 Tom de Vries <tdevries@suse.de>
1167
1168 PR breakpoints/25884
1169 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1170 stepping range.
1171
d811a7cf
TV
11722021-04-06 Tom de Vries <tdevries@suse.de>
1173
1174 PR tui/27680
1175 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1176 to style.parse.
1177
306b445a
SM
11782021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * avr-tdep.c (avr_frame_unwind_cache): Use
1181 trad_frame_saved_reg::is_addr.
1182
9161c89a
SM
11832021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1186 adjust callers.
1187
0072c873
SM
11882021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1189
1190 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1191 objfile parameter for objfile_per_bfd_storage, adjust callers.
1192 (struct standard_psymtab) <standard_psymtab>: Likewise.
1193 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1194 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1195 * ctfread.c (struct ctf_psymtab): Likewise.
1196 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1197 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1198 (dwarf2_create_include_psymtab): Likewise.
1199 * objfiles.h (struct objfile_per_bfd_storage)
1200 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1201 <get_bfd>: New method.
1202 <m_bfd>: New field.
1203 * objfiles.c (get_objfile_bfd_data): Adjust.
1204
9984dd99
SM
12052021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * psymtab.c (partial_symtab::partial_symtab): Change
1208 last_objfile_name to be an std::string.
1209 * symfile.c (allocate_symtab): Likewise.
1210
4a4f97c1
SM
12112021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1214 methods.
1215 (struct objfile) <intern>: Use
1216 objfile::objfile_per_bfd_storage::intern.
1217
0672875f
SM
12182021-04-01 Simon Marchi <simon.marchi@efficios.com>
1219
1220 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1221 with type::is_flag_enum.
1222
9902b327
SM
12232021-04-01 Simon Marchi <simon.marchi@efficios.com>
1224
1225 * gdbtypes.h (struct type) <is_flag_enum,
1226 set_is_flag_enum>: New methods.
1227 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1228 write call sites to use type::set_is_flag_enum.
1229
3bc440a2
SM
12302021-04-01 Simon Marchi <simon.marchi@efficios.com>
1231
1232 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1233 with type::is_declared_class.
1234
aa70e35c
SM
12352021-04-01 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * gdbtypes.h (struct type) <is_declared_class,
1238 set_is_declared_class>: New methods.
1239 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1240 write call sites to use type::set_is_declared_class.
1241
bfb9f5dc
BS
12422021-02-28 Boris Staletic <boris.staletic@gmail.com>
1243
1244 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1245 to avoid deprecation warnings.
1246
733f5eea
ML
12472021-04-01 Martin Liska <mliska@suse.cz>
1248
1249 * cp-name-parser.y: Use startswith instead of strncmp.
1250 * m2-exp.y: Likewise.
1251 * macroexp.c (substitute_args): Likewise.
1252 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1253 * rust-exp.y: Likewise.
1254
af82f89d
TT
12552021-03-31 Tom Tromey <tom@tromey.com>
1256
1257 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1258 with dw2_map_matching_symbols.
1259 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1260 dw2_expand_symtabs_matching.
1261
3570682a
TT
12622021-03-31 Tom Tromey <tromey@adacore.com>
1263
1264 * dwarf2/stringify.h: Fix typo.
1265
8a91fbdf
SM
12662021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 PR gdb/27541
1269 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1270 with objfiles using READNOW.
1271
9f67fc59
TT
12722021-03-29 Tom Tromey <tromey@adacore.com>
1273
1274 * top.c (check_frame_language_change): Update.
1275 * language.c (language_info): Remove parameter.
1276 * language.h (language_info): Remove parameter.
1277
9b8ffbf4
LM
12782021-03-29 Luis Machado <luis.machado@linaro.org>
1279
1280 * compile/compile.c (get_args): Don't add empty argv entries.
1281
25b48839
RO
12822021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1283
1284 gdb:
1285 * procfs.c (procfs_target::attach): Define inf.
1286 Use it.
1287 (procfs_target::create_inferior): Likewise.
1288
edc02ceb
TT
12892021-03-28 Tom Tromey <tom@tromey.com>
1290
1291 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1292 (elf_symfile_read): Simplify.
1293 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1294 (make_lazy_dwarf_reader): New function.
1295 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1296 (dwarf2_initialize_objfile): Return void. Remove index_kind
1297 parameter. Push on 'qf' list.
1298 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1299 type. Remove 'index_kind' parameter.
1300 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1301
6e23d91a
TT
13022021-03-27 Tom Tromey <tom@tromey.com>
1303
1304 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1305
594b8948
TT
13062021-03-27 Tom Tromey <tom@tromey.com>
1307
1308 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1309
efe1ecd8
LS
13102021-03-26 Lancelot Six <lsix@lancelotsix.com>
1311
1312 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1313 rid of 'local'.
1314
f4655dee
TT
13152021-03-26 Tom Tromey <tom@tromey.com>
1316
1317 * symtab.c (struct output_source_filename_data): Add 'output'
1318 method and operator().
1319 (output_source_filename_data::output): Rename from
1320 output_source_filename.
1321 (output_partial_symbol_filename): Remove.
1322 (info_sources_command): Update.
1323 (struct add_partial_filename_data): Add operator().
1324 (add_partial_filename_data::operator()): Rename from
1325 maybe_add_partial_symtab_filename.
1326 (make_source_files_completion_list): Update.
1327 * symfile.c (quick_symbol_functions): Update.
1328 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1329 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1330 'need_fullname'. Remove 'data' parameter.
1331 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1332 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1333 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1334 Change type of 'fun' and 'need_fullname'. Remove 'data'
1335 parameter.
1336 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1337 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1338 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1339 parameter.
1340 (mi_cmd_file_list_exec_source_files): Update.
1341 * dwarf2/read.c
1342 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1343
2315bb2d
TT
13442021-03-26 Tom Tromey <tom@tromey.com>
1345
1346 * ada-lang.c (struct match_data): Add operator().
1347 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1348 (callback): Remove 'callback'.
1349
e2cd5ca4
TT
13502021-03-26 Tom Tromey <tom@tromey.com>
1351
1352 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1353 call make_ignore_params once.
1354
cd43f63e
TT
13552021-03-26 Tom Tromey <tom@tromey.com>
1356
1357 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1358 "user" check.
1359
b4b1a226
SM
13602021-03-26 Simon Marchi <simon.marchi@efficios.com>
1361 Pedro Alves <pedro@palves.net>
1362
1363 * async-event.c: Include "infrun.h".
1364 (async_event_handler_marked): New.
1365 * async-event.h (async_event_handler_marked): Declare.
1366 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1367 inferior before calling target method. Don't commit-resumed if
1368 target_has_pending_events is true.
1369 * remote.c (remote_target::has_pending_events): New.
1370 * target-delegates.c: Regenerate.
1371 * target.c (target_has_pending_events): New.
1372 * target.h (target_ops::has_pending_events): New target method.
1373 (target_has_pending_events): New.
1374
1192f124
SM
13752021-03-26 Simon Marchi <simon.marchi@efficios.com>
1376 Pedro Alves <pedro@palves.net>
1377
1378 * infcmd.c (run_command_1, attach_command, detach_command)
1379 (interrupt_target_1): Use scoped_disable_commit_resumed.
1380 * infrun.c (do_target_resume): Remove
1381 target_commit_resume call.
1382 (commit_resume_all_targets): Remove.
1383 (maybe_set_commit_resumed_all_targets): New.
1384 (maybe_call_commit_resumed_all_targets): New.
1385 (enable_commit_resumed): New.
1386 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1387 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1388 (scoped_disable_commit_resumed::reset)
1389 (scoped_disable_commit_resumed::reset_and_commit)
1390 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1391 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1392 New.
1393 (proceed): Use scoped_disable_commit_resumed and
1394 maybe_call_commit_resumed_all_targets.
1395 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1396 * infrun.h (struct scoped_disable_commit_resumed): New.
1397 (maybe_call_commit_resumed_all_process_targets): New.
1398 (struct scoped_enable_commit_resumed): New.
1399 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1400 * process-stratum-target.h (class process_stratum_target):
1401 <commit_resumed_state>: New.
1402 * record-full.c (record_full_wait_1): Change commit_resumed_state
1403 around calling commit_resumed.
1404 * remote.c (class remote_target) <commit_resume>: Rename to...
1405 <commit_resumed>: ... this.
1406 (struct stop_reply): Move up.
1407 (remote_target::commit_resume): Rename to...
1408 (remote_target::commit_resumed): ... this. Check if there is any
1409 thread pending vCont resume.
1410 (remote_target::remote_stop_ns): Generate stop replies for resumed
1411 but pending vCont threads.
1412 (remote_target::wait_ns): Add gdb_assert.
1413 * target-delegates.c: Regenerate.
1414 * target.c (target_wait, target_resume): Assert that the current
1415 process_stratum target isn't in commit-resumed state.
1416 (defer_target_commit_resume): Remove.
1417 (target_commit_resume): Remove.
1418 (target_commit_resumed): New.
1419 (make_scoped_defer_target_commit_resume): Remove.
1420 (target_stop): Assert that the current process_stratum target
1421 isn't in commit-resumed state.
1422 * target.h (struct target_ops) <commit_resume>: Rename to ...
1423 <commit_resumed>: ... this.
1424 (target_commit_resume): Remove.
1425 (target_commit_resumed): New.
1426 (make_scoped_defer_target_commit_resume): Remove.
1427 * top.c (wait_sync_command_done): Use
1428 scoped_enable_commit_resumed.
1429
e5b9b39f
PA
14302021-03-26 Pedro Alves <pedro@palves.net>
1431
1432 * target.c (target_always_non_stop_p): Also check whether the
1433 target can async.
1434
bab287cd
TT
14352021-03-26 Tom Tromey <tom@tromey.com>
1436
1437 * dwarf2/read.c (dwarf2_read_debug_names)
1438 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1439 (dw2_debug_names_iterator::next, create_type_unit_group):
1440 Simplify.
1441
eff4f69d
PA
14422021-03-25 Pedro Alves <pedro@palves.net>
1443
1444 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1445 around setting the breakpoint.
1446
323fd5b9
PA
14472021-03-25 Pedro Alves <pedro@palves.net>
1448
1449 * remote.c
1450 (remote_target::check_pending_events_prevent_wildcard_vcont):
1451 Check whether the event's ptid is not null_ptid before looking up
1452 the corresponding inferior.
1453
d3cbca38
CD
14542021-03-24 Changbin Du <changbin.du@gmail.com>
1455
1456 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1457 read_code.
1458
328d42d8
SM
14592021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1460
1461 * target.h (current_top_target): Remove, make callers use the
1462 current inferior instead.
1463 * target.c (current_top_target): Remove.
1464
d777bf0d
SM
14652021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1466
1467 * target.h (target_shortname): Change to function declaration.
1468 (target_longname): Likewise.
1469 (target_attach_no_wait): Likewise.
1470 (target_post_attach): Likewise.
1471 (target_prepare_to_store): Likewise.
1472 (target_supports_enable_disable_tracepoint): Likewise.
1473 (target_supports_string_tracing): Likewise.
1474 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1475 (target_supports_dumpcore): Likewise.
1476 (target_dumpcore): Likewise.
1477 (target_can_run_breakpoint_commands): Likewise.
1478 (target_files_info): Likewise.
1479 (target_post_startup_inferior): Likewise.
1480 (target_insert_fork_catchpoint): Likewise.
1481 (target_remove_fork_catchpoint): Likewise.
1482 (target_insert_vfork_catchpoint): Likewise.
1483 (target_remove_vfork_catchpoint): Likewise.
1484 (target_insert_exec_catchpoint): Likewise.
1485 (target_remove_exec_catchpoint): Likewise.
1486 (target_set_syscall_catchpoint): Likewise.
1487 (target_rcmd): Likewise.
1488 (target_can_lock_scheduler): Likewise.
1489 (target_can_async_p): Likewise.
1490 (target_is_async_p): Likewise.
1491 (target_execution_direction): Likewise.
1492 (target_extra_thread_info): Likewise.
1493 (target_pid_to_exec_file): Likewise.
1494 (target_thread_architecture): Likewise.
1495 (target_find_memory_regions): Likewise.
1496 (target_make_corefile_notes): Likewise.
1497 (target_get_bookmark): Likewise.
1498 (target_goto_bookmark): Likewise.
1499 (target_stopped_by_watchpoint): Likewise.
1500 (target_stopped_by_sw_breakpoint): Likewise.
1501 (target_supports_stopped_by_sw_breakpoint): Likewise.
1502 (target_stopped_by_hw_breakpoint): Likewise.
1503 (target_supports_stopped_by_hw_breakpoint): Likewise.
1504 (target_have_steppable_watchpoint): Likewise.
1505 (target_can_use_hardware_watchpoint): Likewise.
1506 (target_region_ok_for_hw_watchpoint): Likewise.
1507 (target_can_do_single_step): Likewise.
1508 (target_insert_watchpoint): Likewise.
1509 (target_remove_watchpoint): Likewise.
1510 (target_insert_hw_breakpoint): Likewise.
1511 (target_remove_hw_breakpoint): Likewise.
1512 (target_can_accel_watchpoint_condition): Likewise.
1513 (target_can_execute_reverse): Likewise.
1514 (target_get_ada_task_ptid): Likewise.
1515 (target_filesystem_is_local): Likewise.
1516 (target_trace_init): Likewise.
1517 (target_download_tracepoint): Likewise.
1518 (target_can_download_tracepoint): Likewise.
1519 (target_download_trace_state_variable): Likewise.
1520 (target_enable_tracepoint): Likewise.
1521 (target_disable_tracepoint): Likewise.
1522 (target_trace_start): Likewise.
1523 (target_trace_set_readonly_regions): Likewise.
1524 (target_get_trace_status): Likewise.
1525 (target_get_tracepoint_status): Likewise.
1526 (target_trace_stop): Likewise.
1527 (target_trace_find): Likewise.
1528 (target_get_trace_state_variable_value): Likewise.
1529 (target_save_trace_data): Likewise.
1530 (target_upload_tracepoints): Likewise.
1531 (target_upload_trace_state_variables): Likewise.
1532 (target_get_raw_trace_data): Likewise.
1533 (target_get_min_fast_tracepoint_insn_len): Likewise.
1534 (target_set_disconnected_tracing): Likewise.
1535 (target_set_circular_trace_buffer): Likewise.
1536 (target_set_trace_buffer_size): Likewise.
1537 (target_set_trace_notes): Likewise.
1538 (target_get_tib_address): Likewise.
1539 (target_set_permissions): Likewise.
1540 (target_static_tracepoint_marker_at): Likewise.
1541 (target_static_tracepoint_markers_by_strid): Likewise.
1542 (target_traceframe_info): Likewise.
1543 (target_use_agent): Likewise.
1544 (target_can_use_agent): Likewise.
1545 (target_augmented_libraries_svr4_read): Likewise.
1546 (target_log_command): Likewise.
1547 * target.c (target_shortname): New.
1548 (target_longname): New.
1549 (target_attach_no_wait): New.
1550 (target_post_attach): New.
1551 (target_prepare_to_store): New.
1552 (target_supports_enable_disable_tracepoint): New.
1553 (target_supports_string_tracing): New.
1554 (target_supports_evaluation_of_breakpoint_conditions): New.
1555 (target_supports_dumpcore): New.
1556 (target_dumpcore): New.
1557 (target_can_run_breakpoint_commands): New.
1558 (target_files_info): New.
1559 (target_post_startup_inferior): New.
1560 (target_insert_fork_catchpoint): New.
1561 (target_remove_fork_catchpoint): New.
1562 (target_insert_vfork_catchpoint): New.
1563 (target_remove_vfork_catchpoint): New.
1564 (target_insert_exec_catchpoint): New.
1565 (target_remove_exec_catchpoint): New.
1566 (target_set_syscall_catchpoint): New.
1567 (target_rcmd): New.
1568 (target_can_lock_scheduler): New.
1569 (target_can_async_p): New.
1570 (target_is_async_p): New.
1571 (target_execution_direction): New.
1572 (target_extra_thread_info): New.
1573 (target_pid_to_exec_file): New.
1574 (target_thread_architecture): New.
1575 (target_find_memory_regions): New.
1576 (target_make_corefile_notes): New.
1577 (target_get_bookmark): New.
1578 (target_goto_bookmark): New.
1579 (target_stopped_by_watchpoint): New.
1580 (target_stopped_by_sw_breakpoint): New.
1581 (target_supports_stopped_by_sw_breakpoint): New.
1582 (target_stopped_by_hw_breakpoint): New.
1583 (target_supports_stopped_by_hw_breakpoint): New.
1584 (target_have_steppable_watchpoint): New.
1585 (target_can_use_hardware_watchpoint): New.
1586 (target_region_ok_for_hw_watchpoint): New.
1587 (target_can_do_single_step): New.
1588 (target_insert_watchpoint): New.
1589 (target_remove_watchpoint): New.
1590 (target_insert_hw_breakpoint): New.
1591 (target_remove_hw_breakpoint): New.
1592 (target_can_accel_watchpoint_condition): New.
1593 (target_can_execute_reverse): New.
1594 (target_get_ada_task_ptid): New.
1595 (target_filesystem_is_local): New.
1596 (target_trace_init): New.
1597 (target_download_tracepoint): New.
1598 (target_can_download_tracepoint): New.
1599 (target_download_trace_state_variable): New.
1600 (target_enable_tracepoint): New.
1601 (target_disable_tracepoint): New.
1602 (target_trace_start): New.
1603 (target_trace_set_readonly_regions): New.
1604 (target_get_trace_status): New.
1605 (target_get_tracepoint_status): New.
1606 (target_trace_stop): New.
1607 (target_trace_find): New.
1608 (target_get_trace_state_variable_value): New.
1609 (target_save_trace_data): New.
1610 (target_upload_tracepoints): New.
1611 (target_upload_trace_state_variables): New.
1612 (target_get_raw_trace_data): New.
1613 (target_get_min_fast_tracepoint_insn_len): New.
1614 (target_set_disconnected_tracing): New.
1615 (target_set_circular_trace_buffer): New.
1616 (target_set_trace_buffer_size): New.
1617 (target_set_trace_notes): New.
1618 (target_get_tib_address): New.
1619 (target_set_permissions): New.
1620 (target_static_tracepoint_marker_at): New.
1621 (target_static_tracepoint_markers_by_strid): New.
1622 (target_traceframe_info): New.
1623 (target_use_agent): New.
1624 (target_can_use_agent): New.
1625 (target_augmented_libraries_svr4_read): New.
1626 (target_log_command): New.
1627 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1628 * infrun.c (set_schedlock_func): Adjust.
1629 * mi/mi-main.c (exec_reverse_continue): Adjust.
1630 * reverse.c (exec_reverse_once): Adjust.
1631 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1632 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1633 * remote-sim.c (gdbsim_target::detach): Adjust.
1634 (gdbsim_target::files_info): Adjust.
1635
b64f703b
TT
16362021-03-24 Tom Tromey <tom@tromey.com>
1637
1638 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1639 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1640 (check_match, dw2_expand_symtabs_matching)
1641 (dwarf2_debug_names_index::map_matching_symbols)
1642 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1643
68f115f8
KS
16442021-03-24 Keith Seitz <keiths@redhat.com>
1645
1646 * compile/compile-cplus-types.c
1647 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1648 thinko.
1649
41c0087b
SM
16502021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * gdbarch.sh (gdbarch_data_registry): Make static.
1653 * gdbarch.c: Re-generate.
1654
ce192338
LM
16552021-03-24 Luis Machado <luis.machado@linaro.org>
1656
1657 * NEWS: Mention memory tagging changes.
1658
bef382e6
LM
16592021-03-24 Luis Machado <luis.machado@linaro.org>
1660
1661 * printcmd.c (decode_format): Handle the 'm' modifier.
1662 (do_examine): Display allocation tags when required/supported.
1663 (should_validate_memtags): New function.
1664 (print_command_1): Display memory tag mismatches.
1665 * valprint.c (show_memory_tag_violations): New function.
1666 (value_print_option_defs): Add new option "memory-tag-violations".
1667 (user_print_options) <memory_tag_violations>: Initialize to 1.
1668 * valprint.h (struct format_data) <print_tags>: New field.
1669 (value_print_options) <memory_tag_violations>: New field.
1670
48136e00
LM
16712021-03-24 Luis Machado <luis.machado@linaro.org>
1672
1673 * printcmd.c: Include gdbsupport/rsp-low.h.
1674 (memory_tag_list): New static global.
1675 (process_print_command_args): Factored out of
1676 print_command_1.
1677 (print_command_1): Use process_print_command_args.
1678 (show_addr_not_tagged, show_memory_tagging_unsupported)
1679 (memory_tag_command, memory_tag_print_tag_command)
1680 (memory_tag_print_logical_tag_command)
1681 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1682 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1683 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1684 functions.
1685 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1686
ffcc2a15
LM
16872021-03-24 Luis Machado <luis.machado@linaro.org>
1688
1689 * aarch64-linux-tdep.c
1690 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1691 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1692
cf44c9fa
LM
16932021-03-24 Luis Machado <luis.machado@linaro.org>
1694
1695 * aarch64-linux-tdep.c
1696 (aarch64_linux_report_signal_info): New function.
1697 (aarch64_linux_init_abi): Register
1698 aarch64_linux_report_signal_info as the report_signal_info hook.
1699 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1700 (SEGV_MTESERR): Define.
1701
b4a7d4fc
LM
17022021-03-24 Luis Machado <luis.machado@linaro.org>
1703
1704 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1705 (aarch64_linux_ltag_tests): New function.
1706 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1707
c7782e50
LM
17082021-03-24 Luis Machado <luis.machado@linaro.org>
1709
1710 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1711 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1712 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1713 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1714 functions.
1715 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1716 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1717 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1718 (aarch64_linux_get_ltag): New functions.
1719 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1720 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1721 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1722 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1723
1e735120
LM
17242021-03-24 Luis Machado <luis.machado@linaro.org>
1725
1726 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1727 bit.
1728 (struct smaps_data): New struct.
1729 (decode_vmflags): Handle the 'mt' flag.
1730 (parse_smaps_data): New function, refactored from
1731 linux_find_memory_regions_full.
1732 (linux_address_in_memtag_page): New function.
1733 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1734 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1735
93e447c6
LM
17362021-03-24 Luis Machado <luis.machado@linaro.org>
1737
1738 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1739 instead of char arrays.
1740
4601818e
LM
17412021-03-24 Luis Machado <luis.machado@linaro.org>
1742
1743 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1744 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1745 nat/aarch64-mte-linux-ptrace.h.
1746 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1747 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1748 override.
1749 <fetch_memtags>: New method override.
1750 <store_memtags>: New method override.
1751 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1752 (aarch64_linux_nat_target::fetch_memtags): New method.
1753 (aarch64_linux_nat_target::store_memtags): New method.
1754 * arch/aarch64-mte-linux.c: New file.
1755 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1756 (AARCH64_MTE_GRANULE_SIZE): Define.
1757 (aarch64_memtag_type): New enum.
1758 (aarch64_mte_get_tag_granules): New prototype.
1759 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1760 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1761 * nat/aarch64-mte-linux-ptrace.c: New file.
1762 * nat/aarch64-mte-linux-ptrace.h: New file.
1763
3f3bd8b8
LM
17642021-03-24 Luis Machado <luis.machado@linaro.org>
1765
1766 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1767 * nat/aarch64-mte-linux-ptrace.h: New file.
1768
5e984dbf
LM
17692021-03-24 Luis Machado <luis.machado@linaro.org>
1770
1771 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1772 (store_mteregs_to_thread): New function.
1773 (aarch64_linux_nat_target::fetch_registers): Update to call
1774 fetch_mteregs_from_thread.
1775 (aarch64_linux_nat_target::store_registers): Update to call
1776 store_mteregs_to_thread.
1777 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1778 (aarch64_cannot_store_register): Handle MTE registers.
1779 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1780 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1781 <has_mte>: New method.
1782 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1783
c1bd443b
LM
17842021-03-24 Luis Machado <luis.machado@linaro.org>
1785
1786 * aarch64-linux-nat.c
1787 (aarch64_linux_nat_target::read_description): Take MTE flag into
1788 account.
1789 Slight refactor to hwcap flag checking.
1790 * aarch64-linux-tdep.c
1791 (aarch64_linux_core_read_description): Likewise.
1792 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1793 MTE.
1794 (aarch64_read_description): Add mte_p parameter and update to use it.
1795 Update the documentation.
1796 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1797 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1798 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1799 (aarch64_create_target_description): Add mte_p parameter and update
1800 the code to use it.
1801 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1802 parameter.
1803 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1804 * features/aarch64-mte.c: New file, generated.
1805 * features/aarch64-mte.xml: New file.
1806
04245125
LM
18072021-03-24 Luis Machado <luis.machado@linaro.org>
1808
1809 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1810 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1811 * aarch64-linux-tdep.c: Likewise
1812 * arch/aarch64-mte-linux.h: New file.
1813
754487e2
LM
18142021-03-24 Luis Machado <luis.machado@linaro.org>
1815
1816 * remote: Include gdbsupport/selftest.h.
1817 (test_memory_tagging_functions): New function.
1818 (_initialize_remote): Register test_memory_tagging_functions.
1819
2c2e7f87
LM
18202021-03-24 Luis Machado <luis.machado@linaro.org>
1821
1822 * remote.c (PACKET_memory_tagging_feature): New enum.
1823 (remote_memory_tagging_p): New function.
1824 (remote_protocol_features): New "memory-tagging" entry.
1825 (remote_target::remote_query_supported): Handle memory tagging
1826 support.
1827 (remote_target::supports_memory_tagging): Implement.
1828 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1829 (create_store_memtags_request): New functions.
1830 (remote_target::fetch_memtags): Implement.
1831 (remote_target::store_memtags): Implement.
1832 (_initialize_remote): Add new "memory-tagging-feature"
1833 config command.
1834
c193949e
LM
18352021-03-24 Luis Machado <luis.machado@linaro.org>
1836
1837 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1838 (default_memtag_matches_p, default_set_memtags)
1839 (default_get_memtag): New functions.
1840 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1841 (default_memtag_matches_p, default_set_memtags)
1842 (default_get_memtag): New prototypes.
1843 * gdbarch.c: Regenerate.
1844 * gdbarch.h: Regenerate.
1845 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1846 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1847 (enum memtag_type): New enum.
1848
dbe692af
LM
18492021-03-24 Luis Machado <luis.machado@linaro.org>
1850
1851 * remote.c (remote_target) <supports_memory_tagging>: New method
1852 override.
1853 <fetch_memtags>: New method override.
1854 <store_memtags>: New method override.
1855 (remote_target::supports_memory_tagging): New method.
1856 (remote_target::fetch_memtags): New method.
1857 (remote_target::store_memtags): New method.
1858 * target-delegates.c: Regenerate.
1859 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1860 method.
1861 <fetch_memtags>: New virtual method.
1862 <store_memtags>: New virtual method.
1863 (target_supports_memory_tagging): Define.
1864 (target_fetch_memtags): Define.
1865 (target_store_memtags): Define.
1866 * target-debug.h (target_debug_print_size_t)
1867 (target_debug_print_const_gdb_byte_vector_r)
1868 (target_debug_print_gdb_byte_vector_r): New functions.
1869
66848ebc
SM
18702021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 * target.h (target_longname): Remove.
1873
c8fbd44a
SM
18742021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1875
1876 * target.h (target_is_pushed): Remove, update callers to use
1877 inferior::target_is_pushed instead.
1878 * target.c (target_is_pushed): Remove.
1879
02980c56
SM
18802021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 * target.h (push_target): Remove, update callers to use
1883 inferior::push_target.
1884 * target.c (push_target): Remove.
1885 * inferior.h (class inferior) <push_target>: New overload.
1886
fadf6add
SM
18872021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1888
1889 * target.h (unpush_target): Remove, update all callers
1890 to use `inferior::unpush_target` instead.
1891 (struct target_unpusher) <operator()>: Just declare.
1892 * target.c (unpush_target): Remove.
1893 (target_unpusher::operator()): New.
1894
702cf3f5
AB
18952021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1898 error.
1899 (process_full_comp_unit): Validate the top-level tag before
1900 processing the first DIE.
1901 (read_func_scope): Ensure we have a valid builder.
1902
46fec642
AB
19032021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1904
1905 * objc-lang.c (objc_demangle): Renamed to
1906 objc_language::demangle_symbol, and moved later in the file.
1907 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1908 member function.
1909 (objc_language::demangle_symbol): Defined outside of class
1910 declaration. The definition is the old objc_demangle with NULL
1911 changed to nullptr, and if conditions relating to nullptr pointers
1912 or null character checks made explicit.
1913 * objc-lang.h (objc_demangle): Delete declaration.
1914
08dedd66
ML
19152021-03-22 Martin Liska <mliska@suse.cz>
1916
1917 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1918 (_initialize_arm_tdep): Likewise.
1919
eb36a3eb
TT
19202021-03-20 Tom Tromey <tom@tromey.com>
1921
1922 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1923 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1924 * psymtab.h (make_psymbol_functions): Don't declare.
1925 * psymtab.c (make_psymbol_functions): Remove.
1926 (maintenance_print_psymbols): Update.
1927 * psympriv.h (struct psymbol_functions): Add no-argument
1928 constructor.
1929 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1930 <partial_symtabs>: Remove.
1931 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1932 * elfread.c (read_partial_symbols): Update.
1933 (elf_symfile_read): Remove check for existing partial symbols.
1934 Don't clear "qf".
1935 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1936 partial symbols.
1937 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1938 partial symtabs.
1939 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1940 parameter.
1941 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1942 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1943
e1114590
TT
19442021-03-20 Tom Tromey <tom@tromey.com>
1945
1946 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1947 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1948 * symfile-debug.c (objfile::has_partial_symbols)
1949 (objfile::find_last_source_symtab)
1950 (objfile::forget_cached_source_info)
1951 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1952 (objfile::print_stats, objfile::dump)
1953 (objfile::expand_symtabs_for_function)
1954 (objfile::expand_all_symtabs)
1955 (objfile::expand_symtabs_with_fullname)
1956 (objfile::map_matching_symbols)
1957 (objfile::expand_symtabs_matching)
1958 (objfile::find_pc_sect_compunit_symtab)
1959 (objfile::map_symbol_filenames)
1960 (objfile::find_compunit_symtab_by_address)
1961 (objfile::lookup_global_symbol_language)
1962 (objfile::require_partial_symbols): Update.
1963 * psymtab.c (maintenance_print_psymbols)
1964 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1965 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1966 * objfiles.c (objfile_relocate1): Update.
1967 * elfread.c (elf_symfile_read): Update.
1968
de909f0b
TT
19692021-03-20 Tom Tromey <tom@tromey.com>
1970
1971 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1972
caf8c1e5
TT
19732021-03-20 Tom Tromey <tom@tromey.com>
1974
1975 * psymtab.c (psymbol_functions::count_psyms): Rename.
1976 (psymbol_functions::print_stats): Update.
1977 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1978 method.
1979
3aa31ce7
TT
19802021-03-20 Tom Tromey <tom@tromey.com>
1981
1982 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1983 (psymbol_functions::find_pc_sect_psymtab): Rename.
1984 (psymbol_functions::find_pc_sect_compunit_symtab)
1985 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1986 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1987 Declare new method.
1988 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1989
7b249e47
TT
19902021-03-20 Tom Tromey <tom@tromey.com>
1991
1992 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1993 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1994 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1995 parameter.
1996 (add_psymbol_to_bcache): Remove.
1997 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1998 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1999 Likewise.
2000 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2001 <add_psymbol>: Likewise.
2002 (standard_psymtab, legacy_psymtab): Likewise.
2003 * mdebugread.c (parse_partial_symbols): Update.
2004 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2005 (handle_psymbol_enumerators): Update.
2006 (new_psymtab): Add partial_symtabs parameter.
2007 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2008 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2009 parameter.
2010 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2011 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2012 Update.
2013 * dbxread.c (read_dbx_symtab): Update.
2014 (start_psymtab): Add partial_symtabs parameter.
2015 (dbx_end_psymtab): Update.
2016 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2017 (ctf_psymtab): Add partial_symtabs parameter.
2018 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2019 Update.
2020 (scan_partial_symbols): Add partial_symtabs parameter.
2021 (scan_partial_symbols, elfctf_build_psymtabs)
2022 (ctf_psymtab_add_enums): Update.
2023
d1eef86d
TT
20242021-03-20 Tom Tromey <tom@tromey.com>
2025
2026 * symfile.c (read_symbols): Use objfile method.
2027 * symfile-debug.c (objfile::require_partial_symbols): New method.
2028 * psymtab.h (require_partial_symbols): Don't declare.
2029 * psymtab.c (require_partial_symbols): Use objfile method. Now
2030 static.
2031 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2032 (psymbol_functions::lookup_symbol)
2033 (psymbol_functions::lookup_global_symbol_language)
2034 (psymbol_functions::find_last_source_symtab)
2035 (psymbol_functions::forget_cached_source_info)
2036 (psymbol_functions::print_stats)
2037 (psymbol_functions::expand_symtabs_for_function)
2038 (psymbol_functions::expand_all_symtabs)
2039 (psymbol_functions::expand_symtabs_with_fullname)
2040 (psymbol_functions::map_symbol_filenames)
2041 (psymbol_functions::map_matching_symbols)
2042 (psymbol_functions::expand_symtabs_matching)
2043 (psymbol_functions::find_compunit_symtab_by_address)
2044 (maintenance_print_psymbols, maintenance_info_psymtabs)
2045 (maintenance_check_psymtabs): Update.
2046 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2047 new method.
2048
eb00e468
TT
20492021-03-20 Tom Tromey <tom@tromey.com>
2050
2051 * xcoffread.c (xcoff_sym_fns): Update.
2052 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2053 * symfile-debug.c (objfile::has_partial_symbols): Use
2054 can_lazily_read_symbols.
2055 (debug_sym_read_psymbols): Remove.
2056 (debug_sym_fns, install_symfile_debug_logging): Update.
2057 * quick-symbol.h (struct quick_symbol_functions)
2058 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2059 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2060 * mipsread.c (ecoff_sym_fns): Update.
2061 * machoread.c (macho_sym_fns): Update.
2062 * elfread.c (struct lazy_dwarf_reader): New.
2063 (elf_symfile_read): Update.
2064 (read_psyms): Now a method of lazy_dwarf_reader.
2065 (elf_sym_fns): Update.
2066 (elf_sym_fns_lazy_psyms): Remove.
2067 * dbxread.c (aout_sym_fns): Update.
2068 * coffread.c (coff_sym_fns): Update.
2069
b29b98cf
TT
20702021-03-20 Tom Tromey <tom@tromey.com>
2071
2072 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2073 (reread_symbols): Move reset_psymtabs call later.
2074 * objfiles.c (objfile::objfile): Don't initialize
2075 partial_symtabs.
2076
17d66340
TT
20772021-03-20 Tom Tromey <tom@tromey.com>
2078
2079 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2080 set_partial_symtabs.
2081 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2082 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2083 parameter.
2084 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2085 parameter.
2086 (psymbol_functions::find_pc_sect_compunit_symtab)
2087 (psymbol_functions::print_stats, psymbol_functions::dump)
2088 (psymbol_functions::has_symbols): Update.
2089 (make_psymbol_functions, dump_psymtab_addrmap): Add
2090 partial_symtabs parameter.
2091 (maintenance_print_psymbols): Update.
2092 (psymbol_functions::expand_symtabs_matching): Update.
2093 * psympriv.h (struct psymbol_functions): Add constructor.
2094 <m_partial_symtabs>: New member.
2095 <set_partial_symtabs>: New method.
2096
84685904
TT
20972021-03-20 Tom Tromey <tom@tromey.com>
2098
2099 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2100 parameter.
2101 (process_psymtab_comp_unit_reader)
2102 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2103 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2104 Reference psymtabs via per_bfd.
2105
79cc99f6
TT
21062021-03-20 Tom Tromey <tom@tromey.com>
2107
2108 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2109 Remove.
2110 (add_address_entry): Remove objfile parameter.
2111 (add_address_entry_worker): Update.
2112 (write_address_map): Replace objfile parameter with per_bfd.
2113 (write_gdbindex, write_psymtabs_to_index): Update.
2114
4829711b
TT
21152021-03-20 Tom Tromey <tom@tromey.com>
2116
2117 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2118 print_bcache parameter.
2119 * symfile-debug.c (objfile::print_stats): Add print_bcache
2120 parameter.
2121 * quick-symbol.h (struct quick_symbol_functions)
2122 <print_stats>: Add print_bcache parameter.
2123 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2124 code to psymtab.c.
2125 (print_objfile_statistics): Move psymtab code to psymtab.c.
2126 * psymtab.c (count_psyms): Move from symmisc.c.
2127 (psymbol_functions::print_stats): Print partial symbol and bcache
2128 statistics. Add print_bcache parameter.
2129 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2130 (struct objfile) <print_stats>: Add print_bcache parameter.
2131 * maint.c (maintenance_print_statistics): Update.
2132
efd7398e
TT
21332021-03-20 Tom Tromey <tom@tromey.com>
2134
2135 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2136 member.
2137 * dwarf2/read.c (create_addrmap_from_index)
2138 (create_addrmap_from_aranges): Set per_bfd addrmap.
2139 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2140 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2141 per_bfd addrmap.
2142 (dwarf2_read_debug_names): Don't set partial_symtabs.
2143 (dwarf2_initialize_objfile): Likewise.
2144
51962708
TT
21452021-03-20 Tom Tromey <tom@tromey.com>
2146
2147 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2148 earlier.
2149
484b1090
TT
21502021-03-20 Tom Tromey <tom@tromey.com>
2151
2152 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2153 (~psymtab_discarder, keep): Update.
2154 <m_objfile>: Remove.
2155 <m_partial_symtabs>: New member.
2156 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2157
7e9c0476
TT
21582021-03-20 Tom Tromey <tom@tromey.com>
2159
2160 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2161 (xcoff_end_psymtab): Update.
2162 (scan_xcoff_symtab): Add partial_symtabs parameter.
2163 (xcoff_initial_scan): Update.
2164 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2165 * mdebugread.c (mdebug_build_psymtabs): Update.
2166 (parse_partial_symbols): Add partial_symtabs parameter.
2167 * dbxread.c (dbx_symfile_read): Update.
2168 (read_dbx_symtab): Add partial_symtabs parameter.
2169 (read_dbx_symtab): Update.
2170 (dbx_end_psymtab): Add partial_symtabs parameter.
2171
75336a5a
TT
21722021-03-20 Tom Tromey <tom@tromey.com>
2173
2174 * quick-symbol.h (struct quick_symbol_functions)
2175 <relocated>: New method.
2176 * psymtab.h (struct psymbol_functions) <relocated>: New
2177 method.
2178 <fill_psymbol_map>: Declare method.
2179 <m_psymbol_map>: New member.
2180 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2181 (psymbol_functions::find_compunit_symtab_by_address): Update.
2182 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2183 (struct objfile) <psymbol_map>: Remove.
2184 * objfiles.c (objfile_relocate1): Update.
2185
39298a5d
TT
21862021-03-20 Tom Tromey <tom@tromey.com>
2187
2188 * psympriv.h (struct psymbol_functions): New.
2189 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2190 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2191 (objfile::lookup_global_symbol_language): Update.
2192 * quick-symbol.h (struct quick_symbol_functions): Convert function
2193 pointers to methods. Add virtual destructor.
2194 (quick_symbol_functions_up): New typedef.
2195 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2196 (dwarf2_debug_names_functions): Don't declare.
2197 (make_psymbol_functions): Declare.
2198 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2199 (psymbol_functions::find_pc_sect_compunit_symtab)
2200 (psymbol_functions::lookup_symbol)
2201 (psymbol_functions::lookup_global_symbol_language)
2202 (psymbol_functions::find_last_source_symtab)
2203 (psymbol_functions::forget_cached_source_info)
2204 (psymbol_functions::print_stats, psymbol_functions::dump)
2205 (psymbol_functions::expand_symtabs_for_function)
2206 (psymbol_functions::expand_all_symtabs)
2207 (psymbol_functions::expand_symtabs_with_fullname)
2208 (psymbol_functions::map_symbol_filenames)
2209 (psymbol_functions::map_matching_symbols)
2210 (psymbol_functions::expand_symtabs_matching)
2211 (psymbol_functions::has_symbols)
2212 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2213 (psym_functions): Remove.
2214 (make_psymbol_functions): New function.
2215 * objfiles.h (struct objfile) <qf>: Change type.
2216 * elfread.c (elf_symfile_read): Update.
2217 * dwarf2/read.c (struct dwarf2_base_index_functions)
2218 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2219 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2220 (dwarf2_base_index_functions::find_last_source_symtab)
2221 (dwarf2_base_index_functions::forget_cached_source_info)
2222 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2223 (dwarf2_gdb_index::lookup_symbol)
2224 (dwarf2_base_index_functions::print_stats)
2225 (dwarf2_gdb_index::dump)
2226 (dwarf2_gdb_index::expand_symtabs_for_function)
2227 (dwarf2_base_index_functions::expand_all_symtabs)
2228 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2229 Rename.
2230 (dwarf2_gdb_index::map_matching_symbols): New method.
2231 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2232 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2233 (dwarf2_base_index_functions::map_symbol_filenames)
2234 (dwarf2_base_index_functions::has_symbols): Rename.
2235 (dwarf2_gdb_index_functions): Remove.
2236 (dwarf2_debug_names_index::lookup_symbol)
2237 (dwarf2_debug_names_index::dump)
2238 (dwarf2_debug_names_index::expand_symtabs_for_function)
2239 (dwarf2_debug_names_index::map_matching_symbols)
2240 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2241 (dwarf2_debug_names_functions): Remove.
2242 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2243 Declare.
2244
5c3f1e5b
TT
22452021-03-20 Tom Tromey <tom@tromey.com>
2246
2247 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2248 null.
2249 * xcoffread.c (xcoff_sym_fns): Update.
2250 * symfile.h (struct sym_fns) <qf>: Remove.
2251 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2252 * symfile-debug.c (objfile::has_partial_symbols)
2253 (objfile::find_last_source_symtab)
2254 (objfile::forget_cached_source_info)
2255 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2256 (objfile::print_stats, objfile::dump)
2257 (objfile::expand_symtabs_for_function)
2258 (objfile::expand_all_symtabs)
2259 (objfile::expand_symtabs_with_fullname)
2260 (objfile::map_matching_symbols)
2261 (objfile::expand_symtabs_matching)
2262 (objfile::find_pc_sect_compunit_symtab)
2263 (objfile::map_symbol_filenames)
2264 (objfile::find_compunit_symtab_by_address)
2265 (objfile::lookup_global_symbol_language, debug_sym_fns)
2266 (install_symfile_debug_logging): Update.
2267 * objfiles.h (struct objfile) <qf>: New member.
2268 * mipsread.c (ecoff_sym_fns): Update.
2269 * machoread.c (macho_sym_fns): Update.
2270 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2271 Don't declare.
2272 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2273 * dbxread.c (aout_sym_fns): Update.
2274 * coffread.c (coff_sym_fns): Update.
2275
9b99dcc8
TT
22762021-03-20 Tom Tromey <tom@tromey.com>
2277
2278 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2279 (expand_symtabs_file_matcher_ftype)
2280 (expand_symtabs_symbol_matcher_ftype)
2281 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2282 Move to quick-symbol.h.
2283 * quick-symbol.h: New file.
2284
4d080b46
TT
22852021-03-20 Tom Tromey <tom@tromey.com>
2286
2287 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2288 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2289 (basic_lookup_transparent_type_quick)
2290 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2291 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2292 Update.
2293 * symmisc.c (print_objfile_statistics, dump_objfile)
2294 (maintenance_expand_symtabs): Update.
2295 * symfile.c (symbol_file_add_with_addrs)
2296 (expand_symtabs_matching, map_symbol_filenames): Update.
2297 * symfile-debug.c (objfile::has_partial_symbols)
2298 (objfile::find_last_source_symtab)
2299 (objfile::forget_cached_source_info)
2300 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2301 (objfile::print_stats, objfile::dump)
2302 (objfile::expand_symtabs_for_function)
2303 (objfile::expand_all_symtabs)
2304 (objfile::expand_symtabs_with_fullname)
2305 (objfile::map_matching_symbols)
2306 (objfile::expand_symtabs_matching)
2307 (objfile::find_pc_sect_compunit_symtab)
2308 (objfile::map_symbol_filenames)
2309 (objfile::find_compunit_symtab_by_address)
2310 (objfile::lookup_global_symbol_language): New methods.
2311 (debug_sym_quick_functions): Remove.
2312 (debug_sym_fns, install_symfile_debug_logging): Update.
2313 * source.c (forget_cached_source_info_for_objfile)
2314 (select_source_symtab): Update.
2315 * objfiles.h (struct objfile): Add methods corresponding to
2316 quick_symbol_functions.
2317 * objfiles.c (objfile::has_partial_symbols): Move to
2318 symfile-debug.c.
2319 * linespec.c (iterate_over_all_matching_symtabs): Update.
2320 * cp-support.c (add_symbol_overload_list_qualified): Update.
2321 * ada-lang.c (add_nonlocal_symbols): Update.
2322
fae2120b
TT
23232021-03-20 Tom Tromey <tom@tromey.com>
2324
2325 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2326 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2327 bool.
2328 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2329 * psymtab.c (psym_has_symbols): Return bool.
2330 * objfiles.c (objfile::has_partial_symbols): Return bool.
2331 * dwarf2/read.c (dw2_has_symbols): Return bool.
2332
a8ad4f3c
TT
23332021-03-20 Tom Tromey <tom@tromey.com>
2334
2335 * symfile.c (read_symbols): Update.
2336 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2337 (objfile_has_partial_symbols): Don't declare.
2338 * objfiles.c (objfile::has_partial_symbols): Rename from
2339 objfile_has_partial_symbols.
2340 (objfile_has_symbols, have_partial_symbols): Update.
2341 * elfread.c (elf_symfile_read): Update.
2342 * dwarf2/read.c (dwarf2_has_info): Update.
2343 * coffread.c (coff_symfile_read): Update.
2344
70182375
TT
23452021-03-20 Tom Tromey <tom@tromey.com>
2346
2347 * coffread.c: Include dwarf2/public.h.
2348 * dwarf2/frame.c: Include dwarf2/public.h.
2349 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2350 * dwarf2/public.h: New file.
2351 * dwarf2/read.c: Include dwarf2/public.h.
2352 * elfread.c: Include dwarf2/public.h.
2353 * machoread.c: Include dwarf2/public.h.
2354 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2355 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2356 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2357 * xcoffread.c: Include dwarf2/public.h.
2358
18038e63
TT
23592021-03-20 Tom Tromey <tom@tromey.com>
2360
2361 * symfile.h (enum dwarf2_section_enum)
2362 (dwarf2_get_section_info): Move to dwarf2/read.h.
2363 * dwarf2/read.h (enum dwarf2_section_enum)
2364 (dwarf2_get_section_info): Move from symfile.h.
2365
219f56b4
PA
23662021-03-19 Pedro Alves <pedro@palves.net>
2367
2368 * thread.c (any_thread_of_inferior): Check if there's a selected
2369 thread before calling inferior_thread().
2370
15310fd4
TT
23712021-03-18 Tom Tromey <tromey@adacore.com>
2372
2373 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2374 get_DW_UT_name.
2375 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2376 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2377
763b8efd
AB
23782021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2379
2380 * python/py-param.c (get_set_value): Update header comment.
2381
f058c521
SM
23822021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * infrun.c (check_multi_target_resumption): Remove argument to
2385 all_non_exited_inferiors.
2386
383228bc
CB
23872021-03-16 Christian Biesinger <cbiesinger@google.com>
2388
2389 * windows-nat.c (windows_init_thread_list): Add message to
2390 debug log.
2391
7807d76a
AB
23922021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2395 well as PyLong_Check for Python 2.
2396
675da9a5
TT
23972021-03-15 Tom Tromey <tromey@adacore.com>
2398
2399 PR build/27579:
2400 * rust-exp.y (maker_map): Use gdb::hash_enum.
2401 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2402
4800761a
SM
24032021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2404
2405 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2406 end of debug print.
2407
eb5dd737
SM
24082021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2411 parameter, adjust caller.
2412
6813ceb0
TT
24132021-03-15 Tom Tromey <tromey@adacore.com>
2414
2415 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2416
3b5c4de0
TT
24172021-03-15 Tom Tromey <tromey@adacore.com>
2418
2419 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2420 ada_ensure_varsize_limit.
2421
c04da66c
TT
24222021-03-15 Tom Tromey <tromey@adacore.com>
2423
2424 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2425 fixed-point.
2426 * ada-exp.y (maybe_overload): New function.
2427 (ada_wrap_overload): New function.
2428 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2429 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2430 (or_else_exp, xor_exp, primary): Update.
2431
9863c3b5
TT
24322021-03-15 Tom Tromey <tromey@adacore.com>
2433
2434 PR ada/27545:
2435 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2436 call for tagged type.
2437
1ac74522
TT
24382021-03-15 Tom Tromey <tromey@adacore.com>
2439
2440 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2441 assignment.
2442
207582c0
TT
24432021-03-15 Tom Tromey <tromey@adacore.com>
2444
2445 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2446 container.
2447 (ada_assign_operation::evaluate): Update.
2448 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2449 Change return type.
2450
8d624a9d
FW
24512021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2452
2453 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2454
ba6a0ef3
AB
24552021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2456
2457 * python/python.c (gdbpy_source_objfile_script): Use
2458 make_scoped_restore to restore gdbpy_current_objfile.
2459 (gdbpy_execute_objfile_script): Likewise.
2460
7c290a04
TT
24612021-03-14 Tom Tromey <tom@tromey.com>
2462
2463 * dwarf2/read.c (read_attribute_value): Use cu_header
2464 consistently.
2465
0280fdcc
TT
24662021-03-14 Tom Tromey <tom@tromey.com>
2467
2468 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2469 (peek_die_abbrev): Use reader.abfd.
2470
a9f172c6
TT
24712021-03-14 Tom Tromey <tom@tromey.com>
2472
2473 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2474 m_header_read_in.
2475
7c32eebb
TT
24762021-03-13 Tom Tromey <tom@tromey.com>
2477
2478 * dwarf2/read.c (struct partial_die_info): Update.
2479 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2480 (load_partial_dies, partial_die_info::partial_die_info): Update.
2481 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2482
27012aba
TT
24832021-03-13 Tom Tromey <tom@tromey.com>
2484
2485 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2486
fece451c
CB
24872021-03-12 Christian Biesinger <cbiesinger@google.com>
2488
2489 PR threads/27239
2490 * cp-support.c: Use scoped_segv_handler_restore.
2491 * event-top.c (thread_local_segv_handler): Made static.
2492 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2493 New function.
2494 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2495 function.
2496 * event-top.h (class scoped_segv_handler_restore): New class.
2497 (thread_local_segv_handler): Removed.
2498
7056f312
TT
24992021-03-10 Tom Tromey <tromey@adacore.com>
2500
2501 * parser-defs.h (parser_state): Change completion to bool.
2502 <parse_completion>: Likewise.
2503 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2504 (ada_resolve_variable, ada_resolve_function): Update.
2505 * ada-lang.c (ada_find_operator_symbol): Change
2506 parse_completion to bool.
2507 (ada_resolve_funcall, ada_resolve_variable)
2508 (ada_resolve_function): Likewise.
2509
ccdc02ed
TT
25102021-03-09 Tom Tromey <tromey@adacore.com>
2511
2512 * eval.c (operation::evaluate_funcall): Use function formal
2513 parameter types when evaluating.
2514
fbb1aace
AB
25152021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2518 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2519 and owner to m_owner.
2520
611aa09d
FW
25212021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2522
2523 * f-exp.h (eval_op_f_loc): Declare.
2524 (expr::fortran_loc_operation): New typedef.
2525 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2526 UNOP_INTRINSIC.
2527 (f77_keywords): Add LOC keyword.
2528 * f-lang.c (eval_op_f_loc): New function.
2529 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2530
eef32f59
AB
25312021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * f-exp.h (eval_op_f_array_shape): Declare.
2534 (fortran_array_shape_operation): New type.
2535 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2536 UNOP_INTRINSIC.
2537 (f77_keywords): Add "shape" keyword.
2538 * f-lang.c (fortran_array_shape): New function.
2539 (eval_op_f_array_shape): New function.
2540 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2541
7ba155b3
AB
25422021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2543
2544 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2545 of this function.
2546 (expr::fortran_array_size_1arg): New type.
2547 (expr::fortran_array_size_2arg): Likewise.
2548 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2549 UNOP_OR_BINOP_INTRINSIC.
2550 (f77_keywords): Add "size" keyword.
2551 * f-lang.c (fortran_array_size): New function.
2552 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2553 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2554
e14816a8
AB
25552021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2556
2557 * f-exp.h (eval_op_f_rank): Declare.
2558 (expr::fortran_rank_operation): New typedef.
2559 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2560 UNOP_INTRINSIC.
2561 (f77_keywords): Add "rank" keyword.
2562 * f-lang.c (eval_op_f_rank): New function.
2563 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2564
3dd93bf8
TT
25652021-03-08 Tom Tromey <tom@tromey.com>
2566
2567 * printcmd.c (set_command): Remove null check.
2568 * value.c (init_if_undefined_command): Remove null check.
2569
9c79936b
TT
25702021-03-08 Tom Tromey <tom@tromey.com>
2571
2572 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2573 Update.
2574 * p-exp.y (variable): Update.
2575 * go-exp.y (variable): Update.
2576 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2577 Remove overload for objfile.
2578 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2579 parameter.
2580 (check_objfile): Likewise.
2581 (dump_for_expression): Likewise. Remove overload for objfile.
2582 (class var_msym_value_operation): Use bound_minimal_symbol.
2583 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2584 parameter.
2585 (var_msym_value_operation::evaluate_for_address)
2586 (var_msym_value_operation::evaluate_for_sizeof)
2587 (var_msym_value_operation::evaluate_for_cast): Update.
2588 * d-exp.y (PrimaryExpression): Update.
2589 * c-exp.y (variable): Update.
2590 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2591 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2592 Update.
2593 * ada-exp.y (write_var_or_type): Update.
2594
40d07d07
TT
25952021-03-08 Tom Tromey <tom@tromey.com>
2596
2597 * parser-defs.h (exp_uses_objfile): Return bool.
2598 * parse.c (exp_uses_objfile): Return bool.
2599
0b2b0b82
TT
26002021-03-08 Tom Tromey <tom@tromey.com>
2601
2602 * value.h (eval_skip_value): Don't declare.
2603 * opencl-lang.c (eval_opencl_assign): Update.
2604 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2605 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2606 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2607 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2608 * expop.h (typeof_operation::evaluate)
2609 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2610 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2611 (cxx_cast_operation::evaluate): Update.
2612 * eval.c (eval_skip_value): Remove.
2613 (eval_op_scope, eval_op_var_entry_value)
2614 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2615 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2616 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2617 (eval_op_binary, eval_op_subscript, eval_op_equal)
2618 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2619 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2620 (eval_op_complement, eval_op_lognot, eval_op_ind)
2621 (eval_op_memval, eval_op_preinc, eval_op_predec)
2622 (eval_op_postinc, eval_op_postdec, eval_op_type)
2623 (eval_binop_assign_modify, eval_op_objc_msgcall)
2624 (eval_multi_subscript, logical_and_operation::evaluate)
2625 (logical_or_operation::evaluate, array_operation::evaluate)
2626 (operation::evaluate_for_cast)
2627 (var_msym_value_operation::evaluate_for_cast)
2628 (var_value_operation::evaluate_for_cast): Update.
2629 * c-lang.c (c_string_operation::evaluate): Update.
2630 * c-exp.h (objc_nsstring_operation::evaluate)
2631 (objc_selector_operation::evaluate): Update.
2632 * ada-lang.c (ada_assign_operation::evaluate)
2633 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2634 (ada_atr_size): Update.
2635
96db551d
TT
26362021-03-08 Tom Tromey <tom@tromey.com>
2637
2638 * eval.c: Merge "namespace" scopes.
2639
ce284361
TT
26402021-03-08 Tom Tromey <tom@tromey.com>
2641
2642 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2643 <release>: Inline.
2644 * parse.c (expr_builder::expr_builder, expr_builder::release):
2645 Remove.
2646
b9d06571
TT
26472021-03-08 Tom Tromey <tom@tromey.com>
2648
2649 * parse.c (expression::expression, expression::~expression):
2650 Remove.
2651 * expression.h (struct expression): Inline constructor. Remove
2652 destructor.
2653
79ab486e
TT
26542021-03-08 Tom Tromey <tom@tromey.com>
2655
2656 * std-operator.def (BINOP_END): Remove.
2657 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2658 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2659 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2660 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2661 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2662 BINOP_END.
2663
48fa6f23
TT
26642021-03-08 Tom Tromey <tom@tromey.com>
2665
2666 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2667
43f542e3
TT
26682021-03-08 Tom Tromey <tom@tromey.com>
2669
2670 * std-operator.def (OP_EXTENDED0): Remove.
2671
5d9ba982
TT
26722021-03-08 Tom Tromey <tom@tromey.com>
2673
2674 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2675 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2676 Remove.
2677
d357570d
TT
26782021-03-08 Tom Tromey <tom@tromey.com>
2679
2680 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2681 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2682
0922dc84
TT
26832021-03-08 Tom Tromey <tom@tromey.com>
2684
2685 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2686 * ada-lang.c (ada_binop_minmax): Update.
2687 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2688 Use BINOP_MIN and BINOP_MAX.
2689
1eaebe02
TT
26902021-03-08 Tom Tromey <tom@tromey.com>
2691
2692 * value.h (evaluate_subexp_with_coercion): Don't declare.
2693 * parse.c (exp_descriptor_standard): Remove.
2694 (expr_builder::expr_builder, expr_builder::release): Update.
2695 (expression::expression): Remove size_t parameter.
2696 (expression::~expression): Simplify.
2697 (expression::resize): Remove.
2698 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2699 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2700 (write_exp_elt_longcst, write_exp_elt_floatcst)
2701 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2702 (write_exp_string_vector, write_exp_bitstring): Remove.
2703 * p-lang.h (class pascal_language) <opcode_print_table,
2704 op_print_tab>: Remove.
2705 * p-lang.c (pascal_language::op_print_tab): Remove.
2706 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2707 Remove.
2708 * objc-lang.c (objc_op_print_tab): Remove.
2709 (class objc_language) <opcode_print_table>: Remove.
2710 * m2-lang.h (class m2_language) <opcode_print_table,
2711 op_print_tab>: Remove.
2712 * m2-lang.c (m2_language::op_print_tab): Remove.
2713 * language.h (struct language_defn) <post_parser, expression_ops,
2714 opcode_print_table>: Remove.
2715 * language.c (language_defn::expression_ops)
2716 (auto_or_unknown_language::opcode_print_table): Remove.
2717 * go-lang.h (class go_language) <opcode_print_table,
2718 op_print_tab>: Remove.
2719 * go-lang.c (go_language::op_print_tab): Remove.
2720 * f-lang.h (class f_language) <opcode_print_table>: Remove
2721 <op_print_tab>: Remove.
2722 * f-lang.c (f_language::op_print_tab): Remove.
2723 * expression.h (union exp_element): Remove.
2724 (struct expression): Remove size_t parameter from constructor.
2725 <resize>: Remove.
2726 <first_opcode>: Update.
2727 <nelts, elts>: Remove.
2728 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2729 (evaluate_subexp_standard, print_expression, op_string)
2730 (dump_raw_expression): Don't declare.
2731 * expprint.c (print_expression, print_subexp)
2732 (print_subexp_funcall, print_subexp_standard, op_string)
2733 (dump_raw_expression, dump_subexp, dump_subexp_body)
2734 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2735 (dump_prefix_expression): Update.
2736 * eval.c (evaluate_subexp): Remove.
2737 (evaluate_expression, evaluate_type): Update.
2738 (evaluate_subexpression_type): Remove.
2739 (fetch_subexp_value): Remove "pc" parameter. Update.
2740 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2741 (evaluate_subexp_standard, evaluate_subexp_for_address)
2742 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2743 (evaluate_subexp_for_cast): Remove.
2744 (parse_and_eval_type): Update.
2745 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2746 * d-lang.c (d_op_print_tab): Remove.
2747 (class d_language) <opcode_print_table>: Remove.
2748 * c-lang.h (c_op_print_tab): Don't declare.
2749 * c-lang.c (c_op_print_tab): Remove.
2750 (class c_language, class cplus_language, class asm_language, class
2751 minimal_language) <opcode_print_table>: Remove.
2752 * breakpoint.c (update_watchpoint, watchpoint_check)
2753 (watchpoint_exp_is_const, watch_command_1): Update.
2754 * ax-gdb.h (union exp_element): Don't declare.
2755 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2756 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2757 (gen_expr_binop_rest): Remove.
2758 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2759 * ada-lang.c (ada_op_print_tab): Remove.
2760 (class ada_language) <post_parser, opcode_print_table>: Remove.
2761
f2a98603
TT
27622021-03-08 Tom Tromey <tom@tromey.com>
2763
2764 * go-lang.c (go_language::expression_ops): Don't declare.
2765 * go-lang.h (class go_language) <expression_ops>: Remove.
2766 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2767 Remove.
2768 (class opencl_language) <expression_ops>: Remove.
2769 * d-lang.c (class d_language) <expression_ops>: Remove.
2770 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2771 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2772 (class c_language, class cplus_language, class asm_language)
2773 (class minimal_language) <expression_ops>: Remove.
2774
d3c54a1c
TT
27752021-03-08 Tom Tromey <tom@tromey.com>
2776
2777 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2778 (evaluate_subexp_type, assign_aggregate)
2779 (aggregate_assign_positional, aggregate_assign_from_choices)
2780 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2781 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2782 (ada_operator_check, ada_forward_operator_length)
2783 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2784 Remove.
2785 (post_parser): Update.
2786 (class ada_language) <expresssion_ops>: Remove.
2787
5871f0a3
TT
27882021-03-08 Tom Tromey <tom@tromey.com>
2789
2790 * m2-lang.h (class m2_language) <expresssion_ops,
2791 exp_descriptor_modula2>: Remove.
2792 * m2-lang.c (evaluate_subexp_modula2)
2793 (m2_language::exp_descriptor_modula2): Remove.
2794
a99be8c1
TT
27952021-03-08 Tom Tromey <tom@tromey.com>
2796
2797 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2798 <exp_descriptor_tab>: Remove.
2799 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2800 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2801 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2802 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2803 Remove.
2804
aa1da9ed
TT
28052021-03-08 Tom Tromey <tom@tromey.com>
2806
2807 * rust-lang.h (class rust_language) <expression_ops,
2808 exp_descriptor_tab>: Remove.
2809 * rust-lang.c (rust_evaluate_funcall): Remove.
2810 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2811 EVAL_SKIP.
2812 (rust_evaluate_subexp): Remove.
2813 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2814 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2815 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2816
08a057e6
TT
28172021-03-08 Tom Tromey <tom@tromey.com>
2818
2819 * ada-exp.y: Create operations.
2820 (empty_stoken): Remove.
2821 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2822 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2823 (components): New global.
2824 (push_component, choice_component, pop_component, pop_components):
2825 New functions.
2826 (associations): New global
2827 (push_association, pop_association, pop_associations): New
2828 functions.
2829 (ada_parse): Update.
2830 (write_var_from_sym, write_int): Create operations.
2831 (write_exp_op_with_string): Remove.
2832 (write_object_renaming, write_selectors, write_ambiguous_var)
2833 (write_var_or_type, write_name_assoc): Create operations.
2834 * ada-lang.h (ada_index_type): Declare.
2835 * ada-lang.c (ada_index_type): No longer static.
2836
d308ba78
TT
28372021-03-08 Tom Tromey <tom@tromey.com>
2838
2839 * f-exp.y: Create operations.
2840 (f_language::parser): Update.
2841
f1b8ceef
TT
28422021-03-08 Tom Tromey <tom@tromey.com>
2843
2844 * m2-exp.y: Create operations.
2845 (m2_language::parser): Update.
2846
3163898e
TT
28472021-03-08 Tom Tromey <tom@tromey.com>
2848
2849 * p-exp.y: Create operations.
2850 (pascal_language::parser): Update.
2851
9412fdcc
TT
28522021-03-08 Tom Tromey <tom@tromey.com>
2853
2854 * d-exp.y: Create operations.
2855 (d_parse): Update.
2856
bb4e0574
TT
28572021-03-08 Tom Tromey <tom@tromey.com>
2858
2859 * go-exp.y: Create operations.
2860 (go_language::parser): Update.
2861
d182f279
TT
28622021-03-08 Tom Tromey <tom@tromey.com>
2863
2864 * objc-lang.c (end_msglist): Create operations.
2865 * c-exp.y: Change parser to create operations.
2866 (write_destructor_name): Remove.
2867 (c_parse): Update.
2868
c1299a23
TT
28692021-03-08 Tom Tromey <tom@tromey.com>
2870
2871 * rust-exp.y: Create operations.
2872 (rust_parser::convert_params_to_expression): Change return type.
2873 (binop_maker_ftype): New typedef.
2874 (maker_map): New global.
2875 (rust_parser::convert_ast_to_expression): Change return type.
2876 (rust_language::parser): Update.
2877 (_initialize_rust_exp): Initialize maker_map.
2878
4c5e7a93
TT
28792021-03-08 Tom Tromey <tom@tromey.com>
2880
2881 * stap-probe.c (binop_maker_ftype): New typedef.
2882 (stap_maker_map): New global.
2883 (stap_make_binop): New function.
2884 (stap_parse_register_operand): Return operation_up.
2885 (stap_parse_single_operand, stap_parse_argument_conditionally)
2886 (stap_parse_argument_1): Likewise.
2887 (stap_parse_argument): Create operations.
2888 (stap_probe::parse_arguments): Update.
2889 (_initialize_stap_probe): Initialize stap_maker_map.
2890 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2891 type.
2892 * i386-tdep.h (i386_stap_parse_special_token): Change return
2893 type.
2894 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2895 (i386_stap_parse_special_token_three_arg_disp)
2896 (i386_stap_parse_special_token): Change return type.
2897 * gdbarch.sh (stap_parse_special_token): Change return type.
2898 * gdbarch.c: Rebuild.
2899 * gdbarch.h: Rebuild.
2900 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2901 type.
2902 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2903 return type.
2904
482ddd69
TT
29052021-03-08 Tom Tromey <tom@tromey.com>
2906
2907 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2908 * gdbarch.h: Rebuild.
2909 * gdbarch.c: Rebuild.
2910 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2911 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2912 return type.
2913 (amd64_dtrace_parse_probe_argument): Update.
2914
8227d9e2
TT
29152021-03-08 Tom Tromey <tom@tromey.com>
2916
2917 * parser-defs.h (struct parser_state) <push, push_new,
2918 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2919 wrap2>: New methods.
2920 <m_operations>: New member.
2921 * parse.c (parser_state::push_c_string)
2922 (parser_state::push_symbol, parser_state::push_dollar): New
2923 methods.
2924
4933522d
TT
29252021-03-08 Tom Tromey <tom@tromey.com>
2926
2927 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2928 New member.
2929 (struct parser_state) <mark_struct_expression>: New method.
2930 * parse.c (parser_state::mark_struct_expression): Update assert.
2931 (parser_state::mark_struct_expression): New method.
2932 (parser_state::mark_completion_tag): Update assert.
2933 (parse_expression_for_completion): Handle expout_last_op.
2934
413403fc
TT
29352021-03-08 Tom Tromey <tom@tromey.com>
2936
2937 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2938 now in superclass.
2939 * value.h (fetch_subexp_value): Add "op" parameter.
2940 * value.c (init_if_undefined_command): Update.
2941 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2942 * stap-probe.c (stap_probe::compile_to_ax): Update.
2943 * printcmd.c (set_command): Update.
2944 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2945 Update.
2946 * parser-defs.h (struct expr_builder) <set_operation>: New
2947 method.
2948 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2949 * expression.h (struct expression) <first_opcode>: Update.
2950 <op>: New member.
2951 * expprint.c (dump_raw_expression, dump_prefix_expression):
2952 Update.
2953 * expop.h (class var_value_operation) <get_symbol>: New method.
2954 (class register_operation) <get_name>: New method.
2955 (class equal_operation): No longer a typedef, now a subclass.
2956 (class unop_memval_operation) <get_type>: New method.
2957 (class assign_operation) <get_lhs>: New method.
2958 (class unop_cast_operation) <get_type>: New method.
2959 * eval.c (evaluate_expression, evaluate_type)
2960 (evaluate_subexpression_type): Update.
2961 (fetch_subexp_value): Add "op" parameter.
2962 (parse_and_eval_type): Update.
2963 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2964 * breakpoint.c (update_watchpoint, watchpoint_check)
2965 (watchpoint_exp_is_const, watch_command_1): Update.
2966 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2967 Update.
2968
b0f9164c
TT
29692021-03-08 Tom Tromey <tom@tromey.com>
2970
2971 * ada-lang.c (ada_value_binop): Do not use op_string.
2972
a88c4354
TT
29732021-03-08 Tom Tromey <tom@tromey.com>
2974
2975 * expprint.c (dump_for_expression): New overload.
2976 * expop.h (check_objfile, dump_for_expression): Declare new
2977 overloads.
2978 * ada-lang.c (check_objfile): New overload.
2979 (assign_component, ada_aggregate_component::uses_objfile)
2980 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2981 (ada_aggregate_component::assign_aggregate)
2982 (ada_positional_component::uses_objfile)
2983 (ada_positional_component::dump, ada_positional_component::assign)
2984 (ada_discrete_range_association::uses_objfile)
2985 (ada_discrete_range_association::dump)
2986 (ada_discrete_range_association::assign)
2987 (ada_name_association::uses_objfile, ada_name_association::dump)
2988 (ada_name_association::assign)
2989 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2990 (ada_choices_component::assign)
2991 (ada_others_component::uses_objfile, ada_others_component::dump)
2992 (ada_others_component::assign, ada_assign_operation::evaluate):
2993 New methods.
2994 * ada-exp.h (ada_string_operation) <get_name>: New method.
2995 (class ada_assign_operation): New.
2996 (class ada_component): New.
2997 (ada_component_up): New typedef.
2998 (class ada_aggregate_operation, class ada_aggregate_component)
2999 (class ada_positional_component, class ada_others_component)
3000 (class ada_association): New.
3001 (ada_association_up): New typedef.
3002 (class ada_choices_component)
3003 (class ada_discrete_range_association)
3004 (class ada_name_association): New.
3005
d8a4ed8a
TT
30062021-03-08 Tom Tromey <tom@tromey.com>
3007
3008 * ada-lang.c (ada_var_value_operation::resolve)
3009 (ada_funcall_operation::resolve)
3010 (ada_ternop_slice_operation::resolve): New methods.
3011 * ada-exp.h (struct ada_resolvable): New.
3012 (class ada_var_value_operation): Derive from ada_resolvable.
3013 <get_block, resolve>: New methods.
3014 (class ada_funcall_operation): Derive from ada_resolvable.
3015 <resolve>: New method.
3016 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3017 <resolve>: New method.
3018
efe3af2f
TT
30192021-03-08 Tom Tromey <tom@tromey.com>
3020
3021 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3022 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3023 method.
3024 (class ada_funcall_operation): New.
3025
ebc06ad8
TT
30262021-03-08 Tom Tromey <tom@tromey.com>
3027
3028 * ada-lang.c (ada_structop_operation::evaluate): New method.
3029 * ada-exp.h (class ada_structop_operation): New.
3030
e8c33fa1
TT
30312021-03-08 Tom Tromey <tom@tromey.com>
3032
3033 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3034 * ada-exp.h (class ada_unop_ind_operation): New.
3035
065ec826
TT
30362021-03-08 Tom Tromey <tom@tromey.com>
3037
3038 * ada-lang.c (ada_binop_exp): No longer static.
3039 * ada-exp.h (ada_binop_exp_operation): New typedef.
3040
9e99f48f
TT
30412021-03-08 Tom Tromey <tom@tromey.com>
3042
3043 * ada-lang.c (ada_val_atr): No longer static.
3044 (ada_atr_val_operation::evaluate): New method.
3045 * ada-exp.h (class ada_atr_val_operation): New.
3046
7631cf6c
TT
30472021-03-08 Tom Tromey <tom@tromey.com>
3048
3049 * ada-lang.c (ada_pos_atr): No longer static.
3050 * ada-exp.h (ada_pos_operation): New typedef.
3051
7992accc
TT
30522021-03-08 Tom Tromey <tom@tromey.com>
3053
3054 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3055 parameters.
3056 (ada_evaluate_subexp): Use it.
3057
6ad3b8bf
TT
30582021-03-08 Tom Tromey <tom@tromey.com>
3059
3060 * ada-lang.c (ada_binop_minmax): No longer static.
3061 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3062 New typedefs.
3063
3f4a0053
TT
30642021-03-08 Tom Tromey <tom@tromey.com>
3065
3066 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3067 New method.
3068 * ada-exp.h (class ada_var_msym_value_operation): New.
3069
99a3b1e7
TT
30702021-03-08 Tom Tromey <tom@tromey.com>
3071
3072 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3073 (ada_var_value_operation::evaluate): New methods.
3074 * ada-exp.h (class ada_var_value_operation): New.
3075
60fa02ca
TT
30762021-03-08 Tom Tromey <tom@tromey.com>
3077
3078 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3079 * ada-exp.h (class ada_unop_atr_operation): New.
3080
82c3886e
TT
30812021-03-08 Tom Tromey <tom@tromey.com>
3082
3083 * ada-lang.c (ada_binop_in_bounds): No longer static.
3084 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3085
1b1ebfab
TT
30862021-03-08 Tom Tromey <tom@tromey.com>
3087
3088 * ada-lang.c (ada_ternop_slice): No longer static.
3089 * ada-exp.h (class ada_ternop_slice_operation): New.
3090
039e4b76
TT
30912021-03-08 Tom Tromey <tom@tromey.com>
3092
3093 * ada-exp.h (ada_bitwise_operation): New template class.
3094 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3095 (ada_bitwise_xor_operation): New typedefs.
3096
6e8fb7b7
TT
30972021-03-08 Tom Tromey <tom@tromey.com>
3098
3099 * ada-lang.c (ada_equal_binop): No longer static.
3100 * ada-exp.h (class ada_binop_equal_operation): New.
3101
d9e7db06
TT
31022021-03-08 Tom Tromey <tom@tromey.com>
3103
3104 * ada-lang.c (ada_mult_binop): No longer static.
3105 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3106 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3107
73796c73
TT
31082021-03-08 Tom Tromey <tom@tromey.com>
3109
3110 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3111 * ada-exp.h (class ada_binop_addsub_operation): New.
3112
cd9a3148
TT
31132021-03-08 Tom Tromey <tom@tromey.com>
3114
3115 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3116 (ada_resolve_variable): Declare.
3117 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3118 (ada_resolve_variable): New functions.
3119 (resolve_subexp): Update.
3120
cf12b17f
TT
31212021-03-08 Tom Tromey <tom@tromey.com>
3122
3123 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3124 method.
3125 * c-exp.h (class opencl_ternop_cond_operation): New.
3126
944fd3b8
TT
31272021-03-08 Tom Tromey <tom@tromey.com>
3128
3129 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3130 method.
3131 * c-exp.h (class opencl_logical_binop_operation): New.
3132
33b79214
TT
31332021-03-08 Tom Tromey <tom@tromey.com>
3134
3135 * opencl-lang.c (opencl_structop_operation::evaluate): New
3136 method.
3137 * c-exp.h (class opencl_structop_operation): New.
3138
2492ba36
TT
31392021-03-08 Tom Tromey <tom@tromey.com>
3140
3141 * opencl-lang.c (opencl_logical_not): No longer static. Change
3142 parameters.
3143 (evaluate_subexp_opencl): Update.
3144 * c-exp.h (opencl_notequal_operation): New typedef.
3145
a88c3c8d
TT
31462021-03-08 Tom Tromey <tom@tromey.com>
3147
3148 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3149 static. Change parameters.
3150 (eval_opencl_assign): No longer static. Add "op" parameter.
3151 (evaluate_subexp_opencl): Update.
3152 * c-exp.h (opencl_binop_operation): New template class.
3153 (opencl_assign_operation, opencl_equal_operation)
3154 (opencl_notequal_operation, opencl_less_operation)
3155 (opencl_gtr_operation, opencl_geq_operation)
3156 (opencl_leq_operation): New typedefs.
3157
e9677704
TT
31582021-03-08 Tom Tromey <tom@tromey.com>
3159
3160 * opencl-lang.c (opencl_value_cast): No longer static.
3161 * c-exp.h (opencl_cast_type_operation): New typedef.
3162
f403a4e4
TT
31632021-03-08 Tom Tromey <tom@tromey.com>
3164
3165 * f-exp.h (eval_op_f_allocated): Declare.
3166 (fortran_allocated_operation): New typedef.
3167 * f-lang.c (eval_op_f_allocated): No longer static.
3168
eb4c9271
TT
31692021-03-08 Tom Tromey <tom@tromey.com>
3170
3171 * f-lang.c (eval_op_f_associated): New functions.
3172 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3173 typedefs.
3174
58a76c72
TT
31752021-03-08 Tom Tromey <tom@tromey.com>
3176
3177 * f-lang.c (fortran_bound_1arg::evaluate)
3178 (fortran_bound_2arg::evaluate): New methods.
3179 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3180 New.
3181
2f98abe1
TT
31822021-03-08 Tom Tromey <tom@tromey.com>
3183
3184 * expop.h (class unop_addr_operation) <get_expression>: New
3185 method.
3186 * f-lang.c (fortran_undetermined::value_subarray)
3187 (fortran_undetermined::evaluate): New methods.
3188 (fortran_prepare_argument): New overload.
3189 * f-exp.h (class fortran_range_operation)
3190 (class fortran_undetermined): New classes.
3191
638fd74a
TT
31922021-03-08 Tom Tromey <tom@tromey.com>
3193
3194 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3195 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3196 method.
3197
a00b7254
TT
31982021-03-08 Tom Tromey <tom@tromey.com>
3199
3200 * expression.h (class operation) <evaluate_funcall>: New methods.
3201 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3202 (class var_value_operation) <evaluate_funcall>: New method.
3203 (class structop_base_operation) <evaluate_funcall>: New method.
3204 (class var_msym_value_operation) <evaluate_funcall>: New method.
3205 (class structop_member_base): New class.
3206 (class structop_member_operation): Derive from
3207 structop_member_base.
3208 (class structop_mptr_operation): Derive from
3209 structop_member_base.
3210 (class funcall_operation): New class.
3211 * eval.c (operation::evaluate_funcall)
3212 (var_value_operation::evaluate_funcall)
3213 (scope_operation::evaluate_funcall)
3214 (structop_member_base::evaluate_funcall)
3215 (structop_base_operation::evaluate_funcall): New methods.
3216
1c02eb30
TT
32172021-03-08 Tom Tromey <tom@tromey.com>
3218
3219 * expop.h (class array_operation): New.
3220 * eval.c (array_operation::evaluate_struct_tuple)
3221 (array_operation::evaluate): New methods.
3222
e4479080
TT
32232021-03-08 Tom Tromey <tom@tromey.com>
3224
3225 * expop.h (class adl_func_operation): New.
3226 * eval.c (adl_func_operation::evaluate): New method.
3227
95d49dfb
TT
32282021-03-08 Tom Tromey <tom@tromey.com>
3229
3230 * ada-lang.c (ada_unop_in_range): No longer static.
3231 * ada-exp.h (class ada_unop_range_operation): New.
3232
7c15d377
TT
32332021-03-08 Tom Tromey <tom@tromey.com>
3234
3235 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3236 No longer static.
3237 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3238 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3239
5019124b
TT
32402021-03-08 Tom Tromey <tom@tromey.com>
3241
3242 * expop.h (class logical_and_operation)
3243 (class logical_or_operation): New.
3244 * eval.c (logical_and_operation::evaluate)
3245 (logical_or_operation::evaluate): New methods.
3246 * ax-gdb.c (logical_and_operation::do_generate_ax)
3247 (logical_or_operation::do_generate_ax): New methods.
3248
2bc9b40c
TT
32492021-03-08 Tom Tromey <tom@tromey.com>
3250
3251 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3252 static.
3253 * m2-exp.h: New file.
3254
5947d337
TT
32552021-03-08 Tom Tromey <tom@tromey.com>
3256
3257 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3258 * rust-exp.h (class rust_aggregate_operation): New.
3259
e4407a20
TT
32602021-03-08 Tom Tromey <tom@tromey.com>
3261
3262 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3263 No longer static.
3264 * rust-exp.h (class rust_struct_anon): New.
3265 (class rust_structop): New.
3266
9db6b6dd
TT
32672021-03-08 Tom Tromey <tom@tromey.com>
3268
3269 * rust-lang.c (rust_range): No longer static.
3270 * rust-exp.h (class rust_range_operation): New.
3271
6ce1ad67
TT
32722021-03-08 Tom Tromey <tom@tromey.com>
3273
3274 * rust-lang.c (rust_subscript): No longer static.
3275 * rust-exp.h (class rust_subscript_operation): New.
3276
11dd3dce
TT
32772021-03-08 Tom Tromey <tom@tromey.com>
3278
3279 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3280 parameter.
3281 (rust_evaluate_subexp): Update.
3282 * rust-exp.h (class rust_unop_ind_operation): New.
3283
6fab4359
TT
32842021-03-08 Tom Tromey <tom@tromey.com>
3285
3286 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3287 longer static. Add "opcode" parameter.
3288 (rust_evaluate_subexp): Update.
3289 * rust-exp.h: New file.
3290
9dcd3e29
TT
32912021-03-08 Tom Tromey <tom@tromey.com>
3292
3293 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3294 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3295 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3296 (evaluate_subexp_f): Update.
3297 * f-exp.h: New file.
3298
fc715eb2
TT
32992021-03-08 Tom Tromey <tom@tromey.com>
3300
3301 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3302 * ada-exp.h (class ada_ternop_range_operation): New.
3303
cc6bd32e
TT
33042021-03-08 Tom Tromey <tom@tromey.com>
3305
3306 * ada-lang.c (ada_qual_operation::evaluate): New method.
3307 * ada-exp.h (class ada_qual_operation): New.
3308
42fecb61
TT
33092021-03-08 Tom Tromey <tom@tromey.com>
3310
3311 * ada-lang.c (ada_string_operation::evaluate): New method.
3312 * ada-exp.h (class ada_string_operation): New.
3313
03070ee9
TT
33142021-03-08 Tom Tromey <tom@tromey.com>
3315
3316 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3317 * ada-exp.h: New file.
3318
821e72d7
TT
33192021-03-08 Tom Tromey <tom@tromey.com>
3320
3321 * expop.h (class multi_subscript_operation): New.
3322 * eval.c (multi_subscript_operation::evaluate): New method.
3323
085734dd
TT
33242021-03-08 Tom Tromey <tom@tromey.com>
3325
3326 * eval.c (objc_msgcall_operation::evaluate): New method.
3327 * c-exp.h (class objc_msgcall_operation): New.
3328
e82a5afc
TT
33292021-03-08 Tom Tromey <tom@tromey.com>
3330
3331 * expop.h (class var_value_operation): New.
3332 * eval.c (var_value_operation::evaluate)
3333 (var_value_operation::evaluate_for_address)
3334 (var_value_operation::evaluate_with_coercion)
3335 (var_value_operation::evaluate_for_sizeof)
3336 (var_value_operation::evaluate_for_cast): New methods.
3337 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3338
d9ad79d8
TT
33392021-03-08 Tom Tromey <tom@tromey.com>
3340
3341 * expop.h (cxx_cast_ftype): New typedef.
3342 (cxx_cast_operation): New template.
3343 (dynamic_cast_operation, reinterpret_cast_operation): New
3344 typedefs.
3345
292382f4
TT
33462021-03-08 Tom Tromey <tom@tromey.com>
3347
3348 * expop.h (class unop_cast_type_operation): New.
3349 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3350 method.
3351
165a813a
TT
33522021-03-08 Tom Tromey <tom@tromey.com>
3353
3354 * expop.h (class unop_cast_operation): New.
3355 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3356
e5946e16
TT
33572021-03-08 Tom Tromey <tom@tromey.com>
3358
3359 * expop.h (class assign_modify_operation): New.
3360 * eval.c (eval_binop_assign_modify): No longer static.
3361 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3362
40786782
TT
33632021-03-08 Tom Tromey <tom@tromey.com>
3364
3365 * expop.h (class assign_operation): New.
3366 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3367
44b675c8
TT
33682021-03-08 Tom Tromey <tom@tromey.com>
3369
3370 * expop.h (class type_instance_operation): New.
3371 * eval.c (type_instance_operation::evaluate): New method.
3372
f6b42326
TT
33732021-03-08 Tom Tromey <tom@tromey.com>
3374
3375 * expop.h (class op_this_operation): New.
3376 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3377
cbc18219
TT
33782021-03-08 Tom Tromey <tom@tromey.com>
3379
3380 * expop.h (class unop_memval_operation)
3381 (class unop_memval_type_operation): New.
3382 * eval.c (eval_op_memval): No longer static.
3383 (unop_memval_operation::evaluate_for_address)
3384 (unop_memval_type_operation::evaluate_for_address)
3385 (unop_memval_operation::evaluate_for_sizeof)
3386 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3387 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3388 (unop_memval_type_operation::do_generate_ax): New methods.
3389
ae4bb61e
TT
33902021-03-08 Tom Tromey <tom@tromey.com>
3391
3392 * expop.h (class unop_alignof_operation): New.
3393 * eval.c (eval_op_alignof): No longer static.
3394
85d23bda
TT
33952021-03-08 Tom Tromey <tom@tromey.com>
3396
3397 * expop.h (class unop_sizeof_operation): New.
3398 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3399
14aff815
TT
34002021-03-08 Tom Tromey <tom@tromey.com>
3401
3402 * expop.h (class unop_addr_operation): New.
3403 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3404
929f3aa7
TT
34052021-03-08 Tom Tromey <tom@tromey.com>
3406
3407 * expop.h (class typeid_operation): New.
3408
0af8829e
TT
34092021-03-08 Tom Tromey <tom@tromey.com>
3410
3411 * expop.h (class decltype_operation): New.
3412
4efc574c
TT
34132021-03-08 Tom Tromey <tom@tromey.com>
3414
3415 * expop.h (class typeof_operation): New.
3416
5b5f5140
TT
34172021-03-08 Tom Tromey <tom@tromey.com>
3418
3419 * expop.h (class type_operation): New.
3420 * eval.c (eval_op_type): No longer static.
3421
876469ff
TT
34222021-03-08 Tom Tromey <tom@tromey.com>
3423
3424 * expop.h (class unop_ind_base_operation)
3425 (class unop_ind_operation): New.
3426 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3427 (unop_ind_base_operation::evaluate_for_address)
3428 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3429 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3430
6d89e296
TT
34312021-03-08 Tom Tromey <tom@tromey.com>
3432
3433 * expop.h (unop_incr_operation): New template.
3434 (preinc_operation, predec_operation, postinc_operation)
3435 (postdec_operation): New typedefs.
3436 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3437 (eval_op_postdec): No longer static.
3438
9307d17b
TT
34392021-03-08 Tom Tromey <tom@tromey.com>
3440
3441 * expop.h (unary_ftype): New typedef.
3442 (unop_operation, usual_ax_binop_operation): New templates.
3443 (unary_plus_operation, unary_neg_operation)
3444 (unary_complement_operation, unary_logical_not_operation): New
3445 typedefs.
3446 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3447 (eval_op_lognot): No longer static.
3448 * ax-gdb.c (gen_expr_unop): New function.
3449
ae64ba58
TT
34502021-03-08 Tom Tromey <tom@tromey.com>
3451
3452 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3453
d4eff4c1
TT
34542021-03-08 Tom Tromey <tom@tromey.com>
3455
3456 * expop.h (class repeat_operation): New.
3457 * eval.c (eval_op_repeat): No longer static. Remove "op"
3458 parameter.
3459 (evaluate_subexp_standard): Update.
3460 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3461
46916f2b
TT
34622021-03-08 Tom Tromey <tom@tromey.com>
3463
3464 * expop.h (class comparison_operation): New.
3465 (equal_operation, notequal_operation, less_operation)
3466 (gtr_operation, geq_operation, leq_operation): New typedefs.
3467 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3468 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3469
224d6424
TT
34702021-03-08 Tom Tromey <tom@tromey.com>
3471
3472 * expop.h (class subscript_operation): New.
3473 * eval.c (eval_op_subscript): No longer static.
3474
373907ff
TT
34752021-03-08 Tom Tromey <tom@tromey.com>
3476
3477 * expop.h (class binop_operation, class usual_ax_binop_operation):
3478 New.
3479 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3480 (div_operation, rem_operation, lsh_operation, rsh_operation)
3481 (bitwise_and_operation, bitwise_ior_operation)
3482 (bitwise_xor_operation): New typedefs.
3483 * eval.c (eval_op_binary): No longer static.
3484
5133d78b
TT
34852021-03-08 Tom Tromey <tom@tromey.com>
3486
3487 * expop.h (class sub_operation): New.
3488 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3489 (evaluate_subexp_standard): Update.
3490
a94323b6
TT
34912021-03-08 Tom Tromey <tom@tromey.com>
3492
3493 * expop.h (class add_operation): New.
3494 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3495 (evaluate_subexp_standard): Update.
3496
e51e26a0
TT
34972021-03-08 Tom Tromey <tom@tromey.com>
3498
3499 * expop.h (class concat_operation): New.
3500 * eval.c (eval_op_concat): No longer static. Remove "op"
3501 parameter.
3502 (evaluate_subexp_standard): Update.
3503
07f724a8
TT
35042021-03-08 Tom Tromey <tom@tromey.com>
3505
3506 * expop.h (class structop_member_operation)
3507 (class structop_mptr_operation): New.
3508 * eval.c (eval_op_member): No longer static.
3509
ab0609be
TT
35102021-03-08 Tom Tromey <tom@tromey.com>
3511
3512 * expop.h (class structop_ptr_operation): New.
3513 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3514 parameter.
3515
808b22cf
TT
35162021-03-08 Tom Tromey <tom@tromey.com>
3517
3518 * expop.h (class structop_base_operation)
3519 (class structop_operation): New.
3520 * eval.c (eval_op_structop_struct): No longer static.
3521
8cfd3e95
TT
35222021-03-08 Tom Tromey <tom@tromey.com>
3523
3524 * expop.h (class complex_operation): New.
3525
09db3700
TT
35262021-03-08 Tom Tromey <tom@tromey.com>
3527
3528 * eval.c (eval_op_objc_selector): No longer static.
3529 * c-exp.h (class objc_selector_operation): New.
3530
06dc61b9
TT
35312021-03-08 Tom Tromey <tom@tromey.com>
3532
3533 * eval.c: Include c-exp.h.
3534 * c-exp.h (class objc_nsstring_operation): New.
3535
72d0a711
TT
35362021-03-08 Tom Tromey <tom@tromey.com>
3537
3538 * c-lang.c (c_string_operation::evaluate): New method.
3539 * c-exp.h: New file.
3540
9186293f
TT
35412021-03-08 Tom Tromey <tom@tromey.com>
3542
3543 * expop.h (class ternop_cond_operation): New.
3544 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3545
1594e0bb
TT
35462021-03-08 Tom Tromey <tom@tromey.com>
3547
3548 * expop.h (class ternop_slice_operation): New.
3549 * eval.c (eval_op_ternop): No longer static.
3550
b50db09f
TT
35512021-03-08 Tom Tromey <tom@tromey.com>
3552
3553 * expop.h (class string_operation): New.
3554 * eval.c (eval_op_string): No longer static.
3555
e6e01e16
TT
35562021-03-08 Tom Tromey <tom@tromey.com>
3557
3558 * expop.h (class internalvar_operation): New.
3559 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3560
e6985c5e
TT
35612021-03-08 Tom Tromey <tom@tromey.com>
3562
3563 * expop.h (class bool_operation): New.
3564
55bdbff8
TT
35652021-03-08 Tom Tromey <tom@tromey.com>
3566
3567 * expop.h (class register_operation): New.
3568 * eval.c (eval_op_register): No longer static.
3569 * ax-gdb.c (register_operation::do_generate_ax): New method.
3570
247d935b
TT
35712021-03-08 Tom Tromey <tom@tromey.com>
3572
3573 * expop.h (class last_operation): New.
3574
17679395
TT
35752021-03-08 Tom Tromey <tom@tromey.com>
3576
3577 * expop.h (class func_static_var_operation): New.
3578 * eval.c (eval_op_func_static_var): No longer static.
3579
b5cc3923
TT
35802021-03-08 Tom Tromey <tom@tromey.com>
3581
3582 * expop.h (class var_entry_value_operation): New.
3583 * eval.c (eval_op_var_entry_value): No longer static.
3584
0c8effa3
TT
35852021-03-08 Tom Tromey <tom@tromey.com>
3586
3587 * expression.h (class operation) <set_outermost>: New method.
3588 * expop.h (class var_msym_value_operation): New.
3589 * eval.c (eval_op_var_msym_value): No longer static.
3590 (var_msym_value_operation::evaluate_for_address)
3591 (var_msym_value_operation::evaluate_for_sizeof)
3592 (var_msym_value_operation::evaluate_for_cast): New methods.
3593 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3594 method.
3595
d336c29e
TT
35962021-03-08 Tom Tromey <tom@tromey.com>
3597
3598 * expop.h (class long_const_operation): New.
3599 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3600
d5ab122c
TT
36012021-03-08 Tom Tromey <tom@tromey.com>
3602
3603 * expop.h (class scope_operation): New.
3604 * eval.c (eval_op_scope): No longer static.
3605 (scope_operation::evaluate_for_address): New method.
3606 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3607
cae26a0c
TT
36082021-03-08 Tom Tromey <tom@tromey.com>
3609
3610 * expprint.c (float_const_operation::dump): New method.
3611 * expop.h (float_data): New typedef.
3612 (class float_const_operation): New.
3613
75f9892d
TT
36142021-03-08 Tom Tromey <tom@tromey.com>
3615
3616 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3617 * ax-gdb.c (gen_expr_binop): New function.
3618 (gen_expr_structop): Likewise.
3619
de401988
TT
36202021-03-08 Tom Tromey <tom@tromey.com>
3621
3622 * expprint.c (expr::dump_for_expression): New functions.
3623 * expop.h (dump_for_expression): New overloads.
3624 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3625 Update.
3626
e2803273
TT
36272021-03-08 Tom Tromey <tom@tromey.com>
3628
3629 * expression.h (expr::operation): New class.
3630 (expr::make_operation): New function.
3631 (expr::operation_up): New typedef.
3632 * expop.h: New file.
3633 * eval.c (operation::evaluate_for_cast)
3634 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3635 New methods.
3636 * ax-gdb.c (operation::generate_ax): New method.
3637
e18c58f2
TT
36382021-03-08 Tom Tromey <tom@tromey.com>
3639
3640 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3641 (gen_expr_binop_rest): New overload.
3642
c0d7ed8c
TT
36432021-03-08 Tom Tromey <tom@tromey.com>
3644
3645 * eval.c (eval_multi_subscript): New function.
3646 (evaluate_subexp_standard): Use it.
3647
dd5fd283
TT
36482021-03-08 Tom Tromey <tom@tromey.com>
3649
3650 * ada-lang.c (ada_binop_exp): New function.
3651 (ada_evaluate_subexp): Use it.
3652
3848abd6
TT
36532021-03-08 Tom Tromey <tom@tromey.com>
3654
3655 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3656 parameters.
3657 (ada_evaluate_subexp): Use it.
3658
38dc70cf
TT
36592021-03-08 Tom Tromey <tom@tromey.com>
3660
3661 * ada-lang.c (ada_binop_minmax): New function.
3662 (ada_evaluate_subexp): Use it.
3663
b84564fc
TT
36642021-03-08 Tom Tromey <tom@tromey.com>
3665
3666 * ada-lang.c (ada_unop_atr): New function.
3667 (ada_evaluate_subexp): Use it.
3668
b467efaa
TT
36692021-03-08 Tom Tromey <tom@tromey.com>
3670
3671 * ada-lang.c (ada_binop_in_bounds): New function.
3672 (ada_evaluate_subexp): Use it.
3673
5ce19db8
TT
36742021-03-08 Tom Tromey <tom@tromey.com>
3675
3676 * ada-lang.c (ada_ternop_slice): New function.
3677 (ada_evaluate_subexp): Use it.
3678
214b13ac
TT
36792021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * ada-lang.c (ada_equal_binop): New function.
3682 (ada_evaluate_subexp): Use it.
3683
faa1dfd7
TT
36842021-03-08 Tom Tromey <tom@tromey.com>
3685
3686 * ada-lang.c (ada_mult_binop): New function.
3687 (ada_evaluate_subexp): Use it.
3688
d05e24e6
TT
36892021-03-08 Tom Tromey <tom@tromey.com>
3690
3691 * ada-lang.c (ada_abs): New function.
3692 (ada_evaluate_subexp): Use it.
3693
68c75735
TT
36942021-03-08 Tom Tromey <tom@tromey.com>
3695
3696 * ada-lang.c (ada_atr_size): New function.
3697 (ada_evaluate_subexp): Use it.
3698
020dbabe
TT
36992021-03-08 Tom Tromey <tom@tromey.com>
3700
3701 * ada-lang.c (ada_atr_tag): New function.
3702 (ada_evaluate_subexp): Use it.
3703
7efc87ff
TT
37042021-03-08 Tom Tromey <tom@tromey.com>
3705
3706 * ada-lang.c (ada_unop_in_range): New function.
3707 (ada_evaluate_subexp): Use it.
3708
82390ab8
TT
37092021-03-08 Tom Tromey <tom@tromey.com>
3710
3711 * ada-lang.c (ada_unop_neg): New function.
3712 (ada_evaluate_subexp): Use it.
3713
62d4bd94
TT
37142021-03-08 Tom Tromey <tom@tromey.com>
3715
3716 * ada-lang.c (eval_ternop_in_range): New function.
3717 (ada_evaluate_subexp): Use it.
3718
3634f669
TT
37192021-03-08 Tom Tromey <tom@tromey.com>
3720
3721 * opencl-lang.c (eval_opencl_assign): New function.
3722 (evaluate_subexp_opencl): Use it.
3723
5e80600e
TT
37242021-03-08 Tom Tromey <tom@tromey.com>
3725
3726 * eval.c (eval_op_objc_msgcall): New function.
3727 (evaluate_subexp_standard): Use it.
3728
fb5ba2ab
TT
37292021-03-08 Tom Tromey <tom@tromey.com>
3730
3731 * eval.c (eval_binop_assign_modify): New function.
3732 (evaluate_subexp_standard): Use it.
3733
a49881f7
TT
37342021-03-08 Tom Tromey <tom@tromey.com>
3735
3736 * m2-lang.c (eval_op_m2_subscript): New function.
3737 (evaluate_subexp_modula2): Use it.
3738
41bdced5
TT
37392021-03-08 Tom Tromey <tom@tromey.com>
3740
3741 * m2-lang.c (eval_op_m2_high): New function.
3742 (evaluate_subexp_modula2): Use it.
3743
13ea014a
TT
37442021-03-08 Tom Tromey <tom@tromey.com>
3745
3746 * eval.c (evaluate_subexp_for_address_base): New function.
3747 (evaluate_subexp_for_address): Use it.
3748 (evaluate_subexp_for_sizeof_base): New function.
3749 (evaluate_subexp_for_sizeof): Use it.
3750
1fa41fc7
TT
37512021-03-08 Tom Tromey <tom@tromey.com>
3752
3753 * rust-lang.c (eval_op_rust_structop): New function.
3754 (rust_evaluate_subexp): Use it.
3755
575cae23
TT
37562021-03-08 Tom Tromey <tom@tromey.com>
3757
3758 * rust-lang.c (eval_op_rust_struct_anon): New function.
3759 (rust_evaluate_subexp): Use it.
3760
05104233
TT
37612021-03-08 Tom Tromey <tom@tromey.com>
3762
3763 * rust-lang.c (eval_op_rust_array): New function.
3764 (rust_evaluate_subexp): Use it.
3765
6fa9831f
TT
37662021-03-08 Tom Tromey <tom@tromey.com>
3767
3768 * rust-lang.c (eval_op_rust_complement): New function.
3769 (rust_evaluate_subexp): Use it.
3770
d123f9e4
TT
37712021-03-08 Tom Tromey <tom@tromey.com>
3772
3773 * rust-lang.c (eval_op_rust_ind): New function.
3774 (rust_evaluate_subexp): Use it.
3775
984af2cb
TT
37762021-03-08 Tom Tromey <tom@tromey.com>
3777
3778 * rust-lang.c (rust_subscript): Change parameters.
3779 (rust_evaluate_subexp): Update.
3780
d148f803
TT
37812021-03-08 Tom Tromey <tom@tromey.com>
3782
3783 * rust-lang.c (rust_range): Change parameters.
3784 (rust_evaluate_subexp): Update.
3785
9cbd1c20
TT
37862021-03-08 Tom Tromey <tom@tromey.com>
3787
3788 * f-lang.c (eval_op_f_allocated): New function.
3789 (evaluate_subexp_f): Use it.
3790
3c18c49c
TT
37912021-03-08 Tom Tromey <tom@tromey.com>
3792
3793 * f-lang.c (fortran_require_array): New function.
3794 (evaluate_subexp_f): Use it.
3795
216f6fcb
TT
37962021-03-08 Tom Tromey <tom@tromey.com>
3797
3798 * f-lang.c (eval_op_f_kind): New function.
3799 (evaluate_subexp_f): Use it.
3800
00f2db6f
TT
38012021-03-08 Tom Tromey <tom@tromey.com>
3802
3803 * f-lang.c (eval_op_f_cmplx): New function.
3804 (evaluate_subexp_f): Use it.
3805
93b2b5fa
TT
38062021-03-08 Tom Tromey <tom@tromey.com>
3807
3808 * f-lang.c (eval_op_f_modulo): New function.
3809 (evaluate_subexp_f): Use it.
3810
9f1a1f3c
TT
38112021-03-08 Tom Tromey <tom@tromey.com>
3812
3813 * f-lang.c (eval_op_f_floor): New function.
3814 (evaluate_subexp_f): Use it.
3815
3dc41f3c
TT
38162021-03-08 Tom Tromey <tom@tromey.com>
3817
3818 * f-lang.c (eval_op_f_ceil): New function.
3819 (evaluate_subexp_f): Use it.
3820
e08109f2
TT
38212021-03-08 Tom Tromey <tom@tromey.com>
3822
3823 * f-lang.c (eval_op_f_mod): New function.
3824 (evaluate_subexp_f): Use it.
3825
cc05c68e
TT
38262021-03-08 Tom Tromey <tom@tromey.com>
3827
3828 * f-lang.c (eval_op_f_abs): New function.
3829 (evaluate_subexp_f): Use it.
3830
aec95807
TT
38312021-03-08 Tom Tromey <tom@tromey.com>
3832
3833 * eval.c (eval_op_type): New function.
3834 (evaluate_subexp_standard): Use it.
3835
a220ead5
TT
38362021-03-08 Tom Tromey <tom@tromey.com>
3837
3838 * eval.c (eval_op_postdec): New function.
3839 (evaluate_subexp_standard): Use it.
3840
abffe116
TT
38412021-03-08 Tom Tromey <tom@tromey.com>
3842
3843 * eval.c (eval_op_postinc): New function.
3844 (evaluate_subexp_standard): Use it.
3845
9e1361b7
TT
38462021-03-08 Tom Tromey <tom@tromey.com>
3847
3848 * eval.c (eval_op_predec): New file.
3849 (evaluate_subexp_standard): Use it.
3850
00f50884
TT
38512021-03-08 Tom Tromey <tom@tromey.com>
3852
3853 * eval.c (eval_op_preinc): New function.
3854 (evaluate_subexp_standard): Use it.
3855
3aef2a07
TT
38562021-03-08 Tom Tromey <tom@tromey.com>
3857
3858 * eval.c (eval_op_memval): New function.
3859 (evaluate_subexp_standard): Use it.
3860
acee9468
TT
38612021-03-08 Tom Tromey <tom@tromey.com>
3862
3863 * eval.c (eval_op_alignof): New function.
3864 (evaluate_subexp_standard): Use it.
3865
786f70ee
TT
38662021-03-08 Tom Tromey <tom@tromey.com>
3867
3868 * eval.c (eval_op_ind): New function.
3869 (evaluate_subexp_standard): Use it.
3870
24338fb9
TT
38712021-03-08 Tom Tromey <tom@tromey.com>
3872
3873 * eval.c (eval_op_lognot): New function.
3874 (evaluate_subexp_standard): Use it.
3875
1f09ec81
TT
38762021-03-08 Tom Tromey <tom@tromey.com>
3877
3878 * eval.c (eval_op_complement): New function.
3879 (evaluate_subexp_standard): Use it.
3880
606d105f
TT
38812021-03-08 Tom Tromey <tom@tromey.com>
3882
3883 * eval.c (eval_op_neg): New function.
3884 (evaluate_subexp_standard): Use it.
3885
39f288be
TT
38862021-03-08 Tom Tromey <tom@tromey.com>
3887
3888 * eval.c (eval_op_plus): New function.
3889 (evaluate_subexp_standard): Use it.
3890
eed70b1c
TT
38912021-03-08 Tom Tromey <tom@tromey.com>
3892
3893 * eval.c (eval_op_repeat): New function.
3894 (evaluate_subexp_standard): Use it.
3895
60cdd487
TT
38962021-03-08 Tom Tromey <tom@tromey.com>
3897
3898 * eval.c (eval_op_leq): New function.
3899 (evaluate_subexp_standard): Use it.
3900
96e3efd9
TT
39012021-03-08 Tom Tromey <tom@tromey.com>
3902
3903 * eval.c (eval_op_geq): New function.
3904 (evaluate_subexp_standard): Use it.
3905
1f78d732
TT
39062021-03-08 Tom Tromey <tom@tromey.com>
3907
3908 * eval.c (eval_op_gtr): New function.
3909 (evaluate_subexp_standard): Use it.
3910
6cad1349
TT
39112021-03-08 Tom Tromey <tom@tromey.com>
3912
3913 * eval.c (eval_op_less): New function.
3914 (evaluate_subexp_standard): Use it.
3915
1fcb3559
TT
39162021-03-08 Tom Tromey <tom@tromey.com>
3917
3918 * eval.c (eval_op_notequal): New function.
3919 (evaluate_subexp_standard): Use it.
3920
0cc96de8
TT
39212021-03-08 Tom Tromey <tom@tromey.com>
3922
3923 * eval.c (eval_op_equal): New function.
3924 (evaluate_subexp_standard): Use it.
3925
288d26bc
TT
39262021-03-08 Tom Tromey <tom@tromey.com>
3927
3928 * eval.c (eval_op_subscript): New function.
3929 (evaluate_subexp_standard): Use it.
3930
7cdcdd02
TT
39312021-03-08 Tom Tromey <tom@tromey.com>
3932
3933 * eval.c (eval_op_binary): New function.
3934 (evaluate_subexp_standard): Use it.
3935
d9790e22
TT
39362021-03-08 Tom Tromey <tom@tromey.com>
3937
3938 * eval.c (eval_op_sub): New function.
3939 (evaluate_subexp_standard): Use it.
3940
aedaf9ac
TT
39412021-03-08 Tom Tromey <tom@tromey.com>
3942
3943 * eval.c (eval_op_add): New function.
3944 (evaluate_subexp_standard): Use it.
3945
b7a96ed2
TT
39462021-03-08 Tom Tromey <tom@tromey.com>
3947
3948 * eval.c (eval_op_member): New function.
3949 (evaluate_subexp_standard): Use it.
3950
fb461aa3
TT
39512021-03-08 Tom Tromey <tom@tromey.com>
3952
3953 * eval.c (eval_op_structop_ptr): New function.
3954 (evaluate_subexp_standard): Use it.
3955
3e96c4fc
TT
39562021-03-08 Tom Tromey <tom@tromey.com>
3957
3958 * eval.c (eval_op_structop_struct): New function.
3959 (evaluate_subexp_standard): Use it.
3960
f960a617
TT
39612021-03-08 Tom Tromey <tom@tromey.com>
3962
3963 * eval.c (eval_op_ternop): New function.
3964 (evaluate_subexp_standard): Use it.
3965
5c2f201e
TT
39662021-03-08 Tom Tromey <tom@tromey.com>
3967
3968 * eval.c (eval_op_concat): New function.
3969 (evaluate_subexp_standard): Use it.
3970
f871bae1
TT
39712021-03-08 Tom Tromey <tom@tromey.com>
3972
3973 * eval.c (eval_op_objc_selector): New function.
3974 (evaluate_subexp_standard): Use it.
3975
14a1c64a
TT
39762021-03-08 Tom Tromey <tom@tromey.com>
3977
3978 * eval.c (eval_op_string): New function.
3979 (evaluate_subexp_standard): Use it.
3980
ffff730b
TT
39812021-03-08 Tom Tromey <tom@tromey.com>
3982
3983 * eval.c (eval_op_register): New function.
3984 (evaluate_subexp_standard): Use it.
3985
9b1d8af6
TT
39862021-03-08 Tom Tromey <tom@tromey.com>
3987
3988 * eval.c (eval_op_func_static_var): New function.
3989 (evaluate_subexp_standard): Use it.
3990
c0df9289
TT
39912021-03-08 Tom Tromey <tom@tromey.com>
3992
3993 * eval.c (eval_op_var_msym_value): New function.
3994 (evaluate_subexp_standard): Use it.
3995
50b98adc
TT
39962021-03-08 Tom Tromey <tom@tromey.com>
3997
3998 * eval.c (eval_op_var_entry_value): New function.
3999 (evaluate_subexp_standard): Use it.
4000
ea2d29f7
TT
40012021-03-08 Tom Tromey <tom@tromey.com>
4002
4003 * eval.c (eval_op_scope): New function.
4004 (evaluate_subexp_standard): Use it.
4005
01573d73
TT
40062021-03-06 Chernov Sergey <klen_s@mail.ru>
4007
4008 PR gdb/27528:
4009 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4010
9938d15a
TT
40112021-03-06 Tom Tromey <tom@tromey.com>
4012
4013 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4014 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4015 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4016 (locate_dwz_sections, dwz_search_other_debugdirs)
4017 (dwarf2_get_dwz_file): Move to dwz.c.
4018 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4019 read.h.
4020 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4021 (dwarf2_get_dwz_file): Move from read.c.
4022
18035655
TT
40232021-03-06 Tom Tromey <tom@tromey.com>
4024
4025 * debuginfod-support.h: Include scoped_fd.h.
4026
a7308ce0
TT
40272021-03-06 Tom Tromey <tom@tromey.com>
4028
4029 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4030 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4031 (get_abbrev_section_for_cu, read_attribute_value)
4032 (get_debug_line_section): Update.
4033 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4034
fbedd546
TT
40352021-03-06 Tom Tromey <tom@tromey.com>
4036
4037 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4038 method.
4039 * dwarf2/read.c (section_is_p): Remove.
4040 (dwarf2_per_bfd::locate_sections)
4041 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4042 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4043 (dwarf2_locate_common_dwp_sections)
4044 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4045 Update.
4046
c2a62a3d
TT
40472021-03-06 Tom Tromey <tom@tromey.com>
4048
4049 * xcoffread.c: Include sect-names.h.
4050 * symfile.h (struct dwarf2_section_names, struct
4051 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4052 * dwarf2/sect-names.h: New file, from symfile.h.
4053 * dwarf2/read.c: Include sect-names.h.
4054
4444f407
TT
40552021-03-06 Tom Tromey <tom@tromey.com>
4056
4057 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4058 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4059 (abbrev_table::read): Update.
4060 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4061 (struct abbrev_info): Reformat.
4062 <attrs>: Now an array.
4063 (struct abbrev_table) <alloc_abbrev>: Remove.
4064
dd99cf0c
WP
40652021-03-06 Weimin Pan <weimin.pan@oracle.com>
4066
4067 * ctfread.c (ctf_psymtab_add_enums): New function.
4068 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4069
844be3f2
WP
40702021-03-06 Weimin Pan <weimin.pan@oracle.com>
4071
4072 * ctfread.c (read_func_kind_type): Set up function arguments.
4073
b2668f28
AB
40742021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4075 Andrew Burgess <andrew.burgess@embecosm.com>
4076
4077 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4078 includes.
4079 (riscv_csrset): New static global.
4080 (riscv_update_csrmap): New function.
4081 (riscv_iterate_over_regset_sections): Process CSRs.
4082
d782d24b
AB
40832021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * riscv-tdep.c (riscv_feature_name_csr): Define.
4086 (riscv_feature_name_cpu): Define.
4087 (riscv_feature_name_fpu): Define.
4088 (riscv_feature_name_virtual): Define.
4089 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4090 (riscv_freg_feature): Use riscv_feature_name_fpu.
4091 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4092 (riscv_csr_feature): Use riscv_feature_name_csr.
4093 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4094
fb8f3fc0
AB
40952021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4096 Craig Blackmore <craig.blackmore@embecosm.com>
4097
4098 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4099 (ALLDEPFILES): Add riscv-none-tdep.c.
4100 * configure: Regenerate.
4101 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4102 support.
4103 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4104 * elf-none-tdep.c: New file.
4105 * elf-none-tdep.h: New file.
4106 * riscv-none-tdep.c: New file.
4107
95ce627a
AB
41082021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4109 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * corelow.c: Add 'xml-tdesc.h' include.
4112 (core_target::read_description): Load the target description from
4113 the core file when possible.
4114 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4115 note.
4116 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4117 (gcore_elf_make_tdesc_note): New function.
4118 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4119 * linux-tdep.c (linux_make_corefile_notes): Add target description
4120 note.
4121
f3a5df7b
AB
41222021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * Makefile.in (SFILES): Add gcore-elf.c.
4125 (HFILES_NO_SRCDIR): Add gcore-elf.h
4126 * configure: Regenerate.
4127 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4128 support.
4129 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4130 (struct fbsd_collect_regset_section_cb_data): Delete.
4131 (fbsd_collect_regset_section_cb): Delete.
4132 (fbsd_collect_thread_registers): Delete.
4133 (struct fbsd_corefile_thread_data): Delete.
4134 (fbsd_corefile_thread): Delete.
4135 (fbsd_make_corefile_notes): Call
4136 gcore_elf_build_thread_register_notes instead of the now deleted
4137 FreeBSD code.
4138 * gcore-elf.c: New file, the content was moved here from
4139 linux-tdep.c, functions were renamed and given minor cleanup.
4140 * gcore-elf.h: New file.
4141 * gcore.c (gcore_find_signalled_thread): Moved here from
4142 linux-tdep.c and given a new name. Minor cleanups.
4143 * gcore.h (gcore_find_signalled_thread): Declare.
4144 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4145 (struct linux_collect_regset_section_cb_data): Delete.
4146 (linux_collect_regset_section_cb): Delete.
4147 (linux_collect_thread_registers): Delete.
4148 (linux_corefile_thread): Call
4149 gcore_elf_build_thread_register_notes.
4150 (find_signalled_thread): Delete.
4151 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4152
d1e93af6
SM
41532021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4154
4155 PR gdb/27147
4156 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4157 process_stratum_target parameter,
4158 sparc_store_inferior_registers): update callers.
4159 * sparc-nat.c (sparc_fetch_inferior_registers,
4160 sparc_store_inferior_registers): Add process_stratum_target
4161 parameter. Switch current thread before calling
4162 sparc_supply_gregset / sparc_collect_rwindow.
4163 (sparc_store_inferior_registers): Likewise.
4164 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4165 (sparc32obsd_collect_uthread): Likewise.
4166 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4167 Add assertion.
4168 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4169 sparc64obsd_supply_uthread): Add assertion.
4170
1178743e
TT
41712021-03-04 Tom Tromey <tromey@adacore.com>
4172
4173 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4174 (aux_add_nonlocal_symbols): Update.
4175 (ada_add_block_symbols): Change "found_sym" to bool.
4176
1bfa81ac
TT
41772021-03-03 Tom Tromey <tromey@adacore.com>
4178
4179 * ada-lang.c (ada_resolve_function): Update comment.
4180 (is_nonfunction, add_symbols_from_enclosing_procs)
4181 (remove_extra_symbols): Likewise.
4182 (struct match_data): Add constructor, initializers.
4183 (add_nonlocal_symbols): Remove memset.
4184 (aux_add_nonlocal_symbols): Update comment.
4185 (ada_add_block_renamings, add_nonlocal_symbols)
4186 (ada_add_all_symbols): Likewise.
4187 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4188
bbcdf9ab
TT
41892021-03-02 Tom Tromey <tromey@adacore.com>
4190
4191 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4192 (cast_to_gnat_encoded_fixed_point_type): Remove.
4193 (ada_value_cast, ada_evaluate_subexp): Update.
4194 (gnat_encoded_fixed_point_type_info)
4195 (ada_is_gnat_encoded_fixed_point_type)
4196 (gnat_encoded_fixed_point_delta)
4197 (gnat_encoded_fixed_point_scaling_factor): Remove.
4198 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4199 (gnat_encoded_fixed_point_delta)
4200 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4201 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4202 (ada_print_type): Update.
4203 * ada-valprint.c (ada_value_print_num): Update.
4204 * dwarf2/read.c (ada_get_gnat_encoded_number)
4205 (ada_get_gnat_encoded_ratio): New functions.
4206 (finish_fixed_point_type): Use them. Add parameters.
4207 (GNAT_FIXED_POINT_SUFFIX): New define.
4208 (gnat_encoded_fixed_point_type_info): New function.
4209 (read_base_type): Handle gnat encodings.
4210
5f9febe0
TT
42112021-03-02 Tom Tromey <tromey@adacore.com>
4212
4213 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4214 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4215 std::string.
4216 (GROW_VECT): Remove.
4217 (grow_vect): Remove.
4218
d1183b06
TT
42192021-03-02 Tom Tromey <tromey@adacore.com>
4220
4221 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4222 * ada-lang.c (resolve_subexp): Update.
4223 (ada_resolve_function): Accept a vector.
4224 (is_nonfunction, add_defn_to_vec)
4225 (add_symbols_from_enclosing_procs): Likewise.
4226 (num_defns_collected, defns_collected): Remove.
4227 (remove_extra_symbols): Return a vector.
4228 (remove_irrelevant_renamings): Return void.
4229 (ada_add_local_symbols): Accept a vector.
4230 (struct match_data) <obstackp>: Remove.
4231 <resultp>: New member.
4232 (aux_add_nonlocal_symbols): Update.
4233 (ada_add_block_renamings, add_nonlocal_symbols)
4234 (ada_add_all_symbols): Accept a vector.
4235 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4236 vector.
4237 (ada_lookup_symbol): Update.
4238 (ada_add_block_symbols): Accept a vector.
4239 (get_var_value, iterate_over_symbols): Update.
4240 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4241 Update.
4242
886d459f
TT
42432021-03-02 Tom Tromey <tromey@adacore.com>
4244
4245 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4246
bdcccc56
TT
42472021-03-02 Tom Tromey <tromey@adacore.com>
4248
4249 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4250 auto_obstack.
4251 <root>: Initialize.
4252 (ada_pspace_data): Remove destructor.
4253 <sym_cache>: Now a unique_ptr.
4254 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4255 (ada_get_symbol_cache): Use 'new'.
4256 (ada_clear_symbol_cache): Rewrite.
4257
1228719f
TT
42582021-03-02 Tom Tromey <tromey@adacore.com>
4259
4260 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4261 is null.
4262
bb3a4efe
LS
42632021-02-27 Lancelot Six <lsix@lancelotsix.com>
4264
4265 PR gdb/27393
4266 * source.c (add_path): Skip empty dirnames.
4267
26b43ca6 42682021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4269
4270 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4271 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4272
dffdd8b5
SM
42732021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4274
4275 PR gdb/26861
4276 * target.c (target_mourn_inferior): Only compare pids in
4277 target_mourn_inferior.
4278
64d38fdd
JM
42792021-02-25 Jan Matyas <jmatyas@codasip.com>
4280
4281 PR gdb/26819
4282 * remote.c (remote_target::start_remote): Ensure the single
4283 thread, automatically added for remote targets without the
4284 concept of threading, is initially in set to the "resumed"
4285 state.
4286 * remote.c (remote_target::add_current_inferior_and_thread):
4287 Add return value - return the main thread.
4288
2450ad54
JV
42892021-02-25 Jan Vrany <jan.vrany@labware.com>
4290
4291 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4292 (mi_tsv_created): Likewise.
4293 (mi_tsv_deleted): Likewise.
4294
30c80d88
TV
42952021-02-25 Tom de Vries <tdevries@suse.de>
4296
4297 PR symtab/27354
4298 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4299 section_kind for &dwo_file->sections.info.
4300
68337b8b
AB
43012021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 PR fortran/26155
4304 * f-lang.c (fortran_argument_convert): Delete declaration.
4305 (fortran_prepare_argument): New function.
4306 (evaluate_subexp_f): Move logic to new function
4307 fortran_prepare_argument.
4308
faeb9f13
AB
43092021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4310
4311 * f-exp.y (f77_keywords): Add 'associated'.
4312 * f-lang.c (fortran_associated): New function.
4313 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4314 (operator_length_f): Likewise.
4315 (print_unop_or_binop_subexp_f): New function.
4316 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4317 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4318 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4319 (operator_check_f): Likewise.
4320 * std-operator.def: Add FORTRAN_ASSOCIATED.
4321
170f4b23
AB
43222021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4323
4324 * f-exp.y (fortran_operators): Add ".xor.".
4325
aa659cfa
TV
43262021-02-24 Tom de Vries <tdevries@suse.de>
4327
4328 PR symtab/27336
4329 * dwarf2/attribute.c (attribute::form_is_signed): New function
4330 factored out of ...
4331 * dwarf2/attribute.h (attribute::as_signed): ... here.
4332 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4333 (attribute::form_is_signed): Declare.
4334 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4335 for DW_AT_decl_file.
4336
268c77c1
KB
43372021-02-24 Kevin Buettner <kevinb@redhat.com>
4338
4339 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4340 order for <sys/ptrace.h> and <asm/ptrace.h>.
4341
665af52e
KB
43422021-02-24 Kevin Buettner <kevinb@redhat.com>
4343
4344 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4345 <sys/ptrace.h>.
4346
dd80d750
AB
43472021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4348
4349 * exec.c (set_section_command): Move variable declarations into
4350 the function body, and use std::string instead of a fixed size
4351 buffer.
4352
336aa7b7
AB
43532021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * exec.c (exec_target::get_section_table): Delete member function.
4356 (section_table_read_available_memory): Use current_top_target, not
4357 just the exec_ops target.
4358 * target-delegates.c: Regenerate.
4359 * target.c (default_get_section_table): New function.
4360 * target.h (target_ops::get_section_table): Change default
4361 behaviour to call default_get_section_table.
4362 (default_get_section_table): Declare.
4363
02f7d26b
AB
43642021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * exec.c (exec_target::close): Call new clear_target_sections
4367 function.
4368 (program_space::add_target_sections): Update name of member
4369 variable.
4370 (program_space::add_target_sections): Update name of member
4371 variable.
4372 (program_space::remove_target_sections): Likewise.
4373 (exec_one_fork): Use new target_sections member function.
4374 (exec_target::get_section_table): Likewise.
4375 (exec_target::files_info): Likewise.
4376 (set_section_command): Likewise.
4377 (exec_set_section_address): Likewise.
4378 (exec_target::has_memory): Use new target_sections member
4379 function.
4380 * progspace.h (program_space::clear_target_sections): New member
4381 function.
4382 (program_space::target_sections): Rename member variable to
4383 m_target_sections, replace with a new member function.
4384 (program_space::m_target_sections): New member variable.
4385 * solib-dsbt.c (scan_dyntag): Use new member function.
4386 * solib-svr4.c (scan_dyntag): Likewise.
4387
19cf757a
AB
43882021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4391 return type const.
4392 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4393 (section_table_read_available_memory): Make local const.
4394 (exec_target::xfer_partial): Make local const.
4395 (print_section_info): Make parameter const.
4396 * gdb/exec.h (print_section_info): Likewise.
4397 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4398 const.
4399 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4400 Likewise.
4401 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4402 Likewise.
4403 * gdb/s390-tdep.c (s390_load): Likewise.
4404 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4405 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4406 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4407 Rename to...
4408 (target_debug_print_const_target_section_table_p): ...this.
4409 * gdb/target-delegates.c: Regenerate.
4410 * gdb/target.c (target_get_section_table): Make return type const.
4411 (target_section_by_addr): Likewise. Also make some locals const.
4412 (memory_xfer_partial_1): Make some locals const.
4413 * gdb/target.h (struct target_ops) <get_section_table>: Make
4414 return type const.
4415 (target_section_by_addr): Likewise.
4416 (target_get_section_table): Likewise.
4417
02a79309
AB
44182021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * NEWS: Mention new 'maint info target-sections' command.
4421 * maint.c (maintenance_info_target_sections): New function.
4422 (_initialize_maint_cmds): Register new command.
4423
895b7b4e
AB
44242021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4425
4426 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4427 (riscv_features_from_bfd): ...this. Change parameter type to
4428 'bfd*', and update as required.
4429 (riscv_find_default_target_description): Update call to
4430 riscv_features_from_bfd. Select a default xlen based on
4431 info.bfd_arch_info.
4432 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4433
bc3c0632
AB
44342021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4437 dynamic types in UNOP_IND.
4438
08ac5771
SM
44392021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4440
4441 PR gdb/26828
4442 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4443 Instantiate queue.
4444 (~dwarf2_queue_guard): Clear queue.
4445 (queue_comp_unit): Assert that queue is
4446 instantiated.
4447 (process_queue): Adjust.
4448 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4449
616c069a
SM
44502021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4451
4452 PR gdb/26828
4453 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4454 to decide whether or not to enqueue it for expansion.
4455 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4456 after calling maybe_queue_comp_unit.
4457
897608ed
SM
44582021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4459
4460 * linux-nat.c (linux_nat_filter_event): Return void.
4461
15908a11
TT
44622021-02-22 Tom Tromey <tromey@adacore.com>
4463
4464 * solib-svr4.c (enable_break): Update.
4465 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4466 type.
4467 (target_bfd_reopen): Change parameter type.
4468 * bfd-target.h (target_bfd_reopen): Change parameter type.
4469
f53fc427
SM
44702021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4471
4472 * thread.c (add_thread_silent): Add assert.
4473 (find_thread_ptid): Add assert.
4474
de146e19
SM
44752021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4476
4477 PR gdb/27435
4478 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4479 (target_unpush_up): Likewise.
4480 * procfs.c (procfs_target::attach): Push target early. Use
4481 target_unpush_up to unpush target in case of error.
4482 * target.h (struct target_unpusher): Move here.
4483 (target_unpush_up): Likewise.
4484
8488c357
KB
44852021-02-19 Kevin Buettner <kevinb@redhat.com>
4486
4487 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4488 (which in turn includes <gnulib/config.h>) before include
4489 of <signal.h>.
4490
5a9f5403
NC
44912021-02-19 Nelson Chu <nelson.chu@sifive.com>
4492
4493 PR 27158
4494 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4495 (decode_j_type_insn): Likewise.
4496 (decode_cj_type_insn): Likewise.
4497 (decode_b_type_insn): Likewise.
4498 (decode): Likewise.
4499
26f53cd3
TT
45002021-02-18 Tom Tromey <tom@tromey.com>
4501
4502 * expression.h (struct expression) <evaluate>: Declare method.
4503 * eval.c (evaluate_subexp): Simplify.
4504 (expression::evaluate): New method.
4505 (evaluate_expression, evaluate_type): Use expression::evaluate.
4506
6a780b67
KB
45072021-02-17 Kevin Buettner <kevinb@redhat.com>
4508
4509 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4510 to accessing it.
4511 (ada_lookup_name_info): Likewise.
4512
adeab0c5
MF
45132021-02-13 Mike Frysinger <vapier@gentoo.org>
4514
4515 * aclocal.m4: Regenerate.
4516
089436f7
TV
45172021-02-12 Tom de Vries <tdevries@suse.de>
4518
4519 PR threads/26228
4520 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4521 (lin_thread_signals): New static var.
4522 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4523 New function.
4524 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4525 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4526 Declare.
4527 * linux-thread-db.c (check_thread_signals): Use
4528 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4529
96df3e28
AB
45302021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4531
4532 * f-exp.y (f77_keywords): Add allocated.
4533 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4534 (operator_length_f): Likewise.
4535 (print_subexp_f): Likewise.
4536 (dump_subexp_body_f): Likewise.
4537 (operator_check_f): Likewise.
4538 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4539
05f68f52
TV
45402021-02-11 Tom de Vries <tdevries@suse.de>
4541
4542 PR symtab/27353
4543 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4544 Return true for DW_FORM_strx.
4545
b260f8d6
TT
45462021-02-11 Tom Tromey <tromey@adacore.com>
4547
4548 PR gdb/27383:
4549 * parse.c (write_exp_symbol_reference): Write sym.block.
4550
bf3386f0
AB
45512021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * NEWS: Mention changes to 'maint info sections'.
4554 * maint.c (match_substring): Return a bool, fix whitespace issue.
4555 (struct single_bfd_flag_info): New struct.
4556 (bfd_flag_info): New static global.
4557 (match_bfd_flags): Return a bool, use bfd_flag_info.
4558 (print_bfd_flags): Use bfd_flag_info.
4559 (maint_print_section_info): Delete trailing whitespace.
4560 (struct maint_info_sections_opts): New struct.
4561 (maint_info_sections_option_defs): New static global.
4562 (maint_info_sections_completer): New function.
4563 (maintenance_info_sections): Use option parsing mechanism.
4564 (_initialize_maint_cmds): Update command help text for 'maint info
4565 sections' and register a command completer.
4566
4790db14
AB
45672021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4570 functionality merged into...
4571 (maint_print_all_sections): ...this new function.
4572 (maintenance_info_sections): Make use of maint_print_all_sections,
4573 allow all objects to be printed even where there's no executable.
4574
1db66e34
AB
45752021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * breakpoint.c (resolve_sal_pc): Make use of
4578 bound_minimal_symbol::obj_section.
4579 * maint.c (maintenance_translate_address): Likewise.
4580 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4581 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4582 member function.
4583 * printcmd.c (info_address_command): Make use of
4584 bound_minimal_symbol::obj_section.
4585
18b8df43
AM
45862021-02-11 Alan Modra <amodra@gmail.com>
4587
4588 * arm-symbian-tdep.c: Delete.
4589 * NEWS: Mention arm-symbian removal.
4590 * Makefile.in: Remove arm-symbian-tdep entries.
4591 * configure.tgt: Remove arm*-*-symbianelf*.
4592 * doc/gdb.texinfo: Remove mention of SymbianOS.
4593 * osabi.c (gdb_osabi_names): Remove "Symbian".
4594 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4595 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4596 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4597 handling.
4598 * testsuite/gdb.base/dup-sect.exp: Likewise.
4599 * testsuite/gdb.base/long_long.exp: Likewise.
4600 * testsuite/gdb.base/solib-weak.exp: Likewise.
4601 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4602 * testsuite/gdb.python/py-section-script.exp: Likewise.
4603 * testsuite/lib/dwarf.exp: Likewise.
4604 * testsuite/lib/gdb.exp: Likewise.
4605
e92c8eb8
AB
46062021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4609 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4610 (one_or_two_args): New pattern.
4611 (f77_keywords): Add lbound and ubound.
4612 * f-lang.c (fortran_bounds_all_dims): New function.
4613 (fortran_bounds_for_dimension): New function.
4614 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4615 (operator_length_f): Likewise.
4616 (print_subexp_f): Likewise.
4617 (dump_subexp_body_f): Likewise.
4618 (operator_check_f): Likewise.
4619 * std-operator.def (FORTRAN_LBOUND): Define.
4620 (FORTRAN_UBOUND): Define.
4621
a52d653e
AB
46222021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4623
4624 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4625 and set_section_index member functions where appropriate.
4626 * coffread.c (coff_symtab_read): Likewise.
4627 (process_coff_symbol): Likewise.
4628 * ctfread.c (set_symbol_address): Likewise.
4629 * dwarf2/read.c (add_partial_symbol): Likewise.
4630 (var_decode_location): Likewise.
4631 * language.c: Likewise.
4632 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4633 (compact_minimal_symbols): Likewise.
4634 (minimal_symbol_upper_bound): Likewise.
4635 * objfiles.c (relocate_one_symbol): Likewise.
4636 * psympriv.h (partial_symbol::obj_section): Likewise.
4637 (partial_symbol::address): Likewise.
4638 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4639 * stabsread.c (scan_file_globals): Likewise.
4640 * symmisc.c (dump_msymbols): Likewise.
4641 * symtab.c (general_symbol_info::obj_section): Likewise.
4642 (fixup_section): Likewise.
4643 (get_msymbol_address): Likewise.
4644 * symtab.h (general_symbol_info::section): Rename to...
4645 (general_symbol_info::m_section): ...this.
4646 (general_symbol_info::set_section_index): New member function.
4647 (general_symbol_info::section_index): Likewise.
4648 (SYMBOL_SECTION): Delete.
4649 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4650 set_section_index member functions where appropriate.
4651 (MSYMBOL_SECTION): Delete.
4652 (symbol::symbol): Update to initialize 'm_section'.
4653 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4654 (process_xcoff_symbol): Likewise.
4655
ebbc3a7d
AB
46562021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4659 MSYMBOL_OBJ_SECTION.
4660 * findvar.c (language_defn::read_var_value): Likewise.
4661 * infcmd.c (jump_command): Likewise.
4662 * linespec.c (minsym_found): Likewise.
4663 * maint.c (maintenance_translate_address): Likewise.
4664 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4665 (minimal_symbol_upper_bound): Likewise.
4666 * parse.c (find_minsym_type_and_address): Likewise.
4667 (operator_check_standard): Likewise.
4668 * printcmd.c (info_address_command): Likewise.
4669 * symmisc.c (dump_msymbols): Likewise.
4670 (print_symbol): Likewise.
4671 * symtab.c (general_symbol_info::obj_section): Define new
4672 function.
4673 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4674 (find_pc_sect_compunit_symtab): Likewise.
4675 (find_function_start_sal): Likewise.
4676 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4677 MSYMBOL_OBJ_SECTION.
4678 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4679 function.
4680 (SYMBOL_OBJ_SECTION): Delete.
4681 (MSYMBOL_OBJ_SECTION): Delete.
4682
9bb305b3
TT
46832021-02-09 Tom Tromey <tom@tromey.com>
4684
4685 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4686
cf2b2075
TV
46872021-02-09 Tom de Vries <tdevries@suse.de>
4688
4689 PR symtab/27341
4690 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4691 construct an array type. Add assert to ensure that element_type is
4692 not being modified.
4693
03642b71
AB
46942021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4695
4696 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4697 (gcore_collect_regset_section_cb): Delete.
4698 (gcore_collect_thread_registers): Delete.
4699 (gcore_build_thread_register_notes): Delete.
4700 (gcore_find_signalled_thread): Delete.
4701 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4702 'gdbarch' and 'thread_info' declarations.
4703 (gcore_build_thread_register_notes): Delete declaration.
4704 (gcore_find_signalled_thread): Likewise.
4705 * fbsd-tdep.c: Remove 'gcore.h' include.
4706 (struct fbsd_collect_regset_section_cb_data): New struct.
4707 (fbsd_collect_regset_section_cb): New function.
4708 (fbsd_collect_thread_registers): New function.
4709 (struct fbsd_corefile_thread_data): New struct.
4710 (fbsd_corefile_thread): New function.
4711 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4712 * linux-tdep.c: Remove 'gcore.h' include.
4713 (struct linux_collect_regset_section_cb_data): New struct.
4714 (linux_collect_regset_section_cb): New function.
4715 (linux_collect_thread_registers): New function.
4716 (linux_corefile_thread): Call Linux specific code.
4717 (find_signalled_thread): New function.
4718 (linux_make_corefile_notes): Call find_signalled_thread.
4719
f73e424f
TT
47202021-02-09 Tom Tromey <tromey@adacore.com>
4721
4722 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4723 not_lval value.
4724 * value.c (value_contents_copy_raw): Now static.
4725 * value.h (value_contents_copy_raw): Don't declare.
4726
a4f0544b
TT
47272021-02-09 Tom Tromey <tromey@adacore.com>
4728
4729 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4730 fields.
4731
9b3e4b5d
SV
47322021-02-08 Shahab Vahedi <shahab@synopsys.com>
4733
4734 PR tdep/27369
4735 * arc-linux-tdep.c (handle_atomic_sequence): New.
4736 (arc_linux_software_single_step): Call handle_atomic_sequence().
4737
29db1eb3
AB
47382021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4739
4740 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4741 function.
4742 (REQUIRE_WINDOW): Call is_valid member function.
4743 (REQUIRE_WINDOW_FOR_SETTER): New define.
4744 (gdbpy_tui_is_valid): Call is_valid member function.
4745 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4746 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4747 tui_active too.
4748 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4749 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4750 the function.
4751
e0c23e11
AB
47522021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4753
4754 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4755 for the title is not nullptr.
4756
1cf23996
AB
47572021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * tui-layout.c (saved_tui_windows): Delete.
4760 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4761 call new get_windows member function instead.
4762 (tui_get_window_by_name): Check in tui_windows.
4763 (tui_layout_window::apply): Don't add to tui_windows.
4764 * tui-layout.h (tui_layout_base::get_windows): New member function.
4765 (tui_layout_window::get_windows): Likewise.
4766 (tui_layout_split::get_windows): Likewise.
4767
a53a2657
AB
47682021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4769
4770 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4771 of the window objects.
4772
2708dbbd
AB
47732021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4774
4775 * python/python.c (gdbpy_print_stack): Reformat an error message.
4776
cd074e04
AB
47772021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4778
4779 * tui/tui-interp.c (tui_command_line_handler): New function.
4780 (tui_interp::resume): Register tui_command_line_handler as the
4781 input_handler.
4782 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4783 function.
4784 (tui_getc_1): Delete handling of '\n' and '\r'.
4785 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4786
4cf28e91
HD
47872021-02-07 Hannes Domani <ssbssa@yahoo.de>
4788
4789 * tui/tui-regs.c (tui_data_window::display_registers_from):
4790 Mark invisible register sub windows.
4791 (tui_data_window::check_register_values): Ignore invisible
4792 register sub windows.
4793
3537bc23
HD
47942021-02-07 Hannes Domani <ssbssa@yahoo.de>
4795
4796 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4797 n_spaces with a negative value.
4798
5fc2d6aa
HD
47992021-02-07 Hannes Domani <ssbssa@yahoo.de>
4800
4801 * tui/tui-regs.c (tui_data_window::display_registers_from):
4802 Add refresh_window call.
4803
83962f83
HD
48042021-02-07 Hannes Domani <ssbssa@yahoo.de>
4805
4806 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4807
0110ec82
SM
48082021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4809
4810 * symmisc.c (std_in, std_out, std_err): Remove.
4811 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4812
7c6944ab
TV
48132021-02-05 Tom de Vries <tdevries@suse.de>
4814
4815 PR breakpoints/27330
4816 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4817 glibc object file has debug info.
4818
e77b0004
TV
48192021-02-05 Tom de Vries <tdevries@suse.de>
4820
4821 PR symtab/27333
4822 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4823
0e857c82
TV
48242021-02-05 Tom de Vries <tdevries@suse.de>
4825
4826 PR breakpoints/27313
4827 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4828 syscall numbers.
4829
bdfea17e
TT
48302021-02-05 Tom Tromey <tom@tromey.com>
4831
4832 * compile/compile-c-support.c (get_compile_context)
4833 (c_get_compile_context, cplus_get_compile_context): Change return
4834 type.
4835 * language.c (language_defn::get_compile_instance): New method.
4836 * language.h (language_defn::get_compile_instance): Change return
4837 type. No longer inline.
4838 * c-lang.c (c_language::get_compile_instance): Change return type.
4839 (cplus_language::get_compile_instance): Change return type.
4840 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4841 Change return type.
4842 * compile/compile.c (compile_to_object): Update.
4843
1b30f421
TT
48442021-02-05 Tom Tromey <tom@tromey.com>
4845
4846 * parser-defs.h (write_exp_symbol_reference): Declare.
4847 * parse.c (write_exp_symbol_reference): New function.
4848 * p-exp.y (variable): Use write_exp_symbol_reference.
4849 * m2-exp.y (variable): Use write_exp_symbol_reference.
4850 * f-exp.y (variable): Use write_exp_symbol_reference.
4851 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4852 * c-exp.y (variable): Use write_exp_symbol_reference.
4853
ae710496
TV
48542021-02-05 Tom de Vries <tdevries@suse.de>
4855
4856 PR exp/27265
4857 * valarith.c (complex_binop): Throw an error if complex type can't
4858 be created.
4859
d3b54e63
TV
48602021-02-05 Tom de Vries <tdevries@suse.de>
4861
4862 PR symtab/27307
4863 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4864 return.
4865
fc9a13fb
TV
48662021-02-05 Tom de Vries <tdevries@suse.de>
4867
4868 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4869
04b4939b
MF
48702021-02-04 Mike Frysinger <vapier@gentoo.org>
4871
4872 * configure.tgt (riscv*-*-*): Set gdb_sim.
4873
6ff267e1
SM
48742021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4875
4876 * target.c (target_is_non_stop_p): Return bool.
4877 * target.h (target_is_non_stop_p): Return bool.
4878
fdbc5215
SM
48792021-02-04 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * record-full.c (record_full_async_inferior_event_handler):
4882 Don't clear async event handler.
4883 (record_full_base_target::wait): Clear async event handler at
4884 beginning.
4885
85d3ad8e
SM
48862021-02-04 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * record-btrace.c (record_btrace_handle_async_inferior_event):
4889 Don't clear async event handler.
4890 (record_btrace_target::wait): Clear async event handler at
4891 beginning.
4892
baa8575b
SM
48932021-02-04 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * remote.c (remote_target::wait): Clear async event handler at
4896 beginning, mark if needed at the end.
4897 (remote_async_inferior_event_handler): Don't set or clear async
4898 event handler.
4899
6b36ddeb
SM
49002021-02-04 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * async-event.h (async_event_handler_func): Add documentation.
4903 * async-event.c (check_async_event_handlers): Don't clear
4904 async_event_handler ready flag.
4905 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4906 flag.
4907 * record-btrace.c (record_btrace_handle_async_inferior_event):
4908 Likewise.
4909 * record-full.c (record_full_async_inferior_event_handler):
4910 Likewise.
4911 * remote-notif.c (remote_async_get_pending_events_handler):
4912 Likewise.
4913 * remote.c (remote_async_inferior_event_handler): Likewise.
4914
72d383bb
SM
49152021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4916
4917 * infrun.c (handle_inferior_event): Move stop_soon variable to
4918 inner scope.
4919
408f6686
PA
49202021-02-03 Pedro Alves <pedro@palves.net>
4921
4922 * infcmd.c (detach_command): Hold strong reference to target, and
4923 if all-stop on entry, restart threads on exit.
4924 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4925 (restart_stepped_thread): ... this new function. Also handle
4926 trap_expected.
4927 (restart_after_all_stop_detach): New function.
4928 * infrun.h (restart_after_all_stop_detach): Declare.
4929
ac7d717c
PA
49302021-02-03 Pedro Alves <pedro@palves.net>
4931
4932 * infrun.c (struct step_over_info): Initialize fields.
4933 (prepare_for_detach): Handle ongoing in-line step over.
4934
e87f0fe8
PA
49352021-02-03 Pedro Alves <pedro@palves.net>
4936
4937 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4938 here...
4939 * remote.c (remote_target::remote_detach_1): ... and here ...
4940 * target.c (target_detach): ... instead of here.
4941 * target.h (target_ops::detach): Add comment.
4942
8ff53139
PA
49432021-02-03 Pedro Alves <pedro@palves.net>
4944
4945 * infrun.c (struct wait_one_event): Move higher up.
4946 (prepare_for_detach): Abort in-progress displaced steps instead of
4947 letting them complete.
4948 (handle_one): If the inferior is detaching, don't add the thread
4949 back to the global step-over chain.
4950 (restart_threads): Don't restart threads if detaching.
4951 (handle_signal_stop): Remove inferior::detaching reference.
4952
91475068
PA
49532021-02-03 Pedro Alves <pedro@palves.net>
4954
4955 * infrun.c (prepare_for_detach): Don't release scoped_restore
4956 before returning.
4957
d758e62c
PA
49582021-02-03 Pedro Alves <pedro@palves.net>
4959
4960 * infrun.c (handle_one): New function, factored out from ...
4961 (stop_all_threads): ... here.
4962
b0083dd7
PA
49632021-02-03 Pedro Alves <pedro@palves.net>
4964
4965 * remote.c (remote_notif_stop_ack): Don't error out on
4966 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4967 (remote_target::discard_pending_stop_replies): Don't delete
4968 in-flight notification; instead, clear its contents.
4969
621cc310
PA
49702021-02-03 Pedro Alves <pedro@palves.net>
4971
4972 * remote.c (extended_remote_target::attach): Set target async in
4973 the target-non-stop path too.
4974
2ab76a18
PA
49752021-02-03 Pedro Alves <pedro@palves.net>
4976
4977 PR gdb/27055
4978 * infrun.c (handle_signal_stop): Move main context_switch call
4979 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4980
2e3773ff
LS
49812021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4982
4983 * NEWS (Changed commands): Add entry for the behavior change of
4984 the inferior command.
4985 * inferior.c (inferior_command): When no argument is given to the
4986 inferior command, display info about the currently selected
4987 inferior.
4988
e57933dc
SM
49892021-02-02 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4992 a sect_offset.
4993 (read_attribute_reprocess): Adjust.
4994
2b0c7f41
SM
49952021-02-02 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4998 <gnu_ranges_base>: ... this...
4999 <rnglists_base>: ... and this.
5000 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5001 <gnu_ranges_base>: ... this...
5002 <rnglists_base>: ... and this.
5003 (read_cutu_die_from_dwo): Adjust
5004 (dwarf2_get_pc_bounds): Adjust
5005 (dwarf2_record_block_ranges): Adjust.
5006 (read_full_die_1): Adjust
5007 (partial_die_info::read): Adjust.
5008 (read_rnglist_index): Adjust.
5009
a1c40103
SM
50102021-02-02 Simon Marchi <simon.marchi@efficios.com>
5011
5012 PR gdb/26813
5013 * dwarf2/read.c (read_loclists_rnglists_header): Add
5014 header_offset parameter and use it.
5015 (read_loclist_index): Read header of the current contribution,
5016 not the one at the beginning of the section.
5017 (read_rnglist_index): Likewise.
5018
b1829e1b
SM
50192021-02-02 Simon Marchi <simon.marchi@efficios.com>
5020
5021 PR gdb/26813
5022 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5023 requires_reprocessing flag.
5024 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5025 DW_FORM_loclistx.
5026 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5027 and DW_FORM_loclistx.
5028 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5029 instead of set_address for DW_FORM_loclistx and
5030 DW_FORM_rnglistx.
5031
0c800c6e
SM
50322021-02-02 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * dwarf2/read.c (read_loclist_index): Remove bound check for
5035 start of offset.
5036 (read_rnglist_index): Likewise.
5037
05787bad
SM
50382021-02-02 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5041 of the offset.
5042
5e4d9bbc
SM
50432021-02-02 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5046
a0c1eeba
SM
50472021-02-02 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * dwarf2/read.c (read_loclist_index): Change complaints into
5050 errors.
5051
2bd3e4b8
TV
50522021-02-02 Tom de Vries <tdevries@suse.de>
5053
5054 PR symtab/24620
5055 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5056 psymtab == nullptr.
5057
82a1fd3a
AB
50582021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5061 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5062 here from linux-tdep.c and given a new name. Minor cleanups.
5063 (gcore_collect_regset_section_cb): Likewise.
5064 (gcore_collect_thread_registers): Likewise.
5065 (gcore_build_thread_register_notes): Likewise.
5066 (gcore_find_signalled_thread): Likewise.
5067 * gcore.h (gcore_build_thread_register_notes): Declare.
5068 (gcore_find_signalled_thread): Declare.
5069 * fbsd-tdep.c: Add 'gcore.h' include.
5070 (struct fbsd_collect_regset_section_cb_data): Delete.
5071 (fbsd_collect_regset_section_cb): Delete.
5072 (fbsd_collect_thread_registers): Delete.
5073 (struct fbsd_corefile_thread_data): Delete.
5074 (fbsd_corefile_thread): Delete.
5075 (fbsd_make_corefile_notes): Call
5076 gcore_build_thread_register_notes instead of the now deleted
5077 FreeBSD code.
5078 * linux-tdep.c: Add 'gcore.h' include.
5079 (struct linux_collect_regset_section_cb_data): Delete.
5080 (linux_collect_regset_section_cb): Delete.
5081 (linux_collect_thread_registers): Delete.
5082 (linux_corefile_thread): Call
5083 gcore_build_thread_register_notes.
5084 (find_signalled_thread): Delete.
5085 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5086
ebde6f2d
TV
50872021-01-29 Tom de Vries <tdevries@suse.de>
5088
5089 PR breakpoints/26063
5090 * infrun.c (process_event_stop_test): Reset
5091 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5092 changed.
5093
0f93c3a2
AB
50942021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5095
5096 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5097 assert. Extend the header comment.
5098
f237f998
AB
50992021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5100
5101 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5102 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5103 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5104 (tui_locator_win_info_ptr): Delete declaration.
5105 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5106 (tui_disasm_window::set_contents): Fetch state from tui_location
5107 global.
5108 (tui_get_begin_asm_address): Likewise.
5109 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5110 for locator window.
5111 (get_locator_window): Delete.
5112 (initialize_known_windows): Treat locator window just like all the
5113 rest.
5114 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5115 (tui_source_window::set_contents): Fetch state from tui_location
5116 global.
5117 (tui_source_window::showing_source_p): Likewise.
5118 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5119 (_locator): Delete.
5120 (tui_locator_win_info_ptr): Delete.
5121 (tui_locator_window::make_status_line): Fetch state from
5122 tui_location global.
5123 (tui_locator_window::rerender): Remove check of 'handle',
5124 reindent function body.
5125 (tui_locator_window::set_locator_fullname): Delete.
5126 (tui_locator_window::set_locator_info): Delete.
5127 (tui_update_locator_fullname): Delete.
5128 (tui_show_frame_info): Likewise.
5129 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5130 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5131 tui/tui-location.h and renamed to
5132 tui_location_tracker::set_location.
5133 (tui_locator_window::set_locator_fullname): Moved to
5134 tui/tui-location.h and renamed to
5135 tui_location_tracker::set_fullname.
5136 (tui_locator_window::full_name): Delete.
5137 (tui_locator_window::proc_name): Delete.
5138 (tui_locator_window::line_no): Delete.
5139 (tui_locator_window::addr): Delete.
5140 (tui_locator_window::gdbarch): Delete.
5141 (tui_update_locator_fullname): Delete declaration.
5142 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5143 for locator window.
5144 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5145 (tui_display_main): Call function on tui_location directly.
5146 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5147 * tui/tui-location.c: New file.
5148 * tui/tui-location.h: New file.
5149
8ee511af
SM
51502021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5151
5152 * gdbtypes.h (get_type_arch): Rename to...
5153 (struct type) <arch>: ... this, update all users.
5154
6ac37371
SM
51552021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5156
5157 * gdbtypes.h (struct type) <arch>: Rename to...
5158 <arch_owner>: ... this, update all users.
5159 <objfile>: Rename to...
5160 <objfile_owner>: ... this, update all users.
5161
24cf6389
AB
51622021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * gdbcmd.h (execute_command_to_string): Update comment.
5165 * top.c (execute_command_to_string): Update header comment.
5166
2a7f6487
TV
51672021-01-28 Tom de Vries <tdevries@suse.de>
5168
5169 PR breakpoints/27205
5170 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5171 (create_longjmp_master_breakpoint_names): New function, factored out
5172 of ...
5173 (create_longjmp_master_breakpoint): ... here. Only try to install
5174 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5175 breakpoint in libc.so failed.
5176
59b59f08
LS
51772021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5178
5179 PR gdb/27133
5180 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5181 unique_ptr is released when the wrapped pointer is kept for later
5182 use.
5183
807f647c
MM
51842021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5185
5186 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5187 BLR and BR instructions.
5188 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5189 (enum aarch64_masks): New.
5190
4ef367bf
TT
51912021-01-26 Tom Tromey <tromey@adacore.com>
5192
5193 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5194 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5195 (windows_init_thread_list, windows_nat::handle_load_dll)
5196 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5197 (windows_nat_target::resume)
5198 (windows_nat_target::get_windows_debug_event)
5199 (windows_nat_target::interrupt, windows_xfer_memory)
5200 (windows_nat_target::close): Update.
5201 * nat/windows-nat.c (DEBUG_EVENTS): Use
5202 debug_prefixed_printf_cond.
5203 (matching_pending_stop, fetch_pending_stop)
5204 (continue_last_debug_event): Update.
5205
4cb1265b
MS
52062020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5207
5208 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5209 elfcore_write_file_note.
5210
d0cc52bd
SV
52112021-01-26 Shahab Vahedi <shahab@synopsys.com>
5212
5213 * arc-tdep.c (arc_add_reggroups): New function.
5214 (arc_gdbarch_init): Call arc_add_reggroups.
5215
ac3571d9 52162021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5217
5218 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5219
9f6c202e
TV
52202021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5221 Simon Marchi <simon.marchi@polymtl.ca>
5222 Tom de Vries <tdevries@suse.de>
5223
5224 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5225 DW_AT_ranges.
5226
a625a8c9
TT
52272021-01-25 Tom Tromey <tromey@adacore.com>
5228
5229 * dwarf2/read.c (get_mpz): New function.
5230 (get_dwarf2_rational_constant): Use it.
5231
19184910
TT
52322021-01-25 Tom Tromey <tromey@adacore.com>
5233
5234 * ada-lang.c (resolve_subexp): Handle array context.
5235
b10bae18
TT
52362021-01-23 Tom Tromey <tom@tromey.com>
5237
5238 PR compile/25575
5239 * compile/compile-loc2c.c (note_register): New function.
5240 (pushf_register_address, pushf_register): Use it.
5241
3637a558
TT
52422021-01-23 Tom Tromey <tom@tromey.com>
5243
5244 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5245 Change type of "registers_used".
5246 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5247 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5248 (locexpr_generate_c_location, loclist_generate_c_location): Change
5249 type of "registers_used".
5250 * compile/compile.h (compile_dwarf_expr_to_c)
5251 (compile_dwarf_bounds_to_c): Update.
5252 * compile/compile-loc2c.c (pushf_register_address)
5253 (pushf_register, do_compile_dwarf_expr_to_c)
5254 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5255 of "registers_used".
5256 * compile/compile-c.h (generate_c_for_variable_locations):
5257 Update.
5258 * compile/compile-c-symbols.c (generate_vla_size)
5259 (generate_c_for_for_one_variable): Change type of
5260 "registers_used".
5261 (generate_c_for_variable_locations): Return std::vector.
5262 * compile/compile-c-support.c (generate_register_struct): Change
5263 type of "registers_used".
5264 (compute): Update.
5265
9f7f6cb8
TT
52662021-01-23 Tom Tromey <tom@tromey.com>
5267
5268 * compile/compile-internal.h (class compile_instance)
5269 <set_arguments>: Change return type.
5270 * compile/compile.c (compile_to_object): Remove call to reset.
5271 (compile_instance::set_arguments): Change return type.
5272
dd5ca05f
SM
52732021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5274
5275 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5276 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5277
d3ee35db
LS
52782021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5279
5280 * Makefile.in (SELFTESTS_SRCS): Add
5281 unittests/gdb_tilde_expand-selftests.c.
5282 * unittests/gdb_tilde_expand-selftests.c: New file.
5283
9d2d8a16
AB
52842021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5285
5286 PR cli/25956
5287 * NEWS: Mention new command.
5288 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5289 (version_style): Define.
5290 (cli_style_option::cli_style_option): Add intensity parameter, and
5291 use as appropriate.
5292 (_initialize_cli_style): Register version style set/show commands.
5293 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5294 (version_style): Declare.
5295 * top.c (print_gdb_version): Use version_stype, and styled_string
5296 to print the GDB version string.
5297
e7b43072
AB
52982021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5299
5300 * utils.c (emit_style_escape): Only emit an escape sequence if the
5301 requested style is different than the current applied style.
5302 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5303 current applied_style.
5304 (fputs_styled): Remove is_default check.
5305 (fputs_styled_unfiltered): Likewise.
5306 (vfprintf_styled_no_gdbfmt): Likewise.
5307
2189c312
SM
53082021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5309
5310 * remote.h (remote_debug_printf): New.
5311 (remote_debug_printf_nofunc): New.
5312 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5313 * remote.c: Use above macros throughout file.
5314
02349803
SM
53152021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * remote.h (remote_debug): Change to bool.
5318 * remote.c (remote_debug): Change to bool.
5319 (_initialize_remote): Adjust.
5320
cda09ec9
SM
53212021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5322
5323 * target.h (remote_debug): Move to...
5324 * remote.h (remote_debug): ... here.
5325 * top.c (remote_debug): Move to...
5326 * remote.c (remote_debug): ... here.
5327 * remote-sim.c: Include remote.h.
5328
baf2b57f
SM
53292021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 * cli/cli-cmds.c (show_remote_debug): Remove.
5332 (show_remote_timeout): Remove.
5333 (_initialize_cli_cmds): Don't register commands.
5334 * remote.c (show_remote_debug): Move here.
5335 (show_remote_timeout): Move here.
5336 (_initialize_remote): Register commands.
5337
344e9841
SM
53382021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5341 type::objfile method instead.
5342
30625020
SM
53432021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5344
5345 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5346 use the type::is_objfile_owned method.
5347
5b7d941b
SM
53482021-01-22 Simon Marchi <simon.marchi@efficios.com>
5349
5350 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5351 (TYPE_OWNER): Remove.
5352 (TYPE_OBJFILE): Adjust.
5353 (struct main_type) <flag_objfile_owned>: Rename to...
5354 <m_flag_objfile_owned>: ... this.
5355 <owner>: Rename to...
5356 <m_owner>: ... this.
5357 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5358 methods.
5359 (TYPE_ALLOC): Adjust.
5360 * gdbtypes.c (alloc_type): Adjust.
5361 (alloc_type_arch): Adjust.
5362 (alloc_type_copy): Adjust.
5363 (get_type_arch): Adjust.
5364 (smash_type): Adjust.
5365 (lookup_array_range_type): Adjust.
5366 (recursive_dump_type): Adjust.
5367 (copy_type_recursive): Adjust.
5368 * compile/compile-c-types.c (convert_func): Adjust.
5369 (convert_type_basic): Adjust.
5370 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5371 Adjust.
5372 * language.c
5373 (language_arch_info::type_and_symbol::alloc_type_symbol):
5374 Adjust.
5375
d5d24e12
LM
53762021-01-21 Luis Machado <luis.machado@linaro.org>
5377
5378 * coffread.c (enter_linenos): Passing string to complaint.
5379 * valops.c (value_assign): Make array view.
5380
a59902a7
SM
53812021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5382
5383 * auto-load.h (debug_auto_load): Move here.
5384 (auto_load_debug_printf): New.
5385 * auto-load.c: Use auto_load_debug_printf.
5386 (debug_auto_load): Move to header.
5387 * linux-thread-db.c (try_thread_db_load): Use
5388 auto_load_debug_printf.
5389 * main.c (captured_main_1): Likewise.
5390
d3abc0ce
SM
53912021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5392
5393 * f-valprint.c (f77_array_offset_tbl): Remove.
5394
1e15fcac
SM
53952021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5396
5397 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5398
439706e6
SM
53992021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5400
5401 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5402 of gdb_select.
5403
325d39e4
HD
54042021-01-21 Hannes Domani <ssbssa@yahoo.de>
5405
5406 PR python/19151
5407 * python/py-breakpoint.c (bppy_get_location): Handle
5408 bp_hardware_breakpoint.
5409 (bppy_init): Likewise.
5410 (gdbpy_breakpoint_created): Likewise.
5411
7cb6d92a
SM
54122021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5415
d4dd4fca
SM
54162021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5417
5418 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5419 (_initialize_gdb_bfd): Adjust.
5420
de53369b
SM
54212021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5422
5423 PR gdb/26828
5424 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5425
17e593e9
SM
54262021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5427
5428 * dwarf2/read.c (follow_die_offset): Add logging.
5429 (dwarf2_per_objfile::age_comp_units): Add logging.
5430
6bd434d6
SM
54312021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5432
5433 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5434 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5435 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5436 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5437 * arm-tdep.c (struct frame_unwind): Make static.
5438 * auto-load.c (auto_load_safe_path_vec): Make static.
5439 * csky-tdep.c (csky_stub_unwind): Make static.
5440 * gdbarch.c (gdbarch_data_registry): Make static.
5441 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5442 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5443 * i386-tdep.c (i386_frame_setup_skip_insns,
5444 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5445 Make static.
5446 * infrun.c (observer_mode): Make static.
5447 * linux-nat.c (sigchld_action): Make static.
5448 * linux-thread-db.c (thread_db_list): Make static.
5449 * maint-test-options.c (maintenance_test_options_list):
5450 * mep-tdep.c (mep_csr_registers): Make static.
5451 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5452 (stats): Make static.
5453 * nat/linux-osdata.c (struct osdata_type): Make static.
5454 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5455 * progspace.c (last_program_space_num): Make static.
5456 * python/py-param.c (struct parm_constant): Remove struct type
5457 name.
5458 (parm_constants): Make static.
5459 * python/py-record-btrace.c (btpy_list_methods): Make static.
5460 * python/py-record.c (recpy_gap_type): Make static.
5461 * record.c (record_goto_cmdlist): Make static.
5462 * regcache.c (regcache_descr_handle): Make static.
5463 * registry.h (DEFINE_REGISTRY): Make definition static.
5464 * symmisc.c (std_in, std_out, std_err): Make static.
5465 * top.c (previous_saved_command_line): Make static.
5466 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5467 static.
5468 * unittests/command-def-selftests.c (nr_duplicates,
5469 nr_invalid_prefixcmd, lists): Make static.
5470 * unittests/observable-selftests.c (test_notification): Make
5471 static.
5472 * unittests/optional/assignment/1.cc (counter): Make static.
5473 * unittests/optional/assignment/2.cc (counter): Make static.
5474 * unittests/optional/assignment/3.cc (counter): Make static.
5475 * unittests/optional/assignment/4.cc (counter): Make static.
5476 * unittests/optional/assignment/5.cc (counter): Make static.
5477 * unittests/optional/assignment/6.cc (counter): Make static.
5478
a6c11cbb
JS
54792021-01-20 Joel Sherrill <joel@rtems.org>
5480
5481 PR gdb/27219
5482 * remote.c (struct remote_thread_info) <resume_state>: Rename
5483 to...
5484 <get_resume_state>: ... this.
5485 (remote_target::resume): Adjust.
5486 (remote_target::commit_resume): Adjust.
5487 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5488
6f52fdf4
SDJ
54892021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5490 Tom Tromey <tom@tromey.com>
5491
5492 * stap-probe.c (stap_parse_single_operand): Handle '!'
5493 operator.
5494 (stap_parse_argument_conditionally): Likewise.
5495 Skip spaces after processing open-parenthesis sub-expression.
5496 (stap_parse_argument_1): Skip spaces after call to
5497 stap_parse_argument_conditionally.
5498 Handle case when right-side expression is a parenthesized
5499 sub-expression.
5500 Skip spaces after call to stap_parse_argument_1.
5501
1c3b85ad
LS
55022021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5503
5504 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5505
a9a87d35
LM
55062021-01-19 Luis Machado <luis.machado@linaro.org>
5507
5508 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5509 memory and save data.
5510 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5511 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5512 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5513 (trad_frame_value_bytes_p): Remove.
5514 (trad_frame_reset_saved_regs): Adjust documentation.
5515 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5516 constructor and reset the state of the registers.
5517 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5518 (trad_frame_value_bytes_p, trad_frame_set_value)
5519 (trad_frame_set_realreg, trad_frame_set_addr)
5520 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5521 (trad_frame_set_reg_realreg): Update to call member function.
5522 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5523 (trad_frame_get_prev_register): Likewise.
5524
5525 * aarch64-tdep.c (aarch64_analyze_prologue)
5526 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5527 (aarch64_prologue_prev_register): Update to use member functions.
5528 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5529 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5530 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5531 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5532 (arm_make_epilogue_frame_cache): Likewise.
5533 * avr-tdep.c (avr_frame_unwind_cache)
5534 (avr_frame_prev_register): Likewise.
5535 * cris-tdep.c (cris_scan_prologue): Likewise.
5536 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5537 * frv-tdep.c (frv_analyze_prologue): Likewise.
5538 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5539 * lm32-tdep.c (lm32_frame_cache): Likewise.
5540 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5541 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5542 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5543 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5544 (reset_saved_regs): Adjust to set realreg.
5545 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5546 call member functions.
5547 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5548 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5549 (s390_backchain_frame_unwind_cache): Likewise.
5550 * score-tdep.c (score7_analyze_prologue)
5551 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5552 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5553 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5554 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5555 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5556 * tilegx-tdep.c (tilegx_analyze_prologue)
5557 (tilegx_frame_cache): Likewise.
5558 * v850-tdep.c (v850_frame_cache): Likewise.
5559 * vax-tdep.c (vax_frame_cache): Likewise.
5560
bdec2917
LM
55612021-01-19 Luis Machado <luis.machado@linaro.org>
5562
5563 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5564 of buffer + length.
5565 (put_frame_register_bytes): Likewise.
5566 Adjust documentation.
5567 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5568 (safe_frame_unwind_memory): Likewise.
5569 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5570 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5571 gdb::array_view.
5572 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5573 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5574 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5575 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5576 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5577 * dwarf2/loc.c (rw_pieced_value): Likewise.
5578 * hppa-tdep.c (hppa_frame_cache): Likewise.
5579 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5580 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5581 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5582 (i386_linux_rt_sigtramp_start): Likewise.
5583 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5584 * i386-tdep.c (i386_register_to_value): Likewise.
5585 * i387-tdep.c (i387_register_to_value): Likewise.
5586 * ia64-tdep.c (ia64_register_to_value): Likewise.
5587 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5588 (m32r_linux_rt_sigtramp_start): Likewise.
5589 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5590 * m68k-tdep.c (m68k_register_to_value): Likewise.
5591 * mips-tdep.c (mips_register_to_value)
5592 (mips_value_to_register): Likewise.
5593 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5594 (ppcfbsd_sigtramp_frame_cache): Likewise.
5595 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5596 (ppcobsd_sigtramp_frame_cache): Likewise.
5597 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5598 (rs6000_register_to_value): Likewise.
5599 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5600 * tramp-frame.c (tramp_frame_start): Likewise.
5601 * valops.c (value_assign): Likewise.
5602
ccbe4c82
LM
56032021-01-19 Luis Machado <luis.machado@linaro.org>
5604
5605 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5606 array_view.
5607 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5608 instead of buffer and size.
5609 (trad_frame_set_reg_value_bytes): Likewise.
5610 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5611 (trad_frame_set_value_bytes): Likewise.
5612
0e7620dc
MF
56132021-01-18 Mike Frysinger <vapier@gentoo.org>
5614
5615 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5616
6a9ad81c
AB
56172021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5618
5619 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5620 (riscv_fbsd_gregset): Use riscv_supply_regset.
5621 (riscv_fbsd_fpregset): Likewise.
5622 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5623 (riscv_linux_fregset): Likewise.
5624 * riscv-tdep.c (riscv_supply_regset): Define new function.
5625 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5626
d3d7d1ba
TV
56272021-01-18 Tom de Vries <tdevries@suse.de>
5628
5629 PR tdep/27172
5630 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5631 New macro.
5632 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5633 for SEGV_BNDERR.
5634
aa2838cc
SM
56352021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5636
5637 * remote.c (class remote_target) <remote_hostio_send_command,
5638 remote_hostio_parse_result>: Constify parameter.
5639 (remote_hostio_parse_result): Likewise.
5640 (remote_target::remote_hostio_send_command): Adjust.
5641 (remote_target::remote_hostio_pread_vFile): Adjust.
5642 (remote_target::fileio_readlink): Adjust.
5643 (remote_target::fileio_fstat): Adjust.
5644
b5c8f22d
SM
56452021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5646
5647 * remote.c (remote_target::start_remote): Move wait_status to
5648 narrower scope.
5649
e3b2741b
SM
56502021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5651
5652 * remote.c (class remote_target):
5653 <add_current_inferior_and_thread>: Constify parameter.
5654 (stop_reply_extract_thread): Likewise.
5655 (remote_target::get_current_thread): Likewise.
5656 (remote_target::add_current_inferior_and_thread): Likewise.
5657
cecb1912
SM
56582021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5659
5660 * remote.c (class remote_target)
5661 <remote_unpack_thread_info_response,
5662 parse_threadlist_response>: Constify parameter and/or return
5663 value and or local variable.
5664 (stub_unpack_int): Likewise.
5665 (unpack_nibble): Likewise.
5666 (unpack_byte): Likewise.
5667 (unpack_int): Likewise.
5668 (unpack_string): Likewise.
5669 (unpack_threadid): Likewise.
5670 (remote_target::remote_unpack_thread_info_response): Likewise.
5671 (remote_target::parse_threadlist_response): Likewise.
5672
5a11fff0
AB
56732021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5676
17e89137
LS
56772021-01-14 Lancelot Six <lsix@lancelotsix.com>
5678
5679 * MAINTAINERS (Write After Approval): Add myself.
5680
58eadc4b
BE
56812021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5682
5683 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5684 because is_trivially_default_constructible was first implemented with
5685 gcc-5.
5686
5fae2a2c
TV
56872021-01-14 Tom de Vries <tdevries@suse.de>
5688
5689 PR breakpoints/27151
5690 * objfiles.h (in_plt_section): Handle .plt.sec.
5691
8f66807b
AB
56922021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5693
5694 PR gdb/26819
5695 * remote.c
5696 (remote_target::select_thread_for_ambiguous_stop_reply): New
5697 member function.
5698 (remote_target::process_stop_reply): Call
5699 select_thread_for_ambiguous_stop_reply.
5700
bd497355
SM
57012021-01-13 Simon Marchi <simon.marchi@efficios.com>
5702
5703 * record-btrace.c (class record_btrace_target): Remove.
5704 (record_btrace_target::commit_resume): Remove.
5705 * record-full.c (class record_full_target): Remove.
5706 (record_full_target::commit_resume): Remove.
5707
c9d22089
SM
57082021-01-13 Simon Marchi <simon.marchi@efficios.com>
5709
5710 * remote.c (enum class resume_state): New.
5711 (struct resumed_pending_vcont_info): New.
5712 (struct remote_thread_info) <resume_state, set_not_resumed,
5713 set_resumed_pending_vcont, resumed_pending_vcont_info,
5714 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5715 New.
5716 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5717 (remote_target::remote_add_thread): Adjust.
5718 (remote_target::process_initial_stop_replies): Adjust.
5719 (remote_target::resume): Adjust.
5720 (remote_target::commit_resume): Rely on state in
5721 remote_thread_info and not on tp->executing.
5722 (remote_target::process_stop_reply): Adjust.
5723
d8d1feb4
SM
57242021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 * arc-tdep.h (arc_debug_printf): New.
5727 * arc-tdep.c: Use arc_debug_printf.
5728 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5729 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5730 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5731
fb0f5031
SM
57322021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * arc-tdep.h (arc_debug): Change type to bool.
5735 * arc-tdep.c (arc_debug): Change type to bool.
5736 (arc_analyze_prologue): Adjust.
5737 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5738 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5739
5bf7e91b
SM
57402021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5741
5742 * auto-load.c (auto_load_objfile_script_1): Use bool.
5743 (execute_script_contents): Use bool.
5744
db972fce
SM
57452021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5746
5747 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5748 comment here.
5749 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5750 comment to header.
5751 * extension-priv.h (struct extension_language_script_ops)
5752 <auto_load_enabled>: Return bool.
5753 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5754 comment here.
5755 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5756 comment to header.
5757 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5758 move comment here.
5759 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5760 move comment to header.
5761 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5762 move comment here.
5763 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5764 move comment to header.
5765
5e12f48f
SM
57662021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5767
5768 * auto-load.h (file_is_auto_load_safe): Change return type to
5769 bool, move comment here.
5770 * auto-load.c (file_is_auto_load_safe): Change return type and
5771 advice_printed to bool. Move comment to header.
5772
54ca9002
SM
57732021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5774
5775 * jit.c (jit_debug_printf): New, use throughout file.
5776
24a7f1b5
SM
57772021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5778
5779 * infrun.c (normal_stop): Fix indentation.
5780
fe7a351a
SM
57812021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5784 declarations to ...
5785 * symfile.h: ... here.
5786 * symfile.c: Update doc.
5787
16e9019e
SM
57882021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5789
5790 * target.h (baud_rate, serial_parity): Move declarations...
5791 * serial.h: ... here.
5792 * main.c: Include serial.h.
5793 * serial.c (baud_rate, serial_parity): Update doc.
5794
b2f2ae0d
SM
57952021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5796
5797 * top.c (pre_init_ui_hook): Remove.
5798
5291fe3c
SP
57992021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5800
5801 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5802 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5803 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5804 * features/aarch64-fpu.xml: Add bfloat16 type.
5805
ce38f5ed
AB
58062021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5807
5808 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5809
7c654b71
AB
58102021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5811
5812 * f-exp.y (dot_ops): Rename to...
5813 (fortran_operators): ...this. Add a header comment. Add symbol
5814 based operators.
5815 (yylex): Update to use fortran_operators not dot_ops. Remove
5816 special handling for '**', this is now included in
5817 fortran_operators.
5818
c6185dce
SM
58192021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5820
5821 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5822 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5823 * aarch64-tdep.c: Use aarch64_debug_printf.
5824
eef401dc
SM
58252021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5826
5827 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5828 file.
5829
062eaacb
SM
58302021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5831
5832 * jit.c (jit_debug): Change type to bool.
5833 (_initialize_jit): Adjust.
5834
54585eee
TT
58352021-01-09 Tom Tromey <tom@tromey.com>
5836
5837 PR compile/23672
5838 * compile/compile.c (compile_to_object): Avoid crash when
5839 osabi_triplet_regexp returns NULL.
5840
bc167b6b
TT
58412021-01-09 Tom Tromey <tom@tromey.com>
5842
5843 * tracepoint.h (class collection_list) <append_exp>: Take a
5844 std::string.
5845 * tracepoint.c (collection_list::append_exp): Take a std::string.
5846 (encode_actions_1): Update.
5847
8fc48b79
TT
58482021-01-08 Tom Tromey <tromey@adacore.com>
5849
5850 * parse.c (parse_expression): Add void_context_p parameter. Use
5851 parse_exp_in_context.
5852 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5853 parse_expression.
5854 (print_command, call_command): Update.
5855 * expression.h (parse_expression): Add void_context_p parameter.
5856
3c8c6de2
AB
58572021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5858
5859 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5860 for internalvar components that have a dynamic location.
5861
1940319c
TV
58622021-01-08 Tom de Vries <tdevries@suse.de>
5863
5864 PR gdb/26881
5865 * breakpoint.c (create_exception_master_breakpoint_probe)
5866 (create_exception_master_breakpoint_hook): Factor out
5867 of ...
5868 (create_exception_master_breakpoint): ... here. Only try to install
5869 the master exception breakpoint in objfile.debug using the
5870 _Unwind_DebugHook method, if the install using probes in objfile
5871 failed.
5872
e3436813
AB
58732021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * f-lang.c (fortran_value_subarray): Call value_from_component.
5876
e904f56d
MF
58772021-01-07 Mike Frysinger <vapier@gentoo.org>
5878
5879 * remote-sim.c: Include memory-map.h.
5880 (gdbsim_target): Define memory_map override.
5881 (gdbsim_target::memory_map): Define.
5882
959d6a67
TT
58832021-01-07 Tom Tromey <tromey@adacore.com>
5884
5885 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5886
d4813f10
TT
58872021-01-07 Tom Tromey <tromey@adacore.com>
5888
5889 * ada-lang.c (add_component_interval): Start loop using vector's
5890 updated size.
5891
b49180ac
TT
58922021-01-06 Tom Tromey <tromey@adacore.com>
5893
5894 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5895 Do not cast result.
5896 * valarith.c (fixed_point_binop): Handle multiplication
5897 and division specially.
5898 * valops.c (value_to_gdb_mpq): New function.
5899 (value_cast_to_fixed_point): Use it.
5900
55195361
HD
59012021-01-05 Hannes Domani <ssbssa@yahoo.de>
5902
5903 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5904 Call wnoutrefresh instead of tui_win_info::refresh_window.
5905
1b6d4bb2
HD
59062021-01-05 Hannes Domani <ssbssa@yahoo.de>
5907
5908 * tui/tui-source.c (tui_source_window::show_line_number):
5909 Redraw second space after line number.
5910
b5ff370e
HD
59112021-01-05 Hannes Domani <ssbssa@yahoo.de>
5912
5913 PR tui/26927
5914 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5915 Fix source pad size in prefresh.
5916 (tui_source_window_base::show_source_content): Grow source pad
5917 if necessary.
5918
c68ea49f
MF
59192021-01-04 Mike Frysinger <vapier@gentoo.org>
5920
5921 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5922 (bfin_frame_align): Use align_down.
5923
e4ad960a
TV
59242021-01-04 Tom de Vries <tdevries@suse.de>
5925
5926 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5927 terminators that do not terminate anything.
5928
3ec3145c
SM
59292021-01-04 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * debug.c (debug_print_depth): New.
5932 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5933 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5934 * infrun.c (start_step_over): Use
5935 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5936 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5937 INFRUN_SCOPED_DEBUG_START_END.
5938 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5939
e71daf80
SM
59402021-01-04 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5943
335709bc
SM
59442021-01-04 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * utils.c (vfprintf_unfiltered): Print timestamp only when
5947 previous debug output ended with a newline.
5948
098caef4
LM
59492021-01-04 Luis Machado <luis.machado@linaro.org>
5950
5951 Update all users of trad_frame_saved_reg to use the new member
5952 functions.
5953
5954 Remote all struct keywords from declarations of trad_frame_saved_reg
5955 types, except on forward declarations.
5956
5957 * aarch64-tdep.c: Update.
5958 * alpha-mdebug-tdep.c: Update.
5959 * alpha-tdep.c: Update.
5960 * arc-tdep.c: Update.
5961 * arm-tdep.c: Update.
5962 * avr-tdep.c: Update.
5963 * cris-tdep.c: Update.
5964 * csky-tdep.c: Update.
5965 * frv-tdep.c: Update.
5966 * hppa-linux-tdep.c: Update.
5967 * hppa-tdep.c: Update.
5968 * hppa-tdep.h: Update.
5969 * lm32-tdep.c: Update.
5970 * m32r-linux-tdep.c: Update.
5971 * m32r-tdep.c: Update.
5972 * m68hc11-tdep.c: Update.
5973 * mips-tdep.c: Update.
5974 * moxie-tdep.c: Update.
5975 * riscv-tdep.c: Update.
5976 * rs6000-tdep.c: Update.
5977 * s390-linux-tdep.c: Update.
5978 * s390-tdep.c: Update.
5979 * score-tdep.c: Update.
5980 * sparc-netbsd-tdep.c: Update.
5981 * sparc-sol2-tdep.c: Update.
5982 * sparc64-fbsd-tdep.c: Update.
5983 * sparc64-netbsd-tdep.c: Update.
5984 * sparc64-obsd-tdep.c: Update.
5985 * sparc64-sol2-tdep.c: Update.
5986 * tilegx-tdep.c: Update.
5987 * v850-tdep.c: Update.
5988 * vax-tdep.c: Update.
5989
5990 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5991 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5992
5993 * trad-frame.c: Update.
5994 Remove TF_REG_* enum.
5995 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5996 a trivially-constructible struct.
5997 (trad_frame_reset_saved_regs): Adjust to use member function.
5998 (trad_frame_value_p): Likewise.
5999 (trad_frame_addr_p): Likewise.
6000 (trad_frame_realreg_p): Likewise.
6001 (trad_frame_value_bytes_p): Likewise.
6002 (trad_frame_set_value): Likewise.
6003 (trad_frame_set_realreg): Likewise.
6004 (trad_frame_set_addr): Likewise.
6005 (trad_frame_set_unknown): Likewise.
6006 (trad_frame_set_value_bytes): Likewise.
6007 (trad_frame_get_prev_register): Likewise.
6008 * trad-frame.h: Update.
6009 (trad_frame_saved_reg_kind): New enum.
6010 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6011 <m_kind, m_reg>: New member fields.
6012 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6013 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6014 <is_addr, is_unknown, is_value_bytes>: New member functions.
6015
9898e882
SM
60162021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6017
6018 * target-float.c: Fix typos.
6019
b66b4e65
HD
60202021-01-02 Hannes Domani <ssbssa@yahoo.de>
6021
6022 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6023
b5b5650a
JB
60242021-01-01 Joel Brobecker <brobecker@adacore.com>
6025
6026 * gdbarch.sh: Update copyright year range.
6027
3666a048
JB
60282021-01-01 Joel Brobecker <brobecker@adacore.com>
6029
6030 Update copyright year range in copyright header of all GDB files.
6031
ff7e39b6
JB
60322021-01-01 Joel Brobecker <brobecker@adacore.com>
6033
6034 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6035 to the list of directories to update.
6036
2b47c078
JB
60372021-01-01 Joel Brobecker <brobecker@adacore.com>
6038
6039 * top.c (print_gdb_version): Update copyright year.
6040
9e5e03df 60412021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6042
476923f1 6043 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6044
476923f1 6045For older changes see ChangeLog-2020.
c906108c
SS
6046\f
6047Local Variables:
6048mode: change-log
6049left-margin: 8
6050fill-column: 74
6051version-control: never
57da7796 6052coding: utf-8
c906108c 6053End:
This page took 2.812334 seconds and 4 git commands to generate.