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