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