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