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