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