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