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