Make inf_ptrace_trad Linux-only, move to separate file
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6798487f
PA
12018-05-02 Pedro Alves <palves@redhat.com>
2
3 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
4 "linux-nat.h".
5 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
6 * inf-ptrace.c (inf_ptrace_register_u_offset)
7 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8 (inf_ptrace_store_register, inf_ptrace_store_registers)
9 (inf_ptrace_trad_target): Move to ...
10 * linux-nat-trad.c: ... this new file.
11 * linux-nat-trad.h: New file.
12 * linux-nat.c (linux_target_install_ops): Make extern.
13 (linux_trad_target): Delete.
14 * linux-nat.h (linux_trad_target): Delete declaration.
15 (linux_target_install_ops): Declare.
16 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
17 "linux-nat.h".
18
c1955e17
PA
192018-05-02 Pedro Alves <palves@redhat.com>
20
21 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
22 procfs_target/add_target here.
23 * procfs.c (procfs_target): Make static.
24 (_initialize_procfs): Call add_target here.
25 * procfs.h (struct target_ops): Remove forward declaration.
26 (procfs_target): Remove declaration.
27 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
28
b5c8fcb1
PA
292018-05-02 Pedro Alves <palves@redhat.com>
30
31 * procfs.c (procfs_stopped_by_watchpoint)
32 (procfs_insert_watchpoint, procfs_remove_watchpoint)
33 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
34 Forward declare.
35 (procfs_use_watchpoints): Delete, move contents...
36 (procfs_target): ... here.
37 * procfs.h (procfs_use_watchpoints): Delete declaration.
38 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
39 procfs_use_watchpoints.
40 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
41 procfs_use_watchpoints.
42
0489430a
TT
432018-05-02 Tom Tromey <tom@tromey.com>
44
45 PR python/20084:
46 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
47 and var_zuinteger_unlimited.
48 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
49 and PARAM_ZUINTEGER_UNLIMITED.
50 (set_parameter_value): Handle var_zuinteger and
51 var_zuinteger_unlimited.
52 (add_setshow_generic): Likewise.
53 (parmpy_init): Likewise.
54
1632f8ba
DR
552018-04-28 Dan Robertson <danlrobertson89@gmail.com>
56
57 PR rust/23124
58 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
59 pointer is not null before dereferencing it.
60
76761936
TT
612018-04-30 Tom Tromey <tom@tromey.com>
62
63 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
64 is_mi_like_p.
65
2d33446d
TT
662018-04-30 Tom Tromey <tom@tromey.com>
67
68 * breakpoint.c (mention): Remove use of is_mi_like_p.
69 (print_mention_ranged_breakpoint): Likewise.
70 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
71 of is_mi_like_p.
72
f3c6abab
TT
732018-04-30 Tom Tromey <tom@tromey.com>
74
75 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
76
40c03530
TT
772018-04-30 Tom Tromey <tom@tromey.com>
78
79 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
80 (info_spu_event_command): Remove some uses of is_mi_like_p.
81
2038b7fd
TT
822018-04-30 Tom Tromey <tom@tromey.com>
83
84 * python/py-framefilter.c (py_print_single_arg)
85 (enumerate_locals, py_print_args, py_print_frame): Remove some
86 uses of is_mi_like_p.
87
4904c3c6
TT
882018-04-30 Tom Tromey <tom@tromey.com>
89
90 * ui-out.c: Update.
91 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
92 * ui-out.h (ui_out::is_mi_like_p): Now const.
93 (ui_out::do_is_mi_like_p): Now const.
94 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
95
7c66fffc
TT
962018-04-30 Tom Tromey <tom@tromey.com>
97
98 * varobj.c (varobj_set_visualizer): Use new_reference.
99 * python/python.c (gdbpy_decode_line): Use new_reference.
100 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
101 new_reference.
102
bbfa6f00
TT
1032018-04-30 Tom Tromey <tom@tromey.com>
104
105 * varobj.c (install_new_value): Use new_reference.
106 * value.h (value_incref): Return void. Swap intro comment with
107 value_decref.
108 * value.c (set_value_parent): Use new_reference.
109 (value_incref): Return void. Update intro comment.
110 (release_value): Use new_reference.
111 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
112
1831a9f9
TT
1132018-04-30 Tom Tromey <tom@tromey.com>
114
115 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
116 * gdb_bfd.h (new_bfd_ref): Remove.
117 (gdb_bfd_open): Update comment.
118 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
119 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
120 (gdb_bfd_fdopenr): Use new_reference.
121 * exec.c (exec_file_attach): Use new_reference.
122
7c1b5f3d
TT
1232018-04-30 Tom Tromey <tom@tromey.com>
124
125 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
126 method.
127
e11fb955
TT
1282018-04-30 Tom Tromey <tom@tromey.com>
129
130 * jit.c (jit_read_code_entry): Use type_align.
131 * i386-tdep.c (i386_gdbarch_init): Don't call
132 set_gdbarch_long_long_align_bit.
133 * gdbarch.sh: Remove long_long_align_bit.
134 * gdbarch.c, gdbarch.h: Rebuild.
135 * arc-tdep.c (arc_type_align): New function.
136 (arc_gdbarch_init): Use arc_type_align. Don't call
137 set_gdbarch_long_long_align_bit.
138
2fff16dd
TT
1392018-04-30 Tom Tromey <tom@tromey.com>
140
141 * rust-lang.c (rust_type_alignment): Remove.
142 (rust_composite_type): Use type_align.
143
6d7bb824
TT
1442018-04-30 Tom Tromey <tom@tromey.com>
145
146 * NEWS: Mention Type.align.
147 * python/py-type.c (typy_get_alignof): New function.
148 (type_object_getset): Add "alignof".
149
007e1530
TT
1502018-04-30 Tom Tromey <tom@tromey.com>
151
152 PR exp/17095:
153 * NEWS: Update.
154 * std-operator.def (UNOP_ALIGNOF): New operator.
155 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
156 New.
157 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
158 * c-lang.c (c_op_print_tab): Add alignof.
159 * c-exp.y (ALIGNOF): New token.
160 (exp): Add "ALIGNOF" production.
161 (ident_tokens): Add _Alignof and alignof.
162
2b4424c3
TT
1632018-04-30 Tom Tromey <tom@tromey.com>
164
165 * i386-tdep.c (i386_type_align): New function.
166 (i386_gdbarch_init): Update.
167 * gdbarch.sh (type_align): New method.
168 * gdbarch.c, gdbarch.h: Rebuild.
169 * arch-utils.h (default_type_align): Declare.
170 * arch-utils.c (default_type_align): New function.
171 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
172 (struct type) <align_log2>: New field.
173 <instance_flags>: Now a bitfield.
174 (TYPE_RAW_ALIGN): New macro.
175 (type_align, type_raw_align, set_type_align): Declare.
176 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
177 functions.
178 * dwarf2read.c (quirk_rust_enum): Set type alignment.
179 (get_alignment, maybe_set_alignment): New functions.
180 (read_structure_type, read_enumeration_type, read_array_type)
181 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
182 (read_subrange_type, read_base_type): Set type alignment.
183
d33bc52e
SM
1842018-04-30 Simon Marchi <simon.marchi@ericsson.com>
185
186 * dwarf2read.c (read_index_from_section): Use bool.
187
e28b63a9
FG
1882018-04-29 Fabian Groffen <grobian@gentoo.org>
189
190 PR gdb/22950
191 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
192 with #ifdef.
193
cd8c76e4
JR
1942018-04-29 John Reiser <jreiser@BitWagon.com>
195
196 PR build/22873
197 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
198 last step, and do it atomically.
199
476d250e
AO
2002018-04-27 Alexandre Oliva <aoliva@redhat.com>
201
202 * compile/compile-c-types.c (convert_int, convert_float):
203 Update for C FE v1.
204
6873858b
TT
2052018-04-27 Tom Tromey <tom@tromey.com>
206
207 PR rust/22545:
208 * rust-lang.c (rust_inclusive_range_type_p): New function.
209 (rust_range): Handle inclusive ranges.
210 (rust_compute_range): Likewise.
211 * rust-exp.y (struct rust_op) <inclusive>: New field.
212 (DOTDOTEQ): New constant.
213 (range_expr): Add "..=" productions.
214 (operator_tokens): Add "..=" token.
215 (ast_range): Add "inclusive" parameter.
216 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
217 ranges.
218 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
219 bounds values.
220 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
221 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
222 Update comments.
223 * expprint.c (print_subexp_standard): Handle new bounds values.
224 (dump_subexp_body_standard): Likewise.
225
632e107b
TT
2262018-04-27 Tom Tromey <tom@tromey.com>
227
228 * configure: Rebuild.
229 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
230 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
231 "OVERRIDE".
232 (class symbol_needs_eval_context): Likewise.
233 * dwarf2read.c (mock_mapped_index::symbol_name_count)
234 (mock_mapped_index::symbol_name_at): Use "override". Remove
235 "virtual".
236 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
237 "override".
238 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
239 * aarch64-tdep.c (instruction_reader::read): Use "override".
240 (instruction_reader_test::read): Likewise.
241 * arm-tdep.c (instruction_reader::read): Use "override".
242 (instruction_reader_thumb::read): Likewise.
243
b75abf5b
AK
2442018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
245
246 PR remote/9665
247 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
248 instead of remote_send.
249 (remote_send): Remove.
250
79188d8d
PA
2512018-04-26 Pedro Alves <palves@redhat.com>
252
253 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
254 find_function_start_sal instead of find_pc_line.
255
f50776aa
PA
2562018-04-26 Pedro Alves <palves@redhat.com>
257
258 * breakpoint.c (set_breakpoint_location_function): Handle
259 mst_data_gnu_ifunc.
260 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
261 * elfread.c (elf_symtab_read): Give data symbols with
262 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
263 (elf_rel_plt_read): Update comment.
264 * linespec.c (convert_linespec_to_sals): Handle
265 mst_data_gnu_ifunc.
266 (minsym_found): Handle mst_data_gnu_ifunc.
267 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
268 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
269 * parse.c (find_minsym_type_and_address): Handle
270 mst_data_gnu_ifunc.
271 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
272 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
273 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
274 comment.
275 <mst_data_gnu_ifunc>: New enumerator.
276
20944a6e
PA
2772018-04-26 Pedro Alves <palves@redhat.com>
278
279 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
280 (lookup_minimal_symbol_by_pc_section): ... this. Replace
281 'want_trampoline' parameter by a lookup_msym_prefer parameter.
282 Handle it.
283 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
284 (lookup_minimal_symbol_by_pc): Adjust.
285 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
286 (lookup_solib_trampoline_symbol_by_pc): Adjust.
287 * minsyms.h (lookup_msym_prefer): New enum.
288 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
289 parameter by a lookup_msym_prefer parameter.
290
1adeb822
PA
2912018-04-26 Pedro Alves <palves@redhat.com>
292
293 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
294 ends in "@plt" instead of looking at the symbol's section.
295
a0aca7b0
PA
2962018-04-26 Pedro Alves <palves@redhat.com>
297
298 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
299 all references.
300 (find_pc_partial_function_gnu_ifunc): Rename to ...
301 (find_pc_partial_function): ... this, and remove references to
302 'is_gnu_ifunc_p'.
303 (find_pc_partial_function): Delete old implementation.
304 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
305
76af0f26
PA
3062018-04-26 Pedro Alves <palves@redhat.com>
307
308 * linespec.c (struct bound_minimal_symbol_search_key): New.
309 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
310 skip first line if we found a GNU ifunc minimal symbol by name.
311 (compare_msymbols): Change parameters to work with a destructured
312 lhs minsym.
313 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
314 functions.
315
3467ec66
PA
3162018-04-26 Pedro Alves <palves@redhat.com>
317
318 * breakpoint.c (set_breakpoint_location_function): Don't resolve
319 ifunc targets here. Instead, if we have an ifunc minsym, use its
320 address/name.
321 (add_location_to_breakpoint): Store the minsym and the objfile in
322 the breakpoint location.
323 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
324 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
325 Record the minsym in the sal.
326 * symtab.h (symtab_and_line) <msymbol>: New field.
327
28f4fa4d
PA
3282018-04-26 Pedro Alves <palves@redhat.com>
329
330 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
331 unless we actually resolved the ifunc.
332
ca31ab1d
PA
3332018-04-26 Pedro Alves <palves@redhat.com>
334
335 * c-exp.y (variable production): Prefer ifunc minsyms over
336 regular function symbols.
337 * symtab.c (find_gnu_ifunc): New function.
338 * minsyms.h (lookup_msym_prefer): New enum.
339 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
340 parameter by a lookup_msym_prefer parameter.
341 * symtab.h (find_gnu_ifunc): New declaration.
342
8388016d
PA
3432018-04-26 Pedro Alves <palves@redhat.com>
344
345 * blockframe.c (find_gnu_ifunc_target_type): New function.
346 (find_function_type): New.
347 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
348 return a value with a memory address.
349 (eval_call): For calls to GNU ifunc functions, try to find the
350 type of the target function from the type that the resolver
351 returns.
352 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
353 symbols.
354 * infcall.c (find_function_return_type): Delete.
355 (find_function_addr): Add 'function_type' parameter. For calls to
356 GNU ifunc functions, try to find the type of the target function
357 from the type that the resolver returns, and return it via
358 FUNCTION_TYPE.
359 (call_function_by_hand_dummy): Adjust to use the function type
360 returned by find_function_addr.
361 (find_function_addr): Add 'function_type' parameter and move
362 description here.
363 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
364 declarations.
365
a376e11d
PA
3662018-04-26 Pedro Alves <palves@redhat.com>
367
368 * c-exp.y (variable production): Skip finding an alias for ifunc
369 symbols.
370
02e169e2
PA
3712018-04-26 Pedro Alves <palves@redhat.com>
372
373 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
374
249b5733
PA
3752018-04-25 Pedro Alves <palves@redhat.com>
376
377 * infcmd.c (kill_command): Print the pid as string, not the whole
378 thread's ptid. Add comment. s/has been killed/killed/ in output
379 message.
380 * remote.c (remote_detach_1): Print the pid as string, not the
381 whole thread's ptid.
382
f67c0c91
SDJ
3832018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
384 Sergio Durigan Junior <sergiodj@redhat.com>
385 Pedro Alves <palves@redhat.com>
386
387 * infcmd.c (kill_command): Print message when inferior has
388 been killed.
389 * inferior.c (print_inferior_events): Remove 'static'. Set as
390 '1'.
391 (add_inferior): Improve message printed when
392 'print_inferior_events' is on.
393 (exit_inferior): Remove message printed when
394 'print_inferior_events' is on.
395 (detach_inferior): Improve message printed when
396 'print_inferior_events' is on.
397 (initialize_inferiors): Use 'add_inferior_silent' to set
398 'current_inferior_'.
399 * inferior.h (print_inferior_events): Declare here as
400 'extern'.
401 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
402 '[Detaching...]' messages when 'print_inferior_events' is on.
403 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
404 as prefix/suffix for messages. Remove periods. Fix erroneous
405 'Detaching after fork from child...', replace it by '... from
406 parent...'.
407 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
408 prefix/suffix when printing 'Detaching...' messages. Print
409 them when 'print_inferior_events' is on.
410 * remote.c (remote_detach_1): Print message when detaching
411 from inferior and '!is_fork_parent'.
412
e427af18
TT
4132018-04-24 Tom Tromey <tom@tromey.com>
414
415 * cli-out.h: Reindent.
416
05b1d8d6
TT
4172018-04-24 Tom Tromey <tom@tromey.com>
418
419 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
420 (cli_ui_out::do_field_string): Use fputs_filtered.
421 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
422
a95c7dab
TT
4232018-04-23 Tom Tromey <tom@tromey.com>
424
425 * guile/scm-frame.c (gdbscm_frame_read_var): Use
426 gdb::unique_xmalloc_ptr.
427
458412c3
TT
4282018-04-23 Tom Tromey <tom@tromey.com>
429
430 * configure: Rebuild.
431
db86b02b
RS
4322018-04-22 Rajendra SY <rajendra.sy@gmail.com>
433
434 PR gdb/23095
435 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
436 prepare_for_testing. Set normal_bp to r_debug_state if target
437 is bsd.
438
00aecdcf
PA
4392018-04-21 Pedro Alves <palves@redhat.com>
440 Rajendra SY <rajendra.sy@gmail.com>
441
442 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
443 * remote.c (extended_remote_attach): In all-stop mode, mark the
444 thread as executing.
445
224608c3
PW
4462018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
447
448 * thread.c (thread_apply_all_command): Fix comment.
449 (thread_command): Fix comment.
450
3b74854b
AH
4512018-04-10 Alan Hayward <alan.hayward@arm.com>
452
453 * common/tdesc.h (tdesc_create_feature): Remove xml filename
454 parameter.
455 * features/aarch64-core.c (create_feature_aarch64_core):
456 Regenerate.
457 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
458 Likewise.
459 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
460 Likewise.
461 * features/i386/32bit-avx512.c
462 (create_feature_i386_32bit_avx512): Likewise.
463 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
464 Likewise.
465 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
466 Likewise.
467 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
468 Likewise.
469 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
470 Likewise.
471 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
472 Likewise.
473 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
474 Likewise.
475 * features/i386/64bit-avx512.c
476 (create_feature_i386_64bit_avx512): Likewise.
477 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
478 Likewise.
479 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
480 Likewise.
481 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
482 Likewise.
483 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
484 Likewise.
485 * features/i386/64bit-segments.c
486 (create_feature_i386_64bit_segments): Likewise.
487 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
488 Likewise.
489 * features/i386/x32-core.c
490 (create_feature_i386_x32_core): Likewise.
491 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
492 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
493 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
494 * target-descriptions.c: In generated code, don't pass xml
495 filename.
496
e98577a9
AH
4972018-04-18 Alan Hayward <alan.hayward@arm.com>
498
499 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
500 (print_xml_feature::visit_post): Likewise.
501 (print_xml_feature::visit): Likewise.
502 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
503 (print_xml_feature): Add new class.
504 * regformats/regdat.sh: Null xmltarget on feature targets.
505 * target-descriptions.c (struct target_desc): Add xmltarget.
506 (maintenance_check_tdesc_xml_convert): Add unittest function.
507 (tdesc_get_features_xml): Add function to get xml.
508 (maintenance_check_xml_descriptions): Test xml generation.
509 * xml-tdesc.c (string_read_description_xml): Add function.
510 * xml-tdesc.h (string_read_description_xml): Add declaration.
511
ad7fc756
AH
5122018-04-18 Alan Hayward <alan.hayward@arm.com>
513
514 * features/Makefile: Add feature marker to targets with new style
515 target descriptions.
516 * regformats/aarch64.dat: Regenerate.
517 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
518 * regformats/i386/amd64-avx-linux.dat: Likewise.
519 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
520 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
521 * regformats/i386/amd64-linux.dat: Likewise.
522 * regformats/i386/amd64-mpx-linux.dat: Likewise.
523 * regformats/i386/amd64.dat: Likewise.
524 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
525 * regformats/i386/i386-avx-linux.dat: Likewise.
526 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
527 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
528 * regformats/i386/i386-linux.dat: Likewise.
529 * regformats/i386/i386-mmx-linux.dat: Likewise.
530 * regformats/i386/i386-mpx-linux.dat: Likewise.
531 * regformats/i386/i386.dat: Likewise.
532 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
533 * regformats/i386/x32-avx-linux.dat: Likewise.
534 * regformats/i386/x32-linux.dat: Likewise.
535 * regformats/tic6x-c62x-linux.dat: Likewise.
536 * regformats/tic6x-c64x-linux.dat: Likewise.
537 * regformats/tic6x-c64xp-linux.dat: Likewise.
538 * regformats/regdat.sh: Parse feature marker.
539
d278f585
AH
5402018-04-18 Alan Hayward <alan.hayward@arm.com>
541
542 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
543 (tdesc_osabi_name): Likewise.
544 * target-descriptions.c (tdesc_architecture_name): Add new
545 function.
546 (tdesc_osabi_name): Likewise.
547
eee8a18d
AH
5482018-04-18 Alan Hayward <alan.hayward@arm.com>
549
550 * common/tdesc.c (tdesc_predefined_type): Move to here.
551 (tdesc_named_type): Likewise.
552 (tdesc_create_vector): Likewise.
553 (tdesc_create_struct): Likewise.
554 (tdesc_set_struct_size): Likewise.
555 (tdesc_create_union): Likewise.
556 (tdesc_create_flags): Likewise.
557 (tdesc_create_enum): Likewise.
558 (tdesc_add_field): Likewise.
559 (tdesc_add_typed_bitfield): Likewise.
560 (tdesc_add_bitfield): Likewise.
561 (tdesc_add_flag): Likewise.
562 (tdesc_add_enum_value): Likewise.
563 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
564 (struct tdesc_type_vector): Likewise.
565 (struct tdesc_type_field): Likewise.
566 (struct tdesc_type_with_fields): Likewise.
567 (tdesc_create_enum): Add declaration.
568 (tdesc_add_typed_bitfield): Likewise.
569 (tdesc_add_enum_value): Likewise.
570 * target-descriptions.c (tdesc_type_field): Move from here.
571 (tdesc_type_builtin): Likewise.
572 (tdesc_type_vector): Likewise.
573 (tdesc_type_with_fields): Likewise.
574 (tdesc_predefined_types): Likewise.
575 (tdesc_named_type): Likewise.
576 (tdesc_create_vector): Likewise.
577 (tdesc_create_struct): Likewise.
578 (tdesc_set_struct_size): Likewise.
579 (tdesc_create_union): Likewise.
580 (tdesc_create_flags): Likewise.
581 (tdesc_create_enum): Likewise.
582 (tdesc_add_field): Likewise.
583 (tdesc_add_typed_bitfield): Likewise.
584 (tdesc_add_bitfield): Likewise.
585 (tdesc_add_flag): Likewise.
586 (tdesc_add_enum_value): Likewise.
587 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
588 (tdesc_add_typed_bitfield): Likewise.
589 (tdesc_add_enum_value): Likewise.
590
82ec9bc7
AH
5912018-04-18 Alan Hayward <alan.hayward@arm.com>
592
593 * common/tdesc.c (tdesc_feature::accept): Move to here.
594 (tdesc_feature::operator==): Likewise.
595 (tdesc_create_reg): Likewise.
596 * common/tdesc.h (tdesc_type_kind): Likewise.
597 (struct tdesc_type): Likewise.
598 (struct tdesc_feature): Likewise.
599 * regformats/regdat.sh: Create a feature.
600 * target-descriptions.c (tdesc_type_kind): Move from here.
601 (tdesc_type): Likewise.
602 (tdesc_type_up): Likewise.
603 (tdesc_feature): Likewise.
604 (tdesc_create_reg): Likewise.
605
ea3e7d71
AH
6062018-04-18 Alan Hayward <alan.hayward@arm.com>
607
608 * Makefile.in: Add arch/tdesc.c
609 * common/tdesc.c: New file.
610 * common/tdesc.h (tdesc_element_visitor): Move to here.
611 (tdesc_element): Likewise.
612 (tdesc_reg): Likewise.
613 (tdesc_reg_up): Likewise.
614 * regformats/regdef.h (reg): Add offset to constructors.
615 * target-descriptions.c (tdesc_element_visitor): Move from here.
616 (tdesc_element): Likewise.
617 (tdesc_reg): Likewise.
618 (tdesc_reg_up): Likewise.
619
bedda9ac
TT
6202018-04-17 Tom Tromey <tom@tromey.com>
621
622 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
623 discriminant field.
624
a037790e
TT
6252018-04-17 Tom Tromey <tom@tromey.com>
626
627 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
628
c7dcbf88
AA
6292018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
630
631 * symtab.c (print_symbol_info): Skip printing filename and line
632 number when `last' is NULL.
633 (symtab_symbol_info): Use empty string instead of NULL for first
634 invocation of print_symbol_info.
635 (rbreak_command): Pass NULL to `last' parameter of
636 print_symbol_info.
637
07d28c77
SM
6382018-04-16 Simon Marchi <simon.marchi@ericsson.com>
639
640 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
641 instead of nullptr.
642
8a3de5e1
PA
6432018-04-16 Pedro Alves <palves@redhat.com>
644
645 * MAINTAINERS (sh): Remove.
646 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
647 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
648 (ALLDEPFILES): Remove sh64-tdep.c.
649 * NEWS: Mentions that support for SH-5/SH64 is removed.
650 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
651 (sh*-*-openbsd*): Ditto.
652 (sh64-*-elf*): Remove.
653 (sh*): Remove.
654 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
655 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
656 * sh-tdep.c: No longer include "sh64-tdep.h".
657 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
658 * sh64-tdep.c, sh64-tdep.h: Remove files.
659
a2a79012
PA
6602018-04-16 Pedro Alves <palves@redhat.com>
661
662 * MAINTAINERS: Remove m88k.
663 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
664 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
665 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
666 * NEWS: Mention that support for m88k was removed.
667 * configure.host (m88*-*-*): Remove support.
668 * configure.nat (m88k-*-*): Remove support.
669 * configure.tgt (m88*-*-openbsd*): Remove.
670 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
671
eda4efb1
SM
6722018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * configure.tgt (x86_tobjs): New variable.
675 (amd64_tobjs, i386_tobjs): Use it.
676
b744723f
AA
6772018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
678
679 * symtab.c (print_symbol_info): Precede the symbol definition by
680 the line number when available.
681 * NEWS: Advertise this enhancement.
682
4a4495d6
MM
6832018-04-13 Markus Metzger <markus.t.metzger@intel.com>
684
685 * NEWS (New options): announce set/show record btrace cpu.
686 * btrace.c: Include record-btrace.h.
687 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
688 the vendor is unknown.
689 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
690 Maybe overwrite the btrace configuration's cpu.
691 (btrace_compute_ftrace): Add cpu parameter. Update callers.
692 (btrace_fetch): Add cpu parameter. Update callers.
693 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
694 Maybe overwrite the btrace configuration's cpu. Skip enabling
695 errata workarounds if the vendor is unknown.
696 * python/py-record-btrace.c: Include record-btrace.h.
697 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
698 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
699 * record-btrace.c (record_btrace_cpu_state_kind): New.
700 (record_btrace_cpu): New.
701 (set_record_btrace_cpu_cmdlist): New.
702 (record_btrace_get_cpu): New.
703 (require_btrace_thread, record_btrace_info)
704 (record_btrace_resume_thread): Call record_btrace_get_cpu.
705 (cmd_set_record_btrace_cpu_none): New.
706 (cmd_set_record_btrace_cpu_auto): New.
707 (cmd_set_record_btrace_cpu): New.
708 (cmd_show_record_btrace_cpu): New.
709 (_initialize_record_btrace): Initialize set/show record btrace cpu
710 commands.
711 * record-btrace.h (record_btrace_get_cpu): New.
712
69f90c75
MM
7132018-04-13 Markus Metzger <markus.t.metzger@intel.com>
714
715 * record.c (set_record_command): Fix typo in message.
716
b85310e1
MM
7172018-04-13 Markus Metzger <markus.t.metzger@intel.com>
718
719 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
720
1d509aa6
MM
7212018-04-13 Markus Metzger <markus.t.metzger@intel.com>
722
723 * infrun.c (process_event_stop_test): Call
724 gdbarch_in_indirect_branch_thunk.
725 * gdbarch.sh (in_indirect_branch_thunk): New.
726 * gdbarch.c: Regenerated.
727 * gdbarch.h: Regenerated.
728 * x86-tdep.h: New.
729 * x86-tdep.c: New.
730 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
731 (HFILES_NO_SRCDIR): Add x86-tdep.h.
732 (ALLDEPFILES): Add x86-tdep.c.
733 * arch-utils.h (default_in_indirect_branch_thunk): New.
734 * arch-utils.c (default_in_indirect_branch_thunk): New.
735 * i386-tdep: Include x86-tdep.h.
736 (i386_in_indirect_branch_thunk): New.
737 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
738 function.
739 * amd64-tdep: Include x86-tdep.h.
740 (amd64_in_indirect_branch_thunk): New.
741 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
742
b4be9bfd
JK
7432018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
744
745 PR gdb/23053
746 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
747 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
748 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
749 regression.
750
53d7df28
TT
7512018-04-12 Tom Tromey <tom@tromey.com>
752
753 * rust-lang.c (rust_print_struct_def): Remove univariant code.
754 (rust_evaluate_subexp): Likewise.
755
70b33f19
PA
7562018-04-12 Pedro Alves <palves@redhat.com>
757
758 * procfs.c (procfs_detach): Make forward declaration's prototype
759 match definition's protototype.
760 (proc_get_LDT_entry): Remove stale do_cleanups call.
761
436411b1
PA
7622018-04-12 Pedro Alves <palves@redhat.com>
763
764 * target.h (target_ops::to_has_exited): Delete.
765 (target_has_exited): Delete.
766 * target-delegates.c: Regenerate.
767
20db9c52
PA
7682018-04-11 Pedro Alves <palves@redhat.com>
769
770 * target.c (fileio_fh_t::t): Add comment.
771 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
772 (target_fileio_close): Handle a NULL target.
773 (invalidate_fileio_fh): New.
774 (target_close): Call it.
775 * remote.c (remote_hostio_send_command): No longer check whether
776 remote_desc is open.
777
5ff79300
PA
7782018-04-11 Pedro Alves <palves@redhat.com>
779
780 * target.c (fileio_fh_t): Make it a named struct instead of a
781 typedef.
782 (fileio_fh_t::is_closed): New method.
783 (DEF_VEC_O (fileio_fh_t)): Remove.
784 (fileio_fhandles): Now a std::vector.
785 (is_closed_fileio_fh): Delete.
786 (acquire_fileio_fd): Adjust. Rename parameters.
787 (release_fileio_fd): Adjust.
788 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
789 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
790 (target_fileio_close): Adjust.
791
6e22e10d
SM
7922018-04-10 Simon Marchi <simon.marchi@ericsson.com>
793
794 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
795 index.
796
731f534f
PA
7972018-04-10 Pedro Alves <palves@redhat.com>
798
799 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
800 (scoped_finish_thread_state): New class.
801 * infcmd.c (run_command_1): Use it instead of finish_thread_state
802 cleanup.
803 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
804 (fetch_inferior_event, normal_stop): Likewise.
805 * thread.c (finish_thread_state_cleanup): Delete.
806
d5f4488f
SM
8072018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
808 Pedro Alves <palves@redhat.com>
809
810 * value.c: Include "selftest.h" and "common/array-view.h".
811 (struct range) <operator ==>: New.
812 (test_ranges_contain): New.
813 (check_ranges_vector): New.
814 (test_insert_into_bit_range_vector): New.
815 (_initialize_values): Register selftests.
816 * common/array-view.h (operator==, operator!=): New.
817
b24531ed
SM
8182018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * common/gdb_vecs.h (unordered_remove): Add overload that takes
821 an iterator.
822 * inline-frame.c: Include <algorithm>.
823 (struct inline_state): Add constructor.
824 (inline_state_s): Remove.
825 (DEF_VEC_O(inline_state_s)): Remove.
826 (inline_states): Change type to std::vector.
827 (find_inline_frame_state): Adjust to std::vector.
828 (allocate_inline_frame_state): Remove.
829 (clear_inline_frame_state): Adjust to std::vector.
830 (skip_inline_frames): Adjust to std::vector.
831
c252925c
SM
8322018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * tracepoint.h (struct trace_state_variable): Add constructor.
835 <name>: Change type to std::string.
836 * tracepoint.c (tsv_s): Remove.
837 (DEF_VEC_O(tsv_s)): Remove.
838 (tvariables): Change to std::vector.
839 (create_trace_state_variable): Adjust to std::vector.
840 (find_trace_state_variable): Likewise.
841 (find_trace_state_variable_by_number): Likewise.
842 (delete_trace_state_variable): Likewise.
843 (trace_variable_command): Adjust to std::string.
844 (delete_trace_variable_command): Likewise.
845 (tvariables_info_1): Adjust to std::vector.
846 (save_trace_state_variables): Likewise.
847 (start_tracing): Likewise.
848 (merge_uploaded_trace_state_variables): Adjust to std::vector
849 and std::string.
850 * target.h (struct target_ops)
851 <to_download_trace_state_variable>: Pass reference to
852 trace_state_variable.
853 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
854 * target-delegates.c: Re-generate.
855 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
856 (mi_tsv_deleted): Likewise.
857 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
858 * remote.c (remote_download_trace_state_variable): Change
859 pointer to reference and adjust.
860 * make-target-delegates (parse_argtypes): Handle references.
861 (write_function_header): Likewise.
862 (munge_type): Likewise.
863
c9638d26
SM
8642018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
865
866 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
867 string_view-selftests.c.
868 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
869 testsuite.
870 * unittests/basic_string_view/cons/char/1.cc: Likewise.
871 * unittests/basic_string_view/cons/char/2.cc: Likewise.
872 * unittests/basic_string_view/cons/char/3.cc: Likewise.
873 * unittests/basic_string_view/element_access/char/1.cc:
874 Likewise.
875 * unittests/basic_string_view/element_access/char/empty.cc:
876 Likewise.
877 * unittests/basic_string_view/element_access/char/front_back.cc:
878 Likewise.
879 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
880 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
881 Likewise.
882 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
883 Likewise.
884 * unittests/basic_string_view/modifiers/swap/char/1.cc:
885 Likewise.
886 * unittests/basic_string_view/operations/compare/char/1.cc:
887 Likewise.
888 * unittests/basic_string_view/operations/compare/char/13650.cc:
889 Likewise.
890 * unittests/basic_string_view/operations/copy/char/1.cc:
891 Likewise.
892 * unittests/basic_string_view/operations/data/char/1.cc:
893 Likewise.
894 * unittests/basic_string_view/operations/find/char/1.cc:
895 Likewise.
896 * unittests/basic_string_view/operations/find/char/2.cc:
897 Likewise.
898 * unittests/basic_string_view/operations/find/char/3.cc:
899 Likewise.
900 * unittests/basic_string_view/operations/find/char/4.cc:
901 Likewise.
902 * unittests/basic_string_view/operations/rfind/char/1.cc:
903 Likewise.
904 * unittests/basic_string_view/operations/rfind/char/2.cc:
905 Likewise.
906 * unittests/basic_string_view/operations/rfind/char/3.cc:
907 Likewise.
908 * unittests/basic_string_view/operations/substr/char/1.cc:
909 Likewise.
910 * unittests/basic_string_view/operators/char/2.cc: Likewise.
911 * unittests/string_view-selftests.c: New file.
912
fdc11678
SM
9132018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
914
915 * unittests/basic_string_view/capacity/1.cc: New file.
916 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
917 * unittests/basic_string_view/cons/char/1.cc: New file.
918 * unittests/basic_string_view/cons/char/2.cc: New file.
919 * unittests/basic_string_view/cons/char/3.cc: New file.
920 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
921 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
922 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
923 * unittests/basic_string_view/element_access/char/1.cc: New file.
924 * unittests/basic_string_view/element_access/char/2.cc: New file.
925 * unittests/basic_string_view/element_access/char/empty.cc: New file.
926 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
927 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
928 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
929 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
930 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
931 * unittests/basic_string_view/include.cc: New file.
932 * unittests/basic_string_view/inserters/char/1.cc: New file.
933 * unittests/basic_string_view/inserters/char/2.cc: New file.
934 * unittests/basic_string_view/inserters/char/3.cc: New file.
935 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
936 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
937 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
938 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
939 * unittests/basic_string_view/literals/types.cc: New file.
940 * unittests/basic_string_view/literals/values.cc: New file.
941 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
942 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
943 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
944 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
945 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
946 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
947 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
948 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
949 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
950 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
951 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
952 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
953 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
954 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
955 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
956 * unittests/basic_string_view/operations/data/char/1.cc: New file.
957 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
958 * unittests/basic_string_view/operations/find/char/1.cc: New file.
959 * unittests/basic_string_view/operations/find/char/2.cc: New file.
960 * unittests/basic_string_view/operations/find/char/3.cc: New file.
961 * unittests/basic_string_view/operations/find/char/4.cc: New file.
962 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
963 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
964 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
965 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
966 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
967 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
968 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
969 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
970 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
971 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
972 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
973 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
974 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
975 * unittests/basic_string_view/operators/char/2.cc: New file.
976 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
977 * unittests/basic_string_view/range_access/char/1.cc: New file.
978 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
979 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
980 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
981 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
982 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
983 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
984 * unittests/basic_string_view/requirements/typedefs.cc: New file.
985 * unittests/basic_string_view/typedefs.cc: New file.
986 * unittests/basic_string_view/types/1.cc: New file.
987
8345c4a2
SM
9882018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * common/gdb_string_view.h: Remove libstdc++ implementation
991 details, adjust to gdb reality.
992 * common/gdb_string_view.tcc: Likewise.
993 * cli/cli-script.c (struct string_view): Remove.
994 (user_args) <m_args>: Change element type to gdb::string_view.
995 (user_args::insert_args): Adjust.
996
7adcdf08
SM
9972018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
998
999 * common/gdb_string_view.h: New file.
1000 * common/gdb_string_view.tcc: New file.
1001
41260ac2
SM
10022018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
1003
1004 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
1005 * configure: Re-generate.
1006
0bee6dd4
PA
10072018-04-09 Pedro Alves <palves@redhat.com>
1008
1009 * gdbarch.sh: Include "observable.h" instead of "observer.h".
1010 (set_target_gdbarch): Call
1011 gdb::observers::architecture_changed.notify instead of
1012 observer_notify_architecture_changed.
1013
6f14adc5
SM
10142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * tracepoint.c (struct current_traceframe_cleanup): Remove.
1017 (do_restore_current_traceframe_cleanup): Remove.
1018 (restore_current_traceframe_cleanup_dtor): Remove.
1019 (make_cleanup_restore_current_traceframe): Remove.
1020 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
1021 New.
1022 * tracepoint.h (struct scoped_restore_current_traceframe): New.
1023 * infrun.c (fetch_inferior_event): Use
1024 scoped_restore_current_traceframe.
1025
b2bdb8cf
SM
10262018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1027
1028 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
1029 Remove.
1030 <n_allocated_type_units>: Remove.
1031 <all_type_units>: Change to std::vector.
1032 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
1033 to std::vector change.
1034 (dwarf2_per_objfile::get_cutu): Likewise.
1035 (dwarf2_per_objfile::get_tu): Likewise.
1036 (create_signatured_type_table_from_index): Likewise.
1037 (create_signatured_type_table_from_debug_names): Likewise.
1038 (dw2_symtab_iter_next): Likewise.
1039 (dw2_print_stats): Likewise.
1040 (dw2_expand_all_symtabs): Likewise.
1041 (dw2_expand_marked_cus): Likewise.
1042 (dw2_debug_names_iterator::next): Likewise.
1043 (dwarf2_initialize_objfile): Likewise.
1044 (add_signatured_type_cu_to_table): Likewise.
1045 (create_all_type_units): Likewise.
1046 (add_type_unit): Likewise.
1047 (struct tu_abbrev_offset): Add constructor.
1048 (build_type_psymtabs_1): Adjust to std::vector change.
1049 (print_tu_stats): Likewise.
1050 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
1051 (write_debug_names): Likewise.
1052
b76e467d
SM
10532018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1054
1055 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
1056 Make an std::vector.
1057 <n_comp_units>: Remove.
1058 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
1059 to std::vector change.
1060 (dwarf2_per_objfile::get_cutu): Likewise.
1061 (dwarf2_per_objfile::get_cu): Likewise.
1062 (create_cus_from_index): Likewise.
1063 (create_addrmap_from_index): Likewise.
1064 (create_addrmap_from_aranges): Likewise.
1065 (dwarf2_read_index): Likewise.
1066 (dw2_find_last_source_symtab): Likewise.
1067 (dw2_map_symtabs_matching_filename): Likewise.
1068 (dw2_symtab_iter_next): Likewise.
1069 (dw2_print_stats): Likewise.
1070 (dw2_expand_all_symtabs): Likewise.
1071 (dw2_expand_symtabs_with_fullname): Likewise.
1072 (dw2_expand_marked_cus): Likewise.
1073 (dw2_map_symbol_filenames): Likewise.
1074 (create_cus_from_debug_names): Likewise.
1075 (dwarf2_read_debug_names): Likewise.
1076 (dw2_debug_names_iterator::next): Likewise.
1077 (dwarf2_initialize_objfile): Likewise.
1078 (set_partial_user): Likewise.
1079 (dwarf2_build_psymtabs_hard): Likewise.
1080 (read_comp_units_from_section): Remove arguments, adjust to
1081 std::vector change.
1082 (create_all_comp_units): Adjust to std::vector and
1083 read_comp_units_from_section changes.
1084 (dwarf2_find_containing_comp_unit): Adjust to std::vector
1085 change.
1086 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
1087 (psyms_seen_size): Likewise.
1088 (write_gdbindex): Likewise.
1089 (write_debug_names): Likewise.
1090
12359b5e
SM
10912018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
1094 with dwarf2_per_objfile.
1095 (create_cus_from_index): Likewise.
1096 (create_signatured_type_table_from_index): Likewise.
1097 (dwarf2_read_index): Likewise.
1098 (dwarf2_initialize_objfile): Likewise.
1099 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
1100 per_cu rather than get_dwarf2_per_objfile.
1101
ff4c9fec
SM
11022018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * dwarf2read.h (struct signatured_type): Forward declare.
1105 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
1106 New methods.
1107 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
1108 (dw2_get_cutu): ...this.
1109 (dwarf2_per_objfile::get_cu): Rename from...
1110 (dw2_get_cu): ...this.
1111 (dwarf2_per_objfile::get_tu): New.
1112 (create_addrmap_from_index): Adjust.
1113 (create_addrmap_from_aranges): Adjust.
1114 (dw2_find_last_source_symtab): Adjust.
1115 (dw2_map_symtabs_matching_filename): Adjust.
1116 (dw2_symtab_iter_next): Adjust.
1117 (dw2_print_stats): Adjust.
1118 (dw2_expand_all_symtabs): Adjust.
1119 (dw2_expand_symtabs_with_fullname): Adjust.
1120 (dw2_expand_marked_cus): Adjust.
1121 (dw_expand_symtabs_matching_file_matcher): Adjust.
1122 (dw2_map_symbol_filenames): Adjust.
1123 (dw2_debug_names_iterator::next): Adjust.
1124 (dwarf2_initialize_objfile): Adjust.
1125 (set_partial_user): Adjust.
1126 (dwarf2_build_psymtabs_hard): Adjust.
1127
5ca3fcb6
SM
11282018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1129
1130 * dwarf2read.c (create_signatured_type_table_from_debug_names):
1131 Remove unused variables.
1132 (dw2_map_symtabs_matching_filename): Likewise.
1133 (dwarf2_record_block_ranges): Likewise.
1134 (dwarf2_read_addr_index): Likewise.
1135 (follow_die_offset): Likewise.
1136
b2e586e8
SM
11372018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1138
1139 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
1140 to symbol_file_add_main.
1141
7c4e78cf
SM
11422018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1143
1144 PR mi/22299
1145 * mi/mi-console.c (do_fputc_async_safe): New.
1146 (mi_console_file::write_async_safe): New.
1147 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
1148 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
1149 New.
1150 * ui-file.c (ui_file::putstrn): Adjust call to
1151 fputstrn_unfiltered.
1152 * utils.c (printchar): Replace do_fputs and do_fprintf
1153 parameters by do_fputc.
1154 (fputstr_filtered): Adjust call to printchar.
1155 (fputstr_unfiltered): Likewise.
1156 (fputstrn_filtered): Likewise.
1157 (fputstrn_unfiltered): Add do_fputc parameter, pass to
1158 printchar.
1159 * utils.h (do_fputc_ftype): New typedef.
1160 (fputstrn_unfiltered): Add do_fputc parameter.
1161
5dc026d3
SM
11622018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1163
1164 * regformats/i386/i386-avx.dat: Remove.
1165
c912f608
SM
11662018-04-07 Simon Marchi <simon.marchi@ericsson.com>
1167
1168 PR gdb/22979
1169 * amd64-tdep.c (amd64_none_init_abi): New function.
1170 (amd64_x32_none_init_abi): New function.
1171 (_initialize_amd64_tdep): Register handlers for x86-64 and
1172 x64_32 with GDB_OSABI_NONE.
1173 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
1174 GDB_OSABI_NONE osabi.
1175
26540402
SM
11762018-04-07 Simon Marchi <simon.marchi@ericsson.com>
1177
1178 PR gdb/22980
1179 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
1180 GDB_OSABI_NONE.
1181 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
1182 * osabi.c (gdb_osabi_names): Add "unknown" entry.
1183
9018be22
SM
11842018-04-07 Simon Marchi <simon.marchi@ericsson.com>
1185
1186 * common/byte-vector.h (char_vector): New type.
1187 * target.h (target_read_alloc): Return
1188 gdb::optional<byte_vector>.
1189 (target_read_stralloc): Return gdb::optional<char_vector>.
1190 (target_get_osdata): Return gdb::optional<char_vector>.
1191 * target.c (target_read_alloc_1): Templatize. Replacement
1192 manual memory management with vector.
1193 (target_read_alloc): Change return type, adjust.
1194 (target_read_stralloc): Change return type, adjust.
1195 (target_get_osdata): Change return type, adjust.
1196 * auxv.c (struct auxv_info) <length>: Remove.
1197 <data>: Change type to gdb::optional<byte_vector>.
1198 (auxv_inferior_data_cleanup): Free auxv_info with delete.
1199 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
1200 (target_auxv_search): Adjust.
1201 (fprint_target_auxv): Adjust.
1202 * avr-tdep.c (avr_io_reg_read_command): Adjust.
1203 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
1204 (linux_make_corefile_notes): Adjust.
1205 * osdata.c (get_osdata): Adjust.
1206 * remote.c (remote_get_threads_with_qxfer): Adjust.
1207 (remote_memory_map): Adjust.
1208 (remote_traceframe_info): Adjust.
1209 (btrace_read_config): Adjust.
1210 (remote_read_btrace): Adjust.
1211 (remote_pid_to_exec_file): Adjust.
1212 * solib-aix.c (solib_aix_get_library_list): Adjust.
1213 * solib-dsbt.c (decode_loadmap): Don't free buf.
1214 (dsbt_get_initial_loadmaps): Adjust.
1215 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
1216 * solib-target.c (solib_target_current_sos): Adjust.
1217 * tracepoint.c (sdata_make_value): Adjust.
1218 * xml-support.c (xinclude_start_include): Adjust.
1219 (xml_fetch_content_from_file): Adjust.
1220 * xml-support.h (xml_fetch_another): Change return type.
1221 (xml_fetch_content_from_file): Change return type.
1222 * xml-syscall.c (xml_init_syscalls_info): Adjust.
1223 * xml-tdesc.c (file_read_description_xml): Adjust.
1224 (fetch_available_features_from_target): Change return type.
1225 (target_fetch_description_xml): Adjust.
1226 (target_read_description_xml): Adjust.
1227
14c88955
TT
12282018-04-06 Tom Tromey <tom@tromey.com>
1229
1230 * value.c (~value): Update.
1231 (struct value) <contents>: Now unique_xmalloc_ptr.
1232 (value_contents_bits_eq, allocate_value_contents)
1233 (value_contents_raw, value_contents_all_raw)
1234 (value_contents_for_printing, value_contents_for_printing_const)
1235 (set_value_enclosing_type): Update.
1236
0c7e6dd8
TT
12372018-04-06 Tom Tromey <tom@tromey.com>
1238
1239 * value.c (range_s): Remove typedef, VEC.
1240 (struct range): Add operator<.
1241 (range_lessthan): Remove.
1242 (ranges_contain): Change type.
1243 (~value): Update.
1244 (struct value) <unavailable, optimized_out>: Now std::vector.
1245 (value_entirely_available)
1246 (value_entirely_covered_by_range_vector)
1247 (value_entirely_unavailable, value_entirely_optimized_out):
1248 Update.
1249 (insert_into_bit_range_vector): Change argument type.
1250 (find_first_range_overlap): Likewise.
1251 (struct ranges_and_idx, value_contents_bits_eq)
1252 (require_not_optimized_out, require_available): Update.
1253 (ranges_copy_adjusted): Change argument types.
1254 (value_optimized_out, value_copy, value_fetch_lazy): Update.
1255
2c8331b9
TT
12562018-04-06 Tom Tromey <tom@tromey.com>
1257
1258 * value.c (~value): Update.
1259 (struct value) <parent>: Now a value_ref_ptr.
1260 (value_parent, set_value_parent, value_address, value_copy):
1261 Update.
1262
466ce3ae
TT
12632018-04-06 Tom Tromey <tom@tromey.com>
1264
1265 * value.c (struct value): Add constructor, destructor, and member
1266 initializers.
1267 (allocate_value_lazy, value_decref): Update.
1268
062d818d
TT
12692018-04-06 Tom Tromey <tom@tromey.com>
1270
1271 * value.c (struct value) <released, next>: Remove.
1272 (all_values): Now a std::vector.
1273 (allocate_value_lazy): Update.
1274 (value_next): Remove.
1275 (value_mark, value_free_to_mark, release_value)
1276 (value_release_to_mark): Update.
1277
a6535de1
TT
12782018-04-06 Tom Tromey <tom@tromey.com>
1279
1280 * value.h (fetch_subexp_value, value_release_to_mark): Update.
1281 (free_value_chain): Remove.
1282 * value.c (free_value_chain): Remove.
1283 (value_release_to_mark): Return a std::vector.
1284 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
1285 std::vector.
1286 (check_condition): Update.
1287 * eval.c (fetch_subexp_value): Change "val_chain" to a
1288 std::vector.
1289 * breakpoint.c (update_watchpoint): Update.
1290 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
1291
b5621201
TT
12922018-04-06 Tom Tromey <tom@tromey.com>
1293
1294 * value.h (free_all_values): Remove.
1295 * value.c (free_all_values): Remove.
1296
4d0266a0
TT
12972018-04-06 Tom Tromey <tom@tromey.com>
1298
1299 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
1300 (value_history_chain, value_history_count): Remove.
1301 (value_history): New global.
1302 (record_latest_value, access_value_history, show_values)
1303 (preserve_values): Update.
1304
b4d61099
TT
13052018-04-06 Tom Tromey <tom@tromey.com>
1306
1307 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
1308 * varobj.c (varobj_set_display_format, varobj_set_value)
1309 (install_default_visualizer, construct_visualizer)
1310 (install_new_value, ~varobj, varobj_get_value_type)
1311 (my_value_of_variable, varobj_editable_p): Update.
1312 * c-varobj.c (c_describe_child, c_value_of_variable)
1313 (cplus_number_of_children, cplus_describe_child): Update.
1314 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
1315 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
1316 (ada_value_of_variable, ada_value_is_changeable_p): Update.
1317
9b558729
TT
13182018-04-06 Tom Tromey <tom@tromey.com>
1319
1320 * printcmd.c (last_examine_address): Change type to
1321 value_ref_ptr.
1322 (do_examine, x_command): Update.
1323
850645cf
TT
13242018-04-06 Tom Tromey <tom@tromey.com>
1325
1326 * value.c (release_value): Update.
1327 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
1328 (struct bpstats) <val>: Now a value_ref_ptr.
1329 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
1330 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
1331 (~watchpoint, print_it_watchpoint, watch_command_1)
1332 (invalidate_bp_value_on_memory_change): Update.
1333
22bc8444
TT
13342018-04-06 Tom Tromey <tom@tromey.com>
1335
1336 * varobj.c (varobj_clear_saved_item)
1337 (update_dynamic_varobj_children, install_new_value, ~varobj):
1338 Update.
1339 * value.h (value_incref): Move declaration earlier.
1340 (value_decref): Rename from value_free.
1341 (struct value_ref_policy): New.
1342 (value_ref_ptr): New typedef.
1343 (struct value_deleter): Remove.
1344 (gdb_value_up): Remove typedef.
1345 (release_value): Change return type.
1346 (release_value_or_incref): Remove.
1347 * value.c (set_value_parent): Update.
1348 (value_incref): Change return type.
1349 (value_decref): Rename from value_free.
1350 (value_free_to_mark, free_all_values, free_value_chain): Update.
1351 (release_value): Return value_ref_ptr.
1352 (release_value_or_incref): Remove.
1353 (record_latest_value, set_internalvar, clear_internalvar):
1354 Update.
1355 * stack.c (info_frame_command): Don't call value_free.
1356 * python/py-value.c (valpy_dealloc, valpy_new)
1357 (value_to_value_object): Update.
1358 * printcmd.c (do_examine): Update.
1359 * opencl-lang.c (lval_func_free_closure): Update.
1360 * mi/mi-main.c (register_changed_p): Don't call value_free.
1361 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
1362 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
1363 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
1364 value_free.
1365 * guile/scm-value.c (vlscm_free_value_smob)
1366 (vlscm_scm_from_value): Update.
1367 * frame.c (frame_register_unwind, frame_unwind_register_signed)
1368 (frame_unwind_register_unsigned, get_frame_register_bytes)
1369 (put_frame_register_bytes): Don't call value_free.
1370 * findvar.c (address_from_register): Don't call value_free.
1371 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
1372 * dwarf2loc.c (entry_data_value_free_closure)
1373 (value_of_dwarf_reg_entry, free_pieced_value_closure)
1374 (dwarf2_evaluate_loc_desc_full): Update.
1375 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
1376 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
1377 (~watchpoint, watch_command_1)
1378 (invalidate_bp_value_on_memory_change): Update.
1379 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
1380
7f8a5d38
SM
13812018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 PR gdb/23022
1384 * warning.m4: Add -Wno-error=deprecated-register.
1385 * configure: Re-generate.
1386
8a76bd3b
TT
13872018-04-05 Tom Tromey <tom@tromey.com>
1388
1389 * linespec.h: Remove include of "vec.h".
1390
8e8d776e
TT
13912018-04-05 Tom Tromey <tom@tromey.com>
1392
1393 * linespec.c (typep): Remove typedef.
1394 (find_methods, find_superclass_methods): Take a std::vector.
1395 (find_method): Use std::vector.
1396
9b2f8581
TT
13972018-04-05 Tom Tromey <tom@tromey.com>
1398
1399 * utils.c (compare_strings): Remove.
1400 * utils.h (compare_strings): Remove.
1401 * objc-lang.h (find_imps): Update.
1402 * objc-lang.c (find_methods): Take a std::vector.
1403 (uniquify_strings, find_imps): Likewise.
1404 * linespec.c (find_methods): Take a std::vector.
1405 (decode_objc): Use std::vector.
1406 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
1407 a std::vector.
1408 (find_method, find_function_symbols): Use std::vector.
1409
459a2e4c
TT
14102018-04-05 Tom Tromey <tom@tromey.com>
1411
1412 * completer.c (completion_tracker::completion_tracker): Remove
1413 cast.
1414 (completion_tracker::discard_completions): Likewise.
1415 * breakpoint.c (ambiguous_names_p): Remove cast.
1416 * ada-lang.c (_initialize_ada_language): Remove cast.
1417 * utils.h (streq): Update.
1418 (streq_hash): Add new declaration.
1419 * utils.c (streq): Return bool.
1420 (streq_hash): New function.
1421
9be2c17a
TT
14222018-04-05 Tom Tromey <tom@tromey.com>
1423
1424 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
1425 Remove a string copy.
1426
f73c6ece
TT
14272018-04-05 Tom Tromey <tom@tromey.com>
1428
1429 * linespec.c (filter_results): Use std::vector.
1430 (decode_line_2, decode_line_full): Update.
1431
53a0f8a2
TT
14322018-04-05 Tom Tromey <tom@tromey.com>
1433
1434 * linespec.c (canonical_to_fullform): Return std::string.
1435 (filter_results): Update.
1436 (struct decode_line_2_item): Add constructor.
1437 <fullform, displayform>: Now std::string.
1438 (decode_line_2_compare_items): Now a std::sort comparator.
1439 (decode_line_2): Update.
1440
a5b5adf5
TT
14412018-04-05 Tom Tromey <tom@tromey.com>
1442
1443 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
1444 (unexpected_linespec_error): Update.
1445 (linespec_parse_basic, parse_linespec): Update.
1446
6a307fc5
TT
14472018-04-05 Tom Tromey <tom@tromey.com>
1448
1449 * linespec.c (linespec_parse_basic): Reindent.
1450
41c1efc6
TT
14512018-04-05 Tom Tromey <tom@tromey.com>
1452
1453 * minsyms.h (iterate_over_minimal_symbols): Update.
1454 * minsyms.c (iterate_over_minimal_symbols): Take a
1455 gdb::function_view.
1456 * linespec.c (struct collect_minsyms): Remove.
1457 (compare_msyms): Now a std::sort comparator.
1458 (add_minsym): Add parameters.
1459 (search_minsyms_for_name): Update. Use std::vector.
1460
c5edbf3d
TT
14612018-04-03 Tom Tromey <tom@tromey.com>
1462
1463 * mipsread.c (read_alphacoff_dynamic_symtab): Use
1464 gdb::byte_vector.
1465
b39efc48
WP
14662018-04-02 Weimin Pan <weimin.pan@oracle.com>
1467
1468 * MAINTAINERS (Write After Approval): Add Weimin Pan.
1469
121ad66c 14702018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
1471
1472 PR gdb/16959
1473 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
1474 printing static type.
1475
09473be8
TT
14762018-04-01 Tom Tromey <tom@tromey.com>
1477
1478 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
1479 (rs6000_xfer_shared_libraries): Update.
1480
ec1f2d91
SM
14812018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1482
1483 * common/gdb_vecs.h (char_ptr): Remove.
1484 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
1485
d8611974
SM
14862018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
1489 with std::vector.
1490 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
1491
a18ba4e4
SM
14922018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1493
1494 * tracepoint.h (struct uploaded_tp): Initialize fields.
1495 <actions, step_actions, cmd_strings>: Change type to
1496 std::vector<char *>.
1497 * tracepoint.c (get_uploaded_tp): Allocate with new.
1498 (free_uploaded_tps): Free with delete.
1499 (parse_tracepoint_definition): Adjust to std::vector change.
1500 * breakpoint.c (read_uploaded_action): Likewise.
1501 (create_tracepoint_from_upload): Likewise.
1502 * ctf.c (ctf_write_uploaded_tp): Likewise.
1503 (SET_ARRAY_FIELD): Likewise.
1504 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
1505
a7961323
TT
15062018-03-30 Tom Tromey <tom@tromey.com>
1507
1508 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
1509 std::unique_ptr.
1510 (svr4_keep_data_in_core): Update.
1511 (svr4_read_so_list): Update.
1512
e83e4e24
TT
15132018-03-30 Tom Tromey <tom@tromey.com>
1514
1515 * windows-nat.c (handle_output_debug_string, handle_exception):
1516 Update.
1517 * target.h (target_read_string): Update.
1518 * target.c (target_read_string): Change "string" to
1519 unique_xmalloc_ptr.
1520 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1521 Update.
1522 * solib-frv.c (frv_current_sos): Update.
1523 * solib-dsbt.c (dsbt_current_sos): Update.
1524 * solib-darwin.c (darwin_current_sos): Update.
1525 * linux-thread-db.c (inferior_has_bug): Update.
1526 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
1527 Update. Remove alloca.
1528 * ada-lang.c (ada_main_name): Update.
1529
263db9a1
TT
15302018-03-30 Tom Tromey <tom@tromey.com>
1531
1532 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
1533 (struct dwo_file_deleter): New.
1534 (dwo_file_up): New typedef.
1535 (open_and_init_dwo_file): Use dwo_file_up.
1536 (free_dwo_file_cleanup): Remove.
1537
5dafb3d1
TT
15382018-03-30 Tom Tromey <tom@tromey.com>
1539
1540 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
1541 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
1542
11ed8cad
TT
15432018-03-30 Tom Tromey <tom@tromey.com>
1544
1545 * dwarf2read.c (class free_cached_comp_units): New class.
1546 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
1547 (free_cached_comp_units): Remove function.
1548
9ae79dac
TT
15492018-03-30 Tom Tromey <tom@tromey.com>
1550
1551 * utils.h (make_cleanup_unpush_target): Remove.
1552 * inf-ptrace.c (struct target_unpusher): New.
1553 (target_unpush_up) New typedef.
1554 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
1555 target_unpush_up.
1556 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
1557
5aa89276
TT
15582018-03-27 Tom Tromey <tom@tromey.com>
1559
1560 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
1561
1dbeed45
TT
15622018-03-27 Pedro Alves <palves@redhat.com>
1563 Tom Tromey <tom@tromey.com>
1564
1565 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
1566 destructor. Now a class.
1567 (gdb_readline_wrapper_cleanup): Remove function.
1568 (gdb_readline_wrapper): Remove cleanups.
1569
c819b2c0
TT
15702018-03-27 Tom Tromey <tom@tromey.com>
1571
1572 * typeprint.h (struct type_print_options) <local_typedefs,
1573 global_typedefs>: Remove "struct" keyword.
1574 (class typedef_hash_table): New class.
1575 (recursively_update_typedef_hash, add_template_parameters)
1576 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
1577 (find_typedef_in_hash): Don't declare.
1578 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
1579 (typedef_hash_table::recursively_update): Rename from
1580 recursively_update_typedef_hash. Now a member.
1581 (typedef_hash_table::add_template_parameters): Rename from
1582 add_template_parameters. Now a member.
1583 (typedef_hash_table::typedef_hash_table): Now a constructor;
1584 rename from create_typedef_hash.
1585 (typedef_hash_table::~typedef_hash_table): Now a destructor;
1586 rename from free_typedef_hash.
1587 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
1588 (do_free_global_table): Remove.
1589 (typedef_hash_table::typedef_hash_table): New constructor; renamed
1590 from copy_type_recursive.
1591 (create_global_typedef_table): Remove.
1592 (typedef_hash_table::find_global_typedef): Now a member of
1593 typedef_hash_table.
1594 (typedef_hash_table::find_typedef): Rename from
1595 find_typedef_in_hash; now a member.
1596 (whatis_exp): Update.
1597 * extension.h (struct ext_lang_type_printers): Add constructor and
1598 destructor.
1599 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
1600 declare.
1601 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
1602 Now a constructor; rename from start_ext_lang_type_printers.
1603 (ext_lang_type_printers): Now a destructor; rename from
1604 free_ext_lang_type_printers.
1605 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
1606 Update.
1607 (c_type_print_base_struct_union): Update. Remove cleanups.
1608
608219fb
TT
16092018-03-27 Tom Tromey <tom@tromey.com>
1610
1611 * dwarf-index-write.c: Include <cmath>.
1612
3fcded8f
JB
16132018-03-27 Joel Brobecker <brobecker@adacore.com>
1614
1615 * NEWS: Add entry describing new "set|show varsize-limit" command.
1616 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
1617 command.
1618 * printcmd.c (_initialize_printcmd): Add "set var" alias of
1619 "set variable".
1620
cd4fb1b2
SM
16212018-03-27 Simon Marchi <simon.marchi@ericsson.com>
1622
1623 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
1624 dwarf-index-write.c
1625 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
1626 * dwarf-index-common.c: New file.
1627 * dwarf-index-common.h: New file.
1628 * dwarf-index-write.c: New file.
1629 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
1630 (struct dwarf2_section_info): Move from here.
1631 (dwarf2_section_info_def): Likewise.
1632 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
1633 (offset_type): Likewise.
1634 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
1635 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
1636 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
1637 (byte_swap): Likewise.
1638 (MAYBE_SWAP): Likewise.
1639 (dwarf2_per_cu_ptr): Likewise.
1640 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
1641 (struct tu_stats): Likewise.
1642 (struct dwarf2_per_objfile): Likewise.
1643 (struct dwarf2_per_cu_data): Likewise.
1644 (struct signatured_type): Likewise.
1645 (sig_type_ptr): Likewise.
1646 (DEF_VEC_P (sig_type_ptr)): Likewise.
1647 (INDEX4_SUFFIX): Likewise.
1648 (INDEX5_SUFFIX): Likewise.
1649 (DEBUG_STR_SUFFIX): Likewise.
1650 (dwarf2_read_section): Make non-static.
1651 (mapped_index_string_hash): Move from here.
1652 (dwarf5_djb_hash): Likewise.
1653 (file_write): Likewise.
1654 (class data_buf): Likewise.
1655 (struct symtab_index_entry): Likewise.
1656 (struct mapped_symtab): Likewise.
1657 (find_slot): Likewise.
1658 (hash_expand): Likewise.
1659 (add_index_entry): Likewise.
1660 (uniquify_cu_indices): Likewise.
1661 (class c_str_view): Likewise.
1662 (class c_str_view_hasher): Likewise.
1663 (class vector_hasher): Likewise.
1664 (write_hash_table): Likewise.
1665 (psym_index_map): Likewise.
1666 (struct addrmap_index_data): Likewise.
1667 (add_address_entry): Likewise.
1668 (add_address_entry_worker): Likewise.
1669 (write_address_map): Likewise.
1670 (symbol_kind): Likewise.
1671 (write_psymbols): Likewise.
1672 (struct signatured_type_index_data): Likewise.
1673 (write_one_signatured_type): Likewise.
1674 (recursively_count_psymbols): Likewise.
1675 (recursively_write_psymbols): Likewise.
1676 (class debug_names): Likewise.
1677 (check_dwarf64_offsets): Likewise.
1678 (psyms_seen_size): Likewise.
1679 (write_gdbindex): Likewise.
1680 (write_debug_names): Likewise.
1681 (assert_file_size): Likewise.
1682 (write_psymtabs_to_index): Likewise.
1683 (save_gdb_index_command): Likewise.
1684 (_initialize_dwarf2_read): Don't register the "save gdb-index"
1685 command.
1686 * dwarf2read.h: New file.
1687
59cc4834
JB
16882018-03-27 Joel Brobecker <brobecker@adacore.com>
1689
1690 PR gdb/22670
1691 * dwarf2read.c (dwarf2_physname): Do not return the demangled
1692 symbol name if the CU's language stores symbol names in linkage
1693 format.
1694 * language.h (struct language_defn)
1695 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
1696 all instances of this struct.
1697
67501539
TT
16982018-03-26 Tom Tromey <tom@tromey.com>
1699
1700 * stack.c (backtrace_command_1): Remove verbose code.
1701
76c939ac
TT
17022018-03-26 Tom Tromey <tom@tromey.com>
1703
1704 * python/py-framefilter.c (py_print_type): Don't catch
1705 exceptions. Return void.
1706 (py_print_value): Likewise.
1707 (py_print_single_arg): Likewise.
1708 (enumerate_args): Don't catch exceptions.
1709 (py_print_args): Likewise.
1710 (py_print_frame): Likewise.
1711 (gdbpy_apply_frame_filter): Catch exceptions here.
1712
9507b29c
TT
17132018-03-26 Tom Tromey <tom@tromey.com>
1714
1715 * stack.c (_initialize_stack): Remove trailing newlines from help
1716 text. Add "Usage" line to "backtrace" help.
1717
eb68e487
TT
17182018-03-26 Tom Tromey <tom@tromey.com>
1719
1720 PR python/16486:
1721 * python/py-framefilter.c (py_print_args): Call wrap_hint.
1722
1f111921
TT
17232018-03-26 Tom Tromey <tom@tromey.com>
1724
1725 * python/py-framefilter.c (py_print_single_arg): Return
1726 EXT_LANG_BT_ERROR from catch.
1727
fb7eb8b5
TT
17282018-03-26 Tom Tromey <tom@tromey.com>
1729
1730 PR backtrace/15584:
1731 * stack.c (backtrace_command_1): Move some code into no-filters
1732 "if".
1733
4ca59a9f
TT
17342018-03-26 Tom Tromey <tom@tromey.com>
1735
1736 * python/py-framefilter.c (throw_quit_or_print_exception): New
1737 function.
1738 (gdbpy_apply_frame_filter): Use it.
1739
92256134
TT
17402018-03-26 Tom Tromey <tom@tromey.com>
1741
1742 PR cli/17716:
1743 * python/py-framefilter.c (py_print_type, py_print_value)
1744 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
1745 RETURN_MASK_ERROR.
1746
7a630bc2
TT
17472018-03-26 Tom Tromey <tom@tromey.com>
1748
1749 * python/py-framefilter.c (enumerate_args): Use
1750 gdb::unique_xmalloc_ptr.
1751
63283d4a
TT
17522018-03-26 Tom Tromey <tom@tromey.com>
1753
1754 * python/py-framefilter.c (py_print_frame): Return
1755 EXT_LANG_BT_OK.
1756 (gdbpy_apply_frame_filter): Update comment.
1757 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
1758 Remove.
1759 <EXT_LANG_BT_NO_FILTERS>: Change value.
1760
978d6c75
TT
17612018-03-26 Tom Tromey <tom@tromey.com>
1762
1763 PR backtrace/15582:
1764 * stack.c (backtrace_command): Parse "hide" argument.
1765 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
1766 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
1767 constant.
1768
1cf7e640
TT
17692018-03-26 Tom Tromey <tom@tromey.com>
1770
1771 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
1772 add "flags".
1773 (backtrace_command): Remove "fulltrace", add "flags".
1774
ea3b0687
TT
17752018-03-26 Tom Tromey <tom@tromey.com>
1776
1777 * stack.c (backtrace_command): Rewrite command line parsing.
1778
9f034d75
SM
17792018-03-26 Simon Marchi <simon.marchi@ericsson.com>
1780
1781 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
1782
ce1459e5
SM
17832018-03-26 Simon Marchi <simon.marchi@ericsson.com>
1784
1785 * filename-seen-cache.h: Add include guard.
1786
4f7ae6f5
KS
17872018-03-26 Keith Seitz <keiths@redhat.com>
1788
1789 * symfile.c (place_section): Remove "struct" from section_addr_info
1790 in comment.
1791 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
1792 "struct" keyword from section_addr_info.
1793
5cd3e386
AH
17942018-03-26 Alan Hayward <alan.hayward@arm.com>
1795
1796 * regformats/regdef.h (reg): Add constructors.
1797
3e5ef9a4
PA
17982018-03-25 Pedro Alves <palves@redhat.com>
1799
1800 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
1801 if then/else bodies in var_func_name extraction.
1802
c88d2fcc 18032018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
1804
1805 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
1806 lookup_minimal_symbol() to find symbol entry.
1807 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
1808
b7fee5a3
KS
18092018-03-23 Keith Seitz <keiths@redhat.com>
1810
1811 PR c++/22968
1812 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
1813 nested type definitions for C++, too.
1814
2cc9b304
TT
18152018-03-23 Tom Tromey <tom@tromey.com>
1816
1817 * machoread.c (struct oso_el): Add a constructor. Don't define as
1818 a typedef.
1819 (macho_register_oso): Remove.
1820 (macho_symtab_read): Take a std::vector.
1821 (oso_el_compare_name): Now a std::sort comparator.
1822 (macho_symfile_read_all_oso): Take a std::vector.
1823 (macho_symfile_read): Use std::vector. Remove cleanups.
1824
a2b2bc12
TT
18252018-03-22 Tom Tromey <tom@tromey.com>
1826
1827 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
1828 (record_full_goto_bookmark): Use std::string.
1829
7a8f494c
PFC
18302018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1831
1832 PR tdep/18295
1833 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
1834 a single mask.
1835
dd6d677f
PFC
18362018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1837
1838 * rs6000-tdep.c (store_insn_p): New function.
1839 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
1840 and cr_reg to their unshifted values. Use store_insn_p to
1841 match LR saves using either R1 or fdata->alloca_reg. Use
1842 store_insn_p to match CR saves. Set alloca_reg_offset
1843 when alloca_reg and framep are set. Remove lr_reg shift
1844 when assigning to fdata->lr_register.
1845
26d6cec4
AA
18462018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1847
1848 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
1849 command line args instead of emitting a warning.
1850
5d9310c4
SM
18512018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * tracepoint.h (struct static_tracepoint_marker): Initialize
1854 fields, define default constructor, move constructor and move
1855 assignment, disable the rest.
1856 <str_id, extra>: Make std::string.
1857 (release_static_tracepoint_marker): Remove.
1858 (free_current_marker): Remove.
1859 * tracepoint.c (free_current_marker): Remove.
1860 (parse_static_tracepoint_marker_definition): Adjust to
1861 std::string, use new hex2str overload.
1862 (release_static_tracepoint_marker): Remove.
1863 (print_one_static_tracepoint_marker): Get marker by reference
1864 and adjust to std::string.
1865 (info_static_tracepoint_markers_command): Adjust to std::vector
1866 changes
1867 * target.h (static_tracepoint_marker_p): Remove typedef.
1868 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
1869 (struct target_ops) <to_static_tracepoint_marker_at>: Return
1870 bool.
1871 <to_static_tracepoint_markers_by_strid>: Return std::vector.
1872 * target-debug.h
1873 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
1874 (target_debug_print_std_vector_static_tracepoint_marker): New.
1875 (target_debug_print_struct_static_tracepoint_marker_p): Rename
1876 to...
1877 (target_debug_print_static_tracepoint_marker_p): ... this.
1878 * target-delegates.c: Re-generate.
1879 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
1880 Make std::string.
1881 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
1882 (decode_static_tracepoint_spec): Adjust to std::vector.
1883 (tracepoint_print_one_detail): Adjust to std::string.
1884 (strace_marker_decode_location): Adjust to std::string.
1885 (update_static_tracepoint): Adjust to std::string, remove call
1886 to release_static_tracepoint_marker.
1887 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1888 Adjust to std::vector.
1889 * remote.c (remote_static_tracepoint_marker_at): Return bool.
1890 (remote_static_tracepoint_markers_by_strid): Adjust to
1891 std::vector.
1892 * common/rsp-low.h (hex2str): New overload with explicit count
1893 of bytes.
1894 * common/rsp-low.c (hex2str): New overload with explicit count
1895 of bytes.
1896 * unittests/rsp-low-selftests.c (test_hex2str): New function.
1897 (_initialize_rsp_low_selftests): Add test_hex2str test.
1898 * unittests/tracepoint-selftests.c
1899 (test_parse_static_tracepoint_marker_definition): Adjust to
1900 std::string.
1901
62c222b6
SM
19022018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * tracepoint.c (parse_static_tracepoint_marker_definition):
1905 Consider case where the definition is followed by more
1906 definitions.
1907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1908 tracepoint-selftests.c.
1909 * unittests/tracepoint-selftests.c: New.
1910
7eb2418f
PFC
19112018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1912
1913 * MAINTAINERS (Write After Approval): Add Pedro Franco de
1914 Carvalho.
1915
7cbe16e9
SR
19162018-03-20 Stephen Roberts <stephen.roberts@arm.com>
1917
3d6b3b82 1918 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 1919
4ee89e90
SR
19202018-03-20 Stephen Roberts <stephen.roberts@arm.com>
1921
3d6b3b82 1922 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 1923
92630041
TT
19242018-03-19 Tom Tromey <tom@tromey.com>
1925
1926 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
1927 "IDENT" production.
1928
76727919
TT
19292018-03-19 Pedro Alves <palves@redhat.com>
1930 Tom Tromey <tom@tromey.com>
1931
1932 * unittests/observable-selftests.c: New file.
1933 * common/observable.h: New file.
1934 * observable.h: New file.
1935 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
1936 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
1937 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
1938 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
1939 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
1940 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
1941 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
1942 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
1943 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
1944 python/py-breakpoint.c, python/py-finishbreakpoint.c,
1945 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
1946 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
1947 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
1948 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
1949 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
1950 tui/tui-interp.c, valops.c: Update all users.
1951 * tui/tui-hooks.c (tui_bp_created_observer)
1952 (tui_bp_deleted_observer, tui_bp_modified_observer)
1953 (tui_inferior_exit_observer, tui_before_prompt_observer)
1954 (tui_normal_stop_observer, tui_register_changed_observer):
1955 Remove.
1956 (tui_observers_token): New global.
1957 (attach_or_detach, tui_attach_detach_observers): New functions.
1958 (tui_install_hooks, tui_remove_hooks): Use
1959 tui_attach_detach_observers.
1960 * record-btrace.c (record_btrace_thread_observer): Remove.
1961 (record_btrace_thread_observer_token): New global.
1962 * observer.sh: Remove.
1963 * observer.c: Rename to observable.c.
1964 * observable.c (namespace gdb_observers): Define new objects.
1965 (observer_debug): Move into gdb_observers namespace.
1966 (struct observer, struct observer_list, xalloc_observer_list_node)
1967 (xfree_observer_list_node, generic_observer_attach)
1968 (generic_observer_detach, generic_observer_notify): Remove.
1969 (_initialize_observer): Update.
1970 Don't include observer.inc.
1971 * Makefile.in (generated_files): Remove observer.h, observer.inc.
1972 (clean mostlyclean): Likewise.
1973 (observer.h, observer.inc): Remove targets.
1974 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
1975 (COMMON_SFILES): Use observable.c, not observer.c.
1976 * .gitignore: Remove observer.h.
1977
1cb1f3da
TT
19782018-03-18 Tom Tromey <tom@tromey.com>
1979
1980 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
1981 gdb::def_vector.
1982 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1983
a06ab151
TT
19842018-03-17 Tom Tromey <tom@tromey.com>
1985
1986 * auto-load.c (auto_load_objfile_script_1): Use std::string.
1987
770623f7
TT
19882018-03-17 Tom Tromey <tom@tromey.com>
1989
1990 * target.c (class scoped_target_fd): New.
1991 (target_fileio_close_cleanup): Remove.
1992 (target_fileio_read_alloc_1): Use scoped_target_fd.
1993
39be3c7e
SM
19942018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 * silent-rules.mk: New.
1997 * Makefile.in: Include silent-rules.mk
1998 (srcdir, VPATH, top_srcdir): Move up.
1999 (COMPILE): Add ECHO_CXX.
2000 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
2001 (init.c): Add ECHO_INIT_C.
2002 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2003 (version.c): Add ECHO_GEN.
2004 (printcmd.o): Add ECHO_CXX.
2005 (target-float.o): Add ECHO_CXX.
2006 (ada-exp.o): Add ECHO_CXX.
2007 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
2008 (insight$(EXEEXT)): Add ECHO_CXXLD.
2009 * gnulib/configure.ac: Add AM_SILENT_RULES.
2010 * gnulib/aclocal.m4: Re-generate.
2011 * gnulib/configure: Re-generate.
2012 * gnulib/import/Makefile.in: Re-generate.
2013
37e136b1
TT
20142018-03-16 Tom Tromey <tom@tromey.com>
2015
2016 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
2017 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
2018 * utils.c (do_free_section_addr_info)
2019 (make_cleanup_free_section_addr_info): Remove.
2020 * symfile.h (struct other_sections): Add constructor.
2021 (struct section_addr_info): Remove.
2022 (section_addr_info): New typedef.
2023 (struct sym_fns) <sym_offsets>: Change type of parameter.
2024 (build_section_addr_info_from_objfile)
2025 (relative_addr_info_to_section_offsets, addr_info_make_relative)
2026 (default_symfile_offsets, symbol_file_add)
2027 (symbol_file_add_from_bfd)
2028 (build_section_addr_info_from_section_table): Update.
2029 (alloc_section_addr_info, free_section_addr_info): Don't declare.
2030 * symfile.c (alloc_section_addr_info): Remove.
2031 (build_section_addr_info_from_section_table): Change return type.
2032 Update.
2033 (build_section_addr_info_from_bfd)
2034 (build_section_addr_info_from_objfile): Likewise.
2035 (free_section_addr_info): Remove.
2036 (relative_addr_info_to_section_offsets): Change type of "addrs".
2037 (addrs_section_compar): Now a std::sort comparator.
2038 (addrs_section_sort): Change return type.
2039 (addr_info_make_relative): Change type of "addrs". Update.
2040 (default_symfile_offsets, syms_from_objfile_1)
2041 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
2042 (symbol_file_add_separate): Update.
2043 (symbol_file_add): Change type of "addrs". Update.
2044 (add_symbol_file_command): Update. Remove cleanups.
2045 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
2046 cleanups.
2047 * symfile-debug.c (debug_sym_offsets): Change type of "info".
2048 * solib.c (solib_read_symbols): Update.
2049 * objfiles.c (objfile_relocate): Update. Remove cleanups.
2050 * machoread.c (macho_symfile_offsets): Update.
2051 * jit.c (jit_bfd_try_read_symtab): Update.
2052
03afa6ef
SM
20532018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2056 unittests/utils-selftests.c.
2057 * unittests/utils-selftests.c: New file.
2058
3ae9ce5d
TT
20592018-03-14 Tom Tromey <tom@tromey.com>
2060
2061 PR cli/14977:
2062 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
2063 for NULL.
2064
b8c2339b
TT
20652018-03-14 Tom Tromey <tom@tromey.com>
2066
2067 PR cli/19918:
2068 * printcmd.c (printf_pointer): Allow "-" in format.
2069
80ae639d
TT
20702018-03-14 Tom Tromey <tom@tromey.com>
2071
2072 * printcmd.c (_initialize_printcmd): Add usage to printf.
2073
0d671d99
YQ
20742018-03-14 Yao Qi <qiyao@sourceware.org>
2075
2076 * MAINTAINERS: Update my email address.
2077
b577b6af
TT
20782018-03-13 Tom Tromey <tom@tromey.com>
2079
2080 * machoread.c (macho_check_dsym): Change filenamep to a
2081 std::string*.
2082 (macho_symfile_read): Update.
2083 * symfile.c (load_command): Use std::string.
2084
89a3b63e
AB
20852018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
2088 to error message string.
2089 (riscv_register_name): Use xsnprintf instead of sprintf.
2090 (riscv_insn::fetch_instruction): Use gdb_assert instead of
2091 internal_error.
2092 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
2093 error.
2094 (riscv_push_dummy_call): Likewise.
2095
984c7238
TT
20962018-03-12 Tom Tromey <tom@tromey.com>
2097
2098 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
2099 Use gdb::byte_vector.
2100 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
2101
933522d1
YQ
21022018-03-12 Yao Qi <yao.qi@linaro.org>
2103
2104 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
2105 parameter type to readable_regcache.
2106 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
2107 the declaration.
2108
be2daae6
TT
21092018-03-11 Tom Tromey <tom@tromey.com>
2110
2111 * dwarf2read.c (struct nextfield): Add initializers.
2112 (struct nextfnfield): Remove.
2113 (struct fnfieldlist): Add initializers. Remove "length" and
2114 "head", use std::vector.
2115 (struct decl_field_list): Remove.
2116 (struct field_info): Add initializers.
2117 <fields, baseclasses>: Now std::vector.
2118 <nbaseclasses, nfnfields, typedef_field_list_count,
2119 nested_types_list_count>: Remove.
2120 (dwarf2_add_field, dwarf2_add_type_defn)
2121 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
2122 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
2123 (process_structure_scope): Update.
2124
484cf504
TT
21252018-03-11 Tom Tromey <tom@tromey.com>
2126
2127 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
2128 for use by std::sort.
2129 (build_type_psymtabs_1): Use std::vector.
2130
9bd8e0b0
EZ
21312018-03-09 Eli Zaretskii <eliz@gnu.org>
2132
2133 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
2134 and LIBMPFR in the printed configuration.
2135
5dc1a704
TT
21362018-03-08 Tom Tromey <tom@tromey.com>
2137
2138 * source.c (get_filename_and_charpos): Use scoped_fd.
2139 * nto-procfs.c (procfs_open_1): Use scoped_fd.
2140 (procfs_pidlist): Likewise.
2141 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
2142 (iterate_over_mappings): Likewise.
2143
fdf07f3a
TT
21442018-03-08 Tom Tromey <tom@tromey.com>
2145
2146 * infcall.c (struct call_return_meta_info)
2147 <stack_temporaries_enabled>: Remove.
2148 (get_call_return_value, call_function_by_hand_dummy): Update.
2149 * thread.c (disable_thread_stack_temporaries): Remove.
2150 (enable_thread_stack_temporaries): Remove.
2151 (thread_stack_temporaries_enabled_p): Return bool.
2152 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
2153 (get_last_thread_stack_temporary): Update.
2154 * eval.c (evaluate_subexp): Update.
2155 * gdbthread.h (class enable_thread_stack_temporaries): Now a
2156 class, not a function.
2157 (value_ptr, value_vec): Remove typedefs.
2158 (class thread_info) <stack_temporaries_enabled>: Now bool.
2159 <stack_temporaries>: Now a std::vector.
2160 (thread_stack_temporaries_enabled_p)
2161 (value_in_thread_stack_temporaries): Return bool.
2162
567a3e54
SM
21632018-03-08 Simon Marchi <simon.marchi@ericsson.com>
2164
2165 * remote.c (putpkt_binary): Fix omitted bytes reporting.
2166 (getpkt_or_notif_sane_1): Likewise.
2167
00b40057
SM
21682018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * build-id.c (build_id_to_debug_bfd): Use std::string.
2171
a8dbfd58
SM
21722018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * build-id.c (find_separate_debug_file_by_buildid): Return
2175 std::string.
2176 * build-id.h (find_separate_debug_file_by_buildid): Return
2177 std::string.
2178 * coffread.c (coff_symfile_read): Adjust to std::string.
2179 * elfread.c (elf_symfile_read): Adjust to std::string.
2180 * symfile.c (separate_debug_file_exists): Change parameter to
2181 std::string.
2182 (find_separate_debug_file): Return std::string.
2183 (find_separate_debug_file_by_debuglink): Return std::string.
2184 * symfile.h (find_separate_debug_file_by_debuglink): Return
2185 std::string.
2186
e6a58aa8
SM
21872018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2188
2189 * common/xml-utils.c (xml_escape_text): Move code to...
2190 (xml_escape_text_append): ... this new function.
2191 * common/xml-utils.h (xml_escape_text_append): New declaration.
2192 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
2193 New function.
2194 (_initialize_xml_utils): register test_xml_escape_text_append as
2195 a selftest.
2196
4ef0bef6
AH
21972018-03-07 Alan Hayward <alan.hayward@arm.com>
2198
2199 * defs.h: Remove MAX_REGISTER_SIZE.
2200 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
2201 asserts.
2202 * python/py-unwind.c (pyuw_sniffer): Likewise.
2203
e0d3522b
TT
22042018-03-07 Tom Tromey <tom@tromey.com>
2205
2206 * linux-tdep.c (linux_info_proc): Update.
2207 * target.h (struct target_ops) <to_fileio_readlink>: Return
2208 optional<string>.
2209 (target_fileio_readlink): Return optional<string>.
2210 * remote.c (remote_hostio_readlink): Return optional<string>.
2211 * inf-child.c (inf_child_fileio_readlink): Return
2212 optional<string>.
2213 * target.c (target_fileio_readlink): Return optional<string>.
2214
ea005f31
AB
22152018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * regcache.c (cooked_read_test): Add riscv to the list of
2218 architectures that have a save_reggroup.
2219
e95a97d4
AA
22202018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2221
2222 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
2223 value is not a dynamic class object.
2224
d8344f3d
TT
22252018-03-06 Tom Tromey <tom@tromey.com>
2226
2227 * rust-exp.y: Formatting fixes.
2228
9add17f2
AB
22292018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * riscv-tdep.c (riscv_register_name): Remove target description
2232 support.
2233 (riscv_gdbarch_init): Remove target description check.
2234
c9486dfe
AB
22352018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2236
2237 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
2238 comment.
2239 * riscv-tdep.h: Likewise.
2240
d74aff3d
AB
22412018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
2244 (riscv_pseudo_register_write): Delete.
2245 (riscv_gdbarch_init): Remove all use of pseudo registers.
2246
7ea78b59
SM
22472018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2248
2249 * record-btrace.c (btrace_print_lines): Replace cleanup
2250 parameter with RAII equivalents.
2251 (btrace_insn_history): Replace cleanup with RAII equivalents.
2252 * ui-out.h (make_cleanup_ui_out_list_begin_end,
2253 make_cleanup_ui_out_tuple_begin_end): Remove.
2254 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
2255 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
2256 make_cleanup_ui_out_list_begin_end): Remove.
2257
53127008
SM
22582018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2259
2260 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
2261 parameter types to std::vector. Use bool.
2262 (record_btrace_wait): Replace VEC(tp_t) with
2263 std::vector<thread_info *>.
2264 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
2265
228f1508
SM
22662018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2267
2268 * record-btrace.c (record_btrace_disable_callback): Remove.
2269 (struct scoped_btrace_disable): New.
2270 (record_btrace_open): Use scoped_btrace_disable.
2271
b2970c23
AB
22722018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2273
2274 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
2275 reading values from registers.
2276
fb294655
AB
22772018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2278
2279 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
2280 where appropriate.
2281
cab5bb9d
AB
22822018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
2285 change parameter type. Use GDB's print functions, and use
2286 core_addr_to_string where appropriate.
2287 (riscv_push_dummy_call): Use core_addr_to_string where
2288 appropriate, update call to riscv_print_arg_location, and reindent
2289 a few lines.
2290 (riscv_return_value): Update call to riscv_print_arg_location.
2291
dbbb1059
AB
22922018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2293 Tim Newsome <tim@sifive.com>
2294 Albert Ou <a0u@eecs.berkeley.edu>
2295 Darius Rad <darius@bluespec.com>
2296
2297 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
2298 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
2299 (ALLDEPFILES): Add riscv-tdep.c
2300 * configure.tgt: Add riscv support.
2301 * riscv-tdep.c: New file.
2302 * riscv-tdep.h: New file.
2303 * NEWS: Mention new target.
2304 * MAINTAINERS: Add entry for riscv.
2305
5dc43913
AB
23062018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
2309 fields within aggregates.
2310
3dea1ef7
SM
23112018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * record-btrace.c (btrace_print_lines): Change type of flags to
2314 gdb_disassembly_flags.
2315
7efba073
JB
23162018-03-04 John Baldwin <jhb@FreeBSD.org>
2317
2318 * fbsd-nat.c: Include "inf-ptrace.h".
2319 (USE_SIGTRAP_SIGINFO): Conditionally define.
2320 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
2321 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
2322 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
2323 function.
2324 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
2325 Likewise.
2326 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
2327 Likewise.
2328 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
2329 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
2330 "supports_stopped_by_hw_breakpoint" target methods.
2331
386a8676
JB
23322018-03-04 John Baldwin <jhb@FreeBSD.org>
2333
2334 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
2335 * fbsd-nat.c (debug_fbsd_nat): New variable.
2336 (show_fbsd_nat_debug): New function.
2337 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
2338 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
2339
12279366
JB
23402018-03-04 John Baldwin <jhb@FreeBSD.org>
2341
2342 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
2343 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
2344 prototype.
2345 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
2346 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
2347 method.
2348
54693cf5
SM
23492018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
2352 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
2353
ccb2231c
SM
23542018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2355
2356 * charset.c (struct charset_vector): New.
2357 (charsets): Change type to charset_vector.
2358 (find_charset_names): Adjust.
2359 (add_one): Adjust.
2360 (_initialize_charset): Adjust.
2361
6fb16ce6
SM
23622018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2363
2364 * progspace.h (struct program_space) <deleted_solibs>: Change
2365 type to std::vector<std::string>.
2366 * progspace.c (clear_program_space_solib_cache): Adjust.
2367 * breakpoint.c (print_solib_event): Adjust.
2368 (check_status_catch_solib): Adjust.
2369 * solib.c (update_solib_list): Adjust.
2370 * ui-out.h (class ui_out) <field_string>: New overload.
2371 * ui-out.c (ui_out::field_string): New overload.
2372
564b1e3f
SM
23732018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2374
2375 * progspace.h (struct program_space): Add constructor and
2376 destructor, initialize fields.
2377 (add_program_space): Remove.
2378 * progspace.c (add_program_space): Rename to...
2379 (program_space::program_space): ... this.
2380 (release_program_space): Rename to...
2381 (program_space::~program_space): ... this.
2382 (delete_program_space): Use delete to delete program_space.
2383 (initialize_progspace): Use new to allocate program_space.
2384 * inferior.c (add_inferior_with_spaces): Likewise.
2385 (clone_inferior_command): Likewise.
2386 * infrun.c (follow_fork_inferior): Likewise.
2387 (handle_vfork_child_exec_or_exit): Likewise.
2388
e80aaf61
SM
23892018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2390
2391 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
2392 (delim_string_to_char_ptr_vec): Return std::vector of
2393 gdb::unique_xmalloc_ptr.
2394 (dirnames_to_char_ptr_vec_append): Take std::vector of
2395 gdb::unique_xmalloc_ptr.
2396 (dirnames_to_char_ptr_vec): Return std::vector of
2397 gdb::unique_xmalloc_ptr.
2398 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
2399 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
2400 (delim_string_to_char_ptr_vec): Return an std::vector of
2401 gdb::unique_xmalloc_ptr, adjust the code.
2402 (dirnames_to_char_ptr_vec_append): Take an std::vector of
2403 gdb::unique_xmalloc_ptr, adjust the code.
2404 (dirnames_to_char_ptr_vec): Return an std::vector of
2405 gdb::unique_xmalloc_ptr, adjust the code.
2406 * auto-load.c (auto_load_safe_path_vec): Change type to
2407 std::vector of gdb::unique_xmalloc_ptr.
2408 (auto_load_expand_dir_vars): Return an std::vector of
2409 gdb::unique_xmalloc_ptr, adjust the code.
2410 (auto_load_safe_path_vec_update): Adjust.
2411 (filename_is_in_auto_load_safe_path_vec): Adjust.
2412 (auto_load_objfile_script_1): Adjust.
2413 * build-id.c (build_id_to_debug_bfd): Adjust.
2414 * linux-thread-db.c (thread_db_load_search): Adjust.
2415 * source.c (add_path): Adjust.
2416 (openp): Adjust.
2417 * symfile.c (find_separate_debug_file): Adjust.
2418 * utils.c (do_free_char_ptr_vec): Remove.
2419 (make_cleanup_free_char_ptr_vec): Remove.
2420
ab818ade
SDJ
24212018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
2422
2423 PR gdb/22907
2424 * common/pathstuff.c: Conditionally include "<windows.h>".
2425
e1e6f073
GS
24262018-03-01 Georg Sauthoff <mail@georg.so>
2427
2428 PR gdb/22888
2429 * gcore.in: Quote variables and switch interpreter to bash.
2430
c7b15a66
TT
24312018-03-01 Tom Tromey <tom@tromey.com>
2432
2433 * dwarf2read.c (alloc_discriminant_info): Fix default_index
2434 assertion. Add assertion for discriminant_index.
2435 (quirk_rust_enum): Use correct base type name in univariant case.
2436
0cb7c7b0
SM
24372018-03-01 Simon Marchi <simon.marchi@ericsson.com>
2438
2439 * record.c (get_call_history_modifiers): Return a
2440 record_print_flags.
2441 (cmd_record_call_history): Adjust.
2442 * record-btrace.c (record_btrace_call_history): Adjust.
2443 (record_btrace_call_history_range): Adjust.
2444 (record_btrace_call_history_from): Adjust.
2445 * target-debug.h (target_debug_print_record_print_flags): New.
2446 * target-delegates.c: Re-generate.
2447 * target.c (target_call_history): Change flags type.
2448 (target_call_history_from): Likewise.
2449 (target_call_history_range): Likewise.
2450 * target.h (struct target_ops) <target_call_history>: Likewise.
2451 (target_call_history_from): Likewise.
2452 (target_call_history_range): Likewise.
2453
25e3c82c
SDJ
24542018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2455 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * common/common-utils.c: Include "sys/stat.h".
2458 (is_regular_file): Move here from "source.c"; change return
2459 type to "bool".
2460 * common/common-utils.h (is_regular_file): New prototype.
2461 * common/pathstuff.c (contains_dir_separator): New function.
2462 * common/pathstuff.h (contains_dir_separator): New prototype.
2463 * source.c: Don't include "sys/stat.h".
2464 (is_regular_file): Move to "common/common-utils.c".
2465
b4987c95
SDJ
24662018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2467
2468 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
2469 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
2470 * auto-load.c: Include "common/pathstuff.h".
2471 * common/common-def.h (current_directory): Move here.
2472 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
2473 function.
2474 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
2475 prototype.
2476 * common/pathstuff.c: New file.
2477 * common/pathstuff.h: New file.
2478 * compile/compile.c: Include "common/pathstuff.h".
2479 * defs.h (current_directory): Move to "common/common-defs.h".
2480 * dwarf2read.c: Include "common/pathstuff.h".
2481 * exec.c: Likewise.
2482 * guile/scm-safe-call.c: Likewise.
2483 * linux-thread-db.c: Likewise.
2484 * main.c: Likewise.
2485 * nto-tdep.c: Likewise.
2486 * objfiles.c: Likewise.
2487 * source.c: Likewise.
2488 * symtab.c: Likewise.
2489 * utils.c: Include "common/pathstuff.h".
2490 (gdb_realpath): Move to "common/pathstuff.c".
2491 (gdb_realpath_keepfile): Likewise.
2492 (gdb_abspath): Likewise.
2493 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
2494 (gdb_realpath_keepfile): Likewise.
2495 (gdb_abspath): Likewise.
2496
f169cfdc
JB
24972018-02-28 John Baldwin <jhb@FreeBSD.org>
2498
2499 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
2500 wildcard process pid for super_resume for kernels with a
2501 specific bug.
2502
e05cac70
PM
25032018-02-27 Phil Muldoon <pmuldoon@redhat.com>
2504
2505 * compile/compile.c (get_args): Add additional comments
2506 explaining function.
2507
55089490
TT
25082018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
2509 Tom Tromey <tom@tromey.com>
2510
2511 * target.h (memory_write_request_s): Remove typedef. Don't define
2512 VEC.
2513 (target_write_memory_blocks): Change argument to std::vector.
2514 (struct memory_write_request): Add constructor.
2515 * target-memory.c (compare_block_starting_address): Return bool.
2516 Change argument types.
2517 (claim_memory): Change arguments to use std::vector.
2518 (split_regular_and_flash_blocks, blocks_to_erase)
2519 (compute_garbled_blocks): Likewise.
2520 (cleanup_request_data, cleanup_write_requests_vector): Remove.
2521 (target_write_memory_blocks): Change argument to std::vector.
2522 * symfile.c (struct load_section_data): Add constructor and
2523 destructor. Use std::vector for "requests".
2524 (struct load_progress_data): Add initializers.
2525 (load_section_callback): Update. Use "new".
2526 (clear_memory_write_data): Remove.
2527 (generic_load): Update.
2528
0c305b61
AH
25292018-02-27 Alan Hayward <alan.hayward@arm.com>
2530
2531 * arch/aarch64.h: Use common/tdesc.h.
2532
c5196c92
MR
25332018-02-26 Maciej W. Rozycki <macro@mips.com>
2534
2535 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
2536 architecture with a 64-bit ABI.
2537
37c33887
MR
25382018-02-26 Maciej W. Rozycki <macro@mips.com>
2539
2540 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
2541 ahead of target description loading.
2542
d4dd3282
TT
25432018-02-26 Tom Tromey <tom@tromey.com>
2544
2545 * stack.c (backtrace_command_1): Update.
2546 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
2547 of "flags".
2548 * python/py-framefilter.c (py_print_frame)
2549 (gdbpy_apply_frame_filter): Change type of "flags".
2550 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
2551 of "flags".
2552 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
2553 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
2554 * extension.h (enum frame_filter_flag): Rename from
2555 frame_filter_flags.
2556 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
2557 (apply_ext_lang_frame_filter): Change type of "flags".
2558 * extension.c (apply_ext_lang_frame_filter): Change type of
2559 "flags".
2560 * extension-priv.h (struct extension_language_ops)
2561 <apply_frame_filter>: Change type of "flags".
2562
6893c19a
TT
25632018-02-26 Tom Tromey <tom@tromey.com>
2564
2565 PR python/16497:
2566 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
2567 off-by-one in py_end computation.
2568 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
2569 PRINT_MORE_FRAMES.
2570 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
2571 constant.
2572
2ddeaf8a
TT
25732018-02-26 Tom Tromey <tom@tromey.com>
2574
2575 * dwarf2read.c (struct variant_field): New.
2576 (struct nextfield) <variant>: New field.
2577 (dwarf2_add_field): Handle DW_TAG_variant_part.
2578 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
2579 discriminated union.
2580 (read_structure_type): Handle DW_TAG_variant_part.
2581 (handle_struct_member_die): New function, extracted from
2582 process_structure_scope. Handle DW_TAG_variant.
2583 (process_structure_scope): Handle discriminated unions. Call
2584 handle_struct_member_die.
2585
c9317f21
TT
25862018-02-26 Tom Tromey <tom@tromey.com>
2587
2588 * rust-lang.h (rust_last_path_segment): Declare.
2589 * rust-lang.c (rust_last_path_segment): Now public. Change
2590 contract.
2591 (struct disr_info): Remove.
2592 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
2593 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
2594 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
2595 (rust_enum_p, rust_enum_variant): New function.
2596 (rust_underscore_fields): Remove "offset" parameter.
2597 (rust_print_enum): New function.
2598 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
2599 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
2600 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
2601 enums.
2602 (rust_internal_print_type): New function, from rust_print_type.
2603 Remove enum code.
2604 (rust_print_type): Call rust_internal_print_type.
2605 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
2606 Update enum handling.
2607 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
2608 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
2609 (rust_union_quirks): New functions.
2610 (process_full_comp_unit, process_full_type_unit): Call
2611 rust_union_quirks.
2612 (process_structure_scope): Update rust_unions if necessary.
2613
7c22600a
TT
26142018-02-26 Tom Tromey <tom@tromey.com>
2615
2616 * value.h (value_union_variant): Declare.
2617 * valops.c (value_union_variant): New function.
2618 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
2619 (struct discriminant_info): New.
2620 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
2621 enumerator.
2622 (struct main_type) <flag_discriminated_union>: New field.
2623
15ce8941
TT
26242018-02-26 Tom Tromey <tom@tromey.com>
2625
2626 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2627 unittests/unpack-selftests.c.
2628 * unittests/unpack-selftests.c: New file.
2629 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
2630
48fbe735
YQ
26312018-02-26 Yao Qi <yao.qi@linaro.org>
2632
2633 * dwarf2read.c (struct partial_die_info) <read>: New method.
2634 (read_partial_die): Remove the declaration.
2635 (load_partial_dies): Update.
2636 (partial_die_info::partial_die_info):
2637 (read_partial_die): Change it to partial_die_info::read.
2638
52356b79
YQ
26392018-02-26 Yao Qi <yao.qi@linaro.org>
2640
2641 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
2642 (fixup_partial_die): Remove declaration.
2643 (scan_partial_symbols): Update.
2644 (partial_die_parent_scope): Likewise.
2645 (partial_die_full_name): Likewise.
2646 (fixup_partial_die): Change it to partial_die_info::fixup.
2647
35cc7ed7
YQ
26482018-02-26 Yao Qi <yao.qi@linaro.org>
2649
2650 * dwarf2read.c (read_partial_die): Update the declaration.
2651 (load_partial_dies): Caller update.
2652 (read_partial_die): Remove one argument abbrev_len.
2653
6f06d47b
YQ
26542018-02-26 Yao Qi <yao.qi@linaro.org>
2655
2656 * dwarf2read.c (struct partial_die_info): Add ctor, delete
2657 assignment operator.
2658 (load_partial_dies): Use ctor and copy ctor.
2659 (read_partial_die): Update.
2660 (dwarf2_cu::find_partial_die): Use ctor.
2661
d590ff25
YQ
26622018-02-26 Yao Qi <yao.qi@linaro.org>
2663
2664 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
2665 (find_partial_die_in_comp_unit): Change it to
2666 dwarf2_cu::find_partial_die.
2667 (find_partial_die): Update.
2668
fd0a254f
YQ
26692018-02-26 Yao Qi <yao.qi@linaro.org>
2670
2671 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
2672 is NULL.
2673
cd9983dd
YQ
26742018-02-26 Yao Qi <yao.qi@linaro.org>
2675
2676 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
2677
f46cd62a
AH
26782018-02-26 Alan Hayward <alan.hayward@arm.com>
2679
2680 * arch/amd64.h: Use common/tdesc.h.
2681 * arch/i386.c: Likewise.
2682 * arch/i386.h: Likewise.
2683 * arch/tic6x.c: Likewise.
2684 * arch/tdesc.h: Move file from here...
2685 * common/tdesc.h: ...to here.
2686 * features/aarch64-core.c: Regenerate.
2687 * features/aarch64-fpu.c: Regenerate.
2688 * features/i386/32bit-avx.c: Regenerate.
2689 * features/i386/32bit-avx512.c: Regenerate.
2690 * features/i386/32bit-core.c: Regenerate.
2691 * features/i386/32bit-linux.c: Regenerate.
2692 * features/i386/32bit-mpx.c: Regenerate.
2693 * features/i386/32bit-pkeys.c: Regenerate.
2694 * features/i386/32bit-sse.c: Regenerate.
2695 * features/i386/64bit-avx.c: Regenerate.
2696 * features/i386/64bit-avx512.c: Regenerate.
2697 * features/i386/64bit-core.c: Regenerate.
2698 * features/i386/64bit-linux.c: Regenerate.
2699 * features/i386/64bit-mpx.c: Regenerate.
2700 * features/i386/64bit-pkeys.c: Regenerate.
2701 * features/i386/64bit-segments.c: Regenerate.
2702 * features/i386/64bit-sse.c: Regenerate.
2703 * features/i386/x32-core.c: Regenerate.
2704 * features/tic6x-c6xp.c: Regenerate.
2705 * features/tic6x-core.c: Regenerate.
2706 * features/tic6x-gp.c: Regenerate.
2707 * target-descriptions.c: Use common/tdesc.h.
2708 * target-descriptions.h: Likewise.
2709
9b292f68
TT
27102018-02-24 Tom Tromey <tom@tromey.com>
2711
2712 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2713 (try_thread_db_load_from_dir, thread_db_load_search): Use
2714 std::string.
2715 (info_auto_load_libthread_db_compare): Return bool. Change
2716 argument types.
2717 (info_auto_load_libthread_db): Use std::vector, std::string.
2718 Remove cleanups.
2719
281d762b
TT
27202018-02-24 Tom Tromey <tom@tromey.com>
2721
2722 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
2723 std::string.
2724 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
2725 std::string*.
2726 * gdbarch.c: Rebuild.
2727 * gdbarch.h: Rebuild.
2728 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
2729 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
2730 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
2731 std::string*.
2732
9d8780f0
SM
27332018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * gdbtypes.h (sect_offset): Change type to uint64_t.
2736 (sect_offset_str): New function.
2737 * dwarf2read.c (create_addrmap_from_aranges): Use
2738 sect_offset_str.
2739 (error_check_comp_unit_head): Likewise.
2740 (create_debug_type_hash_table): Likewise.
2741 (read_cutu_die_from_dwo): Likewise.
2742 (init_cutu_and_read_dies): Likewise.
2743 (init_cutu_and_read_dies_no_follow): Likewise.
2744 (process_psymtab_comp_unit_reader): Likewise.
2745 (partial_die_parent_scope): Likewise.
2746 (peek_die_abbrev): Likewise.
2747 (process_queue): Likewise.
2748 (dwarf2_physname): Likewise.
2749 (read_namespace_alias): Likewise.
2750 (read_import_statement): Likewise.
2751 (create_dwo_cu_reader): Likewise.
2752 (create_cus_hash_table): Likewise.
2753 (lookup_dwo_cutu): Likewise.
2754 (inherit_abstract_dies): Likewise.
2755 (read_func_scope): Likewise.
2756 (read_call_site_scope): Likewise.
2757 (dwarf2_add_member_fn): Likewise.
2758 (read_common_block): Likewise.
2759 (read_module_type): Likewise.
2760 (read_typedef): Likewise.
2761 (read_subrange_type): Likewise.
2762 (load_partial_dies): Likewise.
2763 (read_partial_die): Likewise.
2764 (find_partial_die): Likewise.
2765 (read_str_index): Likewise.
2766 (dwarf2_string_attr): Likewise.
2767 (build_error_marker_type): Likewise.
2768 (lookup_die_type): Likewise.
2769 (dump_die_shallow): Likewise.
2770 (follow_die_ref): Likewise.
2771 (dwarf2_fetch_die_loc_sect_off): Likewise.
2772 (dwarf2_fetch_constant_bytes): Likewise.
2773 (follow_die_sig): Likewise.
2774 (get_signatured_type): Likewise.
2775 (get_DW_AT_signature_type): Likewise.
2776 (dwarf2_find_containing_comp_unit): Likewise.
2777 (set_die_type): Likewise.
2778
8ec57239
JB
27792018-02-21 John Baldwin <jhb@FreeBSD.org>
2780
2781 * arch/aarch64.c: Include "common-defs.h".
2782 * arch/amd64.c: Likewise.
2783 * arch/i386.c: Likewise.
2784
3eac2b65
TT
27852018-02-21 Tom Tromey <tom@tromey.com>
2786
2787 * value.h: (extract_field_op): Update.
2788 * eval.c (extract_field_op): Return a const char *.
2789 * expression.h (parse_expression_for_completion): Update.
2790 * completer.c (complete_expression): Update.
2791 (add_struct_fields): Make fieldname const.
2792 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
2793 (mark_completion_tag, parse_exp_in_context_1): Update.
2794 (parse_expression_for_completion): Change "name" to
2795 unique_xmalloc_ptr*.
2796
6ccb583f
TT
27972018-02-21 Tom Tromey <tom@tromey.com>
2798
2799 * infcall.c (call_function_by_hand_dummy): Use std::vector.
2800
c113ed0c
YQ
28012018-02-21 Yao Qi <yao.qi@linaro.org>
2802
2803 * avr-tdep.c (avr_read_pc): Change parameter type to
2804 readable_regcache.
2805 * gdbarch.sh (read_pc): Likewise.
2806 * gdbarch.c: Re-generated.
2807 * gdbarch.h: Re-generated.
2808 * hppa-tdep.c (hppa_read_pc): Change parameter type to
2809 readable_regcache.
2810 * ia64-tdep.c (ia64_read_pc): Likewise.
2811 * mips-tdep.c (mips_read_pc): Likewise.
2812 * spu-tdep.c (spu_read_pc): Likewise.
2813
4c74fe6b
YQ
28142018-02-21 Yao Qi <yao.qi@linaro.org>
2815
2816 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
2817 * regcache-dump.c: New file.
2818 * regcache.c: Move register_dump to regcache-dump.c.
2819 (maintenance_print_registers): Likewise.
2820 (maintenance_print_raw_registers): Likewise.
2821 (maintenance_print_cooked_registers): Likewise.
2822 (maintenance_print_register_groups): Likewise.
2823 (maintenance_print_remote_registers): Likewise.
2824 (_initialize_regcache): Likewise.
2825 * regcache.h (register_dump): Moved from regcache.c.
2826
796bb026
YQ
28272018-02-21 Yao Qi <yao.qi@linaro.org>
2828
2829 * regcache.c (regcache::regcache): Update.
2830 (regcache::invalidate): Move it to detached_regcache::invalidate.
2831 (get_thread_arch_aspace_regcache): Update.
2832 (regcache::raw_update): Update.
2833 (regcache::cooked_read): Remove some code.
2834 (regcache::cooked_read_value): Likewise.
2835 (regcache::raw_write): Remove assert on m_readonly_p.
2836 (regcache::raw_supply_integer): Move it to
2837 detached_regcache::raw_supply_integer.
2838 (regcache::raw_supply_zeroed): Likewise.
2839 * regcache.h (detached_regcache) <raw_supply_integer>: New
2840 declaration.
2841 <raw_supply_zeroed, invalidate>: Likewise.
2842 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
2843 <invalidate>: Likewise.
2844 <m_readonly_p>: Removed.
2845
215c69dc
YQ
28462018-02-21 Yao Qi <yao.qi@linaro.org>
2847
2848 * infcmd.c (get_return_value): Let stop_regs point to
2849 get_current_regcache.
2850 * regcache.c (regcache::regcache): Remove.
2851 (register_dump_reg_buffer): New class.
2852 (regcache_print): Adjust.
2853 * regcache.h (regcache): Remove constructors.
2854
f3384e66
YQ
28552018-02-21 Yao Qi <yao.qi@linaro.org>
2856
2857 * regcache.c (class register_dump): New class.
2858 (register_dump_regcache, register_dump_none): New class.
2859 (register_dump_remote, register_dump_groups): New class.
2860 (regcache_print): Update.
2861 * regcache.h (regcache_dump_what): Move it to regcache.c.
2862 (regcache) <dump>: Remove.
2863
c8ec2f33
YQ
28642018-02-21 Yao Qi <yao.qi@linaro.org>
2865
2866 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
2867 reg_buffer_rw *.
2868 (jit_unwind_reg_set_impl): Call raw_supply.
2869 (jit_frame_sniffer): Use reg_buffer_rw.
2870 * record-full.c (record_full_core_regbuf): Change its type.
2871 (record_full_core_open_1): Use reg_buffer_rw.
2872 (record_full_close): Likewise.
2873 (record_full_core_fetch_registers): Use regcache->raw_supply.
2874 (record_full_core_store_registers): Likewise.
2875 * regcache.c (regcache::get_register_status): Move it to
2876 reg_buffer.
2877 (regcache_raw_set_cached_value): Remove.
2878 (regcache::raw_set_cached_value): Remove.
2879 (regcache::raw_write): Call raw_supply.
2880 (regcache::raw_supply): Move it to reg_buffer_rw.
2881 * regcache.h (regcache_raw_set_cached_value): Remove.
2882 (reg_buffer_rw): New class.
2883
daf6667d
YQ
28842018-02-21 Yao Qi <yao.qi@linaro.org>
2885
2886 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
2887 readonly_detached_regcache.
2888 (dummy_frame_prev_register): Use regcache->cooked_read.
2889 * frame.c (frame_save_as_regcache): Change return type.
2890 (frame_pop): Update.
2891 * frame.h (frame_save_as_regcache): Update declaration.
2892 * inferior.h (get_infcall_suspend_state_regcache): Update
2893 declaration.
2894 * infrun.c (infcall_suspend_state) <registers>: use
2895 readonly_detached_regcache.
2896 (save_infcall_suspend_state): Don't use regcache_dup.
2897 (get_infcall_suspend_state_regcache): Change return type.
2898 * linux-fork.c (struct fork_info) <savedregs>: Change to
2899 readonly_detached_regcache.
2900 <pc>: New field.
2901 (fork_save_infrun_state): Don't use regcache_dup.
2902 (info_checkpoints_command): Adjust.
2903 * mi/mi-main.c (register_changed_p): Update declaration.
2904 (mi_cmd_data_list_changed_registers): Use
2905 readonly_detached_regcache.
2906 (register_changed_p): Change parameter type to
2907 readonly_detached_regcache.
2908 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
2909 readonly_detached_regcache.
2910 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
2911 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
2912 New.
2913 (regcache::save): Move it to reg_buffer.
2914 (regcache::restore): Change parameter type.
2915 (regcache_dup): Remove.
2916 * regcache.h (reg_buffer) <save>: New method.
2917 (readonly_detached_regcache): New class.
2918 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
2919 readonly_detached_regcache.
2920 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
2921
fc5b8736
YQ
29222018-02-21 Yao Qi <yao.qi@linaro.org>
2923
2924 * frame.c (frame_save_as_regcache): Use regcache method save.
2925 (frame_pop): Use regcache method restore.
2926 * infrun.c (restore_infcall_suspend_state): Likewise.
2927 * linux-fork.c (fork_load_infrun_state): Likewise.
2928 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
2929 save.
2930 * regcache.c (regcache_save): Remove.
2931 (regcache::restore): More asserts.
2932 (regcache_cpy): Remove.
2933 * regcache.h (regcache_save): Remove the declaration.
2934 (regcache::restore): Move from private to public.
2935 Remove the friend declaration of regcache_cpy.
2936 (regcache_cpy): Remove declaration.
2937
849d0ba8
YQ
29382018-02-21 Yao Qi <yao.qi@linaro.org>
2939
2940 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
2941 parameter type to 'readable_regcache *'.
2942 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2943 * arm-tdep.c (arm_neon_quad_read): Likewise.
2944 (arm_pseudo_read): Likewise.
2945 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2946 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2947 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2948 * gdbarch.c: Re-generated.
2949 * gdbarch.h: Re-generated.
2950 * gdbarch.sh (pseudo_register_read): Change parameter type to
2951 'readable_regcache *'.
2952 (pseudo_register_read_value): Likewise.
2953 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
2954 (h8300_pseudo_register_read): Likewise.
2955 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
2956 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2957 (i386_pseudo_register_read_into_value): Likewise.
2958 (i386_pseudo_register_read_value): Likewise.
2959 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
2960 declaration.
2961 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
2962 * m32c-tdep.c (m32c_raw_read): Likewise.
2963 (m32c_read_flg): Likewise.
2964 (m32c_banked_register): Likewise.
2965 (m32c_banked_read): Likewise.
2966 (m32c_sb_read): Likewise.
2967 (m32c_part_read): Likewise.
2968 (m32c_cat_read): Likewise.
2969 (m32c_r3r2r1r0_read): Likewise.
2970 (m32c_pseudo_register_read): Likewise.
2971 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2972 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2973 (mep_pseudo_cr64_read): Likewise.
2974 (mep_pseudo_register_read): Likewise.
2975 * mips-tdep.c (mips_pseudo_register_read): Likewise.
2976 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2977 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2978 * regcache.c (regcache::raw_read): Move it to readable_regcache.
2979 (regcache::cooked_read): Likewise.
2980 (regcache::cooked_read_value): Likewise.
2981 (regcache_cooked_read_signed):
2982 (regcache::cooked_read): Likewise.
2983 * regcache.h (readable_regcache): New class.
2984 (regcache): Inherit readable_regcache. Move some methods to
2985 readable_regcache.
2986 * rl78-tdep.c (rl78_pseudo_register_read): Change
2987 parameter type to 'readable_regcache *'.
2988 * rs6000-tdep.c (do_regcache_raw_read): Remove.
2989 (e500_pseudo_register_read): Change parameter type to
2990 'readable_regcache *'.
2991 (dfp_pseudo_register_read): Likewise.
2992 (vsx_pseudo_register_read): Likewise.
2993 (efpr_pseudo_register_read): Likewise.
2994 * s390-tdep.c (s390_pseudo_register_read): Likewise.
2995 * sh-tdep.c (sh_pseudo_register_read): Likewise.
2996 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
2997 (sh64_pseudo_register_read): Likewise.
2998 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2999 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
3000 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
3001 (spu_pseudo_register_read): Likewise.
3002 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
3003 (xtensa_pseudo_register_read): Likewise.
3004
31716595
YQ
30052018-02-21 Yao Qi <yao.qi@linaro.org>
3006
3007 * regcache.c (regcache::regcache): Call reg_buffer ctor.
3008 (regcache::arch): Move it to reg_buffer::arch.
3009 (regcache::register_buffer): Likewise.
3010 (regcache::assert_regnum): Likewise.
3011 (regcache::num_raw_registers): Likewise.
3012 * regcache.h (reg_buffer): New class.
3013 (regcache): Inherit reg_buffer.
3014
7104e59b
SM
30152018-02-20 Simon Marchi <simon.marchi@ericsson.com>
3016
3017 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
3018 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
3019
2d8adcbd
MM
30202018-02-20 Markus Metzger <markus.t.metzger@intel.com>
3021
3022 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
3023
b5884fa7
AH
30242018-02-19 Alan Hayward <alan.hayward@arm.com>
3025
3026 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
3027 (SFILES): Remove common/*.c files.
3028 (COMMON_OBS): Remove some *.o files built from common/*.c files.
3029 * common/common.host: Add common reference.
3030 * configure.ac: Likewise.
3031 * configure: Regenerate.
3032
fd90ace4
YQ
30332018-02-16 Yao Qi <yao.qi@linaro.org>
3034
3035 * block.c (block_namespace_info): Inherit allocate_on_obstack.
3036 (block_initialize_namespace): Use new.
3037 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
3038 (dwarf2_free_objfile): Use delete.
3039 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
3040 (copy_type_recursive): Use new.
3041 * gdb_obstack.h (allocate_on_obstack): New.
3042
85046ae2
YQ
30432018-02-15 Yao Qi <yao.qi@linaro.org>
3044
3045 PR gdb/22849
3046 * inferior.c (exit_inferior_1): Reset inf->control.
3047
355c559b
JB
30482018-02-15 Joel Brobecker <brobecker@adacore.com>
3049
3050 * ada-lang.c (ada_to_fixed_value_create): Delete advance
3051 declaration.
3052
980548fd
PA
30532018-02-14 Pedro Alves <palves@redhat.com>
3054
3055 * frame-unwind.c (frame_unwind_try_unwinder): Always call
3056 frame_cleanup_after_sniffer on exception.
3057
692d6f97
TT
30582018-02-14 Tom Tromey <tom@tromey.com>
3059
3060 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
3061 const.
3062 (solib_bfd_open): Make pathname const.
3063 * solib.c (solib_bfd_open): Make pathname const.
3064 * solib-spu.c (spu_bfd_fopen): Make name const.
3065 (spu_bfd_open): Make pathname const.
3066 * solib-darwin.c (darwin_bfd_open): Make pathname const.
3067 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
3068
e0cc99a6
TT
30692018-02-14 Tom Tromey <tom@tromey.com>
3070
3071 * symfile.c (symfile_bfd_open): Update.
3072 * source.h (openp, source_full_path_of, find_and_open_source):
3073 Change argument type to unique_xmalloc_ptr.
3074 * source.c (openp): Take a unique_xmalloc_ptr.
3075 (source_full_path_of, find_and_open_source): Likewise.
3076 (open_source_file, symtab_to_fullname): Update.
3077 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
3078 unique_xmalloc_ptr.
3079 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
3080 (exec_file_find): Update.
3081 * psymtab.c (psymtab_to_fullname): Update.
3082 * nto-tdep.h (nto_find_and_open_solib): Update.
3083 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
3084 unique_xmalloc_ptr.
3085 * exec.c (exec_file_attach): Update.
3086 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
3087 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
3088
b46a8d7c
TT
30892018-02-14 Tom Tromey <tom@tromey.com>
3090
3091 * solib.c: Include source.h.
3092 * nto-tdep.c: Include source.h.
3093 * mi/mi-cmd-env.c: Include source.h.
3094 * infcmd.c: Include source.h.
3095 * exec.c: Include source.h.
3096 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
3097 (add_path, directory_switch, source_path, init_source_path): Move
3098 declarations...
3099 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
3100 (add_path, directory_switch, source_path, init_source_path):
3101 ...here.
3102
797bc1cb
TT
31032018-02-14 Tom Tromey <tom@tromey.com>
3104
3105 * solist.h (exec_file_find, solib_find): Return
3106 unique_xmalloc_ptr.
3107 (solib_bfd_fopen): Take a const char *.
3108 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
3109 (exec_file_find, solib_find): Likewise.
3110 (solib_bfd_fopen): Do not take ownership of "pathname".
3111 (solib_bfd_open): Use unique_xmalloc_ptr.
3112 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
3113 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
3114 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
3115 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
3116
f98b2e33
JB
31172018-02-14 Joel Brobecker <brobecker@adacore.com>
3118
3119 * ada-lang.c (name_match_type_from_name): Remove reference to
3120 ada_name_for_lookup in function's documentation.
3121 * ada-lang.h (ada_name_for_lookup): Delete declaration.
3122
24b9144d
SM
31232018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
3124
3125 * defs.h (enum openp_flags): New enum.
3126 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
3127 Move to enum openp_flags.
3128 (openp_flags): New enum flags.
3129 (openp): Change parameter type to openp_flags.
3130 * source.c (openp): Change parameter type to openp_flags.
3131 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
3132 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
3133
387cd15b
SM
31342018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
3135
3136 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
3137 per-command.
3138
b303c6f6
AB
31392018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
3142 into...
3143 (class dwarf2_queue_guard): ...the destructor of this new class.
3144 (dw2_do_instantiate_symtab): Create instance of the new class
3145 dwarf2_queue_guard, remove cleanup.
3146
9c3630e9
TT
31472018-02-09 Tom Tromey <tom@tromey.com>
3148
3149 * source.c (find_source_lines): Don't reference past the end of
3150 the vector.
3151
c4e12631
MM
31522018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3153
3154 * remote.c (remote_btrace_maybe_reopen): Change error message.
3155 * btrace.c (btrace_enable): Likewise.
3156 (parse_xml_btrace): Likewise.
3157 (parse_xml_btrace_conf): Likewise.
3158
88711fbf
MM
31592018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3160
3161 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
3162 (linux_enable_pt, linux_enable_bts): Call
3163 diagnose_perf_event_open_fail.
3164
17ad2a4f
MM
31652018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3166
3167 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
3168 Remove parameter and change return type. Update callers. Move it.
3169 (linux_enable_bts, linux_enable_pt): Improve error message.
3170 (linux_enable_pt): Remove zero buffer size check.
3171 (linux_enable_btrace): Improve error messages. Remove NULL return
3172 check.
3173
de6242d3
MM
31742018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3175
3176 * btrace.c (btrace_enable): Remove target_supports_btrace call.
3177 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
3178 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
3179 (linux_supports_pt, linux_supports_btrace): Remove.
3180 (linux_enable_bts): Call cpu_supports_bts.
3181 * nat/linux-btrace.h (linux_supports_btrace): Remove.
3182 * remote.c (remote_supports_btrace): Remove.
3183 (init_remote_ops): Remove remote_supports_btrace.
3184 * target-delegates.c: Regenerated.
3185 * target.c (target_supports_btrace): Remove.
3186 * target.h (target_ops) <to_supports_btrace>: Remove
3187 (target_supports_btrace): Remove.
3188 * x86-linux-nat.c (x86_linux_create_target): Remove
3189 linux_supports_btrace.
3190
9ee23a85
MM
31912018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3192
3193 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
3194 btrace failed.
3195 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
3196 exception and use message in own exception.
3197
5c3284c1
MM
31982018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3199
3200 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
3201 (perf_event_pt_event_type): Use gdb_file_up.
3202 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
3203 scoped_fd, and scoped_mmap.
3204
84696f37
MM
32052018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3206
3207 * common/scoped_mmap.h: New.
3208 * unittests/scoped_mmap-selftest.c: New.
3209 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3210 unittests/scoped_mmap-selftest.c.
3211
ea4a0888
MM
32122018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3213
3214 * common/scoped_fd.h: New.
3215 * unittests/scoped_fd-selftest.c: New.
3216 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3217 unittests/scoped_fd-selftest.c.
3218
869e8290
TT
32192018-02-09 Tom Tromey <tom@tromey.com>
3220
3221 * auto-load.c (auto_load_section_scripts): Use
3222 gdb::unique_xmalloc_ptr.
3223
a37a2ae7
TT
32242018-02-09 Tom Tromey <tom@tromey.com>
3225
3226 * auto-load.c (execute_script_contents): Use std::string.
3227
4e725347
JB
32282018-02-09 Joel Brobecker <brobecker@adacore.com>
3229
3230 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
3231 Python function, rather than a new command.
3232
9a897d43
TT
32332018-02-08 Tom Tromey <tom@tromey.com>
3234
3235 * solib.c (solib_find_1): Use std::string.
3236 (solib_bfd_fopen): Use unique_xmalloc_ptr.
3237
58ef3771
TT
32382018-02-08 Tom Tromey <tom@tromey.com>
3239
3240 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
3241
a9abc434
TT
32422018-02-08 Tom Tromey <tom@tromey.com>
3243
3244 * source.c (find_source_lines): Use gdb::def_vector.
3245
84f27c6f
TT
32462018-02-08 Tom Tromey <tom@tromey.com>
3247
3248 * macrocmd.c (struct temporary_macro_definition): New.
3249 (macro_define_command): Use temporary_macro_definition. Remove
3250 cleanups.
3251 (free_macro_definition_ptr): Remove.
3252
0354904b
TT
32532018-02-08 Tom Tromey <tom@tromey.com>
3254
3255 * macroexp.c (maybe_expand): Use std::string.
3256
1739cf24
TT
32572018-02-08 Tom Tromey <tom@tromey.com>
3258
3259 * macroexp.c (struct macro_buffer): Add initializers for some
3260 members.
3261 (init_buffer, init_shared_buffer, free_buffer)
3262 (free_buffer_return_text): Remove.
3263 (macro_buffer): New constructors.
3264 (~macro_buffer): New destructor.
3265 (macro_buffer::set_shared): New method.
3266 (macro_buffer::resize_buffer, macro_buffer::appendc)
3267 (macro_buffer::appendmem): Now methods, not free functions.
3268 (set_token, append_tokens_without_splicing, stringify)
3269 (macro_stringify): Update.
3270 (gather_arguments): Change return type. Remove argc_p argument,
3271 add args_ptr argument. Use std::vector.
3272 (substitute_args): Remove argc argument. Accept std::vector.
3273 (expand): Update. Use std::vector.
3274 (scan, macro_expand, macro_expand_next): Update.
3275
f6c2623e
TT
32762018-02-08 Tom Tromey <tom@tromey.com>
3277
3278 * symtab.c (default_collect_symbol_completion_matches_break_on):
3279 Use unique_xmalloc_ptr.
3280 * macroscope.h: (sal_macro_scope, user_macro_scope)
3281 (default_macro_scope): Return unique_xmalloc_ptr.
3282 * macroscope.c (sal_macro_scope, user_macro_scope)
3283 (default_macro_scope): Return unique_xmalloc_ptr.
3284 * macroexp.h (macro_expand, macro_expand_once): Return
3285 unique_xmalloc_ptr.
3286 * macroexp.c (macro_expand, macro_expand_once): Return
3287 unique_xmalloc_ptr.
3288 * macrocmd.c (macro_expand_command, macro_expand_once_command)
3289 (info_macro_command, info_macros_command): Use
3290 unique_xmalloc_ptr.
3291 * compile/compile-c-support.c (write_macro_definitions): Use
3292 unique_xmalloc_ptr.
3293 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
3294
c2e0e465
SM
32952018-02-07 Simon Marchi <simon.marchi@ericsson.com>
3296
3297 * value.c (value_static_field): Assign field type instead of
3298 containing type when returning an optimized out value.
3299
3f8c94b4
YQ
33002018-02-06 Yao Qi <yao.qi@linaro.org>
3301
3302 * ft32-tdep.c (ft32_read_pc): Remove.
3303 (ft32_write_pc): Remove.
3304 (ft32_gdbarch_init): Update.
3305 * m32r-tdep.c (m32r_read_pc): Remove.
3306 (m32r_gdbarch_init): Update.
3307 * mep-tdep.c (mep_read_pc): Remove.
3308 (mep_gdbarch_init): Update.
3309 * microblaze-tdep.c (microblaze_write_pc): Remove.
3310 (microblaze_gdbarch_init): Update.
3311 * mn10300-tdep.c (mn10300_read_pc): Remove.
3312 (mn10300_write_pc): Remove.
3313 (mn10300_gdbarch_init): Update.
3314 * moxie-tdep.c (moxie_read_pc): Remove.
3315 (moxie_write_pc): Remove.
3316 (moxie_gdbarch_init): Update.
3317
bca65a23
YQ
33182018-02-06 Yao Qi <yao.qi@linaro.org>
3319
3320 * expprint.c (print_subexp_standard): Handle
3321 OP_F77_UNDETERMINED_ARGLIST.
3322 (dump_subexp_body_standard): Likewise.
3323
583e3f90 33242018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 3325
583e3f90
YQ
3326 * target-descriptions.c (tdesc_element_visitor) Add empty
3327 implementations.
b8df6ca7
AH
3328 (tdesc_type): Move make_gdb_type from here.
3329 (tdesc_type_builtin): Likewise.
3330 (tdesc_type_vector): Likewise.
3331 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
3332 (make_gdb_type_struct): Move from tdesc_type_with_fields.
3333 (make_gdb_type_union): Likewise.
3334 (make_gdb_type_flags): Likewise.
3335 (make_gdb_type_enum): Likewise.
3336 (make_gdb_type): New function.
3337 (tdesc_register_type): Use static make_gdb_type.
3338
e813d34a
RK
33392018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
3340
3341 * infcmd.c (default_print_one_register_info): Align natural-format
3342 column values consistently one under another.
3343 (pad_to_column): New function.
3344
0eb876f5
JB
33452018-02-05 Joel Brobecker <brobecker@adacore.com>
3346
3347 * dwarf2read.c (dwarf2_physname): Move commment.
3348
0625771b
LS
33492018-02-01 Leszek Swirski <leszeks@google.com>
3350
3351 * varobj.c (varobj_formatted_print_options): Allow recursive
3352 pretty printing if pretty printing is enabled.
3353
59498c30
LS
33542018-02-01 Leszek Swirski <leszeks@google.com>
3355
3356 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
3357 names after a structop as a filename.
3358
2d9e6acb
YQ
33592018-02-01 Yao Qi <yao.qi@linaro.org>
3360
3361 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
3362 (arm_record_coproc_data_proc): Likewise.
3363
df95a9cf
YQ
33642018-02-01 Yao Qi <yao.qi@linaro.org>
3365
3366 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
3367
07e5f5cf
NP
33682018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
3369
3370 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
3371 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
3372
3045b475
PA
33732018-01-31 Pedro Alves <palves@redhat.com>
3374
3375 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
3376 * inflow.c (child_terminal_save_inferior): Wrap reference to
3377 tcgetpgrp in HAVE_TERMIOS_H.
3378 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
3379 _WIN32.
3380 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
3381 always iterate over all inferiors.
3382 (gdbsim_cntrl_c): Adjust.
3383 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
3384
929b5ad4
JB
33852018-01-31 Joel Brobecker <brobecker@adacore.com>
3386
3387 * gdbtypes.c (lookup_array_range_type): Make sure the array's
3388 index type is objfile-owned if the element type is as well.
3389
29236ca2
JB
33902018-01-31 Joel Brobecker <brobecker@adacore.com>
3391
3392 GDB 8.1 released.
3393
c81e8879
PR
33942018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
3395
3396 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
3397 "features/s390x-linux64.c".
3398 (_initialize_s390_linux_tdep): Remove initialization of tdescs
3399 s390_linux32 and s390x_linux64.
3400 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
3401 default tdesc.
3402 * s390-tdep.c: Include "features/s390-linux32.c" and
3403 "features/s390x-linux64.c".
3404 (s390_tdesc_valid): Add check for tdesc_has_registers.
3405 (s390_gdbarch_init): Make sure there is always a valid tdesc.
3406 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
3407 tdesc_s390x_linux64.
3408 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
3409 tdesc_s390x_linux64 to...
3410 * s390-tdep.h: ...here.
3411
e671cd59
PA
34122018-01-30 Pedro Alves <palves@redhat.com>
3413
3414 PR gdb/13211
3415 * config.in, configure: Regenerate.
3416 * configure.ac: Check for getpgid.
3417 * go32-nat.c (go32_pass_ctrlc): New.
3418 (go32_target): Install it.
3419 * inf-child.c (inf_child_target): Install
3420 child_terminal_save_inferior, child_pass_ctrlc and
3421 child_interrupt.
3422 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
3423 (inf_ptrace_target): No longer install it.
3424 * infcmd.c (interrupt_target_1): Adjust.
3425 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
3426 (child_interrupt): Declare.
3427 (inferior::terminal_state): New.
3428 * inflow.c (struct terminal_info): Update comments.
3429 (inferior_process_group): Delete.
3430 (terminal_is_ours): Delete.
3431 (gdb_tty_state): New.
3432 (child_terminal_init): Adjust.
3433 (is_gdb_terminal, sharing_input_terminal_1)
3434 (sharing_input_terminal): New functions.
3435 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
3436 Set the process's actual process group in the foreground if
3437 possible. Handle is_ours_for_output/is_ours distinction. Don't
3438 mark terminal as the inferior's if not sharing GDB's terminal.
3439 Don't check attach_flag.
3440 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
3441 pass down a target_terminal_state.
3442 (child_terminal_save_inferior): New, factored out from ...
3443 (child_terminal_ours_1): ... this. Handle
3444 target_terminal_state::is_ours_for_output.
3445 (child_interrupt, child_pass_ctrlc): New.
3446 (inflow_inferior_exit): Clear the inferior's terminal_state.
3447 (copy_terminal_info): Copy the inferior's terminal state.
3448 (_initialize_inflow): Remove reference to terminal_is_ours.
3449 * inflow.h (inferior_process_group): Delete.
3450 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
3451 * procfs.c (procfs_target): Don't install procfs_interrupt.
3452 (procfs_interrupt): Delete.
3453 * remote.c (remote_serial_quit_handler): Adjust.
3454 (remote_interrupt): Remove ptid parameter. Adjust.
3455 * target-delegates.c: Regenerate.
3456 * target.c: Include "terminal.h".
3457 (target_terminal::terminal_state): Rename to ...
3458 (target_terminal::m_terminal_state): ... this.
3459 (target_terminal::init): Adjust.
3460 (target_terminal::inferior): Adjust to per-inferior
3461 terminal_state.
3462 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
3463 (target_terminal::ours, target_terminal::ours_for_output): Use
3464 target_terminal_is_ours_kind.
3465 (target_interrupt): Remove ptid parameter. Adjust.
3466 (default_target_pass_ctrlc): Adjust.
3467 * target.h (target_ops::to_terminal_save_inferior): New field.
3468 (target_ops::to_interrupt): Remove ptid_t parameter.
3469 (target_interrupt): Remove ptid_t parameter. Update comment.
3470 (target_pass_ctrlc): Update comment.
3471 * target/target.h (target_terminal_state): New scoped enum,
3472 factored out of ...
3473 (target_terminal::terminal_state): ... here.
3474 (target_terminal::inferior): Update comments.
3475 (target_terminal::restore_inferior): New.
3476 (target_terminal::is_inferior, target_terminal::is_ours)
3477 (target_terminal::is_ours_for_output): Adjust.
3478 (target_terminal::scoped_restore_terminal_state): Adjust to
3479 rename, and call restore_inferior() instead of inferior().
3480 (target_terminal::scoped_restore_terminal_state::m_state): Change
3481 type.
3482 (target_terminal::terminal_state): Rename to ...
3483 (target_terminal::m_terminal_state): ... this and change type.
3484
9c3a5d93
PA
34852018-01-30 Pedro Alves <palves@redhat.com>
3486
3487 * linux-nat.c (wait_for_signal): New function.
3488 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
3489 directly.
3490 (async_terminal_is_ours)
3491 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
3492 (linux_nat_add_target): Don't override
3493 to_terminal_inferior/to_terminal_ours.
3494
69ab5edb
SDJ
34952018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
3496
3497 * remote.c (remote_follow_fork): Don't call "detach_inferior".
3498
fc8e7e75
SM
34992018-01-28 Simon Marchi <simon.marchi@ericsson.com>
3500
3501 * dwarf2read.c (free_dwo_files): Add forward-declaration.
3502 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
3503 dwarf2_per_objfile_free here.
3504 (dwarf2_per_objfile_free): Remove.
3505 (_initialize_dwarf2_read): Don't register
3506 dwarf2_per_objfile_free as a registry cleanup.
3507
b2a426e2
EZ
35082018-01-27 Eli Zaretskii <eliz@gnu.org>
3509
3510 Avoid compilation errors in MinGW native builds
3511
3512 The error is triggered by including python-internal.h, and the
3513 error message is:
3514
3515 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
3516 from build-gnulib/import/math.h:27,
3517 from d:/usr/Python26/include/pyport.h:235,
3518 from d:/usr/Python26/include/Python.h:58,
3519 from python/python-internal.h:94,
3520 from python/py-arch.c:24:
3521 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
3522 using ::hypot;
3523 ^~~~~
3524
3525 This happens because Python headers define 'hypot' to expand t
3526 '_hypot' in the Windows builds.
3527 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
3528 'hypoth'. This avoids a compilation error.
3529
0bdd8eac
AH
35302018-01-26 Alan Hayward <alan.hayward@arm.com>
3531
3532 * MAINTAINERS (Write After Approval): Fix ordering.
3533
56ae9dc3
AH
35342018-01-26 Alan Hayward <alan.hayward@arm.com>
3535
3536 * MAINTAINERS (Write After Approval): Add Alan Hayward.
3537
7433498b
AM
35382018-01-26 Alan Modra <amodra@gmail.com>
3539
3540 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
3541 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
3542 Remove nop. Make const. Comment.
3543 (powerpc32_plt_stub_so_2): New.
3544 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
3545 Correct count. Update uses.
3546 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
3547 Move common code reading PLT entry word. Correct
3548 powerpc32_plt_stub PLT address calculation.
3549 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
3550 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
3551 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
3552 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
3553 (ppc64_standard_linkage8): Likewise.
3554 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
3555 Correct insns description.
3556 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3557
0f59d5fc
PA
35582018-01-24 Pedro Alves <palves@redhat.com>
3559
3560 GCC PR libstdc++/83906
3561 * gdbtypes.c (operator==(const dynamic_prop &,
3562 const dynamic_prop &)): New.
3563 (operator==(const range_bounds &, const range_bounds &)): New.
3564 (check_types_equal): Use them instead of memcmp.
3565 * gdbtypes.h (operator==(const dynamic_prop &,
3566 const dynamic_prop &)): Declare.
3567 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
3568 (operator==(const range_bounds &, const range_bounds &)): Declare.
3569 (operator!=(const range_bounds &, const range_bounds &)): Declare.
3570
ef8914a4
PR
35712018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3572
3573 * s390-linux-tdep.c (s390_record_address_mask)
3574 (s390_record_calc_disp_common, s390_record_calc_disp)
3575 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3576 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3577 (s390_process_record): Move to s390-tdep.c.
3578 (s390_linux_init_abi_any): Adjust.
3579 * s390-tdep.c (s390_record_address_mask)
3580 (s390_record_calc_disp_common, s390_record_calc_disp)
3581 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3582 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3583 (s390_process_record): Moved from s390-linux-tdep.c
3584 (s390_gdbarch_init): Adjust.
3585
d6e58945
PR
35862018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3587
3588 * s390-linux-nat.c (s390-tdep.h): New include.
3589 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
3590 (HFILES_NO_SRCDIR): Add s390-tdep.h.
3591 (ALLDEPFILES): Add s390-tdep.c.
3592 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
3593 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
3594 * s390-tdep.h: ...this. New file.
3595 * s390-linux-tdep.c (s390-tdep.h): New include.
3596 (_initialize_s390_tdep): Rename to...
3597 (_initialize_s390_linux_tdep): ...this and adjust.
3598 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
3599 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
3600 s390-tdep.h.
3601 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
3602 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
3603 (s390_is_partial_instruction, s390_software_single_step)
3604 (is_non_branch_ril, s390_displaced_step_copy_insn)
3605 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
3606 (s390_prologue_data, s390_addr, s390_store, s390_load)
3607 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
3608 (s390_register_call_saved, s390_guess_tracepoint_registers)
3609 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
3610 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
3611 (s390_pseudo_register_name, s390_pseudo_register_type)
3612 (s390_pseudo_register_read, s390_pseudo_register_write)
3613 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
3614 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
3615 (s390_addr_bits_remove, s390_address_class_type_flags)
3616 (s390_address_class_type_flags_to_name)
3617 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
3618 (s390_function_arg_float, s390_function_arg_vector)
3619 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
3620 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
3621 (s390_frame_align, s390_register_return_value, s390_return_value)
3622 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
3623 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
3624 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
3625 (s390_trad_frame_prev_register, s390_unwind_cache)
3626 (s390_prologue_frame_unwind_cache)
3627 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
3628 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
3629 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
3630 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
3631 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
3632 (s390_frame_base_address, s390_local_base_address)
3633 (s390_frame_base, s390_gcc_target_options)
3634 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
3635 (s390_validate_reg_range, s390_tdesc_valid)
3636 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
3637 * s390-tdep.c: ...this. New file.
3638
9c0b896e
PR
36392018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3640
3641 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
3642 (s390_process_record, s390_gdbarch_tdep_alloc)
3643 (s390_linux_init_abi_any): Use/set new hook.
3644
7042632b
PR
36452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3646
3647 * s390-linux-tdep.c (osabi.h): New include.
3648 (s390_linux_init_abi_31, s390_linux_init_abi_64)
3649 (s390_linux_init_abi_any): New functions.
3650 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
3651
650f5e13
PR
36522018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3653
3654 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
3655 tdesc_has_registers check
3656
47c9317e
PR
36572018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3658
3659 * s390-linux-tdep.c (s390_tdesc_valid): New function.
3660 (s390_validate_reg_range): New macro.
3661 (s390_gdbarch_init): Adjust.
3662
095085d8
PR
36632018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3664
3665 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
3666 (s390_gdbarch_tdep_alloc): Adjust.
3667 (s390_gdbarch_init): Adjust.
3668
ab9bcc67
PR
36692018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3670
3671 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
3672 <have_tdb>: Change type to bool.
3673 (s390_gdbarch_tdep_alloc): Adjust.
3674 (s390_gdbarch_init): Adjust.
3675
21f6f5ff
PR
36762018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3677
3678 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
3679 (gdbarch_tdep) <have_upper, have_vx>: New fields.
3680 (s390_gdbarch_tdep_alloc): New function.
3681 (s390_gdbarch_init): Allocate tdep at start and use its fields
3682 instead of separate variables.
3683
0eb97953
PR
36842018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3685
3686 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
3687 when looking for cached gdbarch and add comment for remaining.
3688
5c319bb2
PA
36892018-01-22 Pedro Alves <palves@redhat.com>
3690 Sergio Durigan Junior <sergiodj@redhat.com>
3691
3692 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
3693 case.
3694
d65ce302
MR
36952018-01-22 Maciej W. Rozycki <macro@mips.com>
3696
3697 * MAINTAINERS: Update my company e-mail address.
3698
ec7a5fcb
YQ
36992018-01-22 Yao Qi <yao.qi@linaro.org>
3700
3701 * regcache.c (cooked_write_test): New function.
3702 (_initialize_regcache): Register the test.
3703
11f57cb6
YQ
37042018-01-22 Yao Qi <yao.qi@linaro.org>
3705
3706 * ia64-tdep.c (ia64_pseudo_register_read): Call
3707 regcache->cooked_read instead of regcache_cooked_read_unsigned.
3708 * m32c-tdep.c (m32c_cat_read): Likewise.
3709 (m32c_r3r2r1r0_read): Likewise.
3710 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
3711 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
3712
03f50fc8
YQ
37132018-01-22 Yao Qi <yao.qi@linaro.org>
3714
3715 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
3716 method raw_read instead of regcache_raw_read.
3717 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
3718 * arm-tdep.c (arm_neon_quad_read): Likewise.
3719 * avr-tdep.c (avr_pseudo_register_read): Likewise.
3720 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
3721 * frv-tdep.c (frv_pseudo_register_read): Likewise.
3722 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
3723 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3724 (i386_pseudo_register_read_into_value): Likewise.
3725 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
3726 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
3727 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
3728 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
3729 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
3730 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
3731 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
3732 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
3733 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
3734
dc711524
YQ
37352018-01-22 Yao Qi <yao.qi@linaro.org>
3736
3737 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
3738 * configure.tgt: Remove target mt.
3739 * mt-tdep.c: Remove.
3740 * regcache.c (cooked_read_test): Remove the check for mt.
3741
3f5a868b
YQ
37422018-01-22 Yao Qi <yao.qi@linaro.org>
3743
3744 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
3745 instead of gdbarch_pseudo_register_read_value.
3746
de4cb04a
JB
37472018-01-22 Joel Brobecker <brobecker@adacore.com>
3748
3749 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
3750 language is Ada.
3751
a9e40818
JB
37522018-01-22 Joel Brobecker <brobecker@adacore.com>
3753
3754 * linespec.c (create_sals_line_offset): Remove code that preserved
3755 the symtab_and_line's line number.
3756
e707fc44
AB
37572018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3758
3759 * varobj.c (varobj_create): Don't set valid_block when creating a
3760 floating varobj.
3761
03d0bf7b
AB
37622018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * varobj.c (varobj_create): Remove out of date comment.
3765
ae451627
AB
37662018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3767
3768 PR mi/20395
3769 * ada-exp.y (write_var_from_sym): Pass extra parameter when
3770 updating innermost block.
3771 * parse.c (innermost_block_tracker::update): Take extra type
3772 parameter, and check types match before updating innermost block.
3773 (write_dollar_variable): Update innermost block for registers.
3774 * parser-defs.h (enum innermost_block_tracker_type): New enum.
3775 (innermost_block_tracker::innermost_block_tracker): Initialise
3776 m_types member.
3777 (innermost_block_tracker::reset): Take type parameter.
3778 (innermost_block_tracker::update): Take type parameter, and pass
3779 type through as needed.
3780 (innermost_block_tracker::m_types): New member.
3781 * varobj.c (varobj_create): Pass type when reseting innermost
3782 block.
3783
aee1fcdf
AB
37842018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3785
3786 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
3787 * ada-lang.c (resolve_subexp): Likewise.
3788 * breakpoint.c (set_breakpoint_condition) Likewise.
3789 (watch_command_1) Likewise.
3790 * c-exp.y (variable): Likewise.
3791 * d-exp.y (PrimaryExpression): Likewise.
3792 * f-exp.y (variable): Likewise.
3793 * go-exp.y (variable): Likewise.
3794 * m2-exp.y (variable): Likewise.
3795 * objfiles.c (objfile::~objfile): Likewise.
3796 * p-exp.y (variable): Likewise.
3797 * parse.c (innermost_block): Change type.
3798 * parser-defs.h (class innermost_block_tracker): New.
3799 (innermost_block): Change to innermost_block_tracker.
3800 * printcmd.c (display_command): Switch to innermost_block API.
3801 (do_one_display): Likewise.
3802 * rust-exp.y (do_one_display): Likewise.
3803 * symfile.c (clear_symtab_users): Likewise.
3804 * varobj.c (varobj_create): Switch to innermost_block API, replace
3805 use of innermost_block with block stored on varobj object.
3806
396af9a1
AB
38072018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * expression.h (innermost_block): Remove declaration.
3810 * varobj.c: Add 'parser-defs.h' include.
3811
fcfcc376
TT
38122018-01-19 Tom Tromey <tom@tromey.com>
3813
3814 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
3815 symbols in the static and global blocks.
3816
5a6c3296
JC
38172018-01-19 James Clarke <jrtc27@jrtc27.com>
3818
3819 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
3820 gdb_ptrace.h, and move including gdb_wait.h ...
3821 * nat/linux-ptrace.h: ... to here.
3822
bc09b0c1
SM
38232018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3824
3825 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
3826 inf_ptrace_detach_success.
3827 (inf_ptrace_detach_success): Add inferior parameter, use it
3828 instead of inferior_ptid, pass it to detach_inferior.
3829 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
3830 parameter.
3831 * inferior.c (detach_inferior): Add overload that takes an
3832 inferior object.
3833 * inferior.h (detach_inferior): Likewise.
3834 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
3835 use inferior_ptid, adjust call to inf_ptrace_detach_success.
3836 * linux-thread-db.c (thread_db_detach): Use inf parameter.
3837
6e1e1966
SM
38382018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3839
3840 * target.h (struct target_ops) <to_detach>: Add inferior
3841 parameter.
3842 (target_detach): Likewise.
3843 * target.c (dispose_inferior): Pass inferior down.
3844 (target_detach): Pass inferior down. Assert that it is equal to
3845 the current inferior.
3846 * aix-thread.c (aix_thread_detach): Pass inferior down.
3847 * corefile.c (core_file_command): Pass current_inferior() down.
3848 * corelow.c (core_detach): Add inferior parameter.
3849 * darwin-nat.c (darwin_detach): Likewise.
3850 * gnu-nat.c (gnu_detach): Likewise.
3851 * inf-ptrace.c (inf_ptrace_detach): Likewise.
3852 * infcmd.c (detach_command): Pass current_inferior() down to
3853 target_detach.
3854 * infrun.c (follow_fork_inferior): Pass parent_inf to
3855 target_detach.
3856 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
3857 target_detach.
3858 * linux-nat.c (linux_nat_detach): Add inferior parameter.
3859 * linux-thread-db.c (thread_db_detach): Likewise.
3860 * nto-procfs.c (procfs_detach): Likewise.
3861 * procfs.c (procfs_detach): Likewise.
3862 * record.c (record_detach): Likewise.
3863 * record.h (struct inferior): Forward-declare.
3864 (record_detach): Add inferior parameter.
3865 * remote-sim.c (gdbsim_detach): Likewise.
3866 * remote.c (remote_detach_1): Likewise.
3867 (remote_detach): Likewise.
3868 (extended_remote_detach): Likewise.
3869 * sol-thread.c (sol_thread_detach): Likewise.
3870 * target-debug.h (target_debug_print_inferior_p): New macro.
3871 * target-delegates.c: Re-generate.
3872 * top.c (kill_or_detach): Pass inferior down to target_detach.
3873 * windows-nat.c (windows_detach): Add inferior parameter.
3874
6bd6f3b6
SM
38752018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3876
3877 * target.h (struct target_ops) <to_detach>: Remove args
3878 parameter.
3879 (target_detach): Likewise.
3880 * target.c (dispose_inferior): Adjust.
3881 (target_detach): Remove args parameter, adjust.
3882 * aix-thread.c (aix_thread_detach): Adjust.
3883 * corefile.c (core_file_command): Adjust.
3884 * corelow.c (core_detach): Adjust.
3885 * darwin-nat.c (darwin_detach): Adjust.
3886 * gnu-nat.c (gnu_detach): Adjust.
3887 * inf-ptrace.c (inf_ptrace_detach): Adjust.
3888 * infcmd.c (detach_command): Adjust
3889 * infrun.c (follow_fork_inferior): Adjust.
3890 (handle_vfork_child_exec_or_exit): Adjust.
3891 * linux-fork.c (linux_fork_detach): Remove args parameter.
3892 * linux-fork.h (linux_fork_detach): Likewise.
3893 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
3894 * linux-thread-db.c (thread_db_detach): Likewise.
3895 * nto-procfs.c (procfs_detach): Likewise.
3896 * procfs.c (procfs_detach): Likewise.
3897 (do_detach): Remove signo parameter.
3898 * record.c (record_detach): Remove args parameter.
3899 * record.h (record_detach): Likewise.
3900 * remote-sim.c (gdbsim_detach): Likewise.
3901 * remote.c (remote_detach_1): Likewise.
3902 (remote_detach): Likewise.
3903 (extended_remote_detach): Likewise.
3904 * sol-thread.c (sol_thread_detach): Likewise.
3905 * target-delegates.c: Re-generate.
3906 * top.c (struct qt_args) <args>: Remove field.
3907 (kill_or_detach): Don't pass args.
3908 (quit_force): Don't set args.
3909 * windows-nat.c (windows_detach): Remove args parameter.
3910
88af8ea8
YQ
39112018-01-19 Yao Qi <yao.qi@linaro.org>
3912
3913 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
3914 (arm_linux_init_abi): Install it.
3915
dea445b9
YQ
39162018-01-19 Yao Qi <yao.qi@linaro.org>
3917
3918 * osabi.c (gdb_osabi_names): Extend the regexp for
3919 arm-linux-gnueabihf.
3920
4a17f768
YQ
39212018-01-18 Yao Qi <yao.qi@linaro.org>
3922
3923 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
3924 m_abbrevs.
3925 (abbrev_table::add_abbrev): Update.
3926 (abbrev_table::lookup_abbrev): Update.
3927
d679c21a
YQ
39282018-01-18 Yao Qi <yao.qi@linaro.org>
3929
3930 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
3931
7d937cad
SDJ
39322018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
3933
3934 * compile/compile.c (compile_to_object): Convert "triplet_rx"
3935 to "std::string".
3936
9e14690d
TT
39372018-01-17 Tom Tromey <tom@tromey.com>
3938
3939 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
3940
50a82047
TT
39412018-01-17 Tom Tromey <tom@tromey.com>
3942
3943 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
3944 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
3945 (create_array_type_with_stride): Update.
3946 * dwarf2read.c (set_die_type): Update.
3947
c89b44cd
TT
39482018-01-17 Tom Tromey <tom@tromey.com>
3949
3950 * dwarf2read.c (delayed_method_info): Remove typedef.
3951 (dwarf2_cu::method_info): Now a std::vector.
3952 (add_to_method_list): Update.
3953 (free_delayed_list): Remove.
3954 (compute_delayed_physnames): Update.
3955 (process_full_comp_unit, process_full_type_unit): Clear the method
3956 list. Remove cleanups.
3957 (psymtab_include_file_name): Add name_holder parameter. Use
3958 unique_xmalloc_ptr.
3959 (dwarf_decode_lines): Update.
3960
fcd3b13d
SM
39612018-01-17 Tom Tromey <tom@tromey.com>
3962 Simon Marchi <simon.marchi@ericsson.com>
3963
3964 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
3965 (dwarf2_per_objfile::free_cached_comp_units)
3966 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3967 (init_cutu_and_read_dies_no_follow): Update.
3968 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
3969 (dwarf2_cu::~dwarf2_cu): New.
3970 (free_heap_comp_unit, free_stack_comp_unit): Remove.
3971 (age_cached_comp_units, free_one_cached_comp_unit): Update.
3972
685af9cd
TT
39732018-01-17 Tom Tromey <tom@tromey.com>
3974 Simon Marchi <simon.marchi@ericsson.com>
3975
3976 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
3977 (struct die_reader_specs) <abbrev_table>: New member.
3978 (struct abbrev_table): Add constructor.
3979 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
3980 <abbrev_obstack>: Now an auto_obstack.
3981 (abbrev_table_up): New typedef.
3982 (init_cu_die_reader): Add abbrev_table parameter.
3983 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
3984 Add result_dwo_abbrev_table.
3985 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3986 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
3987 Update.
3988 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
3989 parameter.
3990 (skip_children): Update.
3991 (abbrev_table::alloc_abbrev): Rename from
3992 abbrev_table_alloc_abbrev.
3993 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
3994 (abbrev_table::lookup_abbrev): Rename from
3995 abbrev_table_lookup_abbrev.
3996 (abbrev_table_read_table): Return abbrev_table_up.
3997 (abbrev_table_free, abbrev_table_free_cleanup)
3998 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
3999 (load_partial_dies): Update.
4000
5e2db402
TT
40012018-01-17 Tom Tromey <tom@tromey.com>
4002
4003 * dwarf2read.c (dwarf2_compute_name): Update comment.
4004 (read_func_scope, read_variable): Update.
4005 (new_symbol): Remove.
4006 (new_symbol_full): Rename to new_symbol.
4007
ee7f689e 40082018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
4009
4010 PR gdb/16577
4011 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
4012 a warning instead of throwing an error, set section size to 0 and return
4013 NULL.
4014 * gdb_bfd.h (gdb_bfd_map_section): Update description.
4015
4d9b86e1
SM
40162018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4017
4018 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
4019 std::string.
4020 (linux_ptrace_attach_fail_reason_string): Likewise.
4021 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
4022 Likewise.
4023 (linux_ptrace_attach_fail_reason_string): Likewise.
4024 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
4025
a7b2d0fb
SM
40262018-01-17 Simon Marchi <simon.marchi@ericsson.com>
4027
4028 * linux-nat.c (linux_nat_attach): Remove xstrdup.
4029
f517c180
EA
40302018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
4031
4032 PR gdb/21559
4033 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
4034 checking for fs_base/gs_base fields in struct user_regs_struct.
4035 * configure: Regenerate.
4036
7045b1ca
YQ
40372018-01-17 Yao Qi <yao.qi@linaro.org>
4038
4039 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
4040 function.
4041 (aarch64_linux_init_abi): Install it to gdbarch hook
4042 gcc_target_options.
4043
db422fb2
PA
40442018-01-15 Pedro Alves <palves@redhat.com>
4045
4046 * common/signals-state-save-restore.c
4047 (save_original_signals_state): Fix typos.
4048
ba643918
SDJ
40492017-01-12 Tom Tromey <tom@tromey.com>
4050 Sergio Durigan Junior <sergiodj@redhat.com>
4051
4052 * Makefile.in (install-only): Install gdb-add-index.
4053
906b4aac
JB
40542018-01-12 John Baldwin <jhb@FreeBSD.org>
4055
4056 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
4057
bdf2a94a
AA
40582018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
4059
4060 * infrun.c (keep_going_pass_signal): Clear step-over info when
4061 insert_breakpoints fails.
4062
71d378ae
PA
40632018-01-11 Pedro Alves <palves@redhat.com>
4064
4065 PR gdb/22583
4066 * infrun.c (resume): Rename to ...
4067 (resume_1): ... this.
4068 (resume): Reimplement as wrapper around resume_1.
4069
3cada740
PA
40702018-01-11 Pedro Alves <palves@redhat.com>
4071
4072 PR remote/22597
4073 * remote.c (remote_parse_stop_reply): Default to the last-set
4074 general thread instead of to 'magic_null_ptid'.
4075
618daa93
PA
40762018-01-10 Pedro Alves <palves@redhat.com>
4077
4078 * language.h (language_get_symbol_name_matcher): Rename ...
4079 (get_symbol_name_matcher): ... this.
4080 * language.c (language_get_symbol_name_matcher): Ditto.
4081 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
4082 callers adjusted.
4083
c63d3e8d
PA
40842018-01-10 Pedro Alves <palves@redhat.com>
4085
4086 PR gdb/22670
4087 * dwarf2read.c
4088 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
4089 Adjust to use language_get_symbol_name_matcher instead of
4090 language_defn::la_get_symbol_name_matcher.
4091 * language.c (language_get_symbol_name_matcher): If in Ada mode
4092 and the lookup name is a verbatim match, return Ada's matcher.
4093 * language.h (language_get_symbol_name_matcher): Adjust comment.
4094 (ada_lookup_name_info::verbatim_p):: New method.
4095
d4c2a405
PA
40962018-01-10 Pedro Alves <palves@redhat.com>
4097
4098 PR gdb/22670
4099 * ada-lang.c (ada_collect_symbol_completion_matches): If the
4100 minsym's language is language_auto or language_cplus, pass down
4101 language_ada instead.
4102 * symtab.c (compare_symbol_name): Don't frob symbol language here.
4103
8825213e
PA
41042018-01-10 Pedro Alves <palves@redhat.com>
4105
4106 PR gdb/22670
4107 * minsyms.c (linkage_name_str): New function.
4108 (iterate_over_minimal_symbols): Use it.
4109
2d97a5d9
JB
41102018-01-09 John Baldwin <jhb@FreeBSD.org>
4111
4112 * NEWS: Document that 'info proc' now works on FreeBSD.
4113
92fce24d
JB
41142018-01-09 John Baldwin <jhb@FreeBSD.org>
4115
4116 * configure.ac: Check for kinfo_getfile in libutil.
4117 * configure: Regenerate.
4118 * config.in: Regenerate.
4119 * fbsd-nat.c: Include "fbsd-tdep.h".
4120 (fbsd_fetch_cmdline): New.
4121 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
4122 rather than calling error.
4123 (fbsd_info_proc): New.
4124 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
4125 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
4126 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
4127
262f62f5
JB
41282018-01-09 John Baldwin <jhb@FreeBSD.org>
4129
4130 * fbsd-nat.c (struct free_deleter): Remove.
4131 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
4132
b999e203
JB
41332018-01-09 John Baldwin <jhb@FreeBSD.org>
4134
4135 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
4136 NULL for an empty pathname.
4137
d2176225
JB
41382018-01-09 John Baldwin <jhb@FreeBSD.org>
4139
4140 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
4141 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
4142 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4143 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4144 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
4145 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
4146 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
4147 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
4148 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
4149 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
4150 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
4151 (fbsd_core_fetch_timeval, fbsd_print_sigset)
4152 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
4153 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
4154 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
4155
9c4ac400
ST
41562018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
4157
4158 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
4159 (gnu_xfer_auxv): New function.
4160 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
4161 TARGET_OBJECT_AUXV.
4162
1e5ded6c
YQ
41632018-01-08 Yao Qi <yao.qi@linaro.org>
4164 Simon Marchi <simon.marchi@ericsson.com>
4165
4166 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
4167 common/selftest.c.
4168 (COMMON_OBS): Remove selftest.o.
4169 * configure.ac: Append selftest-arch.c and common/selftest.c to
4170 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
4171 * configure: Re-generated.
4172 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
4173 GDB_SELF_TEST.
4174 (maintenance_info_selftests): Likewise.
4175
04bafb1e
XR
41762018-01-08 Xavier Roirand <roirand@adacore.com>
4177
4178 * ada-valprint.c (val_print_packed_array_elements): Use
4179 proper number of elements when printing an array indexed
4180 by an enumeration type.
4181
518817b3
SM
41822018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4183
4184 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
4185 (dw2_get_file_names_reader): Adjust.
4186 (lookup_dwo_signatured_type): Adjust.
4187 (lookup_dwp_signatured_type): Adjust.
4188 (lookup_signatured_type): Adjust.
4189 (create_type_unit_group): Adjust.
4190 (get_type_unit_group): Adjust.
4191 (process_psymtab_comp_unit_reader): Adjust.
4192 (build_type_psymtabs_reader): Adjust.
4193 (scan_partial_symbols): Adjust.
4194 (add_partial_symbol): Adjust.
4195 (add_partial_subprogram): Adjust.
4196 (peek_die_abbrev): Adjust.
4197 (fixup_go_packaging): Adjust.
4198 (process_imported_unit_die): Adjust.
4199 (dwarf2_compute_name): Adjust.
4200 (dwarf2_physname): Adjust.
4201 (read_import_statement): Adjust.
4202 (handle_DW_AT_stmt_list): Adjust.
4203 (read_file_scope): Adjust.
4204 (read_func_scope): Adjust.
4205 (read_lexical_block_scope): Adjust.
4206 (read_call_site_scope): Adjust.
4207 (read_variable): Adjust.
4208 (dwarf2_rnglists_process): Adjust.
4209 (dwarf2_ranges_process): Adjust.
4210 (dwarf2_ranges_read): Adjust.
4211 (dwarf2_get_pc_bounds): Adjust.
4212 (dwarf2_record_block_ranges): Adjust.
4213 (dwarf2_add_field): Adjust.
4214 (dwarf2_add_member_fn): Adjust.
4215 (read_structure_type): Adjust.
4216 (process_structure_scope): Adjust.
4217 (read_enumeration_type): Adjust.
4218 (read_array_type): Adjust.
4219 (mark_common_block_symbol_computed): Adjust.
4220 (read_common_block): Adjust.
4221 (read_namespace_type): Adjust.
4222 (read_namespace): Adjust.
4223 (read_module_type): Adjust.
4224 (read_tag_pointer_type): Adjust.
4225 (read_tag_ptr_to_member_type): Adjust.
4226 (read_tag_string_type): Adjust.
4227 (read_subroutine_type): Adjust.
4228 (read_typedef): Adjust.
4229 (read_base_type): Adjust.
4230 (attr_to_dynamic_prop): Adjust.
4231 (read_subrange_type): Adjust.
4232 (read_unspecified_type): Adjust.
4233 (dwarf2_read_abbrevs): Adjust.
4234 (load_partial_dies): Adjust.
4235 (read_partial_die): Adjust.
4236 (find_partial_die): Adjust.
4237 (guess_partial_die_structure_name): Adjust.
4238 (fixup_partial_die): Adjust.
4239 (read_attribute_value): Adjust.
4240 (read_addr_index): Adjust.
4241 (read_addr_index_from_leb128): Adjust.
4242 (read_str_index): Adjust.
4243 (dwarf2_string_attr): Adjust.
4244 (get_debug_line_section): Adjust.
4245 (dwarf_decode_line_header): Adjust.
4246 (lnp_state_machine::check_line_address): Adjust.
4247 (dwarf_decode_lines_1): Adjust.
4248 (dwarf_decode_lines): Adjust.
4249 (dwarf2_start_symtab): Adjust.
4250 (var_decode_location): Adjust.
4251 (new_symbol_full): Adjust.
4252 (dwarf2_const_value_data): Adjust.
4253 (dwarf2_const_value_attr): Adjust.
4254 (dwarf2_const_value): Adjust.
4255 (die_type): Adjust.
4256 (die_containing_type): Adjust.
4257 (build_error_marker_type): Adjust.
4258 (lookup_die_type): Adjust.
4259 (guess_full_die_structure_name): Adjust.
4260 (anonymous_struct_prefix): Adjust.
4261 (determine_prefix): Adjust.
4262 (dwarf2_name): Adjust.
4263 (follow_die_ref_or_sig): Adjust.
4264 (follow_die_offset): Adjust.
4265 (follow_die_ref): Adjust.
4266 (follow_die_sig_1): Adjust.
4267 (follow_die_sig): Adjust.
4268 (get_signatured_type): Adjust.
4269 (get_DW_AT_signature_type): Adjust.
4270 (decode_locdesc): Adjust.
4271 (dwarf_decode_macros): Adjust.
4272 (cu_debug_loc_section): Adjust.
4273 (fill_in_loclist_baton): Adjust.
4274 (dwarf2_symbol_mark_computed): Adjust.
4275 (init_one_comp_unit): Don't assign
4276 dwarf2_cu::dwarf2_per_objfile.
4277 (set_die_type): Adjust.
4278
ed2dc618
SM
42792018-01-07 Simon Marchi <simon.marchi@ericsson.com>
4280
4281 * dwarf2read.c (struct mapped_debug_names): Add constructor.
4282 <dwarf2_per_objfile>: New field.
4283 (dwarf2_per_objfile): Remove global.
4284 (get_dwarf2_per_objfile): New function.
4285 (set_dwarf2_per_objfile): New function.
4286 (dwarf2_build_psymtabs_hard): Change objfile parameter to
4287 dwarf2_per_objfile.
4288 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
4289 (read_abbrev_offset): Likewise.
4290 (read_indirect_string): Likewise.
4291 (read_indirect_line_string): Likewise.
4292 (read_indirect_string_at_offset): Likewise.
4293 (read_indirect_string_from_dwz): Likewise.
4294 (dwarf2_find_containing_comp_unit): Change objfile parameter to
4295 dwarf2_per_objfile.
4296 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
4297 (create_all_comp_units): Change objfile parameter to
4298 dwarf2_per_objfile.
4299 (create_all_type_units): Likewise.
4300 (process_queue): Add dwarf2_per_objfile parameter.
4301 (read_and_check_comp_unit_head): Likewise.
4302 (lookup_dwo_unit_in_dwp): Likewise.
4303 (get_dwp_file): Likewise.
4304 (process_cu_includes): Likewise.
4305 (struct free_dwo_file_cleanup_data): New struct.
4306 (dwarf2_has_info): Use get_dwarf2_per_objfile and
4307 set_dwarf2_per_objfile.
4308 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
4309 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
4310 context, adjust calls.
4311 (dw2_instantiate_symtab): Likewise.
4312 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
4313 (dw2_get_cu): Likewise.
4314 (create_cu_from_index_list): Change objfile parameter to
4315 dwarf2_per_objfile.
4316 (create_cus_from_index_list): Get dwarf2_per_objfile from
4317 context, adjust calls.
4318 (create_cus_from_index): Likewise.
4319 (create_signatured_type_table_from_index): Change objfile
4320 parameter to dwarf2_per_objfile.
4321 (create_signatured_type_table_from_debug_names): Change objfile
4322 parameter to dwarf2_per_objfile.
4323 (create_addrmap_from_index): Likewise.
4324 (create_addrmap_from_aranges): Likewise.
4325 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
4326 (dw2_setup): Remove.
4327 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
4328 context.
4329 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
4330 get_dwarf2_per_objfile.
4331 (dw2_forget_cached_source_info): Likewise.
4332 (dw2_map_symtabs_matching_filename): Likewise.
4333 (struct dw2_symtab_iterator) <index>: Remove.
4334 <dwarf2_per_objfile>: New field.
4335 (dw2_symtab_iter_init): Replace index parameter with
4336 dwarf2_per_objfile.
4337 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
4338 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
4339 (dw2_print_stats): Likewise.
4340 (dw2_dump): Likewise.
4341 (dw2_expand_symtabs_for_function): Likewise.
4342 (dw2_expand_all_symtabs): Likewise.
4343 (dw2_expand_symtabs_with_fullname): Likewise.
4344 (dw2_expand_marked_cus): Replace index and objfile parameters
4345 with dwarf2_per_objfile.
4346 (dw_expand_symtabs_matching_file_matcher): Add
4347 dwarf2_per_objfile parameter and adjust calls.
4348 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
4349 adjust calls.
4350 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
4351 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
4352 adjust calls.
4353 (create_cus_from_debug_names_list): Replace objfile parameter
4354 with dwarf2_per_objfile and adjust calls.
4355 (create_cus_from_debug_names): Likewise.
4356 (dwarf2_read_debug_names): Likewise.
4357 (mapped_debug_names::namei_to_name): Adjust call.
4358 (dw2_debug_names_iterator::next): Likewise.
4359 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4360 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
4361 (dw2_debug_names_dump): Likewise.
4362 (dw2_debug_names_expand_symtabs_for_function): Likewise.
4363 (dw2_debug_names_expand_symtabs_matching): Likewise.
4364 (dwarf2_initialize_objfile): Likewise.
4365 (dwarf2_build_psymtabs): Likewise.
4366 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
4367 this_cu.
4368 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
4369 (read_and_check_comp_unit_head): Likewise.
4370 (read_abbrev_offset): Likewise.
4371 (create_debug_type_hash_table): Likewise.
4372 (create_debug_types_hash_table): Likewise.
4373 (create_all_type_units): Replace objfile parameter with
4374 dwarf2_per_objfile.
4375 (add_type_unit): Add dwarf2_per_objfile parameter.
4376 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
4377 with dwarf2_per_objfile.
4378 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
4379 (lookup_dwp_signatured_type): Likewise.
4380 (lookup_signatured_type): Likewise.
4381 (read_cutu_die_from_dwo): Likewise.
4382 (init_tu_and_read_dwo_dies): Likewise.
4383 (init_cutu_and_read_dies): Likewise.
4384 (init_cutu_and_read_dies_no_follow): Likewise.
4385 (allocate_type_unit_groups_table): Add objfile parameter.
4386 (create_type_unit_group): Use dwarf2_per_objfile from cu.
4387 (get_type_unit_group): Likewise.
4388 (process_psymtab_comp_unit): Update call.
4389 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
4390 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
4391 (print_tu_stats): Likewise.
4392 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
4393 in void* parameter.
4394 (build_type_psymtabs): Change objfile parameter to
4395 dwarf2_per_objfile.
4396 (process_skeletonless_type_unit): Use dwarf2_per_objfile
4397 passed in void* parameter.
4398 (process_skeletonless_type_units): Change objfile parameter to
4399 dwarf2_per_objfile.
4400 (set_partial_user): Likewise.
4401 (dwarf2_build_psymtabs_hard): Likewise.
4402 (read_comp_units_from_section): Likewise.
4403 (create_all_comp_units): Likewise.
4404 (scan_partial_symbols): Update calls.
4405 (add_partial_symbol): Likewise.
4406 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
4407 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
4408 (process_queue): Add dwarf2_per_objfile parameter.
4409 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
4410 (compute_compunit_symtab_includes): Likewise.
4411 (process_cu_includes): Add dwarf2_per_objfile parameter.
4412 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
4413 (process_full_type_unit): Likewise.
4414 (process_imported_unit_die): Update call.
4415 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
4416 (read_file_scope): Likewise.
4417 (allocate_dwo_file_hash_table): Add objfile parameter.
4418 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
4419 (create_cus_hash_table): Likewise.
4420 (create_dwp_hash_table): Likewise.
4421 (create_dwo_unit_in_dwp_v1): Likewise.
4422 (create_dwp_v2_section): Likewise.
4423 (create_dwo_unit_in_dwp_v2): Likewise.
4424 (lookup_dwo_unit_in_dwp): Likewise.
4425 (try_open_dwop_file): Likewise.
4426 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
4427 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
4428 cleanup to include a reference to dwarf2_per_objfile.
4429 (open_dwp_file): Add dwarf2_per_objfile parameter.
4430 (open_and_init_dwp_file): Likewise.
4431 (get_dwp_file): Likewise.
4432 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
4433 (queue_and_load_all_dwo_tus): Update call.
4434 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
4435 data.
4436 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
4437 (dwarf2_ranges_process): Likewise.
4438 (dwarf2_get_pc_bounds): Likewise.
4439 (mark_common_block_symbol_computed): Likewise.
4440 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
4441 (dwarf2_read_abbrevs): Update call.
4442 (read_partial_die): Use dwarf2_per_objfile from cu.
4443 (find_partial_die): Likewise.
4444 (fixup_partial_die): Likewise.
4445 (read_attribute_value): Likewise.
4446 (read_indirect_string_at_offset_from): Add objfile parameter.
4447 (read_indirect_string_at_offset): Add dwarf2_per_objfile
4448 parameter.
4449 (read_indirect_string_from_dwz): Add objfile parameter.
4450 (read_indirect_string): Add objfile parameter.
4451 (read_addr_index_1): Add dwarf2_per_objfile parameter.
4452 (read_addr_index): Use dwarf2_per_objfile from cu.
4453 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
4454 call dw2_setup.
4455 (read_str_index): Use dwarf2_per_objfile from cu.
4456 (get_debug_line_section): Likewise.
4457 (read_formatted_entries): Add dwarf2_per_objfile parameter.
4458 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
4459 (new_symbol_full): Use dwarf2_per_objfile from cu.
4460 (build_error_marker_type): Likewise.
4461 (lookup_die_type): Likewise.
4462 (determine_prefix): Likewise.
4463 (follow_die_offset): Likewise.
4464 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
4465 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
4466 (dwarf2_fetch_die_type_sect_off): Likewise.
4467 (dwarf2_get_die_type): Likewise.
4468 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
4469 (get_signatured_type): Likewise.
4470 (get_DW_AT_signature_type): Likewise.
4471 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
4472 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
4473 (cu_debug_loc_section): Likewise.
4474 (fill_in_loclist_baton): Likewise.
4475 (dwarf2_symbol_mark_computed): Likewise.
4476 (dwarf2_find_containing_comp_unit): Change objfile parameter to
4477 dwarf2_per_objfile.
4478 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
4479 parameter.
4480 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
4481 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
4482 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
4483 (set_die_type): Use dwarf2_free_objfile from cu.
4484 (get_die_type_at_offset): Likewise.
4485 (dwarf2_per_objfile_free): Don't assign global variable.
4486 (debug_names) <constructor>: Add dwarf2_per_objfile
4487 parameter, update m_debugstrlookup construction.
4488 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
4489 parameter.
4490 <m_dwarf2_per_objfile>: New field.
4491 <lookup>: Use m_dwarf2_per_objfile.
4492 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
4493 (psyms_seen_size): Likewise.
4494 (write_gdbindex): Replace objfile parameter with
4495 dwarf2_per_objfile.
4496 (write_debug_names): Likewise.
4497 (write_psymtabs_to_index): Likewise.
4498 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
4499 calls.
4500
e3b94546
SM
45012018-01-07 Simon Marchi <simon.marchi@ericsson.com>
4502
4503 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
4504 <dwarf2_per_objfile>: New field.
4505 (struct dwarf2_per_cu_data) <objfile>: Remove.
4506 <dwarf2_per_objfile>: New field.
4507 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
4508 of objfile.
4509 (create_signatured_type_table_from_index): Likewise.
4510 (create_debug_type_hash_table): Likewise.
4511 (fill_in_sig_entry_from_dwo_entry): Likewise.
4512 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
4513 (create_type_unit_group): Assign dwarf2_per_objfile instead of
4514 objfile.
4515 (create_partial_symtab): Access objfile through
4516 dwarf2_per_objfile.
4517 (process_psymtab_comp_unit_reader): Likewise.
4518 (read_comp_units_from_section): Likewise.
4519 (scan_partial_symbols): Likewise.
4520 (add_partial_symbol): Likewise.
4521 (add_partial_subprogram): Likewise.
4522 (peek_die_abbrev): Likewise.
4523 (fixup_go_packaging): Likewise.
4524 (process_full_comp_unit): Likewise.
4525 (process_full_type_unit): Likewise.
4526 (process_imported_unit_die): Likewise.
4527 (dwarf2_compute_name): Likewise.
4528 (dwarf2_physname): Likewise.
4529 (read_import_statement): Likewise.
4530 (create_cus_hash_table): Assign dwarf2_physname instead of
4531 objfile.
4532 (read_func_scope): Access objfile through dwarf2_per_objfile.
4533 (read_lexical_block_scope): Likewise.
4534 (read_call_site_scope): Likewise.
4535 (read_variable): Likewise.
4536 (dwarf2_rnglists_process): Likewise.
4537 (dwarf2_ranges_process): Likewise.
4538 (dwarf2_ranges_read): Likewise.
4539 (dwarf2_record_block_ranges): Likewise.
4540 (dwarf2_add_field): Likewise.
4541 (dwarf2_add_member_fn): Likewise.
4542 (read_structure_type): Likewise.
4543 (process_structure_scope): Likewise.
4544 (read_enumeration_type): Likewise.
4545 (read_array_type): Likewise.
4546 (read_common_block): Likewise.
4547 (read_namespace_type): Likewise.
4548 (read_namespace): Likewise.
4549 (read_module_type): Likewise.
4550 (read_tag_pointer_type): Likewise.
4551 (read_tag_ptr_to_member_type): Likewise.
4552 (read_tag_string_type): Likewise.
4553 (read_subroutine_type): Likewise.
4554 (read_typedef): Likewise.
4555 (read_base_type): Likewise.
4556 (attr_to_dynamic_prop): Likewise.
4557 (read_subrange_type): Likewise.
4558 (read_unspecified_type): Likewise.
4559 (load_partial_dies): Likewise.
4560 (read_partial_die): Likewise.
4561 (find_partial_die): Likewise.
4562 (guess_partial_die_structure_name): Likewise.
4563 (fixup_partial_die): Likewise.
4564 (read_attribute_value): Likewise.
4565 (read_addr_index_from_leb128): Likewise.
4566 (dwarf2_read_addr_index): Likewise.
4567 (dwarf2_string_attr): Likewise.
4568 (lnp_state_machine::check_line_address): Likewise.
4569 (dwarf_decode_lines_1): Likewise.
4570 (dwarf_decode_lines): Likewise.
4571 (dwarf2_start_symtab): Likewise.
4572 (var_decode_location): Likewise.
4573 (new_symbol_full): Likewise.
4574 (dwarf2_const_value_data): Likewise.
4575 (dwarf2_const_value_attr): Likewise.
4576 (dwarf2_const_value): Likewise.
4577 (die_type): Likewise.
4578 (die_containing_type): Likewise.
4579 (lookup_die_type): Likewise.
4580 (guess_full_die_structure_name): Likewise.
4581 (anonymous_struct_prefix): Likewise.
4582 (dwarf2_name): Likewise.
4583 (follow_die_ref_or_sig): Likewise.
4584 (follow_die_offset): Likewise.
4585 (follow_die_ref): Likewise.
4586 (dwarf2_fetch_die_loc_sect_off): Likewise.
4587 (dwarf2_fetch_constant_bytes): Likewise.
4588 (dwarf2_fetch_die_type_sect_off): Likewise.
4589 (dwarf2_get_die_type): Likewise.
4590 (follow_die_sig): Likewise.
4591 (decode_locdesc): Likewise.
4592 (dwarf2_per_cu_objfile): Likewise.
4593 (dwarf2_per_cu_text_offset): Likewise.
4594 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
4595 objfile.
4596 (set_die_type): Access objfile through
4597 dwarf2_per_objfile.
4598
b01ba14d
SM
45992018-01-07 Simon Marchi <simon.marchi@ericsson.com>
4600
4601 * valprint.c (converted_character_d): Remove typedef.
4602 (DEF_VEC_O (converted_character_d)): Remove.
4603 (count_next_character): Use std::vector.
4604 (print_converted_chars_to_obstack): Likewise.
4605 (generic_printstr): Likewise.
4606
4d0fdd9b
SM
46072018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4608
4609 * xml-support.h (struct gdb_xml_value): Add constructor.
4610 <value>: Change type to unique_xmalloc_ptr.
4611 (gdb_xml_value_s): Remove typedef.
4612 (DEF_VEC_O (gdb_xml_value_s)): Remove.
4613 (gdb_xml_element_start_handler): Change parameter type to
4614 std::vector.
4615 (xml_find_attribute): Likewise.
4616 * xml-support.c (xml_find_attribute): Change parameter type to
4617 std::vector and adjust.
4618 (gdb_xml_values_cleanup): Remove.
4619 (gdb_xml_parser::start_element): Adjust to std::vector.
4620 (xinclude_start_include): Change paraeter type to std::vector
4621 and adjust.
4622 * btrace.c (check_xml_btrace_version): Likewise.
4623 (parse_xml_btrace_block): Likewise.
4624 (parse_xml_btrace_pt_config_cpu): Likewise.
4625 (parse_xml_btrace_pt): Likewise.
4626 (parse_xml_btrace_conf_bts): Likewise.
4627 (parse_xml_btrace_conf_pt): Likewise.
4628 * memory-map.c (memory_map_start_memory): Likewise.
4629 (memory_map_start_property): Likewise.
4630 * osdata.c (osdata_start_osdata): Likewise.
4631 (osdata_start_item): Likewise.
4632 (osdata_start_column): Likewise.
4633 * remote.c (start_thread): Likewise.
4634 * solib-aix.c (library_list_start_library): Likewise.
4635 (library_list_start_list): Likewise.
4636 * solib-svr4.c (library_list_start_library): Likewise.
4637 (svr4_library_list_start_list): Likewise.
4638 * solib-target.c (library_list_start_segment): Likewise.
4639 (library_list_start_section): Likewise.
4640 (library_list_start_library): Likewise.
4641 (library_list_start_list): Likewise.
4642 * tracepoint.c (traceframe_info_start_memory): Likewise.
4643 (traceframe_info_start_tvar): Likewise.
4644 * xml-syscall.c (syscall_start_syscall): Likewise.
4645 * xml-tdesc.c (tdesc_start_target): Likewise.
4646 (tdesc_start_feature): Likewise.
4647 (tdesc_start_reg): Likewise.
4648 (tdesc_start_union): Likewise.
4649 (tdesc_start_struct): Likewise.
4650 (tdesc_start_flags): Likewise.
4651 (tdesc_start_enum): Likewise.
4652 (tdesc_start_field): Likewise.
4653 (tdesc_start_enum_value): Likewise.
4654 (tdesc_start_vector): Likewise.
4655
f979c73f
SM
46562018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4657
4658 * extension.h (struct xmethod_worker) <clone>: Remove.
4659 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
4660 Remove.
4661 (python_xmethod_worker::clone): Remove.
4662 * valops.c (find_overload_match): Use std::move instead of
4663 clone.
4664
ba18742c
SM
46652018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
4668 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
4669 <free_xmethod_worker_data>: Remove.
4670 <get_matching_xmethod_workers>: Chance VEC to std::vector.
4671 <get_xmethod_arg_types>: Remove.
4672 <get_xmethod_result_type>: Remove.
4673 <invoke_xmethod>: Remove.
4674 * extension.c (new_xmethod_worker): Remove.
4675 (clone_xmethod_worker): Remove.
4676 (get_matching_xmethod_workers): Return void, pass std::vector by
4677 pointer.
4678 (get_xmethod_arg_types): Rename to...
4679 (xmethod_worker::get_arg_types): ... this, and adjust.
4680 (get_xmethod_result_type): Rename to...
4681 (xmethod_worker::get_result_type): ... this, and adjust.
4682 (invoke_xmethod): Remove.
4683 (free_xmethod_worker): Remove.
4684 (free_xmethod_worker_vec): Remove.
4685 * extension.h (enum ext_lang_rc): Move here from
4686 extension-priv.h.
4687 (struct xmethod_worker): Add constructor and destructor.
4688 <data>: Remove.
4689 <value>: Remove.
4690 <invoke, clone, do_get_result_type, do_get_arg_types>: New
4691 virtual pure methods.
4692 <get_arg_types, get_result_type>: New methods.
4693 (xmethod_worker_ptr): Remove typedef.
4694 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
4695 (xmethod_worker_vec): Remove typedef.
4696 (xmethod_worker_up): New typedef.
4697 (invoke_xmethod): Remove.
4698 (clone_xmethod_worker): Remove.
4699 (free_xmethod_worker): Remove.
4700 (free_xmethod_worker_vec): Remove.
4701 (get_xmethod_arg_types): Remove.
4702 (get_xmethod_result_type): Remove.
4703 * valops.c (find_method_list): Use std::vector, don't use
4704 intermediate vector.
4705 (value_find_oload_method_list): Use std::vector.
4706 (find_overload_match): Use std::vector.
4707 (find_oload_champ): Use std::vector.
4708 * value.c (value_free): Use operator delete.
4709 (value_of_xmethod): Rename to...
4710 (value_from_xmethod): ... this. Don't assign
4711 xmethod_worker::value, take rvalue-reference.
4712 (result_type_of_xmethod): Adjust.
4713 (call_xmethod): Adjust.
4714 * value.h: Include extension.h.
4715 (struct xmethod_worker): Don't forward-declare.
4716 (value_of_xmethod): Rename to...
4717 (value_from_xmethod): ... this, take rvalue-reference.
4718 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
4719 (struct python_xmethod_worker): ... this, add constructor and
4720 destructor.
4721 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
4722 (gdbpy_free_xmethod_worker_data): Rename to...
4723 (python_xmethod_worker::~python_xmethod_worker): ... this and
4724 adjust.
4725 (gdbpy_clone_xmethod_worker_data): Rename to...
4726 (python_xmethod_worker::clone): ... this and adjust.
4727 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
4728 temporary vector.
4729 (gdbpy_get_xmethod_arg_types): Rename to...
4730 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
4731 (gdbpy_get_xmethod_result_type): Rename to...
4732 (python_xmethod_worker::do_get_result_type): ... this and
4733 adjust.
4734 (gdbpy_invoke_xmethod): Rename to...
4735 (python_xmethod_worker::invoke): ... this and adjust.
4736 (new_python_xmethod_worker): Rename to...
4737 (python_xmethod_worker::python_xmethod_worker): ... this and
4738 adjust.
4739 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
4740 Remove.
4741 (gdbpy_free_xmethod_worker_data): Remove.
4742 (gdbpy_get_matching_xmethod_workers): Use std::vector.
4743 (gdbpy_get_xmethod_arg_types): Remove.
4744 (gdbpy_get_xmethod_result_type): Remove.
4745 (gdbpy_invoke_xmethod): Remove.
4746 * python/python.c (python_extension_ops): Remove obsolete
4747 callbacks.
4748
e379cee6
PA
47492018-01-05 Pedro Alves <palves@redhat.com>
4750
4751 PR gdb/18653
4752 * common/signals-state-save-restore.c
4753 (save_original_signals_state): New parameter 'quiet'. Warn if we
4754 find a custom handler preinstalled, instead of internal erroring.
4755 But only warn if !quiet.
4756 * common/signals-state-save-restore.h
4757 (save_original_signals_state): New parameter 'quiet'.
4758 * main.c (captured_main_1): Move save_original_signals_state call
4759 after option handling, and pass QUIET.
4760
a655456c
PA
47612018-01-05 Pedro Alves <palves@redhat.com>
4762
4763 * spu-tdep.c (spu_catch_start): Pass
4764 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
4765
de63c46b
PA
47662018-01-05 Pedro Alves <palves@redhat.com>
4767
4768 PR gdb/22670
4769 * ada-lang.c (literal_symbol_name_matcher): New function.
4770 (ada_get_symbol_name_matcher): Use it for
4771 symbol_name_match_type::SEARCH_NAME.
4772 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
4773 it down instead of assuming symbol_name_match_type::FULL.
4774 * block.h (block_lookup_symbol): New parameter 'match_type'.
4775 * c-valprint.c (print_unpacked_pointer): Use
4776 lookup_symbol_search_name instead of lookup_symbol.
4777 * compile/compile-object-load.c (get_out_value_type): Pass down
4778 symbol_name_match_type::SEARCH_NAME.
4779 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
4780 symbol_name_match_type::FULL.
4781 * cp-support.c (cp_get_symbol_name_matcher): Handle
4782 symbol_name_match_type::SEARCH_NAME.
4783 * infrun.c (insert_exception_resume_breakpoint): Use
4784 lookup_symbol_search_name.
4785 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
4786 * psymtab.c (maintenance_check_psymtabs): Use
4787 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
4788 * stack.c (print_frame_args): Use lookup_symbol_search_name and
4789 SYMBOL_SEARCH_NAME.
4790 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
4791 if symbol_name_match_type::SEARCH_NAME.
4792 (lookup_symbol_in_language): Pass down
4793 symbol_name_match_type::FULL.
4794 (lookup_symbol_search_name): New.
4795 (lookup_language_this): Pass down
4796 symbol_name_match_type::SEARCH_NAME.
4797 (lookup_symbol_aux, lookup_local_symbol): New parameter
4798 'match_type'. Pass it down.
4799 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
4800 (lookup_symbol_search_name): New declaration.
4801 (lookup_symbol_in_block): New 'match_type' parameter.
4802
f98fc17b
PA
48032018-01-05 Pedro Alves <palves@redhat.com>
4804
4805 PR gdb/22670
4806 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
4807 ada_lookup_symbol.
4808 (ada_lookup_symbol): Reimplement in terms of
4809 ada_lookup_symbol_list, bits factored out from
4810 ada_lookup_encoded_symbol.
4811
342f8240
JB
48122018-01-05 Joel Brobecker <brobecker@adacore.com>
4813
4814 * ada-exp.y (write_object_renaming): When subscripting an array
4815 using a symbol as the index, pass the block in call to
4816 ada_lookup_encoded_symbol when looking that symbol up.
4817
7150d33c
JG
48182018-01-05 Jerome Guitton <guitton@adacore.com>
4819
4820 * ada-lang.c (ada_array_length): Use ada_index_type instead of
4821 TYPE_INDEX_TYPE.
4822
cc0e770c
JB
48232018-01-05 Joel Brobecker <brobecker@adacore.com>
4824
4825 * ada-lang.c (ada_to_fixed_value_create): Add handling of
4826 the case where VALUE_LVAL (val0) is not lval_memory.
4827
f79da888 48282018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
4829
4830 * ada-valprint.c (print_optional_low_bound): Handle
4831 character-indexed array printing like boolean-indexed array
4832 printing.
4833
cd385f94
JB
48342018-01-05 Joel Brobecker <brobecker@adacore.com>
4835
4836 * NEWS: Create a new section for the next release branch.
4837 Rename the section of the current branch, now that it has
4838 been cut.
4839
09aca949
JB
48402018-01-05 Joel Brobecker <brobecker@adacore.com>
4841
4842 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
4843 * version.in: Bump version to 8.1.50.DATE-git.
4844
9f757bf7
XR
48452018-01-03 Xavier Roirand <roirand@adacore.com>
4846
4847 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
4848 Add field.
4849 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
4850 Add field.
4851 (default_exception_support_info) <catch_handlers_sym>: Add field.
4852 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
4853 (ada_exception_name_addr_1): Add "catch handlers" handling.
4854 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
4855 Update all callers.
4856 (create_excep_cond_exprs) <ex>: Add parameter.
4857 (re_set_exception): Update create_excep_cond_exprs call.
4858 (print_it_exception, print_one_exception, print_mention_exception)
4859 (print_recreate_exception): Add "catch handler" handling.
4860 (allocate_location_catch_handlers, re_set_catch_handlers)
4861 (check_status_catch_handlers, print_it_catch_handlers)
4862 (print_one_catch_handlers, print_mention_catch_handlers)
4863 (print_recreate_catch_handlers): New function.
4864 (catch_handlers_breakpoint_ops): New variable.
4865 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
4866 Add parameter. Add "catch handler" handling.
4867 (ada_exception_sym_name, ada_exception_breakpoint_ops):
4868 Add "catch handler" handling.
4869 (ada_exception_catchpoint_cond_string): Add "catch handler"
4870 handling.
4871 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
4872 call.
4873 (catch_ada_handlers_command): New function.
4874 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
4875 operations structure.
4876 (_initialize_ada_language): Add "catch handlers" command entry.
4877 * NEWS: Document "catch handlers" feature.
4878
9fe561ab
JB
48792018-01-02 Joel Brobecker <brobecker@adacore.com>
4880
4881 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
4882 account when creating the array type of the slice.
4883 (ada_value_slice): Likewise.
4884
a405673c
JB
48852018-01-02 Joel Brobecker <brobecker@adacore.com>
4886
4887 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
4888 New enum value.
4889 (create_array_type_with_stride): Add byte_stride_prop parameter.
4890 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
4891 New parameter. Update all callers in this file.
4892 (array_type_has_dynamic_stride): New function.
4893 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
4894 of arrays with dynamic byte strides.
4895 * dwarf2read.c (read_array_type): Add support for dynamic
4896 DW_AT_byte_stride attributes.
4897
74a2f8ff
JB
48982018-01-02 Joel Brobecker <brobecker@adacore.com>
4899
4900 * dwarf2read.c (read_unspecified_type): Treat
4901 DW_TAG_enumeration_type DIEs from Ada units as stubs.
4902
e2882c85
JB
49032018-01-01 Joel Brobecker <brobecker@adacore.com>
4904
4905 Update copyright year range in all GDB files.
4906
1690bb24
JB
49072018-01-01 Joel Brobecker <brobecker@adacore.com>
4908
4909 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
4910 and gdb/testsuite/gdb.base/step-line.c.
4911
0f0c98a8
JB
49122018-01-01 Joel Brobecker <brobecker@adacore.com>
4913
4914 * copyright.py (main): Dump the contents of
4915 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
4916 even if BY_HAND is empty.
4917
82e1e79a
JB
49182018-01-01 Joel Brobecker <brobecker@adacore.com>
4919
4920 * top.c (print_gdb_version): Update Copyright year in version
4921 message.
4922
053f54e5 49232018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 4924
053f54e5 4925 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 4926
053f54e5 4927For older changes see ChangeLog-2017.
c906108c
SS
4928\f
4929Local Variables:
4930mode: change-log
4931left-margin: 8
4932fill-column: 74
4933version-control: never
57da7796 4934coding: utf-8
c906108c 4935End:
This page took 2.340745 seconds and 4 git commands to generate.