]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix ia64 GDB build
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
933522d1
YQ
12018-03-12 Yao Qi <yao.qi@linaro.org>
2
3 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
4 parameter type to readable_regcache.
5 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
6 the declaration.
7
be2daae6
TT
82018-03-11 Tom Tromey <tom@tromey.com>
9
10 * dwarf2read.c (struct nextfield): Add initializers.
11 (struct nextfnfield): Remove.
12 (struct fnfieldlist): Add initializers. Remove "length" and
13 "head", use std::vector.
14 (struct decl_field_list): Remove.
15 (struct field_info): Add initializers.
16 <fields, baseclasses>: Now std::vector.
17 <nbaseclasses, nfnfields, typedef_field_list_count,
18 nested_types_list_count>: Remove.
19 (dwarf2_add_field, dwarf2_add_type_defn)
20 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
21 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
22 (process_structure_scope): Update.
23
484cf504
TT
242018-03-11 Tom Tromey <tom@tromey.com>
25
26 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
27 for use by std::sort.
28 (build_type_psymtabs_1): Use std::vector.
29
9bd8e0b0
EZ
302018-03-09 Eli Zaretskii <eliz@gnu.org>
31
32 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
33 and LIBMPFR in the printed configuration.
34
5dc1a704
TT
352018-03-08 Tom Tromey <tom@tromey.com>
36
37 * source.c (get_filename_and_charpos): Use scoped_fd.
38 * nto-procfs.c (procfs_open_1): Use scoped_fd.
39 (procfs_pidlist): Likewise.
40 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
41 (iterate_over_mappings): Likewise.
42
fdf07f3a
TT
432018-03-08 Tom Tromey <tom@tromey.com>
44
45 * infcall.c (struct call_return_meta_info)
46 <stack_temporaries_enabled>: Remove.
47 (get_call_return_value, call_function_by_hand_dummy): Update.
48 * thread.c (disable_thread_stack_temporaries): Remove.
49 (enable_thread_stack_temporaries): Remove.
50 (thread_stack_temporaries_enabled_p): Return bool.
51 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
52 (get_last_thread_stack_temporary): Update.
53 * eval.c (evaluate_subexp): Update.
54 * gdbthread.h (class enable_thread_stack_temporaries): Now a
55 class, not a function.
56 (value_ptr, value_vec): Remove typedefs.
57 (class thread_info) <stack_temporaries_enabled>: Now bool.
58 <stack_temporaries>: Now a std::vector.
59 (thread_stack_temporaries_enabled_p)
60 (value_in_thread_stack_temporaries): Return bool.
61
567a3e54
SM
622018-03-08 Simon Marchi <simon.marchi@ericsson.com>
63
64 * remote.c (putpkt_binary): Fix omitted bytes reporting.
65 (getpkt_or_notif_sane_1): Likewise.
66
00b40057
SM
672018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
68
69 * build-id.c (build_id_to_debug_bfd): Use std::string.
70
a8dbfd58
SM
712018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * build-id.c (find_separate_debug_file_by_buildid): Return
74 std::string.
75 * build-id.h (find_separate_debug_file_by_buildid): Return
76 std::string.
77 * coffread.c (coff_symfile_read): Adjust to std::string.
78 * elfread.c (elf_symfile_read): Adjust to std::string.
79 * symfile.c (separate_debug_file_exists): Change parameter to
80 std::string.
81 (find_separate_debug_file): Return std::string.
82 (find_separate_debug_file_by_debuglink): Return std::string.
83 * symfile.h (find_separate_debug_file_by_debuglink): Return
84 std::string.
85
e6a58aa8
SM
862018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * common/xml-utils.c (xml_escape_text): Move code to...
89 (xml_escape_text_append): ... this new function.
90 * common/xml-utils.h (xml_escape_text_append): New declaration.
91 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
92 New function.
93 (_initialize_xml_utils): register test_xml_escape_text_append as
94 a selftest.
95
4ef0bef6
AH
962018-03-07 Alan Hayward <alan.hayward@arm.com>
97
98 * defs.h: Remove MAX_REGISTER_SIZE.
99 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
100 asserts.
101 * python/py-unwind.c (pyuw_sniffer): Likewise.
102
e0d3522b
TT
1032018-03-07 Tom Tromey <tom@tromey.com>
104
105 * linux-tdep.c (linux_info_proc): Update.
106 * target.h (struct target_ops) <to_fileio_readlink>: Return
107 optional<string>.
108 (target_fileio_readlink): Return optional<string>.
109 * remote.c (remote_hostio_readlink): Return optional<string>.
110 * inf-child.c (inf_child_fileio_readlink): Return
111 optional<string>.
112 * target.c (target_fileio_readlink): Return optional<string>.
113
ea005f31
AB
1142018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * regcache.c (cooked_read_test): Add riscv to the list of
117 architectures that have a save_reggroup.
118
e95a97d4
AA
1192018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
120
121 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
122 value is not a dynamic class object.
123
d8344f3d
TT
1242018-03-06 Tom Tromey <tom@tromey.com>
125
126 * rust-exp.y: Formatting fixes.
127
9add17f2
AB
1282018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * riscv-tdep.c (riscv_register_name): Remove target description
131 support.
132 (riscv_gdbarch_init): Remove target description check.
133
c9486dfe
AB
1342018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
137 comment.
138 * riscv-tdep.h: Likewise.
139
d74aff3d
AB
1402018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
143 (riscv_pseudo_register_write): Delete.
144 (riscv_gdbarch_init): Remove all use of pseudo registers.
145
7ea78b59
SM
1462018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
147
148 * record-btrace.c (btrace_print_lines): Replace cleanup
149 parameter with RAII equivalents.
150 (btrace_insn_history): Replace cleanup with RAII equivalents.
151 * ui-out.h (make_cleanup_ui_out_list_begin_end,
152 make_cleanup_ui_out_tuple_begin_end): Remove.
153 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
154 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
155 make_cleanup_ui_out_list_begin_end): Remove.
156
53127008
SM
1572018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
160 parameter types to std::vector. Use bool.
161 (record_btrace_wait): Replace VEC(tp_t) with
162 std::vector<thread_info *>.
163 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
164
228f1508
SM
1652018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * record-btrace.c (record_btrace_disable_callback): Remove.
168 (struct scoped_btrace_disable): New.
169 (record_btrace_open): Use scoped_btrace_disable.
170
b2970c23
AB
1712018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
172
173 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
174 reading values from registers.
175
fb294655
AB
1762018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
179 where appropriate.
180
cab5bb9d
AB
1812018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
184 change parameter type. Use GDB's print functions, and use
185 core_addr_to_string where appropriate.
186 (riscv_push_dummy_call): Use core_addr_to_string where
187 appropriate, update call to riscv_print_arg_location, and reindent
188 a few lines.
189 (riscv_return_value): Update call to riscv_print_arg_location.
190
dbbb1059
AB
1912018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
192 Tim Newsome <tim@sifive.com>
193 Albert Ou <a0u@eecs.berkeley.edu>
194 Darius Rad <darius@bluespec.com>
195
196 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
197 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
198 (ALLDEPFILES): Add riscv-tdep.c
199 * configure.tgt: Add riscv support.
200 * riscv-tdep.c: New file.
201 * riscv-tdep.h: New file.
202 * NEWS: Mention new target.
203 * MAINTAINERS: Add entry for riscv.
204
5dc43913
AB
2052018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
208 fields within aggregates.
209
3dea1ef7
SM
2102018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * record-btrace.c (btrace_print_lines): Change type of flags to
213 gdb_disassembly_flags.
214
7efba073
JB
2152018-03-04 John Baldwin <jhb@FreeBSD.org>
216
217 * fbsd-nat.c: Include "inf-ptrace.h".
218 (USE_SIGTRAP_SIGINFO): Conditionally define.
219 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
220 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
221 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
222 function.
223 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
224 Likewise.
225 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
226 Likewise.
227 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
228 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
229 "supports_stopped_by_hw_breakpoint" target methods.
230
386a8676
JB
2312018-03-04 John Baldwin <jhb@FreeBSD.org>
232
233 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
234 * fbsd-nat.c (debug_fbsd_nat): New variable.
235 (show_fbsd_nat_debug): New function.
236 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
237 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
238
12279366
JB
2392018-03-04 John Baldwin <jhb@FreeBSD.org>
240
241 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
242 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
243 prototype.
244 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
245 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
246 method.
247
54693cf5
SM
2482018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
251 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
252
ccb2231c
SM
2532018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * charset.c (struct charset_vector): New.
256 (charsets): Change type to charset_vector.
257 (find_charset_names): Adjust.
258 (add_one): Adjust.
259 (_initialize_charset): Adjust.
260
6fb16ce6
SM
2612018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * progspace.h (struct program_space) <deleted_solibs>: Change
264 type to std::vector<std::string>.
265 * progspace.c (clear_program_space_solib_cache): Adjust.
266 * breakpoint.c (print_solib_event): Adjust.
267 (check_status_catch_solib): Adjust.
268 * solib.c (update_solib_list): Adjust.
269 * ui-out.h (class ui_out) <field_string>: New overload.
270 * ui-out.c (ui_out::field_string): New overload.
271
564b1e3f
SM
2722018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * progspace.h (struct program_space): Add constructor and
275 destructor, initialize fields.
276 (add_program_space): Remove.
277 * progspace.c (add_program_space): Rename to...
278 (program_space::program_space): ... this.
279 (release_program_space): Rename to...
280 (program_space::~program_space): ... this.
281 (delete_program_space): Use delete to delete program_space.
282 (initialize_progspace): Use new to allocate program_space.
283 * inferior.c (add_inferior_with_spaces): Likewise.
284 (clone_inferior_command): Likewise.
285 * infrun.c (follow_fork_inferior): Likewise.
286 (handle_vfork_child_exec_or_exit): Likewise.
287
e80aaf61
SM
2882018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
291 (delim_string_to_char_ptr_vec): Return std::vector of
292 gdb::unique_xmalloc_ptr.
293 (dirnames_to_char_ptr_vec_append): Take std::vector of
294 gdb::unique_xmalloc_ptr.
295 (dirnames_to_char_ptr_vec): Return std::vector of
296 gdb::unique_xmalloc_ptr.
297 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
298 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
299 (delim_string_to_char_ptr_vec): Return an std::vector of
300 gdb::unique_xmalloc_ptr, adjust the code.
301 (dirnames_to_char_ptr_vec_append): Take an std::vector of
302 gdb::unique_xmalloc_ptr, adjust the code.
303 (dirnames_to_char_ptr_vec): Return an std::vector of
304 gdb::unique_xmalloc_ptr, adjust the code.
305 * auto-load.c (auto_load_safe_path_vec): Change type to
306 std::vector of gdb::unique_xmalloc_ptr.
307 (auto_load_expand_dir_vars): Return an std::vector of
308 gdb::unique_xmalloc_ptr, adjust the code.
309 (auto_load_safe_path_vec_update): Adjust.
310 (filename_is_in_auto_load_safe_path_vec): Adjust.
311 (auto_load_objfile_script_1): Adjust.
312 * build-id.c (build_id_to_debug_bfd): Adjust.
313 * linux-thread-db.c (thread_db_load_search): Adjust.
314 * source.c (add_path): Adjust.
315 (openp): Adjust.
316 * symfile.c (find_separate_debug_file): Adjust.
317 * utils.c (do_free_char_ptr_vec): Remove.
318 (make_cleanup_free_char_ptr_vec): Remove.
319
ab818ade
SDJ
3202018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
321
322 PR gdb/22907
323 * common/pathstuff.c: Conditionally include "<windows.h>".
324
e1e6f073
GS
3252018-03-01 Georg Sauthoff <mail@georg.so>
326
327 PR gdb/22888
328 * gcore.in: Quote variables and switch interpreter to bash.
329
c7b15a66
TT
3302018-03-01 Tom Tromey <tom@tromey.com>
331
332 * dwarf2read.c (alloc_discriminant_info): Fix default_index
333 assertion. Add assertion for discriminant_index.
334 (quirk_rust_enum): Use correct base type name in univariant case.
335
0cb7c7b0
SM
3362018-03-01 Simon Marchi <simon.marchi@ericsson.com>
337
338 * record.c (get_call_history_modifiers): Return a
339 record_print_flags.
340 (cmd_record_call_history): Adjust.
341 * record-btrace.c (record_btrace_call_history): Adjust.
342 (record_btrace_call_history_range): Adjust.
343 (record_btrace_call_history_from): Adjust.
344 * target-debug.h (target_debug_print_record_print_flags): New.
345 * target-delegates.c: Re-generate.
346 * target.c (target_call_history): Change flags type.
347 (target_call_history_from): Likewise.
348 (target_call_history_range): Likewise.
349 * target.h (struct target_ops) <target_call_history>: Likewise.
350 (target_call_history_from): Likewise.
351 (target_call_history_range): Likewise.
352
25e3c82c
SDJ
3532018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
354 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * common/common-utils.c: Include "sys/stat.h".
357 (is_regular_file): Move here from "source.c"; change return
358 type to "bool".
359 * common/common-utils.h (is_regular_file): New prototype.
360 * common/pathstuff.c (contains_dir_separator): New function.
361 * common/pathstuff.h (contains_dir_separator): New prototype.
362 * source.c: Don't include "sys/stat.h".
363 (is_regular_file): Move to "common/common-utils.c".
364
b4987c95
SDJ
3652018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
366
367 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
368 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
369 * auto-load.c: Include "common/pathstuff.h".
370 * common/common-def.h (current_directory): Move here.
371 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
372 function.
373 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
374 prototype.
375 * common/pathstuff.c: New file.
376 * common/pathstuff.h: New file.
377 * compile/compile.c: Include "common/pathstuff.h".
378 * defs.h (current_directory): Move to "common/common-defs.h".
379 * dwarf2read.c: Include "common/pathstuff.h".
380 * exec.c: Likewise.
381 * guile/scm-safe-call.c: Likewise.
382 * linux-thread-db.c: Likewise.
383 * main.c: Likewise.
384 * nto-tdep.c: Likewise.
385 * objfiles.c: Likewise.
386 * source.c: Likewise.
387 * symtab.c: Likewise.
388 * utils.c: Include "common/pathstuff.h".
389 (gdb_realpath): Move to "common/pathstuff.c".
390 (gdb_realpath_keepfile): Likewise.
391 (gdb_abspath): Likewise.
392 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
393 (gdb_realpath_keepfile): Likewise.
394 (gdb_abspath): Likewise.
395
f169cfdc
JB
3962018-02-28 John Baldwin <jhb@FreeBSD.org>
397
398 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
399 wildcard process pid for super_resume for kernels with a
400 specific bug.
401
e05cac70
PM
4022018-02-27 Phil Muldoon <pmuldoon@redhat.com>
403
404 * compile/compile.c (get_args): Add additional comments
405 explaining function.
406
55089490
TT
4072018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
408 Tom Tromey <tom@tromey.com>
409
410 * target.h (memory_write_request_s): Remove typedef. Don't define
411 VEC.
412 (target_write_memory_blocks): Change argument to std::vector.
413 (struct memory_write_request): Add constructor.
414 * target-memory.c (compare_block_starting_address): Return bool.
415 Change argument types.
416 (claim_memory): Change arguments to use std::vector.
417 (split_regular_and_flash_blocks, blocks_to_erase)
418 (compute_garbled_blocks): Likewise.
419 (cleanup_request_data, cleanup_write_requests_vector): Remove.
420 (target_write_memory_blocks): Change argument to std::vector.
421 * symfile.c (struct load_section_data): Add constructor and
422 destructor. Use std::vector for "requests".
423 (struct load_progress_data): Add initializers.
424 (load_section_callback): Update. Use "new".
425 (clear_memory_write_data): Remove.
426 (generic_load): Update.
427
0c305b61
AH
4282018-02-27 Alan Hayward <alan.hayward@arm.com>
429
430 * arch/aarch64.h: Use common/tdesc.h.
431
c5196c92
MR
4322018-02-26 Maciej W. Rozycki <macro@mips.com>
433
434 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
435 architecture with a 64-bit ABI.
436
37c33887
MR
4372018-02-26 Maciej W. Rozycki <macro@mips.com>
438
439 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
440 ahead of target description loading.
441
d4dd3282
TT
4422018-02-26 Tom Tromey <tom@tromey.com>
443
444 * stack.c (backtrace_command_1): Update.
445 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
446 of "flags".
447 * python/py-framefilter.c (py_print_frame)
448 (gdbpy_apply_frame_filter): Change type of "flags".
449 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
450 of "flags".
451 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
452 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
453 * extension.h (enum frame_filter_flag): Rename from
454 frame_filter_flags.
455 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
456 (apply_ext_lang_frame_filter): Change type of "flags".
457 * extension.c (apply_ext_lang_frame_filter): Change type of
458 "flags".
459 * extension-priv.h (struct extension_language_ops)
460 <apply_frame_filter>: Change type of "flags".
461
6893c19a
TT
4622018-02-26 Tom Tromey <tom@tromey.com>
463
464 PR python/16497:
465 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
466 off-by-one in py_end computation.
467 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
468 PRINT_MORE_FRAMES.
469 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
470 constant.
471
2ddeaf8a
TT
4722018-02-26 Tom Tromey <tom@tromey.com>
473
474 * dwarf2read.c (struct variant_field): New.
475 (struct nextfield) <variant>: New field.
476 (dwarf2_add_field): Handle DW_TAG_variant_part.
477 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
478 discriminated union.
479 (read_structure_type): Handle DW_TAG_variant_part.
480 (handle_struct_member_die): New function, extracted from
481 process_structure_scope. Handle DW_TAG_variant.
482 (process_structure_scope): Handle discriminated unions. Call
483 handle_struct_member_die.
484
c9317f21
TT
4852018-02-26 Tom Tromey <tom@tromey.com>
486
487 * rust-lang.h (rust_last_path_segment): Declare.
488 * rust-lang.c (rust_last_path_segment): Now public. Change
489 contract.
490 (struct disr_info): Remove.
491 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
492 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
493 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
494 (rust_enum_p, rust_enum_variant): New function.
495 (rust_underscore_fields): Remove "offset" parameter.
496 (rust_print_enum): New function.
497 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
498 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
499 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
500 enums.
501 (rust_internal_print_type): New function, from rust_print_type.
502 Remove enum code.
503 (rust_print_type): Call rust_internal_print_type.
504 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
505 Update enum handling.
506 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
507 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
508 (rust_union_quirks): New functions.
509 (process_full_comp_unit, process_full_type_unit): Call
510 rust_union_quirks.
511 (process_structure_scope): Update rust_unions if necessary.
512
7c22600a
TT
5132018-02-26 Tom Tromey <tom@tromey.com>
514
515 * value.h (value_union_variant): Declare.
516 * valops.c (value_union_variant): New function.
517 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
518 (struct discriminant_info): New.
519 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
520 enumerator.
521 (struct main_type) <flag_discriminated_union>: New field.
522
15ce8941
TT
5232018-02-26 Tom Tromey <tom@tromey.com>
524
525 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
526 unittests/unpack-selftests.c.
527 * unittests/unpack-selftests.c: New file.
528 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
529
48fbe735
YQ
5302018-02-26 Yao Qi <yao.qi@linaro.org>
531
532 * dwarf2read.c (struct partial_die_info) <read>: New method.
533 (read_partial_die): Remove the declaration.
534 (load_partial_dies): Update.
535 (partial_die_info::partial_die_info):
536 (read_partial_die): Change it to partial_die_info::read.
537
52356b79
YQ
5382018-02-26 Yao Qi <yao.qi@linaro.org>
539
540 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
541 (fixup_partial_die): Remove declaration.
542 (scan_partial_symbols): Update.
543 (partial_die_parent_scope): Likewise.
544 (partial_die_full_name): Likewise.
545 (fixup_partial_die): Change it to partial_die_info::fixup.
546
35cc7ed7
YQ
5472018-02-26 Yao Qi <yao.qi@linaro.org>
548
549 * dwarf2read.c (read_partial_die): Update the declaration.
550 (load_partial_dies): Caller update.
551 (read_partial_die): Remove one argument abbrev_len.
552
6f06d47b
YQ
5532018-02-26 Yao Qi <yao.qi@linaro.org>
554
555 * dwarf2read.c (struct partial_die_info): Add ctor, delete
556 assignment operator.
557 (load_partial_dies): Use ctor and copy ctor.
558 (read_partial_die): Update.
559 (dwarf2_cu::find_partial_die): Use ctor.
560
d590ff25
YQ
5612018-02-26 Yao Qi <yao.qi@linaro.org>
562
563 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
564 (find_partial_die_in_comp_unit): Change it to
565 dwarf2_cu::find_partial_die.
566 (find_partial_die): Update.
567
fd0a254f
YQ
5682018-02-26 Yao Qi <yao.qi@linaro.org>
569
570 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
571 is NULL.
572
cd9983dd
YQ
5732018-02-26 Yao Qi <yao.qi@linaro.org>
574
575 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
576
f46cd62a
AH
5772018-02-26 Alan Hayward <alan.hayward@arm.com>
578
579 * arch/amd64.h: Use common/tdesc.h.
580 * arch/i386.c: Likewise.
581 * arch/i386.h: Likewise.
582 * arch/tic6x.c: Likewise.
583 * arch/tdesc.h: Move file from here...
584 * common/tdesc.h: ...to here.
585 * features/aarch64-core.c: Regenerate.
586 * features/aarch64-fpu.c: Regenerate.
587 * features/i386/32bit-avx.c: Regenerate.
588 * features/i386/32bit-avx512.c: Regenerate.
589 * features/i386/32bit-core.c: Regenerate.
590 * features/i386/32bit-linux.c: Regenerate.
591 * features/i386/32bit-mpx.c: Regenerate.
592 * features/i386/32bit-pkeys.c: Regenerate.
593 * features/i386/32bit-sse.c: Regenerate.
594 * features/i386/64bit-avx.c: Regenerate.
595 * features/i386/64bit-avx512.c: Regenerate.
596 * features/i386/64bit-core.c: Regenerate.
597 * features/i386/64bit-linux.c: Regenerate.
598 * features/i386/64bit-mpx.c: Regenerate.
599 * features/i386/64bit-pkeys.c: Regenerate.
600 * features/i386/64bit-segments.c: Regenerate.
601 * features/i386/64bit-sse.c: Regenerate.
602 * features/i386/x32-core.c: Regenerate.
603 * features/tic6x-c6xp.c: Regenerate.
604 * features/tic6x-core.c: Regenerate.
605 * features/tic6x-gp.c: Regenerate.
606 * target-descriptions.c: Use common/tdesc.h.
607 * target-descriptions.h: Likewise.
608
9b292f68
TT
6092018-02-24 Tom Tromey <tom@tromey.com>
610
611 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
612 (try_thread_db_load_from_dir, thread_db_load_search): Use
613 std::string.
614 (info_auto_load_libthread_db_compare): Return bool. Change
615 argument types.
616 (info_auto_load_libthread_db): Use std::vector, std::string.
617 Remove cleanups.
618
281d762b
TT
6192018-02-24 Tom Tromey <tom@tromey.com>
620
621 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
622 std::string.
623 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
624 std::string*.
625 * gdbarch.c: Rebuild.
626 * gdbarch.h: Rebuild.
627 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
628 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
629 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
630 std::string*.
631
9d8780f0
SM
6322018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * gdbtypes.h (sect_offset): Change type to uint64_t.
635 (sect_offset_str): New function.
636 * dwarf2read.c (create_addrmap_from_aranges): Use
637 sect_offset_str.
638 (error_check_comp_unit_head): Likewise.
639 (create_debug_type_hash_table): Likewise.
640 (read_cutu_die_from_dwo): Likewise.
641 (init_cutu_and_read_dies): Likewise.
642 (init_cutu_and_read_dies_no_follow): Likewise.
643 (process_psymtab_comp_unit_reader): Likewise.
644 (partial_die_parent_scope): Likewise.
645 (peek_die_abbrev): Likewise.
646 (process_queue): Likewise.
647 (dwarf2_physname): Likewise.
648 (read_namespace_alias): Likewise.
649 (read_import_statement): Likewise.
650 (create_dwo_cu_reader): Likewise.
651 (create_cus_hash_table): Likewise.
652 (lookup_dwo_cutu): Likewise.
653 (inherit_abstract_dies): Likewise.
654 (read_func_scope): Likewise.
655 (read_call_site_scope): Likewise.
656 (dwarf2_add_member_fn): Likewise.
657 (read_common_block): Likewise.
658 (read_module_type): Likewise.
659 (read_typedef): Likewise.
660 (read_subrange_type): Likewise.
661 (load_partial_dies): Likewise.
662 (read_partial_die): Likewise.
663 (find_partial_die): Likewise.
664 (read_str_index): Likewise.
665 (dwarf2_string_attr): Likewise.
666 (build_error_marker_type): Likewise.
667 (lookup_die_type): Likewise.
668 (dump_die_shallow): Likewise.
669 (follow_die_ref): Likewise.
670 (dwarf2_fetch_die_loc_sect_off): Likewise.
671 (dwarf2_fetch_constant_bytes): Likewise.
672 (follow_die_sig): Likewise.
673 (get_signatured_type): Likewise.
674 (get_DW_AT_signature_type): Likewise.
675 (dwarf2_find_containing_comp_unit): Likewise.
676 (set_die_type): Likewise.
677
8ec57239
JB
6782018-02-21 John Baldwin <jhb@FreeBSD.org>
679
680 * arch/aarch64.c: Include "common-defs.h".
681 * arch/amd64.c: Likewise.
682 * arch/i386.c: Likewise.
683
3eac2b65
TT
6842018-02-21 Tom Tromey <tom@tromey.com>
685
686 * value.h: (extract_field_op): Update.
687 * eval.c (extract_field_op): Return a const char *.
688 * expression.h (parse_expression_for_completion): Update.
689 * completer.c (complete_expression): Update.
690 (add_struct_fields): Make fieldname const.
691 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
692 (mark_completion_tag, parse_exp_in_context_1): Update.
693 (parse_expression_for_completion): Change "name" to
694 unique_xmalloc_ptr*.
695
6ccb583f
TT
6962018-02-21 Tom Tromey <tom@tromey.com>
697
698 * infcall.c (call_function_by_hand_dummy): Use std::vector.
699
c113ed0c
YQ
7002018-02-21 Yao Qi <yao.qi@linaro.org>
701
702 * avr-tdep.c (avr_read_pc): Change parameter type to
703 readable_regcache.
704 * gdbarch.sh (read_pc): Likewise.
705 * gdbarch.c: Re-generated.
706 * gdbarch.h: Re-generated.
707 * hppa-tdep.c (hppa_read_pc): Change parameter type to
708 readable_regcache.
709 * ia64-tdep.c (ia64_read_pc): Likewise.
710 * mips-tdep.c (mips_read_pc): Likewise.
711 * spu-tdep.c (spu_read_pc): Likewise.
712
4c74fe6b
YQ
7132018-02-21 Yao Qi <yao.qi@linaro.org>
714
715 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
716 * regcache-dump.c: New file.
717 * regcache.c: Move register_dump to regcache-dump.c.
718 (maintenance_print_registers): Likewise.
719 (maintenance_print_raw_registers): Likewise.
720 (maintenance_print_cooked_registers): Likewise.
721 (maintenance_print_register_groups): Likewise.
722 (maintenance_print_remote_registers): Likewise.
723 (_initialize_regcache): Likewise.
724 * regcache.h (register_dump): Moved from regcache.c.
725
796bb026
YQ
7262018-02-21 Yao Qi <yao.qi@linaro.org>
727
728 * regcache.c (regcache::regcache): Update.
729 (regcache::invalidate): Move it to detached_regcache::invalidate.
730 (get_thread_arch_aspace_regcache): Update.
731 (regcache::raw_update): Update.
732 (regcache::cooked_read): Remove some code.
733 (regcache::cooked_read_value): Likewise.
734 (regcache::raw_write): Remove assert on m_readonly_p.
735 (regcache::raw_supply_integer): Move it to
736 detached_regcache::raw_supply_integer.
737 (regcache::raw_supply_zeroed): Likewise.
738 * regcache.h (detached_regcache) <raw_supply_integer>: New
739 declaration.
740 <raw_supply_zeroed, invalidate>: Likewise.
741 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
742 <invalidate>: Likewise.
743 <m_readonly_p>: Removed.
744
215c69dc
YQ
7452018-02-21 Yao Qi <yao.qi@linaro.org>
746
747 * infcmd.c (get_return_value): Let stop_regs point to
748 get_current_regcache.
749 * regcache.c (regcache::regcache): Remove.
750 (register_dump_reg_buffer): New class.
751 (regcache_print): Adjust.
752 * regcache.h (regcache): Remove constructors.
753
f3384e66
YQ
7542018-02-21 Yao Qi <yao.qi@linaro.org>
755
756 * regcache.c (class register_dump): New class.
757 (register_dump_regcache, register_dump_none): New class.
758 (register_dump_remote, register_dump_groups): New class.
759 (regcache_print): Update.
760 * regcache.h (regcache_dump_what): Move it to regcache.c.
761 (regcache) <dump>: Remove.
762
c8ec2f33
YQ
7632018-02-21 Yao Qi <yao.qi@linaro.org>
764
765 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
766 reg_buffer_rw *.
767 (jit_unwind_reg_set_impl): Call raw_supply.
768 (jit_frame_sniffer): Use reg_buffer_rw.
769 * record-full.c (record_full_core_regbuf): Change its type.
770 (record_full_core_open_1): Use reg_buffer_rw.
771 (record_full_close): Likewise.
772 (record_full_core_fetch_registers): Use regcache->raw_supply.
773 (record_full_core_store_registers): Likewise.
774 * regcache.c (regcache::get_register_status): Move it to
775 reg_buffer.
776 (regcache_raw_set_cached_value): Remove.
777 (regcache::raw_set_cached_value): Remove.
778 (regcache::raw_write): Call raw_supply.
779 (regcache::raw_supply): Move it to reg_buffer_rw.
780 * regcache.h (regcache_raw_set_cached_value): Remove.
781 (reg_buffer_rw): New class.
782
daf6667d
YQ
7832018-02-21 Yao Qi <yao.qi@linaro.org>
784
785 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
786 readonly_detached_regcache.
787 (dummy_frame_prev_register): Use regcache->cooked_read.
788 * frame.c (frame_save_as_regcache): Change return type.
789 (frame_pop): Update.
790 * frame.h (frame_save_as_regcache): Update declaration.
791 * inferior.h (get_infcall_suspend_state_regcache): Update
792 declaration.
793 * infrun.c (infcall_suspend_state) <registers>: use
794 readonly_detached_regcache.
795 (save_infcall_suspend_state): Don't use regcache_dup.
796 (get_infcall_suspend_state_regcache): Change return type.
797 * linux-fork.c (struct fork_info) <savedregs>: Change to
798 readonly_detached_regcache.
799 <pc>: New field.
800 (fork_save_infrun_state): Don't use regcache_dup.
801 (info_checkpoints_command): Adjust.
802 * mi/mi-main.c (register_changed_p): Update declaration.
803 (mi_cmd_data_list_changed_registers): Use
804 readonly_detached_regcache.
805 (register_changed_p): Change parameter type to
806 readonly_detached_regcache.
807 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
808 readonly_detached_regcache.
809 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
810 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
811 New.
812 (regcache::save): Move it to reg_buffer.
813 (regcache::restore): Change parameter type.
814 (regcache_dup): Remove.
815 * regcache.h (reg_buffer) <save>: New method.
816 (readonly_detached_regcache): New class.
817 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
818 readonly_detached_regcache.
819 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
820
fc5b8736
YQ
8212018-02-21 Yao Qi <yao.qi@linaro.org>
822
823 * frame.c (frame_save_as_regcache): Use regcache method save.
824 (frame_pop): Use regcache method restore.
825 * infrun.c (restore_infcall_suspend_state): Likewise.
826 * linux-fork.c (fork_load_infrun_state): Likewise.
827 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
828 save.
829 * regcache.c (regcache_save): Remove.
830 (regcache::restore): More asserts.
831 (regcache_cpy): Remove.
832 * regcache.h (regcache_save): Remove the declaration.
833 (regcache::restore): Move from private to public.
834 Remove the friend declaration of regcache_cpy.
835 (regcache_cpy): Remove declaration.
836
849d0ba8
YQ
8372018-02-21 Yao Qi <yao.qi@linaro.org>
838
839 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
840 parameter type to 'readable_regcache *'.
841 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
842 * arm-tdep.c (arm_neon_quad_read): Likewise.
843 (arm_pseudo_read): Likewise.
844 * avr-tdep.c (avr_pseudo_register_read): Likewise.
845 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
846 * frv-tdep.c (frv_pseudo_register_read): Likewise.
847 * gdbarch.c: Re-generated.
848 * gdbarch.h: Re-generated.
849 * gdbarch.sh (pseudo_register_read): Change parameter type to
850 'readable_regcache *'.
851 (pseudo_register_read_value): Likewise.
852 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
853 (h8300_pseudo_register_read): Likewise.
854 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
855 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
856 (i386_pseudo_register_read_into_value): Likewise.
857 (i386_pseudo_register_read_value): Likewise.
858 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
859 declaration.
860 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
861 * m32c-tdep.c (m32c_raw_read): Likewise.
862 (m32c_read_flg): Likewise.
863 (m32c_banked_register): Likewise.
864 (m32c_banked_read): Likewise.
865 (m32c_sb_read): Likewise.
866 (m32c_part_read): Likewise.
867 (m32c_cat_read): Likewise.
868 (m32c_r3r2r1r0_read): Likewise.
869 (m32c_pseudo_register_read): Likewise.
870 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
871 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
872 (mep_pseudo_cr64_read): Likewise.
873 (mep_pseudo_register_read): Likewise.
874 * mips-tdep.c (mips_pseudo_register_read): Likewise.
875 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
876 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
877 * regcache.c (regcache::raw_read): Move it to readable_regcache.
878 (regcache::cooked_read): Likewise.
879 (regcache::cooked_read_value): Likewise.
880 (regcache_cooked_read_signed):
881 (regcache::cooked_read): Likewise.
882 * regcache.h (readable_regcache): New class.
883 (regcache): Inherit readable_regcache. Move some methods to
884 readable_regcache.
885 * rl78-tdep.c (rl78_pseudo_register_read): Change
886 parameter type to 'readable_regcache *'.
887 * rs6000-tdep.c (do_regcache_raw_read): Remove.
888 (e500_pseudo_register_read): Change parameter type to
889 'readable_regcache *'.
890 (dfp_pseudo_register_read): Likewise.
891 (vsx_pseudo_register_read): Likewise.
892 (efpr_pseudo_register_read): Likewise.
893 * s390-tdep.c (s390_pseudo_register_read): Likewise.
894 * sh-tdep.c (sh_pseudo_register_read): Likewise.
895 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
896 (sh64_pseudo_register_read): Likewise.
897 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
898 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
899 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
900 (spu_pseudo_register_read): Likewise.
901 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
902 (xtensa_pseudo_register_read): Likewise.
903
31716595
YQ
9042018-02-21 Yao Qi <yao.qi@linaro.org>
905
906 * regcache.c (regcache::regcache): Call reg_buffer ctor.
907 (regcache::arch): Move it to reg_buffer::arch.
908 (regcache::register_buffer): Likewise.
909 (regcache::assert_regnum): Likewise.
910 (regcache::num_raw_registers): Likewise.
911 * regcache.h (reg_buffer): New class.
912 (regcache): Inherit reg_buffer.
913
7104e59b
SM
9142018-02-20 Simon Marchi <simon.marchi@ericsson.com>
915
916 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
917 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
918
2d8adcbd
MM
9192018-02-20 Markus Metzger <markus.t.metzger@intel.com>
920
921 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
922
b5884fa7
AH
9232018-02-19 Alan Hayward <alan.hayward@arm.com>
924
925 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
926 (SFILES): Remove common/*.c files.
927 (COMMON_OBS): Remove some *.o files built from common/*.c files.
928 * common/common.host: Add common reference.
929 * configure.ac: Likewise.
930 * configure: Regenerate.
931
fd90ace4
YQ
9322018-02-16 Yao Qi <yao.qi@linaro.org>
933
934 * block.c (block_namespace_info): Inherit allocate_on_obstack.
935 (block_initialize_namespace): Use new.
936 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
937 (dwarf2_free_objfile): Use delete.
938 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
939 (copy_type_recursive): Use new.
940 * gdb_obstack.h (allocate_on_obstack): New.
941
85046ae2
YQ
9422018-02-15 Yao Qi <yao.qi@linaro.org>
943
944 PR gdb/22849
945 * inferior.c (exit_inferior_1): Reset inf->control.
946
355c559b
JB
9472018-02-15 Joel Brobecker <brobecker@adacore.com>
948
949 * ada-lang.c (ada_to_fixed_value_create): Delete advance
950 declaration.
951
980548fd
PA
9522018-02-14 Pedro Alves <palves@redhat.com>
953
954 * frame-unwind.c (frame_unwind_try_unwinder): Always call
955 frame_cleanup_after_sniffer on exception.
956
692d6f97
TT
9572018-02-14 Tom Tromey <tom@tromey.com>
958
959 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
960 const.
961 (solib_bfd_open): Make pathname const.
962 * solib.c (solib_bfd_open): Make pathname const.
963 * solib-spu.c (spu_bfd_fopen): Make name const.
964 (spu_bfd_open): Make pathname const.
965 * solib-darwin.c (darwin_bfd_open): Make pathname const.
966 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
967
e0cc99a6
TT
9682018-02-14 Tom Tromey <tom@tromey.com>
969
970 * symfile.c (symfile_bfd_open): Update.
971 * source.h (openp, source_full_path_of, find_and_open_source):
972 Change argument type to unique_xmalloc_ptr.
973 * source.c (openp): Take a unique_xmalloc_ptr.
974 (source_full_path_of, find_and_open_source): Likewise.
975 (open_source_file, symtab_to_fullname): Update.
976 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
977 unique_xmalloc_ptr.
978 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
979 (exec_file_find): Update.
980 * psymtab.c (psymtab_to_fullname): Update.
981 * nto-tdep.h (nto_find_and_open_solib): Update.
982 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
983 unique_xmalloc_ptr.
984 * exec.c (exec_file_attach): Update.
985 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
986 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
987
b46a8d7c
TT
9882018-02-14 Tom Tromey <tom@tromey.com>
989
990 * solib.c: Include source.h.
991 * nto-tdep.c: Include source.h.
992 * mi/mi-cmd-env.c: Include source.h.
993 * infcmd.c: Include source.h.
994 * exec.c: Include source.h.
995 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
996 (add_path, directory_switch, source_path, init_source_path): Move
997 declarations...
998 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
999 (add_path, directory_switch, source_path, init_source_path):
1000 ...here.
1001
797bc1cb
TT
10022018-02-14 Tom Tromey <tom@tromey.com>
1003
1004 * solist.h (exec_file_find, solib_find): Return
1005 unique_xmalloc_ptr.
1006 (solib_bfd_fopen): Take a const char *.
1007 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1008 (exec_file_find, solib_find): Likewise.
1009 (solib_bfd_fopen): Do not take ownership of "pathname".
1010 (solib_bfd_open): Use unique_xmalloc_ptr.
1011 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1012 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1013 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1014 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1015
f98b2e33
JB
10162018-02-14 Joel Brobecker <brobecker@adacore.com>
1017
1018 * ada-lang.c (name_match_type_from_name): Remove reference to
1019 ada_name_for_lookup in function's documentation.
1020 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1021
24b9144d
SM
10222018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1023
1024 * defs.h (enum openp_flags): New enum.
1025 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1026 Move to enum openp_flags.
1027 (openp_flags): New enum flags.
1028 (openp): Change parameter type to openp_flags.
1029 * source.c (openp): Change parameter type to openp_flags.
1030 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1031 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1032
387cd15b
SM
10332018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1034
1035 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1036 per-command.
1037
b303c6f6
AB
10382018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1039
1040 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1041 into...
1042 (class dwarf2_queue_guard): ...the destructor of this new class.
1043 (dw2_do_instantiate_symtab): Create instance of the new class
1044 dwarf2_queue_guard, remove cleanup.
1045
9c3630e9
TT
10462018-02-09 Tom Tromey <tom@tromey.com>
1047
1048 * source.c (find_source_lines): Don't reference past the end of
1049 the vector.
1050
c4e12631
MM
10512018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1052
1053 * remote.c (remote_btrace_maybe_reopen): Change error message.
1054 * btrace.c (btrace_enable): Likewise.
1055 (parse_xml_btrace): Likewise.
1056 (parse_xml_btrace_conf): Likewise.
1057
88711fbf
MM
10582018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1059
1060 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1061 (linux_enable_pt, linux_enable_bts): Call
1062 diagnose_perf_event_open_fail.
1063
17ad2a4f
MM
10642018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1065
1066 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1067 Remove parameter and change return type. Update callers. Move it.
1068 (linux_enable_bts, linux_enable_pt): Improve error message.
1069 (linux_enable_pt): Remove zero buffer size check.
1070 (linux_enable_btrace): Improve error messages. Remove NULL return
1071 check.
1072
de6242d3
MM
10732018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1074
1075 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1076 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1077 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1078 (linux_supports_pt, linux_supports_btrace): Remove.
1079 (linux_enable_bts): Call cpu_supports_bts.
1080 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1081 * remote.c (remote_supports_btrace): Remove.
1082 (init_remote_ops): Remove remote_supports_btrace.
1083 * target-delegates.c: Regenerated.
1084 * target.c (target_supports_btrace): Remove.
1085 * target.h (target_ops) <to_supports_btrace>: Remove
1086 (target_supports_btrace): Remove.
1087 * x86-linux-nat.c (x86_linux_create_target): Remove
1088 linux_supports_btrace.
1089
9ee23a85
MM
10902018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1091
1092 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1093 btrace failed.
1094 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1095 exception and use message in own exception.
1096
5c3284c1
MM
10972018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1098
1099 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1100 (perf_event_pt_event_type): Use gdb_file_up.
1101 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1102 scoped_fd, and scoped_mmap.
1103
84696f37
MM
11042018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1105
1106 * common/scoped_mmap.h: New.
1107 * unittests/scoped_mmap-selftest.c: New.
1108 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1109 unittests/scoped_mmap-selftest.c.
1110
ea4a0888
MM
11112018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1112
1113 * common/scoped_fd.h: New.
1114 * unittests/scoped_fd-selftest.c: New.
1115 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1116 unittests/scoped_fd-selftest.c.
1117
869e8290
TT
11182018-02-09 Tom Tromey <tom@tromey.com>
1119
1120 * auto-load.c (auto_load_section_scripts): Use
1121 gdb::unique_xmalloc_ptr.
1122
a37a2ae7
TT
11232018-02-09 Tom Tromey <tom@tromey.com>
1124
1125 * auto-load.c (execute_script_contents): Use std::string.
1126
4e725347
JB
11272018-02-09 Joel Brobecker <brobecker@adacore.com>
1128
1129 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1130 Python function, rather than a new command.
1131
9a897d43
TT
11322018-02-08 Tom Tromey <tom@tromey.com>
1133
1134 * solib.c (solib_find_1): Use std::string.
1135 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1136
58ef3771
TT
11372018-02-08 Tom Tromey <tom@tromey.com>
1138
1139 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1140
a9abc434
TT
11412018-02-08 Tom Tromey <tom@tromey.com>
1142
1143 * source.c (find_source_lines): Use gdb::def_vector.
1144
84f27c6f
TT
11452018-02-08 Tom Tromey <tom@tromey.com>
1146
1147 * macrocmd.c (struct temporary_macro_definition): New.
1148 (macro_define_command): Use temporary_macro_definition. Remove
1149 cleanups.
1150 (free_macro_definition_ptr): Remove.
1151
0354904b
TT
11522018-02-08 Tom Tromey <tom@tromey.com>
1153
1154 * macroexp.c (maybe_expand): Use std::string.
1155
1739cf24
TT
11562018-02-08 Tom Tromey <tom@tromey.com>
1157
1158 * macroexp.c (struct macro_buffer): Add initializers for some
1159 members.
1160 (init_buffer, init_shared_buffer, free_buffer)
1161 (free_buffer_return_text): Remove.
1162 (macro_buffer): New constructors.
1163 (~macro_buffer): New destructor.
1164 (macro_buffer::set_shared): New method.
1165 (macro_buffer::resize_buffer, macro_buffer::appendc)
1166 (macro_buffer::appendmem): Now methods, not free functions.
1167 (set_token, append_tokens_without_splicing, stringify)
1168 (macro_stringify): Update.
1169 (gather_arguments): Change return type. Remove argc_p argument,
1170 add args_ptr argument. Use std::vector.
1171 (substitute_args): Remove argc argument. Accept std::vector.
1172 (expand): Update. Use std::vector.
1173 (scan, macro_expand, macro_expand_next): Update.
1174
f6c2623e
TT
11752018-02-08 Tom Tromey <tom@tromey.com>
1176
1177 * symtab.c (default_collect_symbol_completion_matches_break_on):
1178 Use unique_xmalloc_ptr.
1179 * macroscope.h: (sal_macro_scope, user_macro_scope)
1180 (default_macro_scope): Return unique_xmalloc_ptr.
1181 * macroscope.c (sal_macro_scope, user_macro_scope)
1182 (default_macro_scope): Return unique_xmalloc_ptr.
1183 * macroexp.h (macro_expand, macro_expand_once): Return
1184 unique_xmalloc_ptr.
1185 * macroexp.c (macro_expand, macro_expand_once): Return
1186 unique_xmalloc_ptr.
1187 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1188 (info_macro_command, info_macros_command): Use
1189 unique_xmalloc_ptr.
1190 * compile/compile-c-support.c (write_macro_definitions): Use
1191 unique_xmalloc_ptr.
1192 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1193
c2e0e465
SM
11942018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1195
1196 * value.c (value_static_field): Assign field type instead of
1197 containing type when returning an optimized out value.
1198
3f8c94b4
YQ
11992018-02-06 Yao Qi <yao.qi@linaro.org>
1200
1201 * ft32-tdep.c (ft32_read_pc): Remove.
1202 (ft32_write_pc): Remove.
1203 (ft32_gdbarch_init): Update.
1204 * m32r-tdep.c (m32r_read_pc): Remove.
1205 (m32r_gdbarch_init): Update.
1206 * mep-tdep.c (mep_read_pc): Remove.
1207 (mep_gdbarch_init): Update.
1208 * microblaze-tdep.c (microblaze_write_pc): Remove.
1209 (microblaze_gdbarch_init): Update.
1210 * mn10300-tdep.c (mn10300_read_pc): Remove.
1211 (mn10300_write_pc): Remove.
1212 (mn10300_gdbarch_init): Update.
1213 * moxie-tdep.c (moxie_read_pc): Remove.
1214 (moxie_write_pc): Remove.
1215 (moxie_gdbarch_init): Update.
1216
bca65a23
YQ
12172018-02-06 Yao Qi <yao.qi@linaro.org>
1218
1219 * expprint.c (print_subexp_standard): Handle
1220 OP_F77_UNDETERMINED_ARGLIST.
1221 (dump_subexp_body_standard): Likewise.
1222
583e3f90 12232018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 1224
583e3f90
YQ
1225 * target-descriptions.c (tdesc_element_visitor) Add empty
1226 implementations.
b8df6ca7
AH
1227 (tdesc_type): Move make_gdb_type from here.
1228 (tdesc_type_builtin): Likewise.
1229 (tdesc_type_vector): Likewise.
1230 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1231 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1232 (make_gdb_type_union): Likewise.
1233 (make_gdb_type_flags): Likewise.
1234 (make_gdb_type_enum): Likewise.
1235 (make_gdb_type): New function.
1236 (tdesc_register_type): Use static make_gdb_type.
1237
e813d34a
RK
12382018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1239
1240 * infcmd.c (default_print_one_register_info): Align natural-format
1241 column values consistently one under another.
1242 (pad_to_column): New function.
1243
0eb876f5
JB
12442018-02-05 Joel Brobecker <brobecker@adacore.com>
1245
1246 * dwarf2read.c (dwarf2_physname): Move commment.
1247
0625771b
LS
12482018-02-01 Leszek Swirski <leszeks@google.com>
1249
1250 * varobj.c (varobj_formatted_print_options): Allow recursive
1251 pretty printing if pretty printing is enabled.
1252
59498c30
LS
12532018-02-01 Leszek Swirski <leszeks@google.com>
1254
1255 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1256 names after a structop as a filename.
1257
2d9e6acb
YQ
12582018-02-01 Yao Qi <yao.qi@linaro.org>
1259
1260 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1261 (arm_record_coproc_data_proc): Likewise.
1262
df95a9cf
YQ
12632018-02-01 Yao Qi <yao.qi@linaro.org>
1264
1265 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1266
07e5f5cf
NP
12672018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1268
1269 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1270 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1271
3045b475
PA
12722018-01-31 Pedro Alves <palves@redhat.com>
1273
1274 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1275 * inflow.c (child_terminal_save_inferior): Wrap reference to
1276 tcgetpgrp in HAVE_TERMIOS_H.
1277 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1278 _WIN32.
1279 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1280 always iterate over all inferiors.
1281 (gdbsim_cntrl_c): Adjust.
1282 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1283
929b5ad4
JB
12842018-01-31 Joel Brobecker <brobecker@adacore.com>
1285
1286 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1287 index type is objfile-owned if the element type is as well.
1288
29236ca2
JB
12892018-01-31 Joel Brobecker <brobecker@adacore.com>
1290
1291 GDB 8.1 released.
1292
c81e8879
PR
12932018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1294
1295 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1296 "features/s390x-linux64.c".
1297 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1298 s390_linux32 and s390x_linux64.
1299 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1300 default tdesc.
1301 * s390-tdep.c: Include "features/s390-linux32.c" and
1302 "features/s390x-linux64.c".
1303 (s390_tdesc_valid): Add check for tdesc_has_registers.
1304 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1305 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1306 tdesc_s390x_linux64.
1307 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1308 tdesc_s390x_linux64 to...
1309 * s390-tdep.h: ...here.
1310
e671cd59
PA
13112018-01-30 Pedro Alves <palves@redhat.com>
1312
1313 PR gdb/13211
1314 * config.in, configure: Regenerate.
1315 * configure.ac: Check for getpgid.
1316 * go32-nat.c (go32_pass_ctrlc): New.
1317 (go32_target): Install it.
1318 * inf-child.c (inf_child_target): Install
1319 child_terminal_save_inferior, child_pass_ctrlc and
1320 child_interrupt.
1321 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1322 (inf_ptrace_target): No longer install it.
1323 * infcmd.c (interrupt_target_1): Adjust.
1324 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1325 (child_interrupt): Declare.
1326 (inferior::terminal_state): New.
1327 * inflow.c (struct terminal_info): Update comments.
1328 (inferior_process_group): Delete.
1329 (terminal_is_ours): Delete.
1330 (gdb_tty_state): New.
1331 (child_terminal_init): Adjust.
1332 (is_gdb_terminal, sharing_input_terminal_1)
1333 (sharing_input_terminal): New functions.
1334 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1335 Set the process's actual process group in the foreground if
1336 possible. Handle is_ours_for_output/is_ours distinction. Don't
1337 mark terminal as the inferior's if not sharing GDB's terminal.
1338 Don't check attach_flag.
1339 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1340 pass down a target_terminal_state.
1341 (child_terminal_save_inferior): New, factored out from ...
1342 (child_terminal_ours_1): ... this. Handle
1343 target_terminal_state::is_ours_for_output.
1344 (child_interrupt, child_pass_ctrlc): New.
1345 (inflow_inferior_exit): Clear the inferior's terminal_state.
1346 (copy_terminal_info): Copy the inferior's terminal state.
1347 (_initialize_inflow): Remove reference to terminal_is_ours.
1348 * inflow.h (inferior_process_group): Delete.
1349 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1350 * procfs.c (procfs_target): Don't install procfs_interrupt.
1351 (procfs_interrupt): Delete.
1352 * remote.c (remote_serial_quit_handler): Adjust.
1353 (remote_interrupt): Remove ptid parameter. Adjust.
1354 * target-delegates.c: Regenerate.
1355 * target.c: Include "terminal.h".
1356 (target_terminal::terminal_state): Rename to ...
1357 (target_terminal::m_terminal_state): ... this.
1358 (target_terminal::init): Adjust.
1359 (target_terminal::inferior): Adjust to per-inferior
1360 terminal_state.
1361 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1362 (target_terminal::ours, target_terminal::ours_for_output): Use
1363 target_terminal_is_ours_kind.
1364 (target_interrupt): Remove ptid parameter. Adjust.
1365 (default_target_pass_ctrlc): Adjust.
1366 * target.h (target_ops::to_terminal_save_inferior): New field.
1367 (target_ops::to_interrupt): Remove ptid_t parameter.
1368 (target_interrupt): Remove ptid_t parameter. Update comment.
1369 (target_pass_ctrlc): Update comment.
1370 * target/target.h (target_terminal_state): New scoped enum,
1371 factored out of ...
1372 (target_terminal::terminal_state): ... here.
1373 (target_terminal::inferior): Update comments.
1374 (target_terminal::restore_inferior): New.
1375 (target_terminal::is_inferior, target_terminal::is_ours)
1376 (target_terminal::is_ours_for_output): Adjust.
1377 (target_terminal::scoped_restore_terminal_state): Adjust to
1378 rename, and call restore_inferior() instead of inferior().
1379 (target_terminal::scoped_restore_terminal_state::m_state): Change
1380 type.
1381 (target_terminal::terminal_state): Rename to ...
1382 (target_terminal::m_terminal_state): ... this and change type.
1383
9c3a5d93
PA
13842018-01-30 Pedro Alves <palves@redhat.com>
1385
1386 * linux-nat.c (wait_for_signal): New function.
1387 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1388 directly.
1389 (async_terminal_is_ours)
1390 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1391 (linux_nat_add_target): Don't override
1392 to_terminal_inferior/to_terminal_ours.
1393
69ab5edb
SDJ
13942018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1395
1396 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1397
fc8e7e75
SM
13982018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1399
1400 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1401 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1402 dwarf2_per_objfile_free here.
1403 (dwarf2_per_objfile_free): Remove.
1404 (_initialize_dwarf2_read): Don't register
1405 dwarf2_per_objfile_free as a registry cleanup.
1406
b2a426e2
EZ
14072018-01-27 Eli Zaretskii <eliz@gnu.org>
1408
1409 Avoid compilation errors in MinGW native builds
1410
1411 The error is triggered by including python-internal.h, and the
1412 error message is:
1413
1414 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1415 from build-gnulib/import/math.h:27,
1416 from d:/usr/Python26/include/pyport.h:235,
1417 from d:/usr/Python26/include/Python.h:58,
1418 from python/python-internal.h:94,
1419 from python/py-arch.c:24:
1420 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1421 using ::hypot;
1422 ^~~~~
1423
1424 This happens because Python headers define 'hypot' to expand t
1425 '_hypot' in the Windows builds.
1426 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1427 'hypoth'. This avoids a compilation error.
1428
0bdd8eac
AH
14292018-01-26 Alan Hayward <alan.hayward@arm.com>
1430
1431 * MAINTAINERS (Write After Approval): Fix ordering.
1432
56ae9dc3
AH
14332018-01-26 Alan Hayward <alan.hayward@arm.com>
1434
1435 * MAINTAINERS (Write After Approval): Add Alan Hayward.
1436
7433498b
AM
14372018-01-26 Alan Modra <amodra@gmail.com>
1438
1439 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1440 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1441 Remove nop. Make const. Comment.
1442 (powerpc32_plt_stub_so_2): New.
1443 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1444 Correct count. Update uses.
1445 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1446 Move common code reading PLT entry word. Correct
1447 powerpc32_plt_stub PLT address calculation.
1448 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1449 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1450 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1451 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1452 (ppc64_standard_linkage8): Likewise.
1453 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1454 Correct insns description.
1455 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1456
0f59d5fc
PA
14572018-01-24 Pedro Alves <palves@redhat.com>
1458
1459 GCC PR libstdc++/83906
1460 * gdbtypes.c (operator==(const dynamic_prop &,
1461 const dynamic_prop &)): New.
1462 (operator==(const range_bounds &, const range_bounds &)): New.
1463 (check_types_equal): Use them instead of memcmp.
1464 * gdbtypes.h (operator==(const dynamic_prop &,
1465 const dynamic_prop &)): Declare.
1466 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1467 (operator==(const range_bounds &, const range_bounds &)): Declare.
1468 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1469
ef8914a4
PR
14702018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1471
1472 * s390-linux-tdep.c (s390_record_address_mask)
1473 (s390_record_calc_disp_common, s390_record_calc_disp)
1474 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1475 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1476 (s390_process_record): Move to s390-tdep.c.
1477 (s390_linux_init_abi_any): Adjust.
1478 * s390-tdep.c (s390_record_address_mask)
1479 (s390_record_calc_disp_common, s390_record_calc_disp)
1480 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1481 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1482 (s390_process_record): Moved from s390-linux-tdep.c
1483 (s390_gdbarch_init): Adjust.
1484
d6e58945
PR
14852018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1486
1487 * s390-linux-nat.c (s390-tdep.h): New include.
1488 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1489 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1490 (ALLDEPFILES): Add s390-tdep.c.
1491 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1492 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1493 * s390-tdep.h: ...this. New file.
1494 * s390-linux-tdep.c (s390-tdep.h): New include.
1495 (_initialize_s390_tdep): Rename to...
1496 (_initialize_s390_linux_tdep): ...this and adjust.
1497 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1498 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1499 s390-tdep.h.
1500 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1501 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1502 (s390_is_partial_instruction, s390_software_single_step)
1503 (is_non_branch_ril, s390_displaced_step_copy_insn)
1504 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1505 (s390_prologue_data, s390_addr, s390_store, s390_load)
1506 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1507 (s390_register_call_saved, s390_guess_tracepoint_registers)
1508 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1509 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1510 (s390_pseudo_register_name, s390_pseudo_register_type)
1511 (s390_pseudo_register_read, s390_pseudo_register_write)
1512 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1513 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1514 (s390_addr_bits_remove, s390_address_class_type_flags)
1515 (s390_address_class_type_flags_to_name)
1516 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1517 (s390_function_arg_float, s390_function_arg_vector)
1518 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1519 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1520 (s390_frame_align, s390_register_return_value, s390_return_value)
1521 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1522 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1523 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1524 (s390_trad_frame_prev_register, s390_unwind_cache)
1525 (s390_prologue_frame_unwind_cache)
1526 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1527 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1528 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1529 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1530 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1531 (s390_frame_base_address, s390_local_base_address)
1532 (s390_frame_base, s390_gcc_target_options)
1533 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1534 (s390_validate_reg_range, s390_tdesc_valid)
1535 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1536 * s390-tdep.c: ...this. New file.
1537
9c0b896e
PR
15382018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1539
1540 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1541 (s390_process_record, s390_gdbarch_tdep_alloc)
1542 (s390_linux_init_abi_any): Use/set new hook.
1543
7042632b
PR
15442018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1545
1546 * s390-linux-tdep.c (osabi.h): New include.
1547 (s390_linux_init_abi_31, s390_linux_init_abi_64)
1548 (s390_linux_init_abi_any): New functions.
1549 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1550
650f5e13
PR
15512018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1552
1553 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1554 tdesc_has_registers check
1555
47c9317e
PR
15562018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1557
1558 * s390-linux-tdep.c (s390_tdesc_valid): New function.
1559 (s390_validate_reg_range): New macro.
1560 (s390_gdbarch_init): Adjust.
1561
095085d8
PR
15622018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1563
1564 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1565 (s390_gdbarch_tdep_alloc): Adjust.
1566 (s390_gdbarch_init): Adjust.
1567
ab9bcc67
PR
15682018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1569
1570 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1571 <have_tdb>: Change type to bool.
1572 (s390_gdbarch_tdep_alloc): Adjust.
1573 (s390_gdbarch_init): Adjust.
1574
21f6f5ff
PR
15752018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1576
1577 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1578 (gdbarch_tdep) <have_upper, have_vx>: New fields.
1579 (s390_gdbarch_tdep_alloc): New function.
1580 (s390_gdbarch_init): Allocate tdep at start and use its fields
1581 instead of separate variables.
1582
0eb97953
PR
15832018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1584
1585 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1586 when looking for cached gdbarch and add comment for remaining.
1587
5c319bb2
PA
15882018-01-22 Pedro Alves <palves@redhat.com>
1589 Sergio Durigan Junior <sergiodj@redhat.com>
1590
1591 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1592 case.
1593
d65ce302
MR
15942018-01-22 Maciej W. Rozycki <macro@mips.com>
1595
1596 * MAINTAINERS: Update my company e-mail address.
1597
ec7a5fcb
YQ
15982018-01-22 Yao Qi <yao.qi@linaro.org>
1599
1600 * regcache.c (cooked_write_test): New function.
1601 (_initialize_regcache): Register the test.
1602
11f57cb6
YQ
16032018-01-22 Yao Qi <yao.qi@linaro.org>
1604
1605 * ia64-tdep.c (ia64_pseudo_register_read): Call
1606 regcache->cooked_read instead of regcache_cooked_read_unsigned.
1607 * m32c-tdep.c (m32c_cat_read): Likewise.
1608 (m32c_r3r2r1r0_read): Likewise.
1609 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1610 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1611
03f50fc8
YQ
16122018-01-22 Yao Qi <yao.qi@linaro.org>
1613
1614 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1615 method raw_read instead of regcache_raw_read.
1616 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1617 * arm-tdep.c (arm_neon_quad_read): Likewise.
1618 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1619 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1620 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1621 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1622 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1623 (i386_pseudo_register_read_into_value): Likewise.
1624 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1625 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1626 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1627 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
1628 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
1629 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1630 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1631 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1632 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1633
dc711524
YQ
16342018-01-22 Yao Qi <yao.qi@linaro.org>
1635
1636 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1637 * configure.tgt: Remove target mt.
1638 * mt-tdep.c: Remove.
1639 * regcache.c (cooked_read_test): Remove the check for mt.
1640
3f5a868b
YQ
16412018-01-22 Yao Qi <yao.qi@linaro.org>
1642
1643 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1644 instead of gdbarch_pseudo_register_read_value.
1645
de4cb04a
JB
16462018-01-22 Joel Brobecker <brobecker@adacore.com>
1647
1648 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1649 language is Ada.
1650
a9e40818
JB
16512018-01-22 Joel Brobecker <brobecker@adacore.com>
1652
1653 * linespec.c (create_sals_line_offset): Remove code that preserved
1654 the symtab_and_line's line number.
1655
e707fc44
AB
16562018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * varobj.c (varobj_create): Don't set valid_block when creating a
1659 floating varobj.
1660
03d0bf7b
AB
16612018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * varobj.c (varobj_create): Remove out of date comment.
1664
ae451627
AB
16652018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 PR mi/20395
1668 * ada-exp.y (write_var_from_sym): Pass extra parameter when
1669 updating innermost block.
1670 * parse.c (innermost_block_tracker::update): Take extra type
1671 parameter, and check types match before updating innermost block.
1672 (write_dollar_variable): Update innermost block for registers.
1673 * parser-defs.h (enum innermost_block_tracker_type): New enum.
1674 (innermost_block_tracker::innermost_block_tracker): Initialise
1675 m_types member.
1676 (innermost_block_tracker::reset): Take type parameter.
1677 (innermost_block_tracker::update): Take type parameter, and pass
1678 type through as needed.
1679 (innermost_block_tracker::m_types): New member.
1680 * varobj.c (varobj_create): Pass type when reseting innermost
1681 block.
1682
aee1fcdf
AB
16832018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
1686 * ada-lang.c (resolve_subexp): Likewise.
1687 * breakpoint.c (set_breakpoint_condition) Likewise.
1688 (watch_command_1) Likewise.
1689 * c-exp.y (variable): Likewise.
1690 * d-exp.y (PrimaryExpression): Likewise.
1691 * f-exp.y (variable): Likewise.
1692 * go-exp.y (variable): Likewise.
1693 * m2-exp.y (variable): Likewise.
1694 * objfiles.c (objfile::~objfile): Likewise.
1695 * p-exp.y (variable): Likewise.
1696 * parse.c (innermost_block): Change type.
1697 * parser-defs.h (class innermost_block_tracker): New.
1698 (innermost_block): Change to innermost_block_tracker.
1699 * printcmd.c (display_command): Switch to innermost_block API.
1700 (do_one_display): Likewise.
1701 * rust-exp.y (do_one_display): Likewise.
1702 * symfile.c (clear_symtab_users): Likewise.
1703 * varobj.c (varobj_create): Switch to innermost_block API, replace
1704 use of innermost_block with block stored on varobj object.
1705
396af9a1
AB
17062018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 * expression.h (innermost_block): Remove declaration.
1709 * varobj.c: Add 'parser-defs.h' include.
1710
fcfcc376
TT
17112018-01-19 Tom Tromey <tom@tromey.com>
1712
1713 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
1714 symbols in the static and global blocks.
1715
5a6c3296
JC
17162018-01-19 James Clarke <jrtc27@jrtc27.com>
1717
1718 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
1719 gdb_ptrace.h, and move including gdb_wait.h ...
1720 * nat/linux-ptrace.h: ... to here.
1721
bc09b0c1
SM
17222018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1723
1724 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
1725 inf_ptrace_detach_success.
1726 (inf_ptrace_detach_success): Add inferior parameter, use it
1727 instead of inferior_ptid, pass it to detach_inferior.
1728 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
1729 parameter.
1730 * inferior.c (detach_inferior): Add overload that takes an
1731 inferior object.
1732 * inferior.h (detach_inferior): Likewise.
1733 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
1734 use inferior_ptid, adjust call to inf_ptrace_detach_success.
1735 * linux-thread-db.c (thread_db_detach): Use inf parameter.
1736
6e1e1966
SM
17372018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1738
1739 * target.h (struct target_ops) <to_detach>: Add inferior
1740 parameter.
1741 (target_detach): Likewise.
1742 * target.c (dispose_inferior): Pass inferior down.
1743 (target_detach): Pass inferior down. Assert that it is equal to
1744 the current inferior.
1745 * aix-thread.c (aix_thread_detach): Pass inferior down.
1746 * corefile.c (core_file_command): Pass current_inferior() down.
1747 * corelow.c (core_detach): Add inferior parameter.
1748 * darwin-nat.c (darwin_detach): Likewise.
1749 * gnu-nat.c (gnu_detach): Likewise.
1750 * inf-ptrace.c (inf_ptrace_detach): Likewise.
1751 * infcmd.c (detach_command): Pass current_inferior() down to
1752 target_detach.
1753 * infrun.c (follow_fork_inferior): Pass parent_inf to
1754 target_detach.
1755 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
1756 target_detach.
1757 * linux-nat.c (linux_nat_detach): Add inferior parameter.
1758 * linux-thread-db.c (thread_db_detach): Likewise.
1759 * nto-procfs.c (procfs_detach): Likewise.
1760 * procfs.c (procfs_detach): Likewise.
1761 * record.c (record_detach): Likewise.
1762 * record.h (struct inferior): Forward-declare.
1763 (record_detach): Add inferior parameter.
1764 * remote-sim.c (gdbsim_detach): Likewise.
1765 * remote.c (remote_detach_1): Likewise.
1766 (remote_detach): Likewise.
1767 (extended_remote_detach): Likewise.
1768 * sol-thread.c (sol_thread_detach): Likewise.
1769 * target-debug.h (target_debug_print_inferior_p): New macro.
1770 * target-delegates.c: Re-generate.
1771 * top.c (kill_or_detach): Pass inferior down to target_detach.
1772 * windows-nat.c (windows_detach): Add inferior parameter.
1773
6bd6f3b6
SM
17742018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1775
1776 * target.h (struct target_ops) <to_detach>: Remove args
1777 parameter.
1778 (target_detach): Likewise.
1779 * target.c (dispose_inferior): Adjust.
1780 (target_detach): Remove args parameter, adjust.
1781 * aix-thread.c (aix_thread_detach): Adjust.
1782 * corefile.c (core_file_command): Adjust.
1783 * corelow.c (core_detach): Adjust.
1784 * darwin-nat.c (darwin_detach): Adjust.
1785 * gnu-nat.c (gnu_detach): Adjust.
1786 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1787 * infcmd.c (detach_command): Adjust
1788 * infrun.c (follow_fork_inferior): Adjust.
1789 (handle_vfork_child_exec_or_exit): Adjust.
1790 * linux-fork.c (linux_fork_detach): Remove args parameter.
1791 * linux-fork.h (linux_fork_detach): Likewise.
1792 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
1793 * linux-thread-db.c (thread_db_detach): Likewise.
1794 * nto-procfs.c (procfs_detach): Likewise.
1795 * procfs.c (procfs_detach): Likewise.
1796 (do_detach): Remove signo parameter.
1797 * record.c (record_detach): Remove args parameter.
1798 * record.h (record_detach): Likewise.
1799 * remote-sim.c (gdbsim_detach): Likewise.
1800 * remote.c (remote_detach_1): Likewise.
1801 (remote_detach): Likewise.
1802 (extended_remote_detach): Likewise.
1803 * sol-thread.c (sol_thread_detach): Likewise.
1804 * target-delegates.c: Re-generate.
1805 * top.c (struct qt_args) <args>: Remove field.
1806 (kill_or_detach): Don't pass args.
1807 (quit_force): Don't set args.
1808 * windows-nat.c (windows_detach): Remove args parameter.
1809
88af8ea8
YQ
18102018-01-19 Yao Qi <yao.qi@linaro.org>
1811
1812 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
1813 (arm_linux_init_abi): Install it.
1814
dea445b9
YQ
18152018-01-19 Yao Qi <yao.qi@linaro.org>
1816
1817 * osabi.c (gdb_osabi_names): Extend the regexp for
1818 arm-linux-gnueabihf.
1819
4a17f768
YQ
18202018-01-18 Yao Qi <yao.qi@linaro.org>
1821
1822 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
1823 m_abbrevs.
1824 (abbrev_table::add_abbrev): Update.
1825 (abbrev_table::lookup_abbrev): Update.
1826
d679c21a
YQ
18272018-01-18 Yao Qi <yao.qi@linaro.org>
1828
1829 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
1830
7d937cad
SDJ
18312018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1832
1833 * compile/compile.c (compile_to_object): Convert "triplet_rx"
1834 to "std::string".
1835
9e14690d
TT
18362018-01-17 Tom Tromey <tom@tromey.com>
1837
1838 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
1839
50a82047
TT
18402018-01-17 Tom Tromey <tom@tromey.com>
1841
1842 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
1843 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
1844 (create_array_type_with_stride): Update.
1845 * dwarf2read.c (set_die_type): Update.
1846
c89b44cd
TT
18472018-01-17 Tom Tromey <tom@tromey.com>
1848
1849 * dwarf2read.c (delayed_method_info): Remove typedef.
1850 (dwarf2_cu::method_info): Now a std::vector.
1851 (add_to_method_list): Update.
1852 (free_delayed_list): Remove.
1853 (compute_delayed_physnames): Update.
1854 (process_full_comp_unit, process_full_type_unit): Clear the method
1855 list. Remove cleanups.
1856 (psymtab_include_file_name): Add name_holder parameter. Use
1857 unique_xmalloc_ptr.
1858 (dwarf_decode_lines): Update.
1859
fcd3b13d
SM
18602018-01-17 Tom Tromey <tom@tromey.com>
1861 Simon Marchi <simon.marchi@ericsson.com>
1862
1863 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
1864 (dwarf2_per_objfile::free_cached_comp_units)
1865 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1866 (init_cutu_and_read_dies_no_follow): Update.
1867 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
1868 (dwarf2_cu::~dwarf2_cu): New.
1869 (free_heap_comp_unit, free_stack_comp_unit): Remove.
1870 (age_cached_comp_units, free_one_cached_comp_unit): Update.
1871
685af9cd
TT
18722018-01-17 Tom Tromey <tom@tromey.com>
1873 Simon Marchi <simon.marchi@ericsson.com>
1874
1875 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
1876 (struct die_reader_specs) <abbrev_table>: New member.
1877 (struct abbrev_table): Add constructor.
1878 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
1879 <abbrev_obstack>: Now an auto_obstack.
1880 (abbrev_table_up): New typedef.
1881 (init_cu_die_reader): Add abbrev_table parameter.
1882 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
1883 Add result_dwo_abbrev_table.
1884 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1885 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
1886 Update.
1887 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
1888 parameter.
1889 (skip_children): Update.
1890 (abbrev_table::alloc_abbrev): Rename from
1891 abbrev_table_alloc_abbrev.
1892 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
1893 (abbrev_table::lookup_abbrev): Rename from
1894 abbrev_table_lookup_abbrev.
1895 (abbrev_table_read_table): Return abbrev_table_up.
1896 (abbrev_table_free, abbrev_table_free_cleanup)
1897 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
1898 (load_partial_dies): Update.
1899
5e2db402
TT
19002018-01-17 Tom Tromey <tom@tromey.com>
1901
1902 * dwarf2read.c (dwarf2_compute_name): Update comment.
1903 (read_func_scope, read_variable): Update.
1904 (new_symbol): Remove.
1905 (new_symbol_full): Rename to new_symbol.
1906
ee7f689e 19072018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
1908
1909 PR gdb/16577
1910 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
1911 a warning instead of throwing an error, set section size to 0 and return
1912 NULL.
1913 * gdb_bfd.h (gdb_bfd_map_section): Update description.
1914
4d9b86e1
SM
19152018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1916
1917 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
1918 std::string.
1919 (linux_ptrace_attach_fail_reason_string): Likewise.
1920 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
1921 Likewise.
1922 (linux_ptrace_attach_fail_reason_string): Likewise.
1923 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
1924
a7b2d0fb
SM
19252018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1926
1927 * linux-nat.c (linux_nat_attach): Remove xstrdup.
1928
f517c180
EA
19292018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1930
1931 PR gdb/21559
1932 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1933 checking for fs_base/gs_base fields in struct user_regs_struct.
1934 * configure: Regenerate.
1935
7045b1ca
YQ
19362018-01-17 Yao Qi <yao.qi@linaro.org>
1937
1938 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
1939 function.
1940 (aarch64_linux_init_abi): Install it to gdbarch hook
1941 gcc_target_options.
1942
db422fb2
PA
19432018-01-15 Pedro Alves <palves@redhat.com>
1944
1945 * common/signals-state-save-restore.c
1946 (save_original_signals_state): Fix typos.
1947
ba643918
SDJ
19482017-01-12 Tom Tromey <tom@tromey.com>
1949 Sergio Durigan Junior <sergiodj@redhat.com>
1950
1951 * Makefile.in (install-only): Install gdb-add-index.
1952
906b4aac
JB
19532018-01-12 John Baldwin <jhb@FreeBSD.org>
1954
1955 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
1956
bdf2a94a
AA
19572018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1958
1959 * infrun.c (keep_going_pass_signal): Clear step-over info when
1960 insert_breakpoints fails.
1961
71d378ae
PA
19622018-01-11 Pedro Alves <palves@redhat.com>
1963
1964 PR gdb/22583
1965 * infrun.c (resume): Rename to ...
1966 (resume_1): ... this.
1967 (resume): Reimplement as wrapper around resume_1.
1968
3cada740
PA
19692018-01-11 Pedro Alves <palves@redhat.com>
1970
1971 PR remote/22597
1972 * remote.c (remote_parse_stop_reply): Default to the last-set
1973 general thread instead of to 'magic_null_ptid'.
1974
618daa93
PA
19752018-01-10 Pedro Alves <palves@redhat.com>
1976
1977 * language.h (language_get_symbol_name_matcher): Rename ...
1978 (get_symbol_name_matcher): ... this.
1979 * language.c (language_get_symbol_name_matcher): Ditto.
1980 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
1981 callers adjusted.
1982
c63d3e8d
PA
19832018-01-10 Pedro Alves <palves@redhat.com>
1984
1985 PR gdb/22670
1986 * dwarf2read.c
1987 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
1988 Adjust to use language_get_symbol_name_matcher instead of
1989 language_defn::la_get_symbol_name_matcher.
1990 * language.c (language_get_symbol_name_matcher): If in Ada mode
1991 and the lookup name is a verbatim match, return Ada's matcher.
1992 * language.h (language_get_symbol_name_matcher): Adjust comment.
1993 (ada_lookup_name_info::verbatim_p):: New method.
1994
d4c2a405
PA
19952018-01-10 Pedro Alves <palves@redhat.com>
1996
1997 PR gdb/22670
1998 * ada-lang.c (ada_collect_symbol_completion_matches): If the
1999 minsym's language is language_auto or language_cplus, pass down
2000 language_ada instead.
2001 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2002
8825213e
PA
20032018-01-10 Pedro Alves <palves@redhat.com>
2004
2005 PR gdb/22670
2006 * minsyms.c (linkage_name_str): New function.
2007 (iterate_over_minimal_symbols): Use it.
2008
2d97a5d9
JB
20092018-01-09 John Baldwin <jhb@FreeBSD.org>
2010
2011 * NEWS: Document that 'info proc' now works on FreeBSD.
2012
92fce24d
JB
20132018-01-09 John Baldwin <jhb@FreeBSD.org>
2014
2015 * configure.ac: Check for kinfo_getfile in libutil.
2016 * configure: Regenerate.
2017 * config.in: Regenerate.
2018 * fbsd-nat.c: Include "fbsd-tdep.h".
2019 (fbsd_fetch_cmdline): New.
2020 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2021 rather than calling error.
2022 (fbsd_info_proc): New.
2023 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2024 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2025 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2026
262f62f5
JB
20272018-01-09 John Baldwin <jhb@FreeBSD.org>
2028
2029 * fbsd-nat.c (struct free_deleter): Remove.
2030 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2031
b999e203
JB
20322018-01-09 John Baldwin <jhb@FreeBSD.org>
2033
2034 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2035 NULL for an empty pathname.
2036
d2176225
JB
20372018-01-09 John Baldwin <jhb@FreeBSD.org>
2038
2039 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2040 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2041 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2042 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2043 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2044 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2045 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2046 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2047 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2048 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2049 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2050 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2051 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2052 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2053 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2054
9c4ac400
ST
20552018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2056
2057 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2058 (gnu_xfer_auxv): New function.
2059 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2060 TARGET_OBJECT_AUXV.
2061
1e5ded6c
YQ
20622018-01-08 Yao Qi <yao.qi@linaro.org>
2063 Simon Marchi <simon.marchi@ericsson.com>
2064
2065 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2066 common/selftest.c.
2067 (COMMON_OBS): Remove selftest.o.
2068 * configure.ac: Append selftest-arch.c and common/selftest.c to
2069 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2070 * configure: Re-generated.
2071 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2072 GDB_SELF_TEST.
2073 (maintenance_info_selftests): Likewise.
2074
04bafb1e
XR
20752018-01-08 Xavier Roirand <roirand@adacore.com>
2076
2077 * ada-valprint.c (val_print_packed_array_elements): Use
2078 proper number of elements when printing an array indexed
2079 by an enumeration type.
2080
518817b3
SM
20812018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2084 (dw2_get_file_names_reader): Adjust.
2085 (lookup_dwo_signatured_type): Adjust.
2086 (lookup_dwp_signatured_type): Adjust.
2087 (lookup_signatured_type): Adjust.
2088 (create_type_unit_group): Adjust.
2089 (get_type_unit_group): Adjust.
2090 (process_psymtab_comp_unit_reader): Adjust.
2091 (build_type_psymtabs_reader): Adjust.
2092 (scan_partial_symbols): Adjust.
2093 (add_partial_symbol): Adjust.
2094 (add_partial_subprogram): Adjust.
2095 (peek_die_abbrev): Adjust.
2096 (fixup_go_packaging): Adjust.
2097 (process_imported_unit_die): Adjust.
2098 (dwarf2_compute_name): Adjust.
2099 (dwarf2_physname): Adjust.
2100 (read_import_statement): Adjust.
2101 (handle_DW_AT_stmt_list): Adjust.
2102 (read_file_scope): Adjust.
2103 (read_func_scope): Adjust.
2104 (read_lexical_block_scope): Adjust.
2105 (read_call_site_scope): Adjust.
2106 (read_variable): Adjust.
2107 (dwarf2_rnglists_process): Adjust.
2108 (dwarf2_ranges_process): Adjust.
2109 (dwarf2_ranges_read): Adjust.
2110 (dwarf2_get_pc_bounds): Adjust.
2111 (dwarf2_record_block_ranges): Adjust.
2112 (dwarf2_add_field): Adjust.
2113 (dwarf2_add_member_fn): Adjust.
2114 (read_structure_type): Adjust.
2115 (process_structure_scope): Adjust.
2116 (read_enumeration_type): Adjust.
2117 (read_array_type): Adjust.
2118 (mark_common_block_symbol_computed): Adjust.
2119 (read_common_block): Adjust.
2120 (read_namespace_type): Adjust.
2121 (read_namespace): Adjust.
2122 (read_module_type): Adjust.
2123 (read_tag_pointer_type): Adjust.
2124 (read_tag_ptr_to_member_type): Adjust.
2125 (read_tag_string_type): Adjust.
2126 (read_subroutine_type): Adjust.
2127 (read_typedef): Adjust.
2128 (read_base_type): Adjust.
2129 (attr_to_dynamic_prop): Adjust.
2130 (read_subrange_type): Adjust.
2131 (read_unspecified_type): Adjust.
2132 (dwarf2_read_abbrevs): Adjust.
2133 (load_partial_dies): Adjust.
2134 (read_partial_die): Adjust.
2135 (find_partial_die): Adjust.
2136 (guess_partial_die_structure_name): Adjust.
2137 (fixup_partial_die): Adjust.
2138 (read_attribute_value): Adjust.
2139 (read_addr_index): Adjust.
2140 (read_addr_index_from_leb128): Adjust.
2141 (read_str_index): Adjust.
2142 (dwarf2_string_attr): Adjust.
2143 (get_debug_line_section): Adjust.
2144 (dwarf_decode_line_header): Adjust.
2145 (lnp_state_machine::check_line_address): Adjust.
2146 (dwarf_decode_lines_1): Adjust.
2147 (dwarf_decode_lines): Adjust.
2148 (dwarf2_start_symtab): Adjust.
2149 (var_decode_location): Adjust.
2150 (new_symbol_full): Adjust.
2151 (dwarf2_const_value_data): Adjust.
2152 (dwarf2_const_value_attr): Adjust.
2153 (dwarf2_const_value): Adjust.
2154 (die_type): Adjust.
2155 (die_containing_type): Adjust.
2156 (build_error_marker_type): Adjust.
2157 (lookup_die_type): Adjust.
2158 (guess_full_die_structure_name): Adjust.
2159 (anonymous_struct_prefix): Adjust.
2160 (determine_prefix): Adjust.
2161 (dwarf2_name): Adjust.
2162 (follow_die_ref_or_sig): Adjust.
2163 (follow_die_offset): Adjust.
2164 (follow_die_ref): Adjust.
2165 (follow_die_sig_1): Adjust.
2166 (follow_die_sig): Adjust.
2167 (get_signatured_type): Adjust.
2168 (get_DW_AT_signature_type): Adjust.
2169 (decode_locdesc): Adjust.
2170 (dwarf_decode_macros): Adjust.
2171 (cu_debug_loc_section): Adjust.
2172 (fill_in_loclist_baton): Adjust.
2173 (dwarf2_symbol_mark_computed): Adjust.
2174 (init_one_comp_unit): Don't assign
2175 dwarf2_cu::dwarf2_per_objfile.
2176 (set_die_type): Adjust.
2177
ed2dc618
SM
21782018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2179
2180 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2181 <dwarf2_per_objfile>: New field.
2182 (dwarf2_per_objfile): Remove global.
2183 (get_dwarf2_per_objfile): New function.
2184 (set_dwarf2_per_objfile): New function.
2185 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2186 dwarf2_per_objfile.
2187 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2188 (read_abbrev_offset): Likewise.
2189 (read_indirect_string): Likewise.
2190 (read_indirect_line_string): Likewise.
2191 (read_indirect_string_at_offset): Likewise.
2192 (read_indirect_string_from_dwz): Likewise.
2193 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2194 dwarf2_per_objfile.
2195 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2196 (create_all_comp_units): Change objfile parameter to
2197 dwarf2_per_objfile.
2198 (create_all_type_units): Likewise.
2199 (process_queue): Add dwarf2_per_objfile parameter.
2200 (read_and_check_comp_unit_head): Likewise.
2201 (lookup_dwo_unit_in_dwp): Likewise.
2202 (get_dwp_file): Likewise.
2203 (process_cu_includes): Likewise.
2204 (struct free_dwo_file_cleanup_data): New struct.
2205 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2206 set_dwarf2_per_objfile.
2207 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2208 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2209 context, adjust calls.
2210 (dw2_instantiate_symtab): Likewise.
2211 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2212 (dw2_get_cu): Likewise.
2213 (create_cu_from_index_list): Change objfile parameter to
2214 dwarf2_per_objfile.
2215 (create_cus_from_index_list): Get dwarf2_per_objfile from
2216 context, adjust calls.
2217 (create_cus_from_index): Likewise.
2218 (create_signatured_type_table_from_index): Change objfile
2219 parameter to dwarf2_per_objfile.
2220 (create_signatured_type_table_from_debug_names): Change objfile
2221 parameter to dwarf2_per_objfile.
2222 (create_addrmap_from_index): Likewise.
2223 (create_addrmap_from_aranges): Likewise.
2224 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2225 (dw2_setup): Remove.
2226 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2227 context.
2228 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2229 get_dwarf2_per_objfile.
2230 (dw2_forget_cached_source_info): Likewise.
2231 (dw2_map_symtabs_matching_filename): Likewise.
2232 (struct dw2_symtab_iterator) <index>: Remove.
2233 <dwarf2_per_objfile>: New field.
2234 (dw2_symtab_iter_init): Replace index parameter with
2235 dwarf2_per_objfile.
2236 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2237 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2238 (dw2_print_stats): Likewise.
2239 (dw2_dump): Likewise.
2240 (dw2_expand_symtabs_for_function): Likewise.
2241 (dw2_expand_all_symtabs): Likewise.
2242 (dw2_expand_symtabs_with_fullname): Likewise.
2243 (dw2_expand_marked_cus): Replace index and objfile parameters
2244 with dwarf2_per_objfile.
2245 (dw_expand_symtabs_matching_file_matcher): Add
2246 dwarf2_per_objfile parameter and adjust calls.
2247 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2248 adjust calls.
2249 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2250 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2251 adjust calls.
2252 (create_cus_from_debug_names_list): Replace objfile parameter
2253 with dwarf2_per_objfile and adjust calls.
2254 (create_cus_from_debug_names): Likewise.
2255 (dwarf2_read_debug_names): Likewise.
2256 (mapped_debug_names::namei_to_name): Adjust call.
2257 (dw2_debug_names_iterator::next): Likewise.
2258 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2259 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2260 (dw2_debug_names_dump): Likewise.
2261 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2262 (dw2_debug_names_expand_symtabs_matching): Likewise.
2263 (dwarf2_initialize_objfile): Likewise.
2264 (dwarf2_build_psymtabs): Likewise.
2265 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2266 this_cu.
2267 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2268 (read_and_check_comp_unit_head): Likewise.
2269 (read_abbrev_offset): Likewise.
2270 (create_debug_type_hash_table): Likewise.
2271 (create_debug_types_hash_table): Likewise.
2272 (create_all_type_units): Replace objfile parameter with
2273 dwarf2_per_objfile.
2274 (add_type_unit): Add dwarf2_per_objfile parameter.
2275 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2276 with dwarf2_per_objfile.
2277 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2278 (lookup_dwp_signatured_type): Likewise.
2279 (lookup_signatured_type): Likewise.
2280 (read_cutu_die_from_dwo): Likewise.
2281 (init_tu_and_read_dwo_dies): Likewise.
2282 (init_cutu_and_read_dies): Likewise.
2283 (init_cutu_and_read_dies_no_follow): Likewise.
2284 (allocate_type_unit_groups_table): Add objfile parameter.
2285 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2286 (get_type_unit_group): Likewise.
2287 (process_psymtab_comp_unit): Update call.
2288 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2289 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2290 (print_tu_stats): Likewise.
2291 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2292 in void* parameter.
2293 (build_type_psymtabs): Change objfile parameter to
2294 dwarf2_per_objfile.
2295 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2296 passed in void* parameter.
2297 (process_skeletonless_type_units): Change objfile parameter to
2298 dwarf2_per_objfile.
2299 (set_partial_user): Likewise.
2300 (dwarf2_build_psymtabs_hard): Likewise.
2301 (read_comp_units_from_section): Likewise.
2302 (create_all_comp_units): Likewise.
2303 (scan_partial_symbols): Update calls.
2304 (add_partial_symbol): Likewise.
2305 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2306 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2307 (process_queue): Add dwarf2_per_objfile parameter.
2308 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2309 (compute_compunit_symtab_includes): Likewise.
2310 (process_cu_includes): Add dwarf2_per_objfile parameter.
2311 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2312 (process_full_type_unit): Likewise.
2313 (process_imported_unit_die): Update call.
2314 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2315 (read_file_scope): Likewise.
2316 (allocate_dwo_file_hash_table): Add objfile parameter.
2317 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2318 (create_cus_hash_table): Likewise.
2319 (create_dwp_hash_table): Likewise.
2320 (create_dwo_unit_in_dwp_v1): Likewise.
2321 (create_dwp_v2_section): Likewise.
2322 (create_dwo_unit_in_dwp_v2): Likewise.
2323 (lookup_dwo_unit_in_dwp): Likewise.
2324 (try_open_dwop_file): Likewise.
2325 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2326 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2327 cleanup to include a reference to dwarf2_per_objfile.
2328 (open_dwp_file): Add dwarf2_per_objfile parameter.
2329 (open_and_init_dwp_file): Likewise.
2330 (get_dwp_file): Likewise.
2331 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2332 (queue_and_load_all_dwo_tus): Update call.
2333 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2334 data.
2335 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2336 (dwarf2_ranges_process): Likewise.
2337 (dwarf2_get_pc_bounds): Likewise.
2338 (mark_common_block_symbol_computed): Likewise.
2339 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2340 (dwarf2_read_abbrevs): Update call.
2341 (read_partial_die): Use dwarf2_per_objfile from cu.
2342 (find_partial_die): Likewise.
2343 (fixup_partial_die): Likewise.
2344 (read_attribute_value): Likewise.
2345 (read_indirect_string_at_offset_from): Add objfile parameter.
2346 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2347 parameter.
2348 (read_indirect_string_from_dwz): Add objfile parameter.
2349 (read_indirect_string): Add objfile parameter.
2350 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2351 (read_addr_index): Use dwarf2_per_objfile from cu.
2352 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2353 call dw2_setup.
2354 (read_str_index): Use dwarf2_per_objfile from cu.
2355 (get_debug_line_section): Likewise.
2356 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2357 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2358 (new_symbol_full): Use dwarf2_per_objfile from cu.
2359 (build_error_marker_type): Likewise.
2360 (lookup_die_type): Likewise.
2361 (determine_prefix): Likewise.
2362 (follow_die_offset): Likewise.
2363 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2364 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2365 (dwarf2_fetch_die_type_sect_off): Likewise.
2366 (dwarf2_get_die_type): Likewise.
2367 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2368 (get_signatured_type): Likewise.
2369 (get_DW_AT_signature_type): Likewise.
2370 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2371 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2372 (cu_debug_loc_section): Likewise.
2373 (fill_in_loclist_baton): Likewise.
2374 (dwarf2_symbol_mark_computed): Likewise.
2375 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2376 dwarf2_per_objfile.
2377 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2378 parameter.
2379 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2380 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2381 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2382 (set_die_type): Use dwarf2_free_objfile from cu.
2383 (get_die_type_at_offset): Likewise.
2384 (dwarf2_per_objfile_free): Don't assign global variable.
2385 (debug_names) <constructor>: Add dwarf2_per_objfile
2386 parameter, update m_debugstrlookup construction.
2387 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2388 parameter.
2389 <m_dwarf2_per_objfile>: New field.
2390 <lookup>: Use m_dwarf2_per_objfile.
2391 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2392 (psyms_seen_size): Likewise.
2393 (write_gdbindex): Replace objfile parameter with
2394 dwarf2_per_objfile.
2395 (write_debug_names): Likewise.
2396 (write_psymtabs_to_index): Likewise.
2397 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2398 calls.
2399
e3b94546
SM
24002018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2401
2402 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2403 <dwarf2_per_objfile>: New field.
2404 (struct dwarf2_per_cu_data) <objfile>: Remove.
2405 <dwarf2_per_objfile>: New field.
2406 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2407 of objfile.
2408 (create_signatured_type_table_from_index): Likewise.
2409 (create_debug_type_hash_table): Likewise.
2410 (fill_in_sig_entry_from_dwo_entry): Likewise.
2411 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2412 (create_type_unit_group): Assign dwarf2_per_objfile instead of
2413 objfile.
2414 (create_partial_symtab): Access objfile through
2415 dwarf2_per_objfile.
2416 (process_psymtab_comp_unit_reader): Likewise.
2417 (read_comp_units_from_section): Likewise.
2418 (scan_partial_symbols): Likewise.
2419 (add_partial_symbol): Likewise.
2420 (add_partial_subprogram): Likewise.
2421 (peek_die_abbrev): Likewise.
2422 (fixup_go_packaging): Likewise.
2423 (process_full_comp_unit): Likewise.
2424 (process_full_type_unit): Likewise.
2425 (process_imported_unit_die): Likewise.
2426 (dwarf2_compute_name): Likewise.
2427 (dwarf2_physname): Likewise.
2428 (read_import_statement): Likewise.
2429 (create_cus_hash_table): Assign dwarf2_physname instead of
2430 objfile.
2431 (read_func_scope): Access objfile through dwarf2_per_objfile.
2432 (read_lexical_block_scope): Likewise.
2433 (read_call_site_scope): Likewise.
2434 (read_variable): Likewise.
2435 (dwarf2_rnglists_process): Likewise.
2436 (dwarf2_ranges_process): Likewise.
2437 (dwarf2_ranges_read): Likewise.
2438 (dwarf2_record_block_ranges): Likewise.
2439 (dwarf2_add_field): Likewise.
2440 (dwarf2_add_member_fn): Likewise.
2441 (read_structure_type): Likewise.
2442 (process_structure_scope): Likewise.
2443 (read_enumeration_type): Likewise.
2444 (read_array_type): Likewise.
2445 (read_common_block): Likewise.
2446 (read_namespace_type): Likewise.
2447 (read_namespace): Likewise.
2448 (read_module_type): Likewise.
2449 (read_tag_pointer_type): Likewise.
2450 (read_tag_ptr_to_member_type): Likewise.
2451 (read_tag_string_type): Likewise.
2452 (read_subroutine_type): Likewise.
2453 (read_typedef): Likewise.
2454 (read_base_type): Likewise.
2455 (attr_to_dynamic_prop): Likewise.
2456 (read_subrange_type): Likewise.
2457 (read_unspecified_type): Likewise.
2458 (load_partial_dies): Likewise.
2459 (read_partial_die): Likewise.
2460 (find_partial_die): Likewise.
2461 (guess_partial_die_structure_name): Likewise.
2462 (fixup_partial_die): Likewise.
2463 (read_attribute_value): Likewise.
2464 (read_addr_index_from_leb128): Likewise.
2465 (dwarf2_read_addr_index): Likewise.
2466 (dwarf2_string_attr): Likewise.
2467 (lnp_state_machine::check_line_address): Likewise.
2468 (dwarf_decode_lines_1): Likewise.
2469 (dwarf_decode_lines): Likewise.
2470 (dwarf2_start_symtab): Likewise.
2471 (var_decode_location): Likewise.
2472 (new_symbol_full): Likewise.
2473 (dwarf2_const_value_data): Likewise.
2474 (dwarf2_const_value_attr): Likewise.
2475 (dwarf2_const_value): Likewise.
2476 (die_type): Likewise.
2477 (die_containing_type): Likewise.
2478 (lookup_die_type): Likewise.
2479 (guess_full_die_structure_name): Likewise.
2480 (anonymous_struct_prefix): Likewise.
2481 (dwarf2_name): Likewise.
2482 (follow_die_ref_or_sig): Likewise.
2483 (follow_die_offset): Likewise.
2484 (follow_die_ref): Likewise.
2485 (dwarf2_fetch_die_loc_sect_off): Likewise.
2486 (dwarf2_fetch_constant_bytes): Likewise.
2487 (dwarf2_fetch_die_type_sect_off): Likewise.
2488 (dwarf2_get_die_type): Likewise.
2489 (follow_die_sig): Likewise.
2490 (decode_locdesc): Likewise.
2491 (dwarf2_per_cu_objfile): Likewise.
2492 (dwarf2_per_cu_text_offset): Likewise.
2493 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2494 objfile.
2495 (set_die_type): Access objfile through
2496 dwarf2_per_objfile.
2497
b01ba14d
SM
24982018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2499
2500 * valprint.c (converted_character_d): Remove typedef.
2501 (DEF_VEC_O (converted_character_d)): Remove.
2502 (count_next_character): Use std::vector.
2503 (print_converted_chars_to_obstack): Likewise.
2504 (generic_printstr): Likewise.
2505
4d0fdd9b
SM
25062018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * xml-support.h (struct gdb_xml_value): Add constructor.
2509 <value>: Change type to unique_xmalloc_ptr.
2510 (gdb_xml_value_s): Remove typedef.
2511 (DEF_VEC_O (gdb_xml_value_s)): Remove.
2512 (gdb_xml_element_start_handler): Change parameter type to
2513 std::vector.
2514 (xml_find_attribute): Likewise.
2515 * xml-support.c (xml_find_attribute): Change parameter type to
2516 std::vector and adjust.
2517 (gdb_xml_values_cleanup): Remove.
2518 (gdb_xml_parser::start_element): Adjust to std::vector.
2519 (xinclude_start_include): Change paraeter type to std::vector
2520 and adjust.
2521 * btrace.c (check_xml_btrace_version): Likewise.
2522 (parse_xml_btrace_block): Likewise.
2523 (parse_xml_btrace_pt_config_cpu): Likewise.
2524 (parse_xml_btrace_pt): Likewise.
2525 (parse_xml_btrace_conf_bts): Likewise.
2526 (parse_xml_btrace_conf_pt): Likewise.
2527 * memory-map.c (memory_map_start_memory): Likewise.
2528 (memory_map_start_property): Likewise.
2529 * osdata.c (osdata_start_osdata): Likewise.
2530 (osdata_start_item): Likewise.
2531 (osdata_start_column): Likewise.
2532 * remote.c (start_thread): Likewise.
2533 * solib-aix.c (library_list_start_library): Likewise.
2534 (library_list_start_list): Likewise.
2535 * solib-svr4.c (library_list_start_library): Likewise.
2536 (svr4_library_list_start_list): Likewise.
2537 * solib-target.c (library_list_start_segment): Likewise.
2538 (library_list_start_section): Likewise.
2539 (library_list_start_library): Likewise.
2540 (library_list_start_list): Likewise.
2541 * tracepoint.c (traceframe_info_start_memory): Likewise.
2542 (traceframe_info_start_tvar): Likewise.
2543 * xml-syscall.c (syscall_start_syscall): Likewise.
2544 * xml-tdesc.c (tdesc_start_target): Likewise.
2545 (tdesc_start_feature): Likewise.
2546 (tdesc_start_reg): Likewise.
2547 (tdesc_start_union): Likewise.
2548 (tdesc_start_struct): Likewise.
2549 (tdesc_start_flags): Likewise.
2550 (tdesc_start_enum): Likewise.
2551 (tdesc_start_field): Likewise.
2552 (tdesc_start_enum_value): Likewise.
2553 (tdesc_start_vector): Likewise.
2554
f979c73f
SM
25552018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2556
2557 * extension.h (struct xmethod_worker) <clone>: Remove.
2558 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2559 Remove.
2560 (python_xmethod_worker::clone): Remove.
2561 * valops.c (find_overload_match): Use std::move instead of
2562 clone.
2563
ba18742c
SM
25642018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2565
2566 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2567 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2568 <free_xmethod_worker_data>: Remove.
2569 <get_matching_xmethod_workers>: Chance VEC to std::vector.
2570 <get_xmethod_arg_types>: Remove.
2571 <get_xmethod_result_type>: Remove.
2572 <invoke_xmethod>: Remove.
2573 * extension.c (new_xmethod_worker): Remove.
2574 (clone_xmethod_worker): Remove.
2575 (get_matching_xmethod_workers): Return void, pass std::vector by
2576 pointer.
2577 (get_xmethod_arg_types): Rename to...
2578 (xmethod_worker::get_arg_types): ... this, and adjust.
2579 (get_xmethod_result_type): Rename to...
2580 (xmethod_worker::get_result_type): ... this, and adjust.
2581 (invoke_xmethod): Remove.
2582 (free_xmethod_worker): Remove.
2583 (free_xmethod_worker_vec): Remove.
2584 * extension.h (enum ext_lang_rc): Move here from
2585 extension-priv.h.
2586 (struct xmethod_worker): Add constructor and destructor.
2587 <data>: Remove.
2588 <value>: Remove.
2589 <invoke, clone, do_get_result_type, do_get_arg_types>: New
2590 virtual pure methods.
2591 <get_arg_types, get_result_type>: New methods.
2592 (xmethod_worker_ptr): Remove typedef.
2593 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2594 (xmethod_worker_vec): Remove typedef.
2595 (xmethod_worker_up): New typedef.
2596 (invoke_xmethod): Remove.
2597 (clone_xmethod_worker): Remove.
2598 (free_xmethod_worker): Remove.
2599 (free_xmethod_worker_vec): Remove.
2600 (get_xmethod_arg_types): Remove.
2601 (get_xmethod_result_type): Remove.
2602 * valops.c (find_method_list): Use std::vector, don't use
2603 intermediate vector.
2604 (value_find_oload_method_list): Use std::vector.
2605 (find_overload_match): Use std::vector.
2606 (find_oload_champ): Use std::vector.
2607 * value.c (value_free): Use operator delete.
2608 (value_of_xmethod): Rename to...
2609 (value_from_xmethod): ... this. Don't assign
2610 xmethod_worker::value, take rvalue-reference.
2611 (result_type_of_xmethod): Adjust.
2612 (call_xmethod): Adjust.
2613 * value.h: Include extension.h.
2614 (struct xmethod_worker): Don't forward-declare.
2615 (value_of_xmethod): Rename to...
2616 (value_from_xmethod): ... this, take rvalue-reference.
2617 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2618 (struct python_xmethod_worker): ... this, add constructor and
2619 destructor.
2620 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2621 (gdbpy_free_xmethod_worker_data): Rename to...
2622 (python_xmethod_worker::~python_xmethod_worker): ... this and
2623 adjust.
2624 (gdbpy_clone_xmethod_worker_data): Rename to...
2625 (python_xmethod_worker::clone): ... this and adjust.
2626 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
2627 temporary vector.
2628 (gdbpy_get_xmethod_arg_types): Rename to...
2629 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
2630 (gdbpy_get_xmethod_result_type): Rename to...
2631 (python_xmethod_worker::do_get_result_type): ... this and
2632 adjust.
2633 (gdbpy_invoke_xmethod): Rename to...
2634 (python_xmethod_worker::invoke): ... this and adjust.
2635 (new_python_xmethod_worker): Rename to...
2636 (python_xmethod_worker::python_xmethod_worker): ... this and
2637 adjust.
2638 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2639 Remove.
2640 (gdbpy_free_xmethod_worker_data): Remove.
2641 (gdbpy_get_matching_xmethod_workers): Use std::vector.
2642 (gdbpy_get_xmethod_arg_types): Remove.
2643 (gdbpy_get_xmethod_result_type): Remove.
2644 (gdbpy_invoke_xmethod): Remove.
2645 * python/python.c (python_extension_ops): Remove obsolete
2646 callbacks.
2647
e379cee6
PA
26482018-01-05 Pedro Alves <palves@redhat.com>
2649
2650 PR gdb/18653
2651 * common/signals-state-save-restore.c
2652 (save_original_signals_state): New parameter 'quiet'. Warn if we
2653 find a custom handler preinstalled, instead of internal erroring.
2654 But only warn if !quiet.
2655 * common/signals-state-save-restore.h
2656 (save_original_signals_state): New parameter 'quiet'.
2657 * main.c (captured_main_1): Move save_original_signals_state call
2658 after option handling, and pass QUIET.
2659
a655456c
PA
26602018-01-05 Pedro Alves <palves@redhat.com>
2661
2662 * spu-tdep.c (spu_catch_start): Pass
2663 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
2664
de63c46b
PA
26652018-01-05 Pedro Alves <palves@redhat.com>
2666
2667 PR gdb/22670
2668 * ada-lang.c (literal_symbol_name_matcher): New function.
2669 (ada_get_symbol_name_matcher): Use it for
2670 symbol_name_match_type::SEARCH_NAME.
2671 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
2672 it down instead of assuming symbol_name_match_type::FULL.
2673 * block.h (block_lookup_symbol): New parameter 'match_type'.
2674 * c-valprint.c (print_unpacked_pointer): Use
2675 lookup_symbol_search_name instead of lookup_symbol.
2676 * compile/compile-object-load.c (get_out_value_type): Pass down
2677 symbol_name_match_type::SEARCH_NAME.
2678 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
2679 symbol_name_match_type::FULL.
2680 * cp-support.c (cp_get_symbol_name_matcher): Handle
2681 symbol_name_match_type::SEARCH_NAME.
2682 * infrun.c (insert_exception_resume_breakpoint): Use
2683 lookup_symbol_search_name.
2684 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
2685 * psymtab.c (maintenance_check_psymtabs): Use
2686 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
2687 * stack.c (print_frame_args): Use lookup_symbol_search_name and
2688 SYMBOL_SEARCH_NAME.
2689 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
2690 if symbol_name_match_type::SEARCH_NAME.
2691 (lookup_symbol_in_language): Pass down
2692 symbol_name_match_type::FULL.
2693 (lookup_symbol_search_name): New.
2694 (lookup_language_this): Pass down
2695 symbol_name_match_type::SEARCH_NAME.
2696 (lookup_symbol_aux, lookup_local_symbol): New parameter
2697 'match_type'. Pass it down.
2698 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
2699 (lookup_symbol_search_name): New declaration.
2700 (lookup_symbol_in_block): New 'match_type' parameter.
2701
f98fc17b
PA
27022018-01-05 Pedro Alves <palves@redhat.com>
2703
2704 PR gdb/22670
2705 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
2706 ada_lookup_symbol.
2707 (ada_lookup_symbol): Reimplement in terms of
2708 ada_lookup_symbol_list, bits factored out from
2709 ada_lookup_encoded_symbol.
2710
342f8240
JB
27112018-01-05 Joel Brobecker <brobecker@adacore.com>
2712
2713 * ada-exp.y (write_object_renaming): When subscripting an array
2714 using a symbol as the index, pass the block in call to
2715 ada_lookup_encoded_symbol when looking that symbol up.
2716
7150d33c
JG
27172018-01-05 Jerome Guitton <guitton@adacore.com>
2718
2719 * ada-lang.c (ada_array_length): Use ada_index_type instead of
2720 TYPE_INDEX_TYPE.
2721
cc0e770c
JB
27222018-01-05 Joel Brobecker <brobecker@adacore.com>
2723
2724 * ada-lang.c (ada_to_fixed_value_create): Add handling of
2725 the case where VALUE_LVAL (val0) is not lval_memory.
2726
f79da888 27272018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
2728
2729 * ada-valprint.c (print_optional_low_bound): Handle
2730 character-indexed array printing like boolean-indexed array
2731 printing.
2732
cd385f94
JB
27332018-01-05 Joel Brobecker <brobecker@adacore.com>
2734
2735 * NEWS: Create a new section for the next release branch.
2736 Rename the section of the current branch, now that it has
2737 been cut.
2738
09aca949
JB
27392018-01-05 Joel Brobecker <brobecker@adacore.com>
2740
2741 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
2742 * version.in: Bump version to 8.1.50.DATE-git.
2743
9f757bf7
XR
27442018-01-03 Xavier Roirand <roirand@adacore.com>
2745
2746 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
2747 Add field.
2748 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
2749 Add field.
2750 (default_exception_support_info) <catch_handlers_sym>: Add field.
2751 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
2752 (ada_exception_name_addr_1): Add "catch handlers" handling.
2753 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
2754 Update all callers.
2755 (create_excep_cond_exprs) <ex>: Add parameter.
2756 (re_set_exception): Update create_excep_cond_exprs call.
2757 (print_it_exception, print_one_exception, print_mention_exception)
2758 (print_recreate_exception): Add "catch handler" handling.
2759 (allocate_location_catch_handlers, re_set_catch_handlers)
2760 (check_status_catch_handlers, print_it_catch_handlers)
2761 (print_one_catch_handlers, print_mention_catch_handlers)
2762 (print_recreate_catch_handlers): New function.
2763 (catch_handlers_breakpoint_ops): New variable.
2764 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
2765 Add parameter. Add "catch handler" handling.
2766 (ada_exception_sym_name, ada_exception_breakpoint_ops):
2767 Add "catch handler" handling.
2768 (ada_exception_catchpoint_cond_string): Add "catch handler"
2769 handling.
2770 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
2771 call.
2772 (catch_ada_handlers_command): New function.
2773 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
2774 operations structure.
2775 (_initialize_ada_language): Add "catch handlers" command entry.
2776 * NEWS: Document "catch handlers" feature.
2777
9fe561ab
JB
27782018-01-02 Joel Brobecker <brobecker@adacore.com>
2779
2780 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
2781 account when creating the array type of the slice.
2782 (ada_value_slice): Likewise.
2783
a405673c
JB
27842018-01-02 Joel Brobecker <brobecker@adacore.com>
2785
2786 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
2787 New enum value.
2788 (create_array_type_with_stride): Add byte_stride_prop parameter.
2789 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
2790 New parameter. Update all callers in this file.
2791 (array_type_has_dynamic_stride): New function.
2792 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
2793 of arrays with dynamic byte strides.
2794 * dwarf2read.c (read_array_type): Add support for dynamic
2795 DW_AT_byte_stride attributes.
2796
74a2f8ff
JB
27972018-01-02 Joel Brobecker <brobecker@adacore.com>
2798
2799 * dwarf2read.c (read_unspecified_type): Treat
2800 DW_TAG_enumeration_type DIEs from Ada units as stubs.
2801
e2882c85
JB
28022018-01-01 Joel Brobecker <brobecker@adacore.com>
2803
2804 Update copyright year range in all GDB files.
2805
1690bb24
JB
28062018-01-01 Joel Brobecker <brobecker@adacore.com>
2807
2808 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
2809 and gdb/testsuite/gdb.base/step-line.c.
2810
0f0c98a8
JB
28112018-01-01 Joel Brobecker <brobecker@adacore.com>
2812
2813 * copyright.py (main): Dump the contents of
2814 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
2815 even if BY_HAND is empty.
2816
82e1e79a
JB
28172018-01-01 Joel Brobecker <brobecker@adacore.com>
2818
2819 * top.c (print_gdb_version): Update Copyright year in version
2820 message.
2821
053f54e5 28222018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 2823
053f54e5 2824 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 2825
053f54e5 2826For older changes see ChangeLog-2017.
c906108c
SS
2827\f
2828Local Variables:
2829mode: change-log
2830left-margin: 8
2831fill-column: 74
2832version-control: never
57da7796 2833coding: utf-8
c906108c 2834End: