]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Introduce ada_value_print_ptr
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
416595d6
TT
12020-03-13 Tom Tromey <tom@tromey.com>
2
3 * ada-valprint.c (ada_value_print_ptr): New function.
4 (ada_value_print_1): Use it.
5
5b5e15ec
TT
62020-03-13 Tom Tromey <tom@tromey.com>
7
8 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9 call common_val_print.
10 (ada_val_print_1): Update.
11 (ada_value_print_1): New function.
12 (ada_value_print_inner): Rewrite.
13
fbf54e75
TT
142020-03-13 Tom Tromey <tom@tromey.com>
15
16 * cp-valprint.c (cp_print_value_fields): Update.
17 (cp_print_value): New function.
18
64b653ca
TT
192020-03-13 Tom Tromey <tom@tromey.com>
20
21 * m2-valprint.c (m2_value_print_inner): Use
22 cp_print_value_fields.
23 * cp-valprint.c (cp_print_value_fields): New function.
24 * c-valprint.c (c_value_print_struct): New function.
25 (c_value_print_inner): Use c_value_print_struct.
26 * c-lang.h (cp_print_value_fields): Declare.
27
6999f067
TT
282020-03-13 Tom Tromey <tom@tromey.com>
29
30 * c-valprint.c (c_value_print_array): New function.
31 (c_value_print_inner): Use it.
32
ce80b8bd
TT
332020-03-13 Tom Tromey <tom@tromey.com>
34
35 * c-valprint.c (c_value_print_memberptr): New function.
36 (c_value_print_inner): Use it.
37
2faac269
TT
382020-03-13 Tom Tromey <tom@tromey.com>
39
40 * c-valprint.c (c_value_print_int): New function.
41 (c_value_print_inner): Use it.
42
da3e2c29
TT
432020-03-13 Tom Tromey <tom@tromey.com>
44
45 * c-valprint.c (c_value_print_ptr): New function.
46 (c_value_print_inner): Use it.
47
50836231
TT
482020-03-13 Tom Tromey <tom@tromey.com>
49
50 * c-valprint.c (c_value_print_inner): Rewrite.
51
4f412b6e
TT
522020-03-13 Tom Tromey <tom@tromey.com>
53
54 * valprint.c (generic_value_print_complex): New function.
55 (generic_value_print): Use it.
56
f5354008
TT
572020-03-13 Tom Tromey <tom@tromey.com>
58
59 * valprint.c (generic_val_print_float): Don't call
60 val_print_scalar_formatted.
61 (generic_val_print, generic_value_print): Update.
62
3eec3b05
TT
632020-03-13 Tom Tromey <tom@tromey.com>
64
65 * valprint.c (generic_value_print_char): New function
66 (generic_value_print): Use it.
67
fdddfccb
TT
682020-03-13 Tom Tromey <tom@tromey.com>
69
70 * valprint.c (generic_value_print_int): New function.
71 (generic_value_print): Use it.
72
6dde7521
TT
732020-03-13 Tom Tromey <tom@tromey.com>
74
75 * valprint.c (generic_value_print_bool): New function.
76 (generic_value_print): Use it.
77
4112d2e6
TT
782020-03-13 Tom Tromey <tom@tromey.com>
79
80 * valprint.c (generic_val_print_func): Simplify.
81 (generic_val_print, generic_value_print): Update.
82
65786af6
TT
832020-03-13 Tom Tromey <tom@tromey.com>
84
85 * valprint.c (generic_val_print_flags): Remove.
86 (generic_val_print, generic_value_print): Update.
87 (val_print_type_code_flags): Add original_value parameter.
88
40f3ce18
TT
892020-03-13 Tom Tromey <tom@tromey.com>
90
91 * valprint.c (generic_val_print): Update.
92 (generic_value_print): Update.
93 * valprint.c (generic_val_print_enum): Don't call
94 val_print_scalar_formatted.
95
2a5b130b
TT
962020-03-13 Tom Tromey <tom@tromey.com>
97
98 * valprint.c (generic_value_print): Call generic_value_print_ptr.
99 * valprint.c (generic_value_print_ptr): New function.
100
abc66ce9
TT
1012020-03-13 Tom Tromey <tom@tromey.com>
102
103 * valprint.c (generic_value_print): Rewrite.
104
07a32858
TT
1052020-03-13 Tom Tromey <tom@tromey.com>
106
107 * p-valprint.c (pascal_object_print_value_fields)
108 (pascal_object_print_value): New functions.
109
64d64d3a
TT
1102020-03-13 Tom Tromey <tom@tromey.com>
111
112 * p-valprint.c (pascal_value_print_inner): Rewrite.
113
6a95a1f5
TT
1142020-03-13 Tom Tromey <tom@tromey.com>
115
116 * f-valprint.c (f_value_print_innner): Rewrite.
117
59fcdac6
TT
1182020-03-13 Tom Tromey <tom@tromey.com>
119
120 * m2-valprint.c (m2_print_unbounded_array): New overload.
121 (m2_print_unbounded_array): Update.
122 (m2_print_array_contents): Take a struct value.
123 (m2_value_print_inner): Rewrite.
124
d133c3e1
TT
1252020-03-13 Tom Tromey <tom@tromey.com>
126
127 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
128 (d_value_print_inner): New function.
129 * d-lang.h (d_value_print_inner): Declare.
130 * d-lang.c (d_language_defn): Use d_value_print_inner.
131
23b0f06b
TT
1322020-03-13 Tom Tromey <tom@tromey.com>
133
134 * go-valprint.c (go_value_print_inner): New function.
135 * go-lang.h (go_value_print_inner): Declare.
136 * go-lang.c (go_language_defn): Use go_value_print_inner.
137
5f56f7cb
TT
1382020-03-13 Tom Tromey <tom@tromey.com>
139
140 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
141 API.
142 (rust_val_print): Rewrite.
143 (rust_value_print_inner): New function, from rust_val_print.
144 (rust_language_defn): Use rust_value_print_inner.
145
26792ee0
TT
1462020-03-13 Tom Tromey <tom@tromey.com>
147
148 * ada-valprint.c (ada_value_print_inner): New function.
149 * ada-lang.h (ada_value_print_inner): Declare.
150 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
151
24051bbe
TT
1522020-03-13 Tom Tromey <tom@tromey.com>
153
154 * f-valprint.c (f_value_print_innner): New function.
155 * f-lang.h (f_value_print_innner): Declare.
156 * f-lang.c (f_language_defn): Use f_value_print_innner.
157
c0941be6
TT
1582020-03-13 Tom Tromey <tom@tromey.com>
159
160 * p-valprint.c (pascal_value_print_inner): New function.
161 * p-lang.h (pascal_value_print_inner): Declare.
162 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
163
62c4663d
TT
1642020-03-13 Tom Tromey <tom@tromey.com>
165
166 * m2-valprint.c (m2_value_print_inner): New function.
167 * m2-lang.h (m2_value_print_inner): Declare.
168 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
169
62182190
TT
1702020-03-13 Tom Tromey <tom@tromey.com>
171
172 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
173 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
174 * c-valprint.c (c_value_print_inner): New function.
175 * c-lang.h (c_value_print_inner): Declare.
176 * c-lang.c (c_language_defn, cplus_language_defn)
177 (asm_language_defn, minimal_language_defn): Use
178 c_value_print_inner.
179
1e592a8a
TT
1802020-03-13 Tom Tromey <tom@tromey.com>
181
182 * p-valprint.c (pascal_object_print_value_fields): Now static.
183 * p-lang.h (pascal_object_print_value_fields): Don't declare.
184
7fe471e9
TT
1852020-03-13 Tom Tromey <tom@tromey.com>
186
187 * c-valprint.c (c_val_print_array): Simplify.
188
d121c6ce
TT
1892020-03-13 Tom Tromey <tom@tromey.com>
190
191 * valprint.c (value_print_array_elements): New function.
192 * valprint.h (value_print_array_elements): Declare.
193
4dba70ee
TT
1942020-03-13 Tom Tromey <tom@tromey.com>
195
196 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
197 * mips-tdep.c (mips_print_register): Use
198 value_print_scalar_formatted.
199
4f9ae810
TT
2002020-03-13 Tom Tromey <tom@tromey.com>
201
202 * valprint.h (value_print_scalar_formatted): Declare.
203 * valprint.c (value_print_scalar_formatted): New function.
204
156bfec9
TT
2052020-03-13 Tom Tromey <tom@tromey.com>
206
207 * valprint.h (generic_value_print): Declare.
208 * valprint.c (generic_value_print): New function.
209
2b4e573d
TT
2102020-03-13 Tom Tromey <tom@tromey.com>
211
212 * valprint.c (do_val_print): Call la_value_print_inner, if
213 available.
214 * rust-lang.c (rust_language_defn): Update.
215 * p-lang.c (pascal_language_defn): Update.
216 * opencl-lang.c (opencl_language_defn): Update.
217 * objc-lang.c (objc_language_defn): Update.
218 * m2-lang.c (m2_language_defn): Update.
219 * language.h (struct language_defn) <la_value_print_inner>: New
220 member.
221 * language.c (unknown_language_defn, auto_language_defn): Update.
222 * go-lang.c (go_language_defn): Update.
223 * f-lang.c (f_language_defn): Update.
224 * d-lang.c (d_language_defn): Update.
225 * c-lang.c (c_language_defn, cplus_language_defn)
226 (asm_language_defn, minimal_language_defn): Update.
227 * ada-lang.c (ada_language_defn): Update.
228
a1f6a07c
TT
2292020-03-13 Tom Tromey <tom@tromey.com>
230
231 * c-valprint.c (c_value_print): Use common_val_print.
232
410cf315
TT
2332020-03-13 Tom Tromey <tom@tromey.com>
234
235 * cp-valprint.c (cp_print_static_field): Use common_val_print.
236
72a45c93
TT
2372020-03-13 Tom Tromey <tom@tromey.com>
238
239 * f-valprint.c (f77_print_array_1, f_val_print): Use
240 common_val_print.
241
040f66bd
TT
2422020-03-13 Tom Tromey <tom@tromey.com>
243
244 * riscv-tdep.c (riscv_print_one_register_info): Use
245 common_val_print.
246
a6e05a6c
TT
2472020-03-13 Tom Tromey <tom@tromey.com>
248
249 * mi/mi-main.c (output_register): Use common_val_print.
250
3444c526
TT
2512020-03-13 Tom Tromey <tom@tromey.com>
252
253 * infcmd.c (default_print_one_register_info): Use
254 common_val_print.
255
c2a44efe
TT
2562020-03-13 Tom Tromey <tom@tromey.com>
257
258 * valprint.h (common_val_print_checked): Declare.
259 * valprint.c (common_val_print_checked): New function.
260 * stack.c (print_frame_arg): Use common_val_print_checked.
261
b0c26e99
TT
2622020-03-13 Tom Tromey <tom@tromey.com>
263
264 * valprint.c (do_val_print): New function, from val_print.
265 (val_print): Use do_val_print.
266 (common_val_print): Use do_val_print.
267
ce3acbe9
TT
2682020-03-13 Tom Tromey <tom@tromey.com>
269
270 * valprint.c (value_print): Use scoped_value_mark.
271
96c7f873
TV
2722020-03-13 Tom de Vries <tdevries@suse.de>
273
274 PR symtab/25646
275 * psymtab.c (partial_symtab::partial_symtab): Don't set
276 globals_offset and statics_offset. Push element onto
277 current_global_psymbols and current_static_psymbols stacks.
278 (concat): New function.
279 (end_psymtab_common): Set globals_offset and statics_offset. Pop
280 element from current_global_psymbols and current_static_psymbols
281 stacks. Concat popped elements to global_psymbols and
282 static_symbols.
283 (add_psymbol_to_list): Use current_global_psymbols and
284 current_static_psymbols stacks.
285 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
286 current_static_psymbols fields.
287
6ba0a321
CB
2882020-03-12 Christian Biesinger <cbiesinger@google.com>
289
290 * corelow.c (sniff_core_bfd): Remove.
291 (class core_target) <m_core_vec>: Remove.
292 (core_target::core_target): Update.
293 (core_file_fns): Remove.
294 (deprecated_add_core_fns): Remove.
295 (default_core_sniffer): Remove.
296 (sniff_core_bfd): Remove.
297 (default_check_format): Remove.
298 (gdb_check_format): Remove.
299 (core_target_open): Update.
300 (core_target::get_core_register_section): Update.
301 (get_core_registers_cb): Update.
302 (core_target::fetch_registers): Update.
303 * gdbcore.h (struct core_fns): Remove.
304 (deprecated_add_core_fns): Remove.
305 (default_core_sniffer): Remove.
306 (default_check_format): Remove.
307
227031b2
TT
3082020-03-12 Tom Tromey <tom@tromey.com>
309
310 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
311 CORE_ADDR.
312 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
313
53807e9f
TT
3142020-03-12 Tom Tromey <tom@tromey.com>
315
316 * remote.c (remote_target::download_tracepoint)
317 (remote_target::enable_tracepoint)
318 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
319 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
320 sprintf_vma.
321
64f25102
TT
3222020-03-12 Tom Tromey <tom@tromey.com>
323
324 * symfile-mem.c: Update CORE_ADDR size assert.
325
272cd5a3
SM
3262020-03-12 Simon Marchi <simon.marchi@efficios.com>
327
328 * selftest.m4: Move to gdbsupport/.
329 * acinclude.m4: Update path to selftest.m4.
330
74cd3f9d
SM
3312020-03-12 Simon Marchi <simon.marchi@efficios.com>
332
333 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
334 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
335 gdbarch-selfselftests.c and selftest-arch.c.
336 (SUBDIR_UNITTESTS_OBS): Rename to...
337 (SELFTESTS_OBS): ... this.
338 (COMMON_SFILES): Remove disasm-selftests.c and
339 gdbarch-selftests.c.
340 * configure.ac: Don't add selftest-arch.{c,o} to
341 CONFIG_{SRCS,OBS}.
342 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
343 preprocessor conditions.
344
db6878ac
SM
3452020-03-12 Simon Marchi <simon.marchi@efficios.com>
346
347 * configure.ac: Don't source bfd/development.sh.
348 * selftest.m4: Modify comment.
349 * configure: Re-generate.
350
4d696a5c
SM
3512020-03-12 Simon Marchi <simon.marchi@efficios.com>
352
353 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
354 not "true" or "false".
355 * configure: Re-generate.
356
8dd8e1c7
CB
3572020-03-12 Christian Biesinger <cbiesinger@google.com>
358
359 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
360 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
361 renamed to arm_nbsd_supply_gregset.
362 (fetch_register): Update to call arm_nbsd_supply_gregset.
363 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
364 (arm_netbsd_nat_target::fetch_registers): Update.
365 (fetch_elfcore_registers): Removed.
366 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
367 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
368 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
369 not require NetBSD system headers.
370 (arm_nbsd_regset): New struct.
371 (arm_nbsd_iterate_over_regset_sections): New function.
372 (arm_netbsd_init_abi_common): Updated to call
373 set_gdbarch_iterate_over_regset_sections.
374 * arm-nbsd-tdep.h: New file.
375
dd69bf7a
KB
3762020-03-11 Kevin Buettner <kevinb@redhat.com>
377
378 * symtab.c (find_pc_sect_line): Add check which prevents infinite
379 recursion.
380
a0761e34
SM
3812020-03-11 Simon Marchi <simon.marchi@efficios.com>
382
383 * configure: Re-generate.
384
e7a82140
TT
3852020-03-11 Tom Tromey <tromey@adacore.com>
386
387 * ada-typeprint.c (print_choices): Fix comment.
388
dcc050c8
AB
3892020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
392 previous item in the list, when the list has no items.
393
1c33af77
TV
3942020-03-11 Tom de Vries <tdevries@suse.de>
395
396 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
397 PROP_LOCLIST handling code.
398
8c95582d
AB
3992020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * buildsym-legacy.c (record_line): Pass extra parameter to
402 record_line.
403 * buildsym.c (buildsym_compunit::record_line): Take an extra
404 parameter, reduce duplication in the line table, and record the
405 is_stmt flag in the line table.
406 * buildsym.h (buildsym_compunit::record_line): Add extra
407 parameter.
408 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
409 non-statement lines.
410 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
411 this to the symtab builder.
412 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
413 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
414 through to dwarf_record_line_1.
415 * infrun.c (process_event_stop_test): When stepping, don't stop at
416 a non-statement instruction, and only refresh the step info when
417 we land in the middle of a line's range. Also add an extra
418 comment.
419 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
420 field.
421 * record-btrace.c (btrace_find_line_range): Only record lines
422 marked as is-statement.
423 * stack.c (frame_show_address): Show the frame address if we are
424 in a non-statement sal.
425 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
426 (maintenance_print_one_line_table): Print a header for the is_stmt
427 column, and include is_stmt information in the output.
428 * symtab.c (find_pc_sect_line): Find lines marked as statements in
429 preference to non-statements.
430 (find_pcs_for_symtab_line): Prefer is-statement entries.
431 (find_line_common): Likewise.
432 * symtab.h (struct linetable_entry): Add is_stmt field.
433 (struct symtab_and_line): Likewise.
434 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
435 arranging the line table.
436
e4003a34
TV
4372020-03-07 Tom de Vries <tdevries@suse.de>
438
439 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
440 DIE.
441
e8932576
TT
4422020-03-07 Tom Tromey <tom@tromey.com>
443
444 * valops.c (value_literal_complex): Remove obsolete comment.
445 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
446 comment.
447
29734269
SM
4482020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * infrun.h: Forward-declare thread_info.
451 (set_step_info): Add thread_info parameter, add doc.
452 * infrun.c (set_step_info): Add thread_info parameter, move doc
453 to header.
454 * infrun.c (process_event_stop_test): Pass thread to
455 set_step_info call.
456 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
457 set_step_info.
458 (prepare_one_step): Add thread_info parameter, pass it to
459 set_step_frame and prepare_one_step (recursive) call.
460 (step_1): Pass thread to prepare_one_step call.
461 (step_command_fsm::should_stop): Pass thread to
462 prepare_one_step.
463 (until_next_fsm): Pass thread to set_step_frame call.
464 (finish_command): Pass thread to set_step_info call.
465
b7d64b29
HD
4662020-03-06 Hannes Domani <ssbssa@yahoo.de>
467
468 * windows-tdep.c (windows_solib_create_inferior_hook):
469 Check if inferior is running.
470
09f2921c
TV
4712020-03-06 Tom de Vries <tdevries@suse.de>
472
473 * NEWS: Fix "the the".
474 * ctfread.c: Same.
475
fd760e79
TV
4762020-03-06 Tom de Vries <tdevries@suse.de>
477
478 * psymtab.c (psymtab_to_symtab): Don't print "done.".
479
20ea4a60
AB
4802020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * .dir-locals.el: Add a comment referencing the other copies of
483 this file.
484
0afbabf0
JB
4852020-03-05 John Baldwin <jhb@FreeBSD.org>
486
487 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
488 psargs.
489
842806cb
TBA
4902020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
491
492 * .gitattributes: New file.
493
be1e3d3e
TT
4942020-03-04 Tom Tromey <tom@tromey.com>
495
496 * symmisc.c (print_symbol_bcache_statistics)
497 (print_objfile_statistics): Update.
498 * symfile.c (allocate_symtab): Use intern.
499 * psymtab.c (partial_symtab::partial_symtab): Use intern.
500 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
501 macro_cache>: Remove.
502 <string_cache>: New member.
503 (struct objfile) <intern>: New methods.
504 * elfread.c (elf_symtab_read): Use intern.
505 * dwarf2/read.c (fixup_go_packaging): Intern package name.
506 (dwarf2_compute_name, dwarf2_physname)
507 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
508 names.
509 (guess_partial_die_structure_name): Update.
510 (partial_die_info::fixup): Intern name.
511 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
512 name.
513 (dwarf2_name): Intern name. Update.
514 * buildsym.c (buildsym_compunit::get_macro_table): Use
515 string_cache.
516
4e7625fd
TT
5172020-03-04 Tom Tromey <tom@tromey.com>
518
519 * jit.c (bfd_open_from_target_memory): Make "target" const.
520 * corefile.c (gnutarget): Now const.
521 * gdbcore.h (gnutarget): Now const.
522
46f9f931
HD
5232020-03-04 Hannes Domani <ssbssa@yahoo.de>
524
525 * NEWS: Mention support for WOW64 processes.
526 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
527 (amd64_windows_segment_register_p): Remove static.
528 (_initialize_amd64_windows_nat): Update.
529 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
530 * i386-windows-nat.c (context_offset): Update.
531 (i386_mappings): Rename and remove static.
532 (i386_windows_segment_register_p): Remove static.
533 (_initialize_i386_windows_nat): Update.
534 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
535 (STATUS_WX86_SINGLE_STEP): New macro.
536 (EnumProcessModulesEx): New macro.
537 (Wow64SuspendThread): New macro.
538 (Wow64GetThreadContext): New macro.
539 (Wow64SetThreadContext): New macro.
540 (Wow64GetThreadSelectorEntry): New macro.
541 (windows_set_context_register_offsets): Add static.
542 (windows_set_segment_register_p): Likewise.
543 (windows_add_thread): Adapt for WOW64 processes.
544 (windows_fetch_one_register): Likewise.
545 (windows_nat_target::fetch_registers): Likewise.
546 (windows_store_one_register): Likewise.
547 (display_selector): Likewise.
548 (display_selectors): Likewise.
549 (handle_exception): Likewise.
550 (windows_continue): Likewise.
551 (windows_nat_target::resume): Likewise.
552 (windows_add_all_dlls): Likewise.
553 (do_initial_windows_stuff): Likewise.
554 (windows_nat_target::attach): Likewise.
555 (windows_get_exec_module_filename): Likewise.
556 (windows_nat_target::create_inferior): Likewise.
557 (windows_xfer_siginfo): Likewise.
558 (_initialize_loadable): Initialize Wow64SuspendThread,
559 Wow64GetThreadContext, Wow64SetThreadContext,
560 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
561 * windows-nat.h (windows_set_context_register_offsets):
562 Remove declaration.
563 (windows_set_segment_register_p): Likewise.
564 (i386_windows_segment_register_p): Add declaration.
565 (amd64_windows_segment_register_p): Likewise.
566
440cf44e
LM
5672020-03-04 Luis Machado <luis.machado@linaro.org>
568
569 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
570 in "info registers" for AArch64/ARM.
571
572 The change caused "info registers" to not print GPR's.
573
574 gdb/ChangeLog:
575
576 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
577
578 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
579 when reg->group is empty and reggroup is not.
580
1009d92f
TT
5812020-03-03 Tom Tromey <tromey@adacore.com>
582
583 * dwarf2/frame.c (struct dwarf2_frame_cache)
584 <checked_tailcall_bottom, entry_cfa_sp_offset,
585 entry_cfa_sp_offset_p>: Remove members.
586 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
587 (dwarf2_frame_prev_register): Don't call
588 dwarf2_tailcall_sniffer_first.
589 (dwarf2_append_unwinders): Don't append tailcall unwinder.
590 * frame-unwind.c (add_unwinder): New fuction.
591 (frame_unwind_init): Use it. Add tailcall unwinder.
592
5e5d66b6
AB
5932020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
594 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
595
596 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
597 value should be printed as true.
598
584cf46d
HD
5992020-03-03 Hannes Domani <ssbssa@yahoo.de>
600
601 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
602 (windows_init_abi): Set and use windows_so_ops.
603
7b973adc
SDJ
6042020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
605
606 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
607 when verifying if dealing with a convenience variable.
608
bb7b70ab
LM
6092020-03-03 Luis Machado <luis.machado@linaro.org>
610
611 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
612
9822cb57
SM
6132020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * infrun.c (gdbarch_supports_displaced_stepping): New.
616 (use_displaced_stepping): Break up conditions in smaller pieces.
617 Use gdbarch_supports_displaced_stepping.
618 (displaced_step_prepare_throw): Use
619 gdbarch_supports_displaced_stepping.
620
63e163f2
AB
6212020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * NEWS: Mention new behaviour of the history filename.
624 * top.c (write_history_p): Add comment.
625 (show_write_history_p): Add header comment, give a different
626 message when history writing is on, but the history filename is
627 empty.
628 (history_filename): Add comment.
629 (history_filename_empty): New function.
630 (show_history_filename): Add header comment, give a different
631 message when the filename is empty.
632 (init_history): Compare history_filename against nullptr, and only
633 read history if the filename is not empty.
634 (set_history_filename): Add header comment, and only make
635 non-empty filenames absolute.
636 (init_main): Make the filename argument to 'set history filename'
637 optional.
638
81b86b97
CB
6392020-03-02 Christian Biesinger <cbiesinger@google.com>
640
641 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
642 (arm_supply_vfpregset): ...this, and update to use VFP registers.
643 (fetch_fp_register): Update.
644 (fetch_fp_regs): Update.
645 (store_fp_register): Update.
646 (store_fp_regs): Update.
647 (arm_netbsd_nat_target::read_description): New function.
648 (fetch_elfcore_registers): Update.
649
24ed6739
AB
6502020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
653 general_thread if the stop reply is missing a thread-id.
654 (remote_target::process_stop_reply): Use the first non-exited
655 thread if the target didn't pass a thread-id.
656 * infrun.c (do_target_wait): Move call to
657 switch_to_inferior_no_thread to ....
658 (do_target_wait_1): ... here.
659
a84bb2a0
JT
6602020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
661
662 * debuginfod-support.c: Include defs.h first.
663
658dadf0
TV
6642020-02-28 Tom de Vries <tdevries@suse.de>
665
666 * symfile.c (set_initial_language): Use default language for lookup.
667
4ebe4877
SM
6682020-02-28 Simon Marchi <simon.marchi@efficios.com>
669
670 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
671 reader variable, pass `this` to read_cutu_die_from_dwo.
672
e5da1139
AM
6732020-02-27 Aaron Merey <amerey@redhat.com>
674
675 * source.c (open_source_file): Check for nullptr when computing
676 srcpath.
677
317f7127
TT
6782020-02-27 Tom Tromey <tromey@adacore.com>
679
680 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
681 member.
682 (dwarf2_add_field): Don't update nfields.
683 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
684
3104d9ee
AB
6852020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
688 abs.
689
b83470bf
TT
6902020-02-26 Tom Tromey <tom@tromey.com>
691
692 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
693 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
694 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
695 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
696 per_cu_data.
697
edfe0a0c
TT
6982020-02-26 Tom Tromey <tom@tromey.com>
699
700 * dwarf2/index-write.c (psym_index_map): Change type.
701 (add_address_entry_worker, write_one_signatured_type)
702 (recursively_count_psymbols, recursively_write_psymbols)
703 (class debug_names, psyms_seen_size, write_gdbindex)
704 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
705
0d79cdc4
AM
7062020-02-26 Aaron Merey <amerey@redhat.com>
707
708 * Makefile.in: Handle optional debuginfod support.
709 * NEWS: Update.
710 * README: Add --with-debuginfod summary.
711 * config.in: Regenerate.
712 * configure: Regenerate.
713 * configure.ac: Handle optional debuginfod support.
714 * debuginfod-support.c: debuginfod helper functions.
715 * debuginfod-support.h: Ditto.
716 * doc/gdb.texinfo: Add --with-debuginfod to configure options
717 summary.
718 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
719 when a dwz file cannot be found.
720 * elfread.c (elf_symfile_read): Query debuginfod servers when a
721 debuginfo file cannot be found.
722 * source.c (open_source_file): Query debuginfod servers when a
723 source file cannot be found.
724 * top.c (print_gdb_configuration): Include
725 --{with,without}-debuginfod in the output.
726
b65ce565
JG
7272020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
728
729 * thread.c (thr_try_catch_cmd): Print thread name.
730
d4c9a4f8
SM
7312020-02-26 Simon Marchi <simon.marchi@efficios.com>
732
733 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
734 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
735 dwarf2_fetch_die_type_sect_off): Move to...
736 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
737 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
738 dwarf2_fetch_die_type_sect_off): ... here.
739 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
740 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
741 dwarf2_fetch_die_type_sect_off): Move doc to header file.
742
0dce4280
TV
7432020-02-26 Tom de Vries <tdevries@suse.de>
744
745 PR gdb/25603
746 * symfile.c (set_initial_language): Exit-early if
747 language_mode == language_mode_manual.
748
450a1bfc
SM
7492020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
752 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
753 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
754
9e80cfa1
AB
7552020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * gdbtypes.c (create_array_type_with_stride): Handle negative
758 array strides.
759 * valarith.c (value_subscripted_rvalue): Likewise.
760
09624f1f
LM
7612020-02-25 Luis Machado <luis.machado@linaro.org>
762
763 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
764
8cb5117c
SM
7652020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * loc.h (dwarf2_get_die_type): Move to...
768 * read.h (dwarf2_get_die_type): ... here.
769 * read.c (dwarf2_get_die_type): Move doc to header.
770
c325c44e
JB
7712020-02-25 Joel Brobecker <brobecker@adacore.com>
772
773 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
774 'gnulib/Makefile.in' to the list.
775
4ac93832
TT
7762020-02-24 Tom Tromey <tom@tromey.com>
777
778 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
779 Remove.
780 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
781 XOBNEWVEC.
782
197400e8
TT
7832020-02-24 Tom Tromey <tom@tromey.com>
784
785 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
786 New method.
787 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
788 (dw2_do_instantiate_symtab, dw2_get_file_names)
789 (build_type_psymtab_dependencies, load_full_type_unit): Update.
790
76935768
TT
7912020-02-24 Tom Tromey <tom@tromey.com>
792
793 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
794 make_scoped_restore.
795 (dwarf2_psymtab::read_symtab): Don't clear
796 reading_partial_symbols.
797
a88ef40d
TV
7982020-02-24 Tom de Vries <tdevries@suse.de>
799
800 PR gdb/25592
801 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
802
c9af6521
TV
8032020-02-24 Tom de Vries <tdevries@suse.de>
804
805 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
806 commands layout next/prev/regs.
807
5707a07a
TT
8082020-02-22 Tom Tromey <tom@tromey.com>
809
810 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
811 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
812
3b0fb49e
TT
8132020-02-22 Tom Tromey <tom@tromey.com>
814
815 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
816
283be8bf
TT
8172020-02-22 Tom Tromey <tom@tromey.com>
818
819 * tui/tui-win.c (_initialize_tui_win): Add usage text.
820 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
821 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
822 * tui/tui.c (_initialize_tui): Add usage text.
823
ca793b96
TT
8242020-02-22 Tom Tromey <tom@tromey.com>
825
826 * tui/tui-win.c (tui_set_focus_command)
827 (tui_set_win_height_command): Use error_no_arg.
828 (_initialize_tui_win): Update help text.
829 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
830
432b5c40
TT
8312020-02-22 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
834 * tui/tui-disasm.h (struct tui_disasm_window)
835 <display_start_addr>: Declare.
836 * tui/tui-source.h (struct tui_source_window)
837 <display_start_addr>: Declare.
838 * tui/tui-winsource.h (struct tui_source_window_base)
839 <show_source_line, display_start_addr>: New methods.
840 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
841 Rename and move to protected section.
842 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
843 (tui_source_window_base::do_erase_source_content): Update.
844 (tui_source_window_base::show_source_line): Now a method.
845 (tui_source_window_base::show_source_content)
846 (tui_source_window_base::tui_source_window_base)
847 (tui_source_window_base::rerender)
848 (tui_source_window_base::refill)
849 (tui_source_window_base::do_scroll_horizontal)
850 (tui_source_window_base::set_is_exec_point_at)
851 (tui_source_window_base::update_breakpoint_info)
852 (tui_source_window_base::update_exec_info): Update.
853 * tui/tui-source.c (tui_source_window::set_contents)
854 (tui_source_window::showing_source_p)
855 (tui_source_window::do_scroll_vertical)
856 (tui_source_window::location_matches_p)
857 (tui_source_window::line_is_displayed): Update.
858 (tui_source_window::display_start_addr): New method.
859 * tui/tui-disasm.c (tui_disasm_window::set_contents)
860 (tui_disasm_window::do_scroll_vertical)
861 (tui_disasm_window::location_matches_p): Update.
862 (tui_disasm_window::display_start_addr): New method.
863
01b1af32
TT
8642020-02-22 Tom Tromey <tom@tromey.com>
865
866 * NEWS: Add entry for gdb.register_window_type.
867 * tui/tui-layout.h (window_factory): New typedef.
868 (tui_register_window): Declare.
869 * tui/tui-layout.c (saved_tui_windows): New global.
870 (tui_apply_current_layout): Use it.
871 (tui_register_window): New function.
872 * python/python.c (do_start_initialization): Call
873 gdbpy_initialize_tui.
874 (python_GdbMethods): Add "register_window_type" function.
875 * python/python-internal.h (gdbpy_register_tui_window)
876 (gdbpy_initialize_tui): Declare.
877 * python/py-tui.c: New file.
878 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
879
fc96d20b
TT
8802020-02-22 Tom Tromey <tom@tromey.com>
881
882 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
883
935c78c0
TT
8842020-02-22 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
887 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
888 * tui/tui-data.c (tui_set_win_with_focus): Remove.
889 (tui_set_win_focus_to): Move from tui-win.c.
890
0240c8f1
TT
8912020-02-22 Tom Tromey <tom@tromey.com>
892
893 * tui/tui-layout.c (make_standard_window, get_locator_window): New
894 functions.
895 (known_window_types): New global.
896 (tui_get_window_by_name): Reimplement.
897 (initialize_known_windows): New function.
898 (validate_window_name): Rewrite.
899 (_initialize_tui_layout): Call initialize_known_windows.
900
fdb01f0c
TT
9012020-02-22 Tom Tromey <tom@tromey.com>
902
903 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
904 Remove constants.
905 * tui/tui-winsource.h (struct tui_source_window_base)
906 <tui_source_window_base>: Remove parameter.
907 * tui/tui-winsource.c
908 (tui_source_window_base::tui_source_window_base): Remove
909 parameter.
910 (tui_source_window_base::refill): Update.
911 * tui/tui-stack.h (struct tui_locator_window)
912 <tui_locator_window>: Update.
913 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
914 Default the constructor.
915 * tui/tui-regs.h (struct tui_data_item_window)
916 <tui_data_item_window>: Default the constructor.
917 (struct tui_data_window) <tui_data_window>: Likewise.
918 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
919 Default the constructor.
920 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
921 Default the constructor.
922 <type>: Remove.
923 (struct tui_win_info) <tui_win_info>: Default the constructor.
924 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
925 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
926 Default the constructor.
927
865a5aec
TT
9282020-02-22 Tom Tromey <tom@tromey.com>
929
930 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
931 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
932 * tui/tui-win.c (tui_resize_all): Don't call
933 tui_delete_invisible_windows.
934 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
935 done.
936 (tui_set_layout): Update.
937 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
938 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
939 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
940
e098d18c
TT
9412020-02-22 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
944 correctly.
945
eb9c8874
TT
9462020-02-22 Tom Tromey <tom@tromey.com>
947
948 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
949
7eed1a8e
TT
9502020-02-22 Tom Tromey <tom@tromey.com>
951
952 * tui/tui-winsource.h (struct tui_source_window_iterator)
953 <inner_iterator>: New etytypedef.
954 <tui_source_window_iterator>: Take "end" parameter.
955 <tui_source_window_iterator>: Take iterator.
956 <operator*, advance>: Update.
957 <m_iter>: Change type.
958 <m_end>: New field.
959 (struct tui_source_windows) <begin, end>: Update.
960 * tui/tui-layout.c (tui_windows): New global.
961 (tui_apply_current_layout): Clear tui_windows.
962 (tui_layout_window::apply): Update tui_windows.
963 * tui/tui-data.h (tui_windows): Declare.
964 (all_tui_windows): Now inline function.
965 (class tui_window_iterator, struct all_tui_windows): Remove.
966
7c043ba6
TT
9672020-02-22 Tom Tromey <tom@tromey.com>
968
969 PR tui/17850:
970 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
971 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
972 "height" argument.
973 (class tui_layout_window) <get_sizes>: Likewise.
974 (class tui_layout_split) <tui_layout_split>: Add "vertical"
975 argument.
976 <get_sizes>: Add "height" argument.
977 <m_vertical>: New field.
978 * tui/tui-layout.c (tui_layout_split::clone): Update.
979 (tui_layout_split::get_sizes): Add "height" argument.
980 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
981 (tui_new_layout_command): Parse "-horizontal".
982 (_initialize_tui_layout): Update help string.
983 (tui_layout_split::specification): Add "-horizontal" when needed.
984 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
985 argument.
986 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
987 New methods.
988
6bc56648
TT
9892020-02-22 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-layout.h (enum tui_adjust_result): New.
992 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
993 (class tui_layout_window) <adjust_size>: Return
994 tui_adjust_result. Rewrite.
995 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
996 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
997
c22fef7e
TT
9982020-02-22 Tom Tromey <tom@tromey.com>
999
1000 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
1001 parameter and return types.
1002 (class tui_layout_base) <specification>: Add "depth".
1003 (class tui_layout_window) <specification>: Add "depth".
1004 (class tui_layout_split) <specification>: Add "depth".
1005 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
1006 and return types.
1007 (tui_new_layout_command): Parse sub-layouts.
1008 (_initialize_tui_layout): Update help string.
1009 (tui_layout_window::specification): Add "depth".
1010 (add_layout_command): Update.
1011
ee325b61
TT
10122020-02-22 Tom Tromey <tom@tromey.com>
1013
1014 * NEWS: Add "tui new-layout" item.
1015 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
1016 Add new-layout command to help text.
1017 (validate_window_name): New function.
1018 (tui_new_layout_command): New function.
1019 (_initialize_tui_layout): Register "new-layout".
1020 (tui_layout_window::specification): New method.
1021 (tui_layout_window::specification): New method.
1022 * tui/tui-layout.h (class tui_layout_base) <specification>: New
1023 method.
1024 (class tui_layout_window) <specification>: New method.
1025 (class tui_layout_split) <specification>: New method.
1026
416eb92d
TT
10272020-02-22 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
1030 * tui/tui-win.c (window_name_completer): Update comment.
1031 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
1032 Declare method.
1033 (class tui_layout_window) <replace_window>: Likewise.
1034 (class tui_layout_split) <replace_window>: Likewise.
1035 (tui_set_layout): Don't declare.
1036 (tui_set_initial_layout): Declare function.
1037 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
1038 (asm_regs_layout): New globals.
1039 (tui_current_layout, show_layout): Remove.
1040 (tui_set_layout, tui_add_win_to_layout): Rewrite.
1041 (find_layout, tui_apply_layout): New function.
1042 (layout_completer): Remove.
1043 (tui_next_layout): Reimplement.
1044 (tui_next_layout_command): New function.
1045 (tui_set_initial_layout, tui_prev_layout_command): New functions.
1046 (tui_regs_layout): Reimplement.
1047 (tui_regs_layout_command): New function.
1048 (extract_display_start_addr): Rewrite.
1049 (next_layout, prev_layout): Remove.
1050 (tui_layout_window::replace_window): New method.
1051 (tui_layout_split::replace_window): New method.
1052 (destroy_layout): New function.
1053 (layout_list): New global.
1054 (add_layout_command): New function.
1055 (initialize_layouts): Update.
1056 (tui_layout_command): New function.
1057 (_initialize_tui_layout): Install "layout" commands.
1058 * tui/tui-data.h (enum tui_layout_type): Remove.
1059 (tui_current_layout): Don't declare.
1060
0dbc2fc7
TT
10612020-02-22 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui-regs.c (tui_reg_layout): Remove.
1064 (tui_reg_command): Use tui_regs_layout.
1065 * tui/tui-layout.h (tui_reg_command): Declare.
1066 * tui/tui-layout.c (tui_reg_command): New function.
1067
5afe342e
TT
10682020-02-22 Tom Tromey <tom@tromey.com>
1069
1070 * tui/tui.c (tui_rl_delete_other_windows): Call
1071 tui_remove_some_windows.
1072 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
1073 Declare method.
1074 (class tui_layout_window) <remove_windows>: New method.
1075 (class tui_layout_split) <remove_windows>: Declare.
1076 (tui_remove_some_windows): Declare.
1077 * tui/tui-layout.c (tui_remove_some_windows): New function.
1078 (tui_layout_split::remove_windows): New method.
1079
427326a8
TT
10802020-02-22 Tom Tromey <tom@tromey.com>
1081
1082 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
1083 * tui/tui-layout.h (tui_next_layout): Declare.
1084 * tui/tui-layout.c (tui_next_layout): New function.
1085
3fe12b6d
TT
10862020-02-22 Tom Tromey <tom@tromey.com>
1087
1088 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
1089 correct coordinates.
1090
59b8b5d2
TT
10912020-02-22 Tom Tromey <tom@tromey.com>
1092
1093 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
1094 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
1095 DATA_WIN case.
1096
2a3d458b
TT
10972020-02-22 Tom Tromey <tom@tromey.com>
1098
1099 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
1100 TUI_DISASM_WIN, not tui_win_list.
1101
3f0cbb04
TT
11022020-02-22 Tom Tromey <tom@tromey.com>
1103
1104 * valprint.c (generic_val_print_enum_1)
1105 (val_print_type_code_flags): Style member names.
1106 * rust-lang.c (val_print_struct, rust_print_enum)
1107 (rust_print_struct_def, rust_internal_print_type): Style member
1108 names.
1109 * p-valprint.c (pascal_object_print_value_fields): Style member
1110 names. Only call fprintf_symbol_filtered for static members.
1111 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
1112 * f-valprint.c (f_val_print): Style member names.
1113 * f-typeprint.c (f_type_print_base): Style member names.
1114 * cp-valprint.c (cp_print_value_fields): Style member names. Only
1115 call fprintf_symbol_filtered for static members.
1116 (cp_print_class_member): Style member names.
1117 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
1118 member names.
1119 * ada-valprint.c (ada_print_scalar): Style enum names.
1120 (ada_val_print_enum): Likewise.
1121 * ada-typeprint.c (print_enum_type): Style enum names.
1122
d4d947ae
TT
11232020-02-21 Tom Tromey <tom@tromey.com>
1124
1125 * psympriv.h (struct partial_symtab): Update comment.
1126
e94e944b
TT
11272020-02-21 Tom Tromey <tromey@adacore.com>
1128
1129 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
1130 type is CORE_ADDR.
1131
1eb73179
TV
11322020-02-21 Tom de Vries <tdevries@suse.de>
1133
1134 PR gdb/25534
1135 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
1136 if dependencies[i]->user != NULL.
1137
4f180d53
AT
11382020-02-21 Ali Tamur <tamur@google.com>
1139
1140 * dwarf2/read.c (dwarf2_name): Add null check.
1141
22b6cd70
TT
11422020-02-20 Tom Tromey <tom@tromey.com>
1143
1144 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
1145 ">=", in binary search.
1146 (dwarf2_find_containing_comp_unit): New overload.
1147 (run_test): New self-test.
1148 (_initialize_dwarf2_read): Register new test.
1149
bd0cf5a6
NC
11502020-02-20 Nelson Chu <nelson.chu@sifive.com>
1151
1152 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
1153 * riscv-tdep.h: Likewise.
1154 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
1155 rv32-only CSR.
1156 * features/riscv/64bit-csr.xml: Regenerated.
1157
3f702acd
SDJ
11582020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1159 Tom Tromey <tom@tromey.com>
1160
1161 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
1162 of 'fputc_unfiltered'.
1163 (putchar_unfiltered): Call 'fputc_unfiltered'.
1164 (fputc_unfiltered): Call 'fputs_unfiltered'.
1165
d13c7322
AB
11662020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * config.in: Regenerate.
1169 * configure: Regenerate.
1170 * configure.ac: Add --with-python-libdir option.
1171 * main.c: Use WITH_PYTHON_LIBDIR.
1172
869d8950
TT
11732020-02-19 Tom Tromey <tom@tromey.com>
1174
1175 * symtab.c (general_symbol_info::compute_and_set_names): Use
1176 obstack_strndup. Simplify call to symbol_set_demangled_name.
1177
298e9637
SM
11782020-02-19 Simon Marchi <simon.marchi@efficios.com>
1179
1180 * dwarf2/read.c (allocate_signatured_type_table,
1181 allocate_dwo_unit_table, allocate_type_unit_groups_table,
1182 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
1183 Remove objfile parameter, update all callers.
1184
08410482
DE
11852020-02-19 Doug Evans <dje@google.com>
1186
1187 PR rust/25535
1188 * rust-lang.c (rust_print_enum): Apply embedded_offset to
1189 rust_enum_variant calculation.
1190
dfdeeca1
TT
11912020-02-19 Tom Tromey <tromey@adacore.com>
1192
1193 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
1194
2ef5453b
TT
11952020-02-19 Tom Tromey <tromey@adacore.com>
1196
1197 * ada-lang.c (cache_symbol): Use obstack_strdup.
1198
9f1528a1
AB
11992020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * configure: Regenerate.
1202
d3c22fa8
TT
12032020-02-19 Tom Tromey <tromey@adacore.com>
1204
1205 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
1206 NULL check.
1207
bf84f706
MR
12082020-02-19 Maciej W. Rozycki <macro@wdc.com>
1209
1210 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
1211
d1c9b20f
AB
12122020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
1215 if GDBSERVER is not defined.
1216 (riscv_tdesc_cache): Likewise, also store const target_desc.
1217 (STATIC_IN_GDB): Define.
1218 (riscv_create_target_description): Update declaration with
1219 STATIC_IN_GDB.
1220 (riscv_lookup_target_description): New function, only define if
1221 GDBSERVER is not defined.
1222 * arch/riscv.h (riscv_create_target_description): Declare only
1223 when GDBSERVER is defined.
1224 (riscv_lookup_target_description): New declaration when GDBSERVER
1225 is not defined.
1226 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
1227 (riscv_linux_read_features): ...this, and return
1228 riscv_gdbarch_features instead of target_desc.
1229 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
1230 (riscv_linux_read_description): Rename to...
1231 (riscv_linux_read_features): ...this.
1232 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
1233 Update to use riscv_gdbarch_features and
1234 riscv_lookup_target_description.
1235 * riscv-tdep.c (riscv_find_default_target_description): Use
1236 riscv_lookup_target_description instead of
1237 riscv_create_target_description.
1238
373d7ac0
SM
12392020-02-18 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * valprint.c (generic_val_print_enum_1): When printing a flag
1242 enum with value 0 and there is no enumerator with value 0, print
1243 just "0" instead of "(unknown: 0x0)".
1244
b29a2df0
SM
12452020-02-18 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * valprint.c (generic_val_print_enum_1): Print unknown part of
1248 flag enum in hex.
1249
6740f0cc
SM
12502020-02-18 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * dwarf2/read.c (update_enumeration_type_from_children): Allow
1253 flag enums to contain duplicate enumerators.
1254 * valprint.c (generic_val_print_enum_1): Update comment.
1255
edd45eb0
SM
12562020-02-18 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * dwarf2/read.c: Include "count-one-bits.h".
1259 (update_enumeration_type_from_children): If an enumerator has
1260 multiple bits set, don't treat the enumeration as a "flag enum".
1261 * valprint.c (generic_val_print_enum_1): Assert that enumerators
1262 of flag enums have 0 or 1 bit set.
1263
6d0cf446
BE
12642020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1265
1266 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
1267 conversion.
1268 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1269 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1270 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1271 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1272 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1273
7001c1b7
SM
12742020-02-18 Simon Marchi <simon.marchi@efficios.com>
1275
1276 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
1277
fdb61c6c
SM
12782020-02-14 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
1281 displaced_step_closure_up.
1282 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1283 (struct displaced_step_closure_up):
1284 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1285 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1286 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
1287 Likewise.
1288 * gdbarch.sh (displaced_step_copy_insn): Likewise.
1289 * gdbarch.c, gdbarch.h: Re-generate.
1290 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
1291 displaced_step_closure_up.
1292 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1293 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1294 * infrun.h (displaced_step_closure_up): New type alias.
1295 (struct displaced_step_inferior_state) <step_closure>: Change
1296 type to displaced_step_closure_up.
1297 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
1298 displaced_step_closure_up.
1299 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1300
a4a38eb4
TT
13012020-02-14 Tom Tromey <tom@tromey.com>
1302
1303 * minidebug.c (gnu_debug_key): New global.
1304 (find_separate_debug_file_in_section): Use it.
1305
e8217e61
SM
13062020-02-14 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
1309 std::unique_ptr.
1310 * gdbarch.c: Re-generate.
1311 * gdbarch.h: Re-generate.
1312 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
1313 change.
1314 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
1315 type to std::unique_ptr.
1316 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1317 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1318 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1319 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1320 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
1321 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1322 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1323 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1324 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1325
d8d83535
SM
13262020-02-14 Simon Marchi <simon.marchi@efficios.com>
1327
1328 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
1329 std::unique_ptr.
1330 (displaced_step_clear): Rename to...
1331 (displaced_step_reset): ... this. Just call displaced->reset ().
1332 (displaced_step_clear_cleanup): Rename to...
1333 (displaced_step_reset_cleanup): ... this.
1334 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
1335 (displaced_step_fixup): Likewise.
1336 (resume_1): Likewise.
1337 (handle_inferior_event): Restore child's memory before calling
1338 displaced_step_fixup on the parent.
1339 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
1340 to std::unique_ptr.
1341 <step_closure>: Change type to std::unique_ptr.
1342
5f661e03
SM
13432020-02-14 Simon Marchi <simon.marchi@efficios.com>
1344
1345 * arm-tdep.c: Include count-one-bits.h.
1346 (cleanup_block_store_pc): Use count_one_bits.
1347 (cleanup_block_load_pc): Use count_one_bits.
1348 (arm_copy_block_xfer): Use count_one_bits.
1349 (thumb2_copy_block_xfer): Use count_one_bits.
1350 (thumb_copy_pop_pc_16bit): Use count_one_bits.
1351 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
1352 (thumb_get_next_pcs_raw): Use count_one_bits.
1353 (arm_get_next_pcs_raw): Use count_one_bits_l.
1354 * arch/arm.c (bitcount): Remove.
1355 * arch/arm.h (bitcount): Remove.
1356
8084e579
TT
13572020-02-14 Tom Tromey <tromey@adacore.com>
1358
1359 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
1360 Update.
1361 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
1362 * dwarf2/loc.c (call_site_find_chain_1): Return
1363 unique_xmalloc_ptr.
1364 (call_site_find_chain): Likewise.
1365
258bf0ee
RB
13662020-02-14 Richard Biener <rguenther@suse.de>
1367
1368 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
1369 on expression with division operators.
1370
f98a8458
AKS
13712020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1372
1373 * MAINTAINERS (Write After Approval): Adding myself.
1374
d1437c0e
TT
13752020-02-12 Tom Tromey <tom@tromey.com>
1376
1377 * event-loop.c (event_data, gdb_event, event_handler_func):
1378 Remove.
1379
3d4560f7
TT
13802020-02-12 Tom Tromey <tom@tromey.com>
1381
1382 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
1383 (dwarf2_frame_objfile_data): Add comment.
1384 (find_comp_unit, set_comp_unit): New functions.
1385 (dwarf2_frame_find_fde): Use find_comp_unit.
1386 (dwarf2_build_frame_info): Use set_comp_unit.
1387
21982304
TT
13882020-02-12 Tom Tromey <tom@tromey.com>
1389
1390 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
1391 (comp_unit): Don't initialize objfile.
1392 (execute_cfa_program): Add text_offset parameter.
1393 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
1394 (dwarf2_frame_cache): Update.
1395 (dwarf2_build_frame_info): Don't set "objfile" member.
1396
4debb237
TT
13972020-02-12 Tom Tromey <tom@tromey.com>
1398
1399 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
1400 (decode_frame_entry): Likewise.
1401 (dwarf2_build_frame_info): Update.
1402
0d404d44
TT
14032020-02-12 Tom Tromey <tom@tromey.com>
1404
1405 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
1406 (decode_frame_entry_1): Use the comp_unit obstack.
1407
a7a3ae5c
TT
14082020-02-12 Tom Tromey <tom@tromey.com>
1409
1410 * dwarf2/frame.c (struct comp_unit): Add initializers and
1411 constructor.
1412 (dwarf2_frame_objfile_data): Store a comp_unit.
1413 (dwarf2_frame_find_fde): Update.
1414 (dwarf2_build_frame_info): Use "new".
1415
a9d65418
TT
14162020-02-12 Tom Tromey <tom@tromey.com>
1417
1418 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
1419 (dwarf2_fde_table): Typedef for std::vector.
1420 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
1421 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
1422 (decode_frame_entry): Update.
1423 (dwarf2_build_frame_info): Use "new".
1424
7559c217
CB
14252020-02-12 Christian Biesinger <cbiesinger@google.com>
1426
1427 * arm-tdep.c (arm_gdbarch_init): Update.
1428 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
1429 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
1430 have_neon, is_m>: Change to bool.
1431
aeefc73c
CB
14322020-02-12 Christian Biesinger <cbiesinger@google.com>
1433
1434 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
1435
d27b8e5f
TT
14362020-02-12 Tom Tromey <tom@tromey.com>
1437
1438 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
1439
cd5900f3
HD
14402020-02-12 Hannes Domani <ssbssa@yahoo.de>
1441
1442 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
1443 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
1444
f056b22b
TT
14452020-02-11 Tom Tromey <tom@tromey.com>
1446
1447 * psymtab.h: Update comment.
1448
f92ff6b5
TT
14492020-02-11 Tom Tromey <tom@tromey.com>
1450
1451 * gdb_obstack.h (struct auto_obstack): Use
1452 DISABLE_COPY_AND_ASSIGN.
1453
3fd6912b
TT
14542020-02-11 Tom Tromey <tom@tromey.com>
1455
1456 * dwarf2/frame.h (struct objfile): Don't forward declare.
1457
69ed9b74
CB
14582020-02-11 Christian Biesinger <cbiesinger@google.com>
1459
1460 * cris-tdep.c (cris_supply_gregset): Change signature to match
1461 what struct regset expects.
1462 (cris_regset): New struct.
1463 (fetch_core_registers): Remove.
1464 (cris_iterate_over_regset_sections): New function.
1465 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
1466 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
1467
bda874f6
CB
14682020-02-11 Christian Biesinger <cbiesinger@google.com>
1469
1470 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
1471 registers.
1472
754e1564
CB
14732020-02-11 Christian Biesinger <cbiesinger@google.com>
1474
1475 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
1476
8ddd8e0e
SM
14772020-02-11 Simon Marchi <simon.marchi@efficios.com>
1478
1479 * configure: Re-generate.
1480
898e7f60
SM
14812020-02-11 Simon Marchi <simon.marchi@efficios.com>
1482
1483 * configure: Re-generate.
1484
58df732b
SM
14852020-02-11 Simon Marchi <simon.marchi@efficios.com>
1486
1487 * acinclude: Update warning.m4 path.
1488 * warning.m4: Move to gdbsupport.
1489
da5bd37e
TT
14902020-02-11 Tom Tromey <tromey@adacore.com>
1491
1492 * remote.c (remote_console_output): Update.
1493 * printcmd.c (printf_command): Update.
1494 * event-loop.c (gdb_wait_for_event): Update.
1495 * linux-nat.c (sigchld_handler): Update.
1496 * remote-sim.c (gdb_os_write_stdout): Update.
1497 (gdb_os_flush_stdout): Update.
1498 (gdb_os_flush_stderr): Update.
1499 (gdb_os_write_stderr): Update.
1500 * exceptions.c (print_exception): Update.
1501 * remote-fileio.c (remote_fileio_func_read): Update.
1502 (remote_fileio_func_write): Update.
1503 * tui/tui.c (tui_enable): Update.
1504 * tui/tui-interp.c (tui_interp::init): Update.
1505 * utils.c (init_page_info): Update.
1506 (putchar_unfiltered, fputc_unfiltered): Update.
1507 (gdb_flush): Update.
1508 (emit_style_escape): Update.
1509 (flush_wrap_buffer, fputs_maybe_filtered): Update.
1510 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
1511 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
1512 (stderr_file::write): Update.
1513 (stderr_file::puts): Update.
1514 * ui-file.h (ui_file_isatty, ui_file_write)
1515 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
1516 (ui_file_puts): Don't declare.
1517
85f0dd3c
TV
15182020-02-10 Tom de Vries <tdevries@suse.de>
1519
1520 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
1521 sentinel to char *.
1522
2e927613
TV
15232020-02-09 Tom de Vries <tdevries@suse.de>
1524
1525 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
1526 filename if it matches "<artificial>".
1527
6bafc845
HD
15282020-02-09 Hannes Domani <ssbssa@yahoo.de>
1529
1530 * windows-tdep.c (struct enum_value_name): New struct.
1531 (create_enum): New function.
1532 (windows_get_siginfo_type): Create and use enum types.
1533
7928d571
HD
15342020-02-09 Hannes Domani <ssbssa@yahoo.de>
1535
1536 * NEWS: Mention $_siginfo support for Windows.
1537 * windows-nat.c (handle_exception): Set siginfo_er.
1538 (windows_nat_target::mourn_inferior): Reset siginfo_er.
1539 (windows_xfer_siginfo): New function.
1540 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
1541 * windows-tdep.c (struct windows_gdbarch_data): New struct.
1542 (init_windows_gdbarch_data): New function.
1543 (get_windows_gdbarch_data): New function.
1544 (windows_get_siginfo_type): New function.
1545 (windows_init_abi): Register windows_get_siginfo_type.
1546 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
1547
6751ebae
TT
15482020-02-08 Tom Tromey <tom@tromey.com>
1549
1550 * dwarf2/read.c (class cutu_reader) <cutu_reader,
1551 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
1552 <keep>: Declare method.
1553 <m_keep>: Remove member.
1554 <~cutu_reader>: Remove.
1555 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1556 (cutu_reader::cutu_reader): Update.
1557 (cutu_reader::keep): Rename from ~cutu_reader.
1558 (process_psymtab_comp_unit, build_type_psymtabs_1)
1559 (process_skeletonless_type_unit, load_partial_comp_unit)
1560 (load_full_comp_unit, dwarf2_read_addr_index)
1561 (read_signatured_type): Update.
1562
135f5437
TT
15632020-02-08 Tom Tromey <tom@tromey.com>
1564
1565 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
1566 "want_partial_unit" parameter.
1567 (process_psymtab_comp_unit): Change want_partial_unit to bool.
1568 Inline check for DW_TAG_partial_unit.
1569 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
1570
9f66ff1c
TT
15712020-02-08 Tom Tromey <tom@tromey.com>
1572
1573 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
1574 read.c.
1575 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
1576 read.c.
1577
c8a7a66f
TT
15782020-02-08 Tom Tromey <tom@tromey.com>
1579
1580 * dwarf2/read.c (read_address): Move to comp-unit.c.
1581 (dwarf2_rnglists_process, dwarf2_ranges_process)
1582 (read_attribute_value, dwarf_decode_lines_1)
1583 (var_decode_location, decode_locdesc): Update.
1584 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
1585 read.c. Remove "cu" parameter.
1586 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
1587 method.
1588
8266302d
TT
15892020-02-08 Tom Tromey <tom@tromey.com>
1590
1591 * dwarf2/read.c (read_attribute_value, read_indirect_string)
1592 (read_indirect_line_string): Update.
1593 * dwarf2/comp-unit.c (read_offset): Remove.
1594 (read_comp_unit_head): Update.
1595 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
1596 method.
1597 (read_offset): Don't declare.
1598
4057dfde
TT
15992020-02-08 Tom Tromey <tom@tromey.com>
1600
1601 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
1602 * dwarf2/read.c (struct comp_unit_head): Move to
1603 dwarf2/comp-unit.h.
1604 (enum class rcuh_kind): Move to comp-unit.h.
1605 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
1606 (read_comp_unit_head, error_check_comp_unit_head)
1607 (read_and_check_comp_unit_head): Move to comp-unit.c.
1608 (read_offset, dwarf_unit_type_name): Likewise.
1609 (create_debug_type_hash_table, read_cutu_die_from_dwo)
1610 (cutu_reader::cutu_reader, read_call_site_scope)
1611 (find_partial_die, follow_die_offset): Update.
1612 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
1613
24aa364d
TT
16142020-02-08 Tom Tromey <tom@tromey.com>
1615
1616 * dwarf2/read.c (read_offset_1): Move to leb.c.
1617 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
1618 (dwarf_decode_macro_bytes): Update.
1619 * dwarf2/leb.c (read_offset): Rename; move from read.c.
1620 * dwarf2/leb.h (read_offset): Declare.
1621
2c7d5afc
TT
16222020-02-08 Tom Tromey <tom@tromey.com>
1623
1624 * dwarf2/read.c (dwarf2_section_size): Remove.
1625 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
1626 Update.
1627 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
1628
4075cb26
TT
16292020-02-08 Tom Tromey <tom@tromey.com>
1630
1631 * dwarf2/read.c (read_initial_length): Move to leb.c.
1632 * dwarf2/leb.h (read_initial_length): Declare.
1633 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
1634 handle_nonstd parameter.
1635 * dwarf2/frame.c (read_initial_length): Remove.
1636 (decode_frame_entry_1): Update.
1637
09ba997f
TT
16382020-02-08 Tom Tromey <tom@tromey.com>
1639
1640 * dwarf2/loc.c (dwarf2_find_location_expression)
1641 (dwarf_evaluate_loc_desc::get_tls_address)
1642 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
1643 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
1644 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
1645 (dwarf2_compile_property_to_c)
1646 (dwarf2_loc_desc_get_symbol_read_needs)
1647 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
1648 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
1649 (loclist_describe_location, loclist_tracepoint_var_ref)
1650 (loclist_generate_c_location): Update.
1651 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1652 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
1653 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
1654 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
1655 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
1656 (dwarf2_per_cu_data::addr_size)
1657 (dwarf2_per_cu_data::ref_addr_size)
1658 (dwarf2_per_cu_data::text_offset)
1659 (dwarf2_per_cu_data::addr_type): Now methods.
1660 (per_cu_header_read_in): Make per_cu "const".
1661 (dwarf2_version): Remove.
1662 (dwarf2_per_cu_data::int_type): Now a method.
1663 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
1664 (set_die_type, read_array_type, read_subrange_index_type)
1665 (read_tag_string_type, read_subrange_type): Update.
1666 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
1667 offset_size, ref_addr_size, text_offset, addr_type, version,
1668 objfile, int_type, addr_sized_int_type>: Declare methods.
1669
96c738c0
TT
16702020-02-08 Tom Tromey <tom@tromey.com>
1671
1672 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
1673 Move earlier.
1674
8fdd972c
TT
16752020-02-08 Tom Tromey <tom@tromey.com>
1676
1677 * dwarf2/read.h (dwarf_line_debug): Declare.
1678 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
1679 * dwarf2/read.c: Move line_header code to new files.
1680 (dwarf_line_debug): No longer static.
1681 * dwarf2/line-header.c: New file.
1682 * dwarf2/line-header.h: New file.
1683
03075812
TT
16842020-02-08 Tom Tromey <tom@tromey.com>
1685
1686 * dwarf2/read.c (struct line_header) <file_full_name,
1687 file_file_name>: Return unique_xmalloc_ptr.
1688 (line_header::file_file_name): Update.
1689 (line_header::file_full_name): Update.
1690 (dw2_get_file_names_reader): Update.
1691 (macro_start_file): Update.
1692
bb822404
TT
16932020-02-08 Tom Tromey <tom@tromey.com>
1694
1695 * dwarf2/read.c (struct line_header) <file_full_name,
1696 file_file_name>: Declare methods.
1697 (dw2_get_file_names_reader): Update.
1698 (file_file_name): Now a method.
1699 (file_full_name): Likewise.
1700 (macro_start_file): Update.
1701
009b64fc
TT
17022020-02-08 Tom Tromey <tom@tromey.com>
1703
1704 * dwarf2/read.c (dwarf_always_disassemble)
1705 (show_dwarf_always_disassemble): Move to loc.c.
1706 (_initialize_dwarf2_read): Move "always-disassemble" registration
1707 to loc.c.
1708 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
1709 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
1710 static.
1711 (show_dwarf_always_disassemble): Move from read.c.
1712 (_initialize_dwarf2loc): Move always-disassemble from read.c.
1713
5895093f
TT
17142020-02-08 Tom Tromey <tom@tromey.com>
1715
1716 * dwarf2/read.c (~dwarf2_per_objfile): Update.
1717 (create_quick_file_names_table): Return htab_up.
1718 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
1719 Update.
1720 * dwarf2/read.h (struct dwarf2_per_objfile)
1721 <quick_file_names_table>: Now htab_up.
1722
b3b32279
TT
17232020-02-08 Tom Tromey <tom@tromey.com>
1724
1725 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
1726
1d33d811
TT
17272020-02-08 Tom Tromey <tom@tromey.com>
1728
1729 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
1730 Rewrite.
1731 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
1732 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
1733 (abbrev_table::abbrev_table): No longer inline.
1734 (ABBREV_HASH_SIZE): Remove.
1735 (abbrev_table::m_abbrevs): Now an htab_up.
1736
86de1d91
TT
17372020-02-08 Tom Tromey <tom@tromey.com>
1738
1739 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
1740 (cutu_reader): Update.
1741 (build_type_psymtabs_1): Update.
1742 * dwarf2/abbrev.c (abbrev_table::read): Rename.
1743 (abbrev_table::alloc_abbrev): Update.
1744 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
1745 (abbrev_table::read): New static method, renamed from
1746 abbrev_table_read_table.
1747 (abbrev_table::alloc_abbrev)
1748 (abbrev_table::add_abbrev): Now private.
1749 (abbrev_table::abbrev_table): Now private.
1750 (abbrev_table::m_abbrev_obstack): Now private. Rename.
1751
0335378b
TT
17522020-02-08 Tom Tromey <tom@tromey.com>
1753
1754 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
1755 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
1756 htab_up.
1757
48b490f2
TT
17582020-02-08 Tom Tromey <tom@tromey.com>
1759
1760 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
1761 htab_up.
1762 (lookup_dwo_unit_in_dwp): Update.
1763 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
1764 on obstack.
1765
bc68fb19
TT
17662020-02-08 Tom Tromey <tom@tromey.com>
1767
1768 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
1769 obstack.
1770
d15acc42
TT
17712020-02-08 Tom Tromey <tom@tromey.com>
1772
1773 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
1774 line_header_hash.
1775 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
1776 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
1777 Change type to htab_up.
1778
eaa5fa8b
TT
17792020-02-08 Tom Tromey <tom@tromey.com>
1780
1781 * dwarf2/read.c (allocate_type_unit_groups_table): Return
1782 htab_up. Don't allocate on obstack.
1783 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
1784 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
1785 Change type to htab_up.
1786
b0b6a987
TT
17872020-02-08 Tom Tromey <tom@tromey.com>
1788
1789 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
1790 Change type to htab_up.
1791 * dwarf2/read.c (create_signatured_type_table_from_index)
1792 (create_signatured_type_table_from_debug_names)
1793 (create_all_type_units, add_type_unit)
1794 (lookup_dwo_signatured_type, lookup_signatured_type)
1795 (process_skeletonless_type_unit): Update.
1796 (create_debug_type_hash_table, create_debug_types_hash_table):
1797 Change type of types_htab.
1798 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
1799 htab_up. Don't allocate on obstack.
1800 (create_cus_hash_table): Change type of cus_htab parameter.
1801 (struct dwo_file) <cus, tus>: Now htab_up.
1802 (lookup_dwo_signatured_type, lookup_dwo_cutu)
1803 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
1804 (queue_and_load_all_dwo_tus): Update.
1805 * dwarf2/index-write.c (write_gdbindex): Update.
1806 (write_debug_names): Update.
1807
39856def
TT
18082020-02-08 Tom Tromey <tom@tromey.com>
1809
1810 * dwarf2/read.h (struct dwarf2_queue_item): Move from
1811 dwarf2/read.c. Remove "next" member. Add constructor ntad
1812 destructor.
1813 (struct dwarf2_per_objfile) <queue>: New member.
1814 * dwarf2/read.c (struct dwarf2_queue_item): Move to
1815 dwarf2/read.h.
1816 (dwarf2_queue, dwarf2_queue_tail): Remove.
1817 (class dwarf2_queue_guard): Add parameter to constructor. Use
1818 DISABLE_COPY_AND_ASSIGN.
1819 <m_per_objfile>: New member.
1820 <~dwarf2_queue_guard>: Rewrite.
1821 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
1822 Update.
1823 (~dwarf2_queue_item): New.
1824
3e225074
TT
18252020-02-08 Tom Tromey <tom@tromey.com>
1826
1827 * dwarf2/read.c (struct die_info) <has_children>: New member.
1828 (dw2_get_file_names_reader): Remove has_children.
1829 (dw2_get_file_names): Update.
1830 (read_cutu_die_from_dwo): Remove has_children.
1831 (cutu_reader::init_tu_and_read_dwo_dies)
1832 (cutu_reader::cutu_reader): Update.
1833 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
1834 Remove has_children.
1835 (build_type_psymtabs_1, process_skeletonless_type_unit)
1836 (load_partial_comp_unit, load_full_comp_unit): Update.
1837 (create_dwo_cu_reader): Remove has_children.
1838 (create_cus_hash_table, read_die_and_children): Update.
1839 (read_full_die_1,read_full_die): Remove has_children.
1840 (read_signatured_type): Update.
1841 (class cutu_reader) <has_children>: Remove.
1842
82ca8957
TT
18432020-02-08 Tom Tromey <tom@tromey.com>
1844
1845 * dwarf2/expr.c: Rename from dwarf2expr.c.
1846 * dwarf2/expr.h: Rename from dwarf2expr.h.
1847 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
1848 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
1849 * dwarf2/frame.c: Rename from dwarf2-frame.c.
1850 * dwarf2/frame.h: Rename from dwarf2-frame.h.
1851 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
1852 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
1853 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
1854 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
1855 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
1856 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
1857 * dwarf2/loc.c: Rename from dwarf2loc.c.
1858 * dwarf2/loc.h: Rename from dwarf2loc.h.
1859 * dwarf2/read.c: Rename from dwarf2read.c.
1860 * dwarf2/read.h: Rename from dwarf2read.h.
1861 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
1862 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
1863 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
1864 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
1865 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
1866 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
1867 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
1868 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
1869 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
1870 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
1871 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
1872 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
1873 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
1874 Update.
1875 * Makefile.in (COMMON_SFILES): Update.
1876 (HFILES_NO_SRCDIR): Update.
1877
9e35d499
TT
18782020-02-08 Tom Tromey <tom@tromey.com>
1879
1880 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
1881 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
1882
1eba2311
TT
18832020-02-08 Tom Tromey <tom@tromey.com>
1884
1885 * dwarf2read.h (struct die_info): Don't declare.
1886
e41c2da2
TT
18872020-02-08 Tom Tromey <tom@tromey.com>
1888
1889 * dwarf2read.h (die_info_ptr): Remove typedef.
1890
4fc6c0d5
TT
18912020-02-08 Tom Tromey <tom@tromey.com>
1892
1893 * dwarf2read.c (read_call_site_scope)
1894 (handle_data_member_location, dwarf2_add_member_fn)
1895 (mark_common_block_symbol_computed, read_common_block)
1896 (attr_to_dynamic_prop, partial_die_info::read)
1897 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
1898 (dwarf2_symbol_mark_computed, set_die_type): Update.
1899 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
1900 method.
1901 (attr_form_is_block): Don't declare.
1902 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
1903
cd6c91b4
TT
19042020-02-08 Tom Tromey <tom@tromey.com>
1905
1906 * dwarf2read.c (dwarf2_find_base_address, )
1907 (read_call_site_scope, rust_containing_type)
1908 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1909 (handle_data_member_location, dwarf2_add_member_fn)
1910 (get_alignment, read_structure_type, process_structure_scope)
1911 (mark_common_block_symbol_computed, read_common_block)
1912 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
1913 (partial_die_info::read, read_attribute_value, new_symbol)
1914 (lookup_die_type, dwarf2_get_ref_die_offset)
1915 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
1916 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
1917 (dwarf2_symbol_mark_computed): Update.
1918 * dwarf2/attribute.h (struct attribute) <value_as_address,
1919 form_is_section_offset, form_is_constant, form_is_ref>: Declare
1920 methods.
1921 (value_as_address, attr_form_is_section_offset)
1922 (attr_form_is_constant, attr_form_is_ref): Don't declare.
1923 * dwarf2/attribute.c (attribute::value_as_address)
1924 (attribute::form_is_section_offset, attribute::form_is_constant)
1925 (attribute::form_is_ref): Now methods.
1926
162dce55
TT
19272020-02-08 Tom Tromey <tom@tromey.com>
1928
1929 * dwarf2read.c (struct attribute, DW_STRING)
1930 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
1931 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
1932 (attr_form_is_block, attr_form_is_section_offset)
1933 (attr_form_is_constant, attr_form_is_ref): Move.
1934 * dwarf2/attribute.h: New file.
1935 * dwarf2/attribute.c: New file, from dwarf2read.c.
1936 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
1937
3054dd54
TT
19382020-02-08 Tom Tromey <tom@tromey.com>
1939
1940 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
1941 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
1942 Move.
1943 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
1944 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
1945 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
1946 abbrev.c.
1947 * dwarf2/abbrev.h: New file.
1948 * dwarf2/abbrev.c: New file, from dwarf2read.c.
1949 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
1950
96b79293
TT
19512020-02-08 Tom Tromey <tom@tromey.com>
1952
1953 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
1954 (dwarf2_section_size, dwarf2_get_section_info)
1955 (create_signatured_type_table_from_debug_names)
1956 (create_addrmap_from_aranges, read_debug_names_from_section)
1957 (get_gdb_index_contents_from_section, read_comp_unit_head)
1958 (error_check_comp_unit_head, read_abbrev_offset)
1959 (create_debug_type_hash_table, init_cu_die_reader)
1960 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
1961 (read_comp_units_from_section, create_cus_hash_table)
1962 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
1963 (create_dwp_v2_section, dwarf2_rnglists_process)
1964 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
1965 (abbrev_table_read_table, read_indirect_string_at_offset_from)
1966 (read_indirect_string_from_dwz, read_addr_index_1)
1967 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
1968 (dwarf_decode_macro_bytes, dwarf_decode_macros)
1969 (fill_in_loclist_baton): Update.
1970 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
1971 get_containing_section, get_bfd_owner, get_bfd_section,
1972 get_file_name, get_id, get_flags, empty, read>: Declare methods.
1973 (dwarf2_read_section, get_section_name, get_section_file_name)
1974 (get_containing_section, get_section_bfd_owner)
1975 (get_section_bfd_section, get_section_name, get_section_file_name)
1976 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
1977 declare.
1978 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
1979 (dwarf2_section_info::get_bfd_owner)
1980 (dwarf2_section_info::get_bfd_section)
1981 (dwarf2_section_info::get_name)
1982 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
1983 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
1984 (dwarf2_section_info::read): Now methods.
1985 * dwarf-index-write.c (class debug_names): Update.
1986
2c86cff9
TT
19872020-02-08 Tom Tromey <tom@tromey.com>
1988
1989 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
1990 Move to dwarf2/section.h.
1991 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
1992 (get_section_bfd_section, get_section_name)
1993 (get_section_file_name, get_section_id, get_section_flags)
1994 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
1995 dwarf2/section.c.
1996 * dwarf2/section.h: New file.
1997 * dwarf2/section.c: New file, from dwarf2read.c.
1998 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
1999
f4382c45
TT
20002020-02-08 Tom Tromey <tom@tromey.com>
2001
2002 * dwarf2read.h (read_unsigned_leb128): Don't declare.
2003 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
2004 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
2005 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
2006 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
2007 * dwarf2/leb.h: New file, from dwarf2read.c.
2008 * dwarf2/leb.c: New file, from dwarf2read.c.
2009 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
2010 Remove.
2011 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
2012 (COMMON_SFILES): Add dwarf2/leb.c.
2013
01840b7a
JB
20142020-02-08 Joel Brobecker <brobecker@adacore.com>
2015
2016 GDB 9.1 released.
2017
dfcb27e4
IB
20182020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2019
2020 PR gdb/25190:
2021 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
2022 * gdb/remote.c (remote_console_output): Update.
2023 * gdb/ui-file.c (fputs_unfiltered): Rename to...
2024 (ui_file_puts): ...this.
2025 * gdb/ui-file.h (ui_file_puts): Add declaration.
2026 * gdb/utils.c (emit_style_escape): Update.
2027 (flush_wrap_buffer): Update.
2028 (fputs_maybe_filtered): Update.
2029 (fputs_unfiltered): Add function.
2030
faa17681
IB
20312020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2032
2033 * gdb/event-loop.c (gdb_wait_for_event): Update.
2034 * gdb/printcmd.c (printf_command): Update.
2035 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
2036 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
2037 (gdb_os_flush_stderr): Update.
2038 * gdb/remote.c (remote_console_output): Update.
2039 * gdb/ui-file.c (gdb_flush): Rename to...
2040 (ui_file_flush): ...this.
2041 (stderr_file::write): Update.
2042 (stderr_file::puts): Update.
2043 * gdb/ui-file.h (gdb_flush): Rename to...
2044 (ui_file_flush): ...this.
2045 * gdb/utils.c (gdb_flush): Add function.
2046 * gdb/utils.h (gdb_flush): Add declaration.
2047
5abbbe1d
TT
20482020-02-07 Tom Tromey <tromey@adacore.com>
2049
2050 PR breakpoints/24915:
2051 * source.c (find_and_open_source): Do not check basenames_may_differ.
2052
919adfe8
TT
20532020-02-07 Tom Tromey <tom@tromey.com>
2054
2055 * README: Update gdbserver documentation.
2056 * gdbserver: Move to top level.
2057 * configure.tgt (build_gdbserver): Remove.
2058 * configure.ac: Remove --enable-gdbserver.
2059 * configure: Rebuild.
2060 * Makefile.in (distclean): Don't mention gdbserver.
2061
1d5d29e7
SV
20622020-02-06 Shahab Vahedi <shahab@synopsys.com>
2063
2064 * source-cache.c (source_cache::ensure): Surround
2065 get_plain_source_lines with a try/catch.
2066 (source_cache::get_line_charpos): Get rid of try/catch
2067 and only check for the return value of "ensure".
2068 * tui/tui-source.c (tui_source_window::set_contents):
2069 Simplify "nlines" calculation.
2070
6eb1129c
SV
20712020-02-06 Shahab Vahedi <shahab@synopsys.com>
2072
2073 * MAINTAINERS (Write After Approval): Add myself.
2074
c6a42d11
CB
20752020-02-05 Christian Biesinger <cbiesinger@google.com>
2076
2077 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
2078 function call.
2079
c8ecdda6
CB
20802020-02-05 Christian Biesinger <cbiesinger@google.com>
2081
2082 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
2083
f6480e70
MR
20842020-02-05 Maciej W. Rozycki <macro@wdc.com>
2085
2086 * nat/riscv-linux-tdesc.h: New file.
2087 * nat/riscv-linux-tdesc.c: New file, taking code from...
2088 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2089 ... here.
2090 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
2091 NATDEPFILES.
2092
dcc9fbc6
AB
20932020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
2094
2095 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
2096 we don't set the fake simulator ptid to the null_ptid.
2097
719546c4
SM
20982020-02-03 Simon Marchi <simon.marchi@efficios.com>
2099
2100 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
2101 * gdbthread.h (class thread_info) <resumed>: Likewise.
2102 * infrun.c (resume_1): Likewise.
2103 (proceed): Likewise.
2104 (infrun_thread_stop_requested): Likewise.
2105 (stop_all_threads): Likewise.
2106 (handle_inferior_event): Likewise.
2107 (restart_threads): Likewise.
2108 (finish_step_over): Likewise.
2109 (keep_going_stepped_thread): Likewise.
2110 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
2111 (linux_handle_extended_wait): Likewise.
2112 * record-btrace.c (get_thread_current_frame_id): Likewise.
2113 * record-full.c (record_full_wait_1): Likewise.
2114 * remote.c (remote_target::process_initial_stop_replies): Likewise.
2115 * target.c (target_resume): Likewise.
2116 * thread.c (set_running_thread): Likewise.
2117
e409c542
AKS
21182020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2119
2120 * f-valprint.c (f77_print_array_1): Changed datatype of index
2121 variable to LONGEST from int to enable it to contain bound
2122 values correctly.
2123
ee98c0da
MR
21242020-02-03 Maciej W. Rozycki <macro@wdc.com>
2125
2126 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
2127 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
2128 offsets according to FLEN determined.
2129 (riscv_linux_nat_target::read_description): Determine FLEN
2130 dynamically.
2131 (riscv_linux_nat_target::fetch_registers): Size regset buffer
2132 according to FLEN determined.
2133 (riscv_linux_nat_target::store_registers): Likewise.
2134
aa66aac4
SV
21352020-02-01 Shahab Vahedi <shahab@synopsys.com>
2136
2137 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2138 when reg->group is empty and reggroup is not.
2139
fd9faca8
TT
21402020-01-31 Tom Tromey <tromey@adacore.com>
2141
2142 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
2143 Call beneath target's mourn_inferior after unpushing.
2144
42330a68
AB
21452020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2146
2147 PR tui/9765
2148 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
2149 have enough lines to fill the screen, still return the lowest
2150 address we found.
2151
7a27a45b
AB
21522020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
2155 '-', '<', and '>' commands.
2156
c47f70e2
PA
21572020-01-29 Pedro Alves <palves@redhat.com>
2158 Sergio Durigan Junior <sergiodj@redhat.com>
2159
2160 * infcmd.c (construct_inferior_arguments): Assert that
2161 'argc' is greater than 0.
2162
5133a315
LM
21632020-01-29 Luis Machado <luis.machado@linaro.org>
2164
2165 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
2166 (BRK_INSN_MASK): Define to 0xd4200000.
2167 (aarch64_program_breakpoint_here_p): New function.
2168 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
2169 * arch-utils.c (default_program_breakpoint_here_p): Moved from
2170 breakpoint.c.
2171 * arch-utils.h (default_program_breakpoint_here_p): Moved from
2172 breakpoint.h
2173 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
2174 call gdbarch_program_breakpoint_here_p.
2175 (program_breakpoint_here): Moved to arch-utils.c, renamed to
2176 default_program_breakpoint_here_p, changed return type to bool and
2177 simplified.
2178 * breakpoint.h (program_breakpoint_here): Moved prototype to
2179 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
2180 return type to bool.
2181 * gdbarch.c: Regenerate.
2182 * gdbarch.h: Regenerate.
2183 * gdbarch.sh (program_breakpoint_here_p): New method.
2184 * infrun.c (handle_signal_stop): Call
2185 gdbarch_program_breakpoint_here_p.
2186
168f8c6b
TT
21872020-01-26 Tom Tromey <tom@tromey.com>
2188
2189 * ctfread.c (struct ctf_fp_info): Reindent.
2190 (_initialize_ctfread): Remove.
2191
128a391f
TT
21922020-01-26 Tom Tromey <tom@tromey.com>
2193
2194 * psymtab.c (partial_map_expand_apply)
2195 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2196 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2197 (psym_print_stats, psym_expand_symtabs_for_function)
2198 (psym_map_symbol_filenames, psym_map_matching_symbols)
2199 (psym_expand_symtabs_matching)
2200 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2201 (maintenance_check_psymtabs): Use new methods.
2202 * psympriv.h (struct partial_symtab) <readin_p,
2203 get_compunit_symtab>: New methods.
2204 <readin, compunit_symtab>: Remove members.
2205 (struct standard_psymtab): New.
2206 (struct legacy_psymtab): Derive from standard_psymtab.
2207 * dwarf2read.h (struct dwarf2_psymtab): Derive from
2208 standard_psymtab.
2209 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
2210
0494dbec
TT
22112020-01-26 Tom Tromey <tom@tromey.com>
2212
2213 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
2214 read_dependencies. Add assert.
2215 * psymtab.c (partial_symtab::read_dependencies): New method.
2216 * psympriv.h (struct partial_symtab) <read_dependencies>: New
2217 method.
2218 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
2219 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
2220 read_dependencies.
2221 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
2222 Add assert.
2223
8566b89b
TT
22242020-01-26 Tom Tromey <tom@tromey.com>
2225
2226 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
2227 Call expand_psymtab.
2228 (xcoff_read_symtab): Call expand_psymtab.
2229 (xcoff_start_psymtab, xcoff_end_psymtab): Set
2230 legacy_expand_psymtab.
2231 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
2232 method.
2233 (struct legacy_psymtab) <expand_psymtab>: Implement.
2234 <legacy_expand_psymtab>: New member.
2235 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
2236 (parse_partial_symbols): Set legacy_expand_psymtab.
2237 (psymtab_to_symtab_1): Change argument order. Call
2238 expand_psymtab.
2239 (new_psymtab): Set legacy_expand_psymtab.
2240 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
2241 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
2242 expand_psymtab.
2243 (dwarf2_psymtab::expand_psymtab): Rename from
2244 psymtab_to_symtab_1. Call expand_psymtab.
2245 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
2246 (dbx_end_psymtab): Likewise.
2247 (dbx_psymtab_to_symtab_1): Change argument order. Call
2248 expand_psymtab.
2249 (dbx_read_symtab): Call expand_psymtab.
2250 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
2251 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
2252 (ctf_psymtab::read_symtab): Call expand_psymtab.
2253
077cbab2
TT
22542020-01-26 Tom Tromey <tom@tromey.com>
2255
2256 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
2257 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
2258 messages.
2259 * mdebugread.c (mdebug_read_symtab): Remove prints.
2260 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
2261 assert.
2262 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
2263
891813be
TT
22642020-01-26 Tom Tromey <tom@tromey.com>
2265
2266 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
2267 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
2268 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
2269 legacy_symtab.
2270 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
2271 * psymtab.c (psymtab_to_symtab): Call method.
2272 (dump_psymtab): Update.
2273 * psympriv.h (struct partial_symtab): Add virtual destructor.
2274 <read_symtab>: New method.
2275 (struct legacy_symtab): New.
2276 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
2277 (struct pst_map) <pst>: Now a legacy_psymtab.
2278 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
2279 (new_psymtab): Use legacy_psymtab.
2280 * dwarf2read.h (struct dwarf2_psymtab): New.
2281 (struct dwarf2_per_cu_data) <psymtab>: Use it.
2282 * dwarf2read.c (dwarf2_create_include_psymtab)
2283 (dwarf2_build_include_psymtabs, create_type_unit_group)
2284 (create_partial_symtab, process_psymtab_comp_unit_reader)
2285 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
2286 (set_partial_user): Use dwarf2_psymtab.
2287 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
2288 (psymtab_to_symtab_1, process_full_comp_unit)
2289 (process_full_type_unit, dwarf2_ranges_read)
2290 (dwarf2_get_pc_bounds, psymtab_include_file_name)
2291 (dwarf_decode_lines): Use dwarf2_psymtab.
2292 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
2293 (add_address_entry_worker, write_one_signatured_type)
2294 (recursively_count_psymbols, recursively_write_psymbols)
2295 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
2296 (write_debug_names): Likewise.
2297 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
2298 <pst>: Now a legacy_psymtab.
2299 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
2300 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
2301 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
2302 * ctfread.c (struct ctf_psymtab): New.
2303 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
2304 ctf_psymtab.
2305 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
2306 (create_partial_symtab): Return a ctf_psymtab.
2307 (scan_partial_symbols): Update.
2308
c3693a1d
TT
23092020-01-26 Tom Tromey <tom@tromey.com>
2310
2311 * xcoffread.c (xcoff_start_psymtab): Use new.
2312 * psymtab.c (partial_symtab::partial_symtab): New constructor,
2313 renamed from start_psymtab_common.
2314 * psympriv.h (struct partial_symtab): Add new constructor.
2315 (start_psymtab_common): Don't declare.
2316 * mdebugread.c (parse_partial_symbols): Use new.
2317 * dwarf2read.c (create_partial_symtab): Use new.
2318 * dbxread.c (start_psymtab): Use new.
2319 * ctfread.c (create_partial_symtab): Use new.
2320
32caafd0
TT
23212020-01-26 Tom Tromey <tom@tromey.com>
2322
2323 * xcoffread.c (xcoff_end_psymtab): Use new.
2324 * psymtab.c (start_psymtab_common): Use new.
2325 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
2326 Update.
2327 * psympriv.h (struct partial_symtab): Add parameters to
2328 constructor. Don't inline.
2329 (allocate_psymtab): Don't declare.
2330 * mdebugread.c (new_psymtab): Use new.
2331 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
2332 * dbxread.c (dbx_end_psymtab): Use new.
2333
abaa2f23
TT
23342020-01-26 Tom Tromey <tom@tromey.com>
2335
2336 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
2337 allocate_psymtab. Update documentation.
2338 * psymtab.c (psymtab_storage::install_psymtab): Rename from
2339 allocate_psymtab. Do not use new.
2340 (allocate_psymtab): Use new. Update.
2341
6d94535f
TT
23422020-01-26 Tom Tromey <tom@tromey.com>
2343
2344 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2345 * psymtab.c (psym_print_stats): Update.
2346 * psympriv.h (struct partial_symtab) <readin,
2347 psymtabs_addrmap_supported, anonymous>: Now bool.
2348 * mdebugread.c (psymtab_to_symtab_1): Update.
2349 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
2350 (build_type_psymtabs_reader, psymtab_to_symtab_1)
2351 (process_full_comp_unit, process_full_type_unit): Update.
2352 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2353 * ctfread.c (psymtab_to_symtab): Update.
2354
6f17252b
TT
23552020-01-26 Tom Tromey <tom@tromey.com>
2356
2357 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
2358 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
2359 * psymtab.c (psymtab_storage): Delete psymtabs.
2360 (psymtab_storage::allocate_psymtab): Use new.
2361 (psymtab_storage::discard_psymtab): Use delete.
2362 * psympriv.h (struct partial_symtab): Add constructor and
2363 initializers.
2364
f6f1cebc
TT
23652020-01-26 Tom Tromey <tom@tromey.com>
2366
2367 * machoread.c: Do not include psympriv.h.
2368
e47e48f6
PW
23692020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2370
2371 * NEWS: Mention the new option and the set/show commands.
2372
a2fedca9
PW
23732020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2374
2375 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
2376 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
2377 (validate_exec_file): New variables, enums, functions.
2378 (exec_file_locate_attach, print_section_info): Style the filenames.
2379 (_initialize_exec): Install show_exec_file_mismatch_command and
2380 set_exec_file_mismatch_command.
2381 * gdbcore.h (validate_exec_file): Declare.
2382 * infcmd.c (attach_command): Call validate_exec_file.
2383 * remote.c ( remote_target::remote_add_inferior): Likewise.
2384
7ffa82e1
AB
23852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2386
2387 * frame.c (find_frame_sal): Move call to get_next_frame into more
2388 inner scope.
2389 * inline-frame.c (inilne_state) <inline_state>: Update argument
2390 types.
2391 (inilne_state) <skipped_symbol>: Rename to...
2392 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
2393 (skip_inline_frames): Build vector of skipped symbols and use this
2394 to reate the inline_state.
2395 (inline_skipped_symbol): Add a comment and some assertions, fetch
2396 skipped symbol from the list.
2397
3d92a3e3
AB
23982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * buildsym.c (lte_is_less_than): Delete.
2401 (buildsym_compunit::end_symtab_with_blockvector): Create local
2402 lambda function to sort line table entries, and use
2403 std::stable_sort instead of std::sort.
2404 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
2405 markers when looking for a previous line.
2406
94a72be7
AB
24072020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * dwarf2read.c (lnp_state_machine::record_line): Include
2410 end_sequence parameter in debug print out. Record the line if we
2411 are at an end_sequence marker even if it's not the start of a
2412 statement.
2413 * symmisc.c (maintenance_print_one_line_table): Print end of
2414 sequence markers with 'END' not '0'.
2415
53af73bf
PA
24162020-01-24 Pedro Alves <palves@redhat.com>
2417
2418 PR gdb/25410
2419 * thread.c (scoped_restore_current_thread::restore): Use
2420 switch_to_inferior_no_thread.
2421 * exec.c: Include "progspace-and-thread.h".
2422 (add_target_sections, remove_target_sections):
2423 scoped_restore_current_pspace_and_thread instead of
2424 scoped_restore_current_thread.
2425 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
2426 and aspace to the inferior before calling clone_program_space.
2427 Remove stale comment.
2428
3050c6f4
CB
24292020-01-24 Christian Biesinger <cbiesinger@google.com>
2430
2431 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
2432 (arm_netbsd_nat_target::fetch_registers): ...this.
2433 (arm_nbsd_nat_target::store_registers): Rename to...
2434 (arm_netbsd_nat_target::store_registers): ...this.
2435
73685c7e
CB
24362020-01-24 Christian Biesinger <cbiesinger@google.com>
2437
2438 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2439 register_t.
2440
89203d40
CB
24412020-01-24 Christian Biesinger <cbiesinger@google.com>
2442
2443 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
2444 Update comment.
2445 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
2446 Likewise.
2447 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
2448 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
2449 the correct replacement (iterate_over_regset_sections).
2450 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
2451 Update comment.
2452
1ba1ac88
AB
24532020-01-24 Graham Markall <graham.markall@embecosm.com>
2454
2455 PR gdb/23718
2456 * gdb/python/python.c (execute_gdb_command): Call
2457 async_enable_stdin in catch block.
2458
f3364a6d
AB
24592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
2462 SWITCH_THRU_ALL_UIS.
2463
733d0a67
AB
24642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 PR tui/9765
2467 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
2468 comment, add extra parameter, and update to store previous symbol
2469 when appropriate.
2470 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
2471 add extra parameter.
2472 * tui/tui-disasm.c (tui_disassemble): Update header comment,
2473 remove unneeded parameter, add try/catch around gdb_print_insn,
2474 rewrite to add items to asm_lines vector.
2475 (tui_find_backward_disassembly_start_address): New function.
2476 (tui_find_disassembly_address): Updated throughout.
2477 (tui_disasm_window::set_contents): Update for changes to
2478 tui_disassemble.
2479 (tui_disasm_window::do_scroll_vertical): No need to adjust the
2480 number of lines to scroll.
2481
b3b3bada
SM
24822020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2483
2484 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
2485 (SECT_OFF_DATA): Likewise.
2486 (SECT_OFF_RODATA): Likewise.
2487 (SECT_OFF_TEXT): Likewise.
2488 (SECT_OFF_BSS): Likewise.
2489 (struct objfile) <text_section_offset, data_section_offset>: New
2490 methods.
2491 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
2492 objfile::text_section_offset.
2493 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2494 * coffread.c (coff_symtab_read): Likewise.
2495 (enter_linenos): Likewise.
2496 (process_coff_symbol): Likewise.
2497 * ctfread.c (get_objfile_text_range): Likewise.
2498 * dtrace-probe.c (dtrace_probe::get_relocated_address):
2499 Use objfile::data_section_offset.
2500 * dwarf2-frame.c (execute_cfa_program): Use
2501 objfile::text_section_offset.
2502 (dwarf2_frame_find_fde): Likewise.
2503 * dwarf2read.c (create_addrmap_from_index): Likewise.
2504 (create_addrmap_from_aranges): Likewise.
2505 (dw2_find_pc_sect_compunit_symtab): Likewise.
2506 (process_psymtab_comp_unit_reader): Likewise.
2507 (add_partial_symbol): Likewise.
2508 (add_partial_subprogram): Likewise.
2509 (process_full_comp_unit): Likewise.
2510 (read_file_scope): Likewise.
2511 (read_func_scope): Likewise.
2512 (read_lexical_block_scope): Likewise.
2513 (read_call_site_scope): Likewise.
2514 (dwarf2_rnglists_process): Likewise.
2515 (dwarf2_ranges_process): Likewise.
2516 (dwarf2_ranges_read): Likewise.
2517 (dwarf_decode_lines_1): Likewise.
2518 (new_symbol): Likewise.
2519 (dwarf2_fetch_die_loc_sect_off): Likewise.
2520 (dwarf2_per_cu_text_offset): Likewise.
2521 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2522 * hppa-tdep.c (read_unwind_info): Likewise.
2523 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
2524 * psympriv.h (struct partial_symtab): Likewise.
2525 * psymtab.c (find_pc_sect_psymtab): Likewise.
2526 * solib-svr4.c (enable_break): Likewise.
2527 * stap-probe.c (relocate_address): Use
2528 objfile::data_section_offset.
2529 * xcoffread.c (enter_line_range): Use
2530 objfile::text_section_offset.
2531 (read_xcoff_symtab): Likewise.
2532
ab53f382
SM
25332020-01-23 Simon Marchi <simon.marchi@efficios.com>
2534
2535 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
2536 declaration to narrower scopes.
2537
e7eee665
SM
25382020-01-23 Simon Marchi <simon.marchi@efficios.com>
2539
2540 * darwin-nat.h (struct darwin_exception_msg, enum
2541 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
2542 Move up.
2543 (class darwin_nat_target) <wait_1, check_new_threads,
2544 decode_exception_message, decode_message, stop_inferior,
2545 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
2546 * darwin-nat.c (darwin_check_new_threads): Rename to...
2547 (darwin_nat_target::check_new_threads): ... this.
2548 (darwin_suspend_inferior_it): Remove.
2549 (darwin_decode_exception_message): Rename to...
2550 (darwin_nat_target::decode_exception_message): ... this.
2551 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
2552 (darwin_decode_message): Rename to...
2553 (darwin_nat_target::decode_message): ... this.
2554 (cancel_breakpoint): Rename to...
2555 (darwin_nat_target::cancel_breakpoint): ... this.
2556 (darwin_wait): Rename to...
2557 (darwin_nat_target::wait_1): ... this. Use range-based for loop
2558 instead of iterate_over_inferiors.
2559 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
2560 (darwin_stop_inferior): Rename to...
2561 (darwin_nat_target::stop_inferior): ... this.
2562 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
2563 (darwin_init_thread_list): Rename to...
2564 (darwin_nat_target::init_thread_list): ... this.
2565 (darwin_ptrace_him): Rename to...
2566 (darwin_nat_target::ptrace_him): ... this.
2567 (darwin_nat_target::create_inferior): Pass lambda function to
2568 fork_inferior.
2569 (darwin_nat_target::detach): Call stop_inferior instead of
2570 darwin_stop_inferior.
2571 * fork-inferior.h (fork_inferior): Change init_trace_fun
2572 parameter to gdb::function_view.
2573 * fork-inferior.c (fork_inferior): Likewise.
2574
c162ed3e
HD
25752020-01-23 Hannes Domani <ssbssa@yahoo.de>
2576
2577 * i386-cygwin-tdep.c (core_process_module_section): Update.
2578 * windows-nat.c (struct lm_info_windows): Add text_offset.
2579 (windows_xfer_shared_libraries): Update.
2580 * windows-tdep.c (windows_xfer_shared_library):
2581 Add text_offset_cached argument.
2582 * windows-tdep.h (windows_xfer_shared_library): Update.
2583
a1237872
SM
25842020-01-21 Simon Marchi <simon.marchi@efficios.com>
2585
2586 * gdbarch.sh: Add declaration for _initialize_gdbarch.
2587
b3ee6dd9
SM
25882020-01-21 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
2591 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
2592 replace with range-based for.
2593 (gdbsim_interrupt_inferior): Remove.
2594 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
2595 with a range-based for. Inline code from
2596 gdbsim_interrupt_inferior.
2597
f9fac3c8
SM
25982020-01-21 Simon Marchi <simon.marchi@efficios.com>
2599
2600 * infrun.c (proceed): Fix indentation.
2601
f6474de9
TT
26022020-01-21 Tom Tromey <tromey@adacore.com>
2603
2604 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
2605 * python/python.c (python_extension_ops): Update.
2606 (gdbpy_colorize): New function.
2607 * python/lib/gdb/__init__.py (colorize): New function.
2608 * extension.h (ext_lang_colorize): Declare.
2609 * extension.c (ext_lang_colorize): New function.
2610 * extension-priv.h (struct extension_language_ops) <colorize>: New
2611 member.
2612 * cli/cli-style.c (_initialize_cli_style): Update help text.
2613
f0c702d4
LM
26142020-01-21 Luis Machado <luis.machado@linaro.org>
2615
2616 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
2617 <cond>: Change type to bool.
2618 (aarch64_displaced_step_b_cond): Update cond to use bool type.
2619 (aarch64_displaced_step_cb): Likewise.
2620 (aarch64_displaced_step_tb): Likewise.
2621
1ab139e5
LM
26222020-01-21 Luis Machado <luis.machado@linaro.org>
2623
2624 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
2625 output.
2626
0c271889
LM
26272020-01-21 Luis Machado <luis.machado@linaro.org>
2628
2629 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
2630 <pc_adjust>: Adjust the documentation.
2631 (aarch64_displaced_step_fixup): Check if PC really moved before
2632 adjusting it.
2633
4d89c1c7
TT
26342020-01-19 Tom Tromey <tom@tromey.com>
2635
2636 * disasm.c (~gdb_disassembler): New destructor.
2637 (gdb_buffered_insn_length): Call disassemble_free_target.
2638 * disasm.h (class gdb_disassembler): Declare destructor. Use
2639 DISABLE_COPY_AND_ASSIGN.
2640
c0ab21c2
TT
26412020-01-19 Tom Tromey <tom@tromey.com>
2642
2643 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
2644 (die_reader_func_ftype): Remove.
2645 (cutu_reader): New class.
2646 (dw2_get_file_names_reader): Remove "data" parameter.
2647 (dw2_get_file_names): Use cutu_reader.
2648 (create_debug_type_hash_table): Update.
2649 (read_cutu_die_from_dwo): Update comment.
2650 (lookup_dwo_unit): Add dwo_name parameter.
2651 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
2652 die_reader_func_ftype and data parameters.
2653 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
2654 Remove die_reader_func_ftype and data parameters.
2655 (~cutu_reader): New; from init_cutu_and_read_dies.
2656 (cutu_reader::cutu_reader): Rename from
2657 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
2658 and data parameters.
2659 (init_cutu_and_read_dies_simple): Remove.
2660 (struct process_psymtab_comp_unit_data): Remove.
2661 (process_psymtab_comp_unit_reader): Remove data parameter; add
2662 want_partial_unit and pretend_language parameters.
2663 (process_psymtab_comp_unit): Use cutu_reader.
2664 (build_type_psymtabs_reader): Remove data parameter.
2665 (build_type_psymtabs_1): Use cutu_reader.
2666 (process_skeletonless_type_unit): Likewise.
2667 (load_partial_comp_unit_reader): Remove.
2668 (load_partial_comp_unit): Use cutu_reader.
2669 (load_full_comp_unit_reader): Remove.
2670 (load_full_comp_unit): Use cutu_reader.
2671 (struct create_dwo_cu_data): Remove.
2672 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
2673 dwo_unit parameters.
2674 (create_cus_hash_table): Use cutu_reader.
2675 (struct dwarf2_read_addr_index_data): Remove.
2676 (dwarf2_read_addr_index_reader): Remove.
2677 (dwarf2_read_addr_index): Use cutu_reader.
2678 (read_signatured_type_reader): Remove.
2679 (read_signatured_type): Use cutu_reader.
2680
45bbae5c
TT
26812020-01-19 Tom Tromey <tom@tromey.com>
2682
2683 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
2684 * tui/tui-wingeneral.h (class tui_suppress_output): New.
2685 (tui_wrefresh): Declare.
2686 * tui/tui-wingeneral.c (suppress_output): New global.
2687 (tui_suppress_output, ~tui_suppress_output): New constructor and
2688 destructor.
2689 (tui_wrefresh): New function.
2690 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
2691 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
2692 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
2693 method.
2694 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
2695 tui_wrefresh.
2696 (tui_data_window::no_refresh): New method.
2697 (tui_data_item_window::refresh_window): Call tui_wrefresh.
2698 (tui_reg_command): Use tui_suppress_output
2699 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
2700 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
2701 method.
2702 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
2703
4f13c1c0
TT
27042020-01-19 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2707 Handle case where symtab is null.
2708
fa47e446
SM
27092020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * linux-fork.c (one_fork_p): Simplify.
2712
26f42329
SM
27132020-01-17 Simon Marchi <simon.marchi@efficios.com>
2714
2715 * top.c (struct qt_args): Remove.
2716 (kill_or_detach): Change return type to void, replace `void *`
2717 parameter with a proper one.
2718 (print_inferior_quit_action): Likewise.
2719 (quit_confirm): Use range-based for loop to iterate over inferiors.
2720 (quit_force): Likewise.
2721
a9ac81b1
SM
27222020-01-17 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
2725 `void *` parameter with proper parameters.
2726 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
2727 (print_one_inferior): Change return type to void, replace `void *`
2728 parameter with proper parameters.
2729 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
2730 inferiors.
2731 (get_other_inferior): Remove.
2732 (mi_cmd_remove_inferior): Use range-based loop to iterate over
2733 inferiors.
2734
788eca49
SM
27352020-01-17 Simon Marchi <simon.marchi@efficios.com>
2736
2737 * mi/mi-interp.c (report_initial_inferior): Remove.
2738 (mi_interp::init): Use range-based for to iterate over inferiors.
2739
d9bc85b6
SM
27402020-01-17 Simon Marchi <simon.marchi@efficios.com>
2741
2742 * python/py-inferior.c (build_inferior_list): Remove.
2743 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
2744
40c94099
CB
27452020-01-16 Christian Biesinger <cbiesinger@google.com>
2746
2747 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
2748 (btrace_stitch_trace): Likewise.
2749 * charset.c (intermediate_encoding): Likewise (vaild).
2750 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
2751 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
2752 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
2753
e0cdfe3c
HD
27542020-01-16 Hannes Domani <ssbssa@yahoo.de>
2755
2756 * windows-tdep.c (windows_get_tlb_type):
2757 Add rtl_user_process_parameters type.
2758
790f1718
PA
27592020-01-16 Pedro Alves <palves@redhat.com>
2760 Norbert Lange <nolange79@gmail.com>
2761
2762 PR build/24805
2763 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
2764 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
2765 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
2766 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
2767 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
2768 (ps_plog): Redeclare exported functions with default visibility.
2769
3112ed97
NA
27702020-01-16 Nitika Achra <Nitika.Achra@amd.com>
2771
2772 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
2773 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
2774
8dc3273e
SM
27752020-01-15 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * infcmd.c (post_create_inferior): Use get_thread_regcache
2778 instead of get_current_regcache.
2779
ff47f4f0
TT
27802020-01-14 Tom Tromey <tom@tromey.com>
2781
2782 PR symtab/12535:
2783 * python/python.c (gdbpy_decode_line): Treat empty string the same
2784 as no argument.
2785
975f45b7
TT
27862020-01-14 Tom Tromey <tom@tromey.com>
2787
2788 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
2789
25e57356
TT
27902020-01-14 Tom Tromey <tom@tromey.com>
2791
2792 * nat/linux-btrace.c: Don't include <config.h>.
2793 * nat/linux-ptrace.c: Don't include <config.h>.
2794 * nat/x86-linux-dregs.c: Don't include <config.h>.
2795
05ea2a05
TT
27962020-01-14 Tom Tromey <tom@tromey.com>
2797
2798 * configure: Rebuild.
2799 * configure.ac: Move many checks to ../gdbsupport/common.m4.
2800
01027315
TT
28012020-01-14 Tom Tromey <tom@tromey.com>
2802
2803 * nat/x86-linux-dregs.c: Include configh.h.
2804 * nat/linux-ptrace.c: Include configh.h.
2805 * nat/linux-btrace.c: Include configh.h.
2806 * defs.h: Include config.h, bfd.h.
2807 * configure.ac: Don't source common.host.
2808 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
2809 * configure: Rebuild.
2810 * acinclude.m4: Update path.
2811 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
2812 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
2813 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
2814 (CLIBS): Add LIBSUPPORT.
2815 (CDEPS): Likewise.
2816 (COMMON_SFILES): Remove gdbsupport files.
2817 (HFILES_NO_SRCDIR): Likewise.
2818 (stamp-version): Update path to create-version.sh.
2819 (ALLDEPFILES): Remove gdbsupport files.
2820
b2ceabe8
TT
28212020-01-14 Tom Tromey <tom@tromey.com>
2822
2823 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
2824 USE_WIN32API when needed.
2825 * configure.ac (USE_WIN32API): Don't define.
2826 (WIN32LIBS): Use WIN32APILIBS.
2827 * configure: Rebuild.
2828
25c51f71
TT
28292020-01-14 Tom Tromey <tom@tromey.com>
2830
2831 * configure: Rebuild.
2832 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
2833
717c684d
BE
28342020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2835
2836 * skip.c (skip_function_command): Make skip w/o arguments use the
2837 name of the inlined function if pc is inside any inlined function.
2838
7da6a5b9
LM
28392020-01-14 Luis Machado <luis.machado@linaro.org>
2840
2841 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
2842 * infrun.c (resume_1): Likewise.
2843 (handle_inferior_event): Remove stale comment.
2844 * linux-nat.c (linux_nat_target::resume): Update comments.
2845 (save_stop_reason): Likewise.
2846 (linux_nat_filter_event): Likewise.
2847 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
2848
44e4c775
AB
28492020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * elfread.c (record_minimal_symbol): Set section index to 0 for
2852 non-allocatable sections.
2853
18a8505e
AT
2854
28552020-01-13 Ali Tamur <tamur@google.com>
2856
2857 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
2858 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
2859 to gdb::optional. Update comments.
2860 (dwo_file): Update comments.
2861 (read_attribute): Update API to take an additional out parameter,
2862 need_reprocess. This is used to mark attributes that need other
2863 attributes (e.g. str_offsets_base) for correct computation which may not
2864 have been read yet.
2865 (read_attribute_reprocess): New function declaration.
2866 (read_addr_index): Likewise.
2867 (read_dwo_str_index): Likewise.
2868 (read_stub_str_index): Likewise.
2869 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
2870 (lookup_addr_base): New function definition.
2871 (lookup_ranges_base): Likewise.
2872 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
2873 lookup_ranges_base.
2874 (init_cutu_and_read_dies): Update comments.
2875 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
2876 unit. This is used to inherit parent's str_offsets_base and addr_base.
2877 Update comments.
2878 (init_cutu_and_read_dies_simple): Reflect API changes.
2879 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
2880 (create_cus_hash_table): Change API to take parent compile unit.
2881 Reflect API changes.
2882 (open_and_init_dwo_file): Reflect API changes.
2883 (dwarf2_get_pc_bounds): Update comments.
2884 (dwarf2_record_block_ranges): Likewise.
2885 (read_full_die_1): Change implementation to reprocess attributes that
2886 need str_offsets_base and addr_base.
2887 (partial_die_info::read): Likewise.
2888 (read_attribute_reprocess): New function definition.
2889 (read_attribute_value): Change API to take an additional out parameter,
2890 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
2891 when a non-dwo compile unit has index based attributes.
2892 (read_attribute): Reflect API changes.
2893 (read_addr_index_1): Reflect API changes. Update comments.
2894 (dwarf2_read_addr_index_data): Reflect API changes.
2895 (dwarf2_read_addr_index): Likewise.
2896 (read_str_index): Change API and implementation. This becomes a helper
2897 to be used by the new string index related methods. Update error
2898 message and comments.
2899 (read_dwo_str_index): New function definition.
2900 (read_stub_str_index): Likewise.
2901 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
2902 * symfile.h (dwarf2_debug_sections): Likewise.
2903 * xcoffread.c (dwarf2_debug_sections): Likewise.
2904
0cac9354
SM
29052020-01-13 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * gdbcore.h (struct core_fns) <core_read_registers>: Change
2908 core_reg_sect type to gdb_byte *.
2909 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
2910 * cris-tdep.c (fetch_core_registers): Likewise.
2911 * corelow.c (core_target::get_core_register_section): Change
2912 type of `contents` to gdb::byte_vector.
2913
9a6d629c
AB
29142020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * tui/tui-wingeneral.c (box_win): Position the title in the center
2917 of the border.
2918
d8b2f9e3
SM
29192020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * corelow.c (core_target::get_core_register_section): Use
2922 std::vector instead of alloca.
2923
bb564c58
SM
29242020-01-13 Simon Marchi <simon.marchi@efficios.com>
2925
2926 * warning.m4: Add -Wmissing-declarations to build_warnings.
2927 * configure: Re-generate.
2928
6b366111
SM
29292020-01-13 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * python/python.c (init__gdb_module): Add declaration.
2932
6c265988
SM
29332020-01-13 Simon Marchi <simon.marchi@efficios.com>
2934
2935 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
2936 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
2937 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
2938 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
2939 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
2940 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
2941 * ada-exp.y (_initialize_ada_exp): Add declaration.
2942 * ada-lang.c (_initialize_ada_language): Add declaration.
2943 * ada-tasks.c (_initialize_tasks): Add declaration.
2944 * agent.c (_initialize_agent): Add declaration.
2945 * aix-thread.c (_initialize_aix_thread): Add declaration.
2946 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
2947 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
2948 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
2949 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
2950 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
2951 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2952 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
2953 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
2954 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
2955 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
2956 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
2957 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
2958 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
2959 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
2960 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
2961 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
2962 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
2963 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
2964 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
2965 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
2966 * annotate.c (_initialize_annotate): Add declaration.
2967 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
2968 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
2969 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
2970 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
2971 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
2972 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
2973 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
2974 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
2975 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
2976 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
2977 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
2978 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
2979 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2980 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
2981 * auto-load.c (_initialize_auto_load): Add declaration.
2982 * auxv.c (_initialize_auxv): Add declaration.
2983 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
2984 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
2985 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
2986 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
2987 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
2988 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
2989 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
2990 * breakpoint.c (_initialize_breakpoint): Add declaration.
2991 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
2992 * btrace.c (_initialize_btrace): Add declaration.
2993 * charset.c (_initialize_charset): Add declaration.
2994 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
2995 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2996 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2997 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
2998 * cli/cli-script.c (_initialize_cli_script): Add declaration.
2999 * cli/cli-style.c (_initialize_cli_style): Add declaration.
3000 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
3001 * coffread.c (_initialize_coffread): Add declaration.
3002 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
3003 * compile/compile.c (_initialize_compile): Add declaration.
3004 * complaints.c (_initialize_complaints): Add declaration.
3005 * completer.c (_initialize_completer): Add declaration.
3006 * copying.c (_initialize_copying): Add declaration.
3007 * corefile.c (_initialize_core): Add declaration.
3008 * corelow.c (_initialize_corelow): Add declaration.
3009 * cp-abi.c (_initialize_cp_abi): Add declaration.
3010 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
3011 * cp-support.c (_initialize_cp_support): Add declaration.
3012 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
3013 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
3014 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
3015 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
3016 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
3017 * ctfread.c (_initialize_ctfread): Add declaration.
3018 * d-lang.c (_initialize_d_language): Add declaration.
3019 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
3020 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
3021 * dbxread.c (_initialize_dbxread): Add declaration.
3022 * dcache.c (_initialize_dcache): Add declaration.
3023 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
3024 * disasm.c (_initialize_disasm): Add declaration.
3025 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
3026 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
3027 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
3028 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
3029 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
3030 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
3031 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
3032 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
3033 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
3034 * elfread.c (_initialize_elfread): Add declaration.
3035 * exec.c (_initialize_exec): Add declaration.
3036 * extension.c (_initialize_extension): Add declaration.
3037 * f-lang.c (_initialize_f_language): Add declaration.
3038 * f-valprint.c (_initialize_f_valprint): Add declaration.
3039 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
3040 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
3041 * filesystem.c (_initialize_filesystem): Add declaration.
3042 * findcmd.c (_initialize_mem_search): Add declaration.
3043 * findvar.c (_initialize_findvar): Add declaration.
3044 * fork-child.c (_initialize_fork_child): Add declaration.
3045 * frame-base.c (_initialize_frame_base): Add declaration.
3046 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3047 * frame.c (_initialize_frame): Add declaration.
3048 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
3049 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
3050 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
3051 * gcore.c (_initialize_gcore): Add declaration.
3052 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
3053 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
3054 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
3055 * gdbarch.c (_initialize_gdbarch): Add declaration.
3056 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
3057 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
3058 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
3059 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
3060 * go-lang.c (_initialize_go_language): Add declaration.
3061 * go32-nat.c (_initialize_go32_nat): Add declaration.
3062 * guile/guile.c (_initialize_guile): Add declaration.
3063 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3064 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
3065 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
3066 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
3067 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
3068 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
3069 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
3070 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
3071 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
3072 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
3073 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
3074 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
3075 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
3076 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
3077 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
3078 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
3079 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
3080 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
3081 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
3082 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
3083 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
3084 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
3085 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
3086 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
3087 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
3088 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
3089 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
3090 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
3091 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
3092 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
3093 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
3094 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
3095 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
3096 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
3097 * infcall.c (_initialize_infcall): Add declaration.
3098 * infcmd.c (_initialize_infcmd): Add declaration.
3099 * inflow.c (_initialize_inflow): Add declaration.
3100 * infrun.c (_initialize_infrun): Add declaration.
3101 * interps.c (_initialize_interpreter): Add declaration.
3102 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
3103 * jit.c (_initialize_jit): Add declaration.
3104 * language.c (_initialize_language): Add declaration.
3105 * linux-fork.c (_initialize_linux_fork): Add declaration.
3106 * linux-nat.c (_initialize_linux_nat): Add declaration.
3107 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
3108 * linux-thread-db.c (_initialize_thread_db): Add declaration.
3109 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
3110 * m2-lang.c (_initialize_m2_language): Add declaration.
3111 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
3112 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
3113 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
3114 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
3115 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3116 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
3117 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
3118 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
3119 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
3120 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3121 * machoread.c (_initialize_machoread): Add declaration.
3122 * macrocmd.c (_initialize_macrocmd): Add declaration.
3123 * macroscope.c (_initialize_macroscope): Add declaration.
3124 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
3125 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
3126 * maint.c (_initialize_maint_cmds): Add declaration.
3127 * mdebugread.c (_initialize_mdebugread): Add declaration.
3128 * memattr.c (_initialize_mem): Add declaration.
3129 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
3130 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
3131 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
3132 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
3133 * mi/mi-main.c (_initialize_mi_main): Add declaration.
3134 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
3135 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
3136 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
3137 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
3138 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
3139 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
3140 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
3141 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
3142 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
3143 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3144 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
3145 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
3146 * mipsread.c (_initialize_mipsread): Add declaration.
3147 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
3148 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
3149 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
3150 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
3151 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
3152 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
3153 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
3154 * nto-procfs.c (_initialize_procfs): Add declaration.
3155 * objc-lang.c (_initialize_objc_language): Add declaration.
3156 * observable.c (_initialize_observer): Add declaration.
3157 * opencl-lang.c (_initialize_opencl_language): Add declaration.
3158 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
3159 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
3160 * osabi.c (_initialize_gdb_osabi): Add declaration.
3161 * osdata.c (_initialize_osdata): Add declaration.
3162 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3163 * parse.c (_initialize_parse): Add declaration.
3164 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
3165 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
3166 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
3167 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
3168 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
3169 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
3170 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
3171 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
3172 * printcmd.c (_initialize_printcmd): Add declaration.
3173 * probe.c (_initialize_probe): Add declaration.
3174 * proc-api.c (_initialize_proc_api): Add declaration.
3175 * proc-events.c (_initialize_proc_events): Add declaration.
3176 * proc-service.c (_initialize_proc_service): Add declaration.
3177 * procfs.c (_initialize_procfs): Add declaration.
3178 * producer.c (_initialize_producer): Add declaration.
3179 * psymtab.c (_initialize_psymtab): Add declaration.
3180 * python/python.c (_initialize_python): Add declaration.
3181 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
3182 * record-btrace.c (_initialize_record_btrace): Add declaration.
3183 * record-full.c (_initialize_record_full): Add declaration.
3184 * record.c (_initialize_record): Add declaration.
3185 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
3186 * regcache.c (_initialize_regcache): Add declaration.
3187 * reggroups.c (_initialize_reggroup): Add declaration.
3188 * remote-notif.c (_initialize_notif): Add declaration.
3189 * remote-sim.c (_initialize_remote_sim): Add declaration.
3190 * remote.c (_initialize_remote): Add declaration.
3191 * reverse.c (_initialize_reverse): Add declaration.
3192 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
3193 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
3194 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
3195 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
3196 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
3197 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
3198 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
3199 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
3200 Add declaration.
3201 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
3202 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
3203 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
3204 * rust-exp.y (_initialize_rust_exp): Add declaration.
3205 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
3206 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
3207 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
3208 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
3209 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
3210 * score-tdep.c (_initialize_score_tdep): Add declaration.
3211 * ser-go32.c (_initialize_ser_dos): Add declaration.
3212 * ser-mingw.c (_initialize_ser_windows): Add declaration.
3213 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
3214 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
3215 * ser-uds.c (_initialize_ser_socket): Add declaration.
3216 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
3217 * serial.c (_initialize_serial): Add declaration.
3218 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
3219 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
3220 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
3221 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
3222 * skip.c (_initialize_step_skip): Add declaration.
3223 * sol-thread.c (_initialize_sol_thread): Add declaration.
3224 * solib-aix.c (_initialize_solib_aix): Add declaration.
3225 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
3226 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
3227 * solib-frv.c (_initialize_frv_solib): Add declaration.
3228 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3229 * solib-target.c (_initialize_solib_target): Add declaration.
3230 * solib.c (_initialize_solib): Add declaration.
3231 * source-cache.c (_initialize_source_cache): Add declaration.
3232 * source.c (_initialize_source): Add declaration.
3233 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
3234 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
3235 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
3236 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
3237 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
3238 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
3239 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
3240 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
3241 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
3242 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
3243 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
3244 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
3245 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
3246 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
3247 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
3248 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
3249 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
3250 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
3251 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
3252 * stabsread.c (_initialize_stabsread): Add declaration.
3253 * stack.c (_initialize_stack): Add declaration.
3254 * stap-probe.c (_initialize_stap_probe): Add declaration.
3255 * std-regs.c (_initialize_frame_reg): Add declaration.
3256 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
3257 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
3258 * symfile.c (_initialize_symfile): Add declaration.
3259 * symmisc.c (_initialize_symmisc): Add declaration.
3260 * symtab.c (_initialize_symtab): Add declaration.
3261 * target.c (_initialize_target): Add declaration.
3262 * target-connection.c (_initialize_target_connection): Add
3263 declaration.
3264 * target-dcache.c (_initialize_target_dcache): Add declaration.
3265 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
3266 * thread.c (_initialize_thread): Add declaration.
3267 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
3268 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
3269 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
3270 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
3271 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
3272 * tracectf.c (_initialize_ctf): Add declaration.
3273 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
3274 * tracefile.c (_initialize_tracefile): Add declaration.
3275 * tracepoint.c (_initialize_tracepoint): Add declaration.
3276 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
3277 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
3278 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
3279 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
3280 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
3281 * tui/tui-win.c (_initialize_tui_win): Add declaration.
3282 * tui/tui.c (_initialize_tui): Add declaration.
3283 * typeprint.c (_initialize_typeprint): Add declaration.
3284 * ui-style.c (_initialize_ui_style): Add declaration.
3285 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
3286 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
3287 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
3288 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
3289 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
3290 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
3291 * unittests/filtered_iterator-selftests.c
3292 (_initialize_filtered_iterator_selftests): Add declaration.
3293 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
3294 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
3295 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
3296 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
3297 * unittests/main-thread-selftests.c
3298 (_initialize_main_thread_selftests): Add declaration.
3299 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
3300 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
3301 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
3302 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
3303 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
3304 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
3305 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
3306 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
3307 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
3308 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
3309 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
3310 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
3311 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
3312 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
3313 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
3314 declaration.
3315 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
3316 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
3317 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
3318 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
3319 * user-regs.c (_initialize_user_regs): Add declaration.
3320 * utils.c (_initialize_utils): Add declaration.
3321 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
3322 * valops.c (_initialize_valops): Add declaration.
3323 * valprint.c (_initialize_valprint): Add declaration.
3324 * value.c (_initialize_values): Add declaration.
3325 * varobj.c (_initialize_varobj): Add declaration.
3326 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
3327 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
3328 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3329 * windows-nat.c (_initialize_windows_nat): Add declaration.
3330 (_initialize_check_for_gdb_ini): Add declaration.
3331 (_initialize_loadable): Add declaration.
3332 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
3333 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
3334 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
3335 * xcoffread.c (_initialize_xcoffread): Add declaration.
3336 * xml-support.c (_initialize_xml_support): Add declaration.
3337 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
3338 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
3339 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
3340 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
3341
e2de1eec
SM
33422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3343
3344 * regformats/regdat.sh: Generate declaration for init function.
3345
e0037b4c
SM
33462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3347
3348 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
3349 up.
3350 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
3351 close_one_inferior>: New methods.
3352 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
3353 pass down target to find_inferior_pid.
3354 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
3355 Pass down target to find_inferior_ptid.
3356 (gdbsim_target::create_inferior): Pass down target to
3357 add_thread_silent.
3358 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
3359 target down to find_inferior_ptid and switch_to_thread.
3360 (gdbsim_target::close): Update to call close_one_inferior.
3361 (struct resume_data): Remove.
3362 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
3363 directly, rather than through a void pointer.
3364 (gdbsim_target::resume): Update to call resume_one_inferior.
3365
58920b5b
SM
33662020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3367
3368 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
3369
4ec89149
PA
33702020-01-12 Pedro Alves <palves@redhat.com>
3371
3372 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
3373 directly for the current inferior instead of
3374 discard_all_inferiors.
3375 (discard_all_inferiors): Delete.
3376
7c392d1d
TT
33772020-01-11 Tom Tromey <tom@tromey.com>
3378
3379 * tui/tui-wingeneral.c (box_win): Check cli_styling.
3380 * tui/tui-winsource.c (tui_source_window_base::refill): Use
3381 deprecated_safe_get_selected_frame.
3382
d9ebdab7
TBA
33832020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3384
3385 * inferior.c (print_inferior): Switch inferior before printing it.
3386
f3c469b9
PA
33872020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
3388 Pedro Alves <palves@redhat.com>
3389
3390 * progspace-and-thread.c (switch_to_program_space_and_thread):
3391 Assert there's an inferior for PSPACE. Use
3392 switch_to_inferior_no_thread to switch the inferior too.
3393 * progspace.c (program_space::~program_space): Call
3394 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
3395 (program_space::free_all_objfiles): Don't call clear_symtab_users
3396 here.
3397 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
3398
65c574f6
PA
33992020-01-10 Pedro Alves <palves@redhat.com>
3400
3401 * NEWS: Mention multi-target debugging, "info connections", and
3402 "add-inferior -no-connection".
3403
2f4fcf00
PA
34042020-01-10 Pedro Alves <palves@redhat.com>
3405
3406 * infrun.c: Include "target-connection.h".
3407 (check_multi_target_resumption): New.
3408 (proceed): Call it.
3409 * target-connection.c (make_target_connection_string): Make
3410 extern.
3411 * target-connection.h (make_target_connection_string): Declare.
3412
121b3efd
PA
34132020-01-10 Pedro Alves <palves@redhat.com>
3414
3415 * Makefile.in (COMMON_SFILES): Add target-connection.c.
3416 * inferior.c (uiout_field_connection): New function.
3417 (print_inferior): Add new "connection-id" column.
3418 (add_inferior_command): Show connection number/string of added
3419 inferior.
3420 * process-stratum-target.h
3421 (process_stratum_target::connection_string): New virtual method.
3422 (process_stratum_target::connection_number): New field.
3423 * remote.c (remote_target::connection_string): New override.
3424 * target-connection.c: New file.
3425 * target-connection.h: New file.
3426 * target.c (decref_target): Remove process_stratum targets from
3427 the connection list.
3428 (target_stack::push): Add process_stratum targets to the
3429 connection list.
3430
4f837581
PA
34312020-01-10 Pedro Alves <palves@redhat.com>
3432
3433 Revert:
3434 2016-04-12 Pedro Alves <palves@redhat.com>
3435 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
3436 Remove references to name.
3437 * serial.h (struct serial) <name>: Delete.
3438
f4ec508e
PA
34392020-01-10 Pedro Alves <palves@redhat.com>
3440
3441 * gdbarch-selftests.c (register_to_value_test): Remove "target
3442 already pushed" check.
3443
5b6d1e4f
PA
34442020-01-10 Pedro Alves <palves@redhat.com>
3445 John Baldwin <jhb@FreeBSD.org>
3446
3447 * aarch64-linux-nat.c
3448 (aarch64_linux_nat_target::thread_architecture): Adjust.
3449 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
3450 (task_command_1): Likewise.
3451 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
3452 (aix_thread_target::wait, aix_thread_target::fetch_registers)
3453 (aix_thread_target::store_registers)
3454 (aix_thread_target::thread_alive): Adjust.
3455 * amd64-fbsd-tdep.c: Include "inferior.h".
3456 (amd64fbsd_get_thread_local_address): Pass down target.
3457 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
3458 thread's gdbarch instead of target_gdbarch.
3459 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
3460 get_last_target_status.
3461 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
3462 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
3463 inferiors.
3464 (update_inserted_breakpoint_locations): Skip if inferiors with no
3465 execution.
3466 (update_global_location_list): When handling moribund locations,
3467 find representative inferior for location's pspace, and use thread
3468 count of its process_stratum target.
3469 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
3470 * bsd-uthread.c (bsd_uthread_target::wait): Use
3471 as_process_stratum_target and adjust thread_change_ptid and
3472 add_thread calls.
3473 (bsd_uthread_target::update_thread_list): Use
3474 as_process_stratum_target and adjust find_thread_ptid,
3475 thread_change_ptid and add_thread calls.
3476 * btrace.c (maint_btrace_packet_history_cmd): Adjust
3477 find_thread_ptid call.
3478 * corelow.c (add_to_thread_list): Adjust add_thread call.
3479 (core_target_open): Adjust add_thread_silent and thread_count
3480 calls.
3481 (core_target::pid_to_str): Adjust find_inferior_ptid call.
3482 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
3483 * event-top.c (async_disconnect): Pop targets from all inferiors.
3484 * exec.c (add_target_sections): Push exec target on all inferiors
3485 sharing the program space.
3486 (remove_target_sections): Remove the exec target from all
3487 inferiors sharing the program space.
3488 (exec_on_vfork): New.
3489 * exec.h (exec_on_vfork): Declare.
3490 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
3491 Pass it down.
3492 (fbsd_nat_target::update_thread_list): Adjust.
3493 (fbsd_nat_target::resume): Adjust.
3494 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
3495 down.
3496 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
3497 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
3498 get_thread_arch_regcache call.
3499 * fork-child.c (gdb_startup_inferior): Pass target down to
3500 startup_inferior and set_executing.
3501 * gdbthread.h (struct process_stratum_target): Forward declare.
3502 (add_thread, add_thread_silent, add_thread_with_info)
3503 (in_thread_list): Add process_stratum_target parameter.
3504 (find_thread_ptid(inferior*, ptid_t)): New overload.
3505 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
3506 parameter.
3507 (all_threads()): Delete overload.
3508 (all_threads, all_non_exited_threads): Add process_stratum_target
3509 parameter.
3510 (all_threads_safe): Use brace initialization.
3511 (thread_count): Add process_stratum_target parameter.
3512 (set_resumed, set_running, set_stop_requested, set_executing)
3513 (threads_are_executing, finish_thread_state): Add
3514 process_stratum_target parameter.
3515 (switch_to_thread): Use is_current_thread.
3516 * i386-fbsd-tdep.c: Include "inferior.h".
3517 (i386fbsd_get_thread_local_address): Pass down target.
3518 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
3519 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
3520 have_inferiors check.
3521 * inf-ptrace.c (inf_ptrace_target::create_inferior)
3522 (inf_ptrace_target::attach): Adjust.
3523 * infcall.c (run_inferior_call): Adjust.
3524 * infcmd.c (run_command_1): Pass target to
3525 scoped_finish_thread_state.
3526 (proceed_thread_callback): Skip inferiors with no execution.
3527 (continue_command): Rename 'all_threads' local to avoid hiding
3528 'all_threads' function. Adjust get_last_target_status call.
3529 (prepare_one_step): Adjust set_running call.
3530 (signal_command): Use user_visible_resume_target. Compare thread
3531 pointers instead of inferior_ptid.
3532 (info_program_command): Adjust to pass down target.
3533 (attach_command): Mark target's 'thread_executing' flag.
3534 (stop_current_target_threads_ns): New, factored out from ...
3535 (interrupt_target_1): ... this. Switch inferior before making
3536 target calls.
3537 * inferior-iter.h
3538 (struct all_inferiors_iterator, struct all_inferiors_range)
3539 (struct all_inferiors_safe_range)
3540 (struct all_non_exited_inferiors_range): Filter on
3541 process_stratum_target too. Remove explicit.
3542 * inferior.c (inferior::inferior): Push dummy target on target
3543 stack.
3544 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
3545 Add process_stratum_target parameter, and pass it down.
3546 (have_live_inferiors): Adjust.
3547 (switch_to_inferior_and_push_target): New.
3548 (add_inferior_command, clone_inferior_command): Handle
3549 "-no-connection" parameter. Use
3550 switch_to_inferior_and_push_target.
3551 (_initialize_inferior): Mention "-no-connection" option in
3552 the help of "add-inferior" and "clone-inferior" commands.
3553 * inferior.h: Include "process-stratum-target.h".
3554 (interrupt_target_1): Use bool.
3555 (struct inferior) <push_target, unpush_target, target_is_pushed,
3556 find_target_beneath, top_target, process_target, target_at,
3557 m_stack>: New.
3558 (discard_all_inferiors): Delete.
3559 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
3560 (all_inferiors, all_non_exited_inferiors): Add
3561 process_stratum_target parameter.
3562 * infrun.c: Include "gdb_select.h" and <unordered_map>.
3563 (target_last_proc_target): New global.
3564 (follow_fork_inferior): Push target on new inferior. Pass target
3565 to add_thread_silent. Call exec_on_vfork. Handle target's
3566 reference count.
3567 (follow_fork): Adjust get_last_target_status call. Also consider
3568 target.
3569 (follow_exec): Push target on new inferior.
3570 (struct execution_control_state) <target>: New field.
3571 (user_visible_resume_target): New.
3572 (do_target_resume): Call target_async.
3573 (resume_1): Set target's threads_executing flag. Consider resume
3574 target.
3575 (commit_resume_all_targets): New.
3576 (proceed): Also consider resume target. Skip threads of inferiors
3577 with no execution. Commit resumtion in all targets.
3578 (start_remote): Pass current inferior to wait_for_inferior.
3579 (infrun_thread_stop_requested): Consider target as well. Pass
3580 thread_info pointer to clear_inline_frame_state instead of ptid.
3581 (infrun_thread_thread_exit): Consider target as well.
3582 (random_pending_event_thread): New inferior parameter. Use it.
3583 (do_target_wait): Rename to ...
3584 (do_target_wait_1): ... this. Add inferior parameter, and pass it
3585 down.
3586 (threads_are_resumed_pending_p, do_target_wait): New.
3587 (prepare_for_detach): Adjust calls.
3588 (wait_for_inferior): New inferior parameter. Handle it. Use
3589 do_target_wait_1 instead of do_target_wait.
3590 (fetch_inferior_event): Adjust. Switch to representative
3591 inferior. Pass target down.
3592 (set_last_target_status): Add process_stratum_target parameter.
3593 Save target in global.
3594 (get_last_target_status): Add process_stratum_target parameter and
3595 handle it.
3596 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
3597 (context_switch): Check inferior_ptid == null_ptid before calling
3598 inferior_thread().
3599 (get_inferior_stop_soon): Pass down target.
3600 (wait_one): Rename to ...
3601 (poll_one_curr_target): ... this.
3602 (struct wait_one_event): New.
3603 (wait_one): New.
3604 (stop_all_threads): Adjust.
3605 (handle_no_resumed, handle_inferior_event): Adjust to consider the
3606 event's target.
3607 (switch_back_to_stepped_thread): Also consider target.
3608 (print_stop_event): Update.
3609 (normal_stop): Update. Also consider the resume target.
3610 * infrun.h (wait_for_inferior): Remove declaration.
3611 (user_visible_resume_target): New declaration.
3612 (get_last_target_status, set_last_target_status): New
3613 process_stratum_target parameter.
3614 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3615 process_stratum_target parameter, and use it.
3616 (clear_inline_frame_state (thread_info*)): New.
3617 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3618 process_stratum_target parameter.
3619 (clear_inline_frame_state (thread_info*)): Declare.
3620 * linux-fork.c (delete_checkpoint_command): Pass target down to
3621 find_thread_ptid.
3622 (checkpoint_command): Adjust.
3623 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
3624 instead of just tweaking inferior_ptid.
3625 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
3626 (exit_lwp): Pass target down to find_thread_ptid.
3627 (attach_proc_task_lwp_callback): Pass target down to
3628 add_thread/set_running/set_executing.
3629 (linux_nat_target::attach): Pass target down to
3630 thread_change_ptid.
3631 (get_detach_signal): Pass target down to find_thread_ptid.
3632 Consider last target status's target.
3633 (linux_resume_one_lwp_throw, resume_lwp)
3634 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
3635 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
3636 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
3637 (linux_nat_target::async_wait_fd): New.
3638 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
3639 target down.
3640 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
3641 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
3642 * linux-thread-db.c (struct thread_db_info::process_target): New
3643 field.
3644 (add_thread_db_info): Save target.
3645 (get_thread_db_info): New process_stratum_target parameter. Also
3646 match target.
3647 (delete_thread_db_info): New process_stratum_target parameter.
3648 Also match target.
3649 (thread_from_lwp): Adjust to pass down target.
3650 (thread_db_notice_clone): Pass down target.
3651 (check_thread_db_callback): Pass down target.
3652 (try_thread_db_load_1): Always push the thread_db target.
3653 (try_thread_db_load, record_thread): Pass target down.
3654 (thread_db_target::detach): Pass target down. Always unpush the
3655 thread_db target.
3656 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
3657 target down. Always unpush the thread_db target.
3658 (find_new_threads_callback, thread_db_find_new_threads_2)
3659 (thread_db_target::update_thread_list): Pass target down.
3660 (thread_db_target::pid_to_str): Pass current inferior down.
3661 (thread_db_target::get_thread_local_address): Pass target down.
3662 (thread_db_target::resume, maintenance_check_libthread_db): Pass
3663 target down.
3664 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
3665 * procfs.c (procfs_target::procfs_init_inferior): Declare.
3666 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
3667 (procfs_init_inferior): Rename to ...
3668 (procfs_target::procfs_init_inferior): ... this and adjust.
3669 (procfs_target::create_inferior, procfs_notice_thread)
3670 (procfs_do_thread_registers): Adjust.
3671 * ppc-fbsd-tdep.c: Include "inferior.h".
3672 (ppcfbsd_get_thread_local_address): Pass down target.
3673 * proc-service.c (ps_xfer_memory): Switch current inferior and
3674 program space as well.
3675 (get_ps_regcache): Pass target down.
3676 * process-stratum-target.c
3677 (process_stratum_target::thread_address_space)
3678 (process_stratum_target::thread_architecture): Pass target down.
3679 * process-stratum-target.h
3680 (process_stratum_target::threads_executing): New field.
3681 (as_process_stratum_target): New.
3682 * ravenscar-thread.c
3683 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
3684 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
3685 down.
3686 * record-btrace.c (record_btrace_target::info_record): Adjust.
3687 (record_btrace_target::record_method)
3688 (record_btrace_target::record_is_replaying)
3689 (record_btrace_target::fetch_registers)
3690 (get_thread_current_frame_id, record_btrace_target::resume)
3691 (record_btrace_target::wait, record_btrace_target::stop): Pass
3692 target down.
3693 * record-full.c (record_full_wait_1): Switch to event thread.
3694 Pass target down.
3695 * regcache.c (regcache::regcache)
3696 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
3697 process_stratum_target parameter and handle it.
3698 (current_thread_target): New global.
3699 (get_thread_regcache): Add process_stratum_target parameter and
3700 handle it. Switch inferior before calling target method.
3701 (get_thread_regcache): Pass target down.
3702 (get_thread_regcache_for_ptid): Pass target down.
3703 (registers_changed_ptid): Add process_stratum_target parameter and
3704 handle it.
3705 (registers_changed_thread, registers_changed): Pass target down.
3706 (test_get_thread_arch_aspace_regcache): New.
3707 (current_regcache_test): Define a couple local test_target_ops
3708 instances and use them for testing.
3709 (readwrite_regcache): Pass process_stratum_target parameter.
3710 (cooked_read_test, cooked_write_test): Pass mock_target down.
3711 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
3712 (get_thread_arch_aspace_regcache): Add process_stratum_target
3713 parameter.
3714 (regcache::target): New method.
3715 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
3716 (regcache::registers_changed_ptid): Add process_stratum_target
3717 parameter.
3718 (regcache::m_target): New field.
3719 (registers_changed_ptid): Add process_stratum_target parameter.
3720 * remote.c (remote_state::supports_vCont_probed): New field.
3721 (remote_target::async_wait_fd): New method.
3722 (remote_unpush_and_throw): Add remote_target parameter.
3723 (get_current_remote_target): Adjust.
3724 (remote_target::remote_add_inferior): Push target.
3725 (remote_target::remote_add_thread)
3726 (remote_target::remote_notice_new_inferior)
3727 (get_remote_thread_info): Pass target down.
3728 (remote_target::update_thread_list): Skip threads of inferiors
3729 bound to other targets. (remote_target::close): Don't discard
3730 inferiors. (remote_target::add_current_inferior_and_thread)
3731 (remote_target::process_initial_stop_replies)
3732 (remote_target::start_remote)
3733 (remote_target::remote_serial_quit_handler): Pass down target.
3734 (remote_target::remote_unpush_target): New remote_target
3735 parameter. Unpush the target from all inferiors.
3736 (remote_target::remote_unpush_and_throw): New remote_target
3737 parameter. Pass it down.
3738 (remote_target::open_1): Check whether the current inferior has
3739 execution instead of checking whether any inferior is live. Pass
3740 target down.
3741 (remote_target::remote_detach_1): Pass down target. Use
3742 remote_unpush_target.
3743 (extended_remote_target::attach): Pass down target.
3744 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
3745 (remote_target::append_resumption): Pass down target.
3746 (remote_target::append_pending_thread_resumptions)
3747 (remote_target::remote_resume_with_hc, remote_target::resume)
3748 (remote_target::commit_resume): Pass down target.
3749 (remote_target::remote_stop_ns): Check supports_vCont_probed.
3750 (remote_target::interrupt_query)
3751 (remote_target::remove_new_fork_children)
3752 (remote_target::check_pending_events_prevent_wildcard_vcont)
3753 (remote_target::remote_parse_stop_reply)
3754 (remote_target::process_stop_reply): Pass down target.
3755 (first_remote_resumed_thread): New remote_target parameter. Pass
3756 it down.
3757 (remote_target::wait_as): Pass down target.
3758 (unpush_and_perror): New remote_target parameter. Pass it down.
3759 (remote_target::readchar, remote_target::remote_serial_write)
3760 (remote_target::getpkt_or_notif_sane_1)
3761 (remote_target::kill_new_fork_children, remote_target::kill): Pass
3762 down target.
3763 (remote_target::mourn_inferior): Pass down target. Use
3764 remote_unpush_target.
3765 (remote_target::core_of_thread)
3766 (remote_target::remote_btrace_maybe_reopen): Pass down target.
3767 (remote_target::pid_to_exec_file)
3768 (remote_target::thread_handle_to_thread_info): Pass down target.
3769 (remote_target::async_wait_fd): New.
3770 * riscv-fbsd-tdep.c: Include "inferior.h".
3771 (riscv_fbsd_get_thread_local_address): Pass down target.
3772 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
3773 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
3774 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
3775 Adjust.
3776 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
3777 * solib-svr4.c (enable_break): Pass down target.
3778 * spu-multiarch.c (parse_spufs_run): Pass down target.
3779 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
3780 * target-delegates.c: Regenerate.
3781 * target.c (g_target_stack): Delete.
3782 (current_top_target): Return the current inferior's top target.
3783 (target_has_execution_1): Refer to the passed-in inferior's top
3784 target.
3785 (target_supports_terminal_ours): Check whether the initial
3786 inferior was already created.
3787 (decref_target): New.
3788 (target_stack::push): Incref/decref the target.
3789 (push_target, push_target, unpush_target): Adjust.
3790 (target_stack::unpush): Defref target.
3791 (target_is_pushed): Return bool. Adjust to refer to the current
3792 inferior's target stack.
3793 (dispose_inferior): Delete, and inline parts ...
3794 (target_preopen): ... here. Only dispose of the current inferior.
3795 (target_detach): Hold strong target reference while detaching.
3796 Pass target down.
3797 (target_thread_name): Add assertion.
3798 (target_resume): Pass down target.
3799 (target_ops::beneath, find_target_at): Adjust to refer to the
3800 current inferior's target stack.
3801 (get_dummy_target): New.
3802 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
3803 has a thread running.
3804 (initialize_targets): Rename to ...
3805 (_initialize_target): ... this.
3806 * target.h: Include "gdbsupport/refcounted-object.h".
3807 (struct target_ops): Inherit refcounted_object.
3808 (target_ops::shortname, target_ops::longname): Make const.
3809 (target_ops::async_wait_fd): New method.
3810 (decref_target): Declare.
3811 (struct target_ops_ref_policy): New.
3812 (target_ops_ref): New typedef.
3813 (get_dummy_target): Declare function.
3814 (target_is_pushed): Return bool.
3815 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
3816 (all_matching_threads_iterator::all_matching_threads_iterator):
3817 Handle filter target.
3818 * thread-iter.h (struct all_matching_threads_iterator, struct
3819 all_matching_threads_range, class all_non_exited_threads_range):
3820 Filter by target too. Remove explicit.
3821 * thread.c (threads_executing): Delete.
3822 (inferior_thread): Pass down current inferior.
3823 (clear_thread_inferior_resources): Pass down thread pointer
3824 instead of ptid_t.
3825 (add_thread_silent, add_thread_with_info, add_thread): Add
3826 process_stratum_target parameter. Use it for thread and inferior
3827 searches.
3828 (is_current_thread): New.
3829 (thread_info::deletable): Use it.
3830 (find_thread_ptid, thread_count, in_thread_list)
3831 (thread_change_ptid, set_resumed, set_running): New
3832 process_stratum_target parameter. Pass it down.
3833 (set_executing): New process_stratum_target parameter. Pass it
3834 down. Adjust reference to 'threads_executing'.
3835 (threads_are_executing): New process_stratum_target parameter.
3836 Adjust reference to 'threads_executing'.
3837 (set_stop_requested, finish_thread_state): New
3838 process_stratum_target parameter. Pass it down.
3839 (switch_to_thread): Also match inferior.
3840 (switch_to_thread): New process_stratum_target parameter. Pass it
3841 down.
3842 (update_threads_executing): Reimplement.
3843 * top.c (quit_force): Pop targets from all inferior.
3844 (gdb_init): Don't call initialize_targets.
3845 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
3846 Declare.
3847 (windows_add_thread, windows_delete_thread): Adjust.
3848 (get_windows_debug_event): Rename to ...
3849 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
3850 * tracefile-tfile.c (tfile_target_open): Pass down target.
3851 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
3852 Forward declare.
3853 (switch_to_thread): Add process_stratum_target parameter.
3854 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
3855 parameter. Use it.
3856 (mi_on_resume): Pass target down.
3857 * nat/fork-inferior.c (startup_inferior): Add
3858 process_stratum_target parameter. Pass it down.
3859 * nat/fork-inferior.h (startup_inferior): Add
3860 process_stratum_target parameter.
3861 * python/py-threadevent.c (py_get_event_thread): Pass target down.
3862
75c6c844
PA
38632020-01-10 Pedro Alves <palves@redhat.com>
3864
3865 * remote.c (remote_target::start_remote): Don't set inferior_ptid
3866 directly. Instead find the first thread in the thread list and
3867 use switch_to_thread.
3868
78f2c40a
PA
38692020-01-10 Pedro Alves <palves@redhat.com>
3870
3871 * remote.c (remote_target::remote_add_inferior): Don't bind a
3872 process to the current inferior if the current inferior is already
3873 bound to a process.
3874
e7af6c70
TBA
38752020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3876 Pedro Alves <palves@redhat.com>
3877
3878 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
3879 If no process is specified, return null_ptid instead of
3880 inferior_ptid.
3881 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
3882 TARGET_WAITKIND_SIGNALLED with no pid.
3883
31ba933e
PA
38842020-01-10 Pedro Alves <palves@redhat.com>
3885
3886 * remote.c (first_remote_resumed_thread): New.
3887 (remote_target::wait_as): Use it as default event_ptid instead of
3888 inferior_ptid.
3889
735fc2ca
PA
38902020-01-10 Pedro Alves <palves@redhat.com>
3891
3892 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
3893
c17e02e1
PA
38942020-01-10 Pedro Alves <palves@redhat.com>
3895
3896 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
3897 not -1.
3898
ab1ddbcf
PA
38992020-01-10 Pedro Alves <palves@redhat.com>
3900
3901 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
3902 ptid to get_last_target_status.
3903 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
3904 ptid to get_last_target_status.
3905 * infcmd.c (continue_command): Don't pass a target_waitstatus to
3906 get_last_target_status.
3907 (info_program_command): Don't pass a target_waitstatus to
3908 get_last_target_status.
3909 * infrun.c (init_wait_for_inferior): Use
3910 nullify_last_target_wait_ptid.
3911 (get_last_target_status): Handle nullptr arguments.
3912 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
3913 (print_stop_event): Don't pass a ptid to get_last_target_status.
3914 (normal_stop): Don't pass a ptid to get_last_target_status.
3915 * infrun.h (get_last_target_status, set_last_target_status): Move
3916 comments here and update.
3917 (nullify_last_target_wait_ptid): Declare.
3918 * linux-fork.c (fork_load_infrun_state): Remove local extern
3919 declaration of nullify_last_target_wait_ptid.
3920 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
3921 to get_last_target_status.
3922
f3f8ece4
PA
39232020-01-10 Pedro Alves <palves@redhat.com>
3924
3925 * gdbthread.h (scoped_restore_current_thread)
3926 <dont_restore, restore, m_dont_restore>: Declare.
3927 * thread.c (thread_alive): Add assertion. Return bool.
3928 (switch_to_thread_if_alive): New.
3929 (prune_threads): Switch inferior/thread.
3930 (print_thread_info_1): Switch thread before calling target methods.
3931 (scoped_restore_current_thread::restore): New, factored out from
3932 ...
3933 (scoped_restore_current_thread::~scoped_restore_current_thread):
3934 ... this.
3935 (scoped_restore_current_thread::scoped_restore_current_thread):
3936 Add assertion.
3937 (thread_apply_all_command, thread_select): Use
3938 switch_to_thread_if_alive.
3939 * infrun.c (proceed, restart_threads, handle_signal_stop)
3940 (switch_back_to_stepped_thread): Switch current thread before
3941 calling target methods.
3942
db2d40f7
PA
39432020-01-10 Pedro Alves <palves@redhat.com>
3944
3945 * inferior.c (switch_to_inferior_no_thread): New function,
3946 factored out from ...
3947 (inferior_command): ... here.
3948 * inferior.h (switch_to_inferior_no_thread): Declare.
3949 * mi/mi-main.c (run_one_inferior): Use
3950 switch_to_inferior_no_thread.
3951
bd420a2d
PA
39522020-01-10 Pedro Alves <palves@redhat.com>
3953
3954 * infcmd.c (kill_command): Remove dead code.
3955
ddf5db90
PA
39562020-01-10 Pedro Alves <palves@redhat.com>
3957
3958 * remote.c (remote_target::mourn_inferior): No longer check
3959 whether the target is running.
3960
5018ce90
PA
39612020-01-10 Pedro Alves <palves@redhat.com>
3962
3963 * corelow.c (core_target::has_execution): Change parameter type to
3964 inferior pointer.
3965 * inferior.c (number_of_live_inferiors): Use
3966 inferior::has_execution instead of target_has_execution_1.
3967 * inferior.h (inferior::has_execution): New.
3968 * linux-thread-db.c (thread_db_target::update_thread_list): Use
3969 inferior::has_execution instead of target_has_execution_1.
3970 * process-stratum-target.c
3971 (process_stratum_target::has_execution): Change parameter type to
3972 inferior pointer. Check the inferior's PID instead of
3973 inferior_ptid.
3974 * process-stratum-target.h
3975 (process_stratum_target::has_execution): Change parameter type to
3976 inferior pointer.
3977 * record-full.c (record_full_core_target::has_execution): Change
3978 parameter type to inferior pointer.
3979 * target.c (target_has_execution_1): Change parameter type to
3980 inferior pointer.
3981 (target_has_execution_current): Adjust.
3982 * target.h (target_ops::has_execution): Change parameter type to
3983 inferior pointer.
3984 (target_has_execution_1): Change parameter type to inferior
3985 pointer. Change return type to bool.
3986 * tracefile.h (tracefile_target::has_execution): Change parameter
3987 type to inferior pointer.
3988
74375d18
PA
39892020-01-10 Pedro Alves <palves@redhat.com>
3990
3991 * exceptions.c (print_flush): Remove current_top_target() check.
3992
acdf84a6
PA
39932020-01-10 Pedro Alves <palves@redhat.com>
3994
3995 * remote.c (show_remote_exec_file): Show the current inferior's
3996 exec-file instead of the command variable's value.
3997
ec506636
PA
39982020-01-10 Pedro Alves <palves@redhat.com>
3999
4000 * record-full.c (record_full_resume_ptid): New global.
4001 (record_full_target::resume): Set it.
4002 (record_full_wait_1): Use record_full_resume_ptid instead of
4003 inferior_ptid.
4004
873657b9
PA
40052020-01-10 Pedro Alves <palves@redhat.com>
4006
4007 * gdbthread.h (scoped_restore_current_thread)
4008 <dont_restore, restore, m_dont_restore>: Declare.
4009 * thread.c (thread_alive): Add assertion. Return bool.
4010 (switch_to_thread_if_alive): New.
4011 (prune_threads): Switch inferior/thread.
4012 (print_thread_info_1): Switch thread before calling target methods.
4013 (scoped_restore_current_thread::restore): New, factored out from
4014 ...
4015 (scoped_restore_current_thread::~scoped_restore_current_thread):
4016 ... this.
4017 (scoped_restore_current_thread::scoped_restore_current_thread):
4018 Add assertion.
4019 (thread_apply_all_command, thread_select): Use
4020 switch_to_thread_if_alive.
4021
7f0ae84c
GB
40222020-01-10 George Barrett <bob@bob131.so>
4023
4024 * stap-probe.c (stap_modify_semaphore): Don't check for null
4025 semaphores.
4026 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
4027 for null semaphores.
4028
f5a7c406
AB
40292020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4030
4031 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
4032 all source windows, and maintain horizontal scroll status while
4033 doing so.
4034
9ae6bf64
TT
40352020-01-09 Tom Tromey <tom@tromey.com>
4036
4037 PR tui/18932:
4038 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
4039 update_source_window, not print_source_lines.
4040
b2efe70c
AB
40412020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * tui/tui.c (tui_enable): Register tui hooks after calling
4044 tui_display_main.
4045
5f23a082
CB
40462020-01-09 Christian Biesinger <cbiesinger@google.com>
4047
4048 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
4049
3061113b
SM
40502020-01-08 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * thread.c (print_thread_info_1): Fix indentation.
4053
57d75002
CB
40542020-01-09 Christian Biesinger <cbiesinger@google.com>
4055
4056 * symtab.c (general_symbol_info::compute_and_set_names): Move the
4057 unique_xmalloc_ptr outside the if to always free the demangled name.
4058
6a053cb1
TT
40592020-01-08 Tom Tromey <tromey@adacore.com>
4060
4061 * xcoffread.c (enter_line_range, read_xcoff_symtab)
4062 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
4063 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
4064 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
4065 Remove.
4066 (section_offsets): New typedef.
4067 * symtab.c (fixup_section, get_msymbol_address): Update.
4068 * symmisc.c (dump_msymbols): Update.
4069 * symfile.h (relative_addr_info_to_section_offsets)
4070 (symfile_map_offsets_to_segments): Update.
4071 * symfile.c (build_section_addr_info_from_objfile)
4072 (init_objfile_sect_indices): Update.
4073 (struct place_section_arg): Change type of "offsets".
4074 (place_section): Update.
4075 (relative_addr_info_to_section_offsets): Change type of
4076 "section_offsets". Remove "num_sections" parameter.
4077 (default_symfile_offsets, syms_from_objfile_1)
4078 (set_objfile_default_section_offset): Update.
4079 (reread_symbols): No need to preserve section offsets by hand.
4080 (symfile_map_offsets_to_segments): Change type of "offsets".
4081 * stap-probe.c (relocate_address): Update.
4082 * stabsread.h (process_one_symbol): Update.
4083 * solib-target.c (struct lm_info_target) <offsets>: Change type.
4084 (solib_target_relocate_section_addresses): Update.
4085 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
4086 Update.
4087 * solib-frv.c (frv_relocate_main_executable): Update.
4088 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
4089 * solib-aix.c (solib_aix_get_section_offsets): Change return
4090 type.
4091 (solib_aix_solib_create_inferior_hook): Update.
4092 * remote.c (remote_target::get_offsets): Update.
4093 * psymtab.c (find_pc_sect_psymtab): Update.
4094 * psympriv.h (struct partial_symbol) <address, text_low,
4095 text_high>: Update.
4096 * objfiles.h (obj_section_offset): Update.
4097 (struct objfile) <section_offsets>: Change type.
4098 <num_sections>: Remove.
4099 (objfile_relocate): Update.
4100 * objfiles.c (entry_point_address_query): Update
4101 (relocate_one_symbol): Change type of "section_offsets".
4102 (objfile_relocate1, objfile_relocate1): Change type of
4103 "new_offsets".
4104 (objfile_rebase1): Update.
4105 * mipsread.c (mipscoff_symfile_read): Update.
4106 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
4107 parameter.
4108 * mdebugread.c (parse_symbol): Change type of "section_offsets".
4109 (parse_external, psymtab_to_symtab_1): Update.
4110 * machoread.c (macho_symfile_offsets): Update.
4111 * ia64-tdep.c (ia64_find_unwind_table): Update.
4112 * hppa-tdep.c (read_unwind_info): Update.
4113 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
4114 * dwarf2read.c (create_addrmap_from_index)
4115 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4116 (process_psymtab_comp_unit_reader, add_partial_symbol)
4117 (add_partial_subprogram, process_full_comp_unit)
4118 (read_file_scope, read_func_scope, read_lexical_block_scope)
4119 (read_call_site_scope, dwarf2_rnglists_process)
4120 (dwarf2_ranges_process, dwarf2_ranges_read)
4121 (dwarf_decode_lines_1, var_decode_location, new_symbol)
4122 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
4123 Update.
4124 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
4125 Update.
4126 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
4127 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
4128 (process_one_symbol): Change type of "section_offsets".
4129 * ctfread.c (get_objfile_text_range): Update.
4130 * coffread.c (coff_symtab_read, enter_linenos)
4131 (process_coff_symbol): Update.
4132 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4133 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
4134
456e800a
TT
41352020-01-08 Tom Tromey <tromey@adacore.com>
4136
4137 * dwarf2read.c (parse_macro_definition): Use std::string.
4138 (parse_macro_definition): Likewise.
4139
6dfa2fc2
TT
41402020-01-08 Tom Tromey <tromey@adacore.com>
4141
4142 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
4143 (ATTR_ALLOC_CHUNK): Remove.
4144
421d1616
TT
41452020-01-08 Tom Tromey <tromey@adacore.com>
4146
4147 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
4148
43816ebc
TT
41492020-01-08 Tom Tromey <tromey@adacore.com>
4150
4151 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
4152 (dwarf2_compute_name, open_dwo_file): Likewise.
4153 (process_enumeration_scope): Use std::vector.
4154 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
4155 (partial_die_info::fixup, dwarf2_start_subfile)
4156 (guess_full_die_structure_name, dwarf2_name): Likewise.
4157 (determine_prefix): Update.
4158 (guess_full_die_structure_name): Make return type const.
4159 (partial_die_full_name): Return unique_xmalloc_ptr.
4160 (DW_FIELD_ALLOC_CHUNK): Remove.
4161
4212d509
TT
41622020-01-07 Tom Tromey <tromey@adacore.com>
4163
4164 PR build/24937:
4165 * stap-probe.c (class stap_static_probe_ops): Add constructor.
4166
06a6207a
JT
41672020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4168
4169 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
4170
153d79c4
AB
41712020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
4172
4173 * stack.c (print_frame_info): Move disassemble_next_line code
4174 inside source_print block.
4175
66182876
EZ
41762020-01-06 Eli Zaretskii <eliz@gnu.org>
4177
4178 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
4179 gdb/signals.h, as we are now using native signal symbols.
4180
cbfa8581
SV
41812020-01-06 Shahab Vahedi <shahab@synopsys.com>
4182
4183 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
4184 overflow by an early check of content vs threshold.
4185 * tui/tui-source.c (tui_source_window::line_is_displayed):
4186 Likewise.
4187
3f602821
EZ
41882020-01-06 Eli Zaretskii <eliz@gnu.org>
4189
4190 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
4191
a08c904d
JT
41922020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4193
4194 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
4195 export table if no section contains it's RVA.
4196
89a65580
EZ
41972020-01-06 Eli Zaretskii <eliz@gnu.org>
4198
4199 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
4200
8b7fcda2
HD
42012020-01-06 Hannes Domani <ssbssa@yahoo.de>
4202
4203 * source.c (print_source_lines_base): Set last_line_listed.
4204
a61b4f69
SV
42052020-01-06 Shahab Vahedi <shahab@synopsys.com>
4206
4207 * tui/tui-disasm.c: Remove trailing spaces.
4208
559e7e50
EZ
42092020-01-06 Eli Zaretskii <eliz@gnu.org>
4210 Pedro Alves <palves@redhat.com>
4211
4212 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
4213 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
4214 (windows_gdb_signal_to_target): New function, uses the above
4215 enumeration to convert GDB internal signal codes to equivalent
4216 Windows codes.
4217 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
4218 * windows-nat.c: Include "gdb_wait.h".
4219 (get_windows_debug_event): Extract the fatal exception from the
4220 exit status and convert to the equivalent Posix signal number.
4221 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
4222 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
4223 * gdbsupport/gdb_wait.c: New file, implements
4224 windows_status_to_termsig.
4225 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
4226 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
4227
f2302a34
AB
42282020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
4231 show_layout.
4232
6a5206eb
LM
42332020-01-05 Luis Machado <luis.machado@linaro.org>
4234
4235 * aarch64-linux-nat.c
4236 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
4237 and bfd_mach_aarch64.
4238
6ec1d75e
PW
42392020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4240
4241 * ui-file.c (stdio_file::can_emit_style_escape)
4242 (tee_file::can_emit_style_escape): Ensure style is used also on
4243 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
4244 to gdb_stdout.
4245 * main.c (set_gdb_data_directory): Use file style to output the
4246 warning that the given pathname is not a directory.
4247 * top.c (show_history_filename, gdb_safe_append_history)
4248 (show_gdb_datadir): Use file style.
4249
44f81a76
HD
42502020-01-03 Hannes Domani <ssbssa@yahoo.de>
4251
4252 * solib-target.c (struct lm_info_target):
4253 Change offsets to be a unique_xmalloc_ptr.
4254 (solib_target_relocate_section_addresses): Update.
4255
25057eb0
HD
42562020-01-03 Hannes Domani <ssbssa@yahoo.de>
4257
4258 * windows-nat.c (windows_clear_solib): Free so_list linked list.
4259
6e2118f5
BE
42602020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4261
4262 * MAINTAINERS (Write After Approval): Add myself.
4263
8133c7dc
LM
42642020-01-02 Luis Machado <luis.machado@linaro.org>
4265
4266 * proc-service.c (get_ps_regcache): Remove reference to obsolete
4267 Cell BE architecture.
4268 * target.h (struct target_ops) <thread_architecture>: Likewise.
4269
48189bec
HD
42702020-01-01 Hannes Domani <ssbssa@yahoo.de>
4271
4272 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4273
ead1063b
HD
42742020-01-01 Hannes Domani <ssbssa@yahoo.de>
4275
4276 * MAINTAINERS (Write After Approval): Add myself.
4277
e5d78223
JB
42782020-01-01 Joel Brobecker <brobecker@adacore.com>
4279
4280 * gdbarch.sh: Update copyright year range of generated files.
4281
b811d2c2
JB
42822020-01-01 Joel Brobecker <brobecker@adacore.com>
4283
4284 Update copyright year range in all GDB files.
4285
5f4def5c
JB
42862020-01-01 Joel Brobecker <brobecker@adacore.com>
4287
4288 * copyright.py: Convert to Python 3.
4289
51fd4002
JB
42902020-01-01 Joel Brobecker <brobecker@adacore.com>
4291
4292 * copyright.py: Adapt after move of gnulib directory from gdb
4293 directory to toplevel directory.
4294
5fb651f2
JB
42952020-01-01 Joel Brobecker <brobecker@adacore.com>
4296
4297 * copyright.py (main): Exit if run from the wrong directory.
4298
5dd8bf88
JB
42992020-01-01 Joel Brobecker <brobecker@adacore.com>
4300
4301 * top.c (print_gdb_version): Change copyright year to 2020.
4302
9f71dacb 43032020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 4304
9f71dacb 4305 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 4306
9f71dacb 4307For older changes see ChangeLog-2019.
c906108c
SS
4308\f
4309Local Variables:
4310mode: change-log
4311left-margin: 8
4312fill-column: 74
4313version-control: never
57da7796 4314coding: utf-8
c906108c 4315End: