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