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