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