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