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