]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Avoid crash in resolve_dynamic_struct
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a4f0544b
TT
12021-02-09 Tom Tromey <tromey@adacore.com>
2
3 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4 fields.
5
9b3e4b5d
SV
62021-02-08 Shahab Vahedi <shahab@synopsys.com>
7
8 PR tdep/27369
9 * arc-linux-tdep.c (handle_atomic_sequence): New.
10 (arc_linux_software_single_step): Call handle_atomic_sequence().
11
29db1eb3
AB
122021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
13
14 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
15 function.
16 (REQUIRE_WINDOW): Call is_valid member function.
17 (REQUIRE_WINDOW_FOR_SETTER): New define.
18 (gdbpy_tui_is_valid): Call is_valid member function.
19 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
20 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
21 tui_active too.
22 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
23 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
24 the function.
25
e0c23e11
AB
262021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
29 for the title is not nullptr.
30
1cf23996
AB
312021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
32
33 * tui-layout.c (saved_tui_windows): Delete.
34 (tui_apply_current_layout): Don't make use of saved_tui_windows,
35 call new get_windows member function instead.
36 (tui_get_window_by_name): Check in tui_windows.
37 (tui_layout_window::apply): Don't add to tui_windows.
38 * tui-layout.h (tui_layout_base::get_windows): New member function.
39 (tui_layout_window::get_windows): Likewise.
40 (tui_layout_split::get_windows): Likewise.
41
a53a2657
AB
422021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
45 of the window objects.
46
2708dbbd
AB
472021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * python/python.c (gdbpy_print_stack): Reformat an error message.
50
cd074e04
AB
512021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * tui/tui-interp.c (tui_command_line_handler): New function.
54 (tui_interp::resume): Register tui_command_line_handler as the
55 input_handler.
56 * tui/tui-io.c (tui_inject_newline_into_command_window): New
57 function.
58 (tui_getc_1): Delete handling of '\n' and '\r'.
59 * tui-io.h (tui_inject_newline_into_command_window): Declare.
60
4cf28e91
HD
612021-02-07 Hannes Domani <ssbssa@yahoo.de>
62
63 * tui/tui-regs.c (tui_data_window::display_registers_from):
64 Mark invisible register sub windows.
65 (tui_data_window::check_register_values): Ignore invisible
66 register sub windows.
67
3537bc23
HD
682021-02-07 Hannes Domani <ssbssa@yahoo.de>
69
70 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
71 n_spaces with a negative value.
72
5fc2d6aa
HD
732021-02-07 Hannes Domani <ssbssa@yahoo.de>
74
75 * tui/tui-regs.c (tui_data_window::display_registers_from):
76 Add refresh_window call.
77
83962f83
HD
782021-02-07 Hannes Domani <ssbssa@yahoo.de>
79
80 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
81
0110ec82
SM
822021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * symmisc.c (std_in, std_out, std_err): Remove.
85 (_initialize_symmisc): Don't set std_in, std_out and std_err.
86
7c6944ab
TV
872021-02-05 Tom de Vries <tdevries@suse.de>
88
89 PR breakpoints/27330
90 * breakpoint.c (create_exception_master_breakpoint): Handle case that
91 glibc object file has debug info.
92
e77b0004
TV
932021-02-05 Tom de Vries <tdevries@suse.de>
94
95 PR symtab/27333
96 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
97
0e857c82
TV
982021-02-05 Tom de Vries <tdevries@suse.de>
99
100 PR breakpoints/27313
101 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
102 syscall numbers.
103
bdfea17e
TT
1042021-02-05 Tom Tromey <tom@tromey.com>
105
106 * compile/compile-c-support.c (get_compile_context)
107 (c_get_compile_context, cplus_get_compile_context): Change return
108 type.
109 * language.c (language_defn::get_compile_instance): New method.
110 * language.h (language_defn::get_compile_instance): Change return
111 type. No longer inline.
112 * c-lang.c (c_language::get_compile_instance): Change return type.
113 (cplus_language::get_compile_instance): Change return type.
114 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
115 Change return type.
116 * compile/compile.c (compile_to_object): Update.
117
1b30f421
TT
1182021-02-05 Tom Tromey <tom@tromey.com>
119
120 * parser-defs.h (write_exp_symbol_reference): Declare.
121 * parse.c (write_exp_symbol_reference): New function.
122 * p-exp.y (variable): Use write_exp_symbol_reference.
123 * m2-exp.y (variable): Use write_exp_symbol_reference.
124 * f-exp.y (variable): Use write_exp_symbol_reference.
125 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
126 * c-exp.y (variable): Use write_exp_symbol_reference.
127
ae710496
TV
1282021-02-05 Tom de Vries <tdevries@suse.de>
129
130 PR exp/27265
131 * valarith.c (complex_binop): Throw an error if complex type can't
132 be created.
133
d3b54e63
TV
1342021-02-05 Tom de Vries <tdevries@suse.de>
135
136 PR symtab/27307
137 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
138 return.
139
fc9a13fb
TV
1402021-02-05 Tom de Vries <tdevries@suse.de>
141
142 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
143
04b4939b
MF
1442021-02-04 Mike Frysinger <vapier@gentoo.org>
145
146 * configure.tgt (riscv*-*-*): Set gdb_sim.
147
6ff267e1
SM
1482021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * target.c (target_is_non_stop_p): Return bool.
151 * target.h (target_is_non_stop_p): Return bool.
152
fdbc5215
SM
1532021-02-04 Simon Marchi <simon.marchi@efficios.com>
154
155 * record-full.c (record_full_async_inferior_event_handler):
156 Don't clear async event handler.
157 (record_full_base_target::wait): Clear async event handler at
158 beginning.
159
85d3ad8e
SM
1602021-02-04 Simon Marchi <simon.marchi@efficios.com>
161
162 * record-btrace.c (record_btrace_handle_async_inferior_event):
163 Don't clear async event handler.
164 (record_btrace_target::wait): Clear async event handler at
165 beginning.
166
baa8575b
SM
1672021-02-04 Simon Marchi <simon.marchi@efficios.com>
168
169 * remote.c (remote_target::wait): Clear async event handler at
170 beginning, mark if needed at the end.
171 (remote_async_inferior_event_handler): Don't set or clear async
172 event handler.
173
6b36ddeb
SM
1742021-02-04 Simon Marchi <simon.marchi@efficios.com>
175
176 * async-event.h (async_event_handler_func): Add documentation.
177 * async-event.c (check_async_event_handlers): Don't clear
178 async_event_handler ready flag.
179 * infrun.c (infrun_async_inferior_event_handler): Clear ready
180 flag.
181 * record-btrace.c (record_btrace_handle_async_inferior_event):
182 Likewise.
183 * record-full.c (record_full_async_inferior_event_handler):
184 Likewise.
185 * remote-notif.c (remote_async_get_pending_events_handler):
186 Likewise.
187 * remote.c (remote_async_inferior_event_handler): Likewise.
188
72d383bb
SM
1892021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * infrun.c (handle_inferior_event): Move stop_soon variable to
192 inner scope.
193
408f6686
PA
1942021-02-03 Pedro Alves <pedro@palves.net>
195
196 * infcmd.c (detach_command): Hold strong reference to target, and
197 if all-stop on entry, restart threads on exit.
198 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
199 (restart_stepped_thread): ... this new function. Also handle
200 trap_expected.
201 (restart_after_all_stop_detach): New function.
202 * infrun.h (restart_after_all_stop_detach): Declare.
203
ac7d717c
PA
2042021-02-03 Pedro Alves <pedro@palves.net>
205
206 * infrun.c (struct step_over_info): Initialize fields.
207 (prepare_for_detach): Handle ongoing in-line step over.
208
e87f0fe8
PA
2092021-02-03 Pedro Alves <pedro@palves.net>
210
211 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
212 here...
213 * remote.c (remote_target::remote_detach_1): ... and here ...
214 * target.c (target_detach): ... instead of here.
215 * target.h (target_ops::detach): Add comment.
216
8ff53139
PA
2172021-02-03 Pedro Alves <pedro@palves.net>
218
219 * infrun.c (struct wait_one_event): Move higher up.
220 (prepare_for_detach): Abort in-progress displaced steps instead of
221 letting them complete.
222 (handle_one): If the inferior is detaching, don't add the thread
223 back to the global step-over chain.
224 (restart_threads): Don't restart threads if detaching.
225 (handle_signal_stop): Remove inferior::detaching reference.
226
91475068
PA
2272021-02-03 Pedro Alves <pedro@palves.net>
228
229 * infrun.c (prepare_for_detach): Don't release scoped_restore
230 before returning.
231
d758e62c
PA
2322021-02-03 Pedro Alves <pedro@palves.net>
233
234 * infrun.c (handle_one): New function, factored out from ...
235 (stop_all_threads): ... here.
236
b0083dd7
PA
2372021-02-03 Pedro Alves <pedro@palves.net>
238
239 * remote.c (remote_notif_stop_ack): Don't error out on
240 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
241 (remote_target::discard_pending_stop_replies): Don't delete
242 in-flight notification; instead, clear its contents.
243
621cc310
PA
2442021-02-03 Pedro Alves <pedro@palves.net>
245
246 * remote.c (extended_remote_target::attach): Set target async in
247 the target-non-stop path too.
248
2ab76a18
PA
2492021-02-03 Pedro Alves <pedro@palves.net>
250
251 PR gdb/27055
252 * infrun.c (handle_signal_stop): Move main context_switch call
253 earlier, before STOP_QUIETLY_NO_SIGSTOP.
254
2e3773ff
LS
2552021-02-02 Lancelot SIX <lsix@lancelotsix.com>
256
257 * NEWS (Changed commands): Add entry for the behavior change of
258 the inferior command.
259 * inferior.c (inferior_command): When no argument is given to the
260 inferior command, display info about the currently selected
261 inferior.
262
e57933dc
SM
2632021-02-02 Simon Marchi <simon.marchi@efficios.com>
264
265 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
266 a sect_offset.
267 (read_attribute_reprocess): Adjust.
268
2b0c7f41
SM
2692021-02-02 Simon Marchi <simon.marchi@efficios.com>
270
271 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
272 <gnu_ranges_base>: ... this...
273 <rnglists_base>: ... and this.
274 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
275 <gnu_ranges_base>: ... this...
276 <rnglists_base>: ... and this.
277 (read_cutu_die_from_dwo): Adjust
278 (dwarf2_get_pc_bounds): Adjust
279 (dwarf2_record_block_ranges): Adjust.
280 (read_full_die_1): Adjust
281 (partial_die_info::read): Adjust.
282 (read_rnglist_index): Adjust.
283
a1c40103
SM
2842021-02-02 Simon Marchi <simon.marchi@efficios.com>
285
286 PR gdb/26813
287 * dwarf2/read.c (read_loclists_rnglists_header): Add
288 header_offset parameter and use it.
289 (read_loclist_index): Read header of the current contribution,
290 not the one at the beginning of the section.
291 (read_rnglist_index): Likewise.
292
b1829e1b
SM
2932021-02-02 Simon Marchi <simon.marchi@efficios.com>
294
295 PR gdb/26813
296 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
297 requires_reprocessing flag.
298 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
299 DW_FORM_loclistx.
300 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
301 and DW_FORM_loclistx.
302 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
303 instead of set_address for DW_FORM_loclistx and
304 DW_FORM_rnglistx.
305
0c800c6e
SM
3062021-02-02 Simon Marchi <simon.marchi@efficios.com>
307
308 * dwarf2/read.c (read_loclist_index): Remove bound check for
309 start of offset.
310 (read_rnglist_index): Likewise.
311
05787bad
SM
3122021-02-02 Simon Marchi <simon.marchi@efficios.com>
313
314 * dwarf2/read.c (read_loclist_index): Add bound check for the end
315 of the offset.
316
5e4d9bbc
SM
3172021-02-02 Simon Marchi <simon.marchi@efficios.com>
318
319 * dwarf2/read.c (read_rnglist_index): Fix bound check.
320
a0c1eeba
SM
3212021-02-02 Simon Marchi <simon.marchi@efficios.com>
322
323 * dwarf2/read.c (read_loclist_index): Change complaints into
324 errors.
325
2bd3e4b8
TV
3262021-02-02 Tom de Vries <tdevries@suse.de>
327
328 PR symtab/24620
329 * dwarf2/index-write.c (write_one_signatured_type): Skip if
330 psymtab == nullptr.
331
82a1fd3a
AB
3322021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
335 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
336 here from linux-tdep.c and given a new name. Minor cleanups.
337 (gcore_collect_regset_section_cb): Likewise.
338 (gcore_collect_thread_registers): Likewise.
339 (gcore_build_thread_register_notes): Likewise.
340 (gcore_find_signalled_thread): Likewise.
341 * gcore.h (gcore_build_thread_register_notes): Declare.
342 (gcore_find_signalled_thread): Declare.
343 * fbsd-tdep.c: Add 'gcore.h' include.
344 (struct fbsd_collect_regset_section_cb_data): Delete.
345 (fbsd_collect_regset_section_cb): Delete.
346 (fbsd_collect_thread_registers): Delete.
347 (struct fbsd_corefile_thread_data): Delete.
348 (fbsd_corefile_thread): Delete.
349 (fbsd_make_corefile_notes): Call
350 gcore_build_thread_register_notes instead of the now deleted
351 FreeBSD code.
352 * linux-tdep.c: Add 'gcore.h' include.
353 (struct linux_collect_regset_section_cb_data): Delete.
354 (linux_collect_regset_section_cb): Delete.
355 (linux_collect_thread_registers): Delete.
356 (linux_corefile_thread): Call
357 gcore_build_thread_register_notes.
358 (find_signalled_thread): Delete.
359 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
360
ebde6f2d
TV
3612021-01-29 Tom de Vries <tdevries@suse.de>
362
363 PR breakpoints/26063
364 * infrun.c (process_event_stop_test): Reset
365 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
366 changed.
367
0f93c3a2
AB
3682021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
371 assert. Extend the header comment.
372
f237f998
AB
3732021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
376 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
377 * tui/tui-data.h (TUI_STATUS_WIN): Define.
378 (tui_locator_win_info_ptr): Delete declaration.
379 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
380 (tui_disasm_window::set_contents): Fetch state from tui_location
381 global.
382 (tui_get_begin_asm_address): Likewise.
383 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
384 for locator window.
385 (get_locator_window): Delete.
386 (initialize_known_windows): Treat locator window just like all the
387 rest.
388 * tui/tui-source.c: Add 'tui/tui-location.h' include.
389 (tui_source_window::set_contents): Fetch state from tui_location
390 global.
391 (tui_source_window::showing_source_p): Likewise.
392 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
393 (_locator): Delete.
394 (tui_locator_win_info_ptr): Delete.
395 (tui_locator_window::make_status_line): Fetch state from
396 tui_location global.
397 (tui_locator_window::rerender): Remove check of 'handle',
398 reindent function body.
399 (tui_locator_window::set_locator_fullname): Delete.
400 (tui_locator_window::set_locator_info): Delete.
401 (tui_update_locator_fullname): Delete.
402 (tui_show_frame_info): Likewise.
403 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
404 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
405 tui/tui-location.h and renamed to
406 tui_location_tracker::set_location.
407 (tui_locator_window::set_locator_fullname): Moved to
408 tui/tui-location.h and renamed to
409 tui_location_tracker::set_fullname.
410 (tui_locator_window::full_name): Delete.
411 (tui_locator_window::proc_name): Delete.
412 (tui_locator_window::line_no): Delete.
413 (tui_locator_window::addr): Delete.
414 (tui_locator_window::gdbarch): Delete.
415 (tui_update_locator_fullname): Delete declaration.
416 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
417 for locator window.
418 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
419 (tui_display_main): Call function on tui_location directly.
420 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
421 * tui/tui-location.c: New file.
422 * tui/tui-location.h: New file.
423
8ee511af
SM
4242021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * gdbtypes.h (get_type_arch): Rename to...
427 (struct type) <arch>: ... this, update all users.
428
6ac37371
SM
4292021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * gdbtypes.h (struct type) <arch>: Rename to...
432 <arch_owner>: ... this, update all users.
433 <objfile>: Rename to...
434 <objfile_owner>: ... this, update all users.
435
24cf6389
AB
4362021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * gdbcmd.h (execute_command_to_string): Update comment.
439 * top.c (execute_command_to_string): Update header comment.
440
2a7f6487
TV
4412021-01-28 Tom de Vries <tdevries@suse.de>
442
443 PR breakpoints/27205
444 * breakpoint.c (create_longjmp_master_breakpoint_probe)
445 (create_longjmp_master_breakpoint_names): New function, factored out
446 of ...
447 (create_longjmp_master_breakpoint): ... here. Only try to install
448 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
449 breakpoint in libc.so failed.
450
59b59f08
LS
4512021-01-27 Lancelot SIX <lsix@lancelotsix.com>
452
453 PR gdb/27133
454 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
455 unique_ptr is released when the wrapped pointer is kept for later
456 use.
457
807f647c
MM
4582021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
459
460 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
461 BLR and BR instructions.
462 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
463 (enum aarch64_masks): New.
464
4ef367bf
TT
4652021-01-26 Tom Tromey <tromey@adacore.com>
466
467 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
468 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
469 (windows_init_thread_list, windows_nat::handle_load_dll)
470 (windows_nat::handle_unload_dll, windows_nat_target::resume)
471 (windows_nat_target::resume)
472 (windows_nat_target::get_windows_debug_event)
473 (windows_nat_target::interrupt, windows_xfer_memory)
474 (windows_nat_target::close): Update.
475 * nat/windows-nat.c (DEBUG_EVENTS): Use
476 debug_prefixed_printf_cond.
477 (matching_pending_stop, fetch_pending_stop)
478 (continue_last_debug_event): Update.
479
4cb1265b
MS
4802020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
481
482 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
483 elfcore_write_file_note.
484
d0cc52bd
SV
4852021-01-26 Shahab Vahedi <shahab@synopsys.com>
486
487 * arc-tdep.c (arc_add_reggroups): New function.
488 (arc_gdbarch_init): Call arc_add_reggroups.
489
ac3571d9 4902021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
491
492 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
493
9f6c202e
TV
4942021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
495 Simon Marchi <simon.marchi@polymtl.ca>
496 Tom de Vries <tdevries@suse.de>
497
498 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
499 DW_AT_ranges.
500
a625a8c9
TT
5012021-01-25 Tom Tromey <tromey@adacore.com>
502
503 * dwarf2/read.c (get_mpz): New function.
504 (get_dwarf2_rational_constant): Use it.
505
19184910
TT
5062021-01-25 Tom Tromey <tromey@adacore.com>
507
508 * ada-lang.c (resolve_subexp): Handle array context.
509
b10bae18
TT
5102021-01-23 Tom Tromey <tom@tromey.com>
511
512 PR compile/25575
513 * compile/compile-loc2c.c (note_register): New function.
514 (pushf_register_address, pushf_register): Use it.
515
3637a558
TT
5162021-01-23 Tom Tromey <tom@tromey.com>
517
518 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
519 Change type of "registers_used".
520 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
521 * dwarf2/loc.c (dwarf2_compile_property_to_c)
522 (locexpr_generate_c_location, loclist_generate_c_location): Change
523 type of "registers_used".
524 * compile/compile.h (compile_dwarf_expr_to_c)
525 (compile_dwarf_bounds_to_c): Update.
526 * compile/compile-loc2c.c (pushf_register_address)
527 (pushf_register, do_compile_dwarf_expr_to_c)
528 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
529 of "registers_used".
530 * compile/compile-c.h (generate_c_for_variable_locations):
531 Update.
532 * compile/compile-c-symbols.c (generate_vla_size)
533 (generate_c_for_for_one_variable): Change type of
534 "registers_used".
535 (generate_c_for_variable_locations): Return std::vector.
536 * compile/compile-c-support.c (generate_register_struct): Change
537 type of "registers_used".
538 (compute): Update.
539
9f7f6cb8
TT
5402021-01-23 Tom Tromey <tom@tromey.com>
541
542 * compile/compile-internal.h (class compile_instance)
543 <set_arguments>: Change return type.
544 * compile/compile.c (compile_to_object): Remove call to reset.
545 (compile_instance::set_arguments): Change return type.
546
dd5ca05f
SM
5472021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
550 * gdbtypes.h (struct type) <set_owner>: Add asserts.
551
d3ee35db
LS
5522021-01-23 Lancelot SIX <lsix@lancelotsix.com>
553
554 * Makefile.in (SELFTESTS_SRCS): Add
555 unittests/gdb_tilde_expand-selftests.c.
556 * unittests/gdb_tilde_expand-selftests.c: New file.
557
9d2d8a16
AB
5582021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 PR cli/25956
561 * NEWS: Mention new command.
562 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
563 (version_style): Define.
564 (cli_style_option::cli_style_option): Add intensity parameter, and
565 use as appropriate.
566 (_initialize_cli_style): Register version style set/show commands.
567 * cli/cli-style.h (cli_style_option): Add intensity parameter.
568 (version_style): Declare.
569 * top.c (print_gdb_version): Use version_stype, and styled_string
570 to print the GDB version string.
571
e7b43072
AB
5722021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * utils.c (emit_style_escape): Only emit an escape sequence if the
575 requested style is different than the current applied style.
576 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
577 current applied_style.
578 (fputs_styled): Remove is_default check.
579 (fputs_styled_unfiltered): Likewise.
580 (vfprintf_styled_no_gdbfmt): Likewise.
581
2189c312
SM
5822021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * remote.h (remote_debug_printf): New.
585 (remote_debug_printf_nofunc): New.
586 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
587 * remote.c: Use above macros throughout file.
588
02349803
SM
5892021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * remote.h (remote_debug): Change to bool.
592 * remote.c (remote_debug): Change to bool.
593 (_initialize_remote): Adjust.
594
cda09ec9
SM
5952021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
596
597 * target.h (remote_debug): Move to...
598 * remote.h (remote_debug): ... here.
599 * top.c (remote_debug): Move to...
600 * remote.c (remote_debug): ... here.
601 * remote-sim.c: Include remote.h.
602
baf2b57f
SM
6032021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * cli/cli-cmds.c (show_remote_debug): Remove.
606 (show_remote_timeout): Remove.
607 (_initialize_cli_cmds): Don't register commands.
608 * remote.c (show_remote_debug): Move here.
609 (show_remote_timeout): Move here.
610 (_initialize_remote): Register commands.
611
344e9841
SM
6122021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
615 type::objfile method instead.
616
30625020
SM
6172021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
620 use the type::is_objfile_owned method.
621
5b7d941b
SM
6222021-01-22 Simon Marchi <simon.marchi@efficios.com>
623
624 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
625 (TYPE_OWNER): Remove.
626 (TYPE_OBJFILE): Adjust.
627 (struct main_type) <flag_objfile_owned>: Rename to...
628 <m_flag_objfile_owned>: ... this.
629 <owner>: Rename to...
630 <m_owner>: ... this.
631 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
632 methods.
633 (TYPE_ALLOC): Adjust.
634 * gdbtypes.c (alloc_type): Adjust.
635 (alloc_type_arch): Adjust.
636 (alloc_type_copy): Adjust.
637 (get_type_arch): Adjust.
638 (smash_type): Adjust.
639 (lookup_array_range_type): Adjust.
640 (recursive_dump_type): Adjust.
641 (copy_type_recursive): Adjust.
642 * compile/compile-c-types.c (convert_func): Adjust.
643 (convert_type_basic): Adjust.
644 * compile/compile-cplus-types.c (compile_cplus_convert_func):
645 Adjust.
646 * language.c
647 (language_arch_info::type_and_symbol::alloc_type_symbol):
648 Adjust.
649
d5d24e12
LM
6502021-01-21 Luis Machado <luis.machado@linaro.org>
651
652 * coffread.c (enter_linenos): Passing string to complaint.
653 * valops.c (value_assign): Make array view.
654
a59902a7
SM
6552021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * auto-load.h (debug_auto_load): Move here.
658 (auto_load_debug_printf): New.
659 * auto-load.c: Use auto_load_debug_printf.
660 (debug_auto_load): Move to header.
661 * linux-thread-db.c (try_thread_db_load): Use
662 auto_load_debug_printf.
663 * main.c (captured_main_1): Likewise.
664
d3abc0ce
SM
6652021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
666
667 * f-valprint.c (f77_array_offset_tbl): Remove.
668
1e15fcac
SM
6692021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
670
671 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
672
439706e6
SM
6732021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
676 of gdb_select.
677
325d39e4
HD
6782021-01-21 Hannes Domani <ssbssa@yahoo.de>
679
680 PR python/19151
681 * python/py-breakpoint.c (bppy_get_location): Handle
682 bp_hardware_breakpoint.
683 (bppy_init): Likewise.
684 (gdbpy_breakpoint_created): Likewise.
685
7cb6d92a
SM
6862021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
689
d4dd4fca
SM
6902021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
693 (_initialize_gdb_bfd): Adjust.
694
de53369b
SM
6952021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
696
697 PR gdb/26828
698 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
699
17e593e9
SM
7002021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
701
702 * dwarf2/read.c (follow_die_offset): Add logging.
703 (dwarf2_per_objfile::age_comp_units): Add logging.
704
6bd434d6
SM
7052021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
706
707 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
708 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
709 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
710 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
711 * arm-tdep.c (struct frame_unwind): Make static.
712 * auto-load.c (auto_load_safe_path_vec): Make static.
713 * csky-tdep.c (csky_stub_unwind): Make static.
714 * gdbarch.c (gdbarch_data_registry): Make static.
715 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
716 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
717 * i386-tdep.c (i386_frame_setup_skip_insns,
718 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
719 Make static.
720 * infrun.c (observer_mode): Make static.
721 * linux-nat.c (sigchld_action): Make static.
722 * linux-thread-db.c (thread_db_list): Make static.
723 * maint-test-options.c (maintenance_test_options_list):
724 * mep-tdep.c (mep_csr_registers): Make static.
725 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
726 (stats): Make static.
727 * nat/linux-osdata.c (struct osdata_type): Make static.
728 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
729 * progspace.c (last_program_space_num): Make static.
730 * python/py-param.c (struct parm_constant): Remove struct type
731 name.
732 (parm_constants): Make static.
733 * python/py-record-btrace.c (btpy_list_methods): Make static.
734 * python/py-record.c (recpy_gap_type): Make static.
735 * record.c (record_goto_cmdlist): Make static.
736 * regcache.c (regcache_descr_handle): Make static.
737 * registry.h (DEFINE_REGISTRY): Make definition static.
738 * symmisc.c (std_in, std_out, std_err): Make static.
739 * top.c (previous_saved_command_line): Make static.
740 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
741 static.
742 * unittests/command-def-selftests.c (nr_duplicates,
743 nr_invalid_prefixcmd, lists): Make static.
744 * unittests/observable-selftests.c (test_notification): Make
745 static.
746 * unittests/optional/assignment/1.cc (counter): Make static.
747 * unittests/optional/assignment/2.cc (counter): Make static.
748 * unittests/optional/assignment/3.cc (counter): Make static.
749 * unittests/optional/assignment/4.cc (counter): Make static.
750 * unittests/optional/assignment/5.cc (counter): Make static.
751 * unittests/optional/assignment/6.cc (counter): Make static.
752
a6c11cbb
JS
7532021-01-20 Joel Sherrill <joel@rtems.org>
754
755 PR gdb/27219
756 * remote.c (struct remote_thread_info) <resume_state>: Rename
757 to...
758 <get_resume_state>: ... this.
759 (remote_target::resume): Adjust.
760 (remote_target::commit_resume): Adjust.
761 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
762
6f52fdf4
SDJ
7632021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
764 Tom Tromey <tom@tromey.com>
765
766 * stap-probe.c (stap_parse_single_operand): Handle '!'
767 operator.
768 (stap_parse_argument_conditionally): Likewise.
769 Skip spaces after processing open-parenthesis sub-expression.
770 (stap_parse_argument_1): Skip spaces after call to
771 stap_parse_argument_conditionally.
772 Handle case when right-side expression is a parenthesized
773 sub-expression.
774 Skip spaces after call to stap_parse_argument_1.
775
1c3b85ad
LS
7762021-01-19 Lancelot SIX <lsix@lancelotsix.com>
777
778 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
779
a9a87d35
LM
7802021-01-19 Luis Machado <luis.machado@linaro.org>
781
782 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
783 memory and save data.
784 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
785 (trad_frame_set_unknown, trad_frame_set_value_bytes)
786 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
787 (trad_frame_value_bytes_p): Remove.
788 (trad_frame_reset_saved_regs): Adjust documentation.
789 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
790 constructor and reset the state of the registers.
791 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
792 (trad_frame_value_bytes_p, trad_frame_set_value)
793 (trad_frame_set_realreg, trad_frame_set_addr)
794 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
795 (trad_frame_set_reg_realreg): Update to call member function.
796 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
797 (trad_frame_get_prev_register): Likewise.
798
799 * aarch64-tdep.c (aarch64_analyze_prologue)
800 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
801 (aarch64_prologue_prev_register): Update to use member functions.
802 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
803 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
804 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
805 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
806 (arm_make_epilogue_frame_cache): Likewise.
807 * avr-tdep.c (avr_frame_unwind_cache)
808 (avr_frame_prev_register): Likewise.
809 * cris-tdep.c (cris_scan_prologue): Likewise.
810 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
811 * frv-tdep.c (frv_analyze_prologue): Likewise.
812 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
813 * lm32-tdep.c (lm32_frame_cache): Likewise.
814 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
815 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
816 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
817 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
818 (reset_saved_regs): Adjust to set realreg.
819 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
820 call member functions.
821 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
822 * s390-tdep.c (s390_prologue_frame_unwind_cache)
823 (s390_backchain_frame_unwind_cache): Likewise.
824 * score-tdep.c (score7_analyze_prologue)
825 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
826 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
827 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
828 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
829 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
830 * tilegx-tdep.c (tilegx_analyze_prologue)
831 (tilegx_frame_cache): Likewise.
832 * v850-tdep.c (v850_frame_cache): Likewise.
833 * vax-tdep.c (vax_frame_cache): Likewise.
834
bdec2917
LM
8352021-01-19 Luis Machado <luis.machado@linaro.org>
836
837 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
838 of buffer + length.
839 (put_frame_register_bytes): Likewise.
840 Adjust documentation.
841 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
842 (safe_frame_unwind_memory): Likewise.
843 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
844 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
845 gdb::array_view.
846 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
847 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
848 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
849 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
850 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
851 * dwarf2/loc.c (rw_pieced_value): Likewise.
852 * hppa-tdep.c (hppa_frame_cache): Likewise.
853 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
854 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
855 * i386-linux-tdep.c (i386_linux_sigtramp_start)
856 (i386_linux_rt_sigtramp_start): Likewise.
857 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
858 * i386-tdep.c (i386_register_to_value): Likewise.
859 * i387-tdep.c (i387_register_to_value): Likewise.
860 * ia64-tdep.c (ia64_register_to_value): Likewise.
861 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
862 (m32r_linux_rt_sigtramp_start): Likewise.
863 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
864 * m68k-tdep.c (m68k_register_to_value): Likewise.
865 * mips-tdep.c (mips_register_to_value)
866 (mips_value_to_register): Likewise.
867 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
868 (ppcfbsd_sigtramp_frame_cache): Likewise.
869 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
870 (ppcobsd_sigtramp_frame_cache): Likewise.
871 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
872 (rs6000_register_to_value): Likewise.
873 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
874 * tramp-frame.c (tramp_frame_start): Likewise.
875 * valops.c (value_assign): Likewise.
876
ccbe4c82
LM
8772021-01-19 Luis Machado <luis.machado@linaro.org>
878
879 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
880 array_view.
881 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
882 instead of buffer and size.
883 (trad_frame_set_reg_value_bytes): Likewise.
884 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
885 (trad_frame_set_value_bytes): Likewise.
886
0e7620dc
MF
8872021-01-18 Mike Frysinger <vapier@gentoo.org>
888
889 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
890
6a9ad81c
AB
8912021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
894 (riscv_fbsd_gregset): Use riscv_supply_regset.
895 (riscv_fbsd_fpregset): Likewise.
896 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
897 (riscv_linux_fregset): Likewise.
898 * riscv-tdep.c (riscv_supply_regset): Define new function.
899 * riscv-tdep.h (riscv_supply_regset): Declare new function.
900
d3d7d1ba
TV
9012021-01-18 Tom de Vries <tdevries@suse.de>
902
903 PR tdep/27172
904 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
905 New macro.
906 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
907 for SEGV_BNDERR.
908
aa2838cc
SM
9092021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * remote.c (class remote_target) <remote_hostio_send_command,
912 remote_hostio_parse_result>: Constify parameter.
913 (remote_hostio_parse_result): Likewise.
914 (remote_target::remote_hostio_send_command): Adjust.
915 (remote_target::remote_hostio_pread_vFile): Adjust.
916 (remote_target::fileio_readlink): Adjust.
917 (remote_target::fileio_fstat): Adjust.
918
b5c8f22d
SM
9192021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * remote.c (remote_target::start_remote): Move wait_status to
922 narrower scope.
923
e3b2741b
SM
9242021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * remote.c (class remote_target):
927 <add_current_inferior_and_thread>: Constify parameter.
928 (stop_reply_extract_thread): Likewise.
929 (remote_target::get_current_thread): Likewise.
930 (remote_target::add_current_inferior_and_thread): Likewise.
931
cecb1912
SM
9322021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
933
934 * remote.c (class remote_target)
935 <remote_unpack_thread_info_response,
936 parse_threadlist_response>: Constify parameter and/or return
937 value and or local variable.
938 (stub_unpack_int): Likewise.
939 (unpack_nibble): Likewise.
940 (unpack_byte): Likewise.
941 (unpack_int): Likewise.
942 (unpack_string): Likewise.
943 (unpack_threadid): Likewise.
944 (remote_target::remote_unpack_thread_info_response): Likewise.
945 (remote_target::parse_threadlist_response): Likewise.
946
5a11fff0
AB
9472021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
948
949 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
950
17e89137
LS
9512021-01-14 Lancelot Six <lsix@lancelotsix.com>
952
953 * MAINTAINERS (Write After Approval): Add myself.
954
58eadc4b
BE
9552021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
956
957 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
958 because is_trivially_default_constructible was first implemented with
959 gcc-5.
960
5fae2a2c
TV
9612021-01-14 Tom de Vries <tdevries@suse.de>
962
963 PR breakpoints/27151
964 * objfiles.h (in_plt_section): Handle .plt.sec.
965
8f66807b
AB
9662021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
967
968 PR gdb/26819
969 * remote.c
970 (remote_target::select_thread_for_ambiguous_stop_reply): New
971 member function.
972 (remote_target::process_stop_reply): Call
973 select_thread_for_ambiguous_stop_reply.
974
bd497355
SM
9752021-01-13 Simon Marchi <simon.marchi@efficios.com>
976
977 * record-btrace.c (class record_btrace_target): Remove.
978 (record_btrace_target::commit_resume): Remove.
979 * record-full.c (class record_full_target): Remove.
980 (record_full_target::commit_resume): Remove.
981
c9d22089
SM
9822021-01-13 Simon Marchi <simon.marchi@efficios.com>
983
984 * remote.c (enum class resume_state): New.
985 (struct resumed_pending_vcont_info): New.
986 (struct remote_thread_info) <resume_state, set_not_resumed,
987 set_resumed_pending_vcont, resumed_pending_vcont_info,
988 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
989 New.
990 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
991 (remote_target::remote_add_thread): Adjust.
992 (remote_target::process_initial_stop_replies): Adjust.
993 (remote_target::resume): Adjust.
994 (remote_target::commit_resume): Rely on state in
995 remote_thread_info and not on tp->executing.
996 (remote_target::process_stop_reply): Adjust.
997
d8d1feb4
SM
9982021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * arc-tdep.h (arc_debug_printf): New.
1001 * arc-tdep.c: Use arc_debug_printf.
1002 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
1003 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
1004 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
1005
fb0f5031
SM
10062021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1007
1008 * arc-tdep.h (arc_debug): Change type to bool.
1009 * arc-tdep.c (arc_debug): Change type to bool.
1010 (arc_analyze_prologue): Adjust.
1011 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
1012 * arc-linux-nat.c (ps_get_thread_area): Adjust.
1013
5bf7e91b
SM
10142021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * auto-load.c (auto_load_objfile_script_1): Use bool.
1017 (execute_script_contents): Use bool.
1018
db972fce
SM
10192021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1020
1021 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
1022 comment here.
1023 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
1024 comment to header.
1025 * extension-priv.h (struct extension_language_script_ops)
1026 <auto_load_enabled>: Return bool.
1027 * extension.h (ext_lang_auto_load_enabled): Return bool, move
1028 comment here.
1029 * extension.c (ext_lang_auto_load_enabled): Return bool, move
1030 comment to header.
1031 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
1032 move comment here.
1033 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
1034 move comment to header.
1035 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
1036 move comment here.
1037 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
1038 move comment to header.
1039
5e12f48f
SM
10402021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1041
1042 * auto-load.h (file_is_auto_load_safe): Change return type to
1043 bool, move comment here.
1044 * auto-load.c (file_is_auto_load_safe): Change return type and
1045 advice_printed to bool. Move comment to header.
1046
54ca9002
SM
10472021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1048
1049 * jit.c (jit_debug_printf): New, use throughout file.
1050
24a7f1b5
SM
10512021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * infrun.c (normal_stop): Fix indentation.
1054
fe7a351a
SM
10552021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1056
1057 * top.h (readnow_symbol_files, readnever_symbol_files): Move
1058 declarations to ...
1059 * symfile.h: ... here.
1060 * symfile.c: Update doc.
1061
16e9019e
SM
10622021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 * target.h (baud_rate, serial_parity): Move declarations...
1065 * serial.h: ... here.
1066 * main.c: Include serial.h.
1067 * serial.c (baud_rate, serial_parity): Update doc.
1068
b2f2ae0d
SM
10692021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * top.c (pre_init_ui_hook): Remove.
1072
5291fe3c
SP
10732021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1074
1075 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
1076 (aarch64_vnv_type): Add "bf" type in h field of v registers.
1077 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
1078 * features/aarch64-fpu.xml: Add bfloat16 type.
1079
ce38f5ed
AB
10802021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
1083
7c654b71
AB
10842021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * f-exp.y (dot_ops): Rename to...
1087 (fortran_operators): ...this. Add a header comment. Add symbol
1088 based operators.
1089 (yylex): Update to use fortran_operators not dot_ops. Remove
1090 special handling for '**', this is now included in
1091 fortran_operators.
1092
c6185dce
SM
10932021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1094
1095 * arch/aarch64-insn.h (aarch64_debug_printf): New.
1096 * arch/aarch64-insn.c: Use aarch64_debug_printf.
1097 * aarch64-tdep.c: Use aarch64_debug_printf.
1098
eef401dc
SM
10992021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1100
1101 * solib-aix.c (solib_aix_debug_printf): New, use throughout
1102 file.
1103
062eaacb
SM
11042021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
1105
1106 * jit.c (jit_debug): Change type to bool.
1107 (_initialize_jit): Adjust.
1108
54585eee
TT
11092021-01-09 Tom Tromey <tom@tromey.com>
1110
1111 PR compile/23672
1112 * compile/compile.c (compile_to_object): Avoid crash when
1113 osabi_triplet_regexp returns NULL.
1114
bc167b6b
TT
11152021-01-09 Tom Tromey <tom@tromey.com>
1116
1117 * tracepoint.h (class collection_list) <append_exp>: Take a
1118 std::string.
1119 * tracepoint.c (collection_list::append_exp): Take a std::string.
1120 (encode_actions_1): Update.
1121
8fc48b79
TT
11222021-01-08 Tom Tromey <tromey@adacore.com>
1123
1124 * parse.c (parse_expression): Add void_context_p parameter. Use
1125 parse_exp_in_context.
1126 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
1127 parse_expression.
1128 (print_command, call_command): Update.
1129 * expression.h (parse_expression): Add void_context_p parameter.
1130
3c8c6de2
AB
11312021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 * value.c (set_value_component_location): Adjust the VALUE_LVAL
1134 for internalvar components that have a dynamic location.
1135
1940319c
TV
11362021-01-08 Tom de Vries <tdevries@suse.de>
1137
1138 PR gdb/26881
1139 * breakpoint.c (create_exception_master_breakpoint_probe)
1140 (create_exception_master_breakpoint_hook): Factor out
1141 of ...
1142 (create_exception_master_breakpoint): ... here. Only try to install
1143 the master exception breakpoint in objfile.debug using the
1144 _Unwind_DebugHook method, if the install using probes in objfile
1145 failed.
1146
e3436813
AB
11472021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
1148
1149 * f-lang.c (fortran_value_subarray): Call value_from_component.
1150
e904f56d
MF
11512021-01-07 Mike Frysinger <vapier@gentoo.org>
1152
1153 * remote-sim.c: Include memory-map.h.
1154 (gdbsim_target): Define memory_map override.
1155 (gdbsim_target::memory_map): Define.
1156
959d6a67
TT
11572021-01-07 Tom Tromey <tromey@adacore.com>
1158
1159 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
1160
d4813f10
TT
11612021-01-07 Tom Tromey <tromey@adacore.com>
1162
1163 * ada-lang.c (add_component_interval): Start loop using vector's
1164 updated size.
1165
b49180ac
TT
11662021-01-06 Tom Tromey <tromey@adacore.com>
1167
1168 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
1169 Do not cast result.
1170 * valarith.c (fixed_point_binop): Handle multiplication
1171 and division specially.
1172 * valops.c (value_to_gdb_mpq): New function.
1173 (value_cast_to_fixed_point): Use it.
1174
55195361
HD
11752021-01-05 Hannes Domani <ssbssa@yahoo.de>
1176
1177 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1178 Call wnoutrefresh instead of tui_win_info::refresh_window.
1179
1b6d4bb2
HD
11802021-01-05 Hannes Domani <ssbssa@yahoo.de>
1181
1182 * tui/tui-source.c (tui_source_window::show_line_number):
1183 Redraw second space after line number.
1184
b5ff370e
HD
11852021-01-05 Hannes Domani <ssbssa@yahoo.de>
1186
1187 PR tui/26927
1188 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1189 Fix source pad size in prefresh.
1190 (tui_source_window_base::show_source_content): Grow source pad
1191 if necessary.
1192
c68ea49f
MF
11932021-01-04 Mike Frysinger <vapier@gentoo.org>
1194
1195 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
1196 (bfin_frame_align): Use align_down.
1197
e4ad960a
TV
11982021-01-04 Tom de Vries <tdevries@suse.de>
1199
1200 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
1201 terminators that do not terminate anything.
1202
3ec3145c
SM
12032021-01-04 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * debug.c (debug_print_depth): New.
1206 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
1207 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
1208 * infrun.c (start_step_over): Use
1209 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1210 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
1211 INFRUN_SCOPED_DEBUG_START_END.
1212 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
1213
e71daf80
SM
12142021-01-04 Simon Marchi <simon.marchi@efficios.com>
1215
1216 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
1217
335709bc
SM
12182021-01-04 Simon Marchi <simon.marchi@efficios.com>
1219
1220 * utils.c (vfprintf_unfiltered): Print timestamp only when
1221 previous debug output ended with a newline.
1222
098caef4
LM
12232021-01-04 Luis Machado <luis.machado@linaro.org>
1224
1225 Update all users of trad_frame_saved_reg to use the new member
1226 functions.
1227
1228 Remote all struct keywords from declarations of trad_frame_saved_reg
1229 types, except on forward declarations.
1230
1231 * aarch64-tdep.c: Update.
1232 * alpha-mdebug-tdep.c: Update.
1233 * alpha-tdep.c: Update.
1234 * arc-tdep.c: Update.
1235 * arm-tdep.c: Update.
1236 * avr-tdep.c: Update.
1237 * cris-tdep.c: Update.
1238 * csky-tdep.c: Update.
1239 * frv-tdep.c: Update.
1240 * hppa-linux-tdep.c: Update.
1241 * hppa-tdep.c: Update.
1242 * hppa-tdep.h: Update.
1243 * lm32-tdep.c: Update.
1244 * m32r-linux-tdep.c: Update.
1245 * m32r-tdep.c: Update.
1246 * m68hc11-tdep.c: Update.
1247 * mips-tdep.c: Update.
1248 * moxie-tdep.c: Update.
1249 * riscv-tdep.c: Update.
1250 * rs6000-tdep.c: Update.
1251 * s390-linux-tdep.c: Update.
1252 * s390-tdep.c: Update.
1253 * score-tdep.c: Update.
1254 * sparc-netbsd-tdep.c: Update.
1255 * sparc-sol2-tdep.c: Update.
1256 * sparc64-fbsd-tdep.c: Update.
1257 * sparc64-netbsd-tdep.c: Update.
1258 * sparc64-obsd-tdep.c: Update.
1259 * sparc64-sol2-tdep.c: Update.
1260 * tilegx-tdep.c: Update.
1261 * v850-tdep.c: Update.
1262 * vax-tdep.c: Update.
1263
1264 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
1265 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
1266
1267 * trad-frame.c: Update.
1268 Remove TF_REG_* enum.
1269 (trad_frame_alloc_saved_regs): Add a static assertion to check for
1270 a trivially-constructible struct.
1271 (trad_frame_reset_saved_regs): Adjust to use member function.
1272 (trad_frame_value_p): Likewise.
1273 (trad_frame_addr_p): Likewise.
1274 (trad_frame_realreg_p): Likewise.
1275 (trad_frame_value_bytes_p): Likewise.
1276 (trad_frame_set_value): Likewise.
1277 (trad_frame_set_realreg): Likewise.
1278 (trad_frame_set_addr): Likewise.
1279 (trad_frame_set_unknown): Likewise.
1280 (trad_frame_set_value_bytes): Likewise.
1281 (trad_frame_get_prev_register): Likewise.
1282 * trad-frame.h: Update.
1283 (trad_frame_saved_reg_kind): New enum.
1284 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
1285 <m_kind, m_reg>: New member fields.
1286 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
1287 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
1288 <is_addr, is_unknown, is_value_bytes>: New member functions.
1289
9898e882
SM
12902021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * target-float.c: Fix typos.
1293
b66b4e65
HD
12942021-01-02 Hannes Domani <ssbssa@yahoo.de>
1295
1296 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
1297
b5b5650a
JB
12982021-01-01 Joel Brobecker <brobecker@adacore.com>
1299
1300 * gdbarch.sh: Update copyright year range.
1301
3666a048
JB
13022021-01-01 Joel Brobecker <brobecker@adacore.com>
1303
1304 Update copyright year range in copyright header of all GDB files.
1305
ff7e39b6
JB
13062021-01-01 Joel Brobecker <brobecker@adacore.com>
1307
1308 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
1309 to the list of directories to update.
1310
2b47c078
JB
13112021-01-01 Joel Brobecker <brobecker@adacore.com>
1312
1313 * top.c (print_gdb_version): Update copyright year.
1314
476923f1 13152021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 1316
476923f1 1317 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 1318
476923f1 1319For older changes see ChangeLog-2020.
c906108c
SS
1320\f
1321Local Variables:
1322mode: change-log
1323left-margin: 8
1324fill-column: 74
1325version-control: never
57da7796 1326coding: utf-8
c906108c 1327End: