]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Share windows_thread_info between gdb and gdbserver
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ae1f8880
TT
12020-04-08 Tom Tromey <tromey@adacore.com>
2
3 * windows-nat.c (struct windows_thread_info): Remove.
4 * nat/windows-nat.h: New file.
5
55a1e039
TT
62020-04-08 Tom Tromey <tromey@adacore.com>
7
8 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9 (thread_rec, windows_add_thread, windows_delete_thread)
10 (windows_continue): Update.
11
93366324
TT
122020-04-08 Tom Tromey <tromey@adacore.com>
13
14 * windows-nat.c (struct windows_thread_info): Remove typedef.
15 (thread_head): Remove.
16 (thread_list): New global.
17 (thread_rec, windows_add_thread, windows_init_thread_list)
18 (windows_delete_thread, windows_continue): Update.
19
0f2265e2
SM
202020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * windows-tdep.h (windows_init_abi): Add comment.
23 (cygwin_init_abi): New declaration.
24 * windows-tdep.c: Split signal enumeration in two, one for
25 Windows and one for Cygwin.
26 (windows_gdb_signal_to_target): Only deal with signal of the
27 Windows OS ABI.
28 (cygwin_gdb_signal_to_target): New function.
29 (windows_init_abi): Rename to windows_init_abi_common, don't set
30 gdb_signal_to_target gdbarch method. Add new new function with
31 this name.
32 (cygwin_init_abi): New function.
33 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
34 comment. Don't call windows_init_abi.
35 (amd64_windows_init_abi): Add comment, call windows_init_abi.
36 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
37 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
38 i386_windows_init_abi_common, don't call windows_init_abi. Add
39 a new function of this name.
40 (i386_cygwin_init_abi): New function.
41 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
42 OS ABI Cygwin.
43
3810f182
SM
442020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
47 parameter.c.
48 (dwarf2_read_gdb_index): Update.
49
063f8e80
KR
502020-04-07 Kamil Rytarowski <n54@gmx.com>
51
52 * nbsd-tdep.c: Include "objfiles.h".
53 (nbsd_skip_solib_resolver): New.
54 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
55
85a9510c 562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
57
58 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
59 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
60 with DW_LLE_base_addressx are being emitted in DWARFv5.
61 Add the newly added kind DW_LOC_OFFSET_PAIR also.
62 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
63 unsigned integer.
64
9fc3eaae 652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
66
67 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
68 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
69 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
70 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
71 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
72 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
73 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
74
75
41144253 762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
77
78 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
79 (read_loclist_index): New function definition.
80 (lookup_loclist_base): New function definition.
81 (read_loclist_header): New function definition.
82 (dwarf2_cu): Add loclist_base and loclist_header field.
83 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
84 (read_full_die_1): Read the value of DW_AT_loclists_base.
85 (read_attribute_reprocess): Handle DW_FORM_loclistx.
86 (read_attribute_value): Handle DW_FORM_loclistx.
87 (skip_one_die): Handle DW_FORM_loclistx.
88 (loclist_header): New structure declaration.
89 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
90
9f4e76a4
SM
912020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
92
93 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
94 constructor. Remove `addr` parameter from other constructor and
95 add `per_cu` parameter.
96 * dwarf2/read.c (create_partial_symtab): Update.
97
25c11aca
TV
982020-04-07 Tom de Vries <tdevries@suse.de>
99
100 PR symtab/25796
101 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
102 (partial_die_info::fixup): Inherit has_const_value.
103
5707e24b
TV
1042020-04-07 Tom de Vries <tdevries@suse.de>
105
106 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
107 symbols without address.
108
05f00e22
KR
1092020-04-06 Kamil Rytarowski <n54@gmx.com>
110
111 * nbsd-nat.h (struct thread_info): Add forward declaration.
112 (nbsd_nat_target::thread_alive): Add.
113 (nbsd_nat_target::thread_name): Likewise.
114 (nbsd_nat_target::update_thread_list): Likewise.
115 (update_thread_list::post_attach): Likewise.
116 (post_attach::pid_to_str): Likewise.
117 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
118 (nbsd_thread_lister): Add.
119 (nbsd_nat_target::thread_alive): Likewise.
120 (nbsd_nat_target::thread_name): Likewise.
121 (nbsd_add_threads): Likewise.
122 (update_thread_list::post_attach): Likewise.
123 (nbsd_nat_target::update_thread_list): Likewise.
124 (post_attach::pid_to_str): Likewise.
125
6ee448cc
TT
1262020-04-06 Tom Tromey <tromey@adacore.com>
127
128 * ada-valprint.c (print_variant_part): Extract the variant field.
129 (print_field_values): Use the field as the outer value when
130 recursing.
131
dea34e8c
TT
1322020-04-06 Tom Tromey <tromey@adacore.com>
133
134 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
135 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
136 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
137 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
138 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
139
93689ce9
TT
1402020-04-06 Tom Tromey <tromey@adacore.com>
141
142 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
143 TYPE_CODE_ERROR.
144
79743962
KR
1452020-04-06 Kamil Rytarowski <n54@gmx.com>
146
147 * nbsd-tdep.c: Include "gdbarch.h".
148 Define enum with NetBSD signal numbers.
149 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
150 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
151 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
152 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
153 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
154 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
155 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
156 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
157 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
158 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
159 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
160 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
161
9e7c9a03
HD
1622020-04-03 Hannes Domani <ssbssa@yahoo.de>
163
164 PR gdb/25325
165 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
166
d9e49b61
TT
1672020-04-03 Tom Tromey <tromey@adacore.com>
168
169 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
170 Read constant block.
171
e0fc5c3f
SM
1722020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
173
174 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
175 (gdb_bfd_get_full_section_contents): New declaration.
176 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
177 * windows-tdep.c (is_linked_with_cygwin_dll): Use
178 gdb_bfd_get_full_section_contents.
179
e2ff18a0
SM
1802020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * exec.c (build_section_table): Replace internal_error with
183 gdb_assert.
184 (section_table_xfer_memory_partial): Likewise.
185 * mdebugread.c (parse_partial_symbols): Likewise.
186 * psymtab.c (lookup_partial_symbol): Likewise.
187 * utils.c (wrap_here): Likewise.
188
0830d301
TT
1892020-04-02 Tom Tromey <tromey@adacore.com>
190
191 * f-lang.c (build_fortran_types): Use arch_type to initialize
192 builtin_complex_s32 in the TYPE_CODE_ERROR case.
193
e7da7f8f
TT
1942020-04-02 Tom Tromey <tromey@adacore.com>
195
196 * dwarf2/read.c (partial_die_info::read): Do not create a vector
197 of attributes.
198
c90d28ac
AB
1992020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
200 Bernd Edlinger <bernd.edlinger@hotmail.de>
201 Tom Tromey <tromey@adacore.com>
202
203 * buildsym.c (buildsym_compunit::record_line): Remove
204 deduplication code.
205
1aa98955
TV
2062020-04-02 Tom de Vries <tdevries@suse.de>
207
208 PR ada/24671
209 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
210
d3214198
TV
2112020-04-02 Tom de Vries <tdevries@suse.de>
212
213 * dwarf2/read.c (dwarf2_gdb_index_functions,
214 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
215 NULL.
216 * psymtab.c (psym_lookup_global_symbol_language): New function.
217 (psym_functions): Init psym_lookup_global_symbol_language with
218 psym_lookup_global_symbol_language.
219 * symfile-debug.c (debug_sym_quick_functions): Init
220 lookup_global_symbol_language with NULL.
221 * symfile.c (set_initial_language): Remove fixme comment.
222 * symfile.h (struct quick_symbol_functions): Add
223 lookup_global_symbol_language.
224 * symtab.c (find_quick_global_symbol_language): New function.
225 (find_main_name): Use find_quick_global_symbol_language.
226
2836752f
SM
2272020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
228
229 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
230
64dc2d4b
BE
2312020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
232
233 * buildsym.c (record_line): Fix undefined behavior and preserve
234 lines at eof.
235
bbe3dc41
BE
2362020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
237
238 * buildsym.c (record_line): Fix the resizing condition.
239
6b4a335b
TT
2402020-04-01 Tom Tromey <tom@tromey.com>
241
242 * value.h (value_literal_complex): Add comment.
243 * valops.c (value_literal_complex): Refer to value.h.
244
3638a098
TT
2452020-04-01 Tom Tromey <tom@tromey.com>
246
247 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
248 (scalar_type): New rule, from typebase.
249 (typebase): Use scalar_type. Recognize complex types.
250 (field_name): Handle FLOAT_KEYWORD.
251 (ident_tokens): Add _Complex and __complex__.
252
c34e8714
TT
2532020-04-01 Tom Tromey <tom@tromey.com>
254
255 PR exp/25299:
256 * valarith.c (promotion_type, complex_binop): New functions.
257 (scalar_binop): Handle complex numbers. Use promotion_type.
258 (value_pos, value_neg, value_complement): Handle complex numbers.
259
fa649bb7
TT
2602020-04-01 Tom Tromey <tom@tromey.com>
261
262 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
263 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
264 (parse_number): Handle complex numbers.
265
981c08ce
TT
2662020-04-01 Tom Tromey <tom@tromey.com>
267
268 * c-valprint.c (c_decorations): Change complex suffix to "i".
269
4c99290d
TT
2702020-04-01 Tom Tromey <tom@tromey.com>
271
272 * valprint.c (generic_value_print_complex): Use accessors.
273 * value.h (value_real_part, value_imaginary_part): Declare.
274 * valops.c (value_real_part, value_imaginary_part): New
275 functions.
276 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
277
5b930b45
TT
2782020-04-01 Tom Tromey <tom@tromey.com>
279
280 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
281 (read_range_type): Update.
282 * mdebugread.c (basic_type): Update.
283 * go-lang.c (build_go_types): Use init_complex_type.
284 * gdbtypes.h (struct main_type) <complex_type>: New member.
285 (init_complex_type): Update.
286 (arch_complex_type): Don't declare.
287 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
288 Make name if none given. Use alloc_type_copy. Look for cached
289 complex type.
290 (arch_complex_type): Remove.
291 (gdbtypes_post_init): Use init_complex_type.
292 * f-lang.c (build_fortran_types): Use init_complex_type.
293 * dwarf2/read.c (read_base_type): Update.
294 * d-lang.c (build_d_types): Use init_complex_type.
295 * ctfread.c (read_base_type): Update.
296
53cccef1
TBA
2972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
298
299 * infrun.c (stop_all_threads): Update assertion, plus when
300 stopping threads, take into account that we might be trying
301 to stop an all-stop target.
302 (stop_waiting): Call 'stop_all_threads' if there exists a
303 non-stop target.
304
a0714d30
TBA
3052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
306
307 * target.h (exists_non_stop_target): New function declaration.
308 * target.c (exists_non_stop_target): New function.
309
60e22c1e
HD
3102020-04-01 Hannes Domani <ssbssa@yahoo.de>
311
312 PR gdb/24789
313 * eval.c (is_integral_or_integral_reference): New function.
314 (evaluate_subexp_standard): Allow integer references in
315 pointer arithmetic.
316
e139a727
TBA
3172020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
318
319 * remote.c (remote_target::remote_parse_stop_reply): Remove the
320 check for no ptid in the stop reply when the target is non-stop.
321
e0802d59
TT
3222020-04-01 Tom Tromey <tromey@adacore.com>
323
324 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
325 "name" parameter to rvalue reference. Initialize m_name_holder.
326 <lookup_name_info>: New overloads.
327 <name>: Return gdb::string_view.
328 <c_str>: New method.
329 <make_ignore_params>: Update.
330 <search_name_hash>: Update.
331 <language_lookup_name>: Return const char *.
332 <m_name>: Change type.
333 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
334 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
335 (lookup_name_info::match_any): Update.
336 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
337 Update.
338 * minsyms.c (linkage_name_str): Update.
339 * language.c (default_symbol_name_matcher): Update.
340 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
341 Update.
342 * ada-lang.c (ada_fold_name): Change parameter to string_view.
343 (ada_lookup_name_info::ada_lookup_name_info): Update.
344 (literal_symbol_name_matcher): Update.
345
8c072cb6
TT
3462020-04-01 Tom Tromey <tromey@adacore.com>
347
348 * psymtab.c (psymtab_search_name): Remove function.
349 (psym_lookup_symbol): Create search name and lookup name here.
350 (lookup_partial_symbol): Remove "name" parameter; add
351 lookup_name.
352 (psym_expand_symtabs_for_function): Update.
353
6f29a534
TT
3542020-03-31 Joel Jones <joelkevinjones@gmail.com>
355
356 PR tui/25597:
357 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
358
af62665e
TT
3592020-03-31 Tom Tromey <tromey@adacore.com>
360
361 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
362 memcpy.
363
d1a89da5
NC
3642020-03-30 Nelson Chu <nelson.chu@sifive.com>
365
366 * features/riscv/32bit-csr.xml: Regenerated.
367 * features/riscv/64bit-csr.xml: Regenerated.
368
d8af9068
TT
3692020-03-30 Tom Tromey <tromey@adacore.com>
370
371 * ada-valprint.c (print_variant_part): Update.
372 * ada-lang.h (ada_which_variant_applies): Update.
373 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
374 outer_valaddr parameters; replace with "outer" value parameter.
375 (to_fixed_variant_branch_type): Update.
376
227c0bf4
PFC
3772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
378
379 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
380 <list>. Remove inclusion of observable.h.
381 (PPC_DEBUG_CURRENT_VERSION): Move up define.
382 (struct arch_lwp_info): New struct.
383 (class ppc_linux_dreg_interface): New class.
384 (struct ppc_linux_process_info): New struct.
385 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
386 <low_new_clone, low_forget_process, low_prepare_to_resume>
387 <copy_thread_dreg_state, mark_thread_stale>
388 <mark_debug_registers_changed, register_hw_breakpoint>
389 <clear_hw_breakpoint, register_wp, clear_wp>
390 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
391 <num_memory_accesses, get_trigger_type>
392 <create_watchpoint_request, hwdebug_point_cmp>
393 <init_arch_lwp_info, get_arch_lwp_info>
394 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
395 methods.
396 <struct ptid_hash>: New inner struct.
397 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
398 members.
399 (saved_dabr_value, hwdebug_info, max_slots_number)
400 (struct hw_break_tuple, struct thread_points, ppc_threads)
401 (have_ptrace_hwdebug_interface)
402 (hwdebug_find_thread_points_by_tid)
403 (hwdebug_insert_point, hwdebug_remove_point): Remove.
404 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
405 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
406 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
407 use m_dreg_interface.
408 (hwdebug_point_cmp): Change to...
409 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
410 reference arguments instead of pointers.
411 (ppc_linux_nat_target::ranged_break_num_registers): Use
412 m_dreg_interface.
413 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
414 m_dreg_interface. Call register_hw_breakpoint.
415 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
416 m_dreg_interface. Call clear_hw_breakpoint.
417 (get_trigger_type): Change to...
418 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
419 comment.
420 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
421 use m_dreg_interface. Call register_hw_breakpoint.
422 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
423 use m_dreg_interface. Call clear_hw_breakpoint.
424 (can_use_watchpoint_cond_accel): Change to...
425 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
426 method. Update comment, use m_dreg_interface and
427 m_process_info.
428 (calculate_dvc): Change to...
429 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
430 m_dreg_interface.
431 (num_memory_accesses): Change to...
432 (ppc_linux_nat_target::num_memory_accesses): ...this method.
433 (check_condition): Change to...
434 (ppc_linux_nat_target::check_condition): ...this method.
435 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
436 comment, use m_dreg_interface.
437 (create_watchpoint_request): Change to...
438 (ppc_linux_nat_target::create_watchpoint_request): ...this
439 method. Use m_dreg_interface.
440 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
441 m_dreg_interface. Call register_hw_breakpoint or register_wp.
442 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
443 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
444 (ppc_linux_nat_target::low_forget_process)
445 (ppc_linux_nat_target::low_new_fork)
446 (ppc_linux_nat_target::low_new_clone)
447 (ppc_linux_nat_target::low_delete_thread)
448 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
449 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
450 only call mark_thread_stale.
451 (ppc_linux_thread_exit): Remove.
452 (ppc_linux_nat_target::stopped_data_address): Change to...
453 (ppc_linux_nat_target::low_stopped_data_address): This. Add
454 comment, use m_dreg_interface and m_thread_hw_breakpoints.
455 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
456 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
457 comment. Call low_stopped_data_address.
458 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
459 m_dreg_interface.
460 (ppc_linux_nat_target::masked_watch_num_registers): Use
461 m_dreg_interface.
462 (ppc_linux_nat_target::copy_thread_dreg_state)
463 (ppc_linux_nat_target::mark_thread_stale)
464 (ppc_linux_nat_target::mark_debug_registers_changed)
465 (ppc_linux_nat_target::register_hw_breakpoint)
466 (ppc_linux_nat_target::clear_hw_breakpoint)
467 (ppc_linux_nat_target::register_wp)
468 (ppc_linux_nat_target::clear_wp)
469 (ppc_linux_nat_target::init_arch_lwp_info)
470 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
471 (_initialize_ppc_linux_nat): Remove observer callback.
472
4db10d8f
PFC
4732020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
474
475 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
476 (ppc_linux_nat_target::auxv_parse)
477 (ppc_linux_nat_target::read_description)
478 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
479 Move up.
480
1310c1b0
PFC
4812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
482
483 * linux-nat.h (low_new_clone): New method.
484 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
485
69b037c3
SM
4862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
487
488 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
489 (dbx_expand_psymtab): ... this.
490 (start_psymtab): Update.
491 * mdebugread.c (psymtab_to_symtab_1): Rename to...
492 (mdebug_expand_psymtab): ... this.
493 (parse_partial_symbols): Update.
494 (new_psymtab): Update.
495 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
496 (xcoff_expand_psymtab): ... this.
497 (xcoff_start_psymtab): Update.
498
48993951
SM
4992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
502 <expand_dependencies>: ... this.
503 * psymtab.c (partial_symtab::read_dependencies): Rename to...
504 (partial_symtab::expand_dependencies): ... this.
505 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
506 Update.
507 (dwarf2_psymtab::expand_psymtab): Update.
508 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
509 * mdebugread.c (psymtab_to_symtab_1): Update.
510 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
511
3ad83046
SM
5122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * psympriv.h (discard_psymtab): Remove.
515 * dbxread.c (dbx_end_psymtab): Update.
516 * xcoffread.c (xcoff_end_psymtab): Update.
517
4d1b9ab6
TT
5182020-03-28 Tom Tromey <tom@tromey.com>
519
520 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
521 comment.
522
f1749218
TT
5232020-03-28 Tom Tromey <tom@tromey.com>
524
525 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
526
ebea7626
HD
5272020-03-27 Hannes Domani <ssbssa@yahoo.de>
528
529 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
530
a879b4d5
JB
5312020-03-26 John Baldwin <jhb@FreeBSD.org>
532
533 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
534
0826b30a
TT
5352020-03-26 Tom Tromey <tom@tromey.com>
536
537 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
538 (mark_common_block_symbol_computed, read_tag_string_type)
539 (attr_to_dynamic_prop, read_subrange_type): Update.
540 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
541 to be methods on struct attribute.
542 (skip_one_die, process_imported_unit_die, read_namespace_alias)
543 (read_call_site_scope, partial_die_info::read)
544 (partial_die_info::read, lookup_die_type, follow_die_ref):
545 Update.
546 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
547 from dwarf2_get_ref_die_offset.
548 (attribute::constant_value): New method, from
549 dwarf2_get_attr_constant_value.
550 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
551 Declare method.
552 <constant_value>: New method.
553
2b2558bf
TT
5542020-03-26 Tom Tromey <tom@tromey.com>
555
556 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
557 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
558 (dwarf_type_encoding_name): Move to stringify.c.
559 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
560 * dwarf2/stringify.c: New file.
561 * dwarf2/stringify.h: New file.
562
eeb64781
TT
5632020-03-26 Tom Tromey <tom@tromey.com>
564
565 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
566 Rewrite.
567
a39fdb41
TT
5682020-03-26 Tom Tromey <tom@tromey.com>
569
570 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
571 methods.
572 * dwarf2/read.c (lookup_addr_base): Move to die.h.
573 (lookup_ranges_base): Likewise.
574 (read_cutu_die_from_dwo, read_full_die_1): Update.
575
436c571c
TT
5762020-03-26 Tom Tromey <tom@tromey.com>
577
578 * dwarf2/read.c (read_import_statement, read_file_scope)
579 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
580 (read_lexical_block_scope, read_call_site_scope)
581 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
582 (handle_struct_member_die, process_structure_scope)
583 (update_enumeration_type_from_children)
584 (process_enumeration_scope, read_array_type, read_common_block)
585 (read_namespace, read_module, read_subroutine_type): Update.
586 (sibling_die): Remove.
587
052c8bb8
TT
5882020-03-26 Tom Tromey <tom@tromey.com>
589
590 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
591 (build_type_psymtabs_reader, read_structure_type)
592 (read_enumeration_type, read_full_die_1): Update.
593 (dwarf2_attr_no_follow): Move to die.h.
594 * dwarf2/die.h (struct die_info) <attr>: New method.
595
2b24b6e4
TT
5962020-03-26 Tom Tromey <tom@tromey.com>
597
598 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
599 <base_address>: Now an optional.
600 (dwarf2_find_base_address, dwarf2_rnglists_process)
601 (dwarf2_ranges_process, fill_in_loclist_baton)
602 (dwarf2_symbol_mark_computed): Update.
603
c2d50fd0
TT
6042020-03-26 Tom Tromey <tom@tromey.com>
605
606 * dwarf2/read.c (struct die_info): Move to die.h.
607 * dwarf2/die.h: New file.
608
0df7ad3a
TT
6092020-03-26 Tom Tromey <tom@tromey.com>
610
611 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
612 * dwarf2/read.c
613 (dwarf2_statement_list_fits_in_line_number_section_complaint):
614 Move to line-header.c.
615 (read_checked_initial_length_and_offset, read_formatted_entries):
616 Likewise.
617 (dwarf_decode_line_header): Split into two.
618 * dwarf2/line-header.c
619 (dwarf2_statement_list_fits_in_line_number_section_complaint):
620 Move from read.c.
621 (read_checked_initial_length_and_offset, read_formatted_entries):
622 Likewise.
623 (dwarf_decode_line_header): New function, split from read.c.
624
86c0bb4c
TT
6252020-03-26 Tom Tromey <tom@tromey.com>
626
627 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
628 Declare method.
629 * dwarf2/read.c (read_attribute_value): Update.
630 (dwarf2_per_objfile::read_line_string): Rename from
631 read_indirect_line_string.
632 (read_formatted_entries): Update.
633
2ef46c2f
TT
6342020-03-26 Tom Tromey <tom@tromey.com>
635
636 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
637 variable.
638
4f9c1eda
TT
6392020-03-26 Tom Tromey <tom@tromey.com>
640
641 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
642 const.
643 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
644 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
645 parameter const.
646
5a0e026f
TT
6472020-03-26 Tom Tromey <tom@tromey.com>
648
649 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
650 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
651 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
652 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
653
8844c11b
TT
6542020-03-26 Tom Tromey <tom@tromey.com>
655
656 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
657 file_names_size, file_full_name, file_file_name>: Use const.
658 <file_name_at, file_names>: Add const overload.
659 * dwarf2/line-header.c (line_header::file_file_name)
660 (line_header::file_full_name): Update.
661
c90ec28a
TT
6622020-03-26 Tom Tromey <tom@tromey.com>
663
664 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
665 (macro_start_file, consume_improper_spaces)
666 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
667 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
668 (dwarf_decode_macros): Move to macro.c.
669 * dwarf2/macro.c: New file.
670 * dwarf2/macro.h: New file.
671 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
672
4f44ae6c
TT
6732020-03-26 Tom Tromey <tom@tromey.com>
674
675 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
676 method.
677 * dwarf2/section.c: New method. From
678 read_indirect_string_at_offset_from.
679 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
680 (read_indirect_string_at_offset_from): Move to section.c.
681 (read_indirect_string_at_offset): Rewrite.
682 (read_indirect_line_string_at_offset): Remove.
683 (read_indirect_string, read_indirect_line_string)
684 (dwarf_decode_macro_bytes): Update.
685
a0194fa8
TT
6862020-03-26 Tom Tromey <tom@tromey.com>
687
688 * dwarf2/section.h (struct dwarf2_section_info)
689 <overload_complaint>: Declare.
690 (dwarf2_section_buffer_overflow_complaint): Don't declare.
691 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
692 Rename from dwarf2_section_buffer_overflow_complaint.
693 * dwarf2/read.c (skip_one_die, partial_die_info::read)
694 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
695
3d27bbdb
TT
6962020-03-26 Tom Tromey <tom@tromey.com>
697
698 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
699 Declare.
700 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
701 Move from read.c.
702 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
703 to section.c.
704
9eac9650
TT
7052020-03-26 Tom Tromey <tom@tromey.com>
706
707 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
708
bf80d710
TT
7092020-03-26 Tom Tromey <tom@tromey.com>
710
711 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
712 "builder".
713 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
714 parameter.
715 (dwarf_decode_macros): Update.
716
0314b390
TT
7172020-03-26 Tom Tromey <tom@tromey.com>
718
719 * dwarf2/read.c (read_attribute_value): Update.
720 (read_indirect_string_from_dwz): Move to dwz.c; change into
721 method.
722 (dwarf_decode_macro_bytes): Update.
723 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
724 * dwarf2/dwz.c: New file.
725 * Makefile.in (COMMON_SFILES): Add dwz.c.
726
9fda78b6
TT
7272020-03-26 Tom Tromey <tom@tromey.com>
728
729 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
730 * dwarf2/read.c: Add include.
731 * dwarf2/index-write.c: Add include.
732 * dwarf2/index-cache.c: Add include.
733 * dwarf2/dwz.h: New file.
734
33aa3c10
TT
7352020-03-25 Tom Tromey <tom@tromey.com>
736
737 * compile/compile-object-load.c (get_out_value_type): Mention
738 correct symbol name in error message.
739
d503b685
HD
7402020-03-25 Hannes Domani <ssbssa@yahoo.de>
741
742 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
743
7b1eff95
TV
7442020-03-25 Tom de Vries <tdevries@suse.de>
745
746 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
747 * symmisc.c (dump_symtab_1): Print user and includes fields.
748 (maintenance_info_symtabs): Same.
749
dd895392
AB
7502020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
751
752 PR gdb/25534
753 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
754 (riscv_regcache_cooked_write): New function.
755 (riscv_push_dummy_call): Use new function.
756 (riscv_return_value): Likewise.
757
5ab2fbf1
SM
7582020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
761 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
762 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
763 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
764 * infrun.c (follow_fork): Likewise.
765 (follow_fork_inferior): Likewise.
766 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
767 * linux-nat.h (class linux_nat_target): Likewise.
768 * remote.c (class remote_target) <follow_fork>: Likewise.
769 (remote_target::follow_fork): Likewise.
770 * target-delegates.c: Re-generate.
771 * target.c (default_follow_fork): Likewise.
772 (target_follow_fork): Likewise.
773 * target.h (struct target_ops) <follow_fork>: Likewise.
774 (target_follow_fork): Likewise.
775
a64fafb5
TV
7762020-03-24 Tom de Vries <tdevries@suse.de>
777
778 * psymtab.c (maintenance_info_psymtabs): Print user field.
779
fe26d3a3
TT
7802020-03-20 Tom Tromey <tromey@adacore.com>
781
782 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
783 const.
784 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
785 const.
786
c884cc46
SM
7872020-03-20 Simon Marchi <simon.marchi@efficios.com>
788
789 * ptrace.m4: Don't check for ptrace declaration.
790 * config.in: Re-generate.
791 * configure: Re-generate.
792 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
793 not defined.
794
1ff700c2
KR
7952020-03-20 Kamil Rytarowski <n54@gmx.com>
796
797 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
798 `PTRACE_TYPE_RET'.
799 * i386-bsd-nat.c (gdb_ptrace): Likewise.
800 * sparc-nat.c (gdb_ptrace): Likewise.
801 * x86-bsd-nat.c (gdb_ptrace): Likewise.
802
f7d4f0b1
TT
8032020-03-20 Tom Tromey <tromey@adacore.com>
804
805 * c-exp.y (lex_one_token): Fix assert.
806
f67210ff
TT
8072020-03-20 Tom Tromey <tromey@adacore.com>
808
809 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
810 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
811 strncpy call.
812
1773be9e
TT
8132020-03-20 Tom Tromey <tromey@adacore.com>
814
815 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
816
70304be9
TT
8172020-03-20 Tom Tromey <tromey@adacore.com>
818
819 * ada-valprint.c (print_variant_part): Remove parameters; switch
820 to value-based API.
821 (print_field_values): Likewise.
822 (ada_val_print_struct_union): Likewise.
823 (ada_value_print_1): Update.
824
9faa006d
KR
8252020-03-20 Kamil Rytarowski <n54@gmx.com>
826
827 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
828 nbsd_nat_target instead of inf_ptrace_target.
829 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
830 nbsd_nat_target.
831
4a90f062
KR
8322020-03-20 Kamil Rytarowski <n54@gmx.com>
833
834 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
835 it to the ptrace call.
836 * (store_registers): Likewise.
837
8382020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
839
840 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
841 it to the ptrace call.
842 * (store_registers): Likewise.
843
2d07da27
LM
8442020-03-19 Luis Machado <luis.machado@linaro.org>
845
846 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
847 valid, fetch vg value from ptrace.
848
f09db380
KR
8492020-03-19 Kamil Rytarowski <n54@gmx.com>
850 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
851 * inf-ptrace.c: Likewise.
852 * (gdb_ptrace): Add.
853 * (inf_ptrace_target::resume): Update.
854 * (inf_ptrace_target::xfer_partial): Likewise.
855 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
856 * (inf_ptrace_peek_poke): Update.
857
fcc7376e
KR
8582020-03-19 Kamil Rytarowski <n54@gmx.com>
859
860 * x86-bsd-nat.c (gdb_ptrace): New.
861 * (x86bsd_dr_set): Add new argument `ptid'.
862 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
863 x86bsd_dr_set_addr): Update.
864
cada5fc9
AB
8652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * remote.c (remote_target::process_stop_reply): Handle events for
868 all threads differently.
869
19a2740f
AB
8702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * completer.c (completion_tracker::remove_completion): Define new
873 function.
874 * completer.h (completion_tracker::remove_completion): Declare new
875 function.
876 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
877 when adding a C++ function symbol.
878
724fd9ba
AB
8792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * completer.c (completion_tracker::completion_hash_entry): Define
882 new class.
883 (advance_to_filename_complete_word_point): Call
884 recompute_lowest_common_denominator.
885 (completion_tracker::completion_tracker): Call discard_completions
886 to setup the hash table.
887 (completion_tracker::discard_completions): Allow for being called
888 from the constructor, pass new equal function, and element deleter
889 when constructing the hash table. Initialise new class member
890 variables.
891 (completion_tracker::maybe_add_completion): Remove use of
892 m_entries_vec, and store more information into m_entries_hash.
893 (completion_tracker::recompute_lcd_visitor): New function, most
894 content taken from...
895 (completion_tracker::recompute_lowest_common_denominator):
896 ...here, this now just visits each item in the hash calling the
897 above visitor.
898 (completion_tracker::build_completion_result): Remove use of
899 m_entries_vec, call recompute_lowest_common_denominator.
900 * completer.h (completion_tracker::have_completions): Remove use
901 of m_entries_vec.
902 (completion_tracker::completion_hash_entry): Declare new class.
903 (completion_tracker::recompute_lowest_common_denominator): Change
904 function signature.
905 (completion_tracker::recompute_lcd_visitor): Declare new function.
906 (completion_tracker::m_entries_vec): Delete.
907 (completion_tracker::m_entries_hash): Initialize to NULL.
908 (completion_tracker::m_lowest_common_denominator_valid): New
909 member variable.
910 (completion_tracker::m_lowest_common_denominator_max_length): New
911 member variable.
912
5a82b8a1
KR
9132020-03-17 Kamil Rytarowski <n54@gmx.com>
914
915 * regformats/regdef.h: Put reg in gdb namespace.
916
fb516a69
KR
9172020-03-17 Kamil Rytarowski <n54@gmx.com>
918
919 * i386-bsd-nat.c (gdb_ptrace): New.
920 * (i386bsd_fetch_inferior_registers,
921 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
922 * (i386bsd_fetch_inferior_registers,
923 i386bsd_store_inferior_registers) Use gdb_ptrace.
924
1c0aa1fb
KR
9252020-03-17 Kamil Rytarowski <n54@gmx.com>
926
927 * amd64-bsd-nat.c (gdb_ptrace): New.
928 * (amd64bsd_fetch_inferior_registers,
929 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
930 * (amd64bsd_fetch_inferior_registers,
931 amd64bsd_store_inferior_registers) Use gdb_ptrace.
932
5ccd2fb7
KR
9332020-03-17 Kamil Rytarowski <n54@gmx.com>
934
935 * user-regs.c (user_reg::read): Rename to...
936 (user_reg::xread): ...this.
937 * (append_user_reg): Rename argument `read' to `xread'.
938 * (user_reg_add_builtin): Likewise.
939 * (user_reg_add): Likewise.
940 * (value_of_user_reg): Likewise.
941
2108a63a
KR
9422020-03-17 Kamil Rytarowski <n54@gmx.com>
943
944 * sparc-nat.c (gdb_ptrace): New.
945 * sparc-nat.c (sparc_fetch_inferior_registers)
946 (sparc_store_inferior_registers) Remove obsolete comment.
947 * sparc-nat.c (sparc_fetch_inferior_registers)
948 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
949 * sparc-nat.c (sparc_fetch_inferior_registers)
950 (sparc_store_inferior_registers) Use gdb_ptrace.
951
a225c9a8
KR
9522020-03-17 Kamil Rytarowski <n54@gmx.com>
953
954 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
955 it to the ptrace call.
956 * sh-nbsd-nat.c (store_registers): Likewise.
957
98097623
KR
9582020-03-17 Kamil Rytarowski <n54@gmx.com>
959
960 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
961 nbsd_nat_target instead of inf_ptrace_target.
962 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
963 nbsd_nat_target.
964
9e38d619
KR
9652020-03-17 Kamil Rytarowski <n54@gmx.com>
966
967 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
968
a2ecbe9f
KR
9692020-03-17 Kamil Rytarowski <n54@gmx.com>
970
971 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
972 <sys/sysctl.h>.
973 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
974
58990295
TV
9752020-03-17 Tom de Vries <tdevries@suse.de>
976
977 PR gdb/23710
978 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
979 fields.
980 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
981 fields.
982 (process_imported_unit_die): Skip import of c++ CUs.
983
771dd3a8
TT
9842020-03-16 Tom Tromey <tom@tromey.com>
985
986 * p-valprint.c (pascal_object_print_value): Initialize
987 base_value.
988
817a7585
AK
9892020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
990 Shahab Vahedi <shahab@synopsys.com>
991
992 * Makefile.in: Add arch/arc.o
993 * configure.tgt: Likewise.
994 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
995 (_initialize_arc_tdep): Don't initialize old target descriptions.
996 (arc_read_description): New function to cache target descriptions.
997 * arc-tdep.h (arc_read_description): Add proto type.
998 * arch/arc.c: New file.
999 * arch/arc.h: Likewise.
1000 * features/Makefile: Replace old target descriptions with new.
1001 * features/arc-arcompact.c: Remove.
1002 * features/arc-arcompact.xml: Likewise.
1003 * features/arc-v2.c: Likewise
1004 * features/arc-v2.xml: Likewise
1005 * features/arc/aux-arcompact.xml: New file.
1006 * features/arc/aux-v2.xml: Likewise.
1007 * features/arc/core-arcompact.xml: Likewise.
1008 * features/arc/core-v2.xml: Likewise.
1009 * features/arc/aux-arcompact.c: Generate.
1010 * features/arc/aux-v2.c: Likewise.
1011 * features/arc/core-arcompact.c: Likewise.
1012 * features/arc/core-v2.c: Likewise.
1013 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
1014
67430cd0
TT
10152020-03-16 Tom Tromey <tromey@adacore.com>
1016
1017 PR gdb/25663:
1018 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
1019 putting value into bcache.
1020
30efb6c7
SM
10212020-03-16 Simon Marchi <simon.marchi@efficios.com>
1022
1023 PR gdb/21500
1024 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
1025 to...
1026 (amd64_windows_init_abi_common): ... this. Don't set size of
1027 long type.
1028 (amd64_windows_init_abi): New function.
1029 (amd64_cygwin_init_abi): New function.
1030 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
1031 the Cygwin OS ABI.
1032 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
1033 comment.
1034
8db52437
SM
10352020-03-16 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
1038 * windows-tdep.c (CYGWIN_DLL_NAME): New.
1039 (pe_import_directory_entry): New struct type.
1040 (is_linked_with_cygwin_dll): New function.
1041 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
1042 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
1043 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
1044
5982a56a
SM
10452020-03-16 Simon Marchi <simon.marchi@efficios.com>
1046
1047 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
1048 i386_cygwin_core_osabi_sniffer.
1049
7a1998df
SM
10502020-03-16 Simon Marchi <simon.marchi@efficios.com>
1051
1052 * i386-cygwin-tdep.c: Rename to...
1053 * i386-windows-tdep.c: ... this.
1054 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
1055 i386-windows-tdep.c.
1056 * configure.tgt: Likewise.
1057
053205cc
SM
10582020-03-16 Simon Marchi <simon.marchi@efficios.com>
1059
1060 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
1061 * osabi.c (gdb_osabi_names): Add "Windows".
1062 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
1063 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
1064 (i386_cygwin_core_osabi_sniffer): New function, extracted from
1065 i386_cygwin_osabi_sniffer.
1066 (_initialize_i386_cygwin_tdep): Register OS ABI
1067 GDB_OSABI_WINDOWS for i386.
1068 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
1069 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
1070 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
1071 for x86-64.
1072 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
1073 when the target matches '*-*-mingw*'.
1074
fe4b2ee6
SM
10752020-03-16 Simon Marchi <simon.marchi@efficios.com>
1076
1077 * defs.h (enum gdb_osabi): Move to...
1078 * osabi.h (enum gdb_osabi): ... here.
1079 * gdbarch.sh: Include osabi.h in gdbarch.h.
1080 * gdbarch.h: Re-generate.
1081
cb9b645d
SM
10822020-03-16 Simon Marchi <simon.marchi@efficios.com>
1083
1084 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
1085 function.
1086 (_initialize_amd64_windows_tdep): Register osabi sniffer.
1087
3293bbaf
TT
10882020-03-14 Tom Tromey <tom@tromey.com>
1089
1090 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
1091 for C++.
1092 (c_type_print_modifier): Likewise. Add "language" parameter.
1093 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
1094 (c_type_print_base_1): Update.
1095 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
1096 constants.
1097 * type-stack.c (type_stack::insert): Handle tp_atomic and
1098 tp_restrict.
1099 (type_stack::follow_type_instance_flags): Likewise.
1100 (type_stack::follow_types): Likewise. Merge type-following code.
1101 * c-exp.y (RESTRICT, ATOMIC): New tokens.
1102 (space_identifier, cv_with_space_id)
1103 (const_or_volatile_or_space_identifier_noopt)
1104 (const_or_volatile_or_space_identifier): Remove.
1105 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
1106 rules.
1107 (ptr_operator, typebase): Update.
1108 (enum token_flag) <FLAG_C>: New constant.
1109 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
1110 "_Atomic".
1111 (lex_one_token): Handle FLAG_C.
1112
154151a6
KR
11132020-03-14 Kamil Rytarowski <n54@gmx.com>
1114
1115 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
1116 it to the ptrace call.
1117 * m68k-bsd-nat.c (store_registers): Likewise.
1118
bc107784
KR
11192020-03-14 Kamil Rytarowski <n54@gmx.com>
1120
1121 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
1122 gdb_byte *.
1123 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1124 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
1125 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
1126
01a80117
KR
11272020-03-14 Kamil Rytarowski <n54@gmx.com>
1128
1129 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
1130 nbsd_nat_target instead of inf_ptrace_target.
1131 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1132 nbsd_nat_target.
1133
f90280ca
KR
11342020-03-14 Kamil Rytarowski <n54@gmx.com>
1135
1136 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
1137 register_t.
1138
6def66f1
KR
11392020-03-14 Kamil Rytarowski <n54@gmx.com>
1140
1141 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
1142 it to the ptrace call.
1143 * alpha-bsd-nat.c (store_registers): Likewise.
1144
66eaca97
KR
11452020-03-14 Kamil Rytarowski <n54@gmx.com>
1146
1147 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
1148 includes.
1149 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
1150 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
1151 fill_fpregset): Likewise.
1152
4fed520b
KR
11532020-03-14 Kamil Rytarowski <n54@gmx.com>
1154
1155 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
1156 nbsd_nat_target instead of inf_ptrace_target.
1157 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1158 nbsd_nat_target.
1159
2190cf06
KR
11602020-03-14 Kamil Rytarowski <n54@gmx.com>
1161
1162 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
1163 register_t.
1164
75c56d3d
KR
11652020-03-14 Kamil Rytarowski <n54@gmx.com>
1166
1167 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
1168 it to the ptrace call.
1169 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
1170 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
1171 * arm-nbsd-nat.c (store_register): Likewise.
1172 * arm-nbsd-nat.c (store_regs): Likewise.
1173 * arm-nbsd-nat.c (store_fp_register): Likewise.
1174 * arm-nbsd-nat.c (store_fp_regs): Likewise.
1175
6018d381
KR
11762020-03-14 Kamil Rytarowski <n54@gmx.com>
1177
1178 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
1179 nbsd_nat_target instead of inf_ptrace_target.
1180 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1181 nbsd_nat_target.
1182
013f99f0
KR
11832020-03-14 Kamil Rytarowski <n54@gmx.com>
1184
1185 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
1186 it to the ptrace call.
1187 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
1188
12753073
KR
11892020-03-14 Kamil Rytarowski <n54@gmx.com>
1190
6227b330
KR
1191 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
1192 it to the ptrace call.
1193 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
1194
11952020-03-14 Kamil Rytarowski <n54@gmx.com>
1196
1197 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
1198 gdb_byte *.
12753073
KR
1199 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
1200
d5be5fa4
KR
12012020-03-14 Kamil Rytarowski <n54@gmx.com>
1202
1203 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
1204 instead of inf_ptrace_target.
1205 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1206 nbsd_nat_target.
1207
8110f842
KR
12082020-03-14 Kamil Rytarowski <n54@gmx.com>
1209
1210 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1211 register_t.
1212
52feded7
KR
12132020-03-14 Kamil Rytarowski <n54@gmx.com>
1214
1215 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1216 register_t.
1217
25567eee
KR
12182020-03-14 Kamil Rytarowski <n54@gmx.com>
1219
1220 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
1221 register_t.
1222
426a9c18
TT
12232020-03-13 Tom Tromey <tom@tromey.com>
1224
1225 * value.h (val_print): Don't declare.
1226 * valprint.h (val_print_array_elements)
1227 (val_print_scalar_formatted, generic_val_print): Don't declare.
1228 * valprint.c (generic_val_print_array): Take a struct value.
1229 (generic_val_print_ptr, generic_val_print_memberptr)
1230 (generic_val_print_bool, generic_val_print_int)
1231 (generic_val_print_char, generic_val_print_complex)
1232 (generic_val_print): Remove.
1233 (generic_value_print): Update.
1234 (do_val_print): Remove unused parameters. Don't call
1235 la_val_print.
1236 (val_print): Remove.
1237 (common_val_print): Update. Don't call value_check_printable.
1238 (val_print_scalar_formatted, val_print_array_elements): Remove.
1239 * rust-lang.c (rust_val_print): Remove.
1240 (rust_language_defn): Update.
1241 * p-valprint.c (pascal_val_print): Remove.
1242 (pascal_value_print_inner): Update.
1243 (pascal_object_print_val_fields, pascal_object_print_val):
1244 Remove.
1245 (pascal_object_print_static_field): Update.
1246 * p-lang.h (pascal_val_print): Don't declare.
1247 * p-lang.c (pascal_language_defn): Update.
1248 * opencl-lang.c (opencl_language_defn): Update.
1249 * objc-lang.c (objc_language_defn): Update.
1250 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
1251 * m2-lang.h (m2_val_print): Don't declare.
1252 * m2-lang.c (m2_language_defn): Update.
1253 * language.h (struct language_defn) <la_val_print>: Remove.
1254 * language.c (unk_lang_value_print_inner): Rename. Change
1255 argument types.
1256 (unknown_language_defn, auto_language_defn): Update.
1257 * go-valprint.c (go_val_print): Remove.
1258 * go-lang.h (go_val_print): Don't declare.
1259 * go-lang.c (go_language_defn): Update.
1260 * f-valprint.c (f_val_print): Remove.
1261 * f-lang.h (f_value_print): Don't declare.
1262 * f-lang.c (f_language_defn): Update.
1263 * d-valprint.c (d_val_print): Remove.
1264 * d-lang.h (d_value_print): Don't declare.
1265 * d-lang.c (d_language_defn): Update.
1266 * cp-valprint.c (cp_print_value_fields)
1267 (cp_print_value_fields_rtti, cp_print_value): Remove.
1268 (cp_print_static_field): Update.
1269 * c-valprint.c (c_val_print_array, c_val_print_ptr)
1270 (c_val_print_struct, c_val_print_union, c_val_print_int)
1271 (c_val_print_memberptr, c_val_print): Remove.
1272 * c-lang.h (c_val_print_array, cp_print_value_fields)
1273 (cp_print_value_fields_rtti): Don't declare.
1274 * c-lang.c (c_language_defn, cplus_language_defn)
1275 (asm_language_defn, minimal_language_defn): Update.
1276 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
1277 (ada_val_print_enum): Take a struct value.
1278 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
1279 (ada_val_print): Remove.
1280 (ada_value_print_1): Update.
1281 (printable_val_type): Remove.
1282 * ada-lang.h (ada_val_print): Don't declare.
1283 * ada-lang.c (ada_language_defn): Update.
1284
42331a1e
TT
12852020-03-13 Tom Tromey <tom@tromey.com>
1286
1287 * valprint.c (do_val_print): Update.
1288 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
1289 a struct value.
1290 (value_to_value_object_no_release): Declare.
1291 * python/py-value.c (value_to_value_object_no_release): New
1292 function.
1293 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
1294 struct value.
1295 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
1296 function.
1297 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
1298 a struct value.
1299 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
1300 Declare.
1301 (gdbscm_apply_val_pretty_printer): Take a struct value.
1302 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
1303 value.
1304 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
1305 value.
1306 * extension-priv.h (struct extension_language_ops)
1307 <apply_val_pretty_printer>: Take a struct value.
1308 * cp-valprint.c (cp_print_value): Create a struct value.
1309 (cp_print_value): Update.
1310
3a916a97
TT
13112020-03-13 Tom Tromey <tom@tromey.com>
1312
1313 * ada-valprint.c (print_field_values): Call common_val_print.
1314
b59eac37
TT
13152020-03-13 Tom Tromey <tom@tromey.com>
1316
1317 * ada-valprint.c (val_print_packed_array_elements): Remove
1318 bitoffset and val parameters. Call common_val_print.
1319 (ada_val_print_string): Remove offset, address, and original_value
1320 parameters.
1321 (ada_val_print_array): Update.
1322 (ada_value_print_array): New function.
1323 (ada_value_print_1): Call it.
1324
03371129
TT
13252020-03-13 Tom Tromey <tom@tromey.com>
1326
1327 * ada-valprint.c (ada_value_print): Use common_val_print.
1328
2e088f8b
TT
13292020-03-13 Tom Tromey <tom@tromey.com>
1330
1331 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
1332
39ef85a8
TT
13332020-03-13 Tom Tromey <tom@tromey.com>
1334
1335 * ada-valprint.c (ada_value_print_num): New function.
1336 (ada_value_print_1): Use it.
1337
b9fa6e07
TT
13382020-03-13 Tom Tromey <tom@tromey.com>
1339
1340 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
1341
416595d6
TT
13422020-03-13 Tom Tromey <tom@tromey.com>
1343
1344 * ada-valprint.c (ada_value_print_ptr): New function.
1345 (ada_value_print_1): Use it.
1346
5b5e15ec
TT
13472020-03-13 Tom Tromey <tom@tromey.com>
1348
1349 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
1350 call common_val_print.
1351 (ada_val_print_1): Update.
1352 (ada_value_print_1): New function.
1353 (ada_value_print_inner): Rewrite.
1354
fbf54e75
TT
13552020-03-13 Tom Tromey <tom@tromey.com>
1356
1357 * cp-valprint.c (cp_print_value_fields): Update.
1358 (cp_print_value): New function.
1359
64b653ca
TT
13602020-03-13 Tom Tromey <tom@tromey.com>
1361
1362 * m2-valprint.c (m2_value_print_inner): Use
1363 cp_print_value_fields.
1364 * cp-valprint.c (cp_print_value_fields): New function.
1365 * c-valprint.c (c_value_print_struct): New function.
1366 (c_value_print_inner): Use c_value_print_struct.
1367 * c-lang.h (cp_print_value_fields): Declare.
1368
6999f067
TT
13692020-03-13 Tom Tromey <tom@tromey.com>
1370
1371 * c-valprint.c (c_value_print_array): New function.
1372 (c_value_print_inner): Use it.
1373
ce80b8bd
TT
13742020-03-13 Tom Tromey <tom@tromey.com>
1375
1376 * c-valprint.c (c_value_print_memberptr): New function.
1377 (c_value_print_inner): Use it.
1378
2faac269
TT
13792020-03-13 Tom Tromey <tom@tromey.com>
1380
1381 * c-valprint.c (c_value_print_int): New function.
1382 (c_value_print_inner): Use it.
1383
da3e2c29
TT
13842020-03-13 Tom Tromey <tom@tromey.com>
1385
1386 * c-valprint.c (c_value_print_ptr): New function.
1387 (c_value_print_inner): Use it.
1388
50836231
TT
13892020-03-13 Tom Tromey <tom@tromey.com>
1390
1391 * c-valprint.c (c_value_print_inner): Rewrite.
1392
4f412b6e
TT
13932020-03-13 Tom Tromey <tom@tromey.com>
1394
1395 * valprint.c (generic_value_print_complex): New function.
1396 (generic_value_print): Use it.
1397
f5354008
TT
13982020-03-13 Tom Tromey <tom@tromey.com>
1399
1400 * valprint.c (generic_val_print_float): Don't call
1401 val_print_scalar_formatted.
1402 (generic_val_print, generic_value_print): Update.
1403
3eec3b05
TT
14042020-03-13 Tom Tromey <tom@tromey.com>
1405
1406 * valprint.c (generic_value_print_char): New function
1407 (generic_value_print): Use it.
1408
fdddfccb
TT
14092020-03-13 Tom Tromey <tom@tromey.com>
1410
1411 * valprint.c (generic_value_print_int): New function.
1412 (generic_value_print): Use it.
1413
6dde7521
TT
14142020-03-13 Tom Tromey <tom@tromey.com>
1415
1416 * valprint.c (generic_value_print_bool): New function.
1417 (generic_value_print): Use it.
1418
4112d2e6
TT
14192020-03-13 Tom Tromey <tom@tromey.com>
1420
1421 * valprint.c (generic_val_print_func): Simplify.
1422 (generic_val_print, generic_value_print): Update.
1423
65786af6
TT
14242020-03-13 Tom Tromey <tom@tromey.com>
1425
1426 * valprint.c (generic_val_print_flags): Remove.
1427 (generic_val_print, generic_value_print): Update.
1428 (val_print_type_code_flags): Add original_value parameter.
1429
40f3ce18
TT
14302020-03-13 Tom Tromey <tom@tromey.com>
1431
1432 * valprint.c (generic_val_print): Update.
1433 (generic_value_print): Update.
1434 * valprint.c (generic_val_print_enum): Don't call
1435 val_print_scalar_formatted.
1436
2a5b130b
TT
14372020-03-13 Tom Tromey <tom@tromey.com>
1438
1439 * valprint.c (generic_value_print): Call generic_value_print_ptr.
1440 * valprint.c (generic_value_print_ptr): New function.
1441
abc66ce9
TT
14422020-03-13 Tom Tromey <tom@tromey.com>
1443
1444 * valprint.c (generic_value_print): Rewrite.
1445
07a32858
TT
14462020-03-13 Tom Tromey <tom@tromey.com>
1447
1448 * p-valprint.c (pascal_object_print_value_fields)
1449 (pascal_object_print_value): New functions.
1450
64d64d3a
TT
14512020-03-13 Tom Tromey <tom@tromey.com>
1452
1453 * p-valprint.c (pascal_value_print_inner): Rewrite.
1454
6a95a1f5
TT
14552020-03-13 Tom Tromey <tom@tromey.com>
1456
1457 * f-valprint.c (f_value_print_innner): Rewrite.
1458
59fcdac6
TT
14592020-03-13 Tom Tromey <tom@tromey.com>
1460
1461 * m2-valprint.c (m2_print_unbounded_array): New overload.
1462 (m2_print_unbounded_array): Update.
1463 (m2_print_array_contents): Take a struct value.
1464 (m2_value_print_inner): Rewrite.
1465
d133c3e1
TT
14662020-03-13 Tom Tromey <tom@tromey.com>
1467
1468 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
1469 (d_value_print_inner): New function.
1470 * d-lang.h (d_value_print_inner): Declare.
1471 * d-lang.c (d_language_defn): Use d_value_print_inner.
1472
23b0f06b
TT
14732020-03-13 Tom Tromey <tom@tromey.com>
1474
1475 * go-valprint.c (go_value_print_inner): New function.
1476 * go-lang.h (go_value_print_inner): Declare.
1477 * go-lang.c (go_language_defn): Use go_value_print_inner.
1478
5f56f7cb
TT
14792020-03-13 Tom Tromey <tom@tromey.com>
1480
1481 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
1482 API.
1483 (rust_val_print): Rewrite.
1484 (rust_value_print_inner): New function, from rust_val_print.
1485 (rust_language_defn): Use rust_value_print_inner.
1486
26792ee0
TT
14872020-03-13 Tom Tromey <tom@tromey.com>
1488
1489 * ada-valprint.c (ada_value_print_inner): New function.
1490 * ada-lang.h (ada_value_print_inner): Declare.
1491 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
1492
24051bbe
TT
14932020-03-13 Tom Tromey <tom@tromey.com>
1494
1495 * f-valprint.c (f_value_print_innner): New function.
1496 * f-lang.h (f_value_print_innner): Declare.
1497 * f-lang.c (f_language_defn): Use f_value_print_innner.
1498
c0941be6
TT
14992020-03-13 Tom Tromey <tom@tromey.com>
1500
1501 * p-valprint.c (pascal_value_print_inner): New function.
1502 * p-lang.h (pascal_value_print_inner): Declare.
1503 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
1504
62c4663d
TT
15052020-03-13 Tom Tromey <tom@tromey.com>
1506
1507 * m2-valprint.c (m2_value_print_inner): New function.
1508 * m2-lang.h (m2_value_print_inner): Declare.
1509 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
1510
62182190
TT
15112020-03-13 Tom Tromey <tom@tromey.com>
1512
1513 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
1514 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
1515 * c-valprint.c (c_value_print_inner): New function.
1516 * c-lang.h (c_value_print_inner): Declare.
1517 * c-lang.c (c_language_defn, cplus_language_defn)
1518 (asm_language_defn, minimal_language_defn): Use
1519 c_value_print_inner.
1520
1e592a8a
TT
15212020-03-13 Tom Tromey <tom@tromey.com>
1522
1523 * p-valprint.c (pascal_object_print_value_fields): Now static.
1524 * p-lang.h (pascal_object_print_value_fields): Don't declare.
1525
7fe471e9
TT
15262020-03-13 Tom Tromey <tom@tromey.com>
1527
1528 * c-valprint.c (c_val_print_array): Simplify.
1529
d121c6ce
TT
15302020-03-13 Tom Tromey <tom@tromey.com>
1531
1532 * valprint.c (value_print_array_elements): New function.
1533 * valprint.h (value_print_array_elements): Declare.
1534
4dba70ee
TT
15352020-03-13 Tom Tromey <tom@tromey.com>
1536
1537 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
1538 * mips-tdep.c (mips_print_register): Use
1539 value_print_scalar_formatted.
1540
4f9ae810
TT
15412020-03-13 Tom Tromey <tom@tromey.com>
1542
1543 * valprint.h (value_print_scalar_formatted): Declare.
1544 * valprint.c (value_print_scalar_formatted): New function.
1545
156bfec9
TT
15462020-03-13 Tom Tromey <tom@tromey.com>
1547
1548 * valprint.h (generic_value_print): Declare.
1549 * valprint.c (generic_value_print): New function.
1550
2b4e573d
TT
15512020-03-13 Tom Tromey <tom@tromey.com>
1552
1553 * valprint.c (do_val_print): Call la_value_print_inner, if
1554 available.
1555 * rust-lang.c (rust_language_defn): Update.
1556 * p-lang.c (pascal_language_defn): Update.
1557 * opencl-lang.c (opencl_language_defn): Update.
1558 * objc-lang.c (objc_language_defn): Update.
1559 * m2-lang.c (m2_language_defn): Update.
1560 * language.h (struct language_defn) <la_value_print_inner>: New
1561 member.
1562 * language.c (unknown_language_defn, auto_language_defn): Update.
1563 * go-lang.c (go_language_defn): Update.
1564 * f-lang.c (f_language_defn): Update.
1565 * d-lang.c (d_language_defn): Update.
1566 * c-lang.c (c_language_defn, cplus_language_defn)
1567 (asm_language_defn, minimal_language_defn): Update.
1568 * ada-lang.c (ada_language_defn): Update.
1569
a1f6a07c
TT
15702020-03-13 Tom Tromey <tom@tromey.com>
1571
1572 * c-valprint.c (c_value_print): Use common_val_print.
1573
410cf315
TT
15742020-03-13 Tom Tromey <tom@tromey.com>
1575
1576 * cp-valprint.c (cp_print_static_field): Use common_val_print.
1577
72a45c93
TT
15782020-03-13 Tom Tromey <tom@tromey.com>
1579
1580 * f-valprint.c (f77_print_array_1, f_val_print): Use
1581 common_val_print.
1582
040f66bd
TT
15832020-03-13 Tom Tromey <tom@tromey.com>
1584
1585 * riscv-tdep.c (riscv_print_one_register_info): Use
1586 common_val_print.
1587
a6e05a6c
TT
15882020-03-13 Tom Tromey <tom@tromey.com>
1589
1590 * mi/mi-main.c (output_register): Use common_val_print.
1591
3444c526
TT
15922020-03-13 Tom Tromey <tom@tromey.com>
1593
1594 * infcmd.c (default_print_one_register_info): Use
1595 common_val_print.
1596
c2a44efe
TT
15972020-03-13 Tom Tromey <tom@tromey.com>
1598
1599 * valprint.h (common_val_print_checked): Declare.
1600 * valprint.c (common_val_print_checked): New function.
1601 * stack.c (print_frame_arg): Use common_val_print_checked.
1602
b0c26e99
TT
16032020-03-13 Tom Tromey <tom@tromey.com>
1604
1605 * valprint.c (do_val_print): New function, from val_print.
1606 (val_print): Use do_val_print.
1607 (common_val_print): Use do_val_print.
1608
ce3acbe9
TT
16092020-03-13 Tom Tromey <tom@tromey.com>
1610
1611 * valprint.c (value_print): Use scoped_value_mark.
1612
96c7f873
TV
16132020-03-13 Tom de Vries <tdevries@suse.de>
1614
1615 PR symtab/25646
1616 * psymtab.c (partial_symtab::partial_symtab): Don't set
1617 globals_offset and statics_offset. Push element onto
1618 current_global_psymbols and current_static_psymbols stacks.
1619 (concat): New function.
1620 (end_psymtab_common): Set globals_offset and statics_offset. Pop
1621 element from current_global_psymbols and current_static_psymbols
1622 stacks. Concat popped elements to global_psymbols and
1623 static_symbols.
1624 (add_psymbol_to_list): Use current_global_psymbols and
1625 current_static_psymbols stacks.
1626 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
1627 current_static_psymbols fields.
1628
6ba0a321
CB
16292020-03-12 Christian Biesinger <cbiesinger@google.com>
1630
1631 * corelow.c (sniff_core_bfd): Remove.
1632 (class core_target) <m_core_vec>: Remove.
1633 (core_target::core_target): Update.
1634 (core_file_fns): Remove.
1635 (deprecated_add_core_fns): Remove.
1636 (default_core_sniffer): Remove.
1637 (sniff_core_bfd): Remove.
1638 (default_check_format): Remove.
1639 (gdb_check_format): Remove.
1640 (core_target_open): Update.
1641 (core_target::get_core_register_section): Update.
1642 (get_core_registers_cb): Update.
1643 (core_target::fetch_registers): Update.
1644 * gdbcore.h (struct core_fns): Remove.
1645 (deprecated_add_core_fns): Remove.
1646 (default_core_sniffer): Remove.
1647 (default_check_format): Remove.
1648
227031b2
TT
16492020-03-12 Tom Tromey <tom@tromey.com>
1650
1651 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
1652 CORE_ADDR.
1653 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
1654
53807e9f
TT
16552020-03-12 Tom Tromey <tom@tromey.com>
1656
1657 * remote.c (remote_target::download_tracepoint)
1658 (remote_target::enable_tracepoint)
1659 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
1660 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
1661 sprintf_vma.
1662
64f25102
TT
16632020-03-12 Tom Tromey <tom@tromey.com>
1664
1665 * symfile-mem.c: Update CORE_ADDR size assert.
1666
272cd5a3
SM
16672020-03-12 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * selftest.m4: Move to gdbsupport/.
1670 * acinclude.m4: Update path to selftest.m4.
1671
74cd3f9d
SM
16722020-03-12 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
1675 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
1676 gdbarch-selfselftests.c and selftest-arch.c.
1677 (SUBDIR_UNITTESTS_OBS): Rename to...
1678 (SELFTESTS_OBS): ... this.
1679 (COMMON_SFILES): Remove disasm-selftests.c and
1680 gdbarch-selftests.c.
1681 * configure.ac: Don't add selftest-arch.{c,o} to
1682 CONFIG_{SRCS,OBS}.
1683 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
1684 preprocessor conditions.
1685
db6878ac
SM
16862020-03-12 Simon Marchi <simon.marchi@efficios.com>
1687
1688 * configure.ac: Don't source bfd/development.sh.
1689 * selftest.m4: Modify comment.
1690 * configure: Re-generate.
1691
4d696a5c
SM
16922020-03-12 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
1695 not "true" or "false".
1696 * configure: Re-generate.
1697
8dd8e1c7
CB
16982020-03-12 Christian Biesinger <cbiesinger@google.com>
1699
1700 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
1701 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
1702 renamed to arm_nbsd_supply_gregset.
1703 (fetch_register): Update to call arm_nbsd_supply_gregset.
1704 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
1705 (arm_netbsd_nat_target::fetch_registers): Update.
1706 (fetch_elfcore_registers): Removed.
1707 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
1708 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
1709 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
1710 not require NetBSD system headers.
1711 (arm_nbsd_regset): New struct.
1712 (arm_nbsd_iterate_over_regset_sections): New function.
1713 (arm_netbsd_init_abi_common): Updated to call
1714 set_gdbarch_iterate_over_regset_sections.
1715 * arm-nbsd-tdep.h: New file.
1716
dd69bf7a
KB
17172020-03-11 Kevin Buettner <kevinb@redhat.com>
1718
1719 * symtab.c (find_pc_sect_line): Add check which prevents infinite
1720 recursion.
1721
a0761e34
SM
17222020-03-11 Simon Marchi <simon.marchi@efficios.com>
1723
1724 * configure: Re-generate.
1725
e7a82140
TT
17262020-03-11 Tom Tromey <tromey@adacore.com>
1727
1728 * ada-typeprint.c (print_choices): Fix comment.
1729
dcc050c8
AB
17302020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
1733 previous item in the list, when the list has no items.
1734
1c33af77
TV
17352020-03-11 Tom de Vries <tdevries@suse.de>
1736
1737 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
1738 PROP_LOCLIST handling code.
1739
8c95582d
AB
17402020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * buildsym-legacy.c (record_line): Pass extra parameter to
1743 record_line.
1744 * buildsym.c (buildsym_compunit::record_line): Take an extra
1745 parameter, reduce duplication in the line table, and record the
1746 is_stmt flag in the line table.
1747 * buildsym.h (buildsym_compunit::record_line): Add extra
1748 parameter.
1749 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
1750 non-statement lines.
1751 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
1752 this to the symtab builder.
1753 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
1754 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
1755 through to dwarf_record_line_1.
1756 * infrun.c (process_event_stop_test): When stepping, don't stop at
1757 a non-statement instruction, and only refresh the step info when
1758 we land in the middle of a line's range. Also add an extra
1759 comment.
1760 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
1761 field.
1762 * record-btrace.c (btrace_find_line_range): Only record lines
1763 marked as is-statement.
1764 * stack.c (frame_show_address): Show the frame address if we are
1765 in a non-statement sal.
1766 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
1767 (maintenance_print_one_line_table): Print a header for the is_stmt
1768 column, and include is_stmt information in the output.
1769 * symtab.c (find_pc_sect_line): Find lines marked as statements in
1770 preference to non-statements.
1771 (find_pcs_for_symtab_line): Prefer is-statement entries.
1772 (find_line_common): Likewise.
1773 * symtab.h (struct linetable_entry): Add is_stmt field.
1774 (struct symtab_and_line): Likewise.
1775 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
1776 arranging the line table.
1777
e4003a34
TV
17782020-03-07 Tom de Vries <tdevries@suse.de>
1779
1780 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
1781 DIE.
1782
e8932576
TT
17832020-03-07 Tom Tromey <tom@tromey.com>
1784
1785 * valops.c (value_literal_complex): Remove obsolete comment.
1786 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
1787 comment.
1788
29734269
SM
17892020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1790
1791 * infrun.h: Forward-declare thread_info.
1792 (set_step_info): Add thread_info parameter, add doc.
1793 * infrun.c (set_step_info): Add thread_info parameter, move doc
1794 to header.
1795 * infrun.c (process_event_stop_test): Pass thread to
1796 set_step_info call.
1797 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
1798 set_step_info.
1799 (prepare_one_step): Add thread_info parameter, pass it to
1800 set_step_frame and prepare_one_step (recursive) call.
1801 (step_1): Pass thread to prepare_one_step call.
1802 (step_command_fsm::should_stop): Pass thread to
1803 prepare_one_step.
1804 (until_next_fsm): Pass thread to set_step_frame call.
1805 (finish_command): Pass thread to set_step_info call.
1806
b7d64b29
HD
18072020-03-06 Hannes Domani <ssbssa@yahoo.de>
1808
1809 * windows-tdep.c (windows_solib_create_inferior_hook):
1810 Check if inferior is running.
1811
09f2921c
TV
18122020-03-06 Tom de Vries <tdevries@suse.de>
1813
1814 * NEWS: Fix "the the".
1815 * ctfread.c: Same.
1816
fd760e79
TV
18172020-03-06 Tom de Vries <tdevries@suse.de>
1818
1819 * psymtab.c (psymtab_to_symtab): Don't print "done.".
1820
20ea4a60
AB
18212020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * .dir-locals.el: Add a comment referencing the other copies of
1824 this file.
1825
0afbabf0
JB
18262020-03-05 John Baldwin <jhb@FreeBSD.org>
1827
1828 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
1829 psargs.
1830
842806cb
TBA
18312020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1832
1833 * .gitattributes: New file.
1834
be1e3d3e
TT
18352020-03-04 Tom Tromey <tom@tromey.com>
1836
1837 * symmisc.c (print_symbol_bcache_statistics)
1838 (print_objfile_statistics): Update.
1839 * symfile.c (allocate_symtab): Use intern.
1840 * psymtab.c (partial_symtab::partial_symtab): Use intern.
1841 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
1842 macro_cache>: Remove.
1843 <string_cache>: New member.
1844 (struct objfile) <intern>: New methods.
1845 * elfread.c (elf_symtab_read): Use intern.
1846 * dwarf2/read.c (fixup_go_packaging): Intern package name.
1847 (dwarf2_compute_name, dwarf2_physname)
1848 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
1849 names.
1850 (guess_partial_die_structure_name): Update.
1851 (partial_die_info::fixup): Intern name.
1852 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
1853 name.
1854 (dwarf2_name): Intern name. Update.
1855 * buildsym.c (buildsym_compunit::get_macro_table): Use
1856 string_cache.
1857
4e7625fd
TT
18582020-03-04 Tom Tromey <tom@tromey.com>
1859
1860 * jit.c (bfd_open_from_target_memory): Make "target" const.
1861 * corefile.c (gnutarget): Now const.
1862 * gdbcore.h (gnutarget): Now const.
1863
46f9f931
HD
18642020-03-04 Hannes Domani <ssbssa@yahoo.de>
1865
1866 * NEWS: Mention support for WOW64 processes.
1867 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
1868 (amd64_windows_segment_register_p): Remove static.
1869 (_initialize_amd64_windows_nat): Update.
1870 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
1871 * i386-windows-nat.c (context_offset): Update.
1872 (i386_mappings): Rename and remove static.
1873 (i386_windows_segment_register_p): Remove static.
1874 (_initialize_i386_windows_nat): Update.
1875 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
1876 (STATUS_WX86_SINGLE_STEP): New macro.
1877 (EnumProcessModulesEx): New macro.
1878 (Wow64SuspendThread): New macro.
1879 (Wow64GetThreadContext): New macro.
1880 (Wow64SetThreadContext): New macro.
1881 (Wow64GetThreadSelectorEntry): New macro.
1882 (windows_set_context_register_offsets): Add static.
1883 (windows_set_segment_register_p): Likewise.
1884 (windows_add_thread): Adapt for WOW64 processes.
1885 (windows_fetch_one_register): Likewise.
1886 (windows_nat_target::fetch_registers): Likewise.
1887 (windows_store_one_register): Likewise.
1888 (display_selector): Likewise.
1889 (display_selectors): Likewise.
1890 (handle_exception): Likewise.
1891 (windows_continue): Likewise.
1892 (windows_nat_target::resume): Likewise.
1893 (windows_add_all_dlls): Likewise.
1894 (do_initial_windows_stuff): Likewise.
1895 (windows_nat_target::attach): Likewise.
1896 (windows_get_exec_module_filename): Likewise.
1897 (windows_nat_target::create_inferior): Likewise.
1898 (windows_xfer_siginfo): Likewise.
1899 (_initialize_loadable): Initialize Wow64SuspendThread,
1900 Wow64GetThreadContext, Wow64SetThreadContext,
1901 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
1902 * windows-nat.h (windows_set_context_register_offsets):
1903 Remove declaration.
1904 (windows_set_segment_register_p): Likewise.
1905 (i386_windows_segment_register_p): Add declaration.
1906 (amd64_windows_segment_register_p): Likewise.
1907
440cf44e
LM
19082020-03-04 Luis Machado <luis.machado@linaro.org>
1909
1910 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
1911 in "info registers" for AArch64/ARM.
1912
1913 The change caused "info registers" to not print GPR's.
1914
1915 gdb/ChangeLog:
1916
1917 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
1918
1919 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1920 when reg->group is empty and reggroup is not.
1921
1009d92f
TT
19222020-03-03 Tom Tromey <tromey@adacore.com>
1923
1924 * dwarf2/frame.c (struct dwarf2_frame_cache)
1925 <checked_tailcall_bottom, entry_cfa_sp_offset,
1926 entry_cfa_sp_offset_p>: Remove members.
1927 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
1928 (dwarf2_frame_prev_register): Don't call
1929 dwarf2_tailcall_sniffer_first.
1930 (dwarf2_append_unwinders): Don't append tailcall unwinder.
1931 * frame-unwind.c (add_unwinder): New fuction.
1932 (frame_unwind_init): Use it. Add tailcall unwinder.
1933
5e5d66b6
AB
19342020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
1935 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1936
1937 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
1938 value should be printed as true.
1939
584cf46d
HD
19402020-03-03 Hannes Domani <ssbssa@yahoo.de>
1941
1942 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
1943 (windows_init_abi): Set and use windows_so_ops.
1944
7b973adc
SDJ
19452020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
1946
1947 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
1948 when verifying if dealing with a convenience variable.
1949
bb7b70ab
LM
19502020-03-03 Luis Machado <luis.machado@linaro.org>
1951
1952 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
1953
9822cb57
SM
19542020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 * infrun.c (gdbarch_supports_displaced_stepping): New.
1957 (use_displaced_stepping): Break up conditions in smaller pieces.
1958 Use gdbarch_supports_displaced_stepping.
1959 (displaced_step_prepare_throw): Use
1960 gdbarch_supports_displaced_stepping.
1961
63e163f2
AB
19622020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * NEWS: Mention new behaviour of the history filename.
1965 * top.c (write_history_p): Add comment.
1966 (show_write_history_p): Add header comment, give a different
1967 message when history writing is on, but the history filename is
1968 empty.
1969 (history_filename): Add comment.
1970 (history_filename_empty): New function.
1971 (show_history_filename): Add header comment, give a different
1972 message when the filename is empty.
1973 (init_history): Compare history_filename against nullptr, and only
1974 read history if the filename is not empty.
1975 (set_history_filename): Add header comment, and only make
1976 non-empty filenames absolute.
1977 (init_main): Make the filename argument to 'set history filename'
1978 optional.
1979
81b86b97
CB
19802020-03-02 Christian Biesinger <cbiesinger@google.com>
1981
1982 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
1983 (arm_supply_vfpregset): ...this, and update to use VFP registers.
1984 (fetch_fp_register): Update.
1985 (fetch_fp_regs): Update.
1986 (store_fp_register): Update.
1987 (store_fp_regs): Update.
1988 (arm_netbsd_nat_target::read_description): New function.
1989 (fetch_elfcore_registers): Update.
1990
24ed6739
AB
19912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
1994 general_thread if the stop reply is missing a thread-id.
1995 (remote_target::process_stop_reply): Use the first non-exited
1996 thread if the target didn't pass a thread-id.
1997 * infrun.c (do_target_wait): Move call to
1998 switch_to_inferior_no_thread to ....
1999 (do_target_wait_1): ... here.
2000
a84bb2a0
JT
20012020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
2002
2003 * debuginfod-support.c: Include defs.h first.
2004
658dadf0
TV
20052020-02-28 Tom de Vries <tdevries@suse.de>
2006
2007 * symfile.c (set_initial_language): Use default language for lookup.
2008
4ebe4877
SM
20092020-02-28 Simon Marchi <simon.marchi@efficios.com>
2010
2011 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
2012 reader variable, pass `this` to read_cutu_die_from_dwo.
2013
e5da1139
AM
20142020-02-27 Aaron Merey <amerey@redhat.com>
2015
2016 * source.c (open_source_file): Check for nullptr when computing
2017 srcpath.
2018
317f7127
TT
20192020-02-27 Tom Tromey <tromey@adacore.com>
2020
2021 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
2022 member.
2023 (dwarf2_add_field): Don't update nfields.
2024 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
2025
3104d9ee
AB
20262020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
2029 abs.
2030
b83470bf
TT
20312020-02-26 Tom Tromey <tom@tromey.com>
2032
2033 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
2034 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
2035 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
2036 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
2037 per_cu_data.
2038
edfe0a0c
TT
20392020-02-26 Tom Tromey <tom@tromey.com>
2040
2041 * dwarf2/index-write.c (psym_index_map): Change type.
2042 (add_address_entry_worker, write_one_signatured_type)
2043 (recursively_count_psymbols, recursively_write_psymbols)
2044 (class debug_names, psyms_seen_size, write_gdbindex)
2045 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
2046
0d79cdc4
AM
20472020-02-26 Aaron Merey <amerey@redhat.com>
2048
2049 * Makefile.in: Handle optional debuginfod support.
2050 * NEWS: Update.
2051 * README: Add --with-debuginfod summary.
2052 * config.in: Regenerate.
2053 * configure: Regenerate.
2054 * configure.ac: Handle optional debuginfod support.
2055 * debuginfod-support.c: debuginfod helper functions.
2056 * debuginfod-support.h: Ditto.
2057 * doc/gdb.texinfo: Add --with-debuginfod to configure options
2058 summary.
2059 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
2060 when a dwz file cannot be found.
2061 * elfread.c (elf_symfile_read): Query debuginfod servers when a
2062 debuginfo file cannot be found.
2063 * source.c (open_source_file): Query debuginfod servers when a
2064 source file cannot be found.
2065 * top.c (print_gdb_configuration): Include
2066 --{with,without}-debuginfod in the output.
2067
b65ce565
JG
20682020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
2069
2070 * thread.c (thr_try_catch_cmd): Print thread name.
2071
d4c9a4f8
SM
20722020-02-26 Simon Marchi <simon.marchi@efficios.com>
2073
2074 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
2075 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2076 dwarf2_fetch_die_type_sect_off): Move to...
2077 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2078 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2079 dwarf2_fetch_die_type_sect_off): ... here.
2080 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2081 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2082 dwarf2_fetch_die_type_sect_off): Move doc to header file.
2083
0dce4280
TV
20842020-02-26 Tom de Vries <tdevries@suse.de>
2085
2086 PR gdb/25603
2087 * symfile.c (set_initial_language): Exit-early if
2088 language_mode == language_mode_manual.
2089
450a1bfc
SM
20902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2091
2092 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
2093 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
2094 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
2095
9e80cfa1
AB
20962020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2097
2098 * gdbtypes.c (create_array_type_with_stride): Handle negative
2099 array strides.
2100 * valarith.c (value_subscripted_rvalue): Likewise.
2101
09624f1f
LM
21022020-02-25 Luis Machado <luis.machado@linaro.org>
2103
2104 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
2105
8cb5117c
SM
21062020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * loc.h (dwarf2_get_die_type): Move to...
2109 * read.h (dwarf2_get_die_type): ... here.
2110 * read.c (dwarf2_get_die_type): Move doc to header.
2111
c325c44e
JB
21122020-02-25 Joel Brobecker <brobecker@adacore.com>
2113
2114 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
2115 'gnulib/Makefile.in' to the list.
2116
4ac93832
TT
21172020-02-24 Tom Tromey <tom@tromey.com>
2118
2119 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
2120 Remove.
2121 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
2122 XOBNEWVEC.
2123
197400e8
TT
21242020-02-24 Tom Tromey <tom@tromey.com>
2125
2126 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
2127 New method.
2128 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
2129 (dw2_do_instantiate_symtab, dw2_get_file_names)
2130 (build_type_psymtab_dependencies, load_full_type_unit): Update.
2131
76935768
TT
21322020-02-24 Tom Tromey <tom@tromey.com>
2133
2134 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
2135 make_scoped_restore.
2136 (dwarf2_psymtab::read_symtab): Don't clear
2137 reading_partial_symbols.
2138
a88ef40d
TV
21392020-02-24 Tom de Vries <tdevries@suse.de>
2140
2141 PR gdb/25592
2142 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
2143
c9af6521
TV
21442020-02-24 Tom de Vries <tdevries@suse.de>
2145
2146 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
2147 commands layout next/prev/regs.
2148
5707a07a
TT
21492020-02-22 Tom Tromey <tom@tromey.com>
2150
2151 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
2152 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
2153
3b0fb49e
TT
21542020-02-22 Tom Tromey <tom@tromey.com>
2155
2156 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
2157
283be8bf
TT
21582020-02-22 Tom Tromey <tom@tromey.com>
2159
2160 * tui/tui-win.c (_initialize_tui_win): Add usage text.
2161 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
2162 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
2163 * tui/tui.c (_initialize_tui): Add usage text.
2164
ca793b96
TT
21652020-02-22 Tom Tromey <tom@tromey.com>
2166
2167 * tui/tui-win.c (tui_set_focus_command)
2168 (tui_set_win_height_command): Use error_no_arg.
2169 (_initialize_tui_win): Update help text.
2170 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
2171
432b5c40
TT
21722020-02-22 Tom Tromey <tom@tromey.com>
2173
2174 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
2175 * tui/tui-disasm.h (struct tui_disasm_window)
2176 <display_start_addr>: Declare.
2177 * tui/tui-source.h (struct tui_source_window)
2178 <display_start_addr>: Declare.
2179 * tui/tui-winsource.h (struct tui_source_window_base)
2180 <show_source_line, display_start_addr>: New methods.
2181 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
2182 Rename and move to protected section.
2183 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
2184 (tui_source_window_base::do_erase_source_content): Update.
2185 (tui_source_window_base::show_source_line): Now a method.
2186 (tui_source_window_base::show_source_content)
2187 (tui_source_window_base::tui_source_window_base)
2188 (tui_source_window_base::rerender)
2189 (tui_source_window_base::refill)
2190 (tui_source_window_base::do_scroll_horizontal)
2191 (tui_source_window_base::set_is_exec_point_at)
2192 (tui_source_window_base::update_breakpoint_info)
2193 (tui_source_window_base::update_exec_info): Update.
2194 * tui/tui-source.c (tui_source_window::set_contents)
2195 (tui_source_window::showing_source_p)
2196 (tui_source_window::do_scroll_vertical)
2197 (tui_source_window::location_matches_p)
2198 (tui_source_window::line_is_displayed): Update.
2199 (tui_source_window::display_start_addr): New method.
2200 * tui/tui-disasm.c (tui_disasm_window::set_contents)
2201 (tui_disasm_window::do_scroll_vertical)
2202 (tui_disasm_window::location_matches_p): Update.
2203 (tui_disasm_window::display_start_addr): New method.
2204
01b1af32
TT
22052020-02-22 Tom Tromey <tom@tromey.com>
2206
2207 * NEWS: Add entry for gdb.register_window_type.
2208 * tui/tui-layout.h (window_factory): New typedef.
2209 (tui_register_window): Declare.
2210 * tui/tui-layout.c (saved_tui_windows): New global.
2211 (tui_apply_current_layout): Use it.
2212 (tui_register_window): New function.
2213 * python/python.c (do_start_initialization): Call
2214 gdbpy_initialize_tui.
2215 (python_GdbMethods): Add "register_window_type" function.
2216 * python/python-internal.h (gdbpy_register_tui_window)
2217 (gdbpy_initialize_tui): Declare.
2218 * python/py-tui.c: New file.
2219 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
2220
fc96d20b
TT
22212020-02-22 Tom Tromey <tom@tromey.com>
2222
2223 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
2224
935c78c0
TT
22252020-02-22 Tom Tromey <tom@tromey.com>
2226
2227 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
2228 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
2229 * tui/tui-data.c (tui_set_win_with_focus): Remove.
2230 (tui_set_win_focus_to): Move from tui-win.c.
2231
0240c8f1
TT
22322020-02-22 Tom Tromey <tom@tromey.com>
2233
2234 * tui/tui-layout.c (make_standard_window, get_locator_window): New
2235 functions.
2236 (known_window_types): New global.
2237 (tui_get_window_by_name): Reimplement.
2238 (initialize_known_windows): New function.
2239 (validate_window_name): Rewrite.
2240 (_initialize_tui_layout): Call initialize_known_windows.
2241
fdb01f0c
TT
22422020-02-22 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
2245 Remove constants.
2246 * tui/tui-winsource.h (struct tui_source_window_base)
2247 <tui_source_window_base>: Remove parameter.
2248 * tui/tui-winsource.c
2249 (tui_source_window_base::tui_source_window_base): Remove
2250 parameter.
2251 (tui_source_window_base::refill): Update.
2252 * tui/tui-stack.h (struct tui_locator_window)
2253 <tui_locator_window>: Update.
2254 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
2255 Default the constructor.
2256 * tui/tui-regs.h (struct tui_data_item_window)
2257 <tui_data_item_window>: Default the constructor.
2258 (struct tui_data_window) <tui_data_window>: Likewise.
2259 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
2260 Default the constructor.
2261 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
2262 Default the constructor.
2263 <type>: Remove.
2264 (struct tui_win_info) <tui_win_info>: Default the constructor.
2265 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
2266 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2267 Default the constructor.
2268
865a5aec
TT
22692020-02-22 Tom Tromey <tom@tromey.com>
2270
2271 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
2272 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
2273 * tui/tui-win.c (tui_resize_all): Don't call
2274 tui_delete_invisible_windows.
2275 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
2276 done.
2277 (tui_set_layout): Update.
2278 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
2279 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
2280 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
2281
e098d18c
TT
22822020-02-22 Tom Tromey <tom@tromey.com>
2283
2284 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
2285 correctly.
2286
eb9c8874
TT
22872020-02-22 Tom Tromey <tom@tromey.com>
2288
2289 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
2290
7eed1a8e
TT
22912020-02-22 Tom Tromey <tom@tromey.com>
2292
2293 * tui/tui-winsource.h (struct tui_source_window_iterator)
2294 <inner_iterator>: New etytypedef.
2295 <tui_source_window_iterator>: Take "end" parameter.
2296 <tui_source_window_iterator>: Take iterator.
2297 <operator*, advance>: Update.
2298 <m_iter>: Change type.
2299 <m_end>: New field.
2300 (struct tui_source_windows) <begin, end>: Update.
2301 * tui/tui-layout.c (tui_windows): New global.
2302 (tui_apply_current_layout): Clear tui_windows.
2303 (tui_layout_window::apply): Update tui_windows.
2304 * tui/tui-data.h (tui_windows): Declare.
2305 (all_tui_windows): Now inline function.
2306 (class tui_window_iterator, struct all_tui_windows): Remove.
2307
7c043ba6
TT
23082020-02-22 Tom Tromey <tom@tromey.com>
2309
2310 PR tui/17850:
2311 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
2312 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
2313 "height" argument.
2314 (class tui_layout_window) <get_sizes>: Likewise.
2315 (class tui_layout_split) <tui_layout_split>: Add "vertical"
2316 argument.
2317 <get_sizes>: Add "height" argument.
2318 <m_vertical>: New field.
2319 * tui/tui-layout.c (tui_layout_split::clone): Update.
2320 (tui_layout_split::get_sizes): Add "height" argument.
2321 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
2322 (tui_new_layout_command): Parse "-horizontal".
2323 (_initialize_tui_layout): Update help string.
2324 (tui_layout_split::specification): Add "-horizontal" when needed.
2325 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
2326 argument.
2327 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
2328 New methods.
2329
6bc56648
TT
23302020-02-22 Tom Tromey <tom@tromey.com>
2331
2332 * tui/tui-layout.h (enum tui_adjust_result): New.
2333 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
2334 (class tui_layout_window) <adjust_size>: Return
2335 tui_adjust_result. Rewrite.
2336 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
2337 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
2338
c22fef7e
TT
23392020-02-22 Tom Tromey <tom@tromey.com>
2340
2341 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
2342 parameter and return types.
2343 (class tui_layout_base) <specification>: Add "depth".
2344 (class tui_layout_window) <specification>: Add "depth".
2345 (class tui_layout_split) <specification>: Add "depth".
2346 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
2347 and return types.
2348 (tui_new_layout_command): Parse sub-layouts.
2349 (_initialize_tui_layout): Update help string.
2350 (tui_layout_window::specification): Add "depth".
2351 (add_layout_command): Update.
2352
ee325b61
TT
23532020-02-22 Tom Tromey <tom@tromey.com>
2354
2355 * NEWS: Add "tui new-layout" item.
2356 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
2357 Add new-layout command to help text.
2358 (validate_window_name): New function.
2359 (tui_new_layout_command): New function.
2360 (_initialize_tui_layout): Register "new-layout".
2361 (tui_layout_window::specification): New method.
2362 (tui_layout_window::specification): New method.
2363 * tui/tui-layout.h (class tui_layout_base) <specification>: New
2364 method.
2365 (class tui_layout_window) <specification>: New method.
2366 (class tui_layout_split) <specification>: New method.
2367
416eb92d
TT
23682020-02-22 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
2371 * tui/tui-win.c (window_name_completer): Update comment.
2372 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
2373 Declare method.
2374 (class tui_layout_window) <replace_window>: Likewise.
2375 (class tui_layout_split) <replace_window>: Likewise.
2376 (tui_set_layout): Don't declare.
2377 (tui_set_initial_layout): Declare function.
2378 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
2379 (asm_regs_layout): New globals.
2380 (tui_current_layout, show_layout): Remove.
2381 (tui_set_layout, tui_add_win_to_layout): Rewrite.
2382 (find_layout, tui_apply_layout): New function.
2383 (layout_completer): Remove.
2384 (tui_next_layout): Reimplement.
2385 (tui_next_layout_command): New function.
2386 (tui_set_initial_layout, tui_prev_layout_command): New functions.
2387 (tui_regs_layout): Reimplement.
2388 (tui_regs_layout_command): New function.
2389 (extract_display_start_addr): Rewrite.
2390 (next_layout, prev_layout): Remove.
2391 (tui_layout_window::replace_window): New method.
2392 (tui_layout_split::replace_window): New method.
2393 (destroy_layout): New function.
2394 (layout_list): New global.
2395 (add_layout_command): New function.
2396 (initialize_layouts): Update.
2397 (tui_layout_command): New function.
2398 (_initialize_tui_layout): Install "layout" commands.
2399 * tui/tui-data.h (enum tui_layout_type): Remove.
2400 (tui_current_layout): Don't declare.
2401
0dbc2fc7
TT
24022020-02-22 Tom Tromey <tom@tromey.com>
2403
2404 * tui/tui-regs.c (tui_reg_layout): Remove.
2405 (tui_reg_command): Use tui_regs_layout.
2406 * tui/tui-layout.h (tui_reg_command): Declare.
2407 * tui/tui-layout.c (tui_reg_command): New function.
2408
5afe342e
TT
24092020-02-22 Tom Tromey <tom@tromey.com>
2410
2411 * tui/tui.c (tui_rl_delete_other_windows): Call
2412 tui_remove_some_windows.
2413 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
2414 Declare method.
2415 (class tui_layout_window) <remove_windows>: New method.
2416 (class tui_layout_split) <remove_windows>: Declare.
2417 (tui_remove_some_windows): Declare.
2418 * tui/tui-layout.c (tui_remove_some_windows): New function.
2419 (tui_layout_split::remove_windows): New method.
2420
427326a8
TT
24212020-02-22 Tom Tromey <tom@tromey.com>
2422
2423 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
2424 * tui/tui-layout.h (tui_next_layout): Declare.
2425 * tui/tui-layout.c (tui_next_layout): New function.
2426
3fe12b6d
TT
24272020-02-22 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
2430 correct coordinates.
2431
59b8b5d2
TT
24322020-02-22 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
2435 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
2436 DATA_WIN case.
2437
2a3d458b
TT
24382020-02-22 Tom Tromey <tom@tromey.com>
2439
2440 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
2441 TUI_DISASM_WIN, not tui_win_list.
2442
3f0cbb04
TT
24432020-02-22 Tom Tromey <tom@tromey.com>
2444
2445 * valprint.c (generic_val_print_enum_1)
2446 (val_print_type_code_flags): Style member names.
2447 * rust-lang.c (val_print_struct, rust_print_enum)
2448 (rust_print_struct_def, rust_internal_print_type): Style member
2449 names.
2450 * p-valprint.c (pascal_object_print_value_fields): Style member
2451 names. Only call fprintf_symbol_filtered for static members.
2452 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
2453 * f-valprint.c (f_val_print): Style member names.
2454 * f-typeprint.c (f_type_print_base): Style member names.
2455 * cp-valprint.c (cp_print_value_fields): Style member names. Only
2456 call fprintf_symbol_filtered for static members.
2457 (cp_print_class_member): Style member names.
2458 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
2459 member names.
2460 * ada-valprint.c (ada_print_scalar): Style enum names.
2461 (ada_val_print_enum): Likewise.
2462 * ada-typeprint.c (print_enum_type): Style enum names.
2463
d4d947ae
TT
24642020-02-21 Tom Tromey <tom@tromey.com>
2465
2466 * psympriv.h (struct partial_symtab): Update comment.
2467
e94e944b
TT
24682020-02-21 Tom Tromey <tromey@adacore.com>
2469
2470 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
2471 type is CORE_ADDR.
2472
1eb73179
TV
24732020-02-21 Tom de Vries <tdevries@suse.de>
2474
2475 PR gdb/25534
2476 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
2477 if dependencies[i]->user != NULL.
2478
4f180d53
AT
24792020-02-21 Ali Tamur <tamur@google.com>
2480
2481 * dwarf2/read.c (dwarf2_name): Add null check.
2482
22b6cd70
TT
24832020-02-20 Tom Tromey <tom@tromey.com>
2484
2485 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
2486 ">=", in binary search.
2487 (dwarf2_find_containing_comp_unit): New overload.
2488 (run_test): New self-test.
2489 (_initialize_dwarf2_read): Register new test.
2490
bd0cf5a6
NC
24912020-02-20 Nelson Chu <nelson.chu@sifive.com>
2492
2493 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
2494 * riscv-tdep.h: Likewise.
2495 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
2496 rv32-only CSR.
2497 * features/riscv/64bit-csr.xml: Regenerated.
2498
3f702acd
SDJ
24992020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2500 Tom Tromey <tom@tromey.com>
2501
2502 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
2503 of 'fputc_unfiltered'.
2504 (putchar_unfiltered): Call 'fputc_unfiltered'.
2505 (fputc_unfiltered): Call 'fputs_unfiltered'.
2506
d13c7322
AB
25072020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
2508
2509 * config.in: Regenerate.
2510 * configure: Regenerate.
2511 * configure.ac: Add --with-python-libdir option.
2512 * main.c: Use WITH_PYTHON_LIBDIR.
2513
869d8950
TT
25142020-02-19 Tom Tromey <tom@tromey.com>
2515
2516 * symtab.c (general_symbol_info::compute_and_set_names): Use
2517 obstack_strndup. Simplify call to symbol_set_demangled_name.
2518
298e9637
SM
25192020-02-19 Simon Marchi <simon.marchi@efficios.com>
2520
2521 * dwarf2/read.c (allocate_signatured_type_table,
2522 allocate_dwo_unit_table, allocate_type_unit_groups_table,
2523 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
2524 Remove objfile parameter, update all callers.
2525
08410482
DE
25262020-02-19 Doug Evans <dje@google.com>
2527
2528 PR rust/25535
2529 * rust-lang.c (rust_print_enum): Apply embedded_offset to
2530 rust_enum_variant calculation.
2531
dfdeeca1
TT
25322020-02-19 Tom Tromey <tromey@adacore.com>
2533
2534 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
2535
2ef5453b
TT
25362020-02-19 Tom Tromey <tromey@adacore.com>
2537
2538 * ada-lang.c (cache_symbol): Use obstack_strdup.
2539
9f1528a1
AB
25402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * configure: Regenerate.
2543
d3c22fa8
TT
25442020-02-19 Tom Tromey <tromey@adacore.com>
2545
2546 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
2547 NULL check.
2548
bf84f706
MR
25492020-02-19 Maciej W. Rozycki <macro@wdc.com>
2550
2551 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
2552
d1c9b20f
AB
25532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
2556 if GDBSERVER is not defined.
2557 (riscv_tdesc_cache): Likewise, also store const target_desc.
2558 (STATIC_IN_GDB): Define.
2559 (riscv_create_target_description): Update declaration with
2560 STATIC_IN_GDB.
2561 (riscv_lookup_target_description): New function, only define if
2562 GDBSERVER is not defined.
2563 * arch/riscv.h (riscv_create_target_description): Declare only
2564 when GDBSERVER is defined.
2565 (riscv_lookup_target_description): New declaration when GDBSERVER
2566 is not defined.
2567 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
2568 (riscv_linux_read_features): ...this, and return
2569 riscv_gdbarch_features instead of target_desc.
2570 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
2571 (riscv_linux_read_description): Rename to...
2572 (riscv_linux_read_features): ...this.
2573 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2574 Update to use riscv_gdbarch_features and
2575 riscv_lookup_target_description.
2576 * riscv-tdep.c (riscv_find_default_target_description): Use
2577 riscv_lookup_target_description instead of
2578 riscv_create_target_description.
2579
373d7ac0
SM
25802020-02-18 Simon Marchi <simon.marchi@efficios.com>
2581
2582 * valprint.c (generic_val_print_enum_1): When printing a flag
2583 enum with value 0 and there is no enumerator with value 0, print
2584 just "0" instead of "(unknown: 0x0)".
2585
b29a2df0
SM
25862020-02-18 Simon Marchi <simon.marchi@efficios.com>
2587
2588 * valprint.c (generic_val_print_enum_1): Print unknown part of
2589 flag enum in hex.
2590
6740f0cc
SM
25912020-02-18 Simon Marchi <simon.marchi@efficios.com>
2592
2593 * dwarf2/read.c (update_enumeration_type_from_children): Allow
2594 flag enums to contain duplicate enumerators.
2595 * valprint.c (generic_val_print_enum_1): Update comment.
2596
edd45eb0
SM
25972020-02-18 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * dwarf2/read.c: Include "count-one-bits.h".
2600 (update_enumeration_type_from_children): If an enumerator has
2601 multiple bits set, don't treat the enumeration as a "flag enum".
2602 * valprint.c (generic_val_print_enum_1): Assert that enumerators
2603 of flag enums have 0 or 1 bit set.
2604
6d0cf446
BE
26052020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2606
2607 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
2608 conversion.
2609 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2610 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2611 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2612 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2613 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2614
7001c1b7
SM
26152020-02-18 Simon Marchi <simon.marchi@efficios.com>
2616
2617 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
2618
fdb61c6c
SM
26192020-02-14 Simon Marchi <simon.marchi@efficios.com>
2620
2621 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
2622 displaced_step_closure_up.
2623 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2624 (struct displaced_step_closure_up):
2625 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2626 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2627 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
2628 Likewise.
2629 * gdbarch.sh (displaced_step_copy_insn): Likewise.
2630 * gdbarch.c, gdbarch.h: Re-generate.
2631 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
2632 displaced_step_closure_up.
2633 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2634 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2635 * infrun.h (displaced_step_closure_up): New type alias.
2636 (struct displaced_step_inferior_state) <step_closure>: Change
2637 type to displaced_step_closure_up.
2638 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
2639 displaced_step_closure_up.
2640 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2641
a4a38eb4
TT
26422020-02-14 Tom Tromey <tom@tromey.com>
2643
2644 * minidebug.c (gnu_debug_key): New global.
2645 (find_separate_debug_file_in_section): Use it.
2646
e8217e61
SM
26472020-02-14 Simon Marchi <simon.marchi@efficios.com>
2648
2649 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
2650 std::unique_ptr.
2651 * gdbarch.c: Re-generate.
2652 * gdbarch.h: Re-generate.
2653 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
2654 change.
2655 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
2656 type to std::unique_ptr.
2657 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2658 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2659 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2660 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2661 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
2662 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2663 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2664 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2665 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2666
d8d83535
SM
26672020-02-14 Simon Marchi <simon.marchi@efficios.com>
2668
2669 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
2670 std::unique_ptr.
2671 (displaced_step_clear): Rename to...
2672 (displaced_step_reset): ... this. Just call displaced->reset ().
2673 (displaced_step_clear_cleanup): Rename to...
2674 (displaced_step_reset_cleanup): ... this.
2675 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
2676 (displaced_step_fixup): Likewise.
2677 (resume_1): Likewise.
2678 (handle_inferior_event): Restore child's memory before calling
2679 displaced_step_fixup on the parent.
2680 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
2681 to std::unique_ptr.
2682 <step_closure>: Change type to std::unique_ptr.
2683
5f661e03
SM
26842020-02-14 Simon Marchi <simon.marchi@efficios.com>
2685
2686 * arm-tdep.c: Include count-one-bits.h.
2687 (cleanup_block_store_pc): Use count_one_bits.
2688 (cleanup_block_load_pc): Use count_one_bits.
2689 (arm_copy_block_xfer): Use count_one_bits.
2690 (thumb2_copy_block_xfer): Use count_one_bits.
2691 (thumb_copy_pop_pc_16bit): Use count_one_bits.
2692 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
2693 (thumb_get_next_pcs_raw): Use count_one_bits.
2694 (arm_get_next_pcs_raw): Use count_one_bits_l.
2695 * arch/arm.c (bitcount): Remove.
2696 * arch/arm.h (bitcount): Remove.
2697
8084e579
TT
26982020-02-14 Tom Tromey <tromey@adacore.com>
2699
2700 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
2701 Update.
2702 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
2703 * dwarf2/loc.c (call_site_find_chain_1): Return
2704 unique_xmalloc_ptr.
2705 (call_site_find_chain): Likewise.
2706
258bf0ee
RB
27072020-02-14 Richard Biener <rguenther@suse.de>
2708
2709 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
2710 on expression with division operators.
2711
f98a8458
AKS
27122020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2713
2714 * MAINTAINERS (Write After Approval): Adding myself.
2715
d1437c0e
TT
27162020-02-12 Tom Tromey <tom@tromey.com>
2717
2718 * event-loop.c (event_data, gdb_event, event_handler_func):
2719 Remove.
2720
3d4560f7
TT
27212020-02-12 Tom Tromey <tom@tromey.com>
2722
2723 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
2724 (dwarf2_frame_objfile_data): Add comment.
2725 (find_comp_unit, set_comp_unit): New functions.
2726 (dwarf2_frame_find_fde): Use find_comp_unit.
2727 (dwarf2_build_frame_info): Use set_comp_unit.
2728
21982304
TT
27292020-02-12 Tom Tromey <tom@tromey.com>
2730
2731 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
2732 (comp_unit): Don't initialize objfile.
2733 (execute_cfa_program): Add text_offset parameter.
2734 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
2735 (dwarf2_frame_cache): Update.
2736 (dwarf2_build_frame_info): Don't set "objfile" member.
2737
4debb237
TT
27382020-02-12 Tom Tromey <tom@tromey.com>
2739
2740 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
2741 (decode_frame_entry): Likewise.
2742 (dwarf2_build_frame_info): Update.
2743
0d404d44
TT
27442020-02-12 Tom Tromey <tom@tromey.com>
2745
2746 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
2747 (decode_frame_entry_1): Use the comp_unit obstack.
2748
a7a3ae5c
TT
27492020-02-12 Tom Tromey <tom@tromey.com>
2750
2751 * dwarf2/frame.c (struct comp_unit): Add initializers and
2752 constructor.
2753 (dwarf2_frame_objfile_data): Store a comp_unit.
2754 (dwarf2_frame_find_fde): Update.
2755 (dwarf2_build_frame_info): Use "new".
2756
a9d65418
TT
27572020-02-12 Tom Tromey <tom@tromey.com>
2758
2759 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
2760 (dwarf2_fde_table): Typedef for std::vector.
2761 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
2762 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
2763 (decode_frame_entry): Update.
2764 (dwarf2_build_frame_info): Use "new".
2765
7559c217
CB
27662020-02-12 Christian Biesinger <cbiesinger@google.com>
2767
2768 * arm-tdep.c (arm_gdbarch_init): Update.
2769 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
2770 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
2771 have_neon, is_m>: Change to bool.
2772
aeefc73c
CB
27732020-02-12 Christian Biesinger <cbiesinger@google.com>
2774
2775 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
2776
d27b8e5f
TT
27772020-02-12 Tom Tromey <tom@tromey.com>
2778
2779 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
2780
cd5900f3
HD
27812020-02-12 Hannes Domani <ssbssa@yahoo.de>
2782
2783 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
2784 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
2785
f056b22b
TT
27862020-02-11 Tom Tromey <tom@tromey.com>
2787
2788 * psymtab.h: Update comment.
2789
f92ff6b5
TT
27902020-02-11 Tom Tromey <tom@tromey.com>
2791
2792 * gdb_obstack.h (struct auto_obstack): Use
2793 DISABLE_COPY_AND_ASSIGN.
2794
3fd6912b
TT
27952020-02-11 Tom Tromey <tom@tromey.com>
2796
2797 * dwarf2/frame.h (struct objfile): Don't forward declare.
2798
69ed9b74
CB
27992020-02-11 Christian Biesinger <cbiesinger@google.com>
2800
2801 * cris-tdep.c (cris_supply_gregset): Change signature to match
2802 what struct regset expects.
2803 (cris_regset): New struct.
2804 (fetch_core_registers): Remove.
2805 (cris_iterate_over_regset_sections): New function.
2806 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
2807 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
2808
bda874f6
CB
28092020-02-11 Christian Biesinger <cbiesinger@google.com>
2810
2811 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
2812 registers.
2813
754e1564
CB
28142020-02-11 Christian Biesinger <cbiesinger@google.com>
2815
2816 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
2817
8ddd8e0e
SM
28182020-02-11 Simon Marchi <simon.marchi@efficios.com>
2819
2820 * configure: Re-generate.
2821
898e7f60
SM
28222020-02-11 Simon Marchi <simon.marchi@efficios.com>
2823
2824 * configure: Re-generate.
2825
58df732b
SM
28262020-02-11 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * acinclude: Update warning.m4 path.
2829 * warning.m4: Move to gdbsupport.
2830
da5bd37e
TT
28312020-02-11 Tom Tromey <tromey@adacore.com>
2832
2833 * remote.c (remote_console_output): Update.
2834 * printcmd.c (printf_command): Update.
2835 * event-loop.c (gdb_wait_for_event): Update.
2836 * linux-nat.c (sigchld_handler): Update.
2837 * remote-sim.c (gdb_os_write_stdout): Update.
2838 (gdb_os_flush_stdout): Update.
2839 (gdb_os_flush_stderr): Update.
2840 (gdb_os_write_stderr): Update.
2841 * exceptions.c (print_exception): Update.
2842 * remote-fileio.c (remote_fileio_func_read): Update.
2843 (remote_fileio_func_write): Update.
2844 * tui/tui.c (tui_enable): Update.
2845 * tui/tui-interp.c (tui_interp::init): Update.
2846 * utils.c (init_page_info): Update.
2847 (putchar_unfiltered, fputc_unfiltered): Update.
2848 (gdb_flush): Update.
2849 (emit_style_escape): Update.
2850 (flush_wrap_buffer, fputs_maybe_filtered): Update.
2851 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
2852 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
2853 (stderr_file::write): Update.
2854 (stderr_file::puts): Update.
2855 * ui-file.h (ui_file_isatty, ui_file_write)
2856 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
2857 (ui_file_puts): Don't declare.
2858
85f0dd3c
TV
28592020-02-10 Tom de Vries <tdevries@suse.de>
2860
2861 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
2862 sentinel to char *.
2863
2e927613
TV
28642020-02-09 Tom de Vries <tdevries@suse.de>
2865
2866 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
2867 filename if it matches "<artificial>".
2868
6bafc845
HD
28692020-02-09 Hannes Domani <ssbssa@yahoo.de>
2870
2871 * windows-tdep.c (struct enum_value_name): New struct.
2872 (create_enum): New function.
2873 (windows_get_siginfo_type): Create and use enum types.
2874
7928d571
HD
28752020-02-09 Hannes Domani <ssbssa@yahoo.de>
2876
2877 * NEWS: Mention $_siginfo support for Windows.
2878 * windows-nat.c (handle_exception): Set siginfo_er.
2879 (windows_nat_target::mourn_inferior): Reset siginfo_er.
2880 (windows_xfer_siginfo): New function.
2881 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
2882 * windows-tdep.c (struct windows_gdbarch_data): New struct.
2883 (init_windows_gdbarch_data): New function.
2884 (get_windows_gdbarch_data): New function.
2885 (windows_get_siginfo_type): New function.
2886 (windows_init_abi): Register windows_get_siginfo_type.
2887 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
2888
6751ebae
TT
28892020-02-08 Tom Tromey <tom@tromey.com>
2890
2891 * dwarf2/read.c (class cutu_reader) <cutu_reader,
2892 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
2893 <keep>: Declare method.
2894 <m_keep>: Remove member.
2895 <~cutu_reader>: Remove.
2896 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2897 (cutu_reader::cutu_reader): Update.
2898 (cutu_reader::keep): Rename from ~cutu_reader.
2899 (process_psymtab_comp_unit, build_type_psymtabs_1)
2900 (process_skeletonless_type_unit, load_partial_comp_unit)
2901 (load_full_comp_unit, dwarf2_read_addr_index)
2902 (read_signatured_type): Update.
2903
135f5437
TT
29042020-02-08 Tom Tromey <tom@tromey.com>
2905
2906 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
2907 "want_partial_unit" parameter.
2908 (process_psymtab_comp_unit): Change want_partial_unit to bool.
2909 Inline check for DW_TAG_partial_unit.
2910 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
2911
9f66ff1c
TT
29122020-02-08 Tom Tromey <tom@tromey.com>
2913
2914 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
2915 read.c.
2916 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
2917 read.c.
2918
c8a7a66f
TT
29192020-02-08 Tom Tromey <tom@tromey.com>
2920
2921 * dwarf2/read.c (read_address): Move to comp-unit.c.
2922 (dwarf2_rnglists_process, dwarf2_ranges_process)
2923 (read_attribute_value, dwarf_decode_lines_1)
2924 (var_decode_location, decode_locdesc): Update.
2925 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
2926 read.c. Remove "cu" parameter.
2927 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
2928 method.
2929
8266302d
TT
29302020-02-08 Tom Tromey <tom@tromey.com>
2931
2932 * dwarf2/read.c (read_attribute_value, read_indirect_string)
2933 (read_indirect_line_string): Update.
2934 * dwarf2/comp-unit.c (read_offset): Remove.
2935 (read_comp_unit_head): Update.
2936 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
2937 method.
2938 (read_offset): Don't declare.
2939
4057dfde
TT
29402020-02-08 Tom Tromey <tom@tromey.com>
2941
2942 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
2943 * dwarf2/read.c (struct comp_unit_head): Move to
2944 dwarf2/comp-unit.h.
2945 (enum class rcuh_kind): Move to comp-unit.h.
2946 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
2947 (read_comp_unit_head, error_check_comp_unit_head)
2948 (read_and_check_comp_unit_head): Move to comp-unit.c.
2949 (read_offset, dwarf_unit_type_name): Likewise.
2950 (create_debug_type_hash_table, read_cutu_die_from_dwo)
2951 (cutu_reader::cutu_reader, read_call_site_scope)
2952 (find_partial_die, follow_die_offset): Update.
2953 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
2954
24aa364d
TT
29552020-02-08 Tom Tromey <tom@tromey.com>
2956
2957 * dwarf2/read.c (read_offset_1): Move to leb.c.
2958 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
2959 (dwarf_decode_macro_bytes): Update.
2960 * dwarf2/leb.c (read_offset): Rename; move from read.c.
2961 * dwarf2/leb.h (read_offset): Declare.
2962
2c7d5afc
TT
29632020-02-08 Tom Tromey <tom@tromey.com>
2964
2965 * dwarf2/read.c (dwarf2_section_size): Remove.
2966 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
2967 Update.
2968 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
2969
4075cb26
TT
29702020-02-08 Tom Tromey <tom@tromey.com>
2971
2972 * dwarf2/read.c (read_initial_length): Move to leb.c.
2973 * dwarf2/leb.h (read_initial_length): Declare.
2974 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
2975 handle_nonstd parameter.
2976 * dwarf2/frame.c (read_initial_length): Remove.
2977 (decode_frame_entry_1): Update.
2978
09ba997f
TT
29792020-02-08 Tom Tromey <tom@tromey.com>
2980
2981 * dwarf2/loc.c (dwarf2_find_location_expression)
2982 (dwarf_evaluate_loc_desc::get_tls_address)
2983 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
2984 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
2985 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
2986 (dwarf2_compile_property_to_c)
2987 (dwarf2_loc_desc_get_symbol_read_needs)
2988 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
2989 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
2990 (loclist_describe_location, loclist_tracepoint_var_ref)
2991 (loclist_generate_c_location): Update.
2992 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
2993 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
2994 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
2995 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
2996 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
2997 (dwarf2_per_cu_data::addr_size)
2998 (dwarf2_per_cu_data::ref_addr_size)
2999 (dwarf2_per_cu_data::text_offset)
3000 (dwarf2_per_cu_data::addr_type): Now methods.
3001 (per_cu_header_read_in): Make per_cu "const".
3002 (dwarf2_version): Remove.
3003 (dwarf2_per_cu_data::int_type): Now a method.
3004 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
3005 (set_die_type, read_array_type, read_subrange_index_type)
3006 (read_tag_string_type, read_subrange_type): Update.
3007 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
3008 offset_size, ref_addr_size, text_offset, addr_type, version,
3009 objfile, int_type, addr_sized_int_type>: Declare methods.
3010
96c738c0
TT
30112020-02-08 Tom Tromey <tom@tromey.com>
3012
3013 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
3014 Move earlier.
3015
8fdd972c
TT
30162020-02-08 Tom Tromey <tom@tromey.com>
3017
3018 * dwarf2/read.h (dwarf_line_debug): Declare.
3019 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
3020 * dwarf2/read.c: Move line_header code to new files.
3021 (dwarf_line_debug): No longer static.
3022 * dwarf2/line-header.c: New file.
3023 * dwarf2/line-header.h: New file.
3024
03075812
TT
30252020-02-08 Tom Tromey <tom@tromey.com>
3026
3027 * dwarf2/read.c (struct line_header) <file_full_name,
3028 file_file_name>: Return unique_xmalloc_ptr.
3029 (line_header::file_file_name): Update.
3030 (line_header::file_full_name): Update.
3031 (dw2_get_file_names_reader): Update.
3032 (macro_start_file): Update.
3033
bb822404
TT
30342020-02-08 Tom Tromey <tom@tromey.com>
3035
3036 * dwarf2/read.c (struct line_header) <file_full_name,
3037 file_file_name>: Declare methods.
3038 (dw2_get_file_names_reader): Update.
3039 (file_file_name): Now a method.
3040 (file_full_name): Likewise.
3041 (macro_start_file): Update.
3042
009b64fc
TT
30432020-02-08 Tom Tromey <tom@tromey.com>
3044
3045 * dwarf2/read.c (dwarf_always_disassemble)
3046 (show_dwarf_always_disassemble): Move to loc.c.
3047 (_initialize_dwarf2_read): Move "always-disassemble" registration
3048 to loc.c.
3049 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
3050 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
3051 static.
3052 (show_dwarf_always_disassemble): Move from read.c.
3053 (_initialize_dwarf2loc): Move always-disassemble from read.c.
3054
5895093f
TT
30552020-02-08 Tom Tromey <tom@tromey.com>
3056
3057 * dwarf2/read.c (~dwarf2_per_objfile): Update.
3058 (create_quick_file_names_table): Return htab_up.
3059 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
3060 Update.
3061 * dwarf2/read.h (struct dwarf2_per_objfile)
3062 <quick_file_names_table>: Now htab_up.
3063
b3b32279
TT
30642020-02-08 Tom Tromey <tom@tromey.com>
3065
3066 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
3067
1d33d811
TT
30682020-02-08 Tom Tromey <tom@tromey.com>
3069
3070 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
3071 Rewrite.
3072 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
3073 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
3074 (abbrev_table::abbrev_table): No longer inline.
3075 (ABBREV_HASH_SIZE): Remove.
3076 (abbrev_table::m_abbrevs): Now an htab_up.
3077
86de1d91
TT
30782020-02-08 Tom Tromey <tom@tromey.com>
3079
3080 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
3081 (cutu_reader): Update.
3082 (build_type_psymtabs_1): Update.
3083 * dwarf2/abbrev.c (abbrev_table::read): Rename.
3084 (abbrev_table::alloc_abbrev): Update.
3085 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
3086 (abbrev_table::read): New static method, renamed from
3087 abbrev_table_read_table.
3088 (abbrev_table::alloc_abbrev)
3089 (abbrev_table::add_abbrev): Now private.
3090 (abbrev_table::abbrev_table): Now private.
3091 (abbrev_table::m_abbrev_obstack): Now private. Rename.
3092
0335378b
TT
30932020-02-08 Tom Tromey <tom@tromey.com>
3094
3095 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
3096 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
3097 htab_up.
3098
48b490f2
TT
30992020-02-08 Tom Tromey <tom@tromey.com>
3100
3101 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
3102 htab_up.
3103 (lookup_dwo_unit_in_dwp): Update.
3104 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
3105 on obstack.
3106
bc68fb19
TT
31072020-02-08 Tom Tromey <tom@tromey.com>
3108
3109 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
3110 obstack.
3111
d15acc42
TT
31122020-02-08 Tom Tromey <tom@tromey.com>
3113
3114 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
3115 line_header_hash.
3116 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
3117 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
3118 Change type to htab_up.
3119
eaa5fa8b
TT
31202020-02-08 Tom Tromey <tom@tromey.com>
3121
3122 * dwarf2/read.c (allocate_type_unit_groups_table): Return
3123 htab_up. Don't allocate on obstack.
3124 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
3125 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
3126 Change type to htab_up.
3127
b0b6a987
TT
31282020-02-08 Tom Tromey <tom@tromey.com>
3129
3130 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
3131 Change type to htab_up.
3132 * dwarf2/read.c (create_signatured_type_table_from_index)
3133 (create_signatured_type_table_from_debug_names)
3134 (create_all_type_units, add_type_unit)
3135 (lookup_dwo_signatured_type, lookup_signatured_type)
3136 (process_skeletonless_type_unit): Update.
3137 (create_debug_type_hash_table, create_debug_types_hash_table):
3138 Change type of types_htab.
3139 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
3140 htab_up. Don't allocate on obstack.
3141 (create_cus_hash_table): Change type of cus_htab parameter.
3142 (struct dwo_file) <cus, tus>: Now htab_up.
3143 (lookup_dwo_signatured_type, lookup_dwo_cutu)
3144 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
3145 (queue_and_load_all_dwo_tus): Update.
3146 * dwarf2/index-write.c (write_gdbindex): Update.
3147 (write_debug_names): Update.
3148
39856def
TT
31492020-02-08 Tom Tromey <tom@tromey.com>
3150
3151 * dwarf2/read.h (struct dwarf2_queue_item): Move from
3152 dwarf2/read.c. Remove "next" member. Add constructor ntad
3153 destructor.
3154 (struct dwarf2_per_objfile) <queue>: New member.
3155 * dwarf2/read.c (struct dwarf2_queue_item): Move to
3156 dwarf2/read.h.
3157 (dwarf2_queue, dwarf2_queue_tail): Remove.
3158 (class dwarf2_queue_guard): Add parameter to constructor. Use
3159 DISABLE_COPY_AND_ASSIGN.
3160 <m_per_objfile>: New member.
3161 <~dwarf2_queue_guard>: Rewrite.
3162 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
3163 Update.
3164 (~dwarf2_queue_item): New.
3165
3e225074
TT
31662020-02-08 Tom Tromey <tom@tromey.com>
3167
3168 * dwarf2/read.c (struct die_info) <has_children>: New member.
3169 (dw2_get_file_names_reader): Remove has_children.
3170 (dw2_get_file_names): Update.
3171 (read_cutu_die_from_dwo): Remove has_children.
3172 (cutu_reader::init_tu_and_read_dwo_dies)
3173 (cutu_reader::cutu_reader): Update.
3174 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
3175 Remove has_children.
3176 (build_type_psymtabs_1, process_skeletonless_type_unit)
3177 (load_partial_comp_unit, load_full_comp_unit): Update.
3178 (create_dwo_cu_reader): Remove has_children.
3179 (create_cus_hash_table, read_die_and_children): Update.
3180 (read_full_die_1,read_full_die): Remove has_children.
3181 (read_signatured_type): Update.
3182 (class cutu_reader) <has_children>: Remove.
3183
82ca8957
TT
31842020-02-08 Tom Tromey <tom@tromey.com>
3185
3186 * dwarf2/expr.c: Rename from dwarf2expr.c.
3187 * dwarf2/expr.h: Rename from dwarf2expr.h.
3188 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
3189 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
3190 * dwarf2/frame.c: Rename from dwarf2-frame.c.
3191 * dwarf2/frame.h: Rename from dwarf2-frame.h.
3192 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
3193 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
3194 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
3195 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
3196 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
3197 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
3198 * dwarf2/loc.c: Rename from dwarf2loc.c.
3199 * dwarf2/loc.h: Rename from dwarf2loc.h.
3200 * dwarf2/read.c: Rename from dwarf2read.c.
3201 * dwarf2/read.h: Rename from dwarf2read.h.
3202 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
3203 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
3204 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
3205 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
3206 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
3207 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
3208 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
3209 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
3210 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
3211 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
3212 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
3213 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
3214 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
3215 Update.
3216 * Makefile.in (COMMON_SFILES): Update.
3217 (HFILES_NO_SRCDIR): Update.
3218
9e35d499
TT
32192020-02-08 Tom Tromey <tom@tromey.com>
3220
3221 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
3222 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
3223
1eba2311
TT
32242020-02-08 Tom Tromey <tom@tromey.com>
3225
3226 * dwarf2read.h (struct die_info): Don't declare.
3227
e41c2da2
TT
32282020-02-08 Tom Tromey <tom@tromey.com>
3229
3230 * dwarf2read.h (die_info_ptr): Remove typedef.
3231
4fc6c0d5
TT
32322020-02-08 Tom Tromey <tom@tromey.com>
3233
3234 * dwarf2read.c (read_call_site_scope)
3235 (handle_data_member_location, dwarf2_add_member_fn)
3236 (mark_common_block_symbol_computed, read_common_block)
3237 (attr_to_dynamic_prop, partial_die_info::read)
3238 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
3239 (dwarf2_symbol_mark_computed, set_die_type): Update.
3240 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
3241 method.
3242 (attr_form_is_block): Don't declare.
3243 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
3244
cd6c91b4
TT
32452020-02-08 Tom Tromey <tom@tromey.com>
3246
3247 * dwarf2read.c (dwarf2_find_base_address, )
3248 (read_call_site_scope, rust_containing_type)
3249 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3250 (handle_data_member_location, dwarf2_add_member_fn)
3251 (get_alignment, read_structure_type, process_structure_scope)
3252 (mark_common_block_symbol_computed, read_common_block)
3253 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
3254 (partial_die_info::read, read_attribute_value, new_symbol)
3255 (lookup_die_type, dwarf2_get_ref_die_offset)
3256 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
3257 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
3258 (dwarf2_symbol_mark_computed): Update.
3259 * dwarf2/attribute.h (struct attribute) <value_as_address,
3260 form_is_section_offset, form_is_constant, form_is_ref>: Declare
3261 methods.
3262 (value_as_address, attr_form_is_section_offset)
3263 (attr_form_is_constant, attr_form_is_ref): Don't declare.
3264 * dwarf2/attribute.c (attribute::value_as_address)
3265 (attribute::form_is_section_offset, attribute::form_is_constant)
3266 (attribute::form_is_ref): Now methods.
3267
162dce55
TT
32682020-02-08 Tom Tromey <tom@tromey.com>
3269
3270 * dwarf2read.c (struct attribute, DW_STRING)
3271 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
3272 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
3273 (attr_form_is_block, attr_form_is_section_offset)
3274 (attr_form_is_constant, attr_form_is_ref): Move.
3275 * dwarf2/attribute.h: New file.
3276 * dwarf2/attribute.c: New file, from dwarf2read.c.
3277 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
3278
3054dd54
TT
32792020-02-08 Tom Tromey <tom@tromey.com>
3280
3281 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
3282 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
3283 Move.
3284 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
3285 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
3286 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
3287 abbrev.c.
3288 * dwarf2/abbrev.h: New file.
3289 * dwarf2/abbrev.c: New file, from dwarf2read.c.
3290 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
3291
96b79293
TT
32922020-02-08 Tom Tromey <tom@tromey.com>
3293
3294 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
3295 (dwarf2_section_size, dwarf2_get_section_info)
3296 (create_signatured_type_table_from_debug_names)
3297 (create_addrmap_from_aranges, read_debug_names_from_section)
3298 (get_gdb_index_contents_from_section, read_comp_unit_head)
3299 (error_check_comp_unit_head, read_abbrev_offset)
3300 (create_debug_type_hash_table, init_cu_die_reader)
3301 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
3302 (read_comp_units_from_section, create_cus_hash_table)
3303 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3304 (create_dwp_v2_section, dwarf2_rnglists_process)
3305 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
3306 (abbrev_table_read_table, read_indirect_string_at_offset_from)
3307 (read_indirect_string_from_dwz, read_addr_index_1)
3308 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
3309 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3310 (fill_in_loclist_baton): Update.
3311 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
3312 get_containing_section, get_bfd_owner, get_bfd_section,
3313 get_file_name, get_id, get_flags, empty, read>: Declare methods.
3314 (dwarf2_read_section, get_section_name, get_section_file_name)
3315 (get_containing_section, get_section_bfd_owner)
3316 (get_section_bfd_section, get_section_name, get_section_file_name)
3317 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
3318 declare.
3319 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
3320 (dwarf2_section_info::get_bfd_owner)
3321 (dwarf2_section_info::get_bfd_section)
3322 (dwarf2_section_info::get_name)
3323 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
3324 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
3325 (dwarf2_section_info::read): Now methods.
3326 * dwarf-index-write.c (class debug_names): Update.
3327
2c86cff9
TT
33282020-02-08 Tom Tromey <tom@tromey.com>
3329
3330 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
3331 Move to dwarf2/section.h.
3332 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
3333 (get_section_bfd_section, get_section_name)
3334 (get_section_file_name, get_section_id, get_section_flags)
3335 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
3336 dwarf2/section.c.
3337 * dwarf2/section.h: New file.
3338 * dwarf2/section.c: New file, from dwarf2read.c.
3339 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
3340
f4382c45
TT
33412020-02-08 Tom Tromey <tom@tromey.com>
3342
3343 * dwarf2read.h (read_unsigned_leb128): Don't declare.
3344 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
3345 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
3346 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
3347 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
3348 * dwarf2/leb.h: New file, from dwarf2read.c.
3349 * dwarf2/leb.c: New file, from dwarf2read.c.
3350 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
3351 Remove.
3352 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
3353 (COMMON_SFILES): Add dwarf2/leb.c.
3354
01840b7a
JB
33552020-02-08 Joel Brobecker <brobecker@adacore.com>
3356
3357 GDB 9.1 released.
3358
dfcb27e4
IB
33592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3360
3361 PR gdb/25190:
3362 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
3363 * gdb/remote.c (remote_console_output): Update.
3364 * gdb/ui-file.c (fputs_unfiltered): Rename to...
3365 (ui_file_puts): ...this.
3366 * gdb/ui-file.h (ui_file_puts): Add declaration.
3367 * gdb/utils.c (emit_style_escape): Update.
3368 (flush_wrap_buffer): Update.
3369 (fputs_maybe_filtered): Update.
3370 (fputs_unfiltered): Add function.
3371
faa17681
IB
33722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3373
3374 * gdb/event-loop.c (gdb_wait_for_event): Update.
3375 * gdb/printcmd.c (printf_command): Update.
3376 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
3377 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
3378 (gdb_os_flush_stderr): Update.
3379 * gdb/remote.c (remote_console_output): Update.
3380 * gdb/ui-file.c (gdb_flush): Rename to...
3381 (ui_file_flush): ...this.
3382 (stderr_file::write): Update.
3383 (stderr_file::puts): Update.
3384 * gdb/ui-file.h (gdb_flush): Rename to...
3385 (ui_file_flush): ...this.
3386 * gdb/utils.c (gdb_flush): Add function.
3387 * gdb/utils.h (gdb_flush): Add declaration.
3388
5abbbe1d
TT
33892020-02-07 Tom Tromey <tromey@adacore.com>
3390
3391 PR breakpoints/24915:
3392 * source.c (find_and_open_source): Do not check basenames_may_differ.
3393
919adfe8
TT
33942020-02-07 Tom Tromey <tom@tromey.com>
3395
3396 * README: Update gdbserver documentation.
3397 * gdbserver: Move to top level.
3398 * configure.tgt (build_gdbserver): Remove.
3399 * configure.ac: Remove --enable-gdbserver.
3400 * configure: Rebuild.
3401 * Makefile.in (distclean): Don't mention gdbserver.
3402
1d5d29e7
SV
34032020-02-06 Shahab Vahedi <shahab@synopsys.com>
3404
3405 * source-cache.c (source_cache::ensure): Surround
3406 get_plain_source_lines with a try/catch.
3407 (source_cache::get_line_charpos): Get rid of try/catch
3408 and only check for the return value of "ensure".
3409 * tui/tui-source.c (tui_source_window::set_contents):
3410 Simplify "nlines" calculation.
3411
6eb1129c
SV
34122020-02-06 Shahab Vahedi <shahab@synopsys.com>
3413
3414 * MAINTAINERS (Write After Approval): Add myself.
3415
c6a42d11
CB
34162020-02-05 Christian Biesinger <cbiesinger@google.com>
3417
3418 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
3419 function call.
3420
c8ecdda6
CB
34212020-02-05 Christian Biesinger <cbiesinger@google.com>
3422
3423 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
3424
f6480e70
MR
34252020-02-05 Maciej W. Rozycki <macro@wdc.com>
3426
3427 * nat/riscv-linux-tdesc.h: New file.
3428 * nat/riscv-linux-tdesc.c: New file, taking code from...
3429 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3430 ... here.
3431 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
3432 NATDEPFILES.
3433
dcc9fbc6
AB
34342020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
3437 we don't set the fake simulator ptid to the null_ptid.
3438
719546c4
SM
34392020-02-03 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
3442 * gdbthread.h (class thread_info) <resumed>: Likewise.
3443 * infrun.c (resume_1): Likewise.
3444 (proceed): Likewise.
3445 (infrun_thread_stop_requested): Likewise.
3446 (stop_all_threads): Likewise.
3447 (handle_inferior_event): Likewise.
3448 (restart_threads): Likewise.
3449 (finish_step_over): Likewise.
3450 (keep_going_stepped_thread): Likewise.
3451 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
3452 (linux_handle_extended_wait): Likewise.
3453 * record-btrace.c (get_thread_current_frame_id): Likewise.
3454 * record-full.c (record_full_wait_1): Likewise.
3455 * remote.c (remote_target::process_initial_stop_replies): Likewise.
3456 * target.c (target_resume): Likewise.
3457 * thread.c (set_running_thread): Likewise.
3458
e409c542
AKS
34592020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3460
3461 * f-valprint.c (f77_print_array_1): Changed datatype of index
3462 variable to LONGEST from int to enable it to contain bound
3463 values correctly.
3464
ee98c0da
MR
34652020-02-03 Maciej W. Rozycki <macro@wdc.com>
3466
3467 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
3468 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
3469 offsets according to FLEN determined.
3470 (riscv_linux_nat_target::read_description): Determine FLEN
3471 dynamically.
3472 (riscv_linux_nat_target::fetch_registers): Size regset buffer
3473 according to FLEN determined.
3474 (riscv_linux_nat_target::store_registers): Likewise.
3475
aa66aac4
SV
34762020-02-01 Shahab Vahedi <shahab@synopsys.com>
3477
3478 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3479 when reg->group is empty and reggroup is not.
3480
fd9faca8
TT
34812020-01-31 Tom Tromey <tromey@adacore.com>
3482
3483 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
3484 Call beneath target's mourn_inferior after unpushing.
3485
42330a68
AB
34862020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 PR tui/9765
3489 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
3490 have enough lines to fill the screen, still return the lowest
3491 address we found.
3492
7a27a45b
AB
34932020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
3496 '-', '<', and '>' commands.
3497
c47f70e2
PA
34982020-01-29 Pedro Alves <palves@redhat.com>
3499 Sergio Durigan Junior <sergiodj@redhat.com>
3500
3501 * infcmd.c (construct_inferior_arguments): Assert that
3502 'argc' is greater than 0.
3503
5133a315
LM
35042020-01-29 Luis Machado <luis.machado@linaro.org>
3505
3506 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
3507 (BRK_INSN_MASK): Define to 0xd4200000.
3508 (aarch64_program_breakpoint_here_p): New function.
3509 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
3510 * arch-utils.c (default_program_breakpoint_here_p): Moved from
3511 breakpoint.c.
3512 * arch-utils.h (default_program_breakpoint_here_p): Moved from
3513 breakpoint.h
3514 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
3515 call gdbarch_program_breakpoint_here_p.
3516 (program_breakpoint_here): Moved to arch-utils.c, renamed to
3517 default_program_breakpoint_here_p, changed return type to bool and
3518 simplified.
3519 * breakpoint.h (program_breakpoint_here): Moved prototype to
3520 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
3521 return type to bool.
3522 * gdbarch.c: Regenerate.
3523 * gdbarch.h: Regenerate.
3524 * gdbarch.sh (program_breakpoint_here_p): New method.
3525 * infrun.c (handle_signal_stop): Call
3526 gdbarch_program_breakpoint_here_p.
3527
168f8c6b
TT
35282020-01-26 Tom Tromey <tom@tromey.com>
3529
3530 * ctfread.c (struct ctf_fp_info): Reindent.
3531 (_initialize_ctfread): Remove.
3532
128a391f
TT
35332020-01-26 Tom Tromey <tom@tromey.com>
3534
3535 * psymtab.c (partial_map_expand_apply)
3536 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3537 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3538 (psym_print_stats, psym_expand_symtabs_for_function)
3539 (psym_map_symbol_filenames, psym_map_matching_symbols)
3540 (psym_expand_symtabs_matching)
3541 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3542 (maintenance_check_psymtabs): Use new methods.
3543 * psympriv.h (struct partial_symtab) <readin_p,
3544 get_compunit_symtab>: New methods.
3545 <readin, compunit_symtab>: Remove members.
3546 (struct standard_psymtab): New.
3547 (struct legacy_psymtab): Derive from standard_psymtab.
3548 * dwarf2read.h (struct dwarf2_psymtab): Derive from
3549 standard_psymtab.
3550 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
3551
0494dbec
TT
35522020-01-26 Tom Tromey <tom@tromey.com>
3553
3554 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
3555 read_dependencies. Add assert.
3556 * psymtab.c (partial_symtab::read_dependencies): New method.
3557 * psympriv.h (struct partial_symtab) <read_dependencies>: New
3558 method.
3559 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
3560 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
3561 read_dependencies.
3562 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
3563 Add assert.
3564
8566b89b
TT
35652020-01-26 Tom Tromey <tom@tromey.com>
3566
3567 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
3568 Call expand_psymtab.
3569 (xcoff_read_symtab): Call expand_psymtab.
3570 (xcoff_start_psymtab, xcoff_end_psymtab): Set
3571 legacy_expand_psymtab.
3572 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
3573 method.
3574 (struct legacy_psymtab) <expand_psymtab>: Implement.
3575 <legacy_expand_psymtab>: New member.
3576 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
3577 (parse_partial_symbols): Set legacy_expand_psymtab.
3578 (psymtab_to_symtab_1): Change argument order. Call
3579 expand_psymtab.
3580 (new_psymtab): Set legacy_expand_psymtab.
3581 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
3582 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
3583 expand_psymtab.
3584 (dwarf2_psymtab::expand_psymtab): Rename from
3585 psymtab_to_symtab_1. Call expand_psymtab.
3586 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
3587 (dbx_end_psymtab): Likewise.
3588 (dbx_psymtab_to_symtab_1): Change argument order. Call
3589 expand_psymtab.
3590 (dbx_read_symtab): Call expand_psymtab.
3591 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
3592 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
3593 (ctf_psymtab::read_symtab): Call expand_psymtab.
3594
077cbab2
TT
35952020-01-26 Tom Tromey <tom@tromey.com>
3596
3597 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
3598 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
3599 messages.
3600 * mdebugread.c (mdebug_read_symtab): Remove prints.
3601 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
3602 assert.
3603 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
3604
891813be
TT
36052020-01-26 Tom Tromey <tom@tromey.com>
3606
3607 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
3608 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
3609 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
3610 legacy_symtab.
3611 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
3612 * psymtab.c (psymtab_to_symtab): Call method.
3613 (dump_psymtab): Update.
3614 * psympriv.h (struct partial_symtab): Add virtual destructor.
3615 <read_symtab>: New method.
3616 (struct legacy_symtab): New.
3617 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
3618 (struct pst_map) <pst>: Now a legacy_psymtab.
3619 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
3620 (new_psymtab): Use legacy_psymtab.
3621 * dwarf2read.h (struct dwarf2_psymtab): New.
3622 (struct dwarf2_per_cu_data) <psymtab>: Use it.
3623 * dwarf2read.c (dwarf2_create_include_psymtab)
3624 (dwarf2_build_include_psymtabs, create_type_unit_group)
3625 (create_partial_symtab, process_psymtab_comp_unit_reader)
3626 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
3627 (set_partial_user): Use dwarf2_psymtab.
3628 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
3629 (psymtab_to_symtab_1, process_full_comp_unit)
3630 (process_full_type_unit, dwarf2_ranges_read)
3631 (dwarf2_get_pc_bounds, psymtab_include_file_name)
3632 (dwarf_decode_lines): Use dwarf2_psymtab.
3633 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
3634 (add_address_entry_worker, write_one_signatured_type)
3635 (recursively_count_psymbols, recursively_write_psymbols)
3636 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
3637 (write_debug_names): Likewise.
3638 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
3639 <pst>: Now a legacy_psymtab.
3640 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
3641 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
3642 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
3643 * ctfread.c (struct ctf_psymtab): New.
3644 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
3645 ctf_psymtab.
3646 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
3647 (create_partial_symtab): Return a ctf_psymtab.
3648 (scan_partial_symbols): Update.
3649
c3693a1d
TT
36502020-01-26 Tom Tromey <tom@tromey.com>
3651
3652 * xcoffread.c (xcoff_start_psymtab): Use new.
3653 * psymtab.c (partial_symtab::partial_symtab): New constructor,
3654 renamed from start_psymtab_common.
3655 * psympriv.h (struct partial_symtab): Add new constructor.
3656 (start_psymtab_common): Don't declare.
3657 * mdebugread.c (parse_partial_symbols): Use new.
3658 * dwarf2read.c (create_partial_symtab): Use new.
3659 * dbxread.c (start_psymtab): Use new.
3660 * ctfread.c (create_partial_symtab): Use new.
3661
32caafd0
TT
36622020-01-26 Tom Tromey <tom@tromey.com>
3663
3664 * xcoffread.c (xcoff_end_psymtab): Use new.
3665 * psymtab.c (start_psymtab_common): Use new.
3666 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
3667 Update.
3668 * psympriv.h (struct partial_symtab): Add parameters to
3669 constructor. Don't inline.
3670 (allocate_psymtab): Don't declare.
3671 * mdebugread.c (new_psymtab): Use new.
3672 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
3673 * dbxread.c (dbx_end_psymtab): Use new.
3674
abaa2f23
TT
36752020-01-26 Tom Tromey <tom@tromey.com>
3676
3677 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
3678 allocate_psymtab. Update documentation.
3679 * psymtab.c (psymtab_storage::install_psymtab): Rename from
3680 allocate_psymtab. Do not use new.
3681 (allocate_psymtab): Use new. Update.
3682
6d94535f
TT
36832020-01-26 Tom Tromey <tom@tromey.com>
3684
3685 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3686 * psymtab.c (psym_print_stats): Update.
3687 * psympriv.h (struct partial_symtab) <readin,
3688 psymtabs_addrmap_supported, anonymous>: Now bool.
3689 * mdebugread.c (psymtab_to_symtab_1): Update.
3690 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
3691 (build_type_psymtabs_reader, psymtab_to_symtab_1)
3692 (process_full_comp_unit, process_full_type_unit): Update.
3693 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
3694 * ctfread.c (psymtab_to_symtab): Update.
3695
6f17252b
TT
36962020-01-26 Tom Tromey <tom@tromey.com>
3697
3698 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
3699 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
3700 * psymtab.c (psymtab_storage): Delete psymtabs.
3701 (psymtab_storage::allocate_psymtab): Use new.
3702 (psymtab_storage::discard_psymtab): Use delete.
3703 * psympriv.h (struct partial_symtab): Add constructor and
3704 initializers.
3705
f6f1cebc
TT
37062020-01-26 Tom Tromey <tom@tromey.com>
3707
3708 * machoread.c: Do not include psympriv.h.
3709
e47e48f6
PW
37102020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3711
3712 * NEWS: Mention the new option and the set/show commands.
3713
a2fedca9
PW
37142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3715
3716 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
3717 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
3718 (validate_exec_file): New variables, enums, functions.
3719 (exec_file_locate_attach, print_section_info): Style the filenames.
3720 (_initialize_exec): Install show_exec_file_mismatch_command and
3721 set_exec_file_mismatch_command.
3722 * gdbcore.h (validate_exec_file): Declare.
3723 * infcmd.c (attach_command): Call validate_exec_file.
3724 * remote.c ( remote_target::remote_add_inferior): Likewise.
3725
7ffa82e1
AB
37262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * frame.c (find_frame_sal): Move call to get_next_frame into more
3729 inner scope.
3730 * inline-frame.c (inilne_state) <inline_state>: Update argument
3731 types.
3732 (inilne_state) <skipped_symbol>: Rename to...
3733 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
3734 (skip_inline_frames): Build vector of skipped symbols and use this
3735 to reate the inline_state.
3736 (inline_skipped_symbol): Add a comment and some assertions, fetch
3737 skipped symbol from the list.
3738
3d92a3e3
AB
37392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3740
3741 * buildsym.c (lte_is_less_than): Delete.
3742 (buildsym_compunit::end_symtab_with_blockvector): Create local
3743 lambda function to sort line table entries, and use
3744 std::stable_sort instead of std::sort.
3745 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
3746 markers when looking for a previous line.
3747
94a72be7
AB
37482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * dwarf2read.c (lnp_state_machine::record_line): Include
3751 end_sequence parameter in debug print out. Record the line if we
3752 are at an end_sequence marker even if it's not the start of a
3753 statement.
3754 * symmisc.c (maintenance_print_one_line_table): Print end of
3755 sequence markers with 'END' not '0'.
3756
53af73bf
PA
37572020-01-24 Pedro Alves <palves@redhat.com>
3758
3759 PR gdb/25410
3760 * thread.c (scoped_restore_current_thread::restore): Use
3761 switch_to_inferior_no_thread.
3762 * exec.c: Include "progspace-and-thread.h".
3763 (add_target_sections, remove_target_sections):
3764 scoped_restore_current_pspace_and_thread instead of
3765 scoped_restore_current_thread.
3766 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
3767 and aspace to the inferior before calling clone_program_space.
3768 Remove stale comment.
3769
3050c6f4
CB
37702020-01-24 Christian Biesinger <cbiesinger@google.com>
3771
3772 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
3773 (arm_netbsd_nat_target::fetch_registers): ...this.
3774 (arm_nbsd_nat_target::store_registers): Rename to...
3775 (arm_netbsd_nat_target::store_registers): ...this.
3776
73685c7e
CB
37772020-01-24 Christian Biesinger <cbiesinger@google.com>
3778
3779 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3780 register_t.
3781
89203d40
CB
37822020-01-24 Christian Biesinger <cbiesinger@google.com>
3783
3784 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
3785 Update comment.
3786 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
3787 Likewise.
3788 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
3789 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
3790 the correct replacement (iterate_over_regset_sections).
3791 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
3792 Update comment.
3793
1ba1ac88
AB
37942020-01-24 Graham Markall <graham.markall@embecosm.com>
3795
3796 PR gdb/23718
3797 * gdb/python/python.c (execute_gdb_command): Call
3798 async_enable_stdin in catch block.
3799
f3364a6d
AB
38002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3801
3802 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
3803 SWITCH_THRU_ALL_UIS.
3804
733d0a67
AB
38052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3806
3807 PR tui/9765
3808 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
3809 comment, add extra parameter, and update to store previous symbol
3810 when appropriate.
3811 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
3812 add extra parameter.
3813 * tui/tui-disasm.c (tui_disassemble): Update header comment,
3814 remove unneeded parameter, add try/catch around gdb_print_insn,
3815 rewrite to add items to asm_lines vector.
3816 (tui_find_backward_disassembly_start_address): New function.
3817 (tui_find_disassembly_address): Updated throughout.
3818 (tui_disasm_window::set_contents): Update for changes to
3819 tui_disassemble.
3820 (tui_disasm_window::do_scroll_vertical): No need to adjust the
3821 number of lines to scroll.
3822
b3b3bada
SM
38232020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3824
3825 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
3826 (SECT_OFF_DATA): Likewise.
3827 (SECT_OFF_RODATA): Likewise.
3828 (SECT_OFF_TEXT): Likewise.
3829 (SECT_OFF_BSS): Likewise.
3830 (struct objfile) <text_section_offset, data_section_offset>: New
3831 methods.
3832 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
3833 objfile::text_section_offset.
3834 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3835 * coffread.c (coff_symtab_read): Likewise.
3836 (enter_linenos): Likewise.
3837 (process_coff_symbol): Likewise.
3838 * ctfread.c (get_objfile_text_range): Likewise.
3839 * dtrace-probe.c (dtrace_probe::get_relocated_address):
3840 Use objfile::data_section_offset.
3841 * dwarf2-frame.c (execute_cfa_program): Use
3842 objfile::text_section_offset.
3843 (dwarf2_frame_find_fde): Likewise.
3844 * dwarf2read.c (create_addrmap_from_index): Likewise.
3845 (create_addrmap_from_aranges): Likewise.
3846 (dw2_find_pc_sect_compunit_symtab): Likewise.
3847 (process_psymtab_comp_unit_reader): Likewise.
3848 (add_partial_symbol): Likewise.
3849 (add_partial_subprogram): Likewise.
3850 (process_full_comp_unit): Likewise.
3851 (read_file_scope): Likewise.
3852 (read_func_scope): Likewise.
3853 (read_lexical_block_scope): Likewise.
3854 (read_call_site_scope): Likewise.
3855 (dwarf2_rnglists_process): Likewise.
3856 (dwarf2_ranges_process): Likewise.
3857 (dwarf2_ranges_read): Likewise.
3858 (dwarf_decode_lines_1): Likewise.
3859 (new_symbol): Likewise.
3860 (dwarf2_fetch_die_loc_sect_off): Likewise.
3861 (dwarf2_per_cu_text_offset): Likewise.
3862 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3863 * hppa-tdep.c (read_unwind_info): Likewise.
3864 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
3865 * psympriv.h (struct partial_symtab): Likewise.
3866 * psymtab.c (find_pc_sect_psymtab): Likewise.
3867 * solib-svr4.c (enable_break): Likewise.
3868 * stap-probe.c (relocate_address): Use
3869 objfile::data_section_offset.
3870 * xcoffread.c (enter_line_range): Use
3871 objfile::text_section_offset.
3872 (read_xcoff_symtab): Likewise.
3873
ab53f382
SM
38742020-01-23 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
3877 declaration to narrower scopes.
3878
e7eee665
SM
38792020-01-23 Simon Marchi <simon.marchi@efficios.com>
3880
3881 * darwin-nat.h (struct darwin_exception_msg, enum
3882 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
3883 Move up.
3884 (class darwin_nat_target) <wait_1, check_new_threads,
3885 decode_exception_message, decode_message, stop_inferior,
3886 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
3887 * darwin-nat.c (darwin_check_new_threads): Rename to...
3888 (darwin_nat_target::check_new_threads): ... this.
3889 (darwin_suspend_inferior_it): Remove.
3890 (darwin_decode_exception_message): Rename to...
3891 (darwin_nat_target::decode_exception_message): ... this.
3892 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
3893 (darwin_decode_message): Rename to...
3894 (darwin_nat_target::decode_message): ... this.
3895 (cancel_breakpoint): Rename to...
3896 (darwin_nat_target::cancel_breakpoint): ... this.
3897 (darwin_wait): Rename to...
3898 (darwin_nat_target::wait_1): ... this. Use range-based for loop
3899 instead of iterate_over_inferiors.
3900 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
3901 (darwin_stop_inferior): Rename to...
3902 (darwin_nat_target::stop_inferior): ... this.
3903 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
3904 (darwin_init_thread_list): Rename to...
3905 (darwin_nat_target::init_thread_list): ... this.
3906 (darwin_ptrace_him): Rename to...
3907 (darwin_nat_target::ptrace_him): ... this.
3908 (darwin_nat_target::create_inferior): Pass lambda function to
3909 fork_inferior.
3910 (darwin_nat_target::detach): Call stop_inferior instead of
3911 darwin_stop_inferior.
3912 * fork-inferior.h (fork_inferior): Change init_trace_fun
3913 parameter to gdb::function_view.
3914 * fork-inferior.c (fork_inferior): Likewise.
3915
c162ed3e
HD
39162020-01-23 Hannes Domani <ssbssa@yahoo.de>
3917
3918 * i386-cygwin-tdep.c (core_process_module_section): Update.
3919 * windows-nat.c (struct lm_info_windows): Add text_offset.
3920 (windows_xfer_shared_libraries): Update.
3921 * windows-tdep.c (windows_xfer_shared_library):
3922 Add text_offset_cached argument.
3923 * windows-tdep.h (windows_xfer_shared_library): Update.
3924
a1237872
SM
39252020-01-21 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * gdbarch.sh: Add declaration for _initialize_gdbarch.
3928
b3ee6dd9
SM
39292020-01-21 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
3932 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
3933 replace with range-based for.
3934 (gdbsim_interrupt_inferior): Remove.
3935 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
3936 with a range-based for. Inline code from
3937 gdbsim_interrupt_inferior.
3938
f9fac3c8
SM
39392020-01-21 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * infrun.c (proceed): Fix indentation.
3942
f6474de9
TT
39432020-01-21 Tom Tromey <tromey@adacore.com>
3944
3945 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
3946 * python/python.c (python_extension_ops): Update.
3947 (gdbpy_colorize): New function.
3948 * python/lib/gdb/__init__.py (colorize): New function.
3949 * extension.h (ext_lang_colorize): Declare.
3950 * extension.c (ext_lang_colorize): New function.
3951 * extension-priv.h (struct extension_language_ops) <colorize>: New
3952 member.
3953 * cli/cli-style.c (_initialize_cli_style): Update help text.
3954
f0c702d4
LM
39552020-01-21 Luis Machado <luis.machado@linaro.org>
3956
3957 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
3958 <cond>: Change type to bool.
3959 (aarch64_displaced_step_b_cond): Update cond to use bool type.
3960 (aarch64_displaced_step_cb): Likewise.
3961 (aarch64_displaced_step_tb): Likewise.
3962
1ab139e5
LM
39632020-01-21 Luis Machado <luis.machado@linaro.org>
3964
3965 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
3966 output.
3967
0c271889
LM
39682020-01-21 Luis Machado <luis.machado@linaro.org>
3969
3970 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
3971 <pc_adjust>: Adjust the documentation.
3972 (aarch64_displaced_step_fixup): Check if PC really moved before
3973 adjusting it.
3974
4d89c1c7
TT
39752020-01-19 Tom Tromey <tom@tromey.com>
3976
3977 * disasm.c (~gdb_disassembler): New destructor.
3978 (gdb_buffered_insn_length): Call disassemble_free_target.
3979 * disasm.h (class gdb_disassembler): Declare destructor. Use
3980 DISABLE_COPY_AND_ASSIGN.
3981
c0ab21c2
TT
39822020-01-19 Tom Tromey <tom@tromey.com>
3983
3984 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
3985 (die_reader_func_ftype): Remove.
3986 (cutu_reader): New class.
3987 (dw2_get_file_names_reader): Remove "data" parameter.
3988 (dw2_get_file_names): Use cutu_reader.
3989 (create_debug_type_hash_table): Update.
3990 (read_cutu_die_from_dwo): Update comment.
3991 (lookup_dwo_unit): Add dwo_name parameter.
3992 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
3993 die_reader_func_ftype and data parameters.
3994 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
3995 Remove die_reader_func_ftype and data parameters.
3996 (~cutu_reader): New; from init_cutu_and_read_dies.
3997 (cutu_reader::cutu_reader): Rename from
3998 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
3999 and data parameters.
4000 (init_cutu_and_read_dies_simple): Remove.
4001 (struct process_psymtab_comp_unit_data): Remove.
4002 (process_psymtab_comp_unit_reader): Remove data parameter; add
4003 want_partial_unit and pretend_language parameters.
4004 (process_psymtab_comp_unit): Use cutu_reader.
4005 (build_type_psymtabs_reader): Remove data parameter.
4006 (build_type_psymtabs_1): Use cutu_reader.
4007 (process_skeletonless_type_unit): Likewise.
4008 (load_partial_comp_unit_reader): Remove.
4009 (load_partial_comp_unit): Use cutu_reader.
4010 (load_full_comp_unit_reader): Remove.
4011 (load_full_comp_unit): Use cutu_reader.
4012 (struct create_dwo_cu_data): Remove.
4013 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
4014 dwo_unit parameters.
4015 (create_cus_hash_table): Use cutu_reader.
4016 (struct dwarf2_read_addr_index_data): Remove.
4017 (dwarf2_read_addr_index_reader): Remove.
4018 (dwarf2_read_addr_index): Use cutu_reader.
4019 (read_signatured_type_reader): Remove.
4020 (read_signatured_type): Use cutu_reader.
4021
45bbae5c
TT
40222020-01-19 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
4025 * tui/tui-wingeneral.h (class tui_suppress_output): New.
4026 (tui_wrefresh): Declare.
4027 * tui/tui-wingeneral.c (suppress_output): New global.
4028 (tui_suppress_output, ~tui_suppress_output): New constructor and
4029 destructor.
4030 (tui_wrefresh): New function.
4031 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
4032 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
4033 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
4034 method.
4035 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
4036 tui_wrefresh.
4037 (tui_data_window::no_refresh): New method.
4038 (tui_data_item_window::refresh_window): Call tui_wrefresh.
4039 (tui_reg_command): Use tui_suppress_output
4040 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
4041 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
4042 method.
4043 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
4044
4f13c1c0
TT
40452020-01-19 Tom Tromey <tom@tromey.com>
4046
4047 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4048 Handle case where symtab is null.
4049
fa47e446
SM
40502020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
4051
4052 * linux-fork.c (one_fork_p): Simplify.
4053
26f42329
SM
40542020-01-17 Simon Marchi <simon.marchi@efficios.com>
4055
4056 * top.c (struct qt_args): Remove.
4057 (kill_or_detach): Change return type to void, replace `void *`
4058 parameter with a proper one.
4059 (print_inferior_quit_action): Likewise.
4060 (quit_confirm): Use range-based for loop to iterate over inferiors.
4061 (quit_force): Likewise.
4062
a9ac81b1
SM
40632020-01-17 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
4066 `void *` parameter with proper parameters.
4067 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
4068 (print_one_inferior): Change return type to void, replace `void *`
4069 parameter with proper parameters.
4070 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
4071 inferiors.
4072 (get_other_inferior): Remove.
4073 (mi_cmd_remove_inferior): Use range-based loop to iterate over
4074 inferiors.
4075
788eca49
SM
40762020-01-17 Simon Marchi <simon.marchi@efficios.com>
4077
4078 * mi/mi-interp.c (report_initial_inferior): Remove.
4079 (mi_interp::init): Use range-based for to iterate over inferiors.
4080
d9bc85b6
SM
40812020-01-17 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * python/py-inferior.c (build_inferior_list): Remove.
4084 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
4085
40c94099
CB
40862020-01-16 Christian Biesinger <cbiesinger@google.com>
4087
4088 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
4089 (btrace_stitch_trace): Likewise.
4090 * charset.c (intermediate_encoding): Likewise (vaild).
4091 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
4092 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
4093 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
4094
e0cdfe3c
HD
40952020-01-16 Hannes Domani <ssbssa@yahoo.de>
4096
4097 * windows-tdep.c (windows_get_tlb_type):
4098 Add rtl_user_process_parameters type.
4099
790f1718
PA
41002020-01-16 Pedro Alves <palves@redhat.com>
4101 Norbert Lange <nolange79@gmail.com>
4102
4103 PR build/24805
4104 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
4105 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
4106 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
4107 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
4108 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
4109 (ps_plog): Redeclare exported functions with default visibility.
4110
3112ed97
NA
41112020-01-16 Nitika Achra <Nitika.Achra@amd.com>
4112
4113 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
4114 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
4115
8dc3273e
SM
41162020-01-15 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * infcmd.c (post_create_inferior): Use get_thread_regcache
4119 instead of get_current_regcache.
4120
ff47f4f0
TT
41212020-01-14 Tom Tromey <tom@tromey.com>
4122
4123 PR symtab/12535:
4124 * python/python.c (gdbpy_decode_line): Treat empty string the same
4125 as no argument.
4126
975f45b7
TT
41272020-01-14 Tom Tromey <tom@tromey.com>
4128
4129 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
4130
25e57356
TT
41312020-01-14 Tom Tromey <tom@tromey.com>
4132
4133 * nat/linux-btrace.c: Don't include <config.h>.
4134 * nat/linux-ptrace.c: Don't include <config.h>.
4135 * nat/x86-linux-dregs.c: Don't include <config.h>.
4136
05ea2a05
TT
41372020-01-14 Tom Tromey <tom@tromey.com>
4138
4139 * configure: Rebuild.
4140 * configure.ac: Move many checks to ../gdbsupport/common.m4.
4141
01027315
TT
41422020-01-14 Tom Tromey <tom@tromey.com>
4143
4144 * nat/x86-linux-dregs.c: Include configh.h.
4145 * nat/linux-ptrace.c: Include configh.h.
4146 * nat/linux-btrace.c: Include configh.h.
4147 * defs.h: Include config.h, bfd.h.
4148 * configure.ac: Don't source common.host.
4149 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
4150 * configure: Rebuild.
4151 * acinclude.m4: Update path.
4152 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
4153 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
4154 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
4155 (CLIBS): Add LIBSUPPORT.
4156 (CDEPS): Likewise.
4157 (COMMON_SFILES): Remove gdbsupport files.
4158 (HFILES_NO_SRCDIR): Likewise.
4159 (stamp-version): Update path to create-version.sh.
4160 (ALLDEPFILES): Remove gdbsupport files.
4161
b2ceabe8
TT
41622020-01-14 Tom Tromey <tom@tromey.com>
4163
4164 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
4165 USE_WIN32API when needed.
4166 * configure.ac (USE_WIN32API): Don't define.
4167 (WIN32LIBS): Use WIN32APILIBS.
4168 * configure: Rebuild.
4169
25c51f71
TT
41702020-01-14 Tom Tromey <tom@tromey.com>
4171
4172 * configure: Rebuild.
4173 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
4174
717c684d
BE
41752020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4176
4177 * skip.c (skip_function_command): Make skip w/o arguments use the
4178 name of the inlined function if pc is inside any inlined function.
4179
7da6a5b9
LM
41802020-01-14 Luis Machado <luis.machado@linaro.org>
4181
4182 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
4183 * infrun.c (resume_1): Likewise.
4184 (handle_inferior_event): Remove stale comment.
4185 * linux-nat.c (linux_nat_target::resume): Update comments.
4186 (save_stop_reason): Likewise.
4187 (linux_nat_filter_event): Likewise.
4188 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
4189
44e4c775
AB
41902020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4191
4192 * elfread.c (record_minimal_symbol): Set section index to 0 for
4193 non-allocatable sections.
4194
18a8505e
AT
4195
41962020-01-13 Ali Tamur <tamur@google.com>
4197
4198 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
4199 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
4200 to gdb::optional. Update comments.
4201 (dwo_file): Update comments.
4202 (read_attribute): Update API to take an additional out parameter,
4203 need_reprocess. This is used to mark attributes that need other
4204 attributes (e.g. str_offsets_base) for correct computation which may not
4205 have been read yet.
4206 (read_attribute_reprocess): New function declaration.
4207 (read_addr_index): Likewise.
4208 (read_dwo_str_index): Likewise.
4209 (read_stub_str_index): Likewise.
4210 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
4211 (lookup_addr_base): New function definition.
4212 (lookup_ranges_base): Likewise.
4213 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
4214 lookup_ranges_base.
4215 (init_cutu_and_read_dies): Update comments.
4216 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
4217 unit. This is used to inherit parent's str_offsets_base and addr_base.
4218 Update comments.
4219 (init_cutu_and_read_dies_simple): Reflect API changes.
4220 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
4221 (create_cus_hash_table): Change API to take parent compile unit.
4222 Reflect API changes.
4223 (open_and_init_dwo_file): Reflect API changes.
4224 (dwarf2_get_pc_bounds): Update comments.
4225 (dwarf2_record_block_ranges): Likewise.
4226 (read_full_die_1): Change implementation to reprocess attributes that
4227 need str_offsets_base and addr_base.
4228 (partial_die_info::read): Likewise.
4229 (read_attribute_reprocess): New function definition.
4230 (read_attribute_value): Change API to take an additional out parameter,
4231 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
4232 when a non-dwo compile unit has index based attributes.
4233 (read_attribute): Reflect API changes.
4234 (read_addr_index_1): Reflect API changes. Update comments.
4235 (dwarf2_read_addr_index_data): Reflect API changes.
4236 (dwarf2_read_addr_index): Likewise.
4237 (read_str_index): Change API and implementation. This becomes a helper
4238 to be used by the new string index related methods. Update error
4239 message and comments.
4240 (read_dwo_str_index): New function definition.
4241 (read_stub_str_index): Likewise.
4242 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
4243 * symfile.h (dwarf2_debug_sections): Likewise.
4244 * xcoffread.c (dwarf2_debug_sections): Likewise.
4245
0cac9354
SM
42462020-01-13 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * gdbcore.h (struct core_fns) <core_read_registers>: Change
4249 core_reg_sect type to gdb_byte *.
4250 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
4251 * cris-tdep.c (fetch_core_registers): Likewise.
4252 * corelow.c (core_target::get_core_register_section): Change
4253 type of `contents` to gdb::byte_vector.
4254
9a6d629c
AB
42552020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * tui/tui-wingeneral.c (box_win): Position the title in the center
4258 of the border.
4259
d8b2f9e3
SM
42602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4261
4262 * corelow.c (core_target::get_core_register_section): Use
4263 std::vector instead of alloca.
4264
bb564c58
SM
42652020-01-13 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * warning.m4: Add -Wmissing-declarations to build_warnings.
4268 * configure: Re-generate.
4269
6b366111
SM
42702020-01-13 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * python/python.c (init__gdb_module): Add declaration.
4273
6c265988
SM
42742020-01-13 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
4277 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
4278 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
4279 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
4280 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
4281 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
4282 * ada-exp.y (_initialize_ada_exp): Add declaration.
4283 * ada-lang.c (_initialize_ada_language): Add declaration.
4284 * ada-tasks.c (_initialize_tasks): Add declaration.
4285 * agent.c (_initialize_agent): Add declaration.
4286 * aix-thread.c (_initialize_aix_thread): Add declaration.
4287 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
4288 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
4289 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
4290 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
4291 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
4292 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4293 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
4294 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
4295 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
4296 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
4297 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
4298 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
4299 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
4300 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
4301 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
4302 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
4303 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
4304 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
4305 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
4306 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
4307 * annotate.c (_initialize_annotate): Add declaration.
4308 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
4309 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
4310 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
4311 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
4312 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
4313 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
4314 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
4315 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
4316 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
4317 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
4318 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
4319 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
4320 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4321 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
4322 * auto-load.c (_initialize_auto_load): Add declaration.
4323 * auxv.c (_initialize_auxv): Add declaration.
4324 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
4325 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
4326 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
4327 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
4328 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
4329 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
4330 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
4331 * breakpoint.c (_initialize_breakpoint): Add declaration.
4332 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
4333 * btrace.c (_initialize_btrace): Add declaration.
4334 * charset.c (_initialize_charset): Add declaration.
4335 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
4336 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4337 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4338 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
4339 * cli/cli-script.c (_initialize_cli_script): Add declaration.
4340 * cli/cli-style.c (_initialize_cli_style): Add declaration.
4341 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
4342 * coffread.c (_initialize_coffread): Add declaration.
4343 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
4344 * compile/compile.c (_initialize_compile): Add declaration.
4345 * complaints.c (_initialize_complaints): Add declaration.
4346 * completer.c (_initialize_completer): Add declaration.
4347 * copying.c (_initialize_copying): Add declaration.
4348 * corefile.c (_initialize_core): Add declaration.
4349 * corelow.c (_initialize_corelow): Add declaration.
4350 * cp-abi.c (_initialize_cp_abi): Add declaration.
4351 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
4352 * cp-support.c (_initialize_cp_support): Add declaration.
4353 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
4354 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
4355 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
4356 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
4357 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
4358 * ctfread.c (_initialize_ctfread): Add declaration.
4359 * d-lang.c (_initialize_d_language): Add declaration.
4360 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
4361 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
4362 * dbxread.c (_initialize_dbxread): Add declaration.
4363 * dcache.c (_initialize_dcache): Add declaration.
4364 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
4365 * disasm.c (_initialize_disasm): Add declaration.
4366 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
4367 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
4368 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
4369 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
4370 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
4371 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
4372 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
4373 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
4374 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
4375 * elfread.c (_initialize_elfread): Add declaration.
4376 * exec.c (_initialize_exec): Add declaration.
4377 * extension.c (_initialize_extension): Add declaration.
4378 * f-lang.c (_initialize_f_language): Add declaration.
4379 * f-valprint.c (_initialize_f_valprint): Add declaration.
4380 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
4381 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
4382 * filesystem.c (_initialize_filesystem): Add declaration.
4383 * findcmd.c (_initialize_mem_search): Add declaration.
4384 * findvar.c (_initialize_findvar): Add declaration.
4385 * fork-child.c (_initialize_fork_child): Add declaration.
4386 * frame-base.c (_initialize_frame_base): Add declaration.
4387 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4388 * frame.c (_initialize_frame): Add declaration.
4389 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
4390 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
4391 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
4392 * gcore.c (_initialize_gcore): Add declaration.
4393 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
4394 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
4395 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
4396 * gdbarch.c (_initialize_gdbarch): Add declaration.
4397 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
4398 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
4399 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
4400 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
4401 * go-lang.c (_initialize_go_language): Add declaration.
4402 * go32-nat.c (_initialize_go32_nat): Add declaration.
4403 * guile/guile.c (_initialize_guile): Add declaration.
4404 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4405 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
4406 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
4407 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
4408 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
4409 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
4410 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
4411 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
4412 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
4413 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
4414 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
4415 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
4416 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
4417 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
4418 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
4419 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
4420 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
4421 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
4422 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
4423 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
4424 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
4425 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
4426 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
4427 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
4428 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
4429 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
4430 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
4431 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
4432 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
4433 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
4434 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
4435 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
4436 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
4437 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
4438 * infcall.c (_initialize_infcall): Add declaration.
4439 * infcmd.c (_initialize_infcmd): Add declaration.
4440 * inflow.c (_initialize_inflow): Add declaration.
4441 * infrun.c (_initialize_infrun): Add declaration.
4442 * interps.c (_initialize_interpreter): Add declaration.
4443 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
4444 * jit.c (_initialize_jit): Add declaration.
4445 * language.c (_initialize_language): Add declaration.
4446 * linux-fork.c (_initialize_linux_fork): Add declaration.
4447 * linux-nat.c (_initialize_linux_nat): Add declaration.
4448 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
4449 * linux-thread-db.c (_initialize_thread_db): Add declaration.
4450 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
4451 * m2-lang.c (_initialize_m2_language): Add declaration.
4452 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
4453 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
4454 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
4455 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
4456 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4457 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
4458 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
4459 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
4460 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
4461 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4462 * machoread.c (_initialize_machoread): Add declaration.
4463 * macrocmd.c (_initialize_macrocmd): Add declaration.
4464 * macroscope.c (_initialize_macroscope): Add declaration.
4465 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
4466 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
4467 * maint.c (_initialize_maint_cmds): Add declaration.
4468 * mdebugread.c (_initialize_mdebugread): Add declaration.
4469 * memattr.c (_initialize_mem): Add declaration.
4470 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
4471 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
4472 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
4473 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
4474 * mi/mi-main.c (_initialize_mi_main): Add declaration.
4475 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
4476 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
4477 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
4478 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
4479 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
4480 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
4481 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
4482 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
4483 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
4484 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4485 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
4486 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
4487 * mipsread.c (_initialize_mipsread): Add declaration.
4488 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
4489 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
4490 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
4491 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
4492 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
4493 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
4494 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
4495 * nto-procfs.c (_initialize_procfs): Add declaration.
4496 * objc-lang.c (_initialize_objc_language): Add declaration.
4497 * observable.c (_initialize_observer): Add declaration.
4498 * opencl-lang.c (_initialize_opencl_language): Add declaration.
4499 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
4500 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
4501 * osabi.c (_initialize_gdb_osabi): Add declaration.
4502 * osdata.c (_initialize_osdata): Add declaration.
4503 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4504 * parse.c (_initialize_parse): Add declaration.
4505 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
4506 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
4507 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
4508 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
4509 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
4510 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
4511 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
4512 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
4513 * printcmd.c (_initialize_printcmd): Add declaration.
4514 * probe.c (_initialize_probe): Add declaration.
4515 * proc-api.c (_initialize_proc_api): Add declaration.
4516 * proc-events.c (_initialize_proc_events): Add declaration.
4517 * proc-service.c (_initialize_proc_service): Add declaration.
4518 * procfs.c (_initialize_procfs): Add declaration.
4519 * producer.c (_initialize_producer): Add declaration.
4520 * psymtab.c (_initialize_psymtab): Add declaration.
4521 * python/python.c (_initialize_python): Add declaration.
4522 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
4523 * record-btrace.c (_initialize_record_btrace): Add declaration.
4524 * record-full.c (_initialize_record_full): Add declaration.
4525 * record.c (_initialize_record): Add declaration.
4526 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
4527 * regcache.c (_initialize_regcache): Add declaration.
4528 * reggroups.c (_initialize_reggroup): Add declaration.
4529 * remote-notif.c (_initialize_notif): Add declaration.
4530 * remote-sim.c (_initialize_remote_sim): Add declaration.
4531 * remote.c (_initialize_remote): Add declaration.
4532 * reverse.c (_initialize_reverse): Add declaration.
4533 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
4534 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
4535 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
4536 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
4537 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
4538 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
4539 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
4540 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
4541 Add declaration.
4542 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
4543 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
4544 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
4545 * rust-exp.y (_initialize_rust_exp): Add declaration.
4546 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
4547 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
4548 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
4549 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
4550 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
4551 * score-tdep.c (_initialize_score_tdep): Add declaration.
4552 * ser-go32.c (_initialize_ser_dos): Add declaration.
4553 * ser-mingw.c (_initialize_ser_windows): Add declaration.
4554 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
4555 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
4556 * ser-uds.c (_initialize_ser_socket): Add declaration.
4557 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
4558 * serial.c (_initialize_serial): Add declaration.
4559 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
4560 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
4561 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
4562 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
4563 * skip.c (_initialize_step_skip): Add declaration.
4564 * sol-thread.c (_initialize_sol_thread): Add declaration.
4565 * solib-aix.c (_initialize_solib_aix): Add declaration.
4566 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
4567 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
4568 * solib-frv.c (_initialize_frv_solib): Add declaration.
4569 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4570 * solib-target.c (_initialize_solib_target): Add declaration.
4571 * solib.c (_initialize_solib): Add declaration.
4572 * source-cache.c (_initialize_source_cache): Add declaration.
4573 * source.c (_initialize_source): Add declaration.
4574 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
4575 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
4576 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
4577 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
4578 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
4579 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
4580 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
4581 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
4582 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
4583 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
4584 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
4585 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
4586 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
4587 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
4588 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
4589 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
4590 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
4591 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
4592 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
4593 * stabsread.c (_initialize_stabsread): Add declaration.
4594 * stack.c (_initialize_stack): Add declaration.
4595 * stap-probe.c (_initialize_stap_probe): Add declaration.
4596 * std-regs.c (_initialize_frame_reg): Add declaration.
4597 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
4598 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
4599 * symfile.c (_initialize_symfile): Add declaration.
4600 * symmisc.c (_initialize_symmisc): Add declaration.
4601 * symtab.c (_initialize_symtab): Add declaration.
4602 * target.c (_initialize_target): Add declaration.
4603 * target-connection.c (_initialize_target_connection): Add
4604 declaration.
4605 * target-dcache.c (_initialize_target_dcache): Add declaration.
4606 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
4607 * thread.c (_initialize_thread): Add declaration.
4608 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
4609 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
4610 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
4611 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
4612 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
4613 * tracectf.c (_initialize_ctf): Add declaration.
4614 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
4615 * tracefile.c (_initialize_tracefile): Add declaration.
4616 * tracepoint.c (_initialize_tracepoint): Add declaration.
4617 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
4618 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
4619 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
4620 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
4621 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
4622 * tui/tui-win.c (_initialize_tui_win): Add declaration.
4623 * tui/tui.c (_initialize_tui): Add declaration.
4624 * typeprint.c (_initialize_typeprint): Add declaration.
4625 * ui-style.c (_initialize_ui_style): Add declaration.
4626 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
4627 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
4628 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
4629 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
4630 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
4631 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
4632 * unittests/filtered_iterator-selftests.c
4633 (_initialize_filtered_iterator_selftests): Add declaration.
4634 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
4635 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
4636 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
4637 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
4638 * unittests/main-thread-selftests.c
4639 (_initialize_main_thread_selftests): Add declaration.
4640 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
4641 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
4642 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
4643 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
4644 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
4645 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
4646 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
4647 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
4648 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
4649 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
4650 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
4651 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
4652 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
4653 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
4654 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
4655 declaration.
4656 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
4657 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
4658 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
4659 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
4660 * user-regs.c (_initialize_user_regs): Add declaration.
4661 * utils.c (_initialize_utils): Add declaration.
4662 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
4663 * valops.c (_initialize_valops): Add declaration.
4664 * valprint.c (_initialize_valprint): Add declaration.
4665 * value.c (_initialize_values): Add declaration.
4666 * varobj.c (_initialize_varobj): Add declaration.
4667 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
4668 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
4669 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4670 * windows-nat.c (_initialize_windows_nat): Add declaration.
4671 (_initialize_check_for_gdb_ini): Add declaration.
4672 (_initialize_loadable): Add declaration.
4673 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
4674 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
4675 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
4676 * xcoffread.c (_initialize_xcoffread): Add declaration.
4677 * xml-support.c (_initialize_xml_support): Add declaration.
4678 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
4679 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
4680 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
4681 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
4682
e2de1eec
SM
46832020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4684
4685 * regformats/regdat.sh: Generate declaration for init function.
4686
e0037b4c
SM
46872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4688
4689 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
4690 up.
4691 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
4692 close_one_inferior>: New methods.
4693 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
4694 pass down target to find_inferior_pid.
4695 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
4696 Pass down target to find_inferior_ptid.
4697 (gdbsim_target::create_inferior): Pass down target to
4698 add_thread_silent.
4699 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
4700 target down to find_inferior_ptid and switch_to_thread.
4701 (gdbsim_target::close): Update to call close_one_inferior.
4702 (struct resume_data): Remove.
4703 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
4704 directly, rather than through a void pointer.
4705 (gdbsim_target::resume): Update to call resume_one_inferior.
4706
58920b5b
SM
47072020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4708
4709 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
4710
4ec89149
PA
47112020-01-12 Pedro Alves <palves@redhat.com>
4712
4713 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
4714 directly for the current inferior instead of
4715 discard_all_inferiors.
4716 (discard_all_inferiors): Delete.
4717
7c392d1d
TT
47182020-01-11 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-wingeneral.c (box_win): Check cli_styling.
4721 * tui/tui-winsource.c (tui_source_window_base::refill): Use
4722 deprecated_safe_get_selected_frame.
4723
d9ebdab7
TBA
47242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4725
4726 * inferior.c (print_inferior): Switch inferior before printing it.
4727
f3c469b9
PA
47282020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
4729 Pedro Alves <palves@redhat.com>
4730
4731 * progspace-and-thread.c (switch_to_program_space_and_thread):
4732 Assert there's an inferior for PSPACE. Use
4733 switch_to_inferior_no_thread to switch the inferior too.
4734 * progspace.c (program_space::~program_space): Call
4735 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
4736 (program_space::free_all_objfiles): Don't call clear_symtab_users
4737 here.
4738 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
4739
65c574f6
PA
47402020-01-10 Pedro Alves <palves@redhat.com>
4741
4742 * NEWS: Mention multi-target debugging, "info connections", and
4743 "add-inferior -no-connection".
4744
2f4fcf00
PA
47452020-01-10 Pedro Alves <palves@redhat.com>
4746
4747 * infrun.c: Include "target-connection.h".
4748 (check_multi_target_resumption): New.
4749 (proceed): Call it.
4750 * target-connection.c (make_target_connection_string): Make
4751 extern.
4752 * target-connection.h (make_target_connection_string): Declare.
4753
121b3efd
PA
47542020-01-10 Pedro Alves <palves@redhat.com>
4755
4756 * Makefile.in (COMMON_SFILES): Add target-connection.c.
4757 * inferior.c (uiout_field_connection): New function.
4758 (print_inferior): Add new "connection-id" column.
4759 (add_inferior_command): Show connection number/string of added
4760 inferior.
4761 * process-stratum-target.h
4762 (process_stratum_target::connection_string): New virtual method.
4763 (process_stratum_target::connection_number): New field.
4764 * remote.c (remote_target::connection_string): New override.
4765 * target-connection.c: New file.
4766 * target-connection.h: New file.
4767 * target.c (decref_target): Remove process_stratum targets from
4768 the connection list.
4769 (target_stack::push): Add process_stratum targets to the
4770 connection list.
4771
4f837581
PA
47722020-01-10 Pedro Alves <palves@redhat.com>
4773
4774 Revert:
4775 2016-04-12 Pedro Alves <palves@redhat.com>
4776 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4777 Remove references to name.
4778 * serial.h (struct serial) <name>: Delete.
4779
f4ec508e
PA
47802020-01-10 Pedro Alves <palves@redhat.com>
4781
4782 * gdbarch-selftests.c (register_to_value_test): Remove "target
4783 already pushed" check.
4784
5b6d1e4f
PA
47852020-01-10 Pedro Alves <palves@redhat.com>
4786 John Baldwin <jhb@FreeBSD.org>
4787
4788 * aarch64-linux-nat.c
4789 (aarch64_linux_nat_target::thread_architecture): Adjust.
4790 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
4791 (task_command_1): Likewise.
4792 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
4793 (aix_thread_target::wait, aix_thread_target::fetch_registers)
4794 (aix_thread_target::store_registers)
4795 (aix_thread_target::thread_alive): Adjust.
4796 * amd64-fbsd-tdep.c: Include "inferior.h".
4797 (amd64fbsd_get_thread_local_address): Pass down target.
4798 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
4799 thread's gdbarch instead of target_gdbarch.
4800 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
4801 get_last_target_status.
4802 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4803 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
4804 inferiors.
4805 (update_inserted_breakpoint_locations): Skip if inferiors with no
4806 execution.
4807 (update_global_location_list): When handling moribund locations,
4808 find representative inferior for location's pspace, and use thread
4809 count of its process_stratum target.
4810 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
4811 * bsd-uthread.c (bsd_uthread_target::wait): Use
4812 as_process_stratum_target and adjust thread_change_ptid and
4813 add_thread calls.
4814 (bsd_uthread_target::update_thread_list): Use
4815 as_process_stratum_target and adjust find_thread_ptid,
4816 thread_change_ptid and add_thread calls.
4817 * btrace.c (maint_btrace_packet_history_cmd): Adjust
4818 find_thread_ptid call.
4819 * corelow.c (add_to_thread_list): Adjust add_thread call.
4820 (core_target_open): Adjust add_thread_silent and thread_count
4821 calls.
4822 (core_target::pid_to_str): Adjust find_inferior_ptid call.
4823 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
4824 * event-top.c (async_disconnect): Pop targets from all inferiors.
4825 * exec.c (add_target_sections): Push exec target on all inferiors
4826 sharing the program space.
4827 (remove_target_sections): Remove the exec target from all
4828 inferiors sharing the program space.
4829 (exec_on_vfork): New.
4830 * exec.h (exec_on_vfork): Declare.
4831 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
4832 Pass it down.
4833 (fbsd_nat_target::update_thread_list): Adjust.
4834 (fbsd_nat_target::resume): Adjust.
4835 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
4836 down.
4837 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
4838 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
4839 get_thread_arch_regcache call.
4840 * fork-child.c (gdb_startup_inferior): Pass target down to
4841 startup_inferior and set_executing.
4842 * gdbthread.h (struct process_stratum_target): Forward declare.
4843 (add_thread, add_thread_silent, add_thread_with_info)
4844 (in_thread_list): Add process_stratum_target parameter.
4845 (find_thread_ptid(inferior*, ptid_t)): New overload.
4846 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
4847 parameter.
4848 (all_threads()): Delete overload.
4849 (all_threads, all_non_exited_threads): Add process_stratum_target
4850 parameter.
4851 (all_threads_safe): Use brace initialization.
4852 (thread_count): Add process_stratum_target parameter.
4853 (set_resumed, set_running, set_stop_requested, set_executing)
4854 (threads_are_executing, finish_thread_state): Add
4855 process_stratum_target parameter.
4856 (switch_to_thread): Use is_current_thread.
4857 * i386-fbsd-tdep.c: Include "inferior.h".
4858 (i386fbsd_get_thread_local_address): Pass down target.
4859 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
4860 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
4861 have_inferiors check.
4862 * inf-ptrace.c (inf_ptrace_target::create_inferior)
4863 (inf_ptrace_target::attach): Adjust.
4864 * infcall.c (run_inferior_call): Adjust.
4865 * infcmd.c (run_command_1): Pass target to
4866 scoped_finish_thread_state.
4867 (proceed_thread_callback): Skip inferiors with no execution.
4868 (continue_command): Rename 'all_threads' local to avoid hiding
4869 'all_threads' function. Adjust get_last_target_status call.
4870 (prepare_one_step): Adjust set_running call.
4871 (signal_command): Use user_visible_resume_target. Compare thread
4872 pointers instead of inferior_ptid.
4873 (info_program_command): Adjust to pass down target.
4874 (attach_command): Mark target's 'thread_executing' flag.
4875 (stop_current_target_threads_ns): New, factored out from ...
4876 (interrupt_target_1): ... this. Switch inferior before making
4877 target calls.
4878 * inferior-iter.h
4879 (struct all_inferiors_iterator, struct all_inferiors_range)
4880 (struct all_inferiors_safe_range)
4881 (struct all_non_exited_inferiors_range): Filter on
4882 process_stratum_target too. Remove explicit.
4883 * inferior.c (inferior::inferior): Push dummy target on target
4884 stack.
4885 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
4886 Add process_stratum_target parameter, and pass it down.
4887 (have_live_inferiors): Adjust.
4888 (switch_to_inferior_and_push_target): New.
4889 (add_inferior_command, clone_inferior_command): Handle
4890 "-no-connection" parameter. Use
4891 switch_to_inferior_and_push_target.
4892 (_initialize_inferior): Mention "-no-connection" option in
4893 the help of "add-inferior" and "clone-inferior" commands.
4894 * inferior.h: Include "process-stratum-target.h".
4895 (interrupt_target_1): Use bool.
4896 (struct inferior) <push_target, unpush_target, target_is_pushed,
4897 find_target_beneath, top_target, process_target, target_at,
4898 m_stack>: New.
4899 (discard_all_inferiors): Delete.
4900 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
4901 (all_inferiors, all_non_exited_inferiors): Add
4902 process_stratum_target parameter.
4903 * infrun.c: Include "gdb_select.h" and <unordered_map>.
4904 (target_last_proc_target): New global.
4905 (follow_fork_inferior): Push target on new inferior. Pass target
4906 to add_thread_silent. Call exec_on_vfork. Handle target's
4907 reference count.
4908 (follow_fork): Adjust get_last_target_status call. Also consider
4909 target.
4910 (follow_exec): Push target on new inferior.
4911 (struct execution_control_state) <target>: New field.
4912 (user_visible_resume_target): New.
4913 (do_target_resume): Call target_async.
4914 (resume_1): Set target's threads_executing flag. Consider resume
4915 target.
4916 (commit_resume_all_targets): New.
4917 (proceed): Also consider resume target. Skip threads of inferiors
4918 with no execution. Commit resumtion in all targets.
4919 (start_remote): Pass current inferior to wait_for_inferior.
4920 (infrun_thread_stop_requested): Consider target as well. Pass
4921 thread_info pointer to clear_inline_frame_state instead of ptid.
4922 (infrun_thread_thread_exit): Consider target as well.
4923 (random_pending_event_thread): New inferior parameter. Use it.
4924 (do_target_wait): Rename to ...
4925 (do_target_wait_1): ... this. Add inferior parameter, and pass it
4926 down.
4927 (threads_are_resumed_pending_p, do_target_wait): New.
4928 (prepare_for_detach): Adjust calls.
4929 (wait_for_inferior): New inferior parameter. Handle it. Use
4930 do_target_wait_1 instead of do_target_wait.
4931 (fetch_inferior_event): Adjust. Switch to representative
4932 inferior. Pass target down.
4933 (set_last_target_status): Add process_stratum_target parameter.
4934 Save target in global.
4935 (get_last_target_status): Add process_stratum_target parameter and
4936 handle it.
4937 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
4938 (context_switch): Check inferior_ptid == null_ptid before calling
4939 inferior_thread().
4940 (get_inferior_stop_soon): Pass down target.
4941 (wait_one): Rename to ...
4942 (poll_one_curr_target): ... this.
4943 (struct wait_one_event): New.
4944 (wait_one): New.
4945 (stop_all_threads): Adjust.
4946 (handle_no_resumed, handle_inferior_event): Adjust to consider the
4947 event's target.
4948 (switch_back_to_stepped_thread): Also consider target.
4949 (print_stop_event): Update.
4950 (normal_stop): Update. Also consider the resume target.
4951 * infrun.h (wait_for_inferior): Remove declaration.
4952 (user_visible_resume_target): New declaration.
4953 (get_last_target_status, set_last_target_status): New
4954 process_stratum_target parameter.
4955 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4956 process_stratum_target parameter, and use it.
4957 (clear_inline_frame_state (thread_info*)): New.
4958 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4959 process_stratum_target parameter.
4960 (clear_inline_frame_state (thread_info*)): Declare.
4961 * linux-fork.c (delete_checkpoint_command): Pass target down to
4962 find_thread_ptid.
4963 (checkpoint_command): Adjust.
4964 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
4965 instead of just tweaking inferior_ptid.
4966 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
4967 (exit_lwp): Pass target down to find_thread_ptid.
4968 (attach_proc_task_lwp_callback): Pass target down to
4969 add_thread/set_running/set_executing.
4970 (linux_nat_target::attach): Pass target down to
4971 thread_change_ptid.
4972 (get_detach_signal): Pass target down to find_thread_ptid.
4973 Consider last target status's target.
4974 (linux_resume_one_lwp_throw, resume_lwp)
4975 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
4976 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
4977 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
4978 (linux_nat_target::async_wait_fd): New.
4979 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
4980 target down.
4981 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
4982 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
4983 * linux-thread-db.c (struct thread_db_info::process_target): New
4984 field.
4985 (add_thread_db_info): Save target.
4986 (get_thread_db_info): New process_stratum_target parameter. Also
4987 match target.
4988 (delete_thread_db_info): New process_stratum_target parameter.
4989 Also match target.
4990 (thread_from_lwp): Adjust to pass down target.
4991 (thread_db_notice_clone): Pass down target.
4992 (check_thread_db_callback): Pass down target.
4993 (try_thread_db_load_1): Always push the thread_db target.
4994 (try_thread_db_load, record_thread): Pass target down.
4995 (thread_db_target::detach): Pass target down. Always unpush the
4996 thread_db target.
4997 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
4998 target down. Always unpush the thread_db target.
4999 (find_new_threads_callback, thread_db_find_new_threads_2)
5000 (thread_db_target::update_thread_list): Pass target down.
5001 (thread_db_target::pid_to_str): Pass current inferior down.
5002 (thread_db_target::get_thread_local_address): Pass target down.
5003 (thread_db_target::resume, maintenance_check_libthread_db): Pass
5004 target down.
5005 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
5006 * procfs.c (procfs_target::procfs_init_inferior): Declare.
5007 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
5008 (procfs_init_inferior): Rename to ...
5009 (procfs_target::procfs_init_inferior): ... this and adjust.
5010 (procfs_target::create_inferior, procfs_notice_thread)
5011 (procfs_do_thread_registers): Adjust.
5012 * ppc-fbsd-tdep.c: Include "inferior.h".
5013 (ppcfbsd_get_thread_local_address): Pass down target.
5014 * proc-service.c (ps_xfer_memory): Switch current inferior and
5015 program space as well.
5016 (get_ps_regcache): Pass target down.
5017 * process-stratum-target.c
5018 (process_stratum_target::thread_address_space)
5019 (process_stratum_target::thread_architecture): Pass target down.
5020 * process-stratum-target.h
5021 (process_stratum_target::threads_executing): New field.
5022 (as_process_stratum_target): New.
5023 * ravenscar-thread.c
5024 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
5025 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
5026 down.
5027 * record-btrace.c (record_btrace_target::info_record): Adjust.
5028 (record_btrace_target::record_method)
5029 (record_btrace_target::record_is_replaying)
5030 (record_btrace_target::fetch_registers)
5031 (get_thread_current_frame_id, record_btrace_target::resume)
5032 (record_btrace_target::wait, record_btrace_target::stop): Pass
5033 target down.
5034 * record-full.c (record_full_wait_1): Switch to event thread.
5035 Pass target down.
5036 * regcache.c (regcache::regcache)
5037 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
5038 process_stratum_target parameter and handle it.
5039 (current_thread_target): New global.
5040 (get_thread_regcache): Add process_stratum_target parameter and
5041 handle it. Switch inferior before calling target method.
5042 (get_thread_regcache): Pass target down.
5043 (get_thread_regcache_for_ptid): Pass target down.
5044 (registers_changed_ptid): Add process_stratum_target parameter and
5045 handle it.
5046 (registers_changed_thread, registers_changed): Pass target down.
5047 (test_get_thread_arch_aspace_regcache): New.
5048 (current_regcache_test): Define a couple local test_target_ops
5049 instances and use them for testing.
5050 (readwrite_regcache): Pass process_stratum_target parameter.
5051 (cooked_read_test, cooked_write_test): Pass mock_target down.
5052 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
5053 (get_thread_arch_aspace_regcache): Add process_stratum_target
5054 parameter.
5055 (regcache::target): New method.
5056 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
5057 (regcache::registers_changed_ptid): Add process_stratum_target
5058 parameter.
5059 (regcache::m_target): New field.
5060 (registers_changed_ptid): Add process_stratum_target parameter.
5061 * remote.c (remote_state::supports_vCont_probed): New field.
5062 (remote_target::async_wait_fd): New method.
5063 (remote_unpush_and_throw): Add remote_target parameter.
5064 (get_current_remote_target): Adjust.
5065 (remote_target::remote_add_inferior): Push target.
5066 (remote_target::remote_add_thread)
5067 (remote_target::remote_notice_new_inferior)
5068 (get_remote_thread_info): Pass target down.
5069 (remote_target::update_thread_list): Skip threads of inferiors
5070 bound to other targets. (remote_target::close): Don't discard
5071 inferiors. (remote_target::add_current_inferior_and_thread)
5072 (remote_target::process_initial_stop_replies)
5073 (remote_target::start_remote)
5074 (remote_target::remote_serial_quit_handler): Pass down target.
5075 (remote_target::remote_unpush_target): New remote_target
5076 parameter. Unpush the target from all inferiors.
5077 (remote_target::remote_unpush_and_throw): New remote_target
5078 parameter. Pass it down.
5079 (remote_target::open_1): Check whether the current inferior has
5080 execution instead of checking whether any inferior is live. Pass
5081 target down.
5082 (remote_target::remote_detach_1): Pass down target. Use
5083 remote_unpush_target.
5084 (extended_remote_target::attach): Pass down target.
5085 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
5086 (remote_target::append_resumption): Pass down target.
5087 (remote_target::append_pending_thread_resumptions)
5088 (remote_target::remote_resume_with_hc, remote_target::resume)
5089 (remote_target::commit_resume): Pass down target.
5090 (remote_target::remote_stop_ns): Check supports_vCont_probed.
5091 (remote_target::interrupt_query)
5092 (remote_target::remove_new_fork_children)
5093 (remote_target::check_pending_events_prevent_wildcard_vcont)
5094 (remote_target::remote_parse_stop_reply)
5095 (remote_target::process_stop_reply): Pass down target.
5096 (first_remote_resumed_thread): New remote_target parameter. Pass
5097 it down.
5098 (remote_target::wait_as): Pass down target.
5099 (unpush_and_perror): New remote_target parameter. Pass it down.
5100 (remote_target::readchar, remote_target::remote_serial_write)
5101 (remote_target::getpkt_or_notif_sane_1)
5102 (remote_target::kill_new_fork_children, remote_target::kill): Pass
5103 down target.
5104 (remote_target::mourn_inferior): Pass down target. Use
5105 remote_unpush_target.
5106 (remote_target::core_of_thread)
5107 (remote_target::remote_btrace_maybe_reopen): Pass down target.
5108 (remote_target::pid_to_exec_file)
5109 (remote_target::thread_handle_to_thread_info): Pass down target.
5110 (remote_target::async_wait_fd): New.
5111 * riscv-fbsd-tdep.c: Include "inferior.h".
5112 (riscv_fbsd_get_thread_local_address): Pass down target.
5113 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
5114 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
5115 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
5116 Adjust.
5117 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
5118 * solib-svr4.c (enable_break): Pass down target.
5119 * spu-multiarch.c (parse_spufs_run): Pass down target.
5120 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
5121 * target-delegates.c: Regenerate.
5122 * target.c (g_target_stack): Delete.
5123 (current_top_target): Return the current inferior's top target.
5124 (target_has_execution_1): Refer to the passed-in inferior's top
5125 target.
5126 (target_supports_terminal_ours): Check whether the initial
5127 inferior was already created.
5128 (decref_target): New.
5129 (target_stack::push): Incref/decref the target.
5130 (push_target, push_target, unpush_target): Adjust.
5131 (target_stack::unpush): Defref target.
5132 (target_is_pushed): Return bool. Adjust to refer to the current
5133 inferior's target stack.
5134 (dispose_inferior): Delete, and inline parts ...
5135 (target_preopen): ... here. Only dispose of the current inferior.
5136 (target_detach): Hold strong target reference while detaching.
5137 Pass target down.
5138 (target_thread_name): Add assertion.
5139 (target_resume): Pass down target.
5140 (target_ops::beneath, find_target_at): Adjust to refer to the
5141 current inferior's target stack.
5142 (get_dummy_target): New.
5143 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
5144 has a thread running.
5145 (initialize_targets): Rename to ...
5146 (_initialize_target): ... this.
5147 * target.h: Include "gdbsupport/refcounted-object.h".
5148 (struct target_ops): Inherit refcounted_object.
5149 (target_ops::shortname, target_ops::longname): Make const.
5150 (target_ops::async_wait_fd): New method.
5151 (decref_target): Declare.
5152 (struct target_ops_ref_policy): New.
5153 (target_ops_ref): New typedef.
5154 (get_dummy_target): Declare function.
5155 (target_is_pushed): Return bool.
5156 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
5157 (all_matching_threads_iterator::all_matching_threads_iterator):
5158 Handle filter target.
5159 * thread-iter.h (struct all_matching_threads_iterator, struct
5160 all_matching_threads_range, class all_non_exited_threads_range):
5161 Filter by target too. Remove explicit.
5162 * thread.c (threads_executing): Delete.
5163 (inferior_thread): Pass down current inferior.
5164 (clear_thread_inferior_resources): Pass down thread pointer
5165 instead of ptid_t.
5166 (add_thread_silent, add_thread_with_info, add_thread): Add
5167 process_stratum_target parameter. Use it for thread and inferior
5168 searches.
5169 (is_current_thread): New.
5170 (thread_info::deletable): Use it.
5171 (find_thread_ptid, thread_count, in_thread_list)
5172 (thread_change_ptid, set_resumed, set_running): New
5173 process_stratum_target parameter. Pass it down.
5174 (set_executing): New process_stratum_target parameter. Pass it
5175 down. Adjust reference to 'threads_executing'.
5176 (threads_are_executing): New process_stratum_target parameter.
5177 Adjust reference to 'threads_executing'.
5178 (set_stop_requested, finish_thread_state): New
5179 process_stratum_target parameter. Pass it down.
5180 (switch_to_thread): Also match inferior.
5181 (switch_to_thread): New process_stratum_target parameter. Pass it
5182 down.
5183 (update_threads_executing): Reimplement.
5184 * top.c (quit_force): Pop targets from all inferior.
5185 (gdb_init): Don't call initialize_targets.
5186 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
5187 Declare.
5188 (windows_add_thread, windows_delete_thread): Adjust.
5189 (get_windows_debug_event): Rename to ...
5190 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
5191 * tracefile-tfile.c (tfile_target_open): Pass down target.
5192 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
5193 Forward declare.
5194 (switch_to_thread): Add process_stratum_target parameter.
5195 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
5196 parameter. Use it.
5197 (mi_on_resume): Pass target down.
5198 * nat/fork-inferior.c (startup_inferior): Add
5199 process_stratum_target parameter. Pass it down.
5200 * nat/fork-inferior.h (startup_inferior): Add
5201 process_stratum_target parameter.
5202 * python/py-threadevent.c (py_get_event_thread): Pass target down.
5203
75c6c844
PA
52042020-01-10 Pedro Alves <palves@redhat.com>
5205
5206 * remote.c (remote_target::start_remote): Don't set inferior_ptid
5207 directly. Instead find the first thread in the thread list and
5208 use switch_to_thread.
5209
78f2c40a
PA
52102020-01-10 Pedro Alves <palves@redhat.com>
5211
5212 * remote.c (remote_target::remote_add_inferior): Don't bind a
5213 process to the current inferior if the current inferior is already
5214 bound to a process.
5215
e7af6c70
TBA
52162020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5217 Pedro Alves <palves@redhat.com>
5218
5219 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
5220 If no process is specified, return null_ptid instead of
5221 inferior_ptid.
5222 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
5223 TARGET_WAITKIND_SIGNALLED with no pid.
5224
31ba933e
PA
52252020-01-10 Pedro Alves <palves@redhat.com>
5226
5227 * remote.c (first_remote_resumed_thread): New.
5228 (remote_target::wait_as): Use it as default event_ptid instead of
5229 inferior_ptid.
5230
735fc2ca
PA
52312020-01-10 Pedro Alves <palves@redhat.com>
5232
5233 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
5234
c17e02e1
PA
52352020-01-10 Pedro Alves <palves@redhat.com>
5236
5237 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
5238 not -1.
5239
ab1ddbcf
PA
52402020-01-10 Pedro Alves <palves@redhat.com>
5241
5242 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
5243 ptid to get_last_target_status.
5244 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
5245 ptid to get_last_target_status.
5246 * infcmd.c (continue_command): Don't pass a target_waitstatus to
5247 get_last_target_status.
5248 (info_program_command): Don't pass a target_waitstatus to
5249 get_last_target_status.
5250 * infrun.c (init_wait_for_inferior): Use
5251 nullify_last_target_wait_ptid.
5252 (get_last_target_status): Handle nullptr arguments.
5253 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
5254 (print_stop_event): Don't pass a ptid to get_last_target_status.
5255 (normal_stop): Don't pass a ptid to get_last_target_status.
5256 * infrun.h (get_last_target_status, set_last_target_status): Move
5257 comments here and update.
5258 (nullify_last_target_wait_ptid): Declare.
5259 * linux-fork.c (fork_load_infrun_state): Remove local extern
5260 declaration of nullify_last_target_wait_ptid.
5261 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
5262 to get_last_target_status.
5263
f3f8ece4
PA
52642020-01-10 Pedro Alves <palves@redhat.com>
5265
5266 * gdbthread.h (scoped_restore_current_thread)
5267 <dont_restore, restore, m_dont_restore>: Declare.
5268 * thread.c (thread_alive): Add assertion. Return bool.
5269 (switch_to_thread_if_alive): New.
5270 (prune_threads): Switch inferior/thread.
5271 (print_thread_info_1): Switch thread before calling target methods.
5272 (scoped_restore_current_thread::restore): New, factored out from
5273 ...
5274 (scoped_restore_current_thread::~scoped_restore_current_thread):
5275 ... this.
5276 (scoped_restore_current_thread::scoped_restore_current_thread):
5277 Add assertion.
5278 (thread_apply_all_command, thread_select): Use
5279 switch_to_thread_if_alive.
5280 * infrun.c (proceed, restart_threads, handle_signal_stop)
5281 (switch_back_to_stepped_thread): Switch current thread before
5282 calling target methods.
5283
db2d40f7
PA
52842020-01-10 Pedro Alves <palves@redhat.com>
5285
5286 * inferior.c (switch_to_inferior_no_thread): New function,
5287 factored out from ...
5288 (inferior_command): ... here.
5289 * inferior.h (switch_to_inferior_no_thread): Declare.
5290 * mi/mi-main.c (run_one_inferior): Use
5291 switch_to_inferior_no_thread.
5292
bd420a2d
PA
52932020-01-10 Pedro Alves <palves@redhat.com>
5294
5295 * infcmd.c (kill_command): Remove dead code.
5296
ddf5db90
PA
52972020-01-10 Pedro Alves <palves@redhat.com>
5298
5299 * remote.c (remote_target::mourn_inferior): No longer check
5300 whether the target is running.
5301
5018ce90
PA
53022020-01-10 Pedro Alves <palves@redhat.com>
5303
5304 * corelow.c (core_target::has_execution): Change parameter type to
5305 inferior pointer.
5306 * inferior.c (number_of_live_inferiors): Use
5307 inferior::has_execution instead of target_has_execution_1.
5308 * inferior.h (inferior::has_execution): New.
5309 * linux-thread-db.c (thread_db_target::update_thread_list): Use
5310 inferior::has_execution instead of target_has_execution_1.
5311 * process-stratum-target.c
5312 (process_stratum_target::has_execution): Change parameter type to
5313 inferior pointer. Check the inferior's PID instead of
5314 inferior_ptid.
5315 * process-stratum-target.h
5316 (process_stratum_target::has_execution): Change parameter type to
5317 inferior pointer.
5318 * record-full.c (record_full_core_target::has_execution): Change
5319 parameter type to inferior pointer.
5320 * target.c (target_has_execution_1): Change parameter type to
5321 inferior pointer.
5322 (target_has_execution_current): Adjust.
5323 * target.h (target_ops::has_execution): Change parameter type to
5324 inferior pointer.
5325 (target_has_execution_1): Change parameter type to inferior
5326 pointer. Change return type to bool.
5327 * tracefile.h (tracefile_target::has_execution): Change parameter
5328 type to inferior pointer.
5329
74375d18
PA
53302020-01-10 Pedro Alves <palves@redhat.com>
5331
5332 * exceptions.c (print_flush): Remove current_top_target() check.
5333
acdf84a6
PA
53342020-01-10 Pedro Alves <palves@redhat.com>
5335
5336 * remote.c (show_remote_exec_file): Show the current inferior's
5337 exec-file instead of the command variable's value.
5338
ec506636
PA
53392020-01-10 Pedro Alves <palves@redhat.com>
5340
5341 * record-full.c (record_full_resume_ptid): New global.
5342 (record_full_target::resume): Set it.
5343 (record_full_wait_1): Use record_full_resume_ptid instead of
5344 inferior_ptid.
5345
873657b9
PA
53462020-01-10 Pedro Alves <palves@redhat.com>
5347
5348 * gdbthread.h (scoped_restore_current_thread)
5349 <dont_restore, restore, m_dont_restore>: Declare.
5350 * thread.c (thread_alive): Add assertion. Return bool.
5351 (switch_to_thread_if_alive): New.
5352 (prune_threads): Switch inferior/thread.
5353 (print_thread_info_1): Switch thread before calling target methods.
5354 (scoped_restore_current_thread::restore): New, factored out from
5355 ...
5356 (scoped_restore_current_thread::~scoped_restore_current_thread):
5357 ... this.
5358 (scoped_restore_current_thread::scoped_restore_current_thread):
5359 Add assertion.
5360 (thread_apply_all_command, thread_select): Use
5361 switch_to_thread_if_alive.
5362
7f0ae84c
GB
53632020-01-10 George Barrett <bob@bob131.so>
5364
5365 * stap-probe.c (stap_modify_semaphore): Don't check for null
5366 semaphores.
5367 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
5368 for null semaphores.
5369
f5a7c406
AB
53702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
5373 all source windows, and maintain horizontal scroll status while
5374 doing so.
5375
9ae6bf64
TT
53762020-01-09 Tom Tromey <tom@tromey.com>
5377
5378 PR tui/18932:
5379 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
5380 update_source_window, not print_source_lines.
5381
b2efe70c
AB
53822020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * tui/tui.c (tui_enable): Register tui hooks after calling
5385 tui_display_main.
5386
5f23a082
CB
53872020-01-09 Christian Biesinger <cbiesinger@google.com>
5388
5389 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
5390
3061113b
SM
53912020-01-08 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * thread.c (print_thread_info_1): Fix indentation.
5394
57d75002
CB
53952020-01-09 Christian Biesinger <cbiesinger@google.com>
5396
5397 * symtab.c (general_symbol_info::compute_and_set_names): Move the
5398 unique_xmalloc_ptr outside the if to always free the demangled name.
5399
6a053cb1
TT
54002020-01-08 Tom Tromey <tromey@adacore.com>
5401
5402 * xcoffread.c (enter_line_range, read_xcoff_symtab)
5403 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
5404 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
5405 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
5406 Remove.
5407 (section_offsets): New typedef.
5408 * symtab.c (fixup_section, get_msymbol_address): Update.
5409 * symmisc.c (dump_msymbols): Update.
5410 * symfile.h (relative_addr_info_to_section_offsets)
5411 (symfile_map_offsets_to_segments): Update.
5412 * symfile.c (build_section_addr_info_from_objfile)
5413 (init_objfile_sect_indices): Update.
5414 (struct place_section_arg): Change type of "offsets".
5415 (place_section): Update.
5416 (relative_addr_info_to_section_offsets): Change type of
5417 "section_offsets". Remove "num_sections" parameter.
5418 (default_symfile_offsets, syms_from_objfile_1)
5419 (set_objfile_default_section_offset): Update.
5420 (reread_symbols): No need to preserve section offsets by hand.
5421 (symfile_map_offsets_to_segments): Change type of "offsets".
5422 * stap-probe.c (relocate_address): Update.
5423 * stabsread.h (process_one_symbol): Update.
5424 * solib-target.c (struct lm_info_target) <offsets>: Change type.
5425 (solib_target_relocate_section_addresses): Update.
5426 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
5427 Update.
5428 * solib-frv.c (frv_relocate_main_executable): Update.
5429 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5430 * solib-aix.c (solib_aix_get_section_offsets): Change return
5431 type.
5432 (solib_aix_solib_create_inferior_hook): Update.
5433 * remote.c (remote_target::get_offsets): Update.
5434 * psymtab.c (find_pc_sect_psymtab): Update.
5435 * psympriv.h (struct partial_symbol) <address, text_low,
5436 text_high>: Update.
5437 * objfiles.h (obj_section_offset): Update.
5438 (struct objfile) <section_offsets>: Change type.
5439 <num_sections>: Remove.
5440 (objfile_relocate): Update.
5441 * objfiles.c (entry_point_address_query): Update
5442 (relocate_one_symbol): Change type of "section_offsets".
5443 (objfile_relocate1, objfile_relocate1): Change type of
5444 "new_offsets".
5445 (objfile_rebase1): Update.
5446 * mipsread.c (mipscoff_symfile_read): Update.
5447 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
5448 parameter.
5449 * mdebugread.c (parse_symbol): Change type of "section_offsets".
5450 (parse_external, psymtab_to_symtab_1): Update.
5451 * machoread.c (macho_symfile_offsets): Update.
5452 * ia64-tdep.c (ia64_find_unwind_table): Update.
5453 * hppa-tdep.c (read_unwind_info): Update.
5454 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
5455 * dwarf2read.c (create_addrmap_from_index)
5456 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5457 (process_psymtab_comp_unit_reader, add_partial_symbol)
5458 (add_partial_subprogram, process_full_comp_unit)
5459 (read_file_scope, read_func_scope, read_lexical_block_scope)
5460 (read_call_site_scope, dwarf2_rnglists_process)
5461 (dwarf2_ranges_process, dwarf2_ranges_read)
5462 (dwarf_decode_lines_1, var_decode_location, new_symbol)
5463 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
5464 Update.
5465 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
5466 Update.
5467 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
5468 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
5469 (process_one_symbol): Change type of "section_offsets".
5470 * ctfread.c (get_objfile_text_range): Update.
5471 * coffread.c (coff_symtab_read, enter_linenos)
5472 (process_coff_symbol): Update.
5473 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5474 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
5475
456e800a
TT
54762020-01-08 Tom Tromey <tromey@adacore.com>
5477
5478 * dwarf2read.c (parse_macro_definition): Use std::string.
5479 (parse_macro_definition): Likewise.
5480
6dfa2fc2
TT
54812020-01-08 Tom Tromey <tromey@adacore.com>
5482
5483 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
5484 (ATTR_ALLOC_CHUNK): Remove.
5485
421d1616
TT
54862020-01-08 Tom Tromey <tromey@adacore.com>
5487
5488 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
5489
43816ebc
TT
54902020-01-08 Tom Tromey <tromey@adacore.com>
5491
5492 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
5493 (dwarf2_compute_name, open_dwo_file): Likewise.
5494 (process_enumeration_scope): Use std::vector.
5495 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
5496 (partial_die_info::fixup, dwarf2_start_subfile)
5497 (guess_full_die_structure_name, dwarf2_name): Likewise.
5498 (determine_prefix): Update.
5499 (guess_full_die_structure_name): Make return type const.
5500 (partial_die_full_name): Return unique_xmalloc_ptr.
5501 (DW_FIELD_ALLOC_CHUNK): Remove.
5502
4212d509
TT
55032020-01-07 Tom Tromey <tromey@adacore.com>
5504
5505 PR build/24937:
5506 * stap-probe.c (class stap_static_probe_ops): Add constructor.
5507
06a6207a
JT
55082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5509
5510 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
5511
153d79c4
AB
55122020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
5513
5514 * stack.c (print_frame_info): Move disassemble_next_line code
5515 inside source_print block.
5516
66182876
EZ
55172020-01-06 Eli Zaretskii <eliz@gnu.org>
5518
5519 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
5520 gdb/signals.h, as we are now using native signal symbols.
5521
cbfa8581
SV
55222020-01-06 Shahab Vahedi <shahab@synopsys.com>
5523
5524 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
5525 overflow by an early check of content vs threshold.
5526 * tui/tui-source.c (tui_source_window::line_is_displayed):
5527 Likewise.
5528
3f602821
EZ
55292020-01-06 Eli Zaretskii <eliz@gnu.org>
5530
5531 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
5532
a08c904d
JT
55332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5534
5535 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
5536 export table if no section contains it's RVA.
5537
89a65580
EZ
55382020-01-06 Eli Zaretskii <eliz@gnu.org>
5539
5540 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
5541
8b7fcda2
HD
55422020-01-06 Hannes Domani <ssbssa@yahoo.de>
5543
5544 * source.c (print_source_lines_base): Set last_line_listed.
5545
a61b4f69
SV
55462020-01-06 Shahab Vahedi <shahab@synopsys.com>
5547
5548 * tui/tui-disasm.c: Remove trailing spaces.
5549
559e7e50
EZ
55502020-01-06 Eli Zaretskii <eliz@gnu.org>
5551 Pedro Alves <palves@redhat.com>
5552
5553 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
5554 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
5555 (windows_gdb_signal_to_target): New function, uses the above
5556 enumeration to convert GDB internal signal codes to equivalent
5557 Windows codes.
5558 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
5559 * windows-nat.c: Include "gdb_wait.h".
5560 (get_windows_debug_event): Extract the fatal exception from the
5561 exit status and convert to the equivalent Posix signal number.
5562 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
5563 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
5564 * gdbsupport/gdb_wait.c: New file, implements
5565 windows_status_to_termsig.
5566 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
5567 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
5568
f2302a34
AB
55692020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
5570
5571 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
5572 show_layout.
5573
6a5206eb
LM
55742020-01-05 Luis Machado <luis.machado@linaro.org>
5575
5576 * aarch64-linux-nat.c
5577 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
5578 and bfd_mach_aarch64.
5579
6ec1d75e
PW
55802020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5581
5582 * ui-file.c (stdio_file::can_emit_style_escape)
5583 (tee_file::can_emit_style_escape): Ensure style is used also on
5584 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
5585 to gdb_stdout.
5586 * main.c (set_gdb_data_directory): Use file style to output the
5587 warning that the given pathname is not a directory.
5588 * top.c (show_history_filename, gdb_safe_append_history)
5589 (show_gdb_datadir): Use file style.
5590
44f81a76
HD
55912020-01-03 Hannes Domani <ssbssa@yahoo.de>
5592
5593 * solib-target.c (struct lm_info_target):
5594 Change offsets to be a unique_xmalloc_ptr.
5595 (solib_target_relocate_section_addresses): Update.
5596
25057eb0
HD
55972020-01-03 Hannes Domani <ssbssa@yahoo.de>
5598
5599 * windows-nat.c (windows_clear_solib): Free so_list linked list.
5600
6e2118f5
BE
56012020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5602
5603 * MAINTAINERS (Write After Approval): Add myself.
5604
8133c7dc
LM
56052020-01-02 Luis Machado <luis.machado@linaro.org>
5606
5607 * proc-service.c (get_ps_regcache): Remove reference to obsolete
5608 Cell BE architecture.
5609 * target.h (struct target_ops) <thread_architecture>: Likewise.
5610
48189bec
HD
56112020-01-01 Hannes Domani <ssbssa@yahoo.de>
5612
5613 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5614
ead1063b
HD
56152020-01-01 Hannes Domani <ssbssa@yahoo.de>
5616
5617 * MAINTAINERS (Write After Approval): Add myself.
5618
e5d78223
JB
56192020-01-01 Joel Brobecker <brobecker@adacore.com>
5620
5621 * gdbarch.sh: Update copyright year range of generated files.
5622
b811d2c2
JB
56232020-01-01 Joel Brobecker <brobecker@adacore.com>
5624
5625 Update copyright year range in all GDB files.
5626
5f4def5c
JB
56272020-01-01 Joel Brobecker <brobecker@adacore.com>
5628
5629 * copyright.py: Convert to Python 3.
5630
51fd4002
JB
56312020-01-01 Joel Brobecker <brobecker@adacore.com>
5632
5633 * copyright.py: Adapt after move of gnulib directory from gdb
5634 directory to toplevel directory.
5635
5fb651f2
JB
56362020-01-01 Joel Brobecker <brobecker@adacore.com>
5637
5638 * copyright.py (main): Exit if run from the wrong directory.
5639
5dd8bf88
JB
56402020-01-01 Joel Brobecker <brobecker@adacore.com>
5641
5642 * top.c (print_gdb_version): Change copyright year to 2020.
5643
9f71dacb 56442020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 5645
9f71dacb 5646 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 5647
9f71dacb 5648For older changes see ChangeLog-2019.
c906108c
SS
5649\f
5650Local Variables:
5651mode: change-log
5652left-margin: 8
5653fill-column: 74
5654version-control: never
57da7796 5655coding: utf-8
c906108c 5656End: