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