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