c95c168b88086a88c564a3deef67b6fa343602a0
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4 "-include gnu-nat-mig.h".
5 * gnu-nat-mig.h: New file.
6 * gnu-nat.c: Include "gnu-nat-mig.h".
7 (exc_server, msg_reply_server, notify_server,
8 process_reply_server): Remove declarations.
9
10 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
11
12 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
13 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
14 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
15 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
16 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
17 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
18 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
19 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
20 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
21 to gnu_nat_target class.
22 * gnu-nat.c: Likewise.
23 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
24 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
25 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
26 object.
27 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
28 instead of `gnu_target'.
29
30 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
31
32 * i386-gnu-tdep.c: Include "gdbcore.h"
33 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
34 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
35 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
36 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
37 i386_gnu_sigcontext_addr): New functions
38 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
39 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
40 tdep.
41
42 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
43
44 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
45 before fork_inferior call. Avoid calling it if target_is_pushed returns
46 true.
47
48 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
49
50 * gnu-nat.h (gnu_target): New variable declaration.
51 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
52 gnu_target.
53 * gnu-nat.c (gnu_target): New variable.
54 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
55 add_thread_silent, and add_thread calls.
56 (gnu_nat_target::create_inferior): Pass gnu_target to
57 add_thread_silent, thread_change_ptid call.
58 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
59 call.
60
61 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
62
63 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
64 (gnu_nat_target::find_memory_regions): Remove unused
65 `old_address' variable.
66
67 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
68
69 * gnu-nat.c: Include "gdbarch.h".
70
71 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
72
73 * reply_mig_hack.awk (Error return): Cast function through
74 void *, to bypass compiler function call check.
75
76 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
77
78 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
79 $(srcdir)/reply_mig_hack.awk.
80
81 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
82
83 * gnu-nat.h (gnu_debug_flag): Set type to bool.
84
85 2020-05-30 Jonny Grant <jg@jguk.org>
86
87 * configure.ac (ACX_BUGURL): change bug URL to https.
88
89 2020-05-30 Pedro Alves <palves@redhat.com>
90
91 * cp-support.c (replace_typedefs_template): New.
92 (replace_typedefs_qualified_name): Handle
93 DEMANGLE_COMPONENT_TEMPLATE.
94
95 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
96
97 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
98 dwarf2/index-cache.h, dwarf2/index-write.c,
99 dwarf2/index-write.h, dwarf2/line-header.c,
100 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
101 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
102 variables and fields from `dwarf2_per_objfile` to just
103 `per_objfile` throughout.
104
105 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
108 <push_dwarf_reg_entry_value>: Add comment.
109
110 2020-05-28 Kevin Buettner <kevinb@redhat.com>
111 Keith Seitz <keiths@redhat.com>
112
113 * python/python.c (do_start_initialization): Call PyEval_SaveThread
114 instead of PyEval_ReleaseLock.
115 (class gdbpy_gil): Move to earlier in file.
116 (finalize_python): Set gdb_python_initialized.
117 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
118 when not initialized.
119
120 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
121
122 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
123 <push_dwarf_reg_entry_value>: Remove assert. Override
124 per_objfile with caller_per_objfile.
125
126 2020-05-28 Tom de Vries <tdevries@suse.de>
127
128 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
129 PR gold/15646 workaround to symbol kind "type".
130
131 2020-05-27 Tom Tromey <tromey@adacore.com>
132
133 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
134
135 2020-05-27 Tom Tromey <tromey@adacore.com>
136
137 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
138 Use htab_find_with_hash.
139 <add_abbrev>: Remove "abbrev_number" parameter.
140 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
141 "abbrev_number" parameter. Use htab_find_slot_with_hash.
142 (hash_abbrev): Add comment.
143 (abbrev_table::lookup_abbrev): Move to header file.
144 (abbrev_table::read): Update.
145
146 2020-05-27 Tom Tromey <tromey@adacore.com>
147
148 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
149 method.
150 <canonical_name>: New member.
151 <raw_name>: Rename from "name".
152 (partial_die_info): Initialize canonical_name.
153 (scan_partial_symbols): Check raw_name.
154 (partial_die_parent_scope, partial_die_full_name)
155 (add_partial_symbol, add_partial_subprogram)
156 (add_partial_enumeration, load_partial_dies): Use "name" method.
157 (partial_die_info::name): New method.
158 (partial_die_info::read, guess_partial_die_structure_name)
159 (partial_die_info::fixup): Update.
160
161 2020-05-27 Tom Tromey <tromey@adacore.com>
162
163 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
164 <get_ref_die_offset>: Inline.
165 <get_ref_die_offset_complaint>: New method.
166 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
167 (attribute::get_ref_die_offset_complaint): Rename from
168 get_ref_die_offset. Just issue complaint.
169
170 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
171
172 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
173
174 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
175
176 * exec.c (exec_file_attach): Use errno value of first openp failure.
177
178 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
179
180 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
181 Don't close thread handle.
182
183 2020-05-27 Tom Tromey <tom@tromey.com>
184 Simon Marchi <simon.marchi@efficios.com>
185
186 * objfiles.h (struct objfile) <partial_symtabs>: Now a
187 shared_ptr.
188 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
189 member.
190 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
191 dwarf2_per_bfd_objfile_data_key>: New globals.
192 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
193 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
194 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
195 shared.
196 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
197 short-circuit when sharing.
198 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
199 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
200
201 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
202
203 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
204 to...
205 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
206 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
207
208 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
209
210 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
211 build_name_components, find_name_components_bounds>:
212 Add per_objfile parameter.
213 (struct mapped_index) <symbol_name_at>: Likewise.
214 (struct mapped_debug_names): Remove constructor.
215 <dwarf2_per_objfile>: Remove field.
216 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
217 (mapped_index_base::find_name_components_bounds,
218 mapped_index_base::build_name_components,
219 dw2_expand_symtabs_matching_symbol): Likewise.
220 (class mock_mapped_index) <symbol_name_at>: Likewise.
221 (check_match): Likewise.
222 (check_find_bounds_finds): Likewise.
223 (test_mapped_index_find_name_component_bounds): Update.
224 (CHECK_MATCH): Update.
225 (dw2_expand_symtabs_matching): Update.
226 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
227 per_objfile parameter.
228 <find_vec_in_debug_names>: Likewise.
229 <m_per_objfile>: New field.
230 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
231 parameter.
232 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
233 (dw2_debug_names_iterator::next): Update.
234 (dw2_debug_names_lookup_symbol): Update.
235 (dw2_debug_names_expand_symtabs_for_function): Update.
236 (dw2_debug_names_map_matching_symbols): Update.
237 (dw2_debug_names_expand_symtabs_matching): Update.
238 (dwarf2_read_debug_names): Update.
239
240 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
241
242 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
243 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
244 move to dwarf2_per_objfile.
245 <read_in_chain>: Remove.
246 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
247 remove_all_cus, age_comp_units>: New methods.
248 <m_dwarf2_cus>: New member.
249 (struct dwarf2_per_cu_data) <cu>: Remove.
250 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
251 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
252 moved to methods of dwarf2_per_objfile.
253 (dwarf2_clear_marks): Remove.
254 (dwarf2_queue_item::~dwarf2_queue_item): Update.
255 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
256 (dwarf2_per_bfd::free_cached_comp_units): Remove.
257 (dwarf2_per_objfile::remove_all_cus): New.
258 (class free_cached_comp_units) <~free_cached_comp_units>:
259 Update.
260 (load_cu): Update.
261 (dw2_do_instantiate_symtab): Adjust.
262 (fill_in_sig_entry_from_dwo_entry): Adjust.
263 (cutu_reader::init_tu_and_read_dwo_dies): Update.
264 (cutu_reader::cutu_reader): Likewise.
265 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
266 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
267 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
268 and dwarf2_per_objfile::age_comp_units.
269 (load_partial_comp_unit): Update.
270 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
271 (process_queue): Likewise.
272 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
273 backlink.
274 (dwarf2_read_addr_index): Likewise.
275 (follow_die_offset): Likewise.
276 (dwarf2_fetch_die_loc_sect_off): Likewise.
277 (dwarf2_fetch_constant_bytes): Likewise.
278 (dwarf2_fetch_die_type_sect_off): Likewise.
279 (follow_die_sig_1): Likewise.
280 (load_full_type_unit): Likewise.
281 (read_signatured_type): Likewise.
282 (dwarf2_cu::dwarf2_cu): Don't set cu field.
283 (dwarf2_cu::~dwarf2_cu): Remove.
284 (dwarf2_per_objfile::get_cu): New.
285 (dwarf2_per_objfile::set_cu): New.
286 (age_cached_comp_units): Rename to...
287 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
288 to std::unordered_map.
289 (free_one_cached_comp_unit): Rename to...
290 (dwarf2_per_objfile::remove_cu): ... this. Adjust
291 to std::unordered_map.
292 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
293 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
294 a dwarf2_per_objfile in data.
295 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
296 (dwarf2_clear_marks): Remove.
297
298 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
299
300 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
301 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
302 (init_tu_and_read_dwo_dies): Likewise.
303 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
304 (cutu_reader::cutu_reader): Likewise.
305 (load_partial_comp_unit): Likewise.
306 (process_psymtab_comp_unit): Update.
307 (build_type_psymtabs_1): Update.
308 (process_skeletonless_type_unit): Update.
309 (load_full_comp_unit): Update.
310 (find_partial_die): Update.
311 (dwarf2_read_addr_index): Update.
312 (read_signatured_type): Update.
313
314 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
317 m_header_read_in>: New fields.
318 <get_header>: New method.
319 * dwarf2/read.c (per_cu_header_read_in): Remove.
320 (dwarf2_per_cu_data::get_header): New.
321 (dwarf2_per_cu_data::addr_size): Update.
322 (dwarf2_per_cu_data::offset_size): Update.
323 (dwarf2_per_cu_data::ref_addr_size): Update.
324
325 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * dwarf2/read.c (load_cu): Return dwarf2_cu.
328 (dw2_do_instantiate_symtab): Update.
329 (queue_and_load_all_dwo_tus): Change parameter from
330 dwarf2_per_cu_data to dwarf2_cu.
331 (dwarf2_fetch_die_loc_sect_off): Update.
332 (dwarf2_fetch_constant_bytes): Update.
333 (dwarf2_fetch_die_type_sect_off): Update.
334
335 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * dwarf2/read.c (process_full_comp_unit,
338 process_full_type_unit): Remove per_cu, per_objfile paramters.
339 Add dwarf2_cu parameter.
340 (process_queue): Update.
341
342 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * dwarf2/read.c (create_cu_from_index_list): Replace
345 dwarf2_per_objfile parameter with dwarf2_per_bfd.
346 (create_cus_from_index_list): Likewise.
347 (create_cus_from_index): Likewise.
348 (create_signatured_type_table_from_index): Likewise.
349 (create_cus_from_debug_names_list): Likewise.
350 (create_cus_from_debug_names): Likewise.
351 (dwarf2_read_gdb_index): Update.
352 (dwarf2_read_debug_names): Update.
353
354 2020-05-27 Tom Tromey <tom@tromey.com>
355 Simon Marchi <simon.marchi@efficios.com>
356
357 * dwarf2/read.h (struct dwarf2_per_objfile)
358 <get_type_for_signatured_type, set_type_for_signatured_type>:
359 New methods.
360 <m_type_map>: New member.
361 (struct signatured_type) <type>: Remove.
362 * dwarf2/read.c
363 (dwarf2_per_objfile::get_type_for_signatured_type,
364 dwarf2_per_objfile::set_type_for_signatured_type): New.
365 (get_signatured_type): Use new methods.
366
367 2020-05-27 Tom Tromey <tom@tromey.com>
368 Simon Marchi <simon.marchi@efficios.com>
369
370 * dwarf2/read.h (struct type_unit_group_unshareable): New.
371 (struct dwarf2_per_objfile) <type_units>: New member.
372 <get_type_unit_group_unshareable>: New method.
373 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
374 num_symtabs, symtabs>: Remove; move to
375 type_unit_group_unshareable.
376 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
377 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
378 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
379
380 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
381
382 * dwarf2/read.h (struct dwarf2_per_cu_data):
383 <dwarf2_per_objfile>: Remove.
384 * dwarf2/read.c (create_cu_from_index_list): Don't assign
385 dwarf2_per_objfile.
386 (create_signatured_type_table_from_index): Likewise.
387 (create_signatured_type_table_from_debug_names): Likewise.
388 (create_debug_type_hash_table): Likewise.
389 (fill_in_sig_entry_from_dwo_entry): Likewise.
390 (create_type_unit_group): Likewise.
391 (read_comp_units_from_section): Likewise.
392 (create_cus_hash_table): Likewise.
393
394 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
395
396 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
397 dwarf2_per_cu_data::dwarf2_per_objfile.
398 (compute_compunit_symtab_includes): Likewise.
399 (dwarf2_cu::start_symtab): Likewise.
400
401 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
402
403 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
404 parameter.
405 * dwarf2/read.c (get_die_type_at_offset): Likewise.
406 (read_namespace_alias): Update.
407 (lookup_die_type): Update.
408 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
409 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
410 Update.
411 (disassemble_dwarf_expression): Update.
412
413 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
414
415 * dwarf2/read.h (struct dwarf2_queue_item): Add
416 dwarf2_per_objfile parameter, assign new parameter.
417 <per_objfile>: New field.
418 * dwarf2/read.c (free_one_cached_comp_unit): Add
419 dwarf2_per_objfile parameter.
420 (queue_comp_unit): Likewise.
421 (dw2_do_instantiate_symtab): Update.
422 (process_psymtab_comp_unit): Update.
423 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
424 (process_imported_unit_die): Update.
425 (queue_and_load_dwo_tu): Update.
426 (follow_die_offset): Update.
427 (follow_die_sig_1): Update.
428
429 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
430
431 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
432 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
433 (read_call_site_scope): Assign per_objfile.
434 (dwarf2_per_cu_data::objfile): Remove.
435 * gdbtypes.h (struct call_site) <per_objfile>: New member.
436 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
437 dwarf2_per_objfile parameter.
438 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
439 dwarf2_per_objfile parameter.
440 (dwarf_expr_reg_to_entry_parameter): Add output
441 dwarf2_per_objfile parameter.
442 (locexpr_get_frame_base): Update.
443 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
444 <push_dwarf_reg_entry_value>: Update.
445 <call_site_to_target_addr>: Update.
446 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
447 parameter.
448 (value_of_dwarf_reg_entry): Update.
449 (rw_pieced_value): Update.
450 (indirect_synthetic_pointer): Update.
451 (dwarf2_evaluate_property): Update.
452 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
453 parameter.
454 (locexpr_read_variable): Update.
455 (locexpr_get_symbol_read_needs): Update.
456 (loclist_read_variable): Update.
457
458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
459
460 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
461 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
462 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
463 parameter.
464 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
465 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
466 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
467 parameter.
468 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
469 sect_variable_value): Add dwarf2_per_objfile parameter.
470 (class dwarf_evaluate_loc_desc) <dwarf_call,
471 dwarf_variable_value>: Update.
472 (fetch_const_value_from_synthetic_pointer): Add
473 dwarf2_per_objfile parameter.
474 (fetch_const_value_from_synthetic_pointer): Update.
475 (coerced_pieced_ref): Update.
476 (class symbol_needs_eval_context) <dwarf_call,
477 dwarf_variable_value>: Update.
478 (dwarf2_compile_expr_to_ax): Update.
479
480 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
481
482 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
483 parameter.
484 (dwarf2_evaluate_loc_desc_full): Update.
485
486 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
487
488 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
489 parameter.
490 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
491 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
492 dwarf2_per_objfile parameter.
493 (decode_debug_loc_dwo_addresses): Likewise.
494 (dwarf2_find_location_expression): Update.
495 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
496 (locexpr_describe_location_piece): Add dwarf2_per_objfile
497 parameter.
498 (disassemble_dwarf_expression): Add dwarf2_per_objfile
499 parameter.
500 (locexpr_describe_location_1): Likewise.
501 (locexpr_describe_location): Update.
502
503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
504
505 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
506 Remove.
507 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
508 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
509 (dwarf2_compile_property_to_c): Update.
510 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
511 use text offset from objfile.
512 (locexpr_tracepoint_var_ref): Update.
513 (locexpr_generate_c_location): Update.
514 (loclist_describe_location): Update.
515 (loclist_tracepoint_var_ref): Update.
516 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
517 dwarf2_per_objfile parameter.
518 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
519 use text offset from objfile.
520 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
521
522 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
523
524 * dwarf2/expr.h (struct dwarf_expr_context)
525 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
526 <offset>: Remove.
527 <per_objfile>: New member.
528 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
529 dwarf2_per_objfile parameter. Don't set offset, set
530 per_objfile.
531 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
532 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
533 a dwarf2_per_objfile object instead of an offset.
534 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
535 constructor.
536 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
537 to dwarf2_expr_executor constructor. Don't set offset.
538 (dwarf2_fetch_cfa_info): Update.
539 (struct dwarf2_frame_cache) <text_offset>: Remove.
540 <per_objfile>: New field.
541 (dwarf2_frame_cache): Update.
542 (dwarf2_frame_prev_register): Update.
543 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
544 <dwarf_evaluate_loc_desc>: Add constructor.
545 (dwarf2_evaluate_loc_desc_full): Update.
546 (dwarf2_locexpr_baton_eval): Update.
547 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
548 Add constructor.
549 (dwarf2_loc_desc_get_symbol_read_needs): Update.
550
551 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
552
553 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
554 addr_sized_int_type>: Move to dwarf2_cu.
555 <int_type>: Move to dwarf2_per_objfile.
556 (struct dwarf2_per_objfile) <int_type>: Move here.
557 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
558 addr_sized_int_type>: Move here.
559 (read_func_scope): Update.
560 (read_array_type): Update.
561 (read_tag_string_type): Update.
562 (attr_to_dynamic_prop): Update.
563 (dwarf2_per_cu_data::int_type): Rename to...
564 (dwarf2_per_objfile::int_type): ... this.
565 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
566 (dwarf2_cu::addr_sized_int_type): ... this.
567 (read_subrange_type): Update.
568 (dwarf2_per_cu_data::addr_type): Rename to...
569 (dwarf2_cu::addr_type): ... this.
570 (set_die_type): Update.
571
572 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
573
574 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
575 data through per_cu->cu.
576
577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
578
579 * dwarf2/read.c (lookup_dwo_comp_unit): Change
580 dwarf2_per_cu_data parameter fo dwarf2_cu.
581 (lookup_dwo_type_unit): Likewise.
582 (read_cutu_die_from_dwo): Likewise.
583 (lookup_dwo_unit): Likewise.
584 (open_and_init_dwo_file): Likewise.
585 (lookup_dwo_cutu): Likewise.
586 (lookup_dwo_comp_unit): Likewise.
587 (lookup_dwo_type_unit): Likewise.
588 (cutu_reader::init_tu_and_read_dwo_dies): Update.
589 (cutu_reader::cutu_reader): Update.
590
591 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
592
593 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
594 parameter.
595 (process_full_type_unit): Likewise.
596 (process_queue): Update.
597
598 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
599
600 * dwarf2/read.c (recursively_compute_inclusions): Add
601 dwarf2_per_objfile parameter.
602 (compute_compunit_symtab_includes): Likewise.
603 (process_cu_includes): Update.
604
605 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
606
607 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
608 parameter.
609 (create_type_unit_group): Update.
610 (process_psymtab_comp_unit_reader): Update.
611 (build_type_psymtabs_reader): Update.
612
613 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
614
615 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
616 object through m_this_cu->cu.
617
618 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
619
620 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
621 the info parameter.
622 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
623
624 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
625
626 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
627 per_objfile parameter.
628 (load_full_type_unit): Add per_objfile parameter.
629 (read_signatured_type): Likewise.
630 (load_full_comp_unit): Likewise.
631 (load_cu): Likewise.
632 (dw2_do_instantiate_symtab): Likewise.
633 (dw2_get_file_names): Likewise.
634 (dw2_map_symtabs_matching_filename): Update.
635 (dw_expand_symtabs_matching_file_matcher): Update.
636 (dw2_map_symbol_filenames): Update.
637 (process_psymtab_comp_unit): Add per_objfile parameter.
638 (build_type_psymtabs_1): Update.
639 (process_skeletonless_type_unit): Update.
640 (dwarf2_build_psymtabs_hard): Update.
641 (load_partial_comp_unit): Add per_objfile parameter.
642 (scan_partial_symbols): Update.
643 (load_full_comp_unit): Add per_objfile parameter.
644 (process_imported_unit_die): Update.
645 (create_cus_hash_table): Update.
646 (find_partial_die): Update.
647 (dwarf2_read_addr_index): Update.
648 (follow_die_offset): Update.
649 (dwarf2_fetch_die_loc_sect_off): Update.
650 (dwarf2_fetch_constant_bytes): Update.
651 (dwarf2_fetch_die_type_sect_off): Update.
652 (follow_die_sig_1): Update.
653 (load_full_type_unit): Add per_objfile parameter.
654 (read_signatured_type): Likewise.
655
656 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
657
658 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
659 of objfile_name.
660
661 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
662
663 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
664 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
665 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
666 field.
667 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
668 (create_cus_from_index): Update.
669 (dwarf2_read_gdb_index): Update.
670 (create_cus_from_debug_names): Update.
671 (dwarf2_read_debug_names): Update.
672 (get_abbrev_section_for_cu): Update.
673 (create_all_comp_units): Update.
674 (read_attribute_value): Update.
675 (get_debug_line_section): Update.
676 * dwarf2/index-cache.c (index_cache::store): Update.
677 * dwarf2/index-write.c (save_gdb_index_command): Update.
678 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
679
680 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
683 member.
684 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
685 dwarf2_per_cu_data::per_bfd.
686 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
687 (create_type_unit_group): Likewise.
688 (queue_comp_unit): Remove reference to
689 per_cu->dwarf2_per_objfile.
690 (maybe_queue_comp_unit): Likewise.
691 (fill_in_sig_entry_from_dwo_entry): Assign new field.
692 (create_cus_hash_table): Assign new field.
693
694 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
695
696 * dwarf2/read.c: Replace
697 dwarf2_cu->per_cu->dwarf2_per_objfile references with
698 dwarf2_cu->per_objfile throughout.
699
700 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
701
702 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
703 parameter, don't use per_cu->dwarf2_per_objfile.
704 (dw2_instantiate_symtab): Likewise.
705 (dw2_find_last_source_symtab): Update.
706 (dw2_map_expand_apply): Update.
707 (dw2_lookup_symbol): Update.
708 (dw2_expand_symtabs_for_function): Update.
709 (dw2_expand_all_symtabs): Update.
710 (dw2_expand_symtabs_with_fullname): Update.
711 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
712 don't use per_cu->dwarf2_per_objfile.
713 (dw2_expand_marked_cus): Update.
714 (dw2_find_pc_sect_compunit_symtab): Update.
715 (dw2_debug_names_lookup_symbol): Update.
716 (dw2_debug_names_expand_symtabs_for_function): Update.
717 (dw2_debug_names_map_matching_symbols): Update.
718 (dwarf2_psymtab::expand_psymtab): Update.
719
720 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
721
722 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
723 <per_objfile>: New member.
724 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
725 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
726 call to dwarf2_cu.
727 (cutu_reader::cutu_reader): Update.
728 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
729
730 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
731
732 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
733 struct dwarf2_per_objfile.
734 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
735 dwarf2_per_bfd.
736 * dwarf2/read.c (set_die_type): Update.
737 (get_die_type_at_offset): Update.
738
739 2020-05-27 Tom Tromey <tom@tromey.com>
740 Simon Marchi <simon.marchi@efficios.com>
741
742 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
743 method.
744 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
745 get_symtab, set_symtab>: New methods.
746 <m_symtabs>: New field.
747 (struct dwarf2_psymtab): Derive from partial_symtab.
748 <readin_p, get_compunit_symtab>: Declare methods.
749 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
750 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
751 New methods.
752 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
753 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
754 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
755 (dw2_symtab_iter_next, dw2_print_stats)
756 (dw2_expand_symtabs_with_fullname)
757 (dw2_expand_symtabs_matching_one)
758 (dw_expand_symtabs_matching_file_matcher)
759 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
760 (dw2_debug_names_iterator::next)
761 (dw2_debug_names_map_matching_symbols)
762 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
763 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
764 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
765 New methods.
766 (get_compunit_symtab, process_full_comp_unit)
767 (process_full_type_unit): Update.
768 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
769
770 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
773 then introduce a new dwarf2_per_objfile type.
774 <read_line_string>: Move to the new dwarf2_per_objfile type.
775 <objfile>: Likewise.
776 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
777 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
778 dwarf2_per_objfile->per_bfd.
779 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
780 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
781 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
782 (dwarf2_per_bfd::free_cached_comp_units): ... this.
783 (dwarf2_has_info): Allocate dwarf2_per_bfd.
784 (dwarf2_per_objfile::locate_sections): Rename to...
785 (dwarf2_per_bfd::locate_sections): ... this.
786 (dwarf2_per_objfile::get_cutu): Rename to...
787 (dwarf2_per_bfd::get_cutu): ... this.
788 (dwarf2_per_objfile::get_cu): Rename to...
789 (dwarf2_per_bfd::get_cu): ... this.
790 (dwarf2_per_objfile::get_tu): Rename to...
791 (dwarf2_per_bfd::get_tu): ... this.
792 (dwarf2_per_objfile::allocate_per_cu): Rename to...
793 (dwarf2_per_bfd::allocate_per_cu): ... this.
794 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
795 (dwarf2_per_bfd::allocate_signatured_type): ... this.
796 (get_gdb_index_contents_ftype): Change parameter from
797 dwarf2_per_objfile to dwarf2_per_bfd.
798 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
799 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
800
801 2020-05-27 Tom Tromey <tom@tromey.com>
802 Simon Marchi <simon.marchi@efficios.com>
803
804 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
805 (allocate_piece_closure): Set "per_objfile" member.
806 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
807 (locexpr_describe_location, loclist_describe_location): Use new
808 member.
809 * dwarf2/read.c (read_call_site_scope)
810 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
811 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
812 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
813 handle_data_member_location): Set per_objfile member.
814 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
815 member.
816 (struct dwarf2_loclist_baton) <per_objfile>: New member.
817
818 2020-05-27 Tom Tromey <tom@tromey.com>
819
820 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
821 allocate_signatured_type>: Declare new methods.
822 <m_num_psymtabs>: New member.
823 (struct dwarf2_per_cu_data) <index>: New member.
824 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
825 (dwarf2_per_objfile::allocate_signatured_type): New methods.
826 (create_cu_from_index_list): Use allocate_per_cu.
827 (create_signatured_type_table_from_index)
828 (create_signatured_type_table_from_debug_names)
829 (create_debug_type_hash_table, add_type_unit)
830 (read_comp_units_from_section): Use allocate_signatured_type.
831
832 2020-05-27 Tom Tromey <tom@tromey.com>
833
834 * psymtab.c (partial_map_expand_apply)
835 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
836 (psym_lookup_global_symbol_language)
837 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
838 (psym_print_stats, psym_expand_symtabs_for_function)
839 (psym_map_symbol_filenames, psym_map_matching_symbols)
840 (psym_expand_symtabs_matching)
841 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
842 (maintenance_check_psymtabs): Update.
843 * psympriv.h (struct partial_symtab) <readin_p,
844 get_compunit_symtab>: Add objfile parameter.
845 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
846 Likewise.
847 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
848 get_compunit_symtab>: Likewise.
849 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
850
851 2020-05-27 Tom Tromey <tom@tromey.com>
852
853 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
854 member.
855 * dwarf2/read.c (delete_file_name_entry): Fix comment.
856 (create_cu_from_index_list)
857 (create_signatured_type_table_from_index)
858 (create_signatured_type_table_from_debug_names)
859 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
860 (dwarf2_create_include_psymtab)
861 (create_debug_type_hash_table, add_type_unit)
862 (create_type_unit_group, read_comp_units_from_section)
863 (dwarf2_compute_name, create_cus_hash_table)
864 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
865 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
866 obstack.
867 (dw2_get_real_path): Likewise. Change argument to
868 dwarf2_per_objfile.
869
870 2020-05-27 Luis Machado <luis.machado@linaro.org>
871
872 PR tdep/26000
873 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
874 for ldrd (immediate).
875
876 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
877
878 * command.h: Add comment giving the name of class_tui.
879 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
880 create the fake command for the help for class_tui.
881
882 2020-05-26 Tom Tromey <tromey@adacore.com>
883
884 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
885 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
886 (val_atr): New function.
887 (value_val_atr): Use it.
888 * ada-valprint.c (print_optional_low_bound): Change low bound
889 handling for enums.
890 (val_print_packed_array_elements): Don't call discrete_position.
891 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
892 discrete_position for enum types.
893 * language.c (default_print_array_index): Change type.
894 * language.h (struct language_defn) <la_print_array_index>: Add
895 index_type parameter, change type of index_value.
896 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
897 (default_print_array_index): Update.
898 * valprint.c (maybe_print_array_index): Don't call
899 value_from_longest. Update.
900 (value_print_array_elements): Don't call discrete_position.
901
902 2020-05-26 Tom Tromey <tromey@adacore.com>
903
904 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
905 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
906
907 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
908
909 PR gdb/13519
910 * avr-tdep.c (avr_integer_to_address): Return data or code
911 address accordingly to the second 'type' argument of the
912 function.
913
914 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
915
916 * infcmd.c, inferior.h: (construct_inferior_arguments):
917 Moved function from here to gdbsupport/common-inferior.{h,cc}
918
919 2020-05-23 Tom Tromey <tom@tromey.com>
920
921 Revert commit eca1f90c:
922 * NEWS: Remove entry for completion styling.
923 * completer.c (_rl_completion_prefix_display_length): Move
924 declaration later.
925 (gdb_fnprint): Revert.
926 (gdb_display_match_list_1): Likewise.
927 * cli/cli-style.c (completion_prefix_style)
928 (completion_difference_style, completion_suffix_style): Remove.
929 (_initialize_cli_style): Revert.
930 * cli/cli-style.h (completion_prefix_style)
931 (completion_difference_style, completion_suffix_style): Don't
932 declare.
933
934 2020-05-24 Pedro Alves <palves@redhat.com>
935
936 * symtab.c (completion_list_add_name): Return boolean indication
937 of whether the symbol matched.
938 (completion_list_add_symbol): Don't try to remove C++ aliases if
939 the symbol didn't match in the first place.
940 * symtab.h (completion_list_add_name): Return bool.
941
942 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
943
944 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
945 type::field.
946
947 2020-05-23 Joel Brobecker <brobecker@adacore.com>
948
949 GDB 9.2 released.
950
951 2020-05-23 Tom Tromey <tom@tromey.com>
952
953 * NEWS: Add entry for completion styling.
954 * completer.c (_rl_completion_prefix_display_length): Move
955 declaration earlier.
956 (gdb_fnprint): Use completion_style.
957 (gdb_display_match_list_1): Likewise.
958 * cli/cli-style.c (completion_prefix_style)
959 (completion_difference_style, completion_suffix_style): New
960 globals.
961 (_initialize_cli_style): Register new globals.
962 * cli/cli-style.h (completion_prefix_style)
963 (completion_difference_style, completion_suffix_style): Declare.
964
965 2020-05-23 Pedro Alves <palves@redhat.com>
966
967 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
968 (parse_escape): Use ISDIGIT instead of isdigit.
969 (puts_debug): Use gdb_isprint instead of isprint.
970 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
971 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
972 ISSPACE instead of isspace.
973 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
974 instead of isspace.
975 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
976 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
977 instead of isxdigit and ISDIGIT instead of isdigit.
978
979 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
980
981 * gdbtypes.h (struct type) <field>: New method.
982 (TYPE_FIELDS): Remove, replace all uses with either type::fields
983 or type::field.
984
985 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
986
987 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
988 (TYPE_FIELDS): Use type::fields. Change all call sites that
989 modify the propery to use type::set_fields instead.
990
991 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
992
993 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
994 type::num_fields instead.
995
996 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
997
998 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
999 methods.
1000 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
1001 that modify the number of fields to use type::set_num_fields
1002 instead.
1003
1004 2020-05-22 Tom Tromey <tromey@adacore.com>
1005
1006 * compile/compile-object-load.h (munmap_list_free): Don't
1007 declare.
1008
1009 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * annotate.c (annotate_source_line): Update return type, add call
1012 to update current symtab and line.
1013 * annotate.h (annotate_source_line): Update return type, and
1014 extend header comment.
1015 * source.c (info_line_command): Check annotation_level before
1016 calling annotate_source_line.
1017 * stack.c (print_frame_info): If calling annotate_source_line
1018 returns true, then don't print any other source line information.
1019
1020 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
1021
1022 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
1023
1024 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
1025
1026 * coffread.c (patch_type): Remove NULL check before xfree.
1027 * corefile.c (set_gnutarget): Likewise.
1028 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
1029 * exec.c (build_section_table): Likewise.
1030 * remote.c (remote_target::pass_signals): Likewise.
1031 * utils.c (n_spaces): Likewise.
1032 * cli/cli-script.c (document_command): Likewise.
1033 * i386-windows-tdep.c (core_process_module_section): Likewise.
1034 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
1035
1036 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
1037
1038 * symfile.c (reread_symbols): Clear objfile's section_offsets
1039 vector and section indices, re-compute them by calling
1040 sym_offsets.
1041
1042 2020-05-20 Tom Tromey <tromey@adacore.com>
1043
1044 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
1045 (desc_one_bound, desc_index_type): Compute field name.
1046
1047 2020-05-20 Tom de Vries <tdevries@suse.de>
1048
1049 PR symtab/25833
1050 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
1051
1052 2020-05-20 Alan Modra <amodra@gmail.com>
1053
1054 PR 25993
1055 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
1056 bfd_set_filename.
1057 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
1058 passed to bfd_set_filename.
1059 * symfile-mem.c (add_vsyscall_page): Likewise for string
1060 passed to symbol_file_add_from_memory.
1061 (symbol_file_add_from_memory): Make name param a const char* and
1062 don't strdup.
1063
1064 2020-05-20 Alan Modra <amodra@gmail.com>
1065
1066 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
1067 rather than accessing bfd->filename directly.
1068 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
1069 and use bfd_section_name.
1070 * dwarf2/frame.c (decode_frame_entry): Likewise.
1071 * exec.c (exec_set_section_address): Likewise.
1072 * solib-aix.c (solib_aix_bfd_open): Likewise.
1073 * stap-probe.c (get_stap_base_address): Likewise.
1074 * symfile.c (reread_symbols): Likewise.
1075
1076 2020-05-19 Tom Tromey <tromey@adacore.com>
1077
1078 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
1079
1080 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
1083
1084 2020-05-19 Pedro Alves <palves@redhat.com>
1085
1086 * NEWS (set exec-file-mismatch): Adjust entry.
1087 * exec.c: Include "build-id.h".
1088 (validate_exec_file): Try to match build IDs instead of filenames.
1089 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
1090 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
1091 and pass down 'warn_if_slow'.
1092 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
1093 gdb_bfd_open_closure to pass it down.
1094 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
1095
1096 2020-05-19 Pedro Alves <palves@redhat.com>
1097
1098 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
1099 * target.c (target_fileio_open_1): Rename to target_fileio_open
1100 and make extern. Use bool.
1101 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
1102 (target_fileio_read_alloc_1): Adjust.
1103 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
1104 (target_fileio_open_warn_if_slow): Delete declaration.
1105
1106 2020-05-19 Pedro Alves <palves@redhat.com>
1107
1108 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
1109 Adjust all callers.
1110
1111 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
1112
1113 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
1114 whether disp is negative.
1115
1116 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * symfile.h (struct symfile_segment_data)
1119 <~symfile_segment_data>: Remove.
1120 <segment_info>: Change to std::vector.
1121 * symfile.c (default_symfile_segments): Update.
1122 * elfread.c (elf_symfile_segments): Update.
1123
1124 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1125
1126 * symfile.h (struct symfile_segment_data) <struct segment>: New.
1127 <segments>: New.
1128 <segment_bases, segment_sizes>: Remove.
1129 * symfile.c (default_symfile_segments): Update.
1130 * elfread.c (elf_symfile_segments): Update.
1131 * remote.c (remote_target::get_offsets): Update.
1132 * solib-target.c (solib_target_relocate_section_addresses):
1133 Update.
1134
1135 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1136
1137 * symfile.h (struct symfile_segment_data): Initialize fields.
1138 <~symfile_segment_data>: Add.
1139 (symfile_segment_data_up): New.
1140 (struct sym_fns) <sym_segments>: Return a
1141 symfile_segment_data_up.
1142 (default_symfile_segments): Return a symfile_segment_data_up.
1143 (free_symfile_segment_data): Remove.
1144 (get_symfile_segment_data): Return a symfile_segment_data_up.
1145 * symfile.c (default_symfile_segments): Likewise.
1146 (get_symfile_segment_data): Likewise.
1147 (free_symfile_segment_data): Remove.
1148 (symfile_find_segment_sections): Update.
1149 * elfread.c (elf_symfile_segments): Return a
1150 symfile_segment_data_up.
1151 * remote.c (remote_target::get_offsets): Update.
1152 * solib-target.c (solib_target_relocate_section_addresses):
1153 Update.
1154 * symfile-debug.c (debug_sym_segments): Return a
1155 symfile_segment_data_up.
1156
1157 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1158
1159 PR build/25981
1160 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
1161 Hardcode register numbers.
1162
1163 PR build/25981
1164 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
1165 procfs_find_LDT_entry): Remove.
1166 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
1167 procfs_find_LDT_entry): Remove.
1168 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
1169 Remove.
1170
1171 2020-05-17 Pedro Alves <palves@redhat.com>
1172 Andrew Burgess <andrew.burgess@embecosm.com>
1173 Keno Fischer <keno@juliacomputing.com>
1174
1175 PR gdb/25741
1176 * breakpoint.c (build_target_condition_list): Update comments.
1177 (build_target_command_list): Update comments and skip matching
1178 locations.
1179 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
1180 a separate function. Simplify "set breakpoint auto-hw off"
1181 handling.
1182 (insert_breakpoints): Update comment.
1183 (tracepoint_locations_match): New parameter. For breakpoints,
1184 compare location types too, if the caller wants to.
1185 (handle_automatic_hardware_breakpoints): New functions.
1186 (bp_location_is_less_than): Also sort by location type and
1187 hardware breakpoint length.
1188 (update_global_location_list): Handle "set breakpoint auto-hw on"
1189 here.
1190 (update_breakpoint_locations): Ask breakpoint_locations_match to
1191 ignore location types.
1192
1193 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
1194
1195 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
1196 type::name instead.
1197
1198 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * gdbtypes.h (struct type) <name, set_name>: New methods.
1201 (TYPE_CODE): Use type::name. Change all call sites used to set
1202 the name to use type::set_name instead.
1203
1204 2020-05-16 Tom Tromey <tom@tromey.com>
1205
1206 * top.c (quit_force): Update.
1207 * infrun.c (handle_no_resumed): Update.
1208 * top.h (all_uis): New function.
1209 (ALL_UIS): Remove.
1210
1211 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
1212
1213 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
1214
1215 2020-05-16 Pedro Alves <palves@redhat.com>
1216
1217 * ia64-linux-nat.c
1218 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
1219 Declare method.
1220 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
1221
1222 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
1225 (sparc64_adi_info): Likewise.
1226
1227 2020-05-15 Tom Tromey <tom@tromey.com>
1228
1229 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
1230 block_objfile.
1231 (lookup_objfile_from_block): Remove.
1232 (lookup_symbol_in_block, lookup_symbol_in_static_block)
1233 (lookup_global_symbol): Use block_objfile.
1234 * symtab.h (lookup_objfile_from_block): Don't declare.
1235 * printcmd.c (clear_dangling_display_expressions): Use
1236 block_objfile.
1237 * parse.c (operator_check_standard): Use block_objfile.
1238
1239 2020-05-15 Tom Tromey <tom@tromey.com>
1240
1241 * language.c (language_alloc_type_symbol): Set
1242 SYMBOL_SECTION.
1243 * symtab.c (initialize_objfile_symbol): Remove.
1244 (allocate_symbol): Remove.
1245 (allocate_template_symbol): Remove.
1246 * dwarf2/read.c (fixup_go_packaging): Use "new".
1247 (new_symbol): Use "new".
1248 (read_variable): Don't call initialize_objfile_symbol. Use
1249 "new".
1250 (read_func_scope): Use "new".
1251 * xcoffread.c (process_xcoff_symbol): Don't call
1252 initialize_objfile_symbol.
1253 (SYMBOL_DUP): Remove.
1254 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
1255 "new".
1256 * symtab.h (allocate_symbol, initialize_objfile_symbol)
1257 (allocate_template_symbol): Don't declare.
1258 (struct symbol): Add copy constructor. Change defaults.
1259 * jit.c (finalize_symtab): Use "new".
1260 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
1261 Use "new".
1262 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1263 (common_block_end): Use "new".
1264 * mdebugread.c (parse_symbol): Use "new".
1265 (new_symbol): Likewise.
1266
1267 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1268
1269 * NEWS: Mention changes to help and apropos.
1270
1271 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1272
1273 * command.h (enum command_class): Improve comments, document
1274 that class_alias is for user-defined aliases, give the class
1275 name for each class, remove unused class_xdb.
1276 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
1277 * breakpoint.c (_initialize_breakpoint): Replace class_alias
1278 by a precise class.
1279 * infcmd.c (_initialize_infcmd): Likewise.
1280 * reverse.c (_initialize_reverse): Likewise.
1281 * stack.c (_initialize_stack): Likewise.
1282 * symfile.c (_initialize_symfile): Likewise.
1283 * tracepoint.c (_initialize_tracepoint): Likewise.
1284
1285 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1286
1287 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
1288 when their aliased command is traversed.
1289 (help_cmd): Add fput_command_names_styled call to
1290 output command name and aliases when command has an alias.
1291
1292 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1293
1294 * cli/cli-decode.h (help_cmd_list): Remove declaration.
1295 * cli/cli-decode.c (help_cmd_list): Declare as static,
1296 remove prefix argument, use bool for recurse arg, rework to show the aliases of
1297 a command together with the command.
1298 (fput_command_name_styled, fput_command_names_styled): New functions.
1299 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
1300 fput_command_name_styled.
1301 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
1302 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
1303
1304 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1305
1306 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
1307 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
1308 * command.h (cmd_show_list): Likewise.
1309 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
1310 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
1311
1312 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1313
1314 * unittests/command-def-selftests.c (traverse_command_structure):
1315 Verify all commands of a list have the same prefix command and
1316 that only the top cmdlist commands have a null prefix.
1317
1318 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1319
1320 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
1321 as prefix, not one of its aliases.
1322 (set_cmd_prefix): Remove.
1323 (do_add_cmd): Centralize the setting of the prefix of a command, when
1324 command is defined after its full chain of prefix commands.
1325 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
1326 (add_setshow_cmd_full): Likewise.
1327 (update_prefix_field_of_prefixed_commands): New function.
1328 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
1329 update_prefix_field_of_prefixed_commands.
1330 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
1331 addresses of remote_set_cmdlist and remote_show_cmdlist given
1332 as argument, not the address of an argument.
1333 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
1334 * gdb/remote.c (_initialize_remote): Likewise.
1335
1336 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1337
1338 * cli/cli-cmds.c (alias_command): Check for an existing alias
1339 using lookup_cmd_composition, as valid_command_p is too strict
1340 and forbids aliases that are the prefix of an existing alias
1341 or command.
1342 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
1343 command is properly recognised as a valid command.
1344
1345 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1346
1347 * unittests/help-doc-selftests.c: Rename to
1348 unittests/command-def-selftests.c
1349 * unittests/command-def-selftests.c (help_doc_tests): Update some
1350 comments.
1351 (command_structure_tests, traverse_command_structure): New namespace
1352 and function.
1353 (command_structure_invariants_tests): New function.
1354 (_initialize_command_def_selftests) Renamed from
1355 _initialize_help_doc_selftests, register command_structure_invariants
1356 selftest.
1357
1358 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1359
1360 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
1361 an alias of 'show'.
1362
1363 2020-05-15 Joel Brobecker <brobecker@adacore.com>
1364
1365 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
1366 ada_is_fixed_point_type. Update all callers.
1367 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
1368 all callers.
1369 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
1370 Update all callers.
1371 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
1372 print_fixed_point_type. Update all callers.
1373 * ada-valprint.c (ada_value_print_num): Replace call to
1374 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
1375
1376 2020-05-14 Kevin Buettner <kevinb@redhat.com>
1377
1378 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
1379 processors.
1380 (cpu_supports_bts): Add CV_AMD case.
1381
1382 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
1383 Simon Marchi <simon.marchi@efficios.com>
1384
1385 * infrun.c (stop_all_threads): Collect multiple wait events at
1386 each pass.
1387
1388 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
1389
1390 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
1391 type::code instead.
1392
1393 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
1394
1395 * gdbtypes.h (struct type) <code, set_code>: New methods.
1396 (TYPE_CODE): Use type::code. Change all call sites used to set
1397 the code to use type::set_code instead.
1398
1399 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1400 Tom de Vries <tdevries@suse.de>
1401 Pedro Alves <palves@redhat.com>
1402
1403 PR threads/25478
1404 * infrun.c (stop_all_threads): Do NOT ignore
1405 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
1406 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
1407 received.
1408 (handle_no_resumed): Remove code handling a live inferior with no
1409 threads.
1410 * remote.c (has_single_non_exited_thread): New.
1411 (remote_target::update_thread_list): Do not delete a thread if is
1412 the last thread of the process.
1413 * thread.c (thread_select): Call delete_exited_threads instead of
1414 prune_threads.
1415
1416 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1417
1418 * infrun.c (stop_all_threads): Enable/disable thread events of all
1419 targets. Move a debug message denoting the end of the function
1420 into the SCOPED_EXIT block.
1421
1422 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1423
1424 * process-stratum-target.h: Include <set>.
1425 (all_non_exited_process_targets, switch_to_target_no_thread): New
1426 function declarations.
1427 * process-stratum-target.c (all_non_exited_process_targets)
1428 (switch_to_target_no_thread): New function implementations.
1429
1430 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1431
1432 * infrun.c (handle_inferior_event): Extract out a piece of code
1433 into...
1434 (mark_non_executing_threads): ...this new function.
1435
1436 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1437
1438 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
1439 use.
1440
1441 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1442
1443 * regcache.c (regcache_read_pc_protected): New function
1444 implementation that returns 0 if the PC cannot read via
1445 'regcache_read_pc'.
1446 * infrun.c (proceed): Call 'regcache_read_pc_protected'
1447 instead of 'regcache_read_pc'.
1448 (keep_going_pass_signal): Ditto.
1449
1450 2020-05-13 Tom Tromey <tromey@adacore.com>
1451
1452 * ada-lang.c (align_value): Remove.
1453 (ada_template_to_fixed_record_type_1): Use align_up.
1454
1455 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1456
1457 * async-event.c: Update the copyright year.
1458 * async-event.h: Update the copyright year.
1459
1460 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * objfiles.h (is_addr_in_objfile,
1463 shared_objfile_contains_address_p): Return bool.
1464 * objfile.c (is_addr_in_objfile,
1465 shared_objfile_contains_address_p): Return bool.
1466
1467 2020-05-11 Tom Tromey <tromey@adacore.com>
1468
1469 * cli/cli-cmds.c (info_command): Restore.
1470 (_initialize_cli_cmds): Use add_prefix_command for "info".
1471 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
1472
1473 2020-05-11 Tom Tromey <tromey@adacore.com>
1474
1475 * ada-lang.c (ada_value_primitive_field): Now public.
1476 * ada-lang.h (ada_value_primitive_field): Declare.
1477 * ada-valprint.c (print_field_values): Use
1478 ada_value_primitive_field for wrapper fields.
1479
1480 2020-05-11 Tom de Vries <tdevries@suse.de>
1481
1482 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
1483 MODULE_DOMAIN.
1484
1485 2020-05-11 Tom de Vries <tdevries@suse.de>
1486
1487 PR symtab/25941
1488 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
1489 with length 0, if not gdb-produced.
1490 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
1491
1492 2020-05-09 Tom de Vries <tdevries@suse.de>
1493
1494 PR gdb/25955
1495 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
1496 calculation.
1497
1498 2020-05-09 Tom Tromey <tom@tromey.com>
1499
1500 * top.c (server_command): Now bool.
1501 * top.h (server_command): Now bool.
1502
1503 2020-05-08 Tom Tromey <tromey@adacore.com>
1504
1505 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
1506 already being processed.
1507
1508 2020-05-08 Tom Tromey <tom@tromey.com>
1509
1510 * printcmd.c (struct display) <next>: Remove.
1511 <display>: New constructor.
1512 <exp_string>: Now a std::string.
1513 <enabled_p>: Now a bool.
1514 (display_number): Move definition earlier.
1515 (displays): Rename from display_chain. Now a std::vector.
1516 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
1517 (display_command): Update.
1518 (do_one_display, disable_display)
1519 (enable_disable_display_command, do_enable_disable_display):
1520 Update.
1521 (free_display): Remove.
1522 (clear_displays): Rewrite.
1523 (delete_display): Update.
1524 (map_display_numbers): Use function_view. Remove "data"
1525 parameter. Update.
1526 (do_delete_display): Remove.
1527 (undisplay_command): Update.
1528 (do_one_display, do_displays, disable_display)
1529 (info_display_command): Update.
1530 (do_enable_disable_display): Remove.
1531 (enable_disable_display_command)
1532 (clear_dangling_display_expressions): Update.
1533
1534 2020-05-08 Tom Tromey <tom@tromey.com>
1535
1536 * symtab.c (set_symbol_cache_size)
1537 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
1538 (maintenance_print_symbol_cache_statistics): Update.
1539 * symmisc.c (print_symbol_bcache_statistics)
1540 (print_objfile_statistics, maintenance_print_objfiles)
1541 (maintenance_info_symtabs, maintenance_check_symtabs)
1542 (maintenance_expand_symtabs, maintenance_info_line_tables):
1543 Update.
1544 * symfile-debug.c (set_debug_symfile): Update.
1545 * source.c (forget_cached_source_info): Update.
1546 * python/python.c (gdbpy_progspaces): Update.
1547 * psymtab.c (maintenance_info_psymtabs): Update.
1548 * probe.c (parse_probes): Update.
1549 * linespec.c (iterate_over_all_matching_symtabs)
1550 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
1551 * guile/scm-progspace.c (gdbscm_progspaces): Update.
1552 * exec.c (exec_target::close): Update.
1553 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
1554 * breakpoint.c (print_one_breakpoint_location)
1555 (create_longjmp_master_breakpoint)
1556 (create_std_terminate_master_breakpoint): Update.
1557 * progspace.c (program_spaces): Now a std::vector.
1558 (maybe_new_address_space): Update.
1559 (add_program_space): Remove.
1560 (program_space::program_space): Update.
1561 (remove_program_space): Update.
1562 (number_of_program_spaces): Remove.
1563 (print_program_space, update_address_spaces): Update.
1564 * progspace.h (program_spaces): Change type.
1565 (ALL_PSPACES): Remove.
1566 (number_of_program_spaces): Don't declare.
1567 (struct program_space) <next>: Remove.
1568
1569 2020-05-08 Tom Tromey <tom@tromey.com>
1570
1571 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
1572 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
1573 (enable_break): Update.
1574 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
1575 (frv_fdpic_find_canonical_descriptor): Update.
1576 (frv_fetch_objfile_link_map): Update.
1577 * progspace.c (program_space::free_all_objfiles): Update.
1578 (program_space::solibs): New method.
1579 * progspace.h (struct program_space) <solibs>: New method.
1580 * solist.h (master_so_list): Don't declare.
1581 (ALL_SO_LIBS): Remove.
1582 * solib.h (so_list_head): Remove.
1583 (update_solib_list): Update comment.
1584 * solib.c (master_so_list): Remove.
1585 (solib_used, update_solib_list, solib_add)
1586 (info_sharedlibrary_command, clear_solib)
1587 (reload_shared_libraries_1, remove_user_added_objfile): Update.
1588
1589 2020-05-08 Tom Tromey <tom@tromey.com>
1590
1591 * extension.c (extension_languages): Now a std::array.
1592 (ALL_EXTENSION_LANGUAGES): Remove.
1593 (get_ext_lang_defn, get_ext_lang_of_file)
1594 (eval_ext_lang_from_control_command): Update.
1595 (finish_ext_lang_initialization)
1596 (auto_load_ext_lang_scripts_for_objfile)
1597 (ext_lang_type_printers::ext_lang_type_printers)
1598 (apply_ext_lang_type_printers)
1599 (ext_lang_type_printers::~ext_lang_type_printers)
1600 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
1601 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
1602 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
1603 (get_matching_xmethod_workers, ext_lang_colorize)
1604 (ext_lang_before_prompt): Update.
1605 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
1606
1607 2020-05-08 Tom Tromey <tom@tromey.com>
1608
1609 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
1610 overload.
1611 <swap_string, m_string>: Remove.
1612 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
1613 Update.
1614 * stabsread.c (define_symbol, read_type): Update.
1615 * linespec.c (find_linespec_symbols): Update.
1616 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
1617 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
1618 * dbxread.c (read_dbx_symtab): Update.
1619 * cp-support.h (cp_canonicalize_string_full)
1620 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
1621 Return unique_xmalloc_ptr.
1622 * cp-support.c (inspect_type): Update.
1623 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
1624 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
1625 Likewise.
1626 * c-typeprint.c (print_name_maybe_canonical): Update.
1627 * break-catch-throw.c (check_status_exception_catchpoint):
1628 Update.
1629
1630 2020-05-08 Tom de Vries <tdevries@suse.de>
1631
1632 * infrun.c (follow_fork): Copy current_line and current_symtab to
1633 child thread.
1634
1635 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * async-event.c (struct async_signal_handler, struct
1638 async_event_handler): Reformat, remove typedef.
1639
1640 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
1643 access thistype->main_type->dyn_prop_list directly.
1644
1645 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
1646
1647 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
1648 (remove_dyn_prop): Remove. Update all users to use
1649 type::remove_dyn_prop.
1650 * gdbtypes.c (remove_dyn_prop): Rename to...
1651 (type::remove_dyn_prop): ... this.
1652
1653 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
1654
1655 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
1656 (add_dyn_prop): Remove. Update all users to use
1657 type::add_dyn_prop.
1658 * gdbtypes.c (add_dyn_prop): Rename to...
1659 (type::add_dyn_prop): ... this.
1660
1661 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
1662
1663 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
1664 (get_dyn_prop): Remove. Update all users to use
1665 type::dyn_prop.
1666 * gdbtypes.c (get_dyn_prop): Rename to...
1667 (type::dyn_prop): ... this.
1668
1669 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
1670
1671 * gdbtypes.h (struct main_type) <flag_static>: Remove.
1672
1673 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
1676 instruction, skip it if it's there.
1677
1678 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
1681
1682 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
1685 * gdbtypes.c (recursive_dump_type): Remove use of
1686 TYPE_INCOMPLETE.
1687
1688 2020-05-03 Tom Tromey <tom@tromey.com>
1689
1690 * breakpoint.c (catch_command, tcatch_command): Remove.
1691 (_initialize_breakpoint): Use add_basic_prefix_cmd,
1692 add_show_prefix_cmd.
1693 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
1694 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1695 Remove.
1696 (add_internal_problem_command): Use add_basic_prefix_cmd,
1697 add_show_prefix_cmd.
1698 * mips-tdep.c (set_mipsfpu_command): Remove.
1699 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
1700 * dwarf2/index-cache.c (set_index_cache_command): Remove.
1701 (_initialize_index_cache): Use add_basic_prefix_cmd.
1702 * memattr.c (dummy_cmd): Remove.
1703 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
1704 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
1705 (_initialize_tui_win): Use add_basic_prefix_cmd,
1706 add_show_prefix_cmd.
1707 * cli/cli-logging.c (set_logging_command): Remove.
1708 (_initialize_cli_logging): Use add_basic_prefix_cmd,
1709 add_show_prefix_cmd.
1710 (show_logging_command): Remove.
1711 * target.c (target_command): Remove.
1712 (add_target): Use add_basic_prefix_cmd.
1713
1714 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
1715
1716 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
1717
1718 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1719
1720 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
1721 info_command.
1722
1723 2020-04-30 Kamil Rytarowski <n54@gmx.com>
1724
1725 * nbsd-nat.c (nbsd_enable_proc_events)
1726 (nbsd_nat_target::post_startup_inferior): Add.
1727 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
1728 (nbsd_nat_target::update_thread_list): Rewrite.
1729 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
1730 "PTRACE_LWP_CREATE".
1731 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
1732
1733 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1734
1735 * stack.c (_initialize_stack): Remove duplicated creation
1736 of "frame" command and "f" alias.
1737
1738 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
1739
1740 PR gdb/18706
1741 * gdbtypes.c (check_typedef): Calculate size of array of
1742 stubbed type.
1743
1744 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
1745
1746 PR gdb/15559
1747 * i386-tdep.c (i386_push_dummy_call): Call
1748 i386_thiscall_push_dummy_call.
1749 (i386_thiscall_push_dummy_call): New function.
1750 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
1751 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
1752 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
1753
1754 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
1755
1756 * gdbarch.sh (do_read): Add shellcheck disable directive for
1757 warning SC2162.
1758
1759 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
1760
1761 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
1762 "referenced but not assigned" warning.
1763
1764 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
1765
1766 * gdbarch.sh: Remove code that sets fallbackdefault.
1767
1768 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
1769
1770 * gdbarch.sh: Use shell operators && and || instead of
1771 -a and -o.
1772
1773 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
1774
1775 * gdbarch.sh: Use $(...) instead of `...`.
1776
1777 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * gdbarch.sh: Use double quotes around variables.
1780
1781 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
1782
1783 * gdbarch.sh: Use %s with printf, instead of variables in the
1784 format string.
1785
1786 2020-04-29 Tom Tromey <tromey@adacore.com>
1787
1788 PR ada/25875:
1789 * dwarf2/read.c (update_enumeration_type_from_children): Compute
1790 type fields here.
1791 (read_enumeration_type): Call
1792 update_enumeration_type_from_children later. Update comments.
1793 (process_enumeration_scope): Don't create type fields.
1794
1795 2020-04-29 Kamil Rytarowski <n54@gmx.com>
1796
1797 * nbsd-tdep.c: Include "xml-syscall.h".
1798 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
1799
1800 2020-04-29 Kamil Rytarowski <n54@gmx.com>
1801
1802 * nbsd-nat.c: Include "sys/wait.h".
1803 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
1804 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
1805 (nbsd_nat_target::remove_exec_catchpoint)
1806 (nbsd_nat_target::set_syscall_catchpoint): Add.
1807 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
1808 (nbsd_nat_target::insert_exec_catchpoint)
1809 (nbsd_nat_target::remove_exec_catchpoint)
1810 (nbsd_nat_target::set_syscall_catchpoint): Add.
1811 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
1812 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
1813 `nbsd_get_syscall_number'.
1814
1815 2020-04-29 Tom Tromey <tom@tromey.com>
1816
1817 * stack.c (print_block_frame_labels): Remove.
1818
1819 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
1820
1821 PR gdb/17320
1822 * ada-valprint.c (val_print_packed_array_elements): Move array
1823 end bracket to new line.
1824 (ada_val_print_string): Remove extra spaces before first array
1825 element.
1826 * c-valprint.c (c_value_print_array): Likewise.
1827 * m2-valprint.c (m2_print_array_contents): Likewise.
1828 (m2_value_print_inner): Likewise.
1829 * p-valprint.c (pascal_value_print_inner): Likewise.
1830 * valprint.c (generic_val_print_array): Likewise.
1831 (value_print_array_elements): Move first array element and array
1832 end bracket to new line.
1833
1834 2020-04-29 Tom de Vries <tdevries@suse.de>
1835
1836 PR symtab/25889
1837 * linespec.c (find_method): Fix ix calculation.
1838
1839 2020-04-28 Kamil Rytarowski <n54@gmx.com>
1840
1841 * syscalls/update-netbsd.sh: New file.
1842 * syscalls/netbsd.xml: Regenerate.
1843 * data-directory/Makefile.in: Register `netbsd.xml' in
1844 `SYSCALLS_FILES'.
1845
1846 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
1847
1848 * syscalls/update-freebsd.sh: Add double quotes.
1849
1850 2020-04-28 Tom Tromey <tom@tromey.com>
1851
1852 * NEWS: Update.
1853 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
1854 (cmdpy_init): Allow class_tui.
1855
1856 2020-04-28 Mark Williams <mark@myosotissp.com>
1857
1858 PR gdb/24480
1859 * dwarf2read.c: Add missing assingments to list_in_scope when
1860 start_symtab was already called.
1861
1862 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
1863
1864 PR gdb/25881
1865 * dwarf2/read.c (offset_map_type): Use
1866 gdb:hash_enum<sect_offset> as hash function.
1867
1868 2020-04-28 Tom de Vries <tdevries@suse.de>
1869
1870 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
1871 with DW_AT_signature.
1872
1873 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * configure.ac: Remove check for fs_base/gs_base in
1876 user_regs_struct.
1877 * configure: Re-generate.
1878 * config.in: Re-generate.
1879 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
1880 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
1881 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
1882
1883 2020-04-27 Luis Machado <luis.machado@linaro.org>
1884
1885 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
1886 problematic inline frame unwinding situation.
1887 * frame.c (frame_id_computed_p): New function.
1888 * frame.h (frame_id_computed_p): New prototype.
1889
1890 2020-04-26 Tom Tromey <tom@tromey.com>
1891
1892 * command.h (enum command_class) <class_pseudo>: Remove.
1893
1894 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1895
1896 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
1897 and whitespace.
1898
1899 2020-04-25 Kamil Rytarowski <n54@gmx.com>
1900
1901 * inf-ptrace.c (inf_ptrace_target::wait): Remove
1902 `PT_GET_PROCESS_STATE' block.
1903
1904 2020-04-24 Tom Tromey <tom@tromey.com>
1905
1906 * symtab.h (symbol_get_demangled_name): Don't declare.
1907 * symtab.c (symbol_get_demangled_name): Remove.
1908 (general_symbol_info::natural_name)
1909 (general_symbol_info::demangled_name): Update.
1910
1911 2020-04-24 Tom Tromey <tom@tromey.com>
1912
1913 PR rust/25025:
1914 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
1915
1916 2020-04-24 Tom Tromey <tom@tromey.com>
1917
1918 PR symtab/12707:
1919 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
1920 exists.
1921 (new_symbol): Likewise.
1922 * compile/compile-object-load.c (get_out_value_type): Use
1923 symbol_matches_search_name.
1924
1925 2020-04-24 Tom Tromey <tom@tromey.com>
1926
1927 * dwarf2/read.c (add_partial_symbol): Do not call
1928 compute_and_set_names.
1929
1930 2020-04-24 Tom Tromey <tom@tromey.com>
1931
1932 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
1933 overload.
1934
1935 2020-04-24 Tom Tromey <tom@tromey.com>
1936
1937 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
1938 (add_psymbol_to_list): New overload. Make old overload call new
1939 one.
1940 * psympriv.h (add_psymbol_to_list): New overload.
1941
1942 2020-04-24 Tom Tromey <tom@tromey.com>
1943
1944 * dwarf2/read.c (partial_die_info::read) <case
1945 DW_AT_linkage_name>: Use value_as_string.
1946 (dwarf2_string_attr): Use value_as_string.
1947 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1948 method.
1949 * dwarf2/attribute.c (attribute::value_as_string): New method.
1950
1951 2020-04-24 Tom Tromey <tom@tromey.com>
1952
1953 * symtab.c (general_symbol_info::natural_name)
1954 (general_symbol_info::demangled_name): Check for language_rust.
1955
1956 2020-04-24 Tom Tromey <tom@tromey.com>
1957
1958 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
1959 (dwarf2_physname): ... from here.
1960 (partial_die_info::read): Add Rust "{" hack.
1961
1962 2020-04-24 Tom Tromey <tom@tromey.com>
1963
1964 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
1965 method.
1966 (symbol_set_demangled_name): Don't declare.
1967 * symtab.c (general_symbol_info::set_demangled_name): Rename from
1968 symbol_set_demangled_name.
1969 (general_symbol_info::set_language)
1970 (general_symbol_info::compute_and_set_names): Update.
1971 * minsyms.c (minimal_symbol_reader::install): Update.
1972 * dwarf2/read.c (new_symbol): Update.
1973
1974 2020-04-24 Tom Tromey <tromey@adacore.com>
1975
1976 PR python/23662:
1977 * python/py-type.c (convert_field): Handle
1978 FIELD_LOC_KIND_DWARF_BLOCK.
1979 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
1980 (typy_get_dynamic): Nw function.
1981 (type_object_getset): Add "dynamic".
1982 * NEWS: Add entry.
1983
1984 2020-04-24 Tom Tromey <tromey@adacore.com>
1985
1986 * ada-typeprint.c (print_choices, print_variant_part)
1987 (print_record_field_types_dynamic): New functions.
1988 (print_record_field_types): Use print_record_field_types_dynamic.
1989
1990 2020-04-24 Tom Tromey <tromey@adacore.com>
1991
1992 * dwarf2/read.c (handle_data_member_location): New overload.
1993 (dwarf2_add_field): Use it.
1994 (decode_locdesc): Add "computed" parameter. Update comment.
1995 * gdbtypes.c (is_dynamic_type_internal): Also look for
1996 FIELD_LOC_KIND_DWARF_BLOCK.
1997 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
1998 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
1999 virtual base classes.
2000 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
2001 FIELD_LOC_KIND_DWARF_BLOCK.
2002
2003 2020-04-24 Tom Tromey <tromey@adacore.com>
2004
2005 * dwarf2/read.c (read_structure_type): Handle dynamic length.
2006 * gdbtypes.c (is_dynamic_type_internal): Check
2007 TYPE_HAS_DYNAMIC_LENGTH.
2008 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
2009 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
2010 New macros.
2011 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
2012 constant.
2013
2014 2020-04-24 Tom Tromey <tromey@adacore.com>
2015
2016 * dwarf2/read.c (struct variant_field): Rewrite.
2017 (struct variant_part_builder): New.
2018 (struct nextfield): Remove "variant" field. Add "offset".
2019 (struct field_info): Add "current_variant_part" and
2020 "variant_parts".
2021 (alloc_discriminant_info): Remove.
2022 (alloc_rust_variant): New function.
2023 (quirk_rust_enum): Update.
2024 (dwarf2_add_field): Set "offset" member. Don't handle
2025 DW_TAG_variant_part.
2026 (offset_map_type): New typedef.
2027 (convert_variant_range, create_one_variant)
2028 (create_one_variant_part, create_variant_parts)
2029 (add_variant_property): New functions.
2030 (dwarf2_attach_fields_to_type): Call add_variant_property.
2031 (read_structure_type): Don't handle DW_TAG_variant_part.
2032 (handle_variant_part, handle_variant): New functions.
2033 (handle_struct_member_die): Use them.
2034 (process_structure_scope): Don't handle variant parts.
2035 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
2036 (struct discriminant_info): Remove.
2037 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
2038 (struct main_type) <flag_discriminated_union>: Remove.
2039 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
2040 (rust_enum_variant): Return int. Remove "contents". Rewrite.
2041 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
2042 Update.
2043 * valops.c (value_union_variant): Remove.
2044 * value.h (value_union_variant): Don't declare.
2045
2046 2020-04-24 Tom Tromey <tromey@adacore.com>
2047
2048 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
2049 (ada_value_primitive_packed_val): Update.
2050 * ada-valprint.c (ada_value_print_1): Update.
2051 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
2052 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
2053 just an address. Use evaluate_for_locexpr_baton.
2054 (dwarf2_evaluate_property): Update.
2055 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
2056 array_view.
2057 * findvar.c (default_read_var_value): Update.
2058 * gdbtypes.c (compute_variant_fields_inner)
2059 (resolve_dynamic_type_internal): Update.
2060 (resolve_dynamic_type): Change type of valaddr parameter.
2061 * gdbtypes.h (resolve_dynamic_type): Update.
2062 * valarith.c (value_subscripted_rvalue): Update.
2063 * value.c (value_from_contents_and_address): Update.
2064
2065 2020-04-24 Tom Tromey <tromey@adacore.com>
2066
2067 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
2068 "push_initial_value" parameter.
2069 (dwarf2_evaluate_property): Likewise.
2070 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
2071
2072 2020-04-24 Tom Tromey <tromey@adacore.com>
2073
2074 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
2075 (variant::matches, compute_variant_fields_recurse)
2076 (compute_variant_fields_inner, compute_variant_fields): New
2077 functions.
2078 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
2079 Use resolved_type after type is made.
2080 (operator==): Add new cases.
2081 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
2082 (struct discriminant_range, struct variant, struct variant_part):
2083 New.
2084 (union dynamic_prop_data) <variant_parts, original_type>: New
2085 members.
2086 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
2087 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
2088 constants.
2089 * value.c (unpack_bits_as_long): Now public.
2090 * value.h (unpack_bits_as_long): Declare.
2091
2092 2020-04-24 Tom Tromey <tromey@adacore.com>
2093
2094 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
2095 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
2096
2097 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
2098
2099 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
2100
2101 2020-04-24 Kamil Rytarowski <n54@gmx.com>
2102
2103 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
2104 (remove_fork_catchpoint, post_startup_inferior)
2105 (post_attach): Move...
2106 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
2107 (remove_fork_catchpoint, post_startup_inferior)
2108 (post_attach): ...here.
2109 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
2110 (remove_fork_catchpoint, post_startup_inferior)
2111 (post_attach): Move...
2112 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
2113 (remove_fork_catchpoint, post_startup_inferior)
2114 (post_attach): ...here.
2115
2116 2020-04-24 Tom Tromey <tromey@adacore.com>
2117
2118 * nat/windows-nat.h (struct windows_thread_info)
2119 <pc_adjusted>: New member.
2120 * windows-nat.c (windows_fetch_one_register): Check
2121 pc_adjusted.
2122 (windows_nat_target::get_windows_debug_event)
2123 (windows_nat_target::wait): Set pc_adjusted.
2124
2125 2020-04-24 Tom de Vries <tdevries@suse.de>
2126
2127 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
2128 Run gdb-add-index inside temp dir.
2129
2130 2020-04-23 Tom Tromey <tromey@adacore.com>
2131
2132 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
2133 in loop.
2134
2135 2020-04-23 Luis Machado <luis.machado@linaro.org>
2136
2137 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2138 get_frame_register instead of gdbarch_unwind_pc.
2139
2140 2020-04-23 Tom de Vries <tdevries@suse.de>
2141
2142 * symtab.c (lookup_global_symbol): Prefer def over decl.
2143
2144 2020-04-23 Tom de Vries <tdevries@suse.de>
2145
2146 PR symtab/25807
2147 * block.c (best_symbol, better_symbol): Promote to external.
2148 * block.h (best_symbol, better_symbol): Declare.
2149 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
2150 decl.
2151
2152 2020-04-23 Tom Tromey <tromey@adacore.com>
2153
2154 PR ada/25837:
2155 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
2156 "const char *", not a "const std::string &".
2157 <name_and_matcher::operator==>: Update.
2158 * unittests/lookup_name_info-selftests.c: Change type of
2159 "result".
2160
2161 2020-04-23 Tom Tromey <tom@tromey.com>
2162
2163 * inferior.h (iterate_over_inferiors): Don't declare.
2164 * inferior.c (iterate_over_inferiors): Remove.
2165 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
2166 Remove.
2167 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
2168 use iterate_over_inferiors.
2169 (darwin_resume_inferior_it)
2170 (struct resume_inferior_threads_param)
2171 (darwin_resume_inferior_threads_it): Remove.
2172 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
2173
2174 2020-04-23 Tom de Vries <tdevries@suse.de>
2175
2176 * blockframe.c (find_pc_partial_function): Use
2177 find_pc_sect_compunit_symtab rather than
2178 objfile->sf->qf->find_pc_sect_compunit_symtab.
2179
2180 2020-04-22 Tom de Vries <tdevries@suse.de>
2181
2182 PR symtab/25764
2183 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
2184 in psymtabs.
2185
2186 2020-04-22 Tom de Vries <tdevries@suse.de>
2187
2188 PR symtab/25801
2189 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
2190 symtabs.
2191
2192 2020-04-22 Tom de Vries <tdevries@suse.de>
2193
2194 PR symtab/25700
2195 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
2196 CU if already created.
2197
2198 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2199
2200 * infrun.c (displaced_step_fixup): Switch to the event_thread
2201 before calling displaced_step_restore, not after.
2202
2203 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2204
2205 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
2206 its inferior is not recorded by us.
2207 (record_btrace_target_open): Replace call to
2208 all_non_exited_threads () with call to current_inferior
2209 ()->non_exited_threads ().
2210 (record_btrace_target::stop_recording): Likewise.
2211 (record_btrace_target::close): Likewise.
2212 (record_btrace_target::wait): Likewise.
2213 (record_btrace_target::record_stop_replaying): Likewise.
2214
2215 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2216
2217 * btrace.c (btrace_enable): Throw an error on double enables and
2218 when enabling recording fails.
2219 (btrace_disable): Throw an error if the thread is not recorded.
2220
2221 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2222
2223 * record-btrace.c (record_btrace_target::fetch_registers): Forward
2224 request if we do not have a thread_info.
2225
2226 2020-04-21 Tom de Vries <tdevries@suse.de>
2227
2228 PR gdb/25471
2229 * thread.c
2230 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
2231 exception in get_frame_id.
2232
2233 2020-04-20 Tom Tromey <tromey@adacore.com>
2234
2235 * python/python.c (struct gdbpy_event): Mark move constructor as
2236 noexcept.
2237 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
2238 constructor as noexcept.
2239 * completer.h (struct completion_result): Mark move constructor as
2240 noexcept.
2241 * completer.c (completion_result::completion_result): Use
2242 initialization style. Don't call reset_match_list.
2243
2244 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
2245
2246 * MAINTAINERS (Write After Approval): Add myself.
2247
2248 2020-04-18 Tom Tromey <tom@tromey.com>
2249
2250 * windows-tdep.c (init_w32_command_list)
2251 (w32_prefix_command_valid): Restore.
2252 (_initialize_windows_tdep): Call init_w32_command_list.
2253
2254 2020-04-18 Tom Tromey <tom@tromey.com>
2255
2256 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
2257 * value.c (value_fn_field): Update.
2258 * valops.c (find_function_in_inferior)
2259 (value_allocate_space_in_inferior): Update.
2260 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2261 Update.
2262 * tui/tui-source.c (tui_source_window::set_contents): Update.
2263 * symtab.c (lookup_global_or_static_symbol)
2264 (find_function_start_sal_1, skip_prologue_sal)
2265 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
2266 * symmisc.c (dump_msymbols, dump_symtab_1)
2267 (maintenance_print_one_line_table): Update.
2268 * symfile.c (init_entry_point_info, section_is_mapped)
2269 (list_overlays_command, simple_read_overlay_table)
2270 (simple_overlay_update_1): Update.
2271 * stap-probe.c (handle_stap_probe): Update.
2272 * stabsread.c (dbx_init_float_type, define_symbol)
2273 (read_one_struct_field, read_enum_type, read_range_type): Update.
2274 * source.c (info_line_command): Update.
2275 * python/python.c (gdbpy_source_objfile_script)
2276 (gdbpy_execute_objfile_script): Update.
2277 * python/py-type.c (save_objfile_types): Update.
2278 * python/py-objfile.c (py_free_objfile): Update.
2279 * python/py-inferior.c (python_new_objfile): Update.
2280 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
2281 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
2282 (maintenance_check_psymtabs): Update.
2283 * printcmd.c (info_address_command): Update.
2284 * objfiles.h (struct objfile) <arch>: New method, from
2285 get_objfile_arch.
2286 (get_objfile_arch): Don't declare.
2287 * objfiles.c (get_objfile_arch): Remove.
2288 (filter_overlapping_sections): Update.
2289 * minsyms.c (msymbol_is_function): Update.
2290 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
2291 (output_nondebug_symbol): Update.
2292 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
2293 (mdebug_expand_psymtab): Update.
2294 * machoread.c (macho_add_oso_symfile): Update.
2295 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
2296 Update.
2297 * linux-fork.c (checkpoint_command): Update.
2298 * linespec.c (convert_linespec_to_sals): Update.
2299 * jit.c (finalize_symtab): Update.
2300 * infrun.c (insert_exception_resume_from_probe): Update.
2301 * ia64-tdep.c (ia64_find_unwind_table): Update.
2302 * hppa-tdep.c (internalize_unwinds): Update.
2303 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
2304 Update.
2305 * gcore.c (call_target_sbrk): Update.
2306 * elfread.c (record_minimal_symbol, elf_symtab_read)
2307 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2308 (elf_gnu_ifunc_resolve_by_got): Update.
2309 * dwarf2/read.c (create_addrmap_from_index)
2310 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2311 (read_debug_names_from_section)
2312 (process_psymtab_comp_unit_reader, add_partial_symbol)
2313 (add_partial_subprogram, process_full_comp_unit)
2314 (read_file_scope, read_func_scope, read_lexical_block_scope)
2315 (read_call_site_scope, dwarf2_ranges_read)
2316 (dwarf2_record_block_ranges, dwarf2_add_field)
2317 (mark_common_block_symbol_computed, read_tag_pointer_type)
2318 (read_tag_string_type, dwarf2_init_float_type)
2319 (dwarf2_init_complex_target_type, read_base_type)
2320 (partial_die_info::read, partial_die_info::read)
2321 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
2322 (dwarf2_fetch_die_loc_sect_off): Update.
2323 * dwarf2/loc.c (dwarf2_find_location_expression)
2324 (class dwarf_evaluate_loc_desc, rw_pieced_value)
2325 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
2326 (dwarf2_loc_desc_get_symbol_read_needs)
2327 (locexpr_describe_location_piece, locexpr_describe_location_1)
2328 (loclist_describe_location): Update.
2329 * dwarf2/index-write.c (write_debug_names): Update.
2330 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
2331 * dtrace-probe.c (dtrace_process_dof): Update.
2332 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
2333 (process_one_symbol): Update.
2334 * ctfread.c (ctf_init_float_type, read_base_type): Update.
2335 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
2336 (coff_read_enum_type): Update.
2337 * cli/cli-cmds.c (edit_command, list_command): Update.
2338 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
2339 * breakpoint.c (create_overlay_event_breakpoint)
2340 (create_longjmp_master_breakpoint)
2341 (create_std_terminate_master_breakpoint)
2342 (create_exception_master_breakpoint, get_sal_arch): Update.
2343 * block.c (block_gdbarch): Update.
2344 * annotate.c (annotate_source_line): Update.
2345
2346 2020-04-17 Tom Tromey <tromey@adacore.com>
2347
2348 * auto-load.c (show_auto_load_cmd): Remove.
2349 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
2350 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
2351 (maintenance_print_arc_command): Remove.
2352 * tui/tui-win.c (tui_command): Remove.
2353 (tui_get_cmd_list): Use add_basic_prefix_cmd.
2354 * tui/tui-layout.c (tui_layout_command): Remove.
2355 (_initialize_tui_layout): Use add_basic_prefix_cmd.
2356 * python/python.c (user_set_python, user_show_python): Remove.
2357 (_initialize_python): Use add_basic_prefix_cmd,
2358 add_show_prefix_cmd.
2359 * guile/guile.c (set_guile_command, show_guile_command): Remove.
2360 (install_gdb_commands): Use add_basic_prefix_cmd,
2361 add_show_prefix_cmd.
2362 (info_guile_command): Remove.
2363 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
2364 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
2365 add_show_prefix_cmd.
2366 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
2367 Remove do_set and do_show parameters.
2368 * cli/cli-style.c (set_style, show_style): Remove.
2369 (_initialize_cli_style): Use add_basic_prefix_cmd,
2370 add_show_prefix_cmd.
2371 (cli_style_option::add_setshow_commands): Remove do_set and
2372 do_show parameters.
2373 (cli_style_option::add_setshow_commands): Use
2374 add_basic_prefix_cmd, add_show_prefix_cmd.
2375 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
2376 (set_style_name): Remove.
2377 * cli/cli-dump.c (dump_command, append_command): Remove.
2378 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2379 (tekhex_dump_command, binary_dump_command)
2380 (binary_append_command): Remove.
2381 (_initialize_cli_dump): Use add_basic_prefix_cmd.
2382 * windows-tdep.c (w32_prefix_command_valid): Remove global.
2383 (init_w32_command_list): Remove; move into ...
2384 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
2385 * valprint.c (set_print, show_print, set_print_raw)
2386 (show_print_raw): Remove.
2387 (_initialize_valprint): Use add_basic_prefix_cmd,
2388 add_show_prefix_cmd.
2389 * typeprint.c (set_print_type, show_print_type): Remove.
2390 (_initialize_typeprint): Use add_basic_prefix_cmd,
2391 add_show_prefix_cmd.
2392 * record.c (set_record_command, show_record_command): Remove.
2393 (_initialize_record): Use add_basic_prefix_cmd,
2394 add_show_prefix_cmd.
2395 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
2396 add_show_prefix_cmd.
2397 (info_command, show_command, set_debug, show_debug): Remove.
2398 * top.h (set_history, show_history): Don't declare.
2399 * top.c (set_history, show_history): Remove.
2400 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2401 (unset_tdesc_cmd): Remove.
2402 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
2403 add_show_prefix_cmd.
2404 * symtab.c (info_module_command): Remove.
2405 (_initialize_symtab): Use add_basic_prefix_cmd.
2406 * symfile.c (overlay_command): Remove.
2407 (_initialize_symfile): Use add_basic_prefix_cmd.
2408 * sparc64-tdep.c (info_adi_command): Remove.
2409 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
2410 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
2411 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
2412 add_show_prefix_cmd.
2413 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
2414 (_initialize_serial): Use add_basic_prefix_cmd,
2415 add_show_prefix_cmd.
2416 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
2417 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
2418 add_show_prefix_cmd.
2419 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
2420 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
2421 add_show_prefix_cmd.
2422 * riscv-tdep.c (show_riscv_command, set_riscv_command)
2423 (show_debug_riscv_command, set_debug_riscv_command): Remove.
2424 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
2425 add_show_prefix_cmd.
2426 * remote.c (remote_command, set_remote_cmd): Remove.
2427 (_initialize_remote): Use add_basic_prefix_cmd.
2428 * record-full.c (set_record_full_command)
2429 (show_record_full_command): Remove.
2430 (_initialize_record_full): Use add_basic_prefix_cmd,
2431 add_show_prefix_cmd.
2432 * record-btrace.c (cmd_set_record_btrace)
2433 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
2434 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
2435 (cmd_show_record_btrace_pt): Remove.
2436 (_initialize_record_btrace): Use add_basic_prefix_cmd,
2437 add_show_prefix_cmd.
2438 * ravenscar-thread.c (set_ravenscar_command)
2439 (show_ravenscar_command): Remove.
2440 (_initialize_ravenscar): Use add_basic_prefix_cmd,
2441 add_show_prefix_cmd.
2442 * mips-tdep.c (show_mips_command, set_mips_command)
2443 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
2444 add_show_prefix_cmd.
2445 * maint.c (maintenance_command, maintenance_info_command)
2446 (maintenance_check_command, maintenance_print_command)
2447 (maintenance_set_cmd, maintenance_show_cmd): Remove.
2448 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
2449 add_show_prefix_cmd.
2450 (show_per_command_cmd): Remove.
2451 * maint-test-settings.c (maintenance_set_test_settings_cmd):
2452 Remove.
2453 (maintenance_show_test_settings_cmd): Remove.
2454 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
2455 add_show_prefix_cmd.
2456 * maint-test-options.c (maintenance_test_options_command):
2457 Remove.
2458 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
2459 * macrocmd.c (macro_command): Remove
2460 (_initialize_macrocmd): Use add_basic_prefix_cmd.
2461 * language.c (set_check, show_check): Remove.
2462 (_initialize_language): Use add_basic_prefix_cmd,
2463 add_show_prefix_cmd.
2464 * infcmd.c (unset_command): Remove.
2465 (_initialize_infcmd): Use add_basic_prefix_cmd.
2466 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
2467 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
2468 add_show_prefix_cmd.
2469 * go32-nat.c (go32_info_dos_command): Remove.
2470 (_initialize_go32_nat): Use add_basic_prefix_cmd.
2471 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
2472 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
2473 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
2474 (_initialize_frame): Use add_basic_prefix_cmd,
2475 add_show_prefix_cmd.
2476 * dcache.c (set_dcache_command, show_dcache_command): Remove.
2477 (_initialize_dcache): Use add_basic_prefix_cmd,
2478 add_show_prefix_cmd.
2479 * cp-support.c (maint_cplus_command): Remove.
2480 (_initialize_cp_support): Use add_basic_prefix_cmd.
2481 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
2482 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
2483 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
2484 add_basic_prefix_cmd, add_show_prefix_cmd.
2485 * breakpoint.c (save_command): Remove.
2486 (_initialize_breakpoint): Use add_basic_prefix_cmd.
2487 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
2488 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
2489 add_show_prefix_cmd.
2490 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
2491 (set_ada_command, show_ada_command): Remove.
2492 (_initialize_ada_language): Use add_basic_prefix_cmd,
2493 add_show_prefix_cmd.
2494 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
2495
2496 2020-04-16 Kamil Rytarowski <n54@gmx.com>
2497
2498 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
2499 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
2500
2501 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
2504 warning messages.
2505
2506 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
2509 import table is not at beginning of .idata section.
2510
2511 2020-04-16 Pedro Alves <palves@redhat.com>
2512
2513 * inferior.c (delete_inferior): Use delete operator directly
2514 instead of delete_program_space.
2515 * progspace.c (add_program_space): New, factored out from
2516 program_space::program_space.
2517 (remove_program_space): New, factored out from
2518 delete_program_space.
2519 (program_space::program_space): Remove intro comment. Rewrite.
2520 (program_space::~program_space): Remove intro comment. Call
2521 remove_program_space.
2522 (delete_program_space): Delete.
2523 * progspace.h (program_space::program_space): Make explicit. Move
2524 intro comment here, adjusted.
2525 (program_space::~program_space): Move intro comment here,
2526 adjusted.
2527 (delete_program_space): Remove.
2528
2529 2020-04-16 Tom Tromey <tromey@adacore.com>
2530
2531 * windows-nat.c (windows_nat::handle_access_violation): New
2532 function.
2533 * nat/windows-nat.h (handle_access_violation): Declare.
2534 * nat/windows-nat.c (handle_exception): Move Cygwin code to
2535 windows-nat.c. Call handle_access_violation.
2536
2537 2020-04-16 Tom de Vries <tdevries@suse.de>
2538
2539 PR symtab/25791
2540 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
2541 CUs without psymtab.
2542
2543 2020-04-16 Kevin Buettner <kevinb@redhat.com>
2544
2545 * python/python.c (do_start_initialization): Don't call
2546 PyEval_InitThreads for Python 3.9 and beyond.
2547
2548 2020-04-15 Kamil Rytarowski <n54@gmx.com>
2549
2550 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
2551 thread functions.
2552 (obsd_nat_target::wait): Likewise.
2553
2554 2020-04-15 Tom Tromey <tromey@adacore.com>
2555
2556 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2557 (DEBUG_EXCEPT): Use debug_printf.
2558
2559 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * completer.c (class completion_tracker::completion_hash_entry)
2562 <hash_name>: New member function.
2563 (completion_tracker::discard_completions): New callback to hash a
2564 completion_hash_entry, pass this to htab_create_alloc.
2565
2566 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
2567
2568 * windows-nat.c (windows_make_so): Warn rather than stopping with
2569 an error if realpath() fails.
2570
2571 2020-04-14 Kamil Rytarowski <n54@gmx.com>
2572
2573 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
2574 (nbsd_nat_target::info_proc): Add do_status.
2575
2576 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
2577 Tom de Vries <tdevries@suse.de>
2578
2579 PR symtab/25718
2580 * psympriv.h (struct partial_symtab::read_symtab)
2581 (struct partial_symtab::expand_psymtab)
2582 (struct partial_symtab::read_dependencies): Update comments.
2583 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
2584 read_symtab for includer.
2585 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
2586 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
2587 (struct dwarf2_include_psymtab::m_readin): Remove.
2588 (struct dwarf2_include_psymtab::includer): New member function.
2589 (dwarf2_psymtab::expand_psymtab): Assert !readin.
2590
2591 2020-04-14 Tom de Vries <tdevries@suse.de>
2592
2593 PR symtab/25720
2594 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
2595 with NULL symbol_matcher and lookup_name.
2596 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
2597 and lookup_name.
2598 * dwarf2/read.c (dw2_expand_symtabs_matching)
2599 (dw2_debug_names_expand_symtabs_matching): Same.
2600 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
2601 Make lookup_name a pointer. Update comment.
2602 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
2603 lookup_name being a pointer.
2604 * symfile.c (expand_symtabs_matching): Same.
2605 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
2606 * linespec.c (iterate_over_all_matching_symtabs): Same.
2607
2608 2020-04-13 Tom Tromey <tom@tromey.com>
2609
2610 * run-on-main-thread.c: Update include.
2611 * unittests/main-thread-selftests.c: Update include.
2612 * tui/tui-win.c: Update include.
2613 * tui/tui-io.c: Update include.
2614 * tui/tui-interp.c: Update include.
2615 * tui/tui-hooks.c: Update include.
2616 * top.h: Update include.
2617 * top.c: Update include.
2618 * ser-base.c: Update include.
2619 * remote.c: Update include.
2620 * remote-notif.c: Update include.
2621 * remote-fileio.c: Update include.
2622 * record-full.c: Update include.
2623 * record-btrace.c: Update include.
2624 * python/python.c: Update include.
2625 * posix-hdep.c: Update include.
2626 * mingw-hdep.c: Update include.
2627 * mi/mi-main.c: Update include.
2628 * mi/mi-interp.c: Update include.
2629 * main.c: Update include.
2630 * linux-nat.c: Update include.
2631 * interps.c: Update include.
2632 * infrun.c: Update include.
2633 * inf-loop.c: Update include.
2634 * event-top.c: Update include.
2635 * event-loop.c: Move to ../gdbsupport/.
2636 * event-loop.h: Move to ../gdbsupport/.
2637 * async-event.h: Update include.
2638 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
2639
2640 2020-04-13 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui-win.c: Include async-event.h.
2643 * remote.c: Include async-event.h.
2644 * remote-notif.c: Include async-event.h.
2645 * record-full.c: Include async-event.h.
2646 * record-btrace.c: Include async-event.h.
2647 * infrun.c: Include async-event.h.
2648 * event-top.c: Include async-event.h.
2649 * event-loop.h: Move some declarations to async-event.h.
2650 * event-loop.c: Don't include ser-event.h or top.h. Move some
2651 code to async-event.c.
2652 * async-event.h: New file.
2653 * async-event.c: New file.
2654 * Makefile.in (COMMON_SFILES): Add async-event.c.
2655 (HFILES_NO_SRCDIR): Add async-event.h.
2656
2657 2020-04-13 Tom Tromey <tom@tromey.com>
2658
2659 * utils.c (flush_streams): New function.
2660 * event-loop.c (gdb_wait_for_event): Call flush_streams.
2661
2662 2020-04-13 Tom Tromey <tom@tromey.com>
2663
2664 * event-loop.c (handle_file_event): Use warning, not
2665 printf_unfiltered.
2666
2667 2020-04-13 Tom Tromey <tom@tromey.com>
2668
2669 * event-loop.c: Include <chrono>.
2670
2671 2020-04-13 Tom Tromey <tom@tromey.com>
2672
2673 * gdb_select.h: Move to ../gdbsupport/.
2674 * event-loop.c: Update include path.
2675 * top.c: Update include path.
2676 * ser-base.c: Update include path.
2677 * ui-file.c: Update include path.
2678 * ser-tcp.c: Update include path.
2679 * guile/scm-ports.c: Update include path.
2680 * posix-hdep.c: Update include path.
2681 * ser-unix.c: Update include path.
2682 * gdb_usleep.c: Update include path.
2683 * mingw-hdep.c: Update include path.
2684 * inflow.c: Update include path.
2685 * infrun.c: Update include path.
2686 * event-top.c: Update include path.
2687
2688 2020-04-13 Tom Tromey <tom@tromey.com>
2689
2690 * configure: Rebuild.
2691 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
2692
2693 2020-04-13 Tom Tromey <tom@tromey.com>
2694
2695 * event-loop.h (start_event_loop): Don't declare.
2696 * event-loop.c (start_event_loop): Move...
2697 * main.c (start_event_loop): ...here. Now static.
2698
2699 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
2700
2701 * MAINTAINERS: Update my email address.
2702
2703 2020-04-12 Kamil Rytarowski <n54@gmx.com>
2704
2705 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
2706 IP_ALL.
2707
2708 2020-04-12 Kamil Rytarowski <n54@gmx.com>
2709
2710 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
2711 (nbsd_nat_target::info_proc): Add do_cmdline.
2712
2713 2020-04-12 Kamil Rytarowski <n54@gmx.com>
2714
2715 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
2716 (nbsd_nat_target::info_proc): Add do_cwd.
2717
2718 2020-04-12 Kamil Rytarowski <n54@gmx.com>
2719
2720 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
2721
2722 2020-04-11 Kamil Rytarowski <n54@gmx.com>
2723
2724 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
2725 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
2726 (nbsd_nat_target::info_proc): New functions.
2727 * nbsd-nat.c (kinfo_get_vmmap): New function.
2728 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
2729 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
2730 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
2731 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
2732 functions.
2733 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
2734 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2735 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2736 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
2737 (KINFO_VME_FLAG_GROWS_DOWN): New.
2738
2739 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
2740
2741 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
2742 bit shift.
2743
2744 2020-04-10 Tom Tromey <tromey@adacore.com>
2745
2746 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
2747
2748 2020-04-10 Tom Tromey <tromey@adacore.com>
2749
2750 * symtab.c (get_symbol_address, get_msymbol_address): Skip
2751 separate debug files.
2752
2753 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
2754
2755 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
2756 Move to...
2757 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
2758 ... here.
2759 * windows-nat.c (windows_nat_target::get_windows_debug_event):
2760 Check for STATUS_WX86_BREAKPOINT.
2761 (windows_nat_target::wait): Same.
2762
2763 2020-04-10 Tom de Vries <tdevries@suse.de>
2764
2765 PR cli/25808
2766 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
2767
2768 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2769
2770 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
2771 (Write After Approval): Remove Tom de Vries.
2772
2773 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
2774
2775 revert partially:
2776 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2777
2778 * buildsym.c (record_line): Fix undefined behavior and preserve
2779 lines at eof.
2780
2781 2020-04-09 Kamil Rytarowski <n54@gmx.com>
2782
2783 * auxv.h (svr4_auxv_parse): New.
2784 * auxv.c (default_auxv_parse): Split into default_auxv_parse
2785 and generic_auxv_parse.
2786 (svr4_auxv_parse): Add.
2787 * obsd-tdep.c: Include "auxv.h".
2788 (obsd_auxv_parse): Remove.
2789 (obsd_init_abi): Remove comment.
2790 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
2791 from `obsd_auxv_parse' to `svr4_auxv_parse'.
2792 * nbsd-tdep.c: Include "auxv.h".
2793 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
2794
2795 2020-04-08 Tom Tromey <tromey@adacore.com>
2796
2797 * nat/windows-nat.h (last_wait_event): Don't declare.
2798 (wait_for_debug_event): Update comment.
2799 * nat/windows-nat.c (last_wait_event): Now static.
2800
2801 2020-04-08 Tom Tromey <tromey@adacore.com>
2802
2803 * windows-nat.c (wait_for_debug_event): Move to
2804 nat/windows-nat.c.
2805 * nat/windows-nat.h (wait_for_debug_event): Declare.
2806 * nat/windows-nat.c (wait_for_debug_event): Move from
2807 windows-nat.c. No longer static.
2808
2809 2020-04-08 Tom Tromey <tromey@adacore.com>
2810
2811 * windows-nat.c (get_windows_debug_event): Use
2812 fetch_pending_stop.
2813 * nat/windows-nat.h (fetch_pending_stop): Declare.
2814 * nat/windows-nat.c (fetch_pending_stop): New function.
2815
2816 2020-04-08 Tom Tromey <tromey@adacore.com>
2817
2818 * windows-nat.c (windows_continue): Use matching_pending_stop and
2819 continue_last_debug_event.
2820 * nat/windows-nat.h (matching_pending_stop)
2821 (continue_last_debug_event): Declare.
2822 * nat/windows-nat.c (DEBUG_EVENTS): New define.
2823 (matching_pending_stop, continue_last_debug_event): New
2824 functions.
2825
2826 2020-04-08 Tom Tromey <tromey@adacore.com>
2827
2828 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
2829 (handle_exception_result): Move to nat/windows-nat.h.
2830 (DEBUG_EXCEPTION_SIMPLE): Remove.
2831 (windows_nat::handle_ms_vc_exception): New function.
2832 (handle_exception): Move to nat/windows-nat.c.
2833 (get_windows_debug_event): Update.
2834 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
2835 nat/windows-nat.c.
2836 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
2837 (handle_exception_result): Move from windows-nat.c.
2838 (handle_exception): Declare.
2839 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
2840 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
2841 windows-nat.c.
2842
2843 2020-04-08 Tom Tromey <tromey@adacore.com>
2844
2845 * windows-nat.c (exception_count, event_count): Remove.
2846 (handle_exception, get_windows_debug_event)
2847 (do_initial_windows_stuff): Update.
2848
2849 2020-04-08 Tom Tromey <tromey@adacore.com>
2850
2851 * windows-nat.c (windows_nat::handle_load_dll)
2852 (windows_nat::handle_unload_dll): Rename. No longer static.
2853 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
2854 Declare.
2855
2856 2020-04-08 Tom Tromey <tromey@adacore.com>
2857
2858 * complaints.h (stop_whining): Declare at top-level.
2859 (complaint): Don't declare stop_whining.
2860
2861 2020-04-08 Tom Tromey <tromey@adacore.com>
2862
2863 * windows-nat.c (windows_nat::handle_output_debug_string):
2864 Rename. No longer static.
2865 * nat/windows-nat.h (handle_output_debug_string): Declare.
2866
2867 2020-04-08 Tom Tromey <tromey@adacore.com>
2868
2869 * windows-nat.c (current_process_handle, current_process_id)
2870 (main_thread_id, last_sig, current_event, last_wait_event)
2871 (current_windows_thread, desired_stop_thread_id, pending_stops)
2872 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
2873 (display_selectors, fake_create_process)
2874 (get_windows_debug_event): Update.
2875 * nat/windows-nat.h (current_process_handle, current_process_id)
2876 (main_thread_id, last_sig, current_event, last_wait_event)
2877 (current_windows_thread, desired_stop_thread_id, pending_stops)
2878 (struct pending_stop, siginfo_er): Move from windows-nat.c.
2879 * nat/windows-nat.c (current_process_handle, current_process_id)
2880 (main_thread_id, last_sig, current_event, last_wait_event)
2881 (current_windows_thread, desired_stop_thread_id, pending_stops)
2882 (siginfo_er): New globals. Move from windows-nat.c.
2883
2884 2020-04-08 Tom Tromey <tromey@adacore.com>
2885
2886 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
2887 (handle_load_dll): Update.
2888 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
2889
2890 2020-04-08 Tom Tromey <tromey@adacore.com>
2891
2892 * windows-nat.c (enum thread_disposition_type): Move to
2893 nat/windows-nat.h.
2894 (windows_nat::thread_rec): Rename from thread_rec. No longer
2895 static.
2896 (windows_add_thread, windows_nat_target::fetch_registers)
2897 (windows_nat_target::store_registers, handle_exception)
2898 (windows_nat_target::resume, get_windows_debug_event)
2899 (windows_nat_target::get_tib_address)
2900 (windows_nat_target::thread_name)
2901 (windows_nat_target::thread_alive): Update.
2902 * nat/windows-nat.h (enum thread_disposition_type): Move from
2903 windows-nat.c.
2904 (thread_rec): Declare.
2905
2906 2020-04-08 Tom Tromey <tromey@adacore.com>
2907
2908 * windows-nat.c: Add "using namespace".
2909 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
2910 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
2911
2912 2020-04-08 Tom Tromey <tromey@adacore.com>
2913
2914 * nat/windows-nat.h (struct windows_thread_info): Declare
2915 destructor.
2916 * nat/windows-nat.c (~windows_thread_info): New.
2917
2918 2020-04-08 Tom Tromey <tromey@adacore.com>
2919
2920 PR gdb/22992
2921 * windows-nat.c (current_event): Update comment.
2922 (last_wait_event, desired_stop_thread_id): New globals.
2923 (struct pending_stop): New.
2924 (pending_stops): New global.
2925 (windows_nat_target) <stopped_by_sw_breakpoint>
2926 <supports_stopped_by_sw_breakpoint>: New methods.
2927 (windows_fetch_one_register): Add assertions. Adjust PC.
2928 (windows_continue): Handle pending stops. Suspend other threads
2929 when stepping. Use last_wait_event
2930 (wait_for_debug_event): New function.
2931 (get_windows_debug_event): Use wait_for_debug_event. Handle
2932 pending stops. Queue spurious stops.
2933 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
2934 (windows_nat_target::kill): Use wait_for_debug_event.
2935 * nat/windows-nat.h (struct windows_thread_info)
2936 <stopped_at_software_breakpoint>: New field.
2937 * nat/windows-nat.c (windows_thread_info::resume): Clear
2938 stopped_at_software_breakpoint.
2939
2940 2020-04-08 Tom Tromey <tromey@adacore.com>
2941
2942 * windows-nat.c (enum thread_disposition_type): New.
2943 (thread_rec): Replace "get_context" parameter with "disposition";
2944 change type.
2945 (windows_add_thread, windows_nat_target::fetch_registers)
2946 (windows_nat_target::store_registers, handle_exception)
2947 (windows_nat_target::resume, get_windows_debug_event)
2948 (windows_nat_target::get_tib_address)
2949 (windows_nat_target::thread_name)
2950 (windows_nat_target::thread_alive): Update.
2951
2952 2020-04-08 Tom Tromey <tromey@adacore.com>
2953
2954 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
2955 (windows_continue): Use windows_continue::resume.
2956 * nat/windows-nat.h (struct windows_thread_info) <suspend,
2957 resume>: Declare new methods.
2958 * nat/windows-nat.c: New file.
2959 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
2960
2961 2020-04-08 Tom Tromey <tromey@adacore.com>
2962
2963 * windows-nat.c (windows_add_thread, windows_delete_thread)
2964 (windows_nat_target::fetch_registers)
2965 (windows_nat_target::store_registers, fake_create_process)
2966 (windows_nat_target::resume, windows_nat_target::resume)
2967 (get_windows_debug_event, windows_nat_target::wait)
2968 (windows_nat_target::pid_to_str)
2969 (windows_nat_target::get_tib_address)
2970 (windows_nat_target::get_ada_task_ptid)
2971 (windows_nat_target::thread_name)
2972 (windows_nat_target::thread_alive): Use lwp, not tid.
2973
2974 2020-04-08 Tom Tromey <tromey@adacore.com>
2975
2976 * windows-nat.c (handle_exception)
2977 (windows_nat_target::thread_name): Update.
2978 * nat/windows-nat.h (windows_thread_info): Remove destructor.
2979 <name>: Now unique_xmalloc_ptr.
2980
2981 2020-04-08 Tom Tromey <tromey@adacore.com>
2982
2983 * windows-nat.c (thread_rec)
2984 (windows_nat_target::fetch_registers): Update.
2985 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
2986 Update comment.
2987 <debug_registers_changed, reload_context>: Now bool.
2988
2989 2020-04-08 Tom Tromey <tromey@adacore.com>
2990
2991 * windows-nat.c (windows_add_thread): Use new.
2992 (windows_init_thread_list, windows_delete_thread): Use delete.
2993 (get_windows_debug_event): Update.
2994 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
2995 destructor, and initializers.
2996
2997 2020-04-08 Tom Tromey <tromey@adacore.com>
2998
2999 * windows-nat.c (struct windows_thread_info): Remove.
3000 * nat/windows-nat.h: New file.
3001
3002 2020-04-08 Tom Tromey <tromey@adacore.com>
3003
3004 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
3005 (thread_rec, windows_add_thread, windows_delete_thread)
3006 (windows_continue): Update.
3007
3008 2020-04-08 Tom Tromey <tromey@adacore.com>
3009
3010 * windows-nat.c (struct windows_thread_info): Remove typedef.
3011 (thread_head): Remove.
3012 (thread_list): New global.
3013 (thread_rec, windows_add_thread, windows_init_thread_list)
3014 (windows_delete_thread, windows_continue): Update.
3015
3016 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * windows-tdep.h (windows_init_abi): Add comment.
3019 (cygwin_init_abi): New declaration.
3020 * windows-tdep.c: Split signal enumeration in two, one for
3021 Windows and one for Cygwin.
3022 (windows_gdb_signal_to_target): Only deal with signal of the
3023 Windows OS ABI.
3024 (cygwin_gdb_signal_to_target): New function.
3025 (windows_init_abi): Rename to windows_init_abi_common, don't set
3026 gdb_signal_to_target gdbarch method. Add new new function with
3027 this name.
3028 (cygwin_init_abi): New function.
3029 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
3030 comment. Don't call windows_init_abi.
3031 (amd64_windows_init_abi): Add comment, call windows_init_abi.
3032 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
3033 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
3034 i386_windows_init_abi_common, don't call windows_init_abi. Add
3035 a new function of this name.
3036 (i386_cygwin_init_abi): New function.
3037 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
3038 OS ABI Cygwin.
3039
3040 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
3043 parameter.c.
3044 (dwarf2_read_gdb_index): Update.
3045
3046 2020-04-07 Kamil Rytarowski <n54@gmx.com>
3047
3048 * nbsd-tdep.c: Include "objfiles.h".
3049 (nbsd_skip_solib_resolver): New.
3050 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
3051
3052 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3053
3054 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
3055 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
3056 with DW_LLE_base_addressx are being emitted in DWARFv5.
3057 Add the newly added kind DW_LOC_OFFSET_PAIR also.
3058 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
3059 unsigned integer.
3060
3061 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3062
3063 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
3064 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
3065 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
3066 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
3067 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
3068 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
3069 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
3070
3071
3072 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3073
3074 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
3075 (read_loclist_index): New function definition.
3076 (lookup_loclist_base): New function definition.
3077 (read_loclist_header): New function definition.
3078 (dwarf2_cu): Add loclist_base and loclist_header field.
3079 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
3080 (read_full_die_1): Read the value of DW_AT_loclists_base.
3081 (read_attribute_reprocess): Handle DW_FORM_loclistx.
3082 (read_attribute_value): Handle DW_FORM_loclistx.
3083 (skip_one_die): Handle DW_FORM_loclistx.
3084 (loclist_header): New structure declaration.
3085 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
3086
3087 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
3090 constructor. Remove `addr` parameter from other constructor and
3091 add `per_cu` parameter.
3092 * dwarf2/read.c (create_partial_symtab): Update.
3093
3094 2020-04-07 Tom de Vries <tdevries@suse.de>
3095
3096 PR symtab/25796
3097 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
3098 (partial_die_info::fixup): Inherit has_const_value.
3099
3100 2020-04-07 Tom de Vries <tdevries@suse.de>
3101
3102 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
3103 symbols without address.
3104
3105 2020-04-06 Kamil Rytarowski <n54@gmx.com>
3106
3107 * nbsd-nat.h (struct thread_info): Add forward declaration.
3108 (nbsd_nat_target::thread_alive): Add.
3109 (nbsd_nat_target::thread_name): Likewise.
3110 (nbsd_nat_target::update_thread_list): Likewise.
3111 (update_thread_list::post_attach): Likewise.
3112 (post_attach::pid_to_str): Likewise.
3113 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
3114 (nbsd_thread_lister): Add.
3115 (nbsd_nat_target::thread_alive): Likewise.
3116 (nbsd_nat_target::thread_name): Likewise.
3117 (nbsd_add_threads): Likewise.
3118 (update_thread_list::post_attach): Likewise.
3119 (nbsd_nat_target::update_thread_list): Likewise.
3120 (post_attach::pid_to_str): Likewise.
3121
3122 2020-04-06 Tom Tromey <tromey@adacore.com>
3123
3124 * ada-valprint.c (print_variant_part): Extract the variant field.
3125 (print_field_values): Use the field as the outer value when
3126 recursing.
3127
3128 2020-04-06 Tom Tromey <tromey@adacore.com>
3129
3130 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
3131 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
3132 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
3133 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
3134 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
3135
3136 2020-04-06 Tom Tromey <tromey@adacore.com>
3137
3138 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
3139 TYPE_CODE_ERROR.
3140
3141 2020-04-06 Kamil Rytarowski <n54@gmx.com>
3142
3143 * nbsd-tdep.c: Include "gdbarch.h".
3144 Define enum with NetBSD signal numbers.
3145 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
3146 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
3147 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3148 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
3149 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
3150 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
3151 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
3152 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3153 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
3154 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3155 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3156 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
3157
3158 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
3159
3160 PR gdb/25325
3161 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
3162
3163 2020-04-03 Tom Tromey <tromey@adacore.com>
3164
3165 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
3166 Read constant block.
3167
3168 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3169
3170 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
3171 (gdb_bfd_get_full_section_contents): New declaration.
3172 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
3173 * windows-tdep.c (is_linked_with_cygwin_dll): Use
3174 gdb_bfd_get_full_section_contents.
3175
3176 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3177
3178 * exec.c (build_section_table): Replace internal_error with
3179 gdb_assert.
3180 (section_table_xfer_memory_partial): Likewise.
3181 * mdebugread.c (parse_partial_symbols): Likewise.
3182 * psymtab.c (lookup_partial_symbol): Likewise.
3183 * utils.c (wrap_here): Likewise.
3184
3185 2020-04-02 Tom Tromey <tromey@adacore.com>
3186
3187 * f-lang.c (build_fortran_types): Use arch_type to initialize
3188 builtin_complex_s32 in the TYPE_CODE_ERROR case.
3189
3190 2020-04-02 Tom Tromey <tromey@adacore.com>
3191
3192 * dwarf2/read.c (partial_die_info::read): Do not create a vector
3193 of attributes.
3194
3195 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
3196 Bernd Edlinger <bernd.edlinger@hotmail.de>
3197 Tom Tromey <tromey@adacore.com>
3198
3199 * buildsym.c (buildsym_compunit::record_line): Remove
3200 deduplication code.
3201
3202 2020-04-02 Tom de Vries <tdevries@suse.de>
3203
3204 PR ada/24671
3205 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
3206
3207 2020-04-02 Tom de Vries <tdevries@suse.de>
3208
3209 * dwarf2/read.c (dwarf2_gdb_index_functions,
3210 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
3211 NULL.
3212 * psymtab.c (psym_lookup_global_symbol_language): New function.
3213 (psym_functions): Init psym_lookup_global_symbol_language with
3214 psym_lookup_global_symbol_language.
3215 * symfile-debug.c (debug_sym_quick_functions): Init
3216 lookup_global_symbol_language with NULL.
3217 * symfile.c (set_initial_language): Remove fixme comment.
3218 * symfile.h (struct quick_symbol_functions): Add
3219 lookup_global_symbol_language.
3220 * symtab.c (find_quick_global_symbol_language): New function.
3221 (find_main_name): Use find_quick_global_symbol_language.
3222
3223 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
3226
3227 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3228
3229 * buildsym.c (record_line): Fix undefined behavior and preserve
3230 lines at eof.
3231
3232 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3233
3234 * buildsym.c (record_line): Fix the resizing condition.
3235
3236 2020-04-01 Tom Tromey <tom@tromey.com>
3237
3238 * value.h (value_literal_complex): Add comment.
3239 * valops.c (value_literal_complex): Refer to value.h.
3240
3241 2020-04-01 Tom Tromey <tom@tromey.com>
3242
3243 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
3244 (scalar_type): New rule, from typebase.
3245 (typebase): Use scalar_type. Recognize complex types.
3246 (field_name): Handle FLOAT_KEYWORD.
3247 (ident_tokens): Add _Complex and __complex__.
3248
3249 2020-04-01 Tom Tromey <tom@tromey.com>
3250
3251 PR exp/25299:
3252 * valarith.c (promotion_type, complex_binop): New functions.
3253 (scalar_binop): Handle complex numbers. Use promotion_type.
3254 (value_pos, value_neg, value_complement): Handle complex numbers.
3255
3256 2020-04-01 Tom Tromey <tom@tromey.com>
3257
3258 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
3259 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
3260 (parse_number): Handle complex numbers.
3261
3262 2020-04-01 Tom Tromey <tom@tromey.com>
3263
3264 * c-valprint.c (c_decorations): Change complex suffix to "i".
3265
3266 2020-04-01 Tom Tromey <tom@tromey.com>
3267
3268 * valprint.c (generic_value_print_complex): Use accessors.
3269 * value.h (value_real_part, value_imaginary_part): Declare.
3270 * valops.c (value_real_part, value_imaginary_part): New
3271 functions.
3272 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
3273
3274 2020-04-01 Tom Tromey <tom@tromey.com>
3275
3276 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
3277 (read_range_type): Update.
3278 * mdebugread.c (basic_type): Update.
3279 * go-lang.c (build_go_types): Use init_complex_type.
3280 * gdbtypes.h (struct main_type) <complex_type>: New member.
3281 (init_complex_type): Update.
3282 (arch_complex_type): Don't declare.
3283 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
3284 Make name if none given. Use alloc_type_copy. Look for cached
3285 complex type.
3286 (arch_complex_type): Remove.
3287 (gdbtypes_post_init): Use init_complex_type.
3288 * f-lang.c (build_fortran_types): Use init_complex_type.
3289 * dwarf2/read.c (read_base_type): Update.
3290 * d-lang.c (build_d_types): Use init_complex_type.
3291 * ctfread.c (read_base_type): Update.
3292
3293 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3294
3295 * infrun.c (stop_all_threads): Update assertion, plus when
3296 stopping threads, take into account that we might be trying
3297 to stop an all-stop target.
3298 (stop_waiting): Call 'stop_all_threads' if there exists a
3299 non-stop target.
3300
3301 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3302
3303 * target.h (exists_non_stop_target): New function declaration.
3304 * target.c (exists_non_stop_target): New function.
3305
3306 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
3307
3308 PR gdb/24789
3309 * eval.c (is_integral_or_integral_reference): New function.
3310 (evaluate_subexp_standard): Allow integer references in
3311 pointer arithmetic.
3312
3313 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3314
3315 * remote.c (remote_target::remote_parse_stop_reply): Remove the
3316 check for no ptid in the stop reply when the target is non-stop.
3317
3318 2020-04-01 Tom Tromey <tromey@adacore.com>
3319
3320 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
3321 "name" parameter to rvalue reference. Initialize m_name_holder.
3322 <lookup_name_info>: New overloads.
3323 <name>: Return gdb::string_view.
3324 <c_str>: New method.
3325 <make_ignore_params>: Update.
3326 <search_name_hash>: Update.
3327 <language_lookup_name>: Return const char *.
3328 <m_name>: Change type.
3329 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
3330 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
3331 (lookup_name_info::match_any): Update.
3332 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
3333 Update.
3334 * minsyms.c (linkage_name_str): Update.
3335 * language.c (default_symbol_name_matcher): Update.
3336 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
3337 Update.
3338 * ada-lang.c (ada_fold_name): Change parameter to string_view.
3339 (ada_lookup_name_info::ada_lookup_name_info): Update.
3340 (literal_symbol_name_matcher): Update.
3341
3342 2020-04-01 Tom Tromey <tromey@adacore.com>
3343
3344 * psymtab.c (psymtab_search_name): Remove function.
3345 (psym_lookup_symbol): Create search name and lookup name here.
3346 (lookup_partial_symbol): Remove "name" parameter; add
3347 lookup_name.
3348 (psym_expand_symtabs_for_function): Update.
3349
3350 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
3351
3352 PR tui/25597:
3353 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
3354
3355 2020-03-31 Tom Tromey <tromey@adacore.com>
3356
3357 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
3358 memcpy.
3359
3360 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
3361
3362 * features/riscv/32bit-csr.xml: Regenerated.
3363 * features/riscv/64bit-csr.xml: Regenerated.
3364
3365 2020-03-30 Tom Tromey <tromey@adacore.com>
3366
3367 * ada-valprint.c (print_variant_part): Update.
3368 * ada-lang.h (ada_which_variant_applies): Update.
3369 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
3370 outer_valaddr parameters; replace with "outer" value parameter.
3371 (to_fixed_variant_branch_type): Update.
3372
3373 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3374
3375 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
3376 <list>. Remove inclusion of observable.h.
3377 (PPC_DEBUG_CURRENT_VERSION): Move up define.
3378 (struct arch_lwp_info): New struct.
3379 (class ppc_linux_dreg_interface): New class.
3380 (struct ppc_linux_process_info): New struct.
3381 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
3382 <low_new_clone, low_forget_process, low_prepare_to_resume>
3383 <copy_thread_dreg_state, mark_thread_stale>
3384 <mark_debug_registers_changed, register_hw_breakpoint>
3385 <clear_hw_breakpoint, register_wp, clear_wp>
3386 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
3387 <num_memory_accesses, get_trigger_type>
3388 <create_watchpoint_request, hwdebug_point_cmp>
3389 <init_arch_lwp_info, get_arch_lwp_info>
3390 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
3391 methods.
3392 <struct ptid_hash>: New inner struct.
3393 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
3394 members.
3395 (saved_dabr_value, hwdebug_info, max_slots_number)
3396 (struct hw_break_tuple, struct thread_points, ppc_threads)
3397 (have_ptrace_hwdebug_interface)
3398 (hwdebug_find_thread_points_by_tid)
3399 (hwdebug_insert_point, hwdebug_remove_point): Remove.
3400 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
3401 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
3402 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
3403 use m_dreg_interface.
3404 (hwdebug_point_cmp): Change to...
3405 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
3406 reference arguments instead of pointers.
3407 (ppc_linux_nat_target::ranged_break_num_registers): Use
3408 m_dreg_interface.
3409 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
3410 m_dreg_interface. Call register_hw_breakpoint.
3411 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
3412 m_dreg_interface. Call clear_hw_breakpoint.
3413 (get_trigger_type): Change to...
3414 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
3415 comment.
3416 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
3417 use m_dreg_interface. Call register_hw_breakpoint.
3418 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
3419 use m_dreg_interface. Call clear_hw_breakpoint.
3420 (can_use_watchpoint_cond_accel): Change to...
3421 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
3422 method. Update comment, use m_dreg_interface and
3423 m_process_info.
3424 (calculate_dvc): Change to...
3425 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
3426 m_dreg_interface.
3427 (num_memory_accesses): Change to...
3428 (ppc_linux_nat_target::num_memory_accesses): ...this method.
3429 (check_condition): Change to...
3430 (ppc_linux_nat_target::check_condition): ...this method.
3431 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
3432 comment, use m_dreg_interface.
3433 (create_watchpoint_request): Change to...
3434 (ppc_linux_nat_target::create_watchpoint_request): ...this
3435 method. Use m_dreg_interface.
3436 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
3437 m_dreg_interface. Call register_hw_breakpoint or register_wp.
3438 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
3439 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
3440 (ppc_linux_nat_target::low_forget_process)
3441 (ppc_linux_nat_target::low_new_fork)
3442 (ppc_linux_nat_target::low_new_clone)
3443 (ppc_linux_nat_target::low_delete_thread)
3444 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
3445 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
3446 only call mark_thread_stale.
3447 (ppc_linux_thread_exit): Remove.
3448 (ppc_linux_nat_target::stopped_data_address): Change to...
3449 (ppc_linux_nat_target::low_stopped_data_address): This. Add
3450 comment, use m_dreg_interface and m_thread_hw_breakpoints.
3451 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
3452 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
3453 comment. Call low_stopped_data_address.
3454 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
3455 m_dreg_interface.
3456 (ppc_linux_nat_target::masked_watch_num_registers): Use
3457 m_dreg_interface.
3458 (ppc_linux_nat_target::copy_thread_dreg_state)
3459 (ppc_linux_nat_target::mark_thread_stale)
3460 (ppc_linux_nat_target::mark_debug_registers_changed)
3461 (ppc_linux_nat_target::register_hw_breakpoint)
3462 (ppc_linux_nat_target::clear_hw_breakpoint)
3463 (ppc_linux_nat_target::register_wp)
3464 (ppc_linux_nat_target::clear_wp)
3465 (ppc_linux_nat_target::init_arch_lwp_info)
3466 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
3467 (_initialize_ppc_linux_nat): Remove observer callback.
3468
3469 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3470
3471 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
3472 (ppc_linux_nat_target::auxv_parse)
3473 (ppc_linux_nat_target::read_description)
3474 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3475 Move up.
3476
3477 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3478
3479 * linux-nat.h (low_new_clone): New method.
3480 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
3481
3482 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
3483
3484 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
3485 (dbx_expand_psymtab): ... this.
3486 (start_psymtab): Update.
3487 * mdebugread.c (psymtab_to_symtab_1): Rename to...
3488 (mdebug_expand_psymtab): ... this.
3489 (parse_partial_symbols): Update.
3490 (new_psymtab): Update.
3491 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
3492 (xcoff_expand_psymtab): ... this.
3493 (xcoff_start_psymtab): Update.
3494
3495 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
3496
3497 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
3498 <expand_dependencies>: ... this.
3499 * psymtab.c (partial_symtab::read_dependencies): Rename to...
3500 (partial_symtab::expand_dependencies): ... this.
3501 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
3502 Update.
3503 (dwarf2_psymtab::expand_psymtab): Update.
3504 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
3505 * mdebugread.c (psymtab_to_symtab_1): Update.
3506 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3507
3508 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
3509
3510 * psympriv.h (discard_psymtab): Remove.
3511 * dbxread.c (dbx_end_psymtab): Update.
3512 * xcoffread.c (xcoff_end_psymtab): Update.
3513
3514 2020-03-28 Tom Tromey <tom@tromey.com>
3515
3516 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
3517 comment.
3518
3519 2020-03-28 Tom Tromey <tom@tromey.com>
3520
3521 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
3522
3523 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
3524
3525 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
3526
3527 2020-03-26 John Baldwin <jhb@FreeBSD.org>
3528
3529 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
3530
3531 2020-03-26 Tom Tromey <tom@tromey.com>
3532
3533 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
3534 (mark_common_block_symbol_computed, read_tag_string_type)
3535 (attr_to_dynamic_prop, read_subrange_type): Update.
3536 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
3537 to be methods on struct attribute.
3538 (skip_one_die, process_imported_unit_die, read_namespace_alias)
3539 (read_call_site_scope, partial_die_info::read)
3540 (partial_die_info::read, lookup_die_type, follow_die_ref):
3541 Update.
3542 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
3543 from dwarf2_get_ref_die_offset.
3544 (attribute::constant_value): New method, from
3545 dwarf2_get_attr_constant_value.
3546 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
3547 Declare method.
3548 <constant_value>: New method.
3549
3550 2020-03-26 Tom Tromey <tom@tromey.com>
3551
3552 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
3553 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
3554 (dwarf_type_encoding_name): Move to stringify.c.
3555 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
3556 * dwarf2/stringify.c: New file.
3557 * dwarf2/stringify.h: New file.
3558
3559 2020-03-26 Tom Tromey <tom@tromey.com>
3560
3561 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
3562 Rewrite.
3563
3564 2020-03-26 Tom Tromey <tom@tromey.com>
3565
3566 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
3567 methods.
3568 * dwarf2/read.c (lookup_addr_base): Move to die.h.
3569 (lookup_ranges_base): Likewise.
3570 (read_cutu_die_from_dwo, read_full_die_1): Update.
3571
3572 2020-03-26 Tom Tromey <tom@tromey.com>
3573
3574 * dwarf2/read.c (read_import_statement, read_file_scope)
3575 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
3576 (read_lexical_block_scope, read_call_site_scope)
3577 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
3578 (handle_struct_member_die, process_structure_scope)
3579 (update_enumeration_type_from_children)
3580 (process_enumeration_scope, read_array_type, read_common_block)
3581 (read_namespace, read_module, read_subroutine_type): Update.
3582 (sibling_die): Remove.
3583
3584 2020-03-26 Tom Tromey <tom@tromey.com>
3585
3586 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
3587 (build_type_psymtabs_reader, read_structure_type)
3588 (read_enumeration_type, read_full_die_1): Update.
3589 (dwarf2_attr_no_follow): Move to die.h.
3590 * dwarf2/die.h (struct die_info) <attr>: New method.
3591
3592 2020-03-26 Tom Tromey <tom@tromey.com>
3593
3594 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
3595 <base_address>: Now an optional.
3596 (dwarf2_find_base_address, dwarf2_rnglists_process)
3597 (dwarf2_ranges_process, fill_in_loclist_baton)
3598 (dwarf2_symbol_mark_computed): Update.
3599
3600 2020-03-26 Tom Tromey <tom@tromey.com>
3601
3602 * dwarf2/read.c (struct die_info): Move to die.h.
3603 * dwarf2/die.h: New file.
3604
3605 2020-03-26 Tom Tromey <tom@tromey.com>
3606
3607 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
3608 * dwarf2/read.c
3609 (dwarf2_statement_list_fits_in_line_number_section_complaint):
3610 Move to line-header.c.
3611 (read_checked_initial_length_and_offset, read_formatted_entries):
3612 Likewise.
3613 (dwarf_decode_line_header): Split into two.
3614 * dwarf2/line-header.c
3615 (dwarf2_statement_list_fits_in_line_number_section_complaint):
3616 Move from read.c.
3617 (read_checked_initial_length_and_offset, read_formatted_entries):
3618 Likewise.
3619 (dwarf_decode_line_header): New function, split from read.c.
3620
3621 2020-03-26 Tom Tromey <tom@tromey.com>
3622
3623 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
3624 Declare method.
3625 * dwarf2/read.c (read_attribute_value): Update.
3626 (dwarf2_per_objfile::read_line_string): Rename from
3627 read_indirect_line_string.
3628 (read_formatted_entries): Update.
3629
3630 2020-03-26 Tom Tromey <tom@tromey.com>
3631
3632 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
3633 variable.
3634
3635 2020-03-26 Tom Tromey <tom@tromey.com>
3636
3637 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
3638 const.
3639 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
3640 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
3641 parameter const.
3642
3643 2020-03-26 Tom Tromey <tom@tromey.com>
3644
3645 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
3646 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
3647 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
3648 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
3649
3650 2020-03-26 Tom Tromey <tom@tromey.com>
3651
3652 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
3653 file_names_size, file_full_name, file_file_name>: Use const.
3654 <file_name_at, file_names>: Add const overload.
3655 * dwarf2/line-header.c (line_header::file_file_name)
3656 (line_header::file_full_name): Update.
3657
3658 2020-03-26 Tom Tromey <tom@tromey.com>
3659
3660 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
3661 (macro_start_file, consume_improper_spaces)
3662 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
3663 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
3664 (dwarf_decode_macros): Move to macro.c.
3665 * dwarf2/macro.c: New file.
3666 * dwarf2/macro.h: New file.
3667 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
3668
3669 2020-03-26 Tom Tromey <tom@tromey.com>
3670
3671 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
3672 method.
3673 * dwarf2/section.c: New method. From
3674 read_indirect_string_at_offset_from.
3675 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
3676 (read_indirect_string_at_offset_from): Move to section.c.
3677 (read_indirect_string_at_offset): Rewrite.
3678 (read_indirect_line_string_at_offset): Remove.
3679 (read_indirect_string, read_indirect_line_string)
3680 (dwarf_decode_macro_bytes): Update.
3681
3682 2020-03-26 Tom Tromey <tom@tromey.com>
3683
3684 * dwarf2/section.h (struct dwarf2_section_info)
3685 <overload_complaint>: Declare.
3686 (dwarf2_section_buffer_overflow_complaint): Don't declare.
3687 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
3688 Rename from dwarf2_section_buffer_overflow_complaint.
3689 * dwarf2/read.c (skip_one_die, partial_die_info::read)
3690 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
3691
3692 2020-03-26 Tom Tromey <tom@tromey.com>
3693
3694 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
3695 Declare.
3696 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
3697 Move from read.c.
3698 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
3699 to section.c.
3700
3701 2020-03-26 Tom Tromey <tom@tromey.com>
3702
3703 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
3704
3705 2020-03-26 Tom Tromey <tom@tromey.com>
3706
3707 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
3708 "builder".
3709 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
3710 parameter.
3711 (dwarf_decode_macros): Update.
3712
3713 2020-03-26 Tom Tromey <tom@tromey.com>
3714
3715 * dwarf2/read.c (read_attribute_value): Update.
3716 (read_indirect_string_from_dwz): Move to dwz.c; change into
3717 method.
3718 (dwarf_decode_macro_bytes): Update.
3719 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
3720 * dwarf2/dwz.c: New file.
3721 * Makefile.in (COMMON_SFILES): Add dwz.c.
3722
3723 2020-03-26 Tom Tromey <tom@tromey.com>
3724
3725 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
3726 * dwarf2/read.c: Add include.
3727 * dwarf2/index-write.c: Add include.
3728 * dwarf2/index-cache.c: Add include.
3729 * dwarf2/dwz.h: New file.
3730
3731 2020-03-25 Tom Tromey <tom@tromey.com>
3732
3733 * compile/compile-object-load.c (get_out_value_type): Mention
3734 correct symbol name in error message.
3735
3736 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
3737
3738 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
3739
3740 2020-03-25 Tom de Vries <tdevries@suse.de>
3741
3742 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
3743 * symmisc.c (dump_symtab_1): Print user and includes fields.
3744 (maintenance_info_symtabs): Same.
3745
3746 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 PR gdb/25534
3749 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
3750 (riscv_regcache_cooked_write): New function.
3751 (riscv_push_dummy_call): Use new function.
3752 (riscv_return_value): Likewise.
3753
3754 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3755
3756 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
3757 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
3758 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
3759 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
3760 * infrun.c (follow_fork): Likewise.
3761 (follow_fork_inferior): Likewise.
3762 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
3763 * linux-nat.h (class linux_nat_target): Likewise.
3764 * remote.c (class remote_target) <follow_fork>: Likewise.
3765 (remote_target::follow_fork): Likewise.
3766 * target-delegates.c: Re-generate.
3767 * target.c (default_follow_fork): Likewise.
3768 (target_follow_fork): Likewise.
3769 * target.h (struct target_ops) <follow_fork>: Likewise.
3770 (target_follow_fork): Likewise.
3771
3772 2020-03-24 Tom de Vries <tdevries@suse.de>
3773
3774 * psymtab.c (maintenance_info_psymtabs): Print user field.
3775
3776 2020-03-20 Tom Tromey <tromey@adacore.com>
3777
3778 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
3779 const.
3780 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
3781 const.
3782
3783 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * ptrace.m4: Don't check for ptrace declaration.
3786 * config.in: Re-generate.
3787 * configure: Re-generate.
3788 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
3789 not defined.
3790
3791 2020-03-20 Kamil Rytarowski <n54@gmx.com>
3792
3793 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
3794 `PTRACE_TYPE_RET'.
3795 * i386-bsd-nat.c (gdb_ptrace): Likewise.
3796 * sparc-nat.c (gdb_ptrace): Likewise.
3797 * x86-bsd-nat.c (gdb_ptrace): Likewise.
3798
3799 2020-03-20 Tom Tromey <tromey@adacore.com>
3800
3801 * c-exp.y (lex_one_token): Fix assert.
3802
3803 2020-03-20 Tom Tromey <tromey@adacore.com>
3804
3805 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
3806 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
3807 strncpy call.
3808
3809 2020-03-20 Tom Tromey <tromey@adacore.com>
3810
3811 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
3812
3813 2020-03-20 Tom Tromey <tromey@adacore.com>
3814
3815 * ada-valprint.c (print_variant_part): Remove parameters; switch
3816 to value-based API.
3817 (print_field_values): Likewise.
3818 (ada_val_print_struct_union): Likewise.
3819 (ada_value_print_1): Update.
3820
3821 2020-03-20 Kamil Rytarowski <n54@gmx.com>
3822
3823 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
3824 nbsd_nat_target instead of inf_ptrace_target.
3825 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3826 nbsd_nat_target.
3827
3828 2020-03-20 Kamil Rytarowski <n54@gmx.com>
3829
3830 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
3831 it to the ptrace call.
3832 * (store_registers): Likewise.
3833
3834 2020-03-20 Kamil Rytarowski <n54@gmx.com>
3835
3836 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
3837 it to the ptrace call.
3838 * (store_registers): Likewise.
3839
3840 2020-03-19 Luis Machado <luis.machado@linaro.org>
3841
3842 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
3843 valid, fetch vg value from ptrace.
3844
3845 2020-03-19 Kamil Rytarowski <n54@gmx.com>
3846 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
3847 * inf-ptrace.c: Likewise.
3848 * (gdb_ptrace): Add.
3849 * (inf_ptrace_target::resume): Update.
3850 * (inf_ptrace_target::xfer_partial): Likewise.
3851 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
3852 * (inf_ptrace_peek_poke): Update.
3853
3854 2020-03-19 Kamil Rytarowski <n54@gmx.com>
3855
3856 * x86-bsd-nat.c (gdb_ptrace): New.
3857 * (x86bsd_dr_set): Add new argument `ptid'.
3858 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
3859 x86bsd_dr_set_addr): Update.
3860
3861 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * remote.c (remote_target::process_stop_reply): Handle events for
3864 all threads differently.
3865
3866 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3867
3868 * completer.c (completion_tracker::remove_completion): Define new
3869 function.
3870 * completer.h (completion_tracker::remove_completion): Declare new
3871 function.
3872 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
3873 when adding a C++ function symbol.
3874
3875 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
3876
3877 * completer.c (completion_tracker::completion_hash_entry): Define
3878 new class.
3879 (advance_to_filename_complete_word_point): Call
3880 recompute_lowest_common_denominator.
3881 (completion_tracker::completion_tracker): Call discard_completions
3882 to setup the hash table.
3883 (completion_tracker::discard_completions): Allow for being called
3884 from the constructor, pass new equal function, and element deleter
3885 when constructing the hash table. Initialise new class member
3886 variables.
3887 (completion_tracker::maybe_add_completion): Remove use of
3888 m_entries_vec, and store more information into m_entries_hash.
3889 (completion_tracker::recompute_lcd_visitor): New function, most
3890 content taken from...
3891 (completion_tracker::recompute_lowest_common_denominator):
3892 ...here, this now just visits each item in the hash calling the
3893 above visitor.
3894 (completion_tracker::build_completion_result): Remove use of
3895 m_entries_vec, call recompute_lowest_common_denominator.
3896 * completer.h (completion_tracker::have_completions): Remove use
3897 of m_entries_vec.
3898 (completion_tracker::completion_hash_entry): Declare new class.
3899 (completion_tracker::recompute_lowest_common_denominator): Change
3900 function signature.
3901 (completion_tracker::recompute_lcd_visitor): Declare new function.
3902 (completion_tracker::m_entries_vec): Delete.
3903 (completion_tracker::m_entries_hash): Initialize to NULL.
3904 (completion_tracker::m_lowest_common_denominator_valid): New
3905 member variable.
3906 (completion_tracker::m_lowest_common_denominator_max_length): New
3907 member variable.
3908
3909 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3910
3911 * regformats/regdef.h: Put reg in gdb namespace.
3912
3913 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3914
3915 * i386-bsd-nat.c (gdb_ptrace): New.
3916 * (i386bsd_fetch_inferior_registers,
3917 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
3918 * (i386bsd_fetch_inferior_registers,
3919 i386bsd_store_inferior_registers) Use gdb_ptrace.
3920
3921 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3922
3923 * amd64-bsd-nat.c (gdb_ptrace): New.
3924 * (amd64bsd_fetch_inferior_registers,
3925 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
3926 * (amd64bsd_fetch_inferior_registers,
3927 amd64bsd_store_inferior_registers) Use gdb_ptrace.
3928
3929 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3930
3931 * user-regs.c (user_reg::read): Rename to...
3932 (user_reg::xread): ...this.
3933 * (append_user_reg): Rename argument `read' to `xread'.
3934 * (user_reg_add_builtin): Likewise.
3935 * (user_reg_add): Likewise.
3936 * (value_of_user_reg): Likewise.
3937
3938 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3939
3940 * sparc-nat.c (gdb_ptrace): New.
3941 * sparc-nat.c (sparc_fetch_inferior_registers)
3942 (sparc_store_inferior_registers) Remove obsolete comment.
3943 * sparc-nat.c (sparc_fetch_inferior_registers)
3944 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
3945 * sparc-nat.c (sparc_fetch_inferior_registers)
3946 (sparc_store_inferior_registers) Use gdb_ptrace.
3947
3948 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3949
3950 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
3951 it to the ptrace call.
3952 * sh-nbsd-nat.c (store_registers): Likewise.
3953
3954 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3955
3956 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
3957 nbsd_nat_target instead of inf_ptrace_target.
3958 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
3959 nbsd_nat_target.
3960
3961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3962
3963 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
3964
3965 2020-03-17 Kamil Rytarowski <n54@gmx.com>
3966
3967 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
3968 <sys/sysctl.h>.
3969 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
3970
3971 2020-03-17 Tom de Vries <tdevries@suse.de>
3972
3973 PR gdb/23710
3974 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
3975 fields.
3976 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
3977 fields.
3978 (process_imported_unit_die): Skip import of c++ CUs.
3979
3980 2020-03-16 Tom Tromey <tom@tromey.com>
3981
3982 * p-valprint.c (pascal_object_print_value): Initialize
3983 base_value.
3984
3985 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
3986 Shahab Vahedi <shahab@synopsys.com>
3987
3988 * Makefile.in: Add arch/arc.o
3989 * configure.tgt: Likewise.
3990 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
3991 (_initialize_arc_tdep): Don't initialize old target descriptions.
3992 (arc_read_description): New function to cache target descriptions.
3993 * arc-tdep.h (arc_read_description): Add proto type.
3994 * arch/arc.c: New file.
3995 * arch/arc.h: Likewise.
3996 * features/Makefile: Replace old target descriptions with new.
3997 * features/arc-arcompact.c: Remove.
3998 * features/arc-arcompact.xml: Likewise.
3999 * features/arc-v2.c: Likewise
4000 * features/arc-v2.xml: Likewise
4001 * features/arc/aux-arcompact.xml: New file.
4002 * features/arc/aux-v2.xml: Likewise.
4003 * features/arc/core-arcompact.xml: Likewise.
4004 * features/arc/core-v2.xml: Likewise.
4005 * features/arc/aux-arcompact.c: Generate.
4006 * features/arc/aux-v2.c: Likewise.
4007 * features/arc/core-arcompact.c: Likewise.
4008 * features/arc/core-v2.c: Likewise.
4009 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
4010
4011 2020-03-16 Tom Tromey <tromey@adacore.com>
4012
4013 PR gdb/25663:
4014 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
4015 putting value into bcache.
4016
4017 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4018
4019 PR gdb/21500
4020 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
4021 to...
4022 (amd64_windows_init_abi_common): ... this. Don't set size of
4023 long type.
4024 (amd64_windows_init_abi): New function.
4025 (amd64_cygwin_init_abi): New function.
4026 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
4027 the Cygwin OS ABI.
4028 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
4029 comment.
4030
4031 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
4034 * windows-tdep.c (CYGWIN_DLL_NAME): New.
4035 (pe_import_directory_entry): New struct type.
4036 (is_linked_with_cygwin_dll): New function.
4037 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
4038 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
4039 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
4040
4041 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4042
4043 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
4044 i386_cygwin_core_osabi_sniffer.
4045
4046 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * i386-cygwin-tdep.c: Rename to...
4049 * i386-windows-tdep.c: ... this.
4050 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
4051 i386-windows-tdep.c.
4052 * configure.tgt: Likewise.
4053
4054 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4055
4056 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
4057 * osabi.c (gdb_osabi_names): Add "Windows".
4058 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
4059 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
4060 (i386_cygwin_core_osabi_sniffer): New function, extracted from
4061 i386_cygwin_osabi_sniffer.
4062 (_initialize_i386_cygwin_tdep): Register OS ABI
4063 GDB_OSABI_WINDOWS for i386.
4064 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
4065 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
4066 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
4067 for x86-64.
4068 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
4069 when the target matches '*-*-mingw*'.
4070
4071 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * defs.h (enum gdb_osabi): Move to...
4074 * osabi.h (enum gdb_osabi): ... here.
4075 * gdbarch.sh: Include osabi.h in gdbarch.h.
4076 * gdbarch.h: Re-generate.
4077
4078 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
4081 function.
4082 (_initialize_amd64_windows_tdep): Register osabi sniffer.
4083
4084 2020-03-14 Tom Tromey <tom@tromey.com>
4085
4086 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
4087 for C++.
4088 (c_type_print_modifier): Likewise. Add "language" parameter.
4089 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
4090 (c_type_print_base_1): Update.
4091 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
4092 constants.
4093 * type-stack.c (type_stack::insert): Handle tp_atomic and
4094 tp_restrict.
4095 (type_stack::follow_type_instance_flags): Likewise.
4096 (type_stack::follow_types): Likewise. Merge type-following code.
4097 * c-exp.y (RESTRICT, ATOMIC): New tokens.
4098 (space_identifier, cv_with_space_id)
4099 (const_or_volatile_or_space_identifier_noopt)
4100 (const_or_volatile_or_space_identifier): Remove.
4101 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
4102 rules.
4103 (ptr_operator, typebase): Update.
4104 (enum token_flag) <FLAG_C>: New constant.
4105 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
4106 "_Atomic".
4107 (lex_one_token): Handle FLAG_C.
4108
4109 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4110
4111 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
4112 it to the ptrace call.
4113 * m68k-bsd-nat.c (store_registers): Likewise.
4114
4115 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4116
4117 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
4118 gdb_byte *.
4119 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4120 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
4121 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
4122
4123 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4124
4125 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
4126 nbsd_nat_target instead of inf_ptrace_target.
4127 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4128 nbsd_nat_target.
4129
4130 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4131
4132 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
4133 register_t.
4134
4135 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4136
4137 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
4138 it to the ptrace call.
4139 * alpha-bsd-nat.c (store_registers): Likewise.
4140
4141 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4142
4143 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
4144 includes.
4145 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
4146 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4147 fill_fpregset): Likewise.
4148
4149 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4150
4151 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
4152 nbsd_nat_target instead of inf_ptrace_target.
4153 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4154 nbsd_nat_target.
4155
4156 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4157
4158 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
4159 register_t.
4160
4161 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4162
4163 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
4164 it to the ptrace call.
4165 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
4166 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
4167 * arm-nbsd-nat.c (store_register): Likewise.
4168 * arm-nbsd-nat.c (store_regs): Likewise.
4169 * arm-nbsd-nat.c (store_fp_register): Likewise.
4170 * arm-nbsd-nat.c (store_fp_regs): Likewise.
4171
4172 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4173
4174 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
4175 nbsd_nat_target instead of inf_ptrace_target.
4176 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4177 nbsd_nat_target.
4178
4179 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4180
4181 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
4182 it to the ptrace call.
4183 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
4184
4185 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4186
4187 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
4188 it to the ptrace call.
4189 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
4190
4191 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4192
4193 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
4194 gdb_byte *.
4195 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
4196
4197 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4198
4199 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
4200 instead of inf_ptrace_target.
4201 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4202 nbsd_nat_target.
4203
4204 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4205
4206 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4207 register_t.
4208
4209 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4210
4211 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4212 register_t.
4213
4214 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4215
4216 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
4217 register_t.
4218
4219 2020-03-13 Tom Tromey <tom@tromey.com>
4220
4221 * value.h (val_print): Don't declare.
4222 * valprint.h (val_print_array_elements)
4223 (val_print_scalar_formatted, generic_val_print): Don't declare.
4224 * valprint.c (generic_val_print_array): Take a struct value.
4225 (generic_val_print_ptr, generic_val_print_memberptr)
4226 (generic_val_print_bool, generic_val_print_int)
4227 (generic_val_print_char, generic_val_print_complex)
4228 (generic_val_print): Remove.
4229 (generic_value_print): Update.
4230 (do_val_print): Remove unused parameters. Don't call
4231 la_val_print.
4232 (val_print): Remove.
4233 (common_val_print): Update. Don't call value_check_printable.
4234 (val_print_scalar_formatted, val_print_array_elements): Remove.
4235 * rust-lang.c (rust_val_print): Remove.
4236 (rust_language_defn): Update.
4237 * p-valprint.c (pascal_val_print): Remove.
4238 (pascal_value_print_inner): Update.
4239 (pascal_object_print_val_fields, pascal_object_print_val):
4240 Remove.
4241 (pascal_object_print_static_field): Update.
4242 * p-lang.h (pascal_val_print): Don't declare.
4243 * p-lang.c (pascal_language_defn): Update.
4244 * opencl-lang.c (opencl_language_defn): Update.
4245 * objc-lang.c (objc_language_defn): Update.
4246 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
4247 * m2-lang.h (m2_val_print): Don't declare.
4248 * m2-lang.c (m2_language_defn): Update.
4249 * language.h (struct language_defn) <la_val_print>: Remove.
4250 * language.c (unk_lang_value_print_inner): Rename. Change
4251 argument types.
4252 (unknown_language_defn, auto_language_defn): Update.
4253 * go-valprint.c (go_val_print): Remove.
4254 * go-lang.h (go_val_print): Don't declare.
4255 * go-lang.c (go_language_defn): Update.
4256 * f-valprint.c (f_val_print): Remove.
4257 * f-lang.h (f_value_print): Don't declare.
4258 * f-lang.c (f_language_defn): Update.
4259 * d-valprint.c (d_val_print): Remove.
4260 * d-lang.h (d_value_print): Don't declare.
4261 * d-lang.c (d_language_defn): Update.
4262 * cp-valprint.c (cp_print_value_fields)
4263 (cp_print_value_fields_rtti, cp_print_value): Remove.
4264 (cp_print_static_field): Update.
4265 * c-valprint.c (c_val_print_array, c_val_print_ptr)
4266 (c_val_print_struct, c_val_print_union, c_val_print_int)
4267 (c_val_print_memberptr, c_val_print): Remove.
4268 * c-lang.h (c_val_print_array, cp_print_value_fields)
4269 (cp_print_value_fields_rtti): Don't declare.
4270 * c-lang.c (c_language_defn, cplus_language_defn)
4271 (asm_language_defn, minimal_language_defn): Update.
4272 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
4273 (ada_val_print_enum): Take a struct value.
4274 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
4275 (ada_val_print): Remove.
4276 (ada_value_print_1): Update.
4277 (printable_val_type): Remove.
4278 * ada-lang.h (ada_val_print): Don't declare.
4279 * ada-lang.c (ada_language_defn): Update.
4280
4281 2020-03-13 Tom Tromey <tom@tromey.com>
4282
4283 * valprint.c (do_val_print): Update.
4284 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
4285 a struct value.
4286 (value_to_value_object_no_release): Declare.
4287 * python/py-value.c (value_to_value_object_no_release): New
4288 function.
4289 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
4290 struct value.
4291 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
4292 function.
4293 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
4294 a struct value.
4295 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
4296 Declare.
4297 (gdbscm_apply_val_pretty_printer): Take a struct value.
4298 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
4299 value.
4300 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
4301 value.
4302 * extension-priv.h (struct extension_language_ops)
4303 <apply_val_pretty_printer>: Take a struct value.
4304 * cp-valprint.c (cp_print_value): Create a struct value.
4305 (cp_print_value): Update.
4306
4307 2020-03-13 Tom Tromey <tom@tromey.com>
4308
4309 * ada-valprint.c (print_field_values): Call common_val_print.
4310
4311 2020-03-13 Tom Tromey <tom@tromey.com>
4312
4313 * ada-valprint.c (val_print_packed_array_elements): Remove
4314 bitoffset and val parameters. Call common_val_print.
4315 (ada_val_print_string): Remove offset, address, and original_value
4316 parameters.
4317 (ada_val_print_array): Update.
4318 (ada_value_print_array): New function.
4319 (ada_value_print_1): Call it.
4320
4321 2020-03-13 Tom Tromey <tom@tromey.com>
4322
4323 * ada-valprint.c (ada_value_print): Use common_val_print.
4324
4325 2020-03-13 Tom Tromey <tom@tromey.com>
4326
4327 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
4328
4329 2020-03-13 Tom Tromey <tom@tromey.com>
4330
4331 * ada-valprint.c (ada_value_print_num): New function.
4332 (ada_value_print_1): Use it.
4333
4334 2020-03-13 Tom Tromey <tom@tromey.com>
4335
4336 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
4337
4338 2020-03-13 Tom Tromey <tom@tromey.com>
4339
4340 * ada-valprint.c (ada_value_print_ptr): New function.
4341 (ada_value_print_1): Use it.
4342
4343 2020-03-13 Tom Tromey <tom@tromey.com>
4344
4345 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
4346 call common_val_print.
4347 (ada_val_print_1): Update.
4348 (ada_value_print_1): New function.
4349 (ada_value_print_inner): Rewrite.
4350
4351 2020-03-13 Tom Tromey <tom@tromey.com>
4352
4353 * cp-valprint.c (cp_print_value_fields): Update.
4354 (cp_print_value): New function.
4355
4356 2020-03-13 Tom Tromey <tom@tromey.com>
4357
4358 * m2-valprint.c (m2_value_print_inner): Use
4359 cp_print_value_fields.
4360 * cp-valprint.c (cp_print_value_fields): New function.
4361 * c-valprint.c (c_value_print_struct): New function.
4362 (c_value_print_inner): Use c_value_print_struct.
4363 * c-lang.h (cp_print_value_fields): Declare.
4364
4365 2020-03-13 Tom Tromey <tom@tromey.com>
4366
4367 * c-valprint.c (c_value_print_array): New function.
4368 (c_value_print_inner): Use it.
4369
4370 2020-03-13 Tom Tromey <tom@tromey.com>
4371
4372 * c-valprint.c (c_value_print_memberptr): New function.
4373 (c_value_print_inner): Use it.
4374
4375 2020-03-13 Tom Tromey <tom@tromey.com>
4376
4377 * c-valprint.c (c_value_print_int): New function.
4378 (c_value_print_inner): Use it.
4379
4380 2020-03-13 Tom Tromey <tom@tromey.com>
4381
4382 * c-valprint.c (c_value_print_ptr): New function.
4383 (c_value_print_inner): Use it.
4384
4385 2020-03-13 Tom Tromey <tom@tromey.com>
4386
4387 * c-valprint.c (c_value_print_inner): Rewrite.
4388
4389 2020-03-13 Tom Tromey <tom@tromey.com>
4390
4391 * valprint.c (generic_value_print_complex): New function.
4392 (generic_value_print): Use it.
4393
4394 2020-03-13 Tom Tromey <tom@tromey.com>
4395
4396 * valprint.c (generic_val_print_float): Don't call
4397 val_print_scalar_formatted.
4398 (generic_val_print, generic_value_print): Update.
4399
4400 2020-03-13 Tom Tromey <tom@tromey.com>
4401
4402 * valprint.c (generic_value_print_char): New function
4403 (generic_value_print): Use it.
4404
4405 2020-03-13 Tom Tromey <tom@tromey.com>
4406
4407 * valprint.c (generic_value_print_int): New function.
4408 (generic_value_print): Use it.
4409
4410 2020-03-13 Tom Tromey <tom@tromey.com>
4411
4412 * valprint.c (generic_value_print_bool): New function.
4413 (generic_value_print): Use it.
4414
4415 2020-03-13 Tom Tromey <tom@tromey.com>
4416
4417 * valprint.c (generic_val_print_func): Simplify.
4418 (generic_val_print, generic_value_print): Update.
4419
4420 2020-03-13 Tom Tromey <tom@tromey.com>
4421
4422 * valprint.c (generic_val_print_flags): Remove.
4423 (generic_val_print, generic_value_print): Update.
4424 (val_print_type_code_flags): Add original_value parameter.
4425
4426 2020-03-13 Tom Tromey <tom@tromey.com>
4427
4428 * valprint.c (generic_val_print): Update.
4429 (generic_value_print): Update.
4430 * valprint.c (generic_val_print_enum): Don't call
4431 val_print_scalar_formatted.
4432
4433 2020-03-13 Tom Tromey <tom@tromey.com>
4434
4435 * valprint.c (generic_value_print): Call generic_value_print_ptr.
4436 * valprint.c (generic_value_print_ptr): New function.
4437
4438 2020-03-13 Tom Tromey <tom@tromey.com>
4439
4440 * valprint.c (generic_value_print): Rewrite.
4441
4442 2020-03-13 Tom Tromey <tom@tromey.com>
4443
4444 * p-valprint.c (pascal_object_print_value_fields)
4445 (pascal_object_print_value): New functions.
4446
4447 2020-03-13 Tom Tromey <tom@tromey.com>
4448
4449 * p-valprint.c (pascal_value_print_inner): Rewrite.
4450
4451 2020-03-13 Tom Tromey <tom@tromey.com>
4452
4453 * f-valprint.c (f_value_print_innner): Rewrite.
4454
4455 2020-03-13 Tom Tromey <tom@tromey.com>
4456
4457 * m2-valprint.c (m2_print_unbounded_array): New overload.
4458 (m2_print_unbounded_array): Update.
4459 (m2_print_array_contents): Take a struct value.
4460 (m2_value_print_inner): Rewrite.
4461
4462 2020-03-13 Tom Tromey <tom@tromey.com>
4463
4464 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
4465 (d_value_print_inner): New function.
4466 * d-lang.h (d_value_print_inner): Declare.
4467 * d-lang.c (d_language_defn): Use d_value_print_inner.
4468
4469 2020-03-13 Tom Tromey <tom@tromey.com>
4470
4471 * go-valprint.c (go_value_print_inner): New function.
4472 * go-lang.h (go_value_print_inner): Declare.
4473 * go-lang.c (go_language_defn): Use go_value_print_inner.
4474
4475 2020-03-13 Tom Tromey <tom@tromey.com>
4476
4477 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
4478 API.
4479 (rust_val_print): Rewrite.
4480 (rust_value_print_inner): New function, from rust_val_print.
4481 (rust_language_defn): Use rust_value_print_inner.
4482
4483 2020-03-13 Tom Tromey <tom@tromey.com>
4484
4485 * ada-valprint.c (ada_value_print_inner): New function.
4486 * ada-lang.h (ada_value_print_inner): Declare.
4487 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
4488
4489 2020-03-13 Tom Tromey <tom@tromey.com>
4490
4491 * f-valprint.c (f_value_print_innner): New function.
4492 * f-lang.h (f_value_print_innner): Declare.
4493 * f-lang.c (f_language_defn): Use f_value_print_innner.
4494
4495 2020-03-13 Tom Tromey <tom@tromey.com>
4496
4497 * p-valprint.c (pascal_value_print_inner): New function.
4498 * p-lang.h (pascal_value_print_inner): Declare.
4499 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
4500
4501 2020-03-13 Tom Tromey <tom@tromey.com>
4502
4503 * m2-valprint.c (m2_value_print_inner): New function.
4504 * m2-lang.h (m2_value_print_inner): Declare.
4505 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
4506
4507 2020-03-13 Tom Tromey <tom@tromey.com>
4508
4509 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
4510 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
4511 * c-valprint.c (c_value_print_inner): New function.
4512 * c-lang.h (c_value_print_inner): Declare.
4513 * c-lang.c (c_language_defn, cplus_language_defn)
4514 (asm_language_defn, minimal_language_defn): Use
4515 c_value_print_inner.
4516
4517 2020-03-13 Tom Tromey <tom@tromey.com>
4518
4519 * p-valprint.c (pascal_object_print_value_fields): Now static.
4520 * p-lang.h (pascal_object_print_value_fields): Don't declare.
4521
4522 2020-03-13 Tom Tromey <tom@tromey.com>
4523
4524 * c-valprint.c (c_val_print_array): Simplify.
4525
4526 2020-03-13 Tom Tromey <tom@tromey.com>
4527
4528 * valprint.c (value_print_array_elements): New function.
4529 * valprint.h (value_print_array_elements): Declare.
4530
4531 2020-03-13 Tom Tromey <tom@tromey.com>
4532
4533 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
4534 * mips-tdep.c (mips_print_register): Use
4535 value_print_scalar_formatted.
4536
4537 2020-03-13 Tom Tromey <tom@tromey.com>
4538
4539 * valprint.h (value_print_scalar_formatted): Declare.
4540 * valprint.c (value_print_scalar_formatted): New function.
4541
4542 2020-03-13 Tom Tromey <tom@tromey.com>
4543
4544 * valprint.h (generic_value_print): Declare.
4545 * valprint.c (generic_value_print): New function.
4546
4547 2020-03-13 Tom Tromey <tom@tromey.com>
4548
4549 * valprint.c (do_val_print): Call la_value_print_inner, if
4550 available.
4551 * rust-lang.c (rust_language_defn): Update.
4552 * p-lang.c (pascal_language_defn): Update.
4553 * opencl-lang.c (opencl_language_defn): Update.
4554 * objc-lang.c (objc_language_defn): Update.
4555 * m2-lang.c (m2_language_defn): Update.
4556 * language.h (struct language_defn) <la_value_print_inner>: New
4557 member.
4558 * language.c (unknown_language_defn, auto_language_defn): Update.
4559 * go-lang.c (go_language_defn): Update.
4560 * f-lang.c (f_language_defn): Update.
4561 * d-lang.c (d_language_defn): Update.
4562 * c-lang.c (c_language_defn, cplus_language_defn)
4563 (asm_language_defn, minimal_language_defn): Update.
4564 * ada-lang.c (ada_language_defn): Update.
4565
4566 2020-03-13 Tom Tromey <tom@tromey.com>
4567
4568 * c-valprint.c (c_value_print): Use common_val_print.
4569
4570 2020-03-13 Tom Tromey <tom@tromey.com>
4571
4572 * cp-valprint.c (cp_print_static_field): Use common_val_print.
4573
4574 2020-03-13 Tom Tromey <tom@tromey.com>
4575
4576 * f-valprint.c (f77_print_array_1, f_val_print): Use
4577 common_val_print.
4578
4579 2020-03-13 Tom Tromey <tom@tromey.com>
4580
4581 * riscv-tdep.c (riscv_print_one_register_info): Use
4582 common_val_print.
4583
4584 2020-03-13 Tom Tromey <tom@tromey.com>
4585
4586 * mi/mi-main.c (output_register): Use common_val_print.
4587
4588 2020-03-13 Tom Tromey <tom@tromey.com>
4589
4590 * infcmd.c (default_print_one_register_info): Use
4591 common_val_print.
4592
4593 2020-03-13 Tom Tromey <tom@tromey.com>
4594
4595 * valprint.h (common_val_print_checked): Declare.
4596 * valprint.c (common_val_print_checked): New function.
4597 * stack.c (print_frame_arg): Use common_val_print_checked.
4598
4599 2020-03-13 Tom Tromey <tom@tromey.com>
4600
4601 * valprint.c (do_val_print): New function, from val_print.
4602 (val_print): Use do_val_print.
4603 (common_val_print): Use do_val_print.
4604
4605 2020-03-13 Tom Tromey <tom@tromey.com>
4606
4607 * valprint.c (value_print): Use scoped_value_mark.
4608
4609 2020-03-13 Tom de Vries <tdevries@suse.de>
4610
4611 PR symtab/25646
4612 * psymtab.c (partial_symtab::partial_symtab): Don't set
4613 globals_offset and statics_offset. Push element onto
4614 current_global_psymbols and current_static_psymbols stacks.
4615 (concat): New function.
4616 (end_psymtab_common): Set globals_offset and statics_offset. Pop
4617 element from current_global_psymbols and current_static_psymbols
4618 stacks. Concat popped elements to global_psymbols and
4619 static_symbols.
4620 (add_psymbol_to_list): Use current_global_psymbols and
4621 current_static_psymbols stacks.
4622 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
4623 current_static_psymbols fields.
4624
4625 2020-03-12 Christian Biesinger <cbiesinger@google.com>
4626
4627 * corelow.c (sniff_core_bfd): Remove.
4628 (class core_target) <m_core_vec>: Remove.
4629 (core_target::core_target): Update.
4630 (core_file_fns): Remove.
4631 (deprecated_add_core_fns): Remove.
4632 (default_core_sniffer): Remove.
4633 (sniff_core_bfd): Remove.
4634 (default_check_format): Remove.
4635 (gdb_check_format): Remove.
4636 (core_target_open): Update.
4637 (core_target::get_core_register_section): Update.
4638 (get_core_registers_cb): Update.
4639 (core_target::fetch_registers): Update.
4640 * gdbcore.h (struct core_fns): Remove.
4641 (deprecated_add_core_fns): Remove.
4642 (default_core_sniffer): Remove.
4643 (default_check_format): Remove.
4644
4645 2020-03-12 Tom Tromey <tom@tromey.com>
4646
4647 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
4648 CORE_ADDR.
4649 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
4650
4651 2020-03-12 Tom Tromey <tom@tromey.com>
4652
4653 * remote.c (remote_target::download_tracepoint)
4654 (remote_target::enable_tracepoint)
4655 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
4656 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
4657 sprintf_vma.
4658
4659 2020-03-12 Tom Tromey <tom@tromey.com>
4660
4661 * symfile-mem.c: Update CORE_ADDR size assert.
4662
4663 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * selftest.m4: Move to gdbsupport/.
4666 * acinclude.m4: Update path to selftest.m4.
4667
4668 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
4671 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
4672 gdbarch-selfselftests.c and selftest-arch.c.
4673 (SUBDIR_UNITTESTS_OBS): Rename to...
4674 (SELFTESTS_OBS): ... this.
4675 (COMMON_SFILES): Remove disasm-selftests.c and
4676 gdbarch-selftests.c.
4677 * configure.ac: Don't add selftest-arch.{c,o} to
4678 CONFIG_{SRCS,OBS}.
4679 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
4680 preprocessor conditions.
4681
4682 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * configure.ac: Don't source bfd/development.sh.
4685 * selftest.m4: Modify comment.
4686 * configure: Re-generate.
4687
4688 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
4691 not "true" or "false".
4692 * configure: Re-generate.
4693
4694 2020-03-12 Christian Biesinger <cbiesinger@google.com>
4695
4696 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
4697 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
4698 renamed to arm_nbsd_supply_gregset.
4699 (fetch_register): Update to call arm_nbsd_supply_gregset.
4700 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
4701 (arm_netbsd_nat_target::fetch_registers): Update.
4702 (fetch_elfcore_registers): Removed.
4703 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
4704 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
4705 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
4706 not require NetBSD system headers.
4707 (arm_nbsd_regset): New struct.
4708 (arm_nbsd_iterate_over_regset_sections): New function.
4709 (arm_netbsd_init_abi_common): Updated to call
4710 set_gdbarch_iterate_over_regset_sections.
4711 * arm-nbsd-tdep.h: New file.
4712
4713 2020-03-11 Kevin Buettner <kevinb@redhat.com>
4714
4715 * symtab.c (find_pc_sect_line): Add check which prevents infinite
4716 recursion.
4717
4718 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * configure: Re-generate.
4721
4722 2020-03-11 Tom Tromey <tromey@adacore.com>
4723
4724 * ada-typeprint.c (print_choices): Fix comment.
4725
4726 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
4727
4728 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
4729 previous item in the list, when the list has no items.
4730
4731 2020-03-11 Tom de Vries <tdevries@suse.de>
4732
4733 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
4734 PROP_LOCLIST handling code.
4735
4736 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
4737
4738 * buildsym-legacy.c (record_line): Pass extra parameter to
4739 record_line.
4740 * buildsym.c (buildsym_compunit::record_line): Take an extra
4741 parameter, reduce duplication in the line table, and record the
4742 is_stmt flag in the line table.
4743 * buildsym.h (buildsym_compunit::record_line): Add extra
4744 parameter.
4745 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
4746 non-statement lines.
4747 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
4748 this to the symtab builder.
4749 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
4750 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
4751 through to dwarf_record_line_1.
4752 * infrun.c (process_event_stop_test): When stepping, don't stop at
4753 a non-statement instruction, and only refresh the step info when
4754 we land in the middle of a line's range. Also add an extra
4755 comment.
4756 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
4757 field.
4758 * record-btrace.c (btrace_find_line_range): Only record lines
4759 marked as is-statement.
4760 * stack.c (frame_show_address): Show the frame address if we are
4761 in a non-statement sal.
4762 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
4763 (maintenance_print_one_line_table): Print a header for the is_stmt
4764 column, and include is_stmt information in the output.
4765 * symtab.c (find_pc_sect_line): Find lines marked as statements in
4766 preference to non-statements.
4767 (find_pcs_for_symtab_line): Prefer is-statement entries.
4768 (find_line_common): Likewise.
4769 * symtab.h (struct linetable_entry): Add is_stmt field.
4770 (struct symtab_and_line): Likewise.
4771 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
4772 arranging the line table.
4773
4774 2020-03-07 Tom de Vries <tdevries@suse.de>
4775
4776 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
4777 DIE.
4778
4779 2020-03-07 Tom Tromey <tom@tromey.com>
4780
4781 * valops.c (value_literal_complex): Remove obsolete comment.
4782 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
4783 comment.
4784
4785 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
4786
4787 * infrun.h: Forward-declare thread_info.
4788 (set_step_info): Add thread_info parameter, add doc.
4789 * infrun.c (set_step_info): Add thread_info parameter, move doc
4790 to header.
4791 * infrun.c (process_event_stop_test): Pass thread to
4792 set_step_info call.
4793 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
4794 set_step_info.
4795 (prepare_one_step): Add thread_info parameter, pass it to
4796 set_step_frame and prepare_one_step (recursive) call.
4797 (step_1): Pass thread to prepare_one_step call.
4798 (step_command_fsm::should_stop): Pass thread to
4799 prepare_one_step.
4800 (until_next_fsm): Pass thread to set_step_frame call.
4801 (finish_command): Pass thread to set_step_info call.
4802
4803 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
4804
4805 * windows-tdep.c (windows_solib_create_inferior_hook):
4806 Check if inferior is running.
4807
4808 2020-03-06 Tom de Vries <tdevries@suse.de>
4809
4810 * NEWS: Fix "the the".
4811 * ctfread.c: Same.
4812
4813 2020-03-06 Tom de Vries <tdevries@suse.de>
4814
4815 * psymtab.c (psymtab_to_symtab): Don't print "done.".
4816
4817 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4818
4819 * .dir-locals.el: Add a comment referencing the other copies of
4820 this file.
4821
4822 2020-03-05 John Baldwin <jhb@FreeBSD.org>
4823
4824 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
4825 psargs.
4826
4827 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4828
4829 * .gitattributes: New file.
4830
4831 2020-03-04 Tom Tromey <tom@tromey.com>
4832
4833 * symmisc.c (print_symbol_bcache_statistics)
4834 (print_objfile_statistics): Update.
4835 * symfile.c (allocate_symtab): Use intern.
4836 * psymtab.c (partial_symtab::partial_symtab): Use intern.
4837 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4838 macro_cache>: Remove.
4839 <string_cache>: New member.
4840 (struct objfile) <intern>: New methods.
4841 * elfread.c (elf_symtab_read): Use intern.
4842 * dwarf2/read.c (fixup_go_packaging): Intern package name.
4843 (dwarf2_compute_name, dwarf2_physname)
4844 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
4845 names.
4846 (guess_partial_die_structure_name): Update.
4847 (partial_die_info::fixup): Intern name.
4848 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
4849 name.
4850 (dwarf2_name): Intern name. Update.
4851 * buildsym.c (buildsym_compunit::get_macro_table): Use
4852 string_cache.
4853
4854 2020-03-04 Tom Tromey <tom@tromey.com>
4855
4856 * jit.c (bfd_open_from_target_memory): Make "target" const.
4857 * corefile.c (gnutarget): Now const.
4858 * gdbcore.h (gnutarget): Now const.
4859
4860 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
4861
4862 * NEWS: Mention support for WOW64 processes.
4863 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
4864 (amd64_windows_segment_register_p): Remove static.
4865 (_initialize_amd64_windows_nat): Update.
4866 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
4867 * i386-windows-nat.c (context_offset): Update.
4868 (i386_mappings): Rename and remove static.
4869 (i386_windows_segment_register_p): Remove static.
4870 (_initialize_i386_windows_nat): Update.
4871 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
4872 (STATUS_WX86_SINGLE_STEP): New macro.
4873 (EnumProcessModulesEx): New macro.
4874 (Wow64SuspendThread): New macro.
4875 (Wow64GetThreadContext): New macro.
4876 (Wow64SetThreadContext): New macro.
4877 (Wow64GetThreadSelectorEntry): New macro.
4878 (windows_set_context_register_offsets): Add static.
4879 (windows_set_segment_register_p): Likewise.
4880 (windows_add_thread): Adapt for WOW64 processes.
4881 (windows_fetch_one_register): Likewise.
4882 (windows_nat_target::fetch_registers): Likewise.
4883 (windows_store_one_register): Likewise.
4884 (display_selector): Likewise.
4885 (display_selectors): Likewise.
4886 (handle_exception): Likewise.
4887 (windows_continue): Likewise.
4888 (windows_nat_target::resume): Likewise.
4889 (windows_add_all_dlls): Likewise.
4890 (do_initial_windows_stuff): Likewise.
4891 (windows_nat_target::attach): Likewise.
4892 (windows_get_exec_module_filename): Likewise.
4893 (windows_nat_target::create_inferior): Likewise.
4894 (windows_xfer_siginfo): Likewise.
4895 (_initialize_loadable): Initialize Wow64SuspendThread,
4896 Wow64GetThreadContext, Wow64SetThreadContext,
4897 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
4898 * windows-nat.h (windows_set_context_register_offsets):
4899 Remove declaration.
4900 (windows_set_segment_register_p): Likewise.
4901 (i386_windows_segment_register_p): Add declaration.
4902 (amd64_windows_segment_register_p): Likewise.
4903
4904 2020-03-04 Luis Machado <luis.machado@linaro.org>
4905
4906 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
4907 in "info registers" for AArch64/ARM.
4908
4909 The change caused "info registers" to not print GPR's.
4910
4911 gdb/ChangeLog:
4912
4913 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
4914
4915 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4916 when reg->group is empty and reggroup is not.
4917
4918 2020-03-03 Tom Tromey <tromey@adacore.com>
4919
4920 * dwarf2/frame.c (struct dwarf2_frame_cache)
4921 <checked_tailcall_bottom, entry_cfa_sp_offset,
4922 entry_cfa_sp_offset_p>: Remove members.
4923 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
4924 (dwarf2_frame_prev_register): Don't call
4925 dwarf2_tailcall_sniffer_first.
4926 (dwarf2_append_unwinders): Don't append tailcall unwinder.
4927 * frame-unwind.c (add_unwinder): New fuction.
4928 (frame_unwind_init): Use it. Add tailcall unwinder.
4929
4930 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
4931 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4932
4933 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
4934 value should be printed as true.
4935
4936 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
4937
4938 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
4939 (windows_init_abi): Set and use windows_so_ops.
4940
4941 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
4942
4943 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
4944 when verifying if dealing with a convenience variable.
4945
4946 2020-03-03 Luis Machado <luis.machado@linaro.org>
4947
4948 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
4949
4950 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
4951
4952 * infrun.c (gdbarch_supports_displaced_stepping): New.
4953 (use_displaced_stepping): Break up conditions in smaller pieces.
4954 Use gdbarch_supports_displaced_stepping.
4955 (displaced_step_prepare_throw): Use
4956 gdbarch_supports_displaced_stepping.
4957
4958 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 * NEWS: Mention new behaviour of the history filename.
4961 * top.c (write_history_p): Add comment.
4962 (show_write_history_p): Add header comment, give a different
4963 message when history writing is on, but the history filename is
4964 empty.
4965 (history_filename): Add comment.
4966 (history_filename_empty): New function.
4967 (show_history_filename): Add header comment, give a different
4968 message when the filename is empty.
4969 (init_history): Compare history_filename against nullptr, and only
4970 read history if the filename is not empty.
4971 (set_history_filename): Add header comment, and only make
4972 non-empty filenames absolute.
4973 (init_main): Make the filename argument to 'set history filename'
4974 optional.
4975
4976 2020-03-02 Christian Biesinger <cbiesinger@google.com>
4977
4978 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
4979 (arm_supply_vfpregset): ...this, and update to use VFP registers.
4980 (fetch_fp_register): Update.
4981 (fetch_fp_regs): Update.
4982 (store_fp_register): Update.
4983 (store_fp_regs): Update.
4984 (arm_netbsd_nat_target::read_description): New function.
4985 (fetch_elfcore_registers): Update.
4986
4987 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
4988
4989 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
4990 general_thread if the stop reply is missing a thread-id.
4991 (remote_target::process_stop_reply): Use the first non-exited
4992 thread if the target didn't pass a thread-id.
4993 * infrun.c (do_target_wait): Move call to
4994 switch_to_inferior_no_thread to ....
4995 (do_target_wait_1): ... here.
4996
4997 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
4998
4999 * debuginfod-support.c: Include defs.h first.
5000
5001 2020-02-28 Tom de Vries <tdevries@suse.de>
5002
5003 * symfile.c (set_initial_language): Use default language for lookup.
5004
5005 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
5006
5007 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
5008 reader variable, pass `this` to read_cutu_die_from_dwo.
5009
5010 2020-02-27 Aaron Merey <amerey@redhat.com>
5011
5012 * source.c (open_source_file): Check for nullptr when computing
5013 srcpath.
5014
5015 2020-02-27 Tom Tromey <tromey@adacore.com>
5016
5017 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
5018 member.
5019 (dwarf2_add_field): Don't update nfields.
5020 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
5021
5022 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5023
5024 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
5025 abs.
5026
5027 2020-02-26 Tom Tromey <tom@tromey.com>
5028
5029 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
5030 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
5031 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
5032 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
5033 per_cu_data.
5034
5035 2020-02-26 Tom Tromey <tom@tromey.com>
5036
5037 * dwarf2/index-write.c (psym_index_map): Change type.
5038 (add_address_entry_worker, write_one_signatured_type)
5039 (recursively_count_psymbols, recursively_write_psymbols)
5040 (class debug_names, psyms_seen_size, write_gdbindex)
5041 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
5042
5043 2020-02-26 Aaron Merey <amerey@redhat.com>
5044
5045 * Makefile.in: Handle optional debuginfod support.
5046 * NEWS: Update.
5047 * README: Add --with-debuginfod summary.
5048 * config.in: Regenerate.
5049 * configure: Regenerate.
5050 * configure.ac: Handle optional debuginfod support.
5051 * debuginfod-support.c: debuginfod helper functions.
5052 * debuginfod-support.h: Ditto.
5053 * doc/gdb.texinfo: Add --with-debuginfod to configure options
5054 summary.
5055 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
5056 when a dwz file cannot be found.
5057 * elfread.c (elf_symfile_read): Query debuginfod servers when a
5058 debuginfo file cannot be found.
5059 * source.c (open_source_file): Query debuginfod servers when a
5060 source file cannot be found.
5061 * top.c (print_gdb_configuration): Include
5062 --{with,without}-debuginfod in the output.
5063
5064 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5065
5066 * thread.c (thr_try_catch_cmd): Print thread name.
5067
5068 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
5071 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5072 dwarf2_fetch_die_type_sect_off): Move to...
5073 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5074 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5075 dwarf2_fetch_die_type_sect_off): ... here.
5076 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5077 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5078 dwarf2_fetch_die_type_sect_off): Move doc to header file.
5079
5080 2020-02-26 Tom de Vries <tdevries@suse.de>
5081
5082 PR gdb/25603
5083 * symfile.c (set_initial_language): Exit-early if
5084 language_mode == language_mode_manual.
5085
5086 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
5089 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
5090 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
5091
5092 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * gdbtypes.c (create_array_type_with_stride): Handle negative
5095 array strides.
5096 * valarith.c (value_subscripted_rvalue): Likewise.
5097
5098 2020-02-25 Luis Machado <luis.machado@linaro.org>
5099
5100 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
5101
5102 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * loc.h (dwarf2_get_die_type): Move to...
5105 * read.h (dwarf2_get_die_type): ... here.
5106 * read.c (dwarf2_get_die_type): Move doc to header.
5107
5108 2020-02-25 Joel Brobecker <brobecker@adacore.com>
5109
5110 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
5111 'gnulib/Makefile.in' to the list.
5112
5113 2020-02-24 Tom Tromey <tom@tromey.com>
5114
5115 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
5116 Remove.
5117 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
5118 XOBNEWVEC.
5119
5120 2020-02-24 Tom Tromey <tom@tromey.com>
5121
5122 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
5123 New method.
5124 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
5125 (dw2_do_instantiate_symtab, dw2_get_file_names)
5126 (build_type_psymtab_dependencies, load_full_type_unit): Update.
5127
5128 2020-02-24 Tom Tromey <tom@tromey.com>
5129
5130 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
5131 make_scoped_restore.
5132 (dwarf2_psymtab::read_symtab): Don't clear
5133 reading_partial_symbols.
5134
5135 2020-02-24 Tom de Vries <tdevries@suse.de>
5136
5137 PR gdb/25592
5138 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
5139
5140 2020-02-24 Tom de Vries <tdevries@suse.de>
5141
5142 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
5143 commands layout next/prev/regs.
5144
5145 2020-02-22 Tom Tromey <tom@tromey.com>
5146
5147 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
5148 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
5149
5150 2020-02-22 Tom Tromey <tom@tromey.com>
5151
5152 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
5153
5154 2020-02-22 Tom Tromey <tom@tromey.com>
5155
5156 * tui/tui-win.c (_initialize_tui_win): Add usage text.
5157 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
5158 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
5159 * tui/tui.c (_initialize_tui): Add usage text.
5160
5161 2020-02-22 Tom Tromey <tom@tromey.com>
5162
5163 * tui/tui-win.c (tui_set_focus_command)
5164 (tui_set_win_height_command): Use error_no_arg.
5165 (_initialize_tui_win): Update help text.
5166 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
5167
5168 2020-02-22 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
5171 * tui/tui-disasm.h (struct tui_disasm_window)
5172 <display_start_addr>: Declare.
5173 * tui/tui-source.h (struct tui_source_window)
5174 <display_start_addr>: Declare.
5175 * tui/tui-winsource.h (struct tui_source_window_base)
5176 <show_source_line, display_start_addr>: New methods.
5177 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
5178 Rename and move to protected section.
5179 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
5180 (tui_source_window_base::do_erase_source_content): Update.
5181 (tui_source_window_base::show_source_line): Now a method.
5182 (tui_source_window_base::show_source_content)
5183 (tui_source_window_base::tui_source_window_base)
5184 (tui_source_window_base::rerender)
5185 (tui_source_window_base::refill)
5186 (tui_source_window_base::do_scroll_horizontal)
5187 (tui_source_window_base::set_is_exec_point_at)
5188 (tui_source_window_base::update_breakpoint_info)
5189 (tui_source_window_base::update_exec_info): Update.
5190 * tui/tui-source.c (tui_source_window::set_contents)
5191 (tui_source_window::showing_source_p)
5192 (tui_source_window::do_scroll_vertical)
5193 (tui_source_window::location_matches_p)
5194 (tui_source_window::line_is_displayed): Update.
5195 (tui_source_window::display_start_addr): New method.
5196 * tui/tui-disasm.c (tui_disasm_window::set_contents)
5197 (tui_disasm_window::do_scroll_vertical)
5198 (tui_disasm_window::location_matches_p): Update.
5199 (tui_disasm_window::display_start_addr): New method.
5200
5201 2020-02-22 Tom Tromey <tom@tromey.com>
5202
5203 * NEWS: Add entry for gdb.register_window_type.
5204 * tui/tui-layout.h (window_factory): New typedef.
5205 (tui_register_window): Declare.
5206 * tui/tui-layout.c (saved_tui_windows): New global.
5207 (tui_apply_current_layout): Use it.
5208 (tui_register_window): New function.
5209 * python/python.c (do_start_initialization): Call
5210 gdbpy_initialize_tui.
5211 (python_GdbMethods): Add "register_window_type" function.
5212 * python/python-internal.h (gdbpy_register_tui_window)
5213 (gdbpy_initialize_tui): Declare.
5214 * python/py-tui.c: New file.
5215 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
5216
5217 2020-02-22 Tom Tromey <tom@tromey.com>
5218
5219 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
5220
5221 2020-02-22 Tom Tromey <tom@tromey.com>
5222
5223 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
5224 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
5225 * tui/tui-data.c (tui_set_win_with_focus): Remove.
5226 (tui_set_win_focus_to): Move from tui-win.c.
5227
5228 2020-02-22 Tom Tromey <tom@tromey.com>
5229
5230 * tui/tui-layout.c (make_standard_window, get_locator_window): New
5231 functions.
5232 (known_window_types): New global.
5233 (tui_get_window_by_name): Reimplement.
5234 (initialize_known_windows): New function.
5235 (validate_window_name): Rewrite.
5236 (_initialize_tui_layout): Call initialize_known_windows.
5237
5238 2020-02-22 Tom Tromey <tom@tromey.com>
5239
5240 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
5241 Remove constants.
5242 * tui/tui-winsource.h (struct tui_source_window_base)
5243 <tui_source_window_base>: Remove parameter.
5244 * tui/tui-winsource.c
5245 (tui_source_window_base::tui_source_window_base): Remove
5246 parameter.
5247 (tui_source_window_base::refill): Update.
5248 * tui/tui-stack.h (struct tui_locator_window)
5249 <tui_locator_window>: Update.
5250 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
5251 Default the constructor.
5252 * tui/tui-regs.h (struct tui_data_item_window)
5253 <tui_data_item_window>: Default the constructor.
5254 (struct tui_data_window) <tui_data_window>: Likewise.
5255 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
5256 Default the constructor.
5257 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
5258 Default the constructor.
5259 <type>: Remove.
5260 (struct tui_win_info) <tui_win_info>: Default the constructor.
5261 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
5262 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
5263 Default the constructor.
5264
5265 2020-02-22 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
5268 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
5269 * tui/tui-win.c (tui_resize_all): Don't call
5270 tui_delete_invisible_windows.
5271 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
5272 done.
5273 (tui_set_layout): Update.
5274 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
5275 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
5276 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
5277
5278 2020-02-22 Tom Tromey <tom@tromey.com>
5279
5280 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
5281 correctly.
5282
5283 2020-02-22 Tom Tromey <tom@tromey.com>
5284
5285 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
5286
5287 2020-02-22 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-winsource.h (struct tui_source_window_iterator)
5290 <inner_iterator>: New etytypedef.
5291 <tui_source_window_iterator>: Take "end" parameter.
5292 <tui_source_window_iterator>: Take iterator.
5293 <operator*, advance>: Update.
5294 <m_iter>: Change type.
5295 <m_end>: New field.
5296 (struct tui_source_windows) <begin, end>: Update.
5297 * tui/tui-layout.c (tui_windows): New global.
5298 (tui_apply_current_layout): Clear tui_windows.
5299 (tui_layout_window::apply): Update tui_windows.
5300 * tui/tui-data.h (tui_windows): Declare.
5301 (all_tui_windows): Now inline function.
5302 (class tui_window_iterator, struct all_tui_windows): Remove.
5303
5304 2020-02-22 Tom Tromey <tom@tromey.com>
5305
5306 PR tui/17850:
5307 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
5308 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
5309 "height" argument.
5310 (class tui_layout_window) <get_sizes>: Likewise.
5311 (class tui_layout_split) <tui_layout_split>: Add "vertical"
5312 argument.
5313 <get_sizes>: Add "height" argument.
5314 <m_vertical>: New field.
5315 * tui/tui-layout.c (tui_layout_split::clone): Update.
5316 (tui_layout_split::get_sizes): Add "height" argument.
5317 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
5318 (tui_new_layout_command): Parse "-horizontal".
5319 (_initialize_tui_layout): Update help string.
5320 (tui_layout_split::specification): Add "-horizontal" when needed.
5321 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
5322 argument.
5323 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
5324 New methods.
5325
5326 2020-02-22 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-layout.h (enum tui_adjust_result): New.
5329 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
5330 (class tui_layout_window) <adjust_size>: Return
5331 tui_adjust_result. Rewrite.
5332 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
5333 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
5334
5335 2020-02-22 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
5338 parameter and return types.
5339 (class tui_layout_base) <specification>: Add "depth".
5340 (class tui_layout_window) <specification>: Add "depth".
5341 (class tui_layout_split) <specification>: Add "depth".
5342 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
5343 and return types.
5344 (tui_new_layout_command): Parse sub-layouts.
5345 (_initialize_tui_layout): Update help string.
5346 (tui_layout_window::specification): Add "depth".
5347 (add_layout_command): Update.
5348
5349 2020-02-22 Tom Tromey <tom@tromey.com>
5350
5351 * NEWS: Add "tui new-layout" item.
5352 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
5353 Add new-layout command to help text.
5354 (validate_window_name): New function.
5355 (tui_new_layout_command): New function.
5356 (_initialize_tui_layout): Register "new-layout".
5357 (tui_layout_window::specification): New method.
5358 (tui_layout_window::specification): New method.
5359 * tui/tui-layout.h (class tui_layout_base) <specification>: New
5360 method.
5361 (class tui_layout_window) <specification>: New method.
5362 (class tui_layout_split) <specification>: New method.
5363
5364 2020-02-22 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
5367 * tui/tui-win.c (window_name_completer): Update comment.
5368 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
5369 Declare method.
5370 (class tui_layout_window) <replace_window>: Likewise.
5371 (class tui_layout_split) <replace_window>: Likewise.
5372 (tui_set_layout): Don't declare.
5373 (tui_set_initial_layout): Declare function.
5374 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
5375 (asm_regs_layout): New globals.
5376 (tui_current_layout, show_layout): Remove.
5377 (tui_set_layout, tui_add_win_to_layout): Rewrite.
5378 (find_layout, tui_apply_layout): New function.
5379 (layout_completer): Remove.
5380 (tui_next_layout): Reimplement.
5381 (tui_next_layout_command): New function.
5382 (tui_set_initial_layout, tui_prev_layout_command): New functions.
5383 (tui_regs_layout): Reimplement.
5384 (tui_regs_layout_command): New function.
5385 (extract_display_start_addr): Rewrite.
5386 (next_layout, prev_layout): Remove.
5387 (tui_layout_window::replace_window): New method.
5388 (tui_layout_split::replace_window): New method.
5389 (destroy_layout): New function.
5390 (layout_list): New global.
5391 (add_layout_command): New function.
5392 (initialize_layouts): Update.
5393 (tui_layout_command): New function.
5394 (_initialize_tui_layout): Install "layout" commands.
5395 * tui/tui-data.h (enum tui_layout_type): Remove.
5396 (tui_current_layout): Don't declare.
5397
5398 2020-02-22 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-regs.c (tui_reg_layout): Remove.
5401 (tui_reg_command): Use tui_regs_layout.
5402 * tui/tui-layout.h (tui_reg_command): Declare.
5403 * tui/tui-layout.c (tui_reg_command): New function.
5404
5405 2020-02-22 Tom Tromey <tom@tromey.com>
5406
5407 * tui/tui.c (tui_rl_delete_other_windows): Call
5408 tui_remove_some_windows.
5409 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
5410 Declare method.
5411 (class tui_layout_window) <remove_windows>: New method.
5412 (class tui_layout_split) <remove_windows>: Declare.
5413 (tui_remove_some_windows): Declare.
5414 * tui/tui-layout.c (tui_remove_some_windows): New function.
5415 (tui_layout_split::remove_windows): New method.
5416
5417 2020-02-22 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
5420 * tui/tui-layout.h (tui_next_layout): Declare.
5421 * tui/tui-layout.c (tui_next_layout): New function.
5422
5423 2020-02-22 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
5426 correct coordinates.
5427
5428 2020-02-22 Tom Tromey <tom@tromey.com>
5429
5430 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
5431 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
5432 DATA_WIN case.
5433
5434 2020-02-22 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
5437 TUI_DISASM_WIN, not tui_win_list.
5438
5439 2020-02-22 Tom Tromey <tom@tromey.com>
5440
5441 * valprint.c (generic_val_print_enum_1)
5442 (val_print_type_code_flags): Style member names.
5443 * rust-lang.c (val_print_struct, rust_print_enum)
5444 (rust_print_struct_def, rust_internal_print_type): Style member
5445 names.
5446 * p-valprint.c (pascal_object_print_value_fields): Style member
5447 names. Only call fprintf_symbol_filtered for static members.
5448 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
5449 * f-valprint.c (f_val_print): Style member names.
5450 * f-typeprint.c (f_type_print_base): Style member names.
5451 * cp-valprint.c (cp_print_value_fields): Style member names. Only
5452 call fprintf_symbol_filtered for static members.
5453 (cp_print_class_member): Style member names.
5454 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
5455 member names.
5456 * ada-valprint.c (ada_print_scalar): Style enum names.
5457 (ada_val_print_enum): Likewise.
5458 * ada-typeprint.c (print_enum_type): Style enum names.
5459
5460 2020-02-21 Tom Tromey <tom@tromey.com>
5461
5462 * psympriv.h (struct partial_symtab): Update comment.
5463
5464 2020-02-21 Tom Tromey <tromey@adacore.com>
5465
5466 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
5467 type is CORE_ADDR.
5468
5469 2020-02-21 Tom de Vries <tdevries@suse.de>
5470
5471 PR gdb/25534
5472 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
5473 if dependencies[i]->user != NULL.
5474
5475 2020-02-21 Ali Tamur <tamur@google.com>
5476
5477 * dwarf2/read.c (dwarf2_name): Add null check.
5478
5479 2020-02-20 Tom Tromey <tom@tromey.com>
5480
5481 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
5482 ">=", in binary search.
5483 (dwarf2_find_containing_comp_unit): New overload.
5484 (run_test): New self-test.
5485 (_initialize_dwarf2_read): Register new test.
5486
5487 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
5488
5489 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
5490 * riscv-tdep.h: Likewise.
5491 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
5492 rv32-only CSR.
5493 * features/riscv/64bit-csr.xml: Regenerated.
5494
5495 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5496 Tom Tromey <tom@tromey.com>
5497
5498 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
5499 of 'fputc_unfiltered'.
5500 (putchar_unfiltered): Call 'fputc_unfiltered'.
5501 (fputc_unfiltered): Call 'fputs_unfiltered'.
5502
5503 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
5504
5505 * config.in: Regenerate.
5506 * configure: Regenerate.
5507 * configure.ac: Add --with-python-libdir option.
5508 * main.c: Use WITH_PYTHON_LIBDIR.
5509
5510 2020-02-19 Tom Tromey <tom@tromey.com>
5511
5512 * symtab.c (general_symbol_info::compute_and_set_names): Use
5513 obstack_strndup. Simplify call to symbol_set_demangled_name.
5514
5515 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
5516
5517 * dwarf2/read.c (allocate_signatured_type_table,
5518 allocate_dwo_unit_table, allocate_type_unit_groups_table,
5519 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
5520 Remove objfile parameter, update all callers.
5521
5522 2020-02-19 Doug Evans <dje@google.com>
5523
5524 PR rust/25535
5525 * rust-lang.c (rust_print_enum): Apply embedded_offset to
5526 rust_enum_variant calculation.
5527
5528 2020-02-19 Tom Tromey <tromey@adacore.com>
5529
5530 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
5531
5532 2020-02-19 Tom Tromey <tromey@adacore.com>
5533
5534 * ada-lang.c (cache_symbol): Use obstack_strdup.
5535
5536 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
5537
5538 * configure: Regenerate.
5539
5540 2020-02-19 Tom Tromey <tromey@adacore.com>
5541
5542 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
5543 NULL check.
5544
5545 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
5546
5547 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
5548
5549 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
5552 if GDBSERVER is not defined.
5553 (riscv_tdesc_cache): Likewise, also store const target_desc.
5554 (STATIC_IN_GDB): Define.
5555 (riscv_create_target_description): Update declaration with
5556 STATIC_IN_GDB.
5557 (riscv_lookup_target_description): New function, only define if
5558 GDBSERVER is not defined.
5559 * arch/riscv.h (riscv_create_target_description): Declare only
5560 when GDBSERVER is defined.
5561 (riscv_lookup_target_description): New declaration when GDBSERVER
5562 is not defined.
5563 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
5564 (riscv_linux_read_features): ...this, and return
5565 riscv_gdbarch_features instead of target_desc.
5566 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
5567 (riscv_linux_read_description): Rename to...
5568 (riscv_linux_read_features): ...this.
5569 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
5570 Update to use riscv_gdbarch_features and
5571 riscv_lookup_target_description.
5572 * riscv-tdep.c (riscv_find_default_target_description): Use
5573 riscv_lookup_target_description instead of
5574 riscv_create_target_description.
5575
5576 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * valprint.c (generic_val_print_enum_1): When printing a flag
5579 enum with value 0 and there is no enumerator with value 0, print
5580 just "0" instead of "(unknown: 0x0)".
5581
5582 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * valprint.c (generic_val_print_enum_1): Print unknown part of
5585 flag enum in hex.
5586
5587 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
5588
5589 * dwarf2/read.c (update_enumeration_type_from_children): Allow
5590 flag enums to contain duplicate enumerators.
5591 * valprint.c (generic_val_print_enum_1): Update comment.
5592
5593 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * dwarf2/read.c: Include "count-one-bits.h".
5596 (update_enumeration_type_from_children): If an enumerator has
5597 multiple bits set, don't treat the enumeration as a "flag enum".
5598 * valprint.c (generic_val_print_enum_1): Assert that enumerators
5599 of flag enums have 0 or 1 bit set.
5600
5601 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
5602
5603 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
5604 conversion.
5605 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5606 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
5607 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5608 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
5609 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5610
5611 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
5614
5615 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
5616
5617 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
5618 displaced_step_closure_up.
5619 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
5620 (struct displaced_step_closure_up):
5621 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5622 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
5623 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
5624 Likewise.
5625 * gdbarch.sh (displaced_step_copy_insn): Likewise.
5626 * gdbarch.c, gdbarch.h: Re-generate.
5627 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
5628 displaced_step_closure_up.
5629 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5630 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
5631 * infrun.h (displaced_step_closure_up): New type alias.
5632 (struct displaced_step_inferior_state) <step_closure>: Change
5633 type to displaced_step_closure_up.
5634 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
5635 displaced_step_closure_up.
5636 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5637
5638 2020-02-14 Tom Tromey <tom@tromey.com>
5639
5640 * minidebug.c (gnu_debug_key): New global.
5641 (find_separate_debug_file_in_section): Use it.
5642
5643 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
5646 std::unique_ptr.
5647 * gdbarch.c: Re-generate.
5648 * gdbarch.h: Re-generate.
5649 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
5650 change.
5651 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
5652 type to std::unique_ptr.
5653 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
5654 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
5655 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
5656 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
5657 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
5658 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
5659 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
5660 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
5661 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
5662
5663 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
5666 std::unique_ptr.
5667 (displaced_step_clear): Rename to...
5668 (displaced_step_reset): ... this. Just call displaced->reset ().
5669 (displaced_step_clear_cleanup): Rename to...
5670 (displaced_step_reset_cleanup): ... this.
5671 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
5672 (displaced_step_fixup): Likewise.
5673 (resume_1): Likewise.
5674 (handle_inferior_event): Restore child's memory before calling
5675 displaced_step_fixup on the parent.
5676 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
5677 to std::unique_ptr.
5678 <step_closure>: Change type to std::unique_ptr.
5679
5680 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
5681
5682 * arm-tdep.c: Include count-one-bits.h.
5683 (cleanup_block_store_pc): Use count_one_bits.
5684 (cleanup_block_load_pc): Use count_one_bits.
5685 (arm_copy_block_xfer): Use count_one_bits.
5686 (thumb2_copy_block_xfer): Use count_one_bits.
5687 (thumb_copy_pop_pc_16bit): Use count_one_bits.
5688 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
5689 (thumb_get_next_pcs_raw): Use count_one_bits.
5690 (arm_get_next_pcs_raw): Use count_one_bits_l.
5691 * arch/arm.c (bitcount): Remove.
5692 * arch/arm.h (bitcount): Remove.
5693
5694 2020-02-14 Tom Tromey <tromey@adacore.com>
5695
5696 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
5697 Update.
5698 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
5699 * dwarf2/loc.c (call_site_find_chain_1): Return
5700 unique_xmalloc_ptr.
5701 (call_site_find_chain): Likewise.
5702
5703 2020-02-14 Richard Biener <rguenther@suse.de>
5704
5705 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
5706 on expression with division operators.
5707
5708 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5709
5710 * MAINTAINERS (Write After Approval): Adding myself.
5711
5712 2020-02-12 Tom Tromey <tom@tromey.com>
5713
5714 * event-loop.c (event_data, gdb_event, event_handler_func):
5715 Remove.
5716
5717 2020-02-12 Tom Tromey <tom@tromey.com>
5718
5719 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
5720 (dwarf2_frame_objfile_data): Add comment.
5721 (find_comp_unit, set_comp_unit): New functions.
5722 (dwarf2_frame_find_fde): Use find_comp_unit.
5723 (dwarf2_build_frame_info): Use set_comp_unit.
5724
5725 2020-02-12 Tom Tromey <tom@tromey.com>
5726
5727 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
5728 (comp_unit): Don't initialize objfile.
5729 (execute_cfa_program): Add text_offset parameter.
5730 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
5731 (dwarf2_frame_cache): Update.
5732 (dwarf2_build_frame_info): Don't set "objfile" member.
5733
5734 2020-02-12 Tom Tromey <tom@tromey.com>
5735
5736 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
5737 (decode_frame_entry): Likewise.
5738 (dwarf2_build_frame_info): Update.
5739
5740 2020-02-12 Tom Tromey <tom@tromey.com>
5741
5742 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
5743 (decode_frame_entry_1): Use the comp_unit obstack.
5744
5745 2020-02-12 Tom Tromey <tom@tromey.com>
5746
5747 * dwarf2/frame.c (struct comp_unit): Add initializers and
5748 constructor.
5749 (dwarf2_frame_objfile_data): Store a comp_unit.
5750 (dwarf2_frame_find_fde): Update.
5751 (dwarf2_build_frame_info): Use "new".
5752
5753 2020-02-12 Tom Tromey <tom@tromey.com>
5754
5755 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
5756 (dwarf2_fde_table): Typedef for std::vector.
5757 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
5758 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
5759 (decode_frame_entry): Update.
5760 (dwarf2_build_frame_info): Use "new".
5761
5762 2020-02-12 Christian Biesinger <cbiesinger@google.com>
5763
5764 * arm-tdep.c (arm_gdbarch_init): Update.
5765 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
5766 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
5767 have_neon, is_m>: Change to bool.
5768
5769 2020-02-12 Christian Biesinger <cbiesinger@google.com>
5770
5771 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
5772
5773 2020-02-12 Tom Tromey <tom@tromey.com>
5774
5775 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
5776
5777 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
5778
5779 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
5780 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
5781
5782 2020-02-11 Tom Tromey <tom@tromey.com>
5783
5784 * psymtab.h: Update comment.
5785
5786 2020-02-11 Tom Tromey <tom@tromey.com>
5787
5788 * gdb_obstack.h (struct auto_obstack): Use
5789 DISABLE_COPY_AND_ASSIGN.
5790
5791 2020-02-11 Tom Tromey <tom@tromey.com>
5792
5793 * dwarf2/frame.h (struct objfile): Don't forward declare.
5794
5795 2020-02-11 Christian Biesinger <cbiesinger@google.com>
5796
5797 * cris-tdep.c (cris_supply_gregset): Change signature to match
5798 what struct regset expects.
5799 (cris_regset): New struct.
5800 (fetch_core_registers): Remove.
5801 (cris_iterate_over_regset_sections): New function.
5802 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
5803 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
5804
5805 2020-02-11 Christian Biesinger <cbiesinger@google.com>
5806
5807 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
5808 registers.
5809
5810 2020-02-11 Christian Biesinger <cbiesinger@google.com>
5811
5812 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
5813
5814 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * configure: Re-generate.
5817
5818 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
5819
5820 * configure: Re-generate.
5821
5822 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * acinclude: Update warning.m4 path.
5825 * warning.m4: Move to gdbsupport.
5826
5827 2020-02-11 Tom Tromey <tromey@adacore.com>
5828
5829 * remote.c (remote_console_output): Update.
5830 * printcmd.c (printf_command): Update.
5831 * event-loop.c (gdb_wait_for_event): Update.
5832 * linux-nat.c (sigchld_handler): Update.
5833 * remote-sim.c (gdb_os_write_stdout): Update.
5834 (gdb_os_flush_stdout): Update.
5835 (gdb_os_flush_stderr): Update.
5836 (gdb_os_write_stderr): Update.
5837 * exceptions.c (print_exception): Update.
5838 * remote-fileio.c (remote_fileio_func_read): Update.
5839 (remote_fileio_func_write): Update.
5840 * tui/tui.c (tui_enable): Update.
5841 * tui/tui-interp.c (tui_interp::init): Update.
5842 * utils.c (init_page_info): Update.
5843 (putchar_unfiltered, fputc_unfiltered): Update.
5844 (gdb_flush): Update.
5845 (emit_style_escape): Update.
5846 (flush_wrap_buffer, fputs_maybe_filtered): Update.
5847 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
5848 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
5849 (stderr_file::write): Update.
5850 (stderr_file::puts): Update.
5851 * ui-file.h (ui_file_isatty, ui_file_write)
5852 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
5853 (ui_file_puts): Don't declare.
5854
5855 2020-02-10 Tom de Vries <tdevries@suse.de>
5856
5857 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
5858 sentinel to char *.
5859
5860 2020-02-09 Tom de Vries <tdevries@suse.de>
5861
5862 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
5863 filename if it matches "<artificial>".
5864
5865 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
5866
5867 * windows-tdep.c (struct enum_value_name): New struct.
5868 (create_enum): New function.
5869 (windows_get_siginfo_type): Create and use enum types.
5870
5871 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
5872
5873 * NEWS: Mention $_siginfo support for Windows.
5874 * windows-nat.c (handle_exception): Set siginfo_er.
5875 (windows_nat_target::mourn_inferior): Reset siginfo_er.
5876 (windows_xfer_siginfo): New function.
5877 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
5878 * windows-tdep.c (struct windows_gdbarch_data): New struct.
5879 (init_windows_gdbarch_data): New function.
5880 (get_windows_gdbarch_data): New function.
5881 (windows_get_siginfo_type): New function.
5882 (windows_init_abi): Register windows_get_siginfo_type.
5883 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
5884
5885 2020-02-08 Tom Tromey <tom@tromey.com>
5886
5887 * dwarf2/read.c (class cutu_reader) <cutu_reader,
5888 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
5889 <keep>: Declare method.
5890 <m_keep>: Remove member.
5891 <~cutu_reader>: Remove.
5892 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5893 (cutu_reader::cutu_reader): Update.
5894 (cutu_reader::keep): Rename from ~cutu_reader.
5895 (process_psymtab_comp_unit, build_type_psymtabs_1)
5896 (process_skeletonless_type_unit, load_partial_comp_unit)
5897 (load_full_comp_unit, dwarf2_read_addr_index)
5898 (read_signatured_type): Update.
5899
5900 2020-02-08 Tom Tromey <tom@tromey.com>
5901
5902 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
5903 "want_partial_unit" parameter.
5904 (process_psymtab_comp_unit): Change want_partial_unit to bool.
5905 Inline check for DW_TAG_partial_unit.
5906 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
5907
5908 2020-02-08 Tom Tromey <tom@tromey.com>
5909
5910 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
5911 read.c.
5912 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
5913 read.c.
5914
5915 2020-02-08 Tom Tromey <tom@tromey.com>
5916
5917 * dwarf2/read.c (read_address): Move to comp-unit.c.
5918 (dwarf2_rnglists_process, dwarf2_ranges_process)
5919 (read_attribute_value, dwarf_decode_lines_1)
5920 (var_decode_location, decode_locdesc): Update.
5921 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
5922 read.c. Remove "cu" parameter.
5923 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
5924 method.
5925
5926 2020-02-08 Tom Tromey <tom@tromey.com>
5927
5928 * dwarf2/read.c (read_attribute_value, read_indirect_string)
5929 (read_indirect_line_string): Update.
5930 * dwarf2/comp-unit.c (read_offset): Remove.
5931 (read_comp_unit_head): Update.
5932 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
5933 method.
5934 (read_offset): Don't declare.
5935
5936 2020-02-08 Tom Tromey <tom@tromey.com>
5937
5938 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
5939 * dwarf2/read.c (struct comp_unit_head): Move to
5940 dwarf2/comp-unit.h.
5941 (enum class rcuh_kind): Move to comp-unit.h.
5942 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
5943 (read_comp_unit_head, error_check_comp_unit_head)
5944 (read_and_check_comp_unit_head): Move to comp-unit.c.
5945 (read_offset, dwarf_unit_type_name): Likewise.
5946 (create_debug_type_hash_table, read_cutu_die_from_dwo)
5947 (cutu_reader::cutu_reader, read_call_site_scope)
5948 (find_partial_die, follow_die_offset): Update.
5949 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
5950
5951 2020-02-08 Tom Tromey <tom@tromey.com>
5952
5953 * dwarf2/read.c (read_offset_1): Move to leb.c.
5954 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
5955 (dwarf_decode_macro_bytes): Update.
5956 * dwarf2/leb.c (read_offset): Rename; move from read.c.
5957 * dwarf2/leb.h (read_offset): Declare.
5958
5959 2020-02-08 Tom Tromey <tom@tromey.com>
5960
5961 * dwarf2/read.c (dwarf2_section_size): Remove.
5962 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
5963 Update.
5964 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
5965
5966 2020-02-08 Tom Tromey <tom@tromey.com>
5967
5968 * dwarf2/read.c (read_initial_length): Move to leb.c.
5969 * dwarf2/leb.h (read_initial_length): Declare.
5970 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
5971 handle_nonstd parameter.
5972 * dwarf2/frame.c (read_initial_length): Remove.
5973 (decode_frame_entry_1): Update.
5974
5975 2020-02-08 Tom Tromey <tom@tromey.com>
5976
5977 * dwarf2/loc.c (dwarf2_find_location_expression)
5978 (dwarf_evaluate_loc_desc::get_tls_address)
5979 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
5980 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
5981 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
5982 (dwarf2_compile_property_to_c)
5983 (dwarf2_loc_desc_get_symbol_read_needs)
5984 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
5985 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
5986 (loclist_describe_location, loclist_tracepoint_var_ref)
5987 (loclist_generate_c_location): Update.
5988 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
5989 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
5990 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
5991 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
5992 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
5993 (dwarf2_per_cu_data::addr_size)
5994 (dwarf2_per_cu_data::ref_addr_size)
5995 (dwarf2_per_cu_data::text_offset)
5996 (dwarf2_per_cu_data::addr_type): Now methods.
5997 (per_cu_header_read_in): Make per_cu "const".
5998 (dwarf2_version): Remove.
5999 (dwarf2_per_cu_data::int_type): Now a method.
6000 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
6001 (set_die_type, read_array_type, read_subrange_index_type)
6002 (read_tag_string_type, read_subrange_type): Update.
6003 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
6004 offset_size, ref_addr_size, text_offset, addr_type, version,
6005 objfile, int_type, addr_sized_int_type>: Declare methods.
6006
6007 2020-02-08 Tom Tromey <tom@tromey.com>
6008
6009 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
6010 Move earlier.
6011
6012 2020-02-08 Tom Tromey <tom@tromey.com>
6013
6014 * dwarf2/read.h (dwarf_line_debug): Declare.
6015 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
6016 * dwarf2/read.c: Move line_header code to new files.
6017 (dwarf_line_debug): No longer static.
6018 * dwarf2/line-header.c: New file.
6019 * dwarf2/line-header.h: New file.
6020
6021 2020-02-08 Tom Tromey <tom@tromey.com>
6022
6023 * dwarf2/read.c (struct line_header) <file_full_name,
6024 file_file_name>: Return unique_xmalloc_ptr.
6025 (line_header::file_file_name): Update.
6026 (line_header::file_full_name): Update.
6027 (dw2_get_file_names_reader): Update.
6028 (macro_start_file): Update.
6029
6030 2020-02-08 Tom Tromey <tom@tromey.com>
6031
6032 * dwarf2/read.c (struct line_header) <file_full_name,
6033 file_file_name>: Declare methods.
6034 (dw2_get_file_names_reader): Update.
6035 (file_file_name): Now a method.
6036 (file_full_name): Likewise.
6037 (macro_start_file): Update.
6038
6039 2020-02-08 Tom Tromey <tom@tromey.com>
6040
6041 * dwarf2/read.c (dwarf_always_disassemble)
6042 (show_dwarf_always_disassemble): Move to loc.c.
6043 (_initialize_dwarf2_read): Move "always-disassemble" registration
6044 to loc.c.
6045 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
6046 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
6047 static.
6048 (show_dwarf_always_disassemble): Move from read.c.
6049 (_initialize_dwarf2loc): Move always-disassemble from read.c.
6050
6051 2020-02-08 Tom Tromey <tom@tromey.com>
6052
6053 * dwarf2/read.c (~dwarf2_per_objfile): Update.
6054 (create_quick_file_names_table): Return htab_up.
6055 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
6056 Update.
6057 * dwarf2/read.h (struct dwarf2_per_objfile)
6058 <quick_file_names_table>: Now htab_up.
6059
6060 2020-02-08 Tom Tromey <tom@tromey.com>
6061
6062 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
6063
6064 2020-02-08 Tom Tromey <tom@tromey.com>
6065
6066 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
6067 Rewrite.
6068 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
6069 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
6070 (abbrev_table::abbrev_table): No longer inline.
6071 (ABBREV_HASH_SIZE): Remove.
6072 (abbrev_table::m_abbrevs): Now an htab_up.
6073
6074 2020-02-08 Tom Tromey <tom@tromey.com>
6075
6076 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
6077 (cutu_reader): Update.
6078 (build_type_psymtabs_1): Update.
6079 * dwarf2/abbrev.c (abbrev_table::read): Rename.
6080 (abbrev_table::alloc_abbrev): Update.
6081 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
6082 (abbrev_table::read): New static method, renamed from
6083 abbrev_table_read_table.
6084 (abbrev_table::alloc_abbrev)
6085 (abbrev_table::add_abbrev): Now private.
6086 (abbrev_table::abbrev_table): Now private.
6087 (abbrev_table::m_abbrev_obstack): Now private. Rename.
6088
6089 2020-02-08 Tom Tromey <tom@tromey.com>
6090
6091 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
6092 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
6093 htab_up.
6094
6095 2020-02-08 Tom Tromey <tom@tromey.com>
6096
6097 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
6098 htab_up.
6099 (lookup_dwo_unit_in_dwp): Update.
6100 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
6101 on obstack.
6102
6103 2020-02-08 Tom Tromey <tom@tromey.com>
6104
6105 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
6106 obstack.
6107
6108 2020-02-08 Tom Tromey <tom@tromey.com>
6109
6110 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
6111 line_header_hash.
6112 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
6113 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
6114 Change type to htab_up.
6115
6116 2020-02-08 Tom Tromey <tom@tromey.com>
6117
6118 * dwarf2/read.c (allocate_type_unit_groups_table): Return
6119 htab_up. Don't allocate on obstack.
6120 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
6121 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
6122 Change type to htab_up.
6123
6124 2020-02-08 Tom Tromey <tom@tromey.com>
6125
6126 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
6127 Change type to htab_up.
6128 * dwarf2/read.c (create_signatured_type_table_from_index)
6129 (create_signatured_type_table_from_debug_names)
6130 (create_all_type_units, add_type_unit)
6131 (lookup_dwo_signatured_type, lookup_signatured_type)
6132 (process_skeletonless_type_unit): Update.
6133 (create_debug_type_hash_table, create_debug_types_hash_table):
6134 Change type of types_htab.
6135 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
6136 htab_up. Don't allocate on obstack.
6137 (create_cus_hash_table): Change type of cus_htab parameter.
6138 (struct dwo_file) <cus, tus>: Now htab_up.
6139 (lookup_dwo_signatured_type, lookup_dwo_cutu)
6140 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
6141 (queue_and_load_all_dwo_tus): Update.
6142 * dwarf2/index-write.c (write_gdbindex): Update.
6143 (write_debug_names): Update.
6144
6145 2020-02-08 Tom Tromey <tom@tromey.com>
6146
6147 * dwarf2/read.h (struct dwarf2_queue_item): Move from
6148 dwarf2/read.c. Remove "next" member. Add constructor ntad
6149 destructor.
6150 (struct dwarf2_per_objfile) <queue>: New member.
6151 * dwarf2/read.c (struct dwarf2_queue_item): Move to
6152 dwarf2/read.h.
6153 (dwarf2_queue, dwarf2_queue_tail): Remove.
6154 (class dwarf2_queue_guard): Add parameter to constructor. Use
6155 DISABLE_COPY_AND_ASSIGN.
6156 <m_per_objfile>: New member.
6157 <~dwarf2_queue_guard>: Rewrite.
6158 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
6159 Update.
6160 (~dwarf2_queue_item): New.
6161
6162 2020-02-08 Tom Tromey <tom@tromey.com>
6163
6164 * dwarf2/read.c (struct die_info) <has_children>: New member.
6165 (dw2_get_file_names_reader): Remove has_children.
6166 (dw2_get_file_names): Update.
6167 (read_cutu_die_from_dwo): Remove has_children.
6168 (cutu_reader::init_tu_and_read_dwo_dies)
6169 (cutu_reader::cutu_reader): Update.
6170 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
6171 Remove has_children.
6172 (build_type_psymtabs_1, process_skeletonless_type_unit)
6173 (load_partial_comp_unit, load_full_comp_unit): Update.
6174 (create_dwo_cu_reader): Remove has_children.
6175 (create_cus_hash_table, read_die_and_children): Update.
6176 (read_full_die_1,read_full_die): Remove has_children.
6177 (read_signatured_type): Update.
6178 (class cutu_reader) <has_children>: Remove.
6179
6180 2020-02-08 Tom Tromey <tom@tromey.com>
6181
6182 * dwarf2/expr.c: Rename from dwarf2expr.c.
6183 * dwarf2/expr.h: Rename from dwarf2expr.h.
6184 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
6185 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
6186 * dwarf2/frame.c: Rename from dwarf2-frame.c.
6187 * dwarf2/frame.h: Rename from dwarf2-frame.h.
6188 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
6189 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
6190 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
6191 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
6192 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
6193 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
6194 * dwarf2/loc.c: Rename from dwarf2loc.c.
6195 * dwarf2/loc.h: Rename from dwarf2loc.h.
6196 * dwarf2/read.c: Rename from dwarf2read.c.
6197 * dwarf2/read.h: Rename from dwarf2read.h.
6198 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
6199 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
6200 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
6201 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
6202 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
6203 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
6204 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
6205 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
6206 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
6207 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
6208 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
6209 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
6210 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
6211 Update.
6212 * Makefile.in (COMMON_SFILES): Update.
6213 (HFILES_NO_SRCDIR): Update.
6214
6215 2020-02-08 Tom Tromey <tom@tromey.com>
6216
6217 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
6218 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
6219
6220 2020-02-08 Tom Tromey <tom@tromey.com>
6221
6222 * dwarf2read.h (struct die_info): Don't declare.
6223
6224 2020-02-08 Tom Tromey <tom@tromey.com>
6225
6226 * dwarf2read.h (die_info_ptr): Remove typedef.
6227
6228 2020-02-08 Tom Tromey <tom@tromey.com>
6229
6230 * dwarf2read.c (read_call_site_scope)
6231 (handle_data_member_location, dwarf2_add_member_fn)
6232 (mark_common_block_symbol_computed, read_common_block)
6233 (attr_to_dynamic_prop, partial_die_info::read)
6234 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
6235 (dwarf2_symbol_mark_computed, set_die_type): Update.
6236 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
6237 method.
6238 (attr_form_is_block): Don't declare.
6239 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
6240
6241 2020-02-08 Tom Tromey <tom@tromey.com>
6242
6243 * dwarf2read.c (dwarf2_find_base_address, )
6244 (read_call_site_scope, rust_containing_type)
6245 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
6246 (handle_data_member_location, dwarf2_add_member_fn)
6247 (get_alignment, read_structure_type, process_structure_scope)
6248 (mark_common_block_symbol_computed, read_common_block)
6249 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
6250 (partial_die_info::read, read_attribute_value, new_symbol)
6251 (lookup_die_type, dwarf2_get_ref_die_offset)
6252 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
6253 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
6254 (dwarf2_symbol_mark_computed): Update.
6255 * dwarf2/attribute.h (struct attribute) <value_as_address,
6256 form_is_section_offset, form_is_constant, form_is_ref>: Declare
6257 methods.
6258 (value_as_address, attr_form_is_section_offset)
6259 (attr_form_is_constant, attr_form_is_ref): Don't declare.
6260 * dwarf2/attribute.c (attribute::value_as_address)
6261 (attribute::form_is_section_offset, attribute::form_is_constant)
6262 (attribute::form_is_ref): Now methods.
6263
6264 2020-02-08 Tom Tromey <tom@tromey.com>
6265
6266 * dwarf2read.c (struct attribute, DW_STRING)
6267 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
6268 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
6269 (attr_form_is_block, attr_form_is_section_offset)
6270 (attr_form_is_constant, attr_form_is_ref): Move.
6271 * dwarf2/attribute.h: New file.
6272 * dwarf2/attribute.c: New file, from dwarf2read.c.
6273 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
6274
6275 2020-02-08 Tom Tromey <tom@tromey.com>
6276
6277 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
6278 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
6279 Move.
6280 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
6281 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
6282 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
6283 abbrev.c.
6284 * dwarf2/abbrev.h: New file.
6285 * dwarf2/abbrev.c: New file, from dwarf2read.c.
6286 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
6287
6288 2020-02-08 Tom Tromey <tom@tromey.com>
6289
6290 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
6291 (dwarf2_section_size, dwarf2_get_section_info)
6292 (create_signatured_type_table_from_debug_names)
6293 (create_addrmap_from_aranges, read_debug_names_from_section)
6294 (get_gdb_index_contents_from_section, read_comp_unit_head)
6295 (error_check_comp_unit_head, read_abbrev_offset)
6296 (create_debug_type_hash_table, init_cu_die_reader)
6297 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
6298 (read_comp_units_from_section, create_cus_hash_table)
6299 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6300 (create_dwp_v2_section, dwarf2_rnglists_process)
6301 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
6302 (abbrev_table_read_table, read_indirect_string_at_offset_from)
6303 (read_indirect_string_from_dwz, read_addr_index_1)
6304 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
6305 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6306 (fill_in_loclist_baton): Update.
6307 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
6308 get_containing_section, get_bfd_owner, get_bfd_section,
6309 get_file_name, get_id, get_flags, empty, read>: Declare methods.
6310 (dwarf2_read_section, get_section_name, get_section_file_name)
6311 (get_containing_section, get_section_bfd_owner)
6312 (get_section_bfd_section, get_section_name, get_section_file_name)
6313 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
6314 declare.
6315 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
6316 (dwarf2_section_info::get_bfd_owner)
6317 (dwarf2_section_info::get_bfd_section)
6318 (dwarf2_section_info::get_name)
6319 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
6320 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
6321 (dwarf2_section_info::read): Now methods.
6322 * dwarf-index-write.c (class debug_names): Update.
6323
6324 2020-02-08 Tom Tromey <tom@tromey.com>
6325
6326 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
6327 Move to dwarf2/section.h.
6328 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
6329 (get_section_bfd_section, get_section_name)
6330 (get_section_file_name, get_section_id, get_section_flags)
6331 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
6332 dwarf2/section.c.
6333 * dwarf2/section.h: New file.
6334 * dwarf2/section.c: New file, from dwarf2read.c.
6335 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
6336
6337 2020-02-08 Tom Tromey <tom@tromey.com>
6338
6339 * dwarf2read.h (read_unsigned_leb128): Don't declare.
6340 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
6341 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
6342 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
6343 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
6344 * dwarf2/leb.h: New file, from dwarf2read.c.
6345 * dwarf2/leb.c: New file, from dwarf2read.c.
6346 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
6347 Remove.
6348 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
6349 (COMMON_SFILES): Add dwarf2/leb.c.
6350
6351 2020-02-08 Joel Brobecker <brobecker@adacore.com>
6352
6353 GDB 9.1 released.
6354
6355 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
6356
6357 PR gdb/25190:
6358 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
6359 * gdb/remote.c (remote_console_output): Update.
6360 * gdb/ui-file.c (fputs_unfiltered): Rename to...
6361 (ui_file_puts): ...this.
6362 * gdb/ui-file.h (ui_file_puts): Add declaration.
6363 * gdb/utils.c (emit_style_escape): Update.
6364 (flush_wrap_buffer): Update.
6365 (fputs_maybe_filtered): Update.
6366 (fputs_unfiltered): Add function.
6367
6368 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
6369
6370 * gdb/event-loop.c (gdb_wait_for_event): Update.
6371 * gdb/printcmd.c (printf_command): Update.
6372 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
6373 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
6374 (gdb_os_flush_stderr): Update.
6375 * gdb/remote.c (remote_console_output): Update.
6376 * gdb/ui-file.c (gdb_flush): Rename to...
6377 (ui_file_flush): ...this.
6378 (stderr_file::write): Update.
6379 (stderr_file::puts): Update.
6380 * gdb/ui-file.h (gdb_flush): Rename to...
6381 (ui_file_flush): ...this.
6382 * gdb/utils.c (gdb_flush): Add function.
6383 * gdb/utils.h (gdb_flush): Add declaration.
6384
6385 2020-02-07 Tom Tromey <tromey@adacore.com>
6386
6387 PR breakpoints/24915:
6388 * source.c (find_and_open_source): Do not check basenames_may_differ.
6389
6390 2020-02-07 Tom Tromey <tom@tromey.com>
6391
6392 * README: Update gdbserver documentation.
6393 * gdbserver: Move to top level.
6394 * configure.tgt (build_gdbserver): Remove.
6395 * configure.ac: Remove --enable-gdbserver.
6396 * configure: Rebuild.
6397 * Makefile.in (distclean): Don't mention gdbserver.
6398
6399 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
6400
6401 * source-cache.c (source_cache::ensure): Surround
6402 get_plain_source_lines with a try/catch.
6403 (source_cache::get_line_charpos): Get rid of try/catch
6404 and only check for the return value of "ensure".
6405 * tui/tui-source.c (tui_source_window::set_contents):
6406 Simplify "nlines" calculation.
6407
6408 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
6409
6410 * MAINTAINERS (Write After Approval): Add myself.
6411
6412 2020-02-05 Christian Biesinger <cbiesinger@google.com>
6413
6414 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
6415 function call.
6416
6417 2020-02-05 Christian Biesinger <cbiesinger@google.com>
6418
6419 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
6420
6421 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
6422
6423 * nat/riscv-linux-tdesc.h: New file.
6424 * nat/riscv-linux-tdesc.c: New file, taking code from...
6425 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
6426 ... here.
6427 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
6428 NATDEPFILES.
6429
6430 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
6431
6432 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
6433 we don't set the fake simulator ptid to the null_ptid.
6434
6435 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
6436
6437 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
6438 * gdbthread.h (class thread_info) <resumed>: Likewise.
6439 * infrun.c (resume_1): Likewise.
6440 (proceed): Likewise.
6441 (infrun_thread_stop_requested): Likewise.
6442 (stop_all_threads): Likewise.
6443 (handle_inferior_event): Likewise.
6444 (restart_threads): Likewise.
6445 (finish_step_over): Likewise.
6446 (keep_going_stepped_thread): Likewise.
6447 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
6448 (linux_handle_extended_wait): Likewise.
6449 * record-btrace.c (get_thread_current_frame_id): Likewise.
6450 * record-full.c (record_full_wait_1): Likewise.
6451 * remote.c (remote_target::process_initial_stop_replies): Likewise.
6452 * target.c (target_resume): Likewise.
6453 * thread.c (set_running_thread): Likewise.
6454
6455 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6456
6457 * f-valprint.c (f77_print_array_1): Changed datatype of index
6458 variable to LONGEST from int to enable it to contain bound
6459 values correctly.
6460
6461 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
6462
6463 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
6464 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
6465 offsets according to FLEN determined.
6466 (riscv_linux_nat_target::read_description): Determine FLEN
6467 dynamically.
6468 (riscv_linux_nat_target::fetch_registers): Size regset buffer
6469 according to FLEN determined.
6470 (riscv_linux_nat_target::store_registers): Likewise.
6471
6472 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6473
6474 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6475 when reg->group is empty and reggroup is not.
6476
6477 2020-01-31 Tom Tromey <tromey@adacore.com>
6478
6479 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
6480 Call beneath target's mourn_inferior after unpushing.
6481
6482 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 PR tui/9765
6485 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
6486 have enough lines to fill the screen, still return the lowest
6487 address we found.
6488
6489 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
6490
6491 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
6492 '-', '<', and '>' commands.
6493
6494 2020-01-29 Pedro Alves <palves@redhat.com>
6495 Sergio Durigan Junior <sergiodj@redhat.com>
6496
6497 * infcmd.c (construct_inferior_arguments): Assert that
6498 'argc' is greater than 0.
6499
6500 2020-01-29 Luis Machado <luis.machado@linaro.org>
6501
6502 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
6503 (BRK_INSN_MASK): Define to 0xd4200000.
6504 (aarch64_program_breakpoint_here_p): New function.
6505 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
6506 * arch-utils.c (default_program_breakpoint_here_p): Moved from
6507 breakpoint.c.
6508 * arch-utils.h (default_program_breakpoint_here_p): Moved from
6509 breakpoint.h
6510 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
6511 call gdbarch_program_breakpoint_here_p.
6512 (program_breakpoint_here): Moved to arch-utils.c, renamed to
6513 default_program_breakpoint_here_p, changed return type to bool and
6514 simplified.
6515 * breakpoint.h (program_breakpoint_here): Moved prototype to
6516 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
6517 return type to bool.
6518 * gdbarch.c: Regenerate.
6519 * gdbarch.h: Regenerate.
6520 * gdbarch.sh (program_breakpoint_here_p): New method.
6521 * infrun.c (handle_signal_stop): Call
6522 gdbarch_program_breakpoint_here_p.
6523
6524 2020-01-26 Tom Tromey <tom@tromey.com>
6525
6526 * ctfread.c (struct ctf_fp_info): Reindent.
6527 (_initialize_ctfread): Remove.
6528
6529 2020-01-26 Tom Tromey <tom@tromey.com>
6530
6531 * psymtab.c (partial_map_expand_apply)
6532 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6533 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6534 (psym_print_stats, psym_expand_symtabs_for_function)
6535 (psym_map_symbol_filenames, psym_map_matching_symbols)
6536 (psym_expand_symtabs_matching)
6537 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6538 (maintenance_check_psymtabs): Use new methods.
6539 * psympriv.h (struct partial_symtab) <readin_p,
6540 get_compunit_symtab>: New methods.
6541 <readin, compunit_symtab>: Remove members.
6542 (struct standard_psymtab): New.
6543 (struct legacy_psymtab): Derive from standard_psymtab.
6544 * dwarf2read.h (struct dwarf2_psymtab): Derive from
6545 standard_psymtab.
6546 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
6547
6548 2020-01-26 Tom Tromey <tom@tromey.com>
6549
6550 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
6551 read_dependencies. Add assert.
6552 * psymtab.c (partial_symtab::read_dependencies): New method.
6553 * psympriv.h (struct partial_symtab) <read_dependencies>: New
6554 method.
6555 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
6556 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
6557 read_dependencies.
6558 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
6559 Add assert.
6560
6561 2020-01-26 Tom Tromey <tom@tromey.com>
6562
6563 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
6564 Call expand_psymtab.
6565 (xcoff_read_symtab): Call expand_psymtab.
6566 (xcoff_start_psymtab, xcoff_end_psymtab): Set
6567 legacy_expand_psymtab.
6568 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
6569 method.
6570 (struct legacy_psymtab) <expand_psymtab>: Implement.
6571 <legacy_expand_psymtab>: New member.
6572 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
6573 (parse_partial_symbols): Set legacy_expand_psymtab.
6574 (psymtab_to_symtab_1): Change argument order. Call
6575 expand_psymtab.
6576 (new_psymtab): Set legacy_expand_psymtab.
6577 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
6578 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
6579 expand_psymtab.
6580 (dwarf2_psymtab::expand_psymtab): Rename from
6581 psymtab_to_symtab_1. Call expand_psymtab.
6582 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
6583 (dbx_end_psymtab): Likewise.
6584 (dbx_psymtab_to_symtab_1): Change argument order. Call
6585 expand_psymtab.
6586 (dbx_read_symtab): Call expand_psymtab.
6587 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
6588 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
6589 (ctf_psymtab::read_symtab): Call expand_psymtab.
6590
6591 2020-01-26 Tom Tromey <tom@tromey.com>
6592
6593 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
6594 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
6595 messages.
6596 * mdebugread.c (mdebug_read_symtab): Remove prints.
6597 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
6598 assert.
6599 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
6600
6601 2020-01-26 Tom Tromey <tom@tromey.com>
6602
6603 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
6604 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
6605 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
6606 legacy_symtab.
6607 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
6608 * psymtab.c (psymtab_to_symtab): Call method.
6609 (dump_psymtab): Update.
6610 * psympriv.h (struct partial_symtab): Add virtual destructor.
6611 <read_symtab>: New method.
6612 (struct legacy_symtab): New.
6613 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
6614 (struct pst_map) <pst>: Now a legacy_psymtab.
6615 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
6616 (new_psymtab): Use legacy_psymtab.
6617 * dwarf2read.h (struct dwarf2_psymtab): New.
6618 (struct dwarf2_per_cu_data) <psymtab>: Use it.
6619 * dwarf2read.c (dwarf2_create_include_psymtab)
6620 (dwarf2_build_include_psymtabs, create_type_unit_group)
6621 (create_partial_symtab, process_psymtab_comp_unit_reader)
6622 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
6623 (set_partial_user): Use dwarf2_psymtab.
6624 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
6625 (psymtab_to_symtab_1, process_full_comp_unit)
6626 (process_full_type_unit, dwarf2_ranges_read)
6627 (dwarf2_get_pc_bounds, psymtab_include_file_name)
6628 (dwarf_decode_lines): Use dwarf2_psymtab.
6629 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
6630 (add_address_entry_worker, write_one_signatured_type)
6631 (recursively_count_psymbols, recursively_write_psymbols)
6632 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
6633 (write_debug_names): Likewise.
6634 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
6635 <pst>: Now a legacy_psymtab.
6636 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
6637 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
6638 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
6639 * ctfread.c (struct ctf_psymtab): New.
6640 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
6641 ctf_psymtab.
6642 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
6643 (create_partial_symtab): Return a ctf_psymtab.
6644 (scan_partial_symbols): Update.
6645
6646 2020-01-26 Tom Tromey <tom@tromey.com>
6647
6648 * xcoffread.c (xcoff_start_psymtab): Use new.
6649 * psymtab.c (partial_symtab::partial_symtab): New constructor,
6650 renamed from start_psymtab_common.
6651 * psympriv.h (struct partial_symtab): Add new constructor.
6652 (start_psymtab_common): Don't declare.
6653 * mdebugread.c (parse_partial_symbols): Use new.
6654 * dwarf2read.c (create_partial_symtab): Use new.
6655 * dbxread.c (start_psymtab): Use new.
6656 * ctfread.c (create_partial_symtab): Use new.
6657
6658 2020-01-26 Tom Tromey <tom@tromey.com>
6659
6660 * xcoffread.c (xcoff_end_psymtab): Use new.
6661 * psymtab.c (start_psymtab_common): Use new.
6662 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
6663 Update.
6664 * psympriv.h (struct partial_symtab): Add parameters to
6665 constructor. Don't inline.
6666 (allocate_psymtab): Don't declare.
6667 * mdebugread.c (new_psymtab): Use new.
6668 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
6669 * dbxread.c (dbx_end_psymtab): Use new.
6670
6671 2020-01-26 Tom Tromey <tom@tromey.com>
6672
6673 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
6674 allocate_psymtab. Update documentation.
6675 * psymtab.c (psymtab_storage::install_psymtab): Rename from
6676 allocate_psymtab. Do not use new.
6677 (allocate_psymtab): Use new. Update.
6678
6679 2020-01-26 Tom Tromey <tom@tromey.com>
6680
6681 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6682 * psymtab.c (psym_print_stats): Update.
6683 * psympriv.h (struct partial_symtab) <readin,
6684 psymtabs_addrmap_supported, anonymous>: Now bool.
6685 * mdebugread.c (psymtab_to_symtab_1): Update.
6686 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
6687 (build_type_psymtabs_reader, psymtab_to_symtab_1)
6688 (process_full_comp_unit, process_full_type_unit): Update.
6689 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6690 * ctfread.c (psymtab_to_symtab): Update.
6691
6692 2020-01-26 Tom Tromey <tom@tromey.com>
6693
6694 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
6695 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
6696 * psymtab.c (psymtab_storage): Delete psymtabs.
6697 (psymtab_storage::allocate_psymtab): Use new.
6698 (psymtab_storage::discard_psymtab): Use delete.
6699 * psympriv.h (struct partial_symtab): Add constructor and
6700 initializers.
6701
6702 2020-01-26 Tom Tromey <tom@tromey.com>
6703
6704 * machoread.c: Do not include psympriv.h.
6705
6706 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6707
6708 * NEWS: Mention the new option and the set/show commands.
6709
6710 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6711
6712 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
6713 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
6714 (validate_exec_file): New variables, enums, functions.
6715 (exec_file_locate_attach, print_section_info): Style the filenames.
6716 (_initialize_exec): Install show_exec_file_mismatch_command and
6717 set_exec_file_mismatch_command.
6718 * gdbcore.h (validate_exec_file): Declare.
6719 * infcmd.c (attach_command): Call validate_exec_file.
6720 * remote.c ( remote_target::remote_add_inferior): Likewise.
6721
6722 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6723
6724 * frame.c (find_frame_sal): Move call to get_next_frame into more
6725 inner scope.
6726 * inline-frame.c (inilne_state) <inline_state>: Update argument
6727 types.
6728 (inilne_state) <skipped_symbol>: Rename to...
6729 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
6730 (skip_inline_frames): Build vector of skipped symbols and use this
6731 to reate the inline_state.
6732 (inline_skipped_symbol): Add a comment and some assertions, fetch
6733 skipped symbol from the list.
6734
6735 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * buildsym.c (lte_is_less_than): Delete.
6738 (buildsym_compunit::end_symtab_with_blockvector): Create local
6739 lambda function to sort line table entries, and use
6740 std::stable_sort instead of std::sort.
6741 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
6742 markers when looking for a previous line.
6743
6744 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6745
6746 * dwarf2read.c (lnp_state_machine::record_line): Include
6747 end_sequence parameter in debug print out. Record the line if we
6748 are at an end_sequence marker even if it's not the start of a
6749 statement.
6750 * symmisc.c (maintenance_print_one_line_table): Print end of
6751 sequence markers with 'END' not '0'.
6752
6753 2020-01-24 Pedro Alves <palves@redhat.com>
6754
6755 PR gdb/25410
6756 * thread.c (scoped_restore_current_thread::restore): Use
6757 switch_to_inferior_no_thread.
6758 * exec.c: Include "progspace-and-thread.h".
6759 (add_target_sections, remove_target_sections):
6760 scoped_restore_current_pspace_and_thread instead of
6761 scoped_restore_current_thread.
6762 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
6763 and aspace to the inferior before calling clone_program_space.
6764 Remove stale comment.
6765
6766 2020-01-24 Christian Biesinger <cbiesinger@google.com>
6767
6768 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
6769 (arm_netbsd_nat_target::fetch_registers): ...this.
6770 (arm_nbsd_nat_target::store_registers): Rename to...
6771 (arm_netbsd_nat_target::store_registers): ...this.
6772
6773 2020-01-24 Christian Biesinger <cbiesinger@google.com>
6774
6775 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6776 register_t.
6777
6778 2020-01-24 Christian Biesinger <cbiesinger@google.com>
6779
6780 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
6781 Update comment.
6782 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
6783 Likewise.
6784 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
6785 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
6786 the correct replacement (iterate_over_regset_sections).
6787 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
6788 Update comment.
6789
6790 2020-01-24 Graham Markall <graham.markall@embecosm.com>
6791
6792 PR gdb/23718
6793 * gdb/python/python.c (execute_gdb_command): Call
6794 async_enable_stdin in catch block.
6795
6796 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6797
6798 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
6799 SWITCH_THRU_ALL_UIS.
6800
6801 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
6802
6803 PR tui/9765
6804 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
6805 comment, add extra parameter, and update to store previous symbol
6806 when appropriate.
6807 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
6808 add extra parameter.
6809 * tui/tui-disasm.c (tui_disassemble): Update header comment,
6810 remove unneeded parameter, add try/catch around gdb_print_insn,
6811 rewrite to add items to asm_lines vector.
6812 (tui_find_backward_disassembly_start_address): New function.
6813 (tui_find_disassembly_address): Updated throughout.
6814 (tui_disasm_window::set_contents): Update for changes to
6815 tui_disassemble.
6816 (tui_disasm_window::do_scroll_vertical): No need to adjust the
6817 number of lines to scroll.
6818
6819 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6820
6821 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
6822 (SECT_OFF_DATA): Likewise.
6823 (SECT_OFF_RODATA): Likewise.
6824 (SECT_OFF_TEXT): Likewise.
6825 (SECT_OFF_BSS): Likewise.
6826 (struct objfile) <text_section_offset, data_section_offset>: New
6827 methods.
6828 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
6829 objfile::text_section_offset.
6830 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
6831 * coffread.c (coff_symtab_read): Likewise.
6832 (enter_linenos): Likewise.
6833 (process_coff_symbol): Likewise.
6834 * ctfread.c (get_objfile_text_range): Likewise.
6835 * dtrace-probe.c (dtrace_probe::get_relocated_address):
6836 Use objfile::data_section_offset.
6837 * dwarf2-frame.c (execute_cfa_program): Use
6838 objfile::text_section_offset.
6839 (dwarf2_frame_find_fde): Likewise.
6840 * dwarf2read.c (create_addrmap_from_index): Likewise.
6841 (create_addrmap_from_aranges): Likewise.
6842 (dw2_find_pc_sect_compunit_symtab): Likewise.
6843 (process_psymtab_comp_unit_reader): Likewise.
6844 (add_partial_symbol): Likewise.
6845 (add_partial_subprogram): Likewise.
6846 (process_full_comp_unit): Likewise.
6847 (read_file_scope): Likewise.
6848 (read_func_scope): Likewise.
6849 (read_lexical_block_scope): Likewise.
6850 (read_call_site_scope): Likewise.
6851 (dwarf2_rnglists_process): Likewise.
6852 (dwarf2_ranges_process): Likewise.
6853 (dwarf2_ranges_read): Likewise.
6854 (dwarf_decode_lines_1): Likewise.
6855 (new_symbol): Likewise.
6856 (dwarf2_fetch_die_loc_sect_off): Likewise.
6857 (dwarf2_per_cu_text_offset): Likewise.
6858 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6859 * hppa-tdep.c (read_unwind_info): Likewise.
6860 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
6861 * psympriv.h (struct partial_symtab): Likewise.
6862 * psymtab.c (find_pc_sect_psymtab): Likewise.
6863 * solib-svr4.c (enable_break): Likewise.
6864 * stap-probe.c (relocate_address): Use
6865 objfile::data_section_offset.
6866 * xcoffread.c (enter_line_range): Use
6867 objfile::text_section_offset.
6868 (read_xcoff_symtab): Likewise.
6869
6870 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
6871
6872 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
6873 declaration to narrower scopes.
6874
6875 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
6876
6877 * darwin-nat.h (struct darwin_exception_msg, enum
6878 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
6879 Move up.
6880 (class darwin_nat_target) <wait_1, check_new_threads,
6881 decode_exception_message, decode_message, stop_inferior,
6882 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
6883 * darwin-nat.c (darwin_check_new_threads): Rename to...
6884 (darwin_nat_target::check_new_threads): ... this.
6885 (darwin_suspend_inferior_it): Remove.
6886 (darwin_decode_exception_message): Rename to...
6887 (darwin_nat_target::decode_exception_message): ... this.
6888 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
6889 (darwin_decode_message): Rename to...
6890 (darwin_nat_target::decode_message): ... this.
6891 (cancel_breakpoint): Rename to...
6892 (darwin_nat_target::cancel_breakpoint): ... this.
6893 (darwin_wait): Rename to...
6894 (darwin_nat_target::wait_1): ... this. Use range-based for loop
6895 instead of iterate_over_inferiors.
6896 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
6897 (darwin_stop_inferior): Rename to...
6898 (darwin_nat_target::stop_inferior): ... this.
6899 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
6900 (darwin_init_thread_list): Rename to...
6901 (darwin_nat_target::init_thread_list): ... this.
6902 (darwin_ptrace_him): Rename to...
6903 (darwin_nat_target::ptrace_him): ... this.
6904 (darwin_nat_target::create_inferior): Pass lambda function to
6905 fork_inferior.
6906 (darwin_nat_target::detach): Call stop_inferior instead of
6907 darwin_stop_inferior.
6908 * fork-inferior.h (fork_inferior): Change init_trace_fun
6909 parameter to gdb::function_view.
6910 * fork-inferior.c (fork_inferior): Likewise.
6911
6912 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
6913
6914 * i386-cygwin-tdep.c (core_process_module_section): Update.
6915 * windows-nat.c (struct lm_info_windows): Add text_offset.
6916 (windows_xfer_shared_libraries): Update.
6917 * windows-tdep.c (windows_xfer_shared_library):
6918 Add text_offset_cached argument.
6919 * windows-tdep.h (windows_xfer_shared_library): Update.
6920
6921 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
6922
6923 * gdbarch.sh: Add declaration for _initialize_gdbarch.
6924
6925 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
6928 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
6929 replace with range-based for.
6930 (gdbsim_interrupt_inferior): Remove.
6931 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
6932 with a range-based for. Inline code from
6933 gdbsim_interrupt_inferior.
6934
6935 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * infrun.c (proceed): Fix indentation.
6938
6939 2020-01-21 Tom Tromey <tromey@adacore.com>
6940
6941 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
6942 * python/python.c (python_extension_ops): Update.
6943 (gdbpy_colorize): New function.
6944 * python/lib/gdb/__init__.py (colorize): New function.
6945 * extension.h (ext_lang_colorize): Declare.
6946 * extension.c (ext_lang_colorize): New function.
6947 * extension-priv.h (struct extension_language_ops) <colorize>: New
6948 member.
6949 * cli/cli-style.c (_initialize_cli_style): Update help text.
6950
6951 2020-01-21 Luis Machado <luis.machado@linaro.org>
6952
6953 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
6954 <cond>: Change type to bool.
6955 (aarch64_displaced_step_b_cond): Update cond to use bool type.
6956 (aarch64_displaced_step_cb): Likewise.
6957 (aarch64_displaced_step_tb): Likewise.
6958
6959 2020-01-21 Luis Machado <luis.machado@linaro.org>
6960
6961 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
6962 output.
6963
6964 2020-01-21 Luis Machado <luis.machado@linaro.org>
6965
6966 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
6967 <pc_adjust>: Adjust the documentation.
6968 (aarch64_displaced_step_fixup): Check if PC really moved before
6969 adjusting it.
6970
6971 2020-01-19 Tom Tromey <tom@tromey.com>
6972
6973 * disasm.c (~gdb_disassembler): New destructor.
6974 (gdb_buffered_insn_length): Call disassemble_free_target.
6975 * disasm.h (class gdb_disassembler): Declare destructor. Use
6976 DISABLE_COPY_AND_ASSIGN.
6977
6978 2020-01-19 Tom Tromey <tom@tromey.com>
6979
6980 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
6981 (die_reader_func_ftype): Remove.
6982 (cutu_reader): New class.
6983 (dw2_get_file_names_reader): Remove "data" parameter.
6984 (dw2_get_file_names): Use cutu_reader.
6985 (create_debug_type_hash_table): Update.
6986 (read_cutu_die_from_dwo): Update comment.
6987 (lookup_dwo_unit): Add dwo_name parameter.
6988 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
6989 die_reader_func_ftype and data parameters.
6990 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
6991 Remove die_reader_func_ftype and data parameters.
6992 (~cutu_reader): New; from init_cutu_and_read_dies.
6993 (cutu_reader::cutu_reader): Rename from
6994 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
6995 and data parameters.
6996 (init_cutu_and_read_dies_simple): Remove.
6997 (struct process_psymtab_comp_unit_data): Remove.
6998 (process_psymtab_comp_unit_reader): Remove data parameter; add
6999 want_partial_unit and pretend_language parameters.
7000 (process_psymtab_comp_unit): Use cutu_reader.
7001 (build_type_psymtabs_reader): Remove data parameter.
7002 (build_type_psymtabs_1): Use cutu_reader.
7003 (process_skeletonless_type_unit): Likewise.
7004 (load_partial_comp_unit_reader): Remove.
7005 (load_partial_comp_unit): Use cutu_reader.
7006 (load_full_comp_unit_reader): Remove.
7007 (load_full_comp_unit): Use cutu_reader.
7008 (struct create_dwo_cu_data): Remove.
7009 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
7010 dwo_unit parameters.
7011 (create_cus_hash_table): Use cutu_reader.
7012 (struct dwarf2_read_addr_index_data): Remove.
7013 (dwarf2_read_addr_index_reader): Remove.
7014 (dwarf2_read_addr_index): Use cutu_reader.
7015 (read_signatured_type_reader): Remove.
7016 (read_signatured_type): Use cutu_reader.
7017
7018 2020-01-19 Tom Tromey <tom@tromey.com>
7019
7020 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
7021 * tui/tui-wingeneral.h (class tui_suppress_output): New.
7022 (tui_wrefresh): Declare.
7023 * tui/tui-wingeneral.c (suppress_output): New global.
7024 (tui_suppress_output, ~tui_suppress_output): New constructor and
7025 destructor.
7026 (tui_wrefresh): New function.
7027 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
7028 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
7029 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
7030 method.
7031 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
7032 tui_wrefresh.
7033 (tui_data_window::no_refresh): New method.
7034 (tui_data_item_window::refresh_window): Call tui_wrefresh.
7035 (tui_reg_command): Use tui_suppress_output
7036 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
7037 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
7038 method.
7039 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
7040
7041 2020-01-19 Tom Tromey <tom@tromey.com>
7042
7043 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7044 Handle case where symtab is null.
7045
7046 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
7047
7048 * linux-fork.c (one_fork_p): Simplify.
7049
7050 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7051
7052 * top.c (struct qt_args): Remove.
7053 (kill_or_detach): Change return type to void, replace `void *`
7054 parameter with a proper one.
7055 (print_inferior_quit_action): Likewise.
7056 (quit_confirm): Use range-based for loop to iterate over inferiors.
7057 (quit_force): Likewise.
7058
7059 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
7062 `void *` parameter with proper parameters.
7063 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
7064 (print_one_inferior): Change return type to void, replace `void *`
7065 parameter with proper parameters.
7066 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
7067 inferiors.
7068 (get_other_inferior): Remove.
7069 (mi_cmd_remove_inferior): Use range-based loop to iterate over
7070 inferiors.
7071
7072 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7073
7074 * mi/mi-interp.c (report_initial_inferior): Remove.
7075 (mi_interp::init): Use range-based for to iterate over inferiors.
7076
7077 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * python/py-inferior.c (build_inferior_list): Remove.
7080 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
7081
7082 2020-01-16 Christian Biesinger <cbiesinger@google.com>
7083
7084 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
7085 (btrace_stitch_trace): Likewise.
7086 * charset.c (intermediate_encoding): Likewise (vaild).
7087 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
7088 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
7089 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
7090
7091 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
7092
7093 * windows-tdep.c (windows_get_tlb_type):
7094 Add rtl_user_process_parameters type.
7095
7096 2020-01-16 Pedro Alves <palves@redhat.com>
7097 Norbert Lange <nolange79@gmail.com>
7098
7099 PR build/24805
7100 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
7101 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
7102 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
7103 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
7104 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
7105 (ps_plog): Redeclare exported functions with default visibility.
7106
7107 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
7108
7109 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
7110 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
7111
7112 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
7113
7114 * infcmd.c (post_create_inferior): Use get_thread_regcache
7115 instead of get_current_regcache.
7116
7117 2020-01-14 Tom Tromey <tom@tromey.com>
7118
7119 PR symtab/12535:
7120 * python/python.c (gdbpy_decode_line): Treat empty string the same
7121 as no argument.
7122
7123 2020-01-14 Tom Tromey <tom@tromey.com>
7124
7125 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
7126
7127 2020-01-14 Tom Tromey <tom@tromey.com>
7128
7129 * nat/linux-btrace.c: Don't include <config.h>.
7130 * nat/linux-ptrace.c: Don't include <config.h>.
7131 * nat/x86-linux-dregs.c: Don't include <config.h>.
7132
7133 2020-01-14 Tom Tromey <tom@tromey.com>
7134
7135 * configure: Rebuild.
7136 * configure.ac: Move many checks to ../gdbsupport/common.m4.
7137
7138 2020-01-14 Tom Tromey <tom@tromey.com>
7139
7140 * nat/x86-linux-dregs.c: Include configh.h.
7141 * nat/linux-ptrace.c: Include configh.h.
7142 * nat/linux-btrace.c: Include configh.h.
7143 * defs.h: Include config.h, bfd.h.
7144 * configure.ac: Don't source common.host.
7145 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
7146 * configure: Rebuild.
7147 * acinclude.m4: Update path.
7148 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
7149 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
7150 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
7151 (CLIBS): Add LIBSUPPORT.
7152 (CDEPS): Likewise.
7153 (COMMON_SFILES): Remove gdbsupport files.
7154 (HFILES_NO_SRCDIR): Likewise.
7155 (stamp-version): Update path to create-version.sh.
7156 (ALLDEPFILES): Remove gdbsupport files.
7157
7158 2020-01-14 Tom Tromey <tom@tromey.com>
7159
7160 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
7161 USE_WIN32API when needed.
7162 * configure.ac (USE_WIN32API): Don't define.
7163 (WIN32LIBS): Use WIN32APILIBS.
7164 * configure: Rebuild.
7165
7166 2020-01-14 Tom Tromey <tom@tromey.com>
7167
7168 * configure: Rebuild.
7169 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
7170
7171 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7172
7173 * skip.c (skip_function_command): Make skip w/o arguments use the
7174 name of the inlined function if pc is inside any inlined function.
7175
7176 2020-01-14 Luis Machado <luis.machado@linaro.org>
7177
7178 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
7179 * infrun.c (resume_1): Likewise.
7180 (handle_inferior_event): Remove stale comment.
7181 * linux-nat.c (linux_nat_target::resume): Update comments.
7182 (save_stop_reason): Likewise.
7183 (linux_nat_filter_event): Likewise.
7184 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
7185
7186 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * elfread.c (record_minimal_symbol): Set section index to 0 for
7189 non-allocatable sections.
7190
7191
7192 2020-01-13 Ali Tamur <tamur@google.com>
7193
7194 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
7195 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
7196 to gdb::optional. Update comments.
7197 (dwo_file): Update comments.
7198 (read_attribute): Update API to take an additional out parameter,
7199 need_reprocess. This is used to mark attributes that need other
7200 attributes (e.g. str_offsets_base) for correct computation which may not
7201 have been read yet.
7202 (read_attribute_reprocess): New function declaration.
7203 (read_addr_index): Likewise.
7204 (read_dwo_str_index): Likewise.
7205 (read_stub_str_index): Likewise.
7206 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
7207 (lookup_addr_base): New function definition.
7208 (lookup_ranges_base): Likewise.
7209 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
7210 lookup_ranges_base.
7211 (init_cutu_and_read_dies): Update comments.
7212 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
7213 unit. This is used to inherit parent's str_offsets_base and addr_base.
7214 Update comments.
7215 (init_cutu_and_read_dies_simple): Reflect API changes.
7216 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
7217 (create_cus_hash_table): Change API to take parent compile unit.
7218 Reflect API changes.
7219 (open_and_init_dwo_file): Reflect API changes.
7220 (dwarf2_get_pc_bounds): Update comments.
7221 (dwarf2_record_block_ranges): Likewise.
7222 (read_full_die_1): Change implementation to reprocess attributes that
7223 need str_offsets_base and addr_base.
7224 (partial_die_info::read): Likewise.
7225 (read_attribute_reprocess): New function definition.
7226 (read_attribute_value): Change API to take an additional out parameter,
7227 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
7228 when a non-dwo compile unit has index based attributes.
7229 (read_attribute): Reflect API changes.
7230 (read_addr_index_1): Reflect API changes. Update comments.
7231 (dwarf2_read_addr_index_data): Reflect API changes.
7232 (dwarf2_read_addr_index): Likewise.
7233 (read_str_index): Change API and implementation. This becomes a helper
7234 to be used by the new string index related methods. Update error
7235 message and comments.
7236 (read_dwo_str_index): New function definition.
7237 (read_stub_str_index): Likewise.
7238 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
7239 * symfile.h (dwarf2_debug_sections): Likewise.
7240 * xcoffread.c (dwarf2_debug_sections): Likewise.
7241
7242 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7243
7244 * gdbcore.h (struct core_fns) <core_read_registers>: Change
7245 core_reg_sect type to gdb_byte *.
7246 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
7247 * cris-tdep.c (fetch_core_registers): Likewise.
7248 * corelow.c (core_target::get_core_register_section): Change
7249 type of `contents` to gdb::byte_vector.
7250
7251 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * tui/tui-wingeneral.c (box_win): Position the title in the center
7254 of the border.
7255
7256 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7257
7258 * corelow.c (core_target::get_core_register_section): Use
7259 std::vector instead of alloca.
7260
7261 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7262
7263 * warning.m4: Add -Wmissing-declarations to build_warnings.
7264 * configure: Re-generate.
7265
7266 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7267
7268 * python/python.c (init__gdb_module): Add declaration.
7269
7270 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7271
7272 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
7273 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
7274 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
7275 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
7276 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
7277 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
7278 * ada-exp.y (_initialize_ada_exp): Add declaration.
7279 * ada-lang.c (_initialize_ada_language): Add declaration.
7280 * ada-tasks.c (_initialize_tasks): Add declaration.
7281 * agent.c (_initialize_agent): Add declaration.
7282 * aix-thread.c (_initialize_aix_thread): Add declaration.
7283 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
7284 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
7285 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
7286 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
7287 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
7288 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7289 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
7290 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
7291 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
7292 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
7293 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
7294 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
7295 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
7296 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
7297 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
7298 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
7299 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
7300 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
7301 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
7302 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
7303 * annotate.c (_initialize_annotate): Add declaration.
7304 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
7305 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
7306 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
7307 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
7308 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
7309 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
7310 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
7311 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
7312 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
7313 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
7314 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
7315 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
7316 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7317 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
7318 * auto-load.c (_initialize_auto_load): Add declaration.
7319 * auxv.c (_initialize_auxv): Add declaration.
7320 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
7321 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
7322 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
7323 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
7324 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
7325 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
7326 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
7327 * breakpoint.c (_initialize_breakpoint): Add declaration.
7328 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
7329 * btrace.c (_initialize_btrace): Add declaration.
7330 * charset.c (_initialize_charset): Add declaration.
7331 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
7332 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7333 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7334 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
7335 * cli/cli-script.c (_initialize_cli_script): Add declaration.
7336 * cli/cli-style.c (_initialize_cli_style): Add declaration.
7337 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
7338 * coffread.c (_initialize_coffread): Add declaration.
7339 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
7340 * compile/compile.c (_initialize_compile): Add declaration.
7341 * complaints.c (_initialize_complaints): Add declaration.
7342 * completer.c (_initialize_completer): Add declaration.
7343 * copying.c (_initialize_copying): Add declaration.
7344 * corefile.c (_initialize_core): Add declaration.
7345 * corelow.c (_initialize_corelow): Add declaration.
7346 * cp-abi.c (_initialize_cp_abi): Add declaration.
7347 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
7348 * cp-support.c (_initialize_cp_support): Add declaration.
7349 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
7350 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
7351 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
7352 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
7353 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
7354 * ctfread.c (_initialize_ctfread): Add declaration.
7355 * d-lang.c (_initialize_d_language): Add declaration.
7356 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
7357 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
7358 * dbxread.c (_initialize_dbxread): Add declaration.
7359 * dcache.c (_initialize_dcache): Add declaration.
7360 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
7361 * disasm.c (_initialize_disasm): Add declaration.
7362 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
7363 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
7364 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
7365 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
7366 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
7367 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
7368 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
7369 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
7370 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
7371 * elfread.c (_initialize_elfread): Add declaration.
7372 * exec.c (_initialize_exec): Add declaration.
7373 * extension.c (_initialize_extension): Add declaration.
7374 * f-lang.c (_initialize_f_language): Add declaration.
7375 * f-valprint.c (_initialize_f_valprint): Add declaration.
7376 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
7377 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
7378 * filesystem.c (_initialize_filesystem): Add declaration.
7379 * findcmd.c (_initialize_mem_search): Add declaration.
7380 * findvar.c (_initialize_findvar): Add declaration.
7381 * fork-child.c (_initialize_fork_child): Add declaration.
7382 * frame-base.c (_initialize_frame_base): Add declaration.
7383 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7384 * frame.c (_initialize_frame): Add declaration.
7385 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
7386 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
7387 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
7388 * gcore.c (_initialize_gcore): Add declaration.
7389 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
7390 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
7391 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
7392 * gdbarch.c (_initialize_gdbarch): Add declaration.
7393 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
7394 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
7395 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
7396 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
7397 * go-lang.c (_initialize_go_language): Add declaration.
7398 * go32-nat.c (_initialize_go32_nat): Add declaration.
7399 * guile/guile.c (_initialize_guile): Add declaration.
7400 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7401 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
7402 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
7403 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
7404 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
7405 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
7406 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
7407 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
7408 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
7409 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
7410 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
7411 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
7412 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
7413 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
7414 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
7415 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
7416 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
7417 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
7418 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
7419 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
7420 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
7421 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
7422 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
7423 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
7424 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
7425 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
7426 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
7427 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
7428 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
7429 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
7430 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
7431 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
7432 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
7433 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
7434 * infcall.c (_initialize_infcall): Add declaration.
7435 * infcmd.c (_initialize_infcmd): Add declaration.
7436 * inflow.c (_initialize_inflow): Add declaration.
7437 * infrun.c (_initialize_infrun): Add declaration.
7438 * interps.c (_initialize_interpreter): Add declaration.
7439 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
7440 * jit.c (_initialize_jit): Add declaration.
7441 * language.c (_initialize_language): Add declaration.
7442 * linux-fork.c (_initialize_linux_fork): Add declaration.
7443 * linux-nat.c (_initialize_linux_nat): Add declaration.
7444 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
7445 * linux-thread-db.c (_initialize_thread_db): Add declaration.
7446 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
7447 * m2-lang.c (_initialize_m2_language): Add declaration.
7448 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
7449 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
7450 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
7451 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
7452 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7453 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
7454 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
7455 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
7456 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
7457 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7458 * machoread.c (_initialize_machoread): Add declaration.
7459 * macrocmd.c (_initialize_macrocmd): Add declaration.
7460 * macroscope.c (_initialize_macroscope): Add declaration.
7461 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
7462 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
7463 * maint.c (_initialize_maint_cmds): Add declaration.
7464 * mdebugread.c (_initialize_mdebugread): Add declaration.
7465 * memattr.c (_initialize_mem): Add declaration.
7466 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
7467 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
7468 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
7469 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
7470 * mi/mi-main.c (_initialize_mi_main): Add declaration.
7471 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
7472 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
7473 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
7474 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
7475 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
7476 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
7477 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
7478 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
7479 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
7480 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7481 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
7482 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
7483 * mipsread.c (_initialize_mipsread): Add declaration.
7484 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
7485 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
7486 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
7487 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
7488 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
7489 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
7490 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
7491 * nto-procfs.c (_initialize_procfs): Add declaration.
7492 * objc-lang.c (_initialize_objc_language): Add declaration.
7493 * observable.c (_initialize_observer): Add declaration.
7494 * opencl-lang.c (_initialize_opencl_language): Add declaration.
7495 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
7496 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
7497 * osabi.c (_initialize_gdb_osabi): Add declaration.
7498 * osdata.c (_initialize_osdata): Add declaration.
7499 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7500 * parse.c (_initialize_parse): Add declaration.
7501 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
7502 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
7503 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
7504 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
7505 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
7506 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
7507 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
7508 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
7509 * printcmd.c (_initialize_printcmd): Add declaration.
7510 * probe.c (_initialize_probe): Add declaration.
7511 * proc-api.c (_initialize_proc_api): Add declaration.
7512 * proc-events.c (_initialize_proc_events): Add declaration.
7513 * proc-service.c (_initialize_proc_service): Add declaration.
7514 * procfs.c (_initialize_procfs): Add declaration.
7515 * producer.c (_initialize_producer): Add declaration.
7516 * psymtab.c (_initialize_psymtab): Add declaration.
7517 * python/python.c (_initialize_python): Add declaration.
7518 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
7519 * record-btrace.c (_initialize_record_btrace): Add declaration.
7520 * record-full.c (_initialize_record_full): Add declaration.
7521 * record.c (_initialize_record): Add declaration.
7522 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
7523 * regcache.c (_initialize_regcache): Add declaration.
7524 * reggroups.c (_initialize_reggroup): Add declaration.
7525 * remote-notif.c (_initialize_notif): Add declaration.
7526 * remote-sim.c (_initialize_remote_sim): Add declaration.
7527 * remote.c (_initialize_remote): Add declaration.
7528 * reverse.c (_initialize_reverse): Add declaration.
7529 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
7530 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
7531 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
7532 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
7533 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
7534 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
7535 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
7536 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
7537 Add declaration.
7538 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
7539 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
7540 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
7541 * rust-exp.y (_initialize_rust_exp): Add declaration.
7542 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
7543 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
7544 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
7545 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
7546 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
7547 * score-tdep.c (_initialize_score_tdep): Add declaration.
7548 * ser-go32.c (_initialize_ser_dos): Add declaration.
7549 * ser-mingw.c (_initialize_ser_windows): Add declaration.
7550 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
7551 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
7552 * ser-uds.c (_initialize_ser_socket): Add declaration.
7553 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
7554 * serial.c (_initialize_serial): Add declaration.
7555 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
7556 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
7557 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
7558 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
7559 * skip.c (_initialize_step_skip): Add declaration.
7560 * sol-thread.c (_initialize_sol_thread): Add declaration.
7561 * solib-aix.c (_initialize_solib_aix): Add declaration.
7562 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
7563 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
7564 * solib-frv.c (_initialize_frv_solib): Add declaration.
7565 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7566 * solib-target.c (_initialize_solib_target): Add declaration.
7567 * solib.c (_initialize_solib): Add declaration.
7568 * source-cache.c (_initialize_source_cache): Add declaration.
7569 * source.c (_initialize_source): Add declaration.
7570 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
7571 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
7572 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
7573 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
7574 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
7575 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
7576 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
7577 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
7578 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
7579 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
7580 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
7581 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
7582 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
7583 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
7584 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
7585 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
7586 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
7587 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
7588 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
7589 * stabsread.c (_initialize_stabsread): Add declaration.
7590 * stack.c (_initialize_stack): Add declaration.
7591 * stap-probe.c (_initialize_stap_probe): Add declaration.
7592 * std-regs.c (_initialize_frame_reg): Add declaration.
7593 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
7594 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
7595 * symfile.c (_initialize_symfile): Add declaration.
7596 * symmisc.c (_initialize_symmisc): Add declaration.
7597 * symtab.c (_initialize_symtab): Add declaration.
7598 * target.c (_initialize_target): Add declaration.
7599 * target-connection.c (_initialize_target_connection): Add
7600 declaration.
7601 * target-dcache.c (_initialize_target_dcache): Add declaration.
7602 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
7603 * thread.c (_initialize_thread): Add declaration.
7604 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
7605 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
7606 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
7607 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
7608 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
7609 * tracectf.c (_initialize_ctf): Add declaration.
7610 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
7611 * tracefile.c (_initialize_tracefile): Add declaration.
7612 * tracepoint.c (_initialize_tracepoint): Add declaration.
7613 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
7614 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
7615 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
7616 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
7617 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
7618 * tui/tui-win.c (_initialize_tui_win): Add declaration.
7619 * tui/tui.c (_initialize_tui): Add declaration.
7620 * typeprint.c (_initialize_typeprint): Add declaration.
7621 * ui-style.c (_initialize_ui_style): Add declaration.
7622 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
7623 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
7624 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
7625 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
7626 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
7627 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
7628 * unittests/filtered_iterator-selftests.c
7629 (_initialize_filtered_iterator_selftests): Add declaration.
7630 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
7631 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
7632 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
7633 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
7634 * unittests/main-thread-selftests.c
7635 (_initialize_main_thread_selftests): Add declaration.
7636 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
7637 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
7638 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
7639 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
7640 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
7641 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
7642 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
7643 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
7644 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
7645 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
7646 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
7647 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
7648 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
7649 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
7650 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
7651 declaration.
7652 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
7653 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
7654 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
7655 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
7656 * user-regs.c (_initialize_user_regs): Add declaration.
7657 * utils.c (_initialize_utils): Add declaration.
7658 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
7659 * valops.c (_initialize_valops): Add declaration.
7660 * valprint.c (_initialize_valprint): Add declaration.
7661 * value.c (_initialize_values): Add declaration.
7662 * varobj.c (_initialize_varobj): Add declaration.
7663 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
7664 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
7665 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7666 * windows-nat.c (_initialize_windows_nat): Add declaration.
7667 (_initialize_check_for_gdb_ini): Add declaration.
7668 (_initialize_loadable): Add declaration.
7669 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
7670 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
7671 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
7672 * xcoffread.c (_initialize_xcoffread): Add declaration.
7673 * xml-support.c (_initialize_xml_support): Add declaration.
7674 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
7675 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
7676 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
7677 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
7678
7679 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7680
7681 * regformats/regdat.sh: Generate declaration for init function.
7682
7683 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7684
7685 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
7686 up.
7687 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
7688 close_one_inferior>: New methods.
7689 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
7690 pass down target to find_inferior_pid.
7691 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
7692 Pass down target to find_inferior_ptid.
7693 (gdbsim_target::create_inferior): Pass down target to
7694 add_thread_silent.
7695 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
7696 target down to find_inferior_ptid and switch_to_thread.
7697 (gdbsim_target::close): Update to call close_one_inferior.
7698 (struct resume_data): Remove.
7699 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
7700 directly, rather than through a void pointer.
7701 (gdbsim_target::resume): Update to call resume_one_inferior.
7702
7703 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
7706
7707 2020-01-12 Pedro Alves <palves@redhat.com>
7708
7709 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
7710 directly for the current inferior instead of
7711 discard_all_inferiors.
7712 (discard_all_inferiors): Delete.
7713
7714 2020-01-11 Tom Tromey <tom@tromey.com>
7715
7716 * tui/tui-wingeneral.c (box_win): Check cli_styling.
7717 * tui/tui-winsource.c (tui_source_window_base::refill): Use
7718 deprecated_safe_get_selected_frame.
7719
7720 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7721
7722 * inferior.c (print_inferior): Switch inferior before printing it.
7723
7724 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
7725 Pedro Alves <palves@redhat.com>
7726
7727 * progspace-and-thread.c (switch_to_program_space_and_thread):
7728 Assert there's an inferior for PSPACE. Use
7729 switch_to_inferior_no_thread to switch the inferior too.
7730 * progspace.c (program_space::~program_space): Call
7731 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
7732 (program_space::free_all_objfiles): Don't call clear_symtab_users
7733 here.
7734 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
7735
7736 2020-01-10 Pedro Alves <palves@redhat.com>
7737
7738 * NEWS: Mention multi-target debugging, "info connections", and
7739 "add-inferior -no-connection".
7740
7741 2020-01-10 Pedro Alves <palves@redhat.com>
7742
7743 * infrun.c: Include "target-connection.h".
7744 (check_multi_target_resumption): New.
7745 (proceed): Call it.
7746 * target-connection.c (make_target_connection_string): Make
7747 extern.
7748 * target-connection.h (make_target_connection_string): Declare.
7749
7750 2020-01-10 Pedro Alves <palves@redhat.com>
7751
7752 * Makefile.in (COMMON_SFILES): Add target-connection.c.
7753 * inferior.c (uiout_field_connection): New function.
7754 (print_inferior): Add new "connection-id" column.
7755 (add_inferior_command): Show connection number/string of added
7756 inferior.
7757 * process-stratum-target.h
7758 (process_stratum_target::connection_string): New virtual method.
7759 (process_stratum_target::connection_number): New field.
7760 * remote.c (remote_target::connection_string): New override.
7761 * target-connection.c: New file.
7762 * target-connection.h: New file.
7763 * target.c (decref_target): Remove process_stratum targets from
7764 the connection list.
7765 (target_stack::push): Add process_stratum targets to the
7766 connection list.
7767
7768 2020-01-10 Pedro Alves <palves@redhat.com>
7769
7770 Revert:
7771 2016-04-12 Pedro Alves <palves@redhat.com>
7772 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
7773 Remove references to name.
7774 * serial.h (struct serial) <name>: Delete.
7775
7776 2020-01-10 Pedro Alves <palves@redhat.com>
7777
7778 * gdbarch-selftests.c (register_to_value_test): Remove "target
7779 already pushed" check.
7780
7781 2020-01-10 Pedro Alves <palves@redhat.com>
7782 John Baldwin <jhb@FreeBSD.org>
7783
7784 * aarch64-linux-nat.c
7785 (aarch64_linux_nat_target::thread_architecture): Adjust.
7786 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
7787 (task_command_1): Likewise.
7788 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
7789 (aix_thread_target::wait, aix_thread_target::fetch_registers)
7790 (aix_thread_target::store_registers)
7791 (aix_thread_target::thread_alive): Adjust.
7792 * amd64-fbsd-tdep.c: Include "inferior.h".
7793 (amd64fbsd_get_thread_local_address): Pass down target.
7794 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
7795 thread's gdbarch instead of target_gdbarch.
7796 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
7797 get_last_target_status.
7798 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
7799 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
7800 inferiors.
7801 (update_inserted_breakpoint_locations): Skip if inferiors with no
7802 execution.
7803 (update_global_location_list): When handling moribund locations,
7804 find representative inferior for location's pspace, and use thread
7805 count of its process_stratum target.
7806 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
7807 * bsd-uthread.c (bsd_uthread_target::wait): Use
7808 as_process_stratum_target and adjust thread_change_ptid and
7809 add_thread calls.
7810 (bsd_uthread_target::update_thread_list): Use
7811 as_process_stratum_target and adjust find_thread_ptid,
7812 thread_change_ptid and add_thread calls.
7813 * btrace.c (maint_btrace_packet_history_cmd): Adjust
7814 find_thread_ptid call.
7815 * corelow.c (add_to_thread_list): Adjust add_thread call.
7816 (core_target_open): Adjust add_thread_silent and thread_count
7817 calls.
7818 (core_target::pid_to_str): Adjust find_inferior_ptid call.
7819 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
7820 * event-top.c (async_disconnect): Pop targets from all inferiors.
7821 * exec.c (add_target_sections): Push exec target on all inferiors
7822 sharing the program space.
7823 (remove_target_sections): Remove the exec target from all
7824 inferiors sharing the program space.
7825 (exec_on_vfork): New.
7826 * exec.h (exec_on_vfork): Declare.
7827 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
7828 Pass it down.
7829 (fbsd_nat_target::update_thread_list): Adjust.
7830 (fbsd_nat_target::resume): Adjust.
7831 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
7832 down.
7833 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
7834 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
7835 get_thread_arch_regcache call.
7836 * fork-child.c (gdb_startup_inferior): Pass target down to
7837 startup_inferior and set_executing.
7838 * gdbthread.h (struct process_stratum_target): Forward declare.
7839 (add_thread, add_thread_silent, add_thread_with_info)
7840 (in_thread_list): Add process_stratum_target parameter.
7841 (find_thread_ptid(inferior*, ptid_t)): New overload.
7842 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
7843 parameter.
7844 (all_threads()): Delete overload.
7845 (all_threads, all_non_exited_threads): Add process_stratum_target
7846 parameter.
7847 (all_threads_safe): Use brace initialization.
7848 (thread_count): Add process_stratum_target parameter.
7849 (set_resumed, set_running, set_stop_requested, set_executing)
7850 (threads_are_executing, finish_thread_state): Add
7851 process_stratum_target parameter.
7852 (switch_to_thread): Use is_current_thread.
7853 * i386-fbsd-tdep.c: Include "inferior.h".
7854 (i386fbsd_get_thread_local_address): Pass down target.
7855 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
7856 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
7857 have_inferiors check.
7858 * inf-ptrace.c (inf_ptrace_target::create_inferior)
7859 (inf_ptrace_target::attach): Adjust.
7860 * infcall.c (run_inferior_call): Adjust.
7861 * infcmd.c (run_command_1): Pass target to
7862 scoped_finish_thread_state.
7863 (proceed_thread_callback): Skip inferiors with no execution.
7864 (continue_command): Rename 'all_threads' local to avoid hiding
7865 'all_threads' function. Adjust get_last_target_status call.
7866 (prepare_one_step): Adjust set_running call.
7867 (signal_command): Use user_visible_resume_target. Compare thread
7868 pointers instead of inferior_ptid.
7869 (info_program_command): Adjust to pass down target.
7870 (attach_command): Mark target's 'thread_executing' flag.
7871 (stop_current_target_threads_ns): New, factored out from ...
7872 (interrupt_target_1): ... this. Switch inferior before making
7873 target calls.
7874 * inferior-iter.h
7875 (struct all_inferiors_iterator, struct all_inferiors_range)
7876 (struct all_inferiors_safe_range)
7877 (struct all_non_exited_inferiors_range): Filter on
7878 process_stratum_target too. Remove explicit.
7879 * inferior.c (inferior::inferior): Push dummy target on target
7880 stack.
7881 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
7882 Add process_stratum_target parameter, and pass it down.
7883 (have_live_inferiors): Adjust.
7884 (switch_to_inferior_and_push_target): New.
7885 (add_inferior_command, clone_inferior_command): Handle
7886 "-no-connection" parameter. Use
7887 switch_to_inferior_and_push_target.
7888 (_initialize_inferior): Mention "-no-connection" option in
7889 the help of "add-inferior" and "clone-inferior" commands.
7890 * inferior.h: Include "process-stratum-target.h".
7891 (interrupt_target_1): Use bool.
7892 (struct inferior) <push_target, unpush_target, target_is_pushed,
7893 find_target_beneath, top_target, process_target, target_at,
7894 m_stack>: New.
7895 (discard_all_inferiors): Delete.
7896 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
7897 (all_inferiors, all_non_exited_inferiors): Add
7898 process_stratum_target parameter.
7899 * infrun.c: Include "gdb_select.h" and <unordered_map>.
7900 (target_last_proc_target): New global.
7901 (follow_fork_inferior): Push target on new inferior. Pass target
7902 to add_thread_silent. Call exec_on_vfork. Handle target's
7903 reference count.
7904 (follow_fork): Adjust get_last_target_status call. Also consider
7905 target.
7906 (follow_exec): Push target on new inferior.
7907 (struct execution_control_state) <target>: New field.
7908 (user_visible_resume_target): New.
7909 (do_target_resume): Call target_async.
7910 (resume_1): Set target's threads_executing flag. Consider resume
7911 target.
7912 (commit_resume_all_targets): New.
7913 (proceed): Also consider resume target. Skip threads of inferiors
7914 with no execution. Commit resumtion in all targets.
7915 (start_remote): Pass current inferior to wait_for_inferior.
7916 (infrun_thread_stop_requested): Consider target as well. Pass
7917 thread_info pointer to clear_inline_frame_state instead of ptid.
7918 (infrun_thread_thread_exit): Consider target as well.
7919 (random_pending_event_thread): New inferior parameter. Use it.
7920 (do_target_wait): Rename to ...
7921 (do_target_wait_1): ... this. Add inferior parameter, and pass it
7922 down.
7923 (threads_are_resumed_pending_p, do_target_wait): New.
7924 (prepare_for_detach): Adjust calls.
7925 (wait_for_inferior): New inferior parameter. Handle it. Use
7926 do_target_wait_1 instead of do_target_wait.
7927 (fetch_inferior_event): Adjust. Switch to representative
7928 inferior. Pass target down.
7929 (set_last_target_status): Add process_stratum_target parameter.
7930 Save target in global.
7931 (get_last_target_status): Add process_stratum_target parameter and
7932 handle it.
7933 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
7934 (context_switch): Check inferior_ptid == null_ptid before calling
7935 inferior_thread().
7936 (get_inferior_stop_soon): Pass down target.
7937 (wait_one): Rename to ...
7938 (poll_one_curr_target): ... this.
7939 (struct wait_one_event): New.
7940 (wait_one): New.
7941 (stop_all_threads): Adjust.
7942 (handle_no_resumed, handle_inferior_event): Adjust to consider the
7943 event's target.
7944 (switch_back_to_stepped_thread): Also consider target.
7945 (print_stop_event): Update.
7946 (normal_stop): Update. Also consider the resume target.
7947 * infrun.h (wait_for_inferior): Remove declaration.
7948 (user_visible_resume_target): New declaration.
7949 (get_last_target_status, set_last_target_status): New
7950 process_stratum_target parameter.
7951 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
7952 process_stratum_target parameter, and use it.
7953 (clear_inline_frame_state (thread_info*)): New.
7954 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
7955 process_stratum_target parameter.
7956 (clear_inline_frame_state (thread_info*)): Declare.
7957 * linux-fork.c (delete_checkpoint_command): Pass target down to
7958 find_thread_ptid.
7959 (checkpoint_command): Adjust.
7960 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
7961 instead of just tweaking inferior_ptid.
7962 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
7963 (exit_lwp): Pass target down to find_thread_ptid.
7964 (attach_proc_task_lwp_callback): Pass target down to
7965 add_thread/set_running/set_executing.
7966 (linux_nat_target::attach): Pass target down to
7967 thread_change_ptid.
7968 (get_detach_signal): Pass target down to find_thread_ptid.
7969 Consider last target status's target.
7970 (linux_resume_one_lwp_throw, resume_lwp)
7971 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
7972 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
7973 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
7974 (linux_nat_target::async_wait_fd): New.
7975 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
7976 target down.
7977 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
7978 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
7979 * linux-thread-db.c (struct thread_db_info::process_target): New
7980 field.
7981 (add_thread_db_info): Save target.
7982 (get_thread_db_info): New process_stratum_target parameter. Also
7983 match target.
7984 (delete_thread_db_info): New process_stratum_target parameter.
7985 Also match target.
7986 (thread_from_lwp): Adjust to pass down target.
7987 (thread_db_notice_clone): Pass down target.
7988 (check_thread_db_callback): Pass down target.
7989 (try_thread_db_load_1): Always push the thread_db target.
7990 (try_thread_db_load, record_thread): Pass target down.
7991 (thread_db_target::detach): Pass target down. Always unpush the
7992 thread_db target.
7993 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
7994 target down. Always unpush the thread_db target.
7995 (find_new_threads_callback, thread_db_find_new_threads_2)
7996 (thread_db_target::update_thread_list): Pass target down.
7997 (thread_db_target::pid_to_str): Pass current inferior down.
7998 (thread_db_target::get_thread_local_address): Pass target down.
7999 (thread_db_target::resume, maintenance_check_libthread_db): Pass
8000 target down.
8001 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
8002 * procfs.c (procfs_target::procfs_init_inferior): Declare.
8003 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
8004 (procfs_init_inferior): Rename to ...
8005 (procfs_target::procfs_init_inferior): ... this and adjust.
8006 (procfs_target::create_inferior, procfs_notice_thread)
8007 (procfs_do_thread_registers): Adjust.
8008 * ppc-fbsd-tdep.c: Include "inferior.h".
8009 (ppcfbsd_get_thread_local_address): Pass down target.
8010 * proc-service.c (ps_xfer_memory): Switch current inferior and
8011 program space as well.
8012 (get_ps_regcache): Pass target down.
8013 * process-stratum-target.c
8014 (process_stratum_target::thread_address_space)
8015 (process_stratum_target::thread_architecture): Pass target down.
8016 * process-stratum-target.h
8017 (process_stratum_target::threads_executing): New field.
8018 (as_process_stratum_target): New.
8019 * ravenscar-thread.c
8020 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
8021 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
8022 down.
8023 * record-btrace.c (record_btrace_target::info_record): Adjust.
8024 (record_btrace_target::record_method)
8025 (record_btrace_target::record_is_replaying)
8026 (record_btrace_target::fetch_registers)
8027 (get_thread_current_frame_id, record_btrace_target::resume)
8028 (record_btrace_target::wait, record_btrace_target::stop): Pass
8029 target down.
8030 * record-full.c (record_full_wait_1): Switch to event thread.
8031 Pass target down.
8032 * regcache.c (regcache::regcache)
8033 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
8034 process_stratum_target parameter and handle it.
8035 (current_thread_target): New global.
8036 (get_thread_regcache): Add process_stratum_target parameter and
8037 handle it. Switch inferior before calling target method.
8038 (get_thread_regcache): Pass target down.
8039 (get_thread_regcache_for_ptid): Pass target down.
8040 (registers_changed_ptid): Add process_stratum_target parameter and
8041 handle it.
8042 (registers_changed_thread, registers_changed): Pass target down.
8043 (test_get_thread_arch_aspace_regcache): New.
8044 (current_regcache_test): Define a couple local test_target_ops
8045 instances and use them for testing.
8046 (readwrite_regcache): Pass process_stratum_target parameter.
8047 (cooked_read_test, cooked_write_test): Pass mock_target down.
8048 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
8049 (get_thread_arch_aspace_regcache): Add process_stratum_target
8050 parameter.
8051 (regcache::target): New method.
8052 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
8053 (regcache::registers_changed_ptid): Add process_stratum_target
8054 parameter.
8055 (regcache::m_target): New field.
8056 (registers_changed_ptid): Add process_stratum_target parameter.
8057 * remote.c (remote_state::supports_vCont_probed): New field.
8058 (remote_target::async_wait_fd): New method.
8059 (remote_unpush_and_throw): Add remote_target parameter.
8060 (get_current_remote_target): Adjust.
8061 (remote_target::remote_add_inferior): Push target.
8062 (remote_target::remote_add_thread)
8063 (remote_target::remote_notice_new_inferior)
8064 (get_remote_thread_info): Pass target down.
8065 (remote_target::update_thread_list): Skip threads of inferiors
8066 bound to other targets. (remote_target::close): Don't discard
8067 inferiors. (remote_target::add_current_inferior_and_thread)
8068 (remote_target::process_initial_stop_replies)
8069 (remote_target::start_remote)
8070 (remote_target::remote_serial_quit_handler): Pass down target.
8071 (remote_target::remote_unpush_target): New remote_target
8072 parameter. Unpush the target from all inferiors.
8073 (remote_target::remote_unpush_and_throw): New remote_target
8074 parameter. Pass it down.
8075 (remote_target::open_1): Check whether the current inferior has
8076 execution instead of checking whether any inferior is live. Pass
8077 target down.
8078 (remote_target::remote_detach_1): Pass down target. Use
8079 remote_unpush_target.
8080 (extended_remote_target::attach): Pass down target.
8081 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
8082 (remote_target::append_resumption): Pass down target.
8083 (remote_target::append_pending_thread_resumptions)
8084 (remote_target::remote_resume_with_hc, remote_target::resume)
8085 (remote_target::commit_resume): Pass down target.
8086 (remote_target::remote_stop_ns): Check supports_vCont_probed.
8087 (remote_target::interrupt_query)
8088 (remote_target::remove_new_fork_children)
8089 (remote_target::check_pending_events_prevent_wildcard_vcont)
8090 (remote_target::remote_parse_stop_reply)
8091 (remote_target::process_stop_reply): Pass down target.
8092 (first_remote_resumed_thread): New remote_target parameter. Pass
8093 it down.
8094 (remote_target::wait_as): Pass down target.
8095 (unpush_and_perror): New remote_target parameter. Pass it down.
8096 (remote_target::readchar, remote_target::remote_serial_write)
8097 (remote_target::getpkt_or_notif_sane_1)
8098 (remote_target::kill_new_fork_children, remote_target::kill): Pass
8099 down target.
8100 (remote_target::mourn_inferior): Pass down target. Use
8101 remote_unpush_target.
8102 (remote_target::core_of_thread)
8103 (remote_target::remote_btrace_maybe_reopen): Pass down target.
8104 (remote_target::pid_to_exec_file)
8105 (remote_target::thread_handle_to_thread_info): Pass down target.
8106 (remote_target::async_wait_fd): New.
8107 * riscv-fbsd-tdep.c: Include "inferior.h".
8108 (riscv_fbsd_get_thread_local_address): Pass down target.
8109 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
8110 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
8111 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
8112 Adjust.
8113 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
8114 * solib-svr4.c (enable_break): Pass down target.
8115 * spu-multiarch.c (parse_spufs_run): Pass down target.
8116 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
8117 * target-delegates.c: Regenerate.
8118 * target.c (g_target_stack): Delete.
8119 (current_top_target): Return the current inferior's top target.
8120 (target_has_execution_1): Refer to the passed-in inferior's top
8121 target.
8122 (target_supports_terminal_ours): Check whether the initial
8123 inferior was already created.
8124 (decref_target): New.
8125 (target_stack::push): Incref/decref the target.
8126 (push_target, push_target, unpush_target): Adjust.
8127 (target_stack::unpush): Defref target.
8128 (target_is_pushed): Return bool. Adjust to refer to the current
8129 inferior's target stack.
8130 (dispose_inferior): Delete, and inline parts ...
8131 (target_preopen): ... here. Only dispose of the current inferior.
8132 (target_detach): Hold strong target reference while detaching.
8133 Pass target down.
8134 (target_thread_name): Add assertion.
8135 (target_resume): Pass down target.
8136 (target_ops::beneath, find_target_at): Adjust to refer to the
8137 current inferior's target stack.
8138 (get_dummy_target): New.
8139 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
8140 has a thread running.
8141 (initialize_targets): Rename to ...
8142 (_initialize_target): ... this.
8143 * target.h: Include "gdbsupport/refcounted-object.h".
8144 (struct target_ops): Inherit refcounted_object.
8145 (target_ops::shortname, target_ops::longname): Make const.
8146 (target_ops::async_wait_fd): New method.
8147 (decref_target): Declare.
8148 (struct target_ops_ref_policy): New.
8149 (target_ops_ref): New typedef.
8150 (get_dummy_target): Declare function.
8151 (target_is_pushed): Return bool.
8152 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
8153 (all_matching_threads_iterator::all_matching_threads_iterator):
8154 Handle filter target.
8155 * thread-iter.h (struct all_matching_threads_iterator, struct
8156 all_matching_threads_range, class all_non_exited_threads_range):
8157 Filter by target too. Remove explicit.
8158 * thread.c (threads_executing): Delete.
8159 (inferior_thread): Pass down current inferior.
8160 (clear_thread_inferior_resources): Pass down thread pointer
8161 instead of ptid_t.
8162 (add_thread_silent, add_thread_with_info, add_thread): Add
8163 process_stratum_target parameter. Use it for thread and inferior
8164 searches.
8165 (is_current_thread): New.
8166 (thread_info::deletable): Use it.
8167 (find_thread_ptid, thread_count, in_thread_list)
8168 (thread_change_ptid, set_resumed, set_running): New
8169 process_stratum_target parameter. Pass it down.
8170 (set_executing): New process_stratum_target parameter. Pass it
8171 down. Adjust reference to 'threads_executing'.
8172 (threads_are_executing): New process_stratum_target parameter.
8173 Adjust reference to 'threads_executing'.
8174 (set_stop_requested, finish_thread_state): New
8175 process_stratum_target parameter. Pass it down.
8176 (switch_to_thread): Also match inferior.
8177 (switch_to_thread): New process_stratum_target parameter. Pass it
8178 down.
8179 (update_threads_executing): Reimplement.
8180 * top.c (quit_force): Pop targets from all inferior.
8181 (gdb_init): Don't call initialize_targets.
8182 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
8183 Declare.
8184 (windows_add_thread, windows_delete_thread): Adjust.
8185 (get_windows_debug_event): Rename to ...
8186 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
8187 * tracefile-tfile.c (tfile_target_open): Pass down target.
8188 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
8189 Forward declare.
8190 (switch_to_thread): Add process_stratum_target parameter.
8191 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
8192 parameter. Use it.
8193 (mi_on_resume): Pass target down.
8194 * nat/fork-inferior.c (startup_inferior): Add
8195 process_stratum_target parameter. Pass it down.
8196 * nat/fork-inferior.h (startup_inferior): Add
8197 process_stratum_target parameter.
8198 * python/py-threadevent.c (py_get_event_thread): Pass target down.
8199
8200 2020-01-10 Pedro Alves <palves@redhat.com>
8201
8202 * remote.c (remote_target::start_remote): Don't set inferior_ptid
8203 directly. Instead find the first thread in the thread list and
8204 use switch_to_thread.
8205
8206 2020-01-10 Pedro Alves <palves@redhat.com>
8207
8208 * remote.c (remote_target::remote_add_inferior): Don't bind a
8209 process to the current inferior if the current inferior is already
8210 bound to a process.
8211
8212 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8213 Pedro Alves <palves@redhat.com>
8214
8215 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
8216 If no process is specified, return null_ptid instead of
8217 inferior_ptid.
8218 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
8219 TARGET_WAITKIND_SIGNALLED with no pid.
8220
8221 2020-01-10 Pedro Alves <palves@redhat.com>
8222
8223 * remote.c (first_remote_resumed_thread): New.
8224 (remote_target::wait_as): Use it as default event_ptid instead of
8225 inferior_ptid.
8226
8227 2020-01-10 Pedro Alves <palves@redhat.com>
8228
8229 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
8230
8231 2020-01-10 Pedro Alves <palves@redhat.com>
8232
8233 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
8234 not -1.
8235
8236 2020-01-10 Pedro Alves <palves@redhat.com>
8237
8238 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
8239 ptid to get_last_target_status.
8240 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
8241 ptid to get_last_target_status.
8242 * infcmd.c (continue_command): Don't pass a target_waitstatus to
8243 get_last_target_status.
8244 (info_program_command): Don't pass a target_waitstatus to
8245 get_last_target_status.
8246 * infrun.c (init_wait_for_inferior): Use
8247 nullify_last_target_wait_ptid.
8248 (get_last_target_status): Handle nullptr arguments.
8249 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
8250 (print_stop_event): Don't pass a ptid to get_last_target_status.
8251 (normal_stop): Don't pass a ptid to get_last_target_status.
8252 * infrun.h (get_last_target_status, set_last_target_status): Move
8253 comments here and update.
8254 (nullify_last_target_wait_ptid): Declare.
8255 * linux-fork.c (fork_load_infrun_state): Remove local extern
8256 declaration of nullify_last_target_wait_ptid.
8257 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
8258 to get_last_target_status.
8259
8260 2020-01-10 Pedro Alves <palves@redhat.com>
8261
8262 * gdbthread.h (scoped_restore_current_thread)
8263 <dont_restore, restore, m_dont_restore>: Declare.
8264 * thread.c (thread_alive): Add assertion. Return bool.
8265 (switch_to_thread_if_alive): New.
8266 (prune_threads): Switch inferior/thread.
8267 (print_thread_info_1): Switch thread before calling target methods.
8268 (scoped_restore_current_thread::restore): New, factored out from
8269 ...
8270 (scoped_restore_current_thread::~scoped_restore_current_thread):
8271 ... this.
8272 (scoped_restore_current_thread::scoped_restore_current_thread):
8273 Add assertion.
8274 (thread_apply_all_command, thread_select): Use
8275 switch_to_thread_if_alive.
8276 * infrun.c (proceed, restart_threads, handle_signal_stop)
8277 (switch_back_to_stepped_thread): Switch current thread before
8278 calling target methods.
8279
8280 2020-01-10 Pedro Alves <palves@redhat.com>
8281
8282 * inferior.c (switch_to_inferior_no_thread): New function,
8283 factored out from ...
8284 (inferior_command): ... here.
8285 * inferior.h (switch_to_inferior_no_thread): Declare.
8286 * mi/mi-main.c (run_one_inferior): Use
8287 switch_to_inferior_no_thread.
8288
8289 2020-01-10 Pedro Alves <palves@redhat.com>
8290
8291 * infcmd.c (kill_command): Remove dead code.
8292
8293 2020-01-10 Pedro Alves <palves@redhat.com>
8294
8295 * remote.c (remote_target::mourn_inferior): No longer check
8296 whether the target is running.
8297
8298 2020-01-10 Pedro Alves <palves@redhat.com>
8299
8300 * corelow.c (core_target::has_execution): Change parameter type to
8301 inferior pointer.
8302 * inferior.c (number_of_live_inferiors): Use
8303 inferior::has_execution instead of target_has_execution_1.
8304 * inferior.h (inferior::has_execution): New.
8305 * linux-thread-db.c (thread_db_target::update_thread_list): Use
8306 inferior::has_execution instead of target_has_execution_1.
8307 * process-stratum-target.c
8308 (process_stratum_target::has_execution): Change parameter type to
8309 inferior pointer. Check the inferior's PID instead of
8310 inferior_ptid.
8311 * process-stratum-target.h
8312 (process_stratum_target::has_execution): Change parameter type to
8313 inferior pointer.
8314 * record-full.c (record_full_core_target::has_execution): Change
8315 parameter type to inferior pointer.
8316 * target.c (target_has_execution_1): Change parameter type to
8317 inferior pointer.
8318 (target_has_execution_current): Adjust.
8319 * target.h (target_ops::has_execution): Change parameter type to
8320 inferior pointer.
8321 (target_has_execution_1): Change parameter type to inferior
8322 pointer. Change return type to bool.
8323 * tracefile.h (tracefile_target::has_execution): Change parameter
8324 type to inferior pointer.
8325
8326 2020-01-10 Pedro Alves <palves@redhat.com>
8327
8328 * exceptions.c (print_flush): Remove current_top_target() check.
8329
8330 2020-01-10 Pedro Alves <palves@redhat.com>
8331
8332 * remote.c (show_remote_exec_file): Show the current inferior's
8333 exec-file instead of the command variable's value.
8334
8335 2020-01-10 Pedro Alves <palves@redhat.com>
8336
8337 * record-full.c (record_full_resume_ptid): New global.
8338 (record_full_target::resume): Set it.
8339 (record_full_wait_1): Use record_full_resume_ptid instead of
8340 inferior_ptid.
8341
8342 2020-01-10 Pedro Alves <palves@redhat.com>
8343
8344 * gdbthread.h (scoped_restore_current_thread)
8345 <dont_restore, restore, m_dont_restore>: Declare.
8346 * thread.c (thread_alive): Add assertion. Return bool.
8347 (switch_to_thread_if_alive): New.
8348 (prune_threads): Switch inferior/thread.
8349 (print_thread_info_1): Switch thread before calling target methods.
8350 (scoped_restore_current_thread::restore): New, factored out from
8351 ...
8352 (scoped_restore_current_thread::~scoped_restore_current_thread):
8353 ... this.
8354 (scoped_restore_current_thread::scoped_restore_current_thread):
8355 Add assertion.
8356 (thread_apply_all_command, thread_select): Use
8357 switch_to_thread_if_alive.
8358
8359 2020-01-10 George Barrett <bob@bob131.so>
8360
8361 * stap-probe.c (stap_modify_semaphore): Don't check for null
8362 semaphores.
8363 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
8364 for null semaphores.
8365
8366 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8367
8368 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
8369 all source windows, and maintain horizontal scroll status while
8370 doing so.
8371
8372 2020-01-09 Tom Tromey <tom@tromey.com>
8373
8374 PR tui/18932:
8375 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
8376 update_source_window, not print_source_lines.
8377
8378 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8379
8380 * tui/tui.c (tui_enable): Register tui hooks after calling
8381 tui_display_main.
8382
8383 2020-01-09 Christian Biesinger <cbiesinger@google.com>
8384
8385 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
8386
8387 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
8388
8389 * thread.c (print_thread_info_1): Fix indentation.
8390
8391 2020-01-09 Christian Biesinger <cbiesinger@google.com>
8392
8393 * symtab.c (general_symbol_info::compute_and_set_names): Move the
8394 unique_xmalloc_ptr outside the if to always free the demangled name.
8395
8396 2020-01-08 Tom Tromey <tromey@adacore.com>
8397
8398 * xcoffread.c (enter_line_range, read_xcoff_symtab)
8399 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
8400 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
8401 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
8402 Remove.
8403 (section_offsets): New typedef.
8404 * symtab.c (fixup_section, get_msymbol_address): Update.
8405 * symmisc.c (dump_msymbols): Update.
8406 * symfile.h (relative_addr_info_to_section_offsets)
8407 (symfile_map_offsets_to_segments): Update.
8408 * symfile.c (build_section_addr_info_from_objfile)
8409 (init_objfile_sect_indices): Update.
8410 (struct place_section_arg): Change type of "offsets".
8411 (place_section): Update.
8412 (relative_addr_info_to_section_offsets): Change type of
8413 "section_offsets". Remove "num_sections" parameter.
8414 (default_symfile_offsets, syms_from_objfile_1)
8415 (set_objfile_default_section_offset): Update.
8416 (reread_symbols): No need to preserve section offsets by hand.
8417 (symfile_map_offsets_to_segments): Change type of "offsets".
8418 * stap-probe.c (relocate_address): Update.
8419 * stabsread.h (process_one_symbol): Update.
8420 * solib-target.c (struct lm_info_target) <offsets>: Change type.
8421 (solib_target_relocate_section_addresses): Update.
8422 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
8423 Update.
8424 * solib-frv.c (frv_relocate_main_executable): Update.
8425 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8426 * solib-aix.c (solib_aix_get_section_offsets): Change return
8427 type.
8428 (solib_aix_solib_create_inferior_hook): Update.
8429 * remote.c (remote_target::get_offsets): Update.
8430 * psymtab.c (find_pc_sect_psymtab): Update.
8431 * psympriv.h (struct partial_symbol) <address, text_low,
8432 text_high>: Update.
8433 * objfiles.h (obj_section_offset): Update.
8434 (struct objfile) <section_offsets>: Change type.
8435 <num_sections>: Remove.
8436 (objfile_relocate): Update.
8437 * objfiles.c (entry_point_address_query): Update
8438 (relocate_one_symbol): Change type of "section_offsets".
8439 (objfile_relocate1, objfile_relocate1): Change type of
8440 "new_offsets".
8441 (objfile_rebase1): Update.
8442 * mipsread.c (mipscoff_symfile_read): Update.
8443 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
8444 parameter.
8445 * mdebugread.c (parse_symbol): Change type of "section_offsets".
8446 (parse_external, psymtab_to_symtab_1): Update.
8447 * machoread.c (macho_symfile_offsets): Update.
8448 * ia64-tdep.c (ia64_find_unwind_table): Update.
8449 * hppa-tdep.c (read_unwind_info): Update.
8450 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
8451 * dwarf2read.c (create_addrmap_from_index)
8452 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8453 (process_psymtab_comp_unit_reader, add_partial_symbol)
8454 (add_partial_subprogram, process_full_comp_unit)
8455 (read_file_scope, read_func_scope, read_lexical_block_scope)
8456 (read_call_site_scope, dwarf2_rnglists_process)
8457 (dwarf2_ranges_process, dwarf2_ranges_read)
8458 (dwarf_decode_lines_1, var_decode_location, new_symbol)
8459 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
8460 Update.
8461 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
8462 Update.
8463 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
8464 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
8465 (process_one_symbol): Change type of "section_offsets".
8466 * ctfread.c (get_objfile_text_range): Update.
8467 * coffread.c (coff_symtab_read, enter_linenos)
8468 (process_coff_symbol): Update.
8469 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8470 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
8471
8472 2020-01-08 Tom Tromey <tromey@adacore.com>
8473
8474 * dwarf2read.c (parse_macro_definition): Use std::string.
8475 (parse_macro_definition): Likewise.
8476
8477 2020-01-08 Tom Tromey <tromey@adacore.com>
8478
8479 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
8480 (ATTR_ALLOC_CHUNK): Remove.
8481
8482 2020-01-08 Tom Tromey <tromey@adacore.com>
8483
8484 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
8485
8486 2020-01-08 Tom Tromey <tromey@adacore.com>
8487
8488 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
8489 (dwarf2_compute_name, open_dwo_file): Likewise.
8490 (process_enumeration_scope): Use std::vector.
8491 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
8492 (partial_die_info::fixup, dwarf2_start_subfile)
8493 (guess_full_die_structure_name, dwarf2_name): Likewise.
8494 (determine_prefix): Update.
8495 (guess_full_die_structure_name): Make return type const.
8496 (partial_die_full_name): Return unique_xmalloc_ptr.
8497 (DW_FIELD_ALLOC_CHUNK): Remove.
8498
8499 2020-01-07 Tom Tromey <tromey@adacore.com>
8500
8501 PR build/24937:
8502 * stap-probe.c (class stap_static_probe_ops): Add constructor.
8503
8504 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
8505
8506 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
8507
8508 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
8509
8510 * stack.c (print_frame_info): Move disassemble_next_line code
8511 inside source_print block.
8512
8513 2020-01-06 Eli Zaretskii <eliz@gnu.org>
8514
8515 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
8516 gdb/signals.h, as we are now using native signal symbols.
8517
8518 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
8519
8520 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
8521 overflow by an early check of content vs threshold.
8522 * tui/tui-source.c (tui_source_window::line_is_displayed):
8523 Likewise.
8524
8525 2020-01-06 Eli Zaretskii <eliz@gnu.org>
8526
8527 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
8528
8529 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
8530
8531 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
8532 export table if no section contains it's RVA.
8533
8534 2020-01-06 Eli Zaretskii <eliz@gnu.org>
8535
8536 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
8537
8538 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
8539
8540 * source.c (print_source_lines_base): Set last_line_listed.
8541
8542 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
8543
8544 * tui/tui-disasm.c: Remove trailing spaces.
8545
8546 2020-01-06 Eli Zaretskii <eliz@gnu.org>
8547 Pedro Alves <palves@redhat.com>
8548
8549 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
8550 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
8551 (windows_gdb_signal_to_target): New function, uses the above
8552 enumeration to convert GDB internal signal codes to equivalent
8553 Windows codes.
8554 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
8555 * windows-nat.c: Include "gdb_wait.h".
8556 (get_windows_debug_event): Extract the fatal exception from the
8557 exit status and convert to the equivalent Posix signal number.
8558 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
8559 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
8560 * gdbsupport/gdb_wait.c: New file, implements
8561 windows_status_to_termsig.
8562 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
8563 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
8564
8565 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
8566
8567 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
8568 show_layout.
8569
8570 2020-01-05 Luis Machado <luis.machado@linaro.org>
8571
8572 * aarch64-linux-nat.c
8573 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
8574 and bfd_mach_aarch64.
8575
8576 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8577
8578 * ui-file.c (stdio_file::can_emit_style_escape)
8579 (tee_file::can_emit_style_escape): Ensure style is used also on
8580 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
8581 to gdb_stdout.
8582 * main.c (set_gdb_data_directory): Use file style to output the
8583 warning that the given pathname is not a directory.
8584 * top.c (show_history_filename, gdb_safe_append_history)
8585 (show_gdb_datadir): Use file style.
8586
8587 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
8588
8589 * solib-target.c (struct lm_info_target):
8590 Change offsets to be a unique_xmalloc_ptr.
8591 (solib_target_relocate_section_addresses): Update.
8592
8593 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
8594
8595 * windows-nat.c (windows_clear_solib): Free so_list linked list.
8596
8597 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
8598
8599 * MAINTAINERS (Write After Approval): Add myself.
8600
8601 2020-01-02 Luis Machado <luis.machado@linaro.org>
8602
8603 * proc-service.c (get_ps_regcache): Remove reference to obsolete
8604 Cell BE architecture.
8605 * target.h (struct target_ops) <thread_architecture>: Likewise.
8606
8607 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
8608
8609 * Makefile.in: Use INSTALL_PROGRAM_ENV.
8610
8611 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
8612
8613 * MAINTAINERS (Write After Approval): Add myself.
8614
8615 2020-01-01 Joel Brobecker <brobecker@adacore.com>
8616
8617 * gdbarch.sh: Update copyright year range of generated files.
8618
8619 2020-01-01 Joel Brobecker <brobecker@adacore.com>
8620
8621 Update copyright year range in all GDB files.
8622
8623 2020-01-01 Joel Brobecker <brobecker@adacore.com>
8624
8625 * copyright.py: Convert to Python 3.
8626
8627 2020-01-01 Joel Brobecker <brobecker@adacore.com>
8628
8629 * copyright.py: Adapt after move of gnulib directory from gdb
8630 directory to toplevel directory.
8631
8632 2020-01-01 Joel Brobecker <brobecker@adacore.com>
8633
8634 * copyright.py (main): Exit if run from the wrong directory.
8635
8636 2020-01-01 Joel Brobecker <brobecker@adacore.com>
8637
8638 * top.c (print_gdb_version): Change copyright year to 2020.
8639
8640 2020-01-01 Joel Brobecker <brobecker@adacore.com>
8641
8642 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
8643
8644 For older changes see ChangeLog-2019.
8645 \f
8646 Local Variables:
8647 mode: change-log
8648 left-margin: 8
8649 fill-column: 74
8650 version-control: never
8651 coding: utf-8
8652 End:
This page took 0.211318 seconds and 4 git commands to generate.