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