]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove some unused variables in dwarf2read.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5ca3fcb6
SM
12018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * dwarf2read.c (create_signatured_type_table_from_debug_names):
4 Remove unused variables.
5 (dw2_map_symtabs_matching_filename): Likewise.
6 (dwarf2_record_block_ranges): Likewise.
7 (dwarf2_read_addr_index): Likewise.
8 (follow_die_offset): Likewise.
9
b2e586e8
SM
102018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
13 to symbol_file_add_main.
14
7c4e78cf
SM
152018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
16
17 PR mi/22299
18 * mi/mi-console.c (do_fputc_async_safe): New.
19 (mi_console_file::write_async_safe): New.
20 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
21 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
22 New.
23 * ui-file.c (ui_file::putstrn): Adjust call to
24 fputstrn_unfiltered.
25 * utils.c (printchar): Replace do_fputs and do_fprintf
26 parameters by do_fputc.
27 (fputstr_filtered): Adjust call to printchar.
28 (fputstr_unfiltered): Likewise.
29 (fputstrn_filtered): Likewise.
30 (fputstrn_unfiltered): Add do_fputc parameter, pass to
31 printchar.
32 * utils.h (do_fputc_ftype): New typedef.
33 (fputstrn_unfiltered): Add do_fputc parameter.
34
5dc026d3
SM
352018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * regformats/i386/i386-avx.dat: Remove.
38
c912f608
SM
392018-04-07 Simon Marchi <simon.marchi@ericsson.com>
40
41 PR gdb/22979
42 * amd64-tdep.c (amd64_none_init_abi): New function.
43 (amd64_x32_none_init_abi): New function.
44 (_initialize_amd64_tdep): Register handlers for x86-64 and
45 x64_32 with GDB_OSABI_NONE.
46 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
47 GDB_OSABI_NONE osabi.
48
26540402
SM
492018-04-07 Simon Marchi <simon.marchi@ericsson.com>
50
51 PR gdb/22980
52 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
53 GDB_OSABI_NONE.
54 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
55 * osabi.c (gdb_osabi_names): Add "unknown" entry.
56
9018be22
SM
572018-04-07 Simon Marchi <simon.marchi@ericsson.com>
58
59 * common/byte-vector.h (char_vector): New type.
60 * target.h (target_read_alloc): Return
61 gdb::optional<byte_vector>.
62 (target_read_stralloc): Return gdb::optional<char_vector>.
63 (target_get_osdata): Return gdb::optional<char_vector>.
64 * target.c (target_read_alloc_1): Templatize. Replacement
65 manual memory management with vector.
66 (target_read_alloc): Change return type, adjust.
67 (target_read_stralloc): Change return type, adjust.
68 (target_get_osdata): Change return type, adjust.
69 * auxv.c (struct auxv_info) <length>: Remove.
70 <data>: Change type to gdb::optional<byte_vector>.
71 (auxv_inferior_data_cleanup): Free auxv_info with delete.
72 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
73 (target_auxv_search): Adjust.
74 (fprint_target_auxv): Adjust.
75 * avr-tdep.c (avr_io_reg_read_command): Adjust.
76 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
77 (linux_make_corefile_notes): Adjust.
78 * osdata.c (get_osdata): Adjust.
79 * remote.c (remote_get_threads_with_qxfer): Adjust.
80 (remote_memory_map): Adjust.
81 (remote_traceframe_info): Adjust.
82 (btrace_read_config): Adjust.
83 (remote_read_btrace): Adjust.
84 (remote_pid_to_exec_file): Adjust.
85 * solib-aix.c (solib_aix_get_library_list): Adjust.
86 * solib-dsbt.c (decode_loadmap): Don't free buf.
87 (dsbt_get_initial_loadmaps): Adjust.
88 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
89 * solib-target.c (solib_target_current_sos): Adjust.
90 * tracepoint.c (sdata_make_value): Adjust.
91 * xml-support.c (xinclude_start_include): Adjust.
92 (xml_fetch_content_from_file): Adjust.
93 * xml-support.h (xml_fetch_another): Change return type.
94 (xml_fetch_content_from_file): Change return type.
95 * xml-syscall.c (xml_init_syscalls_info): Adjust.
96 * xml-tdesc.c (file_read_description_xml): Adjust.
97 (fetch_available_features_from_target): Change return type.
98 (target_fetch_description_xml): Adjust.
99 (target_read_description_xml): Adjust.
100
14c88955
TT
1012018-04-06 Tom Tromey <tom@tromey.com>
102
103 * value.c (~value): Update.
104 (struct value) <contents>: Now unique_xmalloc_ptr.
105 (value_contents_bits_eq, allocate_value_contents)
106 (value_contents_raw, value_contents_all_raw)
107 (value_contents_for_printing, value_contents_for_printing_const)
108 (set_value_enclosing_type): Update.
109
0c7e6dd8
TT
1102018-04-06 Tom Tromey <tom@tromey.com>
111
112 * value.c (range_s): Remove typedef, VEC.
113 (struct range): Add operator<.
114 (range_lessthan): Remove.
115 (ranges_contain): Change type.
116 (~value): Update.
117 (struct value) <unavailable, optimized_out>: Now std::vector.
118 (value_entirely_available)
119 (value_entirely_covered_by_range_vector)
120 (value_entirely_unavailable, value_entirely_optimized_out):
121 Update.
122 (insert_into_bit_range_vector): Change argument type.
123 (find_first_range_overlap): Likewise.
124 (struct ranges_and_idx, value_contents_bits_eq)
125 (require_not_optimized_out, require_available): Update.
126 (ranges_copy_adjusted): Change argument types.
127 (value_optimized_out, value_copy, value_fetch_lazy): Update.
128
2c8331b9
TT
1292018-04-06 Tom Tromey <tom@tromey.com>
130
131 * value.c (~value): Update.
132 (struct value) <parent>: Now a value_ref_ptr.
133 (value_parent, set_value_parent, value_address, value_copy):
134 Update.
135
466ce3ae
TT
1362018-04-06 Tom Tromey <tom@tromey.com>
137
138 * value.c (struct value): Add constructor, destructor, and member
139 initializers.
140 (allocate_value_lazy, value_decref): Update.
141
062d818d
TT
1422018-04-06 Tom Tromey <tom@tromey.com>
143
144 * value.c (struct value) <released, next>: Remove.
145 (all_values): Now a std::vector.
146 (allocate_value_lazy): Update.
147 (value_next): Remove.
148 (value_mark, value_free_to_mark, release_value)
149 (value_release_to_mark): Update.
150
a6535de1
TT
1512018-04-06 Tom Tromey <tom@tromey.com>
152
153 * value.h (fetch_subexp_value, value_release_to_mark): Update.
154 (free_value_chain): Remove.
155 * value.c (free_value_chain): Remove.
156 (value_release_to_mark): Return a std::vector.
157 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
158 std::vector.
159 (check_condition): Update.
160 * eval.c (fetch_subexp_value): Change "val_chain" to a
161 std::vector.
162 * breakpoint.c (update_watchpoint): Update.
163 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
164
b5621201
TT
1652018-04-06 Tom Tromey <tom@tromey.com>
166
167 * value.h (free_all_values): Remove.
168 * value.c (free_all_values): Remove.
169
4d0266a0
TT
1702018-04-06 Tom Tromey <tom@tromey.com>
171
172 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
173 (value_history_chain, value_history_count): Remove.
174 (value_history): New global.
175 (record_latest_value, access_value_history, show_values)
176 (preserve_values): Update.
177
b4d61099
TT
1782018-04-06 Tom Tromey <tom@tromey.com>
179
180 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
181 * varobj.c (varobj_set_display_format, varobj_set_value)
182 (install_default_visualizer, construct_visualizer)
183 (install_new_value, ~varobj, varobj_get_value_type)
184 (my_value_of_variable, varobj_editable_p): Update.
185 * c-varobj.c (c_describe_child, c_value_of_variable)
186 (cplus_number_of_children, cplus_describe_child): Update.
187 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
188 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
189 (ada_value_of_variable, ada_value_is_changeable_p): Update.
190
9b558729
TT
1912018-04-06 Tom Tromey <tom@tromey.com>
192
193 * printcmd.c (last_examine_address): Change type to
194 value_ref_ptr.
195 (do_examine, x_command): Update.
196
850645cf
TT
1972018-04-06 Tom Tromey <tom@tromey.com>
198
199 * value.c (release_value): Update.
200 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
201 (struct bpstats) <val>: Now a value_ref_ptr.
202 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
203 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
204 (~watchpoint, print_it_watchpoint, watch_command_1)
205 (invalidate_bp_value_on_memory_change): Update.
206
22bc8444
TT
2072018-04-06 Tom Tromey <tom@tromey.com>
208
209 * varobj.c (varobj_clear_saved_item)
210 (update_dynamic_varobj_children, install_new_value, ~varobj):
211 Update.
212 * value.h (value_incref): Move declaration earlier.
213 (value_decref): Rename from value_free.
214 (struct value_ref_policy): New.
215 (value_ref_ptr): New typedef.
216 (struct value_deleter): Remove.
217 (gdb_value_up): Remove typedef.
218 (release_value): Change return type.
219 (release_value_or_incref): Remove.
220 * value.c (set_value_parent): Update.
221 (value_incref): Change return type.
222 (value_decref): Rename from value_free.
223 (value_free_to_mark, free_all_values, free_value_chain): Update.
224 (release_value): Return value_ref_ptr.
225 (release_value_or_incref): Remove.
226 (record_latest_value, set_internalvar, clear_internalvar):
227 Update.
228 * stack.c (info_frame_command): Don't call value_free.
229 * python/py-value.c (valpy_dealloc, valpy_new)
230 (value_to_value_object): Update.
231 * printcmd.c (do_examine): Update.
232 * opencl-lang.c (lval_func_free_closure): Update.
233 * mi/mi-main.c (register_changed_p): Don't call value_free.
234 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
235 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
236 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
237 value_free.
238 * guile/scm-value.c (vlscm_free_value_smob)
239 (vlscm_scm_from_value): Update.
240 * frame.c (frame_register_unwind, frame_unwind_register_signed)
241 (frame_unwind_register_unsigned, get_frame_register_bytes)
242 (put_frame_register_bytes): Don't call value_free.
243 * findvar.c (address_from_register): Don't call value_free.
244 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
245 * dwarf2loc.c (entry_data_value_free_closure)
246 (value_of_dwarf_reg_entry, free_pieced_value_closure)
247 (dwarf2_evaluate_loc_desc_full): Update.
248 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
249 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
250 (~watchpoint, watch_command_1)
251 (invalidate_bp_value_on_memory_change): Update.
252 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
253
7f8a5d38
SM
2542018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
255
256 PR gdb/23022
257 * warning.m4: Add -Wno-error=deprecated-register.
258 * configure: Re-generate.
259
8a76bd3b
TT
2602018-04-05 Tom Tromey <tom@tromey.com>
261
262 * linespec.h: Remove include of "vec.h".
263
8e8d776e
TT
2642018-04-05 Tom Tromey <tom@tromey.com>
265
266 * linespec.c (typep): Remove typedef.
267 (find_methods, find_superclass_methods): Take a std::vector.
268 (find_method): Use std::vector.
269
9b2f8581
TT
2702018-04-05 Tom Tromey <tom@tromey.com>
271
272 * utils.c (compare_strings): Remove.
273 * utils.h (compare_strings): Remove.
274 * objc-lang.h (find_imps): Update.
275 * objc-lang.c (find_methods): Take a std::vector.
276 (uniquify_strings, find_imps): Likewise.
277 * linespec.c (find_methods): Take a std::vector.
278 (decode_objc): Use std::vector.
279 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
280 a std::vector.
281 (find_method, find_function_symbols): Use std::vector.
282
459a2e4c
TT
2832018-04-05 Tom Tromey <tom@tromey.com>
284
285 * completer.c (completion_tracker::completion_tracker): Remove
286 cast.
287 (completion_tracker::discard_completions): Likewise.
288 * breakpoint.c (ambiguous_names_p): Remove cast.
289 * ada-lang.c (_initialize_ada_language): Remove cast.
290 * utils.h (streq): Update.
291 (streq_hash): Add new declaration.
292 * utils.c (streq): Return bool.
293 (streq_hash): New function.
294
9be2c17a
TT
2952018-04-05 Tom Tromey <tom@tromey.com>
296
297 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
298 Remove a string copy.
299
f73c6ece
TT
3002018-04-05 Tom Tromey <tom@tromey.com>
301
302 * linespec.c (filter_results): Use std::vector.
303 (decode_line_2, decode_line_full): Update.
304
53a0f8a2
TT
3052018-04-05 Tom Tromey <tom@tromey.com>
306
307 * linespec.c (canonical_to_fullform): Return std::string.
308 (filter_results): Update.
309 (struct decode_line_2_item): Add constructor.
310 <fullform, displayform>: Now std::string.
311 (decode_line_2_compare_items): Now a std::sort comparator.
312 (decode_line_2): Update.
313
a5b5adf5
TT
3142018-04-05 Tom Tromey <tom@tromey.com>
315
316 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
317 (unexpected_linespec_error): Update.
318 (linespec_parse_basic, parse_linespec): Update.
319
6a307fc5
TT
3202018-04-05 Tom Tromey <tom@tromey.com>
321
322 * linespec.c (linespec_parse_basic): Reindent.
323
41c1efc6
TT
3242018-04-05 Tom Tromey <tom@tromey.com>
325
326 * minsyms.h (iterate_over_minimal_symbols): Update.
327 * minsyms.c (iterate_over_minimal_symbols): Take a
328 gdb::function_view.
329 * linespec.c (struct collect_minsyms): Remove.
330 (compare_msyms): Now a std::sort comparator.
331 (add_minsym): Add parameters.
332 (search_minsyms_for_name): Update. Use std::vector.
333
c5edbf3d
TT
3342018-04-03 Tom Tromey <tom@tromey.com>
335
336 * mipsread.c (read_alphacoff_dynamic_symtab): Use
337 gdb::byte_vector.
338
b39efc48
WP
3392018-04-02 Weimin Pan <weimin.pan@oracle.com>
340
341 * MAINTAINERS (Write After Approval): Add Weimin Pan.
342
121ad66c 3432018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
344
345 PR gdb/16959
346 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
347 printing static type.
348
09473be8
TT
3492018-04-01 Tom Tromey <tom@tromey.com>
350
351 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
352 (rs6000_xfer_shared_libraries): Update.
353
ec1f2d91
SM
3542018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * common/gdb_vecs.h (char_ptr): Remove.
357 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
358
d8611974
SM
3592018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
362 with std::vector.
363 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
364
a18ba4e4
SM
3652018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * tracepoint.h (struct uploaded_tp): Initialize fields.
368 <actions, step_actions, cmd_strings>: Change type to
369 std::vector<char *>.
370 * tracepoint.c (get_uploaded_tp): Allocate with new.
371 (free_uploaded_tps): Free with delete.
372 (parse_tracepoint_definition): Adjust to std::vector change.
373 * breakpoint.c (read_uploaded_action): Likewise.
374 (create_tracepoint_from_upload): Likewise.
375 * ctf.c (ctf_write_uploaded_tp): Likewise.
376 (SET_ARRAY_FIELD): Likewise.
377 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
378
a7961323
TT
3792018-03-30 Tom Tromey <tom@tromey.com>
380
381 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
382 std::unique_ptr.
383 (svr4_keep_data_in_core): Update.
384 (svr4_read_so_list): Update.
385
e83e4e24
TT
3862018-03-30 Tom Tromey <tom@tromey.com>
387
388 * windows-nat.c (handle_output_debug_string, handle_exception):
389 Update.
390 * target.h (target_read_string): Update.
391 * target.c (target_read_string): Change "string" to
392 unique_xmalloc_ptr.
393 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
394 Update.
395 * solib-frv.c (frv_current_sos): Update.
396 * solib-dsbt.c (dsbt_current_sos): Update.
397 * solib-darwin.c (darwin_current_sos): Update.
398 * linux-thread-db.c (inferior_has_bug): Update.
399 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
400 Update. Remove alloca.
401 * ada-lang.c (ada_main_name): Update.
402
263db9a1
TT
4032018-03-30 Tom Tromey <tom@tromey.com>
404
405 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
406 (struct dwo_file_deleter): New.
407 (dwo_file_up): New typedef.
408 (open_and_init_dwo_file): Use dwo_file_up.
409 (free_dwo_file_cleanup): Remove.
410
5dafb3d1
TT
4112018-03-30 Tom Tromey <tom@tromey.com>
412
413 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
414 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
415
11ed8cad
TT
4162018-03-30 Tom Tromey <tom@tromey.com>
417
418 * dwarf2read.c (class free_cached_comp_units): New class.
419 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
420 (free_cached_comp_units): Remove function.
421
9ae79dac
TT
4222018-03-30 Tom Tromey <tom@tromey.com>
423
424 * utils.h (make_cleanup_unpush_target): Remove.
425 * inf-ptrace.c (struct target_unpusher): New.
426 (target_unpush_up) New typedef.
427 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
428 target_unpush_up.
429 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
430
5aa89276
TT
4312018-03-27 Tom Tromey <tom@tromey.com>
432
433 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
434
1dbeed45
TT
4352018-03-27 Pedro Alves <palves@redhat.com>
436 Tom Tromey <tom@tromey.com>
437
438 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
439 destructor. Now a class.
440 (gdb_readline_wrapper_cleanup): Remove function.
441 (gdb_readline_wrapper): Remove cleanups.
442
c819b2c0
TT
4432018-03-27 Tom Tromey <tom@tromey.com>
444
445 * typeprint.h (struct type_print_options) <local_typedefs,
446 global_typedefs>: Remove "struct" keyword.
447 (class typedef_hash_table): New class.
448 (recursively_update_typedef_hash, add_template_parameters)
449 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
450 (find_typedef_in_hash): Don't declare.
451 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
452 (typedef_hash_table::recursively_update): Rename from
453 recursively_update_typedef_hash. Now a member.
454 (typedef_hash_table::add_template_parameters): Rename from
455 add_template_parameters. Now a member.
456 (typedef_hash_table::typedef_hash_table): Now a constructor;
457 rename from create_typedef_hash.
458 (typedef_hash_table::~typedef_hash_table): Now a destructor;
459 rename from free_typedef_hash.
460 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
461 (do_free_global_table): Remove.
462 (typedef_hash_table::typedef_hash_table): New constructor; renamed
463 from copy_type_recursive.
464 (create_global_typedef_table): Remove.
465 (typedef_hash_table::find_global_typedef): Now a member of
466 typedef_hash_table.
467 (typedef_hash_table::find_typedef): Rename from
468 find_typedef_in_hash; now a member.
469 (whatis_exp): Update.
470 * extension.h (struct ext_lang_type_printers): Add constructor and
471 destructor.
472 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
473 declare.
474 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
475 Now a constructor; rename from start_ext_lang_type_printers.
476 (ext_lang_type_printers): Now a destructor; rename from
477 free_ext_lang_type_printers.
478 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
479 Update.
480 (c_type_print_base_struct_union): Update. Remove cleanups.
481
608219fb
TT
4822018-03-27 Tom Tromey <tom@tromey.com>
483
484 * dwarf-index-write.c: Include <cmath>.
485
3fcded8f
JB
4862018-03-27 Joel Brobecker <brobecker@adacore.com>
487
488 * NEWS: Add entry describing new "set|show varsize-limit" command.
489 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
490 command.
491 * printcmd.c (_initialize_printcmd): Add "set var" alias of
492 "set variable".
493
cd4fb1b2
SM
4942018-03-27 Simon Marchi <simon.marchi@ericsson.com>
495
496 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
497 dwarf-index-write.c
498 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
499 * dwarf-index-common.c: New file.
500 * dwarf-index-common.h: New file.
501 * dwarf-index-write.c: New file.
502 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
503 (struct dwarf2_section_info): Move from here.
504 (dwarf2_section_info_def): Likewise.
505 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
506 (offset_type): Likewise.
507 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
508 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
509 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
510 (byte_swap): Likewise.
511 (MAYBE_SWAP): Likewise.
512 (dwarf2_per_cu_ptr): Likewise.
513 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
514 (struct tu_stats): Likewise.
515 (struct dwarf2_per_objfile): Likewise.
516 (struct dwarf2_per_cu_data): Likewise.
517 (struct signatured_type): Likewise.
518 (sig_type_ptr): Likewise.
519 (DEF_VEC_P (sig_type_ptr)): Likewise.
520 (INDEX4_SUFFIX): Likewise.
521 (INDEX5_SUFFIX): Likewise.
522 (DEBUG_STR_SUFFIX): Likewise.
523 (dwarf2_read_section): Make non-static.
524 (mapped_index_string_hash): Move from here.
525 (dwarf5_djb_hash): Likewise.
526 (file_write): Likewise.
527 (class data_buf): Likewise.
528 (struct symtab_index_entry): Likewise.
529 (struct mapped_symtab): Likewise.
530 (find_slot): Likewise.
531 (hash_expand): Likewise.
532 (add_index_entry): Likewise.
533 (uniquify_cu_indices): Likewise.
534 (class c_str_view): Likewise.
535 (class c_str_view_hasher): Likewise.
536 (class vector_hasher): Likewise.
537 (write_hash_table): Likewise.
538 (psym_index_map): Likewise.
539 (struct addrmap_index_data): Likewise.
540 (add_address_entry): Likewise.
541 (add_address_entry_worker): Likewise.
542 (write_address_map): Likewise.
543 (symbol_kind): Likewise.
544 (write_psymbols): Likewise.
545 (struct signatured_type_index_data): Likewise.
546 (write_one_signatured_type): Likewise.
547 (recursively_count_psymbols): Likewise.
548 (recursively_write_psymbols): Likewise.
549 (class debug_names): Likewise.
550 (check_dwarf64_offsets): Likewise.
551 (psyms_seen_size): Likewise.
552 (write_gdbindex): Likewise.
553 (write_debug_names): Likewise.
554 (assert_file_size): Likewise.
555 (write_psymtabs_to_index): Likewise.
556 (save_gdb_index_command): Likewise.
557 (_initialize_dwarf2_read): Don't register the "save gdb-index"
558 command.
559 * dwarf2read.h: New file.
560
59cc4834
JB
5612018-03-27 Joel Brobecker <brobecker@adacore.com>
562
563 PR gdb/22670
564 * dwarf2read.c (dwarf2_physname): Do not return the demangled
565 symbol name if the CU's language stores symbol names in linkage
566 format.
567 * language.h (struct language_defn)
568 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
569 all instances of this struct.
570
67501539
TT
5712018-03-26 Tom Tromey <tom@tromey.com>
572
573 * stack.c (backtrace_command_1): Remove verbose code.
574
76c939ac
TT
5752018-03-26 Tom Tromey <tom@tromey.com>
576
577 * python/py-framefilter.c (py_print_type): Don't catch
578 exceptions. Return void.
579 (py_print_value): Likewise.
580 (py_print_single_arg): Likewise.
581 (enumerate_args): Don't catch exceptions.
582 (py_print_args): Likewise.
583 (py_print_frame): Likewise.
584 (gdbpy_apply_frame_filter): Catch exceptions here.
585
9507b29c
TT
5862018-03-26 Tom Tromey <tom@tromey.com>
587
588 * stack.c (_initialize_stack): Remove trailing newlines from help
589 text. Add "Usage" line to "backtrace" help.
590
eb68e487
TT
5912018-03-26 Tom Tromey <tom@tromey.com>
592
593 PR python/16486:
594 * python/py-framefilter.c (py_print_args): Call wrap_hint.
595
1f111921
TT
5962018-03-26 Tom Tromey <tom@tromey.com>
597
598 * python/py-framefilter.c (py_print_single_arg): Return
599 EXT_LANG_BT_ERROR from catch.
600
fb7eb8b5
TT
6012018-03-26 Tom Tromey <tom@tromey.com>
602
603 PR backtrace/15584:
604 * stack.c (backtrace_command_1): Move some code into no-filters
605 "if".
606
4ca59a9f
TT
6072018-03-26 Tom Tromey <tom@tromey.com>
608
609 * python/py-framefilter.c (throw_quit_or_print_exception): New
610 function.
611 (gdbpy_apply_frame_filter): Use it.
612
92256134
TT
6132018-03-26 Tom Tromey <tom@tromey.com>
614
615 PR cli/17716:
616 * python/py-framefilter.c (py_print_type, py_print_value)
617 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
618 RETURN_MASK_ERROR.
619
7a630bc2
TT
6202018-03-26 Tom Tromey <tom@tromey.com>
621
622 * python/py-framefilter.c (enumerate_args): Use
623 gdb::unique_xmalloc_ptr.
624
63283d4a
TT
6252018-03-26 Tom Tromey <tom@tromey.com>
626
627 * python/py-framefilter.c (py_print_frame): Return
628 EXT_LANG_BT_OK.
629 (gdbpy_apply_frame_filter): Update comment.
630 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
631 Remove.
632 <EXT_LANG_BT_NO_FILTERS>: Change value.
633
978d6c75
TT
6342018-03-26 Tom Tromey <tom@tromey.com>
635
636 PR backtrace/15582:
637 * stack.c (backtrace_command): Parse "hide" argument.
638 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
639 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
640 constant.
641
1cf7e640
TT
6422018-03-26 Tom Tromey <tom@tromey.com>
643
644 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
645 add "flags".
646 (backtrace_command): Remove "fulltrace", add "flags".
647
ea3b0687
TT
6482018-03-26 Tom Tromey <tom@tromey.com>
649
650 * stack.c (backtrace_command): Rewrite command line parsing.
651
9f034d75
SM
6522018-03-26 Simon Marchi <simon.marchi@ericsson.com>
653
654 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
655
ce1459e5
SM
6562018-03-26 Simon Marchi <simon.marchi@ericsson.com>
657
658 * filename-seen-cache.h: Add include guard.
659
4f7ae6f5
KS
6602018-03-26 Keith Seitz <keiths@redhat.com>
661
662 * symfile.c (place_section): Remove "struct" from section_addr_info
663 in comment.
664 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
665 "struct" keyword from section_addr_info.
666
5cd3e386
AH
6672018-03-26 Alan Hayward <alan.hayward@arm.com>
668
669 * regformats/regdef.h (reg): Add constructors.
670
3e5ef9a4
PA
6712018-03-25 Pedro Alves <palves@redhat.com>
672
673 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
674 if then/else bodies in var_func_name extraction.
675
c88d2fcc 6762018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
677
678 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
679 lookup_minimal_symbol() to find symbol entry.
680 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
681
b7fee5a3
KS
6822018-03-23 Keith Seitz <keiths@redhat.com>
683
684 PR c++/22968
685 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
686 nested type definitions for C++, too.
687
2cc9b304
TT
6882018-03-23 Tom Tromey <tom@tromey.com>
689
690 * machoread.c (struct oso_el): Add a constructor. Don't define as
691 a typedef.
692 (macho_register_oso): Remove.
693 (macho_symtab_read): Take a std::vector.
694 (oso_el_compare_name): Now a std::sort comparator.
695 (macho_symfile_read_all_oso): Take a std::vector.
696 (macho_symfile_read): Use std::vector. Remove cleanups.
697
a2b2bc12
TT
6982018-03-22 Tom Tromey <tom@tromey.com>
699
700 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
701 (record_full_goto_bookmark): Use std::string.
702
7a8f494c
PFC
7032018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
704
705 PR tdep/18295
706 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
707 a single mask.
708
dd6d677f
PFC
7092018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
710
711 * rs6000-tdep.c (store_insn_p): New function.
712 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
713 and cr_reg to their unshifted values. Use store_insn_p to
714 match LR saves using either R1 or fdata->alloca_reg. Use
715 store_insn_p to match CR saves. Set alloca_reg_offset
716 when alloca_reg and framep are set. Remove lr_reg shift
717 when assigning to fdata->lr_register.
718
26d6cec4
AA
7192018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
720
721 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
722 command line args instead of emitting a warning.
723
5d9310c4
SM
7242018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * tracepoint.h (struct static_tracepoint_marker): Initialize
727 fields, define default constructor, move constructor and move
728 assignment, disable the rest.
729 <str_id, extra>: Make std::string.
730 (release_static_tracepoint_marker): Remove.
731 (free_current_marker): Remove.
732 * tracepoint.c (free_current_marker): Remove.
733 (parse_static_tracepoint_marker_definition): Adjust to
734 std::string, use new hex2str overload.
735 (release_static_tracepoint_marker): Remove.
736 (print_one_static_tracepoint_marker): Get marker by reference
737 and adjust to std::string.
738 (info_static_tracepoint_markers_command): Adjust to std::vector
739 changes
740 * target.h (static_tracepoint_marker_p): Remove typedef.
741 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
742 (struct target_ops) <to_static_tracepoint_marker_at>: Return
743 bool.
744 <to_static_tracepoint_markers_by_strid>: Return std::vector.
745 * target-debug.h
746 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
747 (target_debug_print_std_vector_static_tracepoint_marker): New.
748 (target_debug_print_struct_static_tracepoint_marker_p): Rename
749 to...
750 (target_debug_print_static_tracepoint_marker_p): ... this.
751 * target-delegates.c: Re-generate.
752 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
753 Make std::string.
754 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
755 (decode_static_tracepoint_spec): Adjust to std::vector.
756 (tracepoint_print_one_detail): Adjust to std::string.
757 (strace_marker_decode_location): Adjust to std::string.
758 (update_static_tracepoint): Adjust to std::string, remove call
759 to release_static_tracepoint_marker.
760 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
761 Adjust to std::vector.
762 * remote.c (remote_static_tracepoint_marker_at): Return bool.
763 (remote_static_tracepoint_markers_by_strid): Adjust to
764 std::vector.
765 * common/rsp-low.h (hex2str): New overload with explicit count
766 of bytes.
767 * common/rsp-low.c (hex2str): New overload with explicit count
768 of bytes.
769 * unittests/rsp-low-selftests.c (test_hex2str): New function.
770 (_initialize_rsp_low_selftests): Add test_hex2str test.
771 * unittests/tracepoint-selftests.c
772 (test_parse_static_tracepoint_marker_definition): Adjust to
773 std::string.
774
62c222b6
SM
7752018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * tracepoint.c (parse_static_tracepoint_marker_definition):
778 Consider case where the definition is followed by more
779 definitions.
780 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
781 tracepoint-selftests.c.
782 * unittests/tracepoint-selftests.c: New.
783
7eb2418f
PFC
7842018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
785
786 * MAINTAINERS (Write After Approval): Add Pedro Franco de
787 Carvalho.
788
7cbe16e9
SR
7892018-03-20 Stephen Roberts <stephen.roberts@arm.com>
790
3d6b3b82 791 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 792
4ee89e90
SR
7932018-03-20 Stephen Roberts <stephen.roberts@arm.com>
794
3d6b3b82 795 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 796
92630041
TT
7972018-03-19 Tom Tromey <tom@tromey.com>
798
799 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
800 "IDENT" production.
801
76727919
TT
8022018-03-19 Pedro Alves <palves@redhat.com>
803 Tom Tromey <tom@tromey.com>
804
805 * unittests/observable-selftests.c: New file.
806 * common/observable.h: New file.
807 * observable.h: New file.
808 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
809 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
810 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
811 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
812 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
813 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
814 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
815 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
816 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
817 python/py-breakpoint.c, python/py-finishbreakpoint.c,
818 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
819 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
820 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
821 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
822 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
823 tui/tui-interp.c, valops.c: Update all users.
824 * tui/tui-hooks.c (tui_bp_created_observer)
825 (tui_bp_deleted_observer, tui_bp_modified_observer)
826 (tui_inferior_exit_observer, tui_before_prompt_observer)
827 (tui_normal_stop_observer, tui_register_changed_observer):
828 Remove.
829 (tui_observers_token): New global.
830 (attach_or_detach, tui_attach_detach_observers): New functions.
831 (tui_install_hooks, tui_remove_hooks): Use
832 tui_attach_detach_observers.
833 * record-btrace.c (record_btrace_thread_observer): Remove.
834 (record_btrace_thread_observer_token): New global.
835 * observer.sh: Remove.
836 * observer.c: Rename to observable.c.
837 * observable.c (namespace gdb_observers): Define new objects.
838 (observer_debug): Move into gdb_observers namespace.
839 (struct observer, struct observer_list, xalloc_observer_list_node)
840 (xfree_observer_list_node, generic_observer_attach)
841 (generic_observer_detach, generic_observer_notify): Remove.
842 (_initialize_observer): Update.
843 Don't include observer.inc.
844 * Makefile.in (generated_files): Remove observer.h, observer.inc.
845 (clean mostlyclean): Likewise.
846 (observer.h, observer.inc): Remove targets.
847 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
848 (COMMON_SFILES): Use observable.c, not observer.c.
849 * .gitignore: Remove observer.h.
850
1cb1f3da
TT
8512018-03-18 Tom Tromey <tom@tromey.com>
852
853 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
854 gdb::def_vector.
855 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
856
a06ab151
TT
8572018-03-17 Tom Tromey <tom@tromey.com>
858
859 * auto-load.c (auto_load_objfile_script_1): Use std::string.
860
770623f7
TT
8612018-03-17 Tom Tromey <tom@tromey.com>
862
863 * target.c (class scoped_target_fd): New.
864 (target_fileio_close_cleanup): Remove.
865 (target_fileio_read_alloc_1): Use scoped_target_fd.
866
39be3c7e
SM
8672018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
868
869 * silent-rules.mk: New.
870 * Makefile.in: Include silent-rules.mk
871 (srcdir, VPATH, top_srcdir): Move up.
872 (COMPILE): Add ECHO_CXX.
873 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
874 (init.c): Add ECHO_INIT_C.
875 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
876 (version.c): Add ECHO_GEN.
877 (printcmd.o): Add ECHO_CXX.
878 (target-float.o): Add ECHO_CXX.
879 (ada-exp.o): Add ECHO_CXX.
880 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
881 (insight$(EXEEXT)): Add ECHO_CXXLD.
882 * gnulib/configure.ac: Add AM_SILENT_RULES.
883 * gnulib/aclocal.m4: Re-generate.
884 * gnulib/configure: Re-generate.
885 * gnulib/import/Makefile.in: Re-generate.
886
37e136b1
TT
8872018-03-16 Tom Tromey <tom@tromey.com>
888
889 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
890 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
891 * utils.c (do_free_section_addr_info)
892 (make_cleanup_free_section_addr_info): Remove.
893 * symfile.h (struct other_sections): Add constructor.
894 (struct section_addr_info): Remove.
895 (section_addr_info): New typedef.
896 (struct sym_fns) <sym_offsets>: Change type of parameter.
897 (build_section_addr_info_from_objfile)
898 (relative_addr_info_to_section_offsets, addr_info_make_relative)
899 (default_symfile_offsets, symbol_file_add)
900 (symbol_file_add_from_bfd)
901 (build_section_addr_info_from_section_table): Update.
902 (alloc_section_addr_info, free_section_addr_info): Don't declare.
903 * symfile.c (alloc_section_addr_info): Remove.
904 (build_section_addr_info_from_section_table): Change return type.
905 Update.
906 (build_section_addr_info_from_bfd)
907 (build_section_addr_info_from_objfile): Likewise.
908 (free_section_addr_info): Remove.
909 (relative_addr_info_to_section_offsets): Change type of "addrs".
910 (addrs_section_compar): Now a std::sort comparator.
911 (addrs_section_sort): Change return type.
912 (addr_info_make_relative): Change type of "addrs". Update.
913 (default_symfile_offsets, syms_from_objfile_1)
914 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
915 (symbol_file_add_separate): Update.
916 (symbol_file_add): Change type of "addrs". Update.
917 (add_symbol_file_command): Update. Remove cleanups.
918 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
919 cleanups.
920 * symfile-debug.c (debug_sym_offsets): Change type of "info".
921 * solib.c (solib_read_symbols): Update.
922 * objfiles.c (objfile_relocate): Update. Remove cleanups.
923 * machoread.c (macho_symfile_offsets): Update.
924 * jit.c (jit_bfd_try_read_symtab): Update.
925
03afa6ef
SM
9262018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
927
928 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
929 unittests/utils-selftests.c.
930 * unittests/utils-selftests.c: New file.
931
3ae9ce5d
TT
9322018-03-14 Tom Tromey <tom@tromey.com>
933
934 PR cli/14977:
935 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
936 for NULL.
937
b8c2339b
TT
9382018-03-14 Tom Tromey <tom@tromey.com>
939
940 PR cli/19918:
941 * printcmd.c (printf_pointer): Allow "-" in format.
942
80ae639d
TT
9432018-03-14 Tom Tromey <tom@tromey.com>
944
945 * printcmd.c (_initialize_printcmd): Add usage to printf.
946
0d671d99
YQ
9472018-03-14 Yao Qi <qiyao@sourceware.org>
948
949 * MAINTAINERS: Update my email address.
950
b577b6af
TT
9512018-03-13 Tom Tromey <tom@tromey.com>
952
953 * machoread.c (macho_check_dsym): Change filenamep to a
954 std::string*.
955 (macho_symfile_read): Update.
956 * symfile.c (load_command): Use std::string.
957
89a3b63e
AB
9582018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
961 to error message string.
962 (riscv_register_name): Use xsnprintf instead of sprintf.
963 (riscv_insn::fetch_instruction): Use gdb_assert instead of
964 internal_error.
965 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
966 error.
967 (riscv_push_dummy_call): Likewise.
968
984c7238
TT
9692018-03-12 Tom Tromey <tom@tromey.com>
970
971 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
972 Use gdb::byte_vector.
973 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
974
933522d1
YQ
9752018-03-12 Yao Qi <yao.qi@linaro.org>
976
977 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
978 parameter type to readable_regcache.
979 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
980 the declaration.
981
be2daae6
TT
9822018-03-11 Tom Tromey <tom@tromey.com>
983
984 * dwarf2read.c (struct nextfield): Add initializers.
985 (struct nextfnfield): Remove.
986 (struct fnfieldlist): Add initializers. Remove "length" and
987 "head", use std::vector.
988 (struct decl_field_list): Remove.
989 (struct field_info): Add initializers.
990 <fields, baseclasses>: Now std::vector.
991 <nbaseclasses, nfnfields, typedef_field_list_count,
992 nested_types_list_count>: Remove.
993 (dwarf2_add_field, dwarf2_add_type_defn)
994 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
995 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
996 (process_structure_scope): Update.
997
484cf504
TT
9982018-03-11 Tom Tromey <tom@tromey.com>
999
1000 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
1001 for use by std::sort.
1002 (build_type_psymtabs_1): Use std::vector.
1003
9bd8e0b0
EZ
10042018-03-09 Eli Zaretskii <eliz@gnu.org>
1005
1006 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
1007 and LIBMPFR in the printed configuration.
1008
5dc1a704
TT
10092018-03-08 Tom Tromey <tom@tromey.com>
1010
1011 * source.c (get_filename_and_charpos): Use scoped_fd.
1012 * nto-procfs.c (procfs_open_1): Use scoped_fd.
1013 (procfs_pidlist): Likewise.
1014 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
1015 (iterate_over_mappings): Likewise.
1016
fdf07f3a
TT
10172018-03-08 Tom Tromey <tom@tromey.com>
1018
1019 * infcall.c (struct call_return_meta_info)
1020 <stack_temporaries_enabled>: Remove.
1021 (get_call_return_value, call_function_by_hand_dummy): Update.
1022 * thread.c (disable_thread_stack_temporaries): Remove.
1023 (enable_thread_stack_temporaries): Remove.
1024 (thread_stack_temporaries_enabled_p): Return bool.
1025 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
1026 (get_last_thread_stack_temporary): Update.
1027 * eval.c (evaluate_subexp): Update.
1028 * gdbthread.h (class enable_thread_stack_temporaries): Now a
1029 class, not a function.
1030 (value_ptr, value_vec): Remove typedefs.
1031 (class thread_info) <stack_temporaries_enabled>: Now bool.
1032 <stack_temporaries>: Now a std::vector.
1033 (thread_stack_temporaries_enabled_p)
1034 (value_in_thread_stack_temporaries): Return bool.
1035
567a3e54
SM
10362018-03-08 Simon Marchi <simon.marchi@ericsson.com>
1037
1038 * remote.c (putpkt_binary): Fix omitted bytes reporting.
1039 (getpkt_or_notif_sane_1): Likewise.
1040
00b40057
SM
10412018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * build-id.c (build_id_to_debug_bfd): Use std::string.
1044
a8dbfd58
SM
10452018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * build-id.c (find_separate_debug_file_by_buildid): Return
1048 std::string.
1049 * build-id.h (find_separate_debug_file_by_buildid): Return
1050 std::string.
1051 * coffread.c (coff_symfile_read): Adjust to std::string.
1052 * elfread.c (elf_symfile_read): Adjust to std::string.
1053 * symfile.c (separate_debug_file_exists): Change parameter to
1054 std::string.
1055 (find_separate_debug_file): Return std::string.
1056 (find_separate_debug_file_by_debuglink): Return std::string.
1057 * symfile.h (find_separate_debug_file_by_debuglink): Return
1058 std::string.
1059
e6a58aa8
SM
10602018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * common/xml-utils.c (xml_escape_text): Move code to...
1063 (xml_escape_text_append): ... this new function.
1064 * common/xml-utils.h (xml_escape_text_append): New declaration.
1065 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
1066 New function.
1067 (_initialize_xml_utils): register test_xml_escape_text_append as
1068 a selftest.
1069
4ef0bef6
AH
10702018-03-07 Alan Hayward <alan.hayward@arm.com>
1071
1072 * defs.h: Remove MAX_REGISTER_SIZE.
1073 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
1074 asserts.
1075 * python/py-unwind.c (pyuw_sniffer): Likewise.
1076
e0d3522b
TT
10772018-03-07 Tom Tromey <tom@tromey.com>
1078
1079 * linux-tdep.c (linux_info_proc): Update.
1080 * target.h (struct target_ops) <to_fileio_readlink>: Return
1081 optional<string>.
1082 (target_fileio_readlink): Return optional<string>.
1083 * remote.c (remote_hostio_readlink): Return optional<string>.
1084 * inf-child.c (inf_child_fileio_readlink): Return
1085 optional<string>.
1086 * target.c (target_fileio_readlink): Return optional<string>.
1087
ea005f31
AB
10882018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * regcache.c (cooked_read_test): Add riscv to the list of
1091 architectures that have a save_reggroup.
1092
e95a97d4
AA
10932018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1094
1095 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
1096 value is not a dynamic class object.
1097
d8344f3d
TT
10982018-03-06 Tom Tromey <tom@tromey.com>
1099
1100 * rust-exp.y: Formatting fixes.
1101
9add17f2
AB
11022018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * riscv-tdep.c (riscv_register_name): Remove target description
1105 support.
1106 (riscv_gdbarch_init): Remove target description check.
1107
c9486dfe
AB
11082018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1109
1110 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
1111 comment.
1112 * riscv-tdep.h: Likewise.
1113
d74aff3d
AB
11142018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
1117 (riscv_pseudo_register_write): Delete.
1118 (riscv_gdbarch_init): Remove all use of pseudo registers.
1119
7ea78b59
SM
11202018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1121
1122 * record-btrace.c (btrace_print_lines): Replace cleanup
1123 parameter with RAII equivalents.
1124 (btrace_insn_history): Replace cleanup with RAII equivalents.
1125 * ui-out.h (make_cleanup_ui_out_list_begin_end,
1126 make_cleanup_ui_out_tuple_begin_end): Remove.
1127 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
1128 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
1129 make_cleanup_ui_out_list_begin_end): Remove.
1130
53127008
SM
11312018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1132
1133 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
1134 parameter types to std::vector. Use bool.
1135 (record_btrace_wait): Replace VEC(tp_t) with
1136 std::vector<thread_info *>.
1137 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
1138
228f1508
SM
11392018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * record-btrace.c (record_btrace_disable_callback): Remove.
1142 (struct scoped_btrace_disable): New.
1143 (record_btrace_open): Use scoped_btrace_disable.
1144
b2970c23
AB
11452018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
1148 reading values from registers.
1149
fb294655
AB
11502018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1153 where appropriate.
1154
cab5bb9d
AB
11552018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1156
1157 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1158 change parameter type. Use GDB's print functions, and use
1159 core_addr_to_string where appropriate.
1160 (riscv_push_dummy_call): Use core_addr_to_string where
1161 appropriate, update call to riscv_print_arg_location, and reindent
1162 a few lines.
1163 (riscv_return_value): Update call to riscv_print_arg_location.
1164
dbbb1059
AB
11652018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1166 Tim Newsome <tim@sifive.com>
1167 Albert Ou <a0u@eecs.berkeley.edu>
1168 Darius Rad <darius@bluespec.com>
1169
1170 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1171 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1172 (ALLDEPFILES): Add riscv-tdep.c
1173 * configure.tgt: Add riscv support.
1174 * riscv-tdep.c: New file.
1175 * riscv-tdep.h: New file.
1176 * NEWS: Mention new target.
1177 * MAINTAINERS: Add entry for riscv.
1178
5dc43913
AB
11792018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1180
1181 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1182 fields within aggregates.
1183
3dea1ef7
SM
11842018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1185
1186 * record-btrace.c (btrace_print_lines): Change type of flags to
1187 gdb_disassembly_flags.
1188
7efba073
JB
11892018-03-04 John Baldwin <jhb@FreeBSD.org>
1190
1191 * fbsd-nat.c: Include "inf-ptrace.h".
1192 (USE_SIGTRAP_SIGINFO): Conditionally define.
1193 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1194 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1195 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1196 function.
1197 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1198 Likewise.
1199 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1200 Likewise.
1201 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1202 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1203 "supports_stopped_by_hw_breakpoint" target methods.
1204
386a8676
JB
12052018-03-04 John Baldwin <jhb@FreeBSD.org>
1206
1207 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1208 * fbsd-nat.c (debug_fbsd_nat): New variable.
1209 (show_fbsd_nat_debug): New function.
1210 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1211 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1212
12279366
JB
12132018-03-04 John Baldwin <jhb@FreeBSD.org>
1214
1215 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1216 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1217 prototype.
1218 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1219 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1220 method.
1221
54693cf5
SM
12222018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1225 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1226
ccb2231c
SM
12272018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 * charset.c (struct charset_vector): New.
1230 (charsets): Change type to charset_vector.
1231 (find_charset_names): Adjust.
1232 (add_one): Adjust.
1233 (_initialize_charset): Adjust.
1234
6fb16ce6
SM
12352018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * progspace.h (struct program_space) <deleted_solibs>: Change
1238 type to std::vector<std::string>.
1239 * progspace.c (clear_program_space_solib_cache): Adjust.
1240 * breakpoint.c (print_solib_event): Adjust.
1241 (check_status_catch_solib): Adjust.
1242 * solib.c (update_solib_list): Adjust.
1243 * ui-out.h (class ui_out) <field_string>: New overload.
1244 * ui-out.c (ui_out::field_string): New overload.
1245
564b1e3f
SM
12462018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * progspace.h (struct program_space): Add constructor and
1249 destructor, initialize fields.
1250 (add_program_space): Remove.
1251 * progspace.c (add_program_space): Rename to...
1252 (program_space::program_space): ... this.
1253 (release_program_space): Rename to...
1254 (program_space::~program_space): ... this.
1255 (delete_program_space): Use delete to delete program_space.
1256 (initialize_progspace): Use new to allocate program_space.
1257 * inferior.c (add_inferior_with_spaces): Likewise.
1258 (clone_inferior_command): Likewise.
1259 * infrun.c (follow_fork_inferior): Likewise.
1260 (handle_vfork_child_exec_or_exit): Likewise.
1261
e80aaf61
SM
12622018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1263
1264 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1265 (delim_string_to_char_ptr_vec): Return std::vector of
1266 gdb::unique_xmalloc_ptr.
1267 (dirnames_to_char_ptr_vec_append): Take std::vector of
1268 gdb::unique_xmalloc_ptr.
1269 (dirnames_to_char_ptr_vec): Return std::vector of
1270 gdb::unique_xmalloc_ptr.
1271 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1272 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1273 (delim_string_to_char_ptr_vec): Return an std::vector of
1274 gdb::unique_xmalloc_ptr, adjust the code.
1275 (dirnames_to_char_ptr_vec_append): Take an std::vector of
1276 gdb::unique_xmalloc_ptr, adjust the code.
1277 (dirnames_to_char_ptr_vec): Return an std::vector of
1278 gdb::unique_xmalloc_ptr, adjust the code.
1279 * auto-load.c (auto_load_safe_path_vec): Change type to
1280 std::vector of gdb::unique_xmalloc_ptr.
1281 (auto_load_expand_dir_vars): Return an std::vector of
1282 gdb::unique_xmalloc_ptr, adjust the code.
1283 (auto_load_safe_path_vec_update): Adjust.
1284 (filename_is_in_auto_load_safe_path_vec): Adjust.
1285 (auto_load_objfile_script_1): Adjust.
1286 * build-id.c (build_id_to_debug_bfd): Adjust.
1287 * linux-thread-db.c (thread_db_load_search): Adjust.
1288 * source.c (add_path): Adjust.
1289 (openp): Adjust.
1290 * symfile.c (find_separate_debug_file): Adjust.
1291 * utils.c (do_free_char_ptr_vec): Remove.
1292 (make_cleanup_free_char_ptr_vec): Remove.
1293
ab818ade
SDJ
12942018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
1295
1296 PR gdb/22907
1297 * common/pathstuff.c: Conditionally include "<windows.h>".
1298
e1e6f073
GS
12992018-03-01 Georg Sauthoff <mail@georg.so>
1300
1301 PR gdb/22888
1302 * gcore.in: Quote variables and switch interpreter to bash.
1303
c7b15a66
TT
13042018-03-01 Tom Tromey <tom@tromey.com>
1305
1306 * dwarf2read.c (alloc_discriminant_info): Fix default_index
1307 assertion. Add assertion for discriminant_index.
1308 (quirk_rust_enum): Use correct base type name in univariant case.
1309
0cb7c7b0
SM
13102018-03-01 Simon Marchi <simon.marchi@ericsson.com>
1311
1312 * record.c (get_call_history_modifiers): Return a
1313 record_print_flags.
1314 (cmd_record_call_history): Adjust.
1315 * record-btrace.c (record_btrace_call_history): Adjust.
1316 (record_btrace_call_history_range): Adjust.
1317 (record_btrace_call_history_from): Adjust.
1318 * target-debug.h (target_debug_print_record_print_flags): New.
1319 * target-delegates.c: Re-generate.
1320 * target.c (target_call_history): Change flags type.
1321 (target_call_history_from): Likewise.
1322 (target_call_history_range): Likewise.
1323 * target.h (struct target_ops) <target_call_history>: Likewise.
1324 (target_call_history_from): Likewise.
1325 (target_call_history_range): Likewise.
1326
25e3c82c
SDJ
13272018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1328 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 * common/common-utils.c: Include "sys/stat.h".
1331 (is_regular_file): Move here from "source.c"; change return
1332 type to "bool".
1333 * common/common-utils.h (is_regular_file): New prototype.
1334 * common/pathstuff.c (contains_dir_separator): New function.
1335 * common/pathstuff.h (contains_dir_separator): New prototype.
1336 * source.c: Don't include "sys/stat.h".
1337 (is_regular_file): Move to "common/common-utils.c".
1338
b4987c95
SDJ
13392018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1340
1341 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1342 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1343 * auto-load.c: Include "common/pathstuff.h".
1344 * common/common-def.h (current_directory): Move here.
1345 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1346 function.
1347 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1348 prototype.
1349 * common/pathstuff.c: New file.
1350 * common/pathstuff.h: New file.
1351 * compile/compile.c: Include "common/pathstuff.h".
1352 * defs.h (current_directory): Move to "common/common-defs.h".
1353 * dwarf2read.c: Include "common/pathstuff.h".
1354 * exec.c: Likewise.
1355 * guile/scm-safe-call.c: Likewise.
1356 * linux-thread-db.c: Likewise.
1357 * main.c: Likewise.
1358 * nto-tdep.c: Likewise.
1359 * objfiles.c: Likewise.
1360 * source.c: Likewise.
1361 * symtab.c: Likewise.
1362 * utils.c: Include "common/pathstuff.h".
1363 (gdb_realpath): Move to "common/pathstuff.c".
1364 (gdb_realpath_keepfile): Likewise.
1365 (gdb_abspath): Likewise.
1366 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1367 (gdb_realpath_keepfile): Likewise.
1368 (gdb_abspath): Likewise.
1369
f169cfdc
JB
13702018-02-28 John Baldwin <jhb@FreeBSD.org>
1371
1372 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1373 wildcard process pid for super_resume for kernels with a
1374 specific bug.
1375
e05cac70
PM
13762018-02-27 Phil Muldoon <pmuldoon@redhat.com>
1377
1378 * compile/compile.c (get_args): Add additional comments
1379 explaining function.
1380
55089490
TT
13812018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
1382 Tom Tromey <tom@tromey.com>
1383
1384 * target.h (memory_write_request_s): Remove typedef. Don't define
1385 VEC.
1386 (target_write_memory_blocks): Change argument to std::vector.
1387 (struct memory_write_request): Add constructor.
1388 * target-memory.c (compare_block_starting_address): Return bool.
1389 Change argument types.
1390 (claim_memory): Change arguments to use std::vector.
1391 (split_regular_and_flash_blocks, blocks_to_erase)
1392 (compute_garbled_blocks): Likewise.
1393 (cleanup_request_data, cleanup_write_requests_vector): Remove.
1394 (target_write_memory_blocks): Change argument to std::vector.
1395 * symfile.c (struct load_section_data): Add constructor and
1396 destructor. Use std::vector for "requests".
1397 (struct load_progress_data): Add initializers.
1398 (load_section_callback): Update. Use "new".
1399 (clear_memory_write_data): Remove.
1400 (generic_load): Update.
1401
0c305b61
AH
14022018-02-27 Alan Hayward <alan.hayward@arm.com>
1403
1404 * arch/aarch64.h: Use common/tdesc.h.
1405
c5196c92
MR
14062018-02-26 Maciej W. Rozycki <macro@mips.com>
1407
1408 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1409 architecture with a 64-bit ABI.
1410
37c33887
MR
14112018-02-26 Maciej W. Rozycki <macro@mips.com>
1412
1413 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1414 ahead of target description loading.
1415
d4dd3282
TT
14162018-02-26 Tom Tromey <tom@tromey.com>
1417
1418 * stack.c (backtrace_command_1): Update.
1419 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1420 of "flags".
1421 * python/py-framefilter.c (py_print_frame)
1422 (gdbpy_apply_frame_filter): Change type of "flags".
1423 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1424 of "flags".
1425 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1426 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1427 * extension.h (enum frame_filter_flag): Rename from
1428 frame_filter_flags.
1429 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1430 (apply_ext_lang_frame_filter): Change type of "flags".
1431 * extension.c (apply_ext_lang_frame_filter): Change type of
1432 "flags".
1433 * extension-priv.h (struct extension_language_ops)
1434 <apply_frame_filter>: Change type of "flags".
1435
6893c19a
TT
14362018-02-26 Tom Tromey <tom@tromey.com>
1437
1438 PR python/16497:
1439 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
1440 off-by-one in py_end computation.
1441 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1442 PRINT_MORE_FRAMES.
1443 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1444 constant.
1445
2ddeaf8a
TT
14462018-02-26 Tom Tromey <tom@tromey.com>
1447
1448 * dwarf2read.c (struct variant_field): New.
1449 (struct nextfield) <variant>: New field.
1450 (dwarf2_add_field): Handle DW_TAG_variant_part.
1451 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1452 discriminated union.
1453 (read_structure_type): Handle DW_TAG_variant_part.
1454 (handle_struct_member_die): New function, extracted from
1455 process_structure_scope. Handle DW_TAG_variant.
1456 (process_structure_scope): Handle discriminated unions. Call
1457 handle_struct_member_die.
1458
c9317f21
TT
14592018-02-26 Tom Tromey <tom@tromey.com>
1460
1461 * rust-lang.h (rust_last_path_segment): Declare.
1462 * rust-lang.c (rust_last_path_segment): Now public. Change
1463 contract.
1464 (struct disr_info): Remove.
1465 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1466 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1467 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1468 (rust_enum_p, rust_enum_variant): New function.
1469 (rust_underscore_fields): Remove "offset" parameter.
1470 (rust_print_enum): New function.
1471 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1472 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1473 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
1474 enums.
1475 (rust_internal_print_type): New function, from rust_print_type.
1476 Remove enum code.
1477 (rust_print_type): Call rust_internal_print_type.
1478 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1479 Update enum handling.
1480 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1481 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1482 (rust_union_quirks): New functions.
1483 (process_full_comp_unit, process_full_type_unit): Call
1484 rust_union_quirks.
1485 (process_structure_scope): Update rust_unions if necessary.
1486
7c22600a
TT
14872018-02-26 Tom Tromey <tom@tromey.com>
1488
1489 * value.h (value_union_variant): Declare.
1490 * valops.c (value_union_variant): New function.
1491 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1492 (struct discriminant_info): New.
1493 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1494 enumerator.
1495 (struct main_type) <flag_discriminated_union>: New field.
1496
15ce8941
TT
14972018-02-26 Tom Tromey <tom@tromey.com>
1498
1499 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1500 unittests/unpack-selftests.c.
1501 * unittests/unpack-selftests.c: New file.
1502 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1503
48fbe735
YQ
15042018-02-26 Yao Qi <yao.qi@linaro.org>
1505
1506 * dwarf2read.c (struct partial_die_info) <read>: New method.
1507 (read_partial_die): Remove the declaration.
1508 (load_partial_dies): Update.
1509 (partial_die_info::partial_die_info):
1510 (read_partial_die): Change it to partial_die_info::read.
1511
52356b79
YQ
15122018-02-26 Yao Qi <yao.qi@linaro.org>
1513
1514 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1515 (fixup_partial_die): Remove declaration.
1516 (scan_partial_symbols): Update.
1517 (partial_die_parent_scope): Likewise.
1518 (partial_die_full_name): Likewise.
1519 (fixup_partial_die): Change it to partial_die_info::fixup.
1520
35cc7ed7
YQ
15212018-02-26 Yao Qi <yao.qi@linaro.org>
1522
1523 * dwarf2read.c (read_partial_die): Update the declaration.
1524 (load_partial_dies): Caller update.
1525 (read_partial_die): Remove one argument abbrev_len.
1526
6f06d47b
YQ
15272018-02-26 Yao Qi <yao.qi@linaro.org>
1528
1529 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1530 assignment operator.
1531 (load_partial_dies): Use ctor and copy ctor.
1532 (read_partial_die): Update.
1533 (dwarf2_cu::find_partial_die): Use ctor.
1534
d590ff25
YQ
15352018-02-26 Yao Qi <yao.qi@linaro.org>
1536
1537 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1538 (find_partial_die_in_comp_unit): Change it to
1539 dwarf2_cu::find_partial_die.
1540 (find_partial_die): Update.
1541
fd0a254f
YQ
15422018-02-26 Yao Qi <yao.qi@linaro.org>
1543
1544 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1545 is NULL.
1546
cd9983dd
YQ
15472018-02-26 Yao Qi <yao.qi@linaro.org>
1548
1549 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1550
f46cd62a
AH
15512018-02-26 Alan Hayward <alan.hayward@arm.com>
1552
1553 * arch/amd64.h: Use common/tdesc.h.
1554 * arch/i386.c: Likewise.
1555 * arch/i386.h: Likewise.
1556 * arch/tic6x.c: Likewise.
1557 * arch/tdesc.h: Move file from here...
1558 * common/tdesc.h: ...to here.
1559 * features/aarch64-core.c: Regenerate.
1560 * features/aarch64-fpu.c: Regenerate.
1561 * features/i386/32bit-avx.c: Regenerate.
1562 * features/i386/32bit-avx512.c: Regenerate.
1563 * features/i386/32bit-core.c: Regenerate.
1564 * features/i386/32bit-linux.c: Regenerate.
1565 * features/i386/32bit-mpx.c: Regenerate.
1566 * features/i386/32bit-pkeys.c: Regenerate.
1567 * features/i386/32bit-sse.c: Regenerate.
1568 * features/i386/64bit-avx.c: Regenerate.
1569 * features/i386/64bit-avx512.c: Regenerate.
1570 * features/i386/64bit-core.c: Regenerate.
1571 * features/i386/64bit-linux.c: Regenerate.
1572 * features/i386/64bit-mpx.c: Regenerate.
1573 * features/i386/64bit-pkeys.c: Regenerate.
1574 * features/i386/64bit-segments.c: Regenerate.
1575 * features/i386/64bit-sse.c: Regenerate.
1576 * features/i386/x32-core.c: Regenerate.
1577 * features/tic6x-c6xp.c: Regenerate.
1578 * features/tic6x-core.c: Regenerate.
1579 * features/tic6x-gp.c: Regenerate.
1580 * target-descriptions.c: Use common/tdesc.h.
1581 * target-descriptions.h: Likewise.
1582
9b292f68
TT
15832018-02-24 Tom Tromey <tom@tromey.com>
1584
1585 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1586 (try_thread_db_load_from_dir, thread_db_load_search): Use
1587 std::string.
1588 (info_auto_load_libthread_db_compare): Return bool. Change
1589 argument types.
1590 (info_auto_load_libthread_db): Use std::vector, std::string.
1591 Remove cleanups.
1592
281d762b
TT
15932018-02-24 Tom Tromey <tom@tromey.com>
1594
1595 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1596 std::string.
1597 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1598 std::string*.
1599 * gdbarch.c: Rebuild.
1600 * gdbarch.h: Rebuild.
1601 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1602 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1603 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1604 std::string*.
1605
9d8780f0
SM
16062018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1607
1608 * gdbtypes.h (sect_offset): Change type to uint64_t.
1609 (sect_offset_str): New function.
1610 * dwarf2read.c (create_addrmap_from_aranges): Use
1611 sect_offset_str.
1612 (error_check_comp_unit_head): Likewise.
1613 (create_debug_type_hash_table): Likewise.
1614 (read_cutu_die_from_dwo): Likewise.
1615 (init_cutu_and_read_dies): Likewise.
1616 (init_cutu_and_read_dies_no_follow): Likewise.
1617 (process_psymtab_comp_unit_reader): Likewise.
1618 (partial_die_parent_scope): Likewise.
1619 (peek_die_abbrev): Likewise.
1620 (process_queue): Likewise.
1621 (dwarf2_physname): Likewise.
1622 (read_namespace_alias): Likewise.
1623 (read_import_statement): Likewise.
1624 (create_dwo_cu_reader): Likewise.
1625 (create_cus_hash_table): Likewise.
1626 (lookup_dwo_cutu): Likewise.
1627 (inherit_abstract_dies): Likewise.
1628 (read_func_scope): Likewise.
1629 (read_call_site_scope): Likewise.
1630 (dwarf2_add_member_fn): Likewise.
1631 (read_common_block): Likewise.
1632 (read_module_type): Likewise.
1633 (read_typedef): Likewise.
1634 (read_subrange_type): Likewise.
1635 (load_partial_dies): Likewise.
1636 (read_partial_die): Likewise.
1637 (find_partial_die): Likewise.
1638 (read_str_index): Likewise.
1639 (dwarf2_string_attr): Likewise.
1640 (build_error_marker_type): Likewise.
1641 (lookup_die_type): Likewise.
1642 (dump_die_shallow): Likewise.
1643 (follow_die_ref): Likewise.
1644 (dwarf2_fetch_die_loc_sect_off): Likewise.
1645 (dwarf2_fetch_constant_bytes): Likewise.
1646 (follow_die_sig): Likewise.
1647 (get_signatured_type): Likewise.
1648 (get_DW_AT_signature_type): Likewise.
1649 (dwarf2_find_containing_comp_unit): Likewise.
1650 (set_die_type): Likewise.
1651
8ec57239
JB
16522018-02-21 John Baldwin <jhb@FreeBSD.org>
1653
1654 * arch/aarch64.c: Include "common-defs.h".
1655 * arch/amd64.c: Likewise.
1656 * arch/i386.c: Likewise.
1657
3eac2b65
TT
16582018-02-21 Tom Tromey <tom@tromey.com>
1659
1660 * value.h: (extract_field_op): Update.
1661 * eval.c (extract_field_op): Return a const char *.
1662 * expression.h (parse_expression_for_completion): Update.
1663 * completer.c (complete_expression): Update.
1664 (add_struct_fields): Make fieldname const.
1665 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1666 (mark_completion_tag, parse_exp_in_context_1): Update.
1667 (parse_expression_for_completion): Change "name" to
1668 unique_xmalloc_ptr*.
1669
6ccb583f
TT
16702018-02-21 Tom Tromey <tom@tromey.com>
1671
1672 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1673
c113ed0c
YQ
16742018-02-21 Yao Qi <yao.qi@linaro.org>
1675
1676 * avr-tdep.c (avr_read_pc): Change parameter type to
1677 readable_regcache.
1678 * gdbarch.sh (read_pc): Likewise.
1679 * gdbarch.c: Re-generated.
1680 * gdbarch.h: Re-generated.
1681 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1682 readable_regcache.
1683 * ia64-tdep.c (ia64_read_pc): Likewise.
1684 * mips-tdep.c (mips_read_pc): Likewise.
1685 * spu-tdep.c (spu_read_pc): Likewise.
1686
4c74fe6b
YQ
16872018-02-21 Yao Qi <yao.qi@linaro.org>
1688
1689 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1690 * regcache-dump.c: New file.
1691 * regcache.c: Move register_dump to regcache-dump.c.
1692 (maintenance_print_registers): Likewise.
1693 (maintenance_print_raw_registers): Likewise.
1694 (maintenance_print_cooked_registers): Likewise.
1695 (maintenance_print_register_groups): Likewise.
1696 (maintenance_print_remote_registers): Likewise.
1697 (_initialize_regcache): Likewise.
1698 * regcache.h (register_dump): Moved from regcache.c.
1699
796bb026
YQ
17002018-02-21 Yao Qi <yao.qi@linaro.org>
1701
1702 * regcache.c (regcache::regcache): Update.
1703 (regcache::invalidate): Move it to detached_regcache::invalidate.
1704 (get_thread_arch_aspace_regcache): Update.
1705 (regcache::raw_update): Update.
1706 (regcache::cooked_read): Remove some code.
1707 (regcache::cooked_read_value): Likewise.
1708 (regcache::raw_write): Remove assert on m_readonly_p.
1709 (regcache::raw_supply_integer): Move it to
1710 detached_regcache::raw_supply_integer.
1711 (regcache::raw_supply_zeroed): Likewise.
1712 * regcache.h (detached_regcache) <raw_supply_integer>: New
1713 declaration.
1714 <raw_supply_zeroed, invalidate>: Likewise.
1715 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1716 <invalidate>: Likewise.
1717 <m_readonly_p>: Removed.
1718
215c69dc
YQ
17192018-02-21 Yao Qi <yao.qi@linaro.org>
1720
1721 * infcmd.c (get_return_value): Let stop_regs point to
1722 get_current_regcache.
1723 * regcache.c (regcache::regcache): Remove.
1724 (register_dump_reg_buffer): New class.
1725 (regcache_print): Adjust.
1726 * regcache.h (regcache): Remove constructors.
1727
f3384e66
YQ
17282018-02-21 Yao Qi <yao.qi@linaro.org>
1729
1730 * regcache.c (class register_dump): New class.
1731 (register_dump_regcache, register_dump_none): New class.
1732 (register_dump_remote, register_dump_groups): New class.
1733 (regcache_print): Update.
1734 * regcache.h (regcache_dump_what): Move it to regcache.c.
1735 (regcache) <dump>: Remove.
1736
c8ec2f33
YQ
17372018-02-21 Yao Qi <yao.qi@linaro.org>
1738
1739 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1740 reg_buffer_rw *.
1741 (jit_unwind_reg_set_impl): Call raw_supply.
1742 (jit_frame_sniffer): Use reg_buffer_rw.
1743 * record-full.c (record_full_core_regbuf): Change its type.
1744 (record_full_core_open_1): Use reg_buffer_rw.
1745 (record_full_close): Likewise.
1746 (record_full_core_fetch_registers): Use regcache->raw_supply.
1747 (record_full_core_store_registers): Likewise.
1748 * regcache.c (regcache::get_register_status): Move it to
1749 reg_buffer.
1750 (regcache_raw_set_cached_value): Remove.
1751 (regcache::raw_set_cached_value): Remove.
1752 (regcache::raw_write): Call raw_supply.
1753 (regcache::raw_supply): Move it to reg_buffer_rw.
1754 * regcache.h (regcache_raw_set_cached_value): Remove.
1755 (reg_buffer_rw): New class.
1756
daf6667d
YQ
17572018-02-21 Yao Qi <yao.qi@linaro.org>
1758
1759 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1760 readonly_detached_regcache.
1761 (dummy_frame_prev_register): Use regcache->cooked_read.
1762 * frame.c (frame_save_as_regcache): Change return type.
1763 (frame_pop): Update.
1764 * frame.h (frame_save_as_regcache): Update declaration.
1765 * inferior.h (get_infcall_suspend_state_regcache): Update
1766 declaration.
1767 * infrun.c (infcall_suspend_state) <registers>: use
1768 readonly_detached_regcache.
1769 (save_infcall_suspend_state): Don't use regcache_dup.
1770 (get_infcall_suspend_state_regcache): Change return type.
1771 * linux-fork.c (struct fork_info) <savedregs>: Change to
1772 readonly_detached_regcache.
1773 <pc>: New field.
1774 (fork_save_infrun_state): Don't use regcache_dup.
1775 (info_checkpoints_command): Adjust.
1776 * mi/mi-main.c (register_changed_p): Update declaration.
1777 (mi_cmd_data_list_changed_registers): Use
1778 readonly_detached_regcache.
1779 (register_changed_p): Change parameter type to
1780 readonly_detached_regcache.
1781 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1782 readonly_detached_regcache.
1783 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1784 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1785 New.
1786 (regcache::save): Move it to reg_buffer.
1787 (regcache::restore): Change parameter type.
1788 (regcache_dup): Remove.
1789 * regcache.h (reg_buffer) <save>: New method.
1790 (readonly_detached_regcache): New class.
1791 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1792 readonly_detached_regcache.
1793 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1794
fc5b8736
YQ
17952018-02-21 Yao Qi <yao.qi@linaro.org>
1796
1797 * frame.c (frame_save_as_regcache): Use regcache method save.
1798 (frame_pop): Use regcache method restore.
1799 * infrun.c (restore_infcall_suspend_state): Likewise.
1800 * linux-fork.c (fork_load_infrun_state): Likewise.
1801 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1802 save.
1803 * regcache.c (regcache_save): Remove.
1804 (regcache::restore): More asserts.
1805 (regcache_cpy): Remove.
1806 * regcache.h (regcache_save): Remove the declaration.
1807 (regcache::restore): Move from private to public.
1808 Remove the friend declaration of regcache_cpy.
1809 (regcache_cpy): Remove declaration.
1810
849d0ba8
YQ
18112018-02-21 Yao Qi <yao.qi@linaro.org>
1812
1813 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1814 parameter type to 'readable_regcache *'.
1815 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1816 * arm-tdep.c (arm_neon_quad_read): Likewise.
1817 (arm_pseudo_read): Likewise.
1818 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1819 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1820 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1821 * gdbarch.c: Re-generated.
1822 * gdbarch.h: Re-generated.
1823 * gdbarch.sh (pseudo_register_read): Change parameter type to
1824 'readable_regcache *'.
1825 (pseudo_register_read_value): Likewise.
1826 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1827 (h8300_pseudo_register_read): Likewise.
1828 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1829 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1830 (i386_pseudo_register_read_into_value): Likewise.
1831 (i386_pseudo_register_read_value): Likewise.
1832 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1833 declaration.
1834 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1835 * m32c-tdep.c (m32c_raw_read): Likewise.
1836 (m32c_read_flg): Likewise.
1837 (m32c_banked_register): Likewise.
1838 (m32c_banked_read): Likewise.
1839 (m32c_sb_read): Likewise.
1840 (m32c_part_read): Likewise.
1841 (m32c_cat_read): Likewise.
1842 (m32c_r3r2r1r0_read): Likewise.
1843 (m32c_pseudo_register_read): Likewise.
1844 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1845 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1846 (mep_pseudo_cr64_read): Likewise.
1847 (mep_pseudo_register_read): Likewise.
1848 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1849 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1850 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1851 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1852 (regcache::cooked_read): Likewise.
1853 (regcache::cooked_read_value): Likewise.
1854 (regcache_cooked_read_signed):
1855 (regcache::cooked_read): Likewise.
1856 * regcache.h (readable_regcache): New class.
1857 (regcache): Inherit readable_regcache. Move some methods to
1858 readable_regcache.
1859 * rl78-tdep.c (rl78_pseudo_register_read): Change
1860 parameter type to 'readable_regcache *'.
1861 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1862 (e500_pseudo_register_read): Change parameter type to
1863 'readable_regcache *'.
1864 (dfp_pseudo_register_read): Likewise.
1865 (vsx_pseudo_register_read): Likewise.
1866 (efpr_pseudo_register_read): Likewise.
1867 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1868 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1869 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1870 (sh64_pseudo_register_read): Likewise.
1871 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1872 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1873 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1874 (spu_pseudo_register_read): Likewise.
1875 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1876 (xtensa_pseudo_register_read): Likewise.
1877
31716595
YQ
18782018-02-21 Yao Qi <yao.qi@linaro.org>
1879
1880 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1881 (regcache::arch): Move it to reg_buffer::arch.
1882 (regcache::register_buffer): Likewise.
1883 (regcache::assert_regnum): Likewise.
1884 (regcache::num_raw_registers): Likewise.
1885 * regcache.h (reg_buffer): New class.
1886 (regcache): Inherit reg_buffer.
1887
7104e59b
SM
18882018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1889
1890 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1891 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1892
2d8adcbd
MM
18932018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1894
1895 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1896
b5884fa7
AH
18972018-02-19 Alan Hayward <alan.hayward@arm.com>
1898
1899 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1900 (SFILES): Remove common/*.c files.
1901 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1902 * common/common.host: Add common reference.
1903 * configure.ac: Likewise.
1904 * configure: Regenerate.
1905
fd90ace4
YQ
19062018-02-16 Yao Qi <yao.qi@linaro.org>
1907
1908 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1909 (block_initialize_namespace): Use new.
1910 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1911 (dwarf2_free_objfile): Use delete.
1912 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1913 (copy_type_recursive): Use new.
1914 * gdb_obstack.h (allocate_on_obstack): New.
1915
85046ae2
YQ
19162018-02-15 Yao Qi <yao.qi@linaro.org>
1917
1918 PR gdb/22849
1919 * inferior.c (exit_inferior_1): Reset inf->control.
1920
355c559b
JB
19212018-02-15 Joel Brobecker <brobecker@adacore.com>
1922
1923 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1924 declaration.
1925
980548fd
PA
19262018-02-14 Pedro Alves <palves@redhat.com>
1927
1928 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1929 frame_cleanup_after_sniffer on exception.
1930
692d6f97
TT
19312018-02-14 Tom Tromey <tom@tromey.com>
1932
1933 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1934 const.
1935 (solib_bfd_open): Make pathname const.
1936 * solib.c (solib_bfd_open): Make pathname const.
1937 * solib-spu.c (spu_bfd_fopen): Make name const.
1938 (spu_bfd_open): Make pathname const.
1939 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1940 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1941
e0cc99a6
TT
19422018-02-14 Tom Tromey <tom@tromey.com>
1943
1944 * symfile.c (symfile_bfd_open): Update.
1945 * source.h (openp, source_full_path_of, find_and_open_source):
1946 Change argument type to unique_xmalloc_ptr.
1947 * source.c (openp): Take a unique_xmalloc_ptr.
1948 (source_full_path_of, find_and_open_source): Likewise.
1949 (open_source_file, symtab_to_fullname): Update.
1950 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1951 unique_xmalloc_ptr.
1952 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1953 (exec_file_find): Update.
1954 * psymtab.c (psymtab_to_fullname): Update.
1955 * nto-tdep.h (nto_find_and_open_solib): Update.
1956 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1957 unique_xmalloc_ptr.
1958 * exec.c (exec_file_attach): Update.
1959 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1960 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1961
b46a8d7c
TT
19622018-02-14 Tom Tromey <tom@tromey.com>
1963
1964 * solib.c: Include source.h.
1965 * nto-tdep.c: Include source.h.
1966 * mi/mi-cmd-env.c: Include source.h.
1967 * infcmd.c: Include source.h.
1968 * exec.c: Include source.h.
1969 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1970 (add_path, directory_switch, source_path, init_source_path): Move
1971 declarations...
1972 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1973 (add_path, directory_switch, source_path, init_source_path):
1974 ...here.
1975
797bc1cb
TT
19762018-02-14 Tom Tromey <tom@tromey.com>
1977
1978 * solist.h (exec_file_find, solib_find): Return
1979 unique_xmalloc_ptr.
1980 (solib_bfd_fopen): Take a const char *.
1981 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1982 (exec_file_find, solib_find): Likewise.
1983 (solib_bfd_fopen): Do not take ownership of "pathname".
1984 (solib_bfd_open): Use unique_xmalloc_ptr.
1985 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1986 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1987 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1988 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1989
f98b2e33
JB
19902018-02-14 Joel Brobecker <brobecker@adacore.com>
1991
1992 * ada-lang.c (name_match_type_from_name): Remove reference to
1993 ada_name_for_lookup in function's documentation.
1994 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1995
24b9144d
SM
19962018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * defs.h (enum openp_flags): New enum.
1999 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
2000 Move to enum openp_flags.
2001 (openp_flags): New enum flags.
2002 (openp): Change parameter type to openp_flags.
2003 * source.c (openp): Change parameter type to openp_flags.
2004 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
2005 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
2006
387cd15b
SM
20072018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
2008
2009 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
2010 per-command.
2011
b303c6f6
AB
20122018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2013
2014 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
2015 into...
2016 (class dwarf2_queue_guard): ...the destructor of this new class.
2017 (dw2_do_instantiate_symtab): Create instance of the new class
2018 dwarf2_queue_guard, remove cleanup.
2019
9c3630e9
TT
20202018-02-09 Tom Tromey <tom@tromey.com>
2021
2022 * source.c (find_source_lines): Don't reference past the end of
2023 the vector.
2024
c4e12631
MM
20252018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2026
2027 * remote.c (remote_btrace_maybe_reopen): Change error message.
2028 * btrace.c (btrace_enable): Likewise.
2029 (parse_xml_btrace): Likewise.
2030 (parse_xml_btrace_conf): Likewise.
2031
88711fbf
MM
20322018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2033
2034 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
2035 (linux_enable_pt, linux_enable_bts): Call
2036 diagnose_perf_event_open_fail.
2037
17ad2a4f
MM
20382018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2039
2040 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
2041 Remove parameter and change return type. Update callers. Move it.
2042 (linux_enable_bts, linux_enable_pt): Improve error message.
2043 (linux_enable_pt): Remove zero buffer size check.
2044 (linux_enable_btrace): Improve error messages. Remove NULL return
2045 check.
2046
de6242d3
MM
20472018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2048
2049 * btrace.c (btrace_enable): Remove target_supports_btrace call.
2050 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
2051 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
2052 (linux_supports_pt, linux_supports_btrace): Remove.
2053 (linux_enable_bts): Call cpu_supports_bts.
2054 * nat/linux-btrace.h (linux_supports_btrace): Remove.
2055 * remote.c (remote_supports_btrace): Remove.
2056 (init_remote_ops): Remove remote_supports_btrace.
2057 * target-delegates.c: Regenerated.
2058 * target.c (target_supports_btrace): Remove.
2059 * target.h (target_ops) <to_supports_btrace>: Remove
2060 (target_supports_btrace): Remove.
2061 * x86-linux-nat.c (x86_linux_create_target): Remove
2062 linux_supports_btrace.
2063
9ee23a85
MM
20642018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2065
2066 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
2067 btrace failed.
2068 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
2069 exception and use message in own exception.
2070
5c3284c1
MM
20712018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2072
2073 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
2074 (perf_event_pt_event_type): Use gdb_file_up.
2075 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
2076 scoped_fd, and scoped_mmap.
2077
84696f37
MM
20782018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2079
2080 * common/scoped_mmap.h: New.
2081 * unittests/scoped_mmap-selftest.c: New.
2082 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2083 unittests/scoped_mmap-selftest.c.
2084
ea4a0888
MM
20852018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2086
2087 * common/scoped_fd.h: New.
2088 * unittests/scoped_fd-selftest.c: New.
2089 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2090 unittests/scoped_fd-selftest.c.
2091
869e8290
TT
20922018-02-09 Tom Tromey <tom@tromey.com>
2093
2094 * auto-load.c (auto_load_section_scripts): Use
2095 gdb::unique_xmalloc_ptr.
2096
a37a2ae7
TT
20972018-02-09 Tom Tromey <tom@tromey.com>
2098
2099 * auto-load.c (execute_script_contents): Use std::string.
2100
4e725347
JB
21012018-02-09 Joel Brobecker <brobecker@adacore.com>
2102
2103 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
2104 Python function, rather than a new command.
2105
9a897d43
TT
21062018-02-08 Tom Tromey <tom@tromey.com>
2107
2108 * solib.c (solib_find_1): Use std::string.
2109 (solib_bfd_fopen): Use unique_xmalloc_ptr.
2110
58ef3771
TT
21112018-02-08 Tom Tromey <tom@tromey.com>
2112
2113 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
2114
a9abc434
TT
21152018-02-08 Tom Tromey <tom@tromey.com>
2116
2117 * source.c (find_source_lines): Use gdb::def_vector.
2118
84f27c6f
TT
21192018-02-08 Tom Tromey <tom@tromey.com>
2120
2121 * macrocmd.c (struct temporary_macro_definition): New.
2122 (macro_define_command): Use temporary_macro_definition. Remove
2123 cleanups.
2124 (free_macro_definition_ptr): Remove.
2125
0354904b
TT
21262018-02-08 Tom Tromey <tom@tromey.com>
2127
2128 * macroexp.c (maybe_expand): Use std::string.
2129
1739cf24
TT
21302018-02-08 Tom Tromey <tom@tromey.com>
2131
2132 * macroexp.c (struct macro_buffer): Add initializers for some
2133 members.
2134 (init_buffer, init_shared_buffer, free_buffer)
2135 (free_buffer_return_text): Remove.
2136 (macro_buffer): New constructors.
2137 (~macro_buffer): New destructor.
2138 (macro_buffer::set_shared): New method.
2139 (macro_buffer::resize_buffer, macro_buffer::appendc)
2140 (macro_buffer::appendmem): Now methods, not free functions.
2141 (set_token, append_tokens_without_splicing, stringify)
2142 (macro_stringify): Update.
2143 (gather_arguments): Change return type. Remove argc_p argument,
2144 add args_ptr argument. Use std::vector.
2145 (substitute_args): Remove argc argument. Accept std::vector.
2146 (expand): Update. Use std::vector.
2147 (scan, macro_expand, macro_expand_next): Update.
2148
f6c2623e
TT
21492018-02-08 Tom Tromey <tom@tromey.com>
2150
2151 * symtab.c (default_collect_symbol_completion_matches_break_on):
2152 Use unique_xmalloc_ptr.
2153 * macroscope.h: (sal_macro_scope, user_macro_scope)
2154 (default_macro_scope): Return unique_xmalloc_ptr.
2155 * macroscope.c (sal_macro_scope, user_macro_scope)
2156 (default_macro_scope): Return unique_xmalloc_ptr.
2157 * macroexp.h (macro_expand, macro_expand_once): Return
2158 unique_xmalloc_ptr.
2159 * macroexp.c (macro_expand, macro_expand_once): Return
2160 unique_xmalloc_ptr.
2161 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2162 (info_macro_command, info_macros_command): Use
2163 unique_xmalloc_ptr.
2164 * compile/compile-c-support.c (write_macro_definitions): Use
2165 unique_xmalloc_ptr.
2166 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2167
c2e0e465
SM
21682018-02-07 Simon Marchi <simon.marchi@ericsson.com>
2169
2170 * value.c (value_static_field): Assign field type instead of
2171 containing type when returning an optimized out value.
2172
3f8c94b4
YQ
21732018-02-06 Yao Qi <yao.qi@linaro.org>
2174
2175 * ft32-tdep.c (ft32_read_pc): Remove.
2176 (ft32_write_pc): Remove.
2177 (ft32_gdbarch_init): Update.
2178 * m32r-tdep.c (m32r_read_pc): Remove.
2179 (m32r_gdbarch_init): Update.
2180 * mep-tdep.c (mep_read_pc): Remove.
2181 (mep_gdbarch_init): Update.
2182 * microblaze-tdep.c (microblaze_write_pc): Remove.
2183 (microblaze_gdbarch_init): Update.
2184 * mn10300-tdep.c (mn10300_read_pc): Remove.
2185 (mn10300_write_pc): Remove.
2186 (mn10300_gdbarch_init): Update.
2187 * moxie-tdep.c (moxie_read_pc): Remove.
2188 (moxie_write_pc): Remove.
2189 (moxie_gdbarch_init): Update.
2190
bca65a23
YQ
21912018-02-06 Yao Qi <yao.qi@linaro.org>
2192
2193 * expprint.c (print_subexp_standard): Handle
2194 OP_F77_UNDETERMINED_ARGLIST.
2195 (dump_subexp_body_standard): Likewise.
2196
583e3f90 21972018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 2198
583e3f90
YQ
2199 * target-descriptions.c (tdesc_element_visitor) Add empty
2200 implementations.
b8df6ca7
AH
2201 (tdesc_type): Move make_gdb_type from here.
2202 (tdesc_type_builtin): Likewise.
2203 (tdesc_type_vector): Likewise.
2204 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2205 (make_gdb_type_struct): Move from tdesc_type_with_fields.
2206 (make_gdb_type_union): Likewise.
2207 (make_gdb_type_flags): Likewise.
2208 (make_gdb_type_enum): Likewise.
2209 (make_gdb_type): New function.
2210 (tdesc_register_type): Use static make_gdb_type.
2211
e813d34a
RK
22122018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
2213
2214 * infcmd.c (default_print_one_register_info): Align natural-format
2215 column values consistently one under another.
2216 (pad_to_column): New function.
2217
0eb876f5
JB
22182018-02-05 Joel Brobecker <brobecker@adacore.com>
2219
2220 * dwarf2read.c (dwarf2_physname): Move commment.
2221
0625771b
LS
22222018-02-01 Leszek Swirski <leszeks@google.com>
2223
2224 * varobj.c (varobj_formatted_print_options): Allow recursive
2225 pretty printing if pretty printing is enabled.
2226
59498c30
LS
22272018-02-01 Leszek Swirski <leszeks@google.com>
2228
2229 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2230 names after a structop as a filename.
2231
2d9e6acb
YQ
22322018-02-01 Yao Qi <yao.qi@linaro.org>
2233
2234 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2235 (arm_record_coproc_data_proc): Likewise.
2236
df95a9cf
YQ
22372018-02-01 Yao Qi <yao.qi@linaro.org>
2238
2239 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2240
07e5f5cf
NP
22412018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
2242
2243 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2244 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2245
3045b475
PA
22462018-01-31 Pedro Alves <palves@redhat.com>
2247
2248 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2249 * inflow.c (child_terminal_save_inferior): Wrap reference to
2250 tcgetpgrp in HAVE_TERMIOS_H.
2251 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2252 _WIN32.
2253 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2254 always iterate over all inferiors.
2255 (gdbsim_cntrl_c): Adjust.
2256 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2257
929b5ad4
JB
22582018-01-31 Joel Brobecker <brobecker@adacore.com>
2259
2260 * gdbtypes.c (lookup_array_range_type): Make sure the array's
2261 index type is objfile-owned if the element type is as well.
2262
29236ca2
JB
22632018-01-31 Joel Brobecker <brobecker@adacore.com>
2264
2265 GDB 8.1 released.
2266
c81e8879
PR
22672018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
2268
2269 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2270 "features/s390x-linux64.c".
2271 (_initialize_s390_linux_tdep): Remove initialization of tdescs
2272 s390_linux32 and s390x_linux64.
2273 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2274 default tdesc.
2275 * s390-tdep.c: Include "features/s390-linux32.c" and
2276 "features/s390x-linux64.c".
2277 (s390_tdesc_valid): Add check for tdesc_has_registers.
2278 (s390_gdbarch_init): Make sure there is always a valid tdesc.
2279 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2280 tdesc_s390x_linux64.
2281 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2282 tdesc_s390x_linux64 to...
2283 * s390-tdep.h: ...here.
2284
e671cd59
PA
22852018-01-30 Pedro Alves <palves@redhat.com>
2286
2287 PR gdb/13211
2288 * config.in, configure: Regenerate.
2289 * configure.ac: Check for getpgid.
2290 * go32-nat.c (go32_pass_ctrlc): New.
2291 (go32_target): Install it.
2292 * inf-child.c (inf_child_target): Install
2293 child_terminal_save_inferior, child_pass_ctrlc and
2294 child_interrupt.
2295 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
2296 (inf_ptrace_target): No longer install it.
2297 * infcmd.c (interrupt_target_1): Adjust.
2298 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
2299 (child_interrupt): Declare.
2300 (inferior::terminal_state): New.
2301 * inflow.c (struct terminal_info): Update comments.
2302 (inferior_process_group): Delete.
2303 (terminal_is_ours): Delete.
2304 (gdb_tty_state): New.
2305 (child_terminal_init): Adjust.
2306 (is_gdb_terminal, sharing_input_terminal_1)
2307 (sharing_input_terminal): New functions.
2308 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
2309 Set the process's actual process group in the foreground if
2310 possible. Handle is_ours_for_output/is_ours distinction. Don't
2311 mark terminal as the inferior's if not sharing GDB's terminal.
2312 Don't check attach_flag.
2313 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
2314 pass down a target_terminal_state.
2315 (child_terminal_save_inferior): New, factored out from ...
2316 (child_terminal_ours_1): ... this. Handle
2317 target_terminal_state::is_ours_for_output.
2318 (child_interrupt, child_pass_ctrlc): New.
2319 (inflow_inferior_exit): Clear the inferior's terminal_state.
2320 (copy_terminal_info): Copy the inferior's terminal state.
2321 (_initialize_inflow): Remove reference to terminal_is_ours.
2322 * inflow.h (inferior_process_group): Delete.
2323 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2324 * procfs.c (procfs_target): Don't install procfs_interrupt.
2325 (procfs_interrupt): Delete.
2326 * remote.c (remote_serial_quit_handler): Adjust.
2327 (remote_interrupt): Remove ptid parameter. Adjust.
2328 * target-delegates.c: Regenerate.
2329 * target.c: Include "terminal.h".
2330 (target_terminal::terminal_state): Rename to ...
2331 (target_terminal::m_terminal_state): ... this.
2332 (target_terminal::init): Adjust.
2333 (target_terminal::inferior): Adjust to per-inferior
2334 terminal_state.
2335 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2336 (target_terminal::ours, target_terminal::ours_for_output): Use
2337 target_terminal_is_ours_kind.
2338 (target_interrupt): Remove ptid parameter. Adjust.
2339 (default_target_pass_ctrlc): Adjust.
2340 * target.h (target_ops::to_terminal_save_inferior): New field.
2341 (target_ops::to_interrupt): Remove ptid_t parameter.
2342 (target_interrupt): Remove ptid_t parameter. Update comment.
2343 (target_pass_ctrlc): Update comment.
2344 * target/target.h (target_terminal_state): New scoped enum,
2345 factored out of ...
2346 (target_terminal::terminal_state): ... here.
2347 (target_terminal::inferior): Update comments.
2348 (target_terminal::restore_inferior): New.
2349 (target_terminal::is_inferior, target_terminal::is_ours)
2350 (target_terminal::is_ours_for_output): Adjust.
2351 (target_terminal::scoped_restore_terminal_state): Adjust to
2352 rename, and call restore_inferior() instead of inferior().
2353 (target_terminal::scoped_restore_terminal_state::m_state): Change
2354 type.
2355 (target_terminal::terminal_state): Rename to ...
2356 (target_terminal::m_terminal_state): ... this and change type.
2357
9c3a5d93
PA
23582018-01-30 Pedro Alves <palves@redhat.com>
2359
2360 * linux-nat.c (wait_for_signal): New function.
2361 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2362 directly.
2363 (async_terminal_is_ours)
2364 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2365 (linux_nat_add_target): Don't override
2366 to_terminal_inferior/to_terminal_ours.
2367
69ab5edb
SDJ
23682018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
2369
2370 * remote.c (remote_follow_fork): Don't call "detach_inferior".
2371
fc8e7e75
SM
23722018-01-28 Simon Marchi <simon.marchi@ericsson.com>
2373
2374 * dwarf2read.c (free_dwo_files): Add forward-declaration.
2375 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2376 dwarf2_per_objfile_free here.
2377 (dwarf2_per_objfile_free): Remove.
2378 (_initialize_dwarf2_read): Don't register
2379 dwarf2_per_objfile_free as a registry cleanup.
2380
b2a426e2
EZ
23812018-01-27 Eli Zaretskii <eliz@gnu.org>
2382
2383 Avoid compilation errors in MinGW native builds
2384
2385 The error is triggered by including python-internal.h, and the
2386 error message is:
2387
2388 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2389 from build-gnulib/import/math.h:27,
2390 from d:/usr/Python26/include/pyport.h:235,
2391 from d:/usr/Python26/include/Python.h:58,
2392 from python/python-internal.h:94,
2393 from python/py-arch.c:24:
2394 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2395 using ::hypot;
2396 ^~~~~
2397
2398 This happens because Python headers define 'hypot' to expand t
2399 '_hypot' in the Windows builds.
2400 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2401 'hypoth'. This avoids a compilation error.
2402
0bdd8eac
AH
24032018-01-26 Alan Hayward <alan.hayward@arm.com>
2404
2405 * MAINTAINERS (Write After Approval): Fix ordering.
2406
56ae9dc3
AH
24072018-01-26 Alan Hayward <alan.hayward@arm.com>
2408
2409 * MAINTAINERS (Write After Approval): Add Alan Hayward.
2410
7433498b
AM
24112018-01-26 Alan Modra <amodra@gmail.com>
2412
2413 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2414 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2415 Remove nop. Make const. Comment.
2416 (powerpc32_plt_stub_so_2): New.
2417 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2418 Correct count. Update uses.
2419 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2420 Move common code reading PLT entry word. Correct
2421 powerpc32_plt_stub PLT address calculation.
2422 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2423 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2424 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2425 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2426 (ppc64_standard_linkage8): Likewise.
2427 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2428 Correct insns description.
2429 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2430
0f59d5fc
PA
24312018-01-24 Pedro Alves <palves@redhat.com>
2432
2433 GCC PR libstdc++/83906
2434 * gdbtypes.c (operator==(const dynamic_prop &,
2435 const dynamic_prop &)): New.
2436 (operator==(const range_bounds &, const range_bounds &)): New.
2437 (check_types_equal): Use them instead of memcmp.
2438 * gdbtypes.h (operator==(const dynamic_prop &,
2439 const dynamic_prop &)): Declare.
2440 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2441 (operator==(const range_bounds &, const range_bounds &)): Declare.
2442 (operator!=(const range_bounds &, const range_bounds &)): Declare.
2443
ef8914a4
PR
24442018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2445
2446 * s390-linux-tdep.c (s390_record_address_mask)
2447 (s390_record_calc_disp_common, s390_record_calc_disp)
2448 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2449 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2450 (s390_process_record): Move to s390-tdep.c.
2451 (s390_linux_init_abi_any): Adjust.
2452 * s390-tdep.c (s390_record_address_mask)
2453 (s390_record_calc_disp_common, s390_record_calc_disp)
2454 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2455 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2456 (s390_process_record): Moved from s390-linux-tdep.c
2457 (s390_gdbarch_init): Adjust.
2458
d6e58945
PR
24592018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2460
2461 * s390-linux-nat.c (s390-tdep.h): New include.
2462 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2463 (HFILES_NO_SRCDIR): Add s390-tdep.h.
2464 (ALLDEPFILES): Add s390-tdep.c.
2465 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2466 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2467 * s390-tdep.h: ...this. New file.
2468 * s390-linux-tdep.c (s390-tdep.h): New include.
2469 (_initialize_s390_tdep): Rename to...
2470 (_initialize_s390_linux_tdep): ...this and adjust.
2471 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2472 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2473 s390-tdep.h.
2474 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2475 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2476 (s390_is_partial_instruction, s390_software_single_step)
2477 (is_non_branch_ril, s390_displaced_step_copy_insn)
2478 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2479 (s390_prologue_data, s390_addr, s390_store, s390_load)
2480 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2481 (s390_register_call_saved, s390_guess_tracepoint_registers)
2482 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2483 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2484 (s390_pseudo_register_name, s390_pseudo_register_type)
2485 (s390_pseudo_register_read, s390_pseudo_register_write)
2486 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2487 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2488 (s390_addr_bits_remove, s390_address_class_type_flags)
2489 (s390_address_class_type_flags_to_name)
2490 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2491 (s390_function_arg_float, s390_function_arg_vector)
2492 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2493 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2494 (s390_frame_align, s390_register_return_value, s390_return_value)
2495 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2496 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2497 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2498 (s390_trad_frame_prev_register, s390_unwind_cache)
2499 (s390_prologue_frame_unwind_cache)
2500 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2501 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2502 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2503 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2504 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2505 (s390_frame_base_address, s390_local_base_address)
2506 (s390_frame_base, s390_gcc_target_options)
2507 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2508 (s390_validate_reg_range, s390_tdesc_valid)
2509 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2510 * s390-tdep.c: ...this. New file.
2511
9c0b896e
PR
25122018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2513
2514 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2515 (s390_process_record, s390_gdbarch_tdep_alloc)
2516 (s390_linux_init_abi_any): Use/set new hook.
2517
7042632b
PR
25182018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2519
2520 * s390-linux-tdep.c (osabi.h): New include.
2521 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2522 (s390_linux_init_abi_any): New functions.
2523 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2524
650f5e13
PR
25252018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2526
2527 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2528 tdesc_has_registers check
2529
47c9317e
PR
25302018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2531
2532 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2533 (s390_validate_reg_range): New macro.
2534 (s390_gdbarch_init): Adjust.
2535
095085d8
PR
25362018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2537
2538 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2539 (s390_gdbarch_tdep_alloc): Adjust.
2540 (s390_gdbarch_init): Adjust.
2541
ab9bcc67
PR
25422018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2543
2544 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2545 <have_tdb>: Change type to bool.
2546 (s390_gdbarch_tdep_alloc): Adjust.
2547 (s390_gdbarch_init): Adjust.
2548
21f6f5ff
PR
25492018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2550
2551 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2552 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2553 (s390_gdbarch_tdep_alloc): New function.
2554 (s390_gdbarch_init): Allocate tdep at start and use its fields
2555 instead of separate variables.
2556
0eb97953
PR
25572018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2558
2559 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2560 when looking for cached gdbarch and add comment for remaining.
2561
5c319bb2
PA
25622018-01-22 Pedro Alves <palves@redhat.com>
2563 Sergio Durigan Junior <sergiodj@redhat.com>
2564
2565 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2566 case.
2567
d65ce302
MR
25682018-01-22 Maciej W. Rozycki <macro@mips.com>
2569
2570 * MAINTAINERS: Update my company e-mail address.
2571
ec7a5fcb
YQ
25722018-01-22 Yao Qi <yao.qi@linaro.org>
2573
2574 * regcache.c (cooked_write_test): New function.
2575 (_initialize_regcache): Register the test.
2576
11f57cb6
YQ
25772018-01-22 Yao Qi <yao.qi@linaro.org>
2578
2579 * ia64-tdep.c (ia64_pseudo_register_read): Call
2580 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2581 * m32c-tdep.c (m32c_cat_read): Likewise.
2582 (m32c_r3r2r1r0_read): Likewise.
2583 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2584 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2585
03f50fc8
YQ
25862018-01-22 Yao Qi <yao.qi@linaro.org>
2587
2588 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2589 method raw_read instead of regcache_raw_read.
2590 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2591 * arm-tdep.c (arm_neon_quad_read): Likewise.
2592 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2593 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2594 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2595 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2596 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2597 (i386_pseudo_register_read_into_value): Likewise.
2598 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2599 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2600 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2601 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2602 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2603 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2604 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2605 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2606 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2607
dc711524
YQ
26082018-01-22 Yao Qi <yao.qi@linaro.org>
2609
2610 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2611 * configure.tgt: Remove target mt.
2612 * mt-tdep.c: Remove.
2613 * regcache.c (cooked_read_test): Remove the check for mt.
2614
3f5a868b
YQ
26152018-01-22 Yao Qi <yao.qi@linaro.org>
2616
2617 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2618 instead of gdbarch_pseudo_register_read_value.
2619
de4cb04a
JB
26202018-01-22 Joel Brobecker <brobecker@adacore.com>
2621
2622 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2623 language is Ada.
2624
a9e40818
JB
26252018-01-22 Joel Brobecker <brobecker@adacore.com>
2626
2627 * linespec.c (create_sals_line_offset): Remove code that preserved
2628 the symtab_and_line's line number.
2629
e707fc44
AB
26302018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * varobj.c (varobj_create): Don't set valid_block when creating a
2633 floating varobj.
2634
03d0bf7b
AB
26352018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * varobj.c (varobj_create): Remove out of date comment.
2638
ae451627
AB
26392018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 PR mi/20395
2642 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2643 updating innermost block.
2644 * parse.c (innermost_block_tracker::update): Take extra type
2645 parameter, and check types match before updating innermost block.
2646 (write_dollar_variable): Update innermost block for registers.
2647 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2648 (innermost_block_tracker::innermost_block_tracker): Initialise
2649 m_types member.
2650 (innermost_block_tracker::reset): Take type parameter.
2651 (innermost_block_tracker::update): Take type parameter, and pass
2652 type through as needed.
2653 (innermost_block_tracker::m_types): New member.
2654 * varobj.c (varobj_create): Pass type when reseting innermost
2655 block.
2656
aee1fcdf
AB
26572018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2660 * ada-lang.c (resolve_subexp): Likewise.
2661 * breakpoint.c (set_breakpoint_condition) Likewise.
2662 (watch_command_1) Likewise.
2663 * c-exp.y (variable): Likewise.
2664 * d-exp.y (PrimaryExpression): Likewise.
2665 * f-exp.y (variable): Likewise.
2666 * go-exp.y (variable): Likewise.
2667 * m2-exp.y (variable): Likewise.
2668 * objfiles.c (objfile::~objfile): Likewise.
2669 * p-exp.y (variable): Likewise.
2670 * parse.c (innermost_block): Change type.
2671 * parser-defs.h (class innermost_block_tracker): New.
2672 (innermost_block): Change to innermost_block_tracker.
2673 * printcmd.c (display_command): Switch to innermost_block API.
2674 (do_one_display): Likewise.
2675 * rust-exp.y (do_one_display): Likewise.
2676 * symfile.c (clear_symtab_users): Likewise.
2677 * varobj.c (varobj_create): Switch to innermost_block API, replace
2678 use of innermost_block with block stored on varobj object.
2679
396af9a1
AB
26802018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2681
2682 * expression.h (innermost_block): Remove declaration.
2683 * varobj.c: Add 'parser-defs.h' include.
2684
fcfcc376
TT
26852018-01-19 Tom Tromey <tom@tromey.com>
2686
2687 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2688 symbols in the static and global blocks.
2689
5a6c3296
JC
26902018-01-19 James Clarke <jrtc27@jrtc27.com>
2691
2692 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2693 gdb_ptrace.h, and move including gdb_wait.h ...
2694 * nat/linux-ptrace.h: ... to here.
2695
bc09b0c1
SM
26962018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2697
2698 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2699 inf_ptrace_detach_success.
2700 (inf_ptrace_detach_success): Add inferior parameter, use it
2701 instead of inferior_ptid, pass it to detach_inferior.
2702 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2703 parameter.
2704 * inferior.c (detach_inferior): Add overload that takes an
2705 inferior object.
2706 * inferior.h (detach_inferior): Likewise.
2707 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2708 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2709 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2710
6e1e1966
SM
27112018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2712
2713 * target.h (struct target_ops) <to_detach>: Add inferior
2714 parameter.
2715 (target_detach): Likewise.
2716 * target.c (dispose_inferior): Pass inferior down.
2717 (target_detach): Pass inferior down. Assert that it is equal to
2718 the current inferior.
2719 * aix-thread.c (aix_thread_detach): Pass inferior down.
2720 * corefile.c (core_file_command): Pass current_inferior() down.
2721 * corelow.c (core_detach): Add inferior parameter.
2722 * darwin-nat.c (darwin_detach): Likewise.
2723 * gnu-nat.c (gnu_detach): Likewise.
2724 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2725 * infcmd.c (detach_command): Pass current_inferior() down to
2726 target_detach.
2727 * infrun.c (follow_fork_inferior): Pass parent_inf to
2728 target_detach.
2729 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2730 target_detach.
2731 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2732 * linux-thread-db.c (thread_db_detach): Likewise.
2733 * nto-procfs.c (procfs_detach): Likewise.
2734 * procfs.c (procfs_detach): Likewise.
2735 * record.c (record_detach): Likewise.
2736 * record.h (struct inferior): Forward-declare.
2737 (record_detach): Add inferior parameter.
2738 * remote-sim.c (gdbsim_detach): Likewise.
2739 * remote.c (remote_detach_1): Likewise.
2740 (remote_detach): Likewise.
2741 (extended_remote_detach): Likewise.
2742 * sol-thread.c (sol_thread_detach): Likewise.
2743 * target-debug.h (target_debug_print_inferior_p): New macro.
2744 * target-delegates.c: Re-generate.
2745 * top.c (kill_or_detach): Pass inferior down to target_detach.
2746 * windows-nat.c (windows_detach): Add inferior parameter.
2747
6bd6f3b6
SM
27482018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2749
2750 * target.h (struct target_ops) <to_detach>: Remove args
2751 parameter.
2752 (target_detach): Likewise.
2753 * target.c (dispose_inferior): Adjust.
2754 (target_detach): Remove args parameter, adjust.
2755 * aix-thread.c (aix_thread_detach): Adjust.
2756 * corefile.c (core_file_command): Adjust.
2757 * corelow.c (core_detach): Adjust.
2758 * darwin-nat.c (darwin_detach): Adjust.
2759 * gnu-nat.c (gnu_detach): Adjust.
2760 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2761 * infcmd.c (detach_command): Adjust
2762 * infrun.c (follow_fork_inferior): Adjust.
2763 (handle_vfork_child_exec_or_exit): Adjust.
2764 * linux-fork.c (linux_fork_detach): Remove args parameter.
2765 * linux-fork.h (linux_fork_detach): Likewise.
2766 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2767 * linux-thread-db.c (thread_db_detach): Likewise.
2768 * nto-procfs.c (procfs_detach): Likewise.
2769 * procfs.c (procfs_detach): Likewise.
2770 (do_detach): Remove signo parameter.
2771 * record.c (record_detach): Remove args parameter.
2772 * record.h (record_detach): Likewise.
2773 * remote-sim.c (gdbsim_detach): Likewise.
2774 * remote.c (remote_detach_1): Likewise.
2775 (remote_detach): Likewise.
2776 (extended_remote_detach): Likewise.
2777 * sol-thread.c (sol_thread_detach): Likewise.
2778 * target-delegates.c: Re-generate.
2779 * top.c (struct qt_args) <args>: Remove field.
2780 (kill_or_detach): Don't pass args.
2781 (quit_force): Don't set args.
2782 * windows-nat.c (windows_detach): Remove args parameter.
2783
88af8ea8
YQ
27842018-01-19 Yao Qi <yao.qi@linaro.org>
2785
2786 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2787 (arm_linux_init_abi): Install it.
2788
dea445b9
YQ
27892018-01-19 Yao Qi <yao.qi@linaro.org>
2790
2791 * osabi.c (gdb_osabi_names): Extend the regexp for
2792 arm-linux-gnueabihf.
2793
4a17f768
YQ
27942018-01-18 Yao Qi <yao.qi@linaro.org>
2795
2796 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2797 m_abbrevs.
2798 (abbrev_table::add_abbrev): Update.
2799 (abbrev_table::lookup_abbrev): Update.
2800
d679c21a
YQ
28012018-01-18 Yao Qi <yao.qi@linaro.org>
2802
2803 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2804
7d937cad
SDJ
28052018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2806
2807 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2808 to "std::string".
2809
9e14690d
TT
28102018-01-17 Tom Tromey <tom@tromey.com>
2811
2812 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2813
50a82047
TT
28142018-01-17 Tom Tromey <tom@tromey.com>
2815
2816 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2817 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2818 (create_array_type_with_stride): Update.
2819 * dwarf2read.c (set_die_type): Update.
2820
c89b44cd
TT
28212018-01-17 Tom Tromey <tom@tromey.com>
2822
2823 * dwarf2read.c (delayed_method_info): Remove typedef.
2824 (dwarf2_cu::method_info): Now a std::vector.
2825 (add_to_method_list): Update.
2826 (free_delayed_list): Remove.
2827 (compute_delayed_physnames): Update.
2828 (process_full_comp_unit, process_full_type_unit): Clear the method
2829 list. Remove cleanups.
2830 (psymtab_include_file_name): Add name_holder parameter. Use
2831 unique_xmalloc_ptr.
2832 (dwarf_decode_lines): Update.
2833
fcd3b13d
SM
28342018-01-17 Tom Tromey <tom@tromey.com>
2835 Simon Marchi <simon.marchi@ericsson.com>
2836
2837 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2838 (dwarf2_per_objfile::free_cached_comp_units)
2839 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2840 (init_cutu_and_read_dies_no_follow): Update.
2841 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2842 (dwarf2_cu::~dwarf2_cu): New.
2843 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2844 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2845
685af9cd
TT
28462018-01-17 Tom Tromey <tom@tromey.com>
2847 Simon Marchi <simon.marchi@ericsson.com>
2848
2849 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2850 (struct die_reader_specs) <abbrev_table>: New member.
2851 (struct abbrev_table): Add constructor.
2852 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2853 <abbrev_obstack>: Now an auto_obstack.
2854 (abbrev_table_up): New typedef.
2855 (init_cu_die_reader): Add abbrev_table parameter.
2856 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2857 Add result_dwo_abbrev_table.
2858 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2859 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2860 Update.
2861 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2862 parameter.
2863 (skip_children): Update.
2864 (abbrev_table::alloc_abbrev): Rename from
2865 abbrev_table_alloc_abbrev.
2866 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2867 (abbrev_table::lookup_abbrev): Rename from
2868 abbrev_table_lookup_abbrev.
2869 (abbrev_table_read_table): Return abbrev_table_up.
2870 (abbrev_table_free, abbrev_table_free_cleanup)
2871 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2872 (load_partial_dies): Update.
2873
5e2db402
TT
28742018-01-17 Tom Tromey <tom@tromey.com>
2875
2876 * dwarf2read.c (dwarf2_compute_name): Update comment.
2877 (read_func_scope, read_variable): Update.
2878 (new_symbol): Remove.
2879 (new_symbol_full): Rename to new_symbol.
2880
ee7f689e 28812018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
2882
2883 PR gdb/16577
2884 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2885 a warning instead of throwing an error, set section size to 0 and return
2886 NULL.
2887 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2888
4d9b86e1
SM
28892018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2890
2891 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2892 std::string.
2893 (linux_ptrace_attach_fail_reason_string): Likewise.
2894 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2895 Likewise.
2896 (linux_ptrace_attach_fail_reason_string): Likewise.
2897 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2898
a7b2d0fb
SM
28992018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2900
2901 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2902
f517c180
EA
29032018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2904
2905 PR gdb/21559
2906 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2907 checking for fs_base/gs_base fields in struct user_regs_struct.
2908 * configure: Regenerate.
2909
7045b1ca
YQ
29102018-01-17 Yao Qi <yao.qi@linaro.org>
2911
2912 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2913 function.
2914 (aarch64_linux_init_abi): Install it to gdbarch hook
2915 gcc_target_options.
2916
db422fb2
PA
29172018-01-15 Pedro Alves <palves@redhat.com>
2918
2919 * common/signals-state-save-restore.c
2920 (save_original_signals_state): Fix typos.
2921
ba643918
SDJ
29222017-01-12 Tom Tromey <tom@tromey.com>
2923 Sergio Durigan Junior <sergiodj@redhat.com>
2924
2925 * Makefile.in (install-only): Install gdb-add-index.
2926
906b4aac
JB
29272018-01-12 John Baldwin <jhb@FreeBSD.org>
2928
2929 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2930
bdf2a94a
AA
29312018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2932
2933 * infrun.c (keep_going_pass_signal): Clear step-over info when
2934 insert_breakpoints fails.
2935
71d378ae
PA
29362018-01-11 Pedro Alves <palves@redhat.com>
2937
2938 PR gdb/22583
2939 * infrun.c (resume): Rename to ...
2940 (resume_1): ... this.
2941 (resume): Reimplement as wrapper around resume_1.
2942
3cada740
PA
29432018-01-11 Pedro Alves <palves@redhat.com>
2944
2945 PR remote/22597
2946 * remote.c (remote_parse_stop_reply): Default to the last-set
2947 general thread instead of to 'magic_null_ptid'.
2948
618daa93
PA
29492018-01-10 Pedro Alves <palves@redhat.com>
2950
2951 * language.h (language_get_symbol_name_matcher): Rename ...
2952 (get_symbol_name_matcher): ... this.
2953 * language.c (language_get_symbol_name_matcher): Ditto.
2954 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2955 callers adjusted.
2956
c63d3e8d
PA
29572018-01-10 Pedro Alves <palves@redhat.com>
2958
2959 PR gdb/22670
2960 * dwarf2read.c
2961 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2962 Adjust to use language_get_symbol_name_matcher instead of
2963 language_defn::la_get_symbol_name_matcher.
2964 * language.c (language_get_symbol_name_matcher): If in Ada mode
2965 and the lookup name is a verbatim match, return Ada's matcher.
2966 * language.h (language_get_symbol_name_matcher): Adjust comment.
2967 (ada_lookup_name_info::verbatim_p):: New method.
2968
d4c2a405
PA
29692018-01-10 Pedro Alves <palves@redhat.com>
2970
2971 PR gdb/22670
2972 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2973 minsym's language is language_auto or language_cplus, pass down
2974 language_ada instead.
2975 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2976
8825213e
PA
29772018-01-10 Pedro Alves <palves@redhat.com>
2978
2979 PR gdb/22670
2980 * minsyms.c (linkage_name_str): New function.
2981 (iterate_over_minimal_symbols): Use it.
2982
2d97a5d9
JB
29832018-01-09 John Baldwin <jhb@FreeBSD.org>
2984
2985 * NEWS: Document that 'info proc' now works on FreeBSD.
2986
92fce24d
JB
29872018-01-09 John Baldwin <jhb@FreeBSD.org>
2988
2989 * configure.ac: Check for kinfo_getfile in libutil.
2990 * configure: Regenerate.
2991 * config.in: Regenerate.
2992 * fbsd-nat.c: Include "fbsd-tdep.h".
2993 (fbsd_fetch_cmdline): New.
2994 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2995 rather than calling error.
2996 (fbsd_info_proc): New.
2997 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2998 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2999 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
3000
262f62f5
JB
30012018-01-09 John Baldwin <jhb@FreeBSD.org>
3002
3003 * fbsd-nat.c (struct free_deleter): Remove.
3004 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
3005
b999e203
JB
30062018-01-09 John Baldwin <jhb@FreeBSD.org>
3007
3008 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
3009 NULL for an empty pathname.
3010
d2176225
JB
30112018-01-09 John Baldwin <jhb@FreeBSD.org>
3012
3013 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
3014 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
3015 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3016 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3017 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
3018 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
3019 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
3020 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
3021 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
3022 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
3023 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
3024 (fbsd_core_fetch_timeval, fbsd_print_sigset)
3025 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
3026 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
3027 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
3028
9c4ac400
ST
30292018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
3030
3031 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
3032 (gnu_xfer_auxv): New function.
3033 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
3034 TARGET_OBJECT_AUXV.
3035
1e5ded6c
YQ
30362018-01-08 Yao Qi <yao.qi@linaro.org>
3037 Simon Marchi <simon.marchi@ericsson.com>
3038
3039 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
3040 common/selftest.c.
3041 (COMMON_OBS): Remove selftest.o.
3042 * configure.ac: Append selftest-arch.c and common/selftest.c to
3043 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
3044 * configure: Re-generated.
3045 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
3046 GDB_SELF_TEST.
3047 (maintenance_info_selftests): Likewise.
3048
04bafb1e
XR
30492018-01-08 Xavier Roirand <roirand@adacore.com>
3050
3051 * ada-valprint.c (val_print_packed_array_elements): Use
3052 proper number of elements when printing an array indexed
3053 by an enumeration type.
3054
518817b3
SM
30552018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
3058 (dw2_get_file_names_reader): Adjust.
3059 (lookup_dwo_signatured_type): Adjust.
3060 (lookup_dwp_signatured_type): Adjust.
3061 (lookup_signatured_type): Adjust.
3062 (create_type_unit_group): Adjust.
3063 (get_type_unit_group): Adjust.
3064 (process_psymtab_comp_unit_reader): Adjust.
3065 (build_type_psymtabs_reader): Adjust.
3066 (scan_partial_symbols): Adjust.
3067 (add_partial_symbol): Adjust.
3068 (add_partial_subprogram): Adjust.
3069 (peek_die_abbrev): Adjust.
3070 (fixup_go_packaging): Adjust.
3071 (process_imported_unit_die): Adjust.
3072 (dwarf2_compute_name): Adjust.
3073 (dwarf2_physname): Adjust.
3074 (read_import_statement): Adjust.
3075 (handle_DW_AT_stmt_list): Adjust.
3076 (read_file_scope): Adjust.
3077 (read_func_scope): Adjust.
3078 (read_lexical_block_scope): Adjust.
3079 (read_call_site_scope): Adjust.
3080 (read_variable): Adjust.
3081 (dwarf2_rnglists_process): Adjust.
3082 (dwarf2_ranges_process): Adjust.
3083 (dwarf2_ranges_read): Adjust.
3084 (dwarf2_get_pc_bounds): Adjust.
3085 (dwarf2_record_block_ranges): Adjust.
3086 (dwarf2_add_field): Adjust.
3087 (dwarf2_add_member_fn): Adjust.
3088 (read_structure_type): Adjust.
3089 (process_structure_scope): Adjust.
3090 (read_enumeration_type): Adjust.
3091 (read_array_type): Adjust.
3092 (mark_common_block_symbol_computed): Adjust.
3093 (read_common_block): Adjust.
3094 (read_namespace_type): Adjust.
3095 (read_namespace): Adjust.
3096 (read_module_type): Adjust.
3097 (read_tag_pointer_type): Adjust.
3098 (read_tag_ptr_to_member_type): Adjust.
3099 (read_tag_string_type): Adjust.
3100 (read_subroutine_type): Adjust.
3101 (read_typedef): Adjust.
3102 (read_base_type): Adjust.
3103 (attr_to_dynamic_prop): Adjust.
3104 (read_subrange_type): Adjust.
3105 (read_unspecified_type): Adjust.
3106 (dwarf2_read_abbrevs): Adjust.
3107 (load_partial_dies): Adjust.
3108 (read_partial_die): Adjust.
3109 (find_partial_die): Adjust.
3110 (guess_partial_die_structure_name): Adjust.
3111 (fixup_partial_die): Adjust.
3112 (read_attribute_value): Adjust.
3113 (read_addr_index): Adjust.
3114 (read_addr_index_from_leb128): Adjust.
3115 (read_str_index): Adjust.
3116 (dwarf2_string_attr): Adjust.
3117 (get_debug_line_section): Adjust.
3118 (dwarf_decode_line_header): Adjust.
3119 (lnp_state_machine::check_line_address): Adjust.
3120 (dwarf_decode_lines_1): Adjust.
3121 (dwarf_decode_lines): Adjust.
3122 (dwarf2_start_symtab): Adjust.
3123 (var_decode_location): Adjust.
3124 (new_symbol_full): Adjust.
3125 (dwarf2_const_value_data): Adjust.
3126 (dwarf2_const_value_attr): Adjust.
3127 (dwarf2_const_value): Adjust.
3128 (die_type): Adjust.
3129 (die_containing_type): Adjust.
3130 (build_error_marker_type): Adjust.
3131 (lookup_die_type): Adjust.
3132 (guess_full_die_structure_name): Adjust.
3133 (anonymous_struct_prefix): Adjust.
3134 (determine_prefix): Adjust.
3135 (dwarf2_name): Adjust.
3136 (follow_die_ref_or_sig): Adjust.
3137 (follow_die_offset): Adjust.
3138 (follow_die_ref): Adjust.
3139 (follow_die_sig_1): Adjust.
3140 (follow_die_sig): Adjust.
3141 (get_signatured_type): Adjust.
3142 (get_DW_AT_signature_type): Adjust.
3143 (decode_locdesc): Adjust.
3144 (dwarf_decode_macros): Adjust.
3145 (cu_debug_loc_section): Adjust.
3146 (fill_in_loclist_baton): Adjust.
3147 (dwarf2_symbol_mark_computed): Adjust.
3148 (init_one_comp_unit): Don't assign
3149 dwarf2_cu::dwarf2_per_objfile.
3150 (set_die_type): Adjust.
3151
ed2dc618
SM
31522018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3153
3154 * dwarf2read.c (struct mapped_debug_names): Add constructor.
3155 <dwarf2_per_objfile>: New field.
3156 (dwarf2_per_objfile): Remove global.
3157 (get_dwarf2_per_objfile): New function.
3158 (set_dwarf2_per_objfile): New function.
3159 (dwarf2_build_psymtabs_hard): Change objfile parameter to
3160 dwarf2_per_objfile.
3161 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3162 (read_abbrev_offset): Likewise.
3163 (read_indirect_string): Likewise.
3164 (read_indirect_line_string): Likewise.
3165 (read_indirect_string_at_offset): Likewise.
3166 (read_indirect_string_from_dwz): Likewise.
3167 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3168 dwarf2_per_objfile.
3169 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3170 (create_all_comp_units): Change objfile parameter to
3171 dwarf2_per_objfile.
3172 (create_all_type_units): Likewise.
3173 (process_queue): Add dwarf2_per_objfile parameter.
3174 (read_and_check_comp_unit_head): Likewise.
3175 (lookup_dwo_unit_in_dwp): Likewise.
3176 (get_dwp_file): Likewise.
3177 (process_cu_includes): Likewise.
3178 (struct free_dwo_file_cleanup_data): New struct.
3179 (dwarf2_has_info): Use get_dwarf2_per_objfile and
3180 set_dwarf2_per_objfile.
3181 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3182 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3183 context, adjust calls.
3184 (dw2_instantiate_symtab): Likewise.
3185 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3186 (dw2_get_cu): Likewise.
3187 (create_cu_from_index_list): Change objfile parameter to
3188 dwarf2_per_objfile.
3189 (create_cus_from_index_list): Get dwarf2_per_objfile from
3190 context, adjust calls.
3191 (create_cus_from_index): Likewise.
3192 (create_signatured_type_table_from_index): Change objfile
3193 parameter to dwarf2_per_objfile.
3194 (create_signatured_type_table_from_debug_names): Change objfile
3195 parameter to dwarf2_per_objfile.
3196 (create_addrmap_from_index): Likewise.
3197 (create_addrmap_from_aranges): Likewise.
3198 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3199 (dw2_setup): Remove.
3200 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3201 context.
3202 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3203 get_dwarf2_per_objfile.
3204 (dw2_forget_cached_source_info): Likewise.
3205 (dw2_map_symtabs_matching_filename): Likewise.
3206 (struct dw2_symtab_iterator) <index>: Remove.
3207 <dwarf2_per_objfile>: New field.
3208 (dw2_symtab_iter_init): Replace index parameter with
3209 dwarf2_per_objfile.
3210 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3211 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3212 (dw2_print_stats): Likewise.
3213 (dw2_dump): Likewise.
3214 (dw2_expand_symtabs_for_function): Likewise.
3215 (dw2_expand_all_symtabs): Likewise.
3216 (dw2_expand_symtabs_with_fullname): Likewise.
3217 (dw2_expand_marked_cus): Replace index and objfile parameters
3218 with dwarf2_per_objfile.
3219 (dw_expand_symtabs_matching_file_matcher): Add
3220 dwarf2_per_objfile parameter and adjust calls.
3221 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3222 adjust calls.
3223 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3224 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3225 adjust calls.
3226 (create_cus_from_debug_names_list): Replace objfile parameter
3227 with dwarf2_per_objfile and adjust calls.
3228 (create_cus_from_debug_names): Likewise.
3229 (dwarf2_read_debug_names): Likewise.
3230 (mapped_debug_names::namei_to_name): Adjust call.
3231 (dw2_debug_names_iterator::next): Likewise.
3232 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3233 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3234 (dw2_debug_names_dump): Likewise.
3235 (dw2_debug_names_expand_symtabs_for_function): Likewise.
3236 (dw2_debug_names_expand_symtabs_matching): Likewise.
3237 (dwarf2_initialize_objfile): Likewise.
3238 (dwarf2_build_psymtabs): Likewise.
3239 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3240 this_cu.
3241 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3242 (read_and_check_comp_unit_head): Likewise.
3243 (read_abbrev_offset): Likewise.
3244 (create_debug_type_hash_table): Likewise.
3245 (create_debug_types_hash_table): Likewise.
3246 (create_all_type_units): Replace objfile parameter with
3247 dwarf2_per_objfile.
3248 (add_type_unit): Add dwarf2_per_objfile parameter.
3249 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3250 with dwarf2_per_objfile.
3251 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3252 (lookup_dwp_signatured_type): Likewise.
3253 (lookup_signatured_type): Likewise.
3254 (read_cutu_die_from_dwo): Likewise.
3255 (init_tu_and_read_dwo_dies): Likewise.
3256 (init_cutu_and_read_dies): Likewise.
3257 (init_cutu_and_read_dies_no_follow): Likewise.
3258 (allocate_type_unit_groups_table): Add objfile parameter.
3259 (create_type_unit_group): Use dwarf2_per_objfile from cu.
3260 (get_type_unit_group): Likewise.
3261 (process_psymtab_comp_unit): Update call.
3262 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3263 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3264 (print_tu_stats): Likewise.
3265 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3266 in void* parameter.
3267 (build_type_psymtabs): Change objfile parameter to
3268 dwarf2_per_objfile.
3269 (process_skeletonless_type_unit): Use dwarf2_per_objfile
3270 passed in void* parameter.
3271 (process_skeletonless_type_units): Change objfile parameter to
3272 dwarf2_per_objfile.
3273 (set_partial_user): Likewise.
3274 (dwarf2_build_psymtabs_hard): Likewise.
3275 (read_comp_units_from_section): Likewise.
3276 (create_all_comp_units): Likewise.
3277 (scan_partial_symbols): Update calls.
3278 (add_partial_symbol): Likewise.
3279 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3280 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3281 (process_queue): Add dwarf2_per_objfile parameter.
3282 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3283 (compute_compunit_symtab_includes): Likewise.
3284 (process_cu_includes): Add dwarf2_per_objfile parameter.
3285 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
3286 (process_full_type_unit): Likewise.
3287 (process_imported_unit_die): Update call.
3288 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
3289 (read_file_scope): Likewise.
3290 (allocate_dwo_file_hash_table): Add objfile parameter.
3291 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
3292 (create_cus_hash_table): Likewise.
3293 (create_dwp_hash_table): Likewise.
3294 (create_dwo_unit_in_dwp_v1): Likewise.
3295 (create_dwp_v2_section): Likewise.
3296 (create_dwo_unit_in_dwp_v2): Likewise.
3297 (lookup_dwo_unit_in_dwp): Likewise.
3298 (try_open_dwop_file): Likewise.
3299 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
3300 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
3301 cleanup to include a reference to dwarf2_per_objfile.
3302 (open_dwp_file): Add dwarf2_per_objfile parameter.
3303 (open_and_init_dwp_file): Likewise.
3304 (get_dwp_file): Likewise.
3305 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
3306 (queue_and_load_all_dwo_tus): Update call.
3307 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
3308 data.
3309 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
3310 (dwarf2_ranges_process): Likewise.
3311 (dwarf2_get_pc_bounds): Likewise.
3312 (mark_common_block_symbol_computed): Likewise.
3313 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3314 (dwarf2_read_abbrevs): Update call.
3315 (read_partial_die): Use dwarf2_per_objfile from cu.
3316 (find_partial_die): Likewise.
3317 (fixup_partial_die): Likewise.
3318 (read_attribute_value): Likewise.
3319 (read_indirect_string_at_offset_from): Add objfile parameter.
3320 (read_indirect_string_at_offset): Add dwarf2_per_objfile
3321 parameter.
3322 (read_indirect_string_from_dwz): Add objfile parameter.
3323 (read_indirect_string): Add objfile parameter.
3324 (read_addr_index_1): Add dwarf2_per_objfile parameter.
3325 (read_addr_index): Use dwarf2_per_objfile from cu.
3326 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3327 call dw2_setup.
3328 (read_str_index): Use dwarf2_per_objfile from cu.
3329 (get_debug_line_section): Likewise.
3330 (read_formatted_entries): Add dwarf2_per_objfile parameter.
3331 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3332 (new_symbol_full): Use dwarf2_per_objfile from cu.
3333 (build_error_marker_type): Likewise.
3334 (lookup_die_type): Likewise.
3335 (determine_prefix): Likewise.
3336 (follow_die_offset): Likewise.
3337 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3338 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3339 (dwarf2_fetch_die_type_sect_off): Likewise.
3340 (dwarf2_get_die_type): Likewise.
3341 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3342 (get_signatured_type): Likewise.
3343 (get_DW_AT_signature_type): Likewise.
3344 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3345 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3346 (cu_debug_loc_section): Likewise.
3347 (fill_in_loclist_baton): Likewise.
3348 (dwarf2_symbol_mark_computed): Likewise.
3349 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3350 dwarf2_per_objfile.
3351 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3352 parameter.
3353 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3354 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3355 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3356 (set_die_type): Use dwarf2_free_objfile from cu.
3357 (get_die_type_at_offset): Likewise.
3358 (dwarf2_per_objfile_free): Don't assign global variable.
3359 (debug_names) <constructor>: Add dwarf2_per_objfile
3360 parameter, update m_debugstrlookup construction.
3361 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3362 parameter.
3363 <m_dwarf2_per_objfile>: New field.
3364 <lookup>: Use m_dwarf2_per_objfile.
3365 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3366 (psyms_seen_size): Likewise.
3367 (write_gdbindex): Replace objfile parameter with
3368 dwarf2_per_objfile.
3369 (write_debug_names): Likewise.
3370 (write_psymtabs_to_index): Likewise.
3371 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3372 calls.
3373
e3b94546
SM
33742018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3375
3376 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3377 <dwarf2_per_objfile>: New field.
3378 (struct dwarf2_per_cu_data) <objfile>: Remove.
3379 <dwarf2_per_objfile>: New field.
3380 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3381 of objfile.
3382 (create_signatured_type_table_from_index): Likewise.
3383 (create_debug_type_hash_table): Likewise.
3384 (fill_in_sig_entry_from_dwo_entry): Likewise.
3385 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3386 (create_type_unit_group): Assign dwarf2_per_objfile instead of
3387 objfile.
3388 (create_partial_symtab): Access objfile through
3389 dwarf2_per_objfile.
3390 (process_psymtab_comp_unit_reader): Likewise.
3391 (read_comp_units_from_section): Likewise.
3392 (scan_partial_symbols): Likewise.
3393 (add_partial_symbol): Likewise.
3394 (add_partial_subprogram): Likewise.
3395 (peek_die_abbrev): Likewise.
3396 (fixup_go_packaging): Likewise.
3397 (process_full_comp_unit): Likewise.
3398 (process_full_type_unit): Likewise.
3399 (process_imported_unit_die): Likewise.
3400 (dwarf2_compute_name): Likewise.
3401 (dwarf2_physname): Likewise.
3402 (read_import_statement): Likewise.
3403 (create_cus_hash_table): Assign dwarf2_physname instead of
3404 objfile.
3405 (read_func_scope): Access objfile through dwarf2_per_objfile.
3406 (read_lexical_block_scope): Likewise.
3407 (read_call_site_scope): Likewise.
3408 (read_variable): Likewise.
3409 (dwarf2_rnglists_process): Likewise.
3410 (dwarf2_ranges_process): Likewise.
3411 (dwarf2_ranges_read): Likewise.
3412 (dwarf2_record_block_ranges): Likewise.
3413 (dwarf2_add_field): Likewise.
3414 (dwarf2_add_member_fn): Likewise.
3415 (read_structure_type): Likewise.
3416 (process_structure_scope): Likewise.
3417 (read_enumeration_type): Likewise.
3418 (read_array_type): Likewise.
3419 (read_common_block): Likewise.
3420 (read_namespace_type): Likewise.
3421 (read_namespace): Likewise.
3422 (read_module_type): Likewise.
3423 (read_tag_pointer_type): Likewise.
3424 (read_tag_ptr_to_member_type): Likewise.
3425 (read_tag_string_type): Likewise.
3426 (read_subroutine_type): Likewise.
3427 (read_typedef): Likewise.
3428 (read_base_type): Likewise.
3429 (attr_to_dynamic_prop): Likewise.
3430 (read_subrange_type): Likewise.
3431 (read_unspecified_type): Likewise.
3432 (load_partial_dies): Likewise.
3433 (read_partial_die): Likewise.
3434 (find_partial_die): Likewise.
3435 (guess_partial_die_structure_name): Likewise.
3436 (fixup_partial_die): Likewise.
3437 (read_attribute_value): Likewise.
3438 (read_addr_index_from_leb128): Likewise.
3439 (dwarf2_read_addr_index): Likewise.
3440 (dwarf2_string_attr): Likewise.
3441 (lnp_state_machine::check_line_address): Likewise.
3442 (dwarf_decode_lines_1): Likewise.
3443 (dwarf_decode_lines): Likewise.
3444 (dwarf2_start_symtab): Likewise.
3445 (var_decode_location): Likewise.
3446 (new_symbol_full): Likewise.
3447 (dwarf2_const_value_data): Likewise.
3448 (dwarf2_const_value_attr): Likewise.
3449 (dwarf2_const_value): Likewise.
3450 (die_type): Likewise.
3451 (die_containing_type): Likewise.
3452 (lookup_die_type): Likewise.
3453 (guess_full_die_structure_name): Likewise.
3454 (anonymous_struct_prefix): Likewise.
3455 (dwarf2_name): Likewise.
3456 (follow_die_ref_or_sig): Likewise.
3457 (follow_die_offset): Likewise.
3458 (follow_die_ref): Likewise.
3459 (dwarf2_fetch_die_loc_sect_off): Likewise.
3460 (dwarf2_fetch_constant_bytes): Likewise.
3461 (dwarf2_fetch_die_type_sect_off): Likewise.
3462 (dwarf2_get_die_type): Likewise.
3463 (follow_die_sig): Likewise.
3464 (decode_locdesc): Likewise.
3465 (dwarf2_per_cu_objfile): Likewise.
3466 (dwarf2_per_cu_text_offset): Likewise.
3467 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3468 objfile.
3469 (set_die_type): Access objfile through
3470 dwarf2_per_objfile.
3471
b01ba14d
SM
34722018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3473
3474 * valprint.c (converted_character_d): Remove typedef.
3475 (DEF_VEC_O (converted_character_d)): Remove.
3476 (count_next_character): Use std::vector.
3477 (print_converted_chars_to_obstack): Likewise.
3478 (generic_printstr): Likewise.
3479
4d0fdd9b
SM
34802018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3481
3482 * xml-support.h (struct gdb_xml_value): Add constructor.
3483 <value>: Change type to unique_xmalloc_ptr.
3484 (gdb_xml_value_s): Remove typedef.
3485 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3486 (gdb_xml_element_start_handler): Change parameter type to
3487 std::vector.
3488 (xml_find_attribute): Likewise.
3489 * xml-support.c (xml_find_attribute): Change parameter type to
3490 std::vector and adjust.
3491 (gdb_xml_values_cleanup): Remove.
3492 (gdb_xml_parser::start_element): Adjust to std::vector.
3493 (xinclude_start_include): Change paraeter type to std::vector
3494 and adjust.
3495 * btrace.c (check_xml_btrace_version): Likewise.
3496 (parse_xml_btrace_block): Likewise.
3497 (parse_xml_btrace_pt_config_cpu): Likewise.
3498 (parse_xml_btrace_pt): Likewise.
3499 (parse_xml_btrace_conf_bts): Likewise.
3500 (parse_xml_btrace_conf_pt): Likewise.
3501 * memory-map.c (memory_map_start_memory): Likewise.
3502 (memory_map_start_property): Likewise.
3503 * osdata.c (osdata_start_osdata): Likewise.
3504 (osdata_start_item): Likewise.
3505 (osdata_start_column): Likewise.
3506 * remote.c (start_thread): Likewise.
3507 * solib-aix.c (library_list_start_library): Likewise.
3508 (library_list_start_list): Likewise.
3509 * solib-svr4.c (library_list_start_library): Likewise.
3510 (svr4_library_list_start_list): Likewise.
3511 * solib-target.c (library_list_start_segment): Likewise.
3512 (library_list_start_section): Likewise.
3513 (library_list_start_library): Likewise.
3514 (library_list_start_list): Likewise.
3515 * tracepoint.c (traceframe_info_start_memory): Likewise.
3516 (traceframe_info_start_tvar): Likewise.
3517 * xml-syscall.c (syscall_start_syscall): Likewise.
3518 * xml-tdesc.c (tdesc_start_target): Likewise.
3519 (tdesc_start_feature): Likewise.
3520 (tdesc_start_reg): Likewise.
3521 (tdesc_start_union): Likewise.
3522 (tdesc_start_struct): Likewise.
3523 (tdesc_start_flags): Likewise.
3524 (tdesc_start_enum): Likewise.
3525 (tdesc_start_field): Likewise.
3526 (tdesc_start_enum_value): Likewise.
3527 (tdesc_start_vector): Likewise.
3528
f979c73f
SM
35292018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3530
3531 * extension.h (struct xmethod_worker) <clone>: Remove.
3532 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3533 Remove.
3534 (python_xmethod_worker::clone): Remove.
3535 * valops.c (find_overload_match): Use std::move instead of
3536 clone.
3537
ba18742c
SM
35382018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3539
3540 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3541 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3542 <free_xmethod_worker_data>: Remove.
3543 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3544 <get_xmethod_arg_types>: Remove.
3545 <get_xmethod_result_type>: Remove.
3546 <invoke_xmethod>: Remove.
3547 * extension.c (new_xmethod_worker): Remove.
3548 (clone_xmethod_worker): Remove.
3549 (get_matching_xmethod_workers): Return void, pass std::vector by
3550 pointer.
3551 (get_xmethod_arg_types): Rename to...
3552 (xmethod_worker::get_arg_types): ... this, and adjust.
3553 (get_xmethod_result_type): Rename to...
3554 (xmethod_worker::get_result_type): ... this, and adjust.
3555 (invoke_xmethod): Remove.
3556 (free_xmethod_worker): Remove.
3557 (free_xmethod_worker_vec): Remove.
3558 * extension.h (enum ext_lang_rc): Move here from
3559 extension-priv.h.
3560 (struct xmethod_worker): Add constructor and destructor.
3561 <data>: Remove.
3562 <value>: Remove.
3563 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3564 virtual pure methods.
3565 <get_arg_types, get_result_type>: New methods.
3566 (xmethod_worker_ptr): Remove typedef.
3567 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3568 (xmethod_worker_vec): Remove typedef.
3569 (xmethod_worker_up): New typedef.
3570 (invoke_xmethod): Remove.
3571 (clone_xmethod_worker): Remove.
3572 (free_xmethod_worker): Remove.
3573 (free_xmethod_worker_vec): Remove.
3574 (get_xmethod_arg_types): Remove.
3575 (get_xmethod_result_type): Remove.
3576 * valops.c (find_method_list): Use std::vector, don't use
3577 intermediate vector.
3578 (value_find_oload_method_list): Use std::vector.
3579 (find_overload_match): Use std::vector.
3580 (find_oload_champ): Use std::vector.
3581 * value.c (value_free): Use operator delete.
3582 (value_of_xmethod): Rename to...
3583 (value_from_xmethod): ... this. Don't assign
3584 xmethod_worker::value, take rvalue-reference.
3585 (result_type_of_xmethod): Adjust.
3586 (call_xmethod): Adjust.
3587 * value.h: Include extension.h.
3588 (struct xmethod_worker): Don't forward-declare.
3589 (value_of_xmethod): Rename to...
3590 (value_from_xmethod): ... this, take rvalue-reference.
3591 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3592 (struct python_xmethod_worker): ... this, add constructor and
3593 destructor.
3594 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3595 (gdbpy_free_xmethod_worker_data): Rename to...
3596 (python_xmethod_worker::~python_xmethod_worker): ... this and
3597 adjust.
3598 (gdbpy_clone_xmethod_worker_data): Rename to...
3599 (python_xmethod_worker::clone): ... this and adjust.
3600 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3601 temporary vector.
3602 (gdbpy_get_xmethod_arg_types): Rename to...
3603 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3604 (gdbpy_get_xmethod_result_type): Rename to...
3605 (python_xmethod_worker::do_get_result_type): ... this and
3606 adjust.
3607 (gdbpy_invoke_xmethod): Rename to...
3608 (python_xmethod_worker::invoke): ... this and adjust.
3609 (new_python_xmethod_worker): Rename to...
3610 (python_xmethod_worker::python_xmethod_worker): ... this and
3611 adjust.
3612 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3613 Remove.
3614 (gdbpy_free_xmethod_worker_data): Remove.
3615 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3616 (gdbpy_get_xmethod_arg_types): Remove.
3617 (gdbpy_get_xmethod_result_type): Remove.
3618 (gdbpy_invoke_xmethod): Remove.
3619 * python/python.c (python_extension_ops): Remove obsolete
3620 callbacks.
3621
e379cee6
PA
36222018-01-05 Pedro Alves <palves@redhat.com>
3623
3624 PR gdb/18653
3625 * common/signals-state-save-restore.c
3626 (save_original_signals_state): New parameter 'quiet'. Warn if we
3627 find a custom handler preinstalled, instead of internal erroring.
3628 But only warn if !quiet.
3629 * common/signals-state-save-restore.h
3630 (save_original_signals_state): New parameter 'quiet'.
3631 * main.c (captured_main_1): Move save_original_signals_state call
3632 after option handling, and pass QUIET.
3633
a655456c
PA
36342018-01-05 Pedro Alves <palves@redhat.com>
3635
3636 * spu-tdep.c (spu_catch_start): Pass
3637 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3638
de63c46b
PA
36392018-01-05 Pedro Alves <palves@redhat.com>
3640
3641 PR gdb/22670
3642 * ada-lang.c (literal_symbol_name_matcher): New function.
3643 (ada_get_symbol_name_matcher): Use it for
3644 symbol_name_match_type::SEARCH_NAME.
3645 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3646 it down instead of assuming symbol_name_match_type::FULL.
3647 * block.h (block_lookup_symbol): New parameter 'match_type'.
3648 * c-valprint.c (print_unpacked_pointer): Use
3649 lookup_symbol_search_name instead of lookup_symbol.
3650 * compile/compile-object-load.c (get_out_value_type): Pass down
3651 symbol_name_match_type::SEARCH_NAME.
3652 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3653 symbol_name_match_type::FULL.
3654 * cp-support.c (cp_get_symbol_name_matcher): Handle
3655 symbol_name_match_type::SEARCH_NAME.
3656 * infrun.c (insert_exception_resume_breakpoint): Use
3657 lookup_symbol_search_name.
3658 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3659 * psymtab.c (maintenance_check_psymtabs): Use
3660 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3661 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3662 SYMBOL_SEARCH_NAME.
3663 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3664 if symbol_name_match_type::SEARCH_NAME.
3665 (lookup_symbol_in_language): Pass down
3666 symbol_name_match_type::FULL.
3667 (lookup_symbol_search_name): New.
3668 (lookup_language_this): Pass down
3669 symbol_name_match_type::SEARCH_NAME.
3670 (lookup_symbol_aux, lookup_local_symbol): New parameter
3671 'match_type'. Pass it down.
3672 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3673 (lookup_symbol_search_name): New declaration.
3674 (lookup_symbol_in_block): New 'match_type' parameter.
3675
f98fc17b
PA
36762018-01-05 Pedro Alves <palves@redhat.com>
3677
3678 PR gdb/22670
3679 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3680 ada_lookup_symbol.
3681 (ada_lookup_symbol): Reimplement in terms of
3682 ada_lookup_symbol_list, bits factored out from
3683 ada_lookup_encoded_symbol.
3684
342f8240
JB
36852018-01-05 Joel Brobecker <brobecker@adacore.com>
3686
3687 * ada-exp.y (write_object_renaming): When subscripting an array
3688 using a symbol as the index, pass the block in call to
3689 ada_lookup_encoded_symbol when looking that symbol up.
3690
7150d33c
JG
36912018-01-05 Jerome Guitton <guitton@adacore.com>
3692
3693 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3694 TYPE_INDEX_TYPE.
3695
cc0e770c
JB
36962018-01-05 Joel Brobecker <brobecker@adacore.com>
3697
3698 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3699 the case where VALUE_LVAL (val0) is not lval_memory.
3700
f79da888 37012018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
3702
3703 * ada-valprint.c (print_optional_low_bound): Handle
3704 character-indexed array printing like boolean-indexed array
3705 printing.
3706
cd385f94
JB
37072018-01-05 Joel Brobecker <brobecker@adacore.com>
3708
3709 * NEWS: Create a new section for the next release branch.
3710 Rename the section of the current branch, now that it has
3711 been cut.
3712
09aca949
JB
37132018-01-05 Joel Brobecker <brobecker@adacore.com>
3714
3715 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3716 * version.in: Bump version to 8.1.50.DATE-git.
3717
9f757bf7
XR
37182018-01-03 Xavier Roirand <roirand@adacore.com>
3719
3720 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3721 Add field.
3722 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3723 Add field.
3724 (default_exception_support_info) <catch_handlers_sym>: Add field.
3725 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3726 (ada_exception_name_addr_1): Add "catch handlers" handling.
3727 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3728 Update all callers.
3729 (create_excep_cond_exprs) <ex>: Add parameter.
3730 (re_set_exception): Update create_excep_cond_exprs call.
3731 (print_it_exception, print_one_exception, print_mention_exception)
3732 (print_recreate_exception): Add "catch handler" handling.
3733 (allocate_location_catch_handlers, re_set_catch_handlers)
3734 (check_status_catch_handlers, print_it_catch_handlers)
3735 (print_one_catch_handlers, print_mention_catch_handlers)
3736 (print_recreate_catch_handlers): New function.
3737 (catch_handlers_breakpoint_ops): New variable.
3738 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3739 Add parameter. Add "catch handler" handling.
3740 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3741 Add "catch handler" handling.
3742 (ada_exception_catchpoint_cond_string): Add "catch handler"
3743 handling.
3744 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3745 call.
3746 (catch_ada_handlers_command): New function.
3747 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3748 operations structure.
3749 (_initialize_ada_language): Add "catch handlers" command entry.
3750 * NEWS: Document "catch handlers" feature.
3751
9fe561ab
JB
37522018-01-02 Joel Brobecker <brobecker@adacore.com>
3753
3754 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3755 account when creating the array type of the slice.
3756 (ada_value_slice): Likewise.
3757
a405673c
JB
37582018-01-02 Joel Brobecker <brobecker@adacore.com>
3759
3760 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3761 New enum value.
3762 (create_array_type_with_stride): Add byte_stride_prop parameter.
3763 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3764 New parameter. Update all callers in this file.
3765 (array_type_has_dynamic_stride): New function.
3766 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3767 of arrays with dynamic byte strides.
3768 * dwarf2read.c (read_array_type): Add support for dynamic
3769 DW_AT_byte_stride attributes.
3770
74a2f8ff
JB
37712018-01-02 Joel Brobecker <brobecker@adacore.com>
3772
3773 * dwarf2read.c (read_unspecified_type): Treat
3774 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3775
e2882c85
JB
37762018-01-01 Joel Brobecker <brobecker@adacore.com>
3777
3778 Update copyright year range in all GDB files.
3779
1690bb24
JB
37802018-01-01 Joel Brobecker <brobecker@adacore.com>
3781
3782 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3783 and gdb/testsuite/gdb.base/step-line.c.
3784
0f0c98a8
JB
37852018-01-01 Joel Brobecker <brobecker@adacore.com>
3786
3787 * copyright.py (main): Dump the contents of
3788 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3789 even if BY_HAND is empty.
3790
82e1e79a
JB
37912018-01-01 Joel Brobecker <brobecker@adacore.com>
3792
3793 * top.c (print_gdb_version): Update Copyright year in version
3794 message.
3795
053f54e5 37962018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 3797
053f54e5 3798 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 3799
053f54e5 3800For older changes see ChangeLog-2017.
c906108c
SS
3801\f
3802Local Variables:
3803mode: change-log
3804left-margin: 8
3805fill-column: 74
3806version-control: never
57da7796 3807coding: utf-8
c906108c 3808End: