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