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