Remove cleanups from tracefile.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d14b92bf
TT
12018-06-10 Tom Tromey <tom@tromey.com>
2
3 * tracefile.c (struct trace_file_writer_deleter): New.
4 <operator()>: Rename from trace_file_writer_xfree.
5 (trace_file_writer_up): New typedef.
6 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7
835dcf92
SM
82018-06-09 Simon Marchi <simon.marchi@ericsson.com>
9
10 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
11 <m_registers, m_register_status>: Change type to
12 std::unique_ptr.
13 * regcache.c (reg_buffer::reg_buffer): Use new instead of
14 XCNEWVEC.
15
aac0d564
SM
162018-06-09 Simon Marchi <simon.marchi@ericsson.com>
17
18 * common/common-regcache.h (enum register_status): Add
19 underlying type "signed char".
20 * regcache.h (reg_buffer) <m_register_status>: Change type to
21 register_status *.
22 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
23 register_status instead of signed char.
24 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
25 (reg_buffer::get_register_status): Remove cast.
26 (readable_regcache::raw_read): Remove cast.
27 (readable_regcache::cooked_read): Remove cast.
28
77ad7394
TT
292018-06-09 Tom Tromey <tom@tromey.com>
30
31 * source.c (reverse_search_command, forward_search_command): Use
32 scoped_fd.
33
191cca63
TT
342018-06-09 Tom Tromey <tom@tromey.com>
35
36 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
37 (serial_ops_list): Now static, std::vector.
38 (serial_interface_lookup, serial_add_interface): Update.
39
c5d0225d
TT
402018-06-09 Tom Tromey <tom@tromey.com>
41
42 * dwarf2read.c (process_cu_includes): Update.
43 (process_full_comp_unit): Update.
44 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
45 std::vector.
46
aeab5128
PK
472018-06-08 Paul Koning <paul_koning@dell.com>
48
49 PR gdb/23252
50
51 * python/python.c (do_start_initialization):
52 Avoid call to internal Python API.
53 (init__gdb_module): New function.
54
5045b3d7
GB
552018-06-08 Gary Benson <gbenson@redhat.com>
56
57 * linux-thread-db.c (valprint.h): New include.
58 (struct check_thread_db_info): New structure.
59 (check_thread_db_on_load, tdb_testinfo): New static globals.
60 (check_thread_db, check_thread_db_callback): New functions.
61 (try_thread_db_load_1): Run integrity checks if requested.
62 (maintenance_check_libthread_db): New function.
63 (_initialize_thread_db): Register "maint check libthread-db"
64 and "maint set/show check-libthread-db".
65 * NEWS: Mention the above new commands.
66
2f4f025f
TT
672018-06-08 Tom Tromey <tom@tromey.com>
68
69 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
70 now a method.
71
343b0027
TT
722018-06-08 Tom Tromey <tom@tromey.com>
73
74 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
75
8dcc53b3
TT
762018-06-08 Tom Tromey <tom@tromey.com>
77
78 * common/btrace-common.h (struct btrace_data): Add constructor,
79 destructor, move assignment operator.
80 <empty, clear, fini>: New methods.
81 <format>: Initialize.
82 (btrace_data_init, btrace_data_fini, btrace_data_clear)
83 (btrace_data_empty): Don't declare.
84 * common/btrace-common.c (btrace_data_init): Remove.
85 (btrace_data::fini): Rename from btrace_data_fini.
86 (btrace_data::empty): Rename from btrace_data_empty.
87 (btrace_data::clear): Rename from btrace_data_clear. Return
88 bool.
89 * btrace.h (make_cleanup_btrace_data): Don't declare.
90 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
91 (parse_xml_btrace): Update.
92 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
93 (maint_btrace_clear_packet_history_cmd): Update.
94
a1740ee1
PA
952018-06-07 Pedro Alves <palves@redhat.com>
96
97 * target.h (target_ops) <beneath>: Now a method. All references
98 updated.
99 (class target_stack): New.
100 * target.c (g_target_stack): New.
101 (g_current_top_target): Delete.
102 (current_top_target): Get the top target out of g_target_stack.
103 (target_stack::push, target_stack::unpush): New.
104 (push_target, unpush_target): Reimplement.
105 (target_is_pushed): Reimplement in terms of g_target_stack.
106 (target_ops::beneath, target_stack::find_beneath): New.
107
d6ca69cd
PA
1082018-06-07 Pedro Alves <palves@redhat.com>
109
110 * target.h (find_target_beneath): Delete declaration.
111 * target.c (find_target_beneath): Delete definition.
112 * aix-thread.c: All callers of find_target_beneath adjusted to
113 call target_ops::beneath instead.
114 * bsd-uthread.c: Likewise.
115 * linux-thread-db.c: Likewise.
116 * ravenscar-thread.c: Likewise.
117 * sol-thread.c: Likewise.
118 * spu-multiarch.c: Likewise.
119
b6a8c27b
PA
1202018-06-07 Pedro Alves <palves@redhat.com>
121
122 * target.h (target_ops) <beneath>: Now a method. All references
123 updated.
124 (target_ops) <m_beneath>: New.
125 * target.c (target_ops::beneath): New.
126 * corelow.c: Adjust all references to target_ops::beneath.
127 * linux-thread-db.c: Likewise.
128 * make-target-delegates: Likewise.
129 * record-btrace.c: Likewise.
130 * record-full.c: Likewise.
131 * remote.c: Likewise.
132 * target.c: Likewise.
133 * target-delegates.c: Regenerate.
134
8b88a78e
PA
1352018-06-07 Pedro Alves <palves@redhat.com>
136
137 * target.h (target_stack): Delete.
138 (current_top_target): Declare function.
139 * target.c (target_stack): Delete.
140 (g_current_top_target): New.
141 (current_top_target): New function.
142 * auxv.c: Use current_top_target instead of target_stack
143 throughout.
144 * avr-tdep.c: Likewise.
145 * breakpoint.c: Likewise.
146 * corefile.c: Likewise.
147 * elfread.c: Likewise.
148 * eval.c: Likewise.
149 * exceptions.c: Likewise.
150 * frame.c: Likewise.
151 * gdbarch-selftests.c: Likewise.
152 * gnu-v3-abi.c: Likewise.
153 * ia64-tdep.c: Likewise.
154 * ia64-vms-tdep.c: Likewise.
155 * infcall.c: Likewise.
156 * infcmd.c: Likewise.
157 * infrun.c: Likewise.
158 * linespec.c: Likewise.
159 * linux-tdep.c: Likewise.
160 * minsyms.c: Likewise.
161 * ppc-linux-nat.c: Likewise.
162 * ppc-linux-tdep.c: Likewise.
163 * procfs.c: Likewise.
164 * regcache.c: Likewise.
165 * remote.c: Likewise.
166 * rs6000-tdep.c: Likewise.
167 * s390-linux-nat.c: Likewise.
168 * s390-tdep.c: Likewise.
169 * solib-aix.c: Likewise.
170 * solib-darwin.c: Likewise.
171 * solib-dsbt.c: Likewise.
172 * solib-spu.c: Likewise.
173 * solib-svr4.c: Likewise.
174 * solib-target.c: Likewise.
175 * sparc-tdep.c: Likewise.
176 * sparc64-tdep.c: Likewise.
177 * spu-tdep.c: Likewise.
178 * symfile.c: Likewise.
179 * symtab.c: Likewise.
180 * target-descriptions.c: Likewise.
181 * target-memory.c: Likewise.
182 * target.c: Likewise.
183 * target.h: Likewise.
184 * tracefile-tfile.c: Likewise.
185 * tracepoint.c: Likewise.
186 * valops.c: Likewise.
187 * valprint.c: Likewise.
188 * value.c: Likewise.
189 * windows-tdep.c: Likewise.
190 * mi/mi-main.c: Likewise.
191
c7110220
TT
1922018-06-07 Tom Tromey <tom@tromey.com>
193
194 * valprint.h (build_address_symbolic): Declare.
195 * printcmd.c (print_address_symbolic): Update.
196 (build_address_symbolic): Change "name" and "filename" to
197 std::string.
198 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
199 Update.
200 * defs.h (build_address_symbolic): Remove declaration.
201
63bad7b6
AH
2022018-06-07 Alan Hayward <alan.hayward@arm.com>
203
204 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
205 (aarch64_vnv_type): Add function.
206 (aarch64_pseudo_register_name): Add V regs for SVE.
207 (aarch64_pseudo_register_type): Likewise.
208 (aarch64_pseudo_register_reggroup_p): Likewise.
209 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
210 (aarch64_pseudo_read_value): Add V regs for SVE.
211 (aarch64_pseudo_write_2): Use V0 offset for SVE
212 (aarch64_pseudo_write): Add V regs for SVE.
213 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
214
13e3c608
SDJ
2152018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
216
217 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
218 (sve_vl_from_vq): Likewise.
219
c61b06a1
TT
2202018-06-05 Tom Tromey <tom@tromey.com>
221
222 * cli/cli-cmds.c (show_version): Update.
223 * top.c (print_gdb_version): Add "interactive" parameter.
224 Update.
225 * main.c (captured_main_1): Update.
226 * top.h (print_gdb_version): Add "interactive" parameter and a
227 comment.
228
115f7325
DM
2292018-06-05 David Malcolm <dmalcolm@redhat.com>
230
231 * common/enum-flags.h: Add trailing semicolon to example in
232 comment.
233
eb6af809
TT
2342018-06-05 Tom Tromey <tom@tromey.com>
235
236 PR cli/12326:
237 * NEWS: Add entry about pager.
238 * utils.c (pagination_disabled_for_command): New global.
239 (prompt_for_continue): Allow "c" response to prompt.
240 (reinitialize_more_filter): Clear
241 pagination_disabled_for_command.
242 (fputs_maybe_filtered): Check pagination_disabled_for_command.
243
54d343a2
TT
2442018-06-04 Tom Tromey <tom@tromey.com>
245
246 * ada-lang.h (ada_lookup_symbol_list): Update.
247 * ada-lang.c (resolve_subexp): Update.
248 (symbols_are_identical_enums): Change type of syms. Remove nsyms
249 parameter.
250 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
251 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
252 results parameter to std::vector.
253 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
254 Update.
255 * ada-exp.y (block_lookup): Update.
256 (select_possible_type_sym): Change type of syms. Remove nsyms
257 parameter.
258 (write_var_or_type, write_name_assoc): Update.
259
178d6a63
JB
2602018-06-04 Joel Brobecker <brobecker@adacore.com>
261
262 * windows-nat.c (windows_nat_target::xfer_partial): Return
263 TARGET_XFER_E_IO if we need to delegate to the target beneath
264 but BENEATH is NULL.
265
baf00c2d
SM
2662018-06-04 Simon Marchi <simon.marchi@ericsson.com>
267
268 * Makefile.in (config.status): Add configure.nat as a
269 dependency.
270
214b073c
TT
2712018-06-04 Tom Tromey <tom@tromey.com>
272
273 * cp-name-parser.y (cpname_state): Add method declarations.
274 (HANDLE_QUAL): Update.
275 (cpname_state::d_grab, cpname_state::fill_comp)
276 (cpname_state::make_operator, cpname_state::make_dtor)
277 (cpname_state::make_builtin_type, cpname_state::make_name)
278 (cpname_state::d_qualify, cpname_state::d_int_type)
279 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
280 (%union): Move earlier.
281
62b74cb8
AH
2822018-06-04 Alan Hayward <alan.hayward@arm.com>
283
284 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
285
3c5cd5c3
AH
2862018-06-04 Alan Hayward <alan.hayward@arm.com>
287
288 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
289 (aarch64_pseudo_write_1): Likewise.
290 (aarch64_pseudo_read_value): Use helper.
291 (aarch64_pseudo_write): Likewise.
292
59f413d5
PA
2932018-06-04 Pedro Alves <palves@redhat.com>
294
295 * darwin-nat.c (darwin_ops): Delete.
296 (darwin_attach_pid): Use get_native_target.
297
1332a140
AH
2982018-06-04 Alan Hayward <alan.hayward@arm.com>
299
300 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
301 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
302
ba2d2bb2
AH
3032018-06-04 Alan Hayward <alan.hayward@arm.com>
304
305 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
306 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
307 (aarch64_gdbarch_init): Check for SVE.
308 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
309
3102018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
311
312 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
313 * aarch64-tdep.h (aarch64_read_description): Likewise.
314 * arch/aarch64.c (aarch64_create_target_description): Likewise.
315 * arch/aarch64.h (aarch64_create_target_description): Likewise.
316 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
317 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
318 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
319
41c60b4b
SM
3202018-06-02 Simon Marchi <simon.marchi@ericsson.com>
321
322 * value.c (value_fetch_lazy_bitfield): New.
323 (value_fetch_lazy_memory): New.
324 (value_fetch_lazy_register): New.
325 (value_fetch_lazy): Factor out to smaller functions.
326
7b640f72
TT
3272018-06-01 Tom Tromey <tom@tromey.com>
328
329 * cp-name-parser.y (backslashable, represented): Now const.
330
98e69eb3
TT
3312018-06-01 Tom Tromey <tom@tromey.com>
332
333 * cp-name-parser.y: Include parser-defs.h.
334 (parser_fprintf): Remove declaration.
335
49265499
TT
3362018-06-01 Tom Tromey <tom@tromey.com>
337
338 * cp-name-parser.y: Use %pure-parser, %lex-param, and
339 %parse-param.
340 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
341 (global_result): Remove globals.
342 (struct cpname_state): New.
343 (yyparse): Don't declare.
344 (yylex, yyerror): Move declarations after %union.
345 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
346 (make_name): Add state parameter.
347 Update all callers.
348 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
349 parameter.
350 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
351 Update.
352 (yylex): Add lvalp, state parameters.
353 (yyerror): Add state parameter.
354 (cp_demangled_name_to_comp): Update.
355
55b6c984
TT
3562018-06-01 Tom Tromey <tom@tromey.com>
357
358 * cp-name-parser.y (parser_fprintf): Declare.
359 (GDB_YY_REMAP_PREFIX): Define.
360 Include yy-remap.h. Don't redefine yy* identifiers.
361
3513a6bb
TT
3622018-06-01 Tom Tromey <tom@tromey.com>
363
364 * python/py-type.c (typy_legacy_template_argument): Update.
365 * cp-support.h (cp_demangled_name_to_comp): Update.
366 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
367 parameter to be a "std::string *".
368 (main): Update.
369
e9cb46ab
L
3702018-06-01 H.J. Lu <hongjiu.lu@intel.com>
371
372 * ada-lex.l: Include "diagnostics.h" instead of
373 "common/diagnostics.h".
374 * unittests/environ-selftests.c: Likewise.
375 * common/diagnostics.h: Moved to ../include.
376
8e817061
JB
3772018-06-01 Joel Brobecker <brobecker@adacore.com>
378
379 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
380 to language_mode_manual while calling breakpoint_re_set_one.
381
a737d952
TT
3822018-06-01 Tom Tromey <tom@tromey.com>
383
384 * valops.c (value_cast_structs, destructor_name_p): Update.
385 * symtab.c (gdb_mangle_name): Update.
386 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
387 Update.
388 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
389 (pascal_object_print_value_fields, pascal_object_print_value):
390 Update.
391 * p-typeprint.c (pascal_type_print_derivation_info): Update.
392 * linespec.c (find_methods): Update.
393 * gdbtypes.h (type_name_no_tag): Remove.
394 (type_name_or_error): Rename from type_name_no_tag_or_error.
395 * gdbtypes.c (type_name_no_tag): Remove.
396 (type_name_or_error): Rename from type_name_no_tag_or_error.
397 (lookup_struct_elt_type, check_typedef): Update.
398 * expprint.c (print_subexp_standard): Update.
399 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
400 * d-namespace.c (d_lookup_nested_symbol): Update.
401 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
402 (cp_print_class_member): Update.
403 * cp-namespace.c (cp_lookup_nested_symbol): Update.
404 * completer.c (add_struct_fields): Update.
405 * c-typeprint.c (cp_type_print_derivation_info)
406 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
407 Update.
408 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
409 (ada_prefer_type, ada_is_exception_sym): Update.
410
e86ca25f
TT
4112018-06-01 Tom Tromey <tom@tromey.com>
412
413 * valops.c (enum_constant_from_type, value_namespace_elt)
414 (value_maybe_namespace_elt): Update.
415 * valarith.c (find_size_for_pointer_math): Update.
416 * target-descriptions.c (make_gdb_type): Update.
417 * symmisc.c (print_symbol): Update.
418 * stabsread.c (define_symbol, read_type)
419 (complain_about_struct_wipeout, add_undefined_type)
420 (cleanup_undefined_types_1): Update.
421 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
422 (rust_range_type_p, val_print_struct, rust_print_struct_def)
423 (rust_internal_print_type, rust_composite_type)
424 (rust_evaluate_funcall, rust_evaluate_subexp)
425 (rust_inclusive_range_type_p): Update.
426 * python/py-type.c (typy_get_tag): Update.
427 * p-typeprint.c (pascal_type_print_base): Update.
428 * mdebugread.c (parse_symbol, parse_type): Update.
429 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
430 Update.
431 * guile/scm-type.c (gdbscm_type_tag): Update.
432 * go-lang.c (sixg_string_p): Update.
433 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
434 Update.
435 * gdbtypes.h (struct main_type) <tag_name>: Remove.
436 (TYPE_TAG_NAME): Remove.
437 * gdbtypes.c (type_name_no_tag): Simplify.
438 (check_typedef, check_types_equal, recursive_dump_type)
439 (copy_type_recursive, arch_composite_type): Update.
440 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
441 in summary mode when needed.
442 * eval.c (evaluate_funcall): Update.
443 * dwarf2read.c (fixup_go_packaging, read_structure_type)
444 (process_structure_scope, read_enumeration_type)
445 (read_namespace_type, read_module_type, determine_prefix): Update.
446 * cp-support.c (inspect_type): Update.
447 * coffread.c (process_coff_symbol, decode_base_type): Update.
448 * c-varobj.c (c_is_path_expr_parent): Update.
449 * c-typeprint.c (c_type_print_base_struct_union): Update.
450 (c_type_print_base_1): Update. Print struct/class/union/enum in
451 summary when using C language.
452 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
453 (gen_maybe_namespace_elt): Update.
454 * ada-lang.c (ada_type_name): Simplify.
455 (empty_record, ada_template_to_fixed_record_type_1)
456 (template_to_static_fixed_type)
457 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
458
c1ec8cea
TT
4592018-06-01 Tom Tromey <tom@tromey.com>
460
461 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
462 c_print_type.
463 * c-typeprint.c (c_print_type_1): Add "language" parameter.
464 (c_print_type): Update.
465 (c_print_type): New overload.
466 (c_type_print_varspec_prefix, c_type_print_args)
467 (c_type_print_varspec_suffix, c_print_type_no_offsets)
468 (c_type_print_base_struct_union, c_type_print_base_1)
469 (cp_type_print_method_args): Add "language" parameter.
470 (c_type_print_base): Update.
471 * c-lang.h (c_print_type): Add new overload.
472
bc8453a7
TT
4732018-06-01 Tom Tromey <tom@tromey.com>
474
475 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
476 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
477
739e8682
AH
4782018-06-01 Alan Hayward <alan.hayward@arm.com>
479
480 * aarch64-tdep.c (aarch64_sve_register_names): New const
481 var.
482 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
483 (AARCH64_SVE_Z_REGS_NUM): New define.
484 (AARCH64_SVE_P_REGS_NUM): Likewise.
485 (AARCH64_SVE_NUM_REGS): Likewise.
486
8a60efe7
UB
4872018-05-31 Uros Bizjak <ubizjak@gmail.com>
488
489 * nat/linux-ptrace.h [__alpha__]
490 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
491 definitions.
492
4b2dfa9d
MR
4932018-05-31 Maciej W. Rozycki <macro@mips.com>
494
495 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
496 the endianness selected.
497 * NEWS: Document `set endian auto' mode operation update.
498
122394f1
AH
4992018-05-31 Alan Hayward <alan.hayward@arm.com>
500
501 * Makefile.in: Add new header.
502 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
503 (sve_vl_from_vg): Likewise.
504 (sve_vq_from_vl): Likewise.
505 (sve_vl_from_vq): Likewise.
506 (sve_vq_from_vg): Likewise.
507 (sve_vg_from_vq): Likewise.
508 * configure.nat: Add new c file.
509 * nat/aarch64-sve-linux-ptrace.c: New file.
510 * nat/aarch64-sve-linux-ptrace.h: New file.
511
95228a0d
AH
5122018-05-31 Alan Hayward <alan.hayward@arm.com>
513
514 * aarch64-linux-nat.c (aarch64_linux_read_description):
515 Add parmeter zero.
516 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
517 Likewise.
518 * aarch64-tdep.c (tdesc_aarch64_list): Add.
519 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
520 (aarch64_gdbarch_init): Add parmeter zero.
521 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
522 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
523 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
524 parmeter.
525 * doc/gdb.texinfo: Describe SVE feature
526 * features/aarch64-sve.c: New file.
527
5969f0db
OJ
5282018-05-31 Omair Javaid <omair.javaid@linaro.org>
529
530 PR gdb/23210
531 * gdbarch.sh (significant_addr_bit): Default to zero when
532 not set by target architecture.
533 * gdbarch.c: Re-generated.
534 * utils.c (address_significant): Update.
535
61367c61
JB
5362018-05-30 Joel Brobecker <brobecker@adacore.com>
537
538 * stack.c (func_command): Remove trailing newline in call to error.
539
34a79281
SM
5402018-05-30 Simon Marchi <simon.marchi@ericsson.com>
541
542 * regcache.h (regcache_raw_collect): Remove, update callers to
543 use regcache::raw_collect.
544 * regcache.c (regcache_raw_collect): Remove.
545
73e1c03f
SM
5462018-05-30 Simon Marchi <simon.marchi@ericsson.com>
547
548 * regcache.h (regcache_raw_supply): Remove, update callers to
549 use detached_regcache::raw_supply.
550 * regcache.c (regcache_raw_supply): Remove.
551
e4c4a59b
SM
5522018-05-30 Simon Marchi <simon.marchi@ericsson.com>
553
554 * regcache.h (regcache_cooked_write_part): Remove, update
555 callers to use regcache::cooked_write_part.
556 * regcache.c (regcache_cooked_write_part): Remove.
557
73bb0000
SM
5582018-05-30 Simon Marchi <simon.marchi@ericsson.com>
559
560 * regcache.h (regcache_cooked_read_part): Remove, update callers
561 to use readable_regcache::cooked_read_part.
562 * regcache.c (regcache_cooked_read_part): Remove.
563
46a45e9d
SM
5642018-05-30 Simon Marchi <simon.marchi@ericsson.com>
565
566 * regcache.h (regcache_cooked_read_value): Remove, update
567 callers to use readable_regcache::cooked_read_value.
568 * regcache.c (regcache_cooked_read_value): Remove.
569
b66f5587
SM
5702018-05-30 Simon Marchi <simon.marchi@ericsson.com>
571
572 * regcache.h (regcache_cooked_write): Remove, update callers to
573 use regcache::cooked_write.
574 * regcache.c (regcache_cooked_write): Remove.
575
6aa7d724
SM
5762018-05-30 Simon Marchi <simon.marchi@ericsson.com>
577
578 * regcache.h (regcache_invalidate): Remove, update callers to
579 use detached_regcache::invalidate instead.
580 * regcache.c (regcache_invalidate): Remove.
581
4f0420fd
SM
5822018-05-30 Simon Marchi <simon.marchi@ericsson.com>
583
584 * regcache.h (regcache_raw_write_part): Remove, update callers
585 to use regcache::raw_write_part instead.
586 * regcache.c (regcache_raw_write_part): Remove.
587
502fe83e
SM
5882018-05-30 Simon Marchi <simon.marchi@ericsson.com>
589
590 * regcache.h (regcache_raw_read_part): Remove, update callers to
591 use readable_regcache::raw_read_part instead.
592 * regcache.c (regcache_raw_read_part): Remove.
593
dca08e1f
SM
5942018-05-30 Simon Marchi <simon.marchi@ericsson.com>
595
596 * regcache.h (regcache_cooked_read): Remove, update callers to
597 use readable_regcache::cooked_read instead.
598 * regcache.c (regcache_cooked_read): Remove.
599
10eaee5f
SM
6002018-05-30 Simon Marchi <simon.marchi@ericsson.com>
601
602 * regcache.h (regcache_raw_write): Remove, update callers to use
603 regcache::raw_write instead.
604 * regcache.c (regcache_raw_write): Remove.
605
0b883586
SM
6062018-05-30 Simon Marchi <simon.marchi@ericsson.com>
607
608 * regcache.h (regcache_raw_read): Remove, update callers to use
609 readable_regcache::raw_read instead.
610 * regcache.c (regcache_raw_read): Remove.
611
0b47d985
SM
6122018-05-30 Simon Marchi <simon.marchi@ericsson.com>
613
614 * regcache.h (regcache_raw_update): Remove, update callers to
615 use readable_regcache::raw_update instead.
616 * regcache.c (regcache_raw_update): Remove.
617
0ec9f114
SM
6182018-05-30 Simon Marchi <simon.marchi@ericsson.com>
619
620 * regcache.h (regcache_register_status): Remove, update callers
621 to use reg_buffer::get_register_status directly instead.
622 * regcache.c (regcache_register_status): Remove.
623
222312d3
SM
6242018-05-30 Simon Marchi <simon.marchi@ericsson.com>
625
626 * regcache.h (regcache_get_ptid): Remove, update all callers to
627 call regcache::ptid instead.
628 * regcache.c (regcache_get_ptid): Remove.
629
fdbe37e3
SM
6302018-05-30 Simon Marchi <simon.marchi@ericsson.com>
631
632 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
633
f7c6f423
PA
6342018-05-30 Pedro Alves <palves@redhat.com>
635
636 * common/common-exceptions.h (exception_rethrow): Use
637 ATTRIBUTE_NORETURN.
638
52941706
SM
6392018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * breakpoint.c (print_solib_event, check_status_catch_solib):
642 Remove struct keyword in range-based for loops.
643 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
644 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
645 Likewise.
646 * linespec.c (find_superclass_methods, search_minsyms_for_name):
647 Likewise.
648 * symfile.c (addr_info_make_relative): Likewise.
649 * thread.c (value_in_thread_stack_temporaries): Likewise.
650
64cc34d8
WP
6512018-05-29 Weimin Pan <weimin.pan@oracle.com>
652
653 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
654 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
655 * coff-pe-read.c (add_pe_forwarded_sym): Replace
656 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
657 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
658 * jit.c (jit_breakpoint_re_set_internal): Likewise.
659 * printcmd.c (info_address_command): Likewise.
660
e7ec8713
TT
6612018-05-29 Tom Tromey <tom@tromey.com>
662
663 * windows-nat.c (handle_exception): Update fall-through comment.
664
bcb430e4
TT
6652018-05-29 Tom Tromey <tom@tromey.com>
666
667 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
668 (struct program_space) <added_solibs>: Now a std::vector.
669 * breakpoint.c (print_solib_event): Update.
670 (check_status_catch_solib): Update.
671 * progspace.c (clear_program_space_solib_cache): Update.
672 * solib.c (update_solib_list): Update.
673
894882e3
TT
6742018-05-29 Tom Tromey <tom@tromey.com>
675
676 * python/py-type.c (typy_richcompare): Update.
677 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
678 * gdbtypes.h (types_deeply_equal): Return bool.
679 (types_equal): Likewise.
680 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
681 declare VEC.
682 (check_types_equal): Change worklist to std::vector. Return
683 bool.
684 (struct type_equality_entry): Add constructor.
685 (compare_maybe_null_strings): Return bool.
686 (check_types_worklist): Return bool. Change worklist to
687 std::vector.
688 (types_deeply_equal): Use std::vector.
689 (types_equal): Return bool.
690 (compare_maybe_null_strings): Simplify.
691
10b2ded4
TT
6922018-05-29 Tom Tromey <tom@tromey.com>
693
694 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
695
4f7deebe
TT
6962018-05-29 Tom Tromey <tom@tromey.com>
697
698 * objc-lang.h: Don't include cp-support.h.
699 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
700 declare VEC.
701
b8283aea
TT
7022018-05-27 Tom Tromey <tom@tromey.com>
703
704 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
705
41a883c8
TT
7062018-05-25 Tom Tromey <tom@tromey.com>
707
708 * value.c (value::location): Initialize.
709
bf259e25
TT
7102018-05-25 Tom Tromey <tom@tromey.com>
711
712 * dbxread.c (init_bincl_list): Remove.
713 (bincl_list): Now a std::vector.
714 (bincls_allocated, next_bincl): Remove.
715 (free_bincl_list, do_free_bincl_list_cleanup)
716 (make_cleanup_free_bincl_list): Remove.
717 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
718 unique_xmalloc_ptr.
719 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
720 (struct header_file_location): Add constructor.
721 (add_bincl_to_list): Remove.
722
d525a99b
TT
7232018-05-25 Tom Tromey <tom@tromey.com>
724
725 * tui/tui.c (tui_enable): Update.
726 * mi/mi-interp.c (mi_interp::init): Update.
727 * interps.h (class interp) <name>: New method.
728 <m_name>: Rename from name.
729 (~scoped_restore_interp): Update.
730 * interps.c (interp::interp): Update.
731 (interp_add, interp_set, interp_lookup_existing)
732 (current_interp_named_p): Update.
733
da505cff
TT
7342018-05-25 Tom Tromey <tom@tromey.com>
735
736 * interps.c (interp_name): Remove.
737 * mi/mi-interp.c (mi_interp::init): Update.
738 * interps.h (interp_name): Remove.
739 (~scoped_restore_interp): Update.
740 * tui/tui.c (tui_enable): Update.
741
29f94340
TT
7422018-05-25 Tom Tromey <tom@tromey.com>
743
744 * utils.c (fputs_maybe_filtered): Update.
745 * linespec.c (decode_line_full): Update.
746 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
747 (mi_print_breakpoint_for_event, mi_solib_loaded)
748 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
749 (mi_user_selected_context_changed): Update.
750 * mi/mi-main.c (mi_execute_command): Update.
751 * cli/cli-script.c (execute_control_command): Update.
752 * python/python.c (execute_gdb_command): Update.
753 * solib.c (info_sharedlibrary_command): Update.
754 * interps.c (interp_ui_out): Remove.
755 * interps.h (interp_ui_out): Remove.
756
716b8bc5
TT
7572018-05-25 Tom Tromey <tom@tromey.com>
758
759 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
760 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
761 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
762
753ff9bd
TT
7632018-05-25 Tom Tromey <tom@tromey.com>
764
765 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
766 * interps.c (interp_exec): Use scoped_restore.
767
5ca3b260
TT
7682018-05-25 Tom Tromey <tom@tromey.com>
769
770 * remote.c (remote_target::remote_file_get): Use
771 gdb::byte_vector.
772 (remote_target::remote_file_put): Likewise.
773
3173aa2f
TT
7742018-05-25 Tom Tromey <tom@tromey.com>
775
776 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
777 a std::string.
778 (get_pe_section_index, add_pe_exported_sym): Update.
779 (read_pe_exported_syms): Use gdb::def_vector.
780
09a5e1b5
TT
7812018-05-25 Tom Tromey <tom@tromey.com>
782
783 * frame.c (remove_prev_frame): Remove.
784 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
785
d8dab6c3
MR
7862018-05-25 Maciej W. Rozycki <macro@mips.com>
787
788 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
789 Remove prototypes.
790 * mips-linux-nat.c (supply_fpregset): Always call
791 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
792 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
793 `mips_fill_fpregset'.
794 * mips-linux-tdep.c (mips_supply_fpregset)
795 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
796 (mips_fill_fpregset_wrapper): Remove functions.
797 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
798 (mips_linux_fpregset): Remove variable.
799 (mips_linux_iterate_over_regset_sections): Use
800 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
801 (mips_linux_o32_sigframe_init): Remove comment.
802
3c69da40
PA
8032018-05-25 Pedro Alves <palves@redhat.com>
804
805 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
806 (struct readahead_cache, struct packet_reg, struct
807 remote_arch_state, class remote_state): Move higher up in the
808 file.
809 (remote_target::m_remote_state): Now an object instead of a pointer.
810 (remote_target::get_remote_state): Adjust.
811
39f0c204
AB
8122018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * stack.c (select_and_print_frame): Delete.
815 (struct function_bounds): Move struct within function.
816 (func_command): Most content moved into new function
817 find_frame_for_function, use new function, print result, add
818 function comment.
819 (find_frame_for_function): New function, now returns a result.
820
d392224a
PW
8212018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
822
823 * stack.c (iterate_over_block_arg_vars): Fix comment.
824 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
825
45f25d6c
AB
8262018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
827
828 PR gdb/23203
829 * frame.c
830 (scoped_restore_selected_frame::scoped_restore_selected_frame):
831 Define.
832 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
833 Define.
834 * frame.h (class scoped_restore_selected_frame): New class.
835 * stack.c (print_frame_local_vars): Remove catching and rethrowing
836 of any exception, use scoped_restore_selected_frame to restore the
837 frame instead.
838
da05d921
PA
8392018-05-24 Pedro Alves <palves@redhat.com>
840
841 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
842 override.
843
a8be540e
TT
8442018-05-23 Tom Tromey <tom@tromey.com>
845
846 * complaints.c (struct complaints): Remove.
847 (symfile_complaint_book): Remove.
848 (series): New global.
849 (complaint_internal): Update.
850 (clear_complaints): Update.
851
ff1cf532
TT
8522018-05-23 Tom Tromey <tom@tromey.com>
853
854 * complaints.c (counters): New global.
855 (struct complain): Remove.
856 (struct complaints) <root>: Remove.
857 (complaint_sentinel): Remove.
858 (symfile_complaint_book): Update.
859 (find_complaint) Remove.
860 (complaint_internal, clear_complaints): Update.
861
7ff88174
TT
8622018-05-23 Tom Tromey <tom@tromey.com>
863
864 * complaints.c (struct complain) <file, line>: Remove.
865 (find_complaint): Remove file, line parameters.
866 (complaint_internal): Update.
867
de54e1a5
TT
8682018-05-23 Tom Tromey <tom@tromey.com>
869
870 * complaints.c (vcomplaint): Remove.
871 (complaint_internal) Merge in contents of vcomplaint.
872
2ac237e5
TT
8732018-05-23 Tom Tromey <tom@tromey.com>
874
875 * complaints.c (struct complaints) <explanation>: Remove.
876 (symfile_explanations): Remove.
877 (symfile_complaint_book): Update.
878 (vcomplaint): Update.
879 (struct explanation): Remove.
880
b98664d3
TT
8812018-05-23 Tom Tromey <tom@tromey.com>
882
883 * complaints.c (symfile_complaints): Remove.
884 (complaint_internal): Remove "complaints" parameter.
885 (clear_complaints, vcomplaint): Remove "c" parameter.
886 (get_complaints): Remove.
887 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
888 (dwarf2_debug_line_missing_file_complaint)
889 (dwarf2_debug_line_missing_end_sequence_complaint)
890 (dwarf2_complex_location_expr_complaint)
891 (dwarf2_const_value_length_mismatch_complaint)
892 (dwarf2_section_buffer_overflow_complaint)
893 (dwarf2_macro_malformed_definition_complaint)
894 (dwarf2_invalid_attrib_class_complaint)
895 (create_addrmap_from_index, dw2_symtab_iter_next)
896 (dw2_expand_marked_cus)
897 (dw2_debug_names_iterator::find_vec_in_debug_names)
898 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
899 (create_debug_type_hash_table, init_cutu_and_read_dies)
900 (partial_die_parent_scope, add_partial_enumeration)
901 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
902 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
903 (read_import_statement, read_file_scope, create_dwo_cu_reader)
904 (create_cus_hash_table, create_dwp_hash_table)
905 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
906 (dwarf2_rnglists_process, dwarf2_ranges_process)
907 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
908 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
909 (handle_struct_member_die, process_structure_scope)
910 (read_array_type, read_common_block, read_module_type)
911 (read_tag_pointer_type, read_typedef, read_base_type)
912 (read_subrange_type, load_partial_dies, partial_die_info::read)
913 (partial_die_info::read, partial_die_info::read)
914 (partial_die_info::read, read_checked_initial_length_and_offset)
915 (dwarf2_string_attr, read_formatted_entries)
916 (dwarf_decode_line_header)
917 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
918 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
919 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
920 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
921 (get_signatured_type, get_DW_AT_signature_type)
922 (decode_locdesc, file_file_name, consume_improper_spaces)
923 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
924 (dwarf_decode_macro_bytes, dwarf_decode_macros)
925 (dwarf2_symbol_mark_computed, set_die_type)
926 (read_attribute_value): Update.
927 * stap-probe.c (handle_stap_probe, get_stap_base_address):
928 Update.
929 * dbxread.c (unknown_symtype_complaint)
930 (lbrac_mismatch_complaint, repeated_header_complaint)
931 (set_namestring, function_outside_compilation_unit_complaint)
932 (read_dbx_symtab, process_one_symbol): Update.
933 * gdbtypes.c (stub_noname_complaint): Update.
934 * windows-nat.c (handle_unload_dll): Update.
935 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
936 (decode_base_type): Update.
937 * xcoffread.c (bf_notfound_complaint, ef_complaint)
938 (eb_complaint, record_include_begin, record_include_end)
939 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
940 (process_xcoff_symbol, read_symbol)
941 (function_outside_compilation_unit_complaint)
942 (scan_xcoff_symtab): Update.
943 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
944 * buildsym.c (finish_block_internal, make_blockvector)
945 (end_symtab_get_static_block, augment_type_symtab): Update.
946 * dtrace-probe.c (dtrace_process_dof)
947 (dtrace_static_probe_ops::get_probes): Update.
948 * complaints.h (struct complaint): Don't declare.
949 (symfile_complaints): Remove.
950 (complaint_internal): Remove "complaints" parameter.
951 (complaint): Likewise.
952 (clear_complaints): Likewise.
953 * symfile.c (syms_from_objfile_1, finish_new_objfile)
954 (reread_symbols): Update.
955 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
956 (dwarf2_frame_cache, decode_frame_entry): Update.
957 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
958 * objc-lang.c (lookup_objc_class, lookup_child_selector)
959 (info_selectors_command): Update.
960 * macrotab.c (macro_include, check_for_redefinition)
961 (macro_undef): Update.
962 * objfiles.c (filter_overlapping_sections): Update.
963 * stabsread.c (invalid_cpp_abbrev_complaint)
964 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
965 (define_symbol, error_type, read_type, rs6000_builtin_type)
966 (stabs_method_name_from_physname, read_member_functions)
967 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
968 (attach_fields_to_type, complain_about_struct_wipeout)
969 (read_range_type, read_args, common_block_start)
970 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
971 Update.
972 * mdebugread.c (index_complaint, unknown_ext_complaint)
973 (basic_type_complaint, bad_tag_guess_complaint)
974 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
975 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
976 (parse_procedure, parse_lines)
977 (function_outside_compilation_unit_complaint)
978 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
979 (bad_tag_guess_complaint, reg_value_complaint): Update.
980 * cp-support.c (demangled_name_complaint): Update.
981 * macroscope.c (sal_macro_scope): Update.
982 * dwarf-index-write.c (class debug_names): Update.
983
4e9668d0
TT
9842018-05-23 Tom Tromey <tom@tromey.com>
985
986 * complaints.c (clear_complaints): Remove "noisy" parameter.
987 * complaints.h (clear_complaints): Update.
988 * symfile.c (syms_from_objfile_1, finish_new_objfile)
989 (reread_symbols): Update.
990
43ba33c7
TT
9912018-05-23 Tom Tromey <tom@tromey.com>
992
993 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
994 SUBSEQUENT_MESSAGE.
995 (vcomplaint, clear_complaints): Update.
996 (symfile_explanations): Remove some messages.
997
2b9496b2
TT
9982018-05-23 Tom Tromey <tom@tromey.com>
999
1000 * complaints.c (internal_complaint): Remove.
1001 * complaints.h (internal_complaint): Remove.
1002
35f1fea3
MR
10032018-05-22 Maciej W. Rozycki <macro@mips.com>
1004
1005 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
1006
6b8edb51
PA
10072018-05-22 Pedro Alves <palves@redhat.com>
1008
1009 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
1010 (remote_fileio_badfd, remote_fileio_return_errno)
1011 (remote_fileio_return_success, remote_fileio_func_open)
1012 (remote_fileio_func_open, remote_fileio_func_close)
1013 (remote_fileio_func_read, remote_fileio_func_write)
1014 (remote_fileio_func_lseek, remote_fileio_func_rename)
1015 (remote_fileio_func_unlink, remote_fileio_func_stat)
1016 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1017 (remote_fileio_func_isatty, remote_fileio_func_system): Add
1018 remote_target parameter.
1019 (remote_fio_func_map) <func>: Add remote_target parameter.
1020 (do_remote_fileio_request, remote_fileio_request):
1021 * remote-fileio.h (remote_fileio_request):
1022 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
1023 remote_target parameter.
1024 (remote_notif_process, handle_notification): Adjust to pass down
1025 the remote.
1026 (remote_notif_state_allocate): Add remote_target parameter. Save
1027 it.
1028 * remote-notif.h (struct remote_target): Forward declare.
1029 (struct notif_client) <parse, ack, can_get_pending_events>: Add
1030 remote_target parameter.
1031 (struct remote_notif_state) <remote>: New field.
1032 (remote_notif_ack, remote_notif_parse): Add remote_target
1033 parameter.
1034 (remote_notif_state_allocate, remote_notif_state_allocate): Add
1035 remote_target parameter.
1036 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
1037 (threads_listing_context, rmt_thread_action, protocol_feature)
1038 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
1039 (packet_result, struct threads_listing_context, remote_state):
1040 Move definitions and declarations higher up.
1041 (remote_target) <~remote_target>: Declare.
1042 (remote_download_command_source, remote_file_put, remote_file_get)
1043 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
1044 (remote_hostio_pread_vFile, remote_hostio_send_command)
1045 (remote_hostio_set_filesystem, remote_hostio_open)
1046 (remote_hostio_close, remote_hostio_unlink, remote_state)
1047 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
1048 (get_memory_write_packet_size, get_memory_read_packet_size)
1049 (append_pending_thread_resumptions, remote_detach_1)
1050 (append_resumption, remote_resume_with_vcont)
1051 (add_current_inferior_and_thread, wait_ns, wait_as)
1052 (process_stop_reply, remote_notice_new_inferior)
1053 (process_initial_stop_replies, remote_add_thread)
1054 (btrace_sync_conf, remote_btrace_maybe_reopen)
1055 (remove_new_fork_children, kill_new_fork_children)
1056 (discard_pending_stop_replies, stop_reply_queue_length)
1057 (check_pending_events_prevent_wildcard_vcont)
1058 (discard_pending_stop_replies_in_queue, stop_reply)
1059 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
1060 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
1061 (remote_interrupt_as, remote_interrupt_ns)
1062 (remote_get_noisy_reply, remote_query_attached)
1063 (remote_add_inferior, remote_current_thread, get_current_thread)
1064 (set_thread, set_general_thread, set_continue_thread)
1065 (set_general_process, write_ptid)
1066 (remote_unpack_thread_info_response, remote_get_threadinfo)
1067 (parse_threadlist_response, remote_get_threadlist)
1068 (remote_threadlist_iterator, remote_get_threads_with_ql)
1069 (remote_get_threads_with_qxfer)
1070 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
1071 (get_offsets, remote_check_symbols, remote_supported_packet)
1072 (remote_query_supported, remote_packet_size)
1073 (remote_serial_quit_handler, remote_detach_pid)
1074 (remote_vcont_probe, remote_resume_with_hc)
1075 (send_interrupt_sequence, interrupt_query)
1076 (remote_notif_get_pending_events, fetch_register_using_p)
1077 (send_g_packet, process_g_packet, fetch_registers_using_g)
1078 (store_register_using_P, store_registers_using_G)
1079 (set_remote_traceframe, check_binary_download)
1080 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
1081 (remote_xfer_live_readonly_partial, remote_read_bytes)
1082 (remote_send_printf, remote_flash_write, readchar)
1083 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
1084 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
1085 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
1086 (extended_remote_disable_randomization, extended_remote_run)
1087 (send_environment_packet, extended_remote_environment_support)
1088 (extended_remote_set_inferior_cwd, remote_write_qxfer)
1089 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
1090 (packet_command): Now methods of ...
1091 (remote_target): ... this class.
1092 (m_remote_state) <remote_target>: New field.
1093 (struct remote_state) <stop_reply_queue,
1094 remote_async_inferior_event_token, wait_forever_enabled_p>: New
1095 fields.
1096 (remote_state::remote_state): Allocate stop_reply_queue.
1097 (remote_state): Delete global.
1098 (get_remote_state_raw): Delete.
1099 (remote_target::get_remote_state): Allocate m_remote_state on
1100 demand.
1101 (get_current_remote_target): New.
1102 (remote_ops, extended_remote_ops): Delete.
1103 (wait_forever_enabled_p, remote_async_inferior_event_token):
1104 Delete, moved to struct remote_state.
1105 (remote_target::close): Delete self. Destruction bits split to
1106 ...
1107 (remote_target::~remote_target): ... this.
1108 (show_memory_packet_size): Adjust to use
1109 get_current_remote_target.
1110 (struct protocol_feature) <func>: Add remote_target parameter.
1111 All callers adjusted.
1112 (curr_quit_handler_target): New.
1113 (remote_serial_quit_handler): Reimplement.
1114 (remote_target::open_1): Adjust to use get_current_remote_target.
1115 Heap-allocate remote_target/extended_remote_target instances.
1116 (vcont_builder::vcont_builder): Add remote_target parameter, and
1117 save it in m_remote. All callers adjusted.
1118 (vcont_builder::m_remote): New field.
1119 (vcont_builder::restart, vcont_builder::flush)
1120 (vcont_builder::push_action): Use it.
1121 (remote_target::commit_resume): Use it.
1122 (struct queue_iter_param) <remote>: New field.
1123 (remote_target::remove_new_fork_children): Fill in 'remote' field.
1124 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
1125 (check_pending_event_prevents_wildcard_vcont_callback)
1126 (remote_target::check_pending_events_prevent_wildcard_vcont)
1127 (remote_target::discard_pending_stop_replies)
1128 (remote_target::discard_pending_stop_replies_in_queue)
1129 (remote_target::remote_notif_remove_queued_reply): Fill in
1130 'remote' field.
1131 (remote_notif_get_pending_events): New.
1132 (remote_target::readchar, remote_target::remote_serial_write):
1133 Save/restore curr_quit_handler_target.
1134 (putpkt): New.
1135 (kill_new_fork_children): Fill in 'remote' field.
1136 (packet_command): Use get_current_remote_target, defer to
1137 remote_target method of same name.
1138 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
1139 parameter, and save it in m_remote. All callers adjusted.
1140 (scoped_remote_fd::release): Use m_remote.
1141 (scoped_remote_fd::m_remote): New field.
1142 (remote_file_put, remote_file_get, remote_file_delete): Use
1143 get_current_remote_target, defer to remote_target method of same
1144 name.
1145 (remote_btrace_reset): Add remote_state paremeter. Update all
1146 callers.
1147 (remote_async_inferior_event_handler). Pass down 'data'.
1148 (remote_new_objfile): Use get_current_remote_target.
1149 (remote_target::vcont_r_supported): New.
1150 (set_range_stepping): Use get_current_remote_target and
1151 remote_target::vcont_r_supported.
1152 (_initialize_remote): Don't allocate 'remote_state' and
1153 'stop_reply_queue' globals.
1154 * remote.h (struct remote_target): Forward declare.
1155 (getpkt, putpkt, remote_notif_get_pending_events): Add
1156 'remote_target' parameter.
1157
f5db4863
PA
11582018-05-22 Pedro Alves <palves@redhat.com>
1159
1160 * remote.c (vcont_builder): Now a class. Make all data members
1161 private.
1162 (vcont_builder) <vcont_builder, restart, flush, push_action>:
1163 Declare methods.
1164 (vcont_builder_restart): Rename to ...
1165 (vcont_builder::restart): ... this.
1166 (vcont_builder_flush): Rename to ...
1167 (vcont_builder::flush): ... this.
1168 (vcont_builder_push_action): Rename to ...
1169 (vcont_builder::push_action): ... this.
1170 (remote_target::commit_resume): Adjust.
1171
cc0be08f
PA
11722018-05-22 Pedro Alves <palves@redhat.com>
1173
1174 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
1175 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
1176 (get_fixed_memory_packet_size): New.
1177 (get_memory_packet_size): Use it.
1178 (set_memory_packet_size): Don't override the config size with
1179 DEFAULT_MAX_MEMORY_PACKET_SIZE.
1180 (show_memory_packet_size): Use get_fixed_memory_packet_size.
1181 Don't refer to get_memory_packet_size if not connected to a remote
1182 target. Show "(default)" if configured size is 0.
1183
9607784a
PA
11842018-05-22 Pedro Alves <palves@redhat.com>
1185
1186 * remote.c (remote_target::mourn_inferior): Move
1187 discard_pending_stop_replies call here from ...
1188 (_initialize_remote): ... here.
1189
0e9a6b2f
PA
11902018-05-22 Pedro Alves <palves@redhat.com>
1191
1192 * remote.c (compare_section_command): Remove set_general_process
1193 call.
1194
43c3a0e4
PA
11952018-05-22 Pedro Alves <palves@redhat.com>
1196
1197 * remote.c (struct packet_reg, struct remote_arch_state):
1198 Move higher up in the file.
1199 (remote_state) <m_arch_states>: Store remote_arch_state values
1200 instead of remote_arch_state pointers.
1201 (remote_state::get_remote_arch_state): Adjust.
1202
9d6eea31
PA
12032018-05-22 Pedro Alves <palves@redhat.com>
1204
1205 * remote.c: Include <unordered_map>.
1206 (remote_state): Now a class.
1207 (remote_state) <get_remote_arch_state>: Declare method.
1208 <get_remote_arch_state>: New field.
1209 (remote_arch_state) <remote_arch_state>: Declare ctor.
1210 <regs>: Now a unique_ptr.
1211 (remote_gdbarch_data_handle): Delete.
1212 (get_remote_arch_state): Delete.
1213 (remote_state::get_remote_arch_state): New.
1214 (get_remote_state): Adjust to call remote_state's
1215 get_remote_arch_state method.
1216 (init_remote_state): Delete, bits factored out to ...
1217 (remote_arch_state::remote_arch_state): ... this new method.
1218 (get_remote_packet_size, get_memory_packet_size)
1219 (process_g_packet, remote_target::fetch_registers)
1220 (remote_target::prepare_to_store, store_registers_using_G)
1221 (remote_target::store_registers, remote_target::get_trace_status):
1222 Adjust to call remote_state's method.
1223 (_initialize_remote): Remove reference to
1224 remote_gdbarch_data_handle.
1225
dd194f6b
PA
12262018-05-22 Pedro Alves <palves@redhat.com>
1227
1228 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
1229 pread>: New method declarations.
1230 (remote_target::open_1): Adjust.
1231 (readahead_cache_invalidate): Rename to ...
1232 (readahead_cache::invalidate): ... this, and adjust to be a class
1233 method.
1234 (readahead_cache_invalidate_fd): Rename to ...
1235 (readahead_cache::invalidate_fd): ... this, and adjust to be a
1236 class method.
1237 (remote_hostio_pwrite): Adjust.
1238 (remote_hostio_pread_from_cache): Rename to ...
1239 (readahead_cache::pread): ... this, and adjust to be a class
1240 method.
1241 (remote_hostio_close): Adjust.
1242
440b7aec
PA
12432018-05-22 Pedro Alves <palves@redhat.com>
1244
1245 * remote.c (remote_hostio_close_cleanup): Delete.
1246 (class scoped_remote_fd): New.
1247 (remote_file_put, remote_file_get): Use it.
1248
de44f5a7
PA
12492018-05-22 Pedro Alves <palves@redhat.com>
1250
1251 (struct vCont_action_support): Use bool and initialize all fields.
1252 (struct readahead_cache): Initialize all fields.
1253 (remote_state): Use bool and initialize all fields.
1254 (remote_state::remote_state, remote_state::~remote_state): New.
1255 (new_remote_state): Delete.
1256 (_initialize_remote): Use new to allocate remote_state.
1257
b1b60145
PA
12582018-05-22 Pedro Alves <palves@redhat.com>
1259 張俊芝 <zjz@zjz.name>
1260
1261 PR gdb/22973
1262 * c-exp.y: Include "c-support.h".
1263 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
1264 of tolower. Use c_ident_is_alpha to scan names.
1265 * c-lang.c: Include "c-support.h".
1266 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
1267 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
1268 * c-support.h: New file, with bits factored out from ...
1269 * cp-name-parser.y: ... this file.
1270 Include "c-support.h".
1271 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
1272 c-support.h and renamed.
1273 (symbol_end, yylex): Adjust.
1274
0ec848ad
PFC
12752018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1276
1277 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
1278 parameter type to CORE_ADDR.
1279 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
1280 parameter type in declaration to CORE_ADDR.
1281 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
1282 target_auxv_search to get AT_HWCAP and use the result to get the
1283 target description.
1284 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
1285 to CORE_ADDR. Remove the cast of the return value to unsigned
1286 long. Fix error predicate of target_auxv_search.
1287 (ppc_linux_nat_target::read_description): Change the type of the
1288 hwcap variable to CORE_ADDR.
1289
0fb2aaa1
PFC
12902018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1291
1292 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
1293 if the size of fpscr is larger than 32 bits.
1294
2c3305f6
PFC
12952018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1296
1297 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
1298 (ppc32_linux_vsxregmap): New global.
1299 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
1300 regcache_supply_regset, and regcache_collect_regset.
1301 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
1302 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
1303 (fetch_vsx_register, store_vsx_register): Remove.
1304 (fetch_vsx_registers): Add regno parameter. Get regset using
1305 ppc_linux_vsxregset. Use regset to supply registers.
1306 (store_vsx_registers): Add regno parameter. Get regset using
1307 ppc_linux_vsxregset. Use regset to collect registers.
1308 (fetch_register): Call fetch_vsx_registers instead of
1309 fetch_vsx_register.
1310 (store_register): Call store_vsx_registers instead of
1311 store_vsx_register.
1312 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
1313 new regno parameter.
1314 (store_ppc_registers): Call store_vsx_registers with -1 for the
1315 new regno parameter.
1316 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
1317 (ppc_collect_vsxregset): Remove.
1318
1d75a658
PFC
13192018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1320
1321 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
1322 offset fields.
1323 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
1324 for vector register offset fields.
1325 (ppc64_fbsd_reg_offsets): Likewise.
1326 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
1327 to vector register offset fields.
1328 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
1329 to vector register offset fields.
1330 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
1331 vector register offset fields.
1332 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
1333 initializers for vector register offset fields.
1334 (rs6000_aix64_reg_offsets): Likewise.
1335 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
1336 (ppc_supply_vrregset): Remove.
1337 (ppc_collect_vrregset): Remove.
1338 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
1339 (ppc_linux_vrregset) : New function.
1340 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
1341 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
1342 (ppc32_linux_vrregset): Remove.
1343 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
1344 and use result instead of ppc32_linux_vrregset.
1345 (ppc32_linux_reg_offsets): Remove initializers for vector register
1346 offset fields.
1347 (ppc64_linux_reg_offsets): Likewise.
1348 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
1349 * ppc-linux-nat.c: Include regset.h.
1350 (gdb_vrregset_t): Adjust comment to account for little-endian
1351 mode.
1352 (supply_vrregset, fill_vrregset): Remove.
1353 (fetch_altivec_register, store_altivec_register): Remove.
1354 (fetch_altivec_registers): Add regno parameter. Get regset using
1355 ppc_linux_vrregset. Use regset to supply registers.
1356 (store_altivec_registers): Add regno parameter. Get regset using
1357 ppc_linux_vrregset. Use regset to collect registers.
1358 (fetch_register): Call fetch_altivec_registers instead of
1359 fetch_altivec_register.
1360 (store_register): Call store_altivec_registers instead of
1361 store_altivec_register.
1362 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
1363 the new regno parameter.
1364 (store_ppc_registers): Call store_altivec_registers with -1 for
1365 the new regno parameter.
1366
d078308a
PFC
13672018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1368
1369 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
1370 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
1371 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
1372 (gdb_vrregset_t): Change array type size to
1373 PPC_LINUX_SIZEOF_VRREGSET.
1374 (gdb_vsxregset_t): Change array type size to
1375 PPC_LINUX_SIZEOF_VSXREGSET.
1376 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
1377 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
1378 PPC_LINUX_SIZEOF_VSXREGSET.
1379
2e077f5e
PFC
13802018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1381
1382 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
1383 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
1384 nat/ppc-linux.c.
1385 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
1386 ppc_linux_target_wordsize with tid.
1387 (ppc_linux_nat_target::read_description): Call ppc_linux_target
1388 wordsize with tid.
1389 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
1390 (ppc64_64bit_inferior_p): Add static and inline specifiers.
1391 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
1392 tid parameter. Remove static specifier.
1393 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
1394 (ppc_linux_target_wordsize): New declaration.
1395
bd64614e
PFC
13962018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1397
1398 * arch/ppc-linux-common.c: New file.
1399 * arch/ppc-linux-common.h: New file.
1400 * arch/ppc-linux-tdesc.h: New file.
1401 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
1402 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
1403 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
1404 arch/ppc-linux-tdesc.h.
1405 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
1406 arch/ppc-linux-tdesc.h.
1407 (ppc_linux_nat_target::read_description): Remove target
1408 description matching code. Fill a ppc_linux_features struct and
1409 call ppc_linux_match_description with it. Move comment about ISA
1410 2.05 to ppc-linux-common.c.
1411 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
1412 arch/ppc-linux-tdesc.h.
1413 (ppc_linux_core_read_description): Remove target description
1414 matching code. Fill a ppc_linux_features struct and call
1415 ppc_linux_match_description with it.
1416 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
1417 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
1418 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
1419 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
1420 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
1421 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
1422 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
1423 (tdesc_powerpc_e500l): Remove.
1424
241db429
JB
14252018-05-22 Joel Brobecker <brobecker@adacore.com>
1426
1427 * ada-lang.c (catch_assert_command): Pass empty string instead
1428 of NULL for excep_string argument.
1429
75d74cca
MR
14302018-05-22 Maciej W. Rozycki <macro@mips.com>
1431
1432 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
1433 the width of the requested register exceeds the width of the
1434 `ptrace' data type.
1435
122b53ea
TT
14362018-05-21 Tom Tromey <tom@tromey.com>
1437
1438 * printcmd.c (output_command): Remove.
1439 (output_command_const): Rename to output_command.
1440 * valprint.h (output_command): Rename from output_command_const.
1441 * tracepoint.c (trace_dump_actions): Call output_command.
1442
bc18fbb5
TT
14432018-05-21 Tom Tromey <tom@tromey.com>
1444
1445 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1446 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
1447 * ada-lang.h (create_ada_exception_catchpoint): Update.
1448 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
1449 std::string.
1450 (create_excep_cond_exprs, ~ada_catchpoint)
1451 (should_stop_exception, print_one_exception)
1452 (print_mention_exception, print_recreate_exception): Update.
1453 (ada_get_next_arg): Remove.
1454 (catch_ada_exception_command_split): Use std::string. Change type
1455 of "excep_string", "cond_string".
1456 (catch_ada_exception_command): Update.
1457 (create_ada_exception_catchpoint): Change type of excep_string.
1458 (ada_exception_sal): Remove excep_string parameter.
1459 (~ada_catchpoint): Remove.
1460
790217f6
TT
14612018-05-21 Tom Tromey <tom@tromey.com>
1462
1463 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
1464 cleanup.
1465
6f46ac85
TT
14662018-05-21 Tom Tromey <tom@tromey.com>
1467
1468 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1469 Return unique_xmalloc_ptr.
1470 (print_it_exception): Update.
1471
15b6611c
TT
14722018-05-21 Tom Tromey <tom@tromey.com>
1473
1474 * tracepoint.c (trace_dump_actions): Use std::string.
1475
c0c9f665
TT
14762018-05-21 Tom Tromey <tom@tromey.com>
1477
1478 * symfile.c (reread_symbols): Use std::string for original_name.
1479
22ca247e
TT
14802018-05-21 Tom Tromey <tom@tromey.com>
1481
1482 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
1483 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
1484 constructor.
1485
184cde75
SM
14862018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
1489 instance to...
1490 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
1491 * objfiles.c (get_objfile_bfd_data): Allocate
1492 objfile_per_bfd_storage with obstack_new when allocating on
1493 obstack.
1494
e39db4db
SM
14952018-05-20 Simon Marchi <simon.marchi@ericsson.com>
1496
1497 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
1498 OBSTACK_ZALLOC.
1499 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1500 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
1501 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1502 (add_pending): Likewise.
1503 (parse_symbol): Likewise.
1504 (parse_partial_symbols): Likewise.
1505 (psymtab_to_symtab_1): Likewise.
1506 (new_psymtab): Likewise.
1507 (elfmdebug_build_psymtabs): Likewise.
1508 * minsyms.c (terminate_minimal_symbol_table): Likewise.
1509 * objfiles.c (get_objfile_bfd_data): Likewise.
1510 (objfile_register_static_link): Likewise.
1511 * psymtab.c (allocate_psymtab): Likewise.
1512 * stabsread.c (read_member_functions): Likewise.
1513 * xcoffread.c (xcoff_end_psymtab): Likewise.
1514
284a0e3c
SM
15152018-05-20 Simon Marchi <simon.marchi@ericsson.com>
1516
1517 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
1518 compiler supports std::is_trivially_constructible.
1519 * common/poison.h: Include obstack.h.
1520 (IsMallocable): Define to is_trivially_constructible if the
1521 compiler supports it, define to true_type otherwise.
1522 (xobnew): New.
1523 (XOBNEW): Redefine.
1524 (xobnewvec): New.
1525 (XOBNEWVEC): Redefine.
1526 * gdb_obstack.h (obstack_zalloc): New.
1527 (OBSTACK_ZALLOC): Redefine.
1528 (obstack_calloc): New.
1529 (OBSTACK_CALLOC): Redefine.
1530 (obstack_new): New.
1531 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
1532 (gdbarch_obstack): New declaration in gdbarch.h, definition in
1533 gdbarch.c.
1534 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
1535 obstack_calloc/obstack_zalloc.
1536 (gdbarch_obstack_zalloc): Remove.
1537 * target-descriptions.c (tdesc_data_init): Use obstack_new.
1538
59f66be3
PW
15392018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1540
1541 * stack.c (backtrace_command_1): Remove useless variable int i.
1542
50c65c2d
PW
15432018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1544
1545 * stack.c (print_frame_info): Fix comment.
1546
7ff8cb8c
TT
15472018-05-18 Tom Tromey <tom@tromey.com>
1548
1549 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
1550 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
1551 (~dwarf2_per_objfile): Update
1552 (dwarf2_get_dwz_file): Use new.
1553 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
1554 unique_ptr.
1555
400174b1
TT
15562018-05-18 Tom Tromey <tom@tromey.com>
1557
1558 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
1559 unique_ptr.
1560 * dwarf2read.c (struct dwp_file): Add constructor and
1561 initializers.
1562 (open_and_init_dwp_file): Return a unique_ptr.
1563 (dwarf2_per_objfile, create_dwp_hash_table)
1564 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
1565 (lookup_dwo_unit_in_dwp): Update.
1566 (open_and_init_dwp_file, get_dwp_file): Update.
1567
3063847f
TT
15682018-05-18 Tom Tromey <tom@tromey.com>
1569
1570 * dwarf2read.c (dwarf2_per_objfile): Update.
1571 (struct mapped_index): Add initializers.
1572 (dwarf2_read_index): Use new.
1573 (dw2_symtab_iter_init): Update.
1574 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
1575 unique_ptr.
1576
d3d02dee
SM
15772018-05-18 Simon Marchi <simon.marchi@ericsson.com>
1578
1579 * dwarf2read.c (mapped_index) <total_size>: Remove.
1580
1d143c36
SM
15812018-05-18 Simon Marchi <simon.marchi@ericsson.com>
1582
1583 * unittests/format_pieces-selftests.c (test_format_specifier):
1584 Add ARI comments.
1585
ce1e8424
TT
15862018-05-18 Tom Tromey <tom@tromey.com>
1587
1588 * c-typeprint.c (maybe_print_hole): New function.
1589 (c_print_type_struct_field_offset): Update.
1590 (c_type_print_base_struct_union): Call maybe_print_hole.
1591
ddfe970e
KS
15922018-05-17 Keith Seitz <keiths@redhat.com>
1593
1594 * breakpoint.c (build_bpstat_chain): New function, moved from
1595 bpstat_stop_status.
1596 (bpstat_stop_status): Add optional parameter, `stop_chain'.
1597 If no stop chain is passed, call build_bpstat_chain to build it.
1598 * breakpoint.h (build_bpstat_chain): Declare.
1599 (bpstat_stop_status): Move documentation here from breakpoint.c.
1600 * infrun.c (handle_signal_stop): Before eliding inlined frames,
1601 build the stop chain and pass it to skip_inline_frames.
1602 Pass this stop chain to bpstat_stop_status.
1603 * inline-frame.c: Include breakpoint.h.
1604 (stopped_by_user_bp_inline_frame): New function.
1605 (skip_inline_frames): Add parameter `stop_chain'.
1606 Move documention to inline-frame.h.
1607 If non-NULL, use stopped_by_user_bp_inline_frame to determine
1608 whether the frame should be elided.
1609 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
1610 Add moved documentation and update for new parameter.
1611
b17992c1
SM
16122018-05-17 Simon Marchi <simon.marchi@ericsson.com>
1613
1614 PR cli/14975
1615 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1616 unittests/format_pieces-selftests.c.
1617 * common/format.h (format_piece) <operator==>: New.
1618 (format_pieces) <operator[]>: Remove.
1619 * common/format.c (format_pieces::format_pieces): Handle \e.
1620 * unittests/format_pieces-selftests.c: New.
1621
58f0c718
TT
16222018-05-17 Tom Tromey <tom@tromey.com>
1623
1624 PR symtab/23010:
1625 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
1626 (dw2_instantiate_symtab): Add skip_partial parameter.
1627 (dw2_find_last_source_symtab, dw2_map_expand_apply)
1628 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
1629 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
1630 (dw2_expand_symtabs_matching_one)
1631 (dw2_find_pc_sect_compunit_symtab)
1632 (dw2_debug_names_lookup_symbol)
1633 (dw2_debug_names_expand_symtabs_for_function): Update.
1634 (init_cutu_and_read_dies): Add skip_partial parameter.
1635 (process_psymtab_comp_unit, build_type_psymtabs_1)
1636 (process_skeletonless_type_unit, load_partial_comp_unit)
1637 (psymtab_to_symtab_1): Update.
1638 (load_full_comp_unit): Add skip_partial parameter.
1639 (process_imported_unit_die, dwarf2_read_addr_index)
1640 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
1641 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
1642 (read_signatured_type): Update.
1643
3e618834
SM
16442018-05-17 Simon Marchi <simon.marchi@ericsson.com>
1645
1646 * value.c (release_value): Remove unused variable.
1647 (record_latest_value): Likewise.
1648 (access_value_history): Likewise.
1649 (preserve_values): Likewise.
1650
fe10fe31
TT
16512018-05-17 Tom Tromey <tom@tromey.com>
1652
1653 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
1654 Initialize.
1655
1d761124
MR
16562018-05-16 Maciej W. Rozycki <macro@mips.com>
1657
1658 PR gdb/22286
1659 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
1660 Also handle registers whose width is not a multiple of
1661 PTRACE_TYPE_RET.
1662 (linux_nat_trad_target::store_register): Likewise.
1663
06333fea
TT
16642018-05-16 Tom Tromey <tom@tromey.com>
1665
1666 * gdbcore.h (core_bfd): Redefine.
1667 * corelow.c (core_target::close): Update.
1668 (core_target_open): Update.
1669 * progspace.h (struct program_space) <cbfd>: Now a
1670 gdb_bfd_ref_ptr.
1671
921222e2
TT
16722018-05-16 Tom Tromey <tom@tromey.com>
1673
1674 PR cli/19551:
1675 * symfile-add-flags.h (enum symfile_add_flags)
1676 <SYMFILE_NOT_FILENAME>: New constant.
1677 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
1678 objfile name from BFD.
1679 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
1680 * minidebug.c (find_separate_debug_file_in_section): Put
1681 ".gnu_debugdata" into BFD's file name.
1682
3acb7083
SM
16832018-05-16 Simon Marchi <simon.marchi@ericsson.com>
1684
1685 * regcache.c (regcache_read_ftype, regcache_write_ftype):
1686 Remove.
1687
561a72d4
TC
16882018-05-15 Tamar Christina <tamar.christina@arm.com>
1689
1690 PR binutils/21446
1691 * aarch64-tdep.c (aarch64_analyze_prologue,
1692 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
1693 Indicate not interested in errors.
1694
4e6ff0e1
MR
16952018-05-15 Maciej W. Rozycki <macro@mips.com>
1696
1697 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
1698 Supply the MIPS_ZERO_REGNUM register.
1699
ea33cd92
MR
17002018-05-15 Maciej W. Rozycki <macro@mips.com>
1701
1702 * mips-tdep.c (mask_address_var): Make variable static.
1703
2d79090e
TT
17042018-05-14 Tom Tromey <tom@tromey.com>
1705
1706 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
1707
cf4912ae
AB
17082018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
1709
1710 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
1711 FXSAVE_ADDR for the mxcsr register.
1712
67e6f569
MF
17132018-05-11 Max Filippov <jcmvbkbc@gmail.com>
1714
1715 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
1716
15244507
PA
17172018-05-11 Pedro Alves <palves@redhat.com>
1718
1719 * corelow.c (core_target) <core_target>: No longer inline.
1720 Initialize m_core_gdbarch, m_core_vec and build the section table
1721 here.
1722 <~core_target>: New.
1723 <core_gdbarch, get_core_register_section>: New methods.
1724 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
1725 factored out from ...
1726 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
1727 (core_ops): Delete.
1728 (sniff_core_bfd): Add gdbarch parameter.
1729 (core_close): Delete, merged into ...
1730 (core_target::close): ... here. Delete self.
1731 (core_close_cleanup): Delete.
1732 (core_target_open): Allocate a core_target on the heap. Use a
1733 unique_ptr instead of a cleanup. Bits moved into the core_target
1734 ctor. Adjust to use core_target methods instead of globals.
1735 (get_core_register_section): Rename to ...
1736 (core_target::get_core_register_section): ... this and adjust.
1737 (struct get_core_registers_cb_data): New.
1738 (get_core_registers_cb): Use it. Use bool.
1739 (core_target::fetch_registers, core_target::files_info)
1740 (core_target::xfer_partial, core_target::read_description)
1741 (core_target::pid_to, core_target::thread_name): Adjust to
1742 reference class fields instead of globals.
1743 * target.h (struct target_ops_deleter, target_ops_up): New.
1744
451953fa
PA
17452018-05-11 Pedro Alves <palves@redhat.com>
1746
1747 * corefile.c (core_file_command): Move to corelow.c.
1748 * corelow.c (the_core_target): Delete.
1749 (core_file_command): Moved from corefile.c. Check exec_bfd
1750 instead of the_core_target. Use target_detach instead of calling
1751 into the_core_target directly.
1752 (maybe_say_no_core_file_now): New.
1753 (core_target::detach): Use it.
1754 (_initialize_corelow): Remove references to the_core_target.
1755 * gdbcore.h (the_core_target): Delete.
1756
e540a5a2 17572018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 1758 Pedro Alves <palves@redhat.com>
e540a5a2
TT
1759
1760 * corefile.c (core_bfd): Remove.
1761 * gdbcore.h (core_bfd): Now a macro.
1762 * progspace.h (struct program_space) <cbfd>: New field.
1763
633cf254
TT
17642018-05-11 Tom Tromey <tom@tromey.com>
1765
1766 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
1767 gdb::def_vector.
1768
1a34f210
TT
17692018-05-10 Tom Tromey <tom@tromey.com>
1770
1771 * configure: Rebuild.
1772 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
1773
190852c8
JB
17742018-05-10 Joel Brobecker <brobecker@adacore.com>
1775
1776 PR server/23158:
1777 * regformats/regdat.sh: Adjust script, following the addition
1778 of the new expedite_regs parameter to init_target_desc.
1779
8727de56
OJ
17802018-05-10 Omair Javaid <omair.javaid@linaro.org>
1781
1782 PR gdb/23127
1783 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
1784 set_gdbarch_significant_addr_bit.
1785 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
1786 set_gdbarch_significant_addr_bit.
1787 * utils.c (address_significant): Update to sign extend addr.
1788
37d9e062
MF
17892018-05-09 Max Filippov <jcmvbkbc@gmail.com>
1790
1791 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
1792 (xtensa_linux_init_abi): Limit tdep->num_regs by
1793 tdep->num_nopriv_regs.
1794 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
1795 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
1796 not initialized.
1797
7402fbca
SM
17982018-05-08 Simon Marchi <simon.marchi@ericsson.com>
1799
1800 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
1801
8ee22052
AB
18022018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
1805 (I387_MXCSR_INIT_VAL): New constant.
1806 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
1807 buffer if it was supplied by the inferior.
1808 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
1809 (i387_xsave_get_clear_bv): New function.
1810 (i387_supply_xsave): Only read x87 control registers from the
1811 xsave buffer if the feature is enabled, and the state will have
1812 been written, otherwise, provide a suitable default.
1813 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
1814 including x87 control registers. Update control registers if they
1815 have changed from the default value, and mark features as enabled
1816 as required.
1817 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
1818
968ae51b
UW
18192018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1820
1821 * spu-tdep.c (info_spu_event_command): Fix output formatting.
1822
aff689d3
TT
18232018-05-07 Tom Tromey <tom@tromey.com>
1824
1825 * configure: Rebuild.
1826 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
1827
ce887586
TT
18282018-05-07 Tom Tromey <tom@tromey.com>
1829
1830 PR tdep/20362:
1831 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
1832 bit. Use correct value for VDIV.
1833
85e26832
TT
18342018-05-04 Tom Tromey <tom@tromey.com>
1835
1836 * configure: Rebuild.
1837 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
1838
449b1ac7
TT
18392018-05-04 Tom Tromey <tom@tromey.com>
1840
1841 * linux-record.c (record_linux_system_call) <case
1842 RECORD_SYS_RECVFROM>: Add "break".
1843
15c9ffd6
TT
18442018-05-04 Tom Tromey <tom@tromey.com>
1845
1846 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
1847 Add missing "break".
1848 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
1849 Add missing "break".
1850
e3829d13
TT
18512018-05-04 Tom Tromey <tom@tromey.com>
1852
1853 * rs6000-tdep.c (ppc_process_record_op4)
1854 (ppc_process_record_op63): Add fall-through comment.
1855
da0e1563
TT
18562018-05-04 Tom Tromey <tom@tromey.com>
1857
1858 * i386-tdep.c (i386_process_record): Add fall-through comment.
1859
0019cd49
TT
18602018-05-04 Tom Tromey <tom@tromey.com>
1861
1862 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
1863 comment.
1864
565e0eda
TT
18652018-05-04 Tom Tromey <tom@tromey.com>
1866
1867 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
1868 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
1869 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
1870 comment.
1871 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
1872 comment.
1873 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
1874 comment.
1875
621846f4
TT
18762018-05-04 Tom Tromey <tom@tromey.com>
1877
1878 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
1879
86a73007
TT
18802018-05-04 Tom Tromey <tom@tromey.com>
1881
1882 * s390-tdep.c (s390_process_record): Fix fall-through comments.
1883 * xcoffread.c (scan_xcoff_symtab): Move comment later.
1884 * symfile.c (section_is_mapped): Fix fall-through comment.
1885 * stabsread.c (define_symbol, read_member_functions): Fix
1886 fall-through comment.
1887 * s390-linux-tdep.c (s390_process_record): Fix fall-through
1888 comment.
1889 * remote.c (remote_wait_as): Fix fall-through comment.
1890 * p-exp.y (yylex): Fix fall-through comment.
1891 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
1892 comment.
1893 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
1894 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
1895 * jv-exp.y (yylex): Fix fall-through comment.
1896 * go-exp.y (lex_one_token): Fix fall-through comment.
1897 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
1898 fall-through comment.
1899 * f-exp.y (yylex): Fix fall-through comment.
1900 * dwarf2read.c (process_die): Fix fall-through comments.
1901 * dbxread.c (process_one_symbol): Fix fall-through comment.
1902 * d-exp.y (lex_one_token): Fix fall-through comment.
1903 * cp-name-parser.y (yylex): Fix fall-through comment.
1904 * coffread.c (coff_symtab_read): Fix fall-through comment.
1905 * c-exp.y (lex_one_token): Fix fall-through comment.
1906 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
1907 comment.
1908 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
1909 comment.
1910
56bcdbea
TT
19112018-05-04 Tom Tromey <tom@tromey.com>
1912
1913 PR python/22730:
1914 * NEWS: Mention gdb.execute change.
1915 * gdbcmd.h (execute_control_command): Don't declare.
1916 * python/python.c (execute_gdb_command): Use read_command_lines_1,
1917 execute_control_commands, execute_control_commands_to_string.
1918 * cli/cli-script.h (execute_control_commands)
1919 (execute_control_commands_to_string): Declare.
1920 (execute_control_command): Add from_tty parameter.
1921 * cli/cli-script.c (execute_control_commands)
1922 (execute_control_commands_to_string): New functions.
1923 (execute_user_command): Use execute_control_commands.
1924 (execute_control_command_1): Add "from_tty" parameter. Update.
1925 (execute_control_command): Likewise.
1926
a913fffb
TT
19272018-05-04 Tom Tromey <tom@tromey.com>
1928
1929 PR python/22731:
1930 * NEWS: Mention that breakpoint commands are writable.
1931 * python/py-breakpoint.c (bppy_set_commands): New function.
1932 (breakpoint_object_getset) <"commands">: Use it.
1933
60b3cef2
TT
19342018-05-04 Tom Tromey <tom@tromey.com>
1935
1936 * tracepoint.c (actions_command): Update.
1937 * mi/mi-cmd-break.c (mi_command_line_array)
1938 (mi_command_line_array_cnt, mi_command_line_array_ptr)
1939 (mi_read_next_line): Remove.
1940 (mi_cmd_break_commands): Update.
1941 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
1942 function_view.
1943 * cli/cli-script.c (get_command_line): Update.
1944 (process_next_line): Use function_view. Constify.
1945 (recurse_read_control_structure, read_command_lines)
1946 (read_command_lines_1): Change argument types to function_view.
1947 (do_define_command, document_command): Update.
1948 * breakpoint.h (check_tracepoint_command): Don't declare.
1949 * breakpoint.c (check_tracepoint_command): Remove.
1950 (commands_command_1, create_tracepoint_from_upload): Update.
1951
7a2c85f2
TT
19522018-05-04 Tom Tromey <tom@tromey.com>
1953
1954 PR gdb/11750:
1955 * cli/cli-script.h (enum command_control_type) <define_control>:
1956 New constant.
1957 * cli/cli-script.c (multi_line_command_p): Handle define_control.
1958 (build_command_line, execute_control_command_1)
1959 (process_next_line): Likewise.
1960 (do_define_command): New function, extracted from define_command.
1961 (define_command): Use it.
1962
295dc222
TT
19632018-05-04 Tom Tromey <tom@tromey.com>
1964
1965 * tracepoint.c (actions_command): Update.
1966 * cli/cli-script.h (read_command_lines): Update.
1967 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
1968 (MAX_TMPBUF): Remove define.
1969 (define_command): Use string_printf.
1970 (document_command): Likewise.
1971 * breakpoint.c (commands_command_1): Update.
1972
1263a9d5
TT
19732018-05-04 Tom Tromey <tom@tromey.com>
1974
1975 * top.c (execute_command): Update.
1976 * cli/cli-script.h (print_command_lines): Now varargs.
1977 * cli/cli-script.c (print_command_lines): Now varargs.
1978 (execute_control_command_1) <case while_control, case if_control>:
1979 Update.
1980
12973681
TT
19812018-05-04 Tom Tromey <tom@tromey.com>
1982
1983 * tracepoint.c (all_tracepoint_actions): Rename from
1984 all_tracepoint_actions_and_cleanup. Change return type.
1985 (actions_command, encode_actions_1, encode_actions)
1986 (trace_dump_actions, tdump_command): Update.
1987 * remote.c (remote_download_command_source): Update.
1988 * python/python.c (gdbpy_eval_from_control_command)
1989 (python_command, python_interactive_command): Update.
1990 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
1991 * guile/guile.c (guile_command)
1992 (gdbscm_eval_from_control_command, guile_command): Update.
1993 * compile/compile.c (compile_code_command)
1994 (compile_print_command, compile_to_object): Update.
1995 * cli/cli-script.h (struct command_lines_deleter): New.
1996 (counted_command_line): New typedef.
1997 (struct command_line): Add constructor, destructor.
1998 <body_list>: Remove.
1999 <body_list_0, body_list_1>: New members.
2000 (command_line_up): Remove typedef.
2001 (read_command_lines, read_command_lines_1, get_command_line):
2002 Update.
2003 (copy_command_lines): Don't declare.
2004 * cli/cli-script.c (build_command_line): Use "new".
2005 (get_command_line): Return counted_command_line.
2006 (print_command_lines, execute_user_command)
2007 (execute_control_command_1, while_command, if_command): Update.
2008 (realloc_body_list): Remove.
2009 (process_next_line, recurse_read_control_structure): Update.
2010 (read_command_lines, read_command_lines_1): Return counted_command_line.
2011 (free_command_lines): Use "delete".
2012 (copy_command_lines): Remove.
2013 (define_command, document_command, show_user_1): Update.
2014 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
2015 a counted_command_line.
2016 * breakpoint.h (counted_command_line): Remove typedef.
2017 (breakpoint_set_commands): Update.
2018 * breakpoint.c (check_no_tracepoint_commands)
2019 (validate_commands_for_breakpoint): Update.
2020 (breakpoint_set_commands): Change commands to be a
2021 counted_command_line.
2022 (commands_command_1, update_dprintf_command_list)
2023 (create_tracepoint_from_upload): Update.
2024
e2fc72e2
TT
20252018-05-04 Tom Tromey <tom@tromey.com>
2026
2027 * cli/cli-decode.h (cmd_list_element): New constructor.
2028 (~cmd_list_element): New destructor.
2029 (struct cmd_list_element): Add initializers.
2030 * cli/cli-decode.c (do_add_cmd): Use "new".
2031 (delete_cmd): Use "delete".
2032
a3b60e45
JK
20332018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2034 Pedro Alves <palves@redhat.com>
2035
2036 PR breakpoints/19806 and support for PR external/20207.
2037 * NEWS: Mention Aarch64 watchpoint improvements.
2038 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
2039 watchpoints and PR external/20207 watchpoints.
2040 * nat/aarch64-linux-hw-point.c
2041 (kernel_supports_any_contiguous_range): New.
2042 (aarch64_watchpoint_offset): New.
2043 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
2044 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
2045 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
2046 (aarch64_align_watchpoint): New parameters aligned_offset_p and
2047 next_addr_orig_p. Support PR external/20207 watchpoints.
2048 (aarch64_downgrade_regs): New.
2049 (aarch64_dr_state_insert_one_point): New parameters offset and
2050 addr_orig.
2051 (aarch64_dr_state_remove_one_point): Likewise.
2052 (aarch64_handle_breakpoint): Update caller.
2053 (aarch64_handle_aligned_watchpoint): Likewise.
2054 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
2055 aligned_offset.
2056 (aarch64_linux_set_debug_regs): Remove const from state. Call
2057 aarch64_downgrade_regs.
2058 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
2059 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
2060 (DR_CONTROL_MASK): ... this.
2061 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
2062 (unsigned int aarch64_watchpoint_offset): New prototype.
2063 (aarch64_linux_set_debug_regs): Remove const from state.
2064 * utils.c (align_up, align_down): Move to ...
2065 * common/common-utils.c (align_up, align_down): ... here.
2066 * utils.h (align_up, align_down): Move to ...
2067 * common/common-utils.h (align_up, align_down): ... here.
2068
05bc7456
JB
20692018-05-04 Joel Brobecker <brobecker@adacore.com>
2070
2071 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
2072 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
2073 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
2074 Re-implement to match the ABI as summarized in GCC's
2075 gcc/config/sparc/sparc.c. All callers updated.
2076 (sparc32_store_arguments): Remove assertion.
2077
2f433492
TT
20782018-05-04 Tom Tromey <tom@tromey.com>
2079
2080 * printcmd.c: Don't include tui.h.
2081 (decode_format): Use skip_spaces.
2082
9be2ae8f
TT
20832018-05-04 Tom Tromey <tom@tromey.com>
2084
2085 PR gdb/22619:
2086 * printcmd.c (last_count): New global.
2087 (x_command): Use saved count when repeating.
2088
f0b3976b
TT
20892018-05-04 Tom Tromey <tom@tromey.com>
2090
2091 * nto-procfs.c (do_closedir_cleanup): Remove.
2092 (procfs_pidlist): Use gdb_dir_up.
2093 * procfs.c (do_closedir_cleanup): Remove.
2094 (proc_update_threads): Use gdb_dir_up.
2095 * common/filestuff.h (struct gdb_dir_deleter): New.
2096 (gdb_dir_up): New typedef.
2097
862d101a
TT
20982018-05-04 Tom Tromey <tom@tromey.com>
2099
2100 * ada-lang.c (print_mention_exception): Use std::string.
2101
cb7de75e
TT
21022018-05-04 Tom Tromey <tom@tromey.com>
2103
2104 * ada-lang.c (create_excep_cond_exprs): Update.
2105 (ada_exception_catchpoint_cond_string): Use std::string.
2106
49d83361
TT
21072018-05-04 Tom Tromey <tom@tromey.com>
2108
2109 * ada-lang.c (xget_renaming_scope): Return std::string.
2110 (old_renaming_is_invisible): Update.
2111
ade72a34
TT
21122018-05-04 Tom Tromey <tom@tromey.com>
2113
2114 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
2115 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
2116
2be4d7f0
UW
21172018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2118
2119 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
2120
69b6ecb0
TT
21212018-05-04 Tom Tromey <tom@tromey.com>
2122
2123 * remote.c (remote_query_supported_append): Change type.
2124 (remote_check_symbols): Update.
2125
bf27f0e2
PP
21262018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
2127
2128 PR gdb/11420
2129 * configure.ac: Prepend libpython.
2130 * python/python-config.py: Likewise.
2131 * configure: Regenerate.
2132
4ea17de8
SM
21332018-05-03 Simon Marchi <simon.marchi@ericsson.com>
2134
2135 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
2136
bd732259
PA
21372018-05-03 Pedro Alves <palves@redhat.com>
2138
2139 * s390-linux-nat.c
2140 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
2141 override. Write 'true' instead of '1'.
2142 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
2143 declaration.
2144
d9f719f1
PA
21452018-05-02 Pedro Alves <palves@redhat.com>
2146
2147 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
2148 add_inf_child_target.
2149 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
2150 add_inf_child_target.
2151 * aix-thread.c (aix_thread_target_info): New.
2152 (aix_thread_target) <shortname, longname, doc>: Delete.
2153 <info>: New.
2154 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
2155 add_inf_child_target.
2156 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
2157 add_inf_child_target.
2158 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
2159 add_inf_child_target.
2160 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
2161 add_inf_child_target.
2162 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
2163 add_inf_child_target.
2164 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
2165 add_inf_child_target.
2166 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
2167 add_inf_child_target.
2168 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
2169 add_inf_child_target.
2170 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
2171 add_inf_child_target.
2172 * bfd-target.c (target_bfd_target_info): New.
2173 (target_bfd) <shortname, longname, doc>: Delete.
2174 <info>: New.
2175 * bsd-kvm.c (bsd_kvm_target_info): New.
2176 (bsd_kvm_target) <shortname, longname, doc>: Delete.
2177 <info>: New.
2178 (bsd_kvm_target::open): Rename to ...
2179 (bsd_kvm_target_open): ... this. Adjust.
2180 * bsd-uthread.c (bsd_uthread_target_info): New.
2181 (bsd_uthread_target) <shortname, longname, doc>: Delete.
2182 <info>: New.
2183 * corefile.c (core_file_command): Adjust.
2184 * corelow.c (core_target_info): New.
2185 (core_target) <shortname, longname, doc>: Delete.
2186 <info>: New.
2187 (core_target::open): Rename to ...
2188 (core_target_open): ... this. Adjust.
2189 * ctf.c (ctf_target_info): New.
2190 (ctf_target) <shortname, longname, doc>: Delete.
2191 <info>: New.
2192 (ctf_target::open): Rename to ...
2193 (ctf_target_open): ... this.
2194 (_initialize_ctf): Adjust.
2195 * exec.c (exec_target_info): New.
2196 (exec_target) <shortname, longname, doc>: Delete.
2197 <info>: New.
2198 (exec_target::open): Rename to ...
2199 (exec_target_open): ... this.
2200 * gdbcore.h (core_target_open): Declare.
2201 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
2202 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
2203 add_inf_child_target.
2204 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
2205 add_inf_child_target.
2206 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
2207 add_inf_child_target.
2208 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
2209 add_inf_child_target.
2210 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
2211 add_inf_child_target.
2212 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
2213 add_inf_child_target.
2214 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
2215 add_inf_child_target.
2216 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
2217 add_inf_child_target.
2218 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
2219 add_inf_child_target.
2220 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
2221 add_inf_child_target.
2222 * inf-child.c (inf_child_target_info): New.
2223 (inf_child_target::info): New.
2224 (inf_child_open_target): Remove 'target' parameter. Use
2225 get_native_target instead.
2226 (inf_child_target::open): Delete.
2227 (add_inf_child_target): New.
2228 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
2229 Delete.
2230 <info>: New.
2231 (add_inf_child_target): Declare.
2232 (inf_child_open_target): Declare.
2233 * linux-thread-db.c (thread_db_target_info): New.
2234 (thread_db_target) <shortname, longname, doc>: Delete.
2235 <info>: New.
2236 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
2237 add_inf_child_target.
2238 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
2239 add_inf_child_target.
2240 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
2241 add_inf_child_target.
2242 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
2243 add_inf_child_target.
2244 * make-target-delegates (print_class): Adjust.
2245 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
2246 add_inf_child_target.
2247 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
2248 add_inf_child_target.
2249 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
2250 add_inf_child_target.
2251 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
2252 add_inf_child_target.
2253 * nto-procfs.c (nto_native_target_info): New.
2254 (nto_procfs_target_native) <shortname, longname, doc>:
2255 Delete.
2256 <info>: New.
2257 (nto_procfs_target_info): New.
2258 (nto_procfs_target_procfs) <shortname, longname, doc>:
2259 Delete.
2260 <info>: New.
2261 (init_procfs_targets): Adjust.
2262 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
2263 add_inf_child_target.
2264 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
2265 add_inf_child_target.
2266 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
2267 add_inf_child_target.
2268 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
2269 add_inf_child_target.
2270 * ravenscar-thread.c (ravenscar_target_info): New.
2271 (ravenscar_thread_target) <shortname, longname, doc>:
2272 Delete.
2273 <info>: New.
2274 * record-btrace.c (record_btrace_target_info):
2275 (record_btrace_target) <shortname, longname, doc>: Delete.
2276 <info>: New.
2277 (record_btrace_target::open): Rename to ...
2278 (record_btrace_target_open): ... this. Adjust.
2279 * record-full.c (record_longname, record_doc): New.
2280 (record_full_base_target) <shortname, longname, doc>: Delete.
2281 <info>: New.
2282 (record_full_target_info): New.
2283 (record_full_target): <shortname>: Delete.
2284 <info>: New.
2285 (record_full_core_open_1, record_full_open_1): Update comments.
2286 (record_full_base_target::open): Rename to ...
2287 (record_full_open): ... this.
2288 (cmd_record_full_restore): Update.
2289 (_initialize_record_full): Update.
2290 * remote-sim.c (remote_sim_target_info): New.
2291 (gdbsim_target) <shortname, longname, doc>: Delete.
2292 <info>: New.
2293 (gdbsim_target::open): Rename to ...
2294 (gdbsim_target_open): ... this.
2295 (_initialize_remote_sim): Adjust.
2296 * remote.c (remote_doc): New.
2297 (remote_target_info): New.
2298 (remote_target) <shortname, longname, doc>: Delete.
2299 <info>: New.
2300 (extended_remote_target_info): New.
2301 (extended_remote_target) <shortname, longname, doc>: Delete.
2302 <info>: New.
2303 (remote_target::open_1): Make static. Adjust.
2304 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
2305 * s390-linux-nat.c (_initialize_s390_nat): Use
2306 add_inf_child_target.
2307 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
2308 add_inf_child_target.
2309 * sol-thread.c (thread_db_target_info): New.
2310 (sol_thread_target) <shortname, longname, doc>: Delete.
2311 <info>: New.
2312 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
2313 add_inf_child_target.
2314 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
2315 add_inf_child_target.
2316 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
2317 add_inf_child_target.
2318 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
2319 add_inf_child_target.
2320 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
2321 add_inf_child_target.
2322 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
2323 add_inf_child_target.
2324 * spu-linux-nat.c (_initialize_spu_nat): Use
2325 add_inf_child_target.
2326 * spu-multiarch.c (spu_multiarch_target_info): New.
2327 (spu_multiarch_target) <shortname, longname, doc>: Delete.
2328 <info>: New.
2329 * target-delegates.c: Regenerate.
2330 * target.c: Include <unordered_map>.
2331 (target_ops_p): Delete.
2332 (DEF_VEC_P(target_ops_p)): Delete.
2333 (target_factories): New.
2334 (test_target_info): New.
2335 (test_target_ops::info): New.
2336 (open_target): Adjust to use target_factories.
2337 (add_target_with_completer): Rename to ...
2338 (add_target): ... this. Change prototype. Register target_info
2339 and open callback in target_factories. Register target_info in
2340 command context instead of target_ops.
2341 (add_target): Delete old implementation.
2342 (add_deprecated_target_alias): Change prototype. Adjust.
2343 (the_native_target): New.
2344 (set_native_target, get_native_target): New.
2345 (find_default_run_target): Use the_native_target.
2346 (find_attach_target, find_run_target): Simplify.
2347 (target_ops::open): Delete.
2348 (dummy_target_info): New.
2349 (dummy_target::shortname, dummy_target::longname)
2350 (dummy_target::doc): Delete.
2351 (dummy_target::info): New.
2352 (debug_target::shortname, debug_target::longname)
2353 (debug_target::doc): Delete.
2354 (debug_target::info): New.
2355 * target.h (struct target_info): New.
2356 (target_ops::~target_ops): Add comment.
2357 (target_ops::info): New.
2358 (target_ops::shortname, target_ops::longname, target_ops::doc): No
2359 longer virtual. Implement in terms of target_info.
2360 (set_native_target, get_native_target): Declare.
2361 (target_open_ftype): New.
2362 (add_target, add_target_with_completer)
2363 (add_deprecated_target_alias): Change prototype.
2364 (test_target) <shortname, longname, doc>: Delete.
2365 <info>: New.
2366 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
2367 add_inf_child_target.
2368 * tracefile-tfile.c (tfile_target_info): New.
2369 (tfile_target) <shortname, longname, doc>: Delete.
2370 <info>: New.
2371 (tfile_target::open): Rename to ...
2372 (tfile_target_open): ... this.
2373 (_initialize_tracefile_tfile): Adjust.
2374 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
2375 add_inf_child_target.
2376 * windows-nat.c (_initialize_windows_nat): Use
2377 add_inf_child_target.
2378 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
2379 add_inf_child_target.
2380
135340af
PA
23812018-05-02 Pedro Alves <palves@redhat.com>
2382
2383 * linux-nat.h (linux_nat_target) <low_new_thread,
2384 low_delete_thread, low_new_fork, low_forget_process,
2385 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
2386 New virtual methods.
2387 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
2388 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
2389 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
2390 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
2391 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
2392 Delete.
2393 * linux-fork.c (delete_fork): Adjust to call low method.
2394 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
2395 (linux_nat_new_fork, linux_nat_forget_process_hook)
2396 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
2397 (linux_nat_status_is_event):
2398 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
2399 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
2400 to call low method.
2401 (sigtrap_is_event): Rename to ...
2402 (linux_nat_target::low_status_is_event): ... this.
2403 (linux_nat_set_status_is_event): Delete.
2404 (save_stop_reason, linux_nat_wait_1)
2405 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
2406 low methods.
2407 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
2408 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2409 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
2410 (linux_nat_set_prepare_to_resume): Delete.
2411 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
2412 low virtual methods.
2413 * amd64-linux-nat.c: Likewise.
2414 * arm-linux-nat.c: Likewise.
2415 * i386-linux-nat.c: Likewise.
2416 * ia64-linux-nat.c: Likewise.
2417 * mips-linux-nat.c: Likewise.
2418 * ppc-linux-nat.c: Likewise.
2419 * s390-linux-nat.c: Likewise.
2420 * sparc64-linux-nat.c: Likewise.
2421 * x86-linux-nat.c: Likewise.
2422 * x86-linux-nat.h: Include "nat/x86-linux.h".
2423 (x86_linux_nat_target) <low_new_fork, low_forget_process,
2424 low_prepare_to_resume, low_new_thread, low_delete_thread>:
2425 Override methods.
2426
57810aa7
PA
24272018-05-02 Pedro Alves <palves@redhat.com>
2428
2429 * target.h (target_ops)
2430 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
2431 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
2432 stopped_by_watchpoint, have_continuable_watchpoint,
2433 stopped_data_address, watchpoint_addr_within_range,
2434 can_accel_watchpoint_condition, can_run, thread_alive,
2435 has_all_memory, has_memory, has_stack, has_registers,
2436 has_execution, can_async_p, is_async_p, supports_non_stop,
2437 always_non_stop_p, can_execute_reverse, supports_multi_process,
2438 supports_enable_disable_tracepoint,
2439 supports_disable_randomization, supports_string_tracing,
2440 supports_evaluation_of_breakpoint_conditions,
2441 can_run_breakpoint_commands, filesystem_is_local,
2442 can_download_tracepoint, get_trace_state_variable_value,
2443 set_trace_notes, get_tib_address, use_agent, can_use_agent,
2444 record_is_replaying, record_will_replay,
2445 augmented_libraries_svr4_read>: Adjust to return bool.
2446 * aarch64-linux-nat.c: All implementations adjusted.
2447 * aix-thread.c: All implementations adjusted.
2448 * arm-linux-nat.c: All implementations adjusted.
2449 * breakpoint.c: All implementations adjusted.
2450 * bsd-kvm.c: All implementations adjusted.
2451 * bsd-uthread.c: All implementations adjusted.
2452 * corelow.c: All implementations adjusted.
2453 * ctf.c: All implementations adjusted.
2454 * darwin-nat.c: All implementations adjusted.
2455 * darwin-nat.h: All implementations adjusted.
2456 * exec.c: All implementations adjusted.
2457 * fbsd-nat.c: All implementations adjusted.
2458 * fbsd-nat.h: All implementations adjusted.
2459 * gnu-nat.c: All implementations adjusted.
2460 * gnu-nat.h: All implementations adjusted.
2461 * go32-nat.c: All implementations adjusted.
2462 * ia64-linux-nat.c: All implementations adjusted.
2463 * inf-child.c: All implementations adjusted.
2464 * inf-child.h: All implementations adjusted.
2465 * inf-ptrace.c: All implementations adjusted.
2466 * inf-ptrace.h: All implementations adjusted.
2467 * linux-nat.c: All implementations adjusted.
2468 * linux-nat.h: All implementations adjusted.
2469 * mips-linux-nat.c: All implementations adjusted.
2470 * nto-procfs.c: All implementations adjusted.
2471 * ppc-linux-nat.c: All implementations adjusted.
2472 * procfs.c: All implementations adjusted.
2473 * ravenscar-thread.c: All implementations adjusted.
2474 * record-btrace.c: All implementations adjusted.
2475 * record-full.c: All implementations adjusted.
2476 * remote-sim.c: All implementations adjusted.
2477 * remote.c: All implementations adjusted.
2478 * s390-linux-nat.c: All implementations adjusted.
2479 * sol-thread.c: All implementations adjusted.
2480 * spu-multiarch.c: All implementations adjusted.
2481 * target-delegates.c: All implementations adjusted.
2482 * target.c: All implementations adjusted.
2483 * target.h: All implementations adjusted.
2484 * tracefile-tfile.c: All implementations adjusted.
2485 * tracefile.c: All implementations adjusted.
2486 * tracefile.h: All implementations adjusted.
2487 * windows-nat.c: All implementations adjusted.
2488 * x86-linux-nat.h: All implementations adjusted.
2489 * x86-nat.h: All implementations adjusted.
2490
ad6a4e2d
PA
24912018-05-02 Pedro Alves <palves@redhat.com>
2492
2493 * make-target-delegates (scan_target_h): Don't trim lines here.
2494 Replace sequences of tabs and/or whitespace with a single
2495 whitespace.
2496 (top level, parsing methods): Trim each line before processing it
2497 here.
2498
f6ac5f3d
PA
24992018-05-02 Pedro Alves <palves@redhat.com>
2500 John Baldwin <jhb@freebsd.org>
2501
2502 * target.h (enum strata) <debug_stratum>: New.
2503 (struct target_ops) <all delegation methods>: Replace by C++
2504 virtual methods, and drop "to_" prefix. All references updated
2505 throughout.
2506 <to_shortname, to_longname, to_doc, to_data,
2507 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
2508 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
2509 virtual methods. All references updated throughout.
2510 <can_attach, supports_terminal_ours, can_create_inferior,
2511 get_thread_control_capabilities, attach_no_wait>: New
2512 virtual methods.
2513 <insert_breakpoint, remove_breakpoint>: Now
2514 TARGET_DEFAULT_NORETURN methods.
2515 <info_proc>: Now returns bool.
2516 <to_magic>: Delete.
2517 (OPS_MAGIC): Delete.
2518 (current_target): Delete. All references replaced by references
2519 to ...
2520 (target_stack): ... this. New.
2521 (target_shortname, target_longname): Adjust.
2522 (target_can_run): Now a function declaration.
2523 (default_child_has_all_memory, default_child_has_memory)
2524 (default_child_has_stack, default_child_has_registers)
2525 (default_child_has_execution): Remove target_ops parameter.
2526 (complete_target_initialization): Delete.
2527 (memory_breakpoint_target): New template class.
2528 (test_target_ops): Refactor as a C++ class with virtual methods.
2529 * make-target-delegates (NAME_PART): Tighten.
2530 (POINTER_PART, CP_SYMBOL): New.
2531 (SIMPLE_RETURN_PART): Reimplement.
2532 (VEC_RETURN_PART): Expect less.
2533 (RETURN_PART, VIRTUAL_PART): New.
2534 (METHOD): Adjust to C++ virtual methods.
2535 (scan_target_h): Remove reference to C99.
2536 (dname): Output "target_ops::" prefix.
2537 (write_function_header): Adjust to output a C++ class method.
2538 (write_declaration): New.
2539 (write_delegator): Adjust to output a C++ class method.
2540 (tdname): Output "dummy_target::" prefix.
2541 (write_tdefault, write_debugmethod): Adjust to output a C++ class
2542 method.
2543 (tdefault_names, debug_names): Delete.
2544 (return_types, tdefaults, styles, argtypes_array): New.
2545 (top level): All methods are delegators.
2546 (print_class): New.
2547 (top level): Print dummy_target and debug_target classes.
2548 * target-delegates.c: Regenerate.
2549 * target-debug.h (target_debug_print_enum_info_proc_what)
2550 (target_debug_print_thread_control_capabilities)
2551 (target_debug_print_thread_info_p): New.
2552 * target.c (dummy_target): Delete.
2553 (the_dummy_target, the_debug_target): New.
2554 (target_stack): Now extern.
2555 (set_targetdebug): Push/unpush debug target.
2556 (default_child_has_all_memory, default_child_has_memory)
2557 (default_child_has_stack, default_child_has_registers)
2558 (default_child_has_execution): Remove target_ops parameter.
2559 (complete_target_initialization): Delete.
2560 (add_target_with_completer): No longer call
2561 complete_target_initialization.
2562 (target_supports_terminal_ours): Use regular delegation.
2563 (update_current_target): Delete.
2564 (push_target): No longer check magic number. Don't call
2565 update_current_target.
2566 (unpush_target): Don't call update_current_target.
2567 (target_is_pushed): No longer check magic number.
2568 (target_require_runnable): Skip for all stratums over
2569 process_stratum.
2570 (target_ops::info_proc): New.
2571 (target_info_proc): Use find_target_at and
2572 find_default_run_target.
2573 (target_supports_disable_randomization): Use regular delegation.
2574 (target_get_osdata): Use find_target_at.
2575 (target_ops::open, target_ops::close, target_ops::can_attach)
2576 (target_ops::attach, target_ops::can_create_inferior)
2577 (target_ops::create_inferior, target_ops::can_run)
2578 (target_can_run): New.
2579 (default_fileio_target): Use regular delegation.
2580 (target_ops::fileio_open, target_ops::fileio_pwrite)
2581 (target_ops::fileio_pread, target_ops::fileio_fstat)
2582 (target_ops::fileio_close, target_ops::fileio_unlink)
2583 (target_ops::fileio_readlink): New.
2584 (target_fileio_open_1, target_fileio_unlink)
2585 (target_fileio_readlink): Always call the target method. Handle
2586 FILEIO_ENOSYS.
2587 (return_zero, return_zero_has_execution): Delete.
2588 (init_dummy_target): Delete.
2589 (dummy_target::dummy_target, dummy_target::shortname)
2590 (dummy_target::longname, dummy_target::doc)
2591 (debug_target::debug_target, debug_target::shortname)
2592 (debug_target::longname, debug_target::doc): New.
2593 (target_supports_delete_record): Use regular delegation.
2594 (setup_target_debug): Delete.
2595 (maintenance_print_target_stack): Skip debug_stratum.
2596 (initialize_targets): Instantiate the_dummy_target and
2597 the_debug_target.
2598 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
2599 use target_stack.
2600 (target_auxv_search, fprint_target_auxv): Adjust.
2601 (info_auxv_command): Adjust to use target_stack.
2602 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
2603 * exceptions.c (print_flush): Handle a NULL target_stack.
2604 * regcache.c (target_ops_no_register): Refactor as class with
2605 virtual methods.
2606
2607 * exec.c (exec_target): New class.
2608 (exec_ops): Now an exec_target.
2609 (exec_open, exec_close_1, exec_get_section_table)
2610 (exec_xfer_partial, exec_files_info, exec_has_memory)
2611 (exec_make_note_section): Refactor as exec_target methods.
2612 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
2613 Delete.
2614 (exec_target::find_memory_regions): New.
2615 (_initialize_exec): Don't call init_exec_ops.
2616 * gdbcore.h (exec_file_clear): Delete.
2617
2618 * corefile.c (core_target): Delete.
2619 (core_file_command): Adjust.
2620 * corelow.c (core_target): New class.
2621 (the_core_target): New.
2622 (core_close): Remove target_ops parameter.
2623 (core_close_cleanup): Adjust.
2624 (core_target::close): New.
2625 (core_open, core_detach, get_core_registers, core_files_info)
2626 (core_xfer_partial, core_thread_alive, core_read_description)
2627 (core_pid_to_str, core_thread_name, core_has_memory)
2628 (core_has_stack, core_has_registers, core_info_proc): Rework as
2629 core_target methods.
2630 (ignore, core_remove_breakpoint, init_core_ops): Delete.
2631 (_initialize_corelow): Initialize the_core_target.
2632 * gdbcore.h (core_target): Delete.
2633 (the_core_target): New.
2634
2635 * ctf.c: (ctf_target): New class.
2636 (ctf_ops): Now a ctf_target.
2637 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
2638 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
2639 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
2640 methods.
2641 (init_ctf_ops): Delete.
2642 (_initialize_ctf): Don't call it.
2643 * tracefile-tfile.c (tfile_target): New class.
2644 (tfile_ops): Now a tfile_target.
2645 (tfile_open, tfile_close, tfile_files_info)
2646 (tfile_get_tracepoint_status, tfile_trace_find)
2647 (tfile_fetch_registers, tfile_xfer_partial)
2648 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
2649 Refactor as tfile_target methods.
2650 (tfile_xfer_partial_features): Remove target_ops parameter.
2651 (init_tfile_ops): Delete.
2652 (_initialize_tracefile_tfile): Don't call it.
2653 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
2654 (tracefile_has_stack, tracefile_has_registers)
2655 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
2656 tracefile_target methods.
2657 (init_tracefile_ops): Delete.
2658 (tracefile_target::tracefile_target): New.
2659 * tracefile.h: Include "target.h".
2660 (tracefile_target): New class.
2661 (init_tracefile_ops): Delete.
2662
2663 * spu-multiarch.c (spu_multiarch_target): New class.
2664 (spu_ops): Now a spu_multiarch_target.
2665 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
2666 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2667 (spu_search_memory, spu_mourn_inferior): Refactor as
2668 spu_multiarch_target methods.
2669 (init_spu_ops): Delete.
2670 (_initialize_spu_multiarch): Remove references to init_spu_ops,
2671 complete_target_initialization.
2672
2673 * ravenscar-thread.c (ravenscar_thread_target): New class.
2674 (ravenscar_ops): Now a ravenscar_thread_target.
2675 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
2676 (ravenscar_thread_alive, ravenscar_pid_to_str)
2677 (ravenscar_fetch_registers, ravenscar_store_registers)
2678 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
2679 (ravenscar_stopped_by_hw_breakpoint)
2680 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
2681 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
2682 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
2683 methods.
2684 (init_ravenscar_thread_ops): Delete.
2685 (_initialize_ravenscar): Remove references to
2686 init_ravenscar_thread_ops and complete_target_initialization.
2687
2688 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
2689 (bsd_uthread_target): New class.
2690 (bsd_uthread_ops): Now a bsd_uthread_target.
2691 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
2692 (bsd_uthread_close, bsd_uthread_mourn_inferior)
2693 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
2694 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
2695 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
2696 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
2697 (bsd_uthread_target): Delete function.
2698 (_initialize_bsd_uthread): Remove reference to
2699 complete_target_initialization.
2700
2701 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
2702 (target_bfd): ... this new class.
2703 (target_bfd_xfer_partial, target_bfd_get_section_table)
2704 (target_bfd_close): Refactor as target_bfd methods.
2705 (target_bfd::~target_bfd): New.
2706 (target_bfd_reopen): Adjust.
2707 (target_bfd::close): New.
2708
2709 * record-btrace.c (record_btrace_target): New class.
2710 (record_btrace_ops): Now a record_btrace_target.
2711 (record_btrace_open, record_btrace_stop_recording)
2712 (record_btrace_disconnect, record_btrace_close)
2713 (record_btrace_async, record_btrace_info)
2714 (record_btrace_insn_history, record_btrace_insn_history_range)
2715 (record_btrace_insn_history_from, record_btrace_call_history)
2716 (record_btrace_call_history_range)
2717 (record_btrace_call_history_from, record_btrace_record_method)
2718 (record_btrace_is_replaying, record_btrace_will_replay)
2719 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2720 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
2721 (record_btrace_store_registers, record_btrace_prepare_to_store)
2722 (record_btrace_to_get_unwinder)
2723 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
2724 (record_btrace_commit_resume, record_btrace_wait)
2725 (record_btrace_stop, record_btrace_can_execute_reverse)
2726 (record_btrace_stopped_by_sw_breakpoint)
2727 (record_btrace_supports_stopped_by_sw_breakpoint)
2728 (record_btrace_stopped_by_hw_breakpoint)
2729 (record_btrace_supports_stopped_by_hw_breakpoint)
2730 (record_btrace_update_thread_list, record_btrace_thread_alive)
2731 (record_btrace_goto_begin, record_btrace_goto_end)
2732 (record_btrace_goto, record_btrace_stop_replaying_all)
2733 (record_btrace_execution_direction)
2734 (record_btrace_prepare_to_generate_core)
2735 (record_btrace_done_generating_core): Refactor as
2736 record_btrace_target methods.
2737 (init_record_btrace_ops): Delete.
2738 (_initialize_record_btrace): Remove reference to
2739 init_record_btrace_ops.
2740 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
2741 the execution_direction global.
2742 (record_full_base_target, record_full_target)
2743 (record_full_core_target): New classes.
2744 (record_full_ops): Now a record_full_target.
2745 (record_full_core_ops): Now a record_full_core_target.
2746 (record_full_target::detach, record_full_target::disconnect)
2747 (record_full_core_target::disconnect)
2748 (record_full_target::mourn_inferior, record_full_target::kill):
2749 New.
2750 (record_full_open, record_full_close, record_full_async): Refactor
2751 as methods of the record_full_base_target class.
2752 (record_full_resume, record_full_commit_resume): Refactor
2753 as methods of the record_full_target class.
2754 (record_full_wait, record_full_stopped_by_watchpoint)
2755 (record_full_stopped_data_address)
2756 (record_full_stopped_by_sw_breakpoint)
2757 (record_full_supports_stopped_by_sw_breakpoint)
2758 (record_full_stopped_by_hw_breakpoint)
2759 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
2760 methods of the record_full_base_target class.
2761 (record_full_store_registers, record_full_xfer_partial)
2762 (record_full_insert_breakpoint, record_full_remove_breakpoint):
2763 Refactor as methods of the record_full_target class.
2764 (record_full_can_execute_reverse, record_full_get_bookmark)
2765 (record_full_goto_bookmark, record_full_execution_direction)
2766 (record_full_record_method, record_full_info, record_full_delete)
2767 (record_full_is_replaying, record_full_will_replay)
2768 (record_full_goto_begin, record_full_goto_end, record_full_goto)
2769 (record_full_stop_replaying): Refactor as methods of the
2770 record_full_base_target class.
2771 (record_full_core_resume, record_full_core_kill)
2772 (record_full_core_fetch_registers)
2773 (record_full_core_prepare_to_store)
2774 (record_full_core_store_registers, record_full_core_xfer_partial)
2775 (record_full_core_insert_breakpoint)
2776 (record_full_core_remove_breakpoint)
2777 (record_full_core_has_execution): Refactor
2778 as methods of the record_full_core_target class.
2779 (record_full_base_target::supports_delete_record): New.
2780 (init_record_full_ops): Delete.
2781 (init_record_full_core_ops): Delete.
2782 (record_full_save): Refactor as method of the
2783 record_full_base_target class.
2784 (_initialize_record_full): Remove references to
2785 init_record_full_ops and init_record_full_core_ops.
2786
2787 * remote.c (remote_target, extended_remote_target): New classes.
2788 (remote_ops): Now a remote_target.
2789 (extended_remote_ops): Now an extended_remote_target.
2790 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
2791 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
2792 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
2793 (remote_pass_signals, remote_set_syscall_catchpoint)
2794 (remote_program_signals, )
2795 (remote_thread_always_alive): Remove target_ops parameter.
2796 (remote_thread_alive, remote_thread_name)
2797 (remote_update_thread_list, remote_threads_extra_info)
2798 (remote_static_tracepoint_marker_at)
2799 (remote_static_tracepoint_markers_by_strid)
2800 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
2801 (remote_open): Refactor as methods of remote_target.
2802 (extended_remote_open, extended_remote_detach)
2803 (extended_remote_attach, extended_remote_post_attach):
2804 (extended_remote_supports_disable_randomization)
2805 (extended_remote_create_inferior): : Refactor as method of
2806 extended_remote_target.
2807 (remote_set_permissions, remote_open_1, remote_detach)
2808 (remote_follow_fork, remote_follow_exec, remote_disconnect)
2809 (remote_resume, remote_commit_resume, remote_stop)
2810 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
2811 (remote_terminal_ours, remote_wait, remote_fetch_registers)
2812 (remote_prepare_to_store, remote_store_registers)
2813 (remote_flash_erase, remote_flash_done, remote_files_info)
2814 (remote_kill, remote_mourn, remote_insert_breakpoint)
2815 (remote_remove_breakpoint, remote_insert_watchpoint)
2816 (remote_watchpoint_addr_within_range)
2817 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
2818 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
2819 (remote_supports_stopped_by_sw_breakpoint)
2820 (remote_stopped_by_hw_breakpoint)
2821 (remote_supports_stopped_by_hw_breakpoint)
2822 (remote_stopped_by_watchpoint, remote_stopped_data_address)
2823 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
2824 (remote_verify_memory): Refactor as methods of remote_target.
2825 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
2826 parameter.
2827 (remote_xfer_partial, remote_get_memory_xfer_limit)
2828 (remote_search_memory, remote_rcmd, remote_memory_map)
2829 (remote_pid_to_str, remote_get_thread_local_address)
2830 (remote_get_tib_address, remote_read_description): Refactor as
2831 methods of remote_target.
2832 (remote_target::fileio_open, remote_target::fileio_pwrite)
2833 (remote_target::fileio_pread, remote_target::fileio_close): New.
2834 (remote_hostio_readlink, remote_hostio_fstat)
2835 (remote_filesystem_is_local, remote_can_execute_reverse)
2836 (remote_supports_non_stop, remote_supports_disable_randomization)
2837 (remote_supports_multi_process, remote_supports_cond_breakpoints)
2838 (remote_supports_enable_disable_tracepoint)
2839 (remote_supports_string_tracing)
2840 (remote_can_run_breakpoint_commands, remote_trace_init)
2841 (remote_download_tracepoint, remote_can_download_tracepoint)
2842 (remote_download_trace_state_variable, remote_enable_tracepoint)
2843 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
2844 (remote_trace_start, remote_get_trace_status)
2845 (remote_get_tracepoint_status, remote_trace_stop)
2846 (remote_trace_find, remote_get_trace_state_variable_value)
2847 (remote_save_trace_data, remote_get_raw_trace_data)
2848 (remote_set_disconnected_tracing, remote_core_of_thread)
2849 (remote_set_circular_trace_buffer, remote_traceframe_info)
2850 (remote_get_min_fast_tracepoint_insn_len)
2851 (remote_set_trace_buffer_size, remote_set_trace_notes)
2852 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
2853 (remote_disable_btrace, remote_teardown_btrace)
2854 (remote_read_btrace, remote_btrace_conf)
2855 (remote_augmented_libraries_svr4_read, remote_load)
2856 (remote_pid_to_exec_file, remote_can_do_single_step)
2857 (remote_execution_direction, remote_thread_handle_to_thread_info):
2858 Refactor as methods of remote_target.
2859 (init_remote_ops, init_extended_remote_ops): Delete.
2860 (remote_can_async_p, remote_is_async_p, remote_async)
2861 (remote_thread_events, remote_upload_tracepoints)
2862 (remote_upload_trace_state_variables): Refactor as methods of
2863 remote_target.
2864 (_initialize_remote): Remove references to init_remote_ops and
2865 init_extended_remote_ops.
2866
2867 * remote-sim.c (gdbsim_target): New class.
2868 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
2869 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2870 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
2871 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
2872 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
2873 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
2874 Refactor as methods of gdbsim_target.
2875 (gdbsim_ops): Now a gdbsim_target.
2876 (init_gdbsim_ops): Delete.
2877 (gdbsim_cntrl_c): Adjust.
2878 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
2879
2880 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
2881 (the_amd64_linux_nat_target): New.
2882 (amd64_linux_fetch_inferior_registers)
2883 (amd64_linux_store_inferior_registers): Refactor as methods of
2884 amd64_linux_nat_target.
2885 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
2886 * i386-linux-nat.c: Don't include "linux-nat.h".
2887 (i386_linux_nat_target): New class.
2888 (the_i386_linux_nat_target): New.
2889 (i386_linux_fetch_inferior_registers)
2890 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
2891 as methods of i386_linux_nat_target.
2892 (_initialize_i386_linux_nat): Adjust. Set linux_target.
2893 * inf-child.c (inf_child_ops): Delete.
2894 (inf_child_fetch_inferior_registers)
2895 (inf_child_store_inferior_registers): Delete.
2896 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
2897 methods of inf_child_target.
2898 (inf_child_target::supports_terminal_ours)
2899 (inf_child_target::terminal_init)
2900 (inf_child_target::terminal_inferior)
2901 (inf_child_target::terminal_ours_for_output)
2902 (inf_child_target::terminal_ours, inf_child_target::interrupt)
2903 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
2904 New.
2905 (inf_child_open, inf_child_disconnect, inf_child_close)
2906 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
2907 (inf_child_post_startup_inferior, inf_child_can_run)
2908 (inf_child_pid_to_exec_file): Refactor as methods of
2909 inf_child_target.
2910 (inf_child_follow_fork): Delete.
2911 (inf_child_target::can_create_inferior)
2912 (inf_child_target::can_attach): New.
2913 (inf_child_target::has_all_memory, inf_child_target::has_memory)
2914 (inf_child_target::has_stack, inf_child_target::has_registers)
2915 (inf_child_target::has_execution): New.
2916 (inf_child_fileio_open, inf_child_fileio_pwrite)
2917 (inf_child_fileio_pread, inf_child_fileio_fstat)
2918 (inf_child_fileio_close, inf_child_fileio_unlink)
2919 (inf_child_fileio_readlink, inf_child_use_agent)
2920 (inf_child_can_use_agent): Refactor as methods of
2921 inf_child_target.
2922 (return_zero, inf_child_target): Delete.
2923 (inf_child_target::inf_child_target): New.
2924 * inf-child.h: Include "target.h".
2925 (inf_child_target): Delete function prototype.
2926 (inf_child_target): New class.
2927 (inf_child_open_target, inf_child_mourn_inferior)
2928 (inf_child_maybe_unpush_target): Delete.
2929 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
2930 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
2931 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
2932 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
2933 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
2934 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
2935 (inf_ptrace_wait, inf_ptrace_xfer_partial)
2936 (inf_ptrace_thread_alive, inf_ptrace_files_info)
2937 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
2938 methods of inf_ptrace_target.
2939 (inf_ptrace_target): Delete function.
2940 * inf-ptrace.h: Include "inf-child.h".
2941 (inf_ptrace_target): Delete function declaration.
2942 (inf_ptrace_target): New class.
2943 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
2944 * linux-nat.c (linux_target): New.
2945 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
2946 (linux_nat_target::~linux_nat_target): New.
2947 (linux_child_post_attach, linux_child_post_startup_inferior)
2948 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
2949 (linux_child_remove_fork_catchpoint)
2950 (linux_child_insert_vfork_catchpoint)
2951 (linux_child_remove_vfork_catchpoint)
2952 (linux_child_insert_exec_catchpoint)
2953 (linux_child_remove_exec_catchpoint)
2954 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
2955 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
2956 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
2957 (linux_nat_stopped_data_address)
2958 (linux_nat_stopped_by_sw_breakpoint)
2959 (linux_nat_supports_stopped_by_sw_breakpoint)
2960 (linux_nat_stopped_by_hw_breakpoint)
2961 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
2962 (linux_nat_kill, linux_nat_mourn_inferior)
2963 (linux_nat_xfer_partial, linux_nat_thread_alive)
2964 (linux_nat_update_thread_list, linux_nat_pid_to_str)
2965 (linux_nat_thread_name, linux_child_pid_to_exec_file)
2966 (linux_child_static_tracepoint_markers_by_strid)
2967 (linux_nat_is_async_p, linux_nat_can_async_p)
2968 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
2969 (linux_nat_supports_multi_process)
2970 (linux_nat_supports_disable_randomization, linux_nat_async)
2971 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
2972 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
2973 (linux_nat_fileio_open, linux_nat_fileio_readlink)
2974 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
2975 methods of linux_nat_target.
2976 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
2977 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
2978 parameter.
2979 (check_stopped_by_watchpoint): Adjust.
2980 (linux_xfer_partial): Delete.
2981 (linux_target_install_ops, linux_target, linux_nat_add_target):
2982 Delete.
2983 (linux_nat_target::linux_nat_target): New.
2984 * linux-nat.h: Include "inf-ptrace.h".
2985 (linux_nat_target): New.
2986 (linux_target, linux_target_install_ops, linux_nat_add_target):
2987 Delete function declarations.
2988 (linux_target): Declare global.
2989 * linux-thread-db.c (thread_db_target): New.
2990 (thread_db_target::thread_db_target): New.
2991 (thread_db_ops): Delete.
2992 (the_thread_db_target): New.
2993 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
2994 (thread_db_update_thread_list, thread_db_pid_to_str)
2995 (thread_db_extra_thread_info)
2996 (thread_db_thread_handle_to_thread_info)
2997 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
2998 (thread_db_resume): Refactor as methods of thread_db_target.
2999 (init_thread_db_ops): Delete.
3000 (_initialize_thread_db): Remove reference to init_thread_db_ops.
3001 * x86-linux-nat.c: Don't include "linux-nat.h".
3002 (super_post_startup_inferior): Delete.
3003 (x86_linux_nat_target::~x86_linux_nat_target): New.
3004 (x86_linux_child_post_startup_inferior)
3005 (x86_linux_read_description, x86_linux_enable_btrace)
3006 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
3007 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
3008 methods of x86_linux_nat_target.
3009 (x86_linux_create_target): Delete. Bits folded ...
3010 (x86_linux_add_target): ... here. Now takes a linux_nat_target
3011 pointer.
3012 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
3013 (x86_linux_nat_target): New class.
3014 (x86_linux_create_target): Delete.
3015 (x86_linux_add_target): Now takes a linux_nat_target pointer.
3016 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
3017 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
3018 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
3019 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
3020 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
3021 make extern.
3022 (x86_use_watchpoints): Delete.
3023 * x86-nat.h: Include "breakpoint.h" and "target.h".
3024 (x86_use_watchpoints): Delete.
3025 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
3026 (x86_stopped_by_watchpoint, x86_stopped_data_address)
3027 (x86_insert_watchpoint, x86_remove_watchpoint)
3028 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
3029 (x86_stopped_by_hw_breakpoint): New declarations.
3030 (x86_nat_target): New template class.
3031
3032 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
3033 (the_ppc_linux_nat_target): New.
3034 (ppc_linux_fetch_inferior_registers)
3035 (ppc_linux_can_use_hw_breakpoint)
3036 (ppc_linux_region_ok_for_hw_watchpoint)
3037 (ppc_linux_ranged_break_num_registers)
3038 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
3039 (ppc_linux_insert_mask_watchpoint)
3040 (ppc_linux_remove_mask_watchpoint)
3041 (ppc_linux_can_accel_watchpoint_condition)
3042 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
3043 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
3044 (ppc_linux_watchpoint_addr_within_range)
3045 (ppc_linux_masked_watch_num_registers)
3046 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
3047 (ppc_linux_read_description): Refactor as methods of
3048 ppc_linux_nat_target.
3049 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
3050
3051 * procfs.c (procfs_xfer_partial): Delete forward declaration.
3052 (procfs_target): New class.
3053 (the_procfs_target): New.
3054 (procfs_target): Delete function.
3055 (procfs_auxv_parse, procfs_attach, procfs_detach)
3056 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
3057 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
3058 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
3059 (procfs_create_inferior, procfs_update_thread_list)
3060 (procfs_thread_alive, procfs_pid_to_str)
3061 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
3062 (procfs_stopped_data_address, procfs_insert_watchpoint)
3063 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
3064 (proc_find_memory_regions, procfs_info_proc)
3065 (procfs_make_note_section): Refactor as methods of procfs_target.
3066 (_initialize_procfs): Adjust.
3067 * sol-thread.c (sol_thread_target): New class.
3068 (sol_thread_ops): Now a sol_thread_target.
3069 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
3070 (sol_thread_fetch_registers, sol_thread_store_registers)
3071 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
3072 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
3073 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
3074 (init_sol_thread_ops): Delete.
3075 (_initialize_sol_thread): Adjust. Remove references to
3076 init_sol_thread_ops and complete_target_initialization.
3077
3078 * windows-nat.c (windows_nat_target): New class.
3079 (windows_fetch_inferior_registers)
3080 (windows_store_inferior_registers, windows_resume, windows_wait)
3081 (windows_attach, windows_detach, windows_pid_to_exec_file)
3082 (windows_files_info, windows_create_inferior)
3083 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
3084 (windows_close, windows_pid_to_str, windows_xfer_partial)
3085 (windows_get_tib_address, windows_get_ada_task_ptid)
3086 (windows_thread_name, windows_thread_alive): Refactor as
3087 windows_nat_target methods.
3088 (do_initial_windows_stuff): Adjust.
3089 (windows_target): Delete function.
3090 (_initialize_windows_nat): Adjust.
3091
3092 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
3093 (darwin_mourn_inferior, darwin_kill_inferior)
3094 (darwin_create_inferior, darwin_attach, darwin_detach)
3095 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
3096 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
3097 (darwin_supports_multi_process): Refactor as darwin_nat_target
3098 methods.
3099 (darwin_resume_to, darwin_files_info): Delete.
3100 (_initialize_darwin_inferior): Rename to ...
3101 (_initialize_darwin_nat): ... this. Adjust to C++ification.
3102 * darwin-nat.h: Include "inf-child.h".
3103 (darwin_nat_target): New class.
3104 (darwin_complete_target): Delete.
3105 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
3106 (darwin_target): New.
3107 (i386_darwin_fetch_inferior_registers)
3108 (i386_darwin_store_inferior_registers): Refactor as methods of
3109 darwin_nat_target.
3110 (darwin_complete_target): Delete, with ...
3111 (_initialize_i386_darwin_nat): ... bits factored out here.
3112
3113 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
3114 (the_alpha_linux_nat_target): New.
3115 (alpha_linux_register_u_offset): Refactor as
3116 alpha_linux_nat_target method.
3117 (_initialize_alpha_linux_nat): Adjust.
3118 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
3119 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
3120 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
3121 methods of linux_nat_trad_target.
3122 (linux_trad_target): Delete.
3123 * linux-nat-trad.h (linux_trad_target): Delete function.
3124 (linux_nat_trad_target): New class.
3125 * mips-linux-nat.c (mips_linux_nat_target): New class.
3126 (super_fetch_registers, super_store_registers, super_close):
3127 Delete.
3128 (the_mips_linux_nat_target): New.
3129 (mips64_linux_regsets_fetch_registers)
3130 (mips64_linux_regsets_store_registers)
3131 (mips64_linux_fetch_registers, mips64_linux_store_registers)
3132 (mips_linux_register_u_offset, mips_linux_read_description)
3133 (mips_linux_can_use_hw_breakpoint)
3134 (mips_linux_stopped_by_watchpoint)
3135 (mips_linux_stopped_data_address)
3136 (mips_linux_region_ok_for_hw_watchpoint)
3137 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
3138 (mips_linux_close): Refactor as methods of mips_linux_nat.
3139 (_initialize_mips_linux_nat): Adjust to C++ification.
3140
3141 * aix-thread.c (aix_thread_target): New class.
3142 (aix_thread_ops): Now an aix_thread_target.
3143 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
3144 (aix_thread_fetch_registers, aix_thread_store_registers)
3145 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
3146 (aix_thread_thread_alive, aix_thread_pid_to_str)
3147 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
3148 Refactor as methods of aix_thread_target.
3149 (init_aix_thread_ops): Delete.
3150 (_initialize_aix_thread): Remove references to init_aix_thread_ops
3151 and complete_target_initialization.
3152 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
3153 (rs6000_nat_target): New class.
3154 (the_rs6000_nat_target): New.
3155 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
3156 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
3157 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
3158 (super_create_inferior): Delete.
3159 (_initialize_rs6000_nat): Adjust to C++ification.
3160
3161 * arm-linux-nat.c (arm_linux_nat_target): New class.
3162 (the_arm_linux_nat_target): New.
3163 (arm_linux_fetch_inferior_registers)
3164 (arm_linux_store_inferior_registers, arm_linux_read_description)
3165 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
3166 (arm_linux_remove_hw_breakpoint)
3167 (arm_linux_region_ok_for_hw_watchpoint)
3168 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
3169 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
3170 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
3171 arm_linux_nat_target.
3172 (_initialize_arm_linux_nat): Adjust to C++ification.
3173
3174 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
3175 (the_aarch64_linux_nat_target): New.
3176 (aarch64_linux_fetch_inferior_registers)
3177 (aarch64_linux_store_inferior_registers)
3178 (aarch64_linux_child_post_startup_inferior)
3179 (aarch64_linux_read_description)
3180 (aarch64_linux_can_use_hw_breakpoint)
3181 (aarch64_linux_insert_hw_breakpoint)
3182 (aarch64_linux_remove_hw_breakpoint)
3183 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
3184 (aarch64_linux_region_ok_for_hw_watchpoint)
3185 (aarch64_linux_stopped_data_address)
3186 (aarch64_linux_stopped_by_watchpoint)
3187 (aarch64_linux_watchpoint_addr_within_range)
3188 (aarch64_linux_can_do_single_step): Refactor as methods of
3189 aarch64_linux_nat_target.
3190 (super_post_startup_inferior): Delete.
3191 (_initialize_aarch64_linux_nat): Adjust to C++ification.
3192
3193 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
3194 (the_hppa_linux_nat_target): New.
3195 (hppa_linux_fetch_inferior_registers)
3196 (hppa_linux_store_inferior_registers): Refactor as methods of
3197 hppa_linux_nat_target.
3198 (_initialize_hppa_linux_nat): Adjust to C++ification.
3199
3200 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
3201 (the_ia64_linux_nat_target): New.
3202 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
3203 (ia64_linux_stopped_data_address)
3204 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
3205 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
3206 ia64_linux_nat_target methods.
3207 (super_xfer_partial): Delete.
3208 (_initialize_ia64_linux_nat): Adjust to C++ification.
3209
3210 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
3211 (the_m32r_linux_nat_target): New.
3212 (m32r_linux_fetch_inferior_registers)
3213 (m32r_linux_store_inferior_registers): Refactor as
3214 m32r_linux_nat_target methods.
3215 (_initialize_m32r_linux_nat): Adjust to C++ification.
3216
3217 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
3218 (the_m68k_linux_nat_target): New.
3219 (m68k_linux_fetch_inferior_registers)
3220 (m68k_linux_store_inferior_registers): Refactor as
3221 m68k_linux_nat_target methods.
3222 (_initialize_m68k_linux_nat): Adjust to C++ification.
3223
3224 * s390-linux-nat.c (s390_linux_nat_target): New class.
3225 (the_s390_linux_nat_target): New.
3226 (s390_linux_fetch_inferior_registers)
3227 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
3228 (s390_insert_watchpoint, s390_remove_watchpoint)
3229 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
3230 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
3231 (s390_auxv_parse, s390_read_description): Refactor as methods of
3232 s390_linux_nat_target.
3233 (_initialize_s390_nat): Adjust to C++ification.
3234
3235 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
3236 (the_sparc_linux_nat_target): New.
3237 (_initialize_sparc_linux_nat): Adjust to C++ification.
3238 * sparc-nat.c (sparc_fetch_inferior_registers)
3239 (sparc_store_inferior_registers): Remove target_ops parameter.
3240 * sparc-nat.h (sparc_fetch_inferior_registers)
3241 (sparc_store_inferior_registers): Remove target_ops parameter.
3242 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
3243 (the_sparc64_linux_nat_target): New.
3244 (_initialize_sparc64_linux_nat): Adjust to C++ification.
3245
3246 * spu-linux-nat.c (spu_linux_nat_target): New class.
3247 (the_spu_linux_nat_target): New.
3248 (spu_child_post_startup_inferior, spu_child_post_attach)
3249 (spu_child_wait, spu_fetch_inferior_registers)
3250 (spu_store_inferior_registers, spu_xfer_partial)
3251 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
3252 methods.
3253 (_initialize_spu_nat): Adjust to C++ification.
3254
3255 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
3256 (the_tilegx_linux_nat_target): New.
3257 (fetch_inferior_registers, store_inferior_registers):
3258 Refactor as methods.
3259 (_initialize_tile_linux_nat): Adjust to C++ification.
3260
3261 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
3262 (the_xtensa_linux_nat_target): New.
3263 (xtensa_linux_fetch_inferior_registers)
3264 (xtensa_linux_store_inferior_registers): Refactor as
3265 xtensa_linux_nat_target methods.
3266 (_initialize_xtensa_linux_nat): Adjust to C++ification.
3267
3268 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
3269 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
3270 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
3271 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
3272 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
3273 (fbsd_stopped_by_sw_breakpoint)
3274 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
3275 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
3276 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
3277 (fbsd_post_startup_inferior, fbsd_post_attach)
3278 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
3279 (fbsd_set_syscall_catchpoint)
3280 (super_xfer_partial, super_resume, super_wait)
3281 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
3282 (fbsd_handle_debug_trap): Remove target_ops parameter.
3283 (fbsd_nat_add_target): Delete.
3284 * fbsd-nat.h: Include "inf-ptrace.h".
3285 (fbsd_nat_add_target): Delete.
3286 (USE_SIGTRAP_SIGINFO): Define.
3287 (fbsd_nat_target): New class.
3288
3289 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
3290 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
3291 (amd64bsd_target): Delete.
3292 * amd64-bsd-nat.h: New file.
3293 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
3294 "x86-bsd-nat.h".
3295 (amd64_fbsd_nat_target): New class.
3296 (the_amd64_fbsd_nat_target): New.
3297 (amd64fbsd_read_description): Refactor as method of
3298 amd64_fbsd_nat_target.
3299 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
3300 (_initialize_amd64fbsd_nat): Adjust to C++ification.
3301 * amd64-nat.h (amd64bsd_target): Delete function declaration.
3302 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
3303 (i386bsd_store_inferior_registers): Remove target_ops parameter.
3304 (i386bsd_target): Delete.
3305 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
3306 (i386bsd_fetch_inferior_registers)
3307 (i386bsd_store_inferior_registers): Declare.
3308 (i386_bsd_nat_target): New class.
3309 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
3310 (the_i386_fbsd_nat_target): New.
3311 (i386fbsd_resume, i386fbsd_read_description): Refactor as
3312 i386_fbsd_nat_target methods.
3313 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
3314 (_initialize_i386fbsd_nat): Adjust to C++ification.
3315 * x86-bsd-nat.c (super_mourn_inferior): Delete.
3316 (x86bsd_mourn_inferior, x86bsd_target): Delete.
3317 (_initialize_x86_bsd_nat): Adjust to C++ification.
3318 * x86-bsd-nat.h: Include "x86-nat.h".
3319 (x86bsd_target): Delete declaration.
3320 (x86bsd_nat_target): New class.
3321
3322 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
3323 (the_aarch64_fbsd_nat_target): New.
3324 (aarch64_fbsd_fetch_inferior_registers)
3325 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
3326 aarch64_fbsd_nat_target.
3327 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
3328 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
3329 (the_alpha_bsd_nat_target): New.
3330 (alphabsd_fetch_inferior_registers)
3331 (alphabsd_store_inferior_registers): Refactor as
3332 alpha_bsd_nat_target methods.
3333 (_initialize_alphabsd_nat): Refactor as methods of
3334 alpha_bsd_nat_target.
3335 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
3336 (the_amd64_nbsd_nat_target): New.
3337 (_initialize_amd64nbsd_nat): Adjust to C++ification.
3338 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
3339 (the_amd64_obsd_nat_target): New.
3340 (_initialize_amd64obsd_nat): Adjust to C++ification.
3341 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
3342 (the_arm_fbsd_nat_target): New.
3343 (arm_fbsd_fetch_inferior_registers)
3344 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
3345 (_initialize_arm_fbsd_nat): Refactor as methods of
3346 arm_fbsd_nat_target.
3347 (_initialize_arm_fbsd_nat): Adjust to C++ification.
3348 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
3349 (the_arm_netbsd_nat_target): New.
3350 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
3351 arm_netbsd_nat_target.
3352 (_initialize_arm_netbsd_nat): Adjust to C++ification.
3353 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
3354 (the_hppa_nbsd_nat_target): New.
3355 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
3356 hppa_nbsd_nat_target methods.
3357 (_initialize_hppanbsd_nat): Adjust to C++ification.
3358 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
3359 (the_hppa_obsd_nat_target): New.
3360 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
3361 methods of hppa_obsd_nat_target.
3362 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
3363 add_target.
3364 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
3365 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
3366 add_target.
3367 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
3368 (_initialize_i386obsd_nat): Use add_target.
3369 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
3370 (the_m68k_bsd_nat_target): New.
3371 (m68kbsd_fetch_inferior_registers)
3372 (m68kbsd_store_inferior_registers): Refactor as methods of
3373 m68k_bsd_nat_target.
3374 (_initialize_m68kbsd_nat): Adjust to C++ification.
3375 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
3376 (the_mips_fbsd_nat_target): New.
3377 (mips_fbsd_fetch_inferior_registers)
3378 (mips_fbsd_store_inferior_registers): Refactor as methods of
3379 mips_fbsd_nat_target.
3380 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
3381 add_target.
3382 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
3383 (the_mips_nbsd_nat_target): New.
3384 (mipsnbsd_fetch_inferior_registers)
3385 (mipsnbsd_store_inferior_registers): Refactor as methods of
3386 mips_nbsd_nat_target.
3387 (_initialize_mipsnbsd_nat): Adjust to C++ification.
3388 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
3389 (the_mips64_obsd_nat_target): New.
3390 (mips64obsd_fetch_inferior_registers)
3391 (mips64obsd_store_inferior_registers): Refactor as methods of
3392 mips64_obsd_nat_target.
3393 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
3394 add_target.
3395 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
3396 nbsd_nat_target.
3397 * nbsd-nat.h: Include "inf-ptrace.h".
3398 (nbsd_nat_target): New class.
3399 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
3400 (obsd_wait): Refactor as methods of obsd_nat_target.
3401 (obsd_add_target): Delete.
3402 * obsd-nat.h: Include "inf-ptrace.h".
3403 (obsd_nat_target): New class.
3404 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
3405 (the_ppc_fbsd_nat_target): New.
3406 (ppcfbsd_fetch_inferior_registers)
3407 (ppcfbsd_store_inferior_registers): Refactor as methods of
3408 ppc_fbsd_nat_target.
3409 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
3410 add_target.
3411 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
3412 (the_ppc_nbsd_nat_target): New.
3413 (ppcnbsd_fetch_inferior_registers)
3414 (ppcnbsd_store_inferior_registers): Refactor as methods of
3415 ppc_nbsd_nat_target.
3416 (_initialize_ppcnbsd_nat): Adjust to C++ification.
3417 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
3418 (the_ppc_obsd_nat_target): New.
3419 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
3420 methods of ppc_obsd_nat_target.
3421 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
3422 add_target.
3423 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
3424 (the_sh_nbsd_nat_target): New.
3425 (shnbsd_fetch_inferior_registers)
3426 (shnbsd_store_inferior_registers): Refactor as methods of
3427 sh_nbsd_nat_target.
3428 (_initialize_shnbsd_nat): Adjust to C++ification.
3429 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
3430 (inf_ptrace_xfer_partial): Delete.
3431 (sparc_xfer_partial, sparc_target): Delete.
3432 * sparc-nat.h (sparc_fetch_inferior_registers)
3433 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
3434 (sparc_target): Delete function declaration.
3435 (sparc_target): New template class.
3436 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
3437 (_initialize_sparcnbsd_nat): Adjust to C++ification.
3438 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
3439 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
3440 add_target.
3441 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
3442 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
3443 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
3444 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
3445 add_target.
3446 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
3447 (the_vax_bsd_nat_target): New.
3448 (vaxbsd_fetch_inferior_registers)
3449 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
3450 methods.
3451 (_initialize_vaxbsd_nat): Adjust to C++ification.
3452
3453 * bsd-kvm.c (bsd_kvm_target): New class.
3454 (bsd_kvm_ops): Now a bsd_kvm_target.
3455 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
3456 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
3457 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
3458 bsd_kvm_target.
3459 (bsd_kvm_return_one): Delete.
3460 (bsd_kvm_add_target): Adjust to C++ification.
3461
3462 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
3463 (nto_procfs_target_procfs): New classes.
3464 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
3465 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
3466 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
3467 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
3468 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
3469 (procfs_remove_hw_breakpoint, procfs_resume)
3470 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
3471 (procfs_kill_inferior, procfs_store_registers)
3472 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
3473 as methods of nto_procfs_target.
3474 (nto_procfs_ops): Now an nto_procfs_target_procfs.
3475 (nto_native_ops): Delete.
3476 (procfs_open, procfs_native_open): Delete.
3477 (nto_native_ops): Now an nto_procfs_target_native.
3478 (init_procfs_targets): Adjust to C++ification.
3479 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
3480 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
3481 Refactor as methods of nto_procfs_target.
3482
3483 * go32-nat.c (go32_nat_target): New class.
3484 (the_go32_nat_target): New.
3485 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
3486 (go32_store_registers, go32_xfer_partial, go32_files_info)
3487 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
3488 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
3489 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
3490 (go32_pid_to_str): Refactor as methods of go32_nat_target.
3491 (go32_target): Delete.
3492 (_initialize_go32_nat): Adjust to C++ification.
3493
3494 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
3495 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
3496 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
3497 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
3498 gnu_nat_target.
3499 (gnu_target): Delete.
3500 * gnu-nat.h (gnu_target): Delete.
3501 (gnu_nat_target): New class.
3502 * i386-gnu-nat.c (gnu_base_target): New.
3503 (i386_gnu_nat_target): New class.
3504 (the_i386_gnu_nat_target): New.
3505 (_initialize_i386gnu_nat): Adjust to C++ification.
3506
3fffc070
PA
35072018-05-02 Pedro Alves <palves@redhat.com>
3508
3509 * bfd-target.c (target_bfd_xclose): Rename to ...
3510 (target_bfd_close): ... this.
3511 (target_bfd_reopen): Adjust.
3512 * target.c (target_close): Remove references to to_xclose.
3513 * target.h (target_ops::to_xclose): Delete.
3514 (target_ops::to_close): Update comments.
3515
6798487f
PA
35162018-05-02 Pedro Alves <palves@redhat.com>
3517
3518 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
3519 "linux-nat.h".
3520 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
3521 * inf-ptrace.c (inf_ptrace_register_u_offset)
3522 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
3523 (inf_ptrace_store_register, inf_ptrace_store_registers)
3524 (inf_ptrace_trad_target): Move to ...
3525 * linux-nat-trad.c: ... this new file.
3526 * linux-nat-trad.h: New file.
3527 * linux-nat.c (linux_target_install_ops): Make extern.
3528 (linux_trad_target): Delete.
3529 * linux-nat.h (linux_trad_target): Delete declaration.
3530 (linux_target_install_ops): Declare.
3531 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
3532 "linux-nat.h".
3533
c1955e17
PA
35342018-05-02 Pedro Alves <palves@redhat.com>
3535
3536 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
3537 procfs_target/add_target here.
3538 * procfs.c (procfs_target): Make static.
3539 (_initialize_procfs): Call add_target here.
3540 * procfs.h (struct target_ops): Remove forward declaration.
3541 (procfs_target): Remove declaration.
3542 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
3543
b5c8fcb1
PA
35442018-05-02 Pedro Alves <palves@redhat.com>
3545
3546 * procfs.c (procfs_stopped_by_watchpoint)
3547 (procfs_insert_watchpoint, procfs_remove_watchpoint)
3548 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
3549 Forward declare.
3550 (procfs_use_watchpoints): Delete, move contents...
3551 (procfs_target): ... here.
3552 * procfs.h (procfs_use_watchpoints): Delete declaration.
3553 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
3554 procfs_use_watchpoints.
3555 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
3556 procfs_use_watchpoints.
3557
0489430a
TT
35582018-05-02 Tom Tromey <tom@tromey.com>
3559
3560 PR python/20084:
3561 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
3562 and var_zuinteger_unlimited.
3563 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
3564 and PARAM_ZUINTEGER_UNLIMITED.
3565 (set_parameter_value): Handle var_zuinteger and
3566 var_zuinteger_unlimited.
3567 (add_setshow_generic): Likewise.
3568 (parmpy_init): Likewise.
3569
1632f8ba
DR
35702018-04-28 Dan Robertson <danlrobertson89@gmail.com>
3571
3572 PR rust/23124
3573 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
3574 pointer is not null before dereferencing it.
3575
76761936
TT
35762018-04-30 Tom Tromey <tom@tromey.com>
3577
3578 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
3579 is_mi_like_p.
3580
2d33446d
TT
35812018-04-30 Tom Tromey <tom@tromey.com>
3582
3583 * breakpoint.c (mention): Remove use of is_mi_like_p.
3584 (print_mention_ranged_breakpoint): Likewise.
3585 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
3586 of is_mi_like_p.
3587
f3c6abab
TT
35882018-04-30 Tom Tromey <tom@tromey.com>
3589
3590 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
3591
40c03530
TT
35922018-04-30 Tom Tromey <tom@tromey.com>
3593
3594 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
3595 (info_spu_event_command): Remove some uses of is_mi_like_p.
3596
2038b7fd
TT
35972018-04-30 Tom Tromey <tom@tromey.com>
3598
3599 * python/py-framefilter.c (py_print_single_arg)
3600 (enumerate_locals, py_print_args, py_print_frame): Remove some
3601 uses of is_mi_like_p.
3602
4904c3c6
TT
36032018-04-30 Tom Tromey <tom@tromey.com>
3604
3605 * ui-out.c: Update.
3606 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
3607 * ui-out.h (ui_out::is_mi_like_p): Now const.
3608 (ui_out::do_is_mi_like_p): Now const.
3609 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
3610
7c66fffc
TT
36112018-04-30 Tom Tromey <tom@tromey.com>
3612
3613 * varobj.c (varobj_set_visualizer): Use new_reference.
3614 * python/python.c (gdbpy_decode_line): Use new_reference.
3615 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
3616 new_reference.
3617
bbfa6f00
TT
36182018-04-30 Tom Tromey <tom@tromey.com>
3619
3620 * varobj.c (install_new_value): Use new_reference.
3621 * value.h (value_incref): Return void. Swap intro comment with
3622 value_decref.
3623 * value.c (set_value_parent): Use new_reference.
3624 (value_incref): Return void. Update intro comment.
3625 (release_value): Use new_reference.
3626 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
3627
1831a9f9
TT
36282018-04-30 Tom Tromey <tom@tromey.com>
3629
3630 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
3631 * gdb_bfd.h (new_bfd_ref): Remove.
3632 (gdb_bfd_open): Update comment.
3633 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3634 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
3635 (gdb_bfd_fdopenr): Use new_reference.
3636 * exec.c (exec_file_attach): Use new_reference.
3637
7c1b5f3d
TT
36382018-04-30 Tom Tromey <tom@tromey.com>
3639
3640 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
3641 method.
3642
e11fb955
TT
36432018-04-30 Tom Tromey <tom@tromey.com>
3644
3645 * jit.c (jit_read_code_entry): Use type_align.
3646 * i386-tdep.c (i386_gdbarch_init): Don't call
3647 set_gdbarch_long_long_align_bit.
3648 * gdbarch.sh: Remove long_long_align_bit.
3649 * gdbarch.c, gdbarch.h: Rebuild.
3650 * arc-tdep.c (arc_type_align): New function.
3651 (arc_gdbarch_init): Use arc_type_align. Don't call
3652 set_gdbarch_long_long_align_bit.
3653
2fff16dd
TT
36542018-04-30 Tom Tromey <tom@tromey.com>
3655
3656 * rust-lang.c (rust_type_alignment): Remove.
3657 (rust_composite_type): Use type_align.
3658
6d7bb824
TT
36592018-04-30 Tom Tromey <tom@tromey.com>
3660
3661 * NEWS: Mention Type.align.
3662 * python/py-type.c (typy_get_alignof): New function.
3663 (type_object_getset): Add "alignof".
3664
007e1530
TT
36652018-04-30 Tom Tromey <tom@tromey.com>
3666
3667 PR exp/17095:
3668 * NEWS: Update.
3669 * std-operator.def (UNOP_ALIGNOF): New operator.
3670 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
3671 New.
3672 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
3673 * c-lang.c (c_op_print_tab): Add alignof.
3674 * c-exp.y (ALIGNOF): New token.
3675 (exp): Add "ALIGNOF" production.
3676 (ident_tokens): Add _Alignof and alignof.
3677
2b4424c3
TT
36782018-04-30 Tom Tromey <tom@tromey.com>
3679
3680 * i386-tdep.c (i386_type_align): New function.
3681 (i386_gdbarch_init): Update.
3682 * gdbarch.sh (type_align): New method.
3683 * gdbarch.c, gdbarch.h: Rebuild.
3684 * arch-utils.h (default_type_align): Declare.
3685 * arch-utils.c (default_type_align): New function.
3686 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
3687 (struct type) <align_log2>: New field.
3688 <instance_flags>: Now a bitfield.
3689 (TYPE_RAW_ALIGN): New macro.
3690 (type_align, type_raw_align, set_type_align): Declare.
3691 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
3692 functions.
3693 * dwarf2read.c (quirk_rust_enum): Set type alignment.
3694 (get_alignment, maybe_set_alignment): New functions.
3695 (read_structure_type, read_enumeration_type, read_array_type)
3696 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
3697 (read_subrange_type, read_base_type): Set type alignment.
3698
d33bc52e
SM
36992018-04-30 Simon Marchi <simon.marchi@ericsson.com>
3700
3701 * dwarf2read.c (read_index_from_section): Use bool.
3702
e28b63a9
FG
37032018-04-29 Fabian Groffen <grobian@gentoo.org>
3704
3705 PR gdb/22950
3706 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
3707 with #ifdef.
3708
cd8c76e4
JR
37092018-04-29 John Reiser <jreiser@BitWagon.com>
3710
3711 PR build/22873
3712 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
3713 last step, and do it atomically.
3714
476d250e
AO
37152018-04-27 Alexandre Oliva <aoliva@redhat.com>
3716
3717 * compile/compile-c-types.c (convert_int, convert_float):
3718 Update for C FE v1.
3719
6873858b
TT
37202018-04-27 Tom Tromey <tom@tromey.com>
3721
3722 PR rust/22545:
3723 * rust-lang.c (rust_inclusive_range_type_p): New function.
3724 (rust_range): Handle inclusive ranges.
3725 (rust_compute_range): Likewise.
3726 * rust-exp.y (struct rust_op) <inclusive>: New field.
3727 (DOTDOTEQ): New constant.
3728 (range_expr): Add "..=" productions.
3729 (operator_tokens): Add "..=" token.
3730 (ast_range): Add "inclusive" parameter.
3731 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
3732 ranges.
3733 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
3734 bounds values.
3735 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
3736 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
3737 Update comments.
3738 * expprint.c (print_subexp_standard): Handle new bounds values.
3739 (dump_subexp_body_standard): Likewise.
3740
632e107b
TT
37412018-04-27 Tom Tromey <tom@tromey.com>
3742
3743 * configure: Rebuild.
3744 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
3745 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
3746 "OVERRIDE".
3747 (class symbol_needs_eval_context): Likewise.
3748 * dwarf2read.c (mock_mapped_index::symbol_name_count)
3749 (mock_mapped_index::symbol_name_at): Use "override". Remove
3750 "virtual".
3751 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
3752 "override".
3753 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
3754 * aarch64-tdep.c (instruction_reader::read): Use "override".
3755 (instruction_reader_test::read): Likewise.
3756 * arm-tdep.c (instruction_reader::read): Use "override".
3757 (instruction_reader_thumb::read): Likewise.
3758
b75abf5b
AK
37592018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
3760
3761 PR remote/9665
3762 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
3763 instead of remote_send.
3764 (remote_send): Remove.
3765
79188d8d
PA
37662018-04-26 Pedro Alves <palves@redhat.com>
3767
3768 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
3769 find_function_start_sal instead of find_pc_line.
3770
f50776aa
PA
37712018-04-26 Pedro Alves <palves@redhat.com>
3772
3773 * breakpoint.c (set_breakpoint_location_function): Handle
3774 mst_data_gnu_ifunc.
3775 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
3776 * elfread.c (elf_symtab_read): Give data symbols with
3777 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
3778 (elf_rel_plt_read): Update comment.
3779 * linespec.c (convert_linespec_to_sals): Handle
3780 mst_data_gnu_ifunc.
3781 (minsym_found): Handle mst_data_gnu_ifunc.
3782 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
3783 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
3784 * parse.c (find_minsym_type_and_address): Handle
3785 mst_data_gnu_ifunc.
3786 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
3787 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
3788 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
3789 comment.
3790 <mst_data_gnu_ifunc>: New enumerator.
3791
20944a6e
PA
37922018-04-26 Pedro Alves <palves@redhat.com>
3793
3794 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
3795 (lookup_minimal_symbol_by_pc_section): ... this. Replace
3796 'want_trampoline' parameter by a lookup_msym_prefer parameter.
3797 Handle it.
3798 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
3799 (lookup_minimal_symbol_by_pc): Adjust.
3800 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
3801 (lookup_solib_trampoline_symbol_by_pc): Adjust.
3802 * minsyms.h (lookup_msym_prefer): New enum.
3803 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
3804 parameter by a lookup_msym_prefer parameter.
3805
1adeb822
PA
38062018-04-26 Pedro Alves <palves@redhat.com>
3807
3808 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
3809 ends in "@plt" instead of looking at the symbol's section.
3810
a0aca7b0
PA
38112018-04-26 Pedro Alves <palves@redhat.com>
3812
3813 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
3814 all references.
3815 (find_pc_partial_function_gnu_ifunc): Rename to ...
3816 (find_pc_partial_function): ... this, and remove references to
3817 'is_gnu_ifunc_p'.
3818 (find_pc_partial_function): Delete old implementation.
3819 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
3820
76af0f26
PA
38212018-04-26 Pedro Alves <palves@redhat.com>
3822
3823 * linespec.c (struct bound_minimal_symbol_search_key): New.
3824 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
3825 skip first line if we found a GNU ifunc minimal symbol by name.
3826 (compare_msymbols): Change parameters to work with a destructured
3827 lhs minsym.
3828 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
3829 functions.
3830
3467ec66
PA
38312018-04-26 Pedro Alves <palves@redhat.com>
3832
3833 * breakpoint.c (set_breakpoint_location_function): Don't resolve
3834 ifunc targets here. Instead, if we have an ifunc minsym, use its
3835 address/name.
3836 (add_location_to_breakpoint): Store the minsym and the objfile in
3837 the breakpoint location.
3838 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
3839 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
3840 Record the minsym in the sal.
3841 * symtab.h (symtab_and_line) <msymbol>: New field.
3842
28f4fa4d
PA
38432018-04-26 Pedro Alves <palves@redhat.com>
3844
3845 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
3846 unless we actually resolved the ifunc.
3847
ca31ab1d
PA
38482018-04-26 Pedro Alves <palves@redhat.com>
3849
3850 * c-exp.y (variable production): Prefer ifunc minsyms over
3851 regular function symbols.
3852 * symtab.c (find_gnu_ifunc): New function.
3853 * minsyms.h (lookup_msym_prefer): New enum.
3854 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
3855 parameter by a lookup_msym_prefer parameter.
3856 * symtab.h (find_gnu_ifunc): New declaration.
3857
8388016d
PA
38582018-04-26 Pedro Alves <palves@redhat.com>
3859
3860 * blockframe.c (find_gnu_ifunc_target_type): New function.
3861 (find_function_type): New.
3862 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
3863 return a value with a memory address.
3864 (eval_call): For calls to GNU ifunc functions, try to find the
3865 type of the target function from the type that the resolver
3866 returns.
3867 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
3868 symbols.
3869 * infcall.c (find_function_return_type): Delete.
3870 (find_function_addr): Add 'function_type' parameter. For calls to
3871 GNU ifunc functions, try to find the type of the target function
3872 from the type that the resolver returns, and return it via
3873 FUNCTION_TYPE.
3874 (call_function_by_hand_dummy): Adjust to use the function type
3875 returned by find_function_addr.
3876 (find_function_addr): Add 'function_type' parameter and move
3877 description here.
3878 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
3879 declarations.
3880
a376e11d
PA
38812018-04-26 Pedro Alves <palves@redhat.com>
3882
3883 * c-exp.y (variable production): Skip finding an alias for ifunc
3884 symbols.
3885
02e169e2
PA
38862018-04-26 Pedro Alves <palves@redhat.com>
3887
3888 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
3889
249b5733
PA
38902018-04-25 Pedro Alves <palves@redhat.com>
3891
3892 * infcmd.c (kill_command): Print the pid as string, not the whole
3893 thread's ptid. Add comment. s/has been killed/killed/ in output
3894 message.
3895 * remote.c (remote_detach_1): Print the pid as string, not the
3896 whole thread's ptid.
3897
f67c0c91
SDJ
38982018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3899 Sergio Durigan Junior <sergiodj@redhat.com>
3900 Pedro Alves <palves@redhat.com>
3901
3902 * infcmd.c (kill_command): Print message when inferior has
3903 been killed.
3904 * inferior.c (print_inferior_events): Remove 'static'. Set as
3905 '1'.
3906 (add_inferior): Improve message printed when
3907 'print_inferior_events' is on.
3908 (exit_inferior): Remove message printed when
3909 'print_inferior_events' is on.
3910 (detach_inferior): Improve message printed when
3911 'print_inferior_events' is on.
3912 (initialize_inferiors): Use 'add_inferior_silent' to set
3913 'current_inferior_'.
3914 * inferior.h (print_inferior_events): Declare here as
3915 'extern'.
3916 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
3917 '[Detaching...]' messages when 'print_inferior_events' is on.
3918 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
3919 as prefix/suffix for messages. Remove periods. Fix erroneous
3920 'Detaching after fork from child...', replace it by '... from
3921 parent...'.
3922 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
3923 prefix/suffix when printing 'Detaching...' messages. Print
3924 them when 'print_inferior_events' is on.
3925 * remote.c (remote_detach_1): Print message when detaching
3926 from inferior and '!is_fork_parent'.
3927
e427af18
TT
39282018-04-24 Tom Tromey <tom@tromey.com>
3929
3930 * cli-out.h: Reindent.
3931
05b1d8d6
TT
39322018-04-24 Tom Tromey <tom@tromey.com>
3933
3934 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
3935 (cli_ui_out::do_field_string): Use fputs_filtered.
3936 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
3937
a95c7dab
TT
39382018-04-23 Tom Tromey <tom@tromey.com>
3939
3940 * guile/scm-frame.c (gdbscm_frame_read_var): Use
3941 gdb::unique_xmalloc_ptr.
3942
458412c3
TT
39432018-04-23 Tom Tromey <tom@tromey.com>
3944
3945 * configure: Rebuild.
3946
db86b02b
RS
39472018-04-22 Rajendra SY <rajendra.sy@gmail.com>
3948
3949 PR gdb/23095
3950 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
3951 prepare_for_testing. Set normal_bp to r_debug_state if target
3952 is bsd.
3953
00aecdcf
PA
39542018-04-21 Pedro Alves <palves@redhat.com>
3955 Rajendra SY <rajendra.sy@gmail.com>
3956
3957 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
3958 * remote.c (extended_remote_attach): In all-stop mode, mark the
3959 thread as executing.
3960
224608c3
PW
39612018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3962
3963 * thread.c (thread_apply_all_command): Fix comment.
3964 (thread_command): Fix comment.
3965
3b74854b
AH
39662018-04-10 Alan Hayward <alan.hayward@arm.com>
3967
3968 * common/tdesc.h (tdesc_create_feature): Remove xml filename
3969 parameter.
3970 * features/aarch64-core.c (create_feature_aarch64_core):
3971 Regenerate.
3972 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
3973 Likewise.
3974 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
3975 Likewise.
3976 * features/i386/32bit-avx512.c
3977 (create_feature_i386_32bit_avx512): Likewise.
3978 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
3979 Likewise.
3980 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
3981 Likewise.
3982 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
3983 Likewise.
3984 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
3985 Likewise.
3986 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
3987 Likewise.
3988 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
3989 Likewise.
3990 * features/i386/64bit-avx512.c
3991 (create_feature_i386_64bit_avx512): Likewise.
3992 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
3993 Likewise.
3994 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
3995 Likewise.
3996 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
3997 Likewise.
3998 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
3999 Likewise.
4000 * features/i386/64bit-segments.c
4001 (create_feature_i386_64bit_segments): Likewise.
4002 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
4003 Likewise.
4004 * features/i386/x32-core.c
4005 (create_feature_i386_x32_core): Likewise.
4006 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
4007 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
4008 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
4009 * target-descriptions.c: In generated code, don't pass xml
4010 filename.
4011
e98577a9
AH
40122018-04-18 Alan Hayward <alan.hayward@arm.com>
4013
4014 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
4015 (print_xml_feature::visit_post): Likewise.
4016 (print_xml_feature::visit): Likewise.
4017 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
4018 (print_xml_feature): Add new class.
4019 * regformats/regdat.sh: Null xmltarget on feature targets.
4020 * target-descriptions.c (struct target_desc): Add xmltarget.
4021 (maintenance_check_tdesc_xml_convert): Add unittest function.
4022 (tdesc_get_features_xml): Add function to get xml.
4023 (maintenance_check_xml_descriptions): Test xml generation.
4024 * xml-tdesc.c (string_read_description_xml): Add function.
4025 * xml-tdesc.h (string_read_description_xml): Add declaration.
4026
ad7fc756
AH
40272018-04-18 Alan Hayward <alan.hayward@arm.com>
4028
4029 * features/Makefile: Add feature marker to targets with new style
4030 target descriptions.
4031 * regformats/aarch64.dat: Regenerate.
4032 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
4033 * regformats/i386/amd64-avx-linux.dat: Likewise.
4034 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
4035 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
4036 * regformats/i386/amd64-linux.dat: Likewise.
4037 * regformats/i386/amd64-mpx-linux.dat: Likewise.
4038 * regformats/i386/amd64.dat: Likewise.
4039 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
4040 * regformats/i386/i386-avx-linux.dat: Likewise.
4041 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
4042 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
4043 * regformats/i386/i386-linux.dat: Likewise.
4044 * regformats/i386/i386-mmx-linux.dat: Likewise.
4045 * regformats/i386/i386-mpx-linux.dat: Likewise.
4046 * regformats/i386/i386.dat: Likewise.
4047 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
4048 * regformats/i386/x32-avx-linux.dat: Likewise.
4049 * regformats/i386/x32-linux.dat: Likewise.
4050 * regformats/tic6x-c62x-linux.dat: Likewise.
4051 * regformats/tic6x-c64x-linux.dat: Likewise.
4052 * regformats/tic6x-c64xp-linux.dat: Likewise.
4053 * regformats/regdat.sh: Parse feature marker.
4054
d278f585
AH
40552018-04-18 Alan Hayward <alan.hayward@arm.com>
4056
4057 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
4058 (tdesc_osabi_name): Likewise.
4059 * target-descriptions.c (tdesc_architecture_name): Add new
4060 function.
4061 (tdesc_osabi_name): Likewise.
4062
eee8a18d
AH
40632018-04-18 Alan Hayward <alan.hayward@arm.com>
4064
4065 * common/tdesc.c (tdesc_predefined_type): Move to here.
4066 (tdesc_named_type): Likewise.
4067 (tdesc_create_vector): Likewise.
4068 (tdesc_create_struct): Likewise.
4069 (tdesc_set_struct_size): Likewise.
4070 (tdesc_create_union): Likewise.
4071 (tdesc_create_flags): Likewise.
4072 (tdesc_create_enum): Likewise.
4073 (tdesc_add_field): Likewise.
4074 (tdesc_add_typed_bitfield): Likewise.
4075 (tdesc_add_bitfield): Likewise.
4076 (tdesc_add_flag): Likewise.
4077 (tdesc_add_enum_value): Likewise.
4078 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
4079 (struct tdesc_type_vector): Likewise.
4080 (struct tdesc_type_field): Likewise.
4081 (struct tdesc_type_with_fields): Likewise.
4082 (tdesc_create_enum): Add declaration.
4083 (tdesc_add_typed_bitfield): Likewise.
4084 (tdesc_add_enum_value): Likewise.
4085 * target-descriptions.c (tdesc_type_field): Move from here.
4086 (tdesc_type_builtin): Likewise.
4087 (tdesc_type_vector): Likewise.
4088 (tdesc_type_with_fields): Likewise.
4089 (tdesc_predefined_types): Likewise.
4090 (tdesc_named_type): Likewise.
4091 (tdesc_create_vector): Likewise.
4092 (tdesc_create_struct): Likewise.
4093 (tdesc_set_struct_size): Likewise.
4094 (tdesc_create_union): Likewise.
4095 (tdesc_create_flags): Likewise.
4096 (tdesc_create_enum): Likewise.
4097 (tdesc_add_field): Likewise.
4098 (tdesc_add_typed_bitfield): Likewise.
4099 (tdesc_add_bitfield): Likewise.
4100 (tdesc_add_flag): Likewise.
4101 (tdesc_add_enum_value): Likewise.
4102 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
4103 (tdesc_add_typed_bitfield): Likewise.
4104 (tdesc_add_enum_value): Likewise.
4105
82ec9bc7
AH
41062018-04-18 Alan Hayward <alan.hayward@arm.com>
4107
4108 * common/tdesc.c (tdesc_feature::accept): Move to here.
4109 (tdesc_feature::operator==): Likewise.
4110 (tdesc_create_reg): Likewise.
4111 * common/tdesc.h (tdesc_type_kind): Likewise.
4112 (struct tdesc_type): Likewise.
4113 (struct tdesc_feature): Likewise.
4114 * regformats/regdat.sh: Create a feature.
4115 * target-descriptions.c (tdesc_type_kind): Move from here.
4116 (tdesc_type): Likewise.
4117 (tdesc_type_up): Likewise.
4118 (tdesc_feature): Likewise.
4119 (tdesc_create_reg): Likewise.
4120
ea3e7d71
AH
41212018-04-18 Alan Hayward <alan.hayward@arm.com>
4122
4123 * Makefile.in: Add arch/tdesc.c
4124 * common/tdesc.c: New file.
4125 * common/tdesc.h (tdesc_element_visitor): Move to here.
4126 (tdesc_element): Likewise.
4127 (tdesc_reg): Likewise.
4128 (tdesc_reg_up): Likewise.
4129 * regformats/regdef.h (reg): Add offset to constructors.
4130 * target-descriptions.c (tdesc_element_visitor): Move from here.
4131 (tdesc_element): Likewise.
4132 (tdesc_reg): Likewise.
4133 (tdesc_reg_up): Likewise.
4134
bedda9ac
TT
41352018-04-17 Tom Tromey <tom@tromey.com>
4136
4137 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
4138 discriminant field.
4139
a037790e
TT
41402018-04-17 Tom Tromey <tom@tromey.com>
4141
4142 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
4143
c7dcbf88
AA
41442018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4145
4146 * symtab.c (print_symbol_info): Skip printing filename and line
4147 number when `last' is NULL.
4148 (symtab_symbol_info): Use empty string instead of NULL for first
4149 invocation of print_symbol_info.
4150 (rbreak_command): Pass NULL to `last' parameter of
4151 print_symbol_info.
4152
07d28c77
SM
41532018-04-16 Simon Marchi <simon.marchi@ericsson.com>
4154
4155 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
4156 instead of nullptr.
4157
8a3de5e1
PA
41582018-04-16 Pedro Alves <palves@redhat.com>
4159
4160 * MAINTAINERS (sh): Remove.
4161 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
4162 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
4163 (ALLDEPFILES): Remove sh64-tdep.c.
4164 * NEWS: Mentions that support for SH-5/SH64 is removed.
4165 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
4166 (sh*-*-openbsd*): Ditto.
4167 (sh64-*-elf*): Remove.
4168 (sh*): Remove.
4169 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
4170 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
4171 * sh-tdep.c: No longer include "sh64-tdep.h".
4172 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
4173 * sh64-tdep.c, sh64-tdep.h: Remove files.
4174
a2a79012
PA
41752018-04-16 Pedro Alves <palves@redhat.com>
4176
4177 * MAINTAINERS: Remove m88k.
4178 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
4179 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
4180 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
4181 * NEWS: Mention that support for m88k was removed.
4182 * configure.host (m88*-*-*): Remove support.
4183 * configure.nat (m88k-*-*): Remove support.
4184 * configure.tgt (m88*-*-openbsd*): Remove.
4185 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
4186
eda4efb1
SM
41872018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
4188
4189 * configure.tgt (x86_tobjs): New variable.
4190 (amd64_tobjs, i386_tobjs): Use it.
4191
b744723f
AA
41922018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4193
4194 * symtab.c (print_symbol_info): Precede the symbol definition by
4195 the line number when available.
4196 * NEWS: Advertise this enhancement.
4197
4a4495d6
MM
41982018-04-13 Markus Metzger <markus.t.metzger@intel.com>
4199
4200 * NEWS (New options): announce set/show record btrace cpu.
4201 * btrace.c: Include record-btrace.h.
4202 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
4203 the vendor is unknown.
4204 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
4205 Maybe overwrite the btrace configuration's cpu.
4206 (btrace_compute_ftrace): Add cpu parameter. Update callers.
4207 (btrace_fetch): Add cpu parameter. Update callers.
4208 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
4209 Maybe overwrite the btrace configuration's cpu. Skip enabling
4210 errata workarounds if the vendor is unknown.
4211 * python/py-record-btrace.c: Include record-btrace.h.
4212 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
4213 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
4214 * record-btrace.c (record_btrace_cpu_state_kind): New.
4215 (record_btrace_cpu): New.
4216 (set_record_btrace_cpu_cmdlist): New.
4217 (record_btrace_get_cpu): New.
4218 (require_btrace_thread, record_btrace_info)
4219 (record_btrace_resume_thread): Call record_btrace_get_cpu.
4220 (cmd_set_record_btrace_cpu_none): New.
4221 (cmd_set_record_btrace_cpu_auto): New.
4222 (cmd_set_record_btrace_cpu): New.
4223 (cmd_show_record_btrace_cpu): New.
4224 (_initialize_record_btrace): Initialize set/show record btrace cpu
4225 commands.
4226 * record-btrace.h (record_btrace_get_cpu): New.
4227
69f90c75
MM
42282018-04-13 Markus Metzger <markus.t.metzger@intel.com>
4229
4230 * record.c (set_record_command): Fix typo in message.
4231
b85310e1
MM
42322018-04-13 Markus Metzger <markus.t.metzger@intel.com>
4233
4234 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
4235
1d509aa6
MM
42362018-04-13 Markus Metzger <markus.t.metzger@intel.com>
4237
4238 * infrun.c (process_event_stop_test): Call
4239 gdbarch_in_indirect_branch_thunk.
4240 * gdbarch.sh (in_indirect_branch_thunk): New.
4241 * gdbarch.c: Regenerated.
4242 * gdbarch.h: Regenerated.
4243 * x86-tdep.h: New.
4244 * x86-tdep.c: New.
4245 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
4246 (HFILES_NO_SRCDIR): Add x86-tdep.h.
4247 (ALLDEPFILES): Add x86-tdep.c.
4248 * arch-utils.h (default_in_indirect_branch_thunk): New.
4249 * arch-utils.c (default_in_indirect_branch_thunk): New.
4250 * i386-tdep: Include x86-tdep.h.
4251 (i386_in_indirect_branch_thunk): New.
4252 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
4253 function.
4254 * amd64-tdep: Include x86-tdep.h.
4255 (amd64_in_indirect_branch_thunk): New.
4256 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
4257
b4be9bfd
JK
42582018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4259
4260 PR gdb/23053
4261 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
4262 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
4263 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
4264 regression.
4265
53d7df28
TT
42662018-04-12 Tom Tromey <tom@tromey.com>
4267
4268 * rust-lang.c (rust_print_struct_def): Remove univariant code.
4269 (rust_evaluate_subexp): Likewise.
4270
70b33f19
PA
42712018-04-12 Pedro Alves <palves@redhat.com>
4272
4273 * procfs.c (procfs_detach): Make forward declaration's prototype
4274 match definition's protototype.
4275 (proc_get_LDT_entry): Remove stale do_cleanups call.
4276
436411b1
PA
42772018-04-12 Pedro Alves <palves@redhat.com>
4278
4279 * target.h (target_ops::to_has_exited): Delete.
4280 (target_has_exited): Delete.
4281 * target-delegates.c: Regenerate.
4282
20db9c52
PA
42832018-04-11 Pedro Alves <palves@redhat.com>
4284
4285 * target.c (fileio_fh_t::t): Add comment.
4286 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
4287 (target_fileio_close): Handle a NULL target.
4288 (invalidate_fileio_fh): New.
4289 (target_close): Call it.
4290 * remote.c (remote_hostio_send_command): No longer check whether
4291 remote_desc is open.
4292
5ff79300
PA
42932018-04-11 Pedro Alves <palves@redhat.com>
4294
4295 * target.c (fileio_fh_t): Make it a named struct instead of a
4296 typedef.
4297 (fileio_fh_t::is_closed): New method.
4298 (DEF_VEC_O (fileio_fh_t)): Remove.
4299 (fileio_fhandles): Now a std::vector.
4300 (is_closed_fileio_fh): Delete.
4301 (acquire_fileio_fd): Adjust. Rename parameters.
4302 (release_fileio_fd): Adjust.
4303 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
4304 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
4305 (target_fileio_close): Adjust.
4306
6e22e10d
SM
43072018-04-10 Simon Marchi <simon.marchi@ericsson.com>
4308
4309 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
4310 index.
4311
731f534f
PA
43122018-04-10 Pedro Alves <palves@redhat.com>
4313
4314 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
4315 (scoped_finish_thread_state): New class.
4316 * infcmd.c (run_command_1): Use it instead of finish_thread_state
4317 cleanup.
4318 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
4319 (fetch_inferior_event, normal_stop): Likewise.
4320 * thread.c (finish_thread_state_cleanup): Delete.
4321
d5f4488f
SM
43222018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4323 Pedro Alves <palves@redhat.com>
4324
4325 * value.c: Include "selftest.h" and "common/array-view.h".
4326 (struct range) <operator ==>: New.
4327 (test_ranges_contain): New.
4328 (check_ranges_vector): New.
4329 (test_insert_into_bit_range_vector): New.
4330 (_initialize_values): Register selftests.
4331 * common/array-view.h (operator==, operator!=): New.
4332
b24531ed
SM
43332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4334
4335 * common/gdb_vecs.h (unordered_remove): Add overload that takes
4336 an iterator.
4337 * inline-frame.c: Include <algorithm>.
4338 (struct inline_state): Add constructor.
4339 (inline_state_s): Remove.
4340 (DEF_VEC_O(inline_state_s)): Remove.
4341 (inline_states): Change type to std::vector.
4342 (find_inline_frame_state): Adjust to std::vector.
4343 (allocate_inline_frame_state): Remove.
4344 (clear_inline_frame_state): Adjust to std::vector.
4345 (skip_inline_frames): Adjust to std::vector.
4346
c252925c
SM
43472018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4348
4349 * tracepoint.h (struct trace_state_variable): Add constructor.
4350 <name>: Change type to std::string.
4351 * tracepoint.c (tsv_s): Remove.
4352 (DEF_VEC_O(tsv_s)): Remove.
4353 (tvariables): Change to std::vector.
4354 (create_trace_state_variable): Adjust to std::vector.
4355 (find_trace_state_variable): Likewise.
4356 (find_trace_state_variable_by_number): Likewise.
4357 (delete_trace_state_variable): Likewise.
4358 (trace_variable_command): Adjust to std::string.
4359 (delete_trace_variable_command): Likewise.
4360 (tvariables_info_1): Adjust to std::vector.
4361 (save_trace_state_variables): Likewise.
4362 (start_tracing): Likewise.
4363 (merge_uploaded_trace_state_variables): Adjust to std::vector
4364 and std::string.
4365 * target.h (struct target_ops)
4366 <to_download_trace_state_variable>: Pass reference to
4367 trace_state_variable.
4368 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
4369 * target-delegates.c: Re-generate.
4370 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
4371 (mi_tsv_deleted): Likewise.
4372 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4373 * remote.c (remote_download_trace_state_variable): Change
4374 pointer to reference and adjust.
4375 * make-target-delegates (parse_argtypes): Handle references.
4376 (write_function_header): Likewise.
4377 (munge_type): Likewise.
4378
c9638d26
SM
43792018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4380
4381 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4382 string_view-selftests.c.
4383 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
4384 testsuite.
4385 * unittests/basic_string_view/cons/char/1.cc: Likewise.
4386 * unittests/basic_string_view/cons/char/2.cc: Likewise.
4387 * unittests/basic_string_view/cons/char/3.cc: Likewise.
4388 * unittests/basic_string_view/element_access/char/1.cc:
4389 Likewise.
4390 * unittests/basic_string_view/element_access/char/empty.cc:
4391 Likewise.
4392 * unittests/basic_string_view/element_access/char/front_back.cc:
4393 Likewise.
4394 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
4395 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
4396 Likewise.
4397 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
4398 Likewise.
4399 * unittests/basic_string_view/modifiers/swap/char/1.cc:
4400 Likewise.
4401 * unittests/basic_string_view/operations/compare/char/1.cc:
4402 Likewise.
4403 * unittests/basic_string_view/operations/compare/char/13650.cc:
4404 Likewise.
4405 * unittests/basic_string_view/operations/copy/char/1.cc:
4406 Likewise.
4407 * unittests/basic_string_view/operations/data/char/1.cc:
4408 Likewise.
4409 * unittests/basic_string_view/operations/find/char/1.cc:
4410 Likewise.
4411 * unittests/basic_string_view/operations/find/char/2.cc:
4412 Likewise.
4413 * unittests/basic_string_view/operations/find/char/3.cc:
4414 Likewise.
4415 * unittests/basic_string_view/operations/find/char/4.cc:
4416 Likewise.
4417 * unittests/basic_string_view/operations/rfind/char/1.cc:
4418 Likewise.
4419 * unittests/basic_string_view/operations/rfind/char/2.cc:
4420 Likewise.
4421 * unittests/basic_string_view/operations/rfind/char/3.cc:
4422 Likewise.
4423 * unittests/basic_string_view/operations/substr/char/1.cc:
4424 Likewise.
4425 * unittests/basic_string_view/operators/char/2.cc: Likewise.
4426 * unittests/string_view-selftests.c: New file.
4427
fdc11678
SM
44282018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4429
4430 * unittests/basic_string_view/capacity/1.cc: New file.
4431 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
4432 * unittests/basic_string_view/cons/char/1.cc: New file.
4433 * unittests/basic_string_view/cons/char/2.cc: New file.
4434 * unittests/basic_string_view/cons/char/3.cc: New file.
4435 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
4436 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
4437 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
4438 * unittests/basic_string_view/element_access/char/1.cc: New file.
4439 * unittests/basic_string_view/element_access/char/2.cc: New file.
4440 * unittests/basic_string_view/element_access/char/empty.cc: New file.
4441 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
4442 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
4443 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
4444 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
4445 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
4446 * unittests/basic_string_view/include.cc: New file.
4447 * unittests/basic_string_view/inserters/char/1.cc: New file.
4448 * unittests/basic_string_view/inserters/char/2.cc: New file.
4449 * unittests/basic_string_view/inserters/char/3.cc: New file.
4450 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
4451 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
4452 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
4453 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
4454 * unittests/basic_string_view/literals/types.cc: New file.
4455 * unittests/basic_string_view/literals/values.cc: New file.
4456 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
4457 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
4458 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
4459 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
4460 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
4461 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
4462 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
4463 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
4464 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
4465 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
4466 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
4467 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
4468 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
4469 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
4470 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
4471 * unittests/basic_string_view/operations/data/char/1.cc: New file.
4472 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
4473 * unittests/basic_string_view/operations/find/char/1.cc: New file.
4474 * unittests/basic_string_view/operations/find/char/2.cc: New file.
4475 * unittests/basic_string_view/operations/find/char/3.cc: New file.
4476 * unittests/basic_string_view/operations/find/char/4.cc: New file.
4477 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
4478 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
4479 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
4480 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
4481 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
4482 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
4483 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
4484 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
4485 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
4486 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
4487 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
4488 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
4489 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
4490 * unittests/basic_string_view/operators/char/2.cc: New file.
4491 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
4492 * unittests/basic_string_view/range_access/char/1.cc: New file.
4493 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
4494 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
4495 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
4496 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
4497 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
4498 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
4499 * unittests/basic_string_view/requirements/typedefs.cc: New file.
4500 * unittests/basic_string_view/typedefs.cc: New file.
4501 * unittests/basic_string_view/types/1.cc: New file.
4502
8345c4a2
SM
45032018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4504
4505 * common/gdb_string_view.h: Remove libstdc++ implementation
4506 details, adjust to gdb reality.
4507 * common/gdb_string_view.tcc: Likewise.
4508 * cli/cli-script.c (struct string_view): Remove.
4509 (user_args) <m_args>: Change element type to gdb::string_view.
4510 (user_args::insert_args): Adjust.
4511
7adcdf08
SM
45122018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4513
4514 * common/gdb_string_view.h: New file.
4515 * common/gdb_string_view.tcc: New file.
4516
41260ac2
SM
45172018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4518
4519 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
4520 * configure: Re-generate.
4521
0bee6dd4
PA
45222018-04-09 Pedro Alves <palves@redhat.com>
4523
4524 * gdbarch.sh: Include "observable.h" instead of "observer.h".
4525 (set_target_gdbarch): Call
4526 gdb::observers::architecture_changed.notify instead of
4527 observer_notify_architecture_changed.
4528
6f14adc5
SM
45292018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4530
4531 * tracepoint.c (struct current_traceframe_cleanup): Remove.
4532 (do_restore_current_traceframe_cleanup): Remove.
4533 (restore_current_traceframe_cleanup_dtor): Remove.
4534 (make_cleanup_restore_current_traceframe): Remove.
4535 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
4536 New.
4537 * tracepoint.h (struct scoped_restore_current_traceframe): New.
4538 * infrun.c (fetch_inferior_event): Use
4539 scoped_restore_current_traceframe.
4540
b2bdb8cf
SM
45412018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4542
4543 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
4544 Remove.
4545 <n_allocated_type_units>: Remove.
4546 <all_type_units>: Change to std::vector.
4547 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
4548 to std::vector change.
4549 (dwarf2_per_objfile::get_cutu): Likewise.
4550 (dwarf2_per_objfile::get_tu): Likewise.
4551 (create_signatured_type_table_from_index): Likewise.
4552 (create_signatured_type_table_from_debug_names): Likewise.
4553 (dw2_symtab_iter_next): Likewise.
4554 (dw2_print_stats): Likewise.
4555 (dw2_expand_all_symtabs): Likewise.
4556 (dw2_expand_marked_cus): Likewise.
4557 (dw2_debug_names_iterator::next): Likewise.
4558 (dwarf2_initialize_objfile): Likewise.
4559 (add_signatured_type_cu_to_table): Likewise.
4560 (create_all_type_units): Likewise.
4561 (add_type_unit): Likewise.
4562 (struct tu_abbrev_offset): Add constructor.
4563 (build_type_psymtabs_1): Adjust to std::vector change.
4564 (print_tu_stats): Likewise.
4565 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
4566 (write_debug_names): Likewise.
4567
b76e467d
SM
45682018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4569
4570 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
4571 Make an std::vector.
4572 <n_comp_units>: Remove.
4573 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
4574 to std::vector change.
4575 (dwarf2_per_objfile::get_cutu): Likewise.
4576 (dwarf2_per_objfile::get_cu): Likewise.
4577 (create_cus_from_index): Likewise.
4578 (create_addrmap_from_index): Likewise.
4579 (create_addrmap_from_aranges): Likewise.
4580 (dwarf2_read_index): Likewise.
4581 (dw2_find_last_source_symtab): Likewise.
4582 (dw2_map_symtabs_matching_filename): Likewise.
4583 (dw2_symtab_iter_next): Likewise.
4584 (dw2_print_stats): Likewise.
4585 (dw2_expand_all_symtabs): Likewise.
4586 (dw2_expand_symtabs_with_fullname): Likewise.
4587 (dw2_expand_marked_cus): Likewise.
4588 (dw2_map_symbol_filenames): Likewise.
4589 (create_cus_from_debug_names): Likewise.
4590 (dwarf2_read_debug_names): Likewise.
4591 (dw2_debug_names_iterator::next): Likewise.
4592 (dwarf2_initialize_objfile): Likewise.
4593 (set_partial_user): Likewise.
4594 (dwarf2_build_psymtabs_hard): Likewise.
4595 (read_comp_units_from_section): Remove arguments, adjust to
4596 std::vector change.
4597 (create_all_comp_units): Adjust to std::vector and
4598 read_comp_units_from_section changes.
4599 (dwarf2_find_containing_comp_unit): Adjust to std::vector
4600 change.
4601 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
4602 (psyms_seen_size): Likewise.
4603 (write_gdbindex): Likewise.
4604 (write_debug_names): Likewise.
4605
12359b5e
SM
46062018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4607
4608 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
4609 with dwarf2_per_objfile.
4610 (create_cus_from_index): Likewise.
4611 (create_signatured_type_table_from_index): Likewise.
4612 (dwarf2_read_index): Likewise.
4613 (dwarf2_initialize_objfile): Likewise.
4614 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
4615 per_cu rather than get_dwarf2_per_objfile.
4616
ff4c9fec
SM
46172018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4618
4619 * dwarf2read.h (struct signatured_type): Forward declare.
4620 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
4621 New methods.
4622 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
4623 (dw2_get_cutu): ...this.
4624 (dwarf2_per_objfile::get_cu): Rename from...
4625 (dw2_get_cu): ...this.
4626 (dwarf2_per_objfile::get_tu): New.
4627 (create_addrmap_from_index): Adjust.
4628 (create_addrmap_from_aranges): Adjust.
4629 (dw2_find_last_source_symtab): Adjust.
4630 (dw2_map_symtabs_matching_filename): Adjust.
4631 (dw2_symtab_iter_next): Adjust.
4632 (dw2_print_stats): Adjust.
4633 (dw2_expand_all_symtabs): Adjust.
4634 (dw2_expand_symtabs_with_fullname): Adjust.
4635 (dw2_expand_marked_cus): Adjust.
4636 (dw_expand_symtabs_matching_file_matcher): Adjust.
4637 (dw2_map_symbol_filenames): Adjust.
4638 (dw2_debug_names_iterator::next): Adjust.
4639 (dwarf2_initialize_objfile): Adjust.
4640 (set_partial_user): Adjust.
4641 (dwarf2_build_psymtabs_hard): Adjust.
4642
5ca3fcb6
SM
46432018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4644
4645 * dwarf2read.c (create_signatured_type_table_from_debug_names):
4646 Remove unused variables.
4647 (dw2_map_symtabs_matching_filename): Likewise.
4648 (dwarf2_record_block_ranges): Likewise.
4649 (dwarf2_read_addr_index): Likewise.
4650 (follow_die_offset): Likewise.
4651
b2e586e8
SM
46522018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4653
4654 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
4655 to symbol_file_add_main.
4656
7c4e78cf
SM
46572018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4658
4659 PR mi/22299
4660 * mi/mi-console.c (do_fputc_async_safe): New.
4661 (mi_console_file::write_async_safe): New.
4662 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
4663 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
4664 New.
4665 * ui-file.c (ui_file::putstrn): Adjust call to
4666 fputstrn_unfiltered.
4667 * utils.c (printchar): Replace do_fputs and do_fprintf
4668 parameters by do_fputc.
4669 (fputstr_filtered): Adjust call to printchar.
4670 (fputstr_unfiltered): Likewise.
4671 (fputstrn_filtered): Likewise.
4672 (fputstrn_unfiltered): Add do_fputc parameter, pass to
4673 printchar.
4674 * utils.h (do_fputc_ftype): New typedef.
4675 (fputstrn_unfiltered): Add do_fputc parameter.
4676
5dc026d3
SM
46772018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4678
4679 * regformats/i386/i386-avx.dat: Remove.
4680
c912f608
SM
46812018-04-07 Simon Marchi <simon.marchi@ericsson.com>
4682
4683 PR gdb/22979
4684 * amd64-tdep.c (amd64_none_init_abi): New function.
4685 (amd64_x32_none_init_abi): New function.
4686 (_initialize_amd64_tdep): Register handlers for x86-64 and
4687 x64_32 with GDB_OSABI_NONE.
4688 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
4689 GDB_OSABI_NONE osabi.
4690
26540402
SM
46912018-04-07 Simon Marchi <simon.marchi@ericsson.com>
4692
4693 PR gdb/22980
4694 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
4695 GDB_OSABI_NONE.
4696 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
4697 * osabi.c (gdb_osabi_names): Add "unknown" entry.
4698
9018be22
SM
46992018-04-07 Simon Marchi <simon.marchi@ericsson.com>
4700
4701 * common/byte-vector.h (char_vector): New type.
4702 * target.h (target_read_alloc): Return
4703 gdb::optional<byte_vector>.
4704 (target_read_stralloc): Return gdb::optional<char_vector>.
4705 (target_get_osdata): Return gdb::optional<char_vector>.
4706 * target.c (target_read_alloc_1): Templatize. Replacement
4707 manual memory management with vector.
4708 (target_read_alloc): Change return type, adjust.
4709 (target_read_stralloc): Change return type, adjust.
4710 (target_get_osdata): Change return type, adjust.
4711 * auxv.c (struct auxv_info) <length>: Remove.
4712 <data>: Change type to gdb::optional<byte_vector>.
4713 (auxv_inferior_data_cleanup): Free auxv_info with delete.
4714 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
4715 (target_auxv_search): Adjust.
4716 (fprint_target_auxv): Adjust.
4717 * avr-tdep.c (avr_io_reg_read_command): Adjust.
4718 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
4719 (linux_make_corefile_notes): Adjust.
4720 * osdata.c (get_osdata): Adjust.
4721 * remote.c (remote_get_threads_with_qxfer): Adjust.
4722 (remote_memory_map): Adjust.
4723 (remote_traceframe_info): Adjust.
4724 (btrace_read_config): Adjust.
4725 (remote_read_btrace): Adjust.
4726 (remote_pid_to_exec_file): Adjust.
4727 * solib-aix.c (solib_aix_get_library_list): Adjust.
4728 * solib-dsbt.c (decode_loadmap): Don't free buf.
4729 (dsbt_get_initial_loadmaps): Adjust.
4730 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
4731 * solib-target.c (solib_target_current_sos): Adjust.
4732 * tracepoint.c (sdata_make_value): Adjust.
4733 * xml-support.c (xinclude_start_include): Adjust.
4734 (xml_fetch_content_from_file): Adjust.
4735 * xml-support.h (xml_fetch_another): Change return type.
4736 (xml_fetch_content_from_file): Change return type.
4737 * xml-syscall.c (xml_init_syscalls_info): Adjust.
4738 * xml-tdesc.c (file_read_description_xml): Adjust.
4739 (fetch_available_features_from_target): Change return type.
4740 (target_fetch_description_xml): Adjust.
4741 (target_read_description_xml): Adjust.
4742
14c88955
TT
47432018-04-06 Tom Tromey <tom@tromey.com>
4744
4745 * value.c (~value): Update.
4746 (struct value) <contents>: Now unique_xmalloc_ptr.
4747 (value_contents_bits_eq, allocate_value_contents)
4748 (value_contents_raw, value_contents_all_raw)
4749 (value_contents_for_printing, value_contents_for_printing_const)
4750 (set_value_enclosing_type): Update.
4751
0c7e6dd8
TT
47522018-04-06 Tom Tromey <tom@tromey.com>
4753
4754 * value.c (range_s): Remove typedef, VEC.
4755 (struct range): Add operator<.
4756 (range_lessthan): Remove.
4757 (ranges_contain): Change type.
4758 (~value): Update.
4759 (struct value) <unavailable, optimized_out>: Now std::vector.
4760 (value_entirely_available)
4761 (value_entirely_covered_by_range_vector)
4762 (value_entirely_unavailable, value_entirely_optimized_out):
4763 Update.
4764 (insert_into_bit_range_vector): Change argument type.
4765 (find_first_range_overlap): Likewise.
4766 (struct ranges_and_idx, value_contents_bits_eq)
4767 (require_not_optimized_out, require_available): Update.
4768 (ranges_copy_adjusted): Change argument types.
4769 (value_optimized_out, value_copy, value_fetch_lazy): Update.
4770
2c8331b9
TT
47712018-04-06 Tom Tromey <tom@tromey.com>
4772
4773 * value.c (~value): Update.
4774 (struct value) <parent>: Now a value_ref_ptr.
4775 (value_parent, set_value_parent, value_address, value_copy):
4776 Update.
4777
466ce3ae
TT
47782018-04-06 Tom Tromey <tom@tromey.com>
4779
4780 * value.c (struct value): Add constructor, destructor, and member
4781 initializers.
4782 (allocate_value_lazy, value_decref): Update.
4783
062d818d
TT
47842018-04-06 Tom Tromey <tom@tromey.com>
4785
4786 * value.c (struct value) <released, next>: Remove.
4787 (all_values): Now a std::vector.
4788 (allocate_value_lazy): Update.
4789 (value_next): Remove.
4790 (value_mark, value_free_to_mark, release_value)
4791 (value_release_to_mark): Update.
4792
a6535de1
TT
47932018-04-06 Tom Tromey <tom@tromey.com>
4794
4795 * value.h (fetch_subexp_value, value_release_to_mark): Update.
4796 (free_value_chain): Remove.
4797 * value.c (free_value_chain): Remove.
4798 (value_release_to_mark): Return a std::vector.
4799 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
4800 std::vector.
4801 (check_condition): Update.
4802 * eval.c (fetch_subexp_value): Change "val_chain" to a
4803 std::vector.
4804 * breakpoint.c (update_watchpoint): Update.
4805 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
4806
b5621201
TT
48072018-04-06 Tom Tromey <tom@tromey.com>
4808
4809 * value.h (free_all_values): Remove.
4810 * value.c (free_all_values): Remove.
4811
4d0266a0
TT
48122018-04-06 Tom Tromey <tom@tromey.com>
4813
4814 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
4815 (value_history_chain, value_history_count): Remove.
4816 (value_history): New global.
4817 (record_latest_value, access_value_history, show_values)
4818 (preserve_values): Update.
4819
b4d61099
TT
48202018-04-06 Tom Tromey <tom@tromey.com>
4821
4822 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
4823 * varobj.c (varobj_set_display_format, varobj_set_value)
4824 (install_default_visualizer, construct_visualizer)
4825 (install_new_value, ~varobj, varobj_get_value_type)
4826 (my_value_of_variable, varobj_editable_p): Update.
4827 * c-varobj.c (c_describe_child, c_value_of_variable)
4828 (cplus_number_of_children, cplus_describe_child): Update.
4829 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
4830 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
4831 (ada_value_of_variable, ada_value_is_changeable_p): Update.
4832
9b558729
TT
48332018-04-06 Tom Tromey <tom@tromey.com>
4834
4835 * printcmd.c (last_examine_address): Change type to
4836 value_ref_ptr.
4837 (do_examine, x_command): Update.
4838
850645cf
TT
48392018-04-06 Tom Tromey <tom@tromey.com>
4840
4841 * value.c (release_value): Update.
4842 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
4843 (struct bpstats) <val>: Now a value_ref_ptr.
4844 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
4845 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
4846 (~watchpoint, print_it_watchpoint, watch_command_1)
4847 (invalidate_bp_value_on_memory_change): Update.
4848
22bc8444
TT
48492018-04-06 Tom Tromey <tom@tromey.com>
4850
4851 * varobj.c (varobj_clear_saved_item)
4852 (update_dynamic_varobj_children, install_new_value, ~varobj):
4853 Update.
4854 * value.h (value_incref): Move declaration earlier.
4855 (value_decref): Rename from value_free.
4856 (struct value_ref_policy): New.
4857 (value_ref_ptr): New typedef.
4858 (struct value_deleter): Remove.
4859 (gdb_value_up): Remove typedef.
4860 (release_value): Change return type.
4861 (release_value_or_incref): Remove.
4862 * value.c (set_value_parent): Update.
4863 (value_incref): Change return type.
4864 (value_decref): Rename from value_free.
4865 (value_free_to_mark, free_all_values, free_value_chain): Update.
4866 (release_value): Return value_ref_ptr.
4867 (release_value_or_incref): Remove.
4868 (record_latest_value, set_internalvar, clear_internalvar):
4869 Update.
4870 * stack.c (info_frame_command): Don't call value_free.
4871 * python/py-value.c (valpy_dealloc, valpy_new)
4872 (value_to_value_object): Update.
4873 * printcmd.c (do_examine): Update.
4874 * opencl-lang.c (lval_func_free_closure): Update.
4875 * mi/mi-main.c (register_changed_p): Don't call value_free.
4876 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
4877 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
4878 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
4879 value_free.
4880 * guile/scm-value.c (vlscm_free_value_smob)
4881 (vlscm_scm_from_value): Update.
4882 * frame.c (frame_register_unwind, frame_unwind_register_signed)
4883 (frame_unwind_register_unsigned, get_frame_register_bytes)
4884 (put_frame_register_bytes): Don't call value_free.
4885 * findvar.c (address_from_register): Don't call value_free.
4886 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
4887 * dwarf2loc.c (entry_data_value_free_closure)
4888 (value_of_dwarf_reg_entry, free_pieced_value_closure)
4889 (dwarf2_evaluate_loc_desc_full): Update.
4890 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
4891 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
4892 (~watchpoint, watch_command_1)
4893 (invalidate_bp_value_on_memory_change): Update.
4894 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
4895
7f8a5d38
SM
48962018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
4897
4898 PR gdb/23022
4899 * warning.m4: Add -Wno-error=deprecated-register.
4900 * configure: Re-generate.
4901
8a76bd3b
TT
49022018-04-05 Tom Tromey <tom@tromey.com>
4903
4904 * linespec.h: Remove include of "vec.h".
4905
8e8d776e
TT
49062018-04-05 Tom Tromey <tom@tromey.com>
4907
4908 * linespec.c (typep): Remove typedef.
4909 (find_methods, find_superclass_methods): Take a std::vector.
4910 (find_method): Use std::vector.
4911
9b2f8581
TT
49122018-04-05 Tom Tromey <tom@tromey.com>
4913
4914 * utils.c (compare_strings): Remove.
4915 * utils.h (compare_strings): Remove.
4916 * objc-lang.h (find_imps): Update.
4917 * objc-lang.c (find_methods): Take a std::vector.
4918 (uniquify_strings, find_imps): Likewise.
4919 * linespec.c (find_methods): Take a std::vector.
4920 (decode_objc): Use std::vector.
4921 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
4922 a std::vector.
4923 (find_method, find_function_symbols): Use std::vector.
4924
459a2e4c
TT
49252018-04-05 Tom Tromey <tom@tromey.com>
4926
4927 * completer.c (completion_tracker::completion_tracker): Remove
4928 cast.
4929 (completion_tracker::discard_completions): Likewise.
4930 * breakpoint.c (ambiguous_names_p): Remove cast.
4931 * ada-lang.c (_initialize_ada_language): Remove cast.
4932 * utils.h (streq): Update.
4933 (streq_hash): Add new declaration.
4934 * utils.c (streq): Return bool.
4935 (streq_hash): New function.
4936
9be2c17a
TT
49372018-04-05 Tom Tromey <tom@tromey.com>
4938
4939 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
4940 Remove a string copy.
4941
f73c6ece
TT
49422018-04-05 Tom Tromey <tom@tromey.com>
4943
4944 * linespec.c (filter_results): Use std::vector.
4945 (decode_line_2, decode_line_full): Update.
4946
53a0f8a2
TT
49472018-04-05 Tom Tromey <tom@tromey.com>
4948
4949 * linespec.c (canonical_to_fullform): Return std::string.
4950 (filter_results): Update.
4951 (struct decode_line_2_item): Add constructor.
4952 <fullform, displayform>: Now std::string.
4953 (decode_line_2_compare_items): Now a std::sort comparator.
4954 (decode_line_2): Update.
4955
a5b5adf5
TT
49562018-04-05 Tom Tromey <tom@tromey.com>
4957
4958 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
4959 (unexpected_linespec_error): Update.
4960 (linespec_parse_basic, parse_linespec): Update.
4961
6a307fc5
TT
49622018-04-05 Tom Tromey <tom@tromey.com>
4963
4964 * linespec.c (linespec_parse_basic): Reindent.
4965
41c1efc6
TT
49662018-04-05 Tom Tromey <tom@tromey.com>
4967
4968 * minsyms.h (iterate_over_minimal_symbols): Update.
4969 * minsyms.c (iterate_over_minimal_symbols): Take a
4970 gdb::function_view.
4971 * linespec.c (struct collect_minsyms): Remove.
4972 (compare_msyms): Now a std::sort comparator.
4973 (add_minsym): Add parameters.
4974 (search_minsyms_for_name): Update. Use std::vector.
4975
c5edbf3d
TT
49762018-04-03 Tom Tromey <tom@tromey.com>
4977
4978 * mipsread.c (read_alphacoff_dynamic_symtab): Use
4979 gdb::byte_vector.
4980
b39efc48
WP
49812018-04-02 Weimin Pan <weimin.pan@oracle.com>
4982
4983 * MAINTAINERS (Write After Approval): Add Weimin Pan.
4984
121ad66c 49852018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
4986
4987 PR gdb/16959
4988 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
4989 printing static type.
4990
09473be8
TT
49912018-04-01 Tom Tromey <tom@tromey.com>
4992
4993 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
4994 (rs6000_xfer_shared_libraries): Update.
4995
ec1f2d91
SM
49962018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
4997
4998 * common/gdb_vecs.h (char_ptr): Remove.
4999 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
5000
d8611974
SM
50012018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
5004 with std::vector.
5005 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
5006
a18ba4e4
SM
50072018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5008
5009 * tracepoint.h (struct uploaded_tp): Initialize fields.
5010 <actions, step_actions, cmd_strings>: Change type to
5011 std::vector<char *>.
5012 * tracepoint.c (get_uploaded_tp): Allocate with new.
5013 (free_uploaded_tps): Free with delete.
5014 (parse_tracepoint_definition): Adjust to std::vector change.
5015 * breakpoint.c (read_uploaded_action): Likewise.
5016 (create_tracepoint_from_upload): Likewise.
5017 * ctf.c (ctf_write_uploaded_tp): Likewise.
5018 (SET_ARRAY_FIELD): Likewise.
5019 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
5020
a7961323
TT
50212018-03-30 Tom Tromey <tom@tromey.com>
5022
5023 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
5024 std::unique_ptr.
5025 (svr4_keep_data_in_core): Update.
5026 (svr4_read_so_list): Update.
5027
e83e4e24
TT
50282018-03-30 Tom Tromey <tom@tromey.com>
5029
5030 * windows-nat.c (handle_output_debug_string, handle_exception):
5031 Update.
5032 * target.h (target_read_string): Update.
5033 * target.c (target_read_string): Change "string" to
5034 unique_xmalloc_ptr.
5035 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5036 Update.
5037 * solib-frv.c (frv_current_sos): Update.
5038 * solib-dsbt.c (dsbt_current_sos): Update.
5039 * solib-darwin.c (darwin_current_sos): Update.
5040 * linux-thread-db.c (inferior_has_bug): Update.
5041 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
5042 Update. Remove alloca.
5043 * ada-lang.c (ada_main_name): Update.
5044
263db9a1
TT
50452018-03-30 Tom Tromey <tom@tromey.com>
5046
5047 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
5048 (struct dwo_file_deleter): New.
5049 (dwo_file_up): New typedef.
5050 (open_and_init_dwo_file): Use dwo_file_up.
5051 (free_dwo_file_cleanup): Remove.
5052
5dafb3d1
TT
50532018-03-30 Tom Tromey <tom@tromey.com>
5054
5055 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
5056 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
5057
11ed8cad
TT
50582018-03-30 Tom Tromey <tom@tromey.com>
5059
5060 * dwarf2read.c (class free_cached_comp_units): New class.
5061 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
5062 (free_cached_comp_units): Remove function.
5063
9ae79dac
TT
50642018-03-30 Tom Tromey <tom@tromey.com>
5065
5066 * utils.h (make_cleanup_unpush_target): Remove.
5067 * inf-ptrace.c (struct target_unpusher): New.
5068 (target_unpush_up) New typedef.
5069 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
5070 target_unpush_up.
5071 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
5072
5aa89276
TT
50732018-03-27 Tom Tromey <tom@tromey.com>
5074
5075 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
5076
1dbeed45
TT
50772018-03-27 Pedro Alves <palves@redhat.com>
5078 Tom Tromey <tom@tromey.com>
5079
5080 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
5081 destructor. Now a class.
5082 (gdb_readline_wrapper_cleanup): Remove function.
5083 (gdb_readline_wrapper): Remove cleanups.
5084
c819b2c0
TT
50852018-03-27 Tom Tromey <tom@tromey.com>
5086
5087 * typeprint.h (struct type_print_options) <local_typedefs,
5088 global_typedefs>: Remove "struct" keyword.
5089 (class typedef_hash_table): New class.
5090 (recursively_update_typedef_hash, add_template_parameters)
5091 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
5092 (find_typedef_in_hash): Don't declare.
5093 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
5094 (typedef_hash_table::recursively_update): Rename from
5095 recursively_update_typedef_hash. Now a member.
5096 (typedef_hash_table::add_template_parameters): Rename from
5097 add_template_parameters. Now a member.
5098 (typedef_hash_table::typedef_hash_table): Now a constructor;
5099 rename from create_typedef_hash.
5100 (typedef_hash_table::~typedef_hash_table): Now a destructor;
5101 rename from free_typedef_hash.
5102 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
5103 (do_free_global_table): Remove.
5104 (typedef_hash_table::typedef_hash_table): New constructor; renamed
5105 from copy_type_recursive.
5106 (create_global_typedef_table): Remove.
5107 (typedef_hash_table::find_global_typedef): Now a member of
5108 typedef_hash_table.
5109 (typedef_hash_table::find_typedef): Rename from
5110 find_typedef_in_hash; now a member.
5111 (whatis_exp): Update.
5112 * extension.h (struct ext_lang_type_printers): Add constructor and
5113 destructor.
5114 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
5115 declare.
5116 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
5117 Now a constructor; rename from start_ext_lang_type_printers.
5118 (ext_lang_type_printers): Now a destructor; rename from
5119 free_ext_lang_type_printers.
5120 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
5121 Update.
5122 (c_type_print_base_struct_union): Update. Remove cleanups.
5123
608219fb
TT
51242018-03-27 Tom Tromey <tom@tromey.com>
5125
5126 * dwarf-index-write.c: Include <cmath>.
5127
3fcded8f
JB
51282018-03-27 Joel Brobecker <brobecker@adacore.com>
5129
5130 * NEWS: Add entry describing new "set|show varsize-limit" command.
5131 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
5132 command.
5133 * printcmd.c (_initialize_printcmd): Add "set var" alias of
5134 "set variable".
5135
cd4fb1b2
SM
51362018-03-27 Simon Marchi <simon.marchi@ericsson.com>
5137
5138 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
5139 dwarf-index-write.c
5140 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
5141 * dwarf-index-common.c: New file.
5142 * dwarf-index-common.h: New file.
5143 * dwarf-index-write.c: New file.
5144 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
5145 (struct dwarf2_section_info): Move from here.
5146 (dwarf2_section_info_def): Likewise.
5147 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
5148 (offset_type): Likewise.
5149 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
5150 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
5151 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
5152 (byte_swap): Likewise.
5153 (MAYBE_SWAP): Likewise.
5154 (dwarf2_per_cu_ptr): Likewise.
5155 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
5156 (struct tu_stats): Likewise.
5157 (struct dwarf2_per_objfile): Likewise.
5158 (struct dwarf2_per_cu_data): Likewise.
5159 (struct signatured_type): Likewise.
5160 (sig_type_ptr): Likewise.
5161 (DEF_VEC_P (sig_type_ptr)): Likewise.
5162 (INDEX4_SUFFIX): Likewise.
5163 (INDEX5_SUFFIX): Likewise.
5164 (DEBUG_STR_SUFFIX): Likewise.
5165 (dwarf2_read_section): Make non-static.
5166 (mapped_index_string_hash): Move from here.
5167 (dwarf5_djb_hash): Likewise.
5168 (file_write): Likewise.
5169 (class data_buf): Likewise.
5170 (struct symtab_index_entry): Likewise.
5171 (struct mapped_symtab): Likewise.
5172 (find_slot): Likewise.
5173 (hash_expand): Likewise.
5174 (add_index_entry): Likewise.
5175 (uniquify_cu_indices): Likewise.
5176 (class c_str_view): Likewise.
5177 (class c_str_view_hasher): Likewise.
5178 (class vector_hasher): Likewise.
5179 (write_hash_table): Likewise.
5180 (psym_index_map): Likewise.
5181 (struct addrmap_index_data): Likewise.
5182 (add_address_entry): Likewise.
5183 (add_address_entry_worker): Likewise.
5184 (write_address_map): Likewise.
5185 (symbol_kind): Likewise.
5186 (write_psymbols): Likewise.
5187 (struct signatured_type_index_data): Likewise.
5188 (write_one_signatured_type): Likewise.
5189 (recursively_count_psymbols): Likewise.
5190 (recursively_write_psymbols): Likewise.
5191 (class debug_names): Likewise.
5192 (check_dwarf64_offsets): Likewise.
5193 (psyms_seen_size): Likewise.
5194 (write_gdbindex): Likewise.
5195 (write_debug_names): Likewise.
5196 (assert_file_size): Likewise.
5197 (write_psymtabs_to_index): Likewise.
5198 (save_gdb_index_command): Likewise.
5199 (_initialize_dwarf2_read): Don't register the "save gdb-index"
5200 command.
5201 * dwarf2read.h: New file.
5202
59cc4834
JB
52032018-03-27 Joel Brobecker <brobecker@adacore.com>
5204
5205 PR gdb/22670
5206 * dwarf2read.c (dwarf2_physname): Do not return the demangled
5207 symbol name if the CU's language stores symbol names in linkage
5208 format.
5209 * language.h (struct language_defn)
5210 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
5211 all instances of this struct.
5212
67501539
TT
52132018-03-26 Tom Tromey <tom@tromey.com>
5214
5215 * stack.c (backtrace_command_1): Remove verbose code.
5216
76c939ac
TT
52172018-03-26 Tom Tromey <tom@tromey.com>
5218
5219 * python/py-framefilter.c (py_print_type): Don't catch
5220 exceptions. Return void.
5221 (py_print_value): Likewise.
5222 (py_print_single_arg): Likewise.
5223 (enumerate_args): Don't catch exceptions.
5224 (py_print_args): Likewise.
5225 (py_print_frame): Likewise.
5226 (gdbpy_apply_frame_filter): Catch exceptions here.
5227
9507b29c
TT
52282018-03-26 Tom Tromey <tom@tromey.com>
5229
5230 * stack.c (_initialize_stack): Remove trailing newlines from help
5231 text. Add "Usage" line to "backtrace" help.
5232
eb68e487
TT
52332018-03-26 Tom Tromey <tom@tromey.com>
5234
5235 PR python/16486:
5236 * python/py-framefilter.c (py_print_args): Call wrap_hint.
5237
1f111921
TT
52382018-03-26 Tom Tromey <tom@tromey.com>
5239
5240 * python/py-framefilter.c (py_print_single_arg): Return
5241 EXT_LANG_BT_ERROR from catch.
5242
fb7eb8b5
TT
52432018-03-26 Tom Tromey <tom@tromey.com>
5244
5245 PR backtrace/15584:
5246 * stack.c (backtrace_command_1): Move some code into no-filters
5247 "if".
5248
4ca59a9f
TT
52492018-03-26 Tom Tromey <tom@tromey.com>
5250
5251 * python/py-framefilter.c (throw_quit_or_print_exception): New
5252 function.
5253 (gdbpy_apply_frame_filter): Use it.
5254
92256134
TT
52552018-03-26 Tom Tromey <tom@tromey.com>
5256
5257 PR cli/17716:
5258 * python/py-framefilter.c (py_print_type, py_print_value)
5259 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
5260 RETURN_MASK_ERROR.
5261
7a630bc2
TT
52622018-03-26 Tom Tromey <tom@tromey.com>
5263
5264 * python/py-framefilter.c (enumerate_args): Use
5265 gdb::unique_xmalloc_ptr.
5266
63283d4a
TT
52672018-03-26 Tom Tromey <tom@tromey.com>
5268
5269 * python/py-framefilter.c (py_print_frame): Return
5270 EXT_LANG_BT_OK.
5271 (gdbpy_apply_frame_filter): Update comment.
5272 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
5273 Remove.
5274 <EXT_LANG_BT_NO_FILTERS>: Change value.
5275
978d6c75
TT
52762018-03-26 Tom Tromey <tom@tromey.com>
5277
5278 PR backtrace/15582:
5279 * stack.c (backtrace_command): Parse "hide" argument.
5280 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
5281 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
5282 constant.
5283
1cf7e640
TT
52842018-03-26 Tom Tromey <tom@tromey.com>
5285
5286 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
5287 add "flags".
5288 (backtrace_command): Remove "fulltrace", add "flags".
5289
ea3b0687
TT
52902018-03-26 Tom Tromey <tom@tromey.com>
5291
5292 * stack.c (backtrace_command): Rewrite command line parsing.
5293
9f034d75
SM
52942018-03-26 Simon Marchi <simon.marchi@ericsson.com>
5295
5296 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
5297
ce1459e5
SM
52982018-03-26 Simon Marchi <simon.marchi@ericsson.com>
5299
5300 * filename-seen-cache.h: Add include guard.
5301
4f7ae6f5
KS
53022018-03-26 Keith Seitz <keiths@redhat.com>
5303
5304 * symfile.c (place_section): Remove "struct" from section_addr_info
5305 in comment.
5306 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
5307 "struct" keyword from section_addr_info.
5308
5cd3e386
AH
53092018-03-26 Alan Hayward <alan.hayward@arm.com>
5310
5311 * regformats/regdef.h (reg): Add constructors.
5312
3e5ef9a4
PA
53132018-03-25 Pedro Alves <palves@redhat.com>
5314
5315 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
5316 if then/else bodies in var_func_name extraction.
5317
c88d2fcc 53182018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
5319
5320 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
5321 lookup_minimal_symbol() to find symbol entry.
5322 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
5323
b7fee5a3
KS
53242018-03-23 Keith Seitz <keiths@redhat.com>
5325
5326 PR c++/22968
5327 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
5328 nested type definitions for C++, too.
5329
2cc9b304
TT
53302018-03-23 Tom Tromey <tom@tromey.com>
5331
5332 * machoread.c (struct oso_el): Add a constructor. Don't define as
5333 a typedef.
5334 (macho_register_oso): Remove.
5335 (macho_symtab_read): Take a std::vector.
5336 (oso_el_compare_name): Now a std::sort comparator.
5337 (macho_symfile_read_all_oso): Take a std::vector.
5338 (macho_symfile_read): Use std::vector. Remove cleanups.
5339
a2b2bc12
TT
53402018-03-22 Tom Tromey <tom@tromey.com>
5341
5342 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
5343 (record_full_goto_bookmark): Use std::string.
5344
7a8f494c
PFC
53452018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5346
5347 PR tdep/18295
5348 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
5349 a single mask.
5350
dd6d677f
PFC
53512018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5352
5353 * rs6000-tdep.c (store_insn_p): New function.
5354 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
5355 and cr_reg to their unshifted values. Use store_insn_p to
5356 match LR saves using either R1 or fdata->alloca_reg. Use
5357 store_insn_p to match CR saves. Set alloca_reg_offset
5358 when alloca_reg and framep are set. Remove lr_reg shift
5359 when assigning to fdata->lr_register.
5360
26d6cec4
AA
53612018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5362
5363 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
5364 command line args instead of emitting a warning.
5365
5d9310c4
SM
53662018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * tracepoint.h (struct static_tracepoint_marker): Initialize
5369 fields, define default constructor, move constructor and move
5370 assignment, disable the rest.
5371 <str_id, extra>: Make std::string.
5372 (release_static_tracepoint_marker): Remove.
5373 (free_current_marker): Remove.
5374 * tracepoint.c (free_current_marker): Remove.
5375 (parse_static_tracepoint_marker_definition): Adjust to
5376 std::string, use new hex2str overload.
5377 (release_static_tracepoint_marker): Remove.
5378 (print_one_static_tracepoint_marker): Get marker by reference
5379 and adjust to std::string.
5380 (info_static_tracepoint_markers_command): Adjust to std::vector
5381 changes
5382 * target.h (static_tracepoint_marker_p): Remove typedef.
5383 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
5384 (struct target_ops) <to_static_tracepoint_marker_at>: Return
5385 bool.
5386 <to_static_tracepoint_markers_by_strid>: Return std::vector.
5387 * target-debug.h
5388 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
5389 (target_debug_print_std_vector_static_tracepoint_marker): New.
5390 (target_debug_print_struct_static_tracepoint_marker_p): Rename
5391 to...
5392 (target_debug_print_static_tracepoint_marker_p): ... this.
5393 * target-delegates.c: Re-generate.
5394 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
5395 Make std::string.
5396 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
5397 (decode_static_tracepoint_spec): Adjust to std::vector.
5398 (tracepoint_print_one_detail): Adjust to std::string.
5399 (strace_marker_decode_location): Adjust to std::string.
5400 (update_static_tracepoint): Adjust to std::string, remove call
5401 to release_static_tracepoint_marker.
5402 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5403 Adjust to std::vector.
5404 * remote.c (remote_static_tracepoint_marker_at): Return bool.
5405 (remote_static_tracepoint_markers_by_strid): Adjust to
5406 std::vector.
5407 * common/rsp-low.h (hex2str): New overload with explicit count
5408 of bytes.
5409 * common/rsp-low.c (hex2str): New overload with explicit count
5410 of bytes.
5411 * unittests/rsp-low-selftests.c (test_hex2str): New function.
5412 (_initialize_rsp_low_selftests): Add test_hex2str test.
5413 * unittests/tracepoint-selftests.c
5414 (test_parse_static_tracepoint_marker_definition): Adjust to
5415 std::string.
5416
62c222b6
SM
54172018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
5418
5419 * tracepoint.c (parse_static_tracepoint_marker_definition):
5420 Consider case where the definition is followed by more
5421 definitions.
5422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5423 tracepoint-selftests.c.
5424 * unittests/tracepoint-selftests.c: New.
5425
7eb2418f
PFC
54262018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5427
5428 * MAINTAINERS (Write After Approval): Add Pedro Franco de
5429 Carvalho.
5430
7cbe16e9
SR
54312018-03-20 Stephen Roberts <stephen.roberts@arm.com>
5432
3d6b3b82 5433 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 5434
4ee89e90
SR
54352018-03-20 Stephen Roberts <stephen.roberts@arm.com>
5436
3d6b3b82 5437 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 5438
92630041
TT
54392018-03-19 Tom Tromey <tom@tromey.com>
5440
5441 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
5442 "IDENT" production.
5443
76727919
TT
54442018-03-19 Pedro Alves <palves@redhat.com>
5445 Tom Tromey <tom@tromey.com>
5446
5447 * unittests/observable-selftests.c: New file.
5448 * common/observable.h: New file.
5449 * observable.h: New file.
5450 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
5451 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
5452 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
5453 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
5454 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
5455 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
5456 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
5457 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
5458 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
5459 python/py-breakpoint.c, python/py-finishbreakpoint.c,
5460 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
5461 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
5462 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
5463 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
5464 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
5465 tui/tui-interp.c, valops.c: Update all users.
5466 * tui/tui-hooks.c (tui_bp_created_observer)
5467 (tui_bp_deleted_observer, tui_bp_modified_observer)
5468 (tui_inferior_exit_observer, tui_before_prompt_observer)
5469 (tui_normal_stop_observer, tui_register_changed_observer):
5470 Remove.
5471 (tui_observers_token): New global.
5472 (attach_or_detach, tui_attach_detach_observers): New functions.
5473 (tui_install_hooks, tui_remove_hooks): Use
5474 tui_attach_detach_observers.
5475 * record-btrace.c (record_btrace_thread_observer): Remove.
5476 (record_btrace_thread_observer_token): New global.
5477 * observer.sh: Remove.
5478 * observer.c: Rename to observable.c.
5479 * observable.c (namespace gdb_observers): Define new objects.
5480 (observer_debug): Move into gdb_observers namespace.
5481 (struct observer, struct observer_list, xalloc_observer_list_node)
5482 (xfree_observer_list_node, generic_observer_attach)
5483 (generic_observer_detach, generic_observer_notify): Remove.
5484 (_initialize_observer): Update.
5485 Don't include observer.inc.
5486 * Makefile.in (generated_files): Remove observer.h, observer.inc.
5487 (clean mostlyclean): Likewise.
5488 (observer.h, observer.inc): Remove targets.
5489 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
5490 (COMMON_SFILES): Use observable.c, not observer.c.
5491 * .gitignore: Remove observer.h.
5492
1cb1f3da
TT
54932018-03-18 Tom Tromey <tom@tromey.com>
5494
5495 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
5496 gdb::def_vector.
5497 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
5498
a06ab151
TT
54992018-03-17 Tom Tromey <tom@tromey.com>
5500
5501 * auto-load.c (auto_load_objfile_script_1): Use std::string.
5502
770623f7
TT
55032018-03-17 Tom Tromey <tom@tromey.com>
5504
5505 * target.c (class scoped_target_fd): New.
5506 (target_fileio_close_cleanup): Remove.
5507 (target_fileio_read_alloc_1): Use scoped_target_fd.
5508
39be3c7e
SM
55092018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * silent-rules.mk: New.
5512 * Makefile.in: Include silent-rules.mk
5513 (srcdir, VPATH, top_srcdir): Move up.
5514 (COMPILE): Add ECHO_CXX.
5515 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
5516 (init.c): Add ECHO_INIT_C.
5517 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5518 (version.c): Add ECHO_GEN.
5519 (printcmd.o): Add ECHO_CXX.
5520 (target-float.o): Add ECHO_CXX.
5521 (ada-exp.o): Add ECHO_CXX.
5522 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
5523 (insight$(EXEEXT)): Add ECHO_CXXLD.
5524 * gnulib/configure.ac: Add AM_SILENT_RULES.
5525 * gnulib/aclocal.m4: Re-generate.
5526 * gnulib/configure: Re-generate.
5527 * gnulib/import/Makefile.in: Re-generate.
5528
37e136b1
TT
55292018-03-16 Tom Tromey <tom@tromey.com>
5530
5531 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
5532 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
5533 * utils.c (do_free_section_addr_info)
5534 (make_cleanup_free_section_addr_info): Remove.
5535 * symfile.h (struct other_sections): Add constructor.
5536 (struct section_addr_info): Remove.
5537 (section_addr_info): New typedef.
5538 (struct sym_fns) <sym_offsets>: Change type of parameter.
5539 (build_section_addr_info_from_objfile)
5540 (relative_addr_info_to_section_offsets, addr_info_make_relative)
5541 (default_symfile_offsets, symbol_file_add)
5542 (symbol_file_add_from_bfd)
5543 (build_section_addr_info_from_section_table): Update.
5544 (alloc_section_addr_info, free_section_addr_info): Don't declare.
5545 * symfile.c (alloc_section_addr_info): Remove.
5546 (build_section_addr_info_from_section_table): Change return type.
5547 Update.
5548 (build_section_addr_info_from_bfd)
5549 (build_section_addr_info_from_objfile): Likewise.
5550 (free_section_addr_info): Remove.
5551 (relative_addr_info_to_section_offsets): Change type of "addrs".
5552 (addrs_section_compar): Now a std::sort comparator.
5553 (addrs_section_sort): Change return type.
5554 (addr_info_make_relative): Change type of "addrs". Update.
5555 (default_symfile_offsets, syms_from_objfile_1)
5556 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
5557 (symbol_file_add_separate): Update.
5558 (symbol_file_add): Change type of "addrs". Update.
5559 (add_symbol_file_command): Update. Remove cleanups.
5560 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
5561 cleanups.
5562 * symfile-debug.c (debug_sym_offsets): Change type of "info".
5563 * solib.c (solib_read_symbols): Update.
5564 * objfiles.c (objfile_relocate): Update. Remove cleanups.
5565 * machoread.c (macho_symfile_offsets): Update.
5566 * jit.c (jit_bfd_try_read_symtab): Update.
5567
03afa6ef
SM
55682018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5571 unittests/utils-selftests.c.
5572 * unittests/utils-selftests.c: New file.
5573
3ae9ce5d
TT
55742018-03-14 Tom Tromey <tom@tromey.com>
5575
5576 PR cli/14977:
5577 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
5578 for NULL.
5579
b8c2339b
TT
55802018-03-14 Tom Tromey <tom@tromey.com>
5581
5582 PR cli/19918:
5583 * printcmd.c (printf_pointer): Allow "-" in format.
5584
80ae639d
TT
55852018-03-14 Tom Tromey <tom@tromey.com>
5586
5587 * printcmd.c (_initialize_printcmd): Add usage to printf.
5588
0d671d99
YQ
55892018-03-14 Yao Qi <qiyao@sourceware.org>
5590
5591 * MAINTAINERS: Update my email address.
5592
b577b6af
TT
55932018-03-13 Tom Tromey <tom@tromey.com>
5594
5595 * machoread.c (macho_check_dsym): Change filenamep to a
5596 std::string*.
5597 (macho_symfile_read): Update.
5598 * symfile.c (load_command): Use std::string.
5599
89a3b63e
AB
56002018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
5601
5602 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
5603 to error message string.
5604 (riscv_register_name): Use xsnprintf instead of sprintf.
5605 (riscv_insn::fetch_instruction): Use gdb_assert instead of
5606 internal_error.
5607 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
5608 error.
5609 (riscv_push_dummy_call): Likewise.
5610
984c7238
TT
56112018-03-12 Tom Tromey <tom@tromey.com>
5612
5613 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
5614 Use gdb::byte_vector.
5615 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
5616
933522d1
YQ
56172018-03-12 Yao Qi <yao.qi@linaro.org>
5618
5619 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
5620 parameter type to readable_regcache.
5621 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
5622 the declaration.
5623
be2daae6
TT
56242018-03-11 Tom Tromey <tom@tromey.com>
5625
5626 * dwarf2read.c (struct nextfield): Add initializers.
5627 (struct nextfnfield): Remove.
5628 (struct fnfieldlist): Add initializers. Remove "length" and
5629 "head", use std::vector.
5630 (struct decl_field_list): Remove.
5631 (struct field_info): Add initializers.
5632 <fields, baseclasses>: Now std::vector.
5633 <nbaseclasses, nfnfields, typedef_field_list_count,
5634 nested_types_list_count>: Remove.
5635 (dwarf2_add_field, dwarf2_add_type_defn)
5636 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
5637 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
5638 (process_structure_scope): Update.
5639
484cf504
TT
56402018-03-11 Tom Tromey <tom@tromey.com>
5641
5642 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
5643 for use by std::sort.
5644 (build_type_psymtabs_1): Use std::vector.
5645
9bd8e0b0
EZ
56462018-03-09 Eli Zaretskii <eliz@gnu.org>
5647
5648 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
5649 and LIBMPFR in the printed configuration.
5650
5dc1a704
TT
56512018-03-08 Tom Tromey <tom@tromey.com>
5652
5653 * source.c (get_filename_and_charpos): Use scoped_fd.
5654 * nto-procfs.c (procfs_open_1): Use scoped_fd.
5655 (procfs_pidlist): Likewise.
5656 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
5657 (iterate_over_mappings): Likewise.
5658
fdf07f3a
TT
56592018-03-08 Tom Tromey <tom@tromey.com>
5660
5661 * infcall.c (struct call_return_meta_info)
5662 <stack_temporaries_enabled>: Remove.
5663 (get_call_return_value, call_function_by_hand_dummy): Update.
5664 * thread.c (disable_thread_stack_temporaries): Remove.
5665 (enable_thread_stack_temporaries): Remove.
5666 (thread_stack_temporaries_enabled_p): Return bool.
5667 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
5668 (get_last_thread_stack_temporary): Update.
5669 * eval.c (evaluate_subexp): Update.
5670 * gdbthread.h (class enable_thread_stack_temporaries): Now a
5671 class, not a function.
5672 (value_ptr, value_vec): Remove typedefs.
5673 (class thread_info) <stack_temporaries_enabled>: Now bool.
5674 <stack_temporaries>: Now a std::vector.
5675 (thread_stack_temporaries_enabled_p)
5676 (value_in_thread_stack_temporaries): Return bool.
5677
567a3e54
SM
56782018-03-08 Simon Marchi <simon.marchi@ericsson.com>
5679
5680 * remote.c (putpkt_binary): Fix omitted bytes reporting.
5681 (getpkt_or_notif_sane_1): Likewise.
5682
00b40057
SM
56832018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5684
5685 * build-id.c (build_id_to_debug_bfd): Use std::string.
5686
a8dbfd58
SM
56872018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5688
5689 * build-id.c (find_separate_debug_file_by_buildid): Return
5690 std::string.
5691 * build-id.h (find_separate_debug_file_by_buildid): Return
5692 std::string.
5693 * coffread.c (coff_symfile_read): Adjust to std::string.
5694 * elfread.c (elf_symfile_read): Adjust to std::string.
5695 * symfile.c (separate_debug_file_exists): Change parameter to
5696 std::string.
5697 (find_separate_debug_file): Return std::string.
5698 (find_separate_debug_file_by_debuglink): Return std::string.
5699 * symfile.h (find_separate_debug_file_by_debuglink): Return
5700 std::string.
5701
e6a58aa8
SM
57022018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5703
5704 * common/xml-utils.c (xml_escape_text): Move code to...
5705 (xml_escape_text_append): ... this new function.
5706 * common/xml-utils.h (xml_escape_text_append): New declaration.
5707 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
5708 New function.
5709 (_initialize_xml_utils): register test_xml_escape_text_append as
5710 a selftest.
5711
4ef0bef6
AH
57122018-03-07 Alan Hayward <alan.hayward@arm.com>
5713
5714 * defs.h: Remove MAX_REGISTER_SIZE.
5715 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
5716 asserts.
5717 * python/py-unwind.c (pyuw_sniffer): Likewise.
5718
e0d3522b
TT
57192018-03-07 Tom Tromey <tom@tromey.com>
5720
5721 * linux-tdep.c (linux_info_proc): Update.
5722 * target.h (struct target_ops) <to_fileio_readlink>: Return
5723 optional<string>.
5724 (target_fileio_readlink): Return optional<string>.
5725 * remote.c (remote_hostio_readlink): Return optional<string>.
5726 * inf-child.c (inf_child_fileio_readlink): Return
5727 optional<string>.
5728 * target.c (target_fileio_readlink): Return optional<string>.
5729
ea005f31
AB
57302018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
5731
5732 * regcache.c (cooked_read_test): Add riscv to the list of
5733 architectures that have a save_reggroup.
5734
e95a97d4
AA
57352018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
5736
5737 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
5738 value is not a dynamic class object.
5739
d8344f3d
TT
57402018-03-06 Tom Tromey <tom@tromey.com>
5741
5742 * rust-exp.y: Formatting fixes.
5743
9add17f2
AB
57442018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5745
5746 * riscv-tdep.c (riscv_register_name): Remove target description
5747 support.
5748 (riscv_gdbarch_init): Remove target description check.
5749
c9486dfe
AB
57502018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5751
5752 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
5753 comment.
5754 * riscv-tdep.h: Likewise.
5755
d74aff3d
AB
57562018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
5759 (riscv_pseudo_register_write): Delete.
5760 (riscv_gdbarch_init): Remove all use of pseudo registers.
5761
7ea78b59
SM
57622018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
5763
5764 * record-btrace.c (btrace_print_lines): Replace cleanup
5765 parameter with RAII equivalents.
5766 (btrace_insn_history): Replace cleanup with RAII equivalents.
5767 * ui-out.h (make_cleanup_ui_out_list_begin_end,
5768 make_cleanup_ui_out_tuple_begin_end): Remove.
5769 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
5770 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
5771 make_cleanup_ui_out_list_begin_end): Remove.
5772
53127008
SM
57732018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
5774
5775 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
5776 parameter types to std::vector. Use bool.
5777 (record_btrace_wait): Replace VEC(tp_t) with
5778 std::vector<thread_info *>.
5779 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
5780
228f1508
SM
57812018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * record-btrace.c (record_btrace_disable_callback): Remove.
5784 (struct scoped_btrace_disable): New.
5785 (record_btrace_open): Use scoped_btrace_disable.
5786
b2970c23
AB
57872018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5788
5789 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
5790 reading values from registers.
5791
fb294655
AB
57922018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
5795 where appropriate.
5796
cab5bb9d
AB
57972018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5798
5799 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
5800 change parameter type. Use GDB's print functions, and use
5801 core_addr_to_string where appropriate.
5802 (riscv_push_dummy_call): Use core_addr_to_string where
5803 appropriate, update call to riscv_print_arg_location, and reindent
5804 a few lines.
5805 (riscv_return_value): Update call to riscv_print_arg_location.
5806
dbbb1059
AB
58072018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5808 Tim Newsome <tim@sifive.com>
5809 Albert Ou <a0u@eecs.berkeley.edu>
5810 Darius Rad <darius@bluespec.com>
5811
5812 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
5813 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
5814 (ALLDEPFILES): Add riscv-tdep.c
5815 * configure.tgt: Add riscv support.
5816 * riscv-tdep.c: New file.
5817 * riscv-tdep.h: New file.
5818 * NEWS: Mention new target.
5819 * MAINTAINERS: Add entry for riscv.
5820
5dc43913
AB
58212018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5822
5823 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
5824 fields within aggregates.
5825
3dea1ef7
SM
58262018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * record-btrace.c (btrace_print_lines): Change type of flags to
5829 gdb_disassembly_flags.
5830
7efba073
JB
58312018-03-04 John Baldwin <jhb@FreeBSD.org>
5832
5833 * fbsd-nat.c: Include "inf-ptrace.h".
5834 (USE_SIGTRAP_SIGINFO): Conditionally define.
5835 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
5836 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
5837 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
5838 function.
5839 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
5840 Likewise.
5841 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
5842 Likewise.
5843 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
5844 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
5845 "supports_stopped_by_hw_breakpoint" target methods.
5846
386a8676
JB
58472018-03-04 John Baldwin <jhb@FreeBSD.org>
5848
5849 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
5850 * fbsd-nat.c (debug_fbsd_nat): New variable.
5851 (show_fbsd_nat_debug): New function.
5852 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
5853 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
5854
12279366
JB
58552018-03-04 John Baldwin <jhb@FreeBSD.org>
5856
5857 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
5858 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
5859 prototype.
5860 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
5861 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
5862 method.
5863
54693cf5
SM
58642018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
5867 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
5868
ccb2231c
SM
58692018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5870
5871 * charset.c (struct charset_vector): New.
5872 (charsets): Change type to charset_vector.
5873 (find_charset_names): Adjust.
5874 (add_one): Adjust.
5875 (_initialize_charset): Adjust.
5876
6fb16ce6
SM
58772018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * progspace.h (struct program_space) <deleted_solibs>: Change
5880 type to std::vector<std::string>.
5881 * progspace.c (clear_program_space_solib_cache): Adjust.
5882 * breakpoint.c (print_solib_event): Adjust.
5883 (check_status_catch_solib): Adjust.
5884 * solib.c (update_solib_list): Adjust.
5885 * ui-out.h (class ui_out) <field_string>: New overload.
5886 * ui-out.c (ui_out::field_string): New overload.
5887
564b1e3f
SM
58882018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * progspace.h (struct program_space): Add constructor and
5891 destructor, initialize fields.
5892 (add_program_space): Remove.
5893 * progspace.c (add_program_space): Rename to...
5894 (program_space::program_space): ... this.
5895 (release_program_space): Rename to...
5896 (program_space::~program_space): ... this.
5897 (delete_program_space): Use delete to delete program_space.
5898 (initialize_progspace): Use new to allocate program_space.
5899 * inferior.c (add_inferior_with_spaces): Likewise.
5900 (clone_inferior_command): Likewise.
5901 * infrun.c (follow_fork_inferior): Likewise.
5902 (handle_vfork_child_exec_or_exit): Likewise.
5903
e80aaf61
SM
59042018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
5907 (delim_string_to_char_ptr_vec): Return std::vector of
5908 gdb::unique_xmalloc_ptr.
5909 (dirnames_to_char_ptr_vec_append): Take std::vector of
5910 gdb::unique_xmalloc_ptr.
5911 (dirnames_to_char_ptr_vec): Return std::vector of
5912 gdb::unique_xmalloc_ptr.
5913 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
5914 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
5915 (delim_string_to_char_ptr_vec): Return an std::vector of
5916 gdb::unique_xmalloc_ptr, adjust the code.
5917 (dirnames_to_char_ptr_vec_append): Take an std::vector of
5918 gdb::unique_xmalloc_ptr, adjust the code.
5919 (dirnames_to_char_ptr_vec): Return an std::vector of
5920 gdb::unique_xmalloc_ptr, adjust the code.
5921 * auto-load.c (auto_load_safe_path_vec): Change type to
5922 std::vector of gdb::unique_xmalloc_ptr.
5923 (auto_load_expand_dir_vars): Return an std::vector of
5924 gdb::unique_xmalloc_ptr, adjust the code.
5925 (auto_load_safe_path_vec_update): Adjust.
5926 (filename_is_in_auto_load_safe_path_vec): Adjust.
5927 (auto_load_objfile_script_1): Adjust.
5928 * build-id.c (build_id_to_debug_bfd): Adjust.
5929 * linux-thread-db.c (thread_db_load_search): Adjust.
5930 * source.c (add_path): Adjust.
5931 (openp): Adjust.
5932 * symfile.c (find_separate_debug_file): Adjust.
5933 * utils.c (do_free_char_ptr_vec): Remove.
5934 (make_cleanup_free_char_ptr_vec): Remove.
5935
ab818ade
SDJ
59362018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
5937
5938 PR gdb/22907
5939 * common/pathstuff.c: Conditionally include "<windows.h>".
5940
e1e6f073
GS
59412018-03-01 Georg Sauthoff <mail@georg.so>
5942
5943 PR gdb/22888
5944 * gcore.in: Quote variables and switch interpreter to bash.
5945
c7b15a66
TT
59462018-03-01 Tom Tromey <tom@tromey.com>
5947
5948 * dwarf2read.c (alloc_discriminant_info): Fix default_index
5949 assertion. Add assertion for discriminant_index.
5950 (quirk_rust_enum): Use correct base type name in univariant case.
5951
0cb7c7b0
SM
59522018-03-01 Simon Marchi <simon.marchi@ericsson.com>
5953
5954 * record.c (get_call_history_modifiers): Return a
5955 record_print_flags.
5956 (cmd_record_call_history): Adjust.
5957 * record-btrace.c (record_btrace_call_history): Adjust.
5958 (record_btrace_call_history_range): Adjust.
5959 (record_btrace_call_history_from): Adjust.
5960 * target-debug.h (target_debug_print_record_print_flags): New.
5961 * target-delegates.c: Re-generate.
5962 * target.c (target_call_history): Change flags type.
5963 (target_call_history_from): Likewise.
5964 (target_call_history_range): Likewise.
5965 * target.h (struct target_ops) <target_call_history>: Likewise.
5966 (target_call_history_from): Likewise.
5967 (target_call_history_range): Likewise.
5968
25e3c82c
SDJ
59692018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5970 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * common/common-utils.c: Include "sys/stat.h".
5973 (is_regular_file): Move here from "source.c"; change return
5974 type to "bool".
5975 * common/common-utils.h (is_regular_file): New prototype.
5976 * common/pathstuff.c (contains_dir_separator): New function.
5977 * common/pathstuff.h (contains_dir_separator): New prototype.
5978 * source.c: Don't include "sys/stat.h".
5979 (is_regular_file): Move to "common/common-utils.c".
5980
b4987c95
SDJ
59812018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5982
5983 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
5984 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
5985 * auto-load.c: Include "common/pathstuff.h".
5986 * common/common-def.h (current_directory): Move here.
5987 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
5988 function.
5989 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
5990 prototype.
5991 * common/pathstuff.c: New file.
5992 * common/pathstuff.h: New file.
5993 * compile/compile.c: Include "common/pathstuff.h".
5994 * defs.h (current_directory): Move to "common/common-defs.h".
5995 * dwarf2read.c: Include "common/pathstuff.h".
5996 * exec.c: Likewise.
5997 * guile/scm-safe-call.c: Likewise.
5998 * linux-thread-db.c: Likewise.
5999 * main.c: Likewise.
6000 * nto-tdep.c: Likewise.
6001 * objfiles.c: Likewise.
6002 * source.c: Likewise.
6003 * symtab.c: Likewise.
6004 * utils.c: Include "common/pathstuff.h".
6005 (gdb_realpath): Move to "common/pathstuff.c".
6006 (gdb_realpath_keepfile): Likewise.
6007 (gdb_abspath): Likewise.
6008 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
6009 (gdb_realpath_keepfile): Likewise.
6010 (gdb_abspath): Likewise.
6011
f169cfdc
JB
60122018-02-28 John Baldwin <jhb@FreeBSD.org>
6013
6014 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
6015 wildcard process pid for super_resume for kernels with a
6016 specific bug.
6017
e05cac70
PM
60182018-02-27 Phil Muldoon <pmuldoon@redhat.com>
6019
6020 * compile/compile.c (get_args): Add additional comments
6021 explaining function.
6022
55089490
TT
60232018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
6024 Tom Tromey <tom@tromey.com>
6025
6026 * target.h (memory_write_request_s): Remove typedef. Don't define
6027 VEC.
6028 (target_write_memory_blocks): Change argument to std::vector.
6029 (struct memory_write_request): Add constructor.
6030 * target-memory.c (compare_block_starting_address): Return bool.
6031 Change argument types.
6032 (claim_memory): Change arguments to use std::vector.
6033 (split_regular_and_flash_blocks, blocks_to_erase)
6034 (compute_garbled_blocks): Likewise.
6035 (cleanup_request_data, cleanup_write_requests_vector): Remove.
6036 (target_write_memory_blocks): Change argument to std::vector.
6037 * symfile.c (struct load_section_data): Add constructor and
6038 destructor. Use std::vector for "requests".
6039 (struct load_progress_data): Add initializers.
6040 (load_section_callback): Update. Use "new".
6041 (clear_memory_write_data): Remove.
6042 (generic_load): Update.
6043
0c305b61
AH
60442018-02-27 Alan Hayward <alan.hayward@arm.com>
6045
6046 * arch/aarch64.h: Use common/tdesc.h.
6047
c5196c92
MR
60482018-02-26 Maciej W. Rozycki <macro@mips.com>
6049
6050 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
6051 architecture with a 64-bit ABI.
6052
37c33887
MR
60532018-02-26 Maciej W. Rozycki <macro@mips.com>
6054
6055 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
6056 ahead of target description loading.
6057
d4dd3282
TT
60582018-02-26 Tom Tromey <tom@tromey.com>
6059
6060 * stack.c (backtrace_command_1): Update.
6061 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
6062 of "flags".
6063 * python/py-framefilter.c (py_print_frame)
6064 (gdbpy_apply_frame_filter): Change type of "flags".
6065 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
6066 of "flags".
6067 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
6068 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
6069 * extension.h (enum frame_filter_flag): Rename from
6070 frame_filter_flags.
6071 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
6072 (apply_ext_lang_frame_filter): Change type of "flags".
6073 * extension.c (apply_ext_lang_frame_filter): Change type of
6074 "flags".
6075 * extension-priv.h (struct extension_language_ops)
6076 <apply_frame_filter>: Change type of "flags".
6077
6893c19a
TT
60782018-02-26 Tom Tromey <tom@tromey.com>
6079
6080 PR python/16497:
6081 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
6082 off-by-one in py_end computation.
6083 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
6084 PRINT_MORE_FRAMES.
6085 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
6086 constant.
6087
2ddeaf8a
TT
60882018-02-26 Tom Tromey <tom@tromey.com>
6089
6090 * dwarf2read.c (struct variant_field): New.
6091 (struct nextfield) <variant>: New field.
6092 (dwarf2_add_field): Handle DW_TAG_variant_part.
6093 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
6094 discriminated union.
6095 (read_structure_type): Handle DW_TAG_variant_part.
6096 (handle_struct_member_die): New function, extracted from
6097 process_structure_scope. Handle DW_TAG_variant.
6098 (process_structure_scope): Handle discriminated unions. Call
6099 handle_struct_member_die.
6100
c9317f21
TT
61012018-02-26 Tom Tromey <tom@tromey.com>
6102
6103 * rust-lang.h (rust_last_path_segment): Declare.
6104 * rust-lang.c (rust_last_path_segment): Now public. Change
6105 contract.
6106 (struct disr_info): Remove.
6107 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
6108 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
6109 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
6110 (rust_enum_p, rust_enum_variant): New function.
6111 (rust_underscore_fields): Remove "offset" parameter.
6112 (rust_print_enum): New function.
6113 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
6114 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
6115 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
6116 enums.
6117 (rust_internal_print_type): New function, from rust_print_type.
6118 Remove enum code.
6119 (rust_print_type): Call rust_internal_print_type.
6120 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
6121 Update enum handling.
6122 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
6123 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
6124 (rust_union_quirks): New functions.
6125 (process_full_comp_unit, process_full_type_unit): Call
6126 rust_union_quirks.
6127 (process_structure_scope): Update rust_unions if necessary.
6128
7c22600a
TT
61292018-02-26 Tom Tromey <tom@tromey.com>
6130
6131 * value.h (value_union_variant): Declare.
6132 * valops.c (value_union_variant): New function.
6133 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
6134 (struct discriminant_info): New.
6135 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
6136 enumerator.
6137 (struct main_type) <flag_discriminated_union>: New field.
6138
15ce8941
TT
61392018-02-26 Tom Tromey <tom@tromey.com>
6140
6141 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6142 unittests/unpack-selftests.c.
6143 * unittests/unpack-selftests.c: New file.
6144 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
6145
48fbe735
YQ
61462018-02-26 Yao Qi <yao.qi@linaro.org>
6147
6148 * dwarf2read.c (struct partial_die_info) <read>: New method.
6149 (read_partial_die): Remove the declaration.
6150 (load_partial_dies): Update.
6151 (partial_die_info::partial_die_info):
6152 (read_partial_die): Change it to partial_die_info::read.
6153
52356b79
YQ
61542018-02-26 Yao Qi <yao.qi@linaro.org>
6155
6156 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
6157 (fixup_partial_die): Remove declaration.
6158 (scan_partial_symbols): Update.
6159 (partial_die_parent_scope): Likewise.
6160 (partial_die_full_name): Likewise.
6161 (fixup_partial_die): Change it to partial_die_info::fixup.
6162
35cc7ed7
YQ
61632018-02-26 Yao Qi <yao.qi@linaro.org>
6164
6165 * dwarf2read.c (read_partial_die): Update the declaration.
6166 (load_partial_dies): Caller update.
6167 (read_partial_die): Remove one argument abbrev_len.
6168
6f06d47b
YQ
61692018-02-26 Yao Qi <yao.qi@linaro.org>
6170
6171 * dwarf2read.c (struct partial_die_info): Add ctor, delete
6172 assignment operator.
6173 (load_partial_dies): Use ctor and copy ctor.
6174 (read_partial_die): Update.
6175 (dwarf2_cu::find_partial_die): Use ctor.
6176
d590ff25
YQ
61772018-02-26 Yao Qi <yao.qi@linaro.org>
6178
6179 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
6180 (find_partial_die_in_comp_unit): Change it to
6181 dwarf2_cu::find_partial_die.
6182 (find_partial_die): Update.
6183
fd0a254f
YQ
61842018-02-26 Yao Qi <yao.qi@linaro.org>
6185
6186 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
6187 is NULL.
6188
cd9983dd
YQ
61892018-02-26 Yao Qi <yao.qi@linaro.org>
6190
6191 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
6192
f46cd62a
AH
61932018-02-26 Alan Hayward <alan.hayward@arm.com>
6194
6195 * arch/amd64.h: Use common/tdesc.h.
6196 * arch/i386.c: Likewise.
6197 * arch/i386.h: Likewise.
6198 * arch/tic6x.c: Likewise.
6199 * arch/tdesc.h: Move file from here...
6200 * common/tdesc.h: ...to here.
6201 * features/aarch64-core.c: Regenerate.
6202 * features/aarch64-fpu.c: Regenerate.
6203 * features/i386/32bit-avx.c: Regenerate.
6204 * features/i386/32bit-avx512.c: Regenerate.
6205 * features/i386/32bit-core.c: Regenerate.
6206 * features/i386/32bit-linux.c: Regenerate.
6207 * features/i386/32bit-mpx.c: Regenerate.
6208 * features/i386/32bit-pkeys.c: Regenerate.
6209 * features/i386/32bit-sse.c: Regenerate.
6210 * features/i386/64bit-avx.c: Regenerate.
6211 * features/i386/64bit-avx512.c: Regenerate.
6212 * features/i386/64bit-core.c: Regenerate.
6213 * features/i386/64bit-linux.c: Regenerate.
6214 * features/i386/64bit-mpx.c: Regenerate.
6215 * features/i386/64bit-pkeys.c: Regenerate.
6216 * features/i386/64bit-segments.c: Regenerate.
6217 * features/i386/64bit-sse.c: Regenerate.
6218 * features/i386/x32-core.c: Regenerate.
6219 * features/tic6x-c6xp.c: Regenerate.
6220 * features/tic6x-core.c: Regenerate.
6221 * features/tic6x-gp.c: Regenerate.
6222 * target-descriptions.c: Use common/tdesc.h.
6223 * target-descriptions.h: Likewise.
6224
9b292f68
TT
62252018-02-24 Tom Tromey <tom@tromey.com>
6226
6227 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6228 (try_thread_db_load_from_dir, thread_db_load_search): Use
6229 std::string.
6230 (info_auto_load_libthread_db_compare): Return bool. Change
6231 argument types.
6232 (info_auto_load_libthread_db): Use std::vector, std::string.
6233 Remove cleanups.
6234
281d762b
TT
62352018-02-24 Tom Tromey <tom@tromey.com>
6236
6237 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
6238 std::string.
6239 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
6240 std::string*.
6241 * gdbarch.c: Rebuild.
6242 * gdbarch.h: Rebuild.
6243 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
6244 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
6245 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
6246 std::string*.
6247
9d8780f0
SM
62482018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * gdbtypes.h (sect_offset): Change type to uint64_t.
6251 (sect_offset_str): New function.
6252 * dwarf2read.c (create_addrmap_from_aranges): Use
6253 sect_offset_str.
6254 (error_check_comp_unit_head): Likewise.
6255 (create_debug_type_hash_table): Likewise.
6256 (read_cutu_die_from_dwo): Likewise.
6257 (init_cutu_and_read_dies): Likewise.
6258 (init_cutu_and_read_dies_no_follow): Likewise.
6259 (process_psymtab_comp_unit_reader): Likewise.
6260 (partial_die_parent_scope): Likewise.
6261 (peek_die_abbrev): Likewise.
6262 (process_queue): Likewise.
6263 (dwarf2_physname): Likewise.
6264 (read_namespace_alias): Likewise.
6265 (read_import_statement): Likewise.
6266 (create_dwo_cu_reader): Likewise.
6267 (create_cus_hash_table): Likewise.
6268 (lookup_dwo_cutu): Likewise.
6269 (inherit_abstract_dies): Likewise.
6270 (read_func_scope): Likewise.
6271 (read_call_site_scope): Likewise.
6272 (dwarf2_add_member_fn): Likewise.
6273 (read_common_block): Likewise.
6274 (read_module_type): Likewise.
6275 (read_typedef): Likewise.
6276 (read_subrange_type): Likewise.
6277 (load_partial_dies): Likewise.
6278 (read_partial_die): Likewise.
6279 (find_partial_die): Likewise.
6280 (read_str_index): Likewise.
6281 (dwarf2_string_attr): Likewise.
6282 (build_error_marker_type): Likewise.
6283 (lookup_die_type): Likewise.
6284 (dump_die_shallow): Likewise.
6285 (follow_die_ref): Likewise.
6286 (dwarf2_fetch_die_loc_sect_off): Likewise.
6287 (dwarf2_fetch_constant_bytes): Likewise.
6288 (follow_die_sig): Likewise.
6289 (get_signatured_type): Likewise.
6290 (get_DW_AT_signature_type): Likewise.
6291 (dwarf2_find_containing_comp_unit): Likewise.
6292 (set_die_type): Likewise.
6293
8ec57239
JB
62942018-02-21 John Baldwin <jhb@FreeBSD.org>
6295
6296 * arch/aarch64.c: Include "common-defs.h".
6297 * arch/amd64.c: Likewise.
6298 * arch/i386.c: Likewise.
6299
3eac2b65
TT
63002018-02-21 Tom Tromey <tom@tromey.com>
6301
6302 * value.h: (extract_field_op): Update.
6303 * eval.c (extract_field_op): Return a const char *.
6304 * expression.h (parse_expression_for_completion): Update.
6305 * completer.c (complete_expression): Update.
6306 (add_struct_fields): Make fieldname const.
6307 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
6308 (mark_completion_tag, parse_exp_in_context_1): Update.
6309 (parse_expression_for_completion): Change "name" to
6310 unique_xmalloc_ptr*.
6311
6ccb583f
TT
63122018-02-21 Tom Tromey <tom@tromey.com>
6313
6314 * infcall.c (call_function_by_hand_dummy): Use std::vector.
6315
c113ed0c
YQ
63162018-02-21 Yao Qi <yao.qi@linaro.org>
6317
6318 * avr-tdep.c (avr_read_pc): Change parameter type to
6319 readable_regcache.
6320 * gdbarch.sh (read_pc): Likewise.
6321 * gdbarch.c: Re-generated.
6322 * gdbarch.h: Re-generated.
6323 * hppa-tdep.c (hppa_read_pc): Change parameter type to
6324 readable_regcache.
6325 * ia64-tdep.c (ia64_read_pc): Likewise.
6326 * mips-tdep.c (mips_read_pc): Likewise.
6327 * spu-tdep.c (spu_read_pc): Likewise.
6328
4c74fe6b
YQ
63292018-02-21 Yao Qi <yao.qi@linaro.org>
6330
6331 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
6332 * regcache-dump.c: New file.
6333 * regcache.c: Move register_dump to regcache-dump.c.
6334 (maintenance_print_registers): Likewise.
6335 (maintenance_print_raw_registers): Likewise.
6336 (maintenance_print_cooked_registers): Likewise.
6337 (maintenance_print_register_groups): Likewise.
6338 (maintenance_print_remote_registers): Likewise.
6339 (_initialize_regcache): Likewise.
6340 * regcache.h (register_dump): Moved from regcache.c.
6341
796bb026
YQ
63422018-02-21 Yao Qi <yao.qi@linaro.org>
6343
6344 * regcache.c (regcache::regcache): Update.
6345 (regcache::invalidate): Move it to detached_regcache::invalidate.
6346 (get_thread_arch_aspace_regcache): Update.
6347 (regcache::raw_update): Update.
6348 (regcache::cooked_read): Remove some code.
6349 (regcache::cooked_read_value): Likewise.
6350 (regcache::raw_write): Remove assert on m_readonly_p.
6351 (regcache::raw_supply_integer): Move it to
6352 detached_regcache::raw_supply_integer.
6353 (regcache::raw_supply_zeroed): Likewise.
6354 * regcache.h (detached_regcache) <raw_supply_integer>: New
6355 declaration.
6356 <raw_supply_zeroed, invalidate>: Likewise.
6357 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
6358 <invalidate>: Likewise.
6359 <m_readonly_p>: Removed.
6360
215c69dc
YQ
63612018-02-21 Yao Qi <yao.qi@linaro.org>
6362
6363 * infcmd.c (get_return_value): Let stop_regs point to
6364 get_current_regcache.
6365 * regcache.c (regcache::regcache): Remove.
6366 (register_dump_reg_buffer): New class.
6367 (regcache_print): Adjust.
6368 * regcache.h (regcache): Remove constructors.
6369
f3384e66
YQ
63702018-02-21 Yao Qi <yao.qi@linaro.org>
6371
6372 * regcache.c (class register_dump): New class.
6373 (register_dump_regcache, register_dump_none): New class.
6374 (register_dump_remote, register_dump_groups): New class.
6375 (regcache_print): Update.
6376 * regcache.h (regcache_dump_what): Move it to regcache.c.
6377 (regcache) <dump>: Remove.
6378
c8ec2f33
YQ
63792018-02-21 Yao Qi <yao.qi@linaro.org>
6380
6381 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
6382 reg_buffer_rw *.
6383 (jit_unwind_reg_set_impl): Call raw_supply.
6384 (jit_frame_sniffer): Use reg_buffer_rw.
6385 * record-full.c (record_full_core_regbuf): Change its type.
6386 (record_full_core_open_1): Use reg_buffer_rw.
6387 (record_full_close): Likewise.
6388 (record_full_core_fetch_registers): Use regcache->raw_supply.
6389 (record_full_core_store_registers): Likewise.
6390 * regcache.c (regcache::get_register_status): Move it to
6391 reg_buffer.
6392 (regcache_raw_set_cached_value): Remove.
6393 (regcache::raw_set_cached_value): Remove.
6394 (regcache::raw_write): Call raw_supply.
6395 (regcache::raw_supply): Move it to reg_buffer_rw.
6396 * regcache.h (regcache_raw_set_cached_value): Remove.
6397 (reg_buffer_rw): New class.
6398
daf6667d
YQ
63992018-02-21 Yao Qi <yao.qi@linaro.org>
6400
6401 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
6402 readonly_detached_regcache.
6403 (dummy_frame_prev_register): Use regcache->cooked_read.
6404 * frame.c (frame_save_as_regcache): Change return type.
6405 (frame_pop): Update.
6406 * frame.h (frame_save_as_regcache): Update declaration.
6407 * inferior.h (get_infcall_suspend_state_regcache): Update
6408 declaration.
6409 * infrun.c (infcall_suspend_state) <registers>: use
6410 readonly_detached_regcache.
6411 (save_infcall_suspend_state): Don't use regcache_dup.
6412 (get_infcall_suspend_state_regcache): Change return type.
6413 * linux-fork.c (struct fork_info) <savedregs>: Change to
6414 readonly_detached_regcache.
6415 <pc>: New field.
6416 (fork_save_infrun_state): Don't use regcache_dup.
6417 (info_checkpoints_command): Adjust.
6418 * mi/mi-main.c (register_changed_p): Update declaration.
6419 (mi_cmd_data_list_changed_registers): Use
6420 readonly_detached_regcache.
6421 (register_changed_p): Change parameter type to
6422 readonly_detached_regcache.
6423 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
6424 readonly_detached_regcache.
6425 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
6426 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
6427 New.
6428 (regcache::save): Move it to reg_buffer.
6429 (regcache::restore): Change parameter type.
6430 (regcache_dup): Remove.
6431 * regcache.h (reg_buffer) <save>: New method.
6432 (readonly_detached_regcache): New class.
6433 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
6434 readonly_detached_regcache.
6435 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
6436
fc5b8736
YQ
64372018-02-21 Yao Qi <yao.qi@linaro.org>
6438
6439 * frame.c (frame_save_as_regcache): Use regcache method save.
6440 (frame_pop): Use regcache method restore.
6441 * infrun.c (restore_infcall_suspend_state): Likewise.
6442 * linux-fork.c (fork_load_infrun_state): Likewise.
6443 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
6444 save.
6445 * regcache.c (regcache_save): Remove.
6446 (regcache::restore): More asserts.
6447 (regcache_cpy): Remove.
6448 * regcache.h (regcache_save): Remove the declaration.
6449 (regcache::restore): Move from private to public.
6450 Remove the friend declaration of regcache_cpy.
6451 (regcache_cpy): Remove declaration.
6452
849d0ba8
YQ
64532018-02-21 Yao Qi <yao.qi@linaro.org>
6454
6455 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
6456 parameter type to 'readable_regcache *'.
6457 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
6458 * arm-tdep.c (arm_neon_quad_read): Likewise.
6459 (arm_pseudo_read): Likewise.
6460 * avr-tdep.c (avr_pseudo_register_read): Likewise.
6461 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
6462 * frv-tdep.c (frv_pseudo_register_read): Likewise.
6463 * gdbarch.c: Re-generated.
6464 * gdbarch.h: Re-generated.
6465 * gdbarch.sh (pseudo_register_read): Change parameter type to
6466 'readable_regcache *'.
6467 (pseudo_register_read_value): Likewise.
6468 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
6469 (h8300_pseudo_register_read): Likewise.
6470 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
6471 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
6472 (i386_pseudo_register_read_into_value): Likewise.
6473 (i386_pseudo_register_read_value): Likewise.
6474 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
6475 declaration.
6476 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
6477 * m32c-tdep.c (m32c_raw_read): Likewise.
6478 (m32c_read_flg): Likewise.
6479 (m32c_banked_register): Likewise.
6480 (m32c_banked_read): Likewise.
6481 (m32c_sb_read): Likewise.
6482 (m32c_part_read): Likewise.
6483 (m32c_cat_read): Likewise.
6484 (m32c_r3r2r1r0_read): Likewise.
6485 (m32c_pseudo_register_read): Likewise.
6486 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
6487 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
6488 (mep_pseudo_cr64_read): Likewise.
6489 (mep_pseudo_register_read): Likewise.
6490 * mips-tdep.c (mips_pseudo_register_read): Likewise.
6491 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
6492 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
6493 * regcache.c (regcache::raw_read): Move it to readable_regcache.
6494 (regcache::cooked_read): Likewise.
6495 (regcache::cooked_read_value): Likewise.
6496 (regcache_cooked_read_signed):
6497 (regcache::cooked_read): Likewise.
6498 * regcache.h (readable_regcache): New class.
6499 (regcache): Inherit readable_regcache. Move some methods to
6500 readable_regcache.
6501 * rl78-tdep.c (rl78_pseudo_register_read): Change
6502 parameter type to 'readable_regcache *'.
6503 * rs6000-tdep.c (do_regcache_raw_read): Remove.
6504 (e500_pseudo_register_read): Change parameter type to
6505 'readable_regcache *'.
6506 (dfp_pseudo_register_read): Likewise.
6507 (vsx_pseudo_register_read): Likewise.
6508 (efpr_pseudo_register_read): Likewise.
6509 * s390-tdep.c (s390_pseudo_register_read): Likewise.
6510 * sh-tdep.c (sh_pseudo_register_read): Likewise.
6511 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
6512 (sh64_pseudo_register_read): Likewise.
6513 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
6514 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
6515 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
6516 (spu_pseudo_register_read): Likewise.
6517 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
6518 (xtensa_pseudo_register_read): Likewise.
6519
31716595
YQ
65202018-02-21 Yao Qi <yao.qi@linaro.org>
6521
6522 * regcache.c (regcache::regcache): Call reg_buffer ctor.
6523 (regcache::arch): Move it to reg_buffer::arch.
6524 (regcache::register_buffer): Likewise.
6525 (regcache::assert_regnum): Likewise.
6526 (regcache::num_raw_registers): Likewise.
6527 * regcache.h (reg_buffer): New class.
6528 (regcache): Inherit reg_buffer.
6529
7104e59b
SM
65302018-02-20 Simon Marchi <simon.marchi@ericsson.com>
6531
6532 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
6533 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
6534
2d8adcbd
MM
65352018-02-20 Markus Metzger <markus.t.metzger@intel.com>
6536
6537 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
6538
b5884fa7
AH
65392018-02-19 Alan Hayward <alan.hayward@arm.com>
6540
6541 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
6542 (SFILES): Remove common/*.c files.
6543 (COMMON_OBS): Remove some *.o files built from common/*.c files.
6544 * common/common.host: Add common reference.
6545 * configure.ac: Likewise.
6546 * configure: Regenerate.
6547
fd90ace4
YQ
65482018-02-16 Yao Qi <yao.qi@linaro.org>
6549
6550 * block.c (block_namespace_info): Inherit allocate_on_obstack.
6551 (block_initialize_namespace): Use new.
6552 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
6553 (dwarf2_free_objfile): Use delete.
6554 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
6555 (copy_type_recursive): Use new.
6556 * gdb_obstack.h (allocate_on_obstack): New.
6557
85046ae2
YQ
65582018-02-15 Yao Qi <yao.qi@linaro.org>
6559
6560 PR gdb/22849
6561 * inferior.c (exit_inferior_1): Reset inf->control.
6562
355c559b
JB
65632018-02-15 Joel Brobecker <brobecker@adacore.com>
6564
6565 * ada-lang.c (ada_to_fixed_value_create): Delete advance
6566 declaration.
6567
980548fd
PA
65682018-02-14 Pedro Alves <palves@redhat.com>
6569
6570 * frame-unwind.c (frame_unwind_try_unwinder): Always call
6571 frame_cleanup_after_sniffer on exception.
6572
692d6f97
TT
65732018-02-14 Tom Tromey <tom@tromey.com>
6574
6575 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
6576 const.
6577 (solib_bfd_open): Make pathname const.
6578 * solib.c (solib_bfd_open): Make pathname const.
6579 * solib-spu.c (spu_bfd_fopen): Make name const.
6580 (spu_bfd_open): Make pathname const.
6581 * solib-darwin.c (darwin_bfd_open): Make pathname const.
6582 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
6583
e0cc99a6
TT
65842018-02-14 Tom Tromey <tom@tromey.com>
6585
6586 * symfile.c (symfile_bfd_open): Update.
6587 * source.h (openp, source_full_path_of, find_and_open_source):
6588 Change argument type to unique_xmalloc_ptr.
6589 * source.c (openp): Take a unique_xmalloc_ptr.
6590 (source_full_path_of, find_and_open_source): Likewise.
6591 (open_source_file, symtab_to_fullname): Update.
6592 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
6593 unique_xmalloc_ptr.
6594 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
6595 (exec_file_find): Update.
6596 * psymtab.c (psymtab_to_fullname): Update.
6597 * nto-tdep.h (nto_find_and_open_solib): Update.
6598 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
6599 unique_xmalloc_ptr.
6600 * exec.c (exec_file_attach): Update.
6601 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
6602 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
6603
b46a8d7c
TT
66042018-02-14 Tom Tromey <tom@tromey.com>
6605
6606 * solib.c: Include source.h.
6607 * nto-tdep.c: Include source.h.
6608 * mi/mi-cmd-env.c: Include source.h.
6609 * infcmd.c: Include source.h.
6610 * exec.c: Include source.h.
6611 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
6612 (add_path, directory_switch, source_path, init_source_path): Move
6613 declarations...
6614 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
6615 (add_path, directory_switch, source_path, init_source_path):
6616 ...here.
6617
797bc1cb
TT
66182018-02-14 Tom Tromey <tom@tromey.com>
6619
6620 * solist.h (exec_file_find, solib_find): Return
6621 unique_xmalloc_ptr.
6622 (solib_bfd_fopen): Take a const char *.
6623 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
6624 (exec_file_find, solib_find): Likewise.
6625 (solib_bfd_fopen): Do not take ownership of "pathname".
6626 (solib_bfd_open): Use unique_xmalloc_ptr.
6627 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
6628 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
6629 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
6630 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
6631
f98b2e33
JB
66322018-02-14 Joel Brobecker <brobecker@adacore.com>
6633
6634 * ada-lang.c (name_match_type_from_name): Remove reference to
6635 ada_name_for_lookup in function's documentation.
6636 * ada-lang.h (ada_name_for_lookup): Delete declaration.
6637
24b9144d
SM
66382018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
6639
6640 * defs.h (enum openp_flags): New enum.
6641 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
6642 Move to enum openp_flags.
6643 (openp_flags): New enum flags.
6644 (openp): Change parameter type to openp_flags.
6645 * source.c (openp): Change parameter type to openp_flags.
6646 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
6647 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
6648
387cd15b
SM
66492018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
6650
6651 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
6652 per-command.
6653
b303c6f6
AB
66542018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
6655
6656 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
6657 into...
6658 (class dwarf2_queue_guard): ...the destructor of this new class.
6659 (dw2_do_instantiate_symtab): Create instance of the new class
6660 dwarf2_queue_guard, remove cleanup.
6661
9c3630e9
TT
66622018-02-09 Tom Tromey <tom@tromey.com>
6663
6664 * source.c (find_source_lines): Don't reference past the end of
6665 the vector.
6666
c4e12631
MM
66672018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6668
6669 * remote.c (remote_btrace_maybe_reopen): Change error message.
6670 * btrace.c (btrace_enable): Likewise.
6671 (parse_xml_btrace): Likewise.
6672 (parse_xml_btrace_conf): Likewise.
6673
88711fbf
MM
66742018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6675
6676 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
6677 (linux_enable_pt, linux_enable_bts): Call
6678 diagnose_perf_event_open_fail.
6679
17ad2a4f
MM
66802018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6681
6682 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
6683 Remove parameter and change return type. Update callers. Move it.
6684 (linux_enable_bts, linux_enable_pt): Improve error message.
6685 (linux_enable_pt): Remove zero buffer size check.
6686 (linux_enable_btrace): Improve error messages. Remove NULL return
6687 check.
6688
de6242d3
MM
66892018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6690
6691 * btrace.c (btrace_enable): Remove target_supports_btrace call.
6692 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
6693 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
6694 (linux_supports_pt, linux_supports_btrace): Remove.
6695 (linux_enable_bts): Call cpu_supports_bts.
6696 * nat/linux-btrace.h (linux_supports_btrace): Remove.
6697 * remote.c (remote_supports_btrace): Remove.
6698 (init_remote_ops): Remove remote_supports_btrace.
6699 * target-delegates.c: Regenerated.
6700 * target.c (target_supports_btrace): Remove.
6701 * target.h (target_ops) <to_supports_btrace>: Remove
6702 (target_supports_btrace): Remove.
6703 * x86-linux-nat.c (x86_linux_create_target): Remove
6704 linux_supports_btrace.
6705
9ee23a85
MM
67062018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6707
6708 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
6709 btrace failed.
6710 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
6711 exception and use message in own exception.
6712
5c3284c1
MM
67132018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6714
6715 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
6716 (perf_event_pt_event_type): Use gdb_file_up.
6717 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
6718 scoped_fd, and scoped_mmap.
6719
84696f37
MM
67202018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6721
6722 * common/scoped_mmap.h: New.
6723 * unittests/scoped_mmap-selftest.c: New.
6724 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6725 unittests/scoped_mmap-selftest.c.
6726
ea4a0888
MM
67272018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6728
6729 * common/scoped_fd.h: New.
6730 * unittests/scoped_fd-selftest.c: New.
6731 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6732 unittests/scoped_fd-selftest.c.
6733
869e8290
TT
67342018-02-09 Tom Tromey <tom@tromey.com>
6735
6736 * auto-load.c (auto_load_section_scripts): Use
6737 gdb::unique_xmalloc_ptr.
6738
a37a2ae7
TT
67392018-02-09 Tom Tromey <tom@tromey.com>
6740
6741 * auto-load.c (execute_script_contents): Use std::string.
6742
4e725347
JB
67432018-02-09 Joel Brobecker <brobecker@adacore.com>
6744
6745 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
6746 Python function, rather than a new command.
6747
9a897d43
TT
67482018-02-08 Tom Tromey <tom@tromey.com>
6749
6750 * solib.c (solib_find_1): Use std::string.
6751 (solib_bfd_fopen): Use unique_xmalloc_ptr.
6752
58ef3771
TT
67532018-02-08 Tom Tromey <tom@tromey.com>
6754
6755 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
6756
a9abc434
TT
67572018-02-08 Tom Tromey <tom@tromey.com>
6758
6759 * source.c (find_source_lines): Use gdb::def_vector.
6760
84f27c6f
TT
67612018-02-08 Tom Tromey <tom@tromey.com>
6762
6763 * macrocmd.c (struct temporary_macro_definition): New.
6764 (macro_define_command): Use temporary_macro_definition. Remove
6765 cleanups.
6766 (free_macro_definition_ptr): Remove.
6767
0354904b
TT
67682018-02-08 Tom Tromey <tom@tromey.com>
6769
6770 * macroexp.c (maybe_expand): Use std::string.
6771
1739cf24
TT
67722018-02-08 Tom Tromey <tom@tromey.com>
6773
6774 * macroexp.c (struct macro_buffer): Add initializers for some
6775 members.
6776 (init_buffer, init_shared_buffer, free_buffer)
6777 (free_buffer_return_text): Remove.
6778 (macro_buffer): New constructors.
6779 (~macro_buffer): New destructor.
6780 (macro_buffer::set_shared): New method.
6781 (macro_buffer::resize_buffer, macro_buffer::appendc)
6782 (macro_buffer::appendmem): Now methods, not free functions.
6783 (set_token, append_tokens_without_splicing, stringify)
6784 (macro_stringify): Update.
6785 (gather_arguments): Change return type. Remove argc_p argument,
6786 add args_ptr argument. Use std::vector.
6787 (substitute_args): Remove argc argument. Accept std::vector.
6788 (expand): Update. Use std::vector.
6789 (scan, macro_expand, macro_expand_next): Update.
6790
f6c2623e
TT
67912018-02-08 Tom Tromey <tom@tromey.com>
6792
6793 * symtab.c (default_collect_symbol_completion_matches_break_on):
6794 Use unique_xmalloc_ptr.
6795 * macroscope.h: (sal_macro_scope, user_macro_scope)
6796 (default_macro_scope): Return unique_xmalloc_ptr.
6797 * macroscope.c (sal_macro_scope, user_macro_scope)
6798 (default_macro_scope): Return unique_xmalloc_ptr.
6799 * macroexp.h (macro_expand, macro_expand_once): Return
6800 unique_xmalloc_ptr.
6801 * macroexp.c (macro_expand, macro_expand_once): Return
6802 unique_xmalloc_ptr.
6803 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6804 (info_macro_command, info_macros_command): Use
6805 unique_xmalloc_ptr.
6806 * compile/compile-c-support.c (write_macro_definitions): Use
6807 unique_xmalloc_ptr.
6808 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
6809
c2e0e465
SM
68102018-02-07 Simon Marchi <simon.marchi@ericsson.com>
6811
6812 * value.c (value_static_field): Assign field type instead of
6813 containing type when returning an optimized out value.
6814
3f8c94b4
YQ
68152018-02-06 Yao Qi <yao.qi@linaro.org>
6816
6817 * ft32-tdep.c (ft32_read_pc): Remove.
6818 (ft32_write_pc): Remove.
6819 (ft32_gdbarch_init): Update.
6820 * m32r-tdep.c (m32r_read_pc): Remove.
6821 (m32r_gdbarch_init): Update.
6822 * mep-tdep.c (mep_read_pc): Remove.
6823 (mep_gdbarch_init): Update.
6824 * microblaze-tdep.c (microblaze_write_pc): Remove.
6825 (microblaze_gdbarch_init): Update.
6826 * mn10300-tdep.c (mn10300_read_pc): Remove.
6827 (mn10300_write_pc): Remove.
6828 (mn10300_gdbarch_init): Update.
6829 * moxie-tdep.c (moxie_read_pc): Remove.
6830 (moxie_write_pc): Remove.
6831 (moxie_gdbarch_init): Update.
6832
bca65a23
YQ
68332018-02-06 Yao Qi <yao.qi@linaro.org>
6834
6835 * expprint.c (print_subexp_standard): Handle
6836 OP_F77_UNDETERMINED_ARGLIST.
6837 (dump_subexp_body_standard): Likewise.
6838
583e3f90 68392018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 6840
583e3f90
YQ
6841 * target-descriptions.c (tdesc_element_visitor) Add empty
6842 implementations.
b8df6ca7
AH
6843 (tdesc_type): Move make_gdb_type from here.
6844 (tdesc_type_builtin): Likewise.
6845 (tdesc_type_vector): Likewise.
6846 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
6847 (make_gdb_type_struct): Move from tdesc_type_with_fields.
6848 (make_gdb_type_union): Likewise.
6849 (make_gdb_type_flags): Likewise.
6850 (make_gdb_type_enum): Likewise.
6851 (make_gdb_type): New function.
6852 (tdesc_register_type): Use static make_gdb_type.
6853
e813d34a
RK
68542018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
6855
6856 * infcmd.c (default_print_one_register_info): Align natural-format
6857 column values consistently one under another.
6858 (pad_to_column): New function.
6859
0eb876f5
JB
68602018-02-05 Joel Brobecker <brobecker@adacore.com>
6861
6862 * dwarf2read.c (dwarf2_physname): Move commment.
6863
0625771b
LS
68642018-02-01 Leszek Swirski <leszeks@google.com>
6865
6866 * varobj.c (varobj_formatted_print_options): Allow recursive
6867 pretty printing if pretty printing is enabled.
6868
59498c30
LS
68692018-02-01 Leszek Swirski <leszeks@google.com>
6870
6871 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
6872 names after a structop as a filename.
6873
2d9e6acb
YQ
68742018-02-01 Yao Qi <yao.qi@linaro.org>
6875
6876 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
6877 (arm_record_coproc_data_proc): Likewise.
6878
df95a9cf
YQ
68792018-02-01 Yao Qi <yao.qi@linaro.org>
6880
6881 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
6882
07e5f5cf
NP
68832018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
6884
6885 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
6886 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
6887
3045b475
PA
68882018-01-31 Pedro Alves <palves@redhat.com>
6889
6890 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
6891 * inflow.c (child_terminal_save_inferior): Wrap reference to
6892 tcgetpgrp in HAVE_TERMIOS_H.
6893 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
6894 _WIN32.
6895 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
6896 always iterate over all inferiors.
6897 (gdbsim_cntrl_c): Adjust.
6898 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
6899
929b5ad4
JB
69002018-01-31 Joel Brobecker <brobecker@adacore.com>
6901
6902 * gdbtypes.c (lookup_array_range_type): Make sure the array's
6903 index type is objfile-owned if the element type is as well.
6904
29236ca2
JB
69052018-01-31 Joel Brobecker <brobecker@adacore.com>
6906
6907 GDB 8.1 released.
6908
c81e8879
PR
69092018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
6910
6911 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
6912 "features/s390x-linux64.c".
6913 (_initialize_s390_linux_tdep): Remove initialization of tdescs
6914 s390_linux32 and s390x_linux64.
6915 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
6916 default tdesc.
6917 * s390-tdep.c: Include "features/s390-linux32.c" and
6918 "features/s390x-linux64.c".
6919 (s390_tdesc_valid): Add check for tdesc_has_registers.
6920 (s390_gdbarch_init): Make sure there is always a valid tdesc.
6921 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
6922 tdesc_s390x_linux64.
6923 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
6924 tdesc_s390x_linux64 to...
6925 * s390-tdep.h: ...here.
6926
e671cd59
PA
69272018-01-30 Pedro Alves <palves@redhat.com>
6928
6929 PR gdb/13211
6930 * config.in, configure: Regenerate.
6931 * configure.ac: Check for getpgid.
6932 * go32-nat.c (go32_pass_ctrlc): New.
6933 (go32_target): Install it.
6934 * inf-child.c (inf_child_target): Install
6935 child_terminal_save_inferior, child_pass_ctrlc and
6936 child_interrupt.
6937 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
6938 (inf_ptrace_target): No longer install it.
6939 * infcmd.c (interrupt_target_1): Adjust.
6940 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
6941 (child_interrupt): Declare.
6942 (inferior::terminal_state): New.
6943 * inflow.c (struct terminal_info): Update comments.
6944 (inferior_process_group): Delete.
6945 (terminal_is_ours): Delete.
6946 (gdb_tty_state): New.
6947 (child_terminal_init): Adjust.
6948 (is_gdb_terminal, sharing_input_terminal_1)
6949 (sharing_input_terminal): New functions.
6950 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
6951 Set the process's actual process group in the foreground if
6952 possible. Handle is_ours_for_output/is_ours distinction. Don't
6953 mark terminal as the inferior's if not sharing GDB's terminal.
6954 Don't check attach_flag.
6955 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
6956 pass down a target_terminal_state.
6957 (child_terminal_save_inferior): New, factored out from ...
6958 (child_terminal_ours_1): ... this. Handle
6959 target_terminal_state::is_ours_for_output.
6960 (child_interrupt, child_pass_ctrlc): New.
6961 (inflow_inferior_exit): Clear the inferior's terminal_state.
6962 (copy_terminal_info): Copy the inferior's terminal state.
6963 (_initialize_inflow): Remove reference to terminal_is_ours.
6964 * inflow.h (inferior_process_group): Delete.
6965 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
6966 * procfs.c (procfs_target): Don't install procfs_interrupt.
6967 (procfs_interrupt): Delete.
6968 * remote.c (remote_serial_quit_handler): Adjust.
6969 (remote_interrupt): Remove ptid parameter. Adjust.
6970 * target-delegates.c: Regenerate.
6971 * target.c: Include "terminal.h".
6972 (target_terminal::terminal_state): Rename to ...
6973 (target_terminal::m_terminal_state): ... this.
6974 (target_terminal::init): Adjust.
6975 (target_terminal::inferior): Adjust to per-inferior
6976 terminal_state.
6977 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
6978 (target_terminal::ours, target_terminal::ours_for_output): Use
6979 target_terminal_is_ours_kind.
6980 (target_interrupt): Remove ptid parameter. Adjust.
6981 (default_target_pass_ctrlc): Adjust.
6982 * target.h (target_ops::to_terminal_save_inferior): New field.
6983 (target_ops::to_interrupt): Remove ptid_t parameter.
6984 (target_interrupt): Remove ptid_t parameter. Update comment.
6985 (target_pass_ctrlc): Update comment.
6986 * target/target.h (target_terminal_state): New scoped enum,
6987 factored out of ...
6988 (target_terminal::terminal_state): ... here.
6989 (target_terminal::inferior): Update comments.
6990 (target_terminal::restore_inferior): New.
6991 (target_terminal::is_inferior, target_terminal::is_ours)
6992 (target_terminal::is_ours_for_output): Adjust.
6993 (target_terminal::scoped_restore_terminal_state): Adjust to
6994 rename, and call restore_inferior() instead of inferior().
6995 (target_terminal::scoped_restore_terminal_state::m_state): Change
6996 type.
6997 (target_terminal::terminal_state): Rename to ...
6998 (target_terminal::m_terminal_state): ... this and change type.
6999
9c3a5d93
PA
70002018-01-30 Pedro Alves <palves@redhat.com>
7001
7002 * linux-nat.c (wait_for_signal): New function.
7003 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
7004 directly.
7005 (async_terminal_is_ours)
7006 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
7007 (linux_nat_add_target): Don't override
7008 to_terminal_inferior/to_terminal_ours.
7009
69ab5edb
SDJ
70102018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
7011
7012 * remote.c (remote_follow_fork): Don't call "detach_inferior".
7013
fc8e7e75
SM
70142018-01-28 Simon Marchi <simon.marchi@ericsson.com>
7015
7016 * dwarf2read.c (free_dwo_files): Add forward-declaration.
7017 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
7018 dwarf2_per_objfile_free here.
7019 (dwarf2_per_objfile_free): Remove.
7020 (_initialize_dwarf2_read): Don't register
7021 dwarf2_per_objfile_free as a registry cleanup.
7022
b2a426e2
EZ
70232018-01-27 Eli Zaretskii <eliz@gnu.org>
7024
7025 Avoid compilation errors in MinGW native builds
7026
7027 The error is triggered by including python-internal.h, and the
7028 error message is:
7029
7030 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
7031 from build-gnulib/import/math.h:27,
7032 from d:/usr/Python26/include/pyport.h:235,
7033 from d:/usr/Python26/include/Python.h:58,
7034 from python/python-internal.h:94,
7035 from python/py-arch.c:24:
7036 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
7037 using ::hypot;
7038 ^~~~~
7039
7040 This happens because Python headers define 'hypot' to expand t
7041 '_hypot' in the Windows builds.
7042 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
7043 'hypoth'. This avoids a compilation error.
7044
0bdd8eac
AH
70452018-01-26 Alan Hayward <alan.hayward@arm.com>
7046
7047 * MAINTAINERS (Write After Approval): Fix ordering.
7048
56ae9dc3
AH
70492018-01-26 Alan Hayward <alan.hayward@arm.com>
7050
7051 * MAINTAINERS (Write After Approval): Add Alan Hayward.
7052
7433498b
AM
70532018-01-26 Alan Modra <amodra@gmail.com>
7054
7055 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
7056 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
7057 Remove nop. Make const. Comment.
7058 (powerpc32_plt_stub_so_2): New.
7059 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
7060 Correct count. Update uses.
7061 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
7062 Move common code reading PLT entry word. Correct
7063 powerpc32_plt_stub PLT address calculation.
7064 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
7065 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
7066 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
7067 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
7068 (ppc64_standard_linkage8): Likewise.
7069 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
7070 Correct insns description.
7071 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
7072
0f59d5fc
PA
70732018-01-24 Pedro Alves <palves@redhat.com>
7074
7075 GCC PR libstdc++/83906
7076 * gdbtypes.c (operator==(const dynamic_prop &,
7077 const dynamic_prop &)): New.
7078 (operator==(const range_bounds &, const range_bounds &)): New.
7079 (check_types_equal): Use them instead of memcmp.
7080 * gdbtypes.h (operator==(const dynamic_prop &,
7081 const dynamic_prop &)): Declare.
7082 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
7083 (operator==(const range_bounds &, const range_bounds &)): Declare.
7084 (operator!=(const range_bounds &, const range_bounds &)): Declare.
7085
ef8914a4
PR
70862018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7087
7088 * s390-linux-tdep.c (s390_record_address_mask)
7089 (s390_record_calc_disp_common, s390_record_calc_disp)
7090 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
7091 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
7092 (s390_process_record): Move to s390-tdep.c.
7093 (s390_linux_init_abi_any): Adjust.
7094 * s390-tdep.c (s390_record_address_mask)
7095 (s390_record_calc_disp_common, s390_record_calc_disp)
7096 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
7097 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
7098 (s390_process_record): Moved from s390-linux-tdep.c
7099 (s390_gdbarch_init): Adjust.
7100
d6e58945
PR
71012018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7102
7103 * s390-linux-nat.c (s390-tdep.h): New include.
7104 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
7105 (HFILES_NO_SRCDIR): Add s390-tdep.h.
7106 (ALLDEPFILES): Add s390-tdep.c.
7107 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
7108 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
7109 * s390-tdep.h: ...this. New file.
7110 * s390-linux-tdep.c (s390-tdep.h): New include.
7111 (_initialize_s390_tdep): Rename to...
7112 (_initialize_s390_linux_tdep): ...this and adjust.
7113 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
7114 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
7115 s390-tdep.h.
7116 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
7117 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
7118 (s390_is_partial_instruction, s390_software_single_step)
7119 (is_non_branch_ril, s390_displaced_step_copy_insn)
7120 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
7121 (s390_prologue_data, s390_addr, s390_store, s390_load)
7122 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
7123 (s390_register_call_saved, s390_guess_tracepoint_registers)
7124 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
7125 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
7126 (s390_pseudo_register_name, s390_pseudo_register_type)
7127 (s390_pseudo_register_read, s390_pseudo_register_write)
7128 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
7129 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
7130 (s390_addr_bits_remove, s390_address_class_type_flags)
7131 (s390_address_class_type_flags_to_name)
7132 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
7133 (s390_function_arg_float, s390_function_arg_vector)
7134 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
7135 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
7136 (s390_frame_align, s390_register_return_value, s390_return_value)
7137 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
7138 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
7139 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
7140 (s390_trad_frame_prev_register, s390_unwind_cache)
7141 (s390_prologue_frame_unwind_cache)
7142 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
7143 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
7144 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
7145 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
7146 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
7147 (s390_frame_base_address, s390_local_base_address)
7148 (s390_frame_base, s390_gcc_target_options)
7149 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
7150 (s390_validate_reg_range, s390_tdesc_valid)
7151 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
7152 * s390-tdep.c: ...this. New file.
7153
9c0b896e
PR
71542018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7155
7156 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
7157 (s390_process_record, s390_gdbarch_tdep_alloc)
7158 (s390_linux_init_abi_any): Use/set new hook.
7159
7042632b
PR
71602018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7161
7162 * s390-linux-tdep.c (osabi.h): New include.
7163 (s390_linux_init_abi_31, s390_linux_init_abi_64)
7164 (s390_linux_init_abi_any): New functions.
7165 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
7166
650f5e13
PR
71672018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7168
7169 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
7170 tdesc_has_registers check
7171
47c9317e
PR
71722018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7173
7174 * s390-linux-tdep.c (s390_tdesc_valid): New function.
7175 (s390_validate_reg_range): New macro.
7176 (s390_gdbarch_init): Adjust.
7177
095085d8
PR
71782018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7179
7180 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
7181 (s390_gdbarch_tdep_alloc): Adjust.
7182 (s390_gdbarch_init): Adjust.
7183
ab9bcc67
PR
71842018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7185
7186 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
7187 <have_tdb>: Change type to bool.
7188 (s390_gdbarch_tdep_alloc): Adjust.
7189 (s390_gdbarch_init): Adjust.
7190
21f6f5ff
PR
71912018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7192
7193 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
7194 (gdbarch_tdep) <have_upper, have_vx>: New fields.
7195 (s390_gdbarch_tdep_alloc): New function.
7196 (s390_gdbarch_init): Allocate tdep at start and use its fields
7197 instead of separate variables.
7198
0eb97953
PR
71992018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7200
7201 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
7202 when looking for cached gdbarch and add comment for remaining.
7203
5c319bb2
PA
72042018-01-22 Pedro Alves <palves@redhat.com>
7205 Sergio Durigan Junior <sergiodj@redhat.com>
7206
7207 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
7208 case.
7209
d65ce302
MR
72102018-01-22 Maciej W. Rozycki <macro@mips.com>
7211
7212 * MAINTAINERS: Update my company e-mail address.
7213
ec7a5fcb
YQ
72142018-01-22 Yao Qi <yao.qi@linaro.org>
7215
7216 * regcache.c (cooked_write_test): New function.
7217 (_initialize_regcache): Register the test.
7218
11f57cb6
YQ
72192018-01-22 Yao Qi <yao.qi@linaro.org>
7220
7221 * ia64-tdep.c (ia64_pseudo_register_read): Call
7222 regcache->cooked_read instead of regcache_cooked_read_unsigned.
7223 * m32c-tdep.c (m32c_cat_read): Likewise.
7224 (m32c_r3r2r1r0_read): Likewise.
7225 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
7226 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
7227
03f50fc8
YQ
72282018-01-22 Yao Qi <yao.qi@linaro.org>
7229
7230 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
7231 method raw_read instead of regcache_raw_read.
7232 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
7233 * arm-tdep.c (arm_neon_quad_read): Likewise.
7234 * avr-tdep.c (avr_pseudo_register_read): Likewise.
7235 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
7236 * frv-tdep.c (frv_pseudo_register_read): Likewise.
7237 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
7238 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
7239 (i386_pseudo_register_read_into_value): Likewise.
7240 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
7241 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
7242 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
7243 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
7244 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
7245 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
7246 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
7247 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
7248 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
7249
dc711524
YQ
72502018-01-22 Yao Qi <yao.qi@linaro.org>
7251
7252 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
7253 * configure.tgt: Remove target mt.
7254 * mt-tdep.c: Remove.
7255 * regcache.c (cooked_read_test): Remove the check for mt.
7256
3f5a868b
YQ
72572018-01-22 Yao Qi <yao.qi@linaro.org>
7258
7259 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
7260 instead of gdbarch_pseudo_register_read_value.
7261
de4cb04a
JB
72622018-01-22 Joel Brobecker <brobecker@adacore.com>
7263
7264 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
7265 language is Ada.
7266
a9e40818
JB
72672018-01-22 Joel Brobecker <brobecker@adacore.com>
7268
7269 * linespec.c (create_sals_line_offset): Remove code that preserved
7270 the symtab_and_line's line number.
7271
e707fc44
AB
72722018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * varobj.c (varobj_create): Don't set valid_block when creating a
7275 floating varobj.
7276
03d0bf7b
AB
72772018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7278
7279 * varobj.c (varobj_create): Remove out of date comment.
7280
ae451627
AB
72812018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 PR mi/20395
7284 * ada-exp.y (write_var_from_sym): Pass extra parameter when
7285 updating innermost block.
7286 * parse.c (innermost_block_tracker::update): Take extra type
7287 parameter, and check types match before updating innermost block.
7288 (write_dollar_variable): Update innermost block for registers.
7289 * parser-defs.h (enum innermost_block_tracker_type): New enum.
7290 (innermost_block_tracker::innermost_block_tracker): Initialise
7291 m_types member.
7292 (innermost_block_tracker::reset): Take type parameter.
7293 (innermost_block_tracker::update): Take type parameter, and pass
7294 type through as needed.
7295 (innermost_block_tracker::m_types): New member.
7296 * varobj.c (varobj_create): Pass type when reseting innermost
7297 block.
7298
aee1fcdf
AB
72992018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7300
7301 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
7302 * ada-lang.c (resolve_subexp): Likewise.
7303 * breakpoint.c (set_breakpoint_condition) Likewise.
7304 (watch_command_1) Likewise.
7305 * c-exp.y (variable): Likewise.
7306 * d-exp.y (PrimaryExpression): Likewise.
7307 * f-exp.y (variable): Likewise.
7308 * go-exp.y (variable): Likewise.
7309 * m2-exp.y (variable): Likewise.
7310 * objfiles.c (objfile::~objfile): Likewise.
7311 * p-exp.y (variable): Likewise.
7312 * parse.c (innermost_block): Change type.
7313 * parser-defs.h (class innermost_block_tracker): New.
7314 (innermost_block): Change to innermost_block_tracker.
7315 * printcmd.c (display_command): Switch to innermost_block API.
7316 (do_one_display): Likewise.
7317 * rust-exp.y (do_one_display): Likewise.
7318 * symfile.c (clear_symtab_users): Likewise.
7319 * varobj.c (varobj_create): Switch to innermost_block API, replace
7320 use of innermost_block with block stored on varobj object.
7321
396af9a1
AB
73222018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7323
7324 * expression.h (innermost_block): Remove declaration.
7325 * varobj.c: Add 'parser-defs.h' include.
7326
fcfcc376
TT
73272018-01-19 Tom Tromey <tom@tromey.com>
7328
7329 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
7330 symbols in the static and global blocks.
7331
5a6c3296
JC
73322018-01-19 James Clarke <jrtc27@jrtc27.com>
7333
7334 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
7335 gdb_ptrace.h, and move including gdb_wait.h ...
7336 * nat/linux-ptrace.h: ... to here.
7337
bc09b0c1
SM
73382018-01-19 Simon Marchi <simon.marchi@ericsson.com>
7339
7340 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
7341 inf_ptrace_detach_success.
7342 (inf_ptrace_detach_success): Add inferior parameter, use it
7343 instead of inferior_ptid, pass it to detach_inferior.
7344 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
7345 parameter.
7346 * inferior.c (detach_inferior): Add overload that takes an
7347 inferior object.
7348 * inferior.h (detach_inferior): Likewise.
7349 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
7350 use inferior_ptid, adjust call to inf_ptrace_detach_success.
7351 * linux-thread-db.c (thread_db_detach): Use inf parameter.
7352
6e1e1966
SM
73532018-01-19 Simon Marchi <simon.marchi@ericsson.com>
7354
7355 * target.h (struct target_ops) <to_detach>: Add inferior
7356 parameter.
7357 (target_detach): Likewise.
7358 * target.c (dispose_inferior): Pass inferior down.
7359 (target_detach): Pass inferior down. Assert that it is equal to
7360 the current inferior.
7361 * aix-thread.c (aix_thread_detach): Pass inferior down.
7362 * corefile.c (core_file_command): Pass current_inferior() down.
7363 * corelow.c (core_detach): Add inferior parameter.
7364 * darwin-nat.c (darwin_detach): Likewise.
7365 * gnu-nat.c (gnu_detach): Likewise.
7366 * inf-ptrace.c (inf_ptrace_detach): Likewise.
7367 * infcmd.c (detach_command): Pass current_inferior() down to
7368 target_detach.
7369 * infrun.c (follow_fork_inferior): Pass parent_inf to
7370 target_detach.
7371 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
7372 target_detach.
7373 * linux-nat.c (linux_nat_detach): Add inferior parameter.
7374 * linux-thread-db.c (thread_db_detach): Likewise.
7375 * nto-procfs.c (procfs_detach): Likewise.
7376 * procfs.c (procfs_detach): Likewise.
7377 * record.c (record_detach): Likewise.
7378 * record.h (struct inferior): Forward-declare.
7379 (record_detach): Add inferior parameter.
7380 * remote-sim.c (gdbsim_detach): Likewise.
7381 * remote.c (remote_detach_1): Likewise.
7382 (remote_detach): Likewise.
7383 (extended_remote_detach): Likewise.
7384 * sol-thread.c (sol_thread_detach): Likewise.
7385 * target-debug.h (target_debug_print_inferior_p): New macro.
7386 * target-delegates.c: Re-generate.
7387 * top.c (kill_or_detach): Pass inferior down to target_detach.
7388 * windows-nat.c (windows_detach): Add inferior parameter.
7389
6bd6f3b6
SM
73902018-01-19 Simon Marchi <simon.marchi@ericsson.com>
7391
7392 * target.h (struct target_ops) <to_detach>: Remove args
7393 parameter.
7394 (target_detach): Likewise.
7395 * target.c (dispose_inferior): Adjust.
7396 (target_detach): Remove args parameter, adjust.
7397 * aix-thread.c (aix_thread_detach): Adjust.
7398 * corefile.c (core_file_command): Adjust.
7399 * corelow.c (core_detach): Adjust.
7400 * darwin-nat.c (darwin_detach): Adjust.
7401 * gnu-nat.c (gnu_detach): Adjust.
7402 * inf-ptrace.c (inf_ptrace_detach): Adjust.
7403 * infcmd.c (detach_command): Adjust
7404 * infrun.c (follow_fork_inferior): Adjust.
7405 (handle_vfork_child_exec_or_exit): Adjust.
7406 * linux-fork.c (linux_fork_detach): Remove args parameter.
7407 * linux-fork.h (linux_fork_detach): Likewise.
7408 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
7409 * linux-thread-db.c (thread_db_detach): Likewise.
7410 * nto-procfs.c (procfs_detach): Likewise.
7411 * procfs.c (procfs_detach): Likewise.
7412 (do_detach): Remove signo parameter.
7413 * record.c (record_detach): Remove args parameter.
7414 * record.h (record_detach): Likewise.
7415 * remote-sim.c (gdbsim_detach): Likewise.
7416 * remote.c (remote_detach_1): Likewise.
7417 (remote_detach): Likewise.
7418 (extended_remote_detach): Likewise.
7419 * sol-thread.c (sol_thread_detach): Likewise.
7420 * target-delegates.c: Re-generate.
7421 * top.c (struct qt_args) <args>: Remove field.
7422 (kill_or_detach): Don't pass args.
7423 (quit_force): Don't set args.
7424 * windows-nat.c (windows_detach): Remove args parameter.
7425
88af8ea8
YQ
74262018-01-19 Yao Qi <yao.qi@linaro.org>
7427
7428 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
7429 (arm_linux_init_abi): Install it.
7430
dea445b9
YQ
74312018-01-19 Yao Qi <yao.qi@linaro.org>
7432
7433 * osabi.c (gdb_osabi_names): Extend the regexp for
7434 arm-linux-gnueabihf.
7435
4a17f768
YQ
74362018-01-18 Yao Qi <yao.qi@linaro.org>
7437
7438 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
7439 m_abbrevs.
7440 (abbrev_table::add_abbrev): Update.
7441 (abbrev_table::lookup_abbrev): Update.
7442
d679c21a
YQ
74432018-01-18 Yao Qi <yao.qi@linaro.org>
7444
7445 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
7446
7d937cad
SDJ
74472018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7448
7449 * compile/compile.c (compile_to_object): Convert "triplet_rx"
7450 to "std::string".
7451
9e14690d
TT
74522018-01-17 Tom Tromey <tom@tromey.com>
7453
7454 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
7455
50a82047
TT
74562018-01-17 Tom Tromey <tom@tromey.com>
7457
7458 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
7459 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
7460 (create_array_type_with_stride): Update.
7461 * dwarf2read.c (set_die_type): Update.
7462
c89b44cd
TT
74632018-01-17 Tom Tromey <tom@tromey.com>
7464
7465 * dwarf2read.c (delayed_method_info): Remove typedef.
7466 (dwarf2_cu::method_info): Now a std::vector.
7467 (add_to_method_list): Update.
7468 (free_delayed_list): Remove.
7469 (compute_delayed_physnames): Update.
7470 (process_full_comp_unit, process_full_type_unit): Clear the method
7471 list. Remove cleanups.
7472 (psymtab_include_file_name): Add name_holder parameter. Use
7473 unique_xmalloc_ptr.
7474 (dwarf_decode_lines): Update.
7475
fcd3b13d
SM
74762018-01-17 Tom Tromey <tom@tromey.com>
7477 Simon Marchi <simon.marchi@ericsson.com>
7478
7479 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
7480 (dwarf2_per_objfile::free_cached_comp_units)
7481 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
7482 (init_cutu_and_read_dies_no_follow): Update.
7483 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
7484 (dwarf2_cu::~dwarf2_cu): New.
7485 (free_heap_comp_unit, free_stack_comp_unit): Remove.
7486 (age_cached_comp_units, free_one_cached_comp_unit): Update.
7487
685af9cd
TT
74882018-01-17 Tom Tromey <tom@tromey.com>
7489 Simon Marchi <simon.marchi@ericsson.com>
7490
7491 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
7492 (struct die_reader_specs) <abbrev_table>: New member.
7493 (struct abbrev_table): Add constructor.
7494 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
7495 <abbrev_obstack>: Now an auto_obstack.
7496 (abbrev_table_up): New typedef.
7497 (init_cu_die_reader): Add abbrev_table parameter.
7498 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
7499 Add result_dwo_abbrev_table.
7500 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
7501 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
7502 Update.
7503 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
7504 parameter.
7505 (skip_children): Update.
7506 (abbrev_table::alloc_abbrev): Rename from
7507 abbrev_table_alloc_abbrev.
7508 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
7509 (abbrev_table::lookup_abbrev): Rename from
7510 abbrev_table_lookup_abbrev.
7511 (abbrev_table_read_table): Return abbrev_table_up.
7512 (abbrev_table_free, abbrev_table_free_cleanup)
7513 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
7514 (load_partial_dies): Update.
7515
5e2db402
TT
75162018-01-17 Tom Tromey <tom@tromey.com>
7517
7518 * dwarf2read.c (dwarf2_compute_name): Update comment.
7519 (read_func_scope, read_variable): Update.
7520 (new_symbol): Remove.
7521 (new_symbol_full): Rename to new_symbol.
7522
ee7f689e 75232018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
7524
7525 PR gdb/16577
7526 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
7527 a warning instead of throwing an error, set section size to 0 and return
7528 NULL.
7529 * gdb_bfd.h (gdb_bfd_map_section): Update description.
7530
4d9b86e1
SM
75312018-01-17 Simon Marchi <simon.marchi@ericsson.com>
7532
7533 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
7534 std::string.
7535 (linux_ptrace_attach_fail_reason_string): Likewise.
7536 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
7537 Likewise.
7538 (linux_ptrace_attach_fail_reason_string): Likewise.
7539 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
7540
a7b2d0fb
SM
75412018-01-17 Simon Marchi <simon.marchi@ericsson.com>
7542
7543 * linux-nat.c (linux_nat_attach): Remove xstrdup.
7544
f517c180
EA
75452018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
7546
7547 PR gdb/21559
7548 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
7549 checking for fs_base/gs_base fields in struct user_regs_struct.
7550 * configure: Regenerate.
7551
7045b1ca
YQ
75522018-01-17 Yao Qi <yao.qi@linaro.org>
7553
7554 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
7555 function.
7556 (aarch64_linux_init_abi): Install it to gdbarch hook
7557 gcc_target_options.
7558
db422fb2
PA
75592018-01-15 Pedro Alves <palves@redhat.com>
7560
7561 * common/signals-state-save-restore.c
7562 (save_original_signals_state): Fix typos.
7563
ba643918
SDJ
75642017-01-12 Tom Tromey <tom@tromey.com>
7565 Sergio Durigan Junior <sergiodj@redhat.com>
7566
7567 * Makefile.in (install-only): Install gdb-add-index.
7568
906b4aac
JB
75692018-01-12 John Baldwin <jhb@FreeBSD.org>
7570
7571 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
7572
bdf2a94a
AA
75732018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
7574
7575 * infrun.c (keep_going_pass_signal): Clear step-over info when
7576 insert_breakpoints fails.
7577
71d378ae
PA
75782018-01-11 Pedro Alves <palves@redhat.com>
7579
7580 PR gdb/22583
7581 * infrun.c (resume): Rename to ...
7582 (resume_1): ... this.
7583 (resume): Reimplement as wrapper around resume_1.
7584
3cada740
PA
75852018-01-11 Pedro Alves <palves@redhat.com>
7586
7587 PR remote/22597
7588 * remote.c (remote_parse_stop_reply): Default to the last-set
7589 general thread instead of to 'magic_null_ptid'.
7590
618daa93
PA
75912018-01-10 Pedro Alves <palves@redhat.com>
7592
7593 * language.h (language_get_symbol_name_matcher): Rename ...
7594 (get_symbol_name_matcher): ... this.
7595 * language.c (language_get_symbol_name_matcher): Ditto.
7596 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
7597 callers adjusted.
7598
c63d3e8d
PA
75992018-01-10 Pedro Alves <palves@redhat.com>
7600
7601 PR gdb/22670
7602 * dwarf2read.c
7603 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
7604 Adjust to use language_get_symbol_name_matcher instead of
7605 language_defn::la_get_symbol_name_matcher.
7606 * language.c (language_get_symbol_name_matcher): If in Ada mode
7607 and the lookup name is a verbatim match, return Ada's matcher.
7608 * language.h (language_get_symbol_name_matcher): Adjust comment.
7609 (ada_lookup_name_info::verbatim_p):: New method.
7610
d4c2a405
PA
76112018-01-10 Pedro Alves <palves@redhat.com>
7612
7613 PR gdb/22670
7614 * ada-lang.c (ada_collect_symbol_completion_matches): If the
7615 minsym's language is language_auto or language_cplus, pass down
7616 language_ada instead.
7617 * symtab.c (compare_symbol_name): Don't frob symbol language here.
7618
8825213e
PA
76192018-01-10 Pedro Alves <palves@redhat.com>
7620
7621 PR gdb/22670
7622 * minsyms.c (linkage_name_str): New function.
7623 (iterate_over_minimal_symbols): Use it.
7624
2d97a5d9
JB
76252018-01-09 John Baldwin <jhb@FreeBSD.org>
7626
7627 * NEWS: Document that 'info proc' now works on FreeBSD.
7628
92fce24d
JB
76292018-01-09 John Baldwin <jhb@FreeBSD.org>
7630
7631 * configure.ac: Check for kinfo_getfile in libutil.
7632 * configure: Regenerate.
7633 * config.in: Regenerate.
7634 * fbsd-nat.c: Include "fbsd-tdep.h".
7635 (fbsd_fetch_cmdline): New.
7636 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
7637 rather than calling error.
7638 (fbsd_info_proc): New.
7639 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
7640 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
7641 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
7642
262f62f5
JB
76432018-01-09 John Baldwin <jhb@FreeBSD.org>
7644
7645 * fbsd-nat.c (struct free_deleter): Remove.
7646 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
7647
b999e203
JB
76482018-01-09 John Baldwin <jhb@FreeBSD.org>
7649
7650 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
7651 NULL for an empty pathname.
7652
d2176225
JB
76532018-01-09 John Baldwin <jhb@FreeBSD.org>
7654
7655 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
7656 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
7657 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7658 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7659 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
7660 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
7661 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
7662 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
7663 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
7664 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
7665 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
7666 (fbsd_core_fetch_timeval, fbsd_print_sigset)
7667 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
7668 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
7669 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
7670
9c4ac400
ST
76712018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7672
7673 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
7674 (gnu_xfer_auxv): New function.
7675 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
7676 TARGET_OBJECT_AUXV.
7677
1e5ded6c
YQ
76782018-01-08 Yao Qi <yao.qi@linaro.org>
7679 Simon Marchi <simon.marchi@ericsson.com>
7680
7681 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
7682 common/selftest.c.
7683 (COMMON_OBS): Remove selftest.o.
7684 * configure.ac: Append selftest-arch.c and common/selftest.c to
7685 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
7686 * configure: Re-generated.
7687 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
7688 GDB_SELF_TEST.
7689 (maintenance_info_selftests): Likewise.
7690
04bafb1e
XR
76912018-01-08 Xavier Roirand <roirand@adacore.com>
7692
7693 * ada-valprint.c (val_print_packed_array_elements): Use
7694 proper number of elements when printing an array indexed
7695 by an enumeration type.
7696
518817b3
SM
76972018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
7698
7699 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
7700 (dw2_get_file_names_reader): Adjust.
7701 (lookup_dwo_signatured_type): Adjust.
7702 (lookup_dwp_signatured_type): Adjust.
7703 (lookup_signatured_type): Adjust.
7704 (create_type_unit_group): Adjust.
7705 (get_type_unit_group): Adjust.
7706 (process_psymtab_comp_unit_reader): Adjust.
7707 (build_type_psymtabs_reader): Adjust.
7708 (scan_partial_symbols): Adjust.
7709 (add_partial_symbol): Adjust.
7710 (add_partial_subprogram): Adjust.
7711 (peek_die_abbrev): Adjust.
7712 (fixup_go_packaging): Adjust.
7713 (process_imported_unit_die): Adjust.
7714 (dwarf2_compute_name): Adjust.
7715 (dwarf2_physname): Adjust.
7716 (read_import_statement): Adjust.
7717 (handle_DW_AT_stmt_list): Adjust.
7718 (read_file_scope): Adjust.
7719 (read_func_scope): Adjust.
7720 (read_lexical_block_scope): Adjust.
7721 (read_call_site_scope): Adjust.
7722 (read_variable): Adjust.
7723 (dwarf2_rnglists_process): Adjust.
7724 (dwarf2_ranges_process): Adjust.
7725 (dwarf2_ranges_read): Adjust.
7726 (dwarf2_get_pc_bounds): Adjust.
7727 (dwarf2_record_block_ranges): Adjust.
7728 (dwarf2_add_field): Adjust.
7729 (dwarf2_add_member_fn): Adjust.
7730 (read_structure_type): Adjust.
7731 (process_structure_scope): Adjust.
7732 (read_enumeration_type): Adjust.
7733 (read_array_type): Adjust.
7734 (mark_common_block_symbol_computed): Adjust.
7735 (read_common_block): Adjust.
7736 (read_namespace_type): Adjust.
7737 (read_namespace): Adjust.
7738 (read_module_type): Adjust.
7739 (read_tag_pointer_type): Adjust.
7740 (read_tag_ptr_to_member_type): Adjust.
7741 (read_tag_string_type): Adjust.
7742 (read_subroutine_type): Adjust.
7743 (read_typedef): Adjust.
7744 (read_base_type): Adjust.
7745 (attr_to_dynamic_prop): Adjust.
7746 (read_subrange_type): Adjust.
7747 (read_unspecified_type): Adjust.
7748 (dwarf2_read_abbrevs): Adjust.
7749 (load_partial_dies): Adjust.
7750 (read_partial_die): Adjust.
7751 (find_partial_die): Adjust.
7752 (guess_partial_die_structure_name): Adjust.
7753 (fixup_partial_die): Adjust.
7754 (read_attribute_value): Adjust.
7755 (read_addr_index): Adjust.
7756 (read_addr_index_from_leb128): Adjust.
7757 (read_str_index): Adjust.
7758 (dwarf2_string_attr): Adjust.
7759 (get_debug_line_section): Adjust.
7760 (dwarf_decode_line_header): Adjust.
7761 (lnp_state_machine::check_line_address): Adjust.
7762 (dwarf_decode_lines_1): Adjust.
7763 (dwarf_decode_lines): Adjust.
7764 (dwarf2_start_symtab): Adjust.
7765 (var_decode_location): Adjust.
7766 (new_symbol_full): Adjust.
7767 (dwarf2_const_value_data): Adjust.
7768 (dwarf2_const_value_attr): Adjust.
7769 (dwarf2_const_value): Adjust.
7770 (die_type): Adjust.
7771 (die_containing_type): Adjust.
7772 (build_error_marker_type): Adjust.
7773 (lookup_die_type): Adjust.
7774 (guess_full_die_structure_name): Adjust.
7775 (anonymous_struct_prefix): Adjust.
7776 (determine_prefix): Adjust.
7777 (dwarf2_name): Adjust.
7778 (follow_die_ref_or_sig): Adjust.
7779 (follow_die_offset): Adjust.
7780 (follow_die_ref): Adjust.
7781 (follow_die_sig_1): Adjust.
7782 (follow_die_sig): Adjust.
7783 (get_signatured_type): Adjust.
7784 (get_DW_AT_signature_type): Adjust.
7785 (decode_locdesc): Adjust.
7786 (dwarf_decode_macros): Adjust.
7787 (cu_debug_loc_section): Adjust.
7788 (fill_in_loclist_baton): Adjust.
7789 (dwarf2_symbol_mark_computed): Adjust.
7790 (init_one_comp_unit): Don't assign
7791 dwarf2_cu::dwarf2_per_objfile.
7792 (set_die_type): Adjust.
7793
ed2dc618
SM
77942018-01-07 Simon Marchi <simon.marchi@ericsson.com>
7795
7796 * dwarf2read.c (struct mapped_debug_names): Add constructor.
7797 <dwarf2_per_objfile>: New field.
7798 (dwarf2_per_objfile): Remove global.
7799 (get_dwarf2_per_objfile): New function.
7800 (set_dwarf2_per_objfile): New function.
7801 (dwarf2_build_psymtabs_hard): Change objfile parameter to
7802 dwarf2_per_objfile.
7803 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
7804 (read_abbrev_offset): Likewise.
7805 (read_indirect_string): Likewise.
7806 (read_indirect_line_string): Likewise.
7807 (read_indirect_string_at_offset): Likewise.
7808 (read_indirect_string_from_dwz): Likewise.
7809 (dwarf2_find_containing_comp_unit): Change objfile parameter to
7810 dwarf2_per_objfile.
7811 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
7812 (create_all_comp_units): Change objfile parameter to
7813 dwarf2_per_objfile.
7814 (create_all_type_units): Likewise.
7815 (process_queue): Add dwarf2_per_objfile parameter.
7816 (read_and_check_comp_unit_head): Likewise.
7817 (lookup_dwo_unit_in_dwp): Likewise.
7818 (get_dwp_file): Likewise.
7819 (process_cu_includes): Likewise.
7820 (struct free_dwo_file_cleanup_data): New struct.
7821 (dwarf2_has_info): Use get_dwarf2_per_objfile and
7822 set_dwarf2_per_objfile.
7823 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
7824 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
7825 context, adjust calls.
7826 (dw2_instantiate_symtab): Likewise.
7827 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
7828 (dw2_get_cu): Likewise.
7829 (create_cu_from_index_list): Change objfile parameter to
7830 dwarf2_per_objfile.
7831 (create_cus_from_index_list): Get dwarf2_per_objfile from
7832 context, adjust calls.
7833 (create_cus_from_index): Likewise.
7834 (create_signatured_type_table_from_index): Change objfile
7835 parameter to dwarf2_per_objfile.
7836 (create_signatured_type_table_from_debug_names): Change objfile
7837 parameter to dwarf2_per_objfile.
7838 (create_addrmap_from_index): Likewise.
7839 (create_addrmap_from_aranges): Likewise.
7840 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
7841 (dw2_setup): Remove.
7842 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
7843 context.
7844 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
7845 get_dwarf2_per_objfile.
7846 (dw2_forget_cached_source_info): Likewise.
7847 (dw2_map_symtabs_matching_filename): Likewise.
7848 (struct dw2_symtab_iterator) <index>: Remove.
7849 <dwarf2_per_objfile>: New field.
7850 (dw2_symtab_iter_init): Replace index parameter with
7851 dwarf2_per_objfile.
7852 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
7853 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
7854 (dw2_print_stats): Likewise.
7855 (dw2_dump): Likewise.
7856 (dw2_expand_symtabs_for_function): Likewise.
7857 (dw2_expand_all_symtabs): Likewise.
7858 (dw2_expand_symtabs_with_fullname): Likewise.
7859 (dw2_expand_marked_cus): Replace index and objfile parameters
7860 with dwarf2_per_objfile.
7861 (dw_expand_symtabs_matching_file_matcher): Add
7862 dwarf2_per_objfile parameter and adjust calls.
7863 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
7864 adjust calls.
7865 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
7866 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
7867 adjust calls.
7868 (create_cus_from_debug_names_list): Replace objfile parameter
7869 with dwarf2_per_objfile and adjust calls.
7870 (create_cus_from_debug_names): Likewise.
7871 (dwarf2_read_debug_names): Likewise.
7872 (mapped_debug_names::namei_to_name): Adjust call.
7873 (dw2_debug_names_iterator::next): Likewise.
7874 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7875 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
7876 (dw2_debug_names_dump): Likewise.
7877 (dw2_debug_names_expand_symtabs_for_function): Likewise.
7878 (dw2_debug_names_expand_symtabs_matching): Likewise.
7879 (dwarf2_initialize_objfile): Likewise.
7880 (dwarf2_build_psymtabs): Likewise.
7881 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
7882 this_cu.
7883 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
7884 (read_and_check_comp_unit_head): Likewise.
7885 (read_abbrev_offset): Likewise.
7886 (create_debug_type_hash_table): Likewise.
7887 (create_debug_types_hash_table): Likewise.
7888 (create_all_type_units): Replace objfile parameter with
7889 dwarf2_per_objfile.
7890 (add_type_unit): Add dwarf2_per_objfile parameter.
7891 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
7892 with dwarf2_per_objfile.
7893 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
7894 (lookup_dwp_signatured_type): Likewise.
7895 (lookup_signatured_type): Likewise.
7896 (read_cutu_die_from_dwo): Likewise.
7897 (init_tu_and_read_dwo_dies): Likewise.
7898 (init_cutu_and_read_dies): Likewise.
7899 (init_cutu_and_read_dies_no_follow): Likewise.
7900 (allocate_type_unit_groups_table): Add objfile parameter.
7901 (create_type_unit_group): Use dwarf2_per_objfile from cu.
7902 (get_type_unit_group): Likewise.
7903 (process_psymtab_comp_unit): Update call.
7904 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
7905 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
7906 (print_tu_stats): Likewise.
7907 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
7908 in void* parameter.
7909 (build_type_psymtabs): Change objfile parameter to
7910 dwarf2_per_objfile.
7911 (process_skeletonless_type_unit): Use dwarf2_per_objfile
7912 passed in void* parameter.
7913 (process_skeletonless_type_units): Change objfile parameter to
7914 dwarf2_per_objfile.
7915 (set_partial_user): Likewise.
7916 (dwarf2_build_psymtabs_hard): Likewise.
7917 (read_comp_units_from_section): Likewise.
7918 (create_all_comp_units): Likewise.
7919 (scan_partial_symbols): Update calls.
7920 (add_partial_symbol): Likewise.
7921 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
7922 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
7923 (process_queue): Add dwarf2_per_objfile parameter.
7924 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
7925 (compute_compunit_symtab_includes): Likewise.
7926 (process_cu_includes): Add dwarf2_per_objfile parameter.
7927 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
7928 (process_full_type_unit): Likewise.
7929 (process_imported_unit_die): Update call.
7930 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
7931 (read_file_scope): Likewise.
7932 (allocate_dwo_file_hash_table): Add objfile parameter.
7933 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
7934 (create_cus_hash_table): Likewise.
7935 (create_dwp_hash_table): Likewise.
7936 (create_dwo_unit_in_dwp_v1): Likewise.
7937 (create_dwp_v2_section): Likewise.
7938 (create_dwo_unit_in_dwp_v2): Likewise.
7939 (lookup_dwo_unit_in_dwp): Likewise.
7940 (try_open_dwop_file): Likewise.
7941 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
7942 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
7943 cleanup to include a reference to dwarf2_per_objfile.
7944 (open_dwp_file): Add dwarf2_per_objfile parameter.
7945 (open_and_init_dwp_file): Likewise.
7946 (get_dwp_file): Likewise.
7947 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
7948 (queue_and_load_all_dwo_tus): Update call.
7949 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
7950 data.
7951 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
7952 (dwarf2_ranges_process): Likewise.
7953 (dwarf2_get_pc_bounds): Likewise.
7954 (mark_common_block_symbol_computed): Likewise.
7955 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
7956 (dwarf2_read_abbrevs): Update call.
7957 (read_partial_die): Use dwarf2_per_objfile from cu.
7958 (find_partial_die): Likewise.
7959 (fixup_partial_die): Likewise.
7960 (read_attribute_value): Likewise.
7961 (read_indirect_string_at_offset_from): Add objfile parameter.
7962 (read_indirect_string_at_offset): Add dwarf2_per_objfile
7963 parameter.
7964 (read_indirect_string_from_dwz): Add objfile parameter.
7965 (read_indirect_string): Add objfile parameter.
7966 (read_addr_index_1): Add dwarf2_per_objfile parameter.
7967 (read_addr_index): Use dwarf2_per_objfile from cu.
7968 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
7969 call dw2_setup.
7970 (read_str_index): Use dwarf2_per_objfile from cu.
7971 (get_debug_line_section): Likewise.
7972 (read_formatted_entries): Add dwarf2_per_objfile parameter.
7973 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
7974 (new_symbol_full): Use dwarf2_per_objfile from cu.
7975 (build_error_marker_type): Likewise.
7976 (lookup_die_type): Likewise.
7977 (determine_prefix): Likewise.
7978 (follow_die_offset): Likewise.
7979 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
7980 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
7981 (dwarf2_fetch_die_type_sect_off): Likewise.
7982 (dwarf2_get_die_type): Likewise.
7983 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
7984 (get_signatured_type): Likewise.
7985 (get_DW_AT_signature_type): Likewise.
7986 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
7987 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
7988 (cu_debug_loc_section): Likewise.
7989 (fill_in_loclist_baton): Likewise.
7990 (dwarf2_symbol_mark_computed): Likewise.
7991 (dwarf2_find_containing_comp_unit): Change objfile parameter to
7992 dwarf2_per_objfile.
7993 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
7994 parameter.
7995 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
7996 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
7997 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
7998 (set_die_type): Use dwarf2_free_objfile from cu.
7999 (get_die_type_at_offset): Likewise.
8000 (dwarf2_per_objfile_free): Don't assign global variable.
8001 (debug_names) <constructor>: Add dwarf2_per_objfile
8002 parameter, update m_debugstrlookup construction.
8003 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
8004 parameter.
8005 <m_dwarf2_per_objfile>: New field.
8006 <lookup>: Use m_dwarf2_per_objfile.
8007 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
8008 (psyms_seen_size): Likewise.
8009 (write_gdbindex): Replace objfile parameter with
8010 dwarf2_per_objfile.
8011 (write_debug_names): Likewise.
8012 (write_psymtabs_to_index): Likewise.
8013 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
8014 calls.
8015
e3b94546
SM
80162018-01-07 Simon Marchi <simon.marchi@ericsson.com>
8017
8018 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
8019 <dwarf2_per_objfile>: New field.
8020 (struct dwarf2_per_cu_data) <objfile>: Remove.
8021 <dwarf2_per_objfile>: New field.
8022 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
8023 of objfile.
8024 (create_signatured_type_table_from_index): Likewise.
8025 (create_debug_type_hash_table): Likewise.
8026 (fill_in_sig_entry_from_dwo_entry): Likewise.
8027 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
8028 (create_type_unit_group): Assign dwarf2_per_objfile instead of
8029 objfile.
8030 (create_partial_symtab): Access objfile through
8031 dwarf2_per_objfile.
8032 (process_psymtab_comp_unit_reader): Likewise.
8033 (read_comp_units_from_section): Likewise.
8034 (scan_partial_symbols): Likewise.
8035 (add_partial_symbol): Likewise.
8036 (add_partial_subprogram): Likewise.
8037 (peek_die_abbrev): Likewise.
8038 (fixup_go_packaging): Likewise.
8039 (process_full_comp_unit): Likewise.
8040 (process_full_type_unit): Likewise.
8041 (process_imported_unit_die): Likewise.
8042 (dwarf2_compute_name): Likewise.
8043 (dwarf2_physname): Likewise.
8044 (read_import_statement): Likewise.
8045 (create_cus_hash_table): Assign dwarf2_physname instead of
8046 objfile.
8047 (read_func_scope): Access objfile through dwarf2_per_objfile.
8048 (read_lexical_block_scope): Likewise.
8049 (read_call_site_scope): Likewise.
8050 (read_variable): Likewise.
8051 (dwarf2_rnglists_process): Likewise.
8052 (dwarf2_ranges_process): Likewise.
8053 (dwarf2_ranges_read): Likewise.
8054 (dwarf2_record_block_ranges): Likewise.
8055 (dwarf2_add_field): Likewise.
8056 (dwarf2_add_member_fn): Likewise.
8057 (read_structure_type): Likewise.
8058 (process_structure_scope): Likewise.
8059 (read_enumeration_type): Likewise.
8060 (read_array_type): Likewise.
8061 (read_common_block): Likewise.
8062 (read_namespace_type): Likewise.
8063 (read_namespace): Likewise.
8064 (read_module_type): Likewise.
8065 (read_tag_pointer_type): Likewise.
8066 (read_tag_ptr_to_member_type): Likewise.
8067 (read_tag_string_type): Likewise.
8068 (read_subroutine_type): Likewise.
8069 (read_typedef): Likewise.
8070 (read_base_type): Likewise.
8071 (attr_to_dynamic_prop): Likewise.
8072 (read_subrange_type): Likewise.
8073 (read_unspecified_type): Likewise.
8074 (load_partial_dies): Likewise.
8075 (read_partial_die): Likewise.
8076 (find_partial_die): Likewise.
8077 (guess_partial_die_structure_name): Likewise.
8078 (fixup_partial_die): Likewise.
8079 (read_attribute_value): Likewise.
8080 (read_addr_index_from_leb128): Likewise.
8081 (dwarf2_read_addr_index): Likewise.
8082 (dwarf2_string_attr): Likewise.
8083 (lnp_state_machine::check_line_address): Likewise.
8084 (dwarf_decode_lines_1): Likewise.
8085 (dwarf_decode_lines): Likewise.
8086 (dwarf2_start_symtab): Likewise.
8087 (var_decode_location): Likewise.
8088 (new_symbol_full): Likewise.
8089 (dwarf2_const_value_data): Likewise.
8090 (dwarf2_const_value_attr): Likewise.
8091 (dwarf2_const_value): Likewise.
8092 (die_type): Likewise.
8093 (die_containing_type): Likewise.
8094 (lookup_die_type): Likewise.
8095 (guess_full_die_structure_name): Likewise.
8096 (anonymous_struct_prefix): Likewise.
8097 (dwarf2_name): Likewise.
8098 (follow_die_ref_or_sig): Likewise.
8099 (follow_die_offset): Likewise.
8100 (follow_die_ref): Likewise.
8101 (dwarf2_fetch_die_loc_sect_off): Likewise.
8102 (dwarf2_fetch_constant_bytes): Likewise.
8103 (dwarf2_fetch_die_type_sect_off): Likewise.
8104 (dwarf2_get_die_type): Likewise.
8105 (follow_die_sig): Likewise.
8106 (decode_locdesc): Likewise.
8107 (dwarf2_per_cu_objfile): Likewise.
8108 (dwarf2_per_cu_text_offset): Likewise.
8109 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
8110 objfile.
8111 (set_die_type): Access objfile through
8112 dwarf2_per_objfile.
8113
b01ba14d
SM
81142018-01-07 Simon Marchi <simon.marchi@ericsson.com>
8115
8116 * valprint.c (converted_character_d): Remove typedef.
8117 (DEF_VEC_O (converted_character_d)): Remove.
8118 (count_next_character): Use std::vector.
8119 (print_converted_chars_to_obstack): Likewise.
8120 (generic_printstr): Likewise.
8121
4d0fdd9b
SM
81222018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
8123
8124 * xml-support.h (struct gdb_xml_value): Add constructor.
8125 <value>: Change type to unique_xmalloc_ptr.
8126 (gdb_xml_value_s): Remove typedef.
8127 (DEF_VEC_O (gdb_xml_value_s)): Remove.
8128 (gdb_xml_element_start_handler): Change parameter type to
8129 std::vector.
8130 (xml_find_attribute): Likewise.
8131 * xml-support.c (xml_find_attribute): Change parameter type to
8132 std::vector and adjust.
8133 (gdb_xml_values_cleanup): Remove.
8134 (gdb_xml_parser::start_element): Adjust to std::vector.
8135 (xinclude_start_include): Change paraeter type to std::vector
8136 and adjust.
8137 * btrace.c (check_xml_btrace_version): Likewise.
8138 (parse_xml_btrace_block): Likewise.
8139 (parse_xml_btrace_pt_config_cpu): Likewise.
8140 (parse_xml_btrace_pt): Likewise.
8141 (parse_xml_btrace_conf_bts): Likewise.
8142 (parse_xml_btrace_conf_pt): Likewise.
8143 * memory-map.c (memory_map_start_memory): Likewise.
8144 (memory_map_start_property): Likewise.
8145 * osdata.c (osdata_start_osdata): Likewise.
8146 (osdata_start_item): Likewise.
8147 (osdata_start_column): Likewise.
8148 * remote.c (start_thread): Likewise.
8149 * solib-aix.c (library_list_start_library): Likewise.
8150 (library_list_start_list): Likewise.
8151 * solib-svr4.c (library_list_start_library): Likewise.
8152 (svr4_library_list_start_list): Likewise.
8153 * solib-target.c (library_list_start_segment): Likewise.
8154 (library_list_start_section): Likewise.
8155 (library_list_start_library): Likewise.
8156 (library_list_start_list): Likewise.
8157 * tracepoint.c (traceframe_info_start_memory): Likewise.
8158 (traceframe_info_start_tvar): Likewise.
8159 * xml-syscall.c (syscall_start_syscall): Likewise.
8160 * xml-tdesc.c (tdesc_start_target): Likewise.
8161 (tdesc_start_feature): Likewise.
8162 (tdesc_start_reg): Likewise.
8163 (tdesc_start_union): Likewise.
8164 (tdesc_start_struct): Likewise.
8165 (tdesc_start_flags): Likewise.
8166 (tdesc_start_enum): Likewise.
8167 (tdesc_start_field): Likewise.
8168 (tdesc_start_enum_value): Likewise.
8169 (tdesc_start_vector): Likewise.
8170
f979c73f
SM
81712018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
8172
8173 * extension.h (struct xmethod_worker) <clone>: Remove.
8174 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
8175 Remove.
8176 (python_xmethod_worker::clone): Remove.
8177 * valops.c (find_overload_match): Use std::move instead of
8178 clone.
8179
ba18742c
SM
81802018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
8181
8182 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
8183 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
8184 <free_xmethod_worker_data>: Remove.
8185 <get_matching_xmethod_workers>: Chance VEC to std::vector.
8186 <get_xmethod_arg_types>: Remove.
8187 <get_xmethod_result_type>: Remove.
8188 <invoke_xmethod>: Remove.
8189 * extension.c (new_xmethod_worker): Remove.
8190 (clone_xmethod_worker): Remove.
8191 (get_matching_xmethod_workers): Return void, pass std::vector by
8192 pointer.
8193 (get_xmethod_arg_types): Rename to...
8194 (xmethod_worker::get_arg_types): ... this, and adjust.
8195 (get_xmethod_result_type): Rename to...
8196 (xmethod_worker::get_result_type): ... this, and adjust.
8197 (invoke_xmethod): Remove.
8198 (free_xmethod_worker): Remove.
8199 (free_xmethod_worker_vec): Remove.
8200 * extension.h (enum ext_lang_rc): Move here from
8201 extension-priv.h.
8202 (struct xmethod_worker): Add constructor and destructor.
8203 <data>: Remove.
8204 <value>: Remove.
8205 <invoke, clone, do_get_result_type, do_get_arg_types>: New
8206 virtual pure methods.
8207 <get_arg_types, get_result_type>: New methods.
8208 (xmethod_worker_ptr): Remove typedef.
8209 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
8210 (xmethod_worker_vec): Remove typedef.
8211 (xmethod_worker_up): New typedef.
8212 (invoke_xmethod): Remove.
8213 (clone_xmethod_worker): Remove.
8214 (free_xmethod_worker): Remove.
8215 (free_xmethod_worker_vec): Remove.
8216 (get_xmethod_arg_types): Remove.
8217 (get_xmethod_result_type): Remove.
8218 * valops.c (find_method_list): Use std::vector, don't use
8219 intermediate vector.
8220 (value_find_oload_method_list): Use std::vector.
8221 (find_overload_match): Use std::vector.
8222 (find_oload_champ): Use std::vector.
8223 * value.c (value_free): Use operator delete.
8224 (value_of_xmethod): Rename to...
8225 (value_from_xmethod): ... this. Don't assign
8226 xmethod_worker::value, take rvalue-reference.
8227 (result_type_of_xmethod): Adjust.
8228 (call_xmethod): Adjust.
8229 * value.h: Include extension.h.
8230 (struct xmethod_worker): Don't forward-declare.
8231 (value_of_xmethod): Rename to...
8232 (value_from_xmethod): ... this, take rvalue-reference.
8233 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
8234 (struct python_xmethod_worker): ... this, add constructor and
8235 destructor.
8236 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
8237 (gdbpy_free_xmethod_worker_data): Rename to...
8238 (python_xmethod_worker::~python_xmethod_worker): ... this and
8239 adjust.
8240 (gdbpy_clone_xmethod_worker_data): Rename to...
8241 (python_xmethod_worker::clone): ... this and adjust.
8242 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
8243 temporary vector.
8244 (gdbpy_get_xmethod_arg_types): Rename to...
8245 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
8246 (gdbpy_get_xmethod_result_type): Rename to...
8247 (python_xmethod_worker::do_get_result_type): ... this and
8248 adjust.
8249 (gdbpy_invoke_xmethod): Rename to...
8250 (python_xmethod_worker::invoke): ... this and adjust.
8251 (new_python_xmethod_worker): Rename to...
8252 (python_xmethod_worker::python_xmethod_worker): ... this and
8253 adjust.
8254 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
8255 Remove.
8256 (gdbpy_free_xmethod_worker_data): Remove.
8257 (gdbpy_get_matching_xmethod_workers): Use std::vector.
8258 (gdbpy_get_xmethod_arg_types): Remove.
8259 (gdbpy_get_xmethod_result_type): Remove.
8260 (gdbpy_invoke_xmethod): Remove.
8261 * python/python.c (python_extension_ops): Remove obsolete
8262 callbacks.
8263
e379cee6
PA
82642018-01-05 Pedro Alves <palves@redhat.com>
8265
8266 PR gdb/18653
8267 * common/signals-state-save-restore.c
8268 (save_original_signals_state): New parameter 'quiet'. Warn if we
8269 find a custom handler preinstalled, instead of internal erroring.
8270 But only warn if !quiet.
8271 * common/signals-state-save-restore.h
8272 (save_original_signals_state): New parameter 'quiet'.
8273 * main.c (captured_main_1): Move save_original_signals_state call
8274 after option handling, and pass QUIET.
8275
a655456c
PA
82762018-01-05 Pedro Alves <palves@redhat.com>
8277
8278 * spu-tdep.c (spu_catch_start): Pass
8279 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
8280
de63c46b
PA
82812018-01-05 Pedro Alves <palves@redhat.com>
8282
8283 PR gdb/22670
8284 * ada-lang.c (literal_symbol_name_matcher): New function.
8285 (ada_get_symbol_name_matcher): Use it for
8286 symbol_name_match_type::SEARCH_NAME.
8287 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
8288 it down instead of assuming symbol_name_match_type::FULL.
8289 * block.h (block_lookup_symbol): New parameter 'match_type'.
8290 * c-valprint.c (print_unpacked_pointer): Use
8291 lookup_symbol_search_name instead of lookup_symbol.
8292 * compile/compile-object-load.c (get_out_value_type): Pass down
8293 symbol_name_match_type::SEARCH_NAME.
8294 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
8295 symbol_name_match_type::FULL.
8296 * cp-support.c (cp_get_symbol_name_matcher): Handle
8297 symbol_name_match_type::SEARCH_NAME.
8298 * infrun.c (insert_exception_resume_breakpoint): Use
8299 lookup_symbol_search_name.
8300 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
8301 * psymtab.c (maintenance_check_psymtabs): Use
8302 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
8303 * stack.c (print_frame_args): Use lookup_symbol_search_name and
8304 SYMBOL_SEARCH_NAME.
8305 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
8306 if symbol_name_match_type::SEARCH_NAME.
8307 (lookup_symbol_in_language): Pass down
8308 symbol_name_match_type::FULL.
8309 (lookup_symbol_search_name): New.
8310 (lookup_language_this): Pass down
8311 symbol_name_match_type::SEARCH_NAME.
8312 (lookup_symbol_aux, lookup_local_symbol): New parameter
8313 'match_type'. Pass it down.
8314 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
8315 (lookup_symbol_search_name): New declaration.
8316 (lookup_symbol_in_block): New 'match_type' parameter.
8317
f98fc17b
PA
83182018-01-05 Pedro Alves <palves@redhat.com>
8319
8320 PR gdb/22670
8321 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
8322 ada_lookup_symbol.
8323 (ada_lookup_symbol): Reimplement in terms of
8324 ada_lookup_symbol_list, bits factored out from
8325 ada_lookup_encoded_symbol.
8326
342f8240
JB
83272018-01-05 Joel Brobecker <brobecker@adacore.com>
8328
8329 * ada-exp.y (write_object_renaming): When subscripting an array
8330 using a symbol as the index, pass the block in call to
8331 ada_lookup_encoded_symbol when looking that symbol up.
8332
7150d33c
JG
83332018-01-05 Jerome Guitton <guitton@adacore.com>
8334
8335 * ada-lang.c (ada_array_length): Use ada_index_type instead of
8336 TYPE_INDEX_TYPE.
8337
cc0e770c
JB
83382018-01-05 Joel Brobecker <brobecker@adacore.com>
8339
8340 * ada-lang.c (ada_to_fixed_value_create): Add handling of
8341 the case where VALUE_LVAL (val0) is not lval_memory.
8342
f79da888 83432018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
8344
8345 * ada-valprint.c (print_optional_low_bound): Handle
8346 character-indexed array printing like boolean-indexed array
8347 printing.
8348
cd385f94
JB
83492018-01-05 Joel Brobecker <brobecker@adacore.com>
8350
8351 * NEWS: Create a new section for the next release branch.
8352 Rename the section of the current branch, now that it has
8353 been cut.
8354
09aca949
JB
83552018-01-05 Joel Brobecker <brobecker@adacore.com>
8356
8357 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
8358 * version.in: Bump version to 8.1.50.DATE-git.
8359
9f757bf7
XR
83602018-01-03 Xavier Roirand <roirand@adacore.com>
8361
8362 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
8363 Add field.
8364 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
8365 Add field.
8366 (default_exception_support_info) <catch_handlers_sym>: Add field.
8367 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
8368 (ada_exception_name_addr_1): Add "catch handlers" handling.
8369 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
8370 Update all callers.
8371 (create_excep_cond_exprs) <ex>: Add parameter.
8372 (re_set_exception): Update create_excep_cond_exprs call.
8373 (print_it_exception, print_one_exception, print_mention_exception)
8374 (print_recreate_exception): Add "catch handler" handling.
8375 (allocate_location_catch_handlers, re_set_catch_handlers)
8376 (check_status_catch_handlers, print_it_catch_handlers)
8377 (print_one_catch_handlers, print_mention_catch_handlers)
8378 (print_recreate_catch_handlers): New function.
8379 (catch_handlers_breakpoint_ops): New variable.
8380 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
8381 Add parameter. Add "catch handler" handling.
8382 (ada_exception_sym_name, ada_exception_breakpoint_ops):
8383 Add "catch handler" handling.
8384 (ada_exception_catchpoint_cond_string): Add "catch handler"
8385 handling.
8386 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
8387 call.
8388 (catch_ada_handlers_command): New function.
8389 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
8390 operations structure.
8391 (_initialize_ada_language): Add "catch handlers" command entry.
8392 * NEWS: Document "catch handlers" feature.
8393
9fe561ab
JB
83942018-01-02 Joel Brobecker <brobecker@adacore.com>
8395
8396 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
8397 account when creating the array type of the slice.
8398 (ada_value_slice): Likewise.
8399
a405673c
JB
84002018-01-02 Joel Brobecker <brobecker@adacore.com>
8401
8402 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
8403 New enum value.
8404 (create_array_type_with_stride): Add byte_stride_prop parameter.
8405 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
8406 New parameter. Update all callers in this file.
8407 (array_type_has_dynamic_stride): New function.
8408 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
8409 of arrays with dynamic byte strides.
8410 * dwarf2read.c (read_array_type): Add support for dynamic
8411 DW_AT_byte_stride attributes.
8412
74a2f8ff
JB
84132018-01-02 Joel Brobecker <brobecker@adacore.com>
8414
8415 * dwarf2read.c (read_unspecified_type): Treat
8416 DW_TAG_enumeration_type DIEs from Ada units as stubs.
8417
e2882c85
JB
84182018-01-01 Joel Brobecker <brobecker@adacore.com>
8419
8420 Update copyright year range in all GDB files.
8421
1690bb24
JB
84222018-01-01 Joel Brobecker <brobecker@adacore.com>
8423
8424 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
8425 and gdb/testsuite/gdb.base/step-line.c.
8426
0f0c98a8
JB
84272018-01-01 Joel Brobecker <brobecker@adacore.com>
8428
8429 * copyright.py (main): Dump the contents of
8430 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
8431 even if BY_HAND is empty.
8432
82e1e79a
JB
84332018-01-01 Joel Brobecker <brobecker@adacore.com>
8434
8435 * top.c (print_gdb_version): Update Copyright year in version
8436 message.
8437
053f54e5 84382018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 8439
053f54e5 8440 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 8441
053f54e5 8442For older changes see ChangeLog-2017.
c906108c
SS
8443\f
8444Local Variables:
8445mode: change-log
8446left-margin: 8
8447fill-column: 74
8448version-control: never
57da7796 8449coding: utf-8
c906108c 8450End:
This page took 3.38365 seconds and 4 git commands to generate.