]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add comment regarding include order of <sys/ptrace.h> and <asm/ptrace.h>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0f977b77
KB
12021-02-24 Kevin Buettner <kevinb@redhat.com>
2
3 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5
dffdd8b5
SM
62021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7
8 PR gdb/26861
9 * target.c (target_mourn_inferior): Only compare pids in
10 target_mourn_inferior.
11
64d38fdd
JM
122021-02-25 Jan Matyas <jmatyas@codasip.com>
13
14 PR gdb/26819
15 * remote.c (remote_target::start_remote): Ensure the single
16 thread, automatically added for remote targets without the
17 concept of threading, is initially in set to the "resumed"
18 state.
19 * remote.c (remote_target::add_current_inferior_and_thread):
20 Add return value - return the main thread.
21
2450ad54
JV
222021-02-25 Jan Vrany <jan.vrany@labware.com>
23
24 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
25 (mi_tsv_created): Likewise.
26 (mi_tsv_deleted): Likewise.
27
30c80d88
TV
282021-02-25 Tom de Vries <tdevries@suse.de>
29
30 PR symtab/27354
31 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
32 section_kind for &dwo_file->sections.info.
33
68337b8b
AB
342021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 PR fortran/26155
37 * f-lang.c (fortran_argument_convert): Delete declaration.
38 (fortran_prepare_argument): New function.
39 (evaluate_subexp_f): Move logic to new function
40 fortran_prepare_argument.
41
faeb9f13
AB
422021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * f-exp.y (f77_keywords): Add 'associated'.
45 * f-lang.c (fortran_associated): New function.
46 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
47 (operator_length_f): Likewise.
48 (print_unop_or_binop_subexp_f): New function.
49 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
50 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
51 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
52 (operator_check_f): Likewise.
53 * std-operator.def: Add FORTRAN_ASSOCIATED.
54
170f4b23
AB
552021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * f-exp.y (fortran_operators): Add ".xor.".
58
aa659cfa
TV
592021-02-24 Tom de Vries <tdevries@suse.de>
60
61 PR symtab/27336
62 * dwarf2/attribute.c (attribute::form_is_signed): New function
63 factored out of ...
64 * dwarf2/attribute.h (attribute::as_signed): ... here.
65 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
66 (attribute::form_is_signed): Declare.
67 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
68 for DW_AT_decl_file.
69
268c77c1
KB
702021-02-24 Kevin Buettner <kevinb@redhat.com>
71
72 * nat/aarch64-linux-hw-point.c: Add comment regarding include
73 order for <sys/ptrace.h> and <asm/ptrace.h>.
74
665af52e
KB
752021-02-24 Kevin Buettner <kevinb@redhat.com>
76
77 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
78 <sys/ptrace.h>.
79
dd80d750
AB
802021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * exec.c (set_section_command): Move variable declarations into
83 the function body, and use std::string instead of a fixed size
84 buffer.
85
336aa7b7
AB
862021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * exec.c (exec_target::get_section_table): Delete member function.
89 (section_table_read_available_memory): Use current_top_target, not
90 just the exec_ops target.
91 * target-delegates.c: Regenerate.
92 * target.c (default_get_section_table): New function.
93 * target.h (target_ops::get_section_table): Change default
94 behaviour to call default_get_section_table.
95 (default_get_section_table): Declare.
96
02f7d26b
AB
972021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * exec.c (exec_target::close): Call new clear_target_sections
100 function.
101 (program_space::add_target_sections): Update name of member
102 variable.
103 (program_space::add_target_sections): Update name of member
104 variable.
105 (program_space::remove_target_sections): Likewise.
106 (exec_one_fork): Use new target_sections member function.
107 (exec_target::get_section_table): Likewise.
108 (exec_target::files_info): Likewise.
109 (set_section_command): Likewise.
110 (exec_set_section_address): Likewise.
111 (exec_target::has_memory): Use new target_sections member
112 function.
113 * progspace.h (program_space::clear_target_sections): New member
114 function.
115 (program_space::target_sections): Rename member variable to
116 m_target_sections, replace with a new member function.
117 (program_space::m_target_sections): New member variable.
118 * solib-dsbt.c (scan_dyntag): Use new member function.
119 * solib-svr4.c (scan_dyntag): Likewise.
120
19cf757a
AB
1212021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
124 return type const.
125 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
126 (section_table_read_available_memory): Make local const.
127 (exec_target::xfer_partial): Make local const.
128 (print_section_info): Make parameter const.
129 * gdb/exec.h (print_section_info): Likewise.
130 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
131 const.
132 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
133 Likewise.
134 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
135 Likewise.
136 * gdb/s390-tdep.c (s390_load): Likewise.
137 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
138 * gdb/solib-svr4.c (scan_dyntag): Likewise.
139 * gdb/target-debug.h (target_debug_print_target_section_table_p):
140 Rename to...
141 (target_debug_print_const_target_section_table_p): ...this.
142 * gdb/target-delegates.c: Regenerate.
143 * gdb/target.c (target_get_section_table): Make return type const.
144 (target_section_by_addr): Likewise. Also make some locals const.
145 (memory_xfer_partial_1): Make some locals const.
146 * gdb/target.h (struct target_ops) <get_section_table>: Make
147 return type const.
148 (target_section_by_addr): Likewise.
149 (target_get_section_table): Likewise.
150
02a79309
AB
1512021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * NEWS: Mention new 'maint info target-sections' command.
154 * maint.c (maintenance_info_target_sections): New function.
155 (_initialize_maint_cmds): Register new command.
156
895b7b4e
AB
1572021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
160 (riscv_features_from_bfd): ...this. Change parameter type to
161 'bfd*', and update as required.
162 (riscv_find_default_target_description): Update call to
163 riscv_features_from_bfd. Select a default xlen based on
164 info.bfd_arch_info.
165 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
166
bc3c0632
AB
1672021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
168
169 * eval.c (evaluate_subexp_standard): Call value_ind for points to
170 dynamic types in UNOP_IND.
171
08ac5771
SM
1722021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
173
174 PR gdb/26828
175 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
176 Instantiate queue.
177 (~dwarf2_queue_guard): Clear queue.
178 (queue_comp_unit): Assert that queue is
179 instantiated.
180 (process_queue): Adjust.
181 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
182
616c069a
SM
1832021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
184
185 PR gdb/26828
186 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
187 to decide whether or not to enqueue it for expansion.
188 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
189 after calling maybe_queue_comp_unit.
190
897608ed
SM
1912021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * linux-nat.c (linux_nat_filter_event): Return void.
194
15908a11
TT
1952021-02-22 Tom Tromey <tromey@adacore.com>
196
197 * solib-svr4.c (enable_break): Update.
198 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
199 type.
200 (target_bfd_reopen): Change parameter type.
201 * bfd-target.h (target_bfd_reopen): Change parameter type.
202
f53fc427
SM
2032021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * thread.c (add_thread_silent): Add assert.
206 (find_thread_ptid): Add assert.
207
de146e19
SM
2082021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
209
210 PR gdb/27435
211 * inf-ptrace.c (struct target_unpusher): Move to target.h.
212 (target_unpush_up): Likewise.
213 * procfs.c (procfs_target::attach): Push target early. Use
214 target_unpush_up to unpush target in case of error.
215 * target.h (struct target_unpusher): Move here.
216 (target_unpush_up): Likewise.
217
8488c357
KB
2182021-02-19 Kevin Buettner <kevinb@redhat.com>
219
220 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
221 (which in turn includes <gnulib/config.h>) before include
222 of <signal.h>.
223
5a9f5403
NC
2242021-02-19 Nelson Chu <nelson.chu@sifive.com>
225
226 PR 27158
227 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
228 (decode_j_type_insn): Likewise.
229 (decode_cj_type_insn): Likewise.
230 (decode_b_type_insn): Likewise.
231 (decode): Likewise.
232
26f53cd3
TT
2332021-02-18 Tom Tromey <tom@tromey.com>
234
235 * expression.h (struct expression) <evaluate>: Declare method.
236 * eval.c (evaluate_subexp): Simplify.
237 (expression::evaluate): New method.
238 (evaluate_expression, evaluate_type): Use expression::evaluate.
239
6a780b67
KB
2402021-02-17 Kevin Buettner <kevinb@redhat.com>
241
242 * ada-lang.c (ada_fold_name): Check for non-empty string prior
243 to accessing it.
244 (ada_lookup_name_info): Likewise.
245
adeab0c5
MF
2462021-02-13 Mike Frysinger <vapier@gentoo.org>
247
248 * aclocal.m4: Regenerate.
249
089436f7
TV
2502021-02-12 Tom de Vries <tdevries@suse.de>
251
252 PR threads/26228
253 * linux-nat.c (lin_thread_get_thread_signals): Remove.
254 (lin_thread_signals): New static var.
255 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
256 New function.
257 * linux-nat.h (lin_thread_get_thread_signals): Remove.
258 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
259 Declare.
260 * linux-thread-db.c (check_thread_signals): Use
261 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
262
96df3e28
AB
2632021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
264
265 * f-exp.y (f77_keywords): Add allocated.
266 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
267 (operator_length_f): Likewise.
268 (print_subexp_f): Likewise.
269 (dump_subexp_body_f): Likewise.
270 (operator_check_f): Likewise.
271 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
272
05f68f52
TV
2732021-02-11 Tom de Vries <tdevries@suse.de>
274
275 PR symtab/27353
276 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
277 Return true for DW_FORM_strx.
278
b260f8d6
TT
2792021-02-11 Tom Tromey <tromey@adacore.com>
280
281 PR gdb/27383:
282 * parse.c (write_exp_symbol_reference): Write sym.block.
283
bf3386f0
AB
2842021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * NEWS: Mention changes to 'maint info sections'.
287 * maint.c (match_substring): Return a bool, fix whitespace issue.
288 (struct single_bfd_flag_info): New struct.
289 (bfd_flag_info): New static global.
290 (match_bfd_flags): Return a bool, use bfd_flag_info.
291 (print_bfd_flags): Use bfd_flag_info.
292 (maint_print_section_info): Delete trailing whitespace.
293 (struct maint_info_sections_opts): New struct.
294 (maint_info_sections_option_defs): New static global.
295 (maint_info_sections_completer): New function.
296 (maintenance_info_sections): Use option parsing mechanism.
297 (_initialize_maint_cmds): Update command help text for 'maint info
298 sections' and register a command completer.
299
4790db14
AB
3002021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
303 functionality merged into...
304 (maint_print_all_sections): ...this new function.
305 (maintenance_info_sections): Make use of maint_print_all_sections,
306 allow all objects to be printed even where there's no executable.
307
1db66e34
AB
3082021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * breakpoint.c (resolve_sal_pc): Make use of
311 bound_minimal_symbol::obj_section.
312 * maint.c (maintenance_translate_address): Likewise.
313 * minsyms.c (minimal_symbol_upper_bound): Likewise.
314 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
315 member function.
316 * printcmd.c (info_address_command): Make use of
317 bound_minimal_symbol::obj_section.
318
18b8df43
AM
3192021-02-11 Alan Modra <amodra@gmail.com>
320
321 * arm-symbian-tdep.c: Delete.
322 * NEWS: Mention arm-symbian removal.
323 * Makefile.in: Remove arm-symbian-tdep entries.
324 * configure.tgt: Remove arm*-*-symbianelf*.
325 * doc/gdb.texinfo: Remove mention of SymbianOS.
326 * osabi.c (gdb_osabi_names): Remove "Symbian".
327 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
328 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
329 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
330 handling.
331 * testsuite/gdb.base/dup-sect.exp: Likewise.
332 * testsuite/gdb.base/long_long.exp: Likewise.
333 * testsuite/gdb.base/solib-weak.exp: Likewise.
334 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
335 * testsuite/gdb.python/py-section-script.exp: Likewise.
336 * testsuite/lib/dwarf.exp: Likewise.
337 * testsuite/lib/gdb.exp: Likewise.
338
e92c8eb8
AB
3392021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
342 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
343 (one_or_two_args): New pattern.
344 (f77_keywords): Add lbound and ubound.
345 * f-lang.c (fortran_bounds_all_dims): New function.
346 (fortran_bounds_for_dimension): New function.
347 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
348 (operator_length_f): Likewise.
349 (print_subexp_f): Likewise.
350 (dump_subexp_body_f): Likewise.
351 (operator_check_f): Likewise.
352 * std-operator.def (FORTRAN_LBOUND): Define.
353 (FORTRAN_UBOUND): Define.
354
a52d653e
AB
3552021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
358 and set_section_index member functions where appropriate.
359 * coffread.c (coff_symtab_read): Likewise.
360 (process_coff_symbol): Likewise.
361 * ctfread.c (set_symbol_address): Likewise.
362 * dwarf2/read.c (add_partial_symbol): Likewise.
363 (var_decode_location): Likewise.
364 * language.c: Likewise.
365 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
366 (compact_minimal_symbols): Likewise.
367 (minimal_symbol_upper_bound): Likewise.
368 * objfiles.c (relocate_one_symbol): Likewise.
369 * psympriv.h (partial_symbol::obj_section): Likewise.
370 (partial_symbol::address): Likewise.
371 * psymtab.c (partial_symtab::add_psymbol): Likewise.
372 * stabsread.c (scan_file_globals): Likewise.
373 * symmisc.c (dump_msymbols): Likewise.
374 * symtab.c (general_symbol_info::obj_section): Likewise.
375 (fixup_section): Likewise.
376 (get_msymbol_address): Likewise.
377 * symtab.h (general_symbol_info::section): Rename to...
378 (general_symbol_info::m_section): ...this.
379 (general_symbol_info::set_section_index): New member function.
380 (general_symbol_info::section_index): Likewise.
381 (SYMBOL_SECTION): Delete.
382 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
383 set_section_index member functions where appropriate.
384 (MSYMBOL_SECTION): Delete.
385 (symbol::symbol): Update to initialize 'm_section'.
386 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
387 (process_xcoff_symbol): Likewise.
388
ebbc3a7d
AB
3892021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
392 MSYMBOL_OBJ_SECTION.
393 * findvar.c (language_defn::read_var_value): Likewise.
394 * infcmd.c (jump_command): Likewise.
395 * linespec.c (minsym_found): Likewise.
396 * maint.c (maintenance_translate_address): Likewise.
397 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
398 (minimal_symbol_upper_bound): Likewise.
399 * parse.c (find_minsym_type_and_address): Likewise.
400 (operator_check_standard): Likewise.
401 * printcmd.c (info_address_command): Likewise.
402 * symmisc.c (dump_msymbols): Likewise.
403 (print_symbol): Likewise.
404 * symtab.c (general_symbol_info::obj_section): Define new
405 function.
406 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
407 (find_pc_sect_compunit_symtab): Likewise.
408 (find_function_start_sal): Likewise.
409 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
410 MSYMBOL_OBJ_SECTION.
411 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
412 function.
413 (SYMBOL_OBJ_SECTION): Delete.
414 (MSYMBOL_OBJ_SECTION): Delete.
415
9bb305b3
TT
4162021-02-09 Tom Tromey <tom@tromey.com>
417
418 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
419
cf2b2075
TV
4202021-02-09 Tom de Vries <tdevries@suse.de>
421
422 PR symtab/27341
423 * dwarf2/read.c (read_array_type): Return NULL when not being able to
424 construct an array type. Add assert to ensure that element_type is
425 not being modified.
426
03642b71
AB
4272021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
430 (gcore_collect_regset_section_cb): Delete.
431 (gcore_collect_thread_registers): Delete.
432 (gcore_build_thread_register_notes): Delete.
433 (gcore_find_signalled_thread): Delete.
434 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
435 'gdbarch' and 'thread_info' declarations.
436 (gcore_build_thread_register_notes): Delete declaration.
437 (gcore_find_signalled_thread): Likewise.
438 * fbsd-tdep.c: Remove 'gcore.h' include.
439 (struct fbsd_collect_regset_section_cb_data): New struct.
440 (fbsd_collect_regset_section_cb): New function.
441 (fbsd_collect_thread_registers): New function.
442 (struct fbsd_corefile_thread_data): New struct.
443 (fbsd_corefile_thread): New function.
444 (fbsd_make_corefile_notes): Call FreeBSD specific code.
445 * linux-tdep.c: Remove 'gcore.h' include.
446 (struct linux_collect_regset_section_cb_data): New struct.
447 (linux_collect_regset_section_cb): New function.
448 (linux_collect_thread_registers): New function.
449 (linux_corefile_thread): Call Linux specific code.
450 (find_signalled_thread): New function.
451 (linux_make_corefile_notes): Call find_signalled_thread.
452
f73e424f
TT
4532021-02-09 Tom Tromey <tromey@adacore.com>
454
455 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
456 not_lval value.
457 * value.c (value_contents_copy_raw): Now static.
458 * value.h (value_contents_copy_raw): Don't declare.
459
a4f0544b
TT
4602021-02-09 Tom Tromey <tromey@adacore.com>
461
462 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
463 fields.
464
9b3e4b5d
SV
4652021-02-08 Shahab Vahedi <shahab@synopsys.com>
466
467 PR tdep/27369
468 * arc-linux-tdep.c (handle_atomic_sequence): New.
469 (arc_linux_software_single_step): Call handle_atomic_sequence().
470
29db1eb3
AB
4712021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
472
473 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
474 function.
475 (REQUIRE_WINDOW): Call is_valid member function.
476 (REQUIRE_WINDOW_FOR_SETTER): New define.
477 (gdbpy_tui_is_valid): Call is_valid member function.
478 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
479 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
480 tui_active too.
481 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
482 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
483 the function.
484
e0c23e11
AB
4852021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
488 for the title is not nullptr.
489
1cf23996
AB
4902021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * tui-layout.c (saved_tui_windows): Delete.
493 (tui_apply_current_layout): Don't make use of saved_tui_windows,
494 call new get_windows member function instead.
495 (tui_get_window_by_name): Check in tui_windows.
496 (tui_layout_window::apply): Don't add to tui_windows.
497 * tui-layout.h (tui_layout_base::get_windows): New member function.
498 (tui_layout_window::get_windows): Likewise.
499 (tui_layout_split::get_windows): Likewise.
500
a53a2657
AB
5012021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
504 of the window objects.
505
2708dbbd
AB
5062021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * python/python.c (gdbpy_print_stack): Reformat an error message.
509
cd074e04
AB
5102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * tui/tui-interp.c (tui_command_line_handler): New function.
513 (tui_interp::resume): Register tui_command_line_handler as the
514 input_handler.
515 * tui/tui-io.c (tui_inject_newline_into_command_window): New
516 function.
517 (tui_getc_1): Delete handling of '\n' and '\r'.
518 * tui-io.h (tui_inject_newline_into_command_window): Declare.
519
4cf28e91
HD
5202021-02-07 Hannes Domani <ssbssa@yahoo.de>
521
522 * tui/tui-regs.c (tui_data_window::display_registers_from):
523 Mark invisible register sub windows.
524 (tui_data_window::check_register_values): Ignore invisible
525 register sub windows.
526
3537bc23
HD
5272021-02-07 Hannes Domani <ssbssa@yahoo.de>
528
529 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
530 n_spaces with a negative value.
531
5fc2d6aa
HD
5322021-02-07 Hannes Domani <ssbssa@yahoo.de>
533
534 * tui/tui-regs.c (tui_data_window::display_registers_from):
535 Add refresh_window call.
536
83962f83
HD
5372021-02-07 Hannes Domani <ssbssa@yahoo.de>
538
539 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
540
0110ec82
SM
5412021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
542
543 * symmisc.c (std_in, std_out, std_err): Remove.
544 (_initialize_symmisc): Don't set std_in, std_out and std_err.
545
7c6944ab
TV
5462021-02-05 Tom de Vries <tdevries@suse.de>
547
548 PR breakpoints/27330
549 * breakpoint.c (create_exception_master_breakpoint): Handle case that
550 glibc object file has debug info.
551
e77b0004
TV
5522021-02-05 Tom de Vries <tdevries@suse.de>
553
554 PR symtab/27333
555 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
556
0e857c82
TV
5572021-02-05 Tom de Vries <tdevries@suse.de>
558
559 PR breakpoints/27313
560 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
561 syscall numbers.
562
bdfea17e
TT
5632021-02-05 Tom Tromey <tom@tromey.com>
564
565 * compile/compile-c-support.c (get_compile_context)
566 (c_get_compile_context, cplus_get_compile_context): Change return
567 type.
568 * language.c (language_defn::get_compile_instance): New method.
569 * language.h (language_defn::get_compile_instance): Change return
570 type. No longer inline.
571 * c-lang.c (c_language::get_compile_instance): Change return type.
572 (cplus_language::get_compile_instance): Change return type.
573 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
574 Change return type.
575 * compile/compile.c (compile_to_object): Update.
576
1b30f421
TT
5772021-02-05 Tom Tromey <tom@tromey.com>
578
579 * parser-defs.h (write_exp_symbol_reference): Declare.
580 * parse.c (write_exp_symbol_reference): New function.
581 * p-exp.y (variable): Use write_exp_symbol_reference.
582 * m2-exp.y (variable): Use write_exp_symbol_reference.
583 * f-exp.y (variable): Use write_exp_symbol_reference.
584 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
585 * c-exp.y (variable): Use write_exp_symbol_reference.
586
ae710496
TV
5872021-02-05 Tom de Vries <tdevries@suse.de>
588
589 PR exp/27265
590 * valarith.c (complex_binop): Throw an error if complex type can't
591 be created.
592
d3b54e63
TV
5932021-02-05 Tom de Vries <tdevries@suse.de>
594
595 PR symtab/27307
596 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
597 return.
598
fc9a13fb
TV
5992021-02-05 Tom de Vries <tdevries@suse.de>
600
601 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
602
04b4939b
MF
6032021-02-04 Mike Frysinger <vapier@gentoo.org>
604
605 * configure.tgt (riscv*-*-*): Set gdb_sim.
606
6ff267e1
SM
6072021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
608
609 * target.c (target_is_non_stop_p): Return bool.
610 * target.h (target_is_non_stop_p): Return bool.
611
fdbc5215
SM
6122021-02-04 Simon Marchi <simon.marchi@efficios.com>
613
614 * record-full.c (record_full_async_inferior_event_handler):
615 Don't clear async event handler.
616 (record_full_base_target::wait): Clear async event handler at
617 beginning.
618
85d3ad8e
SM
6192021-02-04 Simon Marchi <simon.marchi@efficios.com>
620
621 * record-btrace.c (record_btrace_handle_async_inferior_event):
622 Don't clear async event handler.
623 (record_btrace_target::wait): Clear async event handler at
624 beginning.
625
baa8575b
SM
6262021-02-04 Simon Marchi <simon.marchi@efficios.com>
627
628 * remote.c (remote_target::wait): Clear async event handler at
629 beginning, mark if needed at the end.
630 (remote_async_inferior_event_handler): Don't set or clear async
631 event handler.
632
6b36ddeb
SM
6332021-02-04 Simon Marchi <simon.marchi@efficios.com>
634
635 * async-event.h (async_event_handler_func): Add documentation.
636 * async-event.c (check_async_event_handlers): Don't clear
637 async_event_handler ready flag.
638 * infrun.c (infrun_async_inferior_event_handler): Clear ready
639 flag.
640 * record-btrace.c (record_btrace_handle_async_inferior_event):
641 Likewise.
642 * record-full.c (record_full_async_inferior_event_handler):
643 Likewise.
644 * remote-notif.c (remote_async_get_pending_events_handler):
645 Likewise.
646 * remote.c (remote_async_inferior_event_handler): Likewise.
647
72d383bb
SM
6482021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
649
650 * infrun.c (handle_inferior_event): Move stop_soon variable to
651 inner scope.
652
408f6686
PA
6532021-02-03 Pedro Alves <pedro@palves.net>
654
655 * infcmd.c (detach_command): Hold strong reference to target, and
656 if all-stop on entry, restart threads on exit.
657 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
658 (restart_stepped_thread): ... this new function. Also handle
659 trap_expected.
660 (restart_after_all_stop_detach): New function.
661 * infrun.h (restart_after_all_stop_detach): Declare.
662
ac7d717c
PA
6632021-02-03 Pedro Alves <pedro@palves.net>
664
665 * infrun.c (struct step_over_info): Initialize fields.
666 (prepare_for_detach): Handle ongoing in-line step over.
667
e87f0fe8
PA
6682021-02-03 Pedro Alves <pedro@palves.net>
669
670 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
671 here...
672 * remote.c (remote_target::remote_detach_1): ... and here ...
673 * target.c (target_detach): ... instead of here.
674 * target.h (target_ops::detach): Add comment.
675
8ff53139
PA
6762021-02-03 Pedro Alves <pedro@palves.net>
677
678 * infrun.c (struct wait_one_event): Move higher up.
679 (prepare_for_detach): Abort in-progress displaced steps instead of
680 letting them complete.
681 (handle_one): If the inferior is detaching, don't add the thread
682 back to the global step-over chain.
683 (restart_threads): Don't restart threads if detaching.
684 (handle_signal_stop): Remove inferior::detaching reference.
685
91475068
PA
6862021-02-03 Pedro Alves <pedro@palves.net>
687
688 * infrun.c (prepare_for_detach): Don't release scoped_restore
689 before returning.
690
d758e62c
PA
6912021-02-03 Pedro Alves <pedro@palves.net>
692
693 * infrun.c (handle_one): New function, factored out from ...
694 (stop_all_threads): ... here.
695
b0083dd7
PA
6962021-02-03 Pedro Alves <pedro@palves.net>
697
698 * remote.c (remote_notif_stop_ack): Don't error out on
699 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
700 (remote_target::discard_pending_stop_replies): Don't delete
701 in-flight notification; instead, clear its contents.
702
621cc310
PA
7032021-02-03 Pedro Alves <pedro@palves.net>
704
705 * remote.c (extended_remote_target::attach): Set target async in
706 the target-non-stop path too.
707
2ab76a18
PA
7082021-02-03 Pedro Alves <pedro@palves.net>
709
710 PR gdb/27055
711 * infrun.c (handle_signal_stop): Move main context_switch call
712 earlier, before STOP_QUIETLY_NO_SIGSTOP.
713
2e3773ff
LS
7142021-02-02 Lancelot SIX <lsix@lancelotsix.com>
715
716 * NEWS (Changed commands): Add entry for the behavior change of
717 the inferior command.
718 * inferior.c (inferior_command): When no argument is given to the
719 inferior command, display info about the currently selected
720 inferior.
721
e57933dc
SM
7222021-02-02 Simon Marchi <simon.marchi@efficios.com>
723
724 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
725 a sect_offset.
726 (read_attribute_reprocess): Adjust.
727
2b0c7f41
SM
7282021-02-02 Simon Marchi <simon.marchi@efficios.com>
729
730 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
731 <gnu_ranges_base>: ... this...
732 <rnglists_base>: ... and this.
733 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
734 <gnu_ranges_base>: ... this...
735 <rnglists_base>: ... and this.
736 (read_cutu_die_from_dwo): Adjust
737 (dwarf2_get_pc_bounds): Adjust
738 (dwarf2_record_block_ranges): Adjust.
739 (read_full_die_1): Adjust
740 (partial_die_info::read): Adjust.
741 (read_rnglist_index): Adjust.
742
a1c40103
SM
7432021-02-02 Simon Marchi <simon.marchi@efficios.com>
744
745 PR gdb/26813
746 * dwarf2/read.c (read_loclists_rnglists_header): Add
747 header_offset parameter and use it.
748 (read_loclist_index): Read header of the current contribution,
749 not the one at the beginning of the section.
750 (read_rnglist_index): Likewise.
751
b1829e1b
SM
7522021-02-02 Simon Marchi <simon.marchi@efficios.com>
753
754 PR gdb/26813
755 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
756 requires_reprocessing flag.
757 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
758 DW_FORM_loclistx.
759 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
760 and DW_FORM_loclistx.
761 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
762 instead of set_address for DW_FORM_loclistx and
763 DW_FORM_rnglistx.
764
0c800c6e
SM
7652021-02-02 Simon Marchi <simon.marchi@efficios.com>
766
767 * dwarf2/read.c (read_loclist_index): Remove bound check for
768 start of offset.
769 (read_rnglist_index): Likewise.
770
05787bad
SM
7712021-02-02 Simon Marchi <simon.marchi@efficios.com>
772
773 * dwarf2/read.c (read_loclist_index): Add bound check for the end
774 of the offset.
775
5e4d9bbc
SM
7762021-02-02 Simon Marchi <simon.marchi@efficios.com>
777
778 * dwarf2/read.c (read_rnglist_index): Fix bound check.
779
a0c1eeba
SM
7802021-02-02 Simon Marchi <simon.marchi@efficios.com>
781
782 * dwarf2/read.c (read_loclist_index): Change complaints into
783 errors.
784
2bd3e4b8
TV
7852021-02-02 Tom de Vries <tdevries@suse.de>
786
787 PR symtab/24620
788 * dwarf2/index-write.c (write_one_signatured_type): Skip if
789 psymtab == nullptr.
790
82a1fd3a
AB
7912021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
792
793 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
794 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
795 here from linux-tdep.c and given a new name. Minor cleanups.
796 (gcore_collect_regset_section_cb): Likewise.
797 (gcore_collect_thread_registers): Likewise.
798 (gcore_build_thread_register_notes): Likewise.
799 (gcore_find_signalled_thread): Likewise.
800 * gcore.h (gcore_build_thread_register_notes): Declare.
801 (gcore_find_signalled_thread): Declare.
802 * fbsd-tdep.c: Add 'gcore.h' include.
803 (struct fbsd_collect_regset_section_cb_data): Delete.
804 (fbsd_collect_regset_section_cb): Delete.
805 (fbsd_collect_thread_registers): Delete.
806 (struct fbsd_corefile_thread_data): Delete.
807 (fbsd_corefile_thread): Delete.
808 (fbsd_make_corefile_notes): Call
809 gcore_build_thread_register_notes instead of the now deleted
810 FreeBSD code.
811 * linux-tdep.c: Add 'gcore.h' include.
812 (struct linux_collect_regset_section_cb_data): Delete.
813 (linux_collect_regset_section_cb): Delete.
814 (linux_collect_thread_registers): Delete.
815 (linux_corefile_thread): Call
816 gcore_build_thread_register_notes.
817 (find_signalled_thread): Delete.
818 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
819
ebde6f2d
TV
8202021-01-29 Tom de Vries <tdevries@suse.de>
821
822 PR breakpoints/26063
823 * infrun.c (process_event_stop_test): Reset
824 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
825 changed.
826
0f93c3a2
AB
8272021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
830 assert. Extend the header comment.
831
f237f998
AB
8322021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
833
834 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
835 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
836 * tui/tui-data.h (TUI_STATUS_WIN): Define.
837 (tui_locator_win_info_ptr): Delete declaration.
838 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
839 (tui_disasm_window::set_contents): Fetch state from tui_location
840 global.
841 (tui_get_begin_asm_address): Likewise.
842 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
843 for locator window.
844 (get_locator_window): Delete.
845 (initialize_known_windows): Treat locator window just like all the
846 rest.
847 * tui/tui-source.c: Add 'tui/tui-location.h' include.
848 (tui_source_window::set_contents): Fetch state from tui_location
849 global.
850 (tui_source_window::showing_source_p): Likewise.
851 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
852 (_locator): Delete.
853 (tui_locator_win_info_ptr): Delete.
854 (tui_locator_window::make_status_line): Fetch state from
855 tui_location global.
856 (tui_locator_window::rerender): Remove check of 'handle',
857 reindent function body.
858 (tui_locator_window::set_locator_fullname): Delete.
859 (tui_locator_window::set_locator_info): Delete.
860 (tui_update_locator_fullname): Delete.
861 (tui_show_frame_info): Likewise.
862 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
863 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
864 tui/tui-location.h and renamed to
865 tui_location_tracker::set_location.
866 (tui_locator_window::set_locator_fullname): Moved to
867 tui/tui-location.h and renamed to
868 tui_location_tracker::set_fullname.
869 (tui_locator_window::full_name): Delete.
870 (tui_locator_window::proc_name): Delete.
871 (tui_locator_window::line_no): Delete.
872 (tui_locator_window::addr): Delete.
873 (tui_locator_window::gdbarch): Delete.
874 (tui_update_locator_fullname): Delete declaration.
875 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
876 for locator window.
877 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
878 (tui_display_main): Call function on tui_location directly.
879 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
880 * tui/tui-location.c: New file.
881 * tui/tui-location.h: New file.
882
8ee511af
SM
8832021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
884
885 * gdbtypes.h (get_type_arch): Rename to...
886 (struct type) <arch>: ... this, update all users.
887
6ac37371
SM
8882021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
889
890 * gdbtypes.h (struct type) <arch>: Rename to...
891 <arch_owner>: ... this, update all users.
892 <objfile>: Rename to...
893 <objfile_owner>: ... this, update all users.
894
24cf6389
AB
8952021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * gdbcmd.h (execute_command_to_string): Update comment.
898 * top.c (execute_command_to_string): Update header comment.
899
2a7f6487
TV
9002021-01-28 Tom de Vries <tdevries@suse.de>
901
902 PR breakpoints/27205
903 * breakpoint.c (create_longjmp_master_breakpoint_probe)
904 (create_longjmp_master_breakpoint_names): New function, factored out
905 of ...
906 (create_longjmp_master_breakpoint): ... here. Only try to install
907 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
908 breakpoint in libc.so failed.
909
59b59f08
LS
9102021-01-27 Lancelot SIX <lsix@lancelotsix.com>
911
912 PR gdb/27133
913 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
914 unique_ptr is released when the wrapped pointer is kept for later
915 use.
916
807f647c
MM
9172021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
918
919 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
920 BLR and BR instructions.
921 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
922 (enum aarch64_masks): New.
923
4ef367bf
TT
9242021-01-26 Tom Tromey <tromey@adacore.com>
925
926 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
927 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
928 (windows_init_thread_list, windows_nat::handle_load_dll)
929 (windows_nat::handle_unload_dll, windows_nat_target::resume)
930 (windows_nat_target::resume)
931 (windows_nat_target::get_windows_debug_event)
932 (windows_nat_target::interrupt, windows_xfer_memory)
933 (windows_nat_target::close): Update.
934 * nat/windows-nat.c (DEBUG_EVENTS): Use
935 debug_prefixed_printf_cond.
936 (matching_pending_stop, fetch_pending_stop)
937 (continue_last_debug_event): Update.
938
4cb1265b
MS
9392020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
940
941 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
942 elfcore_write_file_note.
943
d0cc52bd
SV
9442021-01-26 Shahab Vahedi <shahab@synopsys.com>
945
946 * arc-tdep.c (arc_add_reggroups): New function.
947 (arc_gdbarch_init): Call arc_add_reggroups.
948
ac3571d9 9492021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
950
951 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
952
9f6c202e
TV
9532021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
954 Simon Marchi <simon.marchi@polymtl.ca>
955 Tom de Vries <tdevries@suse.de>
956
957 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
958 DW_AT_ranges.
959
a625a8c9
TT
9602021-01-25 Tom Tromey <tromey@adacore.com>
961
962 * dwarf2/read.c (get_mpz): New function.
963 (get_dwarf2_rational_constant): Use it.
964
19184910
TT
9652021-01-25 Tom Tromey <tromey@adacore.com>
966
967 * ada-lang.c (resolve_subexp): Handle array context.
968
b10bae18
TT
9692021-01-23 Tom Tromey <tom@tromey.com>
970
971 PR compile/25575
972 * compile/compile-loc2c.c (note_register): New function.
973 (pushf_register_address, pushf_register): Use it.
974
3637a558
TT
9752021-01-23 Tom Tromey <tom@tromey.com>
976
977 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
978 Change type of "registers_used".
979 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
980 * dwarf2/loc.c (dwarf2_compile_property_to_c)
981 (locexpr_generate_c_location, loclist_generate_c_location): Change
982 type of "registers_used".
983 * compile/compile.h (compile_dwarf_expr_to_c)
984 (compile_dwarf_bounds_to_c): Update.
985 * compile/compile-loc2c.c (pushf_register_address)
986 (pushf_register, do_compile_dwarf_expr_to_c)
987 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
988 of "registers_used".
989 * compile/compile-c.h (generate_c_for_variable_locations):
990 Update.
991 * compile/compile-c-symbols.c (generate_vla_size)
992 (generate_c_for_for_one_variable): Change type of
993 "registers_used".
994 (generate_c_for_variable_locations): Return std::vector.
995 * compile/compile-c-support.c (generate_register_struct): Change
996 type of "registers_used".
997 (compute): Update.
998
9f7f6cb8
TT
9992021-01-23 Tom Tromey <tom@tromey.com>
1000
1001 * compile/compile-internal.h (class compile_instance)
1002 <set_arguments>: Change return type.
1003 * compile/compile.c (compile_to_object): Remove call to reset.
1004 (compile_instance::set_arguments): Change return type.
1005
dd5ca05f
SM
10062021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1007
1008 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1009 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1010
d3ee35db
LS
10112021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1012
1013 * Makefile.in (SELFTESTS_SRCS): Add
1014 unittests/gdb_tilde_expand-selftests.c.
1015 * unittests/gdb_tilde_expand-selftests.c: New file.
1016
9d2d8a16
AB
10172021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1018
1019 PR cli/25956
1020 * NEWS: Mention new command.
1021 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1022 (version_style): Define.
1023 (cli_style_option::cli_style_option): Add intensity parameter, and
1024 use as appropriate.
1025 (_initialize_cli_style): Register version style set/show commands.
1026 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1027 (version_style): Declare.
1028 * top.c (print_gdb_version): Use version_stype, and styled_string
1029 to print the GDB version string.
1030
e7b43072
AB
10312021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * utils.c (emit_style_escape): Only emit an escape sequence if the
1034 requested style is different than the current applied style.
1035 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1036 current applied_style.
1037 (fputs_styled): Remove is_default check.
1038 (fputs_styled_unfiltered): Likewise.
1039 (vfprintf_styled_no_gdbfmt): Likewise.
1040
2189c312
SM
10412021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * remote.h (remote_debug_printf): New.
1044 (remote_debug_printf_nofunc): New.
1045 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1046 * remote.c: Use above macros throughout file.
1047
02349803
SM
10482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 * remote.h (remote_debug): Change to bool.
1051 * remote.c (remote_debug): Change to bool.
1052 (_initialize_remote): Adjust.
1053
cda09ec9
SM
10542021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1055
1056 * target.h (remote_debug): Move to...
1057 * remote.h (remote_debug): ... here.
1058 * top.c (remote_debug): Move to...
1059 * remote.c (remote_debug): ... here.
1060 * remote-sim.c: Include remote.h.
1061
baf2b57f
SM
10622021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 * cli/cli-cmds.c (show_remote_debug): Remove.
1065 (show_remote_timeout): Remove.
1066 (_initialize_cli_cmds): Don't register commands.
1067 * remote.c (show_remote_debug): Move here.
1068 (show_remote_timeout): Move here.
1069 (_initialize_remote): Register commands.
1070
344e9841
SM
10712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1072
1073 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
1074 type::objfile method instead.
1075
30625020
SM
10762021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1077
1078 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
1079 use the type::is_objfile_owned method.
1080
5b7d941b
SM
10812021-01-22 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
1084 (TYPE_OWNER): Remove.
1085 (TYPE_OBJFILE): Adjust.
1086 (struct main_type) <flag_objfile_owned>: Rename to...
1087 <m_flag_objfile_owned>: ... this.
1088 <owner>: Rename to...
1089 <m_owner>: ... this.
1090 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
1091 methods.
1092 (TYPE_ALLOC): Adjust.
1093 * gdbtypes.c (alloc_type): Adjust.
1094 (alloc_type_arch): Adjust.
1095 (alloc_type_copy): Adjust.
1096 (get_type_arch): Adjust.
1097 (smash_type): Adjust.
1098 (lookup_array_range_type): Adjust.
1099 (recursive_dump_type): Adjust.
1100 (copy_type_recursive): Adjust.
1101 * compile/compile-c-types.c (convert_func): Adjust.
1102 (convert_type_basic): Adjust.
1103 * compile/compile-cplus-types.c (compile_cplus_convert_func):
1104 Adjust.
1105 * language.c
1106 (language_arch_info::type_and_symbol::alloc_type_symbol):
1107 Adjust.
1108
d5d24e12
LM
11092021-01-21 Luis Machado <luis.machado@linaro.org>
1110
1111 * coffread.c (enter_linenos): Passing string to complaint.
1112 * valops.c (value_assign): Make array view.
1113
a59902a7
SM
11142021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1115
1116 * auto-load.h (debug_auto_load): Move here.
1117 (auto_load_debug_printf): New.
1118 * auto-load.c: Use auto_load_debug_printf.
1119 (debug_auto_load): Move to header.
1120 * linux-thread-db.c (try_thread_db_load): Use
1121 auto_load_debug_printf.
1122 * main.c (captured_main_1): Likewise.
1123
d3abc0ce
SM
11242021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1125
1126 * f-valprint.c (f77_array_offset_tbl): Remove.
1127
1e15fcac
SM
11282021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1129
1130 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
1131
439706e6
SM
11322021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1133
1134 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
1135 of gdb_select.
1136
325d39e4
HD
11372021-01-21 Hannes Domani <ssbssa@yahoo.de>
1138
1139 PR python/19151
1140 * python/py-breakpoint.c (bppy_get_location): Handle
1141 bp_hardware_breakpoint.
1142 (bppy_init): Likewise.
1143 (gdbpy_breakpoint_created): Likewise.
1144
7cb6d92a
SM
11452021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
1146
1147 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
1148
d4dd4fca
SM
11492021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1150
1151 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
1152 (_initialize_gdb_bfd): Adjust.
1153
de53369b
SM
11542021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 PR gdb/26828
1157 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
1158
17e593e9
SM
11592021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * dwarf2/read.c (follow_die_offset): Add logging.
1162 (dwarf2_per_objfile::age_comp_units): Add logging.
1163
6bd434d6
SM
11642021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1165
1166 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
1167 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
1168 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
1169 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
1170 * arm-tdep.c (struct frame_unwind): Make static.
1171 * auto-load.c (auto_load_safe_path_vec): Make static.
1172 * csky-tdep.c (csky_stub_unwind): Make static.
1173 * gdbarch.c (gdbarch_data_registry): Make static.
1174 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
1175 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
1176 * i386-tdep.c (i386_frame_setup_skip_insns,
1177 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
1178 Make static.
1179 * infrun.c (observer_mode): Make static.
1180 * linux-nat.c (sigchld_action): Make static.
1181 * linux-thread-db.c (thread_db_list): Make static.
1182 * maint-test-options.c (maintenance_test_options_list):
1183 * mep-tdep.c (mep_csr_registers): Make static.
1184 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
1185 (stats): Make static.
1186 * nat/linux-osdata.c (struct osdata_type): Make static.
1187 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
1188 * progspace.c (last_program_space_num): Make static.
1189 * python/py-param.c (struct parm_constant): Remove struct type
1190 name.
1191 (parm_constants): Make static.
1192 * python/py-record-btrace.c (btpy_list_methods): Make static.
1193 * python/py-record.c (recpy_gap_type): Make static.
1194 * record.c (record_goto_cmdlist): Make static.
1195 * regcache.c (regcache_descr_handle): Make static.
1196 * registry.h (DEFINE_REGISTRY): Make definition static.
1197 * symmisc.c (std_in, std_out, std_err): Make static.
1198 * top.c (previous_saved_command_line): Make static.
1199 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
1200 static.
1201 * unittests/command-def-selftests.c (nr_duplicates,
1202 nr_invalid_prefixcmd, lists): Make static.
1203 * unittests/observable-selftests.c (test_notification): Make
1204 static.
1205 * unittests/optional/assignment/1.cc (counter): Make static.
1206 * unittests/optional/assignment/2.cc (counter): Make static.
1207 * unittests/optional/assignment/3.cc (counter): Make static.
1208 * unittests/optional/assignment/4.cc (counter): Make static.
1209 * unittests/optional/assignment/5.cc (counter): Make static.
1210 * unittests/optional/assignment/6.cc (counter): Make static.
1211
a6c11cbb
JS
12122021-01-20 Joel Sherrill <joel@rtems.org>
1213
1214 PR gdb/27219
1215 * remote.c (struct remote_thread_info) <resume_state>: Rename
1216 to...
1217 <get_resume_state>: ... this.
1218 (remote_target::resume): Adjust.
1219 (remote_target::commit_resume): Adjust.
1220 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
1221
6f52fdf4
SDJ
12222021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
1223 Tom Tromey <tom@tromey.com>
1224
1225 * stap-probe.c (stap_parse_single_operand): Handle '!'
1226 operator.
1227 (stap_parse_argument_conditionally): Likewise.
1228 Skip spaces after processing open-parenthesis sub-expression.
1229 (stap_parse_argument_1): Skip spaces after call to
1230 stap_parse_argument_conditionally.
1231 Handle case when right-side expression is a parenthesized
1232 sub-expression.
1233 Skip spaces after call to stap_parse_argument_1.
1234
1c3b85ad
LS
12352021-01-19 Lancelot SIX <lsix@lancelotsix.com>
1236
1237 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
1238
a9a87d35
LM
12392021-01-19 Luis Machado <luis.machado@linaro.org>
1240
1241 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
1242 memory and save data.
1243 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
1244 (trad_frame_set_unknown, trad_frame_set_value_bytes)
1245 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1246 (trad_frame_value_bytes_p): Remove.
1247 (trad_frame_reset_saved_regs): Adjust documentation.
1248 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
1249 constructor and reset the state of the registers.
1250 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
1251 (trad_frame_value_bytes_p, trad_frame_set_value)
1252 (trad_frame_set_realreg, trad_frame_set_addr)
1253 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
1254 (trad_frame_set_reg_realreg): Update to call member function.
1255 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
1256 (trad_frame_get_prev_register): Likewise.
1257
1258 * aarch64-tdep.c (aarch64_analyze_prologue)
1259 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
1260 (aarch64_prologue_prev_register): Update to use member functions.
1261 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1262 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
1263 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
1264 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
1265 (arm_make_epilogue_frame_cache): Likewise.
1266 * avr-tdep.c (avr_frame_unwind_cache)
1267 (avr_frame_prev_register): Likewise.
1268 * cris-tdep.c (cris_scan_prologue): Likewise.
1269 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
1270 * frv-tdep.c (frv_analyze_prologue): Likewise.
1271 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
1272 * lm32-tdep.c (lm32_frame_cache): Likewise.
1273 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1274 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1275 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
1276 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
1277 (reset_saved_regs): Adjust to set realreg.
1278 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
1279 call member functions.
1280 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
1281 * s390-tdep.c (s390_prologue_frame_unwind_cache)
1282 (s390_backchain_frame_unwind_cache): Likewise.
1283 * score-tdep.c (score7_analyze_prologue)
1284 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
1285 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
1286 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1287 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
1288 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1289 * tilegx-tdep.c (tilegx_analyze_prologue)
1290 (tilegx_frame_cache): Likewise.
1291 * v850-tdep.c (v850_frame_cache): Likewise.
1292 * vax-tdep.c (vax_frame_cache): Likewise.
1293
bdec2917
LM
12942021-01-19 Luis Machado <luis.machado@linaro.org>
1295
1296 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
1297 of buffer + length.
1298 (put_frame_register_bytes): Likewise.
1299 Adjust documentation.
1300 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
1301 (safe_frame_unwind_memory): Likewise.
1302 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
1303 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
1304 gdb::array_view.
1305 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
1306 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
1307 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1308 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
1309 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
1310 * dwarf2/loc.c (rw_pieced_value): Likewise.
1311 * hppa-tdep.c (hppa_frame_cache): Likewise.
1312 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
1313 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
1314 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1315 (i386_linux_rt_sigtramp_start): Likewise.
1316 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1317 * i386-tdep.c (i386_register_to_value): Likewise.
1318 * i387-tdep.c (i387_register_to_value): Likewise.
1319 * ia64-tdep.c (ia64_register_to_value): Likewise.
1320 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
1321 (m32r_linux_rt_sigtramp_start): Likewise.
1322 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
1323 * m68k-tdep.c (m68k_register_to_value): Likewise.
1324 * mips-tdep.c (mips_register_to_value)
1325 (mips_value_to_register): Likewise.
1326 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
1327 (ppcfbsd_sigtramp_frame_cache): Likewise.
1328 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
1329 (ppcobsd_sigtramp_frame_cache): Likewise.
1330 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
1331 (rs6000_register_to_value): Likewise.
1332 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1333 * tramp-frame.c (tramp_frame_start): Likewise.
1334 * valops.c (value_assign): Likewise.
1335
ccbe4c82
LM
13362021-01-19 Luis Machado <luis.machado@linaro.org>
1337
1338 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
1339 array_view.
1340 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
1341 instead of buffer and size.
1342 (trad_frame_set_reg_value_bytes): Likewise.
1343 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
1344 (trad_frame_set_value_bytes): Likewise.
1345
0e7620dc
MF
13462021-01-18 Mike Frysinger <vapier@gentoo.org>
1347
1348 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
1349
6a9ad81c
AB
13502021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
1353 (riscv_fbsd_gregset): Use riscv_supply_regset.
1354 (riscv_fbsd_fpregset): Likewise.
1355 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
1356 (riscv_linux_fregset): Likewise.
1357 * riscv-tdep.c (riscv_supply_regset): Define new function.
1358 * riscv-tdep.h (riscv_supply_regset): Declare new function.
1359
d3d7d1ba
TV
13602021-01-18 Tom de Vries <tdevries@suse.de>
1361
1362 PR tdep/27172
1363 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
1364 New macro.
1365 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
1366 for SEGV_BNDERR.
1367
aa2838cc
SM
13682021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * remote.c (class remote_target) <remote_hostio_send_command,
1371 remote_hostio_parse_result>: Constify parameter.
1372 (remote_hostio_parse_result): Likewise.
1373 (remote_target::remote_hostio_send_command): Adjust.
1374 (remote_target::remote_hostio_pread_vFile): Adjust.
1375 (remote_target::fileio_readlink): Adjust.
1376 (remote_target::fileio_fstat): Adjust.
1377
b5c8f22d
SM
13782021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * remote.c (remote_target::start_remote): Move wait_status to
1381 narrower scope.
1382
e3b2741b
SM
13832021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1384
1385 * remote.c (class remote_target):
1386 <add_current_inferior_and_thread>: Constify parameter.
1387 (stop_reply_extract_thread): Likewise.
1388 (remote_target::get_current_thread): Likewise.
1389 (remote_target::add_current_inferior_and_thread): Likewise.
1390
cecb1912
SM
13912021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
1392
1393 * remote.c (class remote_target)
1394 <remote_unpack_thread_info_response,
1395 parse_threadlist_response>: Constify parameter and/or return
1396 value and or local variable.
1397 (stub_unpack_int): Likewise.
1398 (unpack_nibble): Likewise.
1399 (unpack_byte): Likewise.
1400 (unpack_int): Likewise.
1401 (unpack_string): Likewise.
1402 (unpack_threadid): Likewise.
1403 (remote_target::remote_unpack_thread_info_response): Likewise.
1404 (remote_target::parse_threadlist_response): Likewise.
1405
5a11fff0
AB
14062021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
1409
17e89137
LS
14102021-01-14 Lancelot Six <lsix@lancelotsix.com>
1411
1412 * MAINTAINERS (Write After Approval): Add myself.
1413
58eadc4b
BE
14142021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1415
1416 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
1417 because is_trivially_default_constructible was first implemented with
1418 gcc-5.
1419
5fae2a2c
TV
14202021-01-14 Tom de Vries <tdevries@suse.de>
1421
1422 PR breakpoints/27151
1423 * objfiles.h (in_plt_section): Handle .plt.sec.
1424
8f66807b
AB
14252021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 PR gdb/26819
1428 * remote.c
1429 (remote_target::select_thread_for_ambiguous_stop_reply): New
1430 member function.
1431 (remote_target::process_stop_reply): Call
1432 select_thread_for_ambiguous_stop_reply.
1433
bd497355
SM
14342021-01-13 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * record-btrace.c (class record_btrace_target): Remove.
1437 (record_btrace_target::commit_resume): Remove.
1438 * record-full.c (class record_full_target): Remove.
1439 (record_full_target::commit_resume): Remove.
1440
c9d22089
SM
14412021-01-13 Simon Marchi <simon.marchi@efficios.com>
1442
1443 * remote.c (enum class resume_state): New.
1444 (struct resumed_pending_vcont_info): New.
1445 (struct remote_thread_info) <resume_state, set_not_resumed,
1446 set_resumed_pending_vcont, resumed_pending_vcont_info,
1447 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
1448 New.
1449 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
1450 (remote_target::remote_add_thread): Adjust.
1451 (remote_target::process_initial_stop_replies): Adjust.
1452 (remote_target::resume): Adjust.
1453 (remote_target::commit_resume): Rely on state in
1454 remote_thread_info and not on tp->executing.
1455 (remote_target::process_stop_reply): Adjust.
1456
d8d1feb4
SM
14572021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * arc-tdep.h (arc_debug_printf): New.
1460 * arc-tdep.c: Use arc_debug_printf.
1461 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
1462 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
1463 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
1464
fb0f5031
SM
14652021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1466
1467 * arc-tdep.h (arc_debug): Change type to bool.
1468 * arc-tdep.c (arc_debug): Change type to bool.
1469 (arc_analyze_prologue): Adjust.
1470 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
1471 * arc-linux-nat.c (ps_get_thread_area): Adjust.
1472
5bf7e91b
SM
14732021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1474
1475 * auto-load.c (auto_load_objfile_script_1): Use bool.
1476 (execute_script_contents): Use bool.
1477
db972fce
SM
14782021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1479
1480 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
1481 comment here.
1482 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
1483 comment to header.
1484 * extension-priv.h (struct extension_language_script_ops)
1485 <auto_load_enabled>: Return bool.
1486 * extension.h (ext_lang_auto_load_enabled): Return bool, move
1487 comment here.
1488 * extension.c (ext_lang_auto_load_enabled): Return bool, move
1489 comment to header.
1490 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
1491 move comment here.
1492 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
1493 move comment to header.
1494 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
1495 move comment here.
1496 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
1497 move comment to header.
1498
5e12f48f
SM
14992021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1500
1501 * auto-load.h (file_is_auto_load_safe): Change return type to
1502 bool, move comment here.
1503 * auto-load.c (file_is_auto_load_safe): Change return type and
1504 advice_printed to bool. Move comment to header.
1505
54ca9002
SM
15062021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1507
1508 * jit.c (jit_debug_printf): New, use throughout file.
1509
24a7f1b5
SM
15102021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1511
1512 * infrun.c (normal_stop): Fix indentation.
1513
fe7a351a
SM
15142021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1515
1516 * top.h (readnow_symbol_files, readnever_symbol_files): Move
1517 declarations to ...
1518 * symfile.h: ... here.
1519 * symfile.c: Update doc.
1520
16e9019e
SM
15212021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * target.h (baud_rate, serial_parity): Move declarations...
1524 * serial.h: ... here.
1525 * main.c: Include serial.h.
1526 * serial.c (baud_rate, serial_parity): Update doc.
1527
b2f2ae0d
SM
15282021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * top.c (pre_init_ui_hook): Remove.
1531
5291fe3c
SP
15322021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1533
1534 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
1535 (aarch64_vnv_type): Add "bf" type in h field of v registers.
1536 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
1537 * features/aarch64-fpu.xml: Add bfloat16 type.
1538
ce38f5ed
AB
15392021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
1542
7c654b71
AB
15432021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * f-exp.y (dot_ops): Rename to...
1546 (fortran_operators): ...this. Add a header comment. Add symbol
1547 based operators.
1548 (yylex): Update to use fortran_operators not dot_ops. Remove
1549 special handling for '**', this is now included in
1550 fortran_operators.
1551
c6185dce
SM
15522021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * arch/aarch64-insn.h (aarch64_debug_printf): New.
1555 * arch/aarch64-insn.c: Use aarch64_debug_printf.
1556 * aarch64-tdep.c: Use aarch64_debug_printf.
1557
eef401dc
SM
15582021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * solib-aix.c (solib_aix_debug_printf): New, use throughout
1561 file.
1562
062eaacb
SM
15632021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 * jit.c (jit_debug): Change type to bool.
1566 (_initialize_jit): Adjust.
1567
54585eee
TT
15682021-01-09 Tom Tromey <tom@tromey.com>
1569
1570 PR compile/23672
1571 * compile/compile.c (compile_to_object): Avoid crash when
1572 osabi_triplet_regexp returns NULL.
1573
bc167b6b
TT
15742021-01-09 Tom Tromey <tom@tromey.com>
1575
1576 * tracepoint.h (class collection_list) <append_exp>: Take a
1577 std::string.
1578 * tracepoint.c (collection_list::append_exp): Take a std::string.
1579 (encode_actions_1): Update.
1580
8fc48b79
TT
15812021-01-08 Tom Tromey <tromey@adacore.com>
1582
1583 * parse.c (parse_expression): Add void_context_p parameter. Use
1584 parse_exp_in_context.
1585 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
1586 parse_expression.
1587 (print_command, call_command): Update.
1588 * expression.h (parse_expression): Add void_context_p parameter.
1589
3c8c6de2
AB
15902021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1591
1592 * value.c (set_value_component_location): Adjust the VALUE_LVAL
1593 for internalvar components that have a dynamic location.
1594
1940319c
TV
15952021-01-08 Tom de Vries <tdevries@suse.de>
1596
1597 PR gdb/26881
1598 * breakpoint.c (create_exception_master_breakpoint_probe)
1599 (create_exception_master_breakpoint_hook): Factor out
1600 of ...
1601 (create_exception_master_breakpoint): ... here. Only try to install
1602 the master exception breakpoint in objfile.debug using the
1603 _Unwind_DebugHook method, if the install using probes in objfile
1604 failed.
1605
e3436813
AB
16062021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1607
1608 * f-lang.c (fortran_value_subarray): Call value_from_component.
1609
e904f56d
MF
16102021-01-07 Mike Frysinger <vapier@gentoo.org>
1611
1612 * remote-sim.c: Include memory-map.h.
1613 (gdbsim_target): Define memory_map override.
1614 (gdbsim_target::memory_map): Define.
1615
959d6a67
TT
16162021-01-07 Tom Tromey <tromey@adacore.com>
1617
1618 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
1619
d4813f10
TT
16202021-01-07 Tom Tromey <tromey@adacore.com>
1621
1622 * ada-lang.c (add_component_interval): Start loop using vector's
1623 updated size.
1624
b49180ac
TT
16252021-01-06 Tom Tromey <tromey@adacore.com>
1626
1627 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
1628 Do not cast result.
1629 * valarith.c (fixed_point_binop): Handle multiplication
1630 and division specially.
1631 * valops.c (value_to_gdb_mpq): New function.
1632 (value_cast_to_fixed_point): Use it.
1633
55195361
HD
16342021-01-05 Hannes Domani <ssbssa@yahoo.de>
1635
1636 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1637 Call wnoutrefresh instead of tui_win_info::refresh_window.
1638
1b6d4bb2
HD
16392021-01-05 Hannes Domani <ssbssa@yahoo.de>
1640
1641 * tui/tui-source.c (tui_source_window::show_line_number):
1642 Redraw second space after line number.
1643
b5ff370e
HD
16442021-01-05 Hannes Domani <ssbssa@yahoo.de>
1645
1646 PR tui/26927
1647 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1648 Fix source pad size in prefresh.
1649 (tui_source_window_base::show_source_content): Grow source pad
1650 if necessary.
1651
c68ea49f
MF
16522021-01-04 Mike Frysinger <vapier@gentoo.org>
1653
1654 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
1655 (bfin_frame_align): Use align_down.
1656
e4ad960a
TV
16572021-01-04 Tom de Vries <tdevries@suse.de>
1658
1659 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
1660 terminators that do not terminate anything.
1661
3ec3145c
SM
16622021-01-04 Simon Marchi <simon.marchi@efficios.com>
1663
1664 * debug.c (debug_print_depth): New.
1665 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
1666 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
1667 * infrun.c (start_step_over): Use
1668 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1669 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
1670 INFRUN_SCOPED_DEBUG_START_END.
1671 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1672
e71daf80
SM
16732021-01-04 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
1676
335709bc
SM
16772021-01-04 Simon Marchi <simon.marchi@efficios.com>
1678
1679 * utils.c (vfprintf_unfiltered): Print timestamp only when
1680 previous debug output ended with a newline.
1681
098caef4
LM
16822021-01-04 Luis Machado <luis.machado@linaro.org>
1683
1684 Update all users of trad_frame_saved_reg to use the new member
1685 functions.
1686
1687 Remote all struct keywords from declarations of trad_frame_saved_reg
1688 types, except on forward declarations.
1689
1690 * aarch64-tdep.c: Update.
1691 * alpha-mdebug-tdep.c: Update.
1692 * alpha-tdep.c: Update.
1693 * arc-tdep.c: Update.
1694 * arm-tdep.c: Update.
1695 * avr-tdep.c: Update.
1696 * cris-tdep.c: Update.
1697 * csky-tdep.c: Update.
1698 * frv-tdep.c: Update.
1699 * hppa-linux-tdep.c: Update.
1700 * hppa-tdep.c: Update.
1701 * hppa-tdep.h: Update.
1702 * lm32-tdep.c: Update.
1703 * m32r-linux-tdep.c: Update.
1704 * m32r-tdep.c: Update.
1705 * m68hc11-tdep.c: Update.
1706 * mips-tdep.c: Update.
1707 * moxie-tdep.c: Update.
1708 * riscv-tdep.c: Update.
1709 * rs6000-tdep.c: Update.
1710 * s390-linux-tdep.c: Update.
1711 * s390-tdep.c: Update.
1712 * score-tdep.c: Update.
1713 * sparc-netbsd-tdep.c: Update.
1714 * sparc-sol2-tdep.c: Update.
1715 * sparc64-fbsd-tdep.c: Update.
1716 * sparc64-netbsd-tdep.c: Update.
1717 * sparc64-obsd-tdep.c: Update.
1718 * sparc64-sol2-tdep.c: Update.
1719 * tilegx-tdep.c: Update.
1720 * v850-tdep.c: Update.
1721 * vax-tdep.c: Update.
1722
1723 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
1724 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
1725
1726 * trad-frame.c: Update.
1727 Remove TF_REG_* enum.
1728 (trad_frame_alloc_saved_regs): Add a static assertion to check for
1729 a trivially-constructible struct.
1730 (trad_frame_reset_saved_regs): Adjust to use member function.
1731 (trad_frame_value_p): Likewise.
1732 (trad_frame_addr_p): Likewise.
1733 (trad_frame_realreg_p): Likewise.
1734 (trad_frame_value_bytes_p): Likewise.
1735 (trad_frame_set_value): Likewise.
1736 (trad_frame_set_realreg): Likewise.
1737 (trad_frame_set_addr): Likewise.
1738 (trad_frame_set_unknown): Likewise.
1739 (trad_frame_set_value_bytes): Likewise.
1740 (trad_frame_get_prev_register): Likewise.
1741 * trad-frame.h: Update.
1742 (trad_frame_saved_reg_kind): New enum.
1743 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
1744 <m_kind, m_reg>: New member fields.
1745 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
1746 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
1747 <is_addr, is_unknown, is_value_bytes>: New member functions.
1748
9898e882
SM
17492021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * target-float.c: Fix typos.
1752
b66b4e65
HD
17532021-01-02 Hannes Domani <ssbssa@yahoo.de>
1754
1755 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
1756
b5b5650a
JB
17572021-01-01 Joel Brobecker <brobecker@adacore.com>
1758
1759 * gdbarch.sh: Update copyright year range.
1760
3666a048
JB
17612021-01-01 Joel Brobecker <brobecker@adacore.com>
1762
1763 Update copyright year range in copyright header of all GDB files.
1764
ff7e39b6
JB
17652021-01-01 Joel Brobecker <brobecker@adacore.com>
1766
1767 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
1768 to the list of directories to update.
1769
2b47c078
JB
17702021-01-01 Joel Brobecker <brobecker@adacore.com>
1771
1772 * top.c (print_gdb_version): Update copyright year.
1773
476923f1 17742021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 1775
476923f1 1776 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 1777
476923f1 1778For older changes see ChangeLog-2020.
c906108c
SS
1779\f
1780Local Variables:
1781mode: change-log
1782left-margin: 8
1783fill-column: 74
1784version-control: never
57da7796 1785coding: utf-8
c906108c 1786End: