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