Remove some cleanups from solib-svr4.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-03-30 Tom Tromey <tom@tromey.com>
2
3 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
4 std::unique_ptr.
5 (svr4_keep_data_in_core): Update.
6 (svr4_read_so_list): Update.
7
8 2018-03-30 Tom Tromey <tom@tromey.com>
9
10 * windows-nat.c (handle_output_debug_string, handle_exception):
11 Update.
12 * target.h (target_read_string): Update.
13 * target.c (target_read_string): Change "string" to
14 unique_xmalloc_ptr.
15 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
16 Update.
17 * solib-frv.c (frv_current_sos): Update.
18 * solib-dsbt.c (dsbt_current_sos): Update.
19 * solib-darwin.c (darwin_current_sos): Update.
20 * linux-thread-db.c (inferior_has_bug): Update.
21 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
22 Update. Remove alloca.
23 * ada-lang.c (ada_main_name): Update.
24
25 2018-03-30 Tom Tromey <tom@tromey.com>
26
27 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
28 (struct dwo_file_deleter): New.
29 (dwo_file_up): New typedef.
30 (open_and_init_dwo_file): Use dwo_file_up.
31 (free_dwo_file_cleanup): Remove.
32
33 2018-03-30 Tom Tromey <tom@tromey.com>
34
35 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
36 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
37
38 2018-03-30 Tom Tromey <tom@tromey.com>
39
40 * dwarf2read.c (class free_cached_comp_units): New class.
41 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
42 (free_cached_comp_units): Remove function.
43
44 2018-03-30 Tom Tromey <tom@tromey.com>
45
46 * utils.h (make_cleanup_unpush_target): Remove.
47 * inf-ptrace.c (struct target_unpusher): New.
48 (target_unpush_up) New typedef.
49 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
50 target_unpush_up.
51 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
52
53 2018-03-27 Tom Tromey <tom@tromey.com>
54
55 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
56
57 2018-03-27 Pedro Alves <palves@redhat.com>
58 Tom Tromey <tom@tromey.com>
59
60 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
61 destructor. Now a class.
62 (gdb_readline_wrapper_cleanup): Remove function.
63 (gdb_readline_wrapper): Remove cleanups.
64
65 2018-03-27 Tom Tromey <tom@tromey.com>
66
67 * typeprint.h (struct type_print_options) <local_typedefs,
68 global_typedefs>: Remove "struct" keyword.
69 (class typedef_hash_table): New class.
70 (recursively_update_typedef_hash, add_template_parameters)
71 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
72 (find_typedef_in_hash): Don't declare.
73 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
74 (typedef_hash_table::recursively_update): Rename from
75 recursively_update_typedef_hash. Now a member.
76 (typedef_hash_table::add_template_parameters): Rename from
77 add_template_parameters. Now a member.
78 (typedef_hash_table::typedef_hash_table): Now a constructor;
79 rename from create_typedef_hash.
80 (typedef_hash_table::~typedef_hash_table): Now a destructor;
81 rename from free_typedef_hash.
82 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
83 (do_free_global_table): Remove.
84 (typedef_hash_table::typedef_hash_table): New constructor; renamed
85 from copy_type_recursive.
86 (create_global_typedef_table): Remove.
87 (typedef_hash_table::find_global_typedef): Now a member of
88 typedef_hash_table.
89 (typedef_hash_table::find_typedef): Rename from
90 find_typedef_in_hash; now a member.
91 (whatis_exp): Update.
92 * extension.h (struct ext_lang_type_printers): Add constructor and
93 destructor.
94 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
95 declare.
96 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
97 Now a constructor; rename from start_ext_lang_type_printers.
98 (ext_lang_type_printers): Now a destructor; rename from
99 free_ext_lang_type_printers.
100 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
101 Update.
102 (c_type_print_base_struct_union): Update. Remove cleanups.
103
104 2018-03-27 Tom Tromey <tom@tromey.com>
105
106 * dwarf-index-write.c: Include <cmath>.
107
108 2018-03-27 Joel Brobecker <brobecker@adacore.com>
109
110 * NEWS: Add entry describing new "set|show varsize-limit" command.
111 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
112 command.
113 * printcmd.c (_initialize_printcmd): Add "set var" alias of
114 "set variable".
115
116 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
117
118 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
119 dwarf-index-write.c
120 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
121 * dwarf-index-common.c: New file.
122 * dwarf-index-common.h: New file.
123 * dwarf-index-write.c: New file.
124 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
125 (struct dwarf2_section_info): Move from here.
126 (dwarf2_section_info_def): Likewise.
127 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
128 (offset_type): Likewise.
129 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
130 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
131 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
132 (byte_swap): Likewise.
133 (MAYBE_SWAP): Likewise.
134 (dwarf2_per_cu_ptr): Likewise.
135 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
136 (struct tu_stats): Likewise.
137 (struct dwarf2_per_objfile): Likewise.
138 (struct dwarf2_per_cu_data): Likewise.
139 (struct signatured_type): Likewise.
140 (sig_type_ptr): Likewise.
141 (DEF_VEC_P (sig_type_ptr)): Likewise.
142 (INDEX4_SUFFIX): Likewise.
143 (INDEX5_SUFFIX): Likewise.
144 (DEBUG_STR_SUFFIX): Likewise.
145 (dwarf2_read_section): Make non-static.
146 (mapped_index_string_hash): Move from here.
147 (dwarf5_djb_hash): Likewise.
148 (file_write): Likewise.
149 (class data_buf): Likewise.
150 (struct symtab_index_entry): Likewise.
151 (struct mapped_symtab): Likewise.
152 (find_slot): Likewise.
153 (hash_expand): Likewise.
154 (add_index_entry): Likewise.
155 (uniquify_cu_indices): Likewise.
156 (class c_str_view): Likewise.
157 (class c_str_view_hasher): Likewise.
158 (class vector_hasher): Likewise.
159 (write_hash_table): Likewise.
160 (psym_index_map): Likewise.
161 (struct addrmap_index_data): Likewise.
162 (add_address_entry): Likewise.
163 (add_address_entry_worker): Likewise.
164 (write_address_map): Likewise.
165 (symbol_kind): Likewise.
166 (write_psymbols): Likewise.
167 (struct signatured_type_index_data): Likewise.
168 (write_one_signatured_type): Likewise.
169 (recursively_count_psymbols): Likewise.
170 (recursively_write_psymbols): Likewise.
171 (class debug_names): Likewise.
172 (check_dwarf64_offsets): Likewise.
173 (psyms_seen_size): Likewise.
174 (write_gdbindex): Likewise.
175 (write_debug_names): Likewise.
176 (assert_file_size): Likewise.
177 (write_psymtabs_to_index): Likewise.
178 (save_gdb_index_command): Likewise.
179 (_initialize_dwarf2_read): Don't register the "save gdb-index"
180 command.
181 * dwarf2read.h: New file.
182
183 2018-03-27 Joel Brobecker <brobecker@adacore.com>
184
185 PR gdb/22670
186 * dwarf2read.c (dwarf2_physname): Do not return the demangled
187 symbol name if the CU's language stores symbol names in linkage
188 format.
189 * language.h (struct language_defn)
190 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
191 all instances of this struct.
192
193 2018-03-26 Tom Tromey <tom@tromey.com>
194
195 * stack.c (backtrace_command_1): Remove verbose code.
196
197 2018-03-26 Tom Tromey <tom@tromey.com>
198
199 * python/py-framefilter.c (py_print_type): Don't catch
200 exceptions. Return void.
201 (py_print_value): Likewise.
202 (py_print_single_arg): Likewise.
203 (enumerate_args): Don't catch exceptions.
204 (py_print_args): Likewise.
205 (py_print_frame): Likewise.
206 (gdbpy_apply_frame_filter): Catch exceptions here.
207
208 2018-03-26 Tom Tromey <tom@tromey.com>
209
210 * stack.c (_initialize_stack): Remove trailing newlines from help
211 text. Add "Usage" line to "backtrace" help.
212
213 2018-03-26 Tom Tromey <tom@tromey.com>
214
215 PR python/16486:
216 * python/py-framefilter.c (py_print_args): Call wrap_hint.
217
218 2018-03-26 Tom Tromey <tom@tromey.com>
219
220 * python/py-framefilter.c (py_print_single_arg): Return
221 EXT_LANG_BT_ERROR from catch.
222
223 2018-03-26 Tom Tromey <tom@tromey.com>
224
225 PR backtrace/15584:
226 * stack.c (backtrace_command_1): Move some code into no-filters
227 "if".
228
229 2018-03-26 Tom Tromey <tom@tromey.com>
230
231 * python/py-framefilter.c (throw_quit_or_print_exception): New
232 function.
233 (gdbpy_apply_frame_filter): Use it.
234
235 2018-03-26 Tom Tromey <tom@tromey.com>
236
237 PR cli/17716:
238 * python/py-framefilter.c (py_print_type, py_print_value)
239 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
240 RETURN_MASK_ERROR.
241
242 2018-03-26 Tom Tromey <tom@tromey.com>
243
244 * python/py-framefilter.c (enumerate_args): Use
245 gdb::unique_xmalloc_ptr.
246
247 2018-03-26 Tom Tromey <tom@tromey.com>
248
249 * python/py-framefilter.c (py_print_frame): Return
250 EXT_LANG_BT_OK.
251 (gdbpy_apply_frame_filter): Update comment.
252 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
253 Remove.
254 <EXT_LANG_BT_NO_FILTERS>: Change value.
255
256 2018-03-26 Tom Tromey <tom@tromey.com>
257
258 PR backtrace/15582:
259 * stack.c (backtrace_command): Parse "hide" argument.
260 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
261 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
262 constant.
263
264 2018-03-26 Tom Tromey <tom@tromey.com>
265
266 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
267 add "flags".
268 (backtrace_command): Remove "fulltrace", add "flags".
269
270 2018-03-26 Tom Tromey <tom@tromey.com>
271
272 * stack.c (backtrace_command): Rewrite command line parsing.
273
274 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
275
276 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
277
278 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
279
280 * filename-seen-cache.h: Add include guard.
281
282 2018-03-26 Keith Seitz <keiths@redhat.com>
283
284 * symfile.c (place_section): Remove "struct" from section_addr_info
285 in comment.
286 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
287 "struct" keyword from section_addr_info.
288
289 2018-03-26 Alan Hayward <alan.hayward@arm.com>
290
291 * regformats/regdef.h (reg): Add constructors.
292
293 2018-03-25 Pedro Alves <palves@redhat.com>
294
295 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
296 if then/else bodies in var_func_name extraction.
297
298 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
299
300 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
301 lookup_minimal_symbol() to find symbol entry.
302 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
303
304 2018-03-23 Keith Seitz <keiths@redhat.com>
305
306 PR c++/22968
307 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
308 nested type definitions for C++, too.
309
310 2018-03-23 Tom Tromey <tom@tromey.com>
311
312 * machoread.c (struct oso_el): Add a constructor. Don't define as
313 a typedef.
314 (macho_register_oso): Remove.
315 (macho_symtab_read): Take a std::vector.
316 (oso_el_compare_name): Now a std::sort comparator.
317 (macho_symfile_read_all_oso): Take a std::vector.
318 (macho_symfile_read): Use std::vector. Remove cleanups.
319
320 2018-03-22 Tom Tromey <tom@tromey.com>
321
322 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
323 (record_full_goto_bookmark): Use std::string.
324
325 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
326
327 PR tdep/18295
328 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
329 a single mask.
330
331 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
332
333 * rs6000-tdep.c (store_insn_p): New function.
334 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
335 and cr_reg to their unshifted values. Use store_insn_p to
336 match LR saves using either R1 or fdata->alloca_reg. Use
337 store_insn_p to match CR saves. Set alloca_reg_offset
338 when alloca_reg and framep are set. Remove lr_reg shift
339 when assigning to fdata->lr_register.
340
341 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
342
343 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
344 command line args instead of emitting a warning.
345
346 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * tracepoint.h (struct static_tracepoint_marker): Initialize
349 fields, define default constructor, move constructor and move
350 assignment, disable the rest.
351 <str_id, extra>: Make std::string.
352 (release_static_tracepoint_marker): Remove.
353 (free_current_marker): Remove.
354 * tracepoint.c (free_current_marker): Remove.
355 (parse_static_tracepoint_marker_definition): Adjust to
356 std::string, use new hex2str overload.
357 (release_static_tracepoint_marker): Remove.
358 (print_one_static_tracepoint_marker): Get marker by reference
359 and adjust to std::string.
360 (info_static_tracepoint_markers_command): Adjust to std::vector
361 changes
362 * target.h (static_tracepoint_marker_p): Remove typedef.
363 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
364 (struct target_ops) <to_static_tracepoint_marker_at>: Return
365 bool.
366 <to_static_tracepoint_markers_by_strid>: Return std::vector.
367 * target-debug.h
368 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
369 (target_debug_print_std_vector_static_tracepoint_marker): New.
370 (target_debug_print_struct_static_tracepoint_marker_p): Rename
371 to...
372 (target_debug_print_static_tracepoint_marker_p): ... this.
373 * target-delegates.c: Re-generate.
374 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
375 Make std::string.
376 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
377 (decode_static_tracepoint_spec): Adjust to std::vector.
378 (tracepoint_print_one_detail): Adjust to std::string.
379 (strace_marker_decode_location): Adjust to std::string.
380 (update_static_tracepoint): Adjust to std::string, remove call
381 to release_static_tracepoint_marker.
382 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
383 Adjust to std::vector.
384 * remote.c (remote_static_tracepoint_marker_at): Return bool.
385 (remote_static_tracepoint_markers_by_strid): Adjust to
386 std::vector.
387 * common/rsp-low.h (hex2str): New overload with explicit count
388 of bytes.
389 * common/rsp-low.c (hex2str): New overload with explicit count
390 of bytes.
391 * unittests/rsp-low-selftests.c (test_hex2str): New function.
392 (_initialize_rsp_low_selftests): Add test_hex2str test.
393 * unittests/tracepoint-selftests.c
394 (test_parse_static_tracepoint_marker_definition): Adjust to
395 std::string.
396
397 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * tracepoint.c (parse_static_tracepoint_marker_definition):
400 Consider case where the definition is followed by more
401 definitions.
402 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
403 tracepoint-selftests.c.
404 * unittests/tracepoint-selftests.c: New.
405
406 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
407
408 * MAINTAINERS (Write After Approval): Add Pedro Franco de
409 Carvalho.
410
411 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
412
413 * gdb/symtab.c (find_pc_sect_line): fixed indentation.
414
415 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
416
417 * gdb/symtab.c (find_pc_sect_line): now uses binary search.
418
419 2018-03-19 Tom Tromey <tom@tromey.com>
420
421 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
422 "IDENT" production.
423
424 2018-03-19 Pedro Alves <palves@redhat.com>
425 Tom Tromey <tom@tromey.com>
426
427 * unittests/observable-selftests.c: New file.
428 * common/observable.h: New file.
429 * observable.h: New file.
430 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
431 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
432 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
433 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
434 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
435 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
436 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
437 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
438 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
439 python/py-breakpoint.c, python/py-finishbreakpoint.c,
440 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
441 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
442 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
443 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
444 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
445 tui/tui-interp.c, valops.c: Update all users.
446 * tui/tui-hooks.c (tui_bp_created_observer)
447 (tui_bp_deleted_observer, tui_bp_modified_observer)
448 (tui_inferior_exit_observer, tui_before_prompt_observer)
449 (tui_normal_stop_observer, tui_register_changed_observer):
450 Remove.
451 (tui_observers_token): New global.
452 (attach_or_detach, tui_attach_detach_observers): New functions.
453 (tui_install_hooks, tui_remove_hooks): Use
454 tui_attach_detach_observers.
455 * record-btrace.c (record_btrace_thread_observer): Remove.
456 (record_btrace_thread_observer_token): New global.
457 * observer.sh: Remove.
458 * observer.c: Rename to observable.c.
459 * observable.c (namespace gdb_observers): Define new objects.
460 (observer_debug): Move into gdb_observers namespace.
461 (struct observer, struct observer_list, xalloc_observer_list_node)
462 (xfree_observer_list_node, generic_observer_attach)
463 (generic_observer_detach, generic_observer_notify): Remove.
464 (_initialize_observer): Update.
465 Don't include observer.inc.
466 * Makefile.in (generated_files): Remove observer.h, observer.inc.
467 (clean mostlyclean): Likewise.
468 (observer.h, observer.inc): Remove targets.
469 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
470 (COMMON_SFILES): Use observable.c, not observer.c.
471 * .gitignore: Remove observer.h.
472
473 2018-03-18 Tom Tromey <tom@tromey.com>
474
475 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
476 gdb::def_vector.
477 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
478
479 2018-03-17 Tom Tromey <tom@tromey.com>
480
481 * auto-load.c (auto_load_objfile_script_1): Use std::string.
482
483 2018-03-17 Tom Tromey <tom@tromey.com>
484
485 * target.c (class scoped_target_fd): New.
486 (target_fileio_close_cleanup): Remove.
487 (target_fileio_read_alloc_1): Use scoped_target_fd.
488
489 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
490
491 * silent-rules.mk: New.
492 * Makefile.in: Include silent-rules.mk
493 (srcdir, VPATH, top_srcdir): Move up.
494 (COMPILE): Add ECHO_CXX.
495 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
496 (init.c): Add ECHO_INIT_C.
497 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
498 (version.c): Add ECHO_GEN.
499 (printcmd.o): Add ECHO_CXX.
500 (target-float.o): Add ECHO_CXX.
501 (ada-exp.o): Add ECHO_CXX.
502 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
503 (insight$(EXEEXT)): Add ECHO_CXXLD.
504 * gnulib/configure.ac: Add AM_SILENT_RULES.
505 * gnulib/aclocal.m4: Re-generate.
506 * gnulib/configure: Re-generate.
507 * gnulib/import/Makefile.in: Re-generate.
508
509 2018-03-16 Tom Tromey <tom@tromey.com>
510
511 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
512 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
513 * utils.c (do_free_section_addr_info)
514 (make_cleanup_free_section_addr_info): Remove.
515 * symfile.h (struct other_sections): Add constructor.
516 (struct section_addr_info): Remove.
517 (section_addr_info): New typedef.
518 (struct sym_fns) <sym_offsets>: Change type of parameter.
519 (build_section_addr_info_from_objfile)
520 (relative_addr_info_to_section_offsets, addr_info_make_relative)
521 (default_symfile_offsets, symbol_file_add)
522 (symbol_file_add_from_bfd)
523 (build_section_addr_info_from_section_table): Update.
524 (alloc_section_addr_info, free_section_addr_info): Don't declare.
525 * symfile.c (alloc_section_addr_info): Remove.
526 (build_section_addr_info_from_section_table): Change return type.
527 Update.
528 (build_section_addr_info_from_bfd)
529 (build_section_addr_info_from_objfile): Likewise.
530 (free_section_addr_info): Remove.
531 (relative_addr_info_to_section_offsets): Change type of "addrs".
532 (addrs_section_compar): Now a std::sort comparator.
533 (addrs_section_sort): Change return type.
534 (addr_info_make_relative): Change type of "addrs". Update.
535 (default_symfile_offsets, syms_from_objfile_1)
536 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
537 (symbol_file_add_separate): Update.
538 (symbol_file_add): Change type of "addrs". Update.
539 (add_symbol_file_command): Update. Remove cleanups.
540 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
541 cleanups.
542 * symfile-debug.c (debug_sym_offsets): Change type of "info".
543 * solib.c (solib_read_symbols): Update.
544 * objfiles.c (objfile_relocate): Update. Remove cleanups.
545 * machoread.c (macho_symfile_offsets): Update.
546 * jit.c (jit_bfd_try_read_symtab): Update.
547
548 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
551 unittests/utils-selftests.c.
552 * unittests/utils-selftests.c: New file.
553
554 2018-03-14 Tom Tromey <tom@tromey.com>
555
556 PR cli/14977:
557 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
558 for NULL.
559
560 2018-03-14 Tom Tromey <tom@tromey.com>
561
562 PR cli/19918:
563 * printcmd.c (printf_pointer): Allow "-" in format.
564
565 2018-03-14 Tom Tromey <tom@tromey.com>
566
567 * printcmd.c (_initialize_printcmd): Add usage to printf.
568
569 2018-03-14 Yao Qi <qiyao@sourceware.org>
570
571 * MAINTAINERS: Update my email address.
572
573 2018-03-13 Tom Tromey <tom@tromey.com>
574
575 * machoread.c (macho_check_dsym): Change filenamep to a
576 std::string*.
577 (macho_symfile_read): Update.
578 * symfile.c (load_command): Use std::string.
579
580 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
583 to error message string.
584 (riscv_register_name): Use xsnprintf instead of sprintf.
585 (riscv_insn::fetch_instruction): Use gdb_assert instead of
586 internal_error.
587 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
588 error.
589 (riscv_push_dummy_call): Likewise.
590
591 2018-03-12 Tom Tromey <tom@tromey.com>
592
593 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
594 Use gdb::byte_vector.
595 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
596
597 2018-03-12 Yao Qi <yao.qi@linaro.org>
598
599 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
600 parameter type to readable_regcache.
601 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
602 the declaration.
603
604 2018-03-11 Tom Tromey <tom@tromey.com>
605
606 * dwarf2read.c (struct nextfield): Add initializers.
607 (struct nextfnfield): Remove.
608 (struct fnfieldlist): Add initializers. Remove "length" and
609 "head", use std::vector.
610 (struct decl_field_list): Remove.
611 (struct field_info): Add initializers.
612 <fields, baseclasses>: Now std::vector.
613 <nbaseclasses, nfnfields, typedef_field_list_count,
614 nested_types_list_count>: Remove.
615 (dwarf2_add_field, dwarf2_add_type_defn)
616 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
617 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
618 (process_structure_scope): Update.
619
620 2018-03-11 Tom Tromey <tom@tromey.com>
621
622 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
623 for use by std::sort.
624 (build_type_psymtabs_1): Use std::vector.
625
626 2018-03-09 Eli Zaretskii <eliz@gnu.org>
627
628 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
629 and LIBMPFR in the printed configuration.
630
631 2018-03-08 Tom Tromey <tom@tromey.com>
632
633 * source.c (get_filename_and_charpos): Use scoped_fd.
634 * nto-procfs.c (procfs_open_1): Use scoped_fd.
635 (procfs_pidlist): Likewise.
636 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
637 (iterate_over_mappings): Likewise.
638
639 2018-03-08 Tom Tromey <tom@tromey.com>
640
641 * infcall.c (struct call_return_meta_info)
642 <stack_temporaries_enabled>: Remove.
643 (get_call_return_value, call_function_by_hand_dummy): Update.
644 * thread.c (disable_thread_stack_temporaries): Remove.
645 (enable_thread_stack_temporaries): Remove.
646 (thread_stack_temporaries_enabled_p): Return bool.
647 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
648 (get_last_thread_stack_temporary): Update.
649 * eval.c (evaluate_subexp): Update.
650 * gdbthread.h (class enable_thread_stack_temporaries): Now a
651 class, not a function.
652 (value_ptr, value_vec): Remove typedefs.
653 (class thread_info) <stack_temporaries_enabled>: Now bool.
654 <stack_temporaries>: Now a std::vector.
655 (thread_stack_temporaries_enabled_p)
656 (value_in_thread_stack_temporaries): Return bool.
657
658 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
659
660 * remote.c (putpkt_binary): Fix omitted bytes reporting.
661 (getpkt_or_notif_sane_1): Likewise.
662
663 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
664
665 * build-id.c (build_id_to_debug_bfd): Use std::string.
666
667 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * build-id.c (find_separate_debug_file_by_buildid): Return
670 std::string.
671 * build-id.h (find_separate_debug_file_by_buildid): Return
672 std::string.
673 * coffread.c (coff_symfile_read): Adjust to std::string.
674 * elfread.c (elf_symfile_read): Adjust to std::string.
675 * symfile.c (separate_debug_file_exists): Change parameter to
676 std::string.
677 (find_separate_debug_file): Return std::string.
678 (find_separate_debug_file_by_debuglink): Return std::string.
679 * symfile.h (find_separate_debug_file_by_debuglink): Return
680 std::string.
681
682 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * common/xml-utils.c (xml_escape_text): Move code to...
685 (xml_escape_text_append): ... this new function.
686 * common/xml-utils.h (xml_escape_text_append): New declaration.
687 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
688 New function.
689 (_initialize_xml_utils): register test_xml_escape_text_append as
690 a selftest.
691
692 2018-03-07 Alan Hayward <alan.hayward@arm.com>
693
694 * defs.h: Remove MAX_REGISTER_SIZE.
695 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
696 asserts.
697 * python/py-unwind.c (pyuw_sniffer): Likewise.
698
699 2018-03-07 Tom Tromey <tom@tromey.com>
700
701 * linux-tdep.c (linux_info_proc): Update.
702 * target.h (struct target_ops) <to_fileio_readlink>: Return
703 optional<string>.
704 (target_fileio_readlink): Return optional<string>.
705 * remote.c (remote_hostio_readlink): Return optional<string>.
706 * inf-child.c (inf_child_fileio_readlink): Return
707 optional<string>.
708 * target.c (target_fileio_readlink): Return optional<string>.
709
710 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * regcache.c (cooked_read_test): Add riscv to the list of
713 architectures that have a save_reggroup.
714
715 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
716
717 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
718 value is not a dynamic class object.
719
720 2018-03-06 Tom Tromey <tom@tromey.com>
721
722 * rust-exp.y: Formatting fixes.
723
724 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
725
726 * riscv-tdep.c (riscv_register_name): Remove target description
727 support.
728 (riscv_gdbarch_init): Remove target description check.
729
730 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
733 comment.
734 * riscv-tdep.h: Likewise.
735
736 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
737
738 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
739 (riscv_pseudo_register_write): Delete.
740 (riscv_gdbarch_init): Remove all use of pseudo registers.
741
742 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * record-btrace.c (btrace_print_lines): Replace cleanup
745 parameter with RAII equivalents.
746 (btrace_insn_history): Replace cleanup with RAII equivalents.
747 * ui-out.h (make_cleanup_ui_out_list_begin_end,
748 make_cleanup_ui_out_tuple_begin_end): Remove.
749 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
750 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
751 make_cleanup_ui_out_list_begin_end): Remove.
752
753 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
756 parameter types to std::vector. Use bool.
757 (record_btrace_wait): Replace VEC(tp_t) with
758 std::vector<thread_info *>.
759 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
760
761 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * record-btrace.c (record_btrace_disable_callback): Remove.
764 (struct scoped_btrace_disable): New.
765 (record_btrace_open): Use scoped_btrace_disable.
766
767 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
770 reading values from registers.
771
772 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
775 where appropriate.
776
777 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
780 change parameter type. Use GDB's print functions, and use
781 core_addr_to_string where appropriate.
782 (riscv_push_dummy_call): Use core_addr_to_string where
783 appropriate, update call to riscv_print_arg_location, and reindent
784 a few lines.
785 (riscv_return_value): Update call to riscv_print_arg_location.
786
787 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
788 Tim Newsome <tim@sifive.com>
789 Albert Ou <a0u@eecs.berkeley.edu>
790 Darius Rad <darius@bluespec.com>
791
792 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
793 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
794 (ALLDEPFILES): Add riscv-tdep.c
795 * configure.tgt: Add riscv support.
796 * riscv-tdep.c: New file.
797 * riscv-tdep.h: New file.
798 * NEWS: Mention new target.
799 * MAINTAINERS: Add entry for riscv.
800
801 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
804 fields within aggregates.
805
806 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * record-btrace.c (btrace_print_lines): Change type of flags to
809 gdb_disassembly_flags.
810
811 2018-03-04 John Baldwin <jhb@FreeBSD.org>
812
813 * fbsd-nat.c: Include "inf-ptrace.h".
814 (USE_SIGTRAP_SIGINFO): Conditionally define.
815 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
816 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
817 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
818 function.
819 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
820 Likewise.
821 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
822 Likewise.
823 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
824 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
825 "supports_stopped_by_hw_breakpoint" target methods.
826
827 2018-03-04 John Baldwin <jhb@FreeBSD.org>
828
829 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
830 * fbsd-nat.c (debug_fbsd_nat): New variable.
831 (show_fbsd_nat_debug): New function.
832 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
833 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
834
835 2018-03-04 John Baldwin <jhb@FreeBSD.org>
836
837 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
838 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
839 prototype.
840 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
841 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
842 method.
843
844 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
847 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
848
849 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
850
851 * charset.c (struct charset_vector): New.
852 (charsets): Change type to charset_vector.
853 (find_charset_names): Adjust.
854 (add_one): Adjust.
855 (_initialize_charset): Adjust.
856
857 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
858
859 * progspace.h (struct program_space) <deleted_solibs>: Change
860 type to std::vector<std::string>.
861 * progspace.c (clear_program_space_solib_cache): Adjust.
862 * breakpoint.c (print_solib_event): Adjust.
863 (check_status_catch_solib): Adjust.
864 * solib.c (update_solib_list): Adjust.
865 * ui-out.h (class ui_out) <field_string>: New overload.
866 * ui-out.c (ui_out::field_string): New overload.
867
868 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
869
870 * progspace.h (struct program_space): Add constructor and
871 destructor, initialize fields.
872 (add_program_space): Remove.
873 * progspace.c (add_program_space): Rename to...
874 (program_space::program_space): ... this.
875 (release_program_space): Rename to...
876 (program_space::~program_space): ... this.
877 (delete_program_space): Use delete to delete program_space.
878 (initialize_progspace): Use new to allocate program_space.
879 * inferior.c (add_inferior_with_spaces): Likewise.
880 (clone_inferior_command): Likewise.
881 * infrun.c (follow_fork_inferior): Likewise.
882 (handle_vfork_child_exec_or_exit): Likewise.
883
884 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
885
886 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
887 (delim_string_to_char_ptr_vec): Return std::vector of
888 gdb::unique_xmalloc_ptr.
889 (dirnames_to_char_ptr_vec_append): Take std::vector of
890 gdb::unique_xmalloc_ptr.
891 (dirnames_to_char_ptr_vec): Return std::vector of
892 gdb::unique_xmalloc_ptr.
893 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
894 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
895 (delim_string_to_char_ptr_vec): Return an std::vector of
896 gdb::unique_xmalloc_ptr, adjust the code.
897 (dirnames_to_char_ptr_vec_append): Take an std::vector of
898 gdb::unique_xmalloc_ptr, adjust the code.
899 (dirnames_to_char_ptr_vec): Return an std::vector of
900 gdb::unique_xmalloc_ptr, adjust the code.
901 * auto-load.c (auto_load_safe_path_vec): Change type to
902 std::vector of gdb::unique_xmalloc_ptr.
903 (auto_load_expand_dir_vars): Return an std::vector of
904 gdb::unique_xmalloc_ptr, adjust the code.
905 (auto_load_safe_path_vec_update): Adjust.
906 (filename_is_in_auto_load_safe_path_vec): Adjust.
907 (auto_load_objfile_script_1): Adjust.
908 * build-id.c (build_id_to_debug_bfd): Adjust.
909 * linux-thread-db.c (thread_db_load_search): Adjust.
910 * source.c (add_path): Adjust.
911 (openp): Adjust.
912 * symfile.c (find_separate_debug_file): Adjust.
913 * utils.c (do_free_char_ptr_vec): Remove.
914 (make_cleanup_free_char_ptr_vec): Remove.
915
916 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
917
918 PR gdb/22907
919 * common/pathstuff.c: Conditionally include "<windows.h>".
920
921 2018-03-01 Georg Sauthoff <mail@georg.so>
922
923 PR gdb/22888
924 * gcore.in: Quote variables and switch interpreter to bash.
925
926 2018-03-01 Tom Tromey <tom@tromey.com>
927
928 * dwarf2read.c (alloc_discriminant_info): Fix default_index
929 assertion. Add assertion for discriminant_index.
930 (quirk_rust_enum): Use correct base type name in univariant case.
931
932 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
933
934 * record.c (get_call_history_modifiers): Return a
935 record_print_flags.
936 (cmd_record_call_history): Adjust.
937 * record-btrace.c (record_btrace_call_history): Adjust.
938 (record_btrace_call_history_range): Adjust.
939 (record_btrace_call_history_from): Adjust.
940 * target-debug.h (target_debug_print_record_print_flags): New.
941 * target-delegates.c: Re-generate.
942 * target.c (target_call_history): Change flags type.
943 (target_call_history_from): Likewise.
944 (target_call_history_range): Likewise.
945 * target.h (struct target_ops) <target_call_history>: Likewise.
946 (target_call_history_from): Likewise.
947 (target_call_history_range): Likewise.
948
949 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
950 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * common/common-utils.c: Include "sys/stat.h".
953 (is_regular_file): Move here from "source.c"; change return
954 type to "bool".
955 * common/common-utils.h (is_regular_file): New prototype.
956 * common/pathstuff.c (contains_dir_separator): New function.
957 * common/pathstuff.h (contains_dir_separator): New prototype.
958 * source.c: Don't include "sys/stat.h".
959 (is_regular_file): Move to "common/common-utils.c".
960
961 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
962
963 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
964 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
965 * auto-load.c: Include "common/pathstuff.h".
966 * common/common-def.h (current_directory): Move here.
967 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
968 function.
969 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
970 prototype.
971 * common/pathstuff.c: New file.
972 * common/pathstuff.h: New file.
973 * compile/compile.c: Include "common/pathstuff.h".
974 * defs.h (current_directory): Move to "common/common-defs.h".
975 * dwarf2read.c: Include "common/pathstuff.h".
976 * exec.c: Likewise.
977 * guile/scm-safe-call.c: Likewise.
978 * linux-thread-db.c: Likewise.
979 * main.c: Likewise.
980 * nto-tdep.c: Likewise.
981 * objfiles.c: Likewise.
982 * source.c: Likewise.
983 * symtab.c: Likewise.
984 * utils.c: Include "common/pathstuff.h".
985 (gdb_realpath): Move to "common/pathstuff.c".
986 (gdb_realpath_keepfile): Likewise.
987 (gdb_abspath): Likewise.
988 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
989 (gdb_realpath_keepfile): Likewise.
990 (gdb_abspath): Likewise.
991
992 2018-02-28 John Baldwin <jhb@FreeBSD.org>
993
994 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
995 wildcard process pid for super_resume for kernels with a
996 specific bug.
997
998 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
999
1000 * compile/compile.c (get_args): Add additional comments
1001 explaining function.
1002
1003 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
1004 Tom Tromey <tom@tromey.com>
1005
1006 * target.h (memory_write_request_s): Remove typedef. Don't define
1007 VEC.
1008 (target_write_memory_blocks): Change argument to std::vector.
1009 (struct memory_write_request): Add constructor.
1010 * target-memory.c (compare_block_starting_address): Return bool.
1011 Change argument types.
1012 (claim_memory): Change arguments to use std::vector.
1013 (split_regular_and_flash_blocks, blocks_to_erase)
1014 (compute_garbled_blocks): Likewise.
1015 (cleanup_request_data, cleanup_write_requests_vector): Remove.
1016 (target_write_memory_blocks): Change argument to std::vector.
1017 * symfile.c (struct load_section_data): Add constructor and
1018 destructor. Use std::vector for "requests".
1019 (struct load_progress_data): Add initializers.
1020 (load_section_callback): Update. Use "new".
1021 (clear_memory_write_data): Remove.
1022 (generic_load): Update.
1023
1024 2018-02-27 Alan Hayward <alan.hayward@arm.com>
1025
1026 * arch/aarch64.h: Use common/tdesc.h.
1027
1028 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1029
1030 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1031 architecture with a 64-bit ABI.
1032
1033 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1034
1035 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1036 ahead of target description loading.
1037
1038 2018-02-26 Tom Tromey <tom@tromey.com>
1039
1040 * stack.c (backtrace_command_1): Update.
1041 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1042 of "flags".
1043 * python/py-framefilter.c (py_print_frame)
1044 (gdbpy_apply_frame_filter): Change type of "flags".
1045 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1046 of "flags".
1047 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1048 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1049 * extension.h (enum frame_filter_flag): Rename from
1050 frame_filter_flags.
1051 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1052 (apply_ext_lang_frame_filter): Change type of "flags".
1053 * extension.c (apply_ext_lang_frame_filter): Change type of
1054 "flags".
1055 * extension-priv.h (struct extension_language_ops)
1056 <apply_frame_filter>: Change type of "flags".
1057
1058 2018-02-26 Tom Tromey <tom@tromey.com>
1059
1060 PR python/16497:
1061 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
1062 off-by-one in py_end computation.
1063 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1064 PRINT_MORE_FRAMES.
1065 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1066 constant.
1067
1068 2018-02-26 Tom Tromey <tom@tromey.com>
1069
1070 * dwarf2read.c (struct variant_field): New.
1071 (struct nextfield) <variant>: New field.
1072 (dwarf2_add_field): Handle DW_TAG_variant_part.
1073 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1074 discriminated union.
1075 (read_structure_type): Handle DW_TAG_variant_part.
1076 (handle_struct_member_die): New function, extracted from
1077 process_structure_scope. Handle DW_TAG_variant.
1078 (process_structure_scope): Handle discriminated unions. Call
1079 handle_struct_member_die.
1080
1081 2018-02-26 Tom Tromey <tom@tromey.com>
1082
1083 * rust-lang.h (rust_last_path_segment): Declare.
1084 * rust-lang.c (rust_last_path_segment): Now public. Change
1085 contract.
1086 (struct disr_info): Remove.
1087 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1088 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1089 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1090 (rust_enum_p, rust_enum_variant): New function.
1091 (rust_underscore_fields): Remove "offset" parameter.
1092 (rust_print_enum): New function.
1093 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1094 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1095 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
1096 enums.
1097 (rust_internal_print_type): New function, from rust_print_type.
1098 Remove enum code.
1099 (rust_print_type): Call rust_internal_print_type.
1100 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1101 Update enum handling.
1102 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1103 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1104 (rust_union_quirks): New functions.
1105 (process_full_comp_unit, process_full_type_unit): Call
1106 rust_union_quirks.
1107 (process_structure_scope): Update rust_unions if necessary.
1108
1109 2018-02-26 Tom Tromey <tom@tromey.com>
1110
1111 * value.h (value_union_variant): Declare.
1112 * valops.c (value_union_variant): New function.
1113 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1114 (struct discriminant_info): New.
1115 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1116 enumerator.
1117 (struct main_type) <flag_discriminated_union>: New field.
1118
1119 2018-02-26 Tom Tromey <tom@tromey.com>
1120
1121 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1122 unittests/unpack-selftests.c.
1123 * unittests/unpack-selftests.c: New file.
1124 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1125
1126 2018-02-26 Yao Qi <yao.qi@linaro.org>
1127
1128 * dwarf2read.c (struct partial_die_info) <read>: New method.
1129 (read_partial_die): Remove the declaration.
1130 (load_partial_dies): Update.
1131 (partial_die_info::partial_die_info):
1132 (read_partial_die): Change it to partial_die_info::read.
1133
1134 2018-02-26 Yao Qi <yao.qi@linaro.org>
1135
1136 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1137 (fixup_partial_die): Remove declaration.
1138 (scan_partial_symbols): Update.
1139 (partial_die_parent_scope): Likewise.
1140 (partial_die_full_name): Likewise.
1141 (fixup_partial_die): Change it to partial_die_info::fixup.
1142
1143 2018-02-26 Yao Qi <yao.qi@linaro.org>
1144
1145 * dwarf2read.c (read_partial_die): Update the declaration.
1146 (load_partial_dies): Caller update.
1147 (read_partial_die): Remove one argument abbrev_len.
1148
1149 2018-02-26 Yao Qi <yao.qi@linaro.org>
1150
1151 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1152 assignment operator.
1153 (load_partial_dies): Use ctor and copy ctor.
1154 (read_partial_die): Update.
1155 (dwarf2_cu::find_partial_die): Use ctor.
1156
1157 2018-02-26 Yao Qi <yao.qi@linaro.org>
1158
1159 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1160 (find_partial_die_in_comp_unit): Change it to
1161 dwarf2_cu::find_partial_die.
1162 (find_partial_die): Update.
1163
1164 2018-02-26 Yao Qi <yao.qi@linaro.org>
1165
1166 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1167 is NULL.
1168
1169 2018-02-26 Yao Qi <yao.qi@linaro.org>
1170
1171 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1172
1173 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1174
1175 * arch/amd64.h: Use common/tdesc.h.
1176 * arch/i386.c: Likewise.
1177 * arch/i386.h: Likewise.
1178 * arch/tic6x.c: Likewise.
1179 * arch/tdesc.h: Move file from here...
1180 * common/tdesc.h: ...to here.
1181 * features/aarch64-core.c: Regenerate.
1182 * features/aarch64-fpu.c: Regenerate.
1183 * features/i386/32bit-avx.c: Regenerate.
1184 * features/i386/32bit-avx512.c: Regenerate.
1185 * features/i386/32bit-core.c: Regenerate.
1186 * features/i386/32bit-linux.c: Regenerate.
1187 * features/i386/32bit-mpx.c: Regenerate.
1188 * features/i386/32bit-pkeys.c: Regenerate.
1189 * features/i386/32bit-sse.c: Regenerate.
1190 * features/i386/64bit-avx.c: Regenerate.
1191 * features/i386/64bit-avx512.c: Regenerate.
1192 * features/i386/64bit-core.c: Regenerate.
1193 * features/i386/64bit-linux.c: Regenerate.
1194 * features/i386/64bit-mpx.c: Regenerate.
1195 * features/i386/64bit-pkeys.c: Regenerate.
1196 * features/i386/64bit-segments.c: Regenerate.
1197 * features/i386/64bit-sse.c: Regenerate.
1198 * features/i386/x32-core.c: Regenerate.
1199 * features/tic6x-c6xp.c: Regenerate.
1200 * features/tic6x-core.c: Regenerate.
1201 * features/tic6x-gp.c: Regenerate.
1202 * target-descriptions.c: Use common/tdesc.h.
1203 * target-descriptions.h: Likewise.
1204
1205 2018-02-24 Tom Tromey <tom@tromey.com>
1206
1207 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1208 (try_thread_db_load_from_dir, thread_db_load_search): Use
1209 std::string.
1210 (info_auto_load_libthread_db_compare): Return bool. Change
1211 argument types.
1212 (info_auto_load_libthread_db): Use std::vector, std::string.
1213 Remove cleanups.
1214
1215 2018-02-24 Tom Tromey <tom@tromey.com>
1216
1217 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1218 std::string.
1219 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1220 std::string*.
1221 * gdbarch.c: Rebuild.
1222 * gdbarch.h: Rebuild.
1223 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1224 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1225 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1226 std::string*.
1227
1228 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1229
1230 * gdbtypes.h (sect_offset): Change type to uint64_t.
1231 (sect_offset_str): New function.
1232 * dwarf2read.c (create_addrmap_from_aranges): Use
1233 sect_offset_str.
1234 (error_check_comp_unit_head): Likewise.
1235 (create_debug_type_hash_table): Likewise.
1236 (read_cutu_die_from_dwo): Likewise.
1237 (init_cutu_and_read_dies): Likewise.
1238 (init_cutu_and_read_dies_no_follow): Likewise.
1239 (process_psymtab_comp_unit_reader): Likewise.
1240 (partial_die_parent_scope): Likewise.
1241 (peek_die_abbrev): Likewise.
1242 (process_queue): Likewise.
1243 (dwarf2_physname): Likewise.
1244 (read_namespace_alias): Likewise.
1245 (read_import_statement): Likewise.
1246 (create_dwo_cu_reader): Likewise.
1247 (create_cus_hash_table): Likewise.
1248 (lookup_dwo_cutu): Likewise.
1249 (inherit_abstract_dies): Likewise.
1250 (read_func_scope): Likewise.
1251 (read_call_site_scope): Likewise.
1252 (dwarf2_add_member_fn): Likewise.
1253 (read_common_block): Likewise.
1254 (read_module_type): Likewise.
1255 (read_typedef): Likewise.
1256 (read_subrange_type): Likewise.
1257 (load_partial_dies): Likewise.
1258 (read_partial_die): Likewise.
1259 (find_partial_die): Likewise.
1260 (read_str_index): Likewise.
1261 (dwarf2_string_attr): Likewise.
1262 (build_error_marker_type): Likewise.
1263 (lookup_die_type): Likewise.
1264 (dump_die_shallow): Likewise.
1265 (follow_die_ref): Likewise.
1266 (dwarf2_fetch_die_loc_sect_off): Likewise.
1267 (dwarf2_fetch_constant_bytes): Likewise.
1268 (follow_die_sig): Likewise.
1269 (get_signatured_type): Likewise.
1270 (get_DW_AT_signature_type): Likewise.
1271 (dwarf2_find_containing_comp_unit): Likewise.
1272 (set_die_type): Likewise.
1273
1274 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1275
1276 * arch/aarch64.c: Include "common-defs.h".
1277 * arch/amd64.c: Likewise.
1278 * arch/i386.c: Likewise.
1279
1280 2018-02-21 Tom Tromey <tom@tromey.com>
1281
1282 * value.h: (extract_field_op): Update.
1283 * eval.c (extract_field_op): Return a const char *.
1284 * expression.h (parse_expression_for_completion): Update.
1285 * completer.c (complete_expression): Update.
1286 (add_struct_fields): Make fieldname const.
1287 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1288 (mark_completion_tag, parse_exp_in_context_1): Update.
1289 (parse_expression_for_completion): Change "name" to
1290 unique_xmalloc_ptr*.
1291
1292 2018-02-21 Tom Tromey <tom@tromey.com>
1293
1294 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1295
1296 2018-02-21 Yao Qi <yao.qi@linaro.org>
1297
1298 * avr-tdep.c (avr_read_pc): Change parameter type to
1299 readable_regcache.
1300 * gdbarch.sh (read_pc): Likewise.
1301 * gdbarch.c: Re-generated.
1302 * gdbarch.h: Re-generated.
1303 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1304 readable_regcache.
1305 * ia64-tdep.c (ia64_read_pc): Likewise.
1306 * mips-tdep.c (mips_read_pc): Likewise.
1307 * spu-tdep.c (spu_read_pc): Likewise.
1308
1309 2018-02-21 Yao Qi <yao.qi@linaro.org>
1310
1311 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1312 * regcache-dump.c: New file.
1313 * regcache.c: Move register_dump to regcache-dump.c.
1314 (maintenance_print_registers): Likewise.
1315 (maintenance_print_raw_registers): Likewise.
1316 (maintenance_print_cooked_registers): Likewise.
1317 (maintenance_print_register_groups): Likewise.
1318 (maintenance_print_remote_registers): Likewise.
1319 (_initialize_regcache): Likewise.
1320 * regcache.h (register_dump): Moved from regcache.c.
1321
1322 2018-02-21 Yao Qi <yao.qi@linaro.org>
1323
1324 * regcache.c (regcache::regcache): Update.
1325 (regcache::invalidate): Move it to detached_regcache::invalidate.
1326 (get_thread_arch_aspace_regcache): Update.
1327 (regcache::raw_update): Update.
1328 (regcache::cooked_read): Remove some code.
1329 (regcache::cooked_read_value): Likewise.
1330 (regcache::raw_write): Remove assert on m_readonly_p.
1331 (regcache::raw_supply_integer): Move it to
1332 detached_regcache::raw_supply_integer.
1333 (regcache::raw_supply_zeroed): Likewise.
1334 * regcache.h (detached_regcache) <raw_supply_integer>: New
1335 declaration.
1336 <raw_supply_zeroed, invalidate>: Likewise.
1337 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1338 <invalidate>: Likewise.
1339 <m_readonly_p>: Removed.
1340
1341 2018-02-21 Yao Qi <yao.qi@linaro.org>
1342
1343 * infcmd.c (get_return_value): Let stop_regs point to
1344 get_current_regcache.
1345 * regcache.c (regcache::regcache): Remove.
1346 (register_dump_reg_buffer): New class.
1347 (regcache_print): Adjust.
1348 * regcache.h (regcache): Remove constructors.
1349
1350 2018-02-21 Yao Qi <yao.qi@linaro.org>
1351
1352 * regcache.c (class register_dump): New class.
1353 (register_dump_regcache, register_dump_none): New class.
1354 (register_dump_remote, register_dump_groups): New class.
1355 (regcache_print): Update.
1356 * regcache.h (regcache_dump_what): Move it to regcache.c.
1357 (regcache) <dump>: Remove.
1358
1359 2018-02-21 Yao Qi <yao.qi@linaro.org>
1360
1361 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1362 reg_buffer_rw *.
1363 (jit_unwind_reg_set_impl): Call raw_supply.
1364 (jit_frame_sniffer): Use reg_buffer_rw.
1365 * record-full.c (record_full_core_regbuf): Change its type.
1366 (record_full_core_open_1): Use reg_buffer_rw.
1367 (record_full_close): Likewise.
1368 (record_full_core_fetch_registers): Use regcache->raw_supply.
1369 (record_full_core_store_registers): Likewise.
1370 * regcache.c (regcache::get_register_status): Move it to
1371 reg_buffer.
1372 (regcache_raw_set_cached_value): Remove.
1373 (regcache::raw_set_cached_value): Remove.
1374 (regcache::raw_write): Call raw_supply.
1375 (regcache::raw_supply): Move it to reg_buffer_rw.
1376 * regcache.h (regcache_raw_set_cached_value): Remove.
1377 (reg_buffer_rw): New class.
1378
1379 2018-02-21 Yao Qi <yao.qi@linaro.org>
1380
1381 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1382 readonly_detached_regcache.
1383 (dummy_frame_prev_register): Use regcache->cooked_read.
1384 * frame.c (frame_save_as_regcache): Change return type.
1385 (frame_pop): Update.
1386 * frame.h (frame_save_as_regcache): Update declaration.
1387 * inferior.h (get_infcall_suspend_state_regcache): Update
1388 declaration.
1389 * infrun.c (infcall_suspend_state) <registers>: use
1390 readonly_detached_regcache.
1391 (save_infcall_suspend_state): Don't use regcache_dup.
1392 (get_infcall_suspend_state_regcache): Change return type.
1393 * linux-fork.c (struct fork_info) <savedregs>: Change to
1394 readonly_detached_regcache.
1395 <pc>: New field.
1396 (fork_save_infrun_state): Don't use regcache_dup.
1397 (info_checkpoints_command): Adjust.
1398 * mi/mi-main.c (register_changed_p): Update declaration.
1399 (mi_cmd_data_list_changed_registers): Use
1400 readonly_detached_regcache.
1401 (register_changed_p): Change parameter type to
1402 readonly_detached_regcache.
1403 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1404 readonly_detached_regcache.
1405 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1406 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1407 New.
1408 (regcache::save): Move it to reg_buffer.
1409 (regcache::restore): Change parameter type.
1410 (regcache_dup): Remove.
1411 * regcache.h (reg_buffer) <save>: New method.
1412 (readonly_detached_regcache): New class.
1413 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1414 readonly_detached_regcache.
1415 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1416
1417 2018-02-21 Yao Qi <yao.qi@linaro.org>
1418
1419 * frame.c (frame_save_as_regcache): Use regcache method save.
1420 (frame_pop): Use regcache method restore.
1421 * infrun.c (restore_infcall_suspend_state): Likewise.
1422 * linux-fork.c (fork_load_infrun_state): Likewise.
1423 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1424 save.
1425 * regcache.c (regcache_save): Remove.
1426 (regcache::restore): More asserts.
1427 (regcache_cpy): Remove.
1428 * regcache.h (regcache_save): Remove the declaration.
1429 (regcache::restore): Move from private to public.
1430 Remove the friend declaration of regcache_cpy.
1431 (regcache_cpy): Remove declaration.
1432
1433 2018-02-21 Yao Qi <yao.qi@linaro.org>
1434
1435 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1436 parameter type to 'readable_regcache *'.
1437 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1438 * arm-tdep.c (arm_neon_quad_read): Likewise.
1439 (arm_pseudo_read): Likewise.
1440 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1441 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1442 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1443 * gdbarch.c: Re-generated.
1444 * gdbarch.h: Re-generated.
1445 * gdbarch.sh (pseudo_register_read): Change parameter type to
1446 'readable_regcache *'.
1447 (pseudo_register_read_value): Likewise.
1448 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1449 (h8300_pseudo_register_read): Likewise.
1450 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1451 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1452 (i386_pseudo_register_read_into_value): Likewise.
1453 (i386_pseudo_register_read_value): Likewise.
1454 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1455 declaration.
1456 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1457 * m32c-tdep.c (m32c_raw_read): Likewise.
1458 (m32c_read_flg): Likewise.
1459 (m32c_banked_register): Likewise.
1460 (m32c_banked_read): Likewise.
1461 (m32c_sb_read): Likewise.
1462 (m32c_part_read): Likewise.
1463 (m32c_cat_read): Likewise.
1464 (m32c_r3r2r1r0_read): Likewise.
1465 (m32c_pseudo_register_read): Likewise.
1466 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1467 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1468 (mep_pseudo_cr64_read): Likewise.
1469 (mep_pseudo_register_read): Likewise.
1470 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1471 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1472 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1473 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1474 (regcache::cooked_read): Likewise.
1475 (regcache::cooked_read_value): Likewise.
1476 (regcache_cooked_read_signed):
1477 (regcache::cooked_read): Likewise.
1478 * regcache.h (readable_regcache): New class.
1479 (regcache): Inherit readable_regcache. Move some methods to
1480 readable_regcache.
1481 * rl78-tdep.c (rl78_pseudo_register_read): Change
1482 parameter type to 'readable_regcache *'.
1483 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1484 (e500_pseudo_register_read): Change parameter type to
1485 'readable_regcache *'.
1486 (dfp_pseudo_register_read): Likewise.
1487 (vsx_pseudo_register_read): Likewise.
1488 (efpr_pseudo_register_read): Likewise.
1489 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1490 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1491 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1492 (sh64_pseudo_register_read): Likewise.
1493 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1494 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1495 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1496 (spu_pseudo_register_read): Likewise.
1497 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1498 (xtensa_pseudo_register_read): Likewise.
1499
1500 2018-02-21 Yao Qi <yao.qi@linaro.org>
1501
1502 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1503 (regcache::arch): Move it to reg_buffer::arch.
1504 (regcache::register_buffer): Likewise.
1505 (regcache::assert_regnum): Likewise.
1506 (regcache::num_raw_registers): Likewise.
1507 * regcache.h (reg_buffer): New class.
1508 (regcache): Inherit reg_buffer.
1509
1510 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1511
1512 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1513 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1514
1515 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1516
1517 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1518
1519 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1520
1521 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1522 (SFILES): Remove common/*.c files.
1523 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1524 * common/common.host: Add common reference.
1525 * configure.ac: Likewise.
1526 * configure: Regenerate.
1527
1528 2018-02-16 Yao Qi <yao.qi@linaro.org>
1529
1530 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1531 (block_initialize_namespace): Use new.
1532 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1533 (dwarf2_free_objfile): Use delete.
1534 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1535 (copy_type_recursive): Use new.
1536 * gdb_obstack.h (allocate_on_obstack): New.
1537
1538 2018-02-15 Yao Qi <yao.qi@linaro.org>
1539
1540 PR gdb/22849
1541 * inferior.c (exit_inferior_1): Reset inf->control.
1542
1543 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1544
1545 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1546 declaration.
1547
1548 2018-02-14 Pedro Alves <palves@redhat.com>
1549
1550 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1551 frame_cleanup_after_sniffer on exception.
1552
1553 2018-02-14 Tom Tromey <tom@tromey.com>
1554
1555 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1556 const.
1557 (solib_bfd_open): Make pathname const.
1558 * solib.c (solib_bfd_open): Make pathname const.
1559 * solib-spu.c (spu_bfd_fopen): Make name const.
1560 (spu_bfd_open): Make pathname const.
1561 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1562 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1563
1564 2018-02-14 Tom Tromey <tom@tromey.com>
1565
1566 * symfile.c (symfile_bfd_open): Update.
1567 * source.h (openp, source_full_path_of, find_and_open_source):
1568 Change argument type to unique_xmalloc_ptr.
1569 * source.c (openp): Take a unique_xmalloc_ptr.
1570 (source_full_path_of, find_and_open_source): Likewise.
1571 (open_source_file, symtab_to_fullname): Update.
1572 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1573 unique_xmalloc_ptr.
1574 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1575 (exec_file_find): Update.
1576 * psymtab.c (psymtab_to_fullname): Update.
1577 * nto-tdep.h (nto_find_and_open_solib): Update.
1578 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1579 unique_xmalloc_ptr.
1580 * exec.c (exec_file_attach): Update.
1581 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1582 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1583
1584 2018-02-14 Tom Tromey <tom@tromey.com>
1585
1586 * solib.c: Include source.h.
1587 * nto-tdep.c: Include source.h.
1588 * mi/mi-cmd-env.c: Include source.h.
1589 * infcmd.c: Include source.h.
1590 * exec.c: Include source.h.
1591 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1592 (add_path, directory_switch, source_path, init_source_path): Move
1593 declarations...
1594 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1595 (add_path, directory_switch, source_path, init_source_path):
1596 ...here.
1597
1598 2018-02-14 Tom Tromey <tom@tromey.com>
1599
1600 * solist.h (exec_file_find, solib_find): Return
1601 unique_xmalloc_ptr.
1602 (solib_bfd_fopen): Take a const char *.
1603 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1604 (exec_file_find, solib_find): Likewise.
1605 (solib_bfd_fopen): Do not take ownership of "pathname".
1606 (solib_bfd_open): Use unique_xmalloc_ptr.
1607 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1608 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1609 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1610 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1611
1612 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1613
1614 * ada-lang.c (name_match_type_from_name): Remove reference to
1615 ada_name_for_lookup in function's documentation.
1616 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1617
1618 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * defs.h (enum openp_flags): New enum.
1621 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1622 Move to enum openp_flags.
1623 (openp_flags): New enum flags.
1624 (openp): Change parameter type to openp_flags.
1625 * source.c (openp): Change parameter type to openp_flags.
1626 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1627 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1628
1629 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1630
1631 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1632 per-command.
1633
1634 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1637 into...
1638 (class dwarf2_queue_guard): ...the destructor of this new class.
1639 (dw2_do_instantiate_symtab): Create instance of the new class
1640 dwarf2_queue_guard, remove cleanup.
1641
1642 2018-02-09 Tom Tromey <tom@tromey.com>
1643
1644 * source.c (find_source_lines): Don't reference past the end of
1645 the vector.
1646
1647 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1648
1649 * remote.c (remote_btrace_maybe_reopen): Change error message.
1650 * btrace.c (btrace_enable): Likewise.
1651 (parse_xml_btrace): Likewise.
1652 (parse_xml_btrace_conf): Likewise.
1653
1654 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1655
1656 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1657 (linux_enable_pt, linux_enable_bts): Call
1658 diagnose_perf_event_open_fail.
1659
1660 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1661
1662 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1663 Remove parameter and change return type. Update callers. Move it.
1664 (linux_enable_bts, linux_enable_pt): Improve error message.
1665 (linux_enable_pt): Remove zero buffer size check.
1666 (linux_enable_btrace): Improve error messages. Remove NULL return
1667 check.
1668
1669 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1670
1671 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1672 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1673 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1674 (linux_supports_pt, linux_supports_btrace): Remove.
1675 (linux_enable_bts): Call cpu_supports_bts.
1676 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1677 * remote.c (remote_supports_btrace): Remove.
1678 (init_remote_ops): Remove remote_supports_btrace.
1679 * target-delegates.c: Regenerated.
1680 * target.c (target_supports_btrace): Remove.
1681 * target.h (target_ops) <to_supports_btrace>: Remove
1682 (target_supports_btrace): Remove.
1683 * x86-linux-nat.c (x86_linux_create_target): Remove
1684 linux_supports_btrace.
1685
1686 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1687
1688 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1689 btrace failed.
1690 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1691 exception and use message in own exception.
1692
1693 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1694
1695 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1696 (perf_event_pt_event_type): Use gdb_file_up.
1697 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1698 scoped_fd, and scoped_mmap.
1699
1700 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1701
1702 * common/scoped_mmap.h: New.
1703 * unittests/scoped_mmap-selftest.c: New.
1704 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1705 unittests/scoped_mmap-selftest.c.
1706
1707 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1708
1709 * common/scoped_fd.h: New.
1710 * unittests/scoped_fd-selftest.c: New.
1711 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1712 unittests/scoped_fd-selftest.c.
1713
1714 2018-02-09 Tom Tromey <tom@tromey.com>
1715
1716 * auto-load.c (auto_load_section_scripts): Use
1717 gdb::unique_xmalloc_ptr.
1718
1719 2018-02-09 Tom Tromey <tom@tromey.com>
1720
1721 * auto-load.c (execute_script_contents): Use std::string.
1722
1723 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1724
1725 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1726 Python function, rather than a new command.
1727
1728 2018-02-08 Tom Tromey <tom@tromey.com>
1729
1730 * solib.c (solib_find_1): Use std::string.
1731 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1732
1733 2018-02-08 Tom Tromey <tom@tromey.com>
1734
1735 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1736
1737 2018-02-08 Tom Tromey <tom@tromey.com>
1738
1739 * source.c (find_source_lines): Use gdb::def_vector.
1740
1741 2018-02-08 Tom Tromey <tom@tromey.com>
1742
1743 * macrocmd.c (struct temporary_macro_definition): New.
1744 (macro_define_command): Use temporary_macro_definition. Remove
1745 cleanups.
1746 (free_macro_definition_ptr): Remove.
1747
1748 2018-02-08 Tom Tromey <tom@tromey.com>
1749
1750 * macroexp.c (maybe_expand): Use std::string.
1751
1752 2018-02-08 Tom Tromey <tom@tromey.com>
1753
1754 * macroexp.c (struct macro_buffer): Add initializers for some
1755 members.
1756 (init_buffer, init_shared_buffer, free_buffer)
1757 (free_buffer_return_text): Remove.
1758 (macro_buffer): New constructors.
1759 (~macro_buffer): New destructor.
1760 (macro_buffer::set_shared): New method.
1761 (macro_buffer::resize_buffer, macro_buffer::appendc)
1762 (macro_buffer::appendmem): Now methods, not free functions.
1763 (set_token, append_tokens_without_splicing, stringify)
1764 (macro_stringify): Update.
1765 (gather_arguments): Change return type. Remove argc_p argument,
1766 add args_ptr argument. Use std::vector.
1767 (substitute_args): Remove argc argument. Accept std::vector.
1768 (expand): Update. Use std::vector.
1769 (scan, macro_expand, macro_expand_next): Update.
1770
1771 2018-02-08 Tom Tromey <tom@tromey.com>
1772
1773 * symtab.c (default_collect_symbol_completion_matches_break_on):
1774 Use unique_xmalloc_ptr.
1775 * macroscope.h: (sal_macro_scope, user_macro_scope)
1776 (default_macro_scope): Return unique_xmalloc_ptr.
1777 * macroscope.c (sal_macro_scope, user_macro_scope)
1778 (default_macro_scope): Return unique_xmalloc_ptr.
1779 * macroexp.h (macro_expand, macro_expand_once): Return
1780 unique_xmalloc_ptr.
1781 * macroexp.c (macro_expand, macro_expand_once): Return
1782 unique_xmalloc_ptr.
1783 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1784 (info_macro_command, info_macros_command): Use
1785 unique_xmalloc_ptr.
1786 * compile/compile-c-support.c (write_macro_definitions): Use
1787 unique_xmalloc_ptr.
1788 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1789
1790 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1791
1792 * value.c (value_static_field): Assign field type instead of
1793 containing type when returning an optimized out value.
1794
1795 2018-02-06 Yao Qi <yao.qi@linaro.org>
1796
1797 * ft32-tdep.c (ft32_read_pc): Remove.
1798 (ft32_write_pc): Remove.
1799 (ft32_gdbarch_init): Update.
1800 * m32r-tdep.c (m32r_read_pc): Remove.
1801 (m32r_gdbarch_init): Update.
1802 * mep-tdep.c (mep_read_pc): Remove.
1803 (mep_gdbarch_init): Update.
1804 * microblaze-tdep.c (microblaze_write_pc): Remove.
1805 (microblaze_gdbarch_init): Update.
1806 * mn10300-tdep.c (mn10300_read_pc): Remove.
1807 (mn10300_write_pc): Remove.
1808 (mn10300_gdbarch_init): Update.
1809 * moxie-tdep.c (moxie_read_pc): Remove.
1810 (moxie_write_pc): Remove.
1811 (moxie_gdbarch_init): Update.
1812
1813 2018-02-06 Yao Qi <yao.qi@linaro.org>
1814
1815 * expprint.c (print_subexp_standard): Handle
1816 OP_F77_UNDETERMINED_ARGLIST.
1817 (dump_subexp_body_standard): Likewise.
1818
1819 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1820
1821 * target-descriptions.c (tdesc_element_visitor) Add empty
1822 implementations.
1823 (tdesc_type): Move make_gdb_type from here.
1824 (tdesc_type_builtin): Likewise.
1825 (tdesc_type_vector): Likewise.
1826 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1827 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1828 (make_gdb_type_union): Likewise.
1829 (make_gdb_type_flags): Likewise.
1830 (make_gdb_type_enum): Likewise.
1831 (make_gdb_type): New function.
1832 (tdesc_register_type): Use static make_gdb_type.
1833
1834 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1835
1836 * infcmd.c (default_print_one_register_info): Align natural-format
1837 column values consistently one under another.
1838 (pad_to_column): New function.
1839
1840 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1841
1842 * dwarf2read.c (dwarf2_physname): Move commment.
1843
1844 2018-02-01 Leszek Swirski <leszeks@google.com>
1845
1846 * varobj.c (varobj_formatted_print_options): Allow recursive
1847 pretty printing if pretty printing is enabled.
1848
1849 2018-02-01 Leszek Swirski <leszeks@google.com>
1850
1851 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1852 names after a structop as a filename.
1853
1854 2018-02-01 Yao Qi <yao.qi@linaro.org>
1855
1856 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1857 (arm_record_coproc_data_proc): Likewise.
1858
1859 2018-02-01 Yao Qi <yao.qi@linaro.org>
1860
1861 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1862
1863 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1864
1865 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1866 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1867
1868 2018-01-31 Pedro Alves <palves@redhat.com>
1869
1870 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1871 * inflow.c (child_terminal_save_inferior): Wrap reference to
1872 tcgetpgrp in HAVE_TERMIOS_H.
1873 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1874 _WIN32.
1875 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1876 always iterate over all inferiors.
1877 (gdbsim_cntrl_c): Adjust.
1878 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1879
1880 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1881
1882 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1883 index type is objfile-owned if the element type is as well.
1884
1885 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1886
1887 GDB 8.1 released.
1888
1889 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1890
1891 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1892 "features/s390x-linux64.c".
1893 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1894 s390_linux32 and s390x_linux64.
1895 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1896 default tdesc.
1897 * s390-tdep.c: Include "features/s390-linux32.c" and
1898 "features/s390x-linux64.c".
1899 (s390_tdesc_valid): Add check for tdesc_has_registers.
1900 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1901 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1902 tdesc_s390x_linux64.
1903 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1904 tdesc_s390x_linux64 to...
1905 * s390-tdep.h: ...here.
1906
1907 2018-01-30 Pedro Alves <palves@redhat.com>
1908
1909 PR gdb/13211
1910 * config.in, configure: Regenerate.
1911 * configure.ac: Check for getpgid.
1912 * go32-nat.c (go32_pass_ctrlc): New.
1913 (go32_target): Install it.
1914 * inf-child.c (inf_child_target): Install
1915 child_terminal_save_inferior, child_pass_ctrlc and
1916 child_interrupt.
1917 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1918 (inf_ptrace_target): No longer install it.
1919 * infcmd.c (interrupt_target_1): Adjust.
1920 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1921 (child_interrupt): Declare.
1922 (inferior::terminal_state): New.
1923 * inflow.c (struct terminal_info): Update comments.
1924 (inferior_process_group): Delete.
1925 (terminal_is_ours): Delete.
1926 (gdb_tty_state): New.
1927 (child_terminal_init): Adjust.
1928 (is_gdb_terminal, sharing_input_terminal_1)
1929 (sharing_input_terminal): New functions.
1930 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1931 Set the process's actual process group in the foreground if
1932 possible. Handle is_ours_for_output/is_ours distinction. Don't
1933 mark terminal as the inferior's if not sharing GDB's terminal.
1934 Don't check attach_flag.
1935 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1936 pass down a target_terminal_state.
1937 (child_terminal_save_inferior): New, factored out from ...
1938 (child_terminal_ours_1): ... this. Handle
1939 target_terminal_state::is_ours_for_output.
1940 (child_interrupt, child_pass_ctrlc): New.
1941 (inflow_inferior_exit): Clear the inferior's terminal_state.
1942 (copy_terminal_info): Copy the inferior's terminal state.
1943 (_initialize_inflow): Remove reference to terminal_is_ours.
1944 * inflow.h (inferior_process_group): Delete.
1945 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1946 * procfs.c (procfs_target): Don't install procfs_interrupt.
1947 (procfs_interrupt): Delete.
1948 * remote.c (remote_serial_quit_handler): Adjust.
1949 (remote_interrupt): Remove ptid parameter. Adjust.
1950 * target-delegates.c: Regenerate.
1951 * target.c: Include "terminal.h".
1952 (target_terminal::terminal_state): Rename to ...
1953 (target_terminal::m_terminal_state): ... this.
1954 (target_terminal::init): Adjust.
1955 (target_terminal::inferior): Adjust to per-inferior
1956 terminal_state.
1957 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1958 (target_terminal::ours, target_terminal::ours_for_output): Use
1959 target_terminal_is_ours_kind.
1960 (target_interrupt): Remove ptid parameter. Adjust.
1961 (default_target_pass_ctrlc): Adjust.
1962 * target.h (target_ops::to_terminal_save_inferior): New field.
1963 (target_ops::to_interrupt): Remove ptid_t parameter.
1964 (target_interrupt): Remove ptid_t parameter. Update comment.
1965 (target_pass_ctrlc): Update comment.
1966 * target/target.h (target_terminal_state): New scoped enum,
1967 factored out of ...
1968 (target_terminal::terminal_state): ... here.
1969 (target_terminal::inferior): Update comments.
1970 (target_terminal::restore_inferior): New.
1971 (target_terminal::is_inferior, target_terminal::is_ours)
1972 (target_terminal::is_ours_for_output): Adjust.
1973 (target_terminal::scoped_restore_terminal_state): Adjust to
1974 rename, and call restore_inferior() instead of inferior().
1975 (target_terminal::scoped_restore_terminal_state::m_state): Change
1976 type.
1977 (target_terminal::terminal_state): Rename to ...
1978 (target_terminal::m_terminal_state): ... this and change type.
1979
1980 2018-01-30 Pedro Alves <palves@redhat.com>
1981
1982 * linux-nat.c (wait_for_signal): New function.
1983 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1984 directly.
1985 (async_terminal_is_ours)
1986 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1987 (linux_nat_add_target): Don't override
1988 to_terminal_inferior/to_terminal_ours.
1989
1990 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1991
1992 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1993
1994 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1995
1996 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1997 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1998 dwarf2_per_objfile_free here.
1999 (dwarf2_per_objfile_free): Remove.
2000 (_initialize_dwarf2_read): Don't register
2001 dwarf2_per_objfile_free as a registry cleanup.
2002
2003 2018-01-27 Eli Zaretskii <eliz@gnu.org>
2004
2005 Avoid compilation errors in MinGW native builds
2006
2007 The error is triggered by including python-internal.h, and the
2008 error message is:
2009
2010 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2011 from build-gnulib/import/math.h:27,
2012 from d:/usr/Python26/include/pyport.h:235,
2013 from d:/usr/Python26/include/Python.h:58,
2014 from python/python-internal.h:94,
2015 from python/py-arch.c:24:
2016 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2017 using ::hypot;
2018 ^~~~~
2019
2020 This happens because Python headers define 'hypot' to expand t
2021 '_hypot' in the Windows builds.
2022 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2023 'hypoth'. This avoids a compilation error.
2024
2025 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2026
2027 * MAINTAINERS (Write After Approval): Fix ordering.
2028
2029 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2030
2031 * MAINTAINERS (Write After Approval): Add Alan Hayward.
2032
2033 2018-01-26 Alan Modra <amodra@gmail.com>
2034
2035 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2036 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2037 Remove nop. Make const. Comment.
2038 (powerpc32_plt_stub_so_2): New.
2039 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2040 Correct count. Update uses.
2041 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2042 Move common code reading PLT entry word. Correct
2043 powerpc32_plt_stub PLT address calculation.
2044 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2045 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2046 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2047 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2048 (ppc64_standard_linkage8): Likewise.
2049 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2050 Correct insns description.
2051 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2052
2053 2018-01-24 Pedro Alves <palves@redhat.com>
2054
2055 GCC PR libstdc++/83906
2056 * gdbtypes.c (operator==(const dynamic_prop &,
2057 const dynamic_prop &)): New.
2058 (operator==(const range_bounds &, const range_bounds &)): New.
2059 (check_types_equal): Use them instead of memcmp.
2060 * gdbtypes.h (operator==(const dynamic_prop &,
2061 const dynamic_prop &)): Declare.
2062 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2063 (operator==(const range_bounds &, const range_bounds &)): Declare.
2064 (operator!=(const range_bounds &, const range_bounds &)): Declare.
2065
2066 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2067
2068 * s390-linux-tdep.c (s390_record_address_mask)
2069 (s390_record_calc_disp_common, s390_record_calc_disp)
2070 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2071 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2072 (s390_process_record): Move to s390-tdep.c.
2073 (s390_linux_init_abi_any): Adjust.
2074 * s390-tdep.c (s390_record_address_mask)
2075 (s390_record_calc_disp_common, s390_record_calc_disp)
2076 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2077 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2078 (s390_process_record): Moved from s390-linux-tdep.c
2079 (s390_gdbarch_init): Adjust.
2080
2081 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2082
2083 * s390-linux-nat.c (s390-tdep.h): New include.
2084 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2085 (HFILES_NO_SRCDIR): Add s390-tdep.h.
2086 (ALLDEPFILES): Add s390-tdep.c.
2087 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2088 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2089 * s390-tdep.h: ...this. New file.
2090 * s390-linux-tdep.c (s390-tdep.h): New include.
2091 (_initialize_s390_tdep): Rename to...
2092 (_initialize_s390_linux_tdep): ...this and adjust.
2093 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2094 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2095 s390-tdep.h.
2096 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2097 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2098 (s390_is_partial_instruction, s390_software_single_step)
2099 (is_non_branch_ril, s390_displaced_step_copy_insn)
2100 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2101 (s390_prologue_data, s390_addr, s390_store, s390_load)
2102 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2103 (s390_register_call_saved, s390_guess_tracepoint_registers)
2104 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2105 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2106 (s390_pseudo_register_name, s390_pseudo_register_type)
2107 (s390_pseudo_register_read, s390_pseudo_register_write)
2108 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2109 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2110 (s390_addr_bits_remove, s390_address_class_type_flags)
2111 (s390_address_class_type_flags_to_name)
2112 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2113 (s390_function_arg_float, s390_function_arg_vector)
2114 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2115 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2116 (s390_frame_align, s390_register_return_value, s390_return_value)
2117 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2118 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2119 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2120 (s390_trad_frame_prev_register, s390_unwind_cache)
2121 (s390_prologue_frame_unwind_cache)
2122 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2123 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2124 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2125 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2126 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2127 (s390_frame_base_address, s390_local_base_address)
2128 (s390_frame_base, s390_gcc_target_options)
2129 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2130 (s390_validate_reg_range, s390_tdesc_valid)
2131 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2132 * s390-tdep.c: ...this. New file.
2133
2134 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2135
2136 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2137 (s390_process_record, s390_gdbarch_tdep_alloc)
2138 (s390_linux_init_abi_any): Use/set new hook.
2139
2140 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2141
2142 * s390-linux-tdep.c (osabi.h): New include.
2143 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2144 (s390_linux_init_abi_any): New functions.
2145 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2146
2147 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2148
2149 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2150 tdesc_has_registers check
2151
2152 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2153
2154 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2155 (s390_validate_reg_range): New macro.
2156 (s390_gdbarch_init): Adjust.
2157
2158 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2159
2160 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2161 (s390_gdbarch_tdep_alloc): Adjust.
2162 (s390_gdbarch_init): Adjust.
2163
2164 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2165
2166 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2167 <have_tdb>: Change type to bool.
2168 (s390_gdbarch_tdep_alloc): Adjust.
2169 (s390_gdbarch_init): Adjust.
2170
2171 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2172
2173 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2174 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2175 (s390_gdbarch_tdep_alloc): New function.
2176 (s390_gdbarch_init): Allocate tdep at start and use its fields
2177 instead of separate variables.
2178
2179 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2180
2181 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2182 when looking for cached gdbarch and add comment for remaining.
2183
2184 2018-01-22 Pedro Alves <palves@redhat.com>
2185 Sergio Durigan Junior <sergiodj@redhat.com>
2186
2187 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2188 case.
2189
2190 2018-01-22 Maciej W. Rozycki <macro@mips.com>
2191
2192 * MAINTAINERS: Update my company e-mail address.
2193
2194 2018-01-22 Yao Qi <yao.qi@linaro.org>
2195
2196 * regcache.c (cooked_write_test): New function.
2197 (_initialize_regcache): Register the test.
2198
2199 2018-01-22 Yao Qi <yao.qi@linaro.org>
2200
2201 * ia64-tdep.c (ia64_pseudo_register_read): Call
2202 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2203 * m32c-tdep.c (m32c_cat_read): Likewise.
2204 (m32c_r3r2r1r0_read): Likewise.
2205 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2206 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2207
2208 2018-01-22 Yao Qi <yao.qi@linaro.org>
2209
2210 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2211 method raw_read instead of regcache_raw_read.
2212 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2213 * arm-tdep.c (arm_neon_quad_read): Likewise.
2214 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2215 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2216 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2217 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2218 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2219 (i386_pseudo_register_read_into_value): Likewise.
2220 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2221 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2222 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2223 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2224 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2225 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2226 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2227 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2228 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2229
2230 2018-01-22 Yao Qi <yao.qi@linaro.org>
2231
2232 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2233 * configure.tgt: Remove target mt.
2234 * mt-tdep.c: Remove.
2235 * regcache.c (cooked_read_test): Remove the check for mt.
2236
2237 2018-01-22 Yao Qi <yao.qi@linaro.org>
2238
2239 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2240 instead of gdbarch_pseudo_register_read_value.
2241
2242 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2243
2244 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2245 language is Ada.
2246
2247 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2248
2249 * linespec.c (create_sals_line_offset): Remove code that preserved
2250 the symtab_and_line's line number.
2251
2252 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * varobj.c (varobj_create): Don't set valid_block when creating a
2255 floating varobj.
2256
2257 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * varobj.c (varobj_create): Remove out of date comment.
2260
2261 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 PR mi/20395
2264 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2265 updating innermost block.
2266 * parse.c (innermost_block_tracker::update): Take extra type
2267 parameter, and check types match before updating innermost block.
2268 (write_dollar_variable): Update innermost block for registers.
2269 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2270 (innermost_block_tracker::innermost_block_tracker): Initialise
2271 m_types member.
2272 (innermost_block_tracker::reset): Take type parameter.
2273 (innermost_block_tracker::update): Take type parameter, and pass
2274 type through as needed.
2275 (innermost_block_tracker::m_types): New member.
2276 * varobj.c (varobj_create): Pass type when reseting innermost
2277 block.
2278
2279 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2282 * ada-lang.c (resolve_subexp): Likewise.
2283 * breakpoint.c (set_breakpoint_condition) Likewise.
2284 (watch_command_1) Likewise.
2285 * c-exp.y (variable): Likewise.
2286 * d-exp.y (PrimaryExpression): Likewise.
2287 * f-exp.y (variable): Likewise.
2288 * go-exp.y (variable): Likewise.
2289 * m2-exp.y (variable): Likewise.
2290 * objfiles.c (objfile::~objfile): Likewise.
2291 * p-exp.y (variable): Likewise.
2292 * parse.c (innermost_block): Change type.
2293 * parser-defs.h (class innermost_block_tracker): New.
2294 (innermost_block): Change to innermost_block_tracker.
2295 * printcmd.c (display_command): Switch to innermost_block API.
2296 (do_one_display): Likewise.
2297 * rust-exp.y (do_one_display): Likewise.
2298 * symfile.c (clear_symtab_users): Likewise.
2299 * varobj.c (varobj_create): Switch to innermost_block API, replace
2300 use of innermost_block with block stored on varobj object.
2301
2302 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * expression.h (innermost_block): Remove declaration.
2305 * varobj.c: Add 'parser-defs.h' include.
2306
2307 2018-01-19 Tom Tromey <tom@tromey.com>
2308
2309 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2310 symbols in the static and global blocks.
2311
2312 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2313
2314 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2315 gdb_ptrace.h, and move including gdb_wait.h ...
2316 * nat/linux-ptrace.h: ... to here.
2317
2318 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2319
2320 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2321 inf_ptrace_detach_success.
2322 (inf_ptrace_detach_success): Add inferior parameter, use it
2323 instead of inferior_ptid, pass it to detach_inferior.
2324 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2325 parameter.
2326 * inferior.c (detach_inferior): Add overload that takes an
2327 inferior object.
2328 * inferior.h (detach_inferior): Likewise.
2329 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2330 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2331 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2332
2333 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2334
2335 * target.h (struct target_ops) <to_detach>: Add inferior
2336 parameter.
2337 (target_detach): Likewise.
2338 * target.c (dispose_inferior): Pass inferior down.
2339 (target_detach): Pass inferior down. Assert that it is equal to
2340 the current inferior.
2341 * aix-thread.c (aix_thread_detach): Pass inferior down.
2342 * corefile.c (core_file_command): Pass current_inferior() down.
2343 * corelow.c (core_detach): Add inferior parameter.
2344 * darwin-nat.c (darwin_detach): Likewise.
2345 * gnu-nat.c (gnu_detach): Likewise.
2346 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2347 * infcmd.c (detach_command): Pass current_inferior() down to
2348 target_detach.
2349 * infrun.c (follow_fork_inferior): Pass parent_inf to
2350 target_detach.
2351 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2352 target_detach.
2353 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2354 * linux-thread-db.c (thread_db_detach): Likewise.
2355 * nto-procfs.c (procfs_detach): Likewise.
2356 * procfs.c (procfs_detach): Likewise.
2357 * record.c (record_detach): Likewise.
2358 * record.h (struct inferior): Forward-declare.
2359 (record_detach): Add inferior parameter.
2360 * remote-sim.c (gdbsim_detach): Likewise.
2361 * remote.c (remote_detach_1): Likewise.
2362 (remote_detach): Likewise.
2363 (extended_remote_detach): Likewise.
2364 * sol-thread.c (sol_thread_detach): Likewise.
2365 * target-debug.h (target_debug_print_inferior_p): New macro.
2366 * target-delegates.c: Re-generate.
2367 * top.c (kill_or_detach): Pass inferior down to target_detach.
2368 * windows-nat.c (windows_detach): Add inferior parameter.
2369
2370 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2371
2372 * target.h (struct target_ops) <to_detach>: Remove args
2373 parameter.
2374 (target_detach): Likewise.
2375 * target.c (dispose_inferior): Adjust.
2376 (target_detach): Remove args parameter, adjust.
2377 * aix-thread.c (aix_thread_detach): Adjust.
2378 * corefile.c (core_file_command): Adjust.
2379 * corelow.c (core_detach): Adjust.
2380 * darwin-nat.c (darwin_detach): Adjust.
2381 * gnu-nat.c (gnu_detach): Adjust.
2382 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2383 * infcmd.c (detach_command): Adjust
2384 * infrun.c (follow_fork_inferior): Adjust.
2385 (handle_vfork_child_exec_or_exit): Adjust.
2386 * linux-fork.c (linux_fork_detach): Remove args parameter.
2387 * linux-fork.h (linux_fork_detach): Likewise.
2388 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2389 * linux-thread-db.c (thread_db_detach): Likewise.
2390 * nto-procfs.c (procfs_detach): Likewise.
2391 * procfs.c (procfs_detach): Likewise.
2392 (do_detach): Remove signo parameter.
2393 * record.c (record_detach): Remove args parameter.
2394 * record.h (record_detach): Likewise.
2395 * remote-sim.c (gdbsim_detach): Likewise.
2396 * remote.c (remote_detach_1): Likewise.
2397 (remote_detach): Likewise.
2398 (extended_remote_detach): Likewise.
2399 * sol-thread.c (sol_thread_detach): Likewise.
2400 * target-delegates.c: Re-generate.
2401 * top.c (struct qt_args) <args>: Remove field.
2402 (kill_or_detach): Don't pass args.
2403 (quit_force): Don't set args.
2404 * windows-nat.c (windows_detach): Remove args parameter.
2405
2406 2018-01-19 Yao Qi <yao.qi@linaro.org>
2407
2408 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2409 (arm_linux_init_abi): Install it.
2410
2411 2018-01-19 Yao Qi <yao.qi@linaro.org>
2412
2413 * osabi.c (gdb_osabi_names): Extend the regexp for
2414 arm-linux-gnueabihf.
2415
2416 2018-01-18 Yao Qi <yao.qi@linaro.org>
2417
2418 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2419 m_abbrevs.
2420 (abbrev_table::add_abbrev): Update.
2421 (abbrev_table::lookup_abbrev): Update.
2422
2423 2018-01-18 Yao Qi <yao.qi@linaro.org>
2424
2425 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2426
2427 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2428
2429 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2430 to "std::string".
2431
2432 2018-01-17 Tom Tromey <tom@tromey.com>
2433
2434 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2435
2436 2018-01-17 Tom Tromey <tom@tromey.com>
2437
2438 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2439 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2440 (create_array_type_with_stride): Update.
2441 * dwarf2read.c (set_die_type): Update.
2442
2443 2018-01-17 Tom Tromey <tom@tromey.com>
2444
2445 * dwarf2read.c (delayed_method_info): Remove typedef.
2446 (dwarf2_cu::method_info): Now a std::vector.
2447 (add_to_method_list): Update.
2448 (free_delayed_list): Remove.
2449 (compute_delayed_physnames): Update.
2450 (process_full_comp_unit, process_full_type_unit): Clear the method
2451 list. Remove cleanups.
2452 (psymtab_include_file_name): Add name_holder parameter. Use
2453 unique_xmalloc_ptr.
2454 (dwarf_decode_lines): Update.
2455
2456 2018-01-17 Tom Tromey <tom@tromey.com>
2457 Simon Marchi <simon.marchi@ericsson.com>
2458
2459 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2460 (dwarf2_per_objfile::free_cached_comp_units)
2461 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2462 (init_cutu_and_read_dies_no_follow): Update.
2463 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2464 (dwarf2_cu::~dwarf2_cu): New.
2465 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2466 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2467
2468 2018-01-17 Tom Tromey <tom@tromey.com>
2469 Simon Marchi <simon.marchi@ericsson.com>
2470
2471 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2472 (struct die_reader_specs) <abbrev_table>: New member.
2473 (struct abbrev_table): Add constructor.
2474 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2475 <abbrev_obstack>: Now an auto_obstack.
2476 (abbrev_table_up): New typedef.
2477 (init_cu_die_reader): Add abbrev_table parameter.
2478 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2479 Add result_dwo_abbrev_table.
2480 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2481 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2482 Update.
2483 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2484 parameter.
2485 (skip_children): Update.
2486 (abbrev_table::alloc_abbrev): Rename from
2487 abbrev_table_alloc_abbrev.
2488 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2489 (abbrev_table::lookup_abbrev): Rename from
2490 abbrev_table_lookup_abbrev.
2491 (abbrev_table_read_table): Return abbrev_table_up.
2492 (abbrev_table_free, abbrev_table_free_cleanup)
2493 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2494 (load_partial_dies): Update.
2495
2496 2018-01-17 Tom Tromey <tom@tromey.com>
2497
2498 * dwarf2read.c (dwarf2_compute_name): Update comment.
2499 (read_func_scope, read_variable): Update.
2500 (new_symbol): Remove.
2501 (new_symbol_full): Rename to new_symbol.
2502
2503 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2504
2505 PR gdb/16577
2506 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2507 a warning instead of throwing an error, set section size to 0 and return
2508 NULL.
2509 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2510
2511 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2512
2513 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2514 std::string.
2515 (linux_ptrace_attach_fail_reason_string): Likewise.
2516 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2517 Likewise.
2518 (linux_ptrace_attach_fail_reason_string): Likewise.
2519 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2520
2521 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2522
2523 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2524
2525 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2526
2527 PR gdb/21559
2528 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2529 checking for fs_base/gs_base fields in struct user_regs_struct.
2530 * configure: Regenerate.
2531
2532 2018-01-17 Yao Qi <yao.qi@linaro.org>
2533
2534 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2535 function.
2536 (aarch64_linux_init_abi): Install it to gdbarch hook
2537 gcc_target_options.
2538
2539 2018-01-15 Pedro Alves <palves@redhat.com>
2540
2541 * common/signals-state-save-restore.c
2542 (save_original_signals_state): Fix typos.
2543
2544 2017-01-12 Tom Tromey <tom@tromey.com>
2545 Sergio Durigan Junior <sergiodj@redhat.com>
2546
2547 * Makefile.in (install-only): Install gdb-add-index.
2548
2549 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2550
2551 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2552
2553 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2554
2555 * infrun.c (keep_going_pass_signal): Clear step-over info when
2556 insert_breakpoints fails.
2557
2558 2018-01-11 Pedro Alves <palves@redhat.com>
2559
2560 PR gdb/22583
2561 * infrun.c (resume): Rename to ...
2562 (resume_1): ... this.
2563 (resume): Reimplement as wrapper around resume_1.
2564
2565 2018-01-11 Pedro Alves <palves@redhat.com>
2566
2567 PR remote/22597
2568 * remote.c (remote_parse_stop_reply): Default to the last-set
2569 general thread instead of to 'magic_null_ptid'.
2570
2571 2018-01-10 Pedro Alves <palves@redhat.com>
2572
2573 * language.h (language_get_symbol_name_matcher): Rename ...
2574 (get_symbol_name_matcher): ... this.
2575 * language.c (language_get_symbol_name_matcher): Ditto.
2576 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2577 callers adjusted.
2578
2579 2018-01-10 Pedro Alves <palves@redhat.com>
2580
2581 PR gdb/22670
2582 * dwarf2read.c
2583 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2584 Adjust to use language_get_symbol_name_matcher instead of
2585 language_defn::la_get_symbol_name_matcher.
2586 * language.c (language_get_symbol_name_matcher): If in Ada mode
2587 and the lookup name is a verbatim match, return Ada's matcher.
2588 * language.h (language_get_symbol_name_matcher): Adjust comment.
2589 (ada_lookup_name_info::verbatim_p):: New method.
2590
2591 2018-01-10 Pedro Alves <palves@redhat.com>
2592
2593 PR gdb/22670
2594 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2595 minsym's language is language_auto or language_cplus, pass down
2596 language_ada instead.
2597 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2598
2599 2018-01-10 Pedro Alves <palves@redhat.com>
2600
2601 PR gdb/22670
2602 * minsyms.c (linkage_name_str): New function.
2603 (iterate_over_minimal_symbols): Use it.
2604
2605 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2606
2607 * NEWS: Document that 'info proc' now works on FreeBSD.
2608
2609 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2610
2611 * configure.ac: Check for kinfo_getfile in libutil.
2612 * configure: Regenerate.
2613 * config.in: Regenerate.
2614 * fbsd-nat.c: Include "fbsd-tdep.h".
2615 (fbsd_fetch_cmdline): New.
2616 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2617 rather than calling error.
2618 (fbsd_info_proc): New.
2619 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2620 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2621 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2622
2623 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2624
2625 * fbsd-nat.c (struct free_deleter): Remove.
2626 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2627
2628 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2629
2630 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2631 NULL for an empty pathname.
2632
2633 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2634
2635 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2636 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2637 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2638 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2639 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2640 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2641 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2642 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2643 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2644 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2645 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2646 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2647 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2648 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2649 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2650
2651 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2652
2653 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2654 (gnu_xfer_auxv): New function.
2655 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2656 TARGET_OBJECT_AUXV.
2657
2658 2018-01-08 Yao Qi <yao.qi@linaro.org>
2659 Simon Marchi <simon.marchi@ericsson.com>
2660
2661 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2662 common/selftest.c.
2663 (COMMON_OBS): Remove selftest.o.
2664 * configure.ac: Append selftest-arch.c and common/selftest.c to
2665 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2666 * configure: Re-generated.
2667 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2668 GDB_SELF_TEST.
2669 (maintenance_info_selftests): Likewise.
2670
2671 2018-01-08 Xavier Roirand <roirand@adacore.com>
2672
2673 * ada-valprint.c (val_print_packed_array_elements): Use
2674 proper number of elements when printing an array indexed
2675 by an enumeration type.
2676
2677 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2678
2679 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2680 (dw2_get_file_names_reader): Adjust.
2681 (lookup_dwo_signatured_type): Adjust.
2682 (lookup_dwp_signatured_type): Adjust.
2683 (lookup_signatured_type): Adjust.
2684 (create_type_unit_group): Adjust.
2685 (get_type_unit_group): Adjust.
2686 (process_psymtab_comp_unit_reader): Adjust.
2687 (build_type_psymtabs_reader): Adjust.
2688 (scan_partial_symbols): Adjust.
2689 (add_partial_symbol): Adjust.
2690 (add_partial_subprogram): Adjust.
2691 (peek_die_abbrev): Adjust.
2692 (fixup_go_packaging): Adjust.
2693 (process_imported_unit_die): Adjust.
2694 (dwarf2_compute_name): Adjust.
2695 (dwarf2_physname): Adjust.
2696 (read_import_statement): Adjust.
2697 (handle_DW_AT_stmt_list): Adjust.
2698 (read_file_scope): Adjust.
2699 (read_func_scope): Adjust.
2700 (read_lexical_block_scope): Adjust.
2701 (read_call_site_scope): Adjust.
2702 (read_variable): Adjust.
2703 (dwarf2_rnglists_process): Adjust.
2704 (dwarf2_ranges_process): Adjust.
2705 (dwarf2_ranges_read): Adjust.
2706 (dwarf2_get_pc_bounds): Adjust.
2707 (dwarf2_record_block_ranges): Adjust.
2708 (dwarf2_add_field): Adjust.
2709 (dwarf2_add_member_fn): Adjust.
2710 (read_structure_type): Adjust.
2711 (process_structure_scope): Adjust.
2712 (read_enumeration_type): Adjust.
2713 (read_array_type): Adjust.
2714 (mark_common_block_symbol_computed): Adjust.
2715 (read_common_block): Adjust.
2716 (read_namespace_type): Adjust.
2717 (read_namespace): Adjust.
2718 (read_module_type): Adjust.
2719 (read_tag_pointer_type): Adjust.
2720 (read_tag_ptr_to_member_type): Adjust.
2721 (read_tag_string_type): Adjust.
2722 (read_subroutine_type): Adjust.
2723 (read_typedef): Adjust.
2724 (read_base_type): Adjust.
2725 (attr_to_dynamic_prop): Adjust.
2726 (read_subrange_type): Adjust.
2727 (read_unspecified_type): Adjust.
2728 (dwarf2_read_abbrevs): Adjust.
2729 (load_partial_dies): Adjust.
2730 (read_partial_die): Adjust.
2731 (find_partial_die): Adjust.
2732 (guess_partial_die_structure_name): Adjust.
2733 (fixup_partial_die): Adjust.
2734 (read_attribute_value): Adjust.
2735 (read_addr_index): Adjust.
2736 (read_addr_index_from_leb128): Adjust.
2737 (read_str_index): Adjust.
2738 (dwarf2_string_attr): Adjust.
2739 (get_debug_line_section): Adjust.
2740 (dwarf_decode_line_header): Adjust.
2741 (lnp_state_machine::check_line_address): Adjust.
2742 (dwarf_decode_lines_1): Adjust.
2743 (dwarf_decode_lines): Adjust.
2744 (dwarf2_start_symtab): Adjust.
2745 (var_decode_location): Adjust.
2746 (new_symbol_full): Adjust.
2747 (dwarf2_const_value_data): Adjust.
2748 (dwarf2_const_value_attr): Adjust.
2749 (dwarf2_const_value): Adjust.
2750 (die_type): Adjust.
2751 (die_containing_type): Adjust.
2752 (build_error_marker_type): Adjust.
2753 (lookup_die_type): Adjust.
2754 (guess_full_die_structure_name): Adjust.
2755 (anonymous_struct_prefix): Adjust.
2756 (determine_prefix): Adjust.
2757 (dwarf2_name): Adjust.
2758 (follow_die_ref_or_sig): Adjust.
2759 (follow_die_offset): Adjust.
2760 (follow_die_ref): Adjust.
2761 (follow_die_sig_1): Adjust.
2762 (follow_die_sig): Adjust.
2763 (get_signatured_type): Adjust.
2764 (get_DW_AT_signature_type): Adjust.
2765 (decode_locdesc): Adjust.
2766 (dwarf_decode_macros): Adjust.
2767 (cu_debug_loc_section): Adjust.
2768 (fill_in_loclist_baton): Adjust.
2769 (dwarf2_symbol_mark_computed): Adjust.
2770 (init_one_comp_unit): Don't assign
2771 dwarf2_cu::dwarf2_per_objfile.
2772 (set_die_type): Adjust.
2773
2774 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2775
2776 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2777 <dwarf2_per_objfile>: New field.
2778 (dwarf2_per_objfile): Remove global.
2779 (get_dwarf2_per_objfile): New function.
2780 (set_dwarf2_per_objfile): New function.
2781 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2782 dwarf2_per_objfile.
2783 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2784 (read_abbrev_offset): Likewise.
2785 (read_indirect_string): Likewise.
2786 (read_indirect_line_string): Likewise.
2787 (read_indirect_string_at_offset): Likewise.
2788 (read_indirect_string_from_dwz): Likewise.
2789 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2790 dwarf2_per_objfile.
2791 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2792 (create_all_comp_units): Change objfile parameter to
2793 dwarf2_per_objfile.
2794 (create_all_type_units): Likewise.
2795 (process_queue): Add dwarf2_per_objfile parameter.
2796 (read_and_check_comp_unit_head): Likewise.
2797 (lookup_dwo_unit_in_dwp): Likewise.
2798 (get_dwp_file): Likewise.
2799 (process_cu_includes): Likewise.
2800 (struct free_dwo_file_cleanup_data): New struct.
2801 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2802 set_dwarf2_per_objfile.
2803 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2804 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2805 context, adjust calls.
2806 (dw2_instantiate_symtab): Likewise.
2807 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2808 (dw2_get_cu): Likewise.
2809 (create_cu_from_index_list): Change objfile parameter to
2810 dwarf2_per_objfile.
2811 (create_cus_from_index_list): Get dwarf2_per_objfile from
2812 context, adjust calls.
2813 (create_cus_from_index): Likewise.
2814 (create_signatured_type_table_from_index): Change objfile
2815 parameter to dwarf2_per_objfile.
2816 (create_signatured_type_table_from_debug_names): Change objfile
2817 parameter to dwarf2_per_objfile.
2818 (create_addrmap_from_index): Likewise.
2819 (create_addrmap_from_aranges): Likewise.
2820 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2821 (dw2_setup): Remove.
2822 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2823 context.
2824 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2825 get_dwarf2_per_objfile.
2826 (dw2_forget_cached_source_info): Likewise.
2827 (dw2_map_symtabs_matching_filename): Likewise.
2828 (struct dw2_symtab_iterator) <index>: Remove.
2829 <dwarf2_per_objfile>: New field.
2830 (dw2_symtab_iter_init): Replace index parameter with
2831 dwarf2_per_objfile.
2832 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2833 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2834 (dw2_print_stats): Likewise.
2835 (dw2_dump): Likewise.
2836 (dw2_expand_symtabs_for_function): Likewise.
2837 (dw2_expand_all_symtabs): Likewise.
2838 (dw2_expand_symtabs_with_fullname): Likewise.
2839 (dw2_expand_marked_cus): Replace index and objfile parameters
2840 with dwarf2_per_objfile.
2841 (dw_expand_symtabs_matching_file_matcher): Add
2842 dwarf2_per_objfile parameter and adjust calls.
2843 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2844 adjust calls.
2845 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2846 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2847 adjust calls.
2848 (create_cus_from_debug_names_list): Replace objfile parameter
2849 with dwarf2_per_objfile and adjust calls.
2850 (create_cus_from_debug_names): Likewise.
2851 (dwarf2_read_debug_names): Likewise.
2852 (mapped_debug_names::namei_to_name): Adjust call.
2853 (dw2_debug_names_iterator::next): Likewise.
2854 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2855 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2856 (dw2_debug_names_dump): Likewise.
2857 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2858 (dw2_debug_names_expand_symtabs_matching): Likewise.
2859 (dwarf2_initialize_objfile): Likewise.
2860 (dwarf2_build_psymtabs): Likewise.
2861 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2862 this_cu.
2863 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2864 (read_and_check_comp_unit_head): Likewise.
2865 (read_abbrev_offset): Likewise.
2866 (create_debug_type_hash_table): Likewise.
2867 (create_debug_types_hash_table): Likewise.
2868 (create_all_type_units): Replace objfile parameter with
2869 dwarf2_per_objfile.
2870 (add_type_unit): Add dwarf2_per_objfile parameter.
2871 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2872 with dwarf2_per_objfile.
2873 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2874 (lookup_dwp_signatured_type): Likewise.
2875 (lookup_signatured_type): Likewise.
2876 (read_cutu_die_from_dwo): Likewise.
2877 (init_tu_and_read_dwo_dies): Likewise.
2878 (init_cutu_and_read_dies): Likewise.
2879 (init_cutu_and_read_dies_no_follow): Likewise.
2880 (allocate_type_unit_groups_table): Add objfile parameter.
2881 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2882 (get_type_unit_group): Likewise.
2883 (process_psymtab_comp_unit): Update call.
2884 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2885 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2886 (print_tu_stats): Likewise.
2887 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2888 in void* parameter.
2889 (build_type_psymtabs): Change objfile parameter to
2890 dwarf2_per_objfile.
2891 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2892 passed in void* parameter.
2893 (process_skeletonless_type_units): Change objfile parameter to
2894 dwarf2_per_objfile.
2895 (set_partial_user): Likewise.
2896 (dwarf2_build_psymtabs_hard): Likewise.
2897 (read_comp_units_from_section): Likewise.
2898 (create_all_comp_units): Likewise.
2899 (scan_partial_symbols): Update calls.
2900 (add_partial_symbol): Likewise.
2901 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2902 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2903 (process_queue): Add dwarf2_per_objfile parameter.
2904 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2905 (compute_compunit_symtab_includes): Likewise.
2906 (process_cu_includes): Add dwarf2_per_objfile parameter.
2907 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2908 (process_full_type_unit): Likewise.
2909 (process_imported_unit_die): Update call.
2910 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2911 (read_file_scope): Likewise.
2912 (allocate_dwo_file_hash_table): Add objfile parameter.
2913 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2914 (create_cus_hash_table): Likewise.
2915 (create_dwp_hash_table): Likewise.
2916 (create_dwo_unit_in_dwp_v1): Likewise.
2917 (create_dwp_v2_section): Likewise.
2918 (create_dwo_unit_in_dwp_v2): Likewise.
2919 (lookup_dwo_unit_in_dwp): Likewise.
2920 (try_open_dwop_file): Likewise.
2921 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2922 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2923 cleanup to include a reference to dwarf2_per_objfile.
2924 (open_dwp_file): Add dwarf2_per_objfile parameter.
2925 (open_and_init_dwp_file): Likewise.
2926 (get_dwp_file): Likewise.
2927 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2928 (queue_and_load_all_dwo_tus): Update call.
2929 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2930 data.
2931 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2932 (dwarf2_ranges_process): Likewise.
2933 (dwarf2_get_pc_bounds): Likewise.
2934 (mark_common_block_symbol_computed): Likewise.
2935 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2936 (dwarf2_read_abbrevs): Update call.
2937 (read_partial_die): Use dwarf2_per_objfile from cu.
2938 (find_partial_die): Likewise.
2939 (fixup_partial_die): Likewise.
2940 (read_attribute_value): Likewise.
2941 (read_indirect_string_at_offset_from): Add objfile parameter.
2942 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2943 parameter.
2944 (read_indirect_string_from_dwz): Add objfile parameter.
2945 (read_indirect_string): Add objfile parameter.
2946 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2947 (read_addr_index): Use dwarf2_per_objfile from cu.
2948 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2949 call dw2_setup.
2950 (read_str_index): Use dwarf2_per_objfile from cu.
2951 (get_debug_line_section): Likewise.
2952 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2953 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2954 (new_symbol_full): Use dwarf2_per_objfile from cu.
2955 (build_error_marker_type): Likewise.
2956 (lookup_die_type): Likewise.
2957 (determine_prefix): Likewise.
2958 (follow_die_offset): Likewise.
2959 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2960 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2961 (dwarf2_fetch_die_type_sect_off): Likewise.
2962 (dwarf2_get_die_type): Likewise.
2963 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2964 (get_signatured_type): Likewise.
2965 (get_DW_AT_signature_type): Likewise.
2966 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2967 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2968 (cu_debug_loc_section): Likewise.
2969 (fill_in_loclist_baton): Likewise.
2970 (dwarf2_symbol_mark_computed): Likewise.
2971 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2972 dwarf2_per_objfile.
2973 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2974 parameter.
2975 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2976 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2977 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2978 (set_die_type): Use dwarf2_free_objfile from cu.
2979 (get_die_type_at_offset): Likewise.
2980 (dwarf2_per_objfile_free): Don't assign global variable.
2981 (debug_names) <constructor>: Add dwarf2_per_objfile
2982 parameter, update m_debugstrlookup construction.
2983 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2984 parameter.
2985 <m_dwarf2_per_objfile>: New field.
2986 <lookup>: Use m_dwarf2_per_objfile.
2987 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2988 (psyms_seen_size): Likewise.
2989 (write_gdbindex): Replace objfile parameter with
2990 dwarf2_per_objfile.
2991 (write_debug_names): Likewise.
2992 (write_psymtabs_to_index): Likewise.
2993 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2994 calls.
2995
2996 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2997
2998 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2999 <dwarf2_per_objfile>: New field.
3000 (struct dwarf2_per_cu_data) <objfile>: Remove.
3001 <dwarf2_per_objfile>: New field.
3002 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3003 of objfile.
3004 (create_signatured_type_table_from_index): Likewise.
3005 (create_debug_type_hash_table): Likewise.
3006 (fill_in_sig_entry_from_dwo_entry): Likewise.
3007 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3008 (create_type_unit_group): Assign dwarf2_per_objfile instead of
3009 objfile.
3010 (create_partial_symtab): Access objfile through
3011 dwarf2_per_objfile.
3012 (process_psymtab_comp_unit_reader): Likewise.
3013 (read_comp_units_from_section): Likewise.
3014 (scan_partial_symbols): Likewise.
3015 (add_partial_symbol): Likewise.
3016 (add_partial_subprogram): Likewise.
3017 (peek_die_abbrev): Likewise.
3018 (fixup_go_packaging): Likewise.
3019 (process_full_comp_unit): Likewise.
3020 (process_full_type_unit): Likewise.
3021 (process_imported_unit_die): Likewise.
3022 (dwarf2_compute_name): Likewise.
3023 (dwarf2_physname): Likewise.
3024 (read_import_statement): Likewise.
3025 (create_cus_hash_table): Assign dwarf2_physname instead of
3026 objfile.
3027 (read_func_scope): Access objfile through dwarf2_per_objfile.
3028 (read_lexical_block_scope): Likewise.
3029 (read_call_site_scope): Likewise.
3030 (read_variable): Likewise.
3031 (dwarf2_rnglists_process): Likewise.
3032 (dwarf2_ranges_process): Likewise.
3033 (dwarf2_ranges_read): Likewise.
3034 (dwarf2_record_block_ranges): Likewise.
3035 (dwarf2_add_field): Likewise.
3036 (dwarf2_add_member_fn): Likewise.
3037 (read_structure_type): Likewise.
3038 (process_structure_scope): Likewise.
3039 (read_enumeration_type): Likewise.
3040 (read_array_type): Likewise.
3041 (read_common_block): Likewise.
3042 (read_namespace_type): Likewise.
3043 (read_namespace): Likewise.
3044 (read_module_type): Likewise.
3045 (read_tag_pointer_type): Likewise.
3046 (read_tag_ptr_to_member_type): Likewise.
3047 (read_tag_string_type): Likewise.
3048 (read_subroutine_type): Likewise.
3049 (read_typedef): Likewise.
3050 (read_base_type): Likewise.
3051 (attr_to_dynamic_prop): Likewise.
3052 (read_subrange_type): Likewise.
3053 (read_unspecified_type): Likewise.
3054 (load_partial_dies): Likewise.
3055 (read_partial_die): Likewise.
3056 (find_partial_die): Likewise.
3057 (guess_partial_die_structure_name): Likewise.
3058 (fixup_partial_die): Likewise.
3059 (read_attribute_value): Likewise.
3060 (read_addr_index_from_leb128): Likewise.
3061 (dwarf2_read_addr_index): Likewise.
3062 (dwarf2_string_attr): Likewise.
3063 (lnp_state_machine::check_line_address): Likewise.
3064 (dwarf_decode_lines_1): Likewise.
3065 (dwarf_decode_lines): Likewise.
3066 (dwarf2_start_symtab): Likewise.
3067 (var_decode_location): Likewise.
3068 (new_symbol_full): Likewise.
3069 (dwarf2_const_value_data): Likewise.
3070 (dwarf2_const_value_attr): Likewise.
3071 (dwarf2_const_value): Likewise.
3072 (die_type): Likewise.
3073 (die_containing_type): Likewise.
3074 (lookup_die_type): Likewise.
3075 (guess_full_die_structure_name): Likewise.
3076 (anonymous_struct_prefix): Likewise.
3077 (dwarf2_name): Likewise.
3078 (follow_die_ref_or_sig): Likewise.
3079 (follow_die_offset): Likewise.
3080 (follow_die_ref): Likewise.
3081 (dwarf2_fetch_die_loc_sect_off): Likewise.
3082 (dwarf2_fetch_constant_bytes): Likewise.
3083 (dwarf2_fetch_die_type_sect_off): Likewise.
3084 (dwarf2_get_die_type): Likewise.
3085 (follow_die_sig): Likewise.
3086 (decode_locdesc): Likewise.
3087 (dwarf2_per_cu_objfile): Likewise.
3088 (dwarf2_per_cu_text_offset): Likewise.
3089 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3090 objfile.
3091 (set_die_type): Access objfile through
3092 dwarf2_per_objfile.
3093
3094 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3095
3096 * valprint.c (converted_character_d): Remove typedef.
3097 (DEF_VEC_O (converted_character_d)): Remove.
3098 (count_next_character): Use std::vector.
3099 (print_converted_chars_to_obstack): Likewise.
3100 (generic_printstr): Likewise.
3101
3102 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 * xml-support.h (struct gdb_xml_value): Add constructor.
3105 <value>: Change type to unique_xmalloc_ptr.
3106 (gdb_xml_value_s): Remove typedef.
3107 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3108 (gdb_xml_element_start_handler): Change parameter type to
3109 std::vector.
3110 (xml_find_attribute): Likewise.
3111 * xml-support.c (xml_find_attribute): Change parameter type to
3112 std::vector and adjust.
3113 (gdb_xml_values_cleanup): Remove.
3114 (gdb_xml_parser::start_element): Adjust to std::vector.
3115 (xinclude_start_include): Change paraeter type to std::vector
3116 and adjust.
3117 * btrace.c (check_xml_btrace_version): Likewise.
3118 (parse_xml_btrace_block): Likewise.
3119 (parse_xml_btrace_pt_config_cpu): Likewise.
3120 (parse_xml_btrace_pt): Likewise.
3121 (parse_xml_btrace_conf_bts): Likewise.
3122 (parse_xml_btrace_conf_pt): Likewise.
3123 * memory-map.c (memory_map_start_memory): Likewise.
3124 (memory_map_start_property): Likewise.
3125 * osdata.c (osdata_start_osdata): Likewise.
3126 (osdata_start_item): Likewise.
3127 (osdata_start_column): Likewise.
3128 * remote.c (start_thread): Likewise.
3129 * solib-aix.c (library_list_start_library): Likewise.
3130 (library_list_start_list): Likewise.
3131 * solib-svr4.c (library_list_start_library): Likewise.
3132 (svr4_library_list_start_list): Likewise.
3133 * solib-target.c (library_list_start_segment): Likewise.
3134 (library_list_start_section): Likewise.
3135 (library_list_start_library): Likewise.
3136 (library_list_start_list): Likewise.
3137 * tracepoint.c (traceframe_info_start_memory): Likewise.
3138 (traceframe_info_start_tvar): Likewise.
3139 * xml-syscall.c (syscall_start_syscall): Likewise.
3140 * xml-tdesc.c (tdesc_start_target): Likewise.
3141 (tdesc_start_feature): Likewise.
3142 (tdesc_start_reg): Likewise.
3143 (tdesc_start_union): Likewise.
3144 (tdesc_start_struct): Likewise.
3145 (tdesc_start_flags): Likewise.
3146 (tdesc_start_enum): Likewise.
3147 (tdesc_start_field): Likewise.
3148 (tdesc_start_enum_value): Likewise.
3149 (tdesc_start_vector): Likewise.
3150
3151 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * extension.h (struct xmethod_worker) <clone>: Remove.
3154 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3155 Remove.
3156 (python_xmethod_worker::clone): Remove.
3157 * valops.c (find_overload_match): Use std::move instead of
3158 clone.
3159
3160 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3163 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3164 <free_xmethod_worker_data>: Remove.
3165 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3166 <get_xmethod_arg_types>: Remove.
3167 <get_xmethod_result_type>: Remove.
3168 <invoke_xmethod>: Remove.
3169 * extension.c (new_xmethod_worker): Remove.
3170 (clone_xmethod_worker): Remove.
3171 (get_matching_xmethod_workers): Return void, pass std::vector by
3172 pointer.
3173 (get_xmethod_arg_types): Rename to...
3174 (xmethod_worker::get_arg_types): ... this, and adjust.
3175 (get_xmethod_result_type): Rename to...
3176 (xmethod_worker::get_result_type): ... this, and adjust.
3177 (invoke_xmethod): Remove.
3178 (free_xmethod_worker): Remove.
3179 (free_xmethod_worker_vec): Remove.
3180 * extension.h (enum ext_lang_rc): Move here from
3181 extension-priv.h.
3182 (struct xmethod_worker): Add constructor and destructor.
3183 <data>: Remove.
3184 <value>: Remove.
3185 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3186 virtual pure methods.
3187 <get_arg_types, get_result_type>: New methods.
3188 (xmethod_worker_ptr): Remove typedef.
3189 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3190 (xmethod_worker_vec): Remove typedef.
3191 (xmethod_worker_up): New typedef.
3192 (invoke_xmethod): Remove.
3193 (clone_xmethod_worker): Remove.
3194 (free_xmethod_worker): Remove.
3195 (free_xmethod_worker_vec): Remove.
3196 (get_xmethod_arg_types): Remove.
3197 (get_xmethod_result_type): Remove.
3198 * valops.c (find_method_list): Use std::vector, don't use
3199 intermediate vector.
3200 (value_find_oload_method_list): Use std::vector.
3201 (find_overload_match): Use std::vector.
3202 (find_oload_champ): Use std::vector.
3203 * value.c (value_free): Use operator delete.
3204 (value_of_xmethod): Rename to...
3205 (value_from_xmethod): ... this. Don't assign
3206 xmethod_worker::value, take rvalue-reference.
3207 (result_type_of_xmethod): Adjust.
3208 (call_xmethod): Adjust.
3209 * value.h: Include extension.h.
3210 (struct xmethod_worker): Don't forward-declare.
3211 (value_of_xmethod): Rename to...
3212 (value_from_xmethod): ... this, take rvalue-reference.
3213 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3214 (struct python_xmethod_worker): ... this, add constructor and
3215 destructor.
3216 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3217 (gdbpy_free_xmethod_worker_data): Rename to...
3218 (python_xmethod_worker::~python_xmethod_worker): ... this and
3219 adjust.
3220 (gdbpy_clone_xmethod_worker_data): Rename to...
3221 (python_xmethod_worker::clone): ... this and adjust.
3222 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3223 temporary vector.
3224 (gdbpy_get_xmethod_arg_types): Rename to...
3225 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3226 (gdbpy_get_xmethod_result_type): Rename to...
3227 (python_xmethod_worker::do_get_result_type): ... this and
3228 adjust.
3229 (gdbpy_invoke_xmethod): Rename to...
3230 (python_xmethod_worker::invoke): ... this and adjust.
3231 (new_python_xmethod_worker): Rename to...
3232 (python_xmethod_worker::python_xmethod_worker): ... this and
3233 adjust.
3234 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3235 Remove.
3236 (gdbpy_free_xmethod_worker_data): Remove.
3237 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3238 (gdbpy_get_xmethod_arg_types): Remove.
3239 (gdbpy_get_xmethod_result_type): Remove.
3240 (gdbpy_invoke_xmethod): Remove.
3241 * python/python.c (python_extension_ops): Remove obsolete
3242 callbacks.
3243
3244 2018-01-05 Pedro Alves <palves@redhat.com>
3245
3246 PR gdb/18653
3247 * common/signals-state-save-restore.c
3248 (save_original_signals_state): New parameter 'quiet'. Warn if we
3249 find a custom handler preinstalled, instead of internal erroring.
3250 But only warn if !quiet.
3251 * common/signals-state-save-restore.h
3252 (save_original_signals_state): New parameter 'quiet'.
3253 * main.c (captured_main_1): Move save_original_signals_state call
3254 after option handling, and pass QUIET.
3255
3256 2018-01-05 Pedro Alves <palves@redhat.com>
3257
3258 * spu-tdep.c (spu_catch_start): Pass
3259 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3260
3261 2018-01-05 Pedro Alves <palves@redhat.com>
3262
3263 PR gdb/22670
3264 * ada-lang.c (literal_symbol_name_matcher): New function.
3265 (ada_get_symbol_name_matcher): Use it for
3266 symbol_name_match_type::SEARCH_NAME.
3267 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3268 it down instead of assuming symbol_name_match_type::FULL.
3269 * block.h (block_lookup_symbol): New parameter 'match_type'.
3270 * c-valprint.c (print_unpacked_pointer): Use
3271 lookup_symbol_search_name instead of lookup_symbol.
3272 * compile/compile-object-load.c (get_out_value_type): Pass down
3273 symbol_name_match_type::SEARCH_NAME.
3274 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3275 symbol_name_match_type::FULL.
3276 * cp-support.c (cp_get_symbol_name_matcher): Handle
3277 symbol_name_match_type::SEARCH_NAME.
3278 * infrun.c (insert_exception_resume_breakpoint): Use
3279 lookup_symbol_search_name.
3280 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3281 * psymtab.c (maintenance_check_psymtabs): Use
3282 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3283 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3284 SYMBOL_SEARCH_NAME.
3285 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3286 if symbol_name_match_type::SEARCH_NAME.
3287 (lookup_symbol_in_language): Pass down
3288 symbol_name_match_type::FULL.
3289 (lookup_symbol_search_name): New.
3290 (lookup_language_this): Pass down
3291 symbol_name_match_type::SEARCH_NAME.
3292 (lookup_symbol_aux, lookup_local_symbol): New parameter
3293 'match_type'. Pass it down.
3294 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3295 (lookup_symbol_search_name): New declaration.
3296 (lookup_symbol_in_block): New 'match_type' parameter.
3297
3298 2018-01-05 Pedro Alves <palves@redhat.com>
3299
3300 PR gdb/22670
3301 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3302 ada_lookup_symbol.
3303 (ada_lookup_symbol): Reimplement in terms of
3304 ada_lookup_symbol_list, bits factored out from
3305 ada_lookup_encoded_symbol.
3306
3307 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3308
3309 * ada-exp.y (write_object_renaming): When subscripting an array
3310 using a symbol as the index, pass the block in call to
3311 ada_lookup_encoded_symbol when looking that symbol up.
3312
3313 2018-01-05 Jerome Guitton <guitton@adacore.com>
3314
3315 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3316 TYPE_INDEX_TYPE.
3317
3318 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3319
3320 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3321 the case where VALUE_LVAL (val0) is not lval_memory.
3322
3323 2018-01-05 Xavier Roirand <roirand@adacore.com>
3324
3325 * ada-valprint.c (print_optional_low_bound): Handle
3326 character-indexed array printing like boolean-indexed array
3327 printing.
3328
3329 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3330
3331 * NEWS: Create a new section for the next release branch.
3332 Rename the section of the current branch, now that it has
3333 been cut.
3334
3335 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3336
3337 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3338 * version.in: Bump version to 8.1.50.DATE-git.
3339
3340 2018-01-03 Xavier Roirand <roirand@adacore.com>
3341
3342 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3343 Add field.
3344 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3345 Add field.
3346 (default_exception_support_info) <catch_handlers_sym>: Add field.
3347 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3348 (ada_exception_name_addr_1): Add "catch handlers" handling.
3349 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3350 Update all callers.
3351 (create_excep_cond_exprs) <ex>: Add parameter.
3352 (re_set_exception): Update create_excep_cond_exprs call.
3353 (print_it_exception, print_one_exception, print_mention_exception)
3354 (print_recreate_exception): Add "catch handler" handling.
3355 (allocate_location_catch_handlers, re_set_catch_handlers)
3356 (check_status_catch_handlers, print_it_catch_handlers)
3357 (print_one_catch_handlers, print_mention_catch_handlers)
3358 (print_recreate_catch_handlers): New function.
3359 (catch_handlers_breakpoint_ops): New variable.
3360 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3361 Add parameter. Add "catch handler" handling.
3362 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3363 Add "catch handler" handling.
3364 (ada_exception_catchpoint_cond_string): Add "catch handler"
3365 handling.
3366 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3367 call.
3368 (catch_ada_handlers_command): New function.
3369 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3370 operations structure.
3371 (_initialize_ada_language): Add "catch handlers" command entry.
3372 * NEWS: Document "catch handlers" feature.
3373
3374 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3375
3376 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3377 account when creating the array type of the slice.
3378 (ada_value_slice): Likewise.
3379
3380 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3381
3382 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3383 New enum value.
3384 (create_array_type_with_stride): Add byte_stride_prop parameter.
3385 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3386 New parameter. Update all callers in this file.
3387 (array_type_has_dynamic_stride): New function.
3388 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3389 of arrays with dynamic byte strides.
3390 * dwarf2read.c (read_array_type): Add support for dynamic
3391 DW_AT_byte_stride attributes.
3392
3393 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3394
3395 * dwarf2read.c (read_unspecified_type): Treat
3396 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3397
3398 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3399
3400 Update copyright year range in all GDB files.
3401
3402 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3403
3404 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3405 and gdb/testsuite/gdb.base/step-line.c.
3406
3407 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3408
3409 * copyright.py (main): Dump the contents of
3410 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3411 even if BY_HAND is empty.
3412
3413 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3414
3415 * top.c (print_gdb_version): Update Copyright year in version
3416 message.
3417
3418 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3419
3420 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3421
3422 For older changes see ChangeLog-2017.
3423 \f
3424 Local Variables:
3425 mode: change-log
3426 left-margin: 8
3427 fill-column: 74
3428 version-control: never
3429 coding: utf-8
3430 End:
This page took 0.094454 seconds and 5 git commands to generate.