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