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