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