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