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