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