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