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