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