Commit | Line | Data |
---|---|---|
2d97a5d9 JB |
1 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
2 | ||
3 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
4 | ||
92fce24d JB |
5 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
6 | ||
7 | * configure.ac: Check for kinfo_getfile in libutil. | |
8 | * configure: Regenerate. | |
9 | * config.in: Regenerate. | |
10 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
11 | (fbsd_fetch_cmdline): New. | |
12 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
13 | rather than calling error. | |
14 | (fbsd_info_proc): New. | |
15 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
16 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
17 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
18 | ||
262f62f5 JB |
19 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
20 | ||
21 | * fbsd-nat.c (struct free_deleter): Remove. | |
22 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
23 | ||
b999e203 JB |
24 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
25 | ||
26 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
27 | NULL for an empty pathname. | |
28 | ||
d2176225 JB |
29 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
30 | ||
31 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
32 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
33 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
34 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
35 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
36 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
37 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
38 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
39 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
40 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
41 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
42 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
43 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
44 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
45 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
46 | ||
9c4ac400 ST |
47 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
48 | ||
49 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
50 | (gnu_xfer_auxv): New function. | |
51 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
52 | TARGET_OBJECT_AUXV. | |
53 | ||
1e5ded6c YQ |
54 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
55 | Simon Marchi <simon.marchi@ericsson.com> | |
56 | ||
57 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
58 | common/selftest.c. | |
59 | (COMMON_OBS): Remove selftest.o. | |
60 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
61 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
62 | * configure: Re-generated. | |
63 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
64 | GDB_SELF_TEST. | |
65 | (maintenance_info_selftests): Likewise. | |
66 | ||
04bafb1e XR |
67 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
68 | ||
69 | * ada-valprint.c (val_print_packed_array_elements): Use | |
70 | proper number of elements when printing an array indexed | |
71 | by an enumeration type. | |
72 | ||
518817b3 SM |
73 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
74 | ||
75 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
76 | (dw2_get_file_names_reader): Adjust. | |
77 | (lookup_dwo_signatured_type): Adjust. | |
78 | (lookup_dwp_signatured_type): Adjust. | |
79 | (lookup_signatured_type): Adjust. | |
80 | (create_type_unit_group): Adjust. | |
81 | (get_type_unit_group): Adjust. | |
82 | (process_psymtab_comp_unit_reader): Adjust. | |
83 | (build_type_psymtabs_reader): Adjust. | |
84 | (scan_partial_symbols): Adjust. | |
85 | (add_partial_symbol): Adjust. | |
86 | (add_partial_subprogram): Adjust. | |
87 | (peek_die_abbrev): Adjust. | |
88 | (fixup_go_packaging): Adjust. | |
89 | (process_imported_unit_die): Adjust. | |
90 | (dwarf2_compute_name): Adjust. | |
91 | (dwarf2_physname): Adjust. | |
92 | (read_import_statement): Adjust. | |
93 | (handle_DW_AT_stmt_list): Adjust. | |
94 | (read_file_scope): Adjust. | |
95 | (read_func_scope): Adjust. | |
96 | (read_lexical_block_scope): Adjust. | |
97 | (read_call_site_scope): Adjust. | |
98 | (read_variable): Adjust. | |
99 | (dwarf2_rnglists_process): Adjust. | |
100 | (dwarf2_ranges_process): Adjust. | |
101 | (dwarf2_ranges_read): Adjust. | |
102 | (dwarf2_get_pc_bounds): Adjust. | |
103 | (dwarf2_record_block_ranges): Adjust. | |
104 | (dwarf2_add_field): Adjust. | |
105 | (dwarf2_add_member_fn): Adjust. | |
106 | (read_structure_type): Adjust. | |
107 | (process_structure_scope): Adjust. | |
108 | (read_enumeration_type): Adjust. | |
109 | (read_array_type): Adjust. | |
110 | (mark_common_block_symbol_computed): Adjust. | |
111 | (read_common_block): Adjust. | |
112 | (read_namespace_type): Adjust. | |
113 | (read_namespace): Adjust. | |
114 | (read_module_type): Adjust. | |
115 | (read_tag_pointer_type): Adjust. | |
116 | (read_tag_ptr_to_member_type): Adjust. | |
117 | (read_tag_string_type): Adjust. | |
118 | (read_subroutine_type): Adjust. | |
119 | (read_typedef): Adjust. | |
120 | (read_base_type): Adjust. | |
121 | (attr_to_dynamic_prop): Adjust. | |
122 | (read_subrange_type): Adjust. | |
123 | (read_unspecified_type): Adjust. | |
124 | (dwarf2_read_abbrevs): Adjust. | |
125 | (load_partial_dies): Adjust. | |
126 | (read_partial_die): Adjust. | |
127 | (find_partial_die): Adjust. | |
128 | (guess_partial_die_structure_name): Adjust. | |
129 | (fixup_partial_die): Adjust. | |
130 | (read_attribute_value): Adjust. | |
131 | (read_addr_index): Adjust. | |
132 | (read_addr_index_from_leb128): Adjust. | |
133 | (read_str_index): Adjust. | |
134 | (dwarf2_string_attr): Adjust. | |
135 | (get_debug_line_section): Adjust. | |
136 | (dwarf_decode_line_header): Adjust. | |
137 | (lnp_state_machine::check_line_address): Adjust. | |
138 | (dwarf_decode_lines_1): Adjust. | |
139 | (dwarf_decode_lines): Adjust. | |
140 | (dwarf2_start_symtab): Adjust. | |
141 | (var_decode_location): Adjust. | |
142 | (new_symbol_full): Adjust. | |
143 | (dwarf2_const_value_data): Adjust. | |
144 | (dwarf2_const_value_attr): Adjust. | |
145 | (dwarf2_const_value): Adjust. | |
146 | (die_type): Adjust. | |
147 | (die_containing_type): Adjust. | |
148 | (build_error_marker_type): Adjust. | |
149 | (lookup_die_type): Adjust. | |
150 | (guess_full_die_structure_name): Adjust. | |
151 | (anonymous_struct_prefix): Adjust. | |
152 | (determine_prefix): Adjust. | |
153 | (dwarf2_name): Adjust. | |
154 | (follow_die_ref_or_sig): Adjust. | |
155 | (follow_die_offset): Adjust. | |
156 | (follow_die_ref): Adjust. | |
157 | (follow_die_sig_1): Adjust. | |
158 | (follow_die_sig): Adjust. | |
159 | (get_signatured_type): Adjust. | |
160 | (get_DW_AT_signature_type): Adjust. | |
161 | (decode_locdesc): Adjust. | |
162 | (dwarf_decode_macros): Adjust. | |
163 | (cu_debug_loc_section): Adjust. | |
164 | (fill_in_loclist_baton): Adjust. | |
165 | (dwarf2_symbol_mark_computed): Adjust. | |
166 | (init_one_comp_unit): Don't assign | |
167 | dwarf2_cu::dwarf2_per_objfile. | |
168 | (set_die_type): Adjust. | |
169 | ||
ed2dc618 SM |
170 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
171 | ||
172 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
173 | <dwarf2_per_objfile>: New field. | |
174 | (dwarf2_per_objfile): Remove global. | |
175 | (get_dwarf2_per_objfile): New function. | |
176 | (set_dwarf2_per_objfile): New function. | |
177 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
178 | dwarf2_per_objfile. | |
179 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
180 | (read_abbrev_offset): Likewise. | |
181 | (read_indirect_string): Likewise. | |
182 | (read_indirect_line_string): Likewise. | |
183 | (read_indirect_string_at_offset): Likewise. | |
184 | (read_indirect_string_from_dwz): Likewise. | |
185 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
186 | dwarf2_per_objfile. | |
187 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
188 | (create_all_comp_units): Change objfile parameter to | |
189 | dwarf2_per_objfile. | |
190 | (create_all_type_units): Likewise. | |
191 | (process_queue): Add dwarf2_per_objfile parameter. | |
192 | (read_and_check_comp_unit_head): Likewise. | |
193 | (lookup_dwo_unit_in_dwp): Likewise. | |
194 | (get_dwp_file): Likewise. | |
195 | (process_cu_includes): Likewise. | |
196 | (struct free_dwo_file_cleanup_data): New struct. | |
197 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
198 | set_dwarf2_per_objfile. | |
199 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
200 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
201 | context, adjust calls. | |
202 | (dw2_instantiate_symtab): Likewise. | |
203 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
204 | (dw2_get_cu): Likewise. | |
205 | (create_cu_from_index_list): Change objfile parameter to | |
206 | dwarf2_per_objfile. | |
207 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
208 | context, adjust calls. | |
209 | (create_cus_from_index): Likewise. | |
210 | (create_signatured_type_table_from_index): Change objfile | |
211 | parameter to dwarf2_per_objfile. | |
212 | (create_signatured_type_table_from_debug_names): Change objfile | |
213 | parameter to dwarf2_per_objfile. | |
214 | (create_addrmap_from_index): Likewise. | |
215 | (create_addrmap_from_aranges): Likewise. | |
216 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
217 | (dw2_setup): Remove. | |
218 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
219 | context. | |
220 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
221 | get_dwarf2_per_objfile. | |
222 | (dw2_forget_cached_source_info): Likewise. | |
223 | (dw2_map_symtabs_matching_filename): Likewise. | |
224 | (struct dw2_symtab_iterator) <index>: Remove. | |
225 | <dwarf2_per_objfile>: New field. | |
226 | (dw2_symtab_iter_init): Replace index parameter with | |
227 | dwarf2_per_objfile. | |
228 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
229 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
230 | (dw2_print_stats): Likewise. | |
231 | (dw2_dump): Likewise. | |
232 | (dw2_expand_symtabs_for_function): Likewise. | |
233 | (dw2_expand_all_symtabs): Likewise. | |
234 | (dw2_expand_symtabs_with_fullname): Likewise. | |
235 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
236 | with dwarf2_per_objfile. | |
237 | (dw_expand_symtabs_matching_file_matcher): Add | |
238 | dwarf2_per_objfile parameter and adjust calls. | |
239 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
240 | adjust calls. | |
241 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
242 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
243 | adjust calls. | |
244 | (create_cus_from_debug_names_list): Replace objfile parameter | |
245 | with dwarf2_per_objfile and adjust calls. | |
246 | (create_cus_from_debug_names): Likewise. | |
247 | (dwarf2_read_debug_names): Likewise. | |
248 | (mapped_debug_names::namei_to_name): Adjust call. | |
249 | (dw2_debug_names_iterator::next): Likewise. | |
250 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
251 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
252 | (dw2_debug_names_dump): Likewise. | |
253 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
254 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
255 | (dwarf2_initialize_objfile): Likewise. | |
256 | (dwarf2_build_psymtabs): Likewise. | |
257 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
258 | this_cu. | |
259 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
260 | (read_and_check_comp_unit_head): Likewise. | |
261 | (read_abbrev_offset): Likewise. | |
262 | (create_debug_type_hash_table): Likewise. | |
263 | (create_debug_types_hash_table): Likewise. | |
264 | (create_all_type_units): Replace objfile parameter with | |
265 | dwarf2_per_objfile. | |
266 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
267 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
268 | with dwarf2_per_objfile. | |
269 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
270 | (lookup_dwp_signatured_type): Likewise. | |
271 | (lookup_signatured_type): Likewise. | |
272 | (read_cutu_die_from_dwo): Likewise. | |
273 | (init_tu_and_read_dwo_dies): Likewise. | |
274 | (init_cutu_and_read_dies): Likewise. | |
275 | (init_cutu_and_read_dies_no_follow): Likewise. | |
276 | (allocate_type_unit_groups_table): Add objfile parameter. | |
277 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
278 | (get_type_unit_group): Likewise. | |
279 | (process_psymtab_comp_unit): Update call. | |
280 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
281 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
282 | (print_tu_stats): Likewise. | |
283 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
284 | in void* parameter. | |
285 | (build_type_psymtabs): Change objfile parameter to | |
286 | dwarf2_per_objfile. | |
287 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
288 | passed in void* parameter. | |
289 | (process_skeletonless_type_units): Change objfile parameter to | |
290 | dwarf2_per_objfile. | |
291 | (set_partial_user): Likewise. | |
292 | (dwarf2_build_psymtabs_hard): Likewise. | |
293 | (read_comp_units_from_section): Likewise. | |
294 | (create_all_comp_units): Likewise. | |
295 | (scan_partial_symbols): Update calls. | |
296 | (add_partial_symbol): Likewise. | |
297 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
298 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
299 | (process_queue): Add dwarf2_per_objfile parameter. | |
300 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
301 | (compute_compunit_symtab_includes): Likewise. | |
302 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
303 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
304 | (process_full_type_unit): Likewise. | |
305 | (process_imported_unit_die): Update call. | |
306 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
307 | (read_file_scope): Likewise. | |
308 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
309 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
310 | (create_cus_hash_table): Likewise. | |
311 | (create_dwp_hash_table): Likewise. | |
312 | (create_dwo_unit_in_dwp_v1): Likewise. | |
313 | (create_dwp_v2_section): Likewise. | |
314 | (create_dwo_unit_in_dwp_v2): Likewise. | |
315 | (lookup_dwo_unit_in_dwp): Likewise. | |
316 | (try_open_dwop_file): Likewise. | |
317 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
318 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
319 | cleanup to include a reference to dwarf2_per_objfile. | |
320 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
321 | (open_and_init_dwp_file): Likewise. | |
322 | (get_dwp_file): Likewise. | |
323 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
324 | (queue_and_load_all_dwo_tus): Update call. | |
325 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
326 | data. | |
327 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
328 | (dwarf2_ranges_process): Likewise. | |
329 | (dwarf2_get_pc_bounds): Likewise. | |
330 | (mark_common_block_symbol_computed): Likewise. | |
331 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
332 | (dwarf2_read_abbrevs): Update call. | |
333 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
334 | (find_partial_die): Likewise. | |
335 | (fixup_partial_die): Likewise. | |
336 | (read_attribute_value): Likewise. | |
337 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
338 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
339 | parameter. | |
340 | (read_indirect_string_from_dwz): Add objfile parameter. | |
341 | (read_indirect_string): Add objfile parameter. | |
342 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
343 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
344 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
345 | call dw2_setup. | |
346 | (read_str_index): Use dwarf2_per_objfile from cu. | |
347 | (get_debug_line_section): Likewise. | |
348 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
349 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
350 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
351 | (build_error_marker_type): Likewise. | |
352 | (lookup_die_type): Likewise. | |
353 | (determine_prefix): Likewise. | |
354 | (follow_die_offset): Likewise. | |
355 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
356 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
357 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
358 | (dwarf2_get_die_type): Likewise. | |
359 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
360 | (get_signatured_type): Likewise. | |
361 | (get_DW_AT_signature_type): Likewise. | |
362 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
363 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
364 | (cu_debug_loc_section): Likewise. | |
365 | (fill_in_loclist_baton): Likewise. | |
366 | (dwarf2_symbol_mark_computed): Likewise. | |
367 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
368 | dwarf2_per_objfile. | |
369 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
370 | parameter. | |
371 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
372 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
373 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
374 | (set_die_type): Use dwarf2_free_objfile from cu. | |
375 | (get_die_type_at_offset): Likewise. | |
376 | (dwarf2_per_objfile_free): Don't assign global variable. | |
377 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
378 | parameter, update m_debugstrlookup construction. | |
379 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
380 | parameter. | |
381 | <m_dwarf2_per_objfile>: New field. | |
382 | <lookup>: Use m_dwarf2_per_objfile. | |
383 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
384 | (psyms_seen_size): Likewise. | |
385 | (write_gdbindex): Replace objfile parameter with | |
386 | dwarf2_per_objfile. | |
387 | (write_debug_names): Likewise. | |
388 | (write_psymtabs_to_index): Likewise. | |
389 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
390 | calls. | |
391 | ||
e3b94546 SM |
392 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
393 | ||
394 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
395 | <dwarf2_per_objfile>: New field. | |
396 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
397 | <dwarf2_per_objfile>: New field. | |
398 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
399 | of objfile. | |
400 | (create_signatured_type_table_from_index): Likewise. | |
401 | (create_debug_type_hash_table): Likewise. | |
402 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
403 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
404 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
405 | objfile. | |
406 | (create_partial_symtab): Access objfile through | |
407 | dwarf2_per_objfile. | |
408 | (process_psymtab_comp_unit_reader): Likewise. | |
409 | (read_comp_units_from_section): Likewise. | |
410 | (scan_partial_symbols): Likewise. | |
411 | (add_partial_symbol): Likewise. | |
412 | (add_partial_subprogram): Likewise. | |
413 | (peek_die_abbrev): Likewise. | |
414 | (fixup_go_packaging): Likewise. | |
415 | (process_full_comp_unit): Likewise. | |
416 | (process_full_type_unit): Likewise. | |
417 | (process_imported_unit_die): Likewise. | |
418 | (dwarf2_compute_name): Likewise. | |
419 | (dwarf2_physname): Likewise. | |
420 | (read_import_statement): Likewise. | |
421 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
422 | objfile. | |
423 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
424 | (read_lexical_block_scope): Likewise. | |
425 | (read_call_site_scope): Likewise. | |
426 | (read_variable): Likewise. | |
427 | (dwarf2_rnglists_process): Likewise. | |
428 | (dwarf2_ranges_process): Likewise. | |
429 | (dwarf2_ranges_read): Likewise. | |
430 | (dwarf2_record_block_ranges): Likewise. | |
431 | (dwarf2_add_field): Likewise. | |
432 | (dwarf2_add_member_fn): Likewise. | |
433 | (read_structure_type): Likewise. | |
434 | (process_structure_scope): Likewise. | |
435 | (read_enumeration_type): Likewise. | |
436 | (read_array_type): Likewise. | |
437 | (read_common_block): Likewise. | |
438 | (read_namespace_type): Likewise. | |
439 | (read_namespace): Likewise. | |
440 | (read_module_type): Likewise. | |
441 | (read_tag_pointer_type): Likewise. | |
442 | (read_tag_ptr_to_member_type): Likewise. | |
443 | (read_tag_string_type): Likewise. | |
444 | (read_subroutine_type): Likewise. | |
445 | (read_typedef): Likewise. | |
446 | (read_base_type): Likewise. | |
447 | (attr_to_dynamic_prop): Likewise. | |
448 | (read_subrange_type): Likewise. | |
449 | (read_unspecified_type): Likewise. | |
450 | (load_partial_dies): Likewise. | |
451 | (read_partial_die): Likewise. | |
452 | (find_partial_die): Likewise. | |
453 | (guess_partial_die_structure_name): Likewise. | |
454 | (fixup_partial_die): Likewise. | |
455 | (read_attribute_value): Likewise. | |
456 | (read_addr_index_from_leb128): Likewise. | |
457 | (dwarf2_read_addr_index): Likewise. | |
458 | (dwarf2_string_attr): Likewise. | |
459 | (lnp_state_machine::check_line_address): Likewise. | |
460 | (dwarf_decode_lines_1): Likewise. | |
461 | (dwarf_decode_lines): Likewise. | |
462 | (dwarf2_start_symtab): Likewise. | |
463 | (var_decode_location): Likewise. | |
464 | (new_symbol_full): Likewise. | |
465 | (dwarf2_const_value_data): Likewise. | |
466 | (dwarf2_const_value_attr): Likewise. | |
467 | (dwarf2_const_value): Likewise. | |
468 | (die_type): Likewise. | |
469 | (die_containing_type): Likewise. | |
470 | (lookup_die_type): Likewise. | |
471 | (guess_full_die_structure_name): Likewise. | |
472 | (anonymous_struct_prefix): Likewise. | |
473 | (dwarf2_name): Likewise. | |
474 | (follow_die_ref_or_sig): Likewise. | |
475 | (follow_die_offset): Likewise. | |
476 | (follow_die_ref): Likewise. | |
477 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
478 | (dwarf2_fetch_constant_bytes): Likewise. | |
479 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
480 | (dwarf2_get_die_type): Likewise. | |
481 | (follow_die_sig): Likewise. | |
482 | (decode_locdesc): Likewise. | |
483 | (dwarf2_per_cu_objfile): Likewise. | |
484 | (dwarf2_per_cu_text_offset): Likewise. | |
485 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
486 | objfile. | |
487 | (set_die_type): Access objfile through | |
488 | dwarf2_per_objfile. | |
489 | ||
b01ba14d SM |
490 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
491 | ||
492 | * valprint.c (converted_character_d): Remove typedef. | |
493 | (DEF_VEC_O (converted_character_d)): Remove. | |
494 | (count_next_character): Use std::vector. | |
495 | (print_converted_chars_to_obstack): Likewise. | |
496 | (generic_printstr): Likewise. | |
497 | ||
4d0fdd9b SM |
498 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
499 | ||
500 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
501 | <value>: Change type to unique_xmalloc_ptr. | |
502 | (gdb_xml_value_s): Remove typedef. | |
503 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
504 | (gdb_xml_element_start_handler): Change parameter type to | |
505 | std::vector. | |
506 | (xml_find_attribute): Likewise. | |
507 | * xml-support.c (xml_find_attribute): Change parameter type to | |
508 | std::vector and adjust. | |
509 | (gdb_xml_values_cleanup): Remove. | |
510 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
511 | (xinclude_start_include): Change paraeter type to std::vector | |
512 | and adjust. | |
513 | * btrace.c (check_xml_btrace_version): Likewise. | |
514 | (parse_xml_btrace_block): Likewise. | |
515 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
516 | (parse_xml_btrace_pt): Likewise. | |
517 | (parse_xml_btrace_conf_bts): Likewise. | |
518 | (parse_xml_btrace_conf_pt): Likewise. | |
519 | * memory-map.c (memory_map_start_memory): Likewise. | |
520 | (memory_map_start_property): Likewise. | |
521 | * osdata.c (osdata_start_osdata): Likewise. | |
522 | (osdata_start_item): Likewise. | |
523 | (osdata_start_column): Likewise. | |
524 | * remote.c (start_thread): Likewise. | |
525 | * solib-aix.c (library_list_start_library): Likewise. | |
526 | (library_list_start_list): Likewise. | |
527 | * solib-svr4.c (library_list_start_library): Likewise. | |
528 | (svr4_library_list_start_list): Likewise. | |
529 | * solib-target.c (library_list_start_segment): Likewise. | |
530 | (library_list_start_section): Likewise. | |
531 | (library_list_start_library): Likewise. | |
532 | (library_list_start_list): Likewise. | |
533 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
534 | (traceframe_info_start_tvar): Likewise. | |
535 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
536 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
537 | (tdesc_start_feature): Likewise. | |
538 | (tdesc_start_reg): Likewise. | |
539 | (tdesc_start_union): Likewise. | |
540 | (tdesc_start_struct): Likewise. | |
541 | (tdesc_start_flags): Likewise. | |
542 | (tdesc_start_enum): Likewise. | |
543 | (tdesc_start_field): Likewise. | |
544 | (tdesc_start_enum_value): Likewise. | |
545 | (tdesc_start_vector): Likewise. | |
546 | ||
f979c73f SM |
547 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
548 | ||
549 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
550 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
551 | Remove. | |
552 | (python_xmethod_worker::clone): Remove. | |
553 | * valops.c (find_overload_match): Use std::move instead of | |
554 | clone. | |
555 | ||
ba18742c SM |
556 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
557 | ||
558 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
559 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
560 | <free_xmethod_worker_data>: Remove. | |
561 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
562 | <get_xmethod_arg_types>: Remove. | |
563 | <get_xmethod_result_type>: Remove. | |
564 | <invoke_xmethod>: Remove. | |
565 | * extension.c (new_xmethod_worker): Remove. | |
566 | (clone_xmethod_worker): Remove. | |
567 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
568 | pointer. | |
569 | (get_xmethod_arg_types): Rename to... | |
570 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
571 | (get_xmethod_result_type): Rename to... | |
572 | (xmethod_worker::get_result_type): ... this, and adjust. | |
573 | (invoke_xmethod): Remove. | |
574 | (free_xmethod_worker): Remove. | |
575 | (free_xmethod_worker_vec): Remove. | |
576 | * extension.h (enum ext_lang_rc): Move here from | |
577 | extension-priv.h. | |
578 | (struct xmethod_worker): Add constructor and destructor. | |
579 | <data>: Remove. | |
580 | <value>: Remove. | |
581 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
582 | virtual pure methods. | |
583 | <get_arg_types, get_result_type>: New methods. | |
584 | (xmethod_worker_ptr): Remove typedef. | |
585 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
586 | (xmethod_worker_vec): Remove typedef. | |
587 | (xmethod_worker_up): New typedef. | |
588 | (invoke_xmethod): Remove. | |
589 | (clone_xmethod_worker): Remove. | |
590 | (free_xmethod_worker): Remove. | |
591 | (free_xmethod_worker_vec): Remove. | |
592 | (get_xmethod_arg_types): Remove. | |
593 | (get_xmethod_result_type): Remove. | |
594 | * valops.c (find_method_list): Use std::vector, don't use | |
595 | intermediate vector. | |
596 | (value_find_oload_method_list): Use std::vector. | |
597 | (find_overload_match): Use std::vector. | |
598 | (find_oload_champ): Use std::vector. | |
599 | * value.c (value_free): Use operator delete. | |
600 | (value_of_xmethod): Rename to... | |
601 | (value_from_xmethod): ... this. Don't assign | |
602 | xmethod_worker::value, take rvalue-reference. | |
603 | (result_type_of_xmethod): Adjust. | |
604 | (call_xmethod): Adjust. | |
605 | * value.h: Include extension.h. | |
606 | (struct xmethod_worker): Don't forward-declare. | |
607 | (value_of_xmethod): Rename to... | |
608 | (value_from_xmethod): ... this, take rvalue-reference. | |
609 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
610 | (struct python_xmethod_worker): ... this, add constructor and | |
611 | destructor. | |
612 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
613 | (gdbpy_free_xmethod_worker_data): Rename to... | |
614 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
615 | adjust. | |
616 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
617 | (python_xmethod_worker::clone): ... this and adjust. | |
618 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
619 | temporary vector. | |
620 | (gdbpy_get_xmethod_arg_types): Rename to... | |
621 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
622 | (gdbpy_get_xmethod_result_type): Rename to... | |
623 | (python_xmethod_worker::do_get_result_type): ... this and | |
624 | adjust. | |
625 | (gdbpy_invoke_xmethod): Rename to... | |
626 | (python_xmethod_worker::invoke): ... this and adjust. | |
627 | (new_python_xmethod_worker): Rename to... | |
628 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
629 | adjust. | |
630 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
631 | Remove. | |
632 | (gdbpy_free_xmethod_worker_data): Remove. | |
633 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
634 | (gdbpy_get_xmethod_arg_types): Remove. | |
635 | (gdbpy_get_xmethod_result_type): Remove. | |
636 | (gdbpy_invoke_xmethod): Remove. | |
637 | * python/python.c (python_extension_ops): Remove obsolete | |
638 | callbacks. | |
639 | ||
e379cee6 PA |
640 | 2018-01-05 Pedro Alves <palves@redhat.com> |
641 | ||
642 | PR gdb/18653 | |
643 | * common/signals-state-save-restore.c | |
644 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
645 | find a custom handler preinstalled, instead of internal erroring. | |
646 | But only warn if !quiet. | |
647 | * common/signals-state-save-restore.h | |
648 | (save_original_signals_state): New parameter 'quiet'. | |
649 | * main.c (captured_main_1): Move save_original_signals_state call | |
650 | after option handling, and pass QUIET. | |
651 | ||
a655456c PA |
652 | 2018-01-05 Pedro Alves <palves@redhat.com> |
653 | ||
654 | * spu-tdep.c (spu_catch_start): Pass | |
655 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
656 | ||
de63c46b PA |
657 | 2018-01-05 Pedro Alves <palves@redhat.com> |
658 | ||
659 | PR gdb/22670 | |
660 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
661 | (ada_get_symbol_name_matcher): Use it for | |
662 | symbol_name_match_type::SEARCH_NAME. | |
663 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
664 | it down instead of assuming symbol_name_match_type::FULL. | |
665 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
666 | * c-valprint.c (print_unpacked_pointer): Use | |
667 | lookup_symbol_search_name instead of lookup_symbol. | |
668 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
669 | symbol_name_match_type::SEARCH_NAME. | |
670 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
671 | symbol_name_match_type::FULL. | |
672 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
673 | symbol_name_match_type::SEARCH_NAME. | |
674 | * infrun.c (insert_exception_resume_breakpoint): Use | |
675 | lookup_symbol_search_name. | |
676 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
677 | * psymtab.c (maintenance_check_psymtabs): Use | |
678 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
679 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
680 | SYMBOL_SEARCH_NAME. | |
681 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
682 | if symbol_name_match_type::SEARCH_NAME. | |
683 | (lookup_symbol_in_language): Pass down | |
684 | symbol_name_match_type::FULL. | |
685 | (lookup_symbol_search_name): New. | |
686 | (lookup_language_this): Pass down | |
687 | symbol_name_match_type::SEARCH_NAME. | |
688 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
689 | 'match_type'. Pass it down. | |
690 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
691 | (lookup_symbol_search_name): New declaration. | |
692 | (lookup_symbol_in_block): New 'match_type' parameter. | |
693 | ||
f98fc17b PA |
694 | 2018-01-05 Pedro Alves <palves@redhat.com> |
695 | ||
696 | PR gdb/22670 | |
697 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
698 | ada_lookup_symbol. | |
699 | (ada_lookup_symbol): Reimplement in terms of | |
700 | ada_lookup_symbol_list, bits factored out from | |
701 | ada_lookup_encoded_symbol. | |
702 | ||
342f8240 JB |
703 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
704 | ||
705 | * ada-exp.y (write_object_renaming): When subscripting an array | |
706 | using a symbol as the index, pass the block in call to | |
707 | ada_lookup_encoded_symbol when looking that symbol up. | |
708 | ||
7150d33c JG |
709 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
710 | ||
711 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
712 | TYPE_INDEX_TYPE. | |
713 | ||
cc0e770c JB |
714 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
715 | ||
716 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
717 | the case where VALUE_LVAL (val0) is not lval_memory. | |
718 | ||
f79da888 | 719 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
720 | |
721 | * ada-valprint.c (print_optional_low_bound): Handle | |
722 | character-indexed array printing like boolean-indexed array | |
723 | printing. | |
724 | ||
cd385f94 JB |
725 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
726 | ||
727 | * NEWS: Create a new section for the next release branch. | |
728 | Rename the section of the current branch, now that it has | |
729 | been cut. | |
730 | ||
09aca949 JB |
731 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
732 | ||
733 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
734 | * version.in: Bump version to 8.1.50.DATE-git. | |
735 | ||
9f757bf7 XR |
736 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
737 | ||
738 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
739 | Add field. | |
740 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
741 | Add field. | |
742 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
743 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
744 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
745 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
746 | Update all callers. | |
747 | (create_excep_cond_exprs) <ex>: Add parameter. | |
748 | (re_set_exception): Update create_excep_cond_exprs call. | |
749 | (print_it_exception, print_one_exception, print_mention_exception) | |
750 | (print_recreate_exception): Add "catch handler" handling. | |
751 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
752 | (check_status_catch_handlers, print_it_catch_handlers) | |
753 | (print_one_catch_handlers, print_mention_catch_handlers) | |
754 | (print_recreate_catch_handlers): New function. | |
755 | (catch_handlers_breakpoint_ops): New variable. | |
756 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
757 | Add parameter. Add "catch handler" handling. | |
758 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
759 | Add "catch handler" handling. | |
760 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
761 | handling. | |
762 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
763 | call. | |
764 | (catch_ada_handlers_command): New function. | |
765 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
766 | operations structure. | |
767 | (_initialize_ada_language): Add "catch handlers" command entry. | |
768 | * NEWS: Document "catch handlers" feature. | |
769 | ||
9fe561ab JB |
770 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
771 | ||
772 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
773 | account when creating the array type of the slice. | |
774 | (ada_value_slice): Likewise. | |
775 | ||
a405673c JB |
776 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
777 | ||
778 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
779 | New enum value. | |
780 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
781 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
782 | New parameter. Update all callers in this file. | |
783 | (array_type_has_dynamic_stride): New function. | |
784 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
785 | of arrays with dynamic byte strides. | |
786 | * dwarf2read.c (read_array_type): Add support for dynamic | |
787 | DW_AT_byte_stride attributes. | |
788 | ||
74a2f8ff JB |
789 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
790 | ||
791 | * dwarf2read.c (read_unspecified_type): Treat | |
792 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
793 | ||
e2882c85 JB |
794 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
795 | ||
796 | Update copyright year range in all GDB files. | |
797 | ||
1690bb24 JB |
798 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
799 | ||
800 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
801 | and gdb/testsuite/gdb.base/step-line.c. | |
802 | ||
0f0c98a8 JB |
803 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
804 | ||
805 | * copyright.py (main): Dump the contents of | |
806 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
807 | even if BY_HAND is empty. | |
808 | ||
82e1e79a JB |
809 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
810 | ||
811 | * top.c (print_gdb_version): Update Copyright year in version | |
812 | message. | |
813 | ||
053f54e5 | 814 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 815 | |
053f54e5 | 816 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 817 | |
053f54e5 | 818 | For older changes see ChangeLog-2017. |
c906108c SS |
819 | \f |
820 | Local Variables: | |
821 | mode: change-log | |
822 | left-margin: 8 | |
823 | fill-column: 74 | |
824 | version-control: never | |
57da7796 | 825 | coding: utf-8 |
c906108c | 826 | End: |