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