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