Commit | Line | Data |
---|---|---|
8e817061 JB |
1 | 2018-06-01 Joel Brobecker <brobecker@adacore.com> |
2 | ||
3 | * breakpoint.c (breakpoint_re_set): Temporarily force language_mode | |
4 | to language_mode_manual while calling breakpoint_re_set_one. | |
5 | ||
a737d952 TT |
6 | 2018-06-01 Tom Tromey <tom@tromey.com> |
7 | ||
8 | * valops.c (value_cast_structs, destructor_name_p): Update. | |
9 | * symtab.c (gdb_mangle_name): Update. | |
10 | * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): | |
11 | Update. | |
12 | * p-valprint.c (pascal_object_is_vtbl_ptr_type) | |
13 | (pascal_object_print_value_fields, pascal_object_print_value): | |
14 | Update. | |
15 | * p-typeprint.c (pascal_type_print_derivation_info): Update. | |
16 | * linespec.c (find_methods): Update. | |
17 | * gdbtypes.h (type_name_no_tag): Remove. | |
18 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
19 | * gdbtypes.c (type_name_no_tag): Remove. | |
20 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
21 | (lookup_struct_elt_type, check_typedef): Update. | |
22 | * expprint.c (print_subexp_standard): Update. | |
23 | * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. | |
24 | * d-namespace.c (d_lookup_nested_symbol): Update. | |
25 | * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) | |
26 | (cp_print_class_member): Update. | |
27 | * cp-namespace.c (cp_lookup_nested_symbol): Update. | |
28 | * completer.c (add_struct_fields): Update. | |
29 | * c-typeprint.c (cp_type_print_derivation_info) | |
30 | (c_type_print_varspec_prefix, c_type_print_base_struct_union): | |
31 | Update. | |
32 | * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) | |
33 | (ada_prefer_type, ada_is_exception_sym): Update. | |
34 | ||
e86ca25f TT |
35 | 2018-06-01 Tom Tromey <tom@tromey.com> |
36 | ||
37 | * valops.c (enum_constant_from_type, value_namespace_elt) | |
38 | (value_maybe_namespace_elt): Update. | |
39 | * valarith.c (find_size_for_pointer_math): Update. | |
40 | * target-descriptions.c (make_gdb_type): Update. | |
41 | * symmisc.c (print_symbol): Update. | |
42 | * stabsread.c (define_symbol, read_type) | |
43 | (complain_about_struct_wipeout, add_undefined_type) | |
44 | (cleanup_undefined_types_1): Update. | |
45 | * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) | |
46 | (rust_range_type_p, val_print_struct, rust_print_struct_def) | |
47 | (rust_internal_print_type, rust_composite_type) | |
48 | (rust_evaluate_funcall, rust_evaluate_subexp) | |
49 | (rust_inclusive_range_type_p): Update. | |
50 | * python/py-type.c (typy_get_tag): Update. | |
51 | * p-typeprint.c (pascal_type_print_base): Update. | |
52 | * mdebugread.c (parse_symbol, parse_type): Update. | |
53 | * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): | |
54 | Update. | |
55 | * guile/scm-type.c (gdbscm_type_tag): Update. | |
56 | * go-lang.c (sixg_string_p): Update. | |
57 | * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): | |
58 | Update. | |
59 | * gdbtypes.h (struct main_type) <tag_name>: Remove. | |
60 | (TYPE_TAG_NAME): Remove. | |
61 | * gdbtypes.c (type_name_no_tag): Simplify. | |
62 | (check_typedef, check_types_equal, recursive_dump_type) | |
63 | (copy_type_recursive, arch_composite_type): Update. | |
64 | * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix | |
65 | in summary mode when needed. | |
66 | * eval.c (evaluate_funcall): Update. | |
67 | * dwarf2read.c (fixup_go_packaging, read_structure_type) | |
68 | (process_structure_scope, read_enumeration_type) | |
69 | (read_namespace_type, read_module_type, determine_prefix): Update. | |
70 | * cp-support.c (inspect_type): Update. | |
71 | * coffread.c (process_coff_symbol, decode_base_type): Update. | |
72 | * c-varobj.c (c_is_path_expr_parent): Update. | |
73 | * c-typeprint.c (c_type_print_base_struct_union): Update. | |
74 | (c_type_print_base_1): Update. Print struct/class/union/enum in | |
75 | summary when using C language. | |
76 | * ax-gdb.c (gen_struct_ref, gen_namespace_elt) | |
77 | (gen_maybe_namespace_elt): Update. | |
78 | * ada-lang.c (ada_type_name): Simplify. | |
79 | (empty_record, ada_template_to_fixed_record_type_1) | |
80 | (template_to_static_fixed_type) | |
81 | (to_record_with_fixed_variant_part, ada_check_typedef): Update. | |
82 | ||
c1ec8cea TT |
83 | 2018-06-01 Tom Tromey <tom@tromey.com> |
84 | ||
85 | * dwarf2read.c (dwarf2_compute_name): Pass CU's language to | |
86 | c_print_type. | |
87 | * c-typeprint.c (c_print_type_1): Add "language" parameter. | |
88 | (c_print_type): Update. | |
89 | (c_print_type): New overload. | |
90 | (c_type_print_varspec_prefix, c_type_print_args) | |
91 | (c_type_print_varspec_suffix, c_print_type_no_offsets) | |
92 | (c_type_print_base_struct_union, c_type_print_base_1) | |
93 | (cp_type_print_method_args): Add "language" parameter. | |
94 | (c_type_print_base): Update. | |
95 | * c-lang.h (c_print_type): Add new overload. | |
96 | ||
bc8453a7 TT |
97 | 2018-06-01 Tom Tromey <tom@tromey.com> |
98 | ||
99 | * typeprint.h (c_type_print_varspec_suffix): Don't declare. | |
100 | * c-typeprint.c (c_type_print_varspec_suffix): Now static. | |
101 | ||
739e8682 AH |
102 | 2018-06-01 Alan Hayward <alan.hayward@arm.com> |
103 | ||
104 | * aarch64-tdep.c (aarch64_sve_register_names): New const | |
105 | var. | |
106 | * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. | |
107 | (AARCH64_SVE_Z_REGS_NUM): New define. | |
108 | (AARCH64_SVE_P_REGS_NUM): Likewise. | |
109 | (AARCH64_SVE_NUM_REGS): Likewise. | |
110 | ||
8a60efe7 UB |
111 | 2018-05-31 Uros Bizjak <ubizjak@gmail.com> |
112 | ||
113 | * nat/linux-ptrace.h [__alpha__] | |
114 | (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove | |
115 | definitions. | |
116 | ||
4b2dfa9d MR |
117 | 2018-05-31 Maciej W. Rozycki <macro@mips.com> |
118 | ||
119 | * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to | |
120 | the endianness selected. | |
121 | * NEWS: Document `set endian auto' mode operation update. | |
122 | ||
122394f1 AH |
123 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
124 | ||
125 | * Makefile.in: Add new header. | |
126 | * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. | |
127 | (sve_vl_from_vg): Likewise. | |
128 | (sve_vq_from_vl): Likewise. | |
129 | (sve_vl_from_vq): Likewise. | |
130 | (sve_vq_from_vg): Likewise. | |
131 | (sve_vg_from_vq): Likewise. | |
132 | * configure.nat: Add new c file. | |
133 | * nat/aarch64-sve-linux-ptrace.c: New file. | |
134 | * nat/aarch64-sve-linux-ptrace.h: New file. | |
135 | ||
95228a0d AH |
136 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
137 | ||
138 | * aarch64-linux-nat.c (aarch64_linux_read_description): | |
139 | Add parmeter zero. | |
140 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
141 | Likewise. | |
142 | * aarch64-tdep.c (tdesc_aarch64_list): Add. | |
143 | (aarch64_read_description): Use VQ to index tdesc_aarch64_list. | |
144 | (aarch64_gdbarch_init): Add parmeter zero. | |
145 | * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. | |
146 | * arch/aarch64.c (aarch64_create_target_description): Check VQ. | |
147 | * arch/aarch64.h (aarch64_create_target_description): Add VQ. | |
148 | parmeter. | |
149 | * doc/gdb.texinfo: Describe SVE feature | |
150 | * features/aarch64-sve.c: New file. | |
151 | ||
5969f0db OJ |
152 | 2018-05-31 Omair Javaid <omair.javaid@linaro.org> |
153 | ||
154 | PR gdb/23210 | |
155 | * gdbarch.sh (significant_addr_bit): Default to zero when | |
156 | not set by target architecture. | |
157 | * gdbarch.c: Re-generated. | |
158 | * utils.c (address_significant): Update. | |
159 | ||
61367c61 JB |
160 | 2018-05-30 Joel Brobecker <brobecker@adacore.com> |
161 | ||
162 | * stack.c (func_command): Remove trailing newline in call to error. | |
163 | ||
34a79281 SM |
164 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
165 | ||
166 | * regcache.h (regcache_raw_collect): Remove, update callers to | |
167 | use regcache::raw_collect. | |
168 | * regcache.c (regcache_raw_collect): Remove. | |
169 | ||
73e1c03f SM |
170 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
171 | ||
172 | * regcache.h (regcache_raw_supply): Remove, update callers to | |
173 | use detached_regcache::raw_supply. | |
174 | * regcache.c (regcache_raw_supply): Remove. | |
175 | ||
e4c4a59b SM |
176 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
177 | ||
178 | * regcache.h (regcache_cooked_write_part): Remove, update | |
179 | callers to use regcache::cooked_write_part. | |
180 | * regcache.c (regcache_cooked_write_part): Remove. | |
181 | ||
73bb0000 SM |
182 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
183 | ||
184 | * regcache.h (regcache_cooked_read_part): Remove, update callers | |
185 | to use readable_regcache::cooked_read_part. | |
186 | * regcache.c (regcache_cooked_read_part): Remove. | |
187 | ||
46a45e9d SM |
188 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
189 | ||
190 | * regcache.h (regcache_cooked_read_value): Remove, update | |
191 | callers to use readable_regcache::cooked_read_value. | |
192 | * regcache.c (regcache_cooked_read_value): Remove. | |
193 | ||
b66f5587 SM |
194 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
195 | ||
196 | * regcache.h (regcache_cooked_write): Remove, update callers to | |
197 | use regcache::cooked_write. | |
198 | * regcache.c (regcache_cooked_write): Remove. | |
199 | ||
6aa7d724 SM |
200 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
201 | ||
202 | * regcache.h (regcache_invalidate): Remove, update callers to | |
203 | use detached_regcache::invalidate instead. | |
204 | * regcache.c (regcache_invalidate): Remove. | |
205 | ||
4f0420fd SM |
206 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
207 | ||
208 | * regcache.h (regcache_raw_write_part): Remove, update callers | |
209 | to use regcache::raw_write_part instead. | |
210 | * regcache.c (regcache_raw_write_part): Remove. | |
211 | ||
502fe83e SM |
212 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
213 | ||
214 | * regcache.h (regcache_raw_read_part): Remove, update callers to | |
215 | use readable_regcache::raw_read_part instead. | |
216 | * regcache.c (regcache_raw_read_part): Remove. | |
217 | ||
dca08e1f SM |
218 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
219 | ||
220 | * regcache.h (regcache_cooked_read): Remove, update callers to | |
221 | use readable_regcache::cooked_read instead. | |
222 | * regcache.c (regcache_cooked_read): Remove. | |
223 | ||
10eaee5f SM |
224 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
225 | ||
226 | * regcache.h (regcache_raw_write): Remove, update callers to use | |
227 | regcache::raw_write instead. | |
228 | * regcache.c (regcache_raw_write): Remove. | |
229 | ||
0b883586 SM |
230 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
231 | ||
232 | * regcache.h (regcache_raw_read): Remove, update callers to use | |
233 | readable_regcache::raw_read instead. | |
234 | * regcache.c (regcache_raw_read): Remove. | |
235 | ||
0b47d985 SM |
236 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
237 | ||
238 | * regcache.h (regcache_raw_update): Remove, update callers to | |
239 | use readable_regcache::raw_update instead. | |
240 | * regcache.c (regcache_raw_update): Remove. | |
241 | ||
0ec9f114 SM |
242 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
243 | ||
244 | * regcache.h (regcache_register_status): Remove, update callers | |
245 | to use reg_buffer::get_register_status directly instead. | |
246 | * regcache.c (regcache_register_status): Remove. | |
247 | ||
222312d3 SM |
248 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
249 | ||
250 | * regcache.h (regcache_get_ptid): Remove, update all callers to | |
251 | call regcache::ptid instead. | |
252 | * regcache.c (regcache_get_ptid): Remove. | |
253 | ||
fdbe37e3 SM |
254 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
255 | ||
256 | * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. | |
257 | ||
f7c6f423 PA |
258 | 2018-05-30 Pedro Alves <palves@redhat.com> |
259 | ||
260 | * common/common-exceptions.h (exception_rethrow): Use | |
261 | ATTRIBUTE_NORETURN. | |
262 | ||
52941706 SM |
263 | 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca> |
264 | ||
265 | * breakpoint.c (print_solib_event, check_status_catch_solib): | |
266 | Remove struct keyword in range-based for loops. | |
267 | * dbxread.c (find_corresponding_bincl_psymtab): Likewise. | |
268 | * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); | |
269 | Likewise. | |
270 | * linespec.c (find_superclass_methods, search_minsyms_for_name): | |
271 | Likewise. | |
272 | * symfile.c (addr_info_make_relative): Likewise. | |
273 | * thread.c (value_in_thread_stack_temporaries): Likewise. | |
274 | ||
64cc34d8 WP |
275 | 2018-05-29 Weimin Pan <weimin.pan@oracle.com> |
276 | ||
277 | * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. | |
278 | * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. | |
279 | * coff-pe-read.c (add_pe_forwarded_sym): Replace | |
280 | lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. | |
281 | * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. | |
282 | * jit.c (jit_breakpoint_re_set_internal): Likewise. | |
283 | * printcmd.c (info_address_command): Likewise. | |
284 | ||
e7ec8713 TT |
285 | 2018-05-29 Tom Tromey <tom@tromey.com> |
286 | ||
287 | * windows-nat.c (handle_exception): Update fall-through comment. | |
288 | ||
bcb430e4 TT |
289 | 2018-05-29 Tom Tromey <tom@tromey.com> |
290 | ||
291 | * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. | |
292 | (struct program_space) <added_solibs>: Now a std::vector. | |
293 | * breakpoint.c (print_solib_event): Update. | |
294 | (check_status_catch_solib): Update. | |
295 | * progspace.c (clear_program_space_solib_cache): Update. | |
296 | * solib.c (update_solib_list): Update. | |
297 | ||
894882e3 TT |
298 | 2018-05-29 Tom Tromey <tom@tromey.com> |
299 | ||
300 | * python/py-type.c (typy_richcompare): Update. | |
301 | * guile/scm-type.c (tyscm_equal_p_type_smob): Update. | |
302 | * gdbtypes.h (types_deeply_equal): Return bool. | |
303 | (types_equal): Likewise. | |
304 | * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't | |
305 | declare VEC. | |
306 | (check_types_equal): Change worklist to std::vector. Return | |
307 | bool. | |
308 | (struct type_equality_entry): Add constructor. | |
309 | (compare_maybe_null_strings): Return bool. | |
310 | (check_types_worklist): Return bool. Change worklist to | |
311 | std::vector. | |
312 | (types_deeply_equal): Use std::vector. | |
313 | (types_equal): Return bool. | |
314 | (compare_maybe_null_strings): Simplify. | |
315 | ||
10b2ded4 TT |
316 | 2018-05-29 Tom Tromey <tom@tromey.com> |
317 | ||
318 | * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. | |
319 | ||
4f7deebe TT |
320 | 2018-05-29 Tom Tromey <tom@tromey.com> |
321 | ||
322 | * objc-lang.h: Don't include cp-support.h. | |
323 | * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't | |
324 | declare VEC. | |
325 | ||
b8283aea TT |
326 | 2018-05-27 Tom Tromey <tom@tromey.com> |
327 | ||
328 | * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. | |
329 | ||
41a883c8 TT |
330 | 2018-05-25 Tom Tromey <tom@tromey.com> |
331 | ||
332 | * value.c (value::location): Initialize. | |
333 | ||
bf259e25 TT |
334 | 2018-05-25 Tom Tromey <tom@tromey.com> |
335 | ||
336 | * dbxread.c (init_bincl_list): Remove. | |
337 | (bincl_list): Now a std::vector. | |
338 | (bincls_allocated, next_bincl): Remove. | |
339 | (free_bincl_list, do_free_bincl_list_cleanup) | |
340 | (make_cleanup_free_bincl_list): Remove. | |
341 | (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, | |
342 | unique_xmalloc_ptr. | |
343 | (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. | |
344 | (struct header_file_location): Add constructor. | |
345 | (add_bincl_to_list): Remove. | |
346 | ||
d525a99b TT |
347 | 2018-05-25 Tom Tromey <tom@tromey.com> |
348 | ||
349 | * tui/tui.c (tui_enable): Update. | |
350 | * mi/mi-interp.c (mi_interp::init): Update. | |
351 | * interps.h (class interp) <name>: New method. | |
352 | <m_name>: Rename from name. | |
353 | (~scoped_restore_interp): Update. | |
354 | * interps.c (interp::interp): Update. | |
355 | (interp_add, interp_set, interp_lookup_existing) | |
356 | (current_interp_named_p): Update. | |
357 | ||
da505cff TT |
358 | 2018-05-25 Tom Tromey <tom@tromey.com> |
359 | ||
360 | * interps.c (interp_name): Remove. | |
361 | * mi/mi-interp.c (mi_interp::init): Update. | |
362 | * interps.h (interp_name): Remove. | |
363 | (~scoped_restore_interp): Update. | |
364 | * tui/tui.c (tui_enable): Update. | |
365 | ||
29f94340 TT |
366 | 2018-05-25 Tom Tromey <tom@tromey.com> |
367 | ||
368 | * utils.c (fputs_maybe_filtered): Update. | |
369 | * linespec.c (decode_line_full): Update. | |
370 | * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) | |
371 | (mi_print_breakpoint_for_event, mi_solib_loaded) | |
372 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
373 | (mi_user_selected_context_changed): Update. | |
374 | * mi/mi-main.c (mi_execute_command): Update. | |
375 | * cli/cli-script.c (execute_control_command): Update. | |
376 | * python/python.c (execute_gdb_command): Update. | |
377 | * solib.c (info_sharedlibrary_command): Update. | |
378 | * interps.c (interp_ui_out): Remove. | |
379 | * interps.h (interp_ui_out): Remove. | |
380 | ||
716b8bc5 TT |
381 | 2018-05-25 Tom Tromey <tom@tromey.com> |
382 | ||
383 | * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. | |
384 | * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. | |
385 | * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. | |
386 | ||
753ff9bd TT |
387 | 2018-05-25 Tom Tromey <tom@tromey.com> |
388 | ||
389 | * cli/cli-interp.c (safe_execute_command): Use scoped_restore. | |
390 | * interps.c (interp_exec): Use scoped_restore. | |
391 | ||
5ca3b260 TT |
392 | 2018-05-25 Tom Tromey <tom@tromey.com> |
393 | ||
394 | * remote.c (remote_target::remote_file_get): Use | |
395 | gdb::byte_vector. | |
396 | (remote_target::remote_file_put): Likewise. | |
397 | ||
3173aa2f TT |
398 | 2018-05-25 Tom Tromey <tom@tromey.com> |
399 | ||
400 | * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now | |
401 | a std::string. | |
402 | (get_pe_section_index, add_pe_exported_sym): Update. | |
403 | (read_pe_exported_syms): Use gdb::def_vector. | |
404 | ||
09a5e1b5 TT |
405 | 2018-05-25 Tom Tromey <tom@tromey.com> |
406 | ||
407 | * frame.c (remove_prev_frame): Remove. | |
408 | (get_prev_frame_if_no_cycle): Use TRY/CATCH. | |
409 | ||
d8dab6c3 MR |
410 | 2018-05-25 Maciej W. Rozycki <macro@mips.com> |
411 | ||
412 | * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): | |
413 | Remove prototypes. | |
414 | * mips-linux-nat.c (supply_fpregset): Always call | |
415 | `mips64_supply_fpregset' rather than `mips_supply_fpregset'. | |
416 | (fill_fpregset): Always call `mips64_fill_fpregset' rather than | |
417 | `mips_fill_fpregset'. | |
418 | * mips-linux-tdep.c (mips_supply_fpregset) | |
419 | (mips_supply_fpregset_wrapper, mips_fill_fpregset) | |
420 | (mips_fill_fpregset_wrapper): Remove functions. | |
421 | (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. | |
422 | (mips_linux_fpregset): Remove variable. | |
423 | (mips_linux_iterate_over_regset_sections): Use | |
424 | `mips64_linux_fpregset' in place of `mips_linux_fpregset'. | |
425 | (mips_linux_o32_sigframe_init): Remove comment. | |
426 | ||
3c69da40 PA |
427 | 2018-05-25 Pedro Alves <palves@redhat.com> |
428 | ||
429 | * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) | |
430 | (struct readahead_cache, struct packet_reg, struct | |
431 | remote_arch_state, class remote_state): Move higher up in the | |
432 | file. | |
433 | (remote_target::m_remote_state): Now an object instead of a pointer. | |
434 | (remote_target::get_remote_state): Adjust. | |
435 | ||
39f0c204 AB |
436 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
437 | ||
438 | * stack.c (select_and_print_frame): Delete. | |
439 | (struct function_bounds): Move struct within function. | |
440 | (func_command): Most content moved into new function | |
441 | find_frame_for_function, use new function, print result, add | |
442 | function comment. | |
443 | (find_frame_for_function): New function, now returns a result. | |
444 | ||
d392224a PW |
445 | 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
446 | ||
447 | * stack.c (iterate_over_block_arg_vars): Fix comment. | |
448 | (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. | |
449 | ||
45f25d6c AB |
450 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
451 | ||
452 | PR gdb/23203 | |
453 | * frame.c | |
454 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
455 | Define. | |
456 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
457 | Define. | |
458 | * frame.h (class scoped_restore_selected_frame): New class. | |
459 | * stack.c (print_frame_local_vars): Remove catching and rethrowing | |
460 | of any exception, use scoped_restore_selected_frame to restore the | |
461 | frame instead. | |
462 | ||
da05d921 PA |
463 | 2018-05-24 Pedro Alves <palves@redhat.com> |
464 | ||
465 | * darwin-nat.h (darwin_nat_target::create_inferior): Mark with | |
466 | override. | |
467 | ||
a8be540e TT |
468 | 2018-05-23 Tom Tromey <tom@tromey.com> |
469 | ||
470 | * complaints.c (struct complaints): Remove. | |
471 | (symfile_complaint_book): Remove. | |
472 | (series): New global. | |
473 | (complaint_internal): Update. | |
474 | (clear_complaints): Update. | |
475 | ||
ff1cf532 TT |
476 | 2018-05-23 Tom Tromey <tom@tromey.com> |
477 | ||
478 | * complaints.c (counters): New global. | |
479 | (struct complain): Remove. | |
480 | (struct complaints) <root>: Remove. | |
481 | (complaint_sentinel): Remove. | |
482 | (symfile_complaint_book): Update. | |
483 | (find_complaint) Remove. | |
484 | (complaint_internal, clear_complaints): Update. | |
485 | ||
7ff88174 TT |
486 | 2018-05-23 Tom Tromey <tom@tromey.com> |
487 | ||
488 | * complaints.c (struct complain) <file, line>: Remove. | |
489 | (find_complaint): Remove file, line parameters. | |
490 | (complaint_internal): Update. | |
491 | ||
de54e1a5 TT |
492 | 2018-05-23 Tom Tromey <tom@tromey.com> |
493 | ||
494 | * complaints.c (vcomplaint): Remove. | |
495 | (complaint_internal) Merge in contents of vcomplaint. | |
496 | ||
2ac237e5 TT |
497 | 2018-05-23 Tom Tromey <tom@tromey.com> |
498 | ||
499 | * complaints.c (struct complaints) <explanation>: Remove. | |
500 | (symfile_explanations): Remove. | |
501 | (symfile_complaint_book): Update. | |
502 | (vcomplaint): Update. | |
503 | (struct explanation): Remove. | |
504 | ||
b98664d3 TT |
505 | 2018-05-23 Tom Tromey <tom@tromey.com> |
506 | ||
507 | * complaints.c (symfile_complaints): Remove. | |
508 | (complaint_internal): Remove "complaints" parameter. | |
509 | (clear_complaints, vcomplaint): Remove "c" parameter. | |
510 | (get_complaints): Remove. | |
511 | * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) | |
512 | (dwarf2_debug_line_missing_file_complaint) | |
513 | (dwarf2_debug_line_missing_end_sequence_complaint) | |
514 | (dwarf2_complex_location_expr_complaint) | |
515 | (dwarf2_const_value_length_mismatch_complaint) | |
516 | (dwarf2_section_buffer_overflow_complaint) | |
517 | (dwarf2_macro_malformed_definition_complaint) | |
518 | (dwarf2_invalid_attrib_class_complaint) | |
519 | (create_addrmap_from_index, dw2_symtab_iter_next) | |
520 | (dw2_expand_marked_cus) | |
521 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
522 | (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) | |
523 | (create_debug_type_hash_table, init_cutu_and_read_dies) | |
524 | (partial_die_parent_scope, add_partial_enumeration) | |
525 | (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) | |
526 | (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) | |
527 | (read_import_statement, read_file_scope, create_dwo_cu_reader) | |
528 | (create_cus_hash_table, create_dwp_hash_table) | |
529 | (inherit_abstract_dies, read_func_scope, read_call_site_scope) | |
530 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
531 | (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) | |
532 | (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) | |
533 | (handle_struct_member_die, process_structure_scope) | |
534 | (read_array_type, read_common_block, read_module_type) | |
535 | (read_tag_pointer_type, read_typedef, read_base_type) | |
536 | (read_subrange_type, load_partial_dies, partial_die_info::read) | |
537 | (partial_die_info::read, partial_die_info::read) | |
538 | (partial_die_info::read, read_checked_initial_length_and_offset) | |
539 | (dwarf2_string_attr, read_formatted_entries) | |
540 | (dwarf_decode_line_header) | |
541 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
542 | (new_symbol, dwarf2_const_value_attr, lookup_die_type) | |
543 | (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) | |
544 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
545 | (get_signatured_type, get_DW_AT_signature_type) | |
546 | (decode_locdesc, file_file_name, consume_improper_spaces) | |
547 | (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) | |
548 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
549 | (dwarf2_symbol_mark_computed, set_die_type) | |
550 | (read_attribute_value): Update. | |
551 | * stap-probe.c (handle_stap_probe, get_stap_base_address): | |
552 | Update. | |
553 | * dbxread.c (unknown_symtype_complaint) | |
554 | (lbrac_mismatch_complaint, repeated_header_complaint) | |
555 | (set_namestring, function_outside_compilation_unit_complaint) | |
556 | (read_dbx_symtab, process_one_symbol): Update. | |
557 | * gdbtypes.c (stub_noname_complaint): Update. | |
558 | * windows-nat.c (handle_unload_dll): Update. | |
559 | * coffread.c (coff_symtab_read, enter_linenos, decode_type) | |
560 | (decode_base_type): Update. | |
561 | * xcoffread.c (bf_notfound_complaint, ef_complaint) | |
562 | (eb_complaint, record_include_begin, record_include_end) | |
563 | (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) | |
564 | (process_xcoff_symbol, read_symbol) | |
565 | (function_outside_compilation_unit_complaint) | |
566 | (scan_xcoff_symtab): Update. | |
567 | * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. | |
568 | * buildsym.c (finish_block_internal, make_blockvector) | |
569 | (end_symtab_get_static_block, augment_type_symtab): Update. | |
570 | * dtrace-probe.c (dtrace_process_dof) | |
571 | (dtrace_static_probe_ops::get_probes): Update. | |
572 | * complaints.h (struct complaint): Don't declare. | |
573 | (symfile_complaints): Remove. | |
574 | (complaint_internal): Remove "complaints" parameter. | |
575 | (complaint): Likewise. | |
576 | (clear_complaints): Likewise. | |
577 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
578 | (reread_symbols): Update. | |
579 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
580 | (dwarf2_frame_cache, decode_frame_entry): Update. | |
581 | * dwarf2loc.c (dwarf_reg_to_regnum): Update. | |
582 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
583 | (info_selectors_command): Update. | |
584 | * macrotab.c (macro_include, check_for_redefinition) | |
585 | (macro_undef): Update. | |
586 | * objfiles.c (filter_overlapping_sections): Update. | |
587 | * stabsread.c (invalid_cpp_abbrev_complaint) | |
588 | (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) | |
589 | (define_symbol, error_type, read_type, rs6000_builtin_type) | |
590 | (stabs_method_name_from_physname, read_member_functions) | |
591 | (read_cpp_abbrev, read_baseclasses, read_tilde_fields) | |
592 | (attach_fields_to_type, complain_about_struct_wipeout) | |
593 | (read_range_type, read_args, common_block_start) | |
594 | (common_block_end, cleanup_undefined_types_1, scan_file_globals): | |
595 | Update. | |
596 | * mdebugread.c (index_complaint, unknown_ext_complaint) | |
597 | (basic_type_complaint, bad_tag_guess_complaint) | |
598 | (bad_rfd_entry_complaint, unexpected_type_code_complaint) | |
599 | (reg_value_complaint, parse_symbol, parse_type, upgrade_type) | |
600 | (parse_procedure, parse_lines) | |
601 | (function_outside_compilation_unit_complaint) | |
602 | (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) | |
603 | (bad_tag_guess_complaint, reg_value_complaint): Update. | |
604 | * cp-support.c (demangled_name_complaint): Update. | |
605 | * macroscope.c (sal_macro_scope): Update. | |
606 | * dwarf-index-write.c (class debug_names): Update. | |
607 | ||
4e9668d0 TT |
608 | 2018-05-23 Tom Tromey <tom@tromey.com> |
609 | ||
610 | * complaints.c (clear_complaints): Remove "noisy" parameter. | |
611 | * complaints.h (clear_complaints): Update. | |
612 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
613 | (reread_symbols): Update. | |
614 | ||
43ba33c7 TT |
615 | 2018-05-23 Tom Tromey <tom@tromey.com> |
616 | ||
617 | * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, | |
618 | SUBSEQUENT_MESSAGE. | |
619 | (vcomplaint, clear_complaints): Update. | |
620 | (symfile_explanations): Remove some messages. | |
621 | ||
2b9496b2 TT |
622 | 2018-05-23 Tom Tromey <tom@tromey.com> |
623 | ||
624 | * complaints.c (internal_complaint): Remove. | |
625 | * complaints.h (internal_complaint): Remove. | |
626 | ||
35f1fea3 MR |
627 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
628 | ||
629 | * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. | |
630 | ||
6b8edb51 PA |
631 | 2018-05-22 Pedro Alves <palves@redhat.com> |
632 | ||
633 | * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) | |
634 | (remote_fileio_badfd, remote_fileio_return_errno) | |
635 | (remote_fileio_return_success, remote_fileio_func_open) | |
636 | (remote_fileio_func_open, remote_fileio_func_close) | |
637 | (remote_fileio_func_read, remote_fileio_func_write) | |
638 | (remote_fileio_func_lseek, remote_fileio_func_rename) | |
639 | (remote_fileio_func_unlink, remote_fileio_func_stat) | |
640 | (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) | |
641 | (remote_fileio_func_isatty, remote_fileio_func_system): Add | |
642 | remote_target parameter. | |
643 | (remote_fio_func_map) <func>: Add remote_target parameter. | |
644 | (do_remote_fileio_request, remote_fileio_request): | |
645 | * remote-fileio.h (remote_fileio_request): | |
646 | * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add | |
647 | remote_target parameter. | |
648 | (remote_notif_process, handle_notification): Adjust to pass down | |
649 | the remote. | |
650 | (remote_notif_state_allocate): Add remote_target parameter. Save | |
651 | it. | |
652 | * remote-notif.h (struct remote_target): Forward declare. | |
653 | (struct notif_client) <parse, ack, can_get_pending_events>: Add | |
654 | remote_target parameter. | |
655 | (struct remote_notif_state) <remote>: New field. | |
656 | (remote_notif_ack, remote_notif_parse): Add remote_target | |
657 | parameter. | |
658 | (remote_notif_state_allocate, remote_notif_state_allocate): Add | |
659 | remote_target parameter. | |
660 | * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) | |
661 | (threads_listing_context, rmt_thread_action, protocol_feature) | |
662 | (packet_reg, stop_reply, stop_reply_p, enum packet_support) | |
663 | (packet_result, struct threads_listing_context, remote_state): | |
664 | Move definitions and declarations higher up. | |
665 | (remote_target) <~remote_target>: Declare. | |
666 | (remote_download_command_source, remote_file_put, remote_file_get) | |
667 | (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) | |
668 | (remote_hostio_pread_vFile, remote_hostio_send_command) | |
669 | (remote_hostio_set_filesystem, remote_hostio_open) | |
670 | (remote_hostio_close, remote_hostio_unlink, remote_state) | |
671 | (get_remote_state, get_remote_packet_size, get_memory_packet_size) | |
672 | (get_memory_write_packet_size, get_memory_read_packet_size) | |
673 | (append_pending_thread_resumptions, remote_detach_1) | |
674 | (append_resumption, remote_resume_with_vcont) | |
675 | (add_current_inferior_and_thread, wait_ns, wait_as) | |
676 | (process_stop_reply, remote_notice_new_inferior) | |
677 | (process_initial_stop_replies, remote_add_thread) | |
678 | (btrace_sync_conf, remote_btrace_maybe_reopen) | |
679 | (remove_new_fork_children, kill_new_fork_children) | |
680 | (discard_pending_stop_replies, stop_reply_queue_length) | |
681 | (check_pending_events_prevent_wildcard_vcont) | |
682 | (discard_pending_stop_replies_in_queue, stop_reply) | |
683 | (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) | |
684 | (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) | |
685 | (remote_interrupt_as, remote_interrupt_ns) | |
686 | (remote_get_noisy_reply, remote_query_attached) | |
687 | (remote_add_inferior, remote_current_thread, get_current_thread) | |
688 | (set_thread, set_general_thread, set_continue_thread) | |
689 | (set_general_process, write_ptid) | |
690 | (remote_unpack_thread_info_response, remote_get_threadinfo) | |
691 | (parse_threadlist_response, remote_get_threadlist) | |
692 | (remote_threadlist_iterator, remote_get_threads_with_ql) | |
693 | (remote_get_threads_with_qxfer) | |
694 | (remote_get_threads_with_qthreadinfo, extended_remote_restart) | |
695 | (get_offsets, remote_check_symbols, remote_supported_packet) | |
696 | (remote_query_supported, remote_packet_size) | |
697 | (remote_serial_quit_handler, remote_detach_pid) | |
698 | (remote_vcont_probe, remote_resume_with_hc) | |
699 | (send_interrupt_sequence, interrupt_query) | |
700 | (remote_notif_get_pending_events, fetch_register_using_p) | |
701 | (send_g_packet, process_g_packet, fetch_registers_using_g) | |
702 | (store_register_using_P, store_registers_using_G) | |
703 | (set_remote_traceframe, check_binary_download) | |
704 | (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) | |
705 | (remote_xfer_live_readonly_partial, remote_read_bytes) | |
706 | (remote_send_printf, remote_flash_write, readchar) | |
707 | (remote_serial_write, putpkt, putpkt_binary, skip_frame) | |
708 | (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) | |
709 | (getpkt_or_notif_sane, remote_vkill, remote_kill_k) | |
710 | (extended_remote_disable_randomization, extended_remote_run) | |
711 | (send_environment_packet, extended_remote_environment_support) | |
712 | (extended_remote_set_inferior_cwd, remote_write_qxfer) | |
713 | (remote_read_qxfer, push_stop_reply, vcont_r_supported) | |
714 | (packet_command): Now methods of ... | |
715 | (remote_target): ... this class. | |
716 | (m_remote_state) <remote_target>: New field. | |
717 | (struct remote_state) <stop_reply_queue, | |
718 | remote_async_inferior_event_token, wait_forever_enabled_p>: New | |
719 | fields. | |
720 | (remote_state::remote_state): Allocate stop_reply_queue. | |
721 | (remote_state): Delete global. | |
722 | (get_remote_state_raw): Delete. | |
723 | (remote_target::get_remote_state): Allocate m_remote_state on | |
724 | demand. | |
725 | (get_current_remote_target): New. | |
726 | (remote_ops, extended_remote_ops): Delete. | |
727 | (wait_forever_enabled_p, remote_async_inferior_event_token): | |
728 | Delete, moved to struct remote_state. | |
729 | (remote_target::close): Delete self. Destruction bits split to | |
730 | ... | |
731 | (remote_target::~remote_target): ... this. | |
732 | (show_memory_packet_size): Adjust to use | |
733 | get_current_remote_target. | |
734 | (struct protocol_feature) <func>: Add remote_target parameter. | |
735 | All callers adjusted. | |
736 | (curr_quit_handler_target): New. | |
737 | (remote_serial_quit_handler): Reimplement. | |
738 | (remote_target::open_1): Adjust to use get_current_remote_target. | |
739 | Heap-allocate remote_target/extended_remote_target instances. | |
740 | (vcont_builder::vcont_builder): Add remote_target parameter, and | |
741 | save it in m_remote. All callers adjusted. | |
742 | (vcont_builder::m_remote): New field. | |
743 | (vcont_builder::restart, vcont_builder::flush) | |
744 | (vcont_builder::push_action): Use it. | |
745 | (remote_target::commit_resume): Use it. | |
746 | (struct queue_iter_param) <remote>: New field. | |
747 | (remote_target::remove_new_fork_children): Fill in 'remote' field. | |
748 | (check_pending_event_prevents_wildcard_vcont_callback_data): New. | |
749 | (check_pending_event_prevents_wildcard_vcont_callback) | |
750 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
751 | (remote_target::discard_pending_stop_replies) | |
752 | (remote_target::discard_pending_stop_replies_in_queue) | |
753 | (remote_target::remote_notif_remove_queued_reply): Fill in | |
754 | 'remote' field. | |
755 | (remote_notif_get_pending_events): New. | |
756 | (remote_target::readchar, remote_target::remote_serial_write): | |
757 | Save/restore curr_quit_handler_target. | |
758 | (putpkt): New. | |
759 | (kill_new_fork_children): Fill in 'remote' field. | |
760 | (packet_command): Use get_current_remote_target, defer to | |
761 | remote_target method of same name. | |
762 | (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' | |
763 | parameter, and save it in m_remote. All callers adjusted. | |
764 | (scoped_remote_fd::release): Use m_remote. | |
765 | (scoped_remote_fd::m_remote): New field. | |
766 | (remote_file_put, remote_file_get, remote_file_delete): Use | |
767 | get_current_remote_target, defer to remote_target method of same | |
768 | name. | |
769 | (remote_btrace_reset): Add remote_state paremeter. Update all | |
770 | callers. | |
771 | (remote_async_inferior_event_handler). Pass down 'data'. | |
772 | (remote_new_objfile): Use get_current_remote_target. | |
773 | (remote_target::vcont_r_supported): New. | |
774 | (set_range_stepping): Use get_current_remote_target and | |
775 | remote_target::vcont_r_supported. | |
776 | (_initialize_remote): Don't allocate 'remote_state' and | |
777 | 'stop_reply_queue' globals. | |
778 | * remote.h (struct remote_target): Forward declare. | |
779 | (getpkt, putpkt, remote_notif_get_pending_events): Add | |
780 | 'remote_target' parameter. | |
781 | ||
f5db4863 PA |
782 | 2018-05-22 Pedro Alves <palves@redhat.com> |
783 | ||
784 | * remote.c (vcont_builder): Now a class. Make all data members | |
785 | private. | |
786 | (vcont_builder) <vcont_builder, restart, flush, push_action>: | |
787 | Declare methods. | |
788 | (vcont_builder_restart): Rename to ... | |
789 | (vcont_builder::restart): ... this. | |
790 | (vcont_builder_flush): Rename to ... | |
791 | (vcont_builder::flush): ... this. | |
792 | (vcont_builder_push_action): Rename to ... | |
793 | (vcont_builder::push_action): ... this. | |
794 | (remote_target::commit_resume): Adjust. | |
795 | ||
cc0be08f PA |
796 | 2018-05-22 Pedro Alves <palves@redhat.com> |
797 | ||
798 | * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... | |
799 | (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. | |
800 | (get_fixed_memory_packet_size): New. | |
801 | (get_memory_packet_size): Use it. | |
802 | (set_memory_packet_size): Don't override the config size with | |
803 | DEFAULT_MAX_MEMORY_PACKET_SIZE. | |
804 | (show_memory_packet_size): Use get_fixed_memory_packet_size. | |
805 | Don't refer to get_memory_packet_size if not connected to a remote | |
806 | target. Show "(default)" if configured size is 0. | |
807 | ||
9607784a PA |
808 | 2018-05-22 Pedro Alves <palves@redhat.com> |
809 | ||
810 | * remote.c (remote_target::mourn_inferior): Move | |
811 | discard_pending_stop_replies call here from ... | |
812 | (_initialize_remote): ... here. | |
813 | ||
0e9a6b2f PA |
814 | 2018-05-22 Pedro Alves <palves@redhat.com> |
815 | ||
816 | * remote.c (compare_section_command): Remove set_general_process | |
817 | call. | |
818 | ||
43c3a0e4 PA |
819 | 2018-05-22 Pedro Alves <palves@redhat.com> |
820 | ||
821 | * remote.c (struct packet_reg, struct remote_arch_state): | |
822 | Move higher up in the file. | |
823 | (remote_state) <m_arch_states>: Store remote_arch_state values | |
824 | instead of remote_arch_state pointers. | |
825 | (remote_state::get_remote_arch_state): Adjust. | |
826 | ||
9d6eea31 PA |
827 | 2018-05-22 Pedro Alves <palves@redhat.com> |
828 | ||
829 | * remote.c: Include <unordered_map>. | |
830 | (remote_state): Now a class. | |
831 | (remote_state) <get_remote_arch_state>: Declare method. | |
832 | <get_remote_arch_state>: New field. | |
833 | (remote_arch_state) <remote_arch_state>: Declare ctor. | |
834 | <regs>: Now a unique_ptr. | |
835 | (remote_gdbarch_data_handle): Delete. | |
836 | (get_remote_arch_state): Delete. | |
837 | (remote_state::get_remote_arch_state): New. | |
838 | (get_remote_state): Adjust to call remote_state's | |
839 | get_remote_arch_state method. | |
840 | (init_remote_state): Delete, bits factored out to ... | |
841 | (remote_arch_state::remote_arch_state): ... this new method. | |
842 | (get_remote_packet_size, get_memory_packet_size) | |
843 | (process_g_packet, remote_target::fetch_registers) | |
844 | (remote_target::prepare_to_store, store_registers_using_G) | |
845 | (remote_target::store_registers, remote_target::get_trace_status): | |
846 | Adjust to call remote_state's method. | |
847 | (_initialize_remote): Remove reference to | |
848 | remote_gdbarch_data_handle. | |
849 | ||
dd194f6b PA |
850 | 2018-05-22 Pedro Alves <palves@redhat.com> |
851 | ||
852 | * remote.c (struct readahead_cache) <invalidate, invalidate_fd, | |
853 | pread>: New method declarations. | |
854 | (remote_target::open_1): Adjust. | |
855 | (readahead_cache_invalidate): Rename to ... | |
856 | (readahead_cache::invalidate): ... this, and adjust to be a class | |
857 | method. | |
858 | (readahead_cache_invalidate_fd): Rename to ... | |
859 | (readahead_cache::invalidate_fd): ... this, and adjust to be a | |
860 | class method. | |
861 | (remote_hostio_pwrite): Adjust. | |
862 | (remote_hostio_pread_from_cache): Rename to ... | |
863 | (readahead_cache::pread): ... this, and adjust to be a class | |
864 | method. | |
865 | (remote_hostio_close): Adjust. | |
866 | ||
440b7aec PA |
867 | 2018-05-22 Pedro Alves <palves@redhat.com> |
868 | ||
869 | * remote.c (remote_hostio_close_cleanup): Delete. | |
870 | (class scoped_remote_fd): New. | |
871 | (remote_file_put, remote_file_get): Use it. | |
872 | ||
de44f5a7 PA |
873 | 2018-05-22 Pedro Alves <palves@redhat.com> |
874 | ||
875 | (struct vCont_action_support): Use bool and initialize all fields. | |
876 | (struct readahead_cache): Initialize all fields. | |
877 | (remote_state): Use bool and initialize all fields. | |
878 | (remote_state::remote_state, remote_state::~remote_state): New. | |
879 | (new_remote_state): Delete. | |
880 | (_initialize_remote): Use new to allocate remote_state. | |
881 | ||
b1b60145 PA |
882 | 2018-05-22 Pedro Alves <palves@redhat.com> |
883 | 張俊芝 <zjz@zjz.name> | |
884 | ||
885 | PR gdb/22973 | |
886 | * c-exp.y: Include "c-support.h". | |
887 | (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead | |
888 | of tolower. Use c_ident_is_alpha to scan names. | |
889 | * c-lang.c: Include "c-support.h". | |
890 | (convert_ucn, convert_octal, convert_hex, convert_escape): Use | |
891 | ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. | |
892 | * c-support.h: New file, with bits factored out from ... | |
893 | * cp-name-parser.y: ... this file. | |
894 | Include "c-support.h". | |
895 | (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to | |
896 | c-support.h and renamed. | |
897 | (symbol_end, yylex): Adjust. | |
898 | ||
0ec848ad PFC |
899 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
900 | ||
901 | * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the | |
902 | parameter type to CORE_ADDR. | |
903 | * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the | |
904 | parameter type in declaration to CORE_ADDR. | |
905 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Call | |
906 | target_auxv_search to get AT_HWCAP and use the result to get the | |
907 | target description. | |
908 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type | |
909 | to CORE_ADDR. Remove the cast of the return value to unsigned | |
910 | long. Fix error predicate of target_auxv_search. | |
911 | (ppc_linux_nat_target::read_description): Change the type of the | |
912 | hwcap variable to CORE_ADDR. | |
913 | ||
0fb2aaa1 PFC |
914 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
915 | ||
916 | * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only | |
917 | if the size of fpscr is larger than 32 bits. | |
918 | ||
2c3305f6 PFC |
919 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
920 | ||
921 | * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. | |
922 | (ppc32_linux_vsxregmap): New global. | |
923 | (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, | |
924 | regcache_supply_regset, and regcache_collect_regset. | |
925 | * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. | |
926 | * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. | |
927 | (fetch_vsx_register, store_vsx_register): Remove. | |
928 | (fetch_vsx_registers): Add regno parameter. Get regset using | |
929 | ppc_linux_vsxregset. Use regset to supply registers. | |
930 | (store_vsx_registers): Add regno parameter. Get regset using | |
931 | ppc_linux_vsxregset. Use regset to collect registers. | |
932 | (fetch_register): Call fetch_vsx_registers instead of | |
933 | fetch_vsx_register. | |
934 | (store_register): Call store_vsx_registers instead of | |
935 | store_vsx_register. | |
936 | (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the | |
937 | new regno parameter. | |
938 | (store_ppc_registers): Call store_vsx_registers with -1 for the | |
939 | new regno parameter. | |
940 | * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) | |
941 | (ppc_collect_vsxregset): Remove. | |
942 | ||
1d75a658 PFC |
943 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
944 | ||
945 | * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register | |
946 | offset fields. | |
947 | * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers | |
948 | for vector register offset fields. | |
949 | (ppc64_fbsd_reg_offsets): Likewise. | |
950 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
951 | to vector register offset fields. | |
952 | * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
953 | to vector register offset fields. | |
954 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to | |
955 | vector register offset fields. | |
956 | * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove | |
957 | initializers for vector register offset fields. | |
958 | (rs6000_aix64_reg_offsets): Likewise. | |
959 | * rs6000-tdep.c (ppc_vrreg_offset): Remove. | |
960 | (ppc_supply_vrregset): Remove. | |
961 | (ppc_collect_vrregset): Remove. | |
962 | * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. | |
963 | (ppc_linux_vrregset) : New function. | |
964 | (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) | |
965 | (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. | |
966 | (ppc32_linux_vrregset): Remove. | |
967 | (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset | |
968 | and use result instead of ppc32_linux_vrregset. | |
969 | (ppc32_linux_reg_offsets): Remove initializers for vector register | |
970 | offset fields. | |
971 | (ppc64_linux_reg_offsets): Likewise. | |
972 | * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. | |
973 | * ppc-linux-nat.c: Include regset.h. | |
974 | (gdb_vrregset_t): Adjust comment to account for little-endian | |
975 | mode. | |
976 | (supply_vrregset, fill_vrregset): Remove. | |
977 | (fetch_altivec_register, store_altivec_register): Remove. | |
978 | (fetch_altivec_registers): Add regno parameter. Get regset using | |
979 | ppc_linux_vrregset. Use regset to supply registers. | |
980 | (store_altivec_registers): Add regno parameter. Get regset using | |
981 | ppc_linux_vrregset. Use regset to collect registers. | |
982 | (fetch_register): Call fetch_altivec_registers instead of | |
983 | fetch_altivec_register. | |
984 | (store_register): Call store_altivec_registers instead of | |
985 | store_altivec_register. | |
986 | (fetch_ppc_registers): Call fetch_altivec_registers with -1 for | |
987 | the new regno parameter. | |
988 | (store_ppc_registers): Call store_altivec_registers with -1 for | |
989 | the new regno parameter. | |
990 | ||
d078308a PFC |
991 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
992 | ||
993 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) | |
994 | (PPC_LINUX_SIZEOF_VSXREGSET): Define. | |
995 | * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
996 | (gdb_vrregset_t): Change array type size to | |
997 | PPC_LINUX_SIZEOF_VRREGSET. | |
998 | (gdb_vsxregset_t): Change array type size to | |
999 | PPC_LINUX_SIZEOF_VSXREGSET. | |
1000 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): | |
1001 | Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and | |
1002 | PPC_LINUX_SIZEOF_VSXREGSET. | |
1003 | ||
2e077f5e PFC |
1004 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
1005 | ||
1006 | * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. | |
1007 | * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to | |
1008 | nat/ppc-linux.c. | |
1009 | (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call | |
1010 | ppc_linux_target_wordsize with tid. | |
1011 | (ppc_linux_nat_target::read_description): Call ppc_linux_target | |
1012 | wordsize with tid. | |
1013 | * nat/ppc-linux.c: Include nat/gdb_ptrace.h. | |
1014 | (ppc64_64bit_inferior_p): Add static and inline specifiers. | |
1015 | (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add | |
1016 | tid parameter. Remove static specifier. | |
1017 | * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. | |
1018 | (ppc_linux_target_wordsize): New declaration. | |
1019 | ||
bd64614e PFC |
1020 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
1021 | ||
1022 | * arch/ppc-linux-common.c: New file. | |
1023 | * arch/ppc-linux-common.h: New file. | |
1024 | * arch/ppc-linux-tdesc.h: New file. | |
1025 | * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. | |
1026 | * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. | |
1027 | (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and | |
1028 | arch/ppc-linux-tdesc.h. | |
1029 | * ppc-linux-nat.c: Include arch/ppc-linux-common.h and | |
1030 | arch/ppc-linux-tdesc.h. | |
1031 | (ppc_linux_nat_target::read_description): Remove target | |
1032 | description matching code. Fill a ppc_linux_features struct and | |
1033 | call ppc_linux_match_description with it. Move comment about ISA | |
1034 | 2.05 to ppc-linux-common.c. | |
1035 | * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and | |
1036 | arch/ppc-linux-tdesc.h. | |
1037 | (ppc_linux_core_read_description): Remove target description | |
1038 | matching code. Fill a ppc_linux_features struct and call | |
1039 | ppc_linux_match_description with it. | |
1040 | * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
1041 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
1042 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
1043 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
1044 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
1045 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
1046 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
1047 | (tdesc_powerpc_e500l): Remove. | |
1048 | ||
241db429 JB |
1049 | 2018-05-22 Joel Brobecker <brobecker@adacore.com> |
1050 | ||
1051 | * ada-lang.c (catch_assert_command): Pass empty string instead | |
1052 | of NULL for excep_string argument. | |
1053 | ||
75d74cca MR |
1054 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
1055 | ||
1056 | * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if | |
1057 | the width of the requested register exceeds the width of the | |
1058 | `ptrace' data type. | |
1059 | ||
122b53ea TT |
1060 | 2018-05-21 Tom Tromey <tom@tromey.com> |
1061 | ||
1062 | * printcmd.c (output_command): Remove. | |
1063 | (output_command_const): Rename to output_command. | |
1064 | * valprint.h (output_command): Rename from output_command_const. | |
1065 | * tracepoint.c (trace_dump_actions): Call output_command. | |
1066 | ||
bc18fbb5 TT |
1067 | 2018-05-21 Tom Tromey <tom@tromey.com> |
1068 | ||
1069 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
1070 | (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. | |
1071 | * ada-lang.h (create_ada_exception_catchpoint): Update. | |
1072 | * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a | |
1073 | std::string. | |
1074 | (create_excep_cond_exprs, ~ada_catchpoint) | |
1075 | (should_stop_exception, print_one_exception) | |
1076 | (print_mention_exception, print_recreate_exception): Update. | |
1077 | (ada_get_next_arg): Remove. | |
1078 | (catch_ada_exception_command_split): Use std::string. Change type | |
1079 | of "excep_string", "cond_string". | |
1080 | (catch_ada_exception_command): Update. | |
1081 | (create_ada_exception_catchpoint): Change type of excep_string. | |
1082 | (ada_exception_sal): Remove excep_string parameter. | |
1083 | (~ada_catchpoint): Remove. | |
1084 | ||
790217f6 TT |
1085 | 2018-05-21 Tom Tromey <tom@tromey.com> |
1086 | ||
1087 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
1088 | cleanup. | |
1089 | ||
6f46ac85 TT |
1090 | 2018-05-21 Tom Tromey <tom@tromey.com> |
1091 | ||
1092 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
1093 | Return unique_xmalloc_ptr. | |
1094 | (print_it_exception): Update. | |
1095 | ||
15b6611c TT |
1096 | 2018-05-21 Tom Tromey <tom@tromey.com> |
1097 | ||
1098 | * tracepoint.c (trace_dump_actions): Use std::string. | |
1099 | ||
c0c9f665 TT |
1100 | 2018-05-21 Tom Tromey <tom@tromey.com> |
1101 | ||
1102 | * symfile.c (reread_symbols): Use std::string for original_name. | |
1103 | ||
22ca247e TT |
1104 | 2018-05-21 Tom Tromey <tom@tromey.com> |
1105 | ||
1106 | * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. | |
1107 | (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default | |
1108 | constructor. | |
1109 | ||
184cde75 SM |
1110 | 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca> |
1111 | ||
1112 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong | |
1113 | instance to... | |
1114 | (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. | |
1115 | * objfiles.c (get_objfile_bfd_data): Allocate | |
1116 | objfile_per_bfd_storage with obstack_new when allocating on | |
1117 | obstack. | |
1118 | ||
e39db4db SM |
1119 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
1120 | ||
1121 | * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or | |
1122 | OBSTACK_ZALLOC. | |
1123 | * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. | |
1124 | * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. | |
1125 | * mdebugread.c (mdebug_build_psymtabs): Likewise. | |
1126 | (add_pending): Likewise. | |
1127 | (parse_symbol): Likewise. | |
1128 | (parse_partial_symbols): Likewise. | |
1129 | (psymtab_to_symtab_1): Likewise. | |
1130 | (new_psymtab): Likewise. | |
1131 | (elfmdebug_build_psymtabs): Likewise. | |
1132 | * minsyms.c (terminate_minimal_symbol_table): Likewise. | |
1133 | * objfiles.c (get_objfile_bfd_data): Likewise. | |
1134 | (objfile_register_static_link): Likewise. | |
1135 | * psymtab.c (allocate_psymtab): Likewise. | |
1136 | * stabsread.c (read_member_functions): Likewise. | |
1137 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
1138 | ||
284a0e3c SM |
1139 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
1140 | ||
1141 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if | |
1142 | compiler supports std::is_trivially_constructible. | |
1143 | * common/poison.h: Include obstack.h. | |
1144 | (IsMallocable): Define to is_trivially_constructible if the | |
1145 | compiler supports it, define to true_type otherwise. | |
1146 | (xobnew): New. | |
1147 | (XOBNEW): Redefine. | |
1148 | (xobnewvec): New. | |
1149 | (XOBNEWVEC): Redefine. | |
1150 | * gdb_obstack.h (obstack_zalloc): New. | |
1151 | (OBSTACK_ZALLOC): Redefine. | |
1152 | (obstack_calloc): New. | |
1153 | (OBSTACK_CALLOC): Redefine. | |
1154 | (obstack_new): New. | |
1155 | * gdbarch.sh: Include gdb_obstack in gdbarch.h. | |
1156 | (gdbarch_obstack): New declaration in gdbarch.h, definition in | |
1157 | gdbarch.c. | |
1158 | (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use | |
1159 | obstack_calloc/obstack_zalloc. | |
1160 | (gdbarch_obstack_zalloc): Remove. | |
1161 | * target-descriptions.c (tdesc_data_init): Use obstack_new. | |
1162 | ||
59f66be3 PW |
1163 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1164 | ||
1165 | * stack.c (backtrace_command_1): Remove useless variable int i. | |
1166 | ||
50c65c2d PW |
1167 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1168 | ||
1169 | * stack.c (print_frame_info): Fix comment. | |
1170 | ||
7ff8cb8c TT |
1171 | 2018-05-18 Tom Tromey <tom@tromey.com> |
1172 | ||
1173 | * dwarf2read.c (struct dwz_file): Add constructor, initializers. | |
1174 | <dwz_bfd>: Now a gdb_bfd_ref_ptr. | |
1175 | (~dwarf2_per_objfile): Update | |
1176 | (dwarf2_get_dwz_file): Use new. | |
1177 | * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a | |
1178 | unique_ptr. | |
1179 | ||
400174b1 TT |
1180 | 2018-05-18 Tom Tromey <tom@tromey.com> |
1181 | ||
1182 | * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a | |
1183 | unique_ptr. | |
1184 | * dwarf2read.c (struct dwp_file): Add constructor and | |
1185 | initializers. | |
1186 | (open_and_init_dwp_file): Return a unique_ptr. | |
1187 | (dwarf2_per_objfile, create_dwp_hash_table) | |
1188 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) | |
1189 | (lookup_dwo_unit_in_dwp): Update. | |
1190 | (open_and_init_dwp_file, get_dwp_file): Update. | |
1191 | ||
3063847f TT |
1192 | 2018-05-18 Tom Tromey <tom@tromey.com> |
1193 | ||
1194 | * dwarf2read.c (dwarf2_per_objfile): Update. | |
1195 | (struct mapped_index): Add initializers. | |
1196 | (dwarf2_read_index): Use new. | |
1197 | (dw2_symtab_iter_init): Update. | |
1198 | * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a | |
1199 | unique_ptr. | |
1200 | ||
d3d02dee SM |
1201 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
1202 | ||
1203 | * dwarf2read.c (mapped_index) <total_size>: Remove. | |
1204 | ||
1d143c36 SM |
1205 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
1206 | ||
1207 | * unittests/format_pieces-selftests.c (test_format_specifier): | |
1208 | Add ARI comments. | |
1209 | ||
ce1e8424 TT |
1210 | 2018-05-18 Tom Tromey <tom@tromey.com> |
1211 | ||
1212 | * c-typeprint.c (maybe_print_hole): New function. | |
1213 | (c_print_type_struct_field_offset): Update. | |
1214 | (c_type_print_base_struct_union): Call maybe_print_hole. | |
1215 | ||
ddfe970e KS |
1216 | 2018-05-17 Keith Seitz <keiths@redhat.com> |
1217 | ||
1218 | * breakpoint.c (build_bpstat_chain): New function, moved from | |
1219 | bpstat_stop_status. | |
1220 | (bpstat_stop_status): Add optional parameter, `stop_chain'. | |
1221 | If no stop chain is passed, call build_bpstat_chain to build it. | |
1222 | * breakpoint.h (build_bpstat_chain): Declare. | |
1223 | (bpstat_stop_status): Move documentation here from breakpoint.c. | |
1224 | * infrun.c (handle_signal_stop): Before eliding inlined frames, | |
1225 | build the stop chain and pass it to skip_inline_frames. | |
1226 | Pass this stop chain to bpstat_stop_status. | |
1227 | * inline-frame.c: Include breakpoint.h. | |
1228 | (stopped_by_user_bp_inline_frame): New function. | |
1229 | (skip_inline_frames): Add parameter `stop_chain'. | |
1230 | Move documention to inline-frame.h. | |
1231 | If non-NULL, use stopped_by_user_bp_inline_frame to determine | |
1232 | whether the frame should be elided. | |
1233 | * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. | |
1234 | Add moved documentation and update for new parameter. | |
1235 | ||
b17992c1 SM |
1236 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
1237 | ||
1238 | PR cli/14975 | |
1239 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1240 | unittests/format_pieces-selftests.c. | |
1241 | * common/format.h (format_piece) <operator==>: New. | |
1242 | (format_pieces) <operator[]>: Remove. | |
1243 | * common/format.c (format_pieces::format_pieces): Handle \e. | |
1244 | * unittests/format_pieces-selftests.c: New. | |
1245 | ||
58f0c718 TT |
1246 | 2018-05-17 Tom Tromey <tom@tromey.com> |
1247 | ||
1248 | PR symtab/23010: | |
1249 | * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) | |
1250 | (dw2_instantiate_symtab): Add skip_partial parameter. | |
1251 | (dw2_find_last_source_symtab, dw2_map_expand_apply) | |
1252 | (dw2_lookup_symbol, dw2_expand_symtabs_for_function) | |
1253 | (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) | |
1254 | (dw2_expand_symtabs_matching_one) | |
1255 | (dw2_find_pc_sect_compunit_symtab) | |
1256 | (dw2_debug_names_lookup_symbol) | |
1257 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
1258 | (init_cutu_and_read_dies): Add skip_partial parameter. | |
1259 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
1260 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
1261 | (psymtab_to_symtab_1): Update. | |
1262 | (load_full_comp_unit): Add skip_partial parameter. | |
1263 | (process_imported_unit_die, dwarf2_read_addr_index) | |
1264 | (follow_die_offset, dwarf2_fetch_die_loc_sect_off) | |
1265 | (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) | |
1266 | (read_signatured_type): Update. | |
1267 | ||
3e618834 SM |
1268 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
1269 | ||
1270 | * value.c (release_value): Remove unused variable. | |
1271 | (record_latest_value): Likewise. | |
1272 | (access_value_history): Likewise. | |
1273 | (preserve_values): Likewise. | |
1274 | ||
fe10fe31 TT |
1275 | 2018-05-17 Tom Tromey <tom@tromey.com> |
1276 | ||
1277 | * extension.h (struct ext_lang_type_printers) <py_type_printers>: | |
1278 | Initialize. | |
1279 | ||
1d761124 MR |
1280 | 2018-05-16 Maciej W. Rozycki <macro@mips.com> |
1281 | ||
1282 | PR gdb/22286 | |
1283 | * linux-nat-trad.c (linux_nat_trad_target::fetch_register): | |
1284 | Also handle registers whose width is not a multiple of | |
1285 | PTRACE_TYPE_RET. | |
1286 | (linux_nat_trad_target::store_register): Likewise. | |
1287 | ||
06333fea TT |
1288 | 2018-05-16 Tom Tromey <tom@tromey.com> |
1289 | ||
1290 | * gdbcore.h (core_bfd): Redefine. | |
1291 | * corelow.c (core_target::close): Update. | |
1292 | (core_target_open): Update. | |
1293 | * progspace.h (struct program_space) <cbfd>: Now a | |
1294 | gdb_bfd_ref_ptr. | |
1295 | ||
921222e2 TT |
1296 | 2018-05-16 Tom Tromey <tom@tromey.com> |
1297 | ||
1298 | PR cli/19551: | |
1299 | * symfile-add-flags.h (enum symfile_add_flags) | |
1300 | <SYMFILE_NOT_FILENAME>: New constant. | |
1301 | * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get | |
1302 | objfile name from BFD. | |
1303 | (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. | |
1304 | * minidebug.c (find_separate_debug_file_in_section): Put | |
1305 | ".gnu_debugdata" into BFD's file name. | |
1306 | ||
3acb7083 SM |
1307 | 2018-05-16 Simon Marchi <simon.marchi@ericsson.com> |
1308 | ||
1309 | * regcache.c (regcache_read_ftype, regcache_write_ftype): | |
1310 | Remove. | |
1311 | ||
561a72d4 TC |
1312 | 2018-05-15 Tamar Christina <tamar.christina@arm.com> |
1313 | ||
1314 | PR binutils/21446 | |
1315 | * aarch64-tdep.c (aarch64_analyze_prologue, | |
1316 | aarch64_software_single_step, aarch64_displaced_step_copy_insn): | |
1317 | Indicate not interested in errors. | |
1318 | ||
4e6ff0e1 MR |
1319 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
1320 | ||
1321 | * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): | |
1322 | Supply the MIPS_ZERO_REGNUM register. | |
1323 | ||
ea33cd92 MR |
1324 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
1325 | ||
1326 | * mips-tdep.c (mask_address_var): Make variable static. | |
1327 | ||
2d79090e TT |
1328 | 2018-05-14 Tom Tromey <tom@tromey.com> |
1329 | ||
1330 | * dwarf2read.c (rust_union_quirks): Clear rust_unions. | |
1331 | ||
cf4912ae AB |
1332 | 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com> |
1333 | ||
1334 | * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not | |
1335 | FXSAVE_ADDR for the mxcsr register. | |
1336 | ||
67e6f569 MF |
1337 | 2018-05-11 Max Filippov <jcmvbkbc@gmail.com> |
1338 | ||
1339 | * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. | |
1340 | ||
15244507 PA |
1341 | 2018-05-11 Pedro Alves <palves@redhat.com> |
1342 | ||
1343 | * corelow.c (core_target) <core_target>: No longer inline. | |
1344 | Initialize m_core_gdbarch, m_core_vec and build the section table | |
1345 | here. | |
1346 | <~core_target>: New. | |
1347 | <core_gdbarch, get_core_register_section>: New methods. | |
1348 | <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, | |
1349 | factored out from ... | |
1350 | <core_data, core_vec, core_gdbarch>: ... these deleted globals. | |
1351 | (core_ops): Delete. | |
1352 | (sniff_core_bfd): Add gdbarch parameter. | |
1353 | (core_close): Delete, merged into ... | |
1354 | (core_target::close): ... here. Delete self. | |
1355 | (core_close_cleanup): Delete. | |
1356 | (core_target_open): Allocate a core_target on the heap. Use a | |
1357 | unique_ptr instead of a cleanup. Bits moved into the core_target | |
1358 | ctor. Adjust to use core_target methods instead of globals. | |
1359 | (get_core_register_section): Rename to ... | |
1360 | (core_target::get_core_register_section): ... this and adjust. | |
1361 | (struct get_core_registers_cb_data): New. | |
1362 | (get_core_registers_cb): Use it. Use bool. | |
1363 | (core_target::fetch_registers, core_target::files_info) | |
1364 | (core_target::xfer_partial, core_target::read_description) | |
1365 | (core_target::pid_to, core_target::thread_name): Adjust to | |
1366 | reference class fields instead of globals. | |
1367 | * target.h (struct target_ops_deleter, target_ops_up): New. | |
1368 | ||
451953fa PA |
1369 | 2018-05-11 Pedro Alves <palves@redhat.com> |
1370 | ||
1371 | * corefile.c (core_file_command): Move to corelow.c. | |
1372 | * corelow.c (the_core_target): Delete. | |
1373 | (core_file_command): Moved from corefile.c. Check exec_bfd | |
1374 | instead of the_core_target. Use target_detach instead of calling | |
1375 | into the_core_target directly. | |
1376 | (maybe_say_no_core_file_now): New. | |
1377 | (core_target::detach): Use it. | |
1378 | (_initialize_corelow): Remove references to the_core_target. | |
1379 | * gdbcore.h (the_core_target): Delete. | |
1380 | ||
e540a5a2 | 1381 | 2018-05-11 Tom Tromey <tromey@redhat.com> |
3afc23a6 | 1382 | Pedro Alves <palves@redhat.com> |
e540a5a2 TT |
1383 | |
1384 | * corefile.c (core_bfd): Remove. | |
1385 | * gdbcore.h (core_bfd): Now a macro. | |
1386 | * progspace.h (struct program_space) <cbfd>: New field. | |
1387 | ||
633cf254 TT |
1388 | 2018-05-11 Tom Tromey <tom@tromey.com> |
1389 | ||
1390 | * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use | |
1391 | gdb::def_vector. | |
1392 | ||
1a34f210 TT |
1393 | 2018-05-10 Tom Tromey <tom@tromey.com> |
1394 | ||
1395 | * configure: Rebuild. | |
1396 | * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. | |
1397 | ||
190852c8 JB |
1398 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
1399 | ||
1400 | PR server/23158: | |
1401 | * regformats/regdat.sh: Adjust script, following the addition | |
1402 | of the new expedite_regs parameter to init_target_desc. | |
1403 | ||
8727de56 OJ |
1404 | 2018-05-10 Omair Javaid <omair.javaid@linaro.org> |
1405 | ||
1406 | PR gdb/23127 | |
1407 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to | |
1408 | set_gdbarch_significant_addr_bit. | |
1409 | * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to | |
1410 | set_gdbarch_significant_addr_bit. | |
1411 | * utils.c (address_significant): Update to sign extend addr. | |
1412 | ||
37d9e062 MF |
1413 | 2018-05-09 Max Filippov <jcmvbkbc@gmail.com> |
1414 | ||
1415 | * xtensa-linux-tdep.c (xtensa-tdep.h): New include. | |
1416 | (xtensa_linux_init_abi): Limit tdep->num_regs by | |
1417 | tdep->num_nopriv_regs. | |
1418 | * xtensa-tdep.c (xtensa_derive_tdep): Calculate | |
1419 | tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's | |
1420 | not initialized. | |
1421 | ||
7402fbca SM |
1422 | 2018-05-08 Simon Marchi <simon.marchi@ericsson.com> |
1423 | ||
1424 | * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. | |
1425 | ||
8ee22052 AB |
1426 | 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1427 | ||
1428 | * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. | |
1429 | (I387_MXCSR_INIT_VAL): New constant. | |
1430 | * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave | |
1431 | buffer if it was supplied by the inferior. | |
1432 | * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. | |
1433 | (i387_xsave_get_clear_bv): New function. | |
1434 | (i387_supply_xsave): Only read x87 control registers from the | |
1435 | xsave buffer if the feature is enabled, and the state will have | |
1436 | been written, otherwise, provide a suitable default. | |
1437 | (i387_collect_xsave): Pre-clear all registers in xsave buffer, | |
1438 | including x87 control registers. Update control registers if they | |
1439 | have changed from the default value, and mark features as enabled | |
1440 | as required. | |
1441 | * i387-tdep.h (i387_xsave_get_clear_bv): Declare. | |
1442 | ||
968ae51b UW |
1443 | 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
1444 | ||
1445 | * spu-tdep.c (info_spu_event_command): Fix output formatting. | |
1446 | ||
aff689d3 TT |
1447 | 2018-05-07 Tom Tromey <tom@tromey.com> |
1448 | ||
1449 | * configure: Rebuild. | |
1450 | * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. | |
1451 | ||
ce887586 TT |
1452 | 2018-05-07 Tom Tromey <tom@tromey.com> |
1453 | ||
1454 | PR tdep/20362: | |
1455 | * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D | |
1456 | bit. Use correct value for VDIV. | |
1457 | ||
85e26832 TT |
1458 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1459 | ||
1460 | * configure: Rebuild. | |
1461 | * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. | |
1462 | ||
449b1ac7 TT |
1463 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1464 | ||
1465 | * linux-record.c (record_linux_system_call) <case | |
1466 | RECORD_SYS_RECVFROM>: Add "break". | |
1467 | ||
15c9ffd6 TT |
1468 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1469 | ||
1470 | * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: | |
1471 | Add missing "break". | |
1472 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: | |
1473 | Add missing "break". | |
1474 | ||
e3829d13 TT |
1475 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1476 | ||
1477 | * rs6000-tdep.c (ppc_process_record_op4) | |
1478 | (ppc_process_record_op63): Add fall-through comment. | |
1479 | ||
da0e1563 TT |
1480 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1481 | ||
1482 | * i386-tdep.c (i386_process_record): Add fall-through comment. | |
1483 | ||
0019cd49 TT |
1484 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1485 | ||
1486 | * stabsread.c (define_symbol) <case 'p'>: Add fall-through | |
1487 | comment. | |
1488 | ||
565e0eda TT |
1489 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1490 | ||
1491 | * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. | |
1492 | * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. | |
1493 | * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through | |
1494 | comment. | |
1495 | * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through | |
1496 | comment. | |
1497 | * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through | |
1498 | comment. | |
1499 | ||
621846f4 TT |
1500 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1501 | ||
1502 | * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. | |
1503 | ||
86a73007 TT |
1504 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1505 | ||
1506 | * s390-tdep.c (s390_process_record): Fix fall-through comments. | |
1507 | * xcoffread.c (scan_xcoff_symtab): Move comment later. | |
1508 | * symfile.c (section_is_mapped): Fix fall-through comment. | |
1509 | * stabsread.c (define_symbol, read_member_functions): Fix | |
1510 | fall-through comment. | |
1511 | * s390-linux-tdep.c (s390_process_record): Fix fall-through | |
1512 | comment. | |
1513 | * remote.c (remote_wait_as): Fix fall-through comment. | |
1514 | * p-exp.y (yylex): Fix fall-through comment. | |
1515 | * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through | |
1516 | comment. | |
1517 | * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. | |
1518 | * mdebugread.c (parse_partial_symbols): Fix fall-through comment. | |
1519 | * jv-exp.y (yylex): Fix fall-through comment. | |
1520 | * go-exp.y (lex_one_token): Fix fall-through comment. | |
1521 | * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix | |
1522 | fall-through comment. | |
1523 | * f-exp.y (yylex): Fix fall-through comment. | |
1524 | * dwarf2read.c (process_die): Fix fall-through comments. | |
1525 | * dbxread.c (process_one_symbol): Fix fall-through comment. | |
1526 | * d-exp.y (lex_one_token): Fix fall-through comment. | |
1527 | * cp-name-parser.y (yylex): Fix fall-through comment. | |
1528 | * coffread.c (coff_symtab_read): Fix fall-through comment. | |
1529 | * c-exp.y (lex_one_token): Fix fall-through comment. | |
1530 | * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through | |
1531 | comment. | |
1532 | * arch/arm.c (arm_instruction_changes_pc): Fix fall-through | |
1533 | comment. | |
1534 | ||
56bcdbea TT |
1535 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1536 | ||
1537 | PR python/22730: | |
1538 | * NEWS: Mention gdb.execute change. | |
1539 | * gdbcmd.h (execute_control_command): Don't declare. | |
1540 | * python/python.c (execute_gdb_command): Use read_command_lines_1, | |
1541 | execute_control_commands, execute_control_commands_to_string. | |
1542 | * cli/cli-script.h (execute_control_commands) | |
1543 | (execute_control_commands_to_string): Declare. | |
1544 | (execute_control_command): Add from_tty parameter. | |
1545 | * cli/cli-script.c (execute_control_commands) | |
1546 | (execute_control_commands_to_string): New functions. | |
1547 | (execute_user_command): Use execute_control_commands. | |
1548 | (execute_control_command_1): Add "from_tty" parameter. Update. | |
1549 | (execute_control_command): Likewise. | |
1550 | ||
a913fffb TT |
1551 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1552 | ||
1553 | PR python/22731: | |
1554 | * NEWS: Mention that breakpoint commands are writable. | |
1555 | * python/py-breakpoint.c (bppy_set_commands): New function. | |
1556 | (breakpoint_object_getset) <"commands">: Use it. | |
1557 | ||
60b3cef2 TT |
1558 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1559 | ||
1560 | * tracepoint.c (actions_command): Update. | |
1561 | * mi/mi-cmd-break.c (mi_command_line_array) | |
1562 | (mi_command_line_array_cnt, mi_command_line_array_ptr) | |
1563 | (mi_read_next_line): Remove. | |
1564 | (mi_cmd_break_commands): Update. | |
1565 | * cli/cli-script.h (read_command_lines, read_command_lines_1): Use | |
1566 | function_view. | |
1567 | * cli/cli-script.c (get_command_line): Update. | |
1568 | (process_next_line): Use function_view. Constify. | |
1569 | (recurse_read_control_structure, read_command_lines) | |
1570 | (read_command_lines_1): Change argument types to function_view. | |
1571 | (do_define_command, document_command): Update. | |
1572 | * breakpoint.h (check_tracepoint_command): Don't declare. | |
1573 | * breakpoint.c (check_tracepoint_command): Remove. | |
1574 | (commands_command_1, create_tracepoint_from_upload): Update. | |
1575 | ||
7a2c85f2 TT |
1576 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1577 | ||
1578 | PR gdb/11750: | |
1579 | * cli/cli-script.h (enum command_control_type) <define_control>: | |
1580 | New constant. | |
1581 | * cli/cli-script.c (multi_line_command_p): Handle define_control. | |
1582 | (build_command_line, execute_control_command_1) | |
1583 | (process_next_line): Likewise. | |
1584 | (do_define_command): New function, extracted from define_command. | |
1585 | (define_command): Use it. | |
1586 | ||
295dc222 TT |
1587 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1588 | ||
1589 | * tracepoint.c (actions_command): Update. | |
1590 | * cli/cli-script.h (read_command_lines): Update. | |
1591 | * cli/cli-script.c (read_command_lines): Constify prompt_arg. | |
1592 | (MAX_TMPBUF): Remove define. | |
1593 | (define_command): Use string_printf. | |
1594 | (document_command): Likewise. | |
1595 | * breakpoint.c (commands_command_1): Update. | |
1596 | ||
1263a9d5 TT |
1597 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1598 | ||
1599 | * top.c (execute_command): Update. | |
1600 | * cli/cli-script.h (print_command_lines): Now varargs. | |
1601 | * cli/cli-script.c (print_command_lines): Now varargs. | |
1602 | (execute_control_command_1) <case while_control, case if_control>: | |
1603 | Update. | |
1604 | ||
12973681 TT |
1605 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1606 | ||
1607 | * tracepoint.c (all_tracepoint_actions): Rename from | |
1608 | all_tracepoint_actions_and_cleanup. Change return type. | |
1609 | (actions_command, encode_actions_1, encode_actions) | |
1610 | (trace_dump_actions, tdump_command): Update. | |
1611 | * remote.c (remote_download_command_source): Update. | |
1612 | * python/python.c (gdbpy_eval_from_control_command) | |
1613 | (python_command, python_interactive_command): Update. | |
1614 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
1615 | * guile/guile.c (guile_command) | |
1616 | (gdbscm_eval_from_control_command, guile_command): Update. | |
1617 | * compile/compile.c (compile_code_command) | |
1618 | (compile_print_command, compile_to_object): Update. | |
1619 | * cli/cli-script.h (struct command_lines_deleter): New. | |
1620 | (counted_command_line): New typedef. | |
1621 | (struct command_line): Add constructor, destructor. | |
1622 | <body_list>: Remove. | |
1623 | <body_list_0, body_list_1>: New members. | |
1624 | (command_line_up): Remove typedef. | |
1625 | (read_command_lines, read_command_lines_1, get_command_line): | |
1626 | Update. | |
1627 | (copy_command_lines): Don't declare. | |
1628 | * cli/cli-script.c (build_command_line): Use "new". | |
1629 | (get_command_line): Return counted_command_line. | |
1630 | (print_command_lines, execute_user_command) | |
1631 | (execute_control_command_1, while_command, if_command): Update. | |
1632 | (realloc_body_list): Remove. | |
1633 | (process_next_line, recurse_read_control_structure): Update. | |
1634 | (read_command_lines, read_command_lines_1): Return counted_command_line. | |
1635 | (free_command_lines): Use "delete". | |
1636 | (copy_command_lines): Remove. | |
1637 | (define_command, document_command, show_user_1): Update. | |
1638 | * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now | |
1639 | a counted_command_line. | |
1640 | * breakpoint.h (counted_command_line): Remove typedef. | |
1641 | (breakpoint_set_commands): Update. | |
1642 | * breakpoint.c (check_no_tracepoint_commands) | |
1643 | (validate_commands_for_breakpoint): Update. | |
1644 | (breakpoint_set_commands): Change commands to be a | |
1645 | counted_command_line. | |
1646 | (commands_command_1, update_dprintf_command_list) | |
1647 | (create_tracepoint_from_upload): Update. | |
1648 | ||
e2fc72e2 TT |
1649 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1650 | ||
1651 | * cli/cli-decode.h (cmd_list_element): New constructor. | |
1652 | (~cmd_list_element): New destructor. | |
1653 | (struct cmd_list_element): Add initializers. | |
1654 | * cli/cli-decode.c (do_add_cmd): Use "new". | |
1655 | (delete_cmd): Use "delete". | |
1656 | ||
a3b60e45 JK |
1657 | 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
1658 | Pedro Alves <palves@redhat.com> | |
1659 | ||
1660 | PR breakpoints/19806 and support for PR external/20207. | |
1661 | * NEWS: Mention Aarch64 watchpoint improvements. | |
1662 | * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed | |
1663 | watchpoints and PR external/20207 watchpoints. | |
1664 | * nat/aarch64-linux-hw-point.c | |
1665 | (kernel_supports_any_contiguous_range): New. | |
1666 | (aarch64_watchpoint_offset): New. | |
1667 | (aarch64_watchpoint_length): Support PR external/20207 watchpoints. | |
1668 | (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. | |
1669 | (aarch64_point_is_aligned): Support PR external/20207 watchpoints. | |
1670 | (aarch64_align_watchpoint): New parameters aligned_offset_p and | |
1671 | next_addr_orig_p. Support PR external/20207 watchpoints. | |
1672 | (aarch64_downgrade_regs): New. | |
1673 | (aarch64_dr_state_insert_one_point): New parameters offset and | |
1674 | addr_orig. | |
1675 | (aarch64_dr_state_remove_one_point): Likewise. | |
1676 | (aarch64_handle_breakpoint): Update caller. | |
1677 | (aarch64_handle_aligned_watchpoint): Likewise. | |
1678 | (aarch64_handle_unaligned_watchpoint): Support addr_orig and | |
1679 | aligned_offset. | |
1680 | (aarch64_linux_set_debug_regs): Remove const from state. Call | |
1681 | aarch64_downgrade_regs. | |
1682 | (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. | |
1683 | * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... | |
1684 | (DR_CONTROL_MASK): ... this. | |
1685 | (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. | |
1686 | (unsigned int aarch64_watchpoint_offset): New prototype. | |
1687 | (aarch64_linux_set_debug_regs): Remove const from state. | |
1688 | * utils.c (align_up, align_down): Move to ... | |
1689 | * common/common-utils.c (align_up, align_down): ... here. | |
1690 | * utils.h (align_up, align_down): Move to ... | |
1691 | * common/common-utils.h (align_up, align_down): ... here. | |
1692 | ||
05bc7456 JB |
1693 | 2018-05-04 Joel Brobecker <brobecker@adacore.com> |
1694 | ||
1695 | * sparc-tdep.c (sparc_structure_return_p): Re-implement to | |
1696 | match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. | |
1697 | (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. | |
1698 | Re-implement to match the ABI as summarized in GCC's | |
1699 | gcc/config/sparc/sparc.c. All callers updated. | |
1700 | (sparc32_store_arguments): Remove assertion. | |
1701 | ||
2f433492 TT |
1702 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1703 | ||
1704 | * printcmd.c: Don't include tui.h. | |
1705 | (decode_format): Use skip_spaces. | |
1706 | ||
9be2ae8f TT |
1707 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1708 | ||
1709 | PR gdb/22619: | |
1710 | * printcmd.c (last_count): New global. | |
1711 | (x_command): Use saved count when repeating. | |
1712 | ||
f0b3976b TT |
1713 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1714 | ||
1715 | * nto-procfs.c (do_closedir_cleanup): Remove. | |
1716 | (procfs_pidlist): Use gdb_dir_up. | |
1717 | * procfs.c (do_closedir_cleanup): Remove. | |
1718 | (proc_update_threads): Use gdb_dir_up. | |
1719 | * common/filestuff.h (struct gdb_dir_deleter): New. | |
1720 | (gdb_dir_up): New typedef. | |
1721 | ||
862d101a TT |
1722 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1723 | ||
1724 | * ada-lang.c (print_mention_exception): Use std::string. | |
1725 | ||
cb7de75e TT |
1726 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1727 | ||
1728 | * ada-lang.c (create_excep_cond_exprs): Update. | |
1729 | (ada_exception_catchpoint_cond_string): Use std::string. | |
1730 | ||
49d83361 TT |
1731 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1732 | ||
1733 | * ada-lang.c (xget_renaming_scope): Return std::string. | |
1734 | (old_renaming_is_invisible): Update. | |
1735 | ||
ade72a34 TT |
1736 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1737 | ||
1738 | * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. | |
1739 | (target_bfd::target_bfd, target_bfd::~target_bfd): Update. | |
1740 | ||
2be4d7f0 UW |
1741 | 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com> |
1742 | ||
1743 | * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. | |
1744 | ||
69b6ecb0 TT |
1745 | 2018-05-04 Tom Tromey <tom@tromey.com> |
1746 | ||
1747 | * remote.c (remote_query_supported_append): Change type. | |
1748 | (remote_check_symbols): Update. | |
1749 | ||
bf27f0e2 PP |
1750 | 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com> |
1751 | ||
1752 | PR gdb/11420 | |
1753 | * configure.ac: Prepend libpython. | |
1754 | * python/python-config.py: Likewise. | |
1755 | * configure: Regenerate. | |
1756 | ||
4ea17de8 SM |
1757 | 2018-05-03 Simon Marchi <simon.marchi@ericsson.com> |
1758 | ||
1759 | * Makefile.in (%.c: %.l): Use -t instead of --stdout. | |
1760 | ||
bd732259 PA |
1761 | 2018-05-03 Pedro Alves <palves@redhat.com> |
1762 | ||
1763 | * s390-linux-nat.c | |
1764 | (s390_linux_nat_target::have_continuable_watchpoint): Mark with | |
1765 | override. Write 'true' instead of '1'. | |
1766 | (s390_linux_nat_target::watchpoint_addr_within_range): Remove | |
1767 | declaration. | |
1768 | ||
d9f719f1 PA |
1769 | 2018-05-02 Pedro Alves <palves@redhat.com> |
1770 | ||
1771 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use | |
1772 | add_inf_child_target. | |
1773 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use | |
1774 | add_inf_child_target. | |
1775 | * aix-thread.c (aix_thread_target_info): New. | |
1776 | (aix_thread_target) <shortname, longname, doc>: Delete. | |
1777 | <info>: New. | |
1778 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use | |
1779 | add_inf_child_target. | |
1780 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use | |
1781 | add_inf_child_target. | |
1782 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use | |
1783 | add_inf_child_target. | |
1784 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use | |
1785 | add_inf_child_target. | |
1786 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use | |
1787 | add_inf_child_target. | |
1788 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use | |
1789 | add_inf_child_target. | |
1790 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use | |
1791 | add_inf_child_target. | |
1792 | * arm-linux-nat.c (_initialize_arm_linux_nat): Use | |
1793 | add_inf_child_target. | |
1794 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use | |
1795 | add_inf_child_target. | |
1796 | * bfd-target.c (target_bfd_target_info): New. | |
1797 | (target_bfd) <shortname, longname, doc>: Delete. | |
1798 | <info>: New. | |
1799 | * bsd-kvm.c (bsd_kvm_target_info): New. | |
1800 | (bsd_kvm_target) <shortname, longname, doc>: Delete. | |
1801 | <info>: New. | |
1802 | (bsd_kvm_target::open): Rename to ... | |
1803 | (bsd_kvm_target_open): ... this. Adjust. | |
1804 | * bsd-uthread.c (bsd_uthread_target_info): New. | |
1805 | (bsd_uthread_target) <shortname, longname, doc>: Delete. | |
1806 | <info>: New. | |
1807 | * corefile.c (core_file_command): Adjust. | |
1808 | * corelow.c (core_target_info): New. | |
1809 | (core_target) <shortname, longname, doc>: Delete. | |
1810 | <info>: New. | |
1811 | (core_target::open): Rename to ... | |
1812 | (core_target_open): ... this. Adjust. | |
1813 | * ctf.c (ctf_target_info): New. | |
1814 | (ctf_target) <shortname, longname, doc>: Delete. | |
1815 | <info>: New. | |
1816 | (ctf_target::open): Rename to ... | |
1817 | (ctf_target_open): ... this. | |
1818 | (_initialize_ctf): Adjust. | |
1819 | * exec.c (exec_target_info): New. | |
1820 | (exec_target) <shortname, longname, doc>: Delete. | |
1821 | <info>: New. | |
1822 | (exec_target::open): Rename to ... | |
1823 | (exec_target_open): ... this. | |
1824 | * gdbcore.h (core_target_open): Declare. | |
1825 | * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. | |
1826 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use | |
1827 | add_inf_child_target. | |
1828 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use | |
1829 | add_inf_child_target. | |
1830 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use | |
1831 | add_inf_child_target. | |
1832 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use | |
1833 | add_inf_child_target. | |
1834 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use | |
1835 | add_inf_child_target. | |
1836 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Use | |
1837 | add_inf_child_target. | |
1838 | * i386-linux-nat.c (_initialize_i386_linux_nat): Use | |
1839 | add_inf_child_target. | |
1840 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use | |
1841 | add_inf_child_target. | |
1842 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Use | |
1843 | add_inf_child_target. | |
1844 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use | |
1845 | add_inf_child_target. | |
1846 | * inf-child.c (inf_child_target_info): New. | |
1847 | (inf_child_target::info): New. | |
1848 | (inf_child_open_target): Remove 'target' parameter. Use | |
1849 | get_native_target instead. | |
1850 | (inf_child_target::open): Delete. | |
1851 | (add_inf_child_target): New. | |
1852 | * inf-child.h (inf_child_target) <shortname, longname, doc, open>: | |
1853 | Delete. | |
1854 | <info>: New. | |
1855 | (add_inf_child_target): Declare. | |
1856 | (inf_child_open_target): Declare. | |
1857 | * linux-thread-db.c (thread_db_target_info): New. | |
1858 | (thread_db_target) <shortname, longname, doc>: Delete. | |
1859 | <info>: New. | |
1860 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use | |
1861 | add_inf_child_target. | |
1862 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use | |
1863 | add_inf_child_target. | |
1864 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use | |
1865 | add_inf_child_target. | |
1866 | * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use | |
1867 | add_inf_child_target. | |
1868 | * make-target-delegates (print_class): Adjust. | |
1869 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use | |
1870 | add_inf_child_target. | |
1871 | * mips-linux-nat.c (_initialize_mips_linux_nat): Use | |
1872 | add_inf_child_target. | |
1873 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use | |
1874 | add_inf_child_target. | |
1875 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use | |
1876 | add_inf_child_target. | |
1877 | * nto-procfs.c (nto_native_target_info): New. | |
1878 | (nto_procfs_target_native) <shortname, longname, doc>: | |
1879 | Delete. | |
1880 | <info>: New. | |
1881 | (nto_procfs_target_info): New. | |
1882 | (nto_procfs_target_procfs) <shortname, longname, doc>: | |
1883 | Delete. | |
1884 | <info>: New. | |
1885 | (init_procfs_targets): Adjust. | |
1886 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use | |
1887 | add_inf_child_target. | |
1888 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use | |
1889 | add_inf_child_target. | |
1890 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use | |
1891 | add_inf_child_target. | |
1892 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use | |
1893 | add_inf_child_target. | |
1894 | * ravenscar-thread.c (ravenscar_target_info): New. | |
1895 | (ravenscar_thread_target) <shortname, longname, doc>: | |
1896 | Delete. | |
1897 | <info>: New. | |
1898 | * record-btrace.c (record_btrace_target_info): | |
1899 | (record_btrace_target) <shortname, longname, doc>: Delete. | |
1900 | <info>: New. | |
1901 | (record_btrace_target::open): Rename to ... | |
1902 | (record_btrace_target_open): ... this. Adjust. | |
1903 | * record-full.c (record_longname, record_doc): New. | |
1904 | (record_full_base_target) <shortname, longname, doc>: Delete. | |
1905 | <info>: New. | |
1906 | (record_full_target_info): New. | |
1907 | (record_full_target): <shortname>: Delete. | |
1908 | <info>: New. | |
1909 | (record_full_core_open_1, record_full_open_1): Update comments. | |
1910 | (record_full_base_target::open): Rename to ... | |
1911 | (record_full_open): ... this. | |
1912 | (cmd_record_full_restore): Update. | |
1913 | (_initialize_record_full): Update. | |
1914 | * remote-sim.c (remote_sim_target_info): New. | |
1915 | (gdbsim_target) <shortname, longname, doc>: Delete. | |
1916 | <info>: New. | |
1917 | (gdbsim_target::open): Rename to ... | |
1918 | (gdbsim_target_open): ... this. | |
1919 | (_initialize_remote_sim): Adjust. | |
1920 | * remote.c (remote_doc): New. | |
1921 | (remote_target_info): New. | |
1922 | (remote_target) <shortname, longname, doc>: Delete. | |
1923 | <info>: New. | |
1924 | (extended_remote_target_info): New. | |
1925 | (extended_remote_target) <shortname, longname, doc>: Delete. | |
1926 | <info>: New. | |
1927 | (remote_target::open_1): Make static. Adjust. | |
1928 | * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. | |
1929 | * s390-linux-nat.c (_initialize_s390_nat): Use | |
1930 | add_inf_child_target. | |
1931 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use | |
1932 | add_inf_child_target. | |
1933 | * sol-thread.c (thread_db_target_info): New. | |
1934 | (sol_thread_target) <shortname, longname, doc>: Delete. | |
1935 | <info>: New. | |
1936 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use | |
1937 | add_inf_child_target. | |
1938 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use | |
1939 | add_inf_child_target. | |
1940 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use | |
1941 | add_inf_child_target. | |
1942 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use | |
1943 | add_inf_child_target. | |
1944 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use | |
1945 | add_inf_child_target. | |
1946 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use | |
1947 | add_inf_child_target. | |
1948 | * spu-linux-nat.c (_initialize_spu_nat): Use | |
1949 | add_inf_child_target. | |
1950 | * spu-multiarch.c (spu_multiarch_target_info): New. | |
1951 | (spu_multiarch_target) <shortname, longname, doc>: Delete. | |
1952 | <info>: New. | |
1953 | * target-delegates.c: Regenerate. | |
1954 | * target.c: Include <unordered_map>. | |
1955 | (target_ops_p): Delete. | |
1956 | (DEF_VEC_P(target_ops_p)): Delete. | |
1957 | (target_factories): New. | |
1958 | (test_target_info): New. | |
1959 | (test_target_ops::info): New. | |
1960 | (open_target): Adjust to use target_factories. | |
1961 | (add_target_with_completer): Rename to ... | |
1962 | (add_target): ... this. Change prototype. Register target_info | |
1963 | and open callback in target_factories. Register target_info in | |
1964 | command context instead of target_ops. | |
1965 | (add_target): Delete old implementation. | |
1966 | (add_deprecated_target_alias): Change prototype. Adjust. | |
1967 | (the_native_target): New. | |
1968 | (set_native_target, get_native_target): New. | |
1969 | (find_default_run_target): Use the_native_target. | |
1970 | (find_attach_target, find_run_target): Simplify. | |
1971 | (target_ops::open): Delete. | |
1972 | (dummy_target_info): New. | |
1973 | (dummy_target::shortname, dummy_target::longname) | |
1974 | (dummy_target::doc): Delete. | |
1975 | (dummy_target::info): New. | |
1976 | (debug_target::shortname, debug_target::longname) | |
1977 | (debug_target::doc): Delete. | |
1978 | (debug_target::info): New. | |
1979 | * target.h (struct target_info): New. | |
1980 | (target_ops::~target_ops): Add comment. | |
1981 | (target_ops::info): New. | |
1982 | (target_ops::shortname, target_ops::longname, target_ops::doc): No | |
1983 | longer virtual. Implement in terms of target_info. | |
1984 | (set_native_target, get_native_target): Declare. | |
1985 | (target_open_ftype): New. | |
1986 | (add_target, add_target_with_completer) | |
1987 | (add_deprecated_target_alias): Change prototype. | |
1988 | (test_target) <shortname, longname, doc>: Delete. | |
1989 | <info>: New. | |
1990 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use | |
1991 | add_inf_child_target. | |
1992 | * tracefile-tfile.c (tfile_target_info): New. | |
1993 | (tfile_target) <shortname, longname, doc>: Delete. | |
1994 | <info>: New. | |
1995 | (tfile_target::open): Rename to ... | |
1996 | (tfile_target_open): ... this. | |
1997 | (_initialize_tracefile_tfile): Adjust. | |
1998 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use | |
1999 | add_inf_child_target. | |
2000 | * windows-nat.c (_initialize_windows_nat): Use | |
2001 | add_inf_child_target. | |
2002 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use | |
2003 | add_inf_child_target. | |
2004 | ||
135340af PA |
2005 | 2018-05-02 Pedro Alves <palves@redhat.com> |
2006 | ||
2007 | * linux-nat.h (linux_nat_target) <low_new_thread, | |
2008 | low_delete_thread, low_new_fork, low_forget_process, | |
2009 | low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: | |
2010 | New virtual methods. | |
2011 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
2012 | (linux_nat_new_fork_ftype, linux_nat_set_new_fork) | |
2013 | (linux_nat_forget_process_ftype, linux_nat_set_forget_process) | |
2014 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
2015 | (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): | |
2016 | Delete. | |
2017 | * linux-fork.c (delete_fork): Adjust to call low method. | |
2018 | * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) | |
2019 | (linux_nat_new_fork, linux_nat_forget_process_hook) | |
2020 | (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) | |
2021 | (linux_nat_status_is_event): | |
2022 | (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) | |
2023 | (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust | |
2024 | to call low method. | |
2025 | (sigtrap_is_event): Rename to ... | |
2026 | (linux_nat_target::low_status_is_event): ... this. | |
2027 | (linux_nat_set_status_is_event): Delete. | |
2028 | (save_stop_reason, linux_nat_wait_1) | |
2029 | (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call | |
2030 | low methods. | |
2031 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
2032 | (linux_nat_set_new_fork, linux_nat_set_forget_process) | |
2033 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
2034 | (linux_nat_set_prepare_to_resume): Delete. | |
2035 | * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to | |
2036 | low virtual methods. | |
2037 | * amd64-linux-nat.c: Likewise. | |
2038 | * arm-linux-nat.c: Likewise. | |
2039 | * i386-linux-nat.c: Likewise. | |
2040 | * ia64-linux-nat.c: Likewise. | |
2041 | * mips-linux-nat.c: Likewise. | |
2042 | * ppc-linux-nat.c: Likewise. | |
2043 | * s390-linux-nat.c: Likewise. | |
2044 | * sparc64-linux-nat.c: Likewise. | |
2045 | * x86-linux-nat.c: Likewise. | |
2046 | * x86-linux-nat.h: Include "nat/x86-linux.h". | |
2047 | (x86_linux_nat_target) <low_new_fork, low_forget_process, | |
2048 | low_prepare_to_resume, low_new_thread, low_delete_thread>: | |
2049 | Override methods. | |
2050 | ||
57810aa7 PA |
2051 | 2018-05-02 Pedro Alves <palves@redhat.com> |
2052 | ||
2053 | * target.h (target_ops) | |
2054 | <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
2055 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, | |
2056 | stopped_by_watchpoint, have_continuable_watchpoint, | |
2057 | stopped_data_address, watchpoint_addr_within_range, | |
2058 | can_accel_watchpoint_condition, can_run, thread_alive, | |
2059 | has_all_memory, has_memory, has_stack, has_registers, | |
2060 | has_execution, can_async_p, is_async_p, supports_non_stop, | |
2061 | always_non_stop_p, can_execute_reverse, supports_multi_process, | |
2062 | supports_enable_disable_tracepoint, | |
2063 | supports_disable_randomization, supports_string_tracing, | |
2064 | supports_evaluation_of_breakpoint_conditions, | |
2065 | can_run_breakpoint_commands, filesystem_is_local, | |
2066 | can_download_tracepoint, get_trace_state_variable_value, | |
2067 | set_trace_notes, get_tib_address, use_agent, can_use_agent, | |
2068 | record_is_replaying, record_will_replay, | |
2069 | augmented_libraries_svr4_read>: Adjust to return bool. | |
2070 | * aarch64-linux-nat.c: All implementations adjusted. | |
2071 | * aix-thread.c: All implementations adjusted. | |
2072 | * arm-linux-nat.c: All implementations adjusted. | |
2073 | * breakpoint.c: All implementations adjusted. | |
2074 | * bsd-kvm.c: All implementations adjusted. | |
2075 | * bsd-uthread.c: All implementations adjusted. | |
2076 | * corelow.c: All implementations adjusted. | |
2077 | * ctf.c: All implementations adjusted. | |
2078 | * darwin-nat.c: All implementations adjusted. | |
2079 | * darwin-nat.h: All implementations adjusted. | |
2080 | * exec.c: All implementations adjusted. | |
2081 | * fbsd-nat.c: All implementations adjusted. | |
2082 | * fbsd-nat.h: All implementations adjusted. | |
2083 | * gnu-nat.c: All implementations adjusted. | |
2084 | * gnu-nat.h: All implementations adjusted. | |
2085 | * go32-nat.c: All implementations adjusted. | |
2086 | * ia64-linux-nat.c: All implementations adjusted. | |
2087 | * inf-child.c: All implementations adjusted. | |
2088 | * inf-child.h: All implementations adjusted. | |
2089 | * inf-ptrace.c: All implementations adjusted. | |
2090 | * inf-ptrace.h: All implementations adjusted. | |
2091 | * linux-nat.c: All implementations adjusted. | |
2092 | * linux-nat.h: All implementations adjusted. | |
2093 | * mips-linux-nat.c: All implementations adjusted. | |
2094 | * nto-procfs.c: All implementations adjusted. | |
2095 | * ppc-linux-nat.c: All implementations adjusted. | |
2096 | * procfs.c: All implementations adjusted. | |
2097 | * ravenscar-thread.c: All implementations adjusted. | |
2098 | * record-btrace.c: All implementations adjusted. | |
2099 | * record-full.c: All implementations adjusted. | |
2100 | * remote-sim.c: All implementations adjusted. | |
2101 | * remote.c: All implementations adjusted. | |
2102 | * s390-linux-nat.c: All implementations adjusted. | |
2103 | * sol-thread.c: All implementations adjusted. | |
2104 | * spu-multiarch.c: All implementations adjusted. | |
2105 | * target-delegates.c: All implementations adjusted. | |
2106 | * target.c: All implementations adjusted. | |
2107 | * target.h: All implementations adjusted. | |
2108 | * tracefile-tfile.c: All implementations adjusted. | |
2109 | * tracefile.c: All implementations adjusted. | |
2110 | * tracefile.h: All implementations adjusted. | |
2111 | * windows-nat.c: All implementations adjusted. | |
2112 | * x86-linux-nat.h: All implementations adjusted. | |
2113 | * x86-nat.h: All implementations adjusted. | |
2114 | ||
ad6a4e2d PA |
2115 | 2018-05-02 Pedro Alves <palves@redhat.com> |
2116 | ||
2117 | * make-target-delegates (scan_target_h): Don't trim lines here. | |
2118 | Replace sequences of tabs and/or whitespace with a single | |
2119 | whitespace. | |
2120 | (top level, parsing methods): Trim each line before processing it | |
2121 | here. | |
2122 | ||
f6ac5f3d PA |
2123 | 2018-05-02 Pedro Alves <palves@redhat.com> |
2124 | John Baldwin <jhb@freebsd.org> | |
2125 | ||
2126 | * target.h (enum strata) <debug_stratum>: New. | |
2127 | (struct target_ops) <all delegation methods>: Replace by C++ | |
2128 | virtual methods, and drop "to_" prefix. All references updated | |
2129 | throughout. | |
2130 | <to_shortname, to_longname, to_doc, to_data, | |
2131 | to_have_steppable_watchpoint, to_have_continuable_watchpoint, | |
2132 | to_has_thread_control, to_attach_no_wait>: Delete, replaced by | |
2133 | virtual methods. All references updated throughout. | |
2134 | <can_attach, supports_terminal_ours, can_create_inferior, | |
2135 | get_thread_control_capabilities, attach_no_wait>: New | |
2136 | virtual methods. | |
2137 | <insert_breakpoint, remove_breakpoint>: Now | |
2138 | TARGET_DEFAULT_NORETURN methods. | |
2139 | <info_proc>: Now returns bool. | |
2140 | <to_magic>: Delete. | |
2141 | (OPS_MAGIC): Delete. | |
2142 | (current_target): Delete. All references replaced by references | |
2143 | to ... | |
2144 | (target_stack): ... this. New. | |
2145 | (target_shortname, target_longname): Adjust. | |
2146 | (target_can_run): Now a function declaration. | |
2147 | (default_child_has_all_memory, default_child_has_memory) | |
2148 | (default_child_has_stack, default_child_has_registers) | |
2149 | (default_child_has_execution): Remove target_ops parameter. | |
2150 | (complete_target_initialization): Delete. | |
2151 | (memory_breakpoint_target): New template class. | |
2152 | (test_target_ops): Refactor as a C++ class with virtual methods. | |
2153 | * make-target-delegates (NAME_PART): Tighten. | |
2154 | (POINTER_PART, CP_SYMBOL): New. | |
2155 | (SIMPLE_RETURN_PART): Reimplement. | |
2156 | (VEC_RETURN_PART): Expect less. | |
2157 | (RETURN_PART, VIRTUAL_PART): New. | |
2158 | (METHOD): Adjust to C++ virtual methods. | |
2159 | (scan_target_h): Remove reference to C99. | |
2160 | (dname): Output "target_ops::" prefix. | |
2161 | (write_function_header): Adjust to output a C++ class method. | |
2162 | (write_declaration): New. | |
2163 | (write_delegator): Adjust to output a C++ class method. | |
2164 | (tdname): Output "dummy_target::" prefix. | |
2165 | (write_tdefault, write_debugmethod): Adjust to output a C++ class | |
2166 | method. | |
2167 | (tdefault_names, debug_names): Delete. | |
2168 | (return_types, tdefaults, styles, argtypes_array): New. | |
2169 | (top level): All methods are delegators. | |
2170 | (print_class): New. | |
2171 | (top level): Print dummy_target and debug_target classes. | |
2172 | * target-delegates.c: Regenerate. | |
2173 | * target-debug.h (target_debug_print_enum_info_proc_what) | |
2174 | (target_debug_print_thread_control_capabilities) | |
2175 | (target_debug_print_thread_info_p): New. | |
2176 | * target.c (dummy_target): Delete. | |
2177 | (the_dummy_target, the_debug_target): New. | |
2178 | (target_stack): Now extern. | |
2179 | (set_targetdebug): Push/unpush debug target. | |
2180 | (default_child_has_all_memory, default_child_has_memory) | |
2181 | (default_child_has_stack, default_child_has_registers) | |
2182 | (default_child_has_execution): Remove target_ops parameter. | |
2183 | (complete_target_initialization): Delete. | |
2184 | (add_target_with_completer): No longer call | |
2185 | complete_target_initialization. | |
2186 | (target_supports_terminal_ours): Use regular delegation. | |
2187 | (update_current_target): Delete. | |
2188 | (push_target): No longer check magic number. Don't call | |
2189 | update_current_target. | |
2190 | (unpush_target): Don't call update_current_target. | |
2191 | (target_is_pushed): No longer check magic number. | |
2192 | (target_require_runnable): Skip for all stratums over | |
2193 | process_stratum. | |
2194 | (target_ops::info_proc): New. | |
2195 | (target_info_proc): Use find_target_at and | |
2196 | find_default_run_target. | |
2197 | (target_supports_disable_randomization): Use regular delegation. | |
2198 | (target_get_osdata): Use find_target_at. | |
2199 | (target_ops::open, target_ops::close, target_ops::can_attach) | |
2200 | (target_ops::attach, target_ops::can_create_inferior) | |
2201 | (target_ops::create_inferior, target_ops::can_run) | |
2202 | (target_can_run): New. | |
2203 | (default_fileio_target): Use regular delegation. | |
2204 | (target_ops::fileio_open, target_ops::fileio_pwrite) | |
2205 | (target_ops::fileio_pread, target_ops::fileio_fstat) | |
2206 | (target_ops::fileio_close, target_ops::fileio_unlink) | |
2207 | (target_ops::fileio_readlink): New. | |
2208 | (target_fileio_open_1, target_fileio_unlink) | |
2209 | (target_fileio_readlink): Always call the target method. Handle | |
2210 | FILEIO_ENOSYS. | |
2211 | (return_zero, return_zero_has_execution): Delete. | |
2212 | (init_dummy_target): Delete. | |
2213 | (dummy_target::dummy_target, dummy_target::shortname) | |
2214 | (dummy_target::longname, dummy_target::doc) | |
2215 | (debug_target::debug_target, debug_target::shortname) | |
2216 | (debug_target::longname, debug_target::doc): New. | |
2217 | (target_supports_delete_record): Use regular delegation. | |
2218 | (setup_target_debug): Delete. | |
2219 | (maintenance_print_target_stack): Skip debug_stratum. | |
2220 | (initialize_targets): Instantiate the_dummy_target and | |
2221 | the_debug_target. | |
2222 | * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to | |
2223 | use target_stack. | |
2224 | (target_auxv_search, fprint_target_auxv): Adjust. | |
2225 | (info_auxv_command): Adjust to use target_stack. | |
2226 | * auxv.h (target_auxv_parse): Remove 'ops' parameter. | |
2227 | * exceptions.c (print_flush): Handle a NULL target_stack. | |
2228 | * regcache.c (target_ops_no_register): Refactor as class with | |
2229 | virtual methods. | |
2230 | ||
2231 | * exec.c (exec_target): New class. | |
2232 | (exec_ops): Now an exec_target. | |
2233 | (exec_open, exec_close_1, exec_get_section_table) | |
2234 | (exec_xfer_partial, exec_files_info, exec_has_memory) | |
2235 | (exec_make_note_section): Refactor as exec_target methods. | |
2236 | (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): | |
2237 | Delete. | |
2238 | (exec_target::find_memory_regions): New. | |
2239 | (_initialize_exec): Don't call init_exec_ops. | |
2240 | * gdbcore.h (exec_file_clear): Delete. | |
2241 | ||
2242 | * corefile.c (core_target): Delete. | |
2243 | (core_file_command): Adjust. | |
2244 | * corelow.c (core_target): New class. | |
2245 | (the_core_target): New. | |
2246 | (core_close): Remove target_ops parameter. | |
2247 | (core_close_cleanup): Adjust. | |
2248 | (core_target::close): New. | |
2249 | (core_open, core_detach, get_core_registers, core_files_info) | |
2250 | (core_xfer_partial, core_thread_alive, core_read_description) | |
2251 | (core_pid_to_str, core_thread_name, core_has_memory) | |
2252 | (core_has_stack, core_has_registers, core_info_proc): Rework as | |
2253 | core_target methods. | |
2254 | (ignore, core_remove_breakpoint, init_core_ops): Delete. | |
2255 | (_initialize_corelow): Initialize the_core_target. | |
2256 | * gdbcore.h (core_target): Delete. | |
2257 | (the_core_target): New. | |
2258 | ||
2259 | * ctf.c: (ctf_target): New class. | |
2260 | (ctf_ops): Now a ctf_target. | |
2261 | (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) | |
2262 | (ctf_xfer_partial, ctf_get_trace_state_variable_value) | |
2263 | (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target | |
2264 | methods. | |
2265 | (init_ctf_ops): Delete. | |
2266 | (_initialize_ctf): Don't call it. | |
2267 | * tracefile-tfile.c (tfile_target): New class. | |
2268 | (tfile_ops): Now a tfile_target. | |
2269 | (tfile_open, tfile_close, tfile_files_info) | |
2270 | (tfile_get_tracepoint_status, tfile_trace_find) | |
2271 | (tfile_fetch_registers, tfile_xfer_partial) | |
2272 | (tfile_get_trace_state_variable_value, tfile_traceframe_info): | |
2273 | Refactor as tfile_target methods. | |
2274 | (tfile_xfer_partial_features): Remove target_ops parameter. | |
2275 | (init_tfile_ops): Delete. | |
2276 | (_initialize_tracefile_tfile): Don't call it. | |
2277 | * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) | |
2278 | (tracefile_has_stack, tracefile_has_registers) | |
2279 | (tracefile_thread_alive, tracefile_get_trace_status): Refactor as | |
2280 | tracefile_target methods. | |
2281 | (init_tracefile_ops): Delete. | |
2282 | (tracefile_target::tracefile_target): New. | |
2283 | * tracefile.h: Include "target.h". | |
2284 | (tracefile_target): New class. | |
2285 | (init_tracefile_ops): Delete. | |
2286 | ||
2287 | * spu-multiarch.c (spu_multiarch_target): New class. | |
2288 | (spu_ops): Now a spu_multiarch_target. | |
2289 | (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) | |
2290 | (spu_fetch_registers, spu_store_registers, spu_xfer_partial) | |
2291 | (spu_search_memory, spu_mourn_inferior): Refactor as | |
2292 | spu_multiarch_target methods. | |
2293 | (init_spu_ops): Delete. | |
2294 | (_initialize_spu_multiarch): Remove references to init_spu_ops, | |
2295 | complete_target_initialization. | |
2296 | ||
2297 | * ravenscar-thread.c (ravenscar_thread_target): New class. | |
2298 | (ravenscar_ops): Now a ravenscar_thread_target. | |
2299 | (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) | |
2300 | (ravenscar_thread_alive, ravenscar_pid_to_str) | |
2301 | (ravenscar_fetch_registers, ravenscar_store_registers) | |
2302 | (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) | |
2303 | (ravenscar_stopped_by_hw_breakpoint) | |
2304 | (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) | |
2305 | (ravenscar_mourn_inferior, ravenscar_core_of_thread) | |
2306 | (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target | |
2307 | methods. | |
2308 | (init_ravenscar_thread_ops): Delete. | |
2309 | (_initialize_ravenscar): Remove references to | |
2310 | init_ravenscar_thread_ops and complete_target_initialization. | |
2311 | ||
2312 | * bsd-uthread.c (bsd_uthread_ops_hack): Delete. | |
2313 | (bsd_uthread_target): New class. | |
2314 | (bsd_uthread_ops): Now a bsd_uthread_target. | |
2315 | (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. | |
2316 | (bsd_uthread_close, bsd_uthread_mourn_inferior) | |
2317 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers) | |
2318 | (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) | |
2319 | (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) | |
2320 | (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. | |
2321 | (bsd_uthread_target): Delete function. | |
2322 | (_initialize_bsd_uthread): Remove reference to | |
2323 | complete_target_initialization. | |
2324 | ||
2325 | * bfd-target.c (target_bfd_data): Delete. Fields folded into ... | |
2326 | (target_bfd): ... this new class. | |
2327 | (target_bfd_xfer_partial, target_bfd_get_section_table) | |
2328 | (target_bfd_close): Refactor as target_bfd methods. | |
2329 | (target_bfd::~target_bfd): New. | |
2330 | (target_bfd_reopen): Adjust. | |
2331 | (target_bfd::close): New. | |
2332 | ||
2333 | * record-btrace.c (record_btrace_target): New class. | |
2334 | (record_btrace_ops): Now a record_btrace_target. | |
2335 | (record_btrace_open, record_btrace_stop_recording) | |
2336 | (record_btrace_disconnect, record_btrace_close) | |
2337 | (record_btrace_async, record_btrace_info) | |
2338 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
2339 | (record_btrace_insn_history_from, record_btrace_call_history) | |
2340 | (record_btrace_call_history_range) | |
2341 | (record_btrace_call_history_from, record_btrace_record_method) | |
2342 | (record_btrace_is_replaying, record_btrace_will_replay) | |
2343 | (record_btrace_xfer_partial, record_btrace_insert_breakpoint) | |
2344 | (record_btrace_remove_breakpoint, record_btrace_fetch_registers) | |
2345 | (record_btrace_store_registers, record_btrace_prepare_to_store) | |
2346 | (record_btrace_to_get_unwinder) | |
2347 | (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) | |
2348 | (record_btrace_commit_resume, record_btrace_wait) | |
2349 | (record_btrace_stop, record_btrace_can_execute_reverse) | |
2350 | (record_btrace_stopped_by_sw_breakpoint) | |
2351 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
2352 | (record_btrace_stopped_by_hw_breakpoint) | |
2353 | (record_btrace_supports_stopped_by_hw_breakpoint) | |
2354 | (record_btrace_update_thread_list, record_btrace_thread_alive) | |
2355 | (record_btrace_goto_begin, record_btrace_goto_end) | |
2356 | (record_btrace_goto, record_btrace_stop_replaying_all) | |
2357 | (record_btrace_execution_direction) | |
2358 | (record_btrace_prepare_to_generate_core) | |
2359 | (record_btrace_done_generating_core): Refactor as | |
2360 | record_btrace_target methods. | |
2361 | (init_record_btrace_ops): Delete. | |
2362 | (_initialize_record_btrace): Remove reference to | |
2363 | init_record_btrace_ops. | |
2364 | * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to | |
2365 | the execution_direction global. | |
2366 | (record_full_base_target, record_full_target) | |
2367 | (record_full_core_target): New classes. | |
2368 | (record_full_ops): Now a record_full_target. | |
2369 | (record_full_core_ops): Now a record_full_core_target. | |
2370 | (record_full_target::detach, record_full_target::disconnect) | |
2371 | (record_full_core_target::disconnect) | |
2372 | (record_full_target::mourn_inferior, record_full_target::kill): | |
2373 | New. | |
2374 | (record_full_open, record_full_close, record_full_async): Refactor | |
2375 | as methods of the record_full_base_target class. | |
2376 | (record_full_resume, record_full_commit_resume): Refactor | |
2377 | as methods of the record_full_target class. | |
2378 | (record_full_wait, record_full_stopped_by_watchpoint) | |
2379 | (record_full_stopped_data_address) | |
2380 | (record_full_stopped_by_sw_breakpoint) | |
2381 | (record_full_supports_stopped_by_sw_breakpoint) | |
2382 | (record_full_stopped_by_hw_breakpoint) | |
2383 | (record_full_supports_stopped_by_hw_breakpoint): Refactor as | |
2384 | methods of the record_full_base_target class. | |
2385 | (record_full_store_registers, record_full_xfer_partial) | |
2386 | (record_full_insert_breakpoint, record_full_remove_breakpoint): | |
2387 | Refactor as methods of the record_full_target class. | |
2388 | (record_full_can_execute_reverse, record_full_get_bookmark) | |
2389 | (record_full_goto_bookmark, record_full_execution_direction) | |
2390 | (record_full_record_method, record_full_info, record_full_delete) | |
2391 | (record_full_is_replaying, record_full_will_replay) | |
2392 | (record_full_goto_begin, record_full_goto_end, record_full_goto) | |
2393 | (record_full_stop_replaying): Refactor as methods of the | |
2394 | record_full_base_target class. | |
2395 | (record_full_core_resume, record_full_core_kill) | |
2396 | (record_full_core_fetch_registers) | |
2397 | (record_full_core_prepare_to_store) | |
2398 | (record_full_core_store_registers, record_full_core_xfer_partial) | |
2399 | (record_full_core_insert_breakpoint) | |
2400 | (record_full_core_remove_breakpoint) | |
2401 | (record_full_core_has_execution): Refactor | |
2402 | as methods of the record_full_core_target class. | |
2403 | (record_full_base_target::supports_delete_record): New. | |
2404 | (init_record_full_ops): Delete. | |
2405 | (init_record_full_core_ops): Delete. | |
2406 | (record_full_save): Refactor as method of the | |
2407 | record_full_base_target class. | |
2408 | (_initialize_record_full): Remove references to | |
2409 | init_record_full_ops and init_record_full_core_ops. | |
2410 | ||
2411 | * remote.c (remote_target, extended_remote_target): New classes. | |
2412 | (remote_ops): Now a remote_target. | |
2413 | (extended_remote_ops): Now an extended_remote_target. | |
2414 | (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) | |
2415 | (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) | |
2416 | (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) | |
2417 | (remote_pass_signals, remote_set_syscall_catchpoint) | |
2418 | (remote_program_signals, ) | |
2419 | (remote_thread_always_alive): Remove target_ops parameter. | |
2420 | (remote_thread_alive, remote_thread_name) | |
2421 | (remote_update_thread_list, remote_threads_extra_info) | |
2422 | (remote_static_tracepoint_marker_at) | |
2423 | (remote_static_tracepoint_markers_by_strid) | |
2424 | (remote_get_ada_task_ptid, remote_close, remote_start_remote) | |
2425 | (remote_open): Refactor as methods of remote_target. | |
2426 | (extended_remote_open, extended_remote_detach) | |
2427 | (extended_remote_attach, extended_remote_post_attach): | |
2428 | (extended_remote_supports_disable_randomization) | |
2429 | (extended_remote_create_inferior): : Refactor as method of | |
2430 | extended_remote_target. | |
2431 | (remote_set_permissions, remote_open_1, remote_detach) | |
2432 | (remote_follow_fork, remote_follow_exec, remote_disconnect) | |
2433 | (remote_resume, remote_commit_resume, remote_stop) | |
2434 | (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) | |
2435 | (remote_terminal_ours, remote_wait, remote_fetch_registers) | |
2436 | (remote_prepare_to_store, remote_store_registers) | |
2437 | (remote_flash_erase, remote_flash_done, remote_files_info) | |
2438 | (remote_kill, remote_mourn, remote_insert_breakpoint) | |
2439 | (remote_remove_breakpoint, remote_insert_watchpoint) | |
2440 | (remote_watchpoint_addr_within_range) | |
2441 | (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) | |
2442 | (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) | |
2443 | (remote_supports_stopped_by_sw_breakpoint) | |
2444 | (remote_stopped_by_hw_breakpoint) | |
2445 | (remote_supports_stopped_by_hw_breakpoint) | |
2446 | (remote_stopped_by_watchpoint, remote_stopped_data_address) | |
2447 | (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) | |
2448 | (remote_verify_memory): Refactor as methods of remote_target. | |
2449 | (remote_write_qxfer, remote_read_qxfer): Remove target_ops | |
2450 | parameter. | |
2451 | (remote_xfer_partial, remote_get_memory_xfer_limit) | |
2452 | (remote_search_memory, remote_rcmd, remote_memory_map) | |
2453 | (remote_pid_to_str, remote_get_thread_local_address) | |
2454 | (remote_get_tib_address, remote_read_description): Refactor as | |
2455 | methods of remote_target. | |
2456 | (remote_target::fileio_open, remote_target::fileio_pwrite) | |
2457 | (remote_target::fileio_pread, remote_target::fileio_close): New. | |
2458 | (remote_hostio_readlink, remote_hostio_fstat) | |
2459 | (remote_filesystem_is_local, remote_can_execute_reverse) | |
2460 | (remote_supports_non_stop, remote_supports_disable_randomization) | |
2461 | (remote_supports_multi_process, remote_supports_cond_breakpoints) | |
2462 | (remote_supports_enable_disable_tracepoint) | |
2463 | (remote_supports_string_tracing) | |
2464 | (remote_can_run_breakpoint_commands, remote_trace_init) | |
2465 | (remote_download_tracepoint, remote_can_download_tracepoint) | |
2466 | (remote_download_trace_state_variable, remote_enable_tracepoint) | |
2467 | (remote_disable_tracepoint, remote_trace_set_readonly_regions) | |
2468 | (remote_trace_start, remote_get_trace_status) | |
2469 | (remote_get_tracepoint_status, remote_trace_stop) | |
2470 | (remote_trace_find, remote_get_trace_state_variable_value) | |
2471 | (remote_save_trace_data, remote_get_raw_trace_data) | |
2472 | (remote_set_disconnected_tracing, remote_core_of_thread) | |
2473 | (remote_set_circular_trace_buffer, remote_traceframe_info) | |
2474 | (remote_get_min_fast_tracepoint_insn_len) | |
2475 | (remote_set_trace_buffer_size, remote_set_trace_notes) | |
2476 | (remote_use_agent, remote_can_use_agent, remote_enable_btrace) | |
2477 | (remote_disable_btrace, remote_teardown_btrace) | |
2478 | (remote_read_btrace, remote_btrace_conf) | |
2479 | (remote_augmented_libraries_svr4_read, remote_load) | |
2480 | (remote_pid_to_exec_file, remote_can_do_single_step) | |
2481 | (remote_execution_direction, remote_thread_handle_to_thread_info): | |
2482 | Refactor as methods of remote_target. | |
2483 | (init_remote_ops, init_extended_remote_ops): Delete. | |
2484 | (remote_can_async_p, remote_is_async_p, remote_async) | |
2485 | (remote_thread_events, remote_upload_tracepoints) | |
2486 | (remote_upload_trace_state_variables): Refactor as methods of | |
2487 | remote_target. | |
2488 | (_initialize_remote): Remove references to init_remote_ops and | |
2489 | init_extended_remote_ops. | |
2490 | ||
2491 | * remote-sim.c (gdbsim_target): New class. | |
2492 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) | |
2493 | (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) | |
2494 | (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) | |
2495 | (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) | |
2496 | (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) | |
2497 | (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): | |
2498 | Refactor as methods of gdbsim_target. | |
2499 | (gdbsim_ops): Now a gdbsim_target. | |
2500 | (init_gdbsim_ops): Delete. | |
2501 | (gdbsim_cntrl_c): Adjust. | |
2502 | (_initialize_remote_sim): Remove reference to init_gdbsim_ops. | |
2503 | ||
2504 | * amd64-linux-nat.c (amd64_linux_nat_target): New class. | |
2505 | (the_amd64_linux_nat_target): New. | |
2506 | (amd64_linux_fetch_inferior_registers) | |
2507 | (amd64_linux_store_inferior_registers): Refactor as methods of | |
2508 | amd64_linux_nat_target. | |
2509 | (_initialize_amd64_linux_nat): Adjust. Set linux_target. | |
2510 | * i386-linux-nat.c: Don't include "linux-nat.h". | |
2511 | (i386_linux_nat_target): New class. | |
2512 | (the_i386_linux_nat_target): New. | |
2513 | (i386_linux_fetch_inferior_registers) | |
2514 | (i386_linux_store_inferior_registers, i386_linux_resume): Refactor | |
2515 | as methods of i386_linux_nat_target. | |
2516 | (_initialize_i386_linux_nat): Adjust. Set linux_target. | |
2517 | * inf-child.c (inf_child_ops): Delete. | |
2518 | (inf_child_fetch_inferior_registers) | |
2519 | (inf_child_store_inferior_registers): Delete. | |
2520 | (inf_child_post_attach, inf_child_prepare_to_store): Refactor as | |
2521 | methods of inf_child_target. | |
2522 | (inf_child_target::supports_terminal_ours) | |
2523 | (inf_child_target::terminal_init) | |
2524 | (inf_child_target::terminal_inferior) | |
2525 | (inf_child_target::terminal_ours_for_output) | |
2526 | (inf_child_target::terminal_ours, inf_child_target::interrupt) | |
2527 | (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): | |
2528 | New. | |
2529 | (inf_child_open, inf_child_disconnect, inf_child_close) | |
2530 | (inf_child_mourn_inferior, inf_child_maybe_unpush_target) | |
2531 | (inf_child_post_startup_inferior, inf_child_can_run) | |
2532 | (inf_child_pid_to_exec_file): Refactor as methods of | |
2533 | inf_child_target. | |
2534 | (inf_child_follow_fork): Delete. | |
2535 | (inf_child_target::can_create_inferior) | |
2536 | (inf_child_target::can_attach): New. | |
2537 | (inf_child_target::has_all_memory, inf_child_target::has_memory) | |
2538 | (inf_child_target::has_stack, inf_child_target::has_registers) | |
2539 | (inf_child_target::has_execution): New. | |
2540 | (inf_child_fileio_open, inf_child_fileio_pwrite) | |
2541 | (inf_child_fileio_pread, inf_child_fileio_fstat) | |
2542 | (inf_child_fileio_close, inf_child_fileio_unlink) | |
2543 | (inf_child_fileio_readlink, inf_child_use_agent) | |
2544 | (inf_child_can_use_agent): Refactor as methods of | |
2545 | inf_child_target. | |
2546 | (return_zero, inf_child_target): Delete. | |
2547 | (inf_child_target::inf_child_target): New. | |
2548 | * inf-child.h: Include "target.h". | |
2549 | (inf_child_target): Delete function prototype. | |
2550 | (inf_child_target): New class. | |
2551 | (inf_child_open_target, inf_child_mourn_inferior) | |
2552 | (inf_child_maybe_unpush_target): Delete. | |
2553 | * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. | |
2554 | (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) | |
2555 | (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) | |
2556 | (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) | |
2557 | (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) | |
2558 | (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) | |
2559 | (inf_ptrace_wait, inf_ptrace_xfer_partial) | |
2560 | (inf_ptrace_thread_alive, inf_ptrace_files_info) | |
2561 | (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as | |
2562 | methods of inf_ptrace_target. | |
2563 | (inf_ptrace_target): Delete function. | |
2564 | * inf-ptrace.h: Include "inf-child.h". | |
2565 | (inf_ptrace_target): Delete function declaration. | |
2566 | (inf_ptrace_target): New class. | |
2567 | (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. | |
2568 | * linux-nat.c (linux_target): New. | |
2569 | (linux_ops, linux_ops_saved, super_xfer_partial): Delete. | |
2570 | (linux_nat_target::~linux_nat_target): New. | |
2571 | (linux_child_post_attach, linux_child_post_startup_inferior) | |
2572 | (linux_child_follow_fork, linux_child_insert_fork_catchpoint) | |
2573 | (linux_child_remove_fork_catchpoint) | |
2574 | (linux_child_insert_vfork_catchpoint) | |
2575 | (linux_child_remove_vfork_catchpoint) | |
2576 | (linux_child_insert_exec_catchpoint) | |
2577 | (linux_child_remove_exec_catchpoint) | |
2578 | (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) | |
2579 | (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) | |
2580 | (linux_nat_resume, linux_nat_stopped_by_watchpoint) | |
2581 | (linux_nat_stopped_data_address) | |
2582 | (linux_nat_stopped_by_sw_breakpoint) | |
2583 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
2584 | (linux_nat_stopped_by_hw_breakpoint) | |
2585 | (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) | |
2586 | (linux_nat_kill, linux_nat_mourn_inferior) | |
2587 | (linux_nat_xfer_partial, linux_nat_thread_alive) | |
2588 | (linux_nat_update_thread_list, linux_nat_pid_to_str) | |
2589 | (linux_nat_thread_name, linux_child_pid_to_exec_file) | |
2590 | (linux_child_static_tracepoint_markers_by_strid) | |
2591 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
2592 | (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) | |
2593 | (linux_nat_supports_multi_process) | |
2594 | (linux_nat_supports_disable_randomization, linux_nat_async) | |
2595 | (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) | |
2596 | (linux_nat_core_of_thread, linux_nat_filesystem_is_local) | |
2597 | (linux_nat_fileio_open, linux_nat_fileio_readlink) | |
2598 | (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as | |
2599 | methods of linux_nat_target. | |
2600 | (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) | |
2601 | (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops | |
2602 | parameter. | |
2603 | (check_stopped_by_watchpoint): Adjust. | |
2604 | (linux_xfer_partial): Delete. | |
2605 | (linux_target_install_ops, linux_target, linux_nat_add_target): | |
2606 | Delete. | |
2607 | (linux_nat_target::linux_nat_target): New. | |
2608 | * linux-nat.h: Include "inf-ptrace.h". | |
2609 | (linux_nat_target): New. | |
2610 | (linux_target, linux_target_install_ops, linux_nat_add_target): | |
2611 | Delete function declarations. | |
2612 | (linux_target): Declare global. | |
2613 | * linux-thread-db.c (thread_db_target): New. | |
2614 | (thread_db_target::thread_db_target): New. | |
2615 | (thread_db_ops): Delete. | |
2616 | (the_thread_db_target): New. | |
2617 | (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) | |
2618 | (thread_db_update_thread_list, thread_db_pid_to_str) | |
2619 | (thread_db_extra_thread_info) | |
2620 | (thread_db_thread_handle_to_thread_info) | |
2621 | (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) | |
2622 | (thread_db_resume): Refactor as methods of thread_db_target. | |
2623 | (init_thread_db_ops): Delete. | |
2624 | (_initialize_thread_db): Remove reference to init_thread_db_ops. | |
2625 | * x86-linux-nat.c: Don't include "linux-nat.h". | |
2626 | (super_post_startup_inferior): Delete. | |
2627 | (x86_linux_nat_target::~x86_linux_nat_target): New. | |
2628 | (x86_linux_child_post_startup_inferior) | |
2629 | (x86_linux_read_description, x86_linux_enable_btrace) | |
2630 | (x86_linux_disable_btrace, x86_linux_teardown_btrace) | |
2631 | (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as | |
2632 | methods of x86_linux_nat_target. | |
2633 | (x86_linux_create_target): Delete. Bits folded ... | |
2634 | (x86_linux_add_target): ... here. Now takes a linux_nat_target | |
2635 | pointer. | |
2636 | * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". | |
2637 | (x86_linux_nat_target): New class. | |
2638 | (x86_linux_create_target): Delete. | |
2639 | (x86_linux_add_target): Now takes a linux_nat_target pointer. | |
2640 | * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) | |
2641 | (x86_region_ok_for_watchpoint, x86_stopped_data_address) | |
2642 | (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) | |
2643 | (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) | |
2644 | (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and | |
2645 | make extern. | |
2646 | (x86_use_watchpoints): Delete. | |
2647 | * x86-nat.h: Include "breakpoint.h" and "target.h". | |
2648 | (x86_use_watchpoints): Delete. | |
2649 | (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) | |
2650 | (x86_stopped_by_watchpoint, x86_stopped_data_address) | |
2651 | (x86_insert_watchpoint, x86_remove_watchpoint) | |
2652 | (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) | |
2653 | (x86_stopped_by_hw_breakpoint): New declarations. | |
2654 | (x86_nat_target): New template class. | |
2655 | ||
2656 | * ppc-linux-nat.c (ppc_linux_nat_target): New class. | |
2657 | (the_ppc_linux_nat_target): New. | |
2658 | (ppc_linux_fetch_inferior_registers) | |
2659 | (ppc_linux_can_use_hw_breakpoint) | |
2660 | (ppc_linux_region_ok_for_hw_watchpoint) | |
2661 | (ppc_linux_ranged_break_num_registers) | |
2662 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
2663 | (ppc_linux_insert_mask_watchpoint) | |
2664 | (ppc_linux_remove_mask_watchpoint) | |
2665 | (ppc_linux_can_accel_watchpoint_condition) | |
2666 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) | |
2667 | (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) | |
2668 | (ppc_linux_watchpoint_addr_within_range) | |
2669 | (ppc_linux_masked_watch_num_registers) | |
2670 | (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) | |
2671 | (ppc_linux_read_description): Refactor as methods of | |
2672 | ppc_linux_nat_target. | |
2673 | (_initialize_ppc_linux_nat): Adjust. Set linux_target. | |
2674 | ||
2675 | * procfs.c (procfs_xfer_partial): Delete forward declaration. | |
2676 | (procfs_target): New class. | |
2677 | (the_procfs_target): New. | |
2678 | (procfs_target): Delete function. | |
2679 | (procfs_auxv_parse, procfs_attach, procfs_detach) | |
2680 | (procfs_fetch_registers, procfs_store_registers, procfs_wait) | |
2681 | (procfs_xfer_partial, procfs_resume, procfs_pass_signals) | |
2682 | (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) | |
2683 | (procfs_create_inferior, procfs_update_thread_list) | |
2684 | (procfs_thread_alive, procfs_pid_to_str) | |
2685 | (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) | |
2686 | (procfs_stopped_data_address, procfs_insert_watchpoint) | |
2687 | (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) | |
2688 | (proc_find_memory_regions, procfs_info_proc) | |
2689 | (procfs_make_note_section): Refactor as methods of procfs_target. | |
2690 | (_initialize_procfs): Adjust. | |
2691 | * sol-thread.c (sol_thread_target): New class. | |
2692 | (sol_thread_ops): Now a sol_thread_target. | |
2693 | (sol_thread_detach, sol_thread_resume, sol_thread_wait) | |
2694 | (sol_thread_fetch_registers, sol_thread_store_registers) | |
2695 | (sol_thread_xfer_partial, sol_thread_mourn_inferior) | |
2696 | (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) | |
2697 | (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. | |
2698 | (init_sol_thread_ops): Delete. | |
2699 | (_initialize_sol_thread): Adjust. Remove references to | |
2700 | init_sol_thread_ops and complete_target_initialization. | |
2701 | ||
2702 | * windows-nat.c (windows_nat_target): New class. | |
2703 | (windows_fetch_inferior_registers) | |
2704 | (windows_store_inferior_registers, windows_resume, windows_wait) | |
2705 | (windows_attach, windows_detach, windows_pid_to_exec_file) | |
2706 | (windows_files_info, windows_create_inferior) | |
2707 | (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) | |
2708 | (windows_close, windows_pid_to_str, windows_xfer_partial) | |
2709 | (windows_get_tib_address, windows_get_ada_task_ptid) | |
2710 | (windows_thread_name, windows_thread_alive): Refactor as | |
2711 | windows_nat_target methods. | |
2712 | (do_initial_windows_stuff): Adjust. | |
2713 | (windows_target): Delete function. | |
2714 | (_initialize_windows_nat): Adjust. | |
2715 | ||
2716 | * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) | |
2717 | (darwin_mourn_inferior, darwin_kill_inferior) | |
2718 | (darwin_create_inferior, darwin_attach, darwin_detach) | |
2719 | (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) | |
2720 | (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) | |
2721 | (darwin_supports_multi_process): Refactor as darwin_nat_target | |
2722 | methods. | |
2723 | (darwin_resume_to, darwin_files_info): Delete. | |
2724 | (_initialize_darwin_inferior): Rename to ... | |
2725 | (_initialize_darwin_nat): ... this. Adjust to C++ification. | |
2726 | * darwin-nat.h: Include "inf-child.h". | |
2727 | (darwin_nat_target): New class. | |
2728 | (darwin_complete_target): Delete. | |
2729 | * i386-darwin-nat.c (i386_darwin_nat_target): New class. | |
2730 | (darwin_target): New. | |
2731 | (i386_darwin_fetch_inferior_registers) | |
2732 | (i386_darwin_store_inferior_registers): Refactor as methods of | |
2733 | darwin_nat_target. | |
2734 | (darwin_complete_target): Delete, with ... | |
2735 | (_initialize_i386_darwin_nat): ... bits factored out here. | |
2736 | ||
2737 | * alpha-linux-nat.c (alpha_linux_nat_target): New class. | |
2738 | (the_alpha_linux_nat_target): New. | |
2739 | (alpha_linux_register_u_offset): Refactor as | |
2740 | alpha_linux_nat_target method. | |
2741 | (_initialize_alpha_linux_nat): Adjust. | |
2742 | * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. | |
2743 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
2744 | (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as | |
2745 | methods of linux_nat_trad_target. | |
2746 | (linux_trad_target): Delete. | |
2747 | * linux-nat-trad.h (linux_trad_target): Delete function. | |
2748 | (linux_nat_trad_target): New class. | |
2749 | * mips-linux-nat.c (mips_linux_nat_target): New class. | |
2750 | (super_fetch_registers, super_store_registers, super_close): | |
2751 | Delete. | |
2752 | (the_mips_linux_nat_target): New. | |
2753 | (mips64_linux_regsets_fetch_registers) | |
2754 | (mips64_linux_regsets_store_registers) | |
2755 | (mips64_linux_fetch_registers, mips64_linux_store_registers) | |
2756 | (mips_linux_register_u_offset, mips_linux_read_description) | |
2757 | (mips_linux_can_use_hw_breakpoint) | |
2758 | (mips_linux_stopped_by_watchpoint) | |
2759 | (mips_linux_stopped_data_address) | |
2760 | (mips_linux_region_ok_for_hw_watchpoint) | |
2761 | (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) | |
2762 | (mips_linux_close): Refactor as methods of mips_linux_nat. | |
2763 | (_initialize_mips_linux_nat): Adjust to C++ification. | |
2764 | ||
2765 | * aix-thread.c (aix_thread_target): New class. | |
2766 | (aix_thread_ops): Now an aix_thread_target. | |
2767 | (aix_thread_detach, aix_thread_resume, aix_thread_wait) | |
2768 | (aix_thread_fetch_registers, aix_thread_store_registers) | |
2769 | (aix_thread_xfer_partial, aix_thread_mourn_inferior) | |
2770 | (aix_thread_thread_alive, aix_thread_pid_to_str) | |
2771 | (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): | |
2772 | Refactor as methods of aix_thread_target. | |
2773 | (init_aix_thread_ops): Delete. | |
2774 | (_initialize_aix_thread): Remove references to init_aix_thread_ops | |
2775 | and complete_target_initialization. | |
2776 | * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. | |
2777 | (rs6000_nat_target): New class. | |
2778 | (the_rs6000_nat_target): New. | |
2779 | (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) | |
2780 | (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) | |
2781 | (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. | |
2782 | (super_create_inferior): Delete. | |
2783 | (_initialize_rs6000_nat): Adjust to C++ification. | |
2784 | ||
2785 | * arm-linux-nat.c (arm_linux_nat_target): New class. | |
2786 | (the_arm_linux_nat_target): New. | |
2787 | (arm_linux_fetch_inferior_registers) | |
2788 | (arm_linux_store_inferior_registers, arm_linux_read_description) | |
2789 | (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) | |
2790 | (arm_linux_remove_hw_breakpoint) | |
2791 | (arm_linux_region_ok_for_hw_watchpoint) | |
2792 | (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) | |
2793 | (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) | |
2794 | (arm_linux_watchpoint_addr_within_range): Refactor as methods of | |
2795 | arm_linux_nat_target. | |
2796 | (_initialize_arm_linux_nat): Adjust to C++ification. | |
2797 | ||
2798 | * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. | |
2799 | (the_aarch64_linux_nat_target): New. | |
2800 | (aarch64_linux_fetch_inferior_registers) | |
2801 | (aarch64_linux_store_inferior_registers) | |
2802 | (aarch64_linux_child_post_startup_inferior) | |
2803 | (aarch64_linux_read_description) | |
2804 | (aarch64_linux_can_use_hw_breakpoint) | |
2805 | (aarch64_linux_insert_hw_breakpoint) | |
2806 | (aarch64_linux_remove_hw_breakpoint) | |
2807 | (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) | |
2808 | (aarch64_linux_region_ok_for_hw_watchpoint) | |
2809 | (aarch64_linux_stopped_data_address) | |
2810 | (aarch64_linux_stopped_by_watchpoint) | |
2811 | (aarch64_linux_watchpoint_addr_within_range) | |
2812 | (aarch64_linux_can_do_single_step): Refactor as methods of | |
2813 | aarch64_linux_nat_target. | |
2814 | (super_post_startup_inferior): Delete. | |
2815 | (_initialize_aarch64_linux_nat): Adjust to C++ification. | |
2816 | ||
2817 | * hppa-linux-nat.c (hppa_linux_nat_target): New class. | |
2818 | (the_hppa_linux_nat_target): New. | |
2819 | (hppa_linux_fetch_inferior_registers) | |
2820 | (hppa_linux_store_inferior_registers): Refactor as methods of | |
2821 | hppa_linux_nat_target. | |
2822 | (_initialize_hppa_linux_nat): Adjust to C++ification. | |
2823 | ||
2824 | * ia64-linux-nat.c (ia64_linux_nat_target): New class. | |
2825 | (the_ia64_linux_nat_target): New. | |
2826 | (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) | |
2827 | (ia64_linux_stopped_data_address) | |
2828 | (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) | |
2829 | (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as | |
2830 | ia64_linux_nat_target methods. | |
2831 | (super_xfer_partial): Delete. | |
2832 | (_initialize_ia64_linux_nat): Adjust to C++ification. | |
2833 | ||
2834 | * m32r-linux-nat.c (m32r_linux_nat_target): New class. | |
2835 | (the_m32r_linux_nat_target): New. | |
2836 | (m32r_linux_fetch_inferior_registers) | |
2837 | (m32r_linux_store_inferior_registers): Refactor as | |
2838 | m32r_linux_nat_target methods. | |
2839 | (_initialize_m32r_linux_nat): Adjust to C++ification. | |
2840 | ||
2841 | * m68k-linux-nat.c (m68k_linux_nat_target): New class. | |
2842 | (the_m68k_linux_nat_target): New. | |
2843 | (m68k_linux_fetch_inferior_registers) | |
2844 | (m68k_linux_store_inferior_registers): Refactor as | |
2845 | m68k_linux_nat_target methods. | |
2846 | (_initialize_m68k_linux_nat): Adjust to C++ification. | |
2847 | ||
2848 | * s390-linux-nat.c (s390_linux_nat_target): New class. | |
2849 | (the_s390_linux_nat_target): New. | |
2850 | (s390_linux_fetch_inferior_registers) | |
2851 | (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) | |
2852 | (s390_insert_watchpoint, s390_remove_watchpoint) | |
2853 | (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) | |
2854 | (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) | |
2855 | (s390_auxv_parse, s390_read_description): Refactor as methods of | |
2856 | s390_linux_nat_target. | |
2857 | (_initialize_s390_nat): Adjust to C++ification. | |
2858 | ||
2859 | * sparc-linux-nat.c (sparc_linux_nat_target): New class. | |
2860 | (the_sparc_linux_nat_target): New. | |
2861 | (_initialize_sparc_linux_nat): Adjust to C++ification. | |
2862 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
2863 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
2864 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
2865 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
2866 | * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. | |
2867 | (the_sparc64_linux_nat_target): New. | |
2868 | (_initialize_sparc64_linux_nat): Adjust to C++ification. | |
2869 | ||
2870 | * spu-linux-nat.c (spu_linux_nat_target): New class. | |
2871 | (the_spu_linux_nat_target): New. | |
2872 | (spu_child_post_startup_inferior, spu_child_post_attach) | |
2873 | (spu_child_wait, spu_fetch_inferior_registers) | |
2874 | (spu_store_inferior_registers, spu_xfer_partial) | |
2875 | (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target | |
2876 | methods. | |
2877 | (_initialize_spu_nat): Adjust to C++ification. | |
2878 | ||
2879 | * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. | |
2880 | (the_tilegx_linux_nat_target): New. | |
2881 | (fetch_inferior_registers, store_inferior_registers): | |
2882 | Refactor as methods. | |
2883 | (_initialize_tile_linux_nat): Adjust to C++ification. | |
2884 | ||
2885 | * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. | |
2886 | (the_xtensa_linux_nat_target): New. | |
2887 | (xtensa_linux_fetch_inferior_registers) | |
2888 | (xtensa_linux_store_inferior_registers): Refactor as | |
2889 | xtensa_linux_nat_target methods. | |
2890 | (_initialize_xtensa_linux_nat): Adjust to C++ification. | |
2891 | ||
2892 | * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. | |
2893 | (fbsd_pid_to_exec_file, fbsd_find_memory_regions) | |
2894 | (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) | |
2895 | (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) | |
2896 | (fbsd_update_thread_list, fbsd_resume, fbsd_wait) | |
2897 | (fbsd_stopped_by_sw_breakpoint) | |
2898 | (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) | |
2899 | (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) | |
2900 | (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) | |
2901 | (fbsd_post_startup_inferior, fbsd_post_attach) | |
2902 | (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) | |
2903 | (fbsd_set_syscall_catchpoint) | |
2904 | (super_xfer_partial, super_resume, super_wait) | |
2905 | (fbsd_supports_stopped_by_hw_breakpoint): Delete. | |
2906 | (fbsd_handle_debug_trap): Remove target_ops parameter. | |
2907 | (fbsd_nat_add_target): Delete. | |
2908 | * fbsd-nat.h: Include "inf-ptrace.h". | |
2909 | (fbsd_nat_add_target): Delete. | |
2910 | (USE_SIGTRAP_SIGINFO): Define. | |
2911 | (fbsd_nat_target): New class. | |
2912 | ||
2913 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
2914 | (amd64bsd_store_inferior_registers): Remove target_ops parameter. | |
2915 | (amd64bsd_target): Delete. | |
2916 | * amd64-bsd-nat.h: New file. | |
2917 | * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of | |
2918 | "x86-bsd-nat.h". | |
2919 | (amd64_fbsd_nat_target): New class. | |
2920 | (the_amd64_fbsd_nat_target): New. | |
2921 | (amd64fbsd_read_description): Refactor as method of | |
2922 | amd64_fbsd_nat_target. | |
2923 | (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
2924 | (_initialize_amd64fbsd_nat): Adjust to C++ification. | |
2925 | * amd64-nat.h (amd64bsd_target): Delete function declaration. | |
2926 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) | |
2927 | (i386bsd_store_inferior_registers): Remove target_ops parameter. | |
2928 | (i386bsd_target): Delete. | |
2929 | * i386-bsd-nat.h (i386bsd_target): Delete function declaration. | |
2930 | (i386bsd_fetch_inferior_registers) | |
2931 | (i386bsd_store_inferior_registers): Declare. | |
2932 | (i386_bsd_nat_target): New class. | |
2933 | * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. | |
2934 | (the_i386_fbsd_nat_target): New. | |
2935 | (i386fbsd_resume, i386fbsd_read_description): Refactor as | |
2936 | i386_fbsd_nat_target methods. | |
2937 | (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
2938 | (_initialize_i386fbsd_nat): Adjust to C++ification. | |
2939 | * x86-bsd-nat.c (super_mourn_inferior): Delete. | |
2940 | (x86bsd_mourn_inferior, x86bsd_target): Delete. | |
2941 | (_initialize_x86_bsd_nat): Adjust to C++ification. | |
2942 | * x86-bsd-nat.h: Include "x86-nat.h". | |
2943 | (x86bsd_target): Delete declaration. | |
2944 | (x86bsd_nat_target): New class. | |
2945 | ||
2946 | * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. | |
2947 | (the_aarch64_fbsd_nat_target): New. | |
2948 | (aarch64_fbsd_fetch_inferior_registers) | |
2949 | (aarch64_fbsd_store_inferior_registers): Refactor as methods of | |
2950 | aarch64_fbsd_nat_target. | |
2951 | (_initialize_aarch64_fbsd_nat): Adjust to C++ification. | |
2952 | * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. | |
2953 | (the_alpha_bsd_nat_target): New. | |
2954 | (alphabsd_fetch_inferior_registers) | |
2955 | (alphabsd_store_inferior_registers): Refactor as | |
2956 | alpha_bsd_nat_target methods. | |
2957 | (_initialize_alphabsd_nat): Refactor as methods of | |
2958 | alpha_bsd_nat_target. | |
2959 | * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". | |
2960 | (the_amd64_nbsd_nat_target): New. | |
2961 | (_initialize_amd64nbsd_nat): Adjust to C++ification. | |
2962 | * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". | |
2963 | (the_amd64_obsd_nat_target): New. | |
2964 | (_initialize_amd64obsd_nat): Adjust to C++ification. | |
2965 | * arm-fbsd-nat.c (arm_fbsd_nat_target): New. | |
2966 | (the_arm_fbsd_nat_target): New. | |
2967 | (arm_fbsd_fetch_inferior_registers) | |
2968 | (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): | |
2969 | (_initialize_arm_fbsd_nat): Refactor as methods of | |
2970 | arm_fbsd_nat_target. | |
2971 | (_initialize_arm_fbsd_nat): Adjust to C++ification. | |
2972 | * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. | |
2973 | (the_arm_netbsd_nat_target): New. | |
2974 | (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as | |
2975 | arm_netbsd_nat_target. | |
2976 | (_initialize_arm_netbsd_nat): Adjust to C++ification. | |
2977 | * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. | |
2978 | (the_hppa_nbsd_nat_target): New. | |
2979 | (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as | |
2980 | hppa_nbsd_nat_target methods. | |
2981 | (_initialize_hppanbsd_nat): Adjust to C++ification. | |
2982 | * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. | |
2983 | (the_hppa_obsd_nat_target): New. | |
2984 | (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as | |
2985 | methods of hppa_obsd_nat_target. | |
2986 | (_initialize_hppaobsd_nat): Adjust to C++ification. Use | |
2987 | add_target. | |
2988 | * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. | |
2989 | (_initialize_i386nbsd_nat): Adjust to C++ification. Use | |
2990 | add_target. | |
2991 | * i386-obsd-nat.c (the_i386_obsd_nat_target): New. | |
2992 | (_initialize_i386obsd_nat): Use add_target. | |
2993 | * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. | |
2994 | (the_m68k_bsd_nat_target): New. | |
2995 | (m68kbsd_fetch_inferior_registers) | |
2996 | (m68kbsd_store_inferior_registers): Refactor as methods of | |
2997 | m68k_bsd_nat_target. | |
2998 | (_initialize_m68kbsd_nat): Adjust to C++ification. | |
2999 | * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. | |
3000 | (the_mips_fbsd_nat_target): New. | |
3001 | (mips_fbsd_fetch_inferior_registers) | |
3002 | (mips_fbsd_store_inferior_registers): Refactor as methods of | |
3003 | mips_fbsd_nat_target. | |
3004 | (_initialize_mips_fbsd_nat): Adjust to C++ification. Use | |
3005 | add_target. | |
3006 | * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. | |
3007 | (the_mips_nbsd_nat_target): New. | |
3008 | (mipsnbsd_fetch_inferior_registers) | |
3009 | (mipsnbsd_store_inferior_registers): Refactor as methods of | |
3010 | mips_nbsd_nat_target. | |
3011 | (_initialize_mipsnbsd_nat): Adjust to C++ification. | |
3012 | * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. | |
3013 | (the_mips64_obsd_nat_target): New. | |
3014 | (mips64obsd_fetch_inferior_registers) | |
3015 | (mips64obsd_store_inferior_registers): Refactor as methods of | |
3016 | mips64_obsd_nat_target. | |
3017 | (_initialize_mips64obsd_nat): Adjust to C++ification. Use | |
3018 | add_target. | |
3019 | * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of | |
3020 | nbsd_nat_target. | |
3021 | * nbsd-nat.h: Include "inf-ptrace.h". | |
3022 | (nbsd_nat_target): New class. | |
3023 | * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) | |
3024 | (obsd_wait): Refactor as methods of obsd_nat_target. | |
3025 | (obsd_add_target): Delete. | |
3026 | * obsd-nat.h: Include "inf-ptrace.h". | |
3027 | (obsd_nat_target): New class. | |
3028 | * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. | |
3029 | (the_ppc_fbsd_nat_target): New. | |
3030 | (ppcfbsd_fetch_inferior_registers) | |
3031 | (ppcfbsd_store_inferior_registers): Refactor as methods of | |
3032 | ppc_fbsd_nat_target. | |
3033 | (_initialize_ppcfbsd_nat): Adjust to C++ification. Use | |
3034 | add_target. | |
3035 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. | |
3036 | (the_ppc_nbsd_nat_target): New. | |
3037 | (ppcnbsd_fetch_inferior_registers) | |
3038 | (ppcnbsd_store_inferior_registers): Refactor as methods of | |
3039 | ppc_nbsd_nat_target. | |
3040 | (_initialize_ppcnbsd_nat): Adjust to C++ification. | |
3041 | * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. | |
3042 | (the_ppc_obsd_nat_target): New. | |
3043 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as | |
3044 | methods of ppc_obsd_nat_target. | |
3045 | (_initialize_ppcobsd_nat): Adjust to C++ification. Use | |
3046 | add_target. | |
3047 | * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. | |
3048 | (the_sh_nbsd_nat_target): New. | |
3049 | (shnbsd_fetch_inferior_registers) | |
3050 | (shnbsd_store_inferior_registers): Refactor as methods of | |
3051 | sh_nbsd_nat_target. | |
3052 | (_initialize_shnbsd_nat): Adjust to C++ification. | |
3053 | * sparc-nat.c (sparc_xfer_wcookie): Make extern. | |
3054 | (inf_ptrace_xfer_partial): Delete. | |
3055 | (sparc_xfer_partial, sparc_target): Delete. | |
3056 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
3057 | (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. | |
3058 | (sparc_target): Delete function declaration. | |
3059 | (sparc_target): New template class. | |
3060 | * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. | |
3061 | (_initialize_sparcnbsd_nat): Adjust to C++ification. | |
3062 | * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. | |
3063 | (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use | |
3064 | add_target. | |
3065 | * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. | |
3066 | (_initialize_sparc64nbsd_nat): Adjust to C++ification. | |
3067 | * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. | |
3068 | (_initialize_sparc64obsd_nat): Adjust to C++ification. Use | |
3069 | add_target. | |
3070 | * vax-bsd-nat.c (vax_bsd_nat_target): New class. | |
3071 | (the_vax_bsd_nat_target): New. | |
3072 | (vaxbsd_fetch_inferior_registers) | |
3073 | (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target | |
3074 | methods. | |
3075 | (_initialize_vaxbsd_nat): Adjust to C++ification. | |
3076 | ||
3077 | * bsd-kvm.c (bsd_kvm_target): New class. | |
3078 | (bsd_kvm_ops): Now a bsd_kvm_target. | |
3079 | (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) | |
3080 | (bsd_kvm_files_info, bsd_kvm_fetch_registers) | |
3081 | (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of | |
3082 | bsd_kvm_target. | |
3083 | (bsd_kvm_return_one): Delete. | |
3084 | (bsd_kvm_add_target): Adjust to C++ification. | |
3085 | ||
3086 | * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) | |
3087 | (nto_procfs_target_procfs): New classes. | |
3088 | (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) | |
3089 | (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) | |
3090 | (procfs_post_attach, procfs_wait, procfs_fetch_registers) | |
3091 | (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) | |
3092 | (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) | |
3093 | (procfs_remove_hw_breakpoint, procfs_resume) | |
3094 | (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) | |
3095 | (procfs_kill_inferior, procfs_store_registers) | |
3096 | (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor | |
3097 | as methods of nto_procfs_target. | |
3098 | (nto_procfs_ops): Now an nto_procfs_target_procfs. | |
3099 | (nto_native_ops): Delete. | |
3100 | (procfs_open, procfs_native_open): Delete. | |
3101 | (nto_native_ops): Now an nto_procfs_target_native. | |
3102 | (init_procfs_targets): Adjust to C++ification. | |
3103 | (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) | |
3104 | (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): | |
3105 | Refactor as methods of nto_procfs_target. | |
3106 | ||
3107 | * go32-nat.c (go32_nat_target): New class. | |
3108 | (the_go32_nat_target): New. | |
3109 | (go32_attach, go32_resume, go32_wait, go32_fetch_registers) | |
3110 | (go32_store_registers, go32_xfer_partial, go32_files_info) | |
3111 | (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) | |
3112 | (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) | |
3113 | (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) | |
3114 | (go32_pid_to_str): Refactor as methods of go32_nat_target. | |
3115 | (go32_target): Delete. | |
3116 | (_initialize_go32_nat): Adjust to C++ification. | |
3117 | ||
3118 | * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) | |
3119 | (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) | |
3120 | (gnu_stop, gnu_thread_alive, gnu_xfer_partial) | |
3121 | (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of | |
3122 | gnu_nat_target. | |
3123 | (gnu_target): Delete. | |
3124 | * gnu-nat.h (gnu_target): Delete. | |
3125 | (gnu_nat_target): New class. | |
3126 | * i386-gnu-nat.c (gnu_base_target): New. | |
3127 | (i386_gnu_nat_target): New class. | |
3128 | (the_i386_gnu_nat_target): New. | |
3129 | (_initialize_i386gnu_nat): Adjust to C++ification. | |
3130 | ||
3fffc070 PA |
3131 | 2018-05-02 Pedro Alves <palves@redhat.com> |
3132 | ||
3133 | * bfd-target.c (target_bfd_xclose): Rename to ... | |
3134 | (target_bfd_close): ... this. | |
3135 | (target_bfd_reopen): Adjust. | |
3136 | * target.c (target_close): Remove references to to_xclose. | |
3137 | * target.h (target_ops::to_xclose): Delete. | |
3138 | (target_ops::to_close): Update comments. | |
3139 | ||
6798487f PA |
3140 | 2018-05-02 Pedro Alves <palves@redhat.com> |
3141 | ||
3142 | * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of | |
3143 | "linux-nat.h". | |
3144 | * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. | |
3145 | * inf-ptrace.c (inf_ptrace_register_u_offset) | |
3146 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
3147 | (inf_ptrace_store_register, inf_ptrace_store_registers) | |
3148 | (inf_ptrace_trad_target): Move to ... | |
3149 | * linux-nat-trad.c: ... this new file. | |
3150 | * linux-nat-trad.h: New file. | |
3151 | * linux-nat.c (linux_target_install_ops): Make extern. | |
3152 | (linux_trad_target): Delete. | |
3153 | * linux-nat.h (linux_trad_target): Delete declaration. | |
3154 | (linux_target_install_ops): Declare. | |
3155 | * mips-linux-nat.c: Include "linux-nat-trad.h" instead of | |
3156 | "linux-nat.h". | |
3157 | ||
c1955e17 PA |
3158 | 2018-05-02 Pedro Alves <palves@redhat.com> |
3159 | ||
3160 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
3161 | procfs_target/add_target here. | |
3162 | * procfs.c (procfs_target): Make static. | |
3163 | (_initialize_procfs): Call add_target here. | |
3164 | * procfs.h (struct target_ops): Remove forward declaration. | |
3165 | (procfs_target): Remove declaration. | |
3166 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. | |
3167 | ||
b5c8fcb1 PA |
3168 | 2018-05-02 Pedro Alves <palves@redhat.com> |
3169 | ||
3170 | * procfs.c (procfs_stopped_by_watchpoint) | |
3171 | (procfs_insert_watchpoint, procfs_remove_watchpoint) | |
3172 | (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): | |
3173 | Forward declare. | |
3174 | (procfs_use_watchpoints): Delete, move contents... | |
3175 | (procfs_target): ... here. | |
3176 | * procfs.h (procfs_use_watchpoints): Delete declaration. | |
3177 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
3178 | procfs_use_watchpoints. | |
3179 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call | |
3180 | procfs_use_watchpoints. | |
3181 | ||
0489430a TT |
3182 | 2018-05-02 Tom Tromey <tom@tromey.com> |
3183 | ||
3184 | PR python/20084: | |
3185 | * python/python.c (gdbpy_parameter_value): Handle var_zuinteger | |
3186 | and var_zuinteger_unlimited. | |
3187 | * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER | |
3188 | and PARAM_ZUINTEGER_UNLIMITED. | |
3189 | (set_parameter_value): Handle var_zuinteger and | |
3190 | var_zuinteger_unlimited. | |
3191 | (add_setshow_generic): Likewise. | |
3192 | (parmpy_init): Likewise. | |
3193 | ||
1632f8ba DR |
3194 | 2018-04-28 Dan Robertson <danlrobertson89@gmail.com> |
3195 | ||
3196 | PR rust/23124 | |
3197 | * gdb/rust-exp.y (convert_params_to_types): Ensure that the params | |
3198 | pointer is not null before dereferencing it. | |
3199 | ||
76761936 TT |
3200 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3201 | ||
3202 | * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of | |
3203 | is_mi_like_p. | |
3204 | ||
2d33446d TT |
3205 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3206 | ||
3207 | * breakpoint.c (mention): Remove use of is_mi_like_p. | |
3208 | (print_mention_ranged_breakpoint): Likewise. | |
3209 | * break-catch-throw.c (print_it_exception_catchpoint): Remove use | |
3210 | of is_mi_like_p. | |
3211 | ||
f3c6abab TT |
3212 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3213 | ||
3214 | * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. | |
3215 | ||
40c03530 TT |
3216 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3217 | ||
3218 | * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) | |
3219 | (info_spu_event_command): Remove some uses of is_mi_like_p. | |
3220 | ||
2038b7fd TT |
3221 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3222 | ||
3223 | * python/py-framefilter.c (py_print_single_arg) | |
3224 | (enumerate_locals, py_print_args, py_print_frame): Remove some | |
3225 | uses of is_mi_like_p. | |
3226 | ||
4904c3c6 TT |
3227 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3228 | ||
3229 | * ui-out.c: Update. | |
3230 | * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. | |
3231 | * ui-out.h (ui_out::is_mi_like_p): Now const. | |
3232 | (ui_out::do_is_mi_like_p): Now const. | |
3233 | * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. | |
3234 | ||
7c66fffc TT |
3235 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3236 | ||
3237 | * varobj.c (varobj_set_visualizer): Use new_reference. | |
3238 | * python/python.c (gdbpy_decode_line): Use new_reference. | |
3239 | * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use | |
3240 | new_reference. | |
3241 | ||
bbfa6f00 TT |
3242 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3243 | ||
3244 | * varobj.c (install_new_value): Use new_reference. | |
3245 | * value.h (value_incref): Return void. Swap intro comment with | |
3246 | value_decref. | |
3247 | * value.c (set_value_parent): Use new_reference. | |
3248 | (value_incref): Return void. Update intro comment. | |
3249 | (release_value): Use new_reference. | |
3250 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. | |
3251 | ||
1831a9f9 TT |
3252 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3253 | ||
3254 | * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. | |
3255 | * gdb_bfd.h (new_bfd_ref): Remove. | |
3256 | (gdb_bfd_open): Update comment. | |
3257 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
3258 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) | |
3259 | (gdb_bfd_fdopenr): Use new_reference. | |
3260 | * exec.c (exec_file_attach): Use new_reference. | |
3261 | ||
7c1b5f3d TT |
3262 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3263 | ||
3264 | * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static | |
3265 | method. | |
3266 | ||
e11fb955 TT |
3267 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3268 | ||
3269 | * jit.c (jit_read_code_entry): Use type_align. | |
3270 | * i386-tdep.c (i386_gdbarch_init): Don't call | |
3271 | set_gdbarch_long_long_align_bit. | |
3272 | * gdbarch.sh: Remove long_long_align_bit. | |
3273 | * gdbarch.c, gdbarch.h: Rebuild. | |
3274 | * arc-tdep.c (arc_type_align): New function. | |
3275 | (arc_gdbarch_init): Use arc_type_align. Don't call | |
3276 | set_gdbarch_long_long_align_bit. | |
3277 | ||
2fff16dd TT |
3278 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3279 | ||
3280 | * rust-lang.c (rust_type_alignment): Remove. | |
3281 | (rust_composite_type): Use type_align. | |
3282 | ||
6d7bb824 TT |
3283 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3284 | ||
3285 | * NEWS: Mention Type.align. | |
3286 | * python/py-type.c (typy_get_alignof): New function. | |
3287 | (type_object_getset): Add "alignof". | |
3288 | ||
007e1530 TT |
3289 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3290 | ||
3291 | PR exp/17095: | |
3292 | * NEWS: Update. | |
3293 | * std-operator.def (UNOP_ALIGNOF): New operator. | |
3294 | * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: | |
3295 | New. | |
3296 | * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. | |
3297 | * c-lang.c (c_op_print_tab): Add alignof. | |
3298 | * c-exp.y (ALIGNOF): New token. | |
3299 | (exp): Add "ALIGNOF" production. | |
3300 | (ident_tokens): Add _Alignof and alignof. | |
3301 | ||
2b4424c3 TT |
3302 | 2018-04-30 Tom Tromey <tom@tromey.com> |
3303 | ||
3304 | * i386-tdep.c (i386_type_align): New function. | |
3305 | (i386_gdbarch_init): Update. | |
3306 | * gdbarch.sh (type_align): New method. | |
3307 | * gdbarch.c, gdbarch.h: Rebuild. | |
3308 | * arch-utils.h (default_type_align): Declare. | |
3309 | * arch-utils.c (default_type_align): New function. | |
3310 | * gdbtypes.h (TYPE_ALIGN_BITS): New define. | |
3311 | (struct type) <align_log2>: New field. | |
3312 | <instance_flags>: Now a bitfield. | |
3313 | (TYPE_RAW_ALIGN): New macro. | |
3314 | (type_align, type_raw_align, set_type_align): Declare. | |
3315 | * gdbtypes.c (type_align, type_raw_align, set_type_align): New | |
3316 | functions. | |
3317 | * dwarf2read.c (quirk_rust_enum): Set type alignment. | |
3318 | (get_alignment, maybe_set_alignment): New functions. | |
3319 | (read_structure_type, read_enumeration_type, read_array_type) | |
3320 | (read_set_type, read_tag_pointer_type, read_tag_reference_type) | |
3321 | (read_subrange_type, read_base_type): Set type alignment. | |
3322 | ||
d33bc52e SM |
3323 | 2018-04-30 Simon Marchi <simon.marchi@ericsson.com> |
3324 | ||
3325 | * dwarf2read.c (read_index_from_section): Use bool. | |
3326 | ||
e28b63a9 FG |
3327 | 2018-04-29 Fabian Groffen <grobian@gentoo.org> |
3328 | ||
3329 | PR gdb/22950 | |
3330 | * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys | |
3331 | with #ifdef. | |
3332 | ||
cd8c76e4 JR |
3333 | 2018-04-29 John Reiser <jreiser@BitWagon.com> |
3334 | ||
3335 | PR build/22873 | |
3336 | * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the | |
3337 | last step, and do it atomically. | |
3338 | ||
476d250e AO |
3339 | 2018-04-27 Alexandre Oliva <aoliva@redhat.com> |
3340 | ||
3341 | * compile/compile-c-types.c (convert_int, convert_float): | |
3342 | Update for C FE v1. | |
3343 | ||
6873858b TT |
3344 | 2018-04-27 Tom Tromey <tom@tromey.com> |
3345 | ||
3346 | PR rust/22545: | |
3347 | * rust-lang.c (rust_inclusive_range_type_p): New function. | |
3348 | (rust_range): Handle inclusive ranges. | |
3349 | (rust_compute_range): Likewise. | |
3350 | * rust-exp.y (struct rust_op) <inclusive>: New field. | |
3351 | (DOTDOTEQ): New constant. | |
3352 | (range_expr): Add "..=" productions. | |
3353 | (operator_tokens): Add "..=" token. | |
3354 | (ast_range): Add "inclusive" parameter. | |
3355 | (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive | |
3356 | ranges. | |
3357 | * parse.c (operator_length_standard) <case OP_RANGE>: Handle new | |
3358 | bounds values. | |
3359 | * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, | |
3360 | LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. | |
3361 | Update comments. | |
3362 | * expprint.c (print_subexp_standard): Handle new bounds values. | |
3363 | (dump_subexp_body_standard): Likewise. | |
3364 | ||
632e107b TT |
3365 | 2018-04-27 Tom Tromey <tom@tromey.com> |
3366 | ||
3367 | * configure: Rebuild. | |
3368 | * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. | |
3369 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not | |
3370 | "OVERRIDE". | |
3371 | (class symbol_needs_eval_context): Likewise. | |
3372 | * dwarf2read.c (mock_mapped_index::symbol_name_count) | |
3373 | (mock_mapped_index::symbol_name_at): Use "override". Remove | |
3374 | "virtual". | |
3375 | * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use | |
3376 | "override". | |
3377 | (class dwarf_expr_executor): Use "override", not "OVERRIDE". | |
3378 | * aarch64-tdep.c (instruction_reader::read): Use "override". | |
3379 | (instruction_reader_test::read): Likewise. | |
3380 | * arm-tdep.c (instruction_reader::read): Use "override". | |
3381 | (instruction_reader_thumb::read): Likewise. | |
3382 | ||
b75abf5b AK |
3383 | 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> |
3384 | ||
3385 | PR remote/9665 | |
3386 | * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result | |
3387 | instead of remote_send. | |
3388 | (remote_send): Remove. | |
3389 | ||
79188d8d PA |
3390 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3391 | ||
3392 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use | |
3393 | find_function_start_sal instead of find_pc_line. | |
3394 | ||
f50776aa PA |
3395 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3396 | ||
3397 | * breakpoint.c (set_breakpoint_location_function): Handle | |
3398 | mst_data_gnu_ifunc. | |
3399 | * c-exp.y (variable production): Handle mst_data_gnu_ifunc. | |
3400 | * elfread.c (elf_symtab_read): Give data symbols with | |
3401 | BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. | |
3402 | (elf_rel_plt_read): Update comment. | |
3403 | * linespec.c (convert_linespec_to_sals): Handle | |
3404 | mst_data_gnu_ifunc. | |
3405 | (minsym_found): Handle mst_data_gnu_ifunc. | |
3406 | * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) | |
3407 | (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. | |
3408 | * parse.c (find_minsym_type_and_address): Handle | |
3409 | mst_data_gnu_ifunc. | |
3410 | * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. | |
3411 | * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. | |
3412 | * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update | |
3413 | comment. | |
3414 | <mst_data_gnu_ifunc>: New enumerator. | |
3415 | ||
20944a6e PA |
3416 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3417 | ||
3418 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... | |
3419 | (lookup_minimal_symbol_by_pc_section): ... this. Replace | |
3420 | 'want_trampoline' parameter by a lookup_msym_prefer parameter. | |
3421 | Handle it. | |
3422 | (lookup_minimal_symbol_by_pc_section): Delete old implementation. | |
3423 | (lookup_minimal_symbol_by_pc): Adjust. | |
3424 | (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. | |
3425 | (lookup_solib_trampoline_symbol_by_pc): Adjust. | |
3426 | * minsyms.h (lookup_msym_prefer): New enum. | |
3427 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
3428 | parameter by a lookup_msym_prefer parameter. | |
3429 | ||
1adeb822 PA |
3430 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3431 | ||
3432 | * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name | |
3433 | ends in "@plt" instead of looking at the symbol's section. | |
3434 | ||
a0aca7b0 PA |
3435 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3436 | ||
3437 | * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove | |
3438 | all references. | |
3439 | (find_pc_partial_function_gnu_ifunc): Rename to ... | |
3440 | (find_pc_partial_function): ... this, and remove references to | |
3441 | 'is_gnu_ifunc_p'. | |
3442 | (find_pc_partial_function): Delete old implementation. | |
3443 | * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. | |
3444 | ||
76af0f26 PA |
3445 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3446 | ||
3447 | * linespec.c (struct bound_minimal_symbol_search_key): New. | |
3448 | (convert_linespec_to_sals): Sort minimal symbols earlier. Don't | |
3449 | skip first line if we found a GNU ifunc minimal symbol by name. | |
3450 | (compare_msymbols): Change parameters to work with a destructured | |
3451 | lhs minsym. | |
3452 | (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New | |
3453 | functions. | |
3454 | ||
3467ec66 PA |
3455 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3456 | ||
3457 | * breakpoint.c (set_breakpoint_location_function): Don't resolve | |
3458 | ifunc targets here. Instead, if we have an ifunc minsym, use its | |
3459 | address/name. | |
3460 | (add_location_to_breakpoint): Store the minsym and the objfile in | |
3461 | the breakpoint location. | |
3462 | * breakpoint.h (bp_location) <msymbol, objfile>: New fields. | |
3463 | * linespec.c (minsym_found): Resolve GNU ifunc targets here. | |
3464 | Record the minsym in the sal. | |
3465 | * symtab.h (symtab_and_line) <msymbol>: New field. | |
3466 | ||
28f4fa4d PA |
3467 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3468 | ||
3469 | * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P | |
3470 | unless we actually resolved the ifunc. | |
3471 | ||
ca31ab1d PA |
3472 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3473 | ||
3474 | * c-exp.y (variable production): Prefer ifunc minsyms over | |
3475 | regular function symbols. | |
3476 | * symtab.c (find_gnu_ifunc): New function. | |
3477 | * minsyms.h (lookup_msym_prefer): New enum. | |
3478 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
3479 | parameter by a lookup_msym_prefer parameter. | |
3480 | * symtab.h (find_gnu_ifunc): New declaration. | |
3481 | ||
8388016d PA |
3482 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3483 | ||
3484 | * blockframe.c (find_gnu_ifunc_target_type): New function. | |
3485 | (find_function_type): New. | |
3486 | * eval.c (evaluate_var_msym_value): For GNU ifunc types, always | |
3487 | return a value with a memory address. | |
3488 | (eval_call): For calls to GNU ifunc functions, try to find the | |
3489 | type of the target function from the type that the resolver | |
3490 | returns. | |
3491 | * gdbtypes.c (objfile_type): Don't install a return type for ifunc | |
3492 | symbols. | |
3493 | * infcall.c (find_function_return_type): Delete. | |
3494 | (find_function_addr): Add 'function_type' parameter. For calls to | |
3495 | GNU ifunc functions, try to find the type of the target function | |
3496 | from the type that the resolver returns, and return it via | |
3497 | FUNCTION_TYPE. | |
3498 | (call_function_by_hand_dummy): Adjust to use the function type | |
3499 | returned by find_function_addr. | |
3500 | (find_function_addr): Add 'function_type' parameter and move | |
3501 | description here. | |
3502 | * symtab.h (find_function_type, find_gnu_ifunc_target_type): New | |
3503 | declarations. | |
3504 | ||
a376e11d PA |
3505 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3506 | ||
3507 | * c-exp.y (variable production): Skip finding an alias for ifunc | |
3508 | symbols. | |
3509 | ||
02e169e2 PA |
3510 | 2018-04-26 Pedro Alves <palves@redhat.com> |
3511 | ||
3512 | * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. | |
3513 | ||
249b5733 PA |
3514 | 2018-04-25 Pedro Alves <palves@redhat.com> |
3515 | ||
3516 | * infcmd.c (kill_command): Print the pid as string, not the whole | |
3517 | thread's ptid. Add comment. s/has been killed/killed/ in output | |
3518 | message. | |
3519 | * remote.c (remote_detach_1): Print the pid as string, not the | |
3520 | whole thread's ptid. | |
3521 | ||
f67c0c91 SDJ |
3522 | 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3523 | Sergio Durigan Junior <sergiodj@redhat.com> | |
3524 | Pedro Alves <palves@redhat.com> | |
3525 | ||
3526 | * infcmd.c (kill_command): Print message when inferior has | |
3527 | been killed. | |
3528 | * inferior.c (print_inferior_events): Remove 'static'. Set as | |
3529 | '1'. | |
3530 | (add_inferior): Improve message printed when | |
3531 | 'print_inferior_events' is on. | |
3532 | (exit_inferior): Remove message printed when | |
3533 | 'print_inferior_events' is on. | |
3534 | (detach_inferior): Improve message printed when | |
3535 | 'print_inferior_events' is on. | |
3536 | (initialize_inferiors): Use 'add_inferior_silent' to set | |
3537 | 'current_inferior_'. | |
3538 | * inferior.h (print_inferior_events): Declare here as | |
3539 | 'extern'. | |
3540 | * infrun.c (follow_fork_inferior): Print '[Attaching...]' or | |
3541 | '[Detaching...]' messages when 'print_inferior_events' is on. | |
3542 | Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' | |
3543 | as prefix/suffix for messages. Remove periods. Fix erroneous | |
3544 | 'Detaching after fork from child...', replace it by '... from | |
3545 | parent...'. | |
3546 | (handle_vfork_child_exec_or_exit): Add '[' and ']' as | |
3547 | prefix/suffix when printing 'Detaching...' messages. Print | |
3548 | them when 'print_inferior_events' is on. | |
3549 | * remote.c (remote_detach_1): Print message when detaching | |
3550 | from inferior and '!is_fork_parent'. | |
3551 | ||
e427af18 TT |
3552 | 2018-04-24 Tom Tromey <tom@tromey.com> |
3553 | ||
3554 | * cli-out.h: Reindent. | |
3555 | ||
05b1d8d6 TT |
3556 | 2018-04-24 Tom Tromey <tom@tromey.com> |
3557 | ||
3558 | * cli-out.c (cli_ui_out::out_field_fmt): Remove. | |
3559 | (cli_ui_out::do_field_string): Use fputs_filtered. | |
3560 | * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. | |
3561 | ||
a95c7dab TT |
3562 | 2018-04-23 Tom Tromey <tom@tromey.com> |
3563 | ||
3564 | * guile/scm-frame.c (gdbscm_frame_read_var): Use | |
3565 | gdb::unique_xmalloc_ptr. | |
3566 | ||
458412c3 TT |
3567 | 2018-04-23 Tom Tromey <tom@tromey.com> |
3568 | ||
3569 | * configure: Rebuild. | |
3570 | ||
db86b02b RS |
3571 | 2018-04-22 Rajendra SY <rajendra.sy@gmail.com> |
3572 | ||
3573 | PR gdb/23095 | |
3574 | * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to | |
3575 | prepare_for_testing. Set normal_bp to r_debug_state if target | |
3576 | is bsd. | |
3577 | ||
00aecdcf PA |
3578 | 2018-04-21 Pedro Alves <palves@redhat.com> |
3579 | Rajendra SY <rajendra.sy@gmail.com> | |
3580 | ||
3581 | * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. | |
3582 | * remote.c (extended_remote_attach): In all-stop mode, mark the | |
3583 | thread as executing. | |
3584 | ||
224608c3 PW |
3585 | 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3586 | ||
3587 | * thread.c (thread_apply_all_command): Fix comment. | |
3588 | (thread_command): Fix comment. | |
3589 | ||
3b74854b AH |
3590 | 2018-04-10 Alan Hayward <alan.hayward@arm.com> |
3591 | ||
3592 | * common/tdesc.h (tdesc_create_feature): Remove xml filename | |
3593 | parameter. | |
3594 | * features/aarch64-core.c (create_feature_aarch64_core): | |
3595 | Regenerate. | |
3596 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): | |
3597 | Likewise. | |
3598 | * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): | |
3599 | Likewise. | |
3600 | * features/i386/32bit-avx512.c | |
3601 | (create_feature_i386_32bit_avx512): Likewise. | |
3602 | * features/i386/32bit-core.c (create_feature_i386_32bit_core): | |
3603 | Likewise. | |
3604 | * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): | |
3605 | Likewise. | |
3606 | * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): | |
3607 | Likewise. | |
3608 | * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): | |
3609 | Likewise. | |
3610 | * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): | |
3611 | Likewise. | |
3612 | * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): | |
3613 | Likewise. | |
3614 | * features/i386/64bit-avx512.c | |
3615 | (create_feature_i386_64bit_avx512): Likewise. | |
3616 | * features/i386/64bit-core.c (create_feature_i386_64bit_core): | |
3617 | Likewise. | |
3618 | * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): | |
3619 | Likewise. | |
3620 | * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): | |
3621 | Likewise. | |
3622 | * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): | |
3623 | Likewise. | |
3624 | * features/i386/64bit-segments.c | |
3625 | (create_feature_i386_64bit_segments): Likewise. | |
3626 | * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): | |
3627 | Likewise. | |
3628 | * features/i386/x32-core.c | |
3629 | (create_feature_i386_x32_core): Likewise. | |
3630 | * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. | |
3631 | * features/tic6x-core.c (create_feature_tic6x_core): Likewise. | |
3632 | * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. | |
3633 | * target-descriptions.c: In generated code, don't pass xml | |
3634 | filename. | |
3635 | ||
e98577a9 AH |
3636 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
3637 | ||
3638 | * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. | |
3639 | (print_xml_feature::visit_post): Likewise. | |
3640 | (print_xml_feature::visit): Likewise. | |
3641 | * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. | |
3642 | (print_xml_feature): Add new class. | |
3643 | * regformats/regdat.sh: Null xmltarget on feature targets. | |
3644 | * target-descriptions.c (struct target_desc): Add xmltarget. | |
3645 | (maintenance_check_tdesc_xml_convert): Add unittest function. | |
3646 | (tdesc_get_features_xml): Add function to get xml. | |
3647 | (maintenance_check_xml_descriptions): Test xml generation. | |
3648 | * xml-tdesc.c (string_read_description_xml): Add function. | |
3649 | * xml-tdesc.h (string_read_description_xml): Add declaration. | |
3650 | ||
ad7fc756 AH |
3651 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
3652 | ||
3653 | * features/Makefile: Add feature marker to targets with new style | |
3654 | target descriptions. | |
3655 | * regformats/aarch64.dat: Regenerate. | |
3656 | * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. | |
3657 | * regformats/i386/amd64-avx-linux.dat: Likewise. | |
3658 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. | |
3659 | * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. | |
3660 | * regformats/i386/amd64-linux.dat: Likewise. | |
3661 | * regformats/i386/amd64-mpx-linux.dat: Likewise. | |
3662 | * regformats/i386/amd64.dat: Likewise. | |
3663 | * regformats/i386/i386-avx-avx512-linux.dat: Likewise. | |
3664 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
3665 | * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. | |
3666 | * regformats/i386/i386-avx-mpx-linux.dat: Likewise. | |
3667 | * regformats/i386/i386-linux.dat: Likewise. | |
3668 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
3669 | * regformats/i386/i386-mpx-linux.dat: Likewise. | |
3670 | * regformats/i386/i386.dat: Likewise. | |
3671 | * regformats/i386/x32-avx-avx512-linux.dat: Likewise. | |
3672 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
3673 | * regformats/i386/x32-linux.dat: Likewise. | |
3674 | * regformats/tic6x-c62x-linux.dat: Likewise. | |
3675 | * regformats/tic6x-c64x-linux.dat: Likewise. | |
3676 | * regformats/tic6x-c64xp-linux.dat: Likewise. | |
3677 | * regformats/regdat.sh: Parse feature marker. | |
3678 | ||
d278f585 AH |
3679 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
3680 | ||
3681 | * common/tdesc.h (tdesc_architecture_name): Add new declaration. | |
3682 | (tdesc_osabi_name): Likewise. | |
3683 | * target-descriptions.c (tdesc_architecture_name): Add new | |
3684 | function. | |
3685 | (tdesc_osabi_name): Likewise. | |
3686 | ||
eee8a18d AH |
3687 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
3688 | ||
3689 | * common/tdesc.c (tdesc_predefined_type): Move to here. | |
3690 | (tdesc_named_type): Likewise. | |
3691 | (tdesc_create_vector): Likewise. | |
3692 | (tdesc_create_struct): Likewise. | |
3693 | (tdesc_set_struct_size): Likewise. | |
3694 | (tdesc_create_union): Likewise. | |
3695 | (tdesc_create_flags): Likewise. | |
3696 | (tdesc_create_enum): Likewise. | |
3697 | (tdesc_add_field): Likewise. | |
3698 | (tdesc_add_typed_bitfield): Likewise. | |
3699 | (tdesc_add_bitfield): Likewise. | |
3700 | (tdesc_add_flag): Likewise. | |
3701 | (tdesc_add_enum_value): Likewise. | |
3702 | * common/tdesc.h (struct tdesc_type_builtin): Likewise. | |
3703 | (struct tdesc_type_vector): Likewise. | |
3704 | (struct tdesc_type_field): Likewise. | |
3705 | (struct tdesc_type_with_fields): Likewise. | |
3706 | (tdesc_create_enum): Add declaration. | |
3707 | (tdesc_add_typed_bitfield): Likewise. | |
3708 | (tdesc_add_enum_value): Likewise. | |
3709 | * target-descriptions.c (tdesc_type_field): Move from here. | |
3710 | (tdesc_type_builtin): Likewise. | |
3711 | (tdesc_type_vector): Likewise. | |
3712 | (tdesc_type_with_fields): Likewise. | |
3713 | (tdesc_predefined_types): Likewise. | |
3714 | (tdesc_named_type): Likewise. | |
3715 | (tdesc_create_vector): Likewise. | |
3716 | (tdesc_create_struct): Likewise. | |
3717 | (tdesc_set_struct_size): Likewise. | |
3718 | (tdesc_create_union): Likewise. | |
3719 | (tdesc_create_flags): Likewise. | |
3720 | (tdesc_create_enum): Likewise. | |
3721 | (tdesc_add_field): Likewise. | |
3722 | (tdesc_add_typed_bitfield): Likewise. | |
3723 | (tdesc_add_bitfield): Likewise. | |
3724 | (tdesc_add_flag): Likewise. | |
3725 | (tdesc_add_enum_value): Likewise. | |
3726 | * gdb/target-descriptions.h (tdesc_create_enum): Likewise. | |
3727 | (tdesc_add_typed_bitfield): Likewise. | |
3728 | (tdesc_add_enum_value): Likewise. | |
3729 | ||
82ec9bc7 AH |
3730 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
3731 | ||
3732 | * common/tdesc.c (tdesc_feature::accept): Move to here. | |
3733 | (tdesc_feature::operator==): Likewise. | |
3734 | (tdesc_create_reg): Likewise. | |
3735 | * common/tdesc.h (tdesc_type_kind): Likewise. | |
3736 | (struct tdesc_type): Likewise. | |
3737 | (struct tdesc_feature): Likewise. | |
3738 | * regformats/regdat.sh: Create a feature. | |
3739 | * target-descriptions.c (tdesc_type_kind): Move from here. | |
3740 | (tdesc_type): Likewise. | |
3741 | (tdesc_type_up): Likewise. | |
3742 | (tdesc_feature): Likewise. | |
3743 | (tdesc_create_reg): Likewise. | |
3744 | ||
ea3e7d71 AH |
3745 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
3746 | ||
3747 | * Makefile.in: Add arch/tdesc.c | |
3748 | * common/tdesc.c: New file. | |
3749 | * common/tdesc.h (tdesc_element_visitor): Move to here. | |
3750 | (tdesc_element): Likewise. | |
3751 | (tdesc_reg): Likewise. | |
3752 | (tdesc_reg_up): Likewise. | |
3753 | * regformats/regdef.h (reg): Add offset to constructors. | |
3754 | * target-descriptions.c (tdesc_element_visitor): Move from here. | |
3755 | (tdesc_element): Likewise. | |
3756 | (tdesc_reg): Likewise. | |
3757 | (tdesc_reg_up): Likewise. | |
3758 | ||
bedda9ac TT |
3759 | 2018-04-17 Tom Tromey <tom@tromey.com> |
3760 | ||
3761 | * dwarf2read.c (quirk_rust_enum): Conditionally drop the | |
3762 | discriminant field. | |
3763 | ||
a037790e TT |
3764 | 2018-04-17 Tom Tromey <tom@tromey.com> |
3765 | ||
3766 | * dwarf2read.c (quirk_rust_enum): Handle unions correctly. | |
3767 | ||
c7dcbf88 AA |
3768 | 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3769 | ||
3770 | * symtab.c (print_symbol_info): Skip printing filename and line | |
3771 | number when `last' is NULL. | |
3772 | (symtab_symbol_info): Use empty string instead of NULL for first | |
3773 | invocation of print_symbol_info. | |
3774 | (rbreak_command): Pass NULL to `last' parameter of | |
3775 | print_symbol_info. | |
3776 | ||
07d28c77 SM |
3777 | 2018-04-16 Simon Marchi <simon.marchi@ericsson.com> |
3778 | ||
3779 | * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data | |
3780 | instead of nullptr. | |
3781 | ||
8a3de5e1 PA |
3782 | 2018-04-16 Pedro Alves <palves@redhat.com> |
3783 | ||
3784 | * MAINTAINERS (sh): Remove. | |
3785 | * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. | |
3786 | (HFILES_NO_SRCDIR): Remove sh64-tdep.h. | |
3787 | (ALLDEPFILES): Remove sh64-tdep.c. | |
3788 | * NEWS: Mentions that support for SH-5/SH64 is removed. | |
3789 | * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. | |
3790 | (sh*-*-openbsd*): Ditto. | |
3791 | (sh64-*-elf*): Remove. | |
3792 | (sh*): Remove. | |
3793 | * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. | |
3794 | * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. | |
3795 | * sh-tdep.c: No longer include "sh64-tdep.h". | |
3796 | (sh_gdbarch_init): Remove reference to bfd_mach_sh5. | |
3797 | * sh64-tdep.c, sh64-tdep.h: Remove files. | |
3798 | ||
a2a79012 PA |
3799 | 2018-04-16 Pedro Alves <palves@redhat.com> |
3800 | ||
3801 | * MAINTAINERS: Remove m88k. | |
3802 | * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. | |
3803 | (HFILES_NO_SRCDIR): Remove m88k-tdep.h. | |
3804 | (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. | |
3805 | * NEWS: Mention that support for m88k was removed. | |
3806 | * configure.host (m88*-*-*): Remove support. | |
3807 | * configure.nat (m88k-*-*): Remove support. | |
3808 | * configure.tgt (m88*-*-openbsd*): Remove. | |
3809 | * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. | |
3810 | ||
eda4efb1 SM |
3811 | 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> |
3812 | ||
3813 | * configure.tgt (x86_tobjs): New variable. | |
3814 | (amd64_tobjs, i386_tobjs): Use it. | |
3815 | ||
b744723f AA |
3816 | 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3817 | ||
3818 | * symtab.c (print_symbol_info): Precede the symbol definition by | |
3819 | the line number when available. | |
3820 | * NEWS: Advertise this enhancement. | |
3821 | ||
4a4495d6 MM |
3822 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
3823 | ||
3824 | * NEWS (New options): announce set/show record btrace cpu. | |
3825 | * btrace.c: Include record-btrace.h. | |
3826 | (btrace_compute_ftrace_pt): Skip enabling errata workarounds if | |
3827 | the vendor is unknown. | |
3828 | (btrace_compute_ftrace_1): Add cpu parameter. Update callers. | |
3829 | Maybe overwrite the btrace configuration's cpu. | |
3830 | (btrace_compute_ftrace): Add cpu parameter. Update callers. | |
3831 | (btrace_fetch): Add cpu parameter. Update callers. | |
3832 | (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. | |
3833 | Maybe overwrite the btrace configuration's cpu. Skip enabling | |
3834 | errata workarounds if the vendor is unknown. | |
3835 | * python/py-record-btrace.c: Include record-btrace.h. | |
3836 | (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) | |
3837 | (recpy_bt_function_call_history): Call record_btrace_get_cpu. | |
3838 | * record-btrace.c (record_btrace_cpu_state_kind): New. | |
3839 | (record_btrace_cpu): New. | |
3840 | (set_record_btrace_cpu_cmdlist): New. | |
3841 | (record_btrace_get_cpu): New. | |
3842 | (require_btrace_thread, record_btrace_info) | |
3843 | (record_btrace_resume_thread): Call record_btrace_get_cpu. | |
3844 | (cmd_set_record_btrace_cpu_none): New. | |
3845 | (cmd_set_record_btrace_cpu_auto): New. | |
3846 | (cmd_set_record_btrace_cpu): New. | |
3847 | (cmd_show_record_btrace_cpu): New. | |
3848 | (_initialize_record_btrace): Initialize set/show record btrace cpu | |
3849 | commands. | |
3850 | * record-btrace.h (record_btrace_get_cpu): New. | |
3851 | ||
69f90c75 MM |
3852 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
3853 | ||
3854 | * record.c (set_record_command): Fix typo in message. | |
3855 | ||
b85310e1 MM |
3856 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
3857 | ||
3858 | * record-btrace.c (cmd_set_record_btrace): Print sub-commands. | |
3859 | ||
1d509aa6 MM |
3860 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
3861 | ||
3862 | * infrun.c (process_event_stop_test): Call | |
3863 | gdbarch_in_indirect_branch_thunk. | |
3864 | * gdbarch.sh (in_indirect_branch_thunk): New. | |
3865 | * gdbarch.c: Regenerated. | |
3866 | * gdbarch.h: Regenerated. | |
3867 | * x86-tdep.h: New. | |
3868 | * x86-tdep.c: New. | |
3869 | * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. | |
3870 | (HFILES_NO_SRCDIR): Add x86-tdep.h. | |
3871 | (ALLDEPFILES): Add x86-tdep.c. | |
3872 | * arch-utils.h (default_in_indirect_branch_thunk): New. | |
3873 | * arch-utils.c (default_in_indirect_branch_thunk): New. | |
3874 | * i386-tdep: Include x86-tdep.h. | |
3875 | (i386_in_indirect_branch_thunk): New. | |
3876 | (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch | |
3877 | function. | |
3878 | * amd64-tdep: Include x86-tdep.h. | |
3879 | (amd64_in_indirect_branch_thunk): New. | |
3880 | (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. | |
3881 | ||
b4be9bfd JK |
3882 | 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
3883 | ||
3884 | PR gdb/23053 | |
3885 | * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) | |
3886 | (recursively_write_psymbols) (debug_names::recursively_write_psymbols) | |
3887 | (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG | |
3888 | regression. | |
3889 | ||
53d7df28 TT |
3890 | 2018-04-12 Tom Tromey <tom@tromey.com> |
3891 | ||
3892 | * rust-lang.c (rust_print_struct_def): Remove univariant code. | |
3893 | (rust_evaluate_subexp): Likewise. | |
3894 | ||
70b33f19 PA |
3895 | 2018-04-12 Pedro Alves <palves@redhat.com> |
3896 | ||
3897 | * procfs.c (procfs_detach): Make forward declaration's prototype | |
3898 | match definition's protototype. | |
3899 | (proc_get_LDT_entry): Remove stale do_cleanups call. | |
3900 | ||
436411b1 PA |
3901 | 2018-04-12 Pedro Alves <palves@redhat.com> |
3902 | ||
3903 | * target.h (target_ops::to_has_exited): Delete. | |
3904 | (target_has_exited): Delete. | |
3905 | * target-delegates.c: Regenerate. | |
3906 | ||
20db9c52 PA |
3907 | 2018-04-11 Pedro Alves <palves@redhat.com> |
3908 | ||
3909 | * target.c (fileio_fh_t::t): Add comment. | |
3910 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
3911 | (target_fileio_close): Handle a NULL target. | |
3912 | (invalidate_fileio_fh): New. | |
3913 | (target_close): Call it. | |
3914 | * remote.c (remote_hostio_send_command): No longer check whether | |
3915 | remote_desc is open. | |
3916 | ||
5ff79300 PA |
3917 | 2018-04-11 Pedro Alves <palves@redhat.com> |
3918 | ||
3919 | * target.c (fileio_fh_t): Make it a named struct instead of a | |
3920 | typedef. | |
3921 | (fileio_fh_t::is_closed): New method. | |
3922 | (DEF_VEC_O (fileio_fh_t)): Remove. | |
3923 | (fileio_fhandles): Now a std::vector. | |
3924 | (is_closed_fileio_fh): Delete. | |
3925 | (acquire_fileio_fd): Adjust. Rename parameters. | |
3926 | (release_fileio_fd): Adjust. | |
3927 | (fileio_fd_to_fh): Reimplement as a function instead of a macro. | |
3928 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
3929 | (target_fileio_close): Adjust. | |
3930 | ||
6e22e10d SM |
3931 | 2018-04-10 Simon Marchi <simon.marchi@ericsson.com> |
3932 | ||
3933 | * auto-load.c (auto_load_safe_path_vec_update): Iterate by | |
3934 | index. | |
3935 | ||
731f534f PA |
3936 | 2018-04-10 Pedro Alves <palves@redhat.com> |
3937 | ||
3938 | * gdbthread.h (finish_thread_state_cleanup): Delete declaration. | |
3939 | (scoped_finish_thread_state): New class. | |
3940 | * infcmd.c (run_command_1): Use it instead of finish_thread_state | |
3941 | cleanup. | |
3942 | * infrun.c (proceed, prepare_for_detach, wait_for_inferior) | |
3943 | (fetch_inferior_event, normal_stop): Likewise. | |
3944 | * thread.c (finish_thread_state_cleanup): Delete. | |
3945 | ||
d5f4488f SM |
3946 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
3947 | Pedro Alves <palves@redhat.com> | |
3948 | ||
3949 | * value.c: Include "selftest.h" and "common/array-view.h". | |
3950 | (struct range) <operator ==>: New. | |
3951 | (test_ranges_contain): New. | |
3952 | (check_ranges_vector): New. | |
3953 | (test_insert_into_bit_range_vector): New. | |
3954 | (_initialize_values): Register selftests. | |
3955 | * common/array-view.h (operator==, operator!=): New. | |
3956 | ||
b24531ed SM |
3957 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
3958 | ||
3959 | * common/gdb_vecs.h (unordered_remove): Add overload that takes | |
3960 | an iterator. | |
3961 | * inline-frame.c: Include <algorithm>. | |
3962 | (struct inline_state): Add constructor. | |
3963 | (inline_state_s): Remove. | |
3964 | (DEF_VEC_O(inline_state_s)): Remove. | |
3965 | (inline_states): Change type to std::vector. | |
3966 | (find_inline_frame_state): Adjust to std::vector. | |
3967 | (allocate_inline_frame_state): Remove. | |
3968 | (clear_inline_frame_state): Adjust to std::vector. | |
3969 | (skip_inline_frames): Adjust to std::vector. | |
3970 | ||
c252925c SM |
3971 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
3972 | ||
3973 | * tracepoint.h (struct trace_state_variable): Add constructor. | |
3974 | <name>: Change type to std::string. | |
3975 | * tracepoint.c (tsv_s): Remove. | |
3976 | (DEF_VEC_O(tsv_s)): Remove. | |
3977 | (tvariables): Change to std::vector. | |
3978 | (create_trace_state_variable): Adjust to std::vector. | |
3979 | (find_trace_state_variable): Likewise. | |
3980 | (find_trace_state_variable_by_number): Likewise. | |
3981 | (delete_trace_state_variable): Likewise. | |
3982 | (trace_variable_command): Adjust to std::string. | |
3983 | (delete_trace_variable_command): Likewise. | |
3984 | (tvariables_info_1): Adjust to std::vector. | |
3985 | (save_trace_state_variables): Likewise. | |
3986 | (start_tracing): Likewise. | |
3987 | (merge_uploaded_trace_state_variables): Adjust to std::vector | |
3988 | and std::string. | |
3989 | * target.h (struct target_ops) | |
3990 | <to_download_trace_state_variable>: Pass reference to | |
3991 | trace_state_variable. | |
3992 | * target-debug.h (target_debug_print_const_trace_state_variable_r): New. | |
3993 | * target-delegates.c: Re-generate. | |
3994 | * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. | |
3995 | (mi_tsv_deleted): Likewise. | |
3996 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
3997 | * remote.c (remote_download_trace_state_variable): Change | |
3998 | pointer to reference and adjust. | |
3999 | * make-target-delegates (parse_argtypes): Handle references. | |
4000 | (write_function_header): Likewise. | |
4001 | (munge_type): Likewise. | |
4002 | ||
c9638d26 SM |
4003 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4004 | ||
4005 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4006 | string_view-selftests.c. | |
4007 | * unittests/basic_string_view/capacity/1.cc: Adapt to GDB | |
4008 | testsuite. | |
4009 | * unittests/basic_string_view/cons/char/1.cc: Likewise. | |
4010 | * unittests/basic_string_view/cons/char/2.cc: Likewise. | |
4011 | * unittests/basic_string_view/cons/char/3.cc: Likewise. | |
4012 | * unittests/basic_string_view/element_access/char/1.cc: | |
4013 | Likewise. | |
4014 | * unittests/basic_string_view/element_access/char/empty.cc: | |
4015 | Likewise. | |
4016 | * unittests/basic_string_view/element_access/char/front_back.cc: | |
4017 | Likewise. | |
4018 | * unittests/basic_string_view/inserters/char/2.cc: Likewise. | |
4019 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: | |
4020 | Likewise. | |
4021 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: | |
4022 | Likewise. | |
4023 | * unittests/basic_string_view/modifiers/swap/char/1.cc: | |
4024 | Likewise. | |
4025 | * unittests/basic_string_view/operations/compare/char/1.cc: | |
4026 | Likewise. | |
4027 | * unittests/basic_string_view/operations/compare/char/13650.cc: | |
4028 | Likewise. | |
4029 | * unittests/basic_string_view/operations/copy/char/1.cc: | |
4030 | Likewise. | |
4031 | * unittests/basic_string_view/operations/data/char/1.cc: | |
4032 | Likewise. | |
4033 | * unittests/basic_string_view/operations/find/char/1.cc: | |
4034 | Likewise. | |
4035 | * unittests/basic_string_view/operations/find/char/2.cc: | |
4036 | Likewise. | |
4037 | * unittests/basic_string_view/operations/find/char/3.cc: | |
4038 | Likewise. | |
4039 | * unittests/basic_string_view/operations/find/char/4.cc: | |
4040 | Likewise. | |
4041 | * unittests/basic_string_view/operations/rfind/char/1.cc: | |
4042 | Likewise. | |
4043 | * unittests/basic_string_view/operations/rfind/char/2.cc: | |
4044 | Likewise. | |
4045 | * unittests/basic_string_view/operations/rfind/char/3.cc: | |
4046 | Likewise. | |
4047 | * unittests/basic_string_view/operations/substr/char/1.cc: | |
4048 | Likewise. | |
4049 | * unittests/basic_string_view/operators/char/2.cc: Likewise. | |
4050 | * unittests/string_view-selftests.c: New file. | |
4051 | ||
fdc11678 SM |
4052 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4053 | ||
4054 | * unittests/basic_string_view/capacity/1.cc: New file. | |
4055 | * unittests/basic_string_view/capacity/empty_neg.cc: New file. | |
4056 | * unittests/basic_string_view/cons/char/1.cc: New file. | |
4057 | * unittests/basic_string_view/cons/char/2.cc: New file. | |
4058 | * unittests/basic_string_view/cons/char/3.cc: New file. | |
4059 | * unittests/basic_string_view/cons/wchar_t/1.cc: New file. | |
4060 | * unittests/basic_string_view/cons/wchar_t/2.cc: New file. | |
4061 | * unittests/basic_string_view/cons/wchar_t/3.cc: New file. | |
4062 | * unittests/basic_string_view/element_access/char/1.cc: New file. | |
4063 | * unittests/basic_string_view/element_access/char/2.cc: New file. | |
4064 | * unittests/basic_string_view/element_access/char/empty.cc: New file. | |
4065 | * unittests/basic_string_view/element_access/char/front_back.cc: New file. | |
4066 | * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. | |
4067 | * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. | |
4068 | * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. | |
4069 | * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. | |
4070 | * unittests/basic_string_view/include.cc: New file. | |
4071 | * unittests/basic_string_view/inserters/char/1.cc: New file. | |
4072 | * unittests/basic_string_view/inserters/char/2.cc: New file. | |
4073 | * unittests/basic_string_view/inserters/char/3.cc: New file. | |
4074 | * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. | |
4075 | * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. | |
4076 | * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. | |
4077 | * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. | |
4078 | * unittests/basic_string_view/literals/types.cc: New file. | |
4079 | * unittests/basic_string_view/literals/values.cc: New file. | |
4080 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. | |
4081 | * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. | |
4082 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. | |
4083 | * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. | |
4084 | * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. | |
4085 | * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. | |
4086 | * unittests/basic_string_view/operations/compare/char/1.cc: New file. | |
4087 | * unittests/basic_string_view/operations/compare/char/13650.cc: New file. | |
4088 | * unittests/basic_string_view/operations/compare/char/2.cc: New file. | |
4089 | * unittests/basic_string_view/operations/compare/char/70483.cc: New file. | |
4090 | * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. | |
4091 | * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. | |
4092 | * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. | |
4093 | * unittests/basic_string_view/operations/copy/char/1.cc: New file. | |
4094 | * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. | |
4095 | * unittests/basic_string_view/operations/data/char/1.cc: New file. | |
4096 | * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. | |
4097 | * unittests/basic_string_view/operations/find/char/1.cc: New file. | |
4098 | * unittests/basic_string_view/operations/find/char/2.cc: New file. | |
4099 | * unittests/basic_string_view/operations/find/char/3.cc: New file. | |
4100 | * unittests/basic_string_view/operations/find/char/4.cc: New file. | |
4101 | * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. | |
4102 | * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. | |
4103 | * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. | |
4104 | * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. | |
4105 | * unittests/basic_string_view/operations/rfind/char/1.cc: New file. | |
4106 | * unittests/basic_string_view/operations/rfind/char/2.cc: New file. | |
4107 | * unittests/basic_string_view/operations/rfind/char/3.cc: New file. | |
4108 | * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. | |
4109 | * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. | |
4110 | * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. | |
4111 | * unittests/basic_string_view/operations/string_conversion/1.cc: New file. | |
4112 | * unittests/basic_string_view/operations/substr/char/1.cc: New file. | |
4113 | * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. | |
4114 | * unittests/basic_string_view/operators/char/2.cc: New file. | |
4115 | * unittests/basic_string_view/operators/wchar_t/2.cc: New file. | |
4116 | * unittests/basic_string_view/range_access/char/1.cc: New file. | |
4117 | * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. | |
4118 | * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. | |
4119 | * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. | |
4120 | * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. | |
4121 | * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. | |
4122 | * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. | |
4123 | * unittests/basic_string_view/requirements/typedefs.cc: New file. | |
4124 | * unittests/basic_string_view/typedefs.cc: New file. | |
4125 | * unittests/basic_string_view/types/1.cc: New file. | |
4126 | ||
8345c4a2 SM |
4127 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4128 | ||
4129 | * common/gdb_string_view.h: Remove libstdc++ implementation | |
4130 | details, adjust to gdb reality. | |
4131 | * common/gdb_string_view.tcc: Likewise. | |
4132 | * cli/cli-script.c (struct string_view): Remove. | |
4133 | (user_args) <m_args>: Change element type to gdb::string_view. | |
4134 | (user_args::insert_args): Adjust. | |
4135 | ||
7adcdf08 SM |
4136 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4137 | ||
4138 | * common/gdb_string_view.h: New file. | |
4139 | * common/gdb_string_view.tcc: New file. | |
4140 | ||
41260ac2 SM |
4141 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4142 | ||
4143 | * ax_cxx_compile_stdcxx.m4: Sync with upstream. | |
4144 | * configure: Re-generate. | |
4145 | ||
0bee6dd4 PA |
4146 | 2018-04-09 Pedro Alves <palves@redhat.com> |
4147 | ||
4148 | * gdbarch.sh: Include "observable.h" instead of "observer.h". | |
4149 | (set_target_gdbarch): Call | |
4150 | gdb::observers::architecture_changed.notify instead of | |
4151 | observer_notify_architecture_changed. | |
4152 | ||
6f14adc5 SM |
4153 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4154 | ||
4155 | * tracepoint.c (struct current_traceframe_cleanup): Remove. | |
4156 | (do_restore_current_traceframe_cleanup): Remove. | |
4157 | (restore_current_traceframe_cleanup_dtor): Remove. | |
4158 | (make_cleanup_restore_current_traceframe): Remove. | |
4159 | (scoped_restore_current_traceframe::scoped_restore_current_traceframe): | |
4160 | New. | |
4161 | * tracepoint.h (struct scoped_restore_current_traceframe): New. | |
4162 | * infrun.c (fetch_inferior_event): Use | |
4163 | scoped_restore_current_traceframe. | |
4164 | ||
b2bdb8cf SM |
4165 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4166 | ||
4167 | * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: | |
4168 | Remove. | |
4169 | <n_allocated_type_units>: Remove. | |
4170 | <all_type_units>: Change to std::vector. | |
4171 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
4172 | to std::vector change. | |
4173 | (dwarf2_per_objfile::get_cutu): Likewise. | |
4174 | (dwarf2_per_objfile::get_tu): Likewise. | |
4175 | (create_signatured_type_table_from_index): Likewise. | |
4176 | (create_signatured_type_table_from_debug_names): Likewise. | |
4177 | (dw2_symtab_iter_next): Likewise. | |
4178 | (dw2_print_stats): Likewise. | |
4179 | (dw2_expand_all_symtabs): Likewise. | |
4180 | (dw2_expand_marked_cus): Likewise. | |
4181 | (dw2_debug_names_iterator::next): Likewise. | |
4182 | (dwarf2_initialize_objfile): Likewise. | |
4183 | (add_signatured_type_cu_to_table): Likewise. | |
4184 | (create_all_type_units): Likewise. | |
4185 | (add_type_unit): Likewise. | |
4186 | (struct tu_abbrev_offset): Add constructor. | |
4187 | (build_type_psymtabs_1): Adjust to std::vector change. | |
4188 | (print_tu_stats): Likewise. | |
4189 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
4190 | (write_debug_names): Likewise. | |
4191 | ||
b76e467d SM |
4192 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4193 | ||
4194 | * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. | |
4195 | Make an std::vector. | |
4196 | <n_comp_units>: Remove. | |
4197 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
4198 | to std::vector change. | |
4199 | (dwarf2_per_objfile::get_cutu): Likewise. | |
4200 | (dwarf2_per_objfile::get_cu): Likewise. | |
4201 | (create_cus_from_index): Likewise. | |
4202 | (create_addrmap_from_index): Likewise. | |
4203 | (create_addrmap_from_aranges): Likewise. | |
4204 | (dwarf2_read_index): Likewise. | |
4205 | (dw2_find_last_source_symtab): Likewise. | |
4206 | (dw2_map_symtabs_matching_filename): Likewise. | |
4207 | (dw2_symtab_iter_next): Likewise. | |
4208 | (dw2_print_stats): Likewise. | |
4209 | (dw2_expand_all_symtabs): Likewise. | |
4210 | (dw2_expand_symtabs_with_fullname): Likewise. | |
4211 | (dw2_expand_marked_cus): Likewise. | |
4212 | (dw2_map_symbol_filenames): Likewise. | |
4213 | (create_cus_from_debug_names): Likewise. | |
4214 | (dwarf2_read_debug_names): Likewise. | |
4215 | (dw2_debug_names_iterator::next): Likewise. | |
4216 | (dwarf2_initialize_objfile): Likewise. | |
4217 | (set_partial_user): Likewise. | |
4218 | (dwarf2_build_psymtabs_hard): Likewise. | |
4219 | (read_comp_units_from_section): Remove arguments, adjust to | |
4220 | std::vector change. | |
4221 | (create_all_comp_units): Adjust to std::vector and | |
4222 | read_comp_units_from_section changes. | |
4223 | (dwarf2_find_containing_comp_unit): Adjust to std::vector | |
4224 | change. | |
4225 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
4226 | (psyms_seen_size): Likewise. | |
4227 | (write_gdbindex): Likewise. | |
4228 | (write_debug_names): Likewise. | |
4229 | ||
12359b5e SM |
4230 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4231 | ||
4232 | * dwarf2read.c (create_cus_from_index_list): Replace objfile arg | |
4233 | with dwarf2_per_objfile. | |
4234 | (create_cus_from_index): Likewise. | |
4235 | (create_signatured_type_table_from_index): Likewise. | |
4236 | (dwarf2_read_index): Likewise. | |
4237 | (dwarf2_initialize_objfile): Likewise. | |
4238 | (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from | |
4239 | per_cu rather than get_dwarf2_per_objfile. | |
4240 | ||
ff4c9fec SM |
4241 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4242 | ||
4243 | * dwarf2read.h (struct signatured_type): Forward declare. | |
4244 | (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: | |
4245 | New methods. | |
4246 | * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... | |
4247 | (dw2_get_cutu): ...this. | |
4248 | (dwarf2_per_objfile::get_cu): Rename from... | |
4249 | (dw2_get_cu): ...this. | |
4250 | (dwarf2_per_objfile::get_tu): New. | |
4251 | (create_addrmap_from_index): Adjust. | |
4252 | (create_addrmap_from_aranges): Adjust. | |
4253 | (dw2_find_last_source_symtab): Adjust. | |
4254 | (dw2_map_symtabs_matching_filename): Adjust. | |
4255 | (dw2_symtab_iter_next): Adjust. | |
4256 | (dw2_print_stats): Adjust. | |
4257 | (dw2_expand_all_symtabs): Adjust. | |
4258 | (dw2_expand_symtabs_with_fullname): Adjust. | |
4259 | (dw2_expand_marked_cus): Adjust. | |
4260 | (dw_expand_symtabs_matching_file_matcher): Adjust. | |
4261 | (dw2_map_symbol_filenames): Adjust. | |
4262 | (dw2_debug_names_iterator::next): Adjust. | |
4263 | (dwarf2_initialize_objfile): Adjust. | |
4264 | (set_partial_user): Adjust. | |
4265 | (dwarf2_build_psymtabs_hard): Adjust. | |
4266 | ||
5ca3fcb6 SM |
4267 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4268 | ||
4269 | * dwarf2read.c (create_signatured_type_table_from_debug_names): | |
4270 | Remove unused variables. | |
4271 | (dw2_map_symtabs_matching_filename): Likewise. | |
4272 | (dwarf2_record_block_ranges): Likewise. | |
4273 | (dwarf2_read_addr_index): Likewise. | |
4274 | (follow_die_offset): Likewise. | |
4275 | ||
b2e586e8 SM |
4276 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4277 | ||
4278 | * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET | |
4279 | to symbol_file_add_main. | |
4280 | ||
7c4e78cf SM |
4281 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4282 | ||
4283 | PR mi/22299 | |
4284 | * mi/mi-console.c (do_fputc_async_safe): New. | |
4285 | (mi_console_file::write_async_safe): New. | |
4286 | (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. | |
4287 | * mi/mi-console.h (class mi_console_file) <write_async_safe>: | |
4288 | New. | |
4289 | * ui-file.c (ui_file::putstrn): Adjust call to | |
4290 | fputstrn_unfiltered. | |
4291 | * utils.c (printchar): Replace do_fputs and do_fprintf | |
4292 | parameters by do_fputc. | |
4293 | (fputstr_filtered): Adjust call to printchar. | |
4294 | (fputstr_unfiltered): Likewise. | |
4295 | (fputstrn_filtered): Likewise. | |
4296 | (fputstrn_unfiltered): Add do_fputc parameter, pass to | |
4297 | printchar. | |
4298 | * utils.h (do_fputc_ftype): New typedef. | |
4299 | (fputstrn_unfiltered): Add do_fputc parameter. | |
4300 | ||
5dc026d3 SM |
4301 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4302 | ||
4303 | * regformats/i386/i386-avx.dat: Remove. | |
4304 | ||
c912f608 SM |
4305 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
4306 | ||
4307 | PR gdb/22979 | |
4308 | * amd64-tdep.c (amd64_none_init_abi): New function. | |
4309 | (amd64_x32_none_init_abi): New function. | |
4310 | (_initialize_amd64_tdep): Register handlers for x86-64 and | |
4311 | x64_32 with GDB_OSABI_NONE. | |
4312 | * osabi.c (gdbarch_init_osabi): Allow running handlers for the | |
4313 | GDB_OSABI_NONE osabi. | |
4314 | ||
26540402 SM |
4315 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
4316 | ||
4317 | PR gdb/22980 | |
4318 | * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add | |
4319 | GDB_OSABI_NONE. | |
4320 | * arch-utils.c (gdbarch_info_init): Don't set info->osabi. | |
4321 | * osabi.c (gdb_osabi_names): Add "unknown" entry. | |
4322 | ||
9018be22 SM |
4323 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
4324 | ||
4325 | * common/byte-vector.h (char_vector): New type. | |
4326 | * target.h (target_read_alloc): Return | |
4327 | gdb::optional<byte_vector>. | |
4328 | (target_read_stralloc): Return gdb::optional<char_vector>. | |
4329 | (target_get_osdata): Return gdb::optional<char_vector>. | |
4330 | * target.c (target_read_alloc_1): Templatize. Replacement | |
4331 | manual memory management with vector. | |
4332 | (target_read_alloc): Change return type, adjust. | |
4333 | (target_read_stralloc): Change return type, adjust. | |
4334 | (target_get_osdata): Change return type, adjust. | |
4335 | * auxv.c (struct auxv_info) <length>: Remove. | |
4336 | <data>: Change type to gdb::optional<byte_vector>. | |
4337 | (auxv_inferior_data_cleanup): Free auxv_info with delete. | |
4338 | (get_auxv_inferior_data): Allocate auxv_info with new, adjust. | |
4339 | (target_auxv_search): Adjust. | |
4340 | (fprint_target_auxv): Adjust. | |
4341 | * avr-tdep.c (avr_io_reg_read_command): Adjust. | |
4342 | * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. | |
4343 | (linux_make_corefile_notes): Adjust. | |
4344 | * osdata.c (get_osdata): Adjust. | |
4345 | * remote.c (remote_get_threads_with_qxfer): Adjust. | |
4346 | (remote_memory_map): Adjust. | |
4347 | (remote_traceframe_info): Adjust. | |
4348 | (btrace_read_config): Adjust. | |
4349 | (remote_read_btrace): Adjust. | |
4350 | (remote_pid_to_exec_file): Adjust. | |
4351 | * solib-aix.c (solib_aix_get_library_list): Adjust. | |
4352 | * solib-dsbt.c (decode_loadmap): Don't free buf. | |
4353 | (dsbt_get_initial_loadmaps): Adjust. | |
4354 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. | |
4355 | * solib-target.c (solib_target_current_sos): Adjust. | |
4356 | * tracepoint.c (sdata_make_value): Adjust. | |
4357 | * xml-support.c (xinclude_start_include): Adjust. | |
4358 | (xml_fetch_content_from_file): Adjust. | |
4359 | * xml-support.h (xml_fetch_another): Change return type. | |
4360 | (xml_fetch_content_from_file): Change return type. | |
4361 | * xml-syscall.c (xml_init_syscalls_info): Adjust. | |
4362 | * xml-tdesc.c (file_read_description_xml): Adjust. | |
4363 | (fetch_available_features_from_target): Change return type. | |
4364 | (target_fetch_description_xml): Adjust. | |
4365 | (target_read_description_xml): Adjust. | |
4366 | ||
14c88955 TT |
4367 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4368 | ||
4369 | * value.c (~value): Update. | |
4370 | (struct value) <contents>: Now unique_xmalloc_ptr. | |
4371 | (value_contents_bits_eq, allocate_value_contents) | |
4372 | (value_contents_raw, value_contents_all_raw) | |
4373 | (value_contents_for_printing, value_contents_for_printing_const) | |
4374 | (set_value_enclosing_type): Update. | |
4375 | ||
0c7e6dd8 TT |
4376 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4377 | ||
4378 | * value.c (range_s): Remove typedef, VEC. | |
4379 | (struct range): Add operator<. | |
4380 | (range_lessthan): Remove. | |
4381 | (ranges_contain): Change type. | |
4382 | (~value): Update. | |
4383 | (struct value) <unavailable, optimized_out>: Now std::vector. | |
4384 | (value_entirely_available) | |
4385 | (value_entirely_covered_by_range_vector) | |
4386 | (value_entirely_unavailable, value_entirely_optimized_out): | |
4387 | Update. | |
4388 | (insert_into_bit_range_vector): Change argument type. | |
4389 | (find_first_range_overlap): Likewise. | |
4390 | (struct ranges_and_idx, value_contents_bits_eq) | |
4391 | (require_not_optimized_out, require_available): Update. | |
4392 | (ranges_copy_adjusted): Change argument types. | |
4393 | (value_optimized_out, value_copy, value_fetch_lazy): Update. | |
4394 | ||
2c8331b9 TT |
4395 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4396 | ||
4397 | * value.c (~value): Update. | |
4398 | (struct value) <parent>: Now a value_ref_ptr. | |
4399 | (value_parent, set_value_parent, value_address, value_copy): | |
4400 | Update. | |
4401 | ||
466ce3ae TT |
4402 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4403 | ||
4404 | * value.c (struct value): Add constructor, destructor, and member | |
4405 | initializers. | |
4406 | (allocate_value_lazy, value_decref): Update. | |
4407 | ||
062d818d TT |
4408 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4409 | ||
4410 | * value.c (struct value) <released, next>: Remove. | |
4411 | (all_values): Now a std::vector. | |
4412 | (allocate_value_lazy): Update. | |
4413 | (value_next): Remove. | |
4414 | (value_mark, value_free_to_mark, release_value) | |
4415 | (value_release_to_mark): Update. | |
4416 | ||
a6535de1 TT |
4417 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4418 | ||
4419 | * value.h (fetch_subexp_value, value_release_to_mark): Update. | |
4420 | (free_value_chain): Remove. | |
4421 | * value.c (free_value_chain): Remove. | |
4422 | (value_release_to_mark): Return a std::vector. | |
4423 | * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a | |
4424 | std::vector. | |
4425 | (check_condition): Update. | |
4426 | * eval.c (fetch_subexp_value): Change "val_chain" to a | |
4427 | std::vector. | |
4428 | * breakpoint.c (update_watchpoint): Update. | |
4429 | (can_use_hardware_watchpoint): Change "vals" to a std::vector. | |
4430 | ||
b5621201 TT |
4431 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4432 | ||
4433 | * value.h (free_all_values): Remove. | |
4434 | * value.c (free_all_values): Remove. | |
4435 | ||
4d0266a0 TT |
4436 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4437 | ||
4438 | * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) | |
4439 | (value_history_chain, value_history_count): Remove. | |
4440 | (value_history): New global. | |
4441 | (record_latest_value, access_value_history, show_values) | |
4442 | (preserve_values): Update. | |
4443 | ||
b4d61099 TT |
4444 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4445 | ||
4446 | * varobj.h (struct varobj) <value>: Now a value_ref_ptr. | |
4447 | * varobj.c (varobj_set_display_format, varobj_set_value) | |
4448 | (install_default_visualizer, construct_visualizer) | |
4449 | (install_new_value, ~varobj, varobj_get_value_type) | |
4450 | (my_value_of_variable, varobj_editable_p): Update. | |
4451 | * c-varobj.c (c_describe_child, c_value_of_variable) | |
4452 | (cplus_number_of_children, cplus_describe_child): Update. | |
4453 | * ada-varobj.c (ada_number_of_children, ada_name_of_child) | |
4454 | (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) | |
4455 | (ada_value_of_variable, ada_value_is_changeable_p): Update. | |
4456 | ||
9b558729 TT |
4457 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4458 | ||
4459 | * printcmd.c (last_examine_address): Change type to | |
4460 | value_ref_ptr. | |
4461 | (do_examine, x_command): Update. | |
4462 | ||
850645cf TT |
4463 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4464 | ||
4465 | * value.c (release_value): Update. | |
4466 | * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. | |
4467 | (struct bpstats) <val>: Now a value_ref_ptr. | |
4468 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
4469 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
4470 | (~watchpoint, print_it_watchpoint, watch_command_1) | |
4471 | (invalidate_bp_value_on_memory_change): Update. | |
4472 | ||
22bc8444 TT |
4473 | 2018-04-06 Tom Tromey <tom@tromey.com> |
4474 | ||
4475 | * varobj.c (varobj_clear_saved_item) | |
4476 | (update_dynamic_varobj_children, install_new_value, ~varobj): | |
4477 | Update. | |
4478 | * value.h (value_incref): Move declaration earlier. | |
4479 | (value_decref): Rename from value_free. | |
4480 | (struct value_ref_policy): New. | |
4481 | (value_ref_ptr): New typedef. | |
4482 | (struct value_deleter): Remove. | |
4483 | (gdb_value_up): Remove typedef. | |
4484 | (release_value): Change return type. | |
4485 | (release_value_or_incref): Remove. | |
4486 | * value.c (set_value_parent): Update. | |
4487 | (value_incref): Change return type. | |
4488 | (value_decref): Rename from value_free. | |
4489 | (value_free_to_mark, free_all_values, free_value_chain): Update. | |
4490 | (release_value): Return value_ref_ptr. | |
4491 | (release_value_or_incref): Remove. | |
4492 | (record_latest_value, set_internalvar, clear_internalvar): | |
4493 | Update. | |
4494 | * stack.c (info_frame_command): Don't call value_free. | |
4495 | * python/py-value.c (valpy_dealloc, valpy_new) | |
4496 | (value_to_value_object): Update. | |
4497 | * printcmd.c (do_examine): Update. | |
4498 | * opencl-lang.c (lval_func_free_closure): Update. | |
4499 | * mi/mi-main.c (register_changed_p): Don't call value_free. | |
4500 | * mep-tdep.c (mep_frame_prev_register): Don't call value_free. | |
4501 | * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. | |
4502 | * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call | |
4503 | value_free. | |
4504 | * guile/scm-value.c (vlscm_free_value_smob) | |
4505 | (vlscm_scm_from_value): Update. | |
4506 | * frame.c (frame_register_unwind, frame_unwind_register_signed) | |
4507 | (frame_unwind_register_unsigned, get_frame_register_bytes) | |
4508 | (put_frame_register_bytes): Don't call value_free. | |
4509 | * findvar.c (address_from_register): Don't call value_free. | |
4510 | * dwarf2read.c (dwarf2_compute_name): Don't call value_free. | |
4511 | * dwarf2loc.c (entry_data_value_free_closure) | |
4512 | (value_of_dwarf_reg_entry, free_pieced_value_closure) | |
4513 | (dwarf2_evaluate_loc_desc_full): Update. | |
4514 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
4515 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
4516 | (~watchpoint, watch_command_1) | |
4517 | (invalidate_bp_value_on_memory_change): Update. | |
4518 | * alpha-tdep.c (alpha_register_to_value): Don't call value_free. | |
4519 | ||
7f8a5d38 SM |
4520 | 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> |
4521 | ||
4522 | PR gdb/23022 | |
4523 | * warning.m4: Add -Wno-error=deprecated-register. | |
4524 | * configure: Re-generate. | |
4525 | ||
8a76bd3b TT |
4526 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4527 | ||
4528 | * linespec.h: Remove include of "vec.h". | |
4529 | ||
8e8d776e TT |
4530 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4531 | ||
4532 | * linespec.c (typep): Remove typedef. | |
4533 | (find_methods, find_superclass_methods): Take a std::vector. | |
4534 | (find_method): Use std::vector. | |
4535 | ||
9b2f8581 TT |
4536 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4537 | ||
4538 | * utils.c (compare_strings): Remove. | |
4539 | * utils.h (compare_strings): Remove. | |
4540 | * objc-lang.h (find_imps): Update. | |
4541 | * objc-lang.c (find_methods): Take a std::vector. | |
4542 | (uniquify_strings, find_imps): Likewise. | |
4543 | * linespec.c (find_methods): Take a std::vector. | |
4544 | (decode_objc): Use std::vector. | |
4545 | (add_all_symbol_names_from_pspace, find_superclass_methods): Take | |
4546 | a std::vector. | |
4547 | (find_method, find_function_symbols): Use std::vector. | |
4548 | ||
459a2e4c TT |
4549 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4550 | ||
4551 | * completer.c (completion_tracker::completion_tracker): Remove | |
4552 | cast. | |
4553 | (completion_tracker::discard_completions): Likewise. | |
4554 | * breakpoint.c (ambiguous_names_p): Remove cast. | |
4555 | * ada-lang.c (_initialize_ada_language): Remove cast. | |
4556 | * utils.h (streq): Update. | |
4557 | (streq_hash): Add new declaration. | |
4558 | * utils.c (streq): Return bool. | |
4559 | (streq_hash): New function. | |
4560 | ||
9be2c17a TT |
4561 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4562 | ||
4563 | * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: | |
4564 | Remove a string copy. | |
4565 | ||
f73c6ece TT |
4566 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4567 | ||
4568 | * linespec.c (filter_results): Use std::vector. | |
4569 | (decode_line_2, decode_line_full): Update. | |
4570 | ||
53a0f8a2 TT |
4571 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4572 | ||
4573 | * linespec.c (canonical_to_fullform): Return std::string. | |
4574 | (filter_results): Update. | |
4575 | (struct decode_line_2_item): Add constructor. | |
4576 | <fullform, displayform>: Now std::string. | |
4577 | (decode_line_2_compare_items): Now a std::sort comparator. | |
4578 | (decode_line_2): Update. | |
4579 | ||
a5b5adf5 TT |
4580 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4581 | ||
4582 | * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. | |
4583 | (unexpected_linespec_error): Update. | |
4584 | (linespec_parse_basic, parse_linespec): Update. | |
4585 | ||
6a307fc5 TT |
4586 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4587 | ||
4588 | * linespec.c (linespec_parse_basic): Reindent. | |
4589 | ||
41c1efc6 TT |
4590 | 2018-04-05 Tom Tromey <tom@tromey.com> |
4591 | ||
4592 | * minsyms.h (iterate_over_minimal_symbols): Update. | |
4593 | * minsyms.c (iterate_over_minimal_symbols): Take a | |
4594 | gdb::function_view. | |
4595 | * linespec.c (struct collect_minsyms): Remove. | |
4596 | (compare_msyms): Now a std::sort comparator. | |
4597 | (add_minsym): Add parameters. | |
4598 | (search_minsyms_for_name): Update. Use std::vector. | |
4599 | ||
c5edbf3d TT |
4600 | 2018-04-03 Tom Tromey <tom@tromey.com> |
4601 | ||
4602 | * mipsread.c (read_alphacoff_dynamic_symtab): Use | |
4603 | gdb::byte_vector. | |
4604 | ||
b39efc48 WP |
4605 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
4606 | ||
4607 | * MAINTAINERS (Write After Approval): Add Weimin Pan. | |
4608 | ||
121ad66c | 4609 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
79f18731 WP |
4610 | |
4611 | PR gdb/16959 | |
4612 | * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when | |
4613 | printing static type. | |
4614 | ||
09473be8 TT |
4615 | 2018-04-01 Tom Tromey <tom@tromey.com> |
4616 | ||
4617 | * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. | |
4618 | (rs6000_xfer_shared_libraries): Update. | |
4619 | ||
ec1f2d91 SM |
4620 | 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
4621 | ||
4622 | * common/gdb_vecs.h (char_ptr): Remove. | |
4623 | * tracepoint.c (encode_actions_1): Remove usage of char_ptr. | |
4624 | ||
d8611974 SM |
4625 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
4626 | ||
4627 | * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC | |
4628 | with std::vector. | |
4629 | * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. | |
4630 | ||
a18ba4e4 SM |
4631 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
4632 | ||
4633 | * tracepoint.h (struct uploaded_tp): Initialize fields. | |
4634 | <actions, step_actions, cmd_strings>: Change type to | |
4635 | std::vector<char *>. | |
4636 | * tracepoint.c (get_uploaded_tp): Allocate with new. | |
4637 | (free_uploaded_tps): Free with delete. | |
4638 | (parse_tracepoint_definition): Adjust to std::vector change. | |
4639 | * breakpoint.c (read_uploaded_action): Likewise. | |
4640 | (create_tracepoint_from_upload): Likewise. | |
4641 | * ctf.c (ctf_write_uploaded_tp): Likewise. | |
4642 | (SET_ARRAY_FIELD): Likewise. | |
4643 | * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. | |
4644 | ||
a7961323 TT |
4645 | 2018-03-30 Tom Tromey <tom@tromey.com> |
4646 | ||
4647 | * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return | |
4648 | std::unique_ptr. | |
4649 | (svr4_keep_data_in_core): Update. | |
4650 | (svr4_read_so_list): Update. | |
4651 | ||
e83e4e24 TT |
4652 | 2018-03-30 Tom Tromey <tom@tromey.com> |
4653 | ||
4654 | * windows-nat.c (handle_output_debug_string, handle_exception): | |
4655 | Update. | |
4656 | * target.h (target_read_string): Update. | |
4657 | * target.c (target_read_string): Change "string" to | |
4658 | unique_xmalloc_ptr. | |
4659 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
4660 | Update. | |
4661 | * solib-frv.c (frv_current_sos): Update. | |
4662 | * solib-dsbt.c (dsbt_current_sos): Update. | |
4663 | * solib-darwin.c (darwin_current_sos): Update. | |
4664 | * linux-thread-db.c (inferior_has_bug): Update. | |
4665 | * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: | |
4666 | Update. Remove alloca. | |
4667 | * ada-lang.c (ada_main_name): Update. | |
4668 | ||
263db9a1 TT |
4669 | 2018-03-30 Tom Tromey <tom@tromey.com> |
4670 | ||
4671 | * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. | |
4672 | (struct dwo_file_deleter): New. | |
4673 | (dwo_file_up): New typedef. | |
4674 | (open_and_init_dwo_file): Use dwo_file_up. | |
4675 | (free_dwo_file_cleanup): Remove. | |
4676 | ||
5dafb3d1 TT |
4677 | 2018-03-30 Tom Tromey <tom@tromey.com> |
4678 | ||
4679 | * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. | |
4680 | (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. | |
4681 | ||
11ed8cad TT |
4682 | 2018-03-30 Tom Tromey <tom@tromey.com> |
4683 | ||
4684 | * dwarf2read.c (class free_cached_comp_units): New class. | |
4685 | (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. | |
4686 | (free_cached_comp_units): Remove function. | |
4687 | ||
9ae79dac TT |
4688 | 2018-03-30 Tom Tromey <tom@tromey.com> |
4689 | ||
4690 | * utils.h (make_cleanup_unpush_target): Remove. | |
4691 | * inf-ptrace.c (struct target_unpusher): New. | |
4692 | (target_unpush_up) New typedef. | |
4693 | (inf_ptrace_create_inferior, inf_ptrace_attach): Use | |
4694 | target_unpush_up. | |
4695 | * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. | |
4696 | ||
5aa89276 TT |
4697 | 2018-03-27 Tom Tromey <tom@tromey.com> |
4698 | ||
4699 | * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. | |
4700 | ||
1dbeed45 TT |
4701 | 2018-03-27 Pedro Alves <palves@redhat.com> |
4702 | Tom Tromey <tom@tromey.com> | |
4703 | ||
4704 | * top.c (class gdb_readline_wrapper_cleanup): Add constructor, | |
4705 | destructor. Now a class. | |
4706 | (gdb_readline_wrapper_cleanup): Remove function. | |
4707 | (gdb_readline_wrapper): Remove cleanups. | |
4708 | ||
c819b2c0 TT |
4709 | 2018-03-27 Tom Tromey <tom@tromey.com> |
4710 | ||
4711 | * typeprint.h (struct type_print_options) <local_typedefs, | |
4712 | global_typedefs>: Remove "struct" keyword. | |
4713 | (class typedef_hash_table): New class. | |
4714 | (recursively_update_typedef_hash, add_template_parameters) | |
4715 | (create_typedef_hash, free_typedef_hash, copy_typedef_hash) | |
4716 | (find_typedef_in_hash): Don't declare. | |
4717 | * typeprint.c (struct typedef_hash_table): Move to typeprint.h. | |
4718 | (typedef_hash_table::recursively_update): Rename from | |
4719 | recursively_update_typedef_hash. Now a member. | |
4720 | (typedef_hash_table::add_template_parameters): Rename from | |
4721 | add_template_parameters. Now a member. | |
4722 | (typedef_hash_table::typedef_hash_table): Now a constructor; | |
4723 | rename from create_typedef_hash. | |
4724 | (typedef_hash_table::~typedef_hash_table): Now a destructor; | |
4725 | rename from free_typedef_hash. | |
4726 | (do_free_typedef_hash, make_cleanup_free_typedef_hash) | |
4727 | (do_free_global_table): Remove. | |
4728 | (typedef_hash_table::typedef_hash_table): New constructor; renamed | |
4729 | from copy_type_recursive. | |
4730 | (create_global_typedef_table): Remove. | |
4731 | (typedef_hash_table::find_global_typedef): Now a member of | |
4732 | typedef_hash_table. | |
4733 | (typedef_hash_table::find_typedef): Rename from | |
4734 | find_typedef_in_hash; now a member. | |
4735 | (whatis_exp): Update. | |
4736 | * extension.h (struct ext_lang_type_printers): Add constructor and | |
4737 | destructor. | |
4738 | (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't | |
4739 | declare. | |
4740 | * extension.c (ext_lang_type_printers::ext_lang_type_printers): | |
4741 | Now a constructor; rename from start_ext_lang_type_printers. | |
4742 | (ext_lang_type_printers): Now a destructor; rename from | |
4743 | free_ext_lang_type_printers. | |
4744 | * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): | |
4745 | Update. | |
4746 | (c_type_print_base_struct_union): Update. Remove cleanups. | |
4747 | ||
608219fb TT |
4748 | 2018-03-27 Tom Tromey <tom@tromey.com> |
4749 | ||
4750 | * dwarf-index-write.c: Include <cmath>. | |
4751 | ||
3fcded8f JB |
4752 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
4753 | ||
4754 | * NEWS: Add entry describing new "set|show varsize-limit" command. | |
4755 | * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" | |
4756 | command. | |
4757 | * printcmd.c (_initialize_printcmd): Add "set var" alias of | |
4758 | "set variable". | |
4759 | ||
cd4fb1b2 SM |
4760 | 2018-03-27 Simon Marchi <simon.marchi@ericsson.com> |
4761 | ||
4762 | * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and | |
4763 | dwarf-index-write.c | |
4764 | (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. | |
4765 | * dwarf-index-common.c: New file. | |
4766 | * dwarf-index-common.h: New file. | |
4767 | * dwarf-index-write.c: New file. | |
4768 | * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. | |
4769 | (struct dwarf2_section_info): Move from here. | |
4770 | (dwarf2_section_info_def): Likewise. | |
4771 | (DEF_VEC_O (dwarf2_section_info_def)): Likewise. | |
4772 | (offset_type): Likewise. | |
4773 | (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. | |
4774 | (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. | |
4775 | (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. | |
4776 | (byte_swap): Likewise. | |
4777 | (MAYBE_SWAP): Likewise. | |
4778 | (dwarf2_per_cu_ptr): Likewise. | |
4779 | (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. | |
4780 | (struct tu_stats): Likewise. | |
4781 | (struct dwarf2_per_objfile): Likewise. | |
4782 | (struct dwarf2_per_cu_data): Likewise. | |
4783 | (struct signatured_type): Likewise. | |
4784 | (sig_type_ptr): Likewise. | |
4785 | (DEF_VEC_P (sig_type_ptr)): Likewise. | |
4786 | (INDEX4_SUFFIX): Likewise. | |
4787 | (INDEX5_SUFFIX): Likewise. | |
4788 | (DEBUG_STR_SUFFIX): Likewise. | |
4789 | (dwarf2_read_section): Make non-static. | |
4790 | (mapped_index_string_hash): Move from here. | |
4791 | (dwarf5_djb_hash): Likewise. | |
4792 | (file_write): Likewise. | |
4793 | (class data_buf): Likewise. | |
4794 | (struct symtab_index_entry): Likewise. | |
4795 | (struct mapped_symtab): Likewise. | |
4796 | (find_slot): Likewise. | |
4797 | (hash_expand): Likewise. | |
4798 | (add_index_entry): Likewise. | |
4799 | (uniquify_cu_indices): Likewise. | |
4800 | (class c_str_view): Likewise. | |
4801 | (class c_str_view_hasher): Likewise. | |
4802 | (class vector_hasher): Likewise. | |
4803 | (write_hash_table): Likewise. | |
4804 | (psym_index_map): Likewise. | |
4805 | (struct addrmap_index_data): Likewise. | |
4806 | (add_address_entry): Likewise. | |
4807 | (add_address_entry_worker): Likewise. | |
4808 | (write_address_map): Likewise. | |
4809 | (symbol_kind): Likewise. | |
4810 | (write_psymbols): Likewise. | |
4811 | (struct signatured_type_index_data): Likewise. | |
4812 | (write_one_signatured_type): Likewise. | |
4813 | (recursively_count_psymbols): Likewise. | |
4814 | (recursively_write_psymbols): Likewise. | |
4815 | (class debug_names): Likewise. | |
4816 | (check_dwarf64_offsets): Likewise. | |
4817 | (psyms_seen_size): Likewise. | |
4818 | (write_gdbindex): Likewise. | |
4819 | (write_debug_names): Likewise. | |
4820 | (assert_file_size): Likewise. | |
4821 | (write_psymtabs_to_index): Likewise. | |
4822 | (save_gdb_index_command): Likewise. | |
4823 | (_initialize_dwarf2_read): Don't register the "save gdb-index" | |
4824 | command. | |
4825 | * dwarf2read.h: New file. | |
4826 | ||
59cc4834 JB |
4827 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
4828 | ||
4829 | PR gdb/22670 | |
4830 | * dwarf2read.c (dwarf2_physname): Do not return the demangled | |
4831 | symbol name if the CU's language stores symbol names in linkage | |
4832 | format. | |
4833 | * language.h (struct language_defn) | |
4834 | <la_store_sym_names_in_linkage_form_p>: New field. Adjust | |
4835 | all instances of this struct. | |
4836 | ||
67501539 TT |
4837 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4838 | ||
4839 | * stack.c (backtrace_command_1): Remove verbose code. | |
4840 | ||
76c939ac TT |
4841 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4842 | ||
4843 | * python/py-framefilter.c (py_print_type): Don't catch | |
4844 | exceptions. Return void. | |
4845 | (py_print_value): Likewise. | |
4846 | (py_print_single_arg): Likewise. | |
4847 | (enumerate_args): Don't catch exceptions. | |
4848 | (py_print_args): Likewise. | |
4849 | (py_print_frame): Likewise. | |
4850 | (gdbpy_apply_frame_filter): Catch exceptions here. | |
4851 | ||
9507b29c TT |
4852 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4853 | ||
4854 | * stack.c (_initialize_stack): Remove trailing newlines from help | |
4855 | text. Add "Usage" line to "backtrace" help. | |
4856 | ||
eb68e487 TT |
4857 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4858 | ||
4859 | PR python/16486: | |
4860 | * python/py-framefilter.c (py_print_args): Call wrap_hint. | |
4861 | ||
1f111921 TT |
4862 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4863 | ||
4864 | * python/py-framefilter.c (py_print_single_arg): Return | |
4865 | EXT_LANG_BT_ERROR from catch. | |
4866 | ||
fb7eb8b5 TT |
4867 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4868 | ||
4869 | PR backtrace/15584: | |
4870 | * stack.c (backtrace_command_1): Move some code into no-filters | |
4871 | "if". | |
4872 | ||
4ca59a9f TT |
4873 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4874 | ||
4875 | * python/py-framefilter.c (throw_quit_or_print_exception): New | |
4876 | function. | |
4877 | (gdbpy_apply_frame_filter): Use it. | |
4878 | ||
92256134 TT |
4879 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4880 | ||
4881 | PR cli/17716: | |
4882 | * python/py-framefilter.c (py_print_type, py_print_value) | |
4883 | (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use | |
4884 | RETURN_MASK_ERROR. | |
4885 | ||
7a630bc2 TT |
4886 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4887 | ||
4888 | * python/py-framefilter.c (enumerate_args): Use | |
4889 | gdb::unique_xmalloc_ptr. | |
4890 | ||
63283d4a TT |
4891 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4892 | ||
4893 | * python/py-framefilter.c (py_print_frame): Return | |
4894 | EXT_LANG_BT_OK. | |
4895 | (gdbpy_apply_frame_filter): Update comment. | |
4896 | * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: | |
4897 | Remove. | |
4898 | <EXT_LANG_BT_NO_FILTERS>: Change value. | |
4899 | ||
978d6c75 TT |
4900 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4901 | ||
4902 | PR backtrace/15582: | |
4903 | * stack.c (backtrace_command): Parse "hide" argument. | |
4904 | * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. | |
4905 | * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New | |
4906 | constant. | |
4907 | ||
1cf7e640 TT |
4908 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4909 | ||
4910 | * stack.c (backtrace_command_1): Remove "show_locals" parameter, | |
4911 | add "flags". | |
4912 | (backtrace_command): Remove "fulltrace", add "flags". | |
4913 | ||
ea3b0687 TT |
4914 | 2018-03-26 Tom Tromey <tom@tromey.com> |
4915 | ||
4916 | * stack.c (backtrace_command): Rewrite command line parsing. | |
4917 | ||
9f034d75 SM |
4918 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
4919 | ||
4920 | * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. | |
4921 | ||
ce1459e5 SM |
4922 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
4923 | ||
4924 | * filename-seen-cache.h: Add include guard. | |
4925 | ||
4f7ae6f5 KS |
4926 | 2018-03-26 Keith Seitz <keiths@redhat.com> |
4927 | ||
4928 | * symfile.c (place_section): Remove "struct" from section_addr_info | |
4929 | in comment. | |
4930 | * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove | |
4931 | "struct" keyword from section_addr_info. | |
4932 | ||
5cd3e386 AH |
4933 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
4934 | ||
4935 | * regformats/regdef.h (reg): Add constructors. | |
4936 | ||
3e5ef9a4 PA |
4937 | 2018-03-25 Pedro Alves <palves@redhat.com> |
4938 | ||
4939 | * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE | |
4940 | if then/else bodies in var_func_name extraction. | |
4941 | ||
c88d2fcc | 4942 | 2018-03-23 Weimin Pan <weimin.pan@oracle.com> |
bce02d88 WP |
4943 | |
4944 | * minsyms.c (lookup_minimal_symbol_and_objfile): Use | |
4945 | lookup_minimal_symbol() to find symbol entry. | |
4946 | * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. | |
4947 | ||
b7fee5a3 KS |
4948 | 2018-03-23 Keith Seitz <keiths@redhat.com> |
4949 | ||
4950 | PR c++/22968 | |
4951 | * dwarf2read.c (scan_partial_symbols): Scan structs/classes for | |
4952 | nested type definitions for C++, too. | |
4953 | ||
2cc9b304 TT |
4954 | 2018-03-23 Tom Tromey <tom@tromey.com> |
4955 | ||
4956 | * machoread.c (struct oso_el): Add a constructor. Don't define as | |
4957 | a typedef. | |
4958 | (macho_register_oso): Remove. | |
4959 | (macho_symtab_read): Take a std::vector. | |
4960 | (oso_el_compare_name): Now a std::sort comparator. | |
4961 | (macho_symfile_read_all_oso): Take a std::vector. | |
4962 | (macho_symfile_read): Use std::vector. Remove cleanups. | |
4963 | ||
a2b2bc12 TT |
4964 | 2018-03-22 Tom Tromey <tom@tromey.com> |
4965 | ||
4966 | * record-full.c (record_full_exec_insn): Use gdb::byte_vector. | |
4967 | (record_full_goto_bookmark): Use std::string. | |
4968 | ||
7a8f494c PFC |
4969 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
4970 | ||
4971 | PR tdep/18295 | |
4972 | * rs6000-tdep.c (skip_prologue): Match both stwux and stdux | |
4973 | a single mask. | |
4974 | ||
dd6d677f PFC |
4975 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
4976 | ||
4977 | * rs6000-tdep.c (store_insn_p): New function. | |
4978 | (skip_prologue): New variable alloca_reg_offset. Set lr_reg | |
4979 | and cr_reg to their unshifted values. Use store_insn_p to | |
4980 | match LR saves using either R1 or fdata->alloca_reg. Use | |
4981 | store_insn_p to match CR saves. Set alloca_reg_offset | |
4982 | when alloca_reg and framep are set. Remove lr_reg shift | |
4983 | when assigning to fdata->lr_register. | |
4984 | ||
26d6cec4 AA |
4985 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
4986 | ||
4987 | * linux-tdep.c (linux_info_proc): For "info proc cmdline", print | |
4988 | command line args instead of emitting a warning. | |
4989 | ||
5d9310c4 SM |
4990 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
4991 | ||
4992 | * tracepoint.h (struct static_tracepoint_marker): Initialize | |
4993 | fields, define default constructor, move constructor and move | |
4994 | assignment, disable the rest. | |
4995 | <str_id, extra>: Make std::string. | |
4996 | (release_static_tracepoint_marker): Remove. | |
4997 | (free_current_marker): Remove. | |
4998 | * tracepoint.c (free_current_marker): Remove. | |
4999 | (parse_static_tracepoint_marker_definition): Adjust to | |
5000 | std::string, use new hex2str overload. | |
5001 | (release_static_tracepoint_marker): Remove. | |
5002 | (print_one_static_tracepoint_marker): Get marker by reference | |
5003 | and adjust to std::string. | |
5004 | (info_static_tracepoint_markers_command): Adjust to std::vector | |
5005 | changes | |
5006 | * target.h (static_tracepoint_marker_p): Remove typedef. | |
5007 | (DEF_VEC_P(static_tracepoint_marker_p)): Remove. | |
5008 | (struct target_ops) <to_static_tracepoint_marker_at>: Return | |
5009 | bool. | |
5010 | <to_static_tracepoint_markers_by_strid>: Return std::vector. | |
5011 | * target-debug.h | |
5012 | (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. | |
5013 | (target_debug_print_std_vector_static_tracepoint_marker): New. | |
5014 | (target_debug_print_struct_static_tracepoint_marker_p): Rename | |
5015 | to... | |
5016 | (target_debug_print_static_tracepoint_marker_p): ... this. | |
5017 | * target-delegates.c: Re-generate. | |
5018 | * breakpoint.h (struct tracepoint) <static_trace_marker_id>: | |
5019 | Make std::string. | |
5020 | * breakpoint.c (init_breakpoint_sal): Adjust to std::string. | |
5021 | (decode_static_tracepoint_spec): Adjust to std::vector. | |
5022 | (tracepoint_print_one_detail): Adjust to std::string. | |
5023 | (strace_marker_decode_location): Adjust to std::string. | |
5024 | (update_static_tracepoint): Adjust to std::string, remove call | |
5025 | to release_static_tracepoint_marker. | |
5026 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
5027 | Adjust to std::vector. | |
5028 | * remote.c (remote_static_tracepoint_marker_at): Return bool. | |
5029 | (remote_static_tracepoint_markers_by_strid): Adjust to | |
5030 | std::vector. | |
5031 | * common/rsp-low.h (hex2str): New overload with explicit count | |
5032 | of bytes. | |
5033 | * common/rsp-low.c (hex2str): New overload with explicit count | |
5034 | of bytes. | |
5035 | * unittests/rsp-low-selftests.c (test_hex2str): New function. | |
5036 | (_initialize_rsp_low_selftests): Add test_hex2str test. | |
5037 | * unittests/tracepoint-selftests.c | |
5038 | (test_parse_static_tracepoint_marker_definition): Adjust to | |
5039 | std::string. | |
5040 | ||
62c222b6 SM |
5041 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
5042 | ||
5043 | * tracepoint.c (parse_static_tracepoint_marker_definition): | |
5044 | Consider case where the definition is followed by more | |
5045 | definitions. | |
5046 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5047 | tracepoint-selftests.c. | |
5048 | * unittests/tracepoint-selftests.c: New. | |
5049 | ||
7eb2418f PFC |
5050 | 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
5051 | ||
5052 | * MAINTAINERS (Write After Approval): Add Pedro Franco de | |
5053 | Carvalho. | |
5054 | ||
7cbe16e9 SR |
5055 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
5056 | ||
3d6b3b82 | 5057 | * symtab.c (find_pc_sect_line): fixed indentation. |
7cbe16e9 | 5058 | |
4ee89e90 SR |
5059 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
5060 | ||
3d6b3b82 | 5061 | * symtab.c (find_pc_sect_line): now uses binary search. |
4ee89e90 | 5062 | |
92630041 TT |
5063 | 2018-03-19 Tom Tromey <tom@tromey.com> |
5064 | ||
5065 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
5066 | "IDENT" production. | |
5067 | ||
76727919 TT |
5068 | 2018-03-19 Pedro Alves <palves@redhat.com> |
5069 | Tom Tromey <tom@tromey.com> | |
5070 | ||
5071 | * unittests/observable-selftests.c: New file. | |
5072 | * common/observable.h: New file. | |
5073 | * observable.h: New file. | |
5074 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
5075 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
5076 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
5077 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
5078 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
5079 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
5080 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
5081 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
5082 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
5083 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
5084 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
5085 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
5086 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
5087 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
5088 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
5089 | tui/tui-interp.c, valops.c: Update all users. | |
5090 | * tui/tui-hooks.c (tui_bp_created_observer) | |
5091 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
5092 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
5093 | (tui_normal_stop_observer, tui_register_changed_observer): | |
5094 | Remove. | |
5095 | (tui_observers_token): New global. | |
5096 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
5097 | (tui_install_hooks, tui_remove_hooks): Use | |
5098 | tui_attach_detach_observers. | |
5099 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
5100 | (record_btrace_thread_observer_token): New global. | |
5101 | * observer.sh: Remove. | |
5102 | * observer.c: Rename to observable.c. | |
5103 | * observable.c (namespace gdb_observers): Define new objects. | |
5104 | (observer_debug): Move into gdb_observers namespace. | |
5105 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
5106 | (xfree_observer_list_node, generic_observer_attach) | |
5107 | (generic_observer_detach, generic_observer_notify): Remove. | |
5108 | (_initialize_observer): Update. | |
5109 | Don't include observer.inc. | |
5110 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
5111 | (clean mostlyclean): Likewise. | |
5112 | (observer.h, observer.inc): Remove targets. | |
5113 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
5114 | (COMMON_SFILES): Use observable.c, not observer.c. | |
5115 | * .gitignore: Remove observer.h. | |
5116 | ||
1cb1f3da TT |
5117 | 2018-03-18 Tom Tromey <tom@tromey.com> |
5118 | ||
5119 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
5120 | gdb::def_vector. | |
5121 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
5122 | ||
a06ab151 TT |
5123 | 2018-03-17 Tom Tromey <tom@tromey.com> |
5124 | ||
5125 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
5126 | ||
770623f7 TT |
5127 | 2018-03-17 Tom Tromey <tom@tromey.com> |
5128 | ||
5129 | * target.c (class scoped_target_fd): New. | |
5130 | (target_fileio_close_cleanup): Remove. | |
5131 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
5132 | ||
39be3c7e SM |
5133 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
5134 | ||
5135 | * silent-rules.mk: New. | |
5136 | * Makefile.in: Include silent-rules.mk | |
5137 | (srcdir, VPATH, top_srcdir): Move up. | |
5138 | (COMPILE): Add ECHO_CXX. | |
5139 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
5140 | (init.c): Add ECHO_INIT_C. | |
5141 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
5142 | (version.c): Add ECHO_GEN. | |
5143 | (printcmd.o): Add ECHO_CXX. | |
5144 | (target-float.o): Add ECHO_CXX. | |
5145 | (ada-exp.o): Add ECHO_CXX. | |
5146 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
5147 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
5148 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
5149 | * gnulib/aclocal.m4: Re-generate. | |
5150 | * gnulib/configure: Re-generate. | |
5151 | * gnulib/import/Makefile.in: Re-generate. | |
5152 | ||
37e136b1 TT |
5153 | 2018-03-16 Tom Tromey <tom@tromey.com> |
5154 | ||
5155 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
5156 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
5157 | * utils.c (do_free_section_addr_info) | |
5158 | (make_cleanup_free_section_addr_info): Remove. | |
5159 | * symfile.h (struct other_sections): Add constructor. | |
5160 | (struct section_addr_info): Remove. | |
5161 | (section_addr_info): New typedef. | |
5162 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
5163 | (build_section_addr_info_from_objfile) | |
5164 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
5165 | (default_symfile_offsets, symbol_file_add) | |
5166 | (symbol_file_add_from_bfd) | |
5167 | (build_section_addr_info_from_section_table): Update. | |
5168 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
5169 | * symfile.c (alloc_section_addr_info): Remove. | |
5170 | (build_section_addr_info_from_section_table): Change return type. | |
5171 | Update. | |
5172 | (build_section_addr_info_from_bfd) | |
5173 | (build_section_addr_info_from_objfile): Likewise. | |
5174 | (free_section_addr_info): Remove. | |
5175 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
5176 | (addrs_section_compar): Now a std::sort comparator. | |
5177 | (addrs_section_sort): Change return type. | |
5178 | (addr_info_make_relative): Change type of "addrs". Update. | |
5179 | (default_symfile_offsets, syms_from_objfile_1) | |
5180 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
5181 | (symbol_file_add_separate): Update. | |
5182 | (symbol_file_add): Change type of "addrs". Update. | |
5183 | (add_symbol_file_command): Update. Remove cleanups. | |
5184 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
5185 | cleanups. | |
5186 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
5187 | * solib.c (solib_read_symbols): Update. | |
5188 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
5189 | * machoread.c (macho_symfile_offsets): Update. | |
5190 | * jit.c (jit_bfd_try_read_symtab): Update. | |
5191 | ||
03afa6ef SM |
5192 | 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
5193 | ||
5194 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5195 | unittests/utils-selftests.c. | |
5196 | * unittests/utils-selftests.c: New file. | |
5197 | ||
3ae9ce5d TT |
5198 | 2018-03-14 Tom Tromey <tom@tromey.com> |
5199 | ||
5200 | PR cli/14977: | |
5201 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
5202 | for NULL. | |
5203 | ||
b8c2339b TT |
5204 | 2018-03-14 Tom Tromey <tom@tromey.com> |
5205 | ||
5206 | PR cli/19918: | |
5207 | * printcmd.c (printf_pointer): Allow "-" in format. | |
5208 | ||
80ae639d TT |
5209 | 2018-03-14 Tom Tromey <tom@tromey.com> |
5210 | ||
5211 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
5212 | ||
0d671d99 YQ |
5213 | 2018-03-14 Yao Qi <qiyao@sourceware.org> |
5214 | ||
5215 | * MAINTAINERS: Update my email address. | |
5216 | ||
b577b6af TT |
5217 | 2018-03-13 Tom Tromey <tom@tromey.com> |
5218 | ||
5219 | * machoread.c (macho_check_dsym): Change filenamep to a | |
5220 | std::string*. | |
5221 | (macho_symfile_read): Update. | |
5222 | * symfile.c (load_command): Use std::string. | |
5223 | ||
89a3b63e AB |
5224 | 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> |
5225 | ||
5226 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
5227 | to error message string. | |
5228 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
5229 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
5230 | internal_error. | |
5231 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
5232 | error. | |
5233 | (riscv_push_dummy_call): Likewise. | |
5234 | ||
984c7238 TT |
5235 | 2018-03-12 Tom Tromey <tom@tromey.com> |
5236 | ||
5237 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
5238 | Use gdb::byte_vector. | |
5239 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
5240 | ||
933522d1 YQ |
5241 | 2018-03-12 Yao Qi <yao.qi@linaro.org> |
5242 | ||
5243 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
5244 | parameter type to readable_regcache. | |
5245 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
5246 | the declaration. | |
5247 | ||
be2daae6 TT |
5248 | 2018-03-11 Tom Tromey <tom@tromey.com> |
5249 | ||
5250 | * dwarf2read.c (struct nextfield): Add initializers. | |
5251 | (struct nextfnfield): Remove. | |
5252 | (struct fnfieldlist): Add initializers. Remove "length" and | |
5253 | "head", use std::vector. | |
5254 | (struct decl_field_list): Remove. | |
5255 | (struct field_info): Add initializers. | |
5256 | <fields, baseclasses>: Now std::vector. | |
5257 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
5258 | nested_types_list_count>: Remove. | |
5259 | (dwarf2_add_field, dwarf2_add_type_defn) | |
5260 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
5261 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
5262 | (process_structure_scope): Update. | |
5263 | ||
484cf504 TT |
5264 | 2018-03-11 Tom Tromey <tom@tromey.com> |
5265 | ||
5266 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
5267 | for use by std::sort. | |
5268 | (build_type_psymtabs_1): Use std::vector. | |
5269 | ||
9bd8e0b0 EZ |
5270 | 2018-03-09 Eli Zaretskii <eliz@gnu.org> |
5271 | ||
5272 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
5273 | and LIBMPFR in the printed configuration. | |
5274 | ||
5dc1a704 TT |
5275 | 2018-03-08 Tom Tromey <tom@tromey.com> |
5276 | ||
5277 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
5278 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
5279 | (procfs_pidlist): Likewise. | |
5280 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
5281 | (iterate_over_mappings): Likewise. | |
5282 | ||
fdf07f3a TT |
5283 | 2018-03-08 Tom Tromey <tom@tromey.com> |
5284 | ||
5285 | * infcall.c (struct call_return_meta_info) | |
5286 | <stack_temporaries_enabled>: Remove. | |
5287 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
5288 | * thread.c (disable_thread_stack_temporaries): Remove. | |
5289 | (enable_thread_stack_temporaries): Remove. | |
5290 | (thread_stack_temporaries_enabled_p): Return bool. | |
5291 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
5292 | (get_last_thread_stack_temporary): Update. | |
5293 | * eval.c (evaluate_subexp): Update. | |
5294 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
5295 | class, not a function. | |
5296 | (value_ptr, value_vec): Remove typedefs. | |
5297 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
5298 | <stack_temporaries>: Now a std::vector. | |
5299 | (thread_stack_temporaries_enabled_p) | |
5300 | (value_in_thread_stack_temporaries): Return bool. | |
5301 | ||
567a3e54 SM |
5302 | 2018-03-08 Simon Marchi <simon.marchi@ericsson.com> |
5303 | ||
5304 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
5305 | (getpkt_or_notif_sane_1): Likewise. | |
5306 | ||
00b40057 SM |
5307 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
5308 | ||
5309 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
5310 | ||
a8dbfd58 SM |
5311 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
5312 | ||
5313 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
5314 | std::string. | |
5315 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
5316 | std::string. | |
5317 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
5318 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
5319 | * symfile.c (separate_debug_file_exists): Change parameter to | |
5320 | std::string. | |
5321 | (find_separate_debug_file): Return std::string. | |
5322 | (find_separate_debug_file_by_debuglink): Return std::string. | |
5323 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
5324 | std::string. | |
5325 | ||
e6a58aa8 SM |
5326 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
5327 | ||
5328 | * common/xml-utils.c (xml_escape_text): Move code to... | |
5329 | (xml_escape_text_append): ... this new function. | |
5330 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
5331 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
5332 | New function. | |
5333 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
5334 | a selftest. | |
5335 | ||
4ef0bef6 AH |
5336 | 2018-03-07 Alan Hayward <alan.hayward@arm.com> |
5337 | ||
5338 | * defs.h: Remove MAX_REGISTER_SIZE. | |
5339 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
5340 | asserts. | |
5341 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
5342 | ||
e0d3522b TT |
5343 | 2018-03-07 Tom Tromey <tom@tromey.com> |
5344 | ||
5345 | * linux-tdep.c (linux_info_proc): Update. | |
5346 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
5347 | optional<string>. | |
5348 | (target_fileio_readlink): Return optional<string>. | |
5349 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
5350 | * inf-child.c (inf_child_fileio_readlink): Return | |
5351 | optional<string>. | |
5352 | * target.c (target_fileio_readlink): Return optional<string>. | |
5353 | ||
ea005f31 AB |
5354 | 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
5355 | ||
5356 | * regcache.c (cooked_read_test): Add riscv to the list of | |
5357 | architectures that have a save_reggroup. | |
5358 | ||
e95a97d4 AA |
5359 | 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5360 | ||
5361 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
5362 | value is not a dynamic class object. | |
5363 | ||
d8344f3d TT |
5364 | 2018-03-06 Tom Tromey <tom@tromey.com> |
5365 | ||
5366 | * rust-exp.y: Formatting fixes. | |
5367 | ||
9add17f2 AB |
5368 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5369 | ||
5370 | * riscv-tdep.c (riscv_register_name): Remove target description | |
5371 | support. | |
5372 | (riscv_gdbarch_init): Remove target description check. | |
5373 | ||
c9486dfe AB |
5374 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5375 | ||
5376 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
5377 | comment. | |
5378 | * riscv-tdep.h: Likewise. | |
5379 | ||
d74aff3d AB |
5380 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5381 | ||
5382 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
5383 | (riscv_pseudo_register_write): Delete. | |
5384 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
5385 | ||
7ea78b59 SM |
5386 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
5387 | ||
5388 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
5389 | parameter with RAII equivalents. | |
5390 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
5391 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
5392 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
5393 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
5394 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
5395 | make_cleanup_ui_out_list_begin_end): Remove. | |
5396 | ||
53127008 SM |
5397 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
5398 | ||
5399 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
5400 | parameter types to std::vector. Use bool. | |
5401 | (record_btrace_wait): Replace VEC(tp_t) with | |
5402 | std::vector<thread_info *>. | |
5403 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
5404 | ||
228f1508 SM |
5405 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
5406 | ||
5407 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
5408 | (struct scoped_btrace_disable): New. | |
5409 | (record_btrace_open): Use scoped_btrace_disable. | |
5410 | ||
b2970c23 AB |
5411 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5412 | ||
5413 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
5414 | reading values from registers. | |
5415 | ||
fb294655 AB |
5416 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5417 | ||
5418 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
5419 | where appropriate. | |
5420 | ||
cab5bb9d AB |
5421 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5422 | ||
5423 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
5424 | change parameter type. Use GDB's print functions, and use | |
5425 | core_addr_to_string where appropriate. | |
5426 | (riscv_push_dummy_call): Use core_addr_to_string where | |
5427 | appropriate, update call to riscv_print_arg_location, and reindent | |
5428 | a few lines. | |
5429 | (riscv_return_value): Update call to riscv_print_arg_location. | |
5430 | ||
dbbb1059 AB |
5431 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5432 | Tim Newsome <tim@sifive.com> | |
5433 | Albert Ou <a0u@eecs.berkeley.edu> | |
5434 | Darius Rad <darius@bluespec.com> | |
5435 | ||
5436 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
5437 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
5438 | (ALLDEPFILES): Add riscv-tdep.c | |
5439 | * configure.tgt: Add riscv support. | |
5440 | * riscv-tdep.c: New file. | |
5441 | * riscv-tdep.h: New file. | |
5442 | * NEWS: Mention new target. | |
5443 | * MAINTAINERS: Add entry for riscv. | |
5444 | ||
5dc43913 AB |
5445 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5446 | ||
5447 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
5448 | fields within aggregates. | |
5449 | ||
3dea1ef7 SM |
5450 | 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
5451 | ||
5452 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
5453 | gdb_disassembly_flags. | |
5454 | ||
7efba073 JB |
5455 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
5456 | ||
5457 | * fbsd-nat.c: Include "inf-ptrace.h". | |
5458 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
5459 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
5460 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
5461 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
5462 | function. | |
5463 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
5464 | Likewise. | |
5465 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
5466 | Likewise. | |
5467 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
5468 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
5469 | "supports_stopped_by_hw_breakpoint" target methods. | |
5470 | ||
386a8676 JB |
5471 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
5472 | ||
5473 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
5474 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
5475 | (show_fbsd_nat_debug): New function. | |
5476 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
5477 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
5478 | ||
12279366 JB |
5479 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
5480 | ||
5481 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
5482 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
5483 | prototype. | |
5484 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
5485 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
5486 | method. | |
5487 | ||
54693cf5 SM |
5488 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
5489 | ||
5490 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
5491 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
5492 | ||
ccb2231c SM |
5493 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
5494 | ||
5495 | * charset.c (struct charset_vector): New. | |
5496 | (charsets): Change type to charset_vector. | |
5497 | (find_charset_names): Adjust. | |
5498 | (add_one): Adjust. | |
5499 | (_initialize_charset): Adjust. | |
5500 | ||
6fb16ce6 SM |
5501 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
5502 | ||
5503 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
5504 | type to std::vector<std::string>. | |
5505 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
5506 | * breakpoint.c (print_solib_event): Adjust. | |
5507 | (check_status_catch_solib): Adjust. | |
5508 | * solib.c (update_solib_list): Adjust. | |
5509 | * ui-out.h (class ui_out) <field_string>: New overload. | |
5510 | * ui-out.c (ui_out::field_string): New overload. | |
5511 | ||
564b1e3f SM |
5512 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
5513 | ||
5514 | * progspace.h (struct program_space): Add constructor and | |
5515 | destructor, initialize fields. | |
5516 | (add_program_space): Remove. | |
5517 | * progspace.c (add_program_space): Rename to... | |
5518 | (program_space::program_space): ... this. | |
5519 | (release_program_space): Rename to... | |
5520 | (program_space::~program_space): ... this. | |
5521 | (delete_program_space): Use delete to delete program_space. | |
5522 | (initialize_progspace): Use new to allocate program_space. | |
5523 | * inferior.c (add_inferior_with_spaces): Likewise. | |
5524 | (clone_inferior_command): Likewise. | |
5525 | * infrun.c (follow_fork_inferior): Likewise. | |
5526 | (handle_vfork_child_exec_or_exit): Likewise. | |
5527 | ||
e80aaf61 SM |
5528 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
5529 | ||
5530 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
5531 | (delim_string_to_char_ptr_vec): Return std::vector of | |
5532 | gdb::unique_xmalloc_ptr. | |
5533 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
5534 | gdb::unique_xmalloc_ptr. | |
5535 | (dirnames_to_char_ptr_vec): Return std::vector of | |
5536 | gdb::unique_xmalloc_ptr. | |
5537 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
5538 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
5539 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
5540 | gdb::unique_xmalloc_ptr, adjust the code. | |
5541 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
5542 | gdb::unique_xmalloc_ptr, adjust the code. | |
5543 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
5544 | gdb::unique_xmalloc_ptr, adjust the code. | |
5545 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
5546 | std::vector of gdb::unique_xmalloc_ptr. | |
5547 | (auto_load_expand_dir_vars): Return an std::vector of | |
5548 | gdb::unique_xmalloc_ptr, adjust the code. | |
5549 | (auto_load_safe_path_vec_update): Adjust. | |
5550 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
5551 | (auto_load_objfile_script_1): Adjust. | |
5552 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
5553 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
5554 | * source.c (add_path): Adjust. | |
5555 | (openp): Adjust. | |
5556 | * symfile.c (find_separate_debug_file): Adjust. | |
5557 | * utils.c (do_free_char_ptr_vec): Remove. | |
5558 | (make_cleanup_free_char_ptr_vec): Remove. | |
5559 | ||
ab818ade SDJ |
5560 | 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> |
5561 | ||
5562 | PR gdb/22907 | |
5563 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
5564 | ||
e1e6f073 GS |
5565 | 2018-03-01 Georg Sauthoff <mail@georg.so> |
5566 | ||
5567 | PR gdb/22888 | |
5568 | * gcore.in: Quote variables and switch interpreter to bash. | |
5569 | ||
c7b15a66 TT |
5570 | 2018-03-01 Tom Tromey <tom@tromey.com> |
5571 | ||
5572 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
5573 | assertion. Add assertion for discriminant_index. | |
5574 | (quirk_rust_enum): Use correct base type name in univariant case. | |
5575 | ||
0cb7c7b0 SM |
5576 | 2018-03-01 Simon Marchi <simon.marchi@ericsson.com> |
5577 | ||
5578 | * record.c (get_call_history_modifiers): Return a | |
5579 | record_print_flags. | |
5580 | (cmd_record_call_history): Adjust. | |
5581 | * record-btrace.c (record_btrace_call_history): Adjust. | |
5582 | (record_btrace_call_history_range): Adjust. | |
5583 | (record_btrace_call_history_from): Adjust. | |
5584 | * target-debug.h (target_debug_print_record_print_flags): New. | |
5585 | * target-delegates.c: Re-generate. | |
5586 | * target.c (target_call_history): Change flags type. | |
5587 | (target_call_history_from): Likewise. | |
5588 | (target_call_history_range): Likewise. | |
5589 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
5590 | (target_call_history_from): Likewise. | |
5591 | (target_call_history_range): Likewise. | |
5592 | ||
25e3c82c SDJ |
5593 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
5594 | Simon Marchi <simon.marchi@polymtl.ca> | |
5595 | ||
5596 | * common/common-utils.c: Include "sys/stat.h". | |
5597 | (is_regular_file): Move here from "source.c"; change return | |
5598 | type to "bool". | |
5599 | * common/common-utils.h (is_regular_file): New prototype. | |
5600 | * common/pathstuff.c (contains_dir_separator): New function. | |
5601 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
5602 | * source.c: Don't include "sys/stat.h". | |
5603 | (is_regular_file): Move to "common/common-utils.c". | |
5604 | ||
b4987c95 SDJ |
5605 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
5606 | ||
5607 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
5608 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
5609 | * auto-load.c: Include "common/pathstuff.h". | |
5610 | * common/common-def.h (current_directory): Move here. | |
5611 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
5612 | function. | |
5613 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
5614 | prototype. | |
5615 | * common/pathstuff.c: New file. | |
5616 | * common/pathstuff.h: New file. | |
5617 | * compile/compile.c: Include "common/pathstuff.h". | |
5618 | * defs.h (current_directory): Move to "common/common-defs.h". | |
5619 | * dwarf2read.c: Include "common/pathstuff.h". | |
5620 | * exec.c: Likewise. | |
5621 | * guile/scm-safe-call.c: Likewise. | |
5622 | * linux-thread-db.c: Likewise. | |
5623 | * main.c: Likewise. | |
5624 | * nto-tdep.c: Likewise. | |
5625 | * objfiles.c: Likewise. | |
5626 | * source.c: Likewise. | |
5627 | * symtab.c: Likewise. | |
5628 | * utils.c: Include "common/pathstuff.h". | |
5629 | (gdb_realpath): Move to "common/pathstuff.c". | |
5630 | (gdb_realpath_keepfile): Likewise. | |
5631 | (gdb_abspath): Likewise. | |
5632 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
5633 | (gdb_realpath_keepfile): Likewise. | |
5634 | (gdb_abspath): Likewise. | |
5635 | ||
f169cfdc JB |
5636 | 2018-02-28 John Baldwin <jhb@FreeBSD.org> |
5637 | ||
5638 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
5639 | wildcard process pid for super_resume for kernels with a | |
5640 | specific bug. | |
5641 | ||
e05cac70 PM |
5642 | 2018-02-27 Phil Muldoon <pmuldoon@redhat.com> |
5643 | ||
5644 | * compile/compile.c (get_args): Add additional comments | |
5645 | explaining function. | |
5646 | ||
55089490 TT |
5647 | 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> |
5648 | Tom Tromey <tom@tromey.com> | |
5649 | ||
5650 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
5651 | VEC. | |
5652 | (target_write_memory_blocks): Change argument to std::vector. | |
5653 | (struct memory_write_request): Add constructor. | |
5654 | * target-memory.c (compare_block_starting_address): Return bool. | |
5655 | Change argument types. | |
5656 | (claim_memory): Change arguments to use std::vector. | |
5657 | (split_regular_and_flash_blocks, blocks_to_erase) | |
5658 | (compute_garbled_blocks): Likewise. | |
5659 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
5660 | (target_write_memory_blocks): Change argument to std::vector. | |
5661 | * symfile.c (struct load_section_data): Add constructor and | |
5662 | destructor. Use std::vector for "requests". | |
5663 | (struct load_progress_data): Add initializers. | |
5664 | (load_section_callback): Update. Use "new". | |
5665 | (clear_memory_write_data): Remove. | |
5666 | (generic_load): Update. | |
5667 | ||
0c305b61 AH |
5668 | 2018-02-27 Alan Hayward <alan.hayward@arm.com> |
5669 | ||
5670 | * arch/aarch64.h: Use common/tdesc.h. | |
5671 | ||
c5196c92 MR |
5672 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
5673 | ||
5674 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
5675 | architecture with a 64-bit ABI. | |
5676 | ||
37c33887 MR |
5677 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
5678 | ||
5679 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
5680 | ahead of target description loading. | |
5681 | ||
d4dd3282 TT |
5682 | 2018-02-26 Tom Tromey <tom@tromey.com> |
5683 | ||
5684 | * stack.c (backtrace_command_1): Update. | |
5685 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
5686 | of "flags". | |
5687 | * python/py-framefilter.c (py_print_frame) | |
5688 | (gdbpy_apply_frame_filter): Change type of "flags". | |
5689 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
5690 | of "flags". | |
5691 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
5692 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
5693 | * extension.h (enum frame_filter_flag): Rename from | |
5694 | frame_filter_flags. | |
5695 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
5696 | (apply_ext_lang_frame_filter): Change type of "flags". | |
5697 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
5698 | "flags". | |
5699 | * extension-priv.h (struct extension_language_ops) | |
5700 | <apply_frame_filter>: Change type of "flags". | |
5701 | ||
6893c19a TT |
5702 | 2018-02-26 Tom Tromey <tom@tromey.com> |
5703 | ||
5704 | PR python/16497: | |
5705 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
5706 | off-by-one in py_end computation. | |
5707 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
5708 | PRINT_MORE_FRAMES. | |
5709 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
5710 | constant. | |
5711 | ||
2ddeaf8a TT |
5712 | 2018-02-26 Tom Tromey <tom@tromey.com> |
5713 | ||
5714 | * dwarf2read.c (struct variant_field): New. | |
5715 | (struct nextfield) <variant>: New field. | |
5716 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
5717 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
5718 | discriminated union. | |
5719 | (read_structure_type): Handle DW_TAG_variant_part. | |
5720 | (handle_struct_member_die): New function, extracted from | |
5721 | process_structure_scope. Handle DW_TAG_variant. | |
5722 | (process_structure_scope): Handle discriminated unions. Call | |
5723 | handle_struct_member_die. | |
5724 | ||
c9317f21 TT |
5725 | 2018-02-26 Tom Tromey <tom@tromey.com> |
5726 | ||
5727 | * rust-lang.h (rust_last_path_segment): Declare. | |
5728 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
5729 | contract. | |
5730 | (struct disr_info): Remove. | |
5731 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
5732 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
5733 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
5734 | (rust_enum_p, rust_enum_variant): New function. | |
5735 | (rust_underscore_fields): Remove "offset" parameter. | |
5736 | (rust_print_enum): New function. | |
5737 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
5738 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
5739 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
5740 | enums. | |
5741 | (rust_internal_print_type): New function, from rust_print_type. | |
5742 | Remove enum code. | |
5743 | (rust_print_type): Call rust_internal_print_type. | |
5744 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
5745 | Update enum handling. | |
5746 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
5747 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
5748 | (rust_union_quirks): New functions. | |
5749 | (process_full_comp_unit, process_full_type_unit): Call | |
5750 | rust_union_quirks. | |
5751 | (process_structure_scope): Update rust_unions if necessary. | |
5752 | ||
7c22600a TT |
5753 | 2018-02-26 Tom Tromey <tom@tromey.com> |
5754 | ||
5755 | * value.h (value_union_variant): Declare. | |
5756 | * valops.c (value_union_variant): New function. | |
5757 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
5758 | (struct discriminant_info): New. | |
5759 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
5760 | enumerator. | |
5761 | (struct main_type) <flag_discriminated_union>: New field. | |
5762 | ||
15ce8941 TT |
5763 | 2018-02-26 Tom Tromey <tom@tromey.com> |
5764 | ||
5765 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5766 | unittests/unpack-selftests.c. | |
5767 | * unittests/unpack-selftests.c: New file. | |
5768 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
5769 | ||
48fbe735 YQ |
5770 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
5771 | ||
5772 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
5773 | (read_partial_die): Remove the declaration. | |
5774 | (load_partial_dies): Update. | |
5775 | (partial_die_info::partial_die_info): | |
5776 | (read_partial_die): Change it to partial_die_info::read. | |
5777 | ||
52356b79 YQ |
5778 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
5779 | ||
5780 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
5781 | (fixup_partial_die): Remove declaration. | |
5782 | (scan_partial_symbols): Update. | |
5783 | (partial_die_parent_scope): Likewise. | |
5784 | (partial_die_full_name): Likewise. | |
5785 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
5786 | ||
35cc7ed7 YQ |
5787 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
5788 | ||
5789 | * dwarf2read.c (read_partial_die): Update the declaration. | |
5790 | (load_partial_dies): Caller update. | |
5791 | (read_partial_die): Remove one argument abbrev_len. | |
5792 | ||
6f06d47b YQ |
5793 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
5794 | ||
5795 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
5796 | assignment operator. | |
5797 | (load_partial_dies): Use ctor and copy ctor. | |
5798 | (read_partial_die): Update. | |
5799 | (dwarf2_cu::find_partial_die): Use ctor. | |
5800 | ||
d590ff25 YQ |
5801 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
5802 | ||
5803 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
5804 | (find_partial_die_in_comp_unit): Change it to | |
5805 | dwarf2_cu::find_partial_die. | |
5806 | (find_partial_die): Update. | |
5807 | ||
fd0a254f YQ |
5808 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
5809 | ||
5810 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
5811 | is NULL. | |
5812 | ||
cd9983dd YQ |
5813 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
5814 | ||
5815 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
5816 | ||
f46cd62a AH |
5817 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
5818 | ||
5819 | * arch/amd64.h: Use common/tdesc.h. | |
5820 | * arch/i386.c: Likewise. | |
5821 | * arch/i386.h: Likewise. | |
5822 | * arch/tic6x.c: Likewise. | |
5823 | * arch/tdesc.h: Move file from here... | |
5824 | * common/tdesc.h: ...to here. | |
5825 | * features/aarch64-core.c: Regenerate. | |
5826 | * features/aarch64-fpu.c: Regenerate. | |
5827 | * features/i386/32bit-avx.c: Regenerate. | |
5828 | * features/i386/32bit-avx512.c: Regenerate. | |
5829 | * features/i386/32bit-core.c: Regenerate. | |
5830 | * features/i386/32bit-linux.c: Regenerate. | |
5831 | * features/i386/32bit-mpx.c: Regenerate. | |
5832 | * features/i386/32bit-pkeys.c: Regenerate. | |
5833 | * features/i386/32bit-sse.c: Regenerate. | |
5834 | * features/i386/64bit-avx.c: Regenerate. | |
5835 | * features/i386/64bit-avx512.c: Regenerate. | |
5836 | * features/i386/64bit-core.c: Regenerate. | |
5837 | * features/i386/64bit-linux.c: Regenerate. | |
5838 | * features/i386/64bit-mpx.c: Regenerate. | |
5839 | * features/i386/64bit-pkeys.c: Regenerate. | |
5840 | * features/i386/64bit-segments.c: Regenerate. | |
5841 | * features/i386/64bit-sse.c: Regenerate. | |
5842 | * features/i386/x32-core.c: Regenerate. | |
5843 | * features/tic6x-c6xp.c: Regenerate. | |
5844 | * features/tic6x-core.c: Regenerate. | |
5845 | * features/tic6x-gp.c: Regenerate. | |
5846 | * target-descriptions.c: Use common/tdesc.h. | |
5847 | * target-descriptions.h: Likewise. | |
5848 | ||
9b292f68 TT |
5849 | 2018-02-24 Tom Tromey <tom@tromey.com> |
5850 | ||
5851 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
5852 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
5853 | std::string. | |
5854 | (info_auto_load_libthread_db_compare): Return bool. Change | |
5855 | argument types. | |
5856 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
5857 | Remove cleanups. | |
5858 | ||
281d762b TT |
5859 | 2018-02-24 Tom Tromey <tom@tromey.com> |
5860 | ||
5861 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
5862 | std::string. | |
5863 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
5864 | std::string*. | |
5865 | * gdbarch.c: Rebuild. | |
5866 | * gdbarch.h: Rebuild. | |
5867 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
5868 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
5869 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
5870 | std::string*. | |
5871 | ||
9d8780f0 SM |
5872 | 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
5873 | ||
5874 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
5875 | (sect_offset_str): New function. | |
5876 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
5877 | sect_offset_str. | |
5878 | (error_check_comp_unit_head): Likewise. | |
5879 | (create_debug_type_hash_table): Likewise. | |
5880 | (read_cutu_die_from_dwo): Likewise. | |
5881 | (init_cutu_and_read_dies): Likewise. | |
5882 | (init_cutu_and_read_dies_no_follow): Likewise. | |
5883 | (process_psymtab_comp_unit_reader): Likewise. | |
5884 | (partial_die_parent_scope): Likewise. | |
5885 | (peek_die_abbrev): Likewise. | |
5886 | (process_queue): Likewise. | |
5887 | (dwarf2_physname): Likewise. | |
5888 | (read_namespace_alias): Likewise. | |
5889 | (read_import_statement): Likewise. | |
5890 | (create_dwo_cu_reader): Likewise. | |
5891 | (create_cus_hash_table): Likewise. | |
5892 | (lookup_dwo_cutu): Likewise. | |
5893 | (inherit_abstract_dies): Likewise. | |
5894 | (read_func_scope): Likewise. | |
5895 | (read_call_site_scope): Likewise. | |
5896 | (dwarf2_add_member_fn): Likewise. | |
5897 | (read_common_block): Likewise. | |
5898 | (read_module_type): Likewise. | |
5899 | (read_typedef): Likewise. | |
5900 | (read_subrange_type): Likewise. | |
5901 | (load_partial_dies): Likewise. | |
5902 | (read_partial_die): Likewise. | |
5903 | (find_partial_die): Likewise. | |
5904 | (read_str_index): Likewise. | |
5905 | (dwarf2_string_attr): Likewise. | |
5906 | (build_error_marker_type): Likewise. | |
5907 | (lookup_die_type): Likewise. | |
5908 | (dump_die_shallow): Likewise. | |
5909 | (follow_die_ref): Likewise. | |
5910 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
5911 | (dwarf2_fetch_constant_bytes): Likewise. | |
5912 | (follow_die_sig): Likewise. | |
5913 | (get_signatured_type): Likewise. | |
5914 | (get_DW_AT_signature_type): Likewise. | |
5915 | (dwarf2_find_containing_comp_unit): Likewise. | |
5916 | (set_die_type): Likewise. | |
5917 | ||
8ec57239 JB |
5918 | 2018-02-21 John Baldwin <jhb@FreeBSD.org> |
5919 | ||
5920 | * arch/aarch64.c: Include "common-defs.h". | |
5921 | * arch/amd64.c: Likewise. | |
5922 | * arch/i386.c: Likewise. | |
5923 | ||
3eac2b65 TT |
5924 | 2018-02-21 Tom Tromey <tom@tromey.com> |
5925 | ||
5926 | * value.h: (extract_field_op): Update. | |
5927 | * eval.c (extract_field_op): Return a const char *. | |
5928 | * expression.h (parse_expression_for_completion): Update. | |
5929 | * completer.c (complete_expression): Update. | |
5930 | (add_struct_fields): Make fieldname const. | |
5931 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
5932 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
5933 | (parse_expression_for_completion): Change "name" to | |
5934 | unique_xmalloc_ptr*. | |
5935 | ||
6ccb583f TT |
5936 | 2018-02-21 Tom Tromey <tom@tromey.com> |
5937 | ||
5938 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
5939 | ||
c113ed0c YQ |
5940 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
5941 | ||
5942 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
5943 | readable_regcache. | |
5944 | * gdbarch.sh (read_pc): Likewise. | |
5945 | * gdbarch.c: Re-generated. | |
5946 | * gdbarch.h: Re-generated. | |
5947 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
5948 | readable_regcache. | |
5949 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
5950 | * mips-tdep.c (mips_read_pc): Likewise. | |
5951 | * spu-tdep.c (spu_read_pc): Likewise. | |
5952 | ||
4c74fe6b YQ |
5953 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
5954 | ||
5955 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
5956 | * regcache-dump.c: New file. | |
5957 | * regcache.c: Move register_dump to regcache-dump.c. | |
5958 | (maintenance_print_registers): Likewise. | |
5959 | (maintenance_print_raw_registers): Likewise. | |
5960 | (maintenance_print_cooked_registers): Likewise. | |
5961 | (maintenance_print_register_groups): Likewise. | |
5962 | (maintenance_print_remote_registers): Likewise. | |
5963 | (_initialize_regcache): Likewise. | |
5964 | * regcache.h (register_dump): Moved from regcache.c. | |
5965 | ||
796bb026 YQ |
5966 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
5967 | ||
5968 | * regcache.c (regcache::regcache): Update. | |
5969 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
5970 | (get_thread_arch_aspace_regcache): Update. | |
5971 | (regcache::raw_update): Update. | |
5972 | (regcache::cooked_read): Remove some code. | |
5973 | (regcache::cooked_read_value): Likewise. | |
5974 | (regcache::raw_write): Remove assert on m_readonly_p. | |
5975 | (regcache::raw_supply_integer): Move it to | |
5976 | detached_regcache::raw_supply_integer. | |
5977 | (regcache::raw_supply_zeroed): Likewise. | |
5978 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
5979 | declaration. | |
5980 | <raw_supply_zeroed, invalidate>: Likewise. | |
5981 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
5982 | <invalidate>: Likewise. | |
5983 | <m_readonly_p>: Removed. | |
5984 | ||
215c69dc YQ |
5985 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
5986 | ||
5987 | * infcmd.c (get_return_value): Let stop_regs point to | |
5988 | get_current_regcache. | |
5989 | * regcache.c (regcache::regcache): Remove. | |
5990 | (register_dump_reg_buffer): New class. | |
5991 | (regcache_print): Adjust. | |
5992 | * regcache.h (regcache): Remove constructors. | |
5993 | ||
f3384e66 YQ |
5994 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
5995 | ||
5996 | * regcache.c (class register_dump): New class. | |
5997 | (register_dump_regcache, register_dump_none): New class. | |
5998 | (register_dump_remote, register_dump_groups): New class. | |
5999 | (regcache_print): Update. | |
6000 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
6001 | (regcache) <dump>: Remove. | |
6002 | ||
c8ec2f33 YQ |
6003 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
6004 | ||
6005 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
6006 | reg_buffer_rw *. | |
6007 | (jit_unwind_reg_set_impl): Call raw_supply. | |
6008 | (jit_frame_sniffer): Use reg_buffer_rw. | |
6009 | * record-full.c (record_full_core_regbuf): Change its type. | |
6010 | (record_full_core_open_1): Use reg_buffer_rw. | |
6011 | (record_full_close): Likewise. | |
6012 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
6013 | (record_full_core_store_registers): Likewise. | |
6014 | * regcache.c (regcache::get_register_status): Move it to | |
6015 | reg_buffer. | |
6016 | (regcache_raw_set_cached_value): Remove. | |
6017 | (regcache::raw_set_cached_value): Remove. | |
6018 | (regcache::raw_write): Call raw_supply. | |
6019 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
6020 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
6021 | (reg_buffer_rw): New class. | |
6022 | ||
daf6667d YQ |
6023 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
6024 | ||
6025 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
6026 | readonly_detached_regcache. | |
6027 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
6028 | * frame.c (frame_save_as_regcache): Change return type. | |
6029 | (frame_pop): Update. | |
6030 | * frame.h (frame_save_as_regcache): Update declaration. | |
6031 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
6032 | declaration. | |
6033 | * infrun.c (infcall_suspend_state) <registers>: use | |
6034 | readonly_detached_regcache. | |
6035 | (save_infcall_suspend_state): Don't use regcache_dup. | |
6036 | (get_infcall_suspend_state_regcache): Change return type. | |
6037 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
6038 | readonly_detached_regcache. | |
6039 | <pc>: New field. | |
6040 | (fork_save_infrun_state): Don't use regcache_dup. | |
6041 | (info_checkpoints_command): Adjust. | |
6042 | * mi/mi-main.c (register_changed_p): Update declaration. | |
6043 | (mi_cmd_data_list_changed_registers): Use | |
6044 | readonly_detached_regcache. | |
6045 | (register_changed_p): Change parameter type to | |
6046 | readonly_detached_regcache. | |
6047 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
6048 | readonly_detached_regcache. | |
6049 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
6050 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
6051 | New. | |
6052 | (regcache::save): Move it to reg_buffer. | |
6053 | (regcache::restore): Change parameter type. | |
6054 | (regcache_dup): Remove. | |
6055 | * regcache.h (reg_buffer) <save>: New method. | |
6056 | (readonly_detached_regcache): New class. | |
6057 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
6058 | readonly_detached_regcache. | |
6059 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
6060 | ||
fc5b8736 YQ |
6061 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
6062 | ||
6063 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
6064 | (frame_pop): Use regcache method restore. | |
6065 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
6066 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
6067 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
6068 | save. | |
6069 | * regcache.c (regcache_save): Remove. | |
6070 | (regcache::restore): More asserts. | |
6071 | (regcache_cpy): Remove. | |
6072 | * regcache.h (regcache_save): Remove the declaration. | |
6073 | (regcache::restore): Move from private to public. | |
6074 | Remove the friend declaration of regcache_cpy. | |
6075 | (regcache_cpy): Remove declaration. | |
6076 | ||
849d0ba8 YQ |
6077 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
6078 | ||
6079 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
6080 | parameter type to 'readable_regcache *'. | |
6081 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
6082 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
6083 | (arm_pseudo_read): Likewise. | |
6084 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
6085 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
6086 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
6087 | * gdbarch.c: Re-generated. | |
6088 | * gdbarch.h: Re-generated. | |
6089 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
6090 | 'readable_regcache *'. | |
6091 | (pseudo_register_read_value): Likewise. | |
6092 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
6093 | (h8300_pseudo_register_read): Likewise. | |
6094 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
6095 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
6096 | (i386_pseudo_register_read_into_value): Likewise. | |
6097 | (i386_pseudo_register_read_value): Likewise. | |
6098 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
6099 | declaration. | |
6100 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
6101 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
6102 | (m32c_read_flg): Likewise. | |
6103 | (m32c_banked_register): Likewise. | |
6104 | (m32c_banked_read): Likewise. | |
6105 | (m32c_sb_read): Likewise. | |
6106 | (m32c_part_read): Likewise. | |
6107 | (m32c_cat_read): Likewise. | |
6108 | (m32c_r3r2r1r0_read): Likewise. | |
6109 | (m32c_pseudo_register_read): Likewise. | |
6110 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
6111 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
6112 | (mep_pseudo_cr64_read): Likewise. | |
6113 | (mep_pseudo_register_read): Likewise. | |
6114 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
6115 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
6116 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
6117 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
6118 | (regcache::cooked_read): Likewise. | |
6119 | (regcache::cooked_read_value): Likewise. | |
6120 | (regcache_cooked_read_signed): | |
6121 | (regcache::cooked_read): Likewise. | |
6122 | * regcache.h (readable_regcache): New class. | |
6123 | (regcache): Inherit readable_regcache. Move some methods to | |
6124 | readable_regcache. | |
6125 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
6126 | parameter type to 'readable_regcache *'. | |
6127 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
6128 | (e500_pseudo_register_read): Change parameter type to | |
6129 | 'readable_regcache *'. | |
6130 | (dfp_pseudo_register_read): Likewise. | |
6131 | (vsx_pseudo_register_read): Likewise. | |
6132 | (efpr_pseudo_register_read): Likewise. | |
6133 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
6134 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
6135 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
6136 | (sh64_pseudo_register_read): Likewise. | |
6137 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
6138 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
6139 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
6140 | (spu_pseudo_register_read): Likewise. | |
6141 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
6142 | (xtensa_pseudo_register_read): Likewise. | |
6143 | ||
31716595 YQ |
6144 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
6145 | ||
6146 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
6147 | (regcache::arch): Move it to reg_buffer::arch. | |
6148 | (regcache::register_buffer): Likewise. | |
6149 | (regcache::assert_regnum): Likewise. | |
6150 | (regcache::num_raw_registers): Likewise. | |
6151 | * regcache.h (reg_buffer): New class. | |
6152 | (regcache): Inherit reg_buffer. | |
6153 | ||
7104e59b SM |
6154 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
6155 | ||
6156 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
6157 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
6158 | ||
2d8adcbd MM |
6159 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
6160 | ||
6161 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
6162 | ||
b5884fa7 AH |
6163 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
6164 | ||
6165 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
6166 | (SFILES): Remove common/*.c files. | |
6167 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
6168 | * common/common.host: Add common reference. | |
6169 | * configure.ac: Likewise. | |
6170 | * configure: Regenerate. | |
6171 | ||
fd90ace4 YQ |
6172 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
6173 | ||
6174 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
6175 | (block_initialize_namespace): Use new. | |
6176 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
6177 | (dwarf2_free_objfile): Use delete. | |
6178 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
6179 | (copy_type_recursive): Use new. | |
6180 | * gdb_obstack.h (allocate_on_obstack): New. | |
6181 | ||
85046ae2 YQ |
6182 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
6183 | ||
6184 | PR gdb/22849 | |
6185 | * inferior.c (exit_inferior_1): Reset inf->control. | |
6186 | ||
355c559b JB |
6187 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
6188 | ||
6189 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
6190 | declaration. | |
6191 | ||
980548fd PA |
6192 | 2018-02-14 Pedro Alves <palves@redhat.com> |
6193 | ||
6194 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
6195 | frame_cleanup_after_sniffer on exception. | |
6196 | ||
692d6f97 TT |
6197 | 2018-02-14 Tom Tromey <tom@tromey.com> |
6198 | ||
6199 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
6200 | const. | |
6201 | (solib_bfd_open): Make pathname const. | |
6202 | * solib.c (solib_bfd_open): Make pathname const. | |
6203 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
6204 | (spu_bfd_open): Make pathname const. | |
6205 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
6206 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
6207 | ||
e0cc99a6 TT |
6208 | 2018-02-14 Tom Tromey <tom@tromey.com> |
6209 | ||
6210 | * symfile.c (symfile_bfd_open): Update. | |
6211 | * source.h (openp, source_full_path_of, find_and_open_source): | |
6212 | Change argument type to unique_xmalloc_ptr. | |
6213 | * source.c (openp): Take a unique_xmalloc_ptr. | |
6214 | (source_full_path_of, find_and_open_source): Likewise. | |
6215 | (open_source_file, symtab_to_fullname): Update. | |
6216 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
6217 | unique_xmalloc_ptr. | |
6218 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
6219 | (exec_file_find): Update. | |
6220 | * psymtab.c (psymtab_to_fullname): Update. | |
6221 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
6222 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
6223 | unique_xmalloc_ptr. | |
6224 | * exec.c (exec_file_attach): Update. | |
6225 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
6226 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
6227 | ||
b46a8d7c TT |
6228 | 2018-02-14 Tom Tromey <tom@tromey.com> |
6229 | ||
6230 | * solib.c: Include source.h. | |
6231 | * nto-tdep.c: Include source.h. | |
6232 | * mi/mi-cmd-env.c: Include source.h. | |
6233 | * infcmd.c: Include source.h. | |
6234 | * exec.c: Include source.h. | |
6235 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
6236 | (add_path, directory_switch, source_path, init_source_path): Move | |
6237 | declarations... | |
6238 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
6239 | (add_path, directory_switch, source_path, init_source_path): | |
6240 | ...here. | |
6241 | ||
797bc1cb TT |
6242 | 2018-02-14 Tom Tromey <tom@tromey.com> |
6243 | ||
6244 | * solist.h (exec_file_find, solib_find): Return | |
6245 | unique_xmalloc_ptr. | |
6246 | (solib_bfd_fopen): Take a const char *. | |
6247 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
6248 | (exec_file_find, solib_find): Likewise. | |
6249 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
6250 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
6251 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
6252 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
6253 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
6254 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
6255 | ||
f98b2e33 JB |
6256 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
6257 | ||
6258 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
6259 | ada_name_for_lookup in function's documentation. | |
6260 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
6261 | ||
24b9144d SM |
6262 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
6263 | ||
6264 | * defs.h (enum openp_flags): New enum. | |
6265 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
6266 | Move to enum openp_flags. | |
6267 | (openp_flags): New enum flags. | |
6268 | (openp): Change parameter type to openp_flags. | |
6269 | * source.c (openp): Change parameter type to openp_flags. | |
6270 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
6271 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
6272 | ||
387cd15b SM |
6273 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
6274 | ||
6275 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
6276 | per-command. | |
6277 | ||
b303c6f6 AB |
6278 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
6279 | ||
6280 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
6281 | into... | |
6282 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
6283 | (dw2_do_instantiate_symtab): Create instance of the new class | |
6284 | dwarf2_queue_guard, remove cleanup. | |
6285 | ||
9c3630e9 TT |
6286 | 2018-02-09 Tom Tromey <tom@tromey.com> |
6287 | ||
6288 | * source.c (find_source_lines): Don't reference past the end of | |
6289 | the vector. | |
6290 | ||
c4e12631 MM |
6291 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6292 | ||
6293 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
6294 | * btrace.c (btrace_enable): Likewise. | |
6295 | (parse_xml_btrace): Likewise. | |
6296 | (parse_xml_btrace_conf): Likewise. | |
6297 | ||
88711fbf MM |
6298 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6299 | ||
6300 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
6301 | (linux_enable_pt, linux_enable_bts): Call | |
6302 | diagnose_perf_event_open_fail. | |
6303 | ||
17ad2a4f MM |
6304 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6305 | ||
6306 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
6307 | Remove parameter and change return type. Update callers. Move it. | |
6308 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
6309 | (linux_enable_pt): Remove zero buffer size check. | |
6310 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
6311 | check. | |
6312 | ||
de6242d3 MM |
6313 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6314 | ||
6315 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
6316 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
6317 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
6318 | (linux_supports_pt, linux_supports_btrace): Remove. | |
6319 | (linux_enable_bts): Call cpu_supports_bts. | |
6320 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
6321 | * remote.c (remote_supports_btrace): Remove. | |
6322 | (init_remote_ops): Remove remote_supports_btrace. | |
6323 | * target-delegates.c: Regenerated. | |
6324 | * target.c (target_supports_btrace): Remove. | |
6325 | * target.h (target_ops) <to_supports_btrace>: Remove | |
6326 | (target_supports_btrace): Remove. | |
6327 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
6328 | linux_supports_btrace. | |
6329 | ||
9ee23a85 MM |
6330 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6331 | ||
6332 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
6333 | btrace failed. | |
6334 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
6335 | exception and use message in own exception. | |
6336 | ||
5c3284c1 MM |
6337 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6338 | ||
6339 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
6340 | (perf_event_pt_event_type): Use gdb_file_up. | |
6341 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
6342 | scoped_fd, and scoped_mmap. | |
6343 | ||
84696f37 MM |
6344 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6345 | ||
6346 | * common/scoped_mmap.h: New. | |
6347 | * unittests/scoped_mmap-selftest.c: New. | |
6348 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
6349 | unittests/scoped_mmap-selftest.c. | |
6350 | ||
ea4a0888 MM |
6351 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6352 | ||
6353 | * common/scoped_fd.h: New. | |
6354 | * unittests/scoped_fd-selftest.c: New. | |
6355 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
6356 | unittests/scoped_fd-selftest.c. | |
6357 | ||
869e8290 TT |
6358 | 2018-02-09 Tom Tromey <tom@tromey.com> |
6359 | ||
6360 | * auto-load.c (auto_load_section_scripts): Use | |
6361 | gdb::unique_xmalloc_ptr. | |
6362 | ||
a37a2ae7 TT |
6363 | 2018-02-09 Tom Tromey <tom@tromey.com> |
6364 | ||
6365 | * auto-load.c (execute_script_contents): Use std::string. | |
6366 | ||
4e725347 JB |
6367 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
6368 | ||
6369 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
6370 | Python function, rather than a new command. | |
6371 | ||
9a897d43 TT |
6372 | 2018-02-08 Tom Tromey <tom@tromey.com> |
6373 | ||
6374 | * solib.c (solib_find_1): Use std::string. | |
6375 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
6376 | ||
58ef3771 TT |
6377 | 2018-02-08 Tom Tromey <tom@tromey.com> |
6378 | ||
6379 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
6380 | ||
a9abc434 TT |
6381 | 2018-02-08 Tom Tromey <tom@tromey.com> |
6382 | ||
6383 | * source.c (find_source_lines): Use gdb::def_vector. | |
6384 | ||
84f27c6f TT |
6385 | 2018-02-08 Tom Tromey <tom@tromey.com> |
6386 | ||
6387 | * macrocmd.c (struct temporary_macro_definition): New. | |
6388 | (macro_define_command): Use temporary_macro_definition. Remove | |
6389 | cleanups. | |
6390 | (free_macro_definition_ptr): Remove. | |
6391 | ||
0354904b TT |
6392 | 2018-02-08 Tom Tromey <tom@tromey.com> |
6393 | ||
6394 | * macroexp.c (maybe_expand): Use std::string. | |
6395 | ||
1739cf24 TT |
6396 | 2018-02-08 Tom Tromey <tom@tromey.com> |
6397 | ||
6398 | * macroexp.c (struct macro_buffer): Add initializers for some | |
6399 | members. | |
6400 | (init_buffer, init_shared_buffer, free_buffer) | |
6401 | (free_buffer_return_text): Remove. | |
6402 | (macro_buffer): New constructors. | |
6403 | (~macro_buffer): New destructor. | |
6404 | (macro_buffer::set_shared): New method. | |
6405 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
6406 | (macro_buffer::appendmem): Now methods, not free functions. | |
6407 | (set_token, append_tokens_without_splicing, stringify) | |
6408 | (macro_stringify): Update. | |
6409 | (gather_arguments): Change return type. Remove argc_p argument, | |
6410 | add args_ptr argument. Use std::vector. | |
6411 | (substitute_args): Remove argc argument. Accept std::vector. | |
6412 | (expand): Update. Use std::vector. | |
6413 | (scan, macro_expand, macro_expand_next): Update. | |
6414 | ||
f6c2623e TT |
6415 | 2018-02-08 Tom Tromey <tom@tromey.com> |
6416 | ||
6417 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
6418 | Use unique_xmalloc_ptr. | |
6419 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
6420 | (default_macro_scope): Return unique_xmalloc_ptr. | |
6421 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
6422 | (default_macro_scope): Return unique_xmalloc_ptr. | |
6423 | * macroexp.h (macro_expand, macro_expand_once): Return | |
6424 | unique_xmalloc_ptr. | |
6425 | * macroexp.c (macro_expand, macro_expand_once): Return | |
6426 | unique_xmalloc_ptr. | |
6427 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
6428 | (info_macro_command, info_macros_command): Use | |
6429 | unique_xmalloc_ptr. | |
6430 | * compile/compile-c-support.c (write_macro_definitions): Use | |
6431 | unique_xmalloc_ptr. | |
6432 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
6433 | ||
c2e0e465 SM |
6434 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
6435 | ||
6436 | * value.c (value_static_field): Assign field type instead of | |
6437 | containing type when returning an optimized out value. | |
6438 | ||
3f8c94b4 YQ |
6439 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
6440 | ||
6441 | * ft32-tdep.c (ft32_read_pc): Remove. | |
6442 | (ft32_write_pc): Remove. | |
6443 | (ft32_gdbarch_init): Update. | |
6444 | * m32r-tdep.c (m32r_read_pc): Remove. | |
6445 | (m32r_gdbarch_init): Update. | |
6446 | * mep-tdep.c (mep_read_pc): Remove. | |
6447 | (mep_gdbarch_init): Update. | |
6448 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
6449 | (microblaze_gdbarch_init): Update. | |
6450 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
6451 | (mn10300_write_pc): Remove. | |
6452 | (mn10300_gdbarch_init): Update. | |
6453 | * moxie-tdep.c (moxie_read_pc): Remove. | |
6454 | (moxie_write_pc): Remove. | |
6455 | (moxie_gdbarch_init): Update. | |
6456 | ||
bca65a23 YQ |
6457 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
6458 | ||
6459 | * expprint.c (print_subexp_standard): Handle | |
6460 | OP_F77_UNDETERMINED_ARGLIST. | |
6461 | (dump_subexp_body_standard): Likewise. | |
6462 | ||
583e3f90 | 6463 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 6464 | |
583e3f90 YQ |
6465 | * target-descriptions.c (tdesc_element_visitor) Add empty |
6466 | implementations. | |
b8df6ca7 AH |
6467 | (tdesc_type): Move make_gdb_type from here. |
6468 | (tdesc_type_builtin): Likewise. | |
6469 | (tdesc_type_vector): Likewise. | |
6470 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
6471 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
6472 | (make_gdb_type_union): Likewise. | |
6473 | (make_gdb_type_flags): Likewise. | |
6474 | (make_gdb_type_enum): Likewise. | |
6475 | (make_gdb_type): New function. | |
6476 | (tdesc_register_type): Use static make_gdb_type. | |
6477 | ||
e813d34a RK |
6478 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
6479 | ||
6480 | * infcmd.c (default_print_one_register_info): Align natural-format | |
6481 | column values consistently one under another. | |
6482 | (pad_to_column): New function. | |
6483 | ||
0eb876f5 JB |
6484 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
6485 | ||
6486 | * dwarf2read.c (dwarf2_physname): Move commment. | |
6487 | ||
0625771b LS |
6488 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
6489 | ||
6490 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
6491 | pretty printing if pretty printing is enabled. | |
6492 | ||
59498c30 LS |
6493 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
6494 | ||
6495 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
6496 | names after a structop as a filename. | |
6497 | ||
2d9e6acb YQ |
6498 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
6499 | ||
6500 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
6501 | (arm_record_coproc_data_proc): Likewise. | |
6502 | ||
df95a9cf YQ |
6503 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
6504 | ||
6505 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
6506 | ||
07e5f5cf NP |
6507 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
6508 | ||
6509 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
6510 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
6511 | ||
3045b475 PA |
6512 | 2018-01-31 Pedro Alves <palves@redhat.com> |
6513 | ||
6514 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
6515 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
6516 | tcgetpgrp in HAVE_TERMIOS_H. | |
6517 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
6518 | _WIN32. | |
6519 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
6520 | always iterate over all inferiors. | |
6521 | (gdbsim_cntrl_c): Adjust. | |
6522 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
6523 | ||
929b5ad4 JB |
6524 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
6525 | ||
6526 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
6527 | index type is objfile-owned if the element type is as well. | |
6528 | ||
29236ca2 JB |
6529 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
6530 | ||
6531 | GDB 8.1 released. | |
6532 | ||
c81e8879 PR |
6533 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6534 | ||
6535 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
6536 | "features/s390x-linux64.c". | |
6537 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
6538 | s390_linux32 and s390x_linux64. | |
6539 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
6540 | default tdesc. | |
6541 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
6542 | "features/s390x-linux64.c". | |
6543 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
6544 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
6545 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
6546 | tdesc_s390x_linux64. | |
6547 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
6548 | tdesc_s390x_linux64 to... | |
6549 | * s390-tdep.h: ...here. | |
6550 | ||
e671cd59 PA |
6551 | 2018-01-30 Pedro Alves <palves@redhat.com> |
6552 | ||
6553 | PR gdb/13211 | |
6554 | * config.in, configure: Regenerate. | |
6555 | * configure.ac: Check for getpgid. | |
6556 | * go32-nat.c (go32_pass_ctrlc): New. | |
6557 | (go32_target): Install it. | |
6558 | * inf-child.c (inf_child_target): Install | |
6559 | child_terminal_save_inferior, child_pass_ctrlc and | |
6560 | child_interrupt. | |
6561 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
6562 | (inf_ptrace_target): No longer install it. | |
6563 | * infcmd.c (interrupt_target_1): Adjust. | |
6564 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
6565 | (child_interrupt): Declare. | |
6566 | (inferior::terminal_state): New. | |
6567 | * inflow.c (struct terminal_info): Update comments. | |
6568 | (inferior_process_group): Delete. | |
6569 | (terminal_is_ours): Delete. | |
6570 | (gdb_tty_state): New. | |
6571 | (child_terminal_init): Adjust. | |
6572 | (is_gdb_terminal, sharing_input_terminal_1) | |
6573 | (sharing_input_terminal): New functions. | |
6574 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
6575 | Set the process's actual process group in the foreground if | |
6576 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
6577 | mark terminal as the inferior's if not sharing GDB's terminal. | |
6578 | Don't check attach_flag. | |
6579 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
6580 | pass down a target_terminal_state. | |
6581 | (child_terminal_save_inferior): New, factored out from ... | |
6582 | (child_terminal_ours_1): ... this. Handle | |
6583 | target_terminal_state::is_ours_for_output. | |
6584 | (child_interrupt, child_pass_ctrlc): New. | |
6585 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
6586 | (copy_terminal_info): Copy the inferior's terminal state. | |
6587 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
6588 | * inflow.h (inferior_process_group): Delete. | |
6589 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
6590 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
6591 | (procfs_interrupt): Delete. | |
6592 | * remote.c (remote_serial_quit_handler): Adjust. | |
6593 | (remote_interrupt): Remove ptid parameter. Adjust. | |
6594 | * target-delegates.c: Regenerate. | |
6595 | * target.c: Include "terminal.h". | |
6596 | (target_terminal::terminal_state): Rename to ... | |
6597 | (target_terminal::m_terminal_state): ... this. | |
6598 | (target_terminal::init): Adjust. | |
6599 | (target_terminal::inferior): Adjust to per-inferior | |
6600 | terminal_state. | |
6601 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
6602 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
6603 | target_terminal_is_ours_kind. | |
6604 | (target_interrupt): Remove ptid parameter. Adjust. | |
6605 | (default_target_pass_ctrlc): Adjust. | |
6606 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
6607 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
6608 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
6609 | (target_pass_ctrlc): Update comment. | |
6610 | * target/target.h (target_terminal_state): New scoped enum, | |
6611 | factored out of ... | |
6612 | (target_terminal::terminal_state): ... here. | |
6613 | (target_terminal::inferior): Update comments. | |
6614 | (target_terminal::restore_inferior): New. | |
6615 | (target_terminal::is_inferior, target_terminal::is_ours) | |
6616 | (target_terminal::is_ours_for_output): Adjust. | |
6617 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
6618 | rename, and call restore_inferior() instead of inferior(). | |
6619 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
6620 | type. | |
6621 | (target_terminal::terminal_state): Rename to ... | |
6622 | (target_terminal::m_terminal_state): ... this and change type. | |
6623 | ||
9c3a5d93 PA |
6624 | 2018-01-30 Pedro Alves <palves@redhat.com> |
6625 | ||
6626 | * linux-nat.c (wait_for_signal): New function. | |
6627 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
6628 | directly. | |
6629 | (async_terminal_is_ours) | |
6630 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
6631 | (linux_nat_add_target): Don't override | |
6632 | to_terminal_inferior/to_terminal_ours. | |
6633 | ||
69ab5edb SDJ |
6634 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
6635 | ||
6636 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
6637 | ||
fc8e7e75 SM |
6638 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
6639 | ||
6640 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
6641 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
6642 | dwarf2_per_objfile_free here. | |
6643 | (dwarf2_per_objfile_free): Remove. | |
6644 | (_initialize_dwarf2_read): Don't register | |
6645 | dwarf2_per_objfile_free as a registry cleanup. | |
6646 | ||
b2a426e2 EZ |
6647 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
6648 | ||
6649 | Avoid compilation errors in MinGW native builds | |
6650 | ||
6651 | The error is triggered by including python-internal.h, and the | |
6652 | error message is: | |
6653 | ||
6654 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
6655 | from build-gnulib/import/math.h:27, | |
6656 | from d:/usr/Python26/include/pyport.h:235, | |
6657 | from d:/usr/Python26/include/Python.h:58, | |
6658 | from python/python-internal.h:94, | |
6659 | from python/py-arch.c:24: | |
6660 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
6661 | using ::hypot; | |
6662 | ^~~~~ | |
6663 | ||
6664 | This happens because Python headers define 'hypot' to expand t | |
6665 | '_hypot' in the Windows builds. | |
6666 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
6667 | 'hypoth'. This avoids a compilation error. | |
6668 | ||
0bdd8eac AH |
6669 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
6670 | ||
6671 | * MAINTAINERS (Write After Approval): Fix ordering. | |
6672 | ||
56ae9dc3 AH |
6673 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
6674 | ||
6675 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
6676 | ||
7433498b AM |
6677 | 2018-01-26 Alan Modra <amodra@gmail.com> |
6678 | ||
6679 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
6680 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
6681 | Remove nop. Make const. Comment. | |
6682 | (powerpc32_plt_stub_so_2): New. | |
6683 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
6684 | Correct count. Update uses. | |
6685 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
6686 | Move common code reading PLT entry word. Correct | |
6687 | powerpc32_plt_stub PLT address calculation. | |
6688 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
6689 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
6690 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
6691 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
6692 | (ppc64_standard_linkage8): Likewise. | |
6693 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
6694 | Correct insns description. | |
6695 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
6696 | ||
0f59d5fc PA |
6697 | 2018-01-24 Pedro Alves <palves@redhat.com> |
6698 | ||
6699 | GCC PR libstdc++/83906 | |
6700 | * gdbtypes.c (operator==(const dynamic_prop &, | |
6701 | const dynamic_prop &)): New. | |
6702 | (operator==(const range_bounds &, const range_bounds &)): New. | |
6703 | (check_types_equal): Use them instead of memcmp. | |
6704 | * gdbtypes.h (operator==(const dynamic_prop &, | |
6705 | const dynamic_prop &)): Declare. | |
6706 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
6707 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
6708 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
6709 | ||
ef8914a4 PR |
6710 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6711 | ||
6712 | * s390-linux-tdep.c (s390_record_address_mask) | |
6713 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
6714 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
6715 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
6716 | (s390_process_record): Move to s390-tdep.c. | |
6717 | (s390_linux_init_abi_any): Adjust. | |
6718 | * s390-tdep.c (s390_record_address_mask) | |
6719 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
6720 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
6721 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
6722 | (s390_process_record): Moved from s390-linux-tdep.c | |
6723 | (s390_gdbarch_init): Adjust. | |
6724 | ||
d6e58945 PR |
6725 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6726 | ||
6727 | * s390-linux-nat.c (s390-tdep.h): New include. | |
6728 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
6729 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
6730 | (ALLDEPFILES): Add s390-tdep.c. | |
6731 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
6732 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
6733 | * s390-tdep.h: ...this. New file. | |
6734 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
6735 | (_initialize_s390_tdep): Rename to... | |
6736 | (_initialize_s390_linux_tdep): ...this and adjust. | |
6737 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
6738 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
6739 | s390-tdep.h. | |
6740 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
6741 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
6742 | (s390_is_partial_instruction, s390_software_single_step) | |
6743 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
6744 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
6745 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
6746 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
6747 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
6748 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
6749 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
6750 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
6751 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
6752 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
6753 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
6754 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
6755 | (s390_address_class_type_flags_to_name) | |
6756 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
6757 | (s390_function_arg_float, s390_function_arg_vector) | |
6758 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
6759 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
6760 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
6761 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
6762 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
6763 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
6764 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
6765 | (s390_prologue_frame_unwind_cache) | |
6766 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
6767 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
6768 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
6769 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
6770 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
6771 | (s390_frame_base_address, s390_local_base_address) | |
6772 | (s390_frame_base, s390_gcc_target_options) | |
6773 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
6774 | (s390_validate_reg_range, s390_tdesc_valid) | |
6775 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
6776 | * s390-tdep.c: ...this. New file. | |
6777 | ||
9c0b896e PR |
6778 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6779 | ||
6780 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
6781 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
6782 | (s390_linux_init_abi_any): Use/set new hook. | |
6783 | ||
7042632b PR |
6784 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6785 | ||
6786 | * s390-linux-tdep.c (osabi.h): New include. | |
6787 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
6788 | (s390_linux_init_abi_any): New functions. | |
6789 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
6790 | ||
650f5e13 PR |
6791 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6792 | ||
6793 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
6794 | tdesc_has_registers check | |
6795 | ||
47c9317e PR |
6796 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6797 | ||
6798 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
6799 | (s390_validate_reg_range): New macro. | |
6800 | (s390_gdbarch_init): Adjust. | |
6801 | ||
095085d8 PR |
6802 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6803 | ||
6804 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
6805 | (s390_gdbarch_tdep_alloc): Adjust. | |
6806 | (s390_gdbarch_init): Adjust. | |
6807 | ||
ab9bcc67 PR |
6808 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6809 | ||
6810 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
6811 | <have_tdb>: Change type to bool. | |
6812 | (s390_gdbarch_tdep_alloc): Adjust. | |
6813 | (s390_gdbarch_init): Adjust. | |
6814 | ||
21f6f5ff PR |
6815 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6816 | ||
6817 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
6818 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
6819 | (s390_gdbarch_tdep_alloc): New function. | |
6820 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
6821 | instead of separate variables. | |
6822 | ||
0eb97953 PR |
6823 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
6824 | ||
6825 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
6826 | when looking for cached gdbarch and add comment for remaining. | |
6827 | ||
5c319bb2 PA |
6828 | 2018-01-22 Pedro Alves <palves@redhat.com> |
6829 | Sergio Durigan Junior <sergiodj@redhat.com> | |
6830 | ||
6831 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
6832 | case. | |
6833 | ||
d65ce302 MR |
6834 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
6835 | ||
6836 | * MAINTAINERS: Update my company e-mail address. | |
6837 | ||
ec7a5fcb YQ |
6838 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
6839 | ||
6840 | * regcache.c (cooked_write_test): New function. | |
6841 | (_initialize_regcache): Register the test. | |
6842 | ||
11f57cb6 YQ |
6843 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
6844 | ||
6845 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
6846 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
6847 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
6848 | (m32c_r3r2r1r0_read): Likewise. | |
6849 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
6850 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
6851 | ||
03f50fc8 YQ |
6852 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
6853 | ||
6854 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
6855 | method raw_read instead of regcache_raw_read. | |
6856 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
6857 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
6858 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
6859 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
6860 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
6861 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
6862 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
6863 | (i386_pseudo_register_read_into_value): Likewise. | |
6864 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
6865 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
6866 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
6867 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
6868 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
6869 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
6870 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
6871 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
6872 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
6873 | ||
dc711524 YQ |
6874 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
6875 | ||
6876 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
6877 | * configure.tgt: Remove target mt. | |
6878 | * mt-tdep.c: Remove. | |
6879 | * regcache.c (cooked_read_test): Remove the check for mt. | |
6880 | ||
3f5a868b YQ |
6881 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
6882 | ||
6883 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
6884 | instead of gdbarch_pseudo_register_read_value. | |
6885 | ||
de4cb04a JB |
6886 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
6887 | ||
6888 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
6889 | language is Ada. | |
6890 | ||
a9e40818 JB |
6891 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
6892 | ||
6893 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
6894 | the symtab_and_line's line number. | |
6895 | ||
e707fc44 AB |
6896 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6897 | ||
6898 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
6899 | floating varobj. | |
6900 | ||
03d0bf7b AB |
6901 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6902 | ||
6903 | * varobj.c (varobj_create): Remove out of date comment. | |
6904 | ||
ae451627 AB |
6905 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6906 | ||
6907 | PR mi/20395 | |
6908 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
6909 | updating innermost block. | |
6910 | * parse.c (innermost_block_tracker::update): Take extra type | |
6911 | parameter, and check types match before updating innermost block. | |
6912 | (write_dollar_variable): Update innermost block for registers. | |
6913 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
6914 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
6915 | m_types member. | |
6916 | (innermost_block_tracker::reset): Take type parameter. | |
6917 | (innermost_block_tracker::update): Take type parameter, and pass | |
6918 | type through as needed. | |
6919 | (innermost_block_tracker::m_types): New member. | |
6920 | * varobj.c (varobj_create): Pass type when reseting innermost | |
6921 | block. | |
6922 | ||
aee1fcdf AB |
6923 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6924 | ||
6925 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
6926 | * ada-lang.c (resolve_subexp): Likewise. | |
6927 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
6928 | (watch_command_1) Likewise. | |
6929 | * c-exp.y (variable): Likewise. | |
6930 | * d-exp.y (PrimaryExpression): Likewise. | |
6931 | * f-exp.y (variable): Likewise. | |
6932 | * go-exp.y (variable): Likewise. | |
6933 | * m2-exp.y (variable): Likewise. | |
6934 | * objfiles.c (objfile::~objfile): Likewise. | |
6935 | * p-exp.y (variable): Likewise. | |
6936 | * parse.c (innermost_block): Change type. | |
6937 | * parser-defs.h (class innermost_block_tracker): New. | |
6938 | (innermost_block): Change to innermost_block_tracker. | |
6939 | * printcmd.c (display_command): Switch to innermost_block API. | |
6940 | (do_one_display): Likewise. | |
6941 | * rust-exp.y (do_one_display): Likewise. | |
6942 | * symfile.c (clear_symtab_users): Likewise. | |
6943 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
6944 | use of innermost_block with block stored on varobj object. | |
6945 | ||
396af9a1 AB |
6946 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6947 | ||
6948 | * expression.h (innermost_block): Remove declaration. | |
6949 | * varobj.c: Add 'parser-defs.h' include. | |
6950 | ||
fcfcc376 TT |
6951 | 2018-01-19 Tom Tromey <tom@tromey.com> |
6952 | ||
6953 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
6954 | symbols in the static and global blocks. | |
6955 | ||
5a6c3296 JC |
6956 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
6957 | ||
6958 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
6959 | gdb_ptrace.h, and move including gdb_wait.h ... | |
6960 | * nat/linux-ptrace.h: ... to here. | |
6961 | ||
bc09b0c1 SM |
6962 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
6963 | ||
6964 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
6965 | inf_ptrace_detach_success. | |
6966 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
6967 | instead of inferior_ptid, pass it to detach_inferior. | |
6968 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
6969 | parameter. | |
6970 | * inferior.c (detach_inferior): Add overload that takes an | |
6971 | inferior object. | |
6972 | * inferior.h (detach_inferior): Likewise. | |
6973 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
6974 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
6975 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
6976 | ||
6e1e1966 SM |
6977 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
6978 | ||
6979 | * target.h (struct target_ops) <to_detach>: Add inferior | |
6980 | parameter. | |
6981 | (target_detach): Likewise. | |
6982 | * target.c (dispose_inferior): Pass inferior down. | |
6983 | (target_detach): Pass inferior down. Assert that it is equal to | |
6984 | the current inferior. | |
6985 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
6986 | * corefile.c (core_file_command): Pass current_inferior() down. | |
6987 | * corelow.c (core_detach): Add inferior parameter. | |
6988 | * darwin-nat.c (darwin_detach): Likewise. | |
6989 | * gnu-nat.c (gnu_detach): Likewise. | |
6990 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
6991 | * infcmd.c (detach_command): Pass current_inferior() down to | |
6992 | target_detach. | |
6993 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
6994 | target_detach. | |
6995 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
6996 | target_detach. | |
6997 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
6998 | * linux-thread-db.c (thread_db_detach): Likewise. | |
6999 | * nto-procfs.c (procfs_detach): Likewise. | |
7000 | * procfs.c (procfs_detach): Likewise. | |
7001 | * record.c (record_detach): Likewise. | |
7002 | * record.h (struct inferior): Forward-declare. | |
7003 | (record_detach): Add inferior parameter. | |
7004 | * remote-sim.c (gdbsim_detach): Likewise. | |
7005 | * remote.c (remote_detach_1): Likewise. | |
7006 | (remote_detach): Likewise. | |
7007 | (extended_remote_detach): Likewise. | |
7008 | * sol-thread.c (sol_thread_detach): Likewise. | |
7009 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
7010 | * target-delegates.c: Re-generate. | |
7011 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
7012 | * windows-nat.c (windows_detach): Add inferior parameter. | |
7013 | ||
6bd6f3b6 SM |
7014 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
7015 | ||
7016 | * target.h (struct target_ops) <to_detach>: Remove args | |
7017 | parameter. | |
7018 | (target_detach): Likewise. | |
7019 | * target.c (dispose_inferior): Adjust. | |
7020 | (target_detach): Remove args parameter, adjust. | |
7021 | * aix-thread.c (aix_thread_detach): Adjust. | |
7022 | * corefile.c (core_file_command): Adjust. | |
7023 | * corelow.c (core_detach): Adjust. | |
7024 | * darwin-nat.c (darwin_detach): Adjust. | |
7025 | * gnu-nat.c (gnu_detach): Adjust. | |
7026 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
7027 | * infcmd.c (detach_command): Adjust | |
7028 | * infrun.c (follow_fork_inferior): Adjust. | |
7029 | (handle_vfork_child_exec_or_exit): Adjust. | |
7030 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
7031 | * linux-fork.h (linux_fork_detach): Likewise. | |
7032 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
7033 | * linux-thread-db.c (thread_db_detach): Likewise. | |
7034 | * nto-procfs.c (procfs_detach): Likewise. | |
7035 | * procfs.c (procfs_detach): Likewise. | |
7036 | (do_detach): Remove signo parameter. | |
7037 | * record.c (record_detach): Remove args parameter. | |
7038 | * record.h (record_detach): Likewise. | |
7039 | * remote-sim.c (gdbsim_detach): Likewise. | |
7040 | * remote.c (remote_detach_1): Likewise. | |
7041 | (remote_detach): Likewise. | |
7042 | (extended_remote_detach): Likewise. | |
7043 | * sol-thread.c (sol_thread_detach): Likewise. | |
7044 | * target-delegates.c: Re-generate. | |
7045 | * top.c (struct qt_args) <args>: Remove field. | |
7046 | (kill_or_detach): Don't pass args. | |
7047 | (quit_force): Don't set args. | |
7048 | * windows-nat.c (windows_detach): Remove args parameter. | |
7049 | ||
88af8ea8 YQ |
7050 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
7051 | ||
7052 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
7053 | (arm_linux_init_abi): Install it. | |
7054 | ||
dea445b9 YQ |
7055 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
7056 | ||
7057 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
7058 | arm-linux-gnueabihf. | |
7059 | ||
4a17f768 YQ |
7060 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
7061 | ||
7062 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
7063 | m_abbrevs. | |
7064 | (abbrev_table::add_abbrev): Update. | |
7065 | (abbrev_table::lookup_abbrev): Update. | |
7066 | ||
d679c21a YQ |
7067 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
7068 | ||
7069 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
7070 | ||
7d937cad SDJ |
7071 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
7072 | ||
7073 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
7074 | to "std::string". | |
7075 | ||
9e14690d TT |
7076 | 2018-01-17 Tom Tromey <tom@tromey.com> |
7077 | ||
7078 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
7079 | ||
50a82047 TT |
7080 | 2018-01-17 Tom Tromey <tom@tromey.com> |
7081 | ||
7082 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
7083 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
7084 | (create_array_type_with_stride): Update. | |
7085 | * dwarf2read.c (set_die_type): Update. | |
7086 | ||
c89b44cd TT |
7087 | 2018-01-17 Tom Tromey <tom@tromey.com> |
7088 | ||
7089 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
7090 | (dwarf2_cu::method_info): Now a std::vector. | |
7091 | (add_to_method_list): Update. | |
7092 | (free_delayed_list): Remove. | |
7093 | (compute_delayed_physnames): Update. | |
7094 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
7095 | list. Remove cleanups. | |
7096 | (psymtab_include_file_name): Add name_holder parameter. Use | |
7097 | unique_xmalloc_ptr. | |
7098 | (dwarf_decode_lines): Update. | |
7099 | ||
fcd3b13d SM |
7100 | 2018-01-17 Tom Tromey <tom@tromey.com> |
7101 | Simon Marchi <simon.marchi@ericsson.com> | |
7102 | ||
7103 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
7104 | (dwarf2_per_objfile::free_cached_comp_units) | |
7105 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
7106 | (init_cutu_and_read_dies_no_follow): Update. | |
7107 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
7108 | (dwarf2_cu::~dwarf2_cu): New. | |
7109 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
7110 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
7111 | ||
685af9cd TT |
7112 | 2018-01-17 Tom Tromey <tom@tromey.com> |
7113 | Simon Marchi <simon.marchi@ericsson.com> | |
7114 | ||
7115 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
7116 | (struct die_reader_specs) <abbrev_table>: New member. | |
7117 | (struct abbrev_table): Add constructor. | |
7118 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
7119 | <abbrev_obstack>: Now an auto_obstack. | |
7120 | (abbrev_table_up): New typedef. | |
7121 | (init_cu_die_reader): Add abbrev_table parameter. | |
7122 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
7123 | Add result_dwo_abbrev_table. | |
7124 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
7125 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
7126 | Update. | |
7127 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
7128 | parameter. | |
7129 | (skip_children): Update. | |
7130 | (abbrev_table::alloc_abbrev): Rename from | |
7131 | abbrev_table_alloc_abbrev. | |
7132 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
7133 | (abbrev_table::lookup_abbrev): Rename from | |
7134 | abbrev_table_lookup_abbrev. | |
7135 | (abbrev_table_read_table): Return abbrev_table_up. | |
7136 | (abbrev_table_free, abbrev_table_free_cleanup) | |
7137 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
7138 | (load_partial_dies): Update. | |
7139 | ||
5e2db402 TT |
7140 | 2018-01-17 Tom Tromey <tom@tromey.com> |
7141 | ||
7142 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
7143 | (read_func_scope, read_variable): Update. | |
7144 | (new_symbol): Remove. | |
7145 | (new_symbol_full): Rename to new_symbol. | |
7146 | ||
ee7f689e | 7147 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
7148 | |
7149 | PR gdb/16577 | |
7150 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
7151 | a warning instead of throwing an error, set section size to 0 and return | |
7152 | NULL. | |
7153 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
7154 | ||
4d9b86e1 SM |
7155 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
7156 | ||
7157 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
7158 | std::string. | |
7159 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
7160 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
7161 | Likewise. | |
7162 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
7163 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
7164 | ||
a7b2d0fb SM |
7165 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
7166 | ||
7167 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
7168 | ||
f517c180 EA |
7169 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
7170 | ||
7171 | PR gdb/21559 | |
7172 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
7173 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
7174 | * configure: Regenerate. | |
7175 | ||
7045b1ca YQ |
7176 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
7177 | ||
7178 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
7179 | function. | |
7180 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
7181 | gcc_target_options. | |
7182 | ||
db422fb2 PA |
7183 | 2018-01-15 Pedro Alves <palves@redhat.com> |
7184 | ||
7185 | * common/signals-state-save-restore.c | |
7186 | (save_original_signals_state): Fix typos. | |
7187 | ||
ba643918 SDJ |
7188 | 2017-01-12 Tom Tromey <tom@tromey.com> |
7189 | Sergio Durigan Junior <sergiodj@redhat.com> | |
7190 | ||
7191 | * Makefile.in (install-only): Install gdb-add-index. | |
7192 | ||
906b4aac JB |
7193 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
7194 | ||
7195 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
7196 | ||
bdf2a94a AA |
7197 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7198 | ||
7199 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
7200 | insert_breakpoints fails. | |
7201 | ||
71d378ae PA |
7202 | 2018-01-11 Pedro Alves <palves@redhat.com> |
7203 | ||
7204 | PR gdb/22583 | |
7205 | * infrun.c (resume): Rename to ... | |
7206 | (resume_1): ... this. | |
7207 | (resume): Reimplement as wrapper around resume_1. | |
7208 | ||
3cada740 PA |
7209 | 2018-01-11 Pedro Alves <palves@redhat.com> |
7210 | ||
7211 | PR remote/22597 | |
7212 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
7213 | general thread instead of to 'magic_null_ptid'. | |
7214 | ||
618daa93 PA |
7215 | 2018-01-10 Pedro Alves <palves@redhat.com> |
7216 | ||
7217 | * language.h (language_get_symbol_name_matcher): Rename ... | |
7218 | (get_symbol_name_matcher): ... this. | |
7219 | * language.c (language_get_symbol_name_matcher): Ditto. | |
7220 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
7221 | callers adjusted. | |
7222 | ||
c63d3e8d PA |
7223 | 2018-01-10 Pedro Alves <palves@redhat.com> |
7224 | ||
7225 | PR gdb/22670 | |
7226 | * dwarf2read.c | |
7227 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
7228 | Adjust to use language_get_symbol_name_matcher instead of | |
7229 | language_defn::la_get_symbol_name_matcher. | |
7230 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
7231 | and the lookup name is a verbatim match, return Ada's matcher. | |
7232 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
7233 | (ada_lookup_name_info::verbatim_p):: New method. | |
7234 | ||
d4c2a405 PA |
7235 | 2018-01-10 Pedro Alves <palves@redhat.com> |
7236 | ||
7237 | PR gdb/22670 | |
7238 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
7239 | minsym's language is language_auto or language_cplus, pass down | |
7240 | language_ada instead. | |
7241 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
7242 | ||
8825213e PA |
7243 | 2018-01-10 Pedro Alves <palves@redhat.com> |
7244 | ||
7245 | PR gdb/22670 | |
7246 | * minsyms.c (linkage_name_str): New function. | |
7247 | (iterate_over_minimal_symbols): Use it. | |
7248 | ||
2d97a5d9 JB |
7249 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
7250 | ||
7251 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
7252 | ||
92fce24d JB |
7253 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
7254 | ||
7255 | * configure.ac: Check for kinfo_getfile in libutil. | |
7256 | * configure: Regenerate. | |
7257 | * config.in: Regenerate. | |
7258 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
7259 | (fbsd_fetch_cmdline): New. | |
7260 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
7261 | rather than calling error. | |
7262 | (fbsd_info_proc): New. | |
7263 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
7264 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
7265 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
7266 | ||
262f62f5 JB |
7267 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
7268 | ||
7269 | * fbsd-nat.c (struct free_deleter): Remove. | |
7270 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
7271 | ||
b999e203 JB |
7272 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
7273 | ||
7274 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
7275 | NULL for an empty pathname. | |
7276 | ||
d2176225 JB |
7277 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
7278 | ||
7279 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
7280 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
7281 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
7282 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
7283 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
7284 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
7285 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
7286 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
7287 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
7288 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
7289 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
7290 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
7291 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
7292 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
7293 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
7294 | ||
9c4ac400 ST |
7295 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
7296 | ||
7297 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
7298 | (gnu_xfer_auxv): New function. | |
7299 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
7300 | TARGET_OBJECT_AUXV. | |
7301 | ||
1e5ded6c YQ |
7302 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
7303 | Simon Marchi <simon.marchi@ericsson.com> | |
7304 | ||
7305 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
7306 | common/selftest.c. | |
7307 | (COMMON_OBS): Remove selftest.o. | |
7308 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
7309 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
7310 | * configure: Re-generated. | |
7311 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
7312 | GDB_SELF_TEST. | |
7313 | (maintenance_info_selftests): Likewise. | |
7314 | ||
04bafb1e XR |
7315 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
7316 | ||
7317 | * ada-valprint.c (val_print_packed_array_elements): Use | |
7318 | proper number of elements when printing an array indexed | |
7319 | by an enumeration type. | |
7320 | ||
518817b3 SM |
7321 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
7322 | ||
7323 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
7324 | (dw2_get_file_names_reader): Adjust. | |
7325 | (lookup_dwo_signatured_type): Adjust. | |
7326 | (lookup_dwp_signatured_type): Adjust. | |
7327 | (lookup_signatured_type): Adjust. | |
7328 | (create_type_unit_group): Adjust. | |
7329 | (get_type_unit_group): Adjust. | |
7330 | (process_psymtab_comp_unit_reader): Adjust. | |
7331 | (build_type_psymtabs_reader): Adjust. | |
7332 | (scan_partial_symbols): Adjust. | |
7333 | (add_partial_symbol): Adjust. | |
7334 | (add_partial_subprogram): Adjust. | |
7335 | (peek_die_abbrev): Adjust. | |
7336 | (fixup_go_packaging): Adjust. | |
7337 | (process_imported_unit_die): Adjust. | |
7338 | (dwarf2_compute_name): Adjust. | |
7339 | (dwarf2_physname): Adjust. | |
7340 | (read_import_statement): Adjust. | |
7341 | (handle_DW_AT_stmt_list): Adjust. | |
7342 | (read_file_scope): Adjust. | |
7343 | (read_func_scope): Adjust. | |
7344 | (read_lexical_block_scope): Adjust. | |
7345 | (read_call_site_scope): Adjust. | |
7346 | (read_variable): Adjust. | |
7347 | (dwarf2_rnglists_process): Adjust. | |
7348 | (dwarf2_ranges_process): Adjust. | |
7349 | (dwarf2_ranges_read): Adjust. | |
7350 | (dwarf2_get_pc_bounds): Adjust. | |
7351 | (dwarf2_record_block_ranges): Adjust. | |
7352 | (dwarf2_add_field): Adjust. | |
7353 | (dwarf2_add_member_fn): Adjust. | |
7354 | (read_structure_type): Adjust. | |
7355 | (process_structure_scope): Adjust. | |
7356 | (read_enumeration_type): Adjust. | |
7357 | (read_array_type): Adjust. | |
7358 | (mark_common_block_symbol_computed): Adjust. | |
7359 | (read_common_block): Adjust. | |
7360 | (read_namespace_type): Adjust. | |
7361 | (read_namespace): Adjust. | |
7362 | (read_module_type): Adjust. | |
7363 | (read_tag_pointer_type): Adjust. | |
7364 | (read_tag_ptr_to_member_type): Adjust. | |
7365 | (read_tag_string_type): Adjust. | |
7366 | (read_subroutine_type): Adjust. | |
7367 | (read_typedef): Adjust. | |
7368 | (read_base_type): Adjust. | |
7369 | (attr_to_dynamic_prop): Adjust. | |
7370 | (read_subrange_type): Adjust. | |
7371 | (read_unspecified_type): Adjust. | |
7372 | (dwarf2_read_abbrevs): Adjust. | |
7373 | (load_partial_dies): Adjust. | |
7374 | (read_partial_die): Adjust. | |
7375 | (find_partial_die): Adjust. | |
7376 | (guess_partial_die_structure_name): Adjust. | |
7377 | (fixup_partial_die): Adjust. | |
7378 | (read_attribute_value): Adjust. | |
7379 | (read_addr_index): Adjust. | |
7380 | (read_addr_index_from_leb128): Adjust. | |
7381 | (read_str_index): Adjust. | |
7382 | (dwarf2_string_attr): Adjust. | |
7383 | (get_debug_line_section): Adjust. | |
7384 | (dwarf_decode_line_header): Adjust. | |
7385 | (lnp_state_machine::check_line_address): Adjust. | |
7386 | (dwarf_decode_lines_1): Adjust. | |
7387 | (dwarf_decode_lines): Adjust. | |
7388 | (dwarf2_start_symtab): Adjust. | |
7389 | (var_decode_location): Adjust. | |
7390 | (new_symbol_full): Adjust. | |
7391 | (dwarf2_const_value_data): Adjust. | |
7392 | (dwarf2_const_value_attr): Adjust. | |
7393 | (dwarf2_const_value): Adjust. | |
7394 | (die_type): Adjust. | |
7395 | (die_containing_type): Adjust. | |
7396 | (build_error_marker_type): Adjust. | |
7397 | (lookup_die_type): Adjust. | |
7398 | (guess_full_die_structure_name): Adjust. | |
7399 | (anonymous_struct_prefix): Adjust. | |
7400 | (determine_prefix): Adjust. | |
7401 | (dwarf2_name): Adjust. | |
7402 | (follow_die_ref_or_sig): Adjust. | |
7403 | (follow_die_offset): Adjust. | |
7404 | (follow_die_ref): Adjust. | |
7405 | (follow_die_sig_1): Adjust. | |
7406 | (follow_die_sig): Adjust. | |
7407 | (get_signatured_type): Adjust. | |
7408 | (get_DW_AT_signature_type): Adjust. | |
7409 | (decode_locdesc): Adjust. | |
7410 | (dwarf_decode_macros): Adjust. | |
7411 | (cu_debug_loc_section): Adjust. | |
7412 | (fill_in_loclist_baton): Adjust. | |
7413 | (dwarf2_symbol_mark_computed): Adjust. | |
7414 | (init_one_comp_unit): Don't assign | |
7415 | dwarf2_cu::dwarf2_per_objfile. | |
7416 | (set_die_type): Adjust. | |
7417 | ||
ed2dc618 SM |
7418 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
7419 | ||
7420 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
7421 | <dwarf2_per_objfile>: New field. | |
7422 | (dwarf2_per_objfile): Remove global. | |
7423 | (get_dwarf2_per_objfile): New function. | |
7424 | (set_dwarf2_per_objfile): New function. | |
7425 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
7426 | dwarf2_per_objfile. | |
7427 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
7428 | (read_abbrev_offset): Likewise. | |
7429 | (read_indirect_string): Likewise. | |
7430 | (read_indirect_line_string): Likewise. | |
7431 | (read_indirect_string_at_offset): Likewise. | |
7432 | (read_indirect_string_from_dwz): Likewise. | |
7433 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
7434 | dwarf2_per_objfile. | |
7435 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
7436 | (create_all_comp_units): Change objfile parameter to | |
7437 | dwarf2_per_objfile. | |
7438 | (create_all_type_units): Likewise. | |
7439 | (process_queue): Add dwarf2_per_objfile parameter. | |
7440 | (read_and_check_comp_unit_head): Likewise. | |
7441 | (lookup_dwo_unit_in_dwp): Likewise. | |
7442 | (get_dwp_file): Likewise. | |
7443 | (process_cu_includes): Likewise. | |
7444 | (struct free_dwo_file_cleanup_data): New struct. | |
7445 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
7446 | set_dwarf2_per_objfile. | |
7447 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
7448 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
7449 | context, adjust calls. | |
7450 | (dw2_instantiate_symtab): Likewise. | |
7451 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
7452 | (dw2_get_cu): Likewise. | |
7453 | (create_cu_from_index_list): Change objfile parameter to | |
7454 | dwarf2_per_objfile. | |
7455 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
7456 | context, adjust calls. | |
7457 | (create_cus_from_index): Likewise. | |
7458 | (create_signatured_type_table_from_index): Change objfile | |
7459 | parameter to dwarf2_per_objfile. | |
7460 | (create_signatured_type_table_from_debug_names): Change objfile | |
7461 | parameter to dwarf2_per_objfile. | |
7462 | (create_addrmap_from_index): Likewise. | |
7463 | (create_addrmap_from_aranges): Likewise. | |
7464 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
7465 | (dw2_setup): Remove. | |
7466 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
7467 | context. | |
7468 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
7469 | get_dwarf2_per_objfile. | |
7470 | (dw2_forget_cached_source_info): Likewise. | |
7471 | (dw2_map_symtabs_matching_filename): Likewise. | |
7472 | (struct dw2_symtab_iterator) <index>: Remove. | |
7473 | <dwarf2_per_objfile>: New field. | |
7474 | (dw2_symtab_iter_init): Replace index parameter with | |
7475 | dwarf2_per_objfile. | |
7476 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
7477 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
7478 | (dw2_print_stats): Likewise. | |
7479 | (dw2_dump): Likewise. | |
7480 | (dw2_expand_symtabs_for_function): Likewise. | |
7481 | (dw2_expand_all_symtabs): Likewise. | |
7482 | (dw2_expand_symtabs_with_fullname): Likewise. | |
7483 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
7484 | with dwarf2_per_objfile. | |
7485 | (dw_expand_symtabs_matching_file_matcher): Add | |
7486 | dwarf2_per_objfile parameter and adjust calls. | |
7487 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
7488 | adjust calls. | |
7489 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
7490 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
7491 | adjust calls. | |
7492 | (create_cus_from_debug_names_list): Replace objfile parameter | |
7493 | with dwarf2_per_objfile and adjust calls. | |
7494 | (create_cus_from_debug_names): Likewise. | |
7495 | (dwarf2_read_debug_names): Likewise. | |
7496 | (mapped_debug_names::namei_to_name): Adjust call. | |
7497 | (dw2_debug_names_iterator::next): Likewise. | |
7498 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
7499 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
7500 | (dw2_debug_names_dump): Likewise. | |
7501 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
7502 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
7503 | (dwarf2_initialize_objfile): Likewise. | |
7504 | (dwarf2_build_psymtabs): Likewise. | |
7505 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
7506 | this_cu. | |
7507 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
7508 | (read_and_check_comp_unit_head): Likewise. | |
7509 | (read_abbrev_offset): Likewise. | |
7510 | (create_debug_type_hash_table): Likewise. | |
7511 | (create_debug_types_hash_table): Likewise. | |
7512 | (create_all_type_units): Replace objfile parameter with | |
7513 | dwarf2_per_objfile. | |
7514 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
7515 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
7516 | with dwarf2_per_objfile. | |
7517 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
7518 | (lookup_dwp_signatured_type): Likewise. | |
7519 | (lookup_signatured_type): Likewise. | |
7520 | (read_cutu_die_from_dwo): Likewise. | |
7521 | (init_tu_and_read_dwo_dies): Likewise. | |
7522 | (init_cutu_and_read_dies): Likewise. | |
7523 | (init_cutu_and_read_dies_no_follow): Likewise. | |
7524 | (allocate_type_unit_groups_table): Add objfile parameter. | |
7525 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
7526 | (get_type_unit_group): Likewise. | |
7527 | (process_psymtab_comp_unit): Update call. | |
7528 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
7529 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
7530 | (print_tu_stats): Likewise. | |
7531 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
7532 | in void* parameter. | |
7533 | (build_type_psymtabs): Change objfile parameter to | |
7534 | dwarf2_per_objfile. | |
7535 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
7536 | passed in void* parameter. | |
7537 | (process_skeletonless_type_units): Change objfile parameter to | |
7538 | dwarf2_per_objfile. | |
7539 | (set_partial_user): Likewise. | |
7540 | (dwarf2_build_psymtabs_hard): Likewise. | |
7541 | (read_comp_units_from_section): Likewise. | |
7542 | (create_all_comp_units): Likewise. | |
7543 | (scan_partial_symbols): Update calls. | |
7544 | (add_partial_symbol): Likewise. | |
7545 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
7546 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
7547 | (process_queue): Add dwarf2_per_objfile parameter. | |
7548 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
7549 | (compute_compunit_symtab_includes): Likewise. | |
7550 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
7551 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
7552 | (process_full_type_unit): Likewise. | |
7553 | (process_imported_unit_die): Update call. | |
7554 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
7555 | (read_file_scope): Likewise. | |
7556 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
7557 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
7558 | (create_cus_hash_table): Likewise. | |
7559 | (create_dwp_hash_table): Likewise. | |
7560 | (create_dwo_unit_in_dwp_v1): Likewise. | |
7561 | (create_dwp_v2_section): Likewise. | |
7562 | (create_dwo_unit_in_dwp_v2): Likewise. | |
7563 | (lookup_dwo_unit_in_dwp): Likewise. | |
7564 | (try_open_dwop_file): Likewise. | |
7565 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
7566 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
7567 | cleanup to include a reference to dwarf2_per_objfile. | |
7568 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
7569 | (open_and_init_dwp_file): Likewise. | |
7570 | (get_dwp_file): Likewise. | |
7571 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
7572 | (queue_and_load_all_dwo_tus): Update call. | |
7573 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
7574 | data. | |
7575 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
7576 | (dwarf2_ranges_process): Likewise. | |
7577 | (dwarf2_get_pc_bounds): Likewise. | |
7578 | (mark_common_block_symbol_computed): Likewise. | |
7579 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
7580 | (dwarf2_read_abbrevs): Update call. | |
7581 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
7582 | (find_partial_die): Likewise. | |
7583 | (fixup_partial_die): Likewise. | |
7584 | (read_attribute_value): Likewise. | |
7585 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
7586 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
7587 | parameter. | |
7588 | (read_indirect_string_from_dwz): Add objfile parameter. | |
7589 | (read_indirect_string): Add objfile parameter. | |
7590 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
7591 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
7592 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
7593 | call dw2_setup. | |
7594 | (read_str_index): Use dwarf2_per_objfile from cu. | |
7595 | (get_debug_line_section): Likewise. | |
7596 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
7597 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
7598 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
7599 | (build_error_marker_type): Likewise. | |
7600 | (lookup_die_type): Likewise. | |
7601 | (determine_prefix): Likewise. | |
7602 | (follow_die_offset): Likewise. | |
7603 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
7604 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
7605 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
7606 | (dwarf2_get_die_type): Likewise. | |
7607 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
7608 | (get_signatured_type): Likewise. | |
7609 | (get_DW_AT_signature_type): Likewise. | |
7610 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
7611 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
7612 | (cu_debug_loc_section): Likewise. | |
7613 | (fill_in_loclist_baton): Likewise. | |
7614 | (dwarf2_symbol_mark_computed): Likewise. | |
7615 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
7616 | dwarf2_per_objfile. | |
7617 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
7618 | parameter. | |
7619 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
7620 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
7621 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
7622 | (set_die_type): Use dwarf2_free_objfile from cu. | |
7623 | (get_die_type_at_offset): Likewise. | |
7624 | (dwarf2_per_objfile_free): Don't assign global variable. | |
7625 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
7626 | parameter, update m_debugstrlookup construction. | |
7627 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
7628 | parameter. | |
7629 | <m_dwarf2_per_objfile>: New field. | |
7630 | <lookup>: Use m_dwarf2_per_objfile. | |
7631 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
7632 | (psyms_seen_size): Likewise. | |
7633 | (write_gdbindex): Replace objfile parameter with | |
7634 | dwarf2_per_objfile. | |
7635 | (write_debug_names): Likewise. | |
7636 | (write_psymtabs_to_index): Likewise. | |
7637 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
7638 | calls. | |
7639 | ||
e3b94546 SM |
7640 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
7641 | ||
7642 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
7643 | <dwarf2_per_objfile>: New field. | |
7644 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
7645 | <dwarf2_per_objfile>: New field. | |
7646 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
7647 | of objfile. | |
7648 | (create_signatured_type_table_from_index): Likewise. | |
7649 | (create_debug_type_hash_table): Likewise. | |
7650 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
7651 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
7652 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
7653 | objfile. | |
7654 | (create_partial_symtab): Access objfile through | |
7655 | dwarf2_per_objfile. | |
7656 | (process_psymtab_comp_unit_reader): Likewise. | |
7657 | (read_comp_units_from_section): Likewise. | |
7658 | (scan_partial_symbols): Likewise. | |
7659 | (add_partial_symbol): Likewise. | |
7660 | (add_partial_subprogram): Likewise. | |
7661 | (peek_die_abbrev): Likewise. | |
7662 | (fixup_go_packaging): Likewise. | |
7663 | (process_full_comp_unit): Likewise. | |
7664 | (process_full_type_unit): Likewise. | |
7665 | (process_imported_unit_die): Likewise. | |
7666 | (dwarf2_compute_name): Likewise. | |
7667 | (dwarf2_physname): Likewise. | |
7668 | (read_import_statement): Likewise. | |
7669 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
7670 | objfile. | |
7671 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
7672 | (read_lexical_block_scope): Likewise. | |
7673 | (read_call_site_scope): Likewise. | |
7674 | (read_variable): Likewise. | |
7675 | (dwarf2_rnglists_process): Likewise. | |
7676 | (dwarf2_ranges_process): Likewise. | |
7677 | (dwarf2_ranges_read): Likewise. | |
7678 | (dwarf2_record_block_ranges): Likewise. | |
7679 | (dwarf2_add_field): Likewise. | |
7680 | (dwarf2_add_member_fn): Likewise. | |
7681 | (read_structure_type): Likewise. | |
7682 | (process_structure_scope): Likewise. | |
7683 | (read_enumeration_type): Likewise. | |
7684 | (read_array_type): Likewise. | |
7685 | (read_common_block): Likewise. | |
7686 | (read_namespace_type): Likewise. | |
7687 | (read_namespace): Likewise. | |
7688 | (read_module_type): Likewise. | |
7689 | (read_tag_pointer_type): Likewise. | |
7690 | (read_tag_ptr_to_member_type): Likewise. | |
7691 | (read_tag_string_type): Likewise. | |
7692 | (read_subroutine_type): Likewise. | |
7693 | (read_typedef): Likewise. | |
7694 | (read_base_type): Likewise. | |
7695 | (attr_to_dynamic_prop): Likewise. | |
7696 | (read_subrange_type): Likewise. | |
7697 | (read_unspecified_type): Likewise. | |
7698 | (load_partial_dies): Likewise. | |
7699 | (read_partial_die): Likewise. | |
7700 | (find_partial_die): Likewise. | |
7701 | (guess_partial_die_structure_name): Likewise. | |
7702 | (fixup_partial_die): Likewise. | |
7703 | (read_attribute_value): Likewise. | |
7704 | (read_addr_index_from_leb128): Likewise. | |
7705 | (dwarf2_read_addr_index): Likewise. | |
7706 | (dwarf2_string_attr): Likewise. | |
7707 | (lnp_state_machine::check_line_address): Likewise. | |
7708 | (dwarf_decode_lines_1): Likewise. | |
7709 | (dwarf_decode_lines): Likewise. | |
7710 | (dwarf2_start_symtab): Likewise. | |
7711 | (var_decode_location): Likewise. | |
7712 | (new_symbol_full): Likewise. | |
7713 | (dwarf2_const_value_data): Likewise. | |
7714 | (dwarf2_const_value_attr): Likewise. | |
7715 | (dwarf2_const_value): Likewise. | |
7716 | (die_type): Likewise. | |
7717 | (die_containing_type): Likewise. | |
7718 | (lookup_die_type): Likewise. | |
7719 | (guess_full_die_structure_name): Likewise. | |
7720 | (anonymous_struct_prefix): Likewise. | |
7721 | (dwarf2_name): Likewise. | |
7722 | (follow_die_ref_or_sig): Likewise. | |
7723 | (follow_die_offset): Likewise. | |
7724 | (follow_die_ref): Likewise. | |
7725 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
7726 | (dwarf2_fetch_constant_bytes): Likewise. | |
7727 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
7728 | (dwarf2_get_die_type): Likewise. | |
7729 | (follow_die_sig): Likewise. | |
7730 | (decode_locdesc): Likewise. | |
7731 | (dwarf2_per_cu_objfile): Likewise. | |
7732 | (dwarf2_per_cu_text_offset): Likewise. | |
7733 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
7734 | objfile. | |
7735 | (set_die_type): Access objfile through | |
7736 | dwarf2_per_objfile. | |
7737 | ||
b01ba14d SM |
7738 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
7739 | ||
7740 | * valprint.c (converted_character_d): Remove typedef. | |
7741 | (DEF_VEC_O (converted_character_d)): Remove. | |
7742 | (count_next_character): Use std::vector. | |
7743 | (print_converted_chars_to_obstack): Likewise. | |
7744 | (generic_printstr): Likewise. | |
7745 | ||
4d0fdd9b SM |
7746 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
7747 | ||
7748 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
7749 | <value>: Change type to unique_xmalloc_ptr. | |
7750 | (gdb_xml_value_s): Remove typedef. | |
7751 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
7752 | (gdb_xml_element_start_handler): Change parameter type to | |
7753 | std::vector. | |
7754 | (xml_find_attribute): Likewise. | |
7755 | * xml-support.c (xml_find_attribute): Change parameter type to | |
7756 | std::vector and adjust. | |
7757 | (gdb_xml_values_cleanup): Remove. | |
7758 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
7759 | (xinclude_start_include): Change paraeter type to std::vector | |
7760 | and adjust. | |
7761 | * btrace.c (check_xml_btrace_version): Likewise. | |
7762 | (parse_xml_btrace_block): Likewise. | |
7763 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
7764 | (parse_xml_btrace_pt): Likewise. | |
7765 | (parse_xml_btrace_conf_bts): Likewise. | |
7766 | (parse_xml_btrace_conf_pt): Likewise. | |
7767 | * memory-map.c (memory_map_start_memory): Likewise. | |
7768 | (memory_map_start_property): Likewise. | |
7769 | * osdata.c (osdata_start_osdata): Likewise. | |
7770 | (osdata_start_item): Likewise. | |
7771 | (osdata_start_column): Likewise. | |
7772 | * remote.c (start_thread): Likewise. | |
7773 | * solib-aix.c (library_list_start_library): Likewise. | |
7774 | (library_list_start_list): Likewise. | |
7775 | * solib-svr4.c (library_list_start_library): Likewise. | |
7776 | (svr4_library_list_start_list): Likewise. | |
7777 | * solib-target.c (library_list_start_segment): Likewise. | |
7778 | (library_list_start_section): Likewise. | |
7779 | (library_list_start_library): Likewise. | |
7780 | (library_list_start_list): Likewise. | |
7781 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
7782 | (traceframe_info_start_tvar): Likewise. | |
7783 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
7784 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
7785 | (tdesc_start_feature): Likewise. | |
7786 | (tdesc_start_reg): Likewise. | |
7787 | (tdesc_start_union): Likewise. | |
7788 | (tdesc_start_struct): Likewise. | |
7789 | (tdesc_start_flags): Likewise. | |
7790 | (tdesc_start_enum): Likewise. | |
7791 | (tdesc_start_field): Likewise. | |
7792 | (tdesc_start_enum_value): Likewise. | |
7793 | (tdesc_start_vector): Likewise. | |
7794 | ||
f979c73f SM |
7795 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
7796 | ||
7797 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
7798 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
7799 | Remove. | |
7800 | (python_xmethod_worker::clone): Remove. | |
7801 | * valops.c (find_overload_match): Use std::move instead of | |
7802 | clone. | |
7803 | ||
ba18742c SM |
7804 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
7805 | ||
7806 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
7807 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
7808 | <free_xmethod_worker_data>: Remove. | |
7809 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
7810 | <get_xmethod_arg_types>: Remove. | |
7811 | <get_xmethod_result_type>: Remove. | |
7812 | <invoke_xmethod>: Remove. | |
7813 | * extension.c (new_xmethod_worker): Remove. | |
7814 | (clone_xmethod_worker): Remove. | |
7815 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
7816 | pointer. | |
7817 | (get_xmethod_arg_types): Rename to... | |
7818 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
7819 | (get_xmethod_result_type): Rename to... | |
7820 | (xmethod_worker::get_result_type): ... this, and adjust. | |
7821 | (invoke_xmethod): Remove. | |
7822 | (free_xmethod_worker): Remove. | |
7823 | (free_xmethod_worker_vec): Remove. | |
7824 | * extension.h (enum ext_lang_rc): Move here from | |
7825 | extension-priv.h. | |
7826 | (struct xmethod_worker): Add constructor and destructor. | |
7827 | <data>: Remove. | |
7828 | <value>: Remove. | |
7829 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
7830 | virtual pure methods. | |
7831 | <get_arg_types, get_result_type>: New methods. | |
7832 | (xmethod_worker_ptr): Remove typedef. | |
7833 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
7834 | (xmethod_worker_vec): Remove typedef. | |
7835 | (xmethod_worker_up): New typedef. | |
7836 | (invoke_xmethod): Remove. | |
7837 | (clone_xmethod_worker): Remove. | |
7838 | (free_xmethod_worker): Remove. | |
7839 | (free_xmethod_worker_vec): Remove. | |
7840 | (get_xmethod_arg_types): Remove. | |
7841 | (get_xmethod_result_type): Remove. | |
7842 | * valops.c (find_method_list): Use std::vector, don't use | |
7843 | intermediate vector. | |
7844 | (value_find_oload_method_list): Use std::vector. | |
7845 | (find_overload_match): Use std::vector. | |
7846 | (find_oload_champ): Use std::vector. | |
7847 | * value.c (value_free): Use operator delete. | |
7848 | (value_of_xmethod): Rename to... | |
7849 | (value_from_xmethod): ... this. Don't assign | |
7850 | xmethod_worker::value, take rvalue-reference. | |
7851 | (result_type_of_xmethod): Adjust. | |
7852 | (call_xmethod): Adjust. | |
7853 | * value.h: Include extension.h. | |
7854 | (struct xmethod_worker): Don't forward-declare. | |
7855 | (value_of_xmethod): Rename to... | |
7856 | (value_from_xmethod): ... this, take rvalue-reference. | |
7857 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
7858 | (struct python_xmethod_worker): ... this, add constructor and | |
7859 | destructor. | |
7860 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
7861 | (gdbpy_free_xmethod_worker_data): Rename to... | |
7862 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
7863 | adjust. | |
7864 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
7865 | (python_xmethod_worker::clone): ... this and adjust. | |
7866 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
7867 | temporary vector. | |
7868 | (gdbpy_get_xmethod_arg_types): Rename to... | |
7869 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
7870 | (gdbpy_get_xmethod_result_type): Rename to... | |
7871 | (python_xmethod_worker::do_get_result_type): ... this and | |
7872 | adjust. | |
7873 | (gdbpy_invoke_xmethod): Rename to... | |
7874 | (python_xmethod_worker::invoke): ... this and adjust. | |
7875 | (new_python_xmethod_worker): Rename to... | |
7876 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
7877 | adjust. | |
7878 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
7879 | Remove. | |
7880 | (gdbpy_free_xmethod_worker_data): Remove. | |
7881 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
7882 | (gdbpy_get_xmethod_arg_types): Remove. | |
7883 | (gdbpy_get_xmethod_result_type): Remove. | |
7884 | (gdbpy_invoke_xmethod): Remove. | |
7885 | * python/python.c (python_extension_ops): Remove obsolete | |
7886 | callbacks. | |
7887 | ||
e379cee6 PA |
7888 | 2018-01-05 Pedro Alves <palves@redhat.com> |
7889 | ||
7890 | PR gdb/18653 | |
7891 | * common/signals-state-save-restore.c | |
7892 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
7893 | find a custom handler preinstalled, instead of internal erroring. | |
7894 | But only warn if !quiet. | |
7895 | * common/signals-state-save-restore.h | |
7896 | (save_original_signals_state): New parameter 'quiet'. | |
7897 | * main.c (captured_main_1): Move save_original_signals_state call | |
7898 | after option handling, and pass QUIET. | |
7899 | ||
a655456c PA |
7900 | 2018-01-05 Pedro Alves <palves@redhat.com> |
7901 | ||
7902 | * spu-tdep.c (spu_catch_start): Pass | |
7903 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
7904 | ||
de63c46b PA |
7905 | 2018-01-05 Pedro Alves <palves@redhat.com> |
7906 | ||
7907 | PR gdb/22670 | |
7908 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
7909 | (ada_get_symbol_name_matcher): Use it for | |
7910 | symbol_name_match_type::SEARCH_NAME. | |
7911 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
7912 | it down instead of assuming symbol_name_match_type::FULL. | |
7913 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
7914 | * c-valprint.c (print_unpacked_pointer): Use | |
7915 | lookup_symbol_search_name instead of lookup_symbol. | |
7916 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
7917 | symbol_name_match_type::SEARCH_NAME. | |
7918 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
7919 | symbol_name_match_type::FULL. | |
7920 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
7921 | symbol_name_match_type::SEARCH_NAME. | |
7922 | * infrun.c (insert_exception_resume_breakpoint): Use | |
7923 | lookup_symbol_search_name. | |
7924 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
7925 | * psymtab.c (maintenance_check_psymtabs): Use | |
7926 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
7927 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
7928 | SYMBOL_SEARCH_NAME. | |
7929 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
7930 | if symbol_name_match_type::SEARCH_NAME. | |
7931 | (lookup_symbol_in_language): Pass down | |
7932 | symbol_name_match_type::FULL. | |
7933 | (lookup_symbol_search_name): New. | |
7934 | (lookup_language_this): Pass down | |
7935 | symbol_name_match_type::SEARCH_NAME. | |
7936 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
7937 | 'match_type'. Pass it down. | |
7938 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
7939 | (lookup_symbol_search_name): New declaration. | |
7940 | (lookup_symbol_in_block): New 'match_type' parameter. | |
7941 | ||
f98fc17b PA |
7942 | 2018-01-05 Pedro Alves <palves@redhat.com> |
7943 | ||
7944 | PR gdb/22670 | |
7945 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
7946 | ada_lookup_symbol. | |
7947 | (ada_lookup_symbol): Reimplement in terms of | |
7948 | ada_lookup_symbol_list, bits factored out from | |
7949 | ada_lookup_encoded_symbol. | |
7950 | ||
342f8240 JB |
7951 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
7952 | ||
7953 | * ada-exp.y (write_object_renaming): When subscripting an array | |
7954 | using a symbol as the index, pass the block in call to | |
7955 | ada_lookup_encoded_symbol when looking that symbol up. | |
7956 | ||
7150d33c JG |
7957 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
7958 | ||
7959 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
7960 | TYPE_INDEX_TYPE. | |
7961 | ||
cc0e770c JB |
7962 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
7963 | ||
7964 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
7965 | the case where VALUE_LVAL (val0) is not lval_memory. | |
7966 | ||
f79da888 | 7967 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
7968 | |
7969 | * ada-valprint.c (print_optional_low_bound): Handle | |
7970 | character-indexed array printing like boolean-indexed array | |
7971 | printing. | |
7972 | ||
cd385f94 JB |
7973 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
7974 | ||
7975 | * NEWS: Create a new section for the next release branch. | |
7976 | Rename the section of the current branch, now that it has | |
7977 | been cut. | |
7978 | ||
09aca949 JB |
7979 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
7980 | ||
7981 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
7982 | * version.in: Bump version to 8.1.50.DATE-git. | |
7983 | ||
9f757bf7 XR |
7984 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
7985 | ||
7986 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
7987 | Add field. | |
7988 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
7989 | Add field. | |
7990 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
7991 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
7992 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
7993 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
7994 | Update all callers. | |
7995 | (create_excep_cond_exprs) <ex>: Add parameter. | |
7996 | (re_set_exception): Update create_excep_cond_exprs call. | |
7997 | (print_it_exception, print_one_exception, print_mention_exception) | |
7998 | (print_recreate_exception): Add "catch handler" handling. | |
7999 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
8000 | (check_status_catch_handlers, print_it_catch_handlers) | |
8001 | (print_one_catch_handlers, print_mention_catch_handlers) | |
8002 | (print_recreate_catch_handlers): New function. | |
8003 | (catch_handlers_breakpoint_ops): New variable. | |
8004 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
8005 | Add parameter. Add "catch handler" handling. | |
8006 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
8007 | Add "catch handler" handling. | |
8008 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
8009 | handling. | |
8010 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
8011 | call. | |
8012 | (catch_ada_handlers_command): New function. | |
8013 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
8014 | operations structure. | |
8015 | (_initialize_ada_language): Add "catch handlers" command entry. | |
8016 | * NEWS: Document "catch handlers" feature. | |
8017 | ||
9fe561ab JB |
8018 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
8019 | ||
8020 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
8021 | account when creating the array type of the slice. | |
8022 | (ada_value_slice): Likewise. | |
8023 | ||
a405673c JB |
8024 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
8025 | ||
8026 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
8027 | New enum value. | |
8028 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
8029 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
8030 | New parameter. Update all callers in this file. | |
8031 | (array_type_has_dynamic_stride): New function. | |
8032 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
8033 | of arrays with dynamic byte strides. | |
8034 | * dwarf2read.c (read_array_type): Add support for dynamic | |
8035 | DW_AT_byte_stride attributes. | |
8036 | ||
74a2f8ff JB |
8037 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
8038 | ||
8039 | * dwarf2read.c (read_unspecified_type): Treat | |
8040 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
8041 | ||
e2882c85 JB |
8042 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
8043 | ||
8044 | Update copyright year range in all GDB files. | |
8045 | ||
1690bb24 JB |
8046 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
8047 | ||
8048 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
8049 | and gdb/testsuite/gdb.base/step-line.c. | |
8050 | ||
0f0c98a8 JB |
8051 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
8052 | ||
8053 | * copyright.py (main): Dump the contents of | |
8054 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
8055 | even if BY_HAND is empty. | |
8056 | ||
82e1e79a JB |
8057 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
8058 | ||
8059 | * top.c (print_gdb_version): Update Copyright year in version | |
8060 | message. | |
8061 | ||
053f54e5 | 8062 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 8063 | |
053f54e5 | 8064 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 8065 | |
053f54e5 | 8066 | For older changes see ChangeLog-2017. |
c906108c SS |
8067 | \f |
8068 | Local Variables: | |
8069 | mode: change-log | |
8070 | left-margin: 8 | |
8071 | fill-column: 74 | |
8072 | version-control: never | |
57da7796 | 8073 | coding: utf-8 |
c906108c | 8074 | End: |