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