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