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