Style the gdb welcome message
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-12-28 Tom Tromey <tom@tromey.com>
2
3 * top.c (print_gdb_version): Style gdb version number.
4
5 2018-12-28 Tom Tromey <tom@tromey.com>
6
7 * printcmd.c (print_address_symbolic): Style function name.
8
9 2018-12-28 Tom Tromey <tom@tromey.com>
10
11 * breakpoint.c (say_where): Style file name.
12
13 2018-12-28 Tom Tromey <tom@tromey.com>
14
15 * ui-out.h (enum class ui_out_style_kind) <VARIABLE>: New global.
16 * stack.c (print_frame_arg): Style name.
17 * printcmd.c (print_variable_and_value): Style variable name.
18 * cli/cli-style.h (variable_name_style): Declare.
19 * cli/cli-style.c (variable_name_style): New global.
20 (_initialize_cli_style): Update.
21 * cli-out.c (cli_ui_out::do_field_string): Update.
22
23 2018-12-28 Tom Tromey <tom@tromey.com>
24
25 * utils.h (reset_terminal_style): Declare.
26 * utils.c (can_emit_style_escape): New function.
27 (set_output_style): Use it.
28 (reset_terminal_style): New function.
29 * printcmd.c (printf_command): Call reset_terminal_style.
30 * cli/cli-cmds.c (echo_command): Call reset_terminal_style.
31
32 2018-12-28 Tom Tromey <tom@tromey.com>
33
34 * utils.h (set_output_style, fprintf_styled)
35 (fputs_styled): Declare.
36 * utils.c (applied_style, desired_style): New globals.
37 (emit_style_escape, set_output_style): New function.
38 (prompt_for_continue): Emit style escapes.
39 (fputs_maybe_filtered): Likewise.
40 (fputs_styled, fprintf_styled): New functions.
41 * ui-out.h (enum class ui_out_style_kind): New.
42 (class ui_out) <field_string, field_stream, do_field_string>: Add
43 style parameter.
44 * ui-out.c (ui_out::field_stream, ui_out::field_string): Add style
45 parameter.
46 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Add style
47 parameter.
48 * tui/tui-out.c (tui_ui_out::do_field_string): Add style
49 parameter.
50 (tui_ui_out::do_field_string): Update.
51 * tracepoint.c (print_one_static_tracepoint_marker): Style
52 output.
53 * stack.c (print_frame_info, print_frame): Style output.
54 * source.c (print_source_lines_base): Style output.
55 * skip.c (info_skip_command): Style output.
56 * record-btrace.c (btrace_call_history_src_line): Style output.
57 (btrace_call_history): Likewise.
58 * python/py-framefilter.c (py_print_frame): Style output.
59 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Add style
60 parameter.
61 * mi/mi-out.c (mi_ui_out::do_table_header)
62 (mi_ui_out::do_field_int): Update.
63 (mi_ui_out::do_field_string): Update.
64 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
65 Style output.
66 * cli/cli-style.h: New file.
67 * cli/cli-style.c: New file.
68 * cli-out.h (class cli_ui_out) <do_field_string>: Add style
69 parameter.
70 * cli-out.c (cli_ui_out::do_table_header)
71 (cli_ui_out::do_field_int, cli_ui_out::do_field_skip): Update.
72 (cli_ui_out::do_field_string): Add style parameter. Style the
73 output.
74 * breakpoint.c (print_breakpoint_location): Style output.
75 (update_static_tracepoint): Likewise.
76 * Makefile.in (SUBDIR_CLI_SRCS): Add cli-style.c.
77 (HFILES_NO_SRCDIR): Add cli-style.h.
78
79 2018-12-28 Tom Tromey <tom@tromey.com>
80
81 * unittests/style-selftests.c: New file.
82 * ui-style.c: New file.
83 * ui-style.h: New file.
84 * ui-file.h: Include ui-style.h.
85 * Makefile.in (COMMON_SFILES): Add ui-style.c.
86 (HFILES_NO_SRCDIR): Add ui-style.h.
87 (SUBDIR_UNITTESTS_SRCS): Add style-selftests.c.
88
89 2018-12-28 Tom Tromey <tom@tromey.com>
90
91 * command.h (add_setshow_enum_cmd): Add "context" argument.
92 * cli/cli-decode.c (add_setshow_enum_cmd): Add "context"
93 argument. Call set_cmd_context.
94
95 2018-12-28 Tom Tromey <tom@tromey.com>
96
97 * utils.c (filter_initialized): New global.
98 (wrap_buffer): Now a std::string.
99 (wrap_pointer): Remove.
100 (flush_wrap_buffer): New function.
101 (filtered_printing_initialized, set_width, wrap_here)
102 (fputs_maybe_filtered): Update.
103
104 2018-12-28 Eli Zaretskii <eliz@gnu.org>
105
106 * coffread.c (coff_symtab_read): Don't record in minsyms symbols
107 that are unresolved. This avoids triggering an internal error
108 when stepping outside of 'main' in MinGW programs.
109
110 2018-12-27 Tom Tromey <tom@tromey.com>
111
112 * python/py-utils.c (gdbpy_handle_exception): Translate
113 PyExc_KeyboardInterrupt to quit.
114
115 2018-12-27 Tom Tromey <tom@tromey.com>
116
117 * python/python-internal.h (gdbpy_print_stack_or_quit): Declare.
118 * python/py-unwind.c (pyuw_sniffer): Use
119 gdbpy_print_stack_or_quit.
120 * python/py-framefilter.c (throw_quit_or_print_exception):
121 Remove.
122 (gdbpy_apply_frame_filter): Use gdbpy_print_stack_or_quit.
123 * python/python.c (gdbpy_print_stack_or_quit): New function.
124
125 2018-12-27 Tom Tromey <tom@tromey.com>
126
127 * python/py-value.c (convert_value_from_python): Use
128 gdbpy_convert_exception.
129 * python/py-param.c (parmpy_init): Use gdbpy_convert_exception.
130 * python/py-cmd.c (cmdpy_init): Use gdbpy_convert_exception.
131 * python/py-breakpoint.c (bppy_init): Use
132 gdbpy_convert_exception.
133
134 2018-12-27 Tom Tromey <tom@tromey.com>
135
136 * configure.nat (NATDEPFILES): Use nat/ prefix.
137 * Makefile.in (CONFIG_SRC_SUBDIR): Add nat.
138 (%.o: ${srcdir}/nat/%.c): Remove rule.
139 (INIT_FILES): Do not filter out NATDEPFILES.
140
141 2018-12-27 Tom Tromey <tom@tromey.com>
142
143 * Makefile.in (INIT_FILES): Redefine.
144 (stamp-init): Remove sed, tr invocations. Use for loop. Don't
145 set LANG or LC_ALL.
146
147 2018-12-27 Tom Tromey <tom@tromey.com>
148
149 * Makefile.in (stamp-init): Remove gdbtypes special case.
150
151 2018-12-27 John Baldwin <jhb@FreeBSD.org>
152
153 * config/i386/nm-fbsd.h: Remove file.
154 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-fbsd.h.
155 * configure.nat: Remove NAT_FILE for FreeBSD/i386.
156
157 2018-12-27 Tom Tromey <tom@tromey.com>
158
159 * minsyms.h (class minimal_symbol_reader): Use
160 DISABLE_COPY_AND_ASSIGN.
161
162 2018-12-27 Tom Tromey <tom@tromey.com>
163
164 * python/python.c (python_interactive_command): Use std::string.
165 (gdbpy_parameter): Likewise.
166 * python/py-utils.c (unicode_to_encoded_string): Update comment.
167 * python/py-symtab.c (salpy_str): Use PyString_FromFormat.
168 * python/py-record-btrace.c (recpy_bt_insn_data): Use
169 byte_vector.
170 * python/py-objfile.c (objfpy_get_build_id): Use
171 unique_xmalloc_ptr.
172 * python/py-inferior.c (infpy_read_memory): Use
173 unique_xmalloc_ptr.
174 * python/py-cmd.c (gdbpy_parse_command_name): Use std::string.
175
176 2018-12-26 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * target.c (target_terminal::restore_inferior): Remove struct keyword.
179
180 2018-12-26 Simon Marchi <simon.marchi@ericsson.com>
181
182 * build-id.c (build_id_to_debug_bfd): Enhance debug output.
183 * symfile.c (separate_debug_file_exists): Likewise.
184
185 2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * c-exp.y (field_name): Allow DOUBLE_KEYWORD, INT_KEYWORD, LONG,
188 SHORT, SIGNED_KEYWORD, and UNSIGNED tokens to act as a field
189 names.
190 (typename_stoken): New function.
191
192 2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
193
194 * c-exp.y (field_name): New %token, and new rule.
195 (exp): Replace uses of 'name' with 'field_name' where appropriate.
196
197 2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 PR gdb/13368
200 * c-exp.y (typebase): Extend the comment.
201 (ident_tokens): Likewise.
202
203 2018-12-18 Tom Tromey <tom@tromey.com>
204
205 * dwarf2read.c (dwarf2_find_containing_comp_unit): Don't take
206 address of sect_off.
207
208 2018-12-23 Joel Brobecker <brobecker@adacore.com>
209
210 GDB 8.2.1 released.
211
212 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * riscv-tdep.c (riscv_call_arg_struct): Don't adjust size before
215 assigning locations.
216 (riscv_return_value): Take more care not to read/write outside of
217 argument buffer. Cast return value between the declared type and
218 the abi type.
219
220 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * riscv-tdep.c (riscv_register_reggroup_p): Save and restore fcsr,
223 fflags, and frm registers.
224
225 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): New function.
228 (riscv_gdbarch_init): Register new function with gdbarch.
229 * riscv-tdep.h: New enum to define RISC-V DWARF register numbers.
230
231 2018-12-21 Simon Marchi <simon.marchi@ericsson.com>
232
233 * minsyms.c (mst_str): New.
234 (minimal_symbol_reader::record_full): Add debug output.
235
236 2018-12-21 John Baldwin <jhb@FreeBSD.org>
237
238 * fbsd-nat.c (fbsd_handle_debug_trap): Require pl.pl_flags to
239 equal PL_FLAG_SI.
240 (fbsd_nat_target::stopped_by_sw_breakpoint): Likewise.
241
242 2018-12-21 Paul Marechal <paul.marechal@ericsson.com>
243
244 PR gdb/23974
245 * target.c (target_read_stralloc): Check for empty vector.
246
247 2018-12-21 Дилян Палаузов <dilyan.palauzov@aegee.org>
248
249 * top.c (print_gdb_configuration): Print "--without-python"
250 if GDB was configured without Python.
251
252 2018-12-21 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * riscv-tdep.c (riscv_scan_prologue): Use plongest to format
255 a signed offset as a string.
256
257 2018-12-21 Dave Murphy <davem@devkitpro.org>
258
259 * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero
260 initialise.
261 * probe.c (any_static_probe_ops): Ditto.
262 * record-btrace.c (record_btrace_thread_observer_token): Ditto.
263 * stap-probe.c (stap_static_probe_ops): Ditto.
264 * tui/tui-hooks.c (tui_observers_token): Ditto.
265 * unittests/observable-selftests.c (token1, token2, token3): Ditto.
266
267 2018-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * gdb/dummy-frame.c (default_dummy_id): Defined new function.
270 * gdb/dummy-frame.h (default_dummy_id): Declare new function.
271 * gdb/frame-unwind.c (default_unwind_pc): Define new function.
272 (default_unwind_sp): Define new function.
273 * gdb/frame-unwind.h (default_unwind_pc): Declare new function.
274 (default_unwind_sp): Declare new function.
275 * gdb/frame.c (frame_unwind_pc): Assume gdbarch_unwind_pc is
276 available.
277 (get_frame_sp): Assume that gdbarch_unwind_sp is available.
278 * gdb/gdbarch.c: Regenerate.
279 * gdb/gdbarch.h: Regenerate.
280 * gdb/gdbarch.sh: Update definition of dummy_id, unwind_pc, and
281 unwind_sp. Add additional header files to be included in
282 generated file.
283
284 2018-12-19 Dimitar Dimitrov <dimitar@dinux.eu>
285
286 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove
287 sp clobbers.
288
289 2018-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark',
292 'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6',
293 'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14',
294 'processing_has_namespace_info' from unsigned int to bool. Update
295 comments.
296 (producer_is_icc_lt_14): Update return type.
297 (producer_is_gcc_lt_4_3): Likewise.
298 (producer_is_gxx_lt_4_6): Likewise.
299 (process_die): Write true instead of 1 into predicate fields.
300 (dwarf2_start_symtab): Likewise.
301 (var_decode_location): Likewise.
302 (dwarf2_mark_helper): Likewise.
303 (dwarf2_mark): Likewise.
304 (dwarf2_clear_marks): Write false instead of 0 into predicate
305 field.
306 (dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not
307 0.
308
309 2018-12-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
310
311 * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of
312 asm/sigcontext.h.
313
314 2018-12-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
315
316 * nat/linux-ptrace.c (kill_child): Fix ARI warning by removing
317 warning trailing new line.
318
319 2018-12-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
320
321 * nat/linux-ptrace.c (kill_child): New function.
322 (linux_ptrace_test_ret_to_nx): Use kill_child instead of local code.
323 Add a call to kill_child in case of early return after fork.
324 (linux_check_ptrace_features): Use kill_child instead of local code.
325 (linux_test_for_tracefork): Likewise.
326
327 2018-12-14 Tom Tromey <tom@tromey.com>
328
329 * Makefile.in: Remove "alloca" comment.
330 (INFOFILES): Remove.
331 (local-maintainer-clean): Don't use INFOFILES.
332
333 2018-12-13 John Baldwin <jhb@FreeBSD.org>
334
335 * syscalls/update-freebsd.sh: New file.
336 * syscalls/freebsd.xml: Regenerate.
337
338 2018-12-13 John Baldwin <jhb@FreeBSD.org>
339
340 * NEWS: Add entry documenting system call aliases.
341 * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
342 to get_syscalls_by_name.
343 * gdbarch.sh (UNKNOWN_SYSCALL): Remove.
344 * gdbarch.h: Regenerate.
345 * syscalls/gdb-syscalls.dtd (syscall): Add alias attribute.
346 * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename
347 from get_syscall_by_name. Now accepts a pointer to a vector of
348 integers and returns a bool.
349 [HAVE_LIBEXPAT] (struct syscall_desc): Add alias member.
350 (syscall_create_syscall_desc): Add alias parameter and pass it to
351 syscall_desc constructor.
352 (syscall_start_syscall): Handle alias attribute.
353 (syscall_attr): Add alias attribute.
354 (xml_get_syscalls_by_name): Rename from xml_get_syscall_number.
355 Now accepts a pointer to a vector of integers and returns a
356 bool. Add syscalls whose alias or name matches the requested
357 name.
358 (get_syscalls_by_name): Rename from get_syscall_by_name. Now
359 accepts a pointer to a vector of integers and returns a bool.
360 * xml-syscall.h (get_syscalls_by_name): Likewise.
361
362 2018-12-13 John Baldwin <jhb@FreeBSD.org>
363
364 * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
365 to get_syscalls_by_group.
366 * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return
367 false.
368 [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall
369 numbers to an existing vector of integers and return a bool.
370 (get_syscalls_by_group): Accept pointer to vector of integers
371 and change return type to bool.
372 * xml-syscall.h (get_syscalls_by_group): Likewise.
373
374 2018-12-13 Jim Wilson <jimw@sifive.com>
375
376 * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add
377 comment for SD field, and correct xlen calculation. For MISA, add
378 comment for MXL field, add call to register_size, and correct base
379 calculation.
380
381 2018-12-13 Stafford Horne <shorne@gmail.com>
382
383 * NEWS(New targets): Add or1k*-*-linux*.
384
385 2018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
386
387 * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
388 declare on one line to fix ARI warning.
389
390 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
393 (infcall_suspend_state::registers): New.
394 (infcall_suspend_state::restore): New.
395 (infcall_suspend_state::thread_suspend): Rename to...
396 (infcall_suspend_state::m_thread_suspend): ...this.
397 (infcall_suspend_state::registers): Rename to...
398 (infcall_suspend_state::m_registers): ...this.
399 (infcall_suspend_state::siginfo_gdbarch): Rename to...
400 (infcall_suspend_state::m_siginfo_gdbarch): ...this.
401 (infcall_suspend_state::siginfo_data): Rename to...
402 (infcall_suspend_state::m_siginfo_data): ...this.
403 (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
404 constructor.
405 (restore_infcall_suspend_state): Rewrite to use
406 infcall_suspend_state::restore method.
407 (get_infcall_suspend_state_regcache): Use
408 infcall_suspend_state::registers method.
409
410 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
411
412 * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
413 arguments are passed in integer registers.
414 (riscv_call_arg_complex_float): Likewise.
415
416 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
417
418 * nat/linux-osdata.c (common_getter): New function.
419 (struct osdata_type): Change getter to take_snapshot.
420 Add LONGEST len_avail and struct buffer buffer.
421 Change all elements in the initializer.
422 Add an element for the list of types.
423 (linux_xfer_osdata_info_os_types): New function.
424 (linux_common_xfer_osdata): Use common_getter for the list of types.
425 Replace getter call by common_getter.
426 (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
427 Add arg BUFFER. Only keep the code that adds data in BUFFER.
428 (linux_xfer_osdata_fds): Likewise.
429 (linux_xfer_osdata_modules): Likewise.
430 (linux_xfer_osdata_msg): Likewise.
431 (linux_xfer_osdata_processes): Likewise.
432 (linux_xfer_osdata_processgroups): Likewise.
433 (linux_xfer_osdata_sem): Likewise.
434 (linux_xfer_osdata_shm): Likewise.
435 (linux_xfer_osdata_isockets): Likewise.
436 (linux_xfer_osdata_threads): Likewise.
437
438 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
439
440 * nat/linux-osdata.c: Removed various trailing spaces.
441
442 2018-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
443
444 * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
445 leading whitespace before #include line.
446
447 2018-12-08 Simon Marchi <simon.marchi@ericsson.com>
448 Дилян Палаузов <dilyan.palauzov@aegee.org>
449
450 PR gdb/23950
451 * configure.ac: Search for tgetent in libtinfow.
452 * configure: Re-generate.
453
454 2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
455
456 * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
457 (thread_db_err_str): Forward declare.
458 (delete_thread_db_info): Call td_ta_delete_p if available.
459 (try_thread_db_load_1): Acquire td_ta_delete address.
460 * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
461
462 2018-12-08 Pedro Alves <palves@redhat.com>
463
464 * source.c (forward_search_command): Rename to ...
465 (search_command_helper): ... this. Add 'forward' parameter.
466 Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
467 buffer. Handle backward searches too.
468 (forward_search_command, reverse_search_command): Reimplement by
469 calling search_command_helper.
470
471 2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
472
473 * .dir-locals.el: Copy most of the settings from c-mode over to
474 c++-mode.
475
476 2018-12-08 Stafford Horne <shorne@gmail.com>
477
478 * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
479 * configure.tgt: Add or1k*-*-linux*.
480 * or1k-linux-tdep.c: New file.
481 * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
482
483 2018-12-07 Pedro Alves <palves@redhat.com>
484
485 * dwarf2read.c (get_gdb_index_contents_from_section): Use
486 gdb::make_array_view.
487
488 2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
489
490 * language.c (_initialize_language): Fix leak by assigning
491 a static string to language. Same for range and case_sensitive,
492 even if no leak is detected for these variables.
493
494 2018-12-05 John Baldwin <jhb@FreeBSD.org>
495
496 * configure: Re-generate.
497 * configure.ac: Use separate sed expressions to escape variables
498 in auto-load directories.
499
500 2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
503 (riscv_find_default_target_description): Use new function to
504 extract feature from gdbarch_info.
505 (riscv_gdbarch_init): Add error checks for xlen and flen between
506 target description and bfd headers. Be smarter about when we
507 think the hardware floating point abi should be used.
508
509 2018-12-05 Alan Hayward <alan.hayward@arm.com>
510
511 * nat/aarch64-linux-hw-point.c
512 (aarch64_linux_any_set_debug_regs_state): New function.
513 * nat/aarch64-linux-hw-point.h
514 (aarch64_linux_any_set_debug_regs_state): New declaration.
515 * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
516 BPs or WPs are set.
517
518 2018-11-30 John Baldwin <jhb@FreeBSD.org>
519
520 * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
521 (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
522
523 2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
524 Simon Marchi <simon.marchi@ericsson.com>
525
526 * linespec.c (symtab_vector_up): Remove.
527 (symtabs_from_filename): Change return type to std::vector.
528 (collect_symtabs_from_filename): Likewise.
529 (create_sals_line_offset): Assign return value of
530 collect_symtabs_from_filename to *ls->file_symtabs.
531 (convert_explicit_location_to_linespec): Remove call to release.
532 (parse_linespec): Likewise.
533 (symtab_collector) <symtab_collector>: Remove initialization of
534 m_symtabs.
535 <release_symtabs>: Change return type to std::vector<symtab *>.
536 <operator ()>: Adjust.
537
538 2018-11-30 John Baldwin <jhb@FreeBSD.org>
539
540 * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
541 defined.
542 (union sigval32, struct siginfo32, fbsd_siginfo_size)
543 (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
544 of KERN_PROC_AUXV and PT_LWPINFO.
545 (fbsd_nat_target::xfer_partial): Define method unconditionally.
546 Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
547 Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
548 Make TARGET_OBJECT_FREEBSD_VMMAP and
549 TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
550 and KERN_PROC_PS_STRINGS.
551 * fbsd-nat.h: Include <sys/proc.h>.
552 (fbsd_nat_target::xfer_partial): Declare method unconditionally.
553
554 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
555
556 * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
557 header files.
558 (riscv_linux_nat_target::read_description): New method.
559
560 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
561
562 * arch/riscv.h (riscv_gdbarch_features::hash): New method.
563 * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
564 (riscv_tdesc_cache): New global.
565 (riscv_create_target_description): Look in the cache before
566 creating a new target description.
567
568 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * arch/riscv.h (riscv_gdb_features::operator==): New.
571 (riscv_gdb_features::operator!=): New.
572 * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
573 operator.
574
575 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
576
577 * arch/riscv.h (riscv_create_target_description): Make return type
578 const.
579 * arch/riscv.c (riscv_create_target_description): Likewise.
580 * riscv-tdep.c (riscv_find_default_target_description): Likewise.
581
582 2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
583 Keith Seitz <keiths@redhat.com>
584 Tom Tromey <tom@tromey.com>
585 Sergio Durigan Junior <sergiodj@redhat.com>
586
587 https://bugzilla.redhat.com/show_bug.cgi?id=1613614
588 * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
589 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
590 inside the CU.
591
592 2018-11-30 Pedro Alves <palves@redhat.com>
593
594 * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
595 <stratum>: New override.
596 * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
597 <stratum>: New override.
598 * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
599 <stratum>: New override.
600 * exec.c (exec_target) <exec_target>: Delete.
601 <stratum>: New override.
602 * gdbarch-selftests.c (register_to_value_test): Adjust to use the
603 stratum method instead of the to_stratum field.
604 * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
605 <stratum>: New override.
606 (thread_db_target::thread_db_target): Delete.
607 * make-target-delegates (print_class): Don't print a ctor
608 declaration. Print a stratum method override declaration.
609 * process-stratum-target.h (process_stratum_target)
610 <process_stratum_target>: Delete.
611 <stratum>: New override.
612 * ravenscar-thread.c (ravenscar_thread_target)
613 <ravenscar_thread_target>: Delete.
614 <stratum>: New override.
615 * record-btrace.c (record_btrace_target)
616 <record_btrace_target>: Delete.
617 <stratum>: New override.
618 * record-full.c (record_full_base_target)
619 <record_full_base_target>: Delete.
620 <stratum>: New override.
621 * record.c (record_disconnect, record_detach)
622 (record_mourn_inferior, record_kill): Adjust to use the stratum
623 method instead of the to_stratum field.
624 * regcache.c (cooked_read_test, cooked_write_test): Likewise.
625 * sol-thread.c (sol_thread_target)
626 <sol_thread_target>: Delete.
627 <stratum>: New override.
628 * spu-multiarch.c (spu_multiarch_target)
629 <spu_multiarch_target>: Delete.
630 <stratum>: New override.
631 * target-delegates.c: Regenerate.
632 * target.c (target_stack::push, target_stack::unpush)
633 (pop_all_targets_above, pop_all_targets_at_and_above)
634 (info_target_command, target_require_runnable)
635 (target_stack::find_beneath): Adjust to use the stratum method
636 instead of the to_stratum field.
637 (dummy_target::dummy_target): Delete.
638 (dummy_target::stratum): New.
639 (debug_target::debug_target): Delete.
640 (debug_target::stratum): New.
641 (maintenance_print_target_stack): Adjust to use the stratum method
642 instead of the to_stratum field.
643 * target.h (struct target_ops) <stratum>: New method.
644 <to_stratum>: Delete.
645 <is_pushed>: Adjust to use the stratum method
646 instead of the to_stratum field.
647
648 2018-11-30 Pedro Alves <palves@redhat.com>
649
650 * corelow.c (core_target) <has_all_memory, has_execution>: New
651 overrides.
652 * inf-child.c (inf_child_target::has_all_memory)
653 (inf_child_target::has_memory, inf_child_target::has_stack)
654 (inf_child_target::has_registers)
655 (inf_child_target::has_execution): Delete.
656 * inf-child.h (inf_child_target) <has_all_memory, has_memory,
657 has_stack, has_registers, has_execution>: Delete.
658 * process-stratum-target.c
659 (process_stratum_target::has_all_memory)
660 (process_stratum_target::has_memory)
661 (process_stratum_target::has_stack)
662 (process_stratum_target::has_registers)
663 (process_stratum_target::has_execution): New.
664 * process-stratum-target.h (process_stratum_target)
665 <has_all_memory, has_memory, has_stack, has_registers,
666 has_execution>: New method overrides.
667 * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
668 has_memory, has_stack, has_registers, has_execution>: Delete.
669 * remote-sim.c (gdbsim_target) <has_stack, has_registers,
670 has_execution>: Delete.
671 * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
672 has_registers, has_execution>: Delete.
673 * target.c (default_child_has_all_memory)
674 (default_child_has_memory, default_child_has_stack)
675 (default_child_has_registers, default_child_has_execution):
676 Delete.
677 * target.h (default_child_has_all_memory)
678 (default_child_has_memory, default_child_has_stack)
679 (default_child_has_registers, default_child_has_execution):
680 Delete.
681 * tracefile.h (tracefile_target) <has_execution>: New override.
682
683 2018-11-30 Pedro Alves <palves@redhat.com>
684
685 * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
686 * bsd-kvm.c: Include "process-stratum-target.h".
687 (bsd_kvm_target): Now inherits from process_stratum_target.
688 (bsd_kvm_target::bsd_kvm_target): Default it.
689 * corelow.c: Include "process-stratum-target.h".
690 (core_target): Now inherits from process_stratum_target.
691 (core_target::core_target): Don't set to_stratum here.
692 * inf-child.c (inf_child_target::inf_child_target): Delete.
693 * inf-child.h: Include "process-stratum-target.h".
694 (inf_child_target): Inherit from process_stratum_target.
695 (inf_child_target) <inf_child_target>: Default it.
696 <can_async_p, supports_non_stop, supports_disable_randomization>:
697 Delete overrides.
698 * process-stratum-target.c: New file.
699 * process-stratum-target.h: New file.
700 * remote-sim.c: Include "process-stratum-target.h".
701 (gdbsim_target): Inherit from process_stratum_target.
702 <gdbsim_target>: Default it.
703 * remote.c: Include "process-stratum-target.h".
704 (remote_target): Inherit from process_stratum_target.
705 <remote_target>: Default it.
706 * target.c (default_thread_address_space)
707 (default_thread_architecture): Delete.
708 * target.h (target_ops) <thread_architecture>: Now returns NULL by
709 default.
710 <thread_address_space>: Ditto.
711 * test-target.h: Include "process-stratum-target.h" instead of
712 "target.h".
713 (test_target_ops): Inherit from process_stratum_target.
714 <test_target_ops>: Default it.
715 * tracefile.c (tracefile_target::tracefile_target): Delete.
716 * tracefile.h: Include "process-stratum-target.h".
717 (tracefile_target): Inherit from process_stratum_target.
718 <tracefile_target>: Default it.
719 * target-delegates.c: Regenerate.
720
721 2018-11-30 Pedro Alves <palves@redhat.com>
722
723 * Makefile.in (COMMON_SFILES): Add test-target.c.
724 * gdbarch-selftests.c: Include "test-target.h".
725 * regcache.c: Include "test-target.h".
726 * target.c (test_target_info, test_target_ops::info): Move to ...
727 * test-target.c: ... this new file.
728 * target.h (test_target_ops): Move to ...
729 * test-target.h: ... this new file.
730
731 2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
732
733 * source.c (forward_search_command): Fix leak by using
734 xrealloc even for the first allocation in the loop, as buf
735 is static.
736
737 2018-11-29 Rajendra SY <rajendra.sy@gmail.com>
738
739 PR gdb/23093
740 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
741 (fbsd_gdb_signal_to_target): New.
742 (fbsd_init_abi): Install gdbarch "signal_from_target" and
743 "signal_to_target" methods.
744
745 2018-11-29 Tom Tromey <tom@tromey.com>
746
747 * valarith.c (value_x_unop): Don't set argvec[3].
748
749 2018-11-26 Simon Marchi <simon.marchi@ericsson.com>
750
751 PR gdb/23917
752 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
753 semicolon.
754
755 2018-11-26 Pedro Alves <palves@redhat.com>
756
757 * procfs.c (procfs_notice_thread): Replace uses of
758 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
759 * sol-thread.c (sol_thread_target::wait)
760 (sol_update_thread_list_callback): Likewise.
761
762 2018-11-25 Tom Tromey <tom@tromey.com>
763
764 * ui-out.c (ui_out::field_fmt): Remove comment.
765 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
766 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
767
768 2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
769
770 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
771 leak in open_source_file' has been partially undone by '2179fbc36d23
772 Return scoped_fd from open_source_file'. Re-add the transfer of
773 current s->fullname to the unique_xmalloc_ptr fullname given
774 to find_and_open_source.
775
776 2018-11-23 Pedro Alves <palves@redhat.com>
777
778 * gdbthread.h (enum thread_state): Move comments here.
779 (is_running, is_stopped, is_exited): Remove declarations.
780
781 2018-11-22 Pedro Alves <palves@redhat.com>
782
783 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
784 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
785 ALL_NON_EXITED_THREADS with all_non_exited_threads.
786 (print_one_breakpoint_location): Replace ALL_INFERIORS with
787 all_inferiors.
788 * bsd-kvm.c: Include inferior.h.
789 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
790 with all_non_exited_threads.
791 * common/filtered-iterator.h: New.
792 * common/safe-iterator.h: New.
793 * corelow.c (core_target_open): Don't call init_thread_list here.
794 * darwin-nat.c (thread_info_from_private_thread_info): Replace
795 ALL_THREADS with all_threads.
796 * fbsd-nat.c (fbsd_nat_target::resume): Replace
797 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
798 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
799 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
800 * fork-child.c (postfork_hook): Don't call init_thread_list here.
801 * gdbarch-selftests.c (register_to_value_test): Adjust.
802 * gdbthread.h: Don't include "inferior.h" here.
803 (struct inferior): Forward declare.
804 (enum step_over_calls_kind): Moved here from inferior.h.
805 (thread_info::deletable): Definition moved to thread.c.
806 (find_thread_ptid (inferior *, ptid_t)): Declare.
807 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
808 Include "thread-iter.h".
809 (all_threads, all_non_exited_threads, all_threads_safe): New.
810 (any_thread_p): Declare.
811 (thread_list): Delete.
812 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
813 all_non_exited_threads.
814 (proceed_after_attach_callback): Delete.
815 (proceed_after_attach): Take an inferior pointer instead of an
816 integer PID. Adjust to use range-for.
817 (attach_post_wait): Pass down inferior pointer instead of pid.
818 Use range-for instead of ALL_NON_EXITED_THREADS.
819 (detach_command): Remove init_thread_list call.
820 * inferior-iter.h: New.
821 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
822 (delete_thread_of_inferior): Delete.
823 (delete_inferior, exit_inferior_1): Use range-for with
824 inf->threads_safe() instead of iterate_over_threads.
825 (inferior_appeared): Call init_thread_list here.
826 (discard_all_inferiors): Use all_non_exited_inferiors.
827 (find_inferior_id, find_inferior_pid): Use all_inferiors.
828 (iterate_over_inferiors): Use all_inferiors_safe.
829 (have_inferiors, number_of_live_inferiors): Use
830 all_non_exited_inferiors.
831 (number_of_inferiors): Use all_inferiors and std::distance.
832 (print_inferior): Use all_inferiors.
833 * inferior.h: Include gdbthread.h.
834 (enum step_over_calls_kind): Moved to gdbthread.h.
835 (struct inferior) <thread_list>: New field.
836 <threads, non_exited_threads, threads_safe>: New methods.
837 (ALL_INFERIORS): Delete.
838 Include "inferior-iter.h".
839 (ALL_NON_EXITED_INFERIORS): Delete.
840 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
841 functions.
842 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
843 ALL_NON_EXITED_THREADS with all_non_exited_threads.
844 * infrun.c (follow_exec): Use all_threads_safe.
845 (clear_proceed_status, proceed): Use all_non_exited_threads.
846 (init_wait_for_inferior): Don't clear inline frame state here.
847 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
848 all_threads instead of ALL_NON_EXITED_THREADS.
849 (random_pending_event_thread): Use all_non_exited_threads instead
850 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
851 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
852 instead of ALL_NON_EXITED_THREADS.
853 (handle_no_resumed): Use all_non_exited_threads instead of
854 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
855 ALL_INFERIORS.
856 (restart_threads, switch_back_to_stepped_thread): Use
857 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
858 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
859 all_inferiors.
860 (kill_unfollowed_fork_children): Use inf->non_exited_threads
861 instead of ALL_NON_EXITED_THREADS.
862 * linux-tdep.c (linux_make_corefile_notes): Use
863 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
864 * linux-thread-db.c (thread_db_target::update_thread_list):
865 Replace ALL_INFERIORS with all_inferiors.
866 (thread_db_target::thread_handle_to_thread_info): Use
867 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
868 * mi/mi-interp.c (multiple_inferiors_p): New.
869 (mi_on_resume_1): Simplify using all_non_exited_threads and
870 multiple_inferiors_p.
871 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
872 instead of ALL_NON_EXITED_THREADS.
873 * nto-procfs.c (nto_procfs_target::open): Don't call
874 init_thread_list here.
875 * record-btrace.c (record_btrace_target_open)
876 (record_btrace_target::stop_recording)
877 (record_btrace_target::close)
878 (record_btrace_target::record_is_replaying)
879 (record_btrace_target::resume, record_btrace_target::wait)
880 (record_btrace_target::record_stop_replaying): Use
881 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
882 * record-full.c (record_full_wait_1): Use all_non_exited_threads
883 instead of ALL_NON_EXITED_THREADS.
884 * regcache.c (cooked_read_test): Remove reference to global
885 thread_list.
886 * remote-sim.c (gdbsim_target::create_inferior): Don't call
887 init_thread_list here.
888 * remote.c (remote_target::update_thread_list): Use
889 all_threads_safe instead of ALL_NON_EXITED_THREADS.
890 (remote_target::process_initial_stop_replies): Replace
891 ALL_INFERIORS with all_non_exited_inferiors and use
892 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
893 (remote_target::open_1): Don't call init_thread_list here.
894 (remote_target::append_pending_thread_resumptions)
895 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
896 instead of ALL_NON_EXITED_THREADS.
897 (remote_target::commit_resume)
898 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
899 with all_non_exited_inferiors and use all_non_exited_threads
900 instead of ALL_NON_EXITED_THREADS.
901 (remote_target::kill_new_fork_children): Use
902 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
903 init_thread_list and init_wait_for_inferior calls.
904 (remote_target::remote_btrace_maybe_reopen)
905 (remote_target::thread_handle_to_thread_info): Use
906 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
907 * target.c (target_terminal::restore_inferior)
908 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
909 all_non_exited_inferiors.
910 * thread-iter.c: New file.
911 * thread-iter.h: New file.
912 * thread.c: Include "inline-frame.h".
913 (thread_list): Delete.
914 (clear_thread_inferior_resources): Call clear_inline_frame_state.
915 (init_thread_list): Use all_threads_safe instead of
916 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
917 (new_thread): Adjust to per-inferior thread lists.
918 (add_thread_silent): Pass inferior to find_thread_ptid.
919 (thread_info::deletable): New, moved from the header.
920 (delete_thread_1): Adjust to per-inferior thread lists.
921 (find_thread_global_id): Use inf->threads().
922 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
923 find_thread_ptid.
924 (find_thread_ptid(inferior*, ptid_t)): New overload.
925 (iterate_over_threads): Use all_threads_safe.
926 (any_thread_p): New.
927 (thread_count): Use all_threads and std::distance.
928 (live_threads_count): Use all_non_exited_threads and
929 std::distance.
930 (valid_global_thread_id): Use all_threads.
931 (in_thread_list): Use find_thread_ptid.
932 (first_thread_of_inferior): Adjust to per-inferior thread lists.
933 (any_thread_of_inferior, any_live_thread_of_inferior): Use
934 inf->non_exited_threads().
935 (prune_threads, delete_exited_threads): Use all_threads_safe.
936 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
937 (set_resumed, set_running): Use all_non_exited_threads.
938 (is_thread_state, is_stopped, is_exited, is_running)
939 (is_executing): Delete.
940 (set_executing, set_stop_requested, finish_thread_state): Use
941 all_non_exited_threads.
942 (print_thread_info_1): Use all_inferiors and all_threads.
943 (thread_apply_all_command): Use all_non_exited_threads.
944 (thread_find_command): Use all_threads.
945 (update_threads_executing): Use all_non_exited_threads.
946 * tid-parse.c (parse_thread_id): Use inf->threads.
947 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
948
949 2018-11-22 Pedro Alves <palves@redhat.com>
950
951 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
952 switch to it before calling into try_open_exec_file.
953
954 2018-11-22 Pedro Alves <palves@redhat.com>
955
956 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
957 inferior_thread instead of find_thread_ptid, and only when
958 inferior_ptid is not null_ptid.
959 * inferior.c (add_inferior): Don't include target_pid_to_str
960 output when the inferior is not started.
961 * python/py-inferior.c (python_on_normal_stop): Don't use
962 find_thread_ptid.
963 (tui_on_user_selected_context_changed): Use inferior_thread
964 instead of find_thread_ptid, and only when inferior_ptid is not
965 null_ptid.
966
967 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
968
969 PR python/23714
970 * gdb/python/python.c (execute_gdb_command): Call
971 prevent_dont_repeat earlier to avoid affecting dont_repeat.
972
973 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
974
975 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
976 (HFILES_NO_SRCDIR): Add arch/riscv.h.
977 * arch/riscv.c: New file.
978 * arch/riscv.h: New file.
979 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
980 this list, and add arch/riscv.o.
981 * features/Makefile: Add riscv features.
982 * features/riscv/32bit-cpu.c: New file.
983 * features/riscv/32bit-cpu.xml: New file.
984 * features/riscv/32bit-csr.c: New file.
985 * features/riscv/32bit-csr.xml: New file.
986 * features/riscv/32bit-fpu.c: New file.
987 * features/riscv/32bit-fpu.xml: New file.
988 * features/riscv/64bit-cpu.c: New file.
989 * features/riscv/64bit-cpu.xml: New file.
990 * features/riscv/64bit-csr.c: New file.
991 * features/riscv/64bit-csr.xml: New file.
992 * features/riscv/64bit-fpu.c: New file.
993 * features/riscv/64bit-fpu.xml: New file.
994 * features/riscv/rebuild-csr-xml.sh: New file.
995 * riscv-tdep.c: Add 'arch/riscv.h' include.
996 (riscv_gdb_reg_names): Delete.
997 (csr_reggroup): New global.
998 (struct riscv_register_alias): Delete.
999 (struct riscv_register_feature): New structure.
1000 (riscv_register_aliases): Delete.
1001 (riscv_xreg_feature): New global.
1002 (riscv_freg_feature): New global.
1003 (riscv_virtual_feature): New global.
1004 (riscv_csr_feature): New global.
1005 (riscv_create_csr_aliases): New function.
1006 (riscv_read_misa_reg): Delete.
1007 (riscv_has_feature): Delete.
1008 (riscv_isa_xlen): Simplify, just return cached xlen.
1009 (riscv_isa_flen): Simplify, just return cached flen.
1010 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
1011 (riscv_register_name): Update to make use of tdesc_register_name.
1012 Look up xreg and freg names in the new globals riscv_xreg_feature
1013 and riscv_freg_feature. Don't supply csr aliases here.
1014 (riscv_fpreg_q_type): Delete.
1015 (riscv_register_type): Use tdesc_register_type in almost all
1016 cases, override the returned type in a few specific cases only.
1017 (riscv_print_one_register_info): Handle errors reading registers.
1018 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
1019 registers that are otherwise unknown to GDB. Also check the
1020 csr_reggroup.
1021 (riscv_print_registers_info): Remove assert about upper register
1022 number, and use gdbarch_register_reggroup_p instead of
1023 short-cutting.
1024 (riscv_find_default_target_description): New function.
1025 (riscv_check_tdesc_feature): New function.
1026 (riscv_add_reggroups): New function.
1027 (riscv_setup_register_aliases): New function.
1028 (riscv_init_reggroups): New function.
1029 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
1030 setup register groups. Register new riscv debug variable.
1031 * riscv-tdep.h: Add 'arch/riscv.h' include.
1032 (struct gdbarch_tdep): Remove abi union, and add
1033 riscv_gdbarch_features field. Remove cached quad floating point
1034 type, and provide initialisation for double type field.
1035 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
1036 the list of targets using the feature based target descriptions.
1037 * NEWS: Mention target description support.
1038
1039 2018-11-21 Pedro Alves <palves@redhat.com>
1040
1041 * valops.c (find_method_list, value_find_oload_method_list)
1042 (find_overload_match, find_oload_champ): Rename parameters and
1043 locals.
1044
1045 2018-11-21 Pedro Alves <palves@redhat.com>
1046
1047 * valops.c (find_method_list): Replace pointer and length
1048 parameters with an gdb::array_view. Adjust.
1049 (value_find_oload_method_list): Likewise.
1050 (find_overload_match): Use gdb::array_view for methods list.
1051 Adjust to find_oload_champ interface change.
1052 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
1053 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
1054
1055 2018-11-21 Pedro Alves <palves@redhat.com>
1056
1057 * gdbtypes.c (compare_badness): Change type of parameters to const
1058 reference. Adjust to badness_vector being a std::vector now.
1059 (rank_function): Adjust to badness_vector being a std::vector now.
1060 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
1061 (LENGTH_MATCH): Delete.
1062 (compare_badness): Change type of parameters to const reference.
1063 (rank_function): Return a badness_vector by value now.
1064 (find_overload_match): Adjust to badness_vector being a
1065 std::vector now. Remove cleanups.
1066 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
1067 badness_vector pointer.
1068 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
1069 a badness_vector pointer. Adjust to badness_vector being a
1070 std::vector now. Remove cleanups.
1071 (find_oload_champ): 'oload_champ_bv' parameter now
1072 a badness_vector pointer. Adjust to badness_vector being a
1073 std::vector now. Remove cleanups.
1074
1075 2018-11-21 Pedro Alves <palves@redhat.com>
1076
1077 * cp-support.c (sym_return_val_size, sym_return_val_index)
1078 (sym_return_val): Delete.
1079 (overload_list_add_symbol): Add std::vector parameter. Adjust to
1080 add to the vector.
1081 (make_symbol_overload_list): Adjust to return a std::vector
1082 instead of maintaining a global open coded vector.
1083 (make_symbol_overload_list_block): Add std::vector parameter.
1084 (make_symbol_overload_list_block): Rename to ...
1085 (add_symbol_overload_list_block): ... this and add std::vector
1086 parameter.
1087 (make_symbol_overload_list_namespace): Rename to ...
1088 (add_symbol_overload_list_namespace): ... this and add std::vector
1089 parameter.
1090 (make_symbol_overload_list_adl_namespace): Rename to ...
1091 (add_symbol_overload_list_adl_namespace): ... this and add
1092 std::vector parameter.
1093 (make_symbol_overload_list_adl): Delete.
1094 (add_symbol_overload_list_adl): New.
1095 (make_symbol_overload_list_using): Rename to ...
1096 (add_symbol_overload_list_using): ... this and add std::vector
1097 parameter.
1098 (make_symbol_overload_list_qualified): Rename to ...
1099 (add_symbol_overload_list_qualified): ... this and add std::vector
1100 parameter.
1101 * cp-support.h: Include "common/array-view.h" and <vector>.
1102 (make_symbol_overload_list): Change return type to std::vector.
1103 (make_symbol_overload_list_adl): Delete declaration.
1104 (add_symbol_overload_list_adl): New declaration.
1105 * valops.c (find_overload_match): Local 'oload_syms' now a
1106 std::vector.
1107 (find_oload_champ_namespace): 'oload_syms' parameter now a
1108 std::vector pointer.
1109 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
1110 std::vector pointer. Adjust to new make_symbol_overload_list
1111 interface.
1112
1113 2018-11-21 Pedro Alves <palves@redhat.com>
1114
1115 * common/array-view.h (array_view::splice(size_type, size_t)): New.
1116 (array_view::splice(size_type)): New.
1117 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
1118 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
1119 std::vector.
1120 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
1121 * extension.h: Include "common/array-view.h".
1122 (xmethod_worker::invoke): Adjust to use gdb::array_view.
1123 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
1124 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
1125 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
1126 (xmethod_worker::do_get_result_type): Adjust to use
1127 gdb::array_view.
1128 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
1129 * gdbtypes.h: Include "common/array-view.h".
1130 (rank_function): Adjust to use gdb::array_view.
1131 * python/py-xmethods.c (python_xmethod_worker::invoke)
1132 (python_xmethod_worker::do_get_arg_types)
1133 (python_xmethod_worker::do_get_result_type)
1134 (python_xmethod_worker::invoke): Adjust to new interfaces.
1135 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
1136 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
1137 * valops.c (find_overload_match, find_oload_champ_namespace)
1138 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
1139 gdb:array_view and the new xmethod_worker interfaces.
1140 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
1141 gdb::array_view.
1142 * value.h (find_overload_match, result_type_of_xmethod)
1143 (call_xmethod): Adjust to use gdb::array_view.
1144 * unittests/array-view-selftests.c: Add slicing tests.
1145
1146 2018-11-21 Pedro Alves <palves@redhat.com>
1147
1148 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
1149 * common/array-view.h (make_array_view): New.
1150 * compile/compile-object-run.c (compile_object_run): Adjust to
1151 pass an array_view.
1152 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
1153 * eval.c (eval_call): Adjust to pass an array_view.
1154 (evaluate_subexp_standard): Adjust to pass an array_view.
1155 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
1156 * guile/scm-value.c (gdbscm_value_call): Likewise.
1157 * infcall.c (push_dummy_code): Replace pointer + size parameters
1158 with an array_view parameter.
1159 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
1160 adjust.
1161 * infcall.h: Include "common/array-view.h".
1162 (call_function_by_hand, call_function_by_hand_dummy): Replace
1163 pointer + size parameters with an array_view parameter.
1164 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
1165 * linux-tdep.c (linux_infcall_mmap): Likewise.
1166 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1167 (value_nsstring, print_object_command): Likewise.
1168 * python/py-value.c (valpy_call): Likewise.
1169 * rust-lang.c (rust_evaluate_funcall): Likewise.
1170 * spu-tdep.c (flush_ea_cache): Likewise.
1171 * valarith.c (value_x_binop, value_x_unop): Likewise.
1172 * valops.c (value_allocate_space_in_inferior): Likewise.
1173 * unittests/array-view-selftests.c (run_tests): Add
1174 gdb::make_array_view test.
1175
1176 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
1179 than a fixed size buffer.
1180
1181 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
1182
1183 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
1184 and remove insertion of extra spaces in GDB's output.
1185 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
1186 Layout field into a temporary buffer, and then output it as a
1187 string field.
1188
1189 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1190
1191 * NEWS: Document the language choice done by
1192 'info [types|functions|variables]|rbreak'.
1193
1194 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1195
1196 * symtab.c (treg_matches_sym_type_name): Use
1197 scoped_switch_to_sym_language_if_auto instead of local logic.
1198 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
1199 to switch to SYM language when language mode is auto.
1200
1201 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1202
1203 * language.h (scoped_switch_to_sym_language_if_auto): New class.
1204
1205 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1206
1207 * symtab.c (search_symbols): Properly check absence of type regexp
1208 before entering the loop scanning the minimal symbols.
1209
1210 2018-11-20 John Darrington <john@darrington.wattle.id.au>
1211
1212 * s12z-tdep.c (s12z_extract_return_value): New function.
1213 (inv_reg_perm) New array.
1214 (s12z_return_value): Populate readbuf if non-null.
1215
1216 2018-11-20 Eli Zaretskii <eliz@gnu.org>
1217
1218 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
1219 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
1220 to MinGW fixed by Gnulib.
1221 (O_NOINHERIT): Define if not defined.
1222
1223 2018-11-19 John Darrington <john@darrington.wattle.id.au>
1224
1225 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
1226
1227 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 * infrun.c (displaced_step_inferior_state) <next>: Remove.
1230
1231 2018-11-19 Tom Tromey <tom@tromey.com>
1232
1233 * source.c (get_filename_and_charpos): Return void.
1234
1235 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * skip.c (_initialize_step_skip): Fix "info skip" help.
1238
1239 2018-11-16 Tom Tromey <tom@tromey.com>
1240
1241 PR rust/23625:
1242 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
1243
1244 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
1245
1246 * infrun.c (displaced_step_inferior_states): Change type to
1247 std::forward_list.
1248 (get_displaced_stepping_state): Adjust.
1249 (displaced_step_in_progress_any_inferior): Adjust.
1250 (add_displaced_stepping_state): Adjust.
1251 (remove_displaced_stepping_state): Adjust.
1252
1253 2018-11-18 Tom Tromey <tom@tromey.com>
1254
1255 PR build/23814:
1256 * target-delegates.c: Rebuild.
1257 * ia64-linux-nat.c (class ia64_linux_nat_target)
1258 <have_steppable_watchpoint>: Use override. Return true, not 1.
1259 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
1260 "self" argument.
1261 (ia64_linux_nat_target::low_new_thread): Rename.
1262 (class ia64_linux_nat_target) <read_description>: Don't declare.
1263 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
1264 bool.
1265
1266 2018-11-16 Alan Hayward <alan.hayward@arm.com>
1267
1268 PR gdb/22736:
1269 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
1270 lang_struct_return code.
1271
1272 2018-11-16 Alan Hayward <alan.hayward@arm.com>
1273
1274 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
1275 return_method.
1276 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
1277 * amd64-tdep.c (amd64_push_arguments): Likewise.
1278 (amd64_push_dummy_call): Likewise.
1279 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
1280 * arc-tdep.c (arc_push_dummy_call): Likewise.
1281 * arm-tdep.c (arm_push_dummy_call): Likewise.
1282 * avr-tdep.c (avr_push_dummy_call): Likewise.
1283 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1284 * cris-tdep.c (cris_push_dummy_call): Likewise.
1285 * csky-tdep.c (csky_push_dummy_call): Likewise.
1286 * frv-tdep.c (frv_push_dummy_call): Likewise.
1287 * gdbarch.c: Regenerate.
1288 * gdbarch.h: Regenerate.
1289 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
1290 return_method.
1291 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1292 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
1293 (hppa64_push_dummy_call): Likewise.
1294 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1295 * i386-tdep.c (i386_push_dummy_call): Likewise.
1296 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1297 * infcall.c (call_function_by_hand_dummy): Likewise.
1298 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
1299 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1300 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
1301 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1302 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1303 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1304 * mep-tdep.c (mep_push_dummy_call): Likewise.
1305 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
1306 (mips_n32n64_push_dummy_call): Likewise.
1307 (mips_o32_push_dummy_call): Likewise.
1308 (mips_o64_push_dummy_call): Likewise.
1309 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
1310 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
1311 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
1312 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
1313 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
1314 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
1315 (ppc64_sysv_abi_push_dummy_call): Likewise.
1316 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
1317 (ppc64_sysv_abi_push_dummy_call): Likewise.
1318 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
1319 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
1320 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1321 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1322 * rx-tdep.c (rx_push_dummy_call): Likewise.
1323 * s390-tdep.c (s390_push_dummy_call): Likewise.
1324 * score-tdep.c (score_push_dummy_call): Likewise.
1325 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
1326 (sh_push_dummy_call_nofpu): Likewise.
1327 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1328 (sparc32_push_dummy_call): Likewise.
1329 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1330 (sparc64_push_dummy_call): Likewise.
1331 * spu-tdep.c (spu_push_dummy_call): Likewise.
1332 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
1333 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1334 * v850-tdep.c (v850_push_dummy_call): Likewise.
1335 * vax-tdep.c (vax_push_dummy_call): Likewise.
1336 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1337 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1338
1339 2018-11-16 Alan Hayward <alan.hayward@arm.com>
1340
1341 * gdbarch.sh (enum function_call_return_method): Add enum.
1342 * gdbarch.h: Regenerate.
1343 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
1344
1345 2018-11-15 Joel Brobecker <brobecker@adacore.com>
1346
1347 * unittests/copy_bitwise-selftests.c: New file.
1348 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
1349 (selftests::copy_bitwise_tests): Delete, moving this code to
1350 unittests/copy_bitwise-selftests.c instead.
1351 (_initialize_utils): Do not register copy_bitwise tests.
1352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1353 unittests/copy_bitwise-selftests.c.
1354
1355 2018-11-14 Joel Brobecker <brobecker@adacore.com>
1356
1357 * ada-lang.c (move_bits): Delete. Update all callers to use
1358 copy_bitwise instead.
1359 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
1360 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1361 Move from here to utils.c.
1362 (_initialize_dwarf2loc): Remove call to register copy_bitwise
1363 selftests.
1364 * utils.h (copy_bitwise): Add declaration.
1365 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
1366 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1367 Moved here from dwarf2loc.c.
1368 (_initialize_utils): Register copy_bitwise selftests.
1369
1370 2018-11-14 Jim Wilson <jimw@sifive.com>
1371
1372 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
1373 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
1374 then increment next_regnum if odd.
1375 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
1376 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
1377 function type. Pass new arg to riscv_arg_location based on function
1378 type.
1379 (riscv_return_value): Pass new arg to riscv_arg_location.
1380
1381 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
1382 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
1383 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
1384
1385 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
1386 setting len. New local align, set to max of arg align and xlen,
1387 and pass to first riscv_assign_stack_location call.
1388
1389 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1390
1391 * skip.c (complete_skip_number): New function.
1392 (_initialize_step_skip): Add completers to some skip commands.
1393
1394 2018-11-09 Tom Tromey <tom@tromey.com>
1395
1396 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
1397 (struct remote_g_packet_data): Derive from allocate_on_obstack.
1398 <guesses>: Now a std::vector.
1399 (remote_g_packet_data_init, register_remote_g_packet_guess):
1400 Update.
1401 (remote_read_description_p): Update. Return bool.
1402 (remote_target::read_description): Update.
1403 (struct remote_g_packet_guess): Add constructor.
1404
1405 2018-11-09 Tom Tromey <tom@tromey.com>
1406
1407 * common/scoped_fd.h (class scoped_fd): Add move constructor and
1408 move assignment operator.
1409 * psymtab.c (psymtab_to_fullname): Update.
1410 * source.h (open_source_file): Return scoped_fd.
1411 (find_and_open_source): Likewise.
1412 * source.c (open_source_file): Return scoped_fd.
1413 (get_filename_and_charpos): Update.
1414 (print_source_lines_base): Update. Use scoped_fd::to_file.
1415 (forward_search_command): Likewise.
1416 (reverse_search_command): Likewise.
1417 (find_and_open_source): Return scoped_fd.
1418 * tui/tui-source.c (tui_set_source_content): Update. Use
1419 gdb_file_up.
1420
1421 2018-11-09 John Baldwin <jhb@FreeBSD.org>
1422
1423 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
1424 overflow.
1425
1426 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
1427
1428 * configure: Regenerate.
1429
1430 2018-11-09 Tom de Vries <tdevries@suse.de>
1431
1432 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
1433 unconditionally, to set the language of the symbol. Manage freeing
1434 returned pointer using gdb::unique_xmalloc_ptr.
1435
1436 2018-11-08 Tom Tromey <tom@tromey.com>
1437
1438 * record.c (require_record_target): Upper-case "<TAB>".
1439
1440 2018-11-08 Tom Tromey <tom@tromey.com>
1441
1442 * python/lib/gdb/command/pretty_printers.py
1443 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
1444
1445 2018-11-08 Tom Tromey <tom@tromey.com>
1446
1447 PR gdb/23555:
1448 PR gdb/23838:
1449 * target.h (target_supports_terminal_ours): Return bool.
1450 * target.c (target_supports_terminal_ours): Handle case where
1451 current_top_target returns nullptr. Return bool.
1452
1453 2018-11-08 Joel Brobecker <brobecker@adacore.com>
1454
1455 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
1456 return the correct count for potential HFAs.
1457
1458 2018-11-08 Jan Beulich <jbeulich@suse.com>
1459
1460 * i387-tdep.c (i387_supply_xsave): Split handling of
1461 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
1462 (i387_collect_xsave): Likewise.
1463
1464 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
1465
1466 * riscv-tdep.c (riscv_insn::decode): Update header comment.
1467 (riscv_frame_this_id): Catch errors thrown while building the
1468 frame cache, leave the frame id as the default, which is the outer
1469 frame id.
1470
1471 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1472
1473 * ada-lang.c (read_atcb): Only set task_info->called_task if
1474 task_info->state == Entry_Caller_Sleep.
1475 (print_ada_task_info): Do not check task_info->state before
1476 checking task_info->called_task.
1477 (info_task): Likewise.
1478
1479 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1480
1481 * ada-tasks.c (read_atcb): Clear task_info before computing
1482 the value of each of its fields.
1483
1484 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1487 NULL before dereferencing it.
1488
1489 2018-11-06 Tom de Vries <tdevries@suse.de>
1490
1491 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1492 program headers.
1493
1494 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
1495
1496 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1497 so that it applies to uclinux as well.
1498
1499 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
1500
1501 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1502 when on AAPCS.
1503
1504 2018-11-06 John Baldwin <jhb@FreeBSD.org>
1505
1506 * riscv-fbsd-nat.c (getregs_supplies): Return true for
1507 RISCV_CSR_SSTATUS_REGNUM.
1508
1509 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1510
1511 * source.c (open_source_file): Fix leak by transferring the
1512 current s->fullname to the unique_xmalloc_ptr fullname given
1513 to find_and_open_source.
1514
1515 2018-11-04 Tom Tromey <tom@tromey.com>
1516
1517 * varobj.c (install_default_visualizer): Update.
1518 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1519 Return gdbpy_ref.
1520 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1521 (find_pretty_printer_from_progspace)
1522 (find_pretty_printer_from_gdb, find_pretty_printer)
1523 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1524 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1525 Update.
1526
1527 2018-11-04 Tom Tromey <tom@tromey.com>
1528
1529 * python/python.c (gdbpy_parameter_value): Update.
1530 * python/python-internal.h (python_string_to_unicode)
1531 (python_string_to_target_python_string)
1532 (host_string_to_python_string): Return gdbpy_ref.
1533 * python/py-utils.c (python_string_to_unicode)
1534 (unicode_to_encoded_python_string)
1535 (unicode_to_target_python_string)
1536 (python_string_to_target_string)
1537 (python_string_to_target_python_string): Return gdbpy_ref.
1538 (python_string_to_host_string): Update.
1539 (host_string_to_python_string): Return gdbpy_ref.
1540 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1541 (stpy_fullname): Update.
1542 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1543 Update.
1544 * python/py-prettyprint.c (print_string_repr): Update.
1545 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1546 (objfpy_get_build_id): Update.
1547 * python/py-breakpoint.c (bppy_get_location)
1548 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1549 Update.
1550
1551 2018-11-04 Tom Tromey <tom@tromey.com>
1552
1553 * python/python-internal.h (gdb_py_object_from_longest)
1554 (gdb_py_object_from_ulongest): Return gdbpy_ref.
1555 * python/py-value.c (valpy_int): Update.
1556 * python/py-utils.c (gdb_py_object_from_longest): Return
1557 gdbpy_ref.
1558 (gdb_py_object_from_ulongest): Likewise.
1559 * python/py-type.c (typy_get_alignof): Update.
1560 * python/py-linetable.c (ltpy_get_all_source_lines)
1561 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1562 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1563
1564 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1565
1566 * ada-lang.c (_initialize_ada_language): Fix typo.
1567
1568 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1569
1570 * language.c (type): Remove.
1571 (_initialize_language): Remove assignment to type.
1572
1573 2018-11-02 Joel Brobecker <brobecker@adacore.com>
1574
1575 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1576 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1577 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1578 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1579 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1580 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1581 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1582 and aarch64-ravenscar-thread.o.
1583 * NEWS: Add entry documenting Ravenscar tasking support
1584 on AArch64 ELF.
1585
1586 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
1587
1588 * symtab.c (info_functions_command): Initialize quiet flag.
1589 * stack.c (info_args_command): Likewise.
1590
1591 2018-11-01 Jim Wilson <jimw@sifive.com>
1592
1593 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1594 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
1595 debugging messages.
1596
1597 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1598
1599 * ada-lang.c (ada_watch_location_expression): New function.
1600 (ada_language_defn): Set la_watch_location_expression to
1601 ada_watch_location_expression.
1602
1603 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1604
1605 * print-utils.c (int_string): Remove unnecessary trailing spaces.
1606
1607 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1608
1609 * rs6000-tdep.c (skip_prologue): Fix potential negative left
1610 shifting.
1611
1612 2018-11-01 Jerome Guitton <guitton@adacore.com>
1613 Joel Brobecker <brobecker@adacore.com>
1614
1615 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1616 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1617 * arm-pikeos-tdep.c: New file.
1618 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1619 embedded system.
1620 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1621
1622 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
1623
1624 * common/pathstuff.c (get_standard_temp_dir): New.
1625 * common/pathstuff.h (get_standard_temp_dir): New.
1626 * config.in: Re-generate.
1627 * configure: Re-generate.
1628 * configure.ac: Don't check for mkdtemp.
1629 * gnulib/aclocal-m4-deps.mk: Re-generate.
1630 * gnulib/aclocal.m4: Re-generate.
1631 * gnulib/config.in: Re-generate.
1632 * gnulib/configure: Re-generate.
1633 * gnulib/import/Makefile.am: Re-generate.
1634 * gnulib/import/Makefile.in: Re-generate.
1635 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1636 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1637 * gnulib/import/m4/mkdtemp.m4: New file.
1638 * gnulib/import/mkdtemp.c: New file.
1639 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1640 Add mkdtemp module.
1641 * unittests/mkdir-recursive-selftests.c (test): Use
1642 get_standard_temp_dir.
1643 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1644 ifdef.
1645 * compile/compile.c (get_compile_file_tempdir): Likewise.
1646
1647 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1648
1649 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1650 (SIG_FRAME_LR_OFFSET64): New define.
1651 (SIG_FRAME_FP_OFFSET64): New define.
1652 (aix_sighandle_frame_cache): New Function.
1653 (aix_sighandle_frame_this_id): New Function.
1654 (aix_sighandle_frame_prev_register): New Function.
1655 (aix_sighandle_frame_sniffer): New Function.
1656 (aix_sighandle_frame_unwind): New global variable.
1657 (rs6000_aix_init_osabi): Install new frame unwinder.
1658
1659 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
1660
1661 PR gdb/23835
1662 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1663 already defined.
1664
1665 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1666
1667 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1668
1669 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1670
1671 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1672 (producer_is_icc): New function.
1673 (check_producer): Set producer_is_icc field on dwarf2_cu.
1674 (dwarf2_init_integer_type): New function.
1675 (read_base_type): Call dwarf2_init_integer_type instead of
1676 init_integer_type in all cases.
1677 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1678 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1679 LEN is greater than 0.
1680
1681 2018-10-30 Tom Tromey <tom@tromey.com>
1682
1683 * main.c (captured_main_1): Check return value of bfd_init.
1684
1685 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
1686
1687 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1688 Adjust comments.
1689
1690 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1691
1692 * procfs.c: Include common/pathstuff.h.
1693
1694 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1697 Add missing braces. No functional change.
1698
1699 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1700
1701 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1702 to report a bad option and fix indentation.
1703 * demangle.c (demangle_command): Use report_unrecognized_option_error
1704 to report a bad option and correctly report the bad option.
1705
1706 2018-10-27 Tom Tromey <tom@tromey.com>
1707
1708 PR cli/23364:
1709 * darwin-nat.c (copied_shell): New global.
1710 (may_have_sip): Rename from should_disable_startup_with_shell.
1711 (copy_shell_to_cache, maybe_cache_shell): New functions.
1712 (darwin_nat_target::create_inferior): Update. Use
1713 copied_shell.
1714
1715 2018-10-27 Tom Tromey <tom@tromey.com>
1716
1717 * unittests/scoped_fd-selftests.c (test_to_file): New function.
1718 (run_tests): Call test_to_file.
1719 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1720 temporary files.
1721 * common/scoped_fd.h (scoped_fd::to_file): New method.
1722
1723 2018-10-27 Tom Tromey <tom@tromey.com>
1724
1725 * unittests/scoped_mmap-selftests.c (test_normal): Use
1726 gdb_mkostemp_cloexec.
1727 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1728 Use gdb_mkostemp_cloexec.
1729 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1730 gnulib/config.in, gnulib/configure,
1731 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1732 gnulib/import/m4/gnulib-cache.m4,
1733 gnulib/import/m4/gnulib-comp.m4: Update.
1734 * gnulib/import/m4/mkostemp.m4: New file.
1735 * gnulib/import/m4/mkstemp.m4: Remove.
1736 * gnulib/import/mkostemp.c: New file.
1737 * gnulib/import/mkstemp.m4: Remove.
1738 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1739 mkstemp, add mkostemp. Apply new patch.
1740 * gnulib/import/stdlib.in.h: Apply patch.
1741 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1742 New file.
1743 * dwarf-index-write.c (write_psymtabs_to_index): Use
1744 gdb_mkostemp_cloexec.
1745 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1746
1747 2018-10-27 Tom Tromey <tom@tromey.com>
1748
1749 * unittests/mkdir-recursive-selftests.c: New file.
1750 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1751 unittests/mkdir-recursive-selftests.c.
1752 * dwarf-index-cache.c (mkdir_recursive): Move to
1753 common/filestuff.c.
1754 (index_cache::store): Check return value of mkdir_recursive.
1755 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1756 (_initialize_index_cache): Don't register test.
1757 * common/filestuff.h (mkdir_recursive): Declare.
1758 * common/filestuff.c (mkdir_recursive): Move from
1759 dwarf-index-cache.c. Return bool.
1760
1761 2018-10-27 Tom Tromey <tom@tromey.com>
1762
1763 * dwarf-index-write.c (write_psymtabs_to_index): Move
1764 make_temp_filename to common/pathstuff.c.
1765 * common/pathstuff.h (make_temp_filename): Declare.
1766 * common/pathstuff.c (make_temp_filename): New function, moved
1767 from dwarf-index-write.c.
1768
1769 2018-10-27 Tom Tromey <tom@tromey.com>
1770
1771 * procfs.c (procfs_target::create_inferior): Use get_shell.
1772 * cli/cli-cmds.c (shell_escape): Use get_shell.
1773 * windows-nat.c (windows_nat_target::create_inferior): Use
1774 get_shell.
1775 * common/pathstuff.c (get_shell): New function.
1776 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1777 (fork_inferior): Use get_shell.
1778 * common/pathstuff.h (get_shell): Declare.
1779
1780 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1781
1782 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1783
1784 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1785
1786 * stack.c (print_variable_and_value_data): Add preg and treg.
1787 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1788 and update callers.
1789 (print_frame_arg_vars): Likewise.
1790 (prepare_reg): New function.
1791 (info_locals_command): Extract info print args and use them.
1792 (info_args_command): Likewise.
1793 (_initialize_stack): Modify on-line help.
1794 * symtab.c (treg_matches_sym_type_name): New function.
1795 (search_symbols): New arg t_regexp.
1796 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1797 (info_variables_command): Extract info print args and use them.
1798 (info_functions_command): Likewise.
1799 (info_types_command): Update call to symtab_symbol_info.
1800 (_initialize_symtab): Modify on-line help.
1801 * symtab.h (treg_matches_sym_type_name): New function.
1802 (search_symbols): New t_regexp arg.
1803
1804 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1805
1806 * cli-utils.c (extract_arg_maybe_quoted): New function.
1807 (extract_info_print_args): New function.
1808 (info_print_args_help): New function.
1809 (report_unrecognized_option_error): New function.
1810 * cli-utils.h (extract_arg_maybe_quoted): New function.
1811 (extract_info_print_args): New function.
1812 (info_print_args_help): New function.
1813 (report_unrecognized_option_error): New function.
1814
1815 2018-10-26 Tom Tromey <tom@tromey.com>
1816
1817 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1818 (compute_compunit_symtab_includes): Update.
1819 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1820 (compunit_symtab_ptr): Likewise.
1821
1822 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1823
1824 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1825 default_print_auxv_entry for specific tag values.
1826
1827 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1828
1829 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1830
1831 2018-10-26 Jim Wilson <jimw@sifive.com>
1832
1833 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1834 (riscv_linux_sigframe_init): Declare.
1835 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1836 (riscv_linux_sigframe): New.
1837 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1838 (riscv_linux_sigframe_init): Define.
1839 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1840
1841 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1842 (riscv_isa_flen): Likewise. Drop static.
1843 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1844 (riscv_isa_flen): Likewise. Declare.
1845
1846 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1847 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1848
1849 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1850 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1851 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1852 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1853 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1854 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1855 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1856 Define.
1857 (struct ppc_linux_features) <htm>: New field.
1858 (ppc_linux_no_features): Add initializer for htm field.
1859 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1860 new tdescs.
1861 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1862 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1863 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1864 Define if not already defined.
1865 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1866 and rs6000/powerpc-isa207-htm-vsx64l.
1867 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1868 rs6000/powerpc-isa207-htm-vsx64l.xml.
1869 * features/rs6000/power-htm-spr.xml: New file.
1870 * features/rs6000/power-htm-core.xml: New file.
1871 * features/rs6000/power64-htm-core.xml: New file.
1872 * features/rs6000/power-htm-fpu.xml: New file.
1873 * features/rs6000/power-htm-altivec.xml: New file.
1874 * features/rs6000/power-htm-vsx.xml: New file.
1875 * features/rs6000/power-htm-ppr.xml: New file.
1876 * features/rs6000/power-htm-dscr.xml: New file.
1877 * features/rs6000/power-htm-tar.xml: New file.
1878 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1879 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1880 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1881 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1882 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1883 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1884 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1885 fetch_regset with HTM regsets.
1886 (store_register, store_ppc_registers): Call store_regset with HTM
1887 regsets.
1888 (ppc_linux_nat_target::read_description): Set htm field in the
1889 features struct if needed.
1890 * ppc-linux-tdep.c: Include
1891 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1892 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1893 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1894 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1895 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1896 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1897 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1898 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1899 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1900 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1901 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1902 (ppc32_linux_ctarregset): New globals.
1903 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1904 (ppc_linux_collect_core_cpgrregset): New function.
1905 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1906 regsets.
1907 (ppc_linux_core_read_description): Check if the tm spr section is
1908 present and set htm in the features struct.
1909 (_initialize_ppc_linux_tdep): Call
1910 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1911 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1912 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1913 Declare.
1914 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1915 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1916 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1917 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1918 New fields.
1919 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1920 Likewise.
1921 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1922 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1923 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1924 New enum fields.
1925 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1926 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1927 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1928 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1929 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1930 <PPC_CTAR_REGNUM>: Likewise.
1931 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1932 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1933 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1934 (IS_CEFP_PSEUDOREG): Define.
1935 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1936 registers. Return names for the checkpointed DFP, VSX, and EFP
1937 pseudo registers.
1938 (rs6000_pseudo_register_type): Remove initial assert and raise an
1939 internal error in the else clause instead. Return types for the
1940 checkpointed DFP, VSX, and EFP pseudo registers.
1941 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1942 checkpointed DFP pseudo registers.
1943 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1944 checkpointed VSX pseudo registers.
1945 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1946 from efpr_pseudo_register_read and
1947 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1948 registers.
1949 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1950 Handle checkpointed DFP, VSX, and EFP registers.
1951 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1952 (efp_ax_pseudo_register_collect): New functions.
1953 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1954 register logic to new functions. Handle checkpointed DFP, VSX,
1955 and EFP pseudo registers.
1956 (rs6000_gdbarch_init): Look for and validate the htm features.
1957 Include checkpointed DFP, VSX and EFP pseudo-registers.
1958 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1959 HTM registers.
1960
1961 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1962
1963 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1964 without altivec or fpu.
1965
1966 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1967 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1968
1969 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1970 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1971 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1972 Define if not already defined.
1973 * features/rs6000/power-ebb.xml: New file.
1974 * features/rs6000/power-linux-pmu.xml: New file.
1975 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1976 features.
1977 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1978 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1979 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1980 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1981 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1982 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1983 fetch_regset with ebb and pmu regsets.
1984 (store_register, store_ppc_registers): Call store_regset with ebb
1985 and pmu regsets.
1986 (ppc_linux_nat_target::read_description): Set isa207 field in the
1987 features struct if ebb and pmu are avaiable.
1988 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1989 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1990 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1991 and pmu regsets.
1992 (ppc_linux_core_read_description): Check if the pmu section is
1993 present and set isa207 in the features struct.
1994 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1995 (ppc32_linux_pmuregset): Declare.
1996 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1997 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1998 <ppc_sier_regnum>: New field.
1999 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
2000 New enum values.
2001 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
2002 values.
2003 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
2004 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
2005 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
2006 ebb and pmu features.
2007
2008 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2009 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2010
2011 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
2012 (tdesc_powerpc_isa207_vsx64l): Declare.
2013 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
2014 (struct ppc_linux_features) <isa207>: New field.
2015 (ppc_linux_no_features): Add initializer for isa207 field.
2016 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
2017 new tdescs.
2018 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
2019 (NT_PPC_TAR): Define if not already defined.
2020 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
2021 rs6000/powerpc-isa207-vsx64l.
2022 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
2023 rs6000/powerpc-isa207-vsx64l.xml.
2024 * features/rs6000/power-tar.xml: New file.
2025 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
2026 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
2027 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
2028 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
2029 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
2030 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
2031 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
2032 fetch_regset with the TAR regset.
2033 (store_register, store_ppc_registers): Call store_regset with the
2034 TAR regset.
2035 (ppc_linux_nat_target::read_description): Set isa207 field in the
2036 features struct if needed.
2037 * ppc-linux-tdep.c: Include
2038 features/rs6000/powerpc-isa207-vsx32l.c and
2039 features/rs6000/powerpc-isa207-vsx64l.c.
2040 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
2041 (ppc_linux_iterate_over_regset_sections): Call back with the tar
2042 regset.
2043 (ppc_linux_core_read_description): Check if the tar section is
2044 present and set isa207 in the features struct.
2045 (_initialize_ppc_linux_tdep): Call
2046 initialize_tdesc_powerpc_isa207_vsx32l and
2047 initialize_tdesc_powerpc_isa207_vsx64l.
2048 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
2049 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
2050 (enum) <PPC_TAR_REGNUM>: New enum value.
2051 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
2052 feature.
2053 (ppc_process_record_op31): Record changes to TAR.
2054
2055 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2056 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2057
2058 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
2059 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2060 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
2061 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
2062 (struct ppc_linux_features) <ppr_dscr>: New field.
2063 (ppc_linux_no_features): Add initializer for ppr_dscr field.
2064 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
2065 new tdescs.
2066 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
2067 Define if not already defined.
2068 * features/Makefile (WHICH): Add
2069 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
2070 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
2071 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2072 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
2073 * features/rs6000/power-dscr.xml: New file.
2074 * features/rs6000/power-ppr.xml: New file.
2075 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
2076 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
2077 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
2078 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
2079 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
2080 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
2081 * ppc-linux-nat.c: Include <sys/uio.h>.
2082 (fetch_regset, store_regset, check_regset): New functions.
2083 (fetch_register, fetch_ppc_registers): Call fetch_regset with
2084 DSCR and PPR regsets.
2085 (store_register, store_ppc_registers): Call store_regset with
2086 DSCR and PPR regsets.
2087 (ppc_linux_get_hwcap2): New function.
2088 (ppc_linux_nat_target::read_description): Call
2089 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
2090 features struct if needed.
2091 * ppc-linux-tdep.c: Include
2092 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
2093 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
2094 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
2095 (ppc32_linux_dscrregset): New globals.
2096 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
2097 and dscr regsets.
2098 (ppc_linux_core_read_description): Check if the ppr and dscr
2099 sections are present and set ppr_dscr in the features struct.
2100 (_initialize_ppc_linux_tdep): Call
2101 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
2102 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
2103 * ppc-linux-tdep.h (ppc32_linux_pprregset)
2104 (ppc32_linux_dscrregset): Declare.
2105 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
2106 <ppc_dscr_regnum>: New field.
2107 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
2108 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
2109 and dscr features.
2110 (ppc_process_record_op31): Record changes to PPR and DSCR.
2111
2112 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2113
2114 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
2115 second initializer line for the have_* variables. Initialize
2116 have_fpu to 0 instead of 1.
2117
2118 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2119
2120 * arch/ppc-linux-common.c (ppc_linux_match_description):
2121 Parenthesize tdesc assignements and indent them properly.
2122
2123 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2124
2125 * ppc-linux-nat.c (fetch_register): Change if statement to else
2126 if.
2127 (store_register): Likewise.
2128
2129 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2130
2131 * rs6000-tdep.c: Remove reggroups.h include.
2132 (rs6000_pseudo_register_reggroup_p): Remove.
2133 (rs6000_gdbarch_init): Remove call to
2134 set_tdesc_pseudo_register_reggroup_p.
2135
2136 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2137
2138 * reggroups.c (default_register_reggroup_p): Return true for
2139 decfloat registers and float_reggroup.
2140
2141 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2142
2143 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
2144 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
2145 ppc_linux_collect_vrregset by regcache_collect_regset.
2146
2147 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2148
2149 * linux-tdep.c (linux_collect_regset_section_cb): Use
2150 std::vector<gdb_byte> instead of char * and malloc for buf.
2151 Remove xfree.
2152
2153 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
2154
2155 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
2156 symtab_start instead of always using language_unknown.
2157
2158 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
2161 READ_P parameter, catch and ignore register access errors from
2162 either the old or new MISA location.
2163 (riscv_has_feature): Update call to riscv_read_misa_reg.
2164
2165 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * python/py-function.c (convert_values_to_python): Return
2168 gdbpy_ref<>. Add header comment.
2169 (fnpy_call): Adjust.
2170
2171 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
2172
2173 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
2174 (cmdpy_completer_handle_brkchars): Adjust.
2175 (cmdpy_completer): Adjust.
2176
2177 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
2180 Pass correct regnum to raw_supply_zeroed.
2181
2182 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
2183
2184 * regcache.c (cooked_read_test): Add CSKY to the list of
2185 architectures with a save_reggroup
2186
2187 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
2188
2189 PR gdb/23368
2190 * infrun.c (follow_exec): In the follow_exec_mode_new case,
2191 transfer terminal state from old new new inferior.
2192 * terminal.h (swap_terminal_info): New function.
2193 * inflow.c (swap_terminal_info): New function.
2194
2195 2018-10-23 Tom Tromey <tom@tromey.com>
2196
2197 * record-btrace.c (get_thread_current_frame_id): Rename from
2198 get_thread_current_frame. Return a frame_id.
2199 (record_btrace_start_replaying): Update.
2200
2201 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
2204 for CSRs.
2205
2206 2018-10-23 Joel Brobecker <brobecker@adacore.com>
2207
2208 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
2209 have_nonsteppable_watchpoint attribute to 1.
2210
2211 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
2214 register names.
2215 (struct register_alias): Rename to...
2216 (struct riscv_register_alias): ...this, and update comment.
2217 (riscv_register_aliases): Update type, and alias names. Remove
2218 CSR names from this list.
2219 (riscv_register_name): Use riscv_gdb_reg_names for int and float
2220 register names. Add an extra assertion.
2221 (riscv_is_regnum_a_named_csr): New function.
2222 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
2223
2224 2018-10-23 John Darrington <john@darrington.wattle.id.au>
2225
2226 * configure.tgt: Add configuration for s12z.
2227 * s12z-tdep.c: New file.
2228 * NEWS: Mention new target.
2229
2230 2018-10-22 Jim Wilson <jimw@sifive.com>
2231
2232 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
2233 FP reg smaller than FP reg size, and fill with -1 instead of 0.
2234
2235 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
2236 (riscv_register_type): Use them.
2237 (riscv_print_one_register_info): Handle union of floats same as float.
2238 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
2239 riscv_fpreg_q_type fields.
2240
2241 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
2242
2243 * gdbarch.sh (gdbarch_num_cooked_regs): New.
2244 * gdbarch.h: Re-generate.
2245 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
2246 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2247 * eval.c (evaluate_subexp_standard): Likewise.
2248 * findvar.c (value_of_register): Likewise.
2249 (value_of_register_lazy): Likewise.
2250 (address_from_register): Likewise.
2251 * frame.c (get_frame_register_bytes): Likewise.
2252 * gdbarch-selftests.c (register_to_value_test): Likewise.
2253 * h8300-tdep.c (h8300_register_type): Likewise.
2254 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
2255 (i386_svr4_reg_to_regnum): Likewise.
2256 * infcmd.c (default_print_registers_info): Likewise.
2257 (registers_info): Likewise.
2258 (print_vector_info): Likewise.
2259 (default_print_float_info): Likewise.
2260 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2261 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
2262 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
2263 (mi_cmd_data_list_changed_registers): Likewise.
2264 (mi_cmd_data_list_register_values): Likewise.
2265 (mi_cmd_data_write_register_values): Likewise.
2266 (mi_cmd_trace_frame_collected): Likewise.
2267 * mips-tdep.c (print_gp_register_row): Likewise.
2268 (mips_print_registers_info): Likewise.
2269 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2270 * regcache.c (init_regcache_descr): Likewise.
2271 (register_size): Likewise.
2272 (register_dump::dump): Likewise.
2273 (cooked_read_test): Likewise.
2274 (cooked_write_test): Likewise.
2275 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2276 (rs6000_gdbarch_init): Likewise.
2277 * stabsread.c (stab_reg_to_regnum): Likewise.
2278 * stack.c (info_frame_command): Likewise.
2279 * target-descriptions.c (tdesc_register_name): Likewise.
2280 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2281 * tui/tui-regs.c (tui_show_register_group): Likewise.
2282 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
2283 (user_reg_map_regnum_to_name): Likewise.
2284 (value_of_user_reg): Likewise.
2285 (maintenance_print_user_registers): Likewise.
2286 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
2287 (xtensa_register_name): Likewise.
2288 (xtensa_register_type): Likewise.
2289 (xtensa_reg_to_regnum): Likewise.
2290 (xtensa_pseudo_register_read): Likewise.
2291 (xtensa_pseudo_register_write): Likewise.
2292
2293 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2294
2295 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
2296 correctly-sized buffer with raw_read.
2297 (amd64_pseudo_register_write): Use correctly-sized buffer for
2298 raw_read/raw_write.
2299
2300 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2301
2302 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
2303 in add_prefix_cmd of set print type.
2304
2305 2018-10-19 Tom Tromey <tom@tromey.com>
2306
2307 PR tui/18388:
2308 * NEWS: Mention tabset deprecation.
2309 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
2310 (update_tab_width): New function.
2311 (tui_set_tab_width, tui_show_tab_width): New functions.
2312 (tui_set_tab_width_command): Use update_tab_width.
2313 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
2314 Add new "set tui tab-width" command.
2315 * tui/tui-source.c (tui_set_source_content): Update.
2316 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2317 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
2318 Don't declare.
2319 (tui_tab_width): Declare.
2320 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
2321 (tui_set_default_tab_len): Remove.
2322
2323 2018-10-19 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
2326 (key_is_backspace, tui_getc): Don't declare.
2327 * tui/tui-io.c (key_is_start_sequence): Now static.
2328 (key_is_end_sequence, key_is_backspace): Remove.
2329 (tui_getc): Now static.
2330
2331 2018-10-19 Tom Tromey <tom@tromey.com>
2332
2333 * symfile.c (reread_symbols): Clear "static_links".
2334
2335 2018-10-19 Alan Hayward <alan.hayward@arm.com>
2336
2337 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
2338 define.
2339 (aarch64_linux_sigframe_init): Extra boundary checks.
2340
2341 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
2342
2343 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
2344 the possibly non-existent tdesc type 'vec128', but the type of raw
2345 register v16 instead.
2346
2347 2018-10-19 Gary Benson <gbenson@redhat.com>
2348
2349 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
2350
2351 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
2352
2353 PR cli/23785
2354 * cli/cli-dump.c (restore_binary_file): Check if "file" is
2355 NULL.
2356
2357 2018-10-17 Paul Koning <paul_koning@dell.com>
2358
2359 * charset.c (convert_between_encodings): Fix unsigned overflow.
2360
2361 2018-10-17 John Baldwin <jhb@FreeBSD.org>
2362
2363 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
2364 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
2365 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
2366 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2367 New functions.
2368 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
2369 and fbsd_info_proc_mappings_header.
2370 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
2371 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2372 New.
2373
2374 2018-10-17 Joel Brobecker <brobecker@adacore.com>
2375
2376 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
2377 Solaris Maintainer.
2378
2379 2018-10-15 Tom Tromey <tom@tromey.com>
2380
2381 * tui/tui.c (strcat_to_buf): Remove casts.
2382 * tui/tui-winsource.c (tui_show_source_line)
2383 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
2384 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
2385 * tui/tui-windata.c (tui_first_data_item_displayed)
2386 (tui_delete_data_content_windows, tui_erase_data_content)
2387 (tui_display_all_data, tui_display_data_from)
2388 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
2389 * tui/tui-win.c (tui_set_win_height)
2390 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
2391 casts.
2392 * tui/tui-win.c (tui_resize_all): Remove casts.
2393 (tui_scroll_backward_command, tui_set_focus)
2394 (tui_set_tab_width_command): Likewise.
2395 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
2396 * tui/tui-regs.c (tui_show_register_group): Remove cast.
2397 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
2398 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
2399 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
2400 Remove casts.
2401
2402 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
2403
2404 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
2405 AArch64/ARM maintainer.
2406
2407 2018-10-11 Gary Benson <gbenson@redhat.com>
2408
2409 * interps.h (interp::m_name): Make private and mutable.
2410 * interps.c (interp::~interp): Free m_name.
2411
2412 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2413 Simon Marchi <simark@simark.ca>
2414
2415 * README (`configure' options): Add documentation for new
2416 "--enable-unit-tests" option.
2417 * acinclude.m4: Include "selftest.m4".
2418 * configure: Regenerate.
2419 * configure.ac: Use "GDB_AC_SELFTEST".
2420 * maint.c (maintenance_selftest): Update message informing
2421 that selftests have been disabled.
2422 (maintenance_info_selftests): Likewise.
2423 * selftest.m4: New file.
2424
2425 2018-10-10 Gary Benson <gbenson@redhat.com>
2426
2427 * remote.c (remote_target::remote_send_printf): Add
2428 missing va_end found by Coverity.
2429
2430 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
2431
2432 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
2433
2434 2018-10-09 Tom Tromey <tom@tromey.com>
2435
2436 * configure: Rebuild.
2437 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
2438 * NEWS: Update --enable-ubsan documentation.
2439
2440 2018-10-09 Gary Benson <gbenson@redhat.com>
2441
2442 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
2443 found by Coverity.
2444
2445 2018-10-08 Tom Tromey <tom@tromey.com>
2446
2447 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
2448 variable.
2449 (riscv_fbsd_init_abi): Likewise.
2450
2451 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2452 * valops.c (value_struct_elt_for_reference): Rename local variable
2453 to work around the shadowing a previous local warning.
2454
2455 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2456
2457 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
2458 * NEWS: Mention new FreeBSD/riscv native configuration.
2459 * configure.host: Add riscv*-*-freebsd*.
2460 * configure.nat: Likewise.
2461 * riscv-fbsd-nat.c: New file.
2462
2463 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2464
2465 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
2466 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
2467 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
2468 * NEWS: Mention new FreeBSD/riscv target.
2469 * configure.tgt: Add riscv*-*-freebsd*.
2470 * riscv-fbsd-tdep.c: New file.
2471 * riscv-fbsd-tdep.h: New file.
2472
2473 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2474
2475 * regcache.h (struct regcache_map_entry): Note that this type can
2476 be used with traditional frame caches.
2477 * trad-frame.c (trad_frame_set_reg_regmap): New.
2478 * trad-frame.h (trad_frame_set_reg_regmap): New.
2479
2480 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2481
2482 PR c++/16841
2483 * valops.c (get_virtual_base_offset): New function.
2484 (value_struct_elt_for_reference): Use it to get virtual base offset
2485 and add it in calculating class member address.
2486
2487 2018-10-08 John Darrington <john@darrington.wattle.id.au>
2488
2489 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2490 (check_producer): Check if the producer is codewarrior.
2491 (producer_is_codewarrior): New function.
2492 (lnp_state_machine::record_line): Ignore is_stmt flag for records
2493 produced by codewarrior.
2494 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
2495
2496 2018-10-06 Tom Tromey <tom@tromey.com>
2497
2498 PR python/19399:
2499 * python/py-inferior.c: Add "architecture" entry.
2500 (infpy_architecture): New function.
2501
2502 2018-10-06 Tom Tromey <tom@tromey.com>
2503
2504 PR python/21765:
2505 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2506 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2507 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
2508 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2509
2510 2018-10-06 Tom Tromey <tom@tromey.com>
2511
2512 PR build/17077:
2513 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2514 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2515 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2516 #include.
2517
2518 2018-10-06 Tom Tromey <tom@tromey.com>
2519
2520 * python/py-breakpoint.c (bppy_get_location): Handle a
2521 bp_breakpoint without a location.
2522
2523 2018-10-06 Tom Tromey <tom@tromey.com>
2524
2525 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2526 (_RegEx): Reformat help text.
2527 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2528 (AnyCallerIs, AnyCallerMatches): Reformat help text.
2529 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2530 text.
2531 * python/lib/gdb/command/xmethods.py (InfoXMethod)
2532 (EnableXMethod, DisableXMethod): Remove help indentation.
2533 Capitalize meta-syntactic variables.
2534 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2535 (EnableUnwinder, DisableUnwinder): Remove help indentation.
2536 Capitalize meta-syntactic variables.
2537 * python/lib/gdb/command/explore.py (ExploreCommand)
2538 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2539 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2540 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2541 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2542 Remove help indentation.
2543 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2544 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2545 (DisableFrameFilter, SetFrameFilterPriority)
2546 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2547
2548 2018-10-06 Tom Tromey <tom@tromey.com>
2549
2550 PR tui/28819:
2551 * tui/tui-io.c (gdb_wgetch): New function.
2552 (tui_mld_getc, tui_getc): Use it.
2553
2554 2018-10-05 Tom Tromey <tom@tromey.com>
2555
2556 * sol-thread.c (sol_thread_target::wait): Rename inner
2557 "save_ptid".
2558
2559 2018-10-04 Tom Tromey <tom@tromey.com>
2560
2561 * configure: Rebuild.
2562 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2563
2564 2018-10-04 Tom Tromey <tom@tromey.com>
2565
2566 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2567 declaration of "block".
2568
2569 2018-10-04 Tom Tromey <tom@tromey.com>
2570
2571 * common/filestuff.c (fdwalk): Remove inner declaration of
2572 "result".
2573
2574 2018-10-04 Tom Tromey <tom@tromey.com>
2575
2576 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2577 "structs_addr" and hoist declaration.
2578
2579 2018-10-04 Tom Tromey <tom@tromey.com>
2580
2581 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2582 variable "size".
2583
2584 2018-10-04 Tom Tromey <tom@tromey.com>
2585
2586 * mdebugread.c (parse_partial_symbols): Use std::string.
2587
2588 2018-10-04 Tom Tromey <tom@tromey.com>
2589
2590 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2591 * p-valprint.c (pascal_val_print): Split inner "i" variable.
2592 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2593 header.
2594 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2595 more inner scope.
2596 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2597 * varobj.c (varobj_update): Rename inner "newobj",
2598 "type_changed".
2599 * valprint.c (generic_emit_char): Rename inner "buf".
2600 * valops.c (find_overload_match): Rename inner "temp".
2601 (value_struct_elt_for_reference): Declare "v" in more inner
2602 scope.
2603 * v850-tdep.c (v850_push_dummy_call): Rename "len".
2604 * unittests/array-view-selftests.c (run_tests): Rename inner
2605 "vec".
2606 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2607 header.
2608 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2609 "tsv" in more inner scope.
2610 (print_one_static_tracepoint_marker): Rename inner
2611 "tuple_emitter".
2612 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2613 (tic6x_push_dummy_call): Don't redeclare "addr".
2614 * target-float.c: Declare "dto" lower.
2615 * symtab.c (lookup_local_symbol): Rename inner "sym".
2616 (find_pc_sect_line): Rename inner "pc".
2617 * stack.c (print_frame): Don't redeclare "gdbarch".
2618 (return_command): Rename inner "gdbarch".
2619 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2620 "sp".
2621 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2622 header.
2623 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2624 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2625 scope.
2626 * remote.c (remote_target::update_thread_list): Don't redeclare
2627 "tp".
2628 (remote_target::process_initial_stop_replies): Rename inner
2629 "thread".
2630 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2631 (remote_target::wait_as): Don't redeclare "stop_reply".
2632 (remote_target::get_thread_local_address): Rename inner
2633 "result".
2634 (remote_target::get_tib_address): Likewise.
2635
2636 * regcache.c (cooked_read_test): Rename "regnum".
2637 * record-btrace.c (cmd_record_btrace_start): Rename inner
2638 "exception".
2639 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2640 loop header.
2641 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2642 header.
2643 (ppu2spu_sniffer): Rename inner "buf".
2644 * parse.c (operator_check_standard): Rename inner "type",
2645 "objfile".
2646 * p-valprint.c (pascal_val_print): Introduce new scope for
2647 "low_bound", "high_bound".
2648 * p-exp.y (yylex): Declare "i" in loop header.
2649 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2650 Lower declaration of "s".
2651 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2652 header.
2653 (nios2_push_dummy_call): Rename "len".
2654 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2655 "buf".
2656 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2657 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2658 (linux_xfer_osdata_modules): Likewise.
2659 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2660 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2661 (mips_o64_push_dummy_call): Likewise.
2662 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2663 "op".
2664 * mi/mi-main.c (list_available_thread_groups): Rename inner
2665 "tuple_emitter".
2666 (mi_cmd_data_read_memory): Rename inner "opts".
2667 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2668 "tuple_emitter".
2669 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2670 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
2671 more inner scope.
2672 (parse_partial_symbols): Rename inner "pst", "p", "name"
2673 * main.c (captured_main_1): Rename inner "i"s.
2674 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2675 "oso2".
2676 * linux-tdep.c (linux_info_proc): Rename inner "filename".
2677 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2678 * infrun.c (handle_no_resumed): Don't redeclare "thread".
2679 (handle_signal_stop): Rename inner "gdbarch".
2680 (handle_command): Declare "signum" in loop header.
2681 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2682 "status".
2683 (examine_prologue): Rename inner "sol" and "sof".
2684 (ia64_extract_return_value): Rename inner "val". Declare another
2685 "val" in a more inner scope.
2686 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2687 inner scope.
2688 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2689 "except".
2690 * findvar.c (default_read_var_value): Don't redeclare "addr".
2691 * f-exp.y (yylex): Declare "i" in loop header.
2692 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2693 Rename inner "type", "expect_type".
2694 (evaluate_subexp_for_sizeof): Rename inner "pc".
2695 * elfread.c (elf_symfile_read): Rename inner "abfd".
2696 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2697 "bytes_read".
2698 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2699 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2700 (dwarf_decode_line_header): Rename inner "lh".
2701 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2702 "offset". Declare "i" in loop header.
2703 (disassemble_dwarf_expression): Rename inner "addr_size".
2704 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2705 inner "result".
2706 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2707 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2708 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2709 "inner_list_emitter".
2710 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2711 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2712 declaration in a block.
2713 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2714 * cp-valprint.c (cp_print_value_fields): Don't redeclare
2715 "obstack_final_size".
2716 * cp-support.c (inspect_type): Declare "i" in loop header.
2717 * compile/compile.c (compile_instance::insert_symbol_error):
2718 Rename inner "e".
2719 * common/agent.c (agent_run_command): Remove inner "ret"
2720 declaration.
2721 * coffread.c (coff_symfile_read): Rename inner "name".
2722 (coff_symfile_read): Rename inner "abfd".
2723 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2724 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2725 "high".
2726 * c-exp.y (lex_one_token): Move "len" declaration lower.
2727 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2728 "gdbarch".
2729 (create_exception_master_breakpoint): Likewise. Don't redeclare
2730 "b".
2731 (watch_command_1): Declare "mark" later.
2732 (clear_command): Don't shadow "a" or "b".
2733 (delete_command): Rename inner "b".
2734 (delete_trace_command): Likewise.
2735 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2736 "op".
2737 (arm_gdbarch_init): Remove inner "e_flags".
2738 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2739 "offset" in inner blocks.
2740
2741 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2742
2743 * dwarf-index-write.c (file_write): Don't write if the vector is
2744 empty.
2745
2746 2018-10-05 Tom de Vries <tdevries@suse.de>
2747
2748 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2749 PyArg_ParseTuple call.
2750
2751 2018-10-05 Tom de Vries <tdevries@suse.de>
2752
2753 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2754 PyArg_ParseTuple call.
2755
2756 2018-10-04 Joel Brobecker <brobecker@adacore.com>
2757
2758 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2759 to avoid exceeding 80 characters per line limit.
2760
2761 2018-10-04 Tom Tromey <tom@tromey.com>
2762
2763 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2764 (reread_symbols): Update.
2765 * complaints.h (clear_complaints): Remove argument.
2766 * complaints.c (enum complaint_series): Remove.
2767 (series): Remove global.
2768 (complaint_internal): Update.
2769 (clear_complaints): Remove argument.
2770
2771 2018-10-04 Tom Tromey <tom@tromey.com>
2772
2773 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2774 debugging symbols" message if there is a separate debug objfile.
2775
2776 2018-10-04 Tom Tromey <tom@tromey.com>
2777
2778 PR cli/19551:
2779 * symfile.c (symbol_file_add_with_addrs): Update output.
2780 * psymtab.c (require_partial_symbols): Update output.
2781
2782 2018-10-04 Tom Tromey <tom@tromey.com>
2783
2784 PR cli/22234:
2785 * complaints.c: Emit \n.
2786
2787 2018-10-04 Tom Tromey <tom@tromey.com>
2788
2789 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2790 (separate_debug_file_exists, find_separate_debug_file)
2791 (add_symbol_file_command, reread_symbols, allocate_symtab)
2792 (allocate_compunit_symtab): Use filtered printing, not
2793 unfiltered.
2794 * psymtab.c (require_partial_symbols, dump_psymtab)
2795 (allocate_psymtab): Use filtered printing, not unfiltered.
2796
2797 2018-10-04 Tom Tromey <tom@tromey.com>
2798
2799 * complaints.c (complaint_internal): Correctly check complaint
2800 count.
2801
2802 2018-10-04 Tom Tromey <tom@tromey.com>
2803
2804 * complaints.h (struct complaints): Remove declaration.
2805 * complaints.c (clear_complaints): Remove an unused variable.
2806
2807 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2808
2809 * MAINTAINERS (Write After Approval): Add self.
2810
2811 2018-10-03 Tom Tromey <tom@tromey.com>
2812
2813 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2814 "buffer_contents".
2815 * coffread.c (coff_symtab_read): Initialize "newobj".
2816
2817 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2818
2819 * dwarf2read.c (read_func_scope): Remove struct keyword in
2820 range-based for.
2821
2822 2018-10-03 Tom Tromey <tom@tromey.com>
2823
2824 * README: Mention --enable-ubsan.
2825 * NEWS: Mention --enable-ubsan.
2826 * acinclude.m4: Include sanitize.m4.
2827 * configure: Rebuild.
2828 * configure.ac: Call AM_GDB_UBSAN.
2829 * sanitize.m4: New file.
2830
2831 2018-10-03 Tom Tromey <tom@tromey.com>
2832
2833 * expression.h (enum exp_opcode): Use uint8_t as base type.
2834 * expprint.c (op_name): Handle invalid opcodes.
2835
2836 2018-10-03 Tom Tromey <tom@tromey.com>
2837
2838 * parse.c (prefixify_expression): Add assert.
2839 (parse_exp_in_context_1): Throw exception if the expression is
2840 empty.
2841
2842 2018-10-03 Tom Tromey <tom@tromey.com>
2843
2844 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2845
2846 2018-10-03 Tom Tromey <tom@tromey.com>
2847
2848 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2849
2850 2018-10-03 Tom Tromey <tom@tromey.com>
2851
2852 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2853 unsigned.
2854
2855 2018-10-03 Tom Tromey <tom@tromey.com>
2856
2857 * findvar.c (extract_integer): Do work in an unsigned type.
2858
2859 2018-10-03 Tom Tromey <tom@tromey.com>
2860
2861 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2862 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2863 base type.
2864 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2865 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2866 type.
2867 * c-lang.h (enum c_string_type_values): Use unsigned as base
2868 type.
2869 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2870
2871 2018-10-03 Tom Tromey <tom@tromey.com>
2872
2873 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2874 <~dwarf2_frame_state_reg_info>: Update.
2875 <dwarf2_frame_state_reg_info>: Update.
2876 <alloc_regs>: Add assertion. Update.
2877 <reg>: Now a std::vector.
2878 <num_regs>: Remove.
2879 <swap>: Update.
2880 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2881 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2882
2883 2018-10-03 Tom Tromey <tom@tromey.com>
2884
2885 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2886
2887 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2888
2889 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2890
2891 2018-10-02 Tom Tromey <tom@tromey.com>
2892
2893 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2894
2895 2018-10-02 John Darrington <john@darrington.wattle.id.au>
2896
2897 * NEWS: Mention changed commands.
2898 * ser-uds.c: New file.
2899 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2900 * configure: Regenerate.
2901 * Makefile.in: Add new file.
2902 * serial.c (serial_open): Check if filename is a socket
2903 and lookup the appropriate interface accordingly.
2904
2905 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2906
2907 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2908 define.
2909 (AARCH64_EXTRA_MAGIC): Likewise.
2910 (AARCH64_FPSIMD_MAGIC): Likewise.
2911 (AARCH64_SVE_MAGIC): Likewise.
2912 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2913 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2914 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2915 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2916 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2917 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2918 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2919 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2920 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2921 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2922 (read_aarch64_ctx): Add function.
2923 (aarch64_linux_sigframe_init): Detect FP registers.
2924
2925 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2926
2927 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2928 (AARCH64_D0_REGNUM): Likewise.
2929 (AARCH64_S0_REGNUM): Likewise.
2930 (AARCH64_H0_REGNUM): Likewise.
2931 (AARCH64_B0_REGNUM): Likewise.
2932 (AARCH64_SVE_V0_REGNUM): Likewise.
2933 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2934 (AARCH64_D0_REGNUM): Likewise.
2935 (AARCH64_S0_REGNUM): Likewise.
2936 (AARCH64_H0_REGNUM): Likewise.
2937 (AARCH64_B0_REGNUM): Likewise.
2938 (AARCH64_SVE_V0_REGNUM): Likewise.
2939
2940 2018-10-01 Gary Benson <gbenson@redhat.com>
2941
2942 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2943 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2944 prfpregset_t instead of gdb_prfpregset_t.
2945 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2946 * configure, config.in: Rebuild.
2947
2948 2018-10-01 Gary Benson <gbenson@redhat.com>
2949
2950 * common/gdb_proc_service.h: New file, factored out from...
2951 * gdb_proc_service.h: Moved common code to the above file.
2952 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2953
2954 2018-10-01 Gary Benson <gbenson@redhat.com>
2955
2956 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2957 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2958
2959 2018-10-01 Gary Benson <gbenson@redhat.com>
2960
2961 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2962 (AC_CHECK_HEADERS): Check for linux/elf.h.
2963 * configure, config.in: Rebuild.
2964 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2965 doesn't define elf_fpregset_t.
2966
2967 2018-10-01 Gary Benson <gbenson@redhat.com>
2968
2969 * gdb_proc_service.h: Whitespace change.
2970
2971 2018-10-01 Tom Tromey <tom@tromey.com>
2972
2973 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2974 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2975 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2976
2977 2018-10-01 Tom Tromey <tom@tromey.com>
2978
2979 * README: Minor change.
2980
2981 2018-09-30 Pedro Alves <palves@redhat.com>
2982
2983 * darwin-nat-info.c (darwin_debug_regions_recurse)
2984 (info_mach_exceptions_command): Remove unused local variables.
2985 * darwin-nat.c (darwin_decode_notify_message)
2986 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2987 (darwin_stop_inferior, darwin_setup_exceptions)
2988 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2989 (darwin_nat_target::attach, darwin_nat_target::detach)
2990 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2991 local variables.
2992 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2993 variables.
2994
2995 2018-09-29 Tom Tromey <tom@tromey.com>
2996
2997 * README: Remove some leftover text.
2998
2999 2018-09-29 Tom Tromey <tom@tromey.com>
3000
3001 * PROBLEMS: Rewrite.
3002 * README: Update.
3003
3004 2018-09-28 John Baldwin <jhb@FreeBSD.org>
3005
3006 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
3007 case with explicit breakpoint kind.
3008 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
3009 'additional_info' and related logic.
3010 (riscv_debug_breakpoints): New variable.
3011 (riscv_breakpoint_kind_from_pc): Use the length of the existing
3012 instruction to determine the breakpoint kind.
3013 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
3014 flag. Update description of 'set/show riscv
3015 use-compressed-breakpoints' flag.
3016
3017 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 (NEWS): Mention changes to frame related commands.
3020 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
3021 (add_prefix_cmd_suppress_notification): New function.
3022 (add_com_suppress_notification): Call
3023 add_cmd_suppress_notification.
3024 * command.h (add_cmd_suppress_notification): Declare.
3025 (add_prefix_cmd_suppress_notification): Declare.
3026 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
3027 (parse_frame_specification): Moved from stack.c, with
3028 simplification to handle a single argument.
3029 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
3030 switch to the selected frame. Add a header comment.
3031 * stack.c: Remove 'safe-ctype.h' include.
3032 (find_frame_for_function): Add declaration.
3033 (find_frame_for_address): New function.
3034 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
3035 (frame_selection_by_function_completer): New function.
3036 (info_frame_command): Rename to...
3037 (info_frame_command_core): ...this, and update parameter types.
3038 (select_frame_command): Rename to...
3039 (select_frame_command_core): ...this, and update parameter types.
3040 (frame_command): Rename to...
3041 (frame_command_core): ...this, and update parameter types.
3042 (class frame_command_helper): New class to wrap implementations of
3043 frame related sub-commands.
3044 (frame_apply_cmd_list): New static global.
3045 (frame_cmd_list): Make static.
3046 (select_frame_cmd_list): New global for sub-commands.
3047 (info_frame_cmd_list): New global for sub-commands.
3048 (_initialize_stack): Register sub-commands for 'frame',
3049 'select-frame', and 'info frame'. Update 'frame apply' commands
3050 to use frame_apply_cmd_list. Move function local static
3051 frame_apply_list to file static frame_apply_cmd_list for
3052 consistency.
3053 * stack.h (select_frame_command): Delete declarationn.
3054 (select_frame_for_mi): Declare new function.
3055
3056 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
3057
3058 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
3059 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
3060 and NOP.
3061
3062 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
3063
3064 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
3065
3066 2018-09-26 Tom Tromey <tom@tromey.com>
3067
3068 * valops.c (auto_abandon): Remove dead code.
3069
3070 2018-09-26 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
3073
3074 2018-09-24 Tom Tromey <tom@tromey.com>
3075
3076 * common/pathstuff.c (get_standard_cache_dir): Make
3077 "xdg_cache_home" and "home" const.
3078 * top.c (init_history): Make "tmpenv" const.
3079 * main.c (get_init_files): Make "homedir" const.
3080
3081 2018-09-23 Tom Tromey <tom@tromey.com>
3082
3083 PR python/18852:
3084 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
3085
3086 2018-09-23 Tom Tromey <tom@tromey.com>
3087
3088 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
3089 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
3090 * python/python-internal.h (gdbpy_handle_exception): Declare.
3091 * python/py-utils.c (gdbpy_handle_exception): New function.
3092
3093 2018-09-23 Tom Tromey <tom@tromey.com>
3094
3095 PR python/17284:
3096 * python/py-type.c (typy_template_argument): Check for negative
3097 argument number.
3098
3099 2018-09-23 Tom Tromey <tom@tromey.com>
3100
3101 PR python/14062:
3102 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
3103
3104 2018-09-23 Tom Tromey <tom@tromey.com>
3105
3106 PR python/18170:
3107 * python/py-value.c (valpy_int): Allow conversion from pointer
3108 type.
3109
3110 2018-09-23 Tom Tromey <tom@tromey.com>
3111
3112 PR python/20126:
3113 * python/py-value.c (valpy_int): Respect type sign.
3114
3115 2018-09-23 Tom Tromey <tom@tromey.com>
3116
3117 PR python/18352;
3118 * python/py-value.c (valpy_float): Allow conversions from int or
3119 char.
3120 (valpy_int, valpy_long): Allow conversions from float.
3121
3122 2018-09-23 Tom Tromey <tom@tromey.com>
3123
3124 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
3125 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
3126
3127 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3128
3129 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
3130 __sighndlr.
3131 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
3132
3133 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
3134
3135 * windows-nat.c (windows_nat_target::wait): Remove a spurious
3136 target_terminal::ours().
3137
3138 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
3139
3140 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
3141 of vl to ULONGEST.
3142
3143 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
3144
3145 * breakpoint.c (update_inserted_breakpoint_locations): Remove
3146 redundant condition.
3147
3148 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3149
3150 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
3151
3152 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
3153 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
3154 * sol-thread.c (ps_pdmodel): Don't guard definition.
3155
3156 * procfs.c: Fix formatting.
3157
3158 * procfs.c (sysset_t_alloc): Remove.
3159 (create_procinfo): Use XNEW instead of sysset_t_alloc.
3160 (procfs_debug_inferior): Likewise.
3161 (procfs_set_exec_trap): Likewise.
3162 (proc_set_traced_sysentry): Don't allocate argp dynamically.
3163 (proc_set_traced_sysexit): Likewise.
3164
3165 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
3166 (dead_procinfo): Likewise.
3167 (proc_warn): Likewise.
3168 (proc_error): Likewise.
3169 (proc_get_LDT_entry): Likewise.
3170 (do_attach): Likewise.
3171 (procfs_target::pid_to_str): Likewise.
3172 (iterate_over_mappings): Likewise.
3173
3174 * procfs.c (create_procinfo): Fix ARI warning.
3175 (proc_get_status): Likewise.
3176 (proc_stop_process): Likewise.
3177 (proc_run_process): Likewise.
3178 (proc_kill): Likewise.
3179 (proc_get_LDT_entry): Likewise.
3180 (procfs_find_LDT_entry): Likewise.
3181 (proc_update_threads): Likewise.
3182 (proc_iterate_over_threads): Likewise.
3183 (do_attach): Likewise.
3184 (procfs_xfer_memory): Likewise.
3185 (invalidate_cache): Likewise.
3186 (procfs_target::resume): Likewise.
3187 (procfs_init_inferior): Likewise.
3188 (procfs_set_exec_trap): Likewise.
3189 (procfs_target::thread_alive): Likewise.
3190 (procfs_target::pid_to_exec_file): Likewise.
3191 (iterate_over_mappings): Likewise.
3192 (procfs_target::make_corefile_notes): Likewise.
3193 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
3194
3195 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
3196 (procfs_find_LDT_entry): Likewise.
3197 * sol-thread.c (ps_lgetLDT): Likewise.
3198
3199 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3200
3201 PR tdep/17903
3202 * procfs.c (procfs_target): Declare pid_to_exec_file.
3203 (procfs_target::pid_to_exec_file): New.
3204
3205 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3206
3207 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
3208 renaming.
3209 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
3210 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
3211
3212 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3213
3214 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
3215 (supply_fpregset, fill_fpregset): Move ...
3216 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
3217 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
3218 Remove references to ioctl-based procfs.
3219 Include <sys/reg.h>.
3220 Remove PR_MODEL_NATIVE guards.
3221 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
3222 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
3223
3224 2018-09-19 Xavier Roirand <roirand@adacore.com>
3225
3226 PR gdb/20981:
3227 * solib-darwin.c (darwin_get_dyld_bfd): New function.
3228 (darwin_solib_get_all_image_info_addr_at_init): Update call.
3229 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
3230
3231 2018-09-19 John Baldwin <jhb@FreeBSD.org>
3232
3233 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
3234 (fbsd_print_sockaddr_in6): Likewise.
3235
3236 2018-09-19 Richard Bunt <richard.bunt@arm.com>
3237 Chris January <chris.january@arm.com>
3238
3239 * eval.c (skip_undetermined_arglist): Skip argument list helper.
3240 (evaluate_subexp_standard): Return a dummy type when
3241 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
3242 OP_F77_UNDETERMINED_ARGLIST case.
3243 * expression.h (enum noside): Update comment.
3244
3245 2018-09-19 George Vasick <george.vasick@oracle.com>
3246
3247 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
3248
3249 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
3250 April Chin <april.chin@oracle.com>
3251 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3252
3253 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
3254 uint_t lwpid_t.
3255 (create_procinfo): Print pids in /proc without leading zeros.
3256
3257 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
3258
3259 * nios2-tdep.c (nios2_gcc_target_options): New.
3260 (nios2_gdb_arch_init): Install new hook.
3261
3262 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
3263
3264 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
3265 New file.
3266 * update-gnulib.sh: Apply patch.
3267 * configure: Re-generate.
3268
3269 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3270
3271 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
3272 description. Make "info proc" command descriptions more
3273 consistent.
3274
3275 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3276
3277 * NEWS: Mention 'info proc files' command.
3278
3279 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3280
3281 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
3282 descriptors for IP_FILES and IP_ALL.
3283
3284 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3285
3286 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
3287 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
3288 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
3289 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
3290 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
3291 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
3292 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
3293 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
3294 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
3295 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
3296 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
3297 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
3298 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
3299 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
3300 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
3301 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
3302 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
3303 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
3304 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
3305 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
3306 (struct fbsd_sockaddr_un): New types.
3307 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
3308 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
3309 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
3310 (fbsd_core_info_proc_files): New functions.
3311 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
3312 IP_ALL.
3313 * fbsd-tdep.h (fbsd_info_proc_files_header)
3314 (fbsd_info_proc_files_entry): New.
3315
3316 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3317
3318 * defs.h (enum info_proc_what) [IP_FILES]: New value.
3319 * infcmd.c (info_proc_cmd_files): New function.
3320 (_initialize_infcmd): Register 'info proc files' command.
3321
3322 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3323
3324 * gnulib/aclocal-m4-deps.mk: Re-generate.
3325 * gnulib/aclocal.m4: Re-generate.
3326 * gnulib/config.in: Re-generate.
3327 * gnulib/configure: Re-generate.
3328 * gnulib/import/Makefile.am: Re-generate.
3329 * gnulib/import/Makefile.in: Re-generate.
3330 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3331 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3332 * gnulib/import/arpa_inet.in.h: New file.
3333 * gnulib/import/inet_ntop.c: New file.
3334 * gnulib/import/m4/arpa_inet_h.m4: New file.
3335 * gnulib/import/m4/inet_ntop.m4: New file.
3336 * gnulib/import/m4/netinet_in_h.m4: New file.
3337 * gnulib/import/m4/socklen.m4: New file.
3338 * gnulib/import/m4/sockpfaf.m4: New file.
3339 * gnulib/import/m4/stdalign.m4: New file.
3340 * gnulib/import/m4/sys_uio_h.m4: New file.
3341 * gnulib/import/netinet_in.in.h: New file.
3342 * gnulib/import/stdalign.in.h: New file.
3343 * gnulib/import/sys_socket.c: New file.
3344 * gnulib/import/sys_socket.in.h: New file.
3345 * gnulib/import/sys_uio.in.h: New file.
3346 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
3347 module.
3348
3349 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3350
3351 * gnulib/aclocal-m4-deps.mk: New file.
3352 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
3353 deterministically.
3354
3355 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3356
3357 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
3358 KVE_PATH.
3359
3360 2018-09-18 Tom Tromey <tom@tromey.com>
3361
3362 * compile/compile-object-load.c (struct
3363 link_hash_table_cleanup_data): Add constructor and destructor.
3364 Use DISABLE_COPY_AND_ASSIGN.
3365 (~link_hash_table_cleanup_data): Rename from
3366 link_hash_table_free. Now a destructor.
3367 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
3368
3369 2018-09-18 Tom Tromey <tom@tromey.com>
3370
3371 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3372 * compile/compile-object-load.c (struct munmap_list): Move to
3373 header file.
3374 (munmap_list::add): Rename from munmap_list_add; rewrite.
3375 (munmap_list::~munmap_list): Rename from munmap_list_free.
3376 (munmap_listp_free_cleanup): Remove.
3377 (compile_object_load): Update.
3378 * compile/compile-object-load.h (struct munmap_list): Move from
3379 compile-object-load.c. Rewrite.
3380
3381 2018-09-18 Alan Hayward <alan.hayward@arm.com>
3382
3383 * aarch64-tdep.c (pass_in_v): Use register size.
3384 (aarch64_extract_return_value): Likewise.
3385 (aarch64_store_return_value): Likewise.
3386
3387 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3388
3389 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
3390 rlim_t.
3391
3392 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3393
3394 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
3395 Fix short help line.
3396
3397 2018-09-17 Tom Tromey <tom@tromey.com>
3398
3399 PR python/20445:
3400 * configure: Rebuild.
3401 * configure.ac: Conditionally use -DNDEBUG for Python.
3402
3403 2018-09-17 Tom Tromey <tom@tromey.com>
3404
3405 * configure: Rebuild.
3406 * configure.ac: Use gmp as a library dependency when checking for
3407 mpfr.
3408
3409 2018-09-17 Pedro Alves <palves@redhat.com>
3410
3411 * python/py-inferior.c (find_inferior_object): Delete.
3412
3413 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
3414
3415 * compile/compile-cplus-types.c
3416 (compile_cplus_instance::enter_scope): Don't use new_scope after
3417 std::move.
3418
3419 2018-09-17 Tom Tromey <tom@tromey.com>
3420
3421 * common/pathstuff.c (get_standard_cache_dir): Use
3422 ~/Library/Caches on macOS.
3423 * common/pathstuff.h (get_standard_cache_dir): Update comment.
3424
3425 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 PR python/23669
3428 * breakpoint.c (commands_cmd_element): New.
3429 (_initialize_breakpoint): Assign commands_cmd_element.
3430 * breakpoint.h (commands_cmd_element): New.
3431 * cli/cli-script.c (while_cmd_element, if_command,
3432 define_cmd_element): New.
3433 (command_name_equals): Remove.
3434 (process_next_line): Compare commands by pointer, not by name.
3435 (_initialize_cli_script): Assign the various cmd_list_element
3436 variables.
3437 * compile/compile.c (compile_cmd_element): New.
3438 (_initialize_compile): Assign compile_cmd_element.
3439 * compile/compile.h (compile_cmd_element): New.
3440 * guile/guile.c (guile_cmd_element): New.
3441 (install_gdb_commands): Assign guile_cmd_element.
3442 * guile/guile.h (guile_cmd_element): New.
3443 * python/python.c (python_cmd_element): New.
3444 (_initialize_python): Assign python_cmd_element.
3445 * python/python.h (python_cmd_element): New.
3446 * tracepoint.c (while_stepping_cmd_element): New.
3447 (_initialize_tracepoint): Assign while_stepping_cmd_element.
3448 * tracepoint.h (while_stepping_cmd_element): New.
3449
3450 2018-09-17 Tom Tromey <tom@tromey.com>
3451
3452 * infrun.c (save_infcall_suspend_state): Return
3453 infcall_suspend_state_up.
3454 (save_infcall_control_state): Return infcall_control_state_up.
3455 * inferior.h (save_infcall_suspend_state)
3456 (save_infcall_control_state): Declare later. Return unique
3457 pointers.
3458
3459 2018-09-17 Tom Tromey <tom@tromey.com>
3460
3461 * infrun.c (struct stop_context): Declare constructor,
3462 destructor, "changed" method.
3463 (stop_context::stop_context): Rename from save_stop_context.
3464 (stop_context::~stop_context): Rename from
3465 release_stop_context_cleanup.
3466 (normal_stop): Update.
3467 (stop_context::changed): Rename from stop_context_changed. Return
3468 bool.
3469
3470 2018-09-17 Tom Tromey <tom@tromey.com>
3471
3472 * inferior.h (struct infcall_suspend_state_deleter): New.
3473 (infcall_suspend_state_up): New typedef.
3474 (struct infcall_control_state_deleter): New.
3475 (infcall_control_state_up): New typedef.
3476 (make_cleanup_restore_infcall_suspend_state)
3477 (make_cleanup_restore_infcall_control_state): Don't declare.
3478 * infcall.c (call_function_by_hand_dummy): Update.
3479 * infrun.c (do_restore_infcall_suspend_state_cleanup)
3480 (make_cleanup_restore_infcall_suspend_state): Remove.
3481 (do_restore_infcall_control_state_cleanup)
3482 (make_cleanup_restore_infcall_control_state): Remove.
3483
3484 2018-09-17 Tom Tromey <tom@tromey.com>
3485
3486 * gdbthread.h (struct thread_control_state): Add initializer.
3487 (class thread_info) <control>: Remove initializer.
3488 * inferior.h (struct inferior_control_state): Add initializer.
3489 (class inferior) <control>: Remove initializer.
3490 (exit_inferior_1): Update.
3491 * infrun.c (struct infcall_control_state): Add constructors.
3492 (save_infcall_control_state): Use new.
3493 (restore_infcall_control_state, discard_infcall_control_state):
3494 Use delete.
3495
3496 2018-09-17 Tom Tromey <tom@tromey.com>
3497
3498 * infrun.c (struct infcall_suspend_state) <registers>: Now a
3499 unique_ptr.
3500 <siginfo_data>: Now a unique_xmalloc_ptr.
3501 (save_infcall_suspend_state, restore_infcall_suspend_state)
3502 (discard_infcall_suspend_state)
3503 (get_infcall_suspend_state_regcache): Update.
3504
3505 2018-09-17 Tom Tromey <tom@tromey.com>
3506
3507 * gdbthread.h (struct thread_suspend_state): Add initializers.
3508 (class thread_info) <suspend>: Remove initializer.
3509 * infrun.c (struct infcall_suspend_state): Add initializers.
3510 (save_infcall_suspend_state): Use new.
3511 (discard_infcall_suspend_state): Use delete.
3512
3513 2018-09-16 Tom Tromey <tom@tromey.com>
3514
3515 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3516 Remove.
3517 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3518 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3519 (py_varobj_iter_new): Likewise.
3520 (py_varobj_get_iterator): Use gdbpy_ref.
3521
3522 2018-09-16 Tom Tromey <tom@tromey.com>
3523
3524 * python/py-threadevent.c (py_get_event_thread): Simplify.
3525 * python/py-inferior.c (infpy_thread_from_thread_handle):
3526 Return immediately after calling thread_to_thread_object. Use
3527 Py_RETURN_NONE.
3528 (thread_to_thread_object): Set the exception on a NULL return.
3529
3530 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3531
3532 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3533
3534 2018-09-16 Tom Tromey <tom@tromey.com>
3535
3536 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3537 Remove.
3538
3539 2018-09-16 Tom Tromey <tom@tromey.com>
3540
3541 * python/python-internal.h (thread_to_thread_object): Change
3542 return type.
3543 * python/py-inferior.c (thread_to_thread_object): Return a new
3544 reference.
3545 (infpy_thread_from_thread_handle): Update.
3546 * python/py-infthread.c (gdbpy_selected_thread): Update.
3547 * python/py-stopevent.c (create_stop_event_object): Update.
3548 * python/py-threadevent.c (py_get_event_thread): Return a new
3549 reference.
3550 (py_get_event_thread): Update.
3551 * python/py-event.h (py_get_event_thread): Change return type.
3552 * python/py-continueevent.c (create_continue_event_object):
3553 Update.
3554
3555 2018-09-16 Tom Tromey <tom@tromey.com>
3556
3557 * python/py-progspace.c (pspy_get_objfiles): Update.
3558 * python/python-internal.h (objfile_to_objfile_object): Change
3559 return type.
3560 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3561 Update.
3562 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3563 Update.
3564 * python/python.c (gdbpy_get_current_objfile): Update.
3565 (gdbpy_objfiles): Update.
3566 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3567 Update.
3568 (objfile_to_objfile_object): Return a new reference.
3569 * python/py-symtab.c (stpy_get_objfile): Update.
3570 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3571 Update.
3572
3573 2018-09-16 Tom Tromey <tom@tromey.com>
3574
3575 * python/py-inferior.c (infpy_get_progspace): Update.
3576 * python/python-internal.h (pspace_to_pspace_object): Change
3577 return type.
3578 * python/py-newobjfileevent.c
3579 (create_clear_objfiles_event_object): Update.
3580 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3581 Update.
3582 * python/python.c (gdbpy_get_current_progspace): Update.
3583 (gdbpy_progspaces): Update.
3584 * python/py-progspace.c (pspace_to_pspace_object): Return a new
3585 reference.
3586 * python/py-objfile.c (objfpy_get_progspace): Update.
3587 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3588 Update.
3589
3590 2018-09-16 Tom Tromey <tom@tromey.com>
3591
3592 * python/lib/gdb/__init__.py (current_progspace, objfiles)
3593 (solib_name, block_for_pc, find_pc_line): New functions.
3594 (execute_unwinders): Update.
3595 * python/py-block.c (gdbpy_block_for_pc): Remove.
3596 * python/py-inferior.c (infpy_get_progspace): New function.
3597 (inferior_object_getset) <progspace>: Add.
3598 * python/py-progspace.c (pspy_objfiles): Rewrite.
3599 (pspy_solib_name, pspy_block_for_pc)
3600 (pspy_find_pc_line, pspy_is_valid): New functions.
3601 (progspace_object_methods): Add entries for solib_name,
3602 block_for_pc, find_pc_line, is_valid.
3603 * python/python-internal.h (gdbpy_block_for_pc)
3604 (build_objfiles_list): Don't declare.
3605 * python/python.c: Don't include solib.h.
3606 (gdbpy_solib_name, gdbpy_find_pc_line)
3607 (gdbpy_get_current_progspace, build_objfiles_list)
3608 (gdbpy_objfiles): Remove.
3609 (GdbMethods) <current_progspace, objfiles, block_for_pc,
3610 solib_name, find_pc_line>: Remove entries.
3611
3612 2018-09-16 Tom Tromey <tom@tromey.com>
3613
3614 * top.c (new_ui_command): Use GNU style for metasyntactic
3615 variables.
3616 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3617 variables.
3618 * maint.c (maintenance_translate_address): Remove "<>" around
3619 text.
3620 * interps.c (interpreter_exec_cmd): Use GNU style for
3621 metasyntactic variables.
3622 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3623 metasyntactic variables.
3624 * tracepoint.c (tfind_range_command): Use GNU style for
3625 metasyntactic variables.
3626 (tfind_outside_command): Likewise.
3627 (_initialize_tracepoint): Likewise.
3628 * remote.c (extended_remote_target::create_inferior): Use GNU
3629 style for metasyntactic variables.
3630 * sparc64-tdep.c (adi_examine_command): Use GNU style for
3631 metasyntactic variables.
3632 (adi_assign_command): Likewise.
3633
3634 2018-09-16 Tom Tromey <tom@tromey.com>
3635
3636 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3637 metasyntactic variables. Print message if no disassembler options
3638 are available.
3639
3640 2018-09-15 Tom Tromey <tom@tromey.com>
3641
3642 * infcmd.c (get_inferior_args): Return const char *.
3643 * inferior.h (get_inferior_args): Return type now const.
3644 * linux-tdep.c (linux_fill_prpsinfo): Update.
3645 * procfs.c (procfs_target::make_corefile_notes): Update.
3646
3647 2018-09-07 Tom Tromey <tom@tromey.com>
3648
3649 * python/python.c (execute_gdb_command): Call bpstat_do_actions
3650 inside the TRY.
3651
3652 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
3653
3654 * nios2-tdep.c (nios2_type_align): New.
3655 (nios2_gdb_arch_init): Install type_align hook.
3656
3657 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3658
3659 * eval.c (fake_method::fake_method): Call xzalloc directly for a
3660 type that is neither object file owned, nor gdbarch owned.
3661 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3662 gdbarch is non-NULL.
3663 (alloc_type_instance): Allocate non-objfile owned types on the
3664 gdbarch obstack.
3665 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3666 using TYPE_ALLOC to ensure memory is allocated on the correct
3667 obstack.
3668 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3669 obstack, or the gdbarch obstack.
3670 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3671
3672 2018-09-14 Tom Tromey <tom@tromey.com>
3673
3674 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3675 block.
3676
3677 2018-09-14 Tom Tromey <tom@tromey.com>
3678
3679 * nat/fork-inferior.c (get_startup_shell): Remove "static".
3680
3681 2018-09-13 Tom Tromey <tom@tromey.com>
3682
3683 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3684 static.
3685
3686 2018-09-13 Tom Tromey <tom@tromey.com>
3687
3688 * exec.c (try_open_exec_file): Use std::string.
3689
3690 2018-09-13 Tom Tromey <tom@tromey.com>
3691
3692 * utils.h (gdb_bfd_errmsg): Return std::string.
3693 * exec.c (exec_file_attach): Update.
3694 * compile/compile-object-load.c (compile_object_load): Update.
3695 * utils.c (gdb_bfd_errmsg): Return std::string.
3696
3697 2018-09-13 Tom Tromey <tom@tromey.com>
3698
3699 * procfs.c (struct procinfo_deleter): New.
3700 (procinfo_up): New typedef.
3701 (do_destroy_procinfo_cleanup): Remove.
3702 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
3703
3704 2018-09-13 Tom Tromey <tom@tromey.com>
3705
3706 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3707
3708 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3709 2018-09-13 Tom Tromey <tom@tromey.com>
3710
3711 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3712 (pspy_get_objfiles): New function.
3713 (progspace_object_methods): New.
3714 (pspace_object_type): Add tp_methods callback.
3715 * python/python-internal.h (build_objfiles_list): New
3716 declaration.
3717 * python/python.c (build_objfiles_list): New function.
3718 (gdbpy_objfiles): Implement using build_objfiles_list.
3719 * NEWS: Mention the Progspace.objfiles method.
3720
3721 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3722
3723 * python/py-inferior.c (infpy_get_progspace): New function.
3724 (inferior_object_getset): Add progspace property.
3725 * NEWS: Mention the new property.
3726
3727 2018-09-13 Tom Tromey <tom@tromey.com>
3728
3729 PR rust/23650:
3730 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3731
3732 2018-09-13 Tom Tromey <tom@tromey.com>
3733
3734 PR rust/23626:
3735 * rust-lang.c (rust_enum_variant): Now static.
3736 (rust_empty_enum_p): New function.
3737 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3738 Handle empty enum.
3739
3740 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3741
3742 * python/py-inferior.c (infpy_repr): New.
3743 (inferior_object_type): Register infpy_repr.
3744 * python/py-objfile.c (objfpy_repr): New.
3745 (objfile_object_type): Register objfpy_repr.
3746
3747 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3748
3749 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3750
3751 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3752
3753 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3754 typo.
3755
3756 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3757
3758 * common/common-utils.c: Don't include '<sys/stat.h>'.
3759 (is_regular_file): Move to...
3760 * common/filestuff.c (is_regular_file): ... here.
3761 * common/common-utils.h (is_regular_file): Move to...
3762 * common/filestuff.h (is_regular_file): ... here.
3763
3764 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3765
3766 * skip.c (debug_skip): New variable.
3767 (skiplist_entry::do_skip_file_p): Add debug output.
3768 (skiplist_entry::do_skip_gfile_p): Likewise.
3769 (skiplist_entry::skip_function_p): Likewise.
3770 (_initialize_step_skip): Create debug command.
3771 * NEWS: Mention set/show debug skip.
3772
3773 2018-09-11 Xavier Roirand <roirand@adacore.com>
3774
3775 * darwin-nat.c (should_disable_startup_with_shell):
3776 New function.
3777 (darwin_nat_target::create_inferior): Add call.
3778
3779 2018-09-11 Xavier Roirand <roirand@adacore.com>
3780
3781 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3782 inf_port, msg_state>: Initialize.
3783 (struct darwin_thread_info) <signaled, single_step>: Change
3784 type and initialize.
3785 (struct darwin_thread_info) <event>: Initialize.
3786
3787 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3788
3789 PR gdb/23555
3790 PR gdb/23558
3791 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3792 guesses.
3793
3794 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3795
3796 Revert:
3797 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3798
3799 PR gdb/23555
3800 PR gdb/23558
3801 * gnulib/aclocal.m4: Regenerate.
3802 * gnulib/config.in: Regenerate.
3803 * gnulib/configure: Regenerate.
3804 * gnulib/import/Makefile.am: Update.
3805 * gnulib/import/Makefile.in: Update.
3806 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3807 * gnulib/import/_Noreturn.h: ... this.
3808 * gnulib/import/alloca.in.h: Update.
3809 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3810 * gnulib/import/arg-nonnull.h: ... this.
3811 * gnulib/import/assure.h: Update.
3812 * gnulib/import/at-func.c: Update.
3813 * gnulib/import/basename-lgpl.c: Update.
3814 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3815 * gnulib/import/c++defs.h: ... this.
3816 * gnulib/import/canonicalize-lgpl.c: Update.
3817 * gnulib/import/cdefs.h: Update.
3818 * gnulib/import/chdir-long.c: Update.
3819 * gnulib/import/chdir-long.h: Update.
3820 * gnulib/import/cloexec.c: Update.
3821 * gnulib/import/cloexec.h: Update.
3822 * gnulib/import/close.c: Update.
3823 * gnulib/import/closedir.c: Update.
3824 * gnulib/import/config.charset: Update.
3825 * gnulib/import/dirent-private.h: Update.
3826 * gnulib/import/dirent.in.h: Update.
3827 * gnulib/import/dirfd.c: Update.
3828 * gnulib/import/dirname-lgpl.c: Update.
3829 * gnulib/import/dirname.h: Update.
3830 * gnulib/import/dosname.h: Update.
3831 * gnulib/import/dup-safer-flag.c: Update.
3832 * gnulib/import/dup-safer.c: Update.
3833 * gnulib/import/dup.c: Update.
3834 * gnulib/import/dup2.c: Update.
3835 * gnulib/import/errno.in.h: Update.
3836 * gnulib/import/error.c: Update.
3837 * gnulib/import/error.h: Update.
3838 * gnulib/import/exitfail.c: Update.
3839 * gnulib/import/exitfail.h: Update.
3840 * gnulib/import/extra/update-copyright: Update.
3841 * gnulib/import/fchdir.c: Update.
3842 * gnulib/import/fcntl.c: Update.
3843 * gnulib/import/fcntl.in.h: Update.
3844 * gnulib/import/fd-hook.c: Update.
3845 * gnulib/import/fd-hook.h: Update.
3846 * gnulib/import/fd-safer-flag.c: Update.
3847 * gnulib/import/fd-safer.c: Update.
3848 * gnulib/import/fdopendir.c: Update.
3849 * gnulib/import/filename.h: Update.
3850 * gnulib/import/filenamecat-lgpl.c: Update.
3851 * gnulib/import/filenamecat.h: Update.
3852 * gnulib/import/flexmember.h: Update.
3853 * gnulib/import/float+.h: Update.
3854 * gnulib/import/float.c: Update.
3855 * gnulib/import/float.in.h: Update.
3856 * gnulib/import/fnmatch.c: Update.
3857 * gnulib/import/fnmatch.in.h: Update.
3858 * gnulib/import/fnmatch_loop.c: Update.
3859 * gnulib/import/fpucw.h: Update.
3860 * gnulib/import/frexp.c: Update.
3861 * gnulib/import/frexpl.c: Update.
3862 * gnulib/import/fstat.c: Update.
3863 * gnulib/import/fstatat.c: Update.
3864 * gnulib/import/getcwd-lgpl.c: Update.
3865 * gnulib/import/getcwd.c: Update.
3866 * gnulib/import/getdtablesize.c: Update.
3867 * gnulib/import/getlogin_r.c: Update.
3868 * gnulib/import/getprogname.c: Update.
3869 * gnulib/import/getprogname.h: Update.
3870 * gnulib/import/gettext.h: Update.
3871 * gnulib/import/gettimeofday.c: Update.
3872 * gnulib/import/glob-libc.h: Update.
3873 * gnulib/import/glob.c: Update.
3874 * gnulib/import/glob.in.h: Update.
3875 * gnulib/import/glob_internal.h: Update.
3876 * gnulib/import/glob_pattern_p.c: Update.
3877 * gnulib/import/globfree.c: Update.
3878 * gnulib/import/hard-locale.c: Update.
3879 * gnulib/import/hard-locale.h: Update.
3880 * gnulib/import/intprops.h: Update.
3881 * gnulib/import/inttypes.in.h: Update.
3882 * gnulib/import/isnan.c: Update.
3883 * gnulib/import/isnand-nolibm.h: Update.
3884 * gnulib/import/isnand.c: Update.
3885 * gnulib/import/isnanl-nolibm.h: Update.
3886 * gnulib/import/isnanl.c: Update.
3887 * gnulib/import/itold.c: Update.
3888 * gnulib/import/libc-config.h: Update.
3889 * gnulib/import/limits.in.h: Update.
3890 * gnulib/import/localcharset.c: Update.
3891 * gnulib/import/localcharset.h: Update.
3892 * gnulib/import/localtime-buffer.c: Update.
3893 * gnulib/import/localtime-buffer.h: Update.
3894 * gnulib/import/lstat.c: Update.
3895 * gnulib/import/m4/00gnulib.m4: Update.
3896 * gnulib/import/m4/__inline.m4: Update.
3897 * gnulib/import/m4/absolute-header.m4: Update.
3898 * gnulib/import/m4/alloca.m4: Update.
3899 * gnulib/import/m4/builtin-expect.m4: Update.
3900 * gnulib/import/m4/canonicalize.m4: Update.
3901 * gnulib/import/m4/chdir-long.m4: Update.
3902 * gnulib/import/m4/close.m4: Update.
3903 * gnulib/import/m4/closedir.m4: Update.
3904 * gnulib/import/m4/configmake.m4: Update.
3905 * gnulib/import/m4/d-ino.m4: Update.
3906 * gnulib/import/m4/d-type.m4: Update.
3907 * gnulib/import/m4/dirent_h.m4: Update.
3908 * gnulib/import/m4/dirfd.m4: Update.
3909 * gnulib/import/m4/dirname.m4: Update.
3910 * gnulib/import/m4/double-slash-root.m4: Update.
3911 * gnulib/import/m4/dup.m4: Update.
3912 * gnulib/import/m4/dup2.m4: Update.
3913 * gnulib/import/m4/eealloc.m4: Update.
3914 * gnulib/import/m4/environ.m4: Update.
3915 * gnulib/import/m4/errno_h.m4: Update.
3916 * gnulib/import/m4/error.m4: Update.
3917 * gnulib/import/m4/exponentd.m4: Update.
3918 * gnulib/import/m4/exponentl.m4: Update.
3919 * gnulib/import/m4/extensions.m4: Update.
3920 * gnulib/import/m4/extern-inline.m4: Update.
3921 * gnulib/import/m4/fchdir.m4: Update.
3922 * gnulib/import/m4/fcntl-o.m4: Update.
3923 * gnulib/import/m4/fcntl.m4: Update.
3924 * gnulib/import/m4/fcntl_h.m4: Update.
3925 * gnulib/import/m4/fdopendir.m4: Update.
3926 * gnulib/import/m4/filenamecat.m4: Update.
3927 * gnulib/import/m4/flexmember.m4: Update.
3928 * gnulib/import/m4/float_h.m4: Update.
3929 * gnulib/import/m4/fnmatch.m4: Update.
3930 * gnulib/import/m4/fnmatch_h.m4: Update.
3931 * gnulib/import/m4/fpieee.m4: Update.
3932 * gnulib/import/m4/frexp.m4: Update.
3933 * gnulib/import/m4/frexpl.m4: Update.
3934 * gnulib/import/m4/fstat.m4: Update.
3935 * gnulib/import/m4/fstatat.m4: Update.
3936 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3937 * gnulib/import/m4/getcwd-path-max.m4: Update.
3938 * gnulib/import/m4/getcwd.m4: Update.
3939 * gnulib/import/m4/getdtablesize.m4: Update.
3940 * gnulib/import/m4/getlogin.m4: Update.
3941 * gnulib/import/m4/getlogin_r.m4: Update.
3942 * gnulib/import/m4/getpagesize.m4: Update.
3943 * gnulib/import/m4/getprogname.m4: Update.
3944 * gnulib/import/m4/gettimeofday.m4: Update.
3945 * gnulib/import/m4/glibc21.m4: Update.
3946 * gnulib/import/m4/glob.m4: Update.
3947 * gnulib/import/m4/glob_h.m4: Update.
3948 * gnulib/import/m4/gnulib-cache.m4: Update.
3949 * gnulib/import/m4/gnulib-common.m4: Update.
3950 * gnulib/import/m4/gnulib-comp.m4: Update.
3951 * gnulib/import/m4/gnulib-tool.m4: Update.
3952 * gnulib/import/m4/hard-locale.m4: Update.
3953 * gnulib/import/m4/include_next.m4: Update.
3954 * gnulib/import/m4/inttypes-pri.m4: Update.
3955 * gnulib/import/m4/inttypes.m4: Update.
3956 * gnulib/import/m4/isnand.m4: Update.
3957 * gnulib/import/m4/isnanl.m4: Update.
3958 * gnulib/import/m4/largefile.m4: Update.
3959 * gnulib/import/m4/limits-h.m4: Update.
3960 * gnulib/import/m4/localcharset.m4: Update.
3961 * gnulib/import/m4/locale-fr.m4: Update.
3962 * gnulib/import/m4/locale-ja.m4: Update.
3963 * gnulib/import/m4/locale-zh.m4: Update.
3964 * gnulib/import/m4/localtime-buffer.m4: Update.
3965 * gnulib/import/m4/longlong.m4: Update.
3966 * gnulib/import/m4/lstat.m4: Update.
3967 * gnulib/import/m4/malloc.m4: Update.
3968 * gnulib/import/m4/malloca.m4: Update.
3969 * gnulib/import/m4/math_h.m4: Update.
3970 * gnulib/import/m4/mbrtowc.m4: Update.
3971 * gnulib/import/m4/mbsinit.m4: Update.
3972 * gnulib/import/m4/mbsrtowcs.m4: Update.
3973 * gnulib/import/m4/mbstate_t.m4: Update.
3974 * gnulib/import/m4/memchr.m4: Update.
3975 * gnulib/import/m4/memmem.m4: Update.
3976 * gnulib/import/m4/mempcpy.m4: Update.
3977 * gnulib/import/m4/memrchr.m4: Update.
3978 * gnulib/import/m4/mkdir.m4: Update.
3979 * gnulib/import/m4/mkstemp.m4: Update.
3980 * gnulib/import/m4/mmap-anon.m4: Update.
3981 * gnulib/import/m4/mode_t.m4: Update.
3982 * gnulib/import/m4/msvc-inval.m4: Update.
3983 * gnulib/import/m4/msvc-nothrow.m4: Update.
3984 * gnulib/import/m4/multiarch.m4: Update.
3985 * gnulib/import/m4/nocrash.m4: Update.
3986 * gnulib/import/m4/off_t.m4: Update.
3987 * gnulib/import/m4/onceonly.m4: Update.
3988 * gnulib/import/m4/open-cloexec.m4: Update.
3989 * gnulib/import/m4/open.m4: Update.
3990 * gnulib/import/m4/openat.m4: Update.
3991 * gnulib/import/m4/opendir.m4: Update.
3992 * gnulib/import/m4/pathmax.m4: Update.
3993 * gnulib/import/m4/rawmemchr.m4: Update.
3994 * gnulib/import/m4/readdir.m4: Update.
3995 * gnulib/import/m4/readlink.m4: Update.
3996 * gnulib/import/m4/realloc.m4: Update.
3997 * gnulib/import/m4/rename.m4: Update.
3998 * gnulib/import/m4/rewinddir.m4: Update.
3999 * gnulib/import/m4/rmdir.m4: Update.
4000 * gnulib/import/m4/save-cwd.m4: Update.
4001 * gnulib/import/m4/secure_getenv.m4: Update.
4002 * gnulib/import/m4/setenv.m4: Update.
4003 * gnulib/import/m4/signal_h.m4: Update.
4004 * gnulib/import/m4/ssize_t.m4: Update.
4005 * gnulib/import/m4/stat-time.m4: Update.
4006 * gnulib/import/m4/stat.m4: Update.
4007 * gnulib/import/m4/std-gnu11.m4: Update.
4008 * gnulib/import/m4/stdbool.m4: Update.
4009 * gnulib/import/m4/stddef_h.m4: Update.
4010 * gnulib/import/m4/stdint.m4: Update.
4011 * gnulib/import/m4/stdio_h.m4: Update.
4012 * gnulib/import/m4/stdlib_h.m4: Update.
4013 * gnulib/import/m4/strchrnul.m4: Update.
4014 * gnulib/import/m4/strdup.m4: Update.
4015 * gnulib/import/m4/strerror.m4: Update.
4016 * gnulib/import/m4/string_h.m4: Update.
4017 * gnulib/import/m4/strstr.m4: Update.
4018 * gnulib/import/m4/strtok_r.m4: Update.
4019 * gnulib/import/m4/sys_socket_h.m4: Update.
4020 * gnulib/import/m4/sys_stat_h.m4: Update.
4021 * gnulib/import/m4/sys_time_h.m4: Update.
4022 * gnulib/import/m4/sys_types_h.m4: Update.
4023 * gnulib/import/m4/tempname.m4: Update.
4024 * gnulib/import/m4/time_h.m4: Update.
4025 * gnulib/import/m4/unistd-safer.m4: Update.
4026 * gnulib/import/m4/unistd_h.m4: Update.
4027 * gnulib/import/m4/warn-on-use.m4: Update.
4028 * gnulib/import/m4/wchar_h.m4: Update.
4029 * gnulib/import/m4/wchar_t.m4: Update.
4030 * gnulib/import/m4/wctype_h.m4: Update.
4031 * gnulib/import/m4/wint_t.m4: Update.
4032 * gnulib/import/malloc.c: Update.
4033 * gnulib/import/malloc/scratch_buffer.h: Update.
4034 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4035 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4036 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4037 * gnulib/import/malloca.c: Update.
4038 * gnulib/import/malloca.h: Update.
4039 * gnulib/import/malloca.valgrind: Update.
4040 * gnulib/import/math.in.h: Update.
4041 * gnulib/import/mbrtowc.c: Update.
4042 * gnulib/import/mbsinit.c: Update.
4043 * gnulib/import/mbsrtowcs-impl.h: Update.
4044 * gnulib/import/mbsrtowcs-state.c: Update.
4045 * gnulib/import/mbsrtowcs.c: Update.
4046 * gnulib/import/memchr.c: Update.
4047 * gnulib/import/memmem.c: Update.
4048 * gnulib/import/mempcpy.c: Update.
4049 * gnulib/import/memrchr.c: Update.
4050 * gnulib/import/mkdir.c: Update.
4051 * gnulib/import/mkstemp.c: Update.
4052 * gnulib/import/msvc-inval.c: Update.
4053 * gnulib/import/msvc-inval.h: Update.
4054 * gnulib/import/msvc-nothrow.c: Update.
4055 * gnulib/import/msvc-nothrow.h: Update.
4056 * gnulib/import/open.c: Update.
4057 * gnulib/import/openat-die.c: Update.
4058 * gnulib/import/openat-priv.h: Update.
4059 * gnulib/import/openat-proc.c: Update.
4060 * gnulib/import/openat.c: Update.
4061 * gnulib/import/openat.h: Update.
4062 * gnulib/import/opendir.c: Update.
4063 * gnulib/import/pathmax.h: Update.
4064 * gnulib/import/pipe-safer.c: Update.
4065 * gnulib/import/rawmemchr.c: Update.
4066 * gnulib/import/readdir.c: Update.
4067 * gnulib/import/readlink.c: Update.
4068 * gnulib/import/realloc.c: Update.
4069 * gnulib/import/ref-add.sin: Update.
4070 * gnulib/import/ref-del.sin: Update.
4071 * gnulib/import/rename.c: Update.
4072 * gnulib/import/rewinddir.c: Update.
4073 * gnulib/import/rmdir.c: Update.
4074 * gnulib/import/same-inode.h: Update.
4075 * gnulib/import/save-cwd.c: Update.
4076 * gnulib/import/save-cwd.h: Update.
4077 * gnulib/import/scratch_buffer.h: Update.
4078 * gnulib/import/secure_getenv.c: Update.
4079 * gnulib/import/setenv.c: Update.
4080 * gnulib/import/signal.in.h: Update.
4081 * gnulib/import/stat-time.c: Update.
4082 * gnulib/import/stat-time.h: Update.
4083 * gnulib/import/stat-w32.c: Update.
4084 * gnulib/import/stat-w32.h: Update.
4085 * gnulib/import/stat.c: Update.
4086 * gnulib/import/stdbool.in.h: Update.
4087 * gnulib/import/stddef.in.h: Update.
4088 * gnulib/import/stdint.in.h: Update.
4089 * gnulib/import/stdio.in.h: Update.
4090 * gnulib/import/stdlib.in.h: Update.
4091 * gnulib/import/str-two-way.h: Update.
4092 * gnulib/import/strchrnul.c: Update.
4093 * gnulib/import/strdup.c: Update.
4094 * gnulib/import/streq.h: Update.
4095 * gnulib/import/strerror-override.c: Update.
4096 * gnulib/import/strerror-override.h: Update.
4097 * gnulib/import/strerror.c: Update.
4098 * gnulib/import/string.in.h: Update.
4099 * gnulib/import/stripslash.c: Update.
4100 * gnulib/import/strnlen1.c: Update.
4101 * gnulib/import/strnlen1.h: Update.
4102 * gnulib/import/strstr.c: Update.
4103 * gnulib/import/strtok_r.c: Update.
4104 * gnulib/import/sys_stat.in.h: Update.
4105 * gnulib/import/sys_time.in.h: Update.
4106 * gnulib/import/sys_types.in.h: Update.
4107 * gnulib/import/tempname.c: Update.
4108 * gnulib/import/tempname.h: Update.
4109 * gnulib/import/time.in.h: Update.
4110 * gnulib/import/unistd--.h: Update.
4111 * gnulib/import/unistd-safer.h: Update.
4112 * gnulib/import/unistd.in.h: Update.
4113 * gnulib/import/unsetenv.c: Update.
4114 * gnulib/import/verify.h: Update.
4115 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4116 * gnulib/import/wchar.in.h: Update.
4117 * gnulib/import/wctype.in.h: Update.
4118 * gnulib/import/xalloc-oversized.h: Update.
4119 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4120 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4121
4122 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
4123
4124 * record-btrace.c (get_thread_current_frame): Remove
4125 old_inferior_ptid.
4126
4127 2018-09-10 Jerome Guitton <guitton@adacore.com>
4128
4129 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
4130 with check_tag to 1 if and only if the type is tagged and the
4131 component being searched cannot been found in the current
4132 view. Otherwise, always call ada_to_fixed_type with
4133 check_tag to 0.
4134
4135 2018-09-10 Xavier Roirand <roirand@adacore.com>
4136
4137 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
4138 declaration.
4139 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
4140 * ada-varobj.c (ada_varobj_get_number_of_children,
4141 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
4142
4143 2018-09-10 Xavier Roirand <roirand@adacore.com>
4144
4145 * ada-valprint.c (ada_value_print): Use type instead of
4146 enclosing type.
4147
4148 2018-09-10 Xavier Roirand <roirand@adacore.com>
4149
4150 * ada-lang.c (ada_value_subscript): Handle case when parameter is
4151 an array of access to unconstrained array.
4152
4153 2018-09-10 Xavier Roirand <roirand@adacore.com>
4154
4155 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
4156 (ada_check_typedef): Use it.
4157
4158 2018-09-10 Xavier Roirand <roirand@adacore.com>
4159
4160 * ada-varobj.c (ada_varobj_describe_struct_child)
4161 (ada_varobj_describe_child): Handle union case like struct one.
4162
4163 2018-09-10 Tom Tromey <tom@tromey.com>
4164
4165 PR python/18380:
4166 * python/python.c (_initialize_python): Make example in "python"
4167 help work in Python 3.
4168
4169 2018-09-10 Eli Zaretskii <eliz@gnu.org>
4170
4171 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
4172 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
4173 $(EXEEXT) to the script, as it is not a program.
4174
4175 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
4176
4177 * python/py-prettyprint.c (pretty_print_one_value): Return
4178 gdbpy_ref<>.
4179 (print_string_repr): Adjust.
4180 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
4181 * python/python-internal.h (apply_varobj_pretty_printer): Return
4182 gdbpy_ref<>.
4183 * varobj.c (varobj_value_get_print_value): Adjust.
4184
4185 2018-09-08 Tom Tromey <tom@tromey.com>
4186
4187 PR python/16047:
4188 * python/py-prettyprint.c (pretty_print_one_value): Check for
4189 to_string method.
4190
4191 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4192
4193 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
4194 replace_operator_with_call.
4195
4196 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4197
4198 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
4199
4200 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4201
4202 * ada-typeprint.c (print_range): Print the bounds using TYPE
4203 rather than its TYPE_TARGET_TYPE.
4204
4205 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4206
4207 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
4208 call to ada_to_fixed_value_create.
4209
4210 2018-09-08 Jerome Guitton <guitton@adacore.com>
4211
4212 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
4213
4214 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4215
4216 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
4217 by calls to error.
4218
4219 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4220
4221 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
4222 Move update of loop variable "fi".
4223
4224 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4225
4226 * ada-lang.c (value_assign_to_component): In the case of
4227 big-endian targets, extract the bits of the given VAL
4228 using an src_offset of zero if container is not a scalar.
4229
4230 2018-09-06 Simon Ser <contact@emersion.fr>
4231
4232 PR gdb/23105
4233 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
4234 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4235 * fbsd-tdep.c (fbsd_make_note_desc): New.
4236 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
4237 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
4238 * target.h (enum target_object) Add FreeBSD-specific
4239 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4240
4241 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4242
4243 * compile/compile-c.h (generate_c_for_variable_locations):
4244 Change reference to pointer.
4245 * compile/compile-c-support.c (compile_program) <compute>:
4246 Likewise.
4247 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
4248 (generate_c_for_for_one_variable): Likewise
4249 (generate_c_for_variable_locations): Likewise
4250 * compile/compile-c-types.c (compile_c_instance::convert_type):
4251 Likewise
4252 * compile/compile-cplus-symbols.c (convert_one_symbol):
4253 std::move the scope passed to enter_scope.
4254 * compile/compile-cplus-types.c
4255 (compile_cplus_instance::enter_scope): Make parameter
4256 rvalue-reference.
4257 (compile_cplus_instance::new_scope): Change reference to
4258 pointer.
4259 (compile_cplus_instance::convert_type): Likewise
4260 (compile_cplus_convert_typedef): std::move the scope passed to
4261 enter_scope.
4262 (compile_cplus_convert_struct_or_union): Likewise.
4263 (compile_cplus_convert_enum): Likewise.
4264 (compile_cplus_convert_namespace): Likewise.
4265 * compile/compile-cplus.h (compile_cplus_instance)
4266 <enter_scope>: Make parameter rvalue-reference.
4267 * compile/compile-internal.h (compile_instance)
4268 <get_cached_type>: Likewise
4269 * compile/compile-loc2c.c (push): Likewise
4270 (pushf): Likewise
4271 (unary): Likewise
4272 (binary): Likewise
4273 (print_label): Likewise
4274 (pushf_register_address): Likewise
4275 (pushf_register): Likewise
4276 (do_compile_dwarf_expr_to_c): Likewise
4277 (compile_dwarf_expr_to_c): Likewise
4278 (compile_dwarf_bounds_to_c): Likewise
4279 * compile/compile.c (compile_instance::get_cached_type):
4280 Likewise
4281 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
4282 (compile_dwarf_bounds_to_c): Likewise
4283 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
4284 (dwarf2_compile_property_to_c): Likewise
4285 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
4286 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4287 Likewise
4288
4289 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4290
4291 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
4292 * tui/tui-data.c (init_content_element): Don't initialize it.
4293
4294 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4295
4296 * tui/tui-data.h (struct tui_win_info)
4297 <detail::opaque>: Remove.
4298 * tui/tui-data.c (init_win_info): Remove assignment.
4299
4300 2018-09-05 Tom Tromey <tom@tromey.com>
4301
4302 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
4303 -Wformat-nonliteral.
4304 * target-float.c (host_float_ops<T>::to_string)
4305 (host_float_ops<T>::from_string): Use
4306 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4307 * configure: Rebuild.
4308
4309 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
4310
4311 * printcmd.c (printf_c_string): Use
4312 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4313 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
4314
4315 2018-09-05 Tom Tromey <tom@tromey.com>
4316
4317 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
4318
4319 2018-09-05 Tom de Vries <tdevries@suse.de>
4320
4321 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
4322 with resolve_abstract_p == true.
4323 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
4324 defaulting to false. Propagate resolve_abstract_p to
4325 dwarf2_fetch_die_loc_sect_off.
4326 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
4327 parameter, defaulting to false.
4328 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
4329 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
4330 parameter.
4331 * dwarf2read.h (struct die_info): Forward-declare.
4332 (die_info_ptr): New typedef.
4333 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
4334
4335 2018-09-05 Joel Brobecker <brobecker@adacore.com>
4336
4337 GDB 8.2 released.
4338
4339 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4340 Pedro Alves <palves@redhat.com>
4341
4342 * gnulib/Makefile.in (aclocal_m4_deps): Move to
4343 "aclocal-m4-deps.mk". Include file here.
4344 $(srcdir)/aclocal.m4: Add "configure.ac".
4345 * gnulib/aclocal-m4-deps.mk: New file.
4346 * gnulib/update-gnulib.sh: Automatically update
4347 "aclocal-m4-deps.mk".
4348
4349 2018-09-04 Tom Tromey <tom@tromey.com>
4350
4351 * configure: Rebuild.
4352 * configure.ac: Remove multi-ice code.
4353
4354 2018-09-04 Tom Tromey <tom@tromey.com>
4355
4356 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
4357 (ada-exp.o): Update.
4358
4359 2018-09-04 Tom Tromey <tom@tromey.com>
4360
4361 * Makefile.in (printcmd.o, target-float.o): Remove.
4362 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
4363
4364 2018-09-04 Tom Tromey <tom@tromey.com>
4365
4366 * gnulib/Makefile.in: Remove obsolete comment.
4367 * Makefile.in: Remove obsolete comment.
4368
4369 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
4372 line with '+'.
4373
4374 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4375
4376 * riscv-tdep.c: Add 'prologue-value.h' include.
4377 (struct riscv_unwind_cache): New struct.
4378 (riscv_debug_unwinder): New global.
4379 (riscv_scan_prologue): Update arguments, capture register details
4380 from prologue scan.
4381 (riscv_skip_prologue): Reformat arguments line, move end of
4382 prologue calculation into riscv_scan_prologue.
4383 (riscv_frame_cache): Update return type, create
4384 riscv_unwind_cache, scan the prologue, and fill in remaining cache
4385 details.
4386 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
4387 (riscv_frame_prev_register): Use the trad_frame within the
4388 riscv_unwind_cache.
4389 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
4390 flag.
4391
4392 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4393
4394 * trad-frame.h (trad_frame_set_realreg): Declare.
4395 (trad_frame_set_addr): Declare.
4396 * trad-frame.c (trad_frame_set_realreg): Define new function.
4397 (trad_frame_set_addr): Define new function.
4398 (trad_frame_set_reg_realreg): Use new function.
4399 (trad_frame_set_reg_addr): Use new function.
4400
4401 2018-09-01 Keith Seitz <keiths@redhat.com>
4402
4403 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
4404 pulongest instead of "%lld".
4405 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
4406 ATTRIBUTE_UNUSED.
4407
4408 2018-08-31 Tom Tromey <tom@tromey.com>
4409
4410 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
4411 variant part type.
4412
4413 2018-08-31 Pedro Alves <palves@redhat.com>
4414
4415 * gdbarch.h: Regenerate.
4416
4417 2018-08-31 Pedro Alves <palves@redhat.com>
4418
4419 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
4420 * target.h (Hardware watchpoint interfaces): Describe
4421 continuable/steppable/non-steppable watchpoints.
4422 * gdbarch.h, gdbarch.c: Regenerate.
4423
4424 2018-08-31 Pedro Alves <palves@redhat.com>
4425
4426 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
4427 Delete.
4428 * s390-linux-nat.c
4429 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
4430 * target.h (target_ops::have_continuable_watchpoint): Delete.
4431 (target_have_continuable_watchpoint): Delete.
4432 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
4433 * target-delegates.c: Regenerate.
4434
4435 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4436
4437 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
4438 the files present in "gnulib/import/m4/".
4439
4440 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4441
4442 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
4443 c.sw, c.swsp, and c.sdsp.
4444
4445 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * riscv-tdep.c (struct riscv_inferior_data): Delete.
4448 (riscv_read_misa_reg): Don't cache value read into inferior data.
4449 (riscv_new_inferior_data): Delete.
4450 (riscv_inferior_data_cleanup): Delete.
4451 (riscv_inferior_data): Delete.
4452 (riscv_invalidate_inferior_data): Delete.
4453 (_initialize_riscv_tdep): Remove initialisation of inferior data.
4454
4455 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
4456
4457 * compile/compile-cplus-types.c
4458 (compile_cplus_instance::leave_scope): Take the address of scope
4459 object.
4460 (compile_cplus_instance::convert_qualified_base): Compare quals
4461 to 0.
4462
4463 2018-08-30 Keith Seitz <keiths@redhat.com>
4464
4465 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
4466 Use "%s" and host_address_to_string instead of "%p" in printf.
4467
4468 2018-08-29 Keith Seitz <keiths@redhat.com>
4469
4470 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4471 and compile-cplus-types.c.
4472 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4473 * c-lang.c (cplus_language_defn): Set C++ compile functions.
4474 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4475 Declare.
4476 * compile/compile-c-support.c: Include compile-cplus.h.
4477 (load_libcompile): Templatize.
4478 (get_compile_context): "New" function.
4479 (c_get_compile_context): Use get_compile_context.
4480 (cplus_get_compile_context): New function.
4481 (cplus_push_user_expression, cplus_pop_user_expression)
4482 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4483 (cplus_compute_program): Define new structs/functions.
4484 * compile/compile-cplus-symmbols.c: New file.
4485 * compile/compile-cplus-types.c: New file.
4486 * compile/compile-cplus.h: New file.
4487 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4488 Declare.
4489 * compile/compile-object-load.c (get_out_value_type): Use
4490 strncmp_iw when comparing symbol names.
4491 (compile_object_load): Add mst_bss and mst_data.
4492 * compile/compile.c (_initialize_compile): Remove
4493 -Wno-implicit-function-declaration from `compile_args'.
4494 * compile/gcc-cp-plugin.h: New file.
4495 * NEWS: Mention C++ compile support and new debug options.
4496
4497 2018-08-29 Keith Seitz <keiths@redhat.com>
4498
4499 * linespec.c (collect_info::add_symbol): Make virtual.
4500 (struct symbol_searcher_collect_info): New struct.
4501 (symbol_searcher::find_all_symbols): New method.
4502 * symtab.h (class symbol_searcher): New class.
4503
4504 2018-08-29 Keith Seitz <keiths@redhat.com>
4505
4506 * linespec.c (struct linespec) <function_symbols, label_symbols>:
4507 Change to vector of block_symbol. Update all users.
4508 (struct collect_info) <symbols>: Likewise.
4509 (collect_info::add_symbol): Take block_symbol as argument.
4510 Update all callers.
4511 (decode_compound_collector) <m_symbols>: Change type to vector
4512 of block_symbol. Update all users.
4513 (decode_compound_collector::operator ()): Change parameter type
4514 to block_symbol.
4515 (find_method, find_function_symbols, find_linespec_symbols)
4516 (find_label_symbols_in_block, find_label_symbols): Change symbol
4517 vectors to block_symbol vectors.
4518 * symtab.h (symbol_found_callback_ftype): Change parameter type to
4519 block_symbol.
4520
4521 2018-08-29 Keith Seitz <keiths@redhat.com>
4522
4523 * linespec.c (symbolp): Remove typedef and VEC definitions.
4524 (bound_minimal_symbol_d): Likewise.
4525
4526 2018-08-29 Keith Seitz <keiths@redhat.com>
4527
4528 * linespec.c (decode_compound_collector::decode_compound_collector):
4529 Remove initialization for `m_symtabs'.
4530 (decode_compound_collector::release_symbols): Change return type
4531 to std::vector. Update all callers.
4532 (class decode_compound_collector) <m_symbols>: Change type to
4533 std::vector.
4534 (lookup_prefix_sym): Change return type to std::vector. Update all
4535 callers.
4536 (compare_symbols): Remove.
4537 (std_compare_symbols): Rename to `compare_symbols'.
4538 (find_method): Change `sym_classes' parameter to std::vector.
4539 Update all callers. Use std::sort to sort sym_classes.
4540 (find_linespec_symbols): Remove cleanup.
4541
4542 2018-08-29 Keith Seitz <keiths@redhat.com>
4543
4544 * linespec.c (struct linespec) <minimal_symbols>: Change type to
4545 std::vector. Update all users.
4546 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4547 (struct collect_info) <minimal_symbols>: Likewise.
4548 (compare_msymbols): Return bool. Change parameters to const
4549 bound_minimal_symbol references.
4550 (find_method, find_function_symbols, find_linespec_symbols): Change
4551 `minsyms' parameter to std::vector. Update all callers.
4552
4553 2018-08-29 Keith Seitz <keiths@redhat.com>
4554
4555 * linespec.c (struct linespec) <label_symbols>: Change type to
4556 std::vector. Update all users.
4557 (find_label_symbols_in_block): Change `result' parameter to
4558 std::vector. Update all callers.
4559 (find_label_symbols): Return std::vector. Update all callers.
4560
4561 2018-08-29 Keith Seitz <keiths@redhat.com>
4562
4563 * linespec.c (struct linespec) <function_symbols>: Change type to
4564 std::vector. Update all users.
4565 (struct collect_info) <function_symbols>: Likewise.
4566 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4567 (std_compare_symbols): New function.
4568 (find_method, find_function_symbols, find_linespec_symbols)
4569 (find_label_symbols_in_block): Change `symbols' parameter to
4570 std::vector. Update all callers.
4571 (find_label_symbols): Likewise for `function_symbols' and
4572 `label_funcs_ret'.
4573
4574 2018-08-29 Keith Seitz <keiths@redhat.com>
4575
4576 * linespec.c (symtab_vector_up): Define.
4577 (struct linespec) <file_symtabs>: Change type to std::vector *.
4578 Update all uses.
4579 (struct collect_info) <file_symtabs>: Likewise.
4580 (collect_symtabs_from_filename): Return symtab_vector_up.
4581 Update all callers.
4582 (decode_objc): Remove cleanup.
4583 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4584 (symtab_collector::release_symtabs): Return symtab_vector_up.
4585 Update all callers.
4586 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4587 Update all users.
4588 (collect_symtabs_from_filename, symtabs_from_filename): Return
4589 symtab_vector_up. Update all callers.
4590
4591 2018-08-29 Tom Tromey <tom@tromey.com>
4592
4593 * csky-tdep.c (csky_analyze_prologue): Use
4594 core_addr_to_string_nz.
4595
4596 2018-08-29 Tom Tromey <tom@tromey.com>
4597
4598 * windows-nat.c (struct xlate_exception) <them>: Change type to
4599 DWORD.
4600 (xlate): Fix formatting. Remove last entry.
4601 (struct xlate_exception, xlate): Comment out.
4602 (windows_nat_target::resume): Use ranged for.
4603
4604 2018-08-29 Jim Wilson <jimw@sifive.com>
4605
4606 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4607 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4608 of NT_PRFPREG.
4609 (riscv_linux_nat_target::store_registers): Likewise.
4610
4611 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
4612
4613 PR gdb/23555
4614 PR gdb/23558
4615 * gnulib/aclocal.m4: Regenerate.
4616 * gnulib/config.in: Regenerate.
4617 * gnulib/configure: Regenerate.
4618 * gnulib/import/Makefile.am: Update.
4619 * gnulib/import/Makefile.in: Update.
4620 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4621 * gnulib/import/_Noreturn.h: ... this.
4622 * gnulib/import/alloca.in.h: Update.
4623 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4624 * gnulib/import/arg-nonnull.h: ... this.
4625 * gnulib/import/assure.h: Update.
4626 * gnulib/import/at-func.c: Update.
4627 * gnulib/import/basename-lgpl.c: Update.
4628 * gnulib/import/extra/snippet/c++defs.h: Rename to...
4629 * gnulib/import/c++defs.h: ... this.
4630 * gnulib/import/canonicalize-lgpl.c: Update.
4631 * gnulib/import/cdefs.h: Update.
4632 * gnulib/import/chdir-long.c: Update.
4633 * gnulib/import/chdir-long.h: Update.
4634 * gnulib/import/cloexec.c: Update.
4635 * gnulib/import/cloexec.h: Update.
4636 * gnulib/import/close.c: Update.
4637 * gnulib/import/closedir.c: Update.
4638 * gnulib/import/config.charset: Update.
4639 * gnulib/import/dirent-private.h: Update.
4640 * gnulib/import/dirent.in.h: Update.
4641 * gnulib/import/dirfd.c: Update.
4642 * gnulib/import/dirname-lgpl.c: Update.
4643 * gnulib/import/dirname.h: Update.
4644 * gnulib/import/dosname.h: Update.
4645 * gnulib/import/dup-safer-flag.c: Update.
4646 * gnulib/import/dup-safer.c: Update.
4647 * gnulib/import/dup.c: Update.
4648 * gnulib/import/dup2.c: Update.
4649 * gnulib/import/errno.in.h: Update.
4650 * gnulib/import/error.c: Update.
4651 * gnulib/import/error.h: Update.
4652 * gnulib/import/exitfail.c: Update.
4653 * gnulib/import/exitfail.h: Update.
4654 * gnulib/import/extra/update-copyright: Update.
4655 * gnulib/import/fchdir.c: Update.
4656 * gnulib/import/fcntl.c: Update.
4657 * gnulib/import/fcntl.in.h: Update.
4658 * gnulib/import/fd-hook.c: Update.
4659 * gnulib/import/fd-hook.h: Update.
4660 * gnulib/import/fd-safer-flag.c: Update.
4661 * gnulib/import/fd-safer.c: Update.
4662 * gnulib/import/fdopendir.c: Update.
4663 * gnulib/import/filename.h: Update.
4664 * gnulib/import/filenamecat-lgpl.c: Update.
4665 * gnulib/import/filenamecat.h: Update.
4666 * gnulib/import/flexmember.h: Update.
4667 * gnulib/import/float+.h: Update.
4668 * gnulib/import/float.c: Update.
4669 * gnulib/import/float.in.h: Update.
4670 * gnulib/import/fnmatch.c: Update.
4671 * gnulib/import/fnmatch.in.h: Update.
4672 * gnulib/import/fnmatch_loop.c: Update.
4673 * gnulib/import/fpucw.h: Update.
4674 * gnulib/import/frexp.c: Update.
4675 * gnulib/import/frexpl.c: Update.
4676 * gnulib/import/fstat.c: Update.
4677 * gnulib/import/fstatat.c: Update.
4678 * gnulib/import/getcwd-lgpl.c: Update.
4679 * gnulib/import/getcwd.c: Update.
4680 * gnulib/import/getdtablesize.c: Update.
4681 * gnulib/import/getlogin_r.c: Update.
4682 * gnulib/import/getprogname.c: Update.
4683 * gnulib/import/getprogname.h: Update.
4684 * gnulib/import/gettext.h: Update.
4685 * gnulib/import/gettimeofday.c: Update.
4686 * gnulib/import/glob-libc.h: Update.
4687 * gnulib/import/glob.c: Update.
4688 * gnulib/import/glob.in.h: Update.
4689 * gnulib/import/glob_internal.h: Update.
4690 * gnulib/import/glob_pattern_p.c: Update.
4691 * gnulib/import/globfree.c: Update.
4692 * gnulib/import/hard-locale.c: Update.
4693 * gnulib/import/hard-locale.h: Update.
4694 * gnulib/import/intprops.h: Update.
4695 * gnulib/import/inttypes.in.h: Update.
4696 * gnulib/import/isnan.c: Update.
4697 * gnulib/import/isnand-nolibm.h: Update.
4698 * gnulib/import/isnand.c: Update.
4699 * gnulib/import/isnanl-nolibm.h: Update.
4700 * gnulib/import/isnanl.c: Update.
4701 * gnulib/import/itold.c: Update.
4702 * gnulib/import/libc-config.h: Update.
4703 * gnulib/import/limits.in.h: Update.
4704 * gnulib/import/localcharset.c: Update.
4705 * gnulib/import/localcharset.h: Update.
4706 * gnulib/import/localtime-buffer.c: Update.
4707 * gnulib/import/localtime-buffer.h: Update.
4708 * gnulib/import/lstat.c: Update.
4709 * gnulib/import/m4/00gnulib.m4: Update.
4710 * gnulib/import/m4/__inline.m4: Update.
4711 * gnulib/import/m4/absolute-header.m4: Update.
4712 * gnulib/import/m4/alloca.m4: Update.
4713 * gnulib/import/m4/builtin-expect.m4: Update.
4714 * gnulib/import/m4/canonicalize.m4: Update.
4715 * gnulib/import/m4/chdir-long.m4: Update.
4716 * gnulib/import/m4/close.m4: Update.
4717 * gnulib/import/m4/closedir.m4: Update.
4718 * gnulib/import/m4/configmake.m4: Update.
4719 * gnulib/import/m4/d-ino.m4: Update.
4720 * gnulib/import/m4/d-type.m4: Update.
4721 * gnulib/import/m4/dirent_h.m4: Update.
4722 * gnulib/import/m4/dirfd.m4: Update.
4723 * gnulib/import/m4/dirname.m4: Update.
4724 * gnulib/import/m4/double-slash-root.m4: Update.
4725 * gnulib/import/m4/dup.m4: Update.
4726 * gnulib/import/m4/dup2.m4: Update.
4727 * gnulib/import/m4/eealloc.m4: Update.
4728 * gnulib/import/m4/environ.m4: Update.
4729 * gnulib/import/m4/errno_h.m4: Update.
4730 * gnulib/import/m4/error.m4: Update.
4731 * gnulib/import/m4/exponentd.m4: Update.
4732 * gnulib/import/m4/exponentl.m4: Update.
4733 * gnulib/import/m4/extensions.m4: Update.
4734 * gnulib/import/m4/extern-inline.m4: Update.
4735 * gnulib/import/m4/fchdir.m4: Update.
4736 * gnulib/import/m4/fcntl-o.m4: Update.
4737 * gnulib/import/m4/fcntl.m4: Update.
4738 * gnulib/import/m4/fcntl_h.m4: Update.
4739 * gnulib/import/m4/fdopendir.m4: Update.
4740 * gnulib/import/m4/filenamecat.m4: Update.
4741 * gnulib/import/m4/flexmember.m4: Update.
4742 * gnulib/import/m4/float_h.m4: Update.
4743 * gnulib/import/m4/fnmatch.m4: Update.
4744 * gnulib/import/m4/fnmatch_h.m4: Update.
4745 * gnulib/import/m4/fpieee.m4: Update.
4746 * gnulib/import/m4/frexp.m4: Update.
4747 * gnulib/import/m4/frexpl.m4: Update.
4748 * gnulib/import/m4/fstat.m4: Update.
4749 * gnulib/import/m4/fstatat.m4: Update.
4750 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4751 * gnulib/import/m4/getcwd-path-max.m4: Update.
4752 * gnulib/import/m4/getcwd.m4: Update.
4753 * gnulib/import/m4/getdtablesize.m4: Update.
4754 * gnulib/import/m4/getlogin.m4: Update.
4755 * gnulib/import/m4/getlogin_r.m4: Update.
4756 * gnulib/import/m4/getpagesize.m4: Update.
4757 * gnulib/import/m4/getprogname.m4: Update.
4758 * gnulib/import/m4/gettimeofday.m4: Update.
4759 * gnulib/import/m4/glibc21.m4: Update.
4760 * gnulib/import/m4/glob.m4: Update.
4761 * gnulib/import/m4/glob_h.m4: Update.
4762 * gnulib/import/m4/gnulib-cache.m4: Update.
4763 * gnulib/import/m4/gnulib-common.m4: Update.
4764 * gnulib/import/m4/gnulib-comp.m4: Update.
4765 * gnulib/import/m4/gnulib-tool.m4: Update.
4766 * gnulib/import/m4/hard-locale.m4: Update.
4767 * gnulib/import/m4/include_next.m4: Update.
4768 * gnulib/import/m4/inttypes-pri.m4: Update.
4769 * gnulib/import/m4/inttypes.m4: Update.
4770 * gnulib/import/m4/isnand.m4: Update.
4771 * gnulib/import/m4/isnanl.m4: Update.
4772 * gnulib/import/m4/largefile.m4: Update.
4773 * gnulib/import/m4/limits-h.m4: Update.
4774 * gnulib/import/m4/localcharset.m4: Update.
4775 * gnulib/import/m4/locale-fr.m4: Update.
4776 * gnulib/import/m4/locale-ja.m4: Update.
4777 * gnulib/import/m4/locale-zh.m4: Update.
4778 * gnulib/import/m4/localtime-buffer.m4: Update.
4779 * gnulib/import/m4/longlong.m4: Update.
4780 * gnulib/import/m4/lstat.m4: Update.
4781 * gnulib/import/m4/malloc.m4: Update.
4782 * gnulib/import/m4/malloca.m4: Update.
4783 * gnulib/import/m4/math_h.m4: Update.
4784 * gnulib/import/m4/mbrtowc.m4: Update.
4785 * gnulib/import/m4/mbsinit.m4: Update.
4786 * gnulib/import/m4/mbsrtowcs.m4: Update.
4787 * gnulib/import/m4/mbstate_t.m4: Update.
4788 * gnulib/import/m4/memchr.m4: Update.
4789 * gnulib/import/m4/memmem.m4: Update.
4790 * gnulib/import/m4/mempcpy.m4: Update.
4791 * gnulib/import/m4/memrchr.m4: Update.
4792 * gnulib/import/m4/mkdir.m4: Update.
4793 * gnulib/import/m4/mkstemp.m4: Update.
4794 * gnulib/import/m4/mmap-anon.m4: Update.
4795 * gnulib/import/m4/mode_t.m4: Update.
4796 * gnulib/import/m4/msvc-inval.m4: Update.
4797 * gnulib/import/m4/msvc-nothrow.m4: Update.
4798 * gnulib/import/m4/multiarch.m4: Update.
4799 * gnulib/import/m4/nocrash.m4: Update.
4800 * gnulib/import/m4/off_t.m4: Update.
4801 * gnulib/import/m4/onceonly.m4: Update.
4802 * gnulib/import/m4/open-cloexec.m4: Update.
4803 * gnulib/import/m4/open.m4: Update.
4804 * gnulib/import/m4/openat.m4: Update.
4805 * gnulib/import/m4/opendir.m4: Update.
4806 * gnulib/import/m4/pathmax.m4: Update.
4807 * gnulib/import/m4/rawmemchr.m4: Update.
4808 * gnulib/import/m4/readdir.m4: Update.
4809 * gnulib/import/m4/readlink.m4: Update.
4810 * gnulib/import/m4/realloc.m4: Update.
4811 * gnulib/import/m4/rename.m4: Update.
4812 * gnulib/import/m4/rewinddir.m4: Update.
4813 * gnulib/import/m4/rmdir.m4: Update.
4814 * gnulib/import/m4/save-cwd.m4: Update.
4815 * gnulib/import/m4/secure_getenv.m4: Update.
4816 * gnulib/import/m4/setenv.m4: Update.
4817 * gnulib/import/m4/signal_h.m4: Update.
4818 * gnulib/import/m4/ssize_t.m4: Update.
4819 * gnulib/import/m4/stat-time.m4: Update.
4820 * gnulib/import/m4/stat.m4: Update.
4821 * gnulib/import/m4/std-gnu11.m4: Update.
4822 * gnulib/import/m4/stdbool.m4: Update.
4823 * gnulib/import/m4/stddef_h.m4: Update.
4824 * gnulib/import/m4/stdint.m4: Update.
4825 * gnulib/import/m4/stdio_h.m4: Update.
4826 * gnulib/import/m4/stdlib_h.m4: Update.
4827 * gnulib/import/m4/strchrnul.m4: Update.
4828 * gnulib/import/m4/strdup.m4: Update.
4829 * gnulib/import/m4/strerror.m4: Update.
4830 * gnulib/import/m4/string_h.m4: Update.
4831 * gnulib/import/m4/strstr.m4: Update.
4832 * gnulib/import/m4/strtok_r.m4: Update.
4833 * gnulib/import/m4/sys_socket_h.m4: Update.
4834 * gnulib/import/m4/sys_stat_h.m4: Update.
4835 * gnulib/import/m4/sys_time_h.m4: Update.
4836 * gnulib/import/m4/sys_types_h.m4: Update.
4837 * gnulib/import/m4/tempname.m4: Update.
4838 * gnulib/import/m4/time_h.m4: Update.
4839 * gnulib/import/m4/unistd-safer.m4: Update.
4840 * gnulib/import/m4/unistd_h.m4: Update.
4841 * gnulib/import/m4/warn-on-use.m4: Update.
4842 * gnulib/import/m4/wchar_h.m4: Update.
4843 * gnulib/import/m4/wchar_t.m4: Update.
4844 * gnulib/import/m4/wctype_h.m4: Update.
4845 * gnulib/import/m4/wint_t.m4: Update.
4846 * gnulib/import/malloc.c: Update.
4847 * gnulib/import/malloc/scratch_buffer.h: Update.
4848 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4849 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4850 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4851 * gnulib/import/malloca.c: Update.
4852 * gnulib/import/malloca.h: Update.
4853 * gnulib/import/malloca.valgrind: Update.
4854 * gnulib/import/math.in.h: Update.
4855 * gnulib/import/mbrtowc.c: Update.
4856 * gnulib/import/mbsinit.c: Update.
4857 * gnulib/import/mbsrtowcs-impl.h: Update.
4858 * gnulib/import/mbsrtowcs-state.c: Update.
4859 * gnulib/import/mbsrtowcs.c: Update.
4860 * gnulib/import/memchr.c: Update.
4861 * gnulib/import/memmem.c: Update.
4862 * gnulib/import/mempcpy.c: Update.
4863 * gnulib/import/memrchr.c: Update.
4864 * gnulib/import/mkdir.c: Update.
4865 * gnulib/import/mkstemp.c: Update.
4866 * gnulib/import/msvc-inval.c: Update.
4867 * gnulib/import/msvc-inval.h: Update.
4868 * gnulib/import/msvc-nothrow.c: Update.
4869 * gnulib/import/msvc-nothrow.h: Update.
4870 * gnulib/import/open.c: Update.
4871 * gnulib/import/openat-die.c: Update.
4872 * gnulib/import/openat-priv.h: Update.
4873 * gnulib/import/openat-proc.c: Update.
4874 * gnulib/import/openat.c: Update.
4875 * gnulib/import/openat.h: Update.
4876 * gnulib/import/opendir.c: Update.
4877 * gnulib/import/pathmax.h: Update.
4878 * gnulib/import/pipe-safer.c: Update.
4879 * gnulib/import/rawmemchr.c: Update.
4880 * gnulib/import/readdir.c: Update.
4881 * gnulib/import/readlink.c: Update.
4882 * gnulib/import/realloc.c: Update.
4883 * gnulib/import/ref-add.sin: Update.
4884 * gnulib/import/ref-del.sin: Update.
4885 * gnulib/import/rename.c: Update.
4886 * gnulib/import/rewinddir.c: Update.
4887 * gnulib/import/rmdir.c: Update.
4888 * gnulib/import/same-inode.h: Update.
4889 * gnulib/import/save-cwd.c: Update.
4890 * gnulib/import/save-cwd.h: Update.
4891 * gnulib/import/scratch_buffer.h: Update.
4892 * gnulib/import/secure_getenv.c: Update.
4893 * gnulib/import/setenv.c: Update.
4894 * gnulib/import/signal.in.h: Update.
4895 * gnulib/import/stat-time.c: Update.
4896 * gnulib/import/stat-time.h: Update.
4897 * gnulib/import/stat-w32.c: Update.
4898 * gnulib/import/stat-w32.h: Update.
4899 * gnulib/import/stat.c: Update.
4900 * gnulib/import/stdbool.in.h: Update.
4901 * gnulib/import/stddef.in.h: Update.
4902 * gnulib/import/stdint.in.h: Update.
4903 * gnulib/import/stdio.in.h: Update.
4904 * gnulib/import/stdlib.in.h: Update.
4905 * gnulib/import/str-two-way.h: Update.
4906 * gnulib/import/strchrnul.c: Update.
4907 * gnulib/import/strdup.c: Update.
4908 * gnulib/import/streq.h: Update.
4909 * gnulib/import/strerror-override.c: Update.
4910 * gnulib/import/strerror-override.h: Update.
4911 * gnulib/import/strerror.c: Update.
4912 * gnulib/import/string.in.h: Update.
4913 * gnulib/import/stripslash.c: Update.
4914 * gnulib/import/strnlen1.c: Update.
4915 * gnulib/import/strnlen1.h: Update.
4916 * gnulib/import/strstr.c: Update.
4917 * gnulib/import/strtok_r.c: Update.
4918 * gnulib/import/sys_stat.in.h: Update.
4919 * gnulib/import/sys_time.in.h: Update.
4920 * gnulib/import/sys_types.in.h: Update.
4921 * gnulib/import/tempname.c: Update.
4922 * gnulib/import/tempname.h: Update.
4923 * gnulib/import/time.in.h: Update.
4924 * gnulib/import/unistd--.h: Update.
4925 * gnulib/import/unistd-safer.h: Update.
4926 * gnulib/import/unistd.in.h: Update.
4927 * gnulib/import/unsetenv.c: Update.
4928 * gnulib/import/verify.h: Update.
4929 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4930 * gnulib/import/wchar.in.h: Update.
4931 * gnulib/import/wctype.in.h: Update.
4932 * gnulib/import/xalloc-oversized.h: Update.
4933 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4934 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4935
4936 2018-08-16 Gary Benson <gbenson@redhat.com>
4937
4938 PR gdb/13000:
4939 * gdb/main.c (captured_main_1): Exit with nonzero status
4940 in batch mode if the last command to be executed failed.
4941 * NEWS: Mention the above.
4942
4943 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4944
4945 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4946 end of warning message.
4947
4948 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4949
4950 PR gdb/22943:
4951 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4952 (aarch64_extract_return_value): Use
4953 aapcs_is_vfp_call_or_return_candidate.
4954 (aarch64_return_in_memory): Likewise.
4955 (aarch64_store_return_value): Likewise.
4956
4957 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4958
4959 * aarch64-tdep.c
4960 (aapcs_is_vfp_call_or_return_candidate): Make static
4961 (pass_in_v_or_stack): Remove function.
4962 (pass_in_v_vfp_candidate): New function.
4963 (aarch64_push_dummy_call): Check for float register candidates.
4964
4965 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4966
4967 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4968 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4969 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4970
4971 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4972
4973 PR build/23399
4974 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4975 (struct ipa_sym_addresses): Rename to...
4976 (struct ipa_sym_addresses_common): ... this.
4977 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4978
4979 2018-08-28 Tom Tromey <tom@tromey.com>
4980
4981 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4982 (token_fifo): Now a std::vector.
4983 (yylex, c_parse): Update.
4984 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4985 (token_fifo): Now a std::vector.
4986 (yylex, d_parse): Update.
4987 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4988 (token_fifo): Now a std::vector.
4989 (yylex, go_parse): Update.
4990
4991 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4992
4993 * parser-defs.h (struct type_stack) <elements>: Change type to
4994 std::vector<union type_stack_elt>.
4995 <depth, size>: Remove.
4996 * parse.c (parse_exp_in_context_1): Adjust.
4997 (type_stack_reserve): Remove.
4998 (check_type_stack_depth): Remove.
4999 (insert_into_type_stack): Adjust to std::vector.
5000 (insert_type): Likewise.
5001 (push_type): Likewise.
5002 (push_type_int): Likewise.
5003 (insert_type_address_space): Likewise.
5004 (pop_type): Likewise.
5005 (pop_type_int): Likewise.
5006 (pop_typelist): Likewise.
5007 (pop_type_stack): Likewise.
5008 (append_type_stack): Likewise.
5009 (push_type_stack): Likewise.
5010 (get_type_stack): Likewise.
5011 (type_stack_cleanup): Likewise.
5012 (push_typelist): Likewise.
5013 (follow_types): Likewise.
5014 (_initialize_parse): Likewise.
5015
5016 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
5017
5018 * NEWS: Mention csky target.
5019
5020 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
5021 Hafiz Abid Qadeer <abidh@codesourcery.com>
5022 Don Breazeal <donb@codesourcery.com>
5023
5024 * csky-linux-tdep.c: New file.
5025 * csky-tdep.c: Likewise.
5026 * csky-tdep.h: Likewise.
5027 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
5028 csky-tdep.o.
5029 (HFILES_NO_SRCDIR): Add csky-tdep.h.
5030 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
5031 * configure.tgt: Add csky support.
5032
5033 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
5034
5035 * python/py-framefilter.c (py_print_frame): Print frame architecture
5036 when printing on an MI output.
5037
5038 2018-08-27 Tom Tromey <tom@tromey.com>
5039
5040 PR build/23087:
5041 * configure: Rebuild.
5042 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
5043
5044 2018-08-27 Tom Tromey <tom@tromey.com>
5045
5046 * aarch64-linux-tdep.c
5047 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
5048 casts to int.
5049
5050 2018-08-27 Tom Tromey <tom@tromey.com>
5051
5052 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
5053 unsigned.
5054 (ppc64_standard_linkage1, ppc64_standard_linkage2)
5055 (ppc64_standard_linkage3, ppc64_standard_linkage4)
5056 (ppc64_standard_linkage5, ppc64_standard_linkage6)
5057 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
5058 unsigned.
5059
5060 2018-08-27 Tom Tromey <tom@tromey.com>
5061
5062 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
5063 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
5064
5065 2018-08-27 Tom Tromey <tom@tromey.com>
5066
5067 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
5068 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
5069 ULONGEST_MAX.
5070 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
5071 ULONGEST_MAX.
5072 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
5073 ULONGEST_MAX.
5074 * sparc-linux-tdep.c (sparc32_linux_sigframe)
5075 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
5076 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
5077 ULONGEST_MAX.
5078 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
5079 (ppc64_linux_sigaction_tramp_frame)
5080 (ppc32_linux_sighandler_tramp_frame)
5081 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
5082 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
5083 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
5084 * mn10300-linux-tdep.c (am33_linux_sigframe)
5085 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
5086 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
5087 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5088 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5089 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
5090 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
5091 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
5092 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
5093 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
5094 * microblaze-linux-tdep.c
5095 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
5096 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
5097 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
5098 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
5099 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
5100 * common/common-types.h (ULONGEST_MAX): New define.
5101 (CORE_ADDR_MAX): Fix formatting.
5102 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
5103 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
5104 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
5105 (arm_linux_rt_sigreturn_tramp_frame)
5106 (arm_eabi_linux_sigreturn_tramp_frame)
5107 (arm_eabi_linux_rt_sigreturn_tramp_frame)
5108 (thumb2_eabi_linux_sigreturn_tramp_frame)
5109 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
5110 (arm_linux_restart_syscall_tramp_frame)
5111 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
5112 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
5113 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
5114 ULONGEST_MAX.
5115 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
5116
5117 2018-08-27 Tom Tromey <tom@tromey.com>
5118
5119 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
5120 CORE_ADDR_MAX.
5121 * mips-tdep.c (mips_deal_with_atomic_sequence)
5122 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
5123 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
5124 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
5125 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
5126 CORE_ADDR_MAX.
5127 * aarch64-tdep.c (aarch64_software_single_step): Use
5128 CORE_ADDR_MAX.
5129
5130 2018-08-27 Tom Tromey <tom@tromey.com>
5131
5132 * linespec.c (complete_linespec_component): Add cast to "char".
5133 * completer.c (completion_tracker::build_completion_result): Add
5134 cast to "char".
5135
5136 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
5137
5138 * solist.h (struct solist, struct target_so_ops): Fix
5139 indentation.
5140
5141 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
5142
5143 * ada-tasks.c (ada_task_info_s): Remove typedef.
5144 (DEF_VEC_O(ada_task_info_s)): Remove.
5145 (struct ada_tasks_inferior_data): Initialize fields.
5146 <task_list>: Make an std::vector.
5147 (get_ada_tasks_inferior_data): Allocate with new.
5148 (ada_get_task_number): Adjust.
5149 (get_task_number_from_id): Likewise.
5150 (valid_task_id): Likewise.
5151 (ada_get_task_info_from_ptid): Likewise.
5152 (iterate_over_live_ada_tasks): Likewise.
5153 (add_ada_task): Likewise.
5154 (read_known_tasks): Likewise.
5155 (ada_build_task_list): Likewise.
5156 (print_ada_task_info): Likewise.
5157 (info_task): Likewise.
5158 (task_command_1): Likewise.
5159
5160 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
5161
5162 * ada-lang.c (add_angle_brackets): Return std::string.
5163
5164 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
5165
5166 * python/py-threadevent.c (py_get_event_thread): Initialize
5167 pythread.
5168
5169 2018-08-24 Pedro Alves <palves@redhat.com>
5170
5171 * python/py-bpevent.c (create_breakpoint_event_object): Use
5172 copy-initialization.
5173 * python/py-continueevent.c (emit_continue_event): Use
5174 copy-initialization.
5175 * python/py-exitedevent.c (create_exited_event_object): Return a
5176 gdbpy_ref<>.
5177 (emit_exited_event): Use copy-initialization.
5178 * python/py-inferior.c (python_new_inferior)
5179 (python_inferior_deleted, add_thread_object): Use
5180 copy-initialization.
5181 * python/py-infevents.c (create_inferior_call_event_object)
5182 (create_register_changed_event_object)
5183 (create_memory_changed_event_object): Return a gdbpy_ref<>.
5184 (emit_inferior_call_event, emit_memory_changed_event)
5185 (emit_register_changed_event): Use copy-initialization.
5186 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5187 Return a gdbpy_ref<>.
5188 (emit_new_objfile_event): Use copy-initialization.
5189 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
5190 (emit_clear_objfiles_event): Use copy-initialization.
5191 * python/py-signalevent.c (create_signal_event_object): Use
5192 copy-initialization.
5193 * python/py-threadevent.c (create_thread_event_object): Use
5194 copy-initialization.
5195
5196 2018-08-24 Pedro Alves <palves@redhat.com>
5197 Simon Marchi <simon.marchi@ericsson.com>
5198
5199 PR gdb/23379
5200 * python/py-continueevent.c: Include "gdbthread.h".
5201 (create_continue_event_object): Add intro comment. Add 'ptid'
5202 parameter. Use it to find thread to pass to
5203 create_thread_event_object.
5204 (emit_continue_event): Pass PTID down to
5205 create_continue_event_object.
5206 * python/py-event.h (py_get_event_thread): Declare.
5207 (create_thread_event_object): Remove default from 'thread'
5208 parameter.
5209 * python/py-stopevent.c (create_stop_event_object): Use
5210 py_get_event_thread.
5211 * python/py-threadevent.c (get_event_thread): Rename to ...
5212 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
5213 and use it to find the thread.
5214 (create_thread_event_object): Assert that THREAD isn't null.
5215 Don't find the event thread here.
5216
5217 2018-08-23 Kevin Buettner <kevinb@redhat.com>
5218
5219 * block.h (blockrange, blockranges): New struct declarations.
5220 (struct block): Add new field named `ranges'.
5221 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
5222 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
5223 macros for accessing ranges in struct block.
5224 (make_blockranges): New declaration.
5225 block.c (make_blockranges): New function.
5226 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
5227 for block.
5228 * symtab.h (find_pc_partial_function): Add new parameter `block'.
5229 * blockframe.c (cache_pc_function_block): New static global.
5230 (clear_pc_function_cache): Clear cache_pc_function_block.
5231 (find_pc_partial_function): Move comment to symtab.h. Add
5232 support for non-contiguous blocks.
5233 * cli/cli-cmds.c (block.h): Include.
5234 (print_disassembly): Handle printing of non-contiguous blocks.
5235 (disassemble_current_function): Likewise.
5236 (disassemble_command): Likewise.
5237
5238 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
5239 BLOCK_START.
5240 * blockframe.c (get_pc_function_start): Likewise.
5241 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
5242 (gcc_symbol_address): Likewise.
5243 * compile/compile-object-run.c (compile_object_run): Likewise.
5244 * compile/compile.c (get_expr_block_and_pc): Likewise.
5245 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
5246 (func_addr_to_tail_call_list): Likewise.
5247 * findvar.c (default_read_var_value): Likewise.
5248 * inline-frame.c (inline_frame_this_id): Likewise.
5249 (skip-inline_frames): Likewise.
5250 * infcmd.c (until_next_command): Likewise.
5251 * linespec.c (convert_linespec_to_sals): Likewise.
5252 * parse.c (parse_exp_in_context_1): Likewise.
5253 * printcmd.c (build_address_symbolic): likewise.
5254 (info_address_command): Likewise.
5255 symtab.c (find_function_start_sal): Likewise.
5256 (skip_prologue_sal): Likewise.
5257 (find_function_alias_target): Likewise.
5258 (find_gnu_ifunc): Likewise.
5259 * stack.c (find_frame_funname): Likewise.
5260 * symtab.c (fixup_symbol_section): Likewise.
5261 (find_function_start_sal): Likewise.
5262 (skip_prologue_sal): Likewsie.
5263 (find_function_alias_target): Likewise.
5264 (find_gnu_ifunc): Likewise.
5265 * tracepoint.c (info_scope_command): Likewise.
5266 * value.c (value_fn_field): Likewise.
5267
5268 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
5269 in place of find_pc_partial_function.
5270 * blockframe.c (find_function_entry_range_from_pc): New function.
5271 * symtab.h (find_function_entry_range_from_pc): Declare and document.
5272 * objfiles.c (objfile_relocate1): Relocate start and end addresses
5273 for each range in a block.
5274
5275
5276 2018-08-23 Xavier Roirand <roirand@adacore.com>
5277
5278 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
5279 incrementation.
5280
5281 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5282
5283 * solib-svr4.c (read_program_headers_from_bfd): Return
5284 gdb::optional<gdb::byte_vector>.
5285 (svr4_exec_displacement): Adjust.
5286
5287 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5288
5289 * solib-svr4.c (read_program_header): Return
5290 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
5291 (find_program_interpreter): Return
5292 gdb::optional<gdb::byte_vector>.
5293 (scan_dyntag_auxv): Adjust.
5294 (enable_break): Adjust.
5295 (svr4_exec_displacement): Adjust.
5296
5297 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5298
5299 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
5300 * inf-child.c (inf_child_target::terminal_save_inferior): New.
5301
5302 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5303
5304 * guile/scm-string.c (gdbscm_scm_from_printf): Use
5305 string_vprintf.
5306 * guile/scm-utils.c (gdbscm_printf): Likewise.
5307 * serial.c (serial_printf): Likewise.
5308 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
5309
5310 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
5311
5312 * stack.c (print_frame): Print frame architecture when printing on
5313 an MI output.
5314 * NEWS: Mention new "arch" attribute in frame output.
5315
5316 2018-08-21 Alan Hayward <alan.hayward@arm.com>
5317
5318 * arch/aarch64.h (aarch64_regnum): Update comment.
5319
5320 2018-08-21 Alan Hayward <alan.hayward@arm.com>
5321
5322 * NEWS: Add SVE to 8.2 section.
5323
5324 2018-08-21 Pedro Alves <palves@redhat.com>
5325
5326 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
5327 out from gdbscm_parse_function_args.
5328 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
5329 gdbscm_parse_function_args_1.
5330
5331 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
5332
5333 PR gdb/17816
5334 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
5335 operator.
5336
5337 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
5338
5339 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
5340
5341 2018-08-19 Michael Spang <spang@google.com>
5342
5343 PR gdb/11786
5344 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
5345 for PT_TLS segments.
5346
5347 2018-08-18 Kevin Buettner <kevinb@redhat.com>
5348
5349 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
5350 dwarf_variable_value.
5351 * dwarf2-frame.c (class dwarf_expr_executor):
5352 Add override for dwarf_variable_value.
5353 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
5354 (class symbol_needs_eval_context): Likewise.
5355 (indirect_synthetic_pointer): Add forward declaration.
5356 (sect_variable_value): New function.
5357 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
5358 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
5359 for DW_OP_GNU_variable_value.
5360
5361 2018-08-16 Tom Tromey <tom@tromey.com>
5362
5363 * top.c (read_command_file): Update.
5364 (command_line_input): Remove "repeat" argument.
5365 * ada-lang.c (get_selections): Update.
5366 * linespec.c (decode_line_2): Update.
5367 * defs.h (command_line_input): Remove argument.
5368 * cli/cli-script.c (read_next_line): Update.
5369 * python/py-gdb-readline.c: Update.
5370
5371 2018-08-17 Tom Tromey <tom@tromey.com>
5372
5373 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
5374 command_line_input.
5375
5376 2018-08-15 Tom Tromey <tom@tromey.com>
5377
5378 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
5379
5380 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
5381
5382 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
5383 If used, use find_pc_partial_function to find address range
5384 to disassemble.
5385 * mi/mi-main.c (mi_cmd_list_features): Report
5386 "data-disassemble-a-option" feature.
5387 * NEWS: Mention new -data-disassemble option -a.
5388
5389 2018-08-13 Tom Tromey <tom@tromey.com>
5390
5391 * common/common-defs.h (_FORTIFY_SOURCE): Define.
5392
5393 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5394
5395 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
5396 (aarch64_linux_collect_sve_regset): Likewise.
5397 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
5398 * regcache.h (regcache_map_entry_size): New function.
5399
5400 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5401
5402 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
5403 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
5404 (SVE_HEADER_VL_LENGTH): Likewise.
5405 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
5406 (SVE_HEADER_FLAGS_LENGTH): Likewise.
5407 (SVE_HEADER_RESERVED_LENGTH): Likewise.
5408 (SVE_HEADER_SIZE_OFFSET): Likewise.
5409 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
5410 (SVE_HEADER_VL_OFFSET): Likewise.
5411 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
5412 (SVE_HEADER_FLAGS_OFFSET): Likewise.
5413 (SVE_HEADER_RESERVED_OFFSET): Likewise.
5414 (SVE_HEADER_SIZE): Likewise.
5415 (aarch64_linux_core_read_vq): Add function.
5416 (aarch64_linux_core_read_description): Check for SVE section.
5417
5418 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5419
5420 * aarch64-fbsd-tdep.c
5421 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
5422 collect_size.
5423 * aarch64-linux-tdep.c
5424 (aarch64_linux_iterate_over_regset_sections): Likewise.
5425 * alpha-linux-tdep.c
5426 (alpha_linux_iterate_over_regset_sections):
5427 * alpha-nbsd-tdep.c
5428 (alphanbsd_iterate_over_regset_sections): Likewise.
5429 * amd64-fbsd-tdep.c
5430 (amd64fbsd_iterate_over_regset_sections): Likewise.
5431 * amd64-linux-tdep.c
5432 (amd64_linux_iterate_over_regset_sections): Likewise.
5433 * arm-bsd-tdep.c
5434 (armbsd_iterate_over_regset_sections): Likewise.
5435 * arm-fbsd-tdep.c
5436 (arm_fbsd_iterate_over_regset_sections): Likewise.
5437 * arm-linux-tdep.c
5438 (arm_linux_iterate_over_regset_sections): Likewise.
5439 * corelow.c (get_core_registers_cb): Likewise.
5440 (core_target::fetch_registers): Likewise.
5441 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
5442 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
5443 * gdbarch.h (void): Regenerate.
5444 * gdbarch.sh: Add supply_size and collect_size.
5445 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
5446 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
5447 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
5448 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
5449 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
5450 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
5451 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
5452 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
5453 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
5454 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
5455 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
5456 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
5457 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
5458 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
5459 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
5460 Likewise.
5461 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
5462 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
5463 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
5464 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
5465 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
5466 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
5467 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
5468 Likewise.
5469 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5470 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5471 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5472 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5473 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5474 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5475 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5476 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5477
5478 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
5479
5480 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5481 with string_printf.
5482
5483 2018-08-10 Keith Seitz <keiths@redhat.com>
5484
5485 * compile/compile-c-support.c (add_code_header, add_code_footer):
5486 Move into policy class.
5487 (c_push_user_expression, pop_user_expression_nop)
5488 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5489 (compile_program): New host class.
5490 (c_compile_program): New typedef.
5491 (c_compute_porgram): Use c_compile_program.
5492
5493 2018-08-10 Keith Seitz <keiths@redhat.com>
5494
5495 * compile/compile-internal.h (compile_instance::~compile_instance):
5496 Remove calls to htab_delete.
5497 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5498 * compile.c (compile_instance::compile_instance): Initialize
5499 htab unique pointers.
5500 (compile_instance::get_cached_type, compile_instance::insert_type)
5501 (compile_instance::error_symbol_once): Update for unique_ptr.
5502
5503 2018-08-10 Keith Seitz <keiths@redhat.com>
5504
5505 * compile/compile-c-symbols.c (struct symbol_error)
5506 (hash_symbol_error, eq_symbol_error, del_symbol_error)
5507 (compile_instance::insert_symbol_error)
5508 (compile_instance::error_symbol_once): Move to ...
5509 * compile/compile.c: ... here.
5510
5511 2018-08-10 Keith Seitz <keiths@redhat.com>
5512
5513 * compile/compile-c-support.c (c_get_compile_context): Use `new'
5514 instead of `new_compile_instance'.
5515 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5516 Update description.
5517 If the symbol error map is not initialized, create it.
5518 (generate_c_for_for_one_symbol): Do not check/initialize
5519 the symbol error map.
5520 * compile/compile-c-types.c (compile_c_instance): Make a class.
5521 Update all callers.
5522 (compile_instance::compile_instance): Initialize the type cache.
5523 (get_cached_type): New function.
5524 (insert_type): Update description.
5525 (compile_c_instance::m_default_cflags): Define.
5526 (convert_type): Update description. Use get_cached_type.
5527 (delete_instance): Moved to destructor.
5528 (new_compile_instance): Moved to constructor.
5529 * compile/compile-c.h (compile_c_instance): Make class inheriting
5530 from compile_instance.
5531 <base>: Remove field.
5532 <type_map, symbol_err_map>: Move to base class.
5533 <c_plugin>: Rename to `m_plugin' and remove pointer type.
5534 * compile/compile-internal.h (compile_instance): Make class.
5535 <type_map_t, symbol_err_map_t>: Define.
5536 <fe>: Rename to `m_gcc_fe'.
5537 <scope, block, gcc_target_options>: Add `m_' prefix.
5538 <m_type_map, m_symbol_err_map>: New fields, moved from
5539 compile_c_instance.
5540 <destroy>: Remove.
5541 (convert_type, new_compile_instance): Remove.
5542 * compile/compile.c (cleanup_compile_instance): Remove.
5543 (compile_to_object): Use unique_ptr to eliminate cleanups.
5544 (compile_instance::set_print_callback, compile_instance::version)
5545 (compile_instance::set_verbose)
5546 (compile_instance::set_driver_filename)
5547 (compile_instance::set_triplet_regexp)
5548 (compile_instance::set_arguments)
5549 (compile_instance::set_source_file)
5550 (compile_instance::compile): Define.
5551
5552 2018-08-10 Keith Seitz <keiths@redhat.com>
5553
5554 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5555 * compile/compile-c-types.c: Define GCC_METHODN macros and include
5556 gcc-c-fe.def to define C plugin.
5557 (delete_instance): Delete `c_plugin'.
5558 (new_compile_instance): Initialize `c_plugin'.
5559 * compile/compile-c.h: Include gcc_c_plugin.h.
5560 (struct compile_c_instance) <c_plugin>: New member.
5561 * gcc-c-plugin.h: New file.
5562 Update all callers with API change.
5563
5564 2018-08-10 Keith Seitz <keiths@redhat.com>
5565
5566 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5567 (HFILES_NO_SRCDIR): ... to here.
5568 Add compile-internal.h and compile-c.h.
5569 * compile/compile-c-support.c: Include compile-c.h.
5570 * compile/compile-c-symbols.c: Include compile-c.h.
5571 (generate_c_for_variable_locations): Update comment.
5572 * compile/compile-c-types.c: Include compile-c.h.
5573 * compile/compile-c.h: New file -- moved C language declarations
5574 from other files here.
5575 * compile/compile-internal.h: Do not include hashtab.h or
5576 common/enum-flags.h.
5577 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5578 (gcc_convert_symbol, gcc_symbol_address)
5579 (generate_c_for_variable_locations, c_get_mode_for_size)
5580 (c_get_range_decl_name): Definitions moved to compile-c.h.
5581 * compile/compile-loc2c.c: Include compile-c.h.
5582
5583 2018-08-10 Keith Seitz <keiths@redhat.com>
5584
5585 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5586 (c_symbol_substitution_name): ... this.
5587 Update all callers.
5588
5589 2018-08-10 Keith Seitz <keiths@redhat.com>
5590
5591 * compile/compile-c-support.c (c_compute_program): Use
5592 unique_xmalloc_ptr to eliminate cleanup.
5593 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5594 Return a unique_xmalloc_ptr and eliminate cleanup.
5595 * compile/compile-internal.h (generate_c_for_variable_locations):
5596 Return unique_xmalloc_ptr and update description.
5597
5598 2018-08-10 Alan Hayward <alan.hayward@arm.com>
5599
5600 * corelow.c (core_target::get_core_register_section): Rename
5601 min_size to section_min_size.
5602
5603 2018-08-09 Jim Wilson <jimw@sifive.com>
5604
5605 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5606 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5607 * NEWS: Mention new GNU/Linux RISC-V target.
5608 * configure.host: Add riscv*-*-linux*.
5609 * configure.nat: Add riscv*.
5610 * configure.tgt: Add riscv*-*-linux*.
5611 * riscv-linux-nat.c: New file.
5612 * riscv-linux-tdep.c: New file.
5613
5614 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 * infrun.c (resume): Make static, add forward declaration.
5617 (proceed): Update header comment.
5618 * infrun.h (resume): Delete declaration.
5619
5620 2018-08-09 Tom Tromey <tom@tromey.com>
5621
5622 * riscv-tdep.h: Minor formatting fixes.
5623
5624 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
5625
5626 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5627 * dwarf-index-cache.c (create_dir_and_check): Likewise.
5628 (test_mkdir_recursive): Likewise.
5629 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5630
5631 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5632
5633 * valarith.c (value_subscripted_rvalue): If an array is not in
5634 memory, and we don't know the upper bound, then we can't know that
5635 the requested element exists or not.
5636
5637 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
5638
5639 * target.c (str_comma_list_concat_elem): Fix typo in comment.
5640 (target_options_to_string): Add comment.
5641
5642 2018-08-08 Tom Tromey <tom@tromey.com>
5643
5644 * unittests/scoped_mmap-selftests.c: Check result of "write".
5645
5646 2018-08-08 Jim Wilson <jimw@sifive.com>
5647
5648 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5649 (decode_register_index_short): New.
5650 (decode_j_type_insn, decode_cj_type_insn): New.
5651 (decode_b_type_insn, decode_cb_type_insn): New.
5652 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
5653 local xlen. Check xlen when decoding ambiguous compressed insns. In
5654 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5655 is_c_sw_insn instead of is_sw_insn.
5656 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5657 (riscv_software_single_step): New.
5658 * riscv-tdep.h (riscv_software_single_step): Declare.
5659
5660 * riscv-tdep.c (riscv_isa_xlen): Drop static.
5661 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5662
5663 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 PR gdb/18050:
5666 * target.c (dispose_inferior): Don't dispose of inferiors that are
5667 already killed.
5668
5669 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5670
5671 * remote.c (remote_target::download_tracepoint): Change char* to
5672 const char*.
5673
5674 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5675
5676 * target.h (target_options_to_string): Return an std::string.
5677 * target.c (str_comma_list_concat_elem): Return void, use
5678 std::string.
5679 (do_option): Likewise.
5680 (target_options_to_string): Return an std::string.
5681 * linux-nat.c (linux_nat_target::wait): Adjust.
5682 * target-debug.h (target_debug_print_options): Adjust.
5683
5684 2018-08-07 Tom Tromey <tom@tromey.com>
5685
5686 * Makefile.in (CPPFLAGS): New variable.
5687 (INTERNAL_CPPFLAGS): Use it.
5688
5689 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5690
5691 * NEWS: Mention the index cache.
5692
5693 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5694
5695 * common/pathstuff.h (get_standard_cache_dir): New.
5696 * common/pathstuff.c (get_standard_cache_dir): New.
5697 * build-id.h (build_id_to_string): New.
5698 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5699 DEBUG_STR_SUFFIX): Move to here.
5700 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5701 DEBUG_STR_SUFFIX): Move from there.
5702 (write_psymtabs_to_index): Make non-static, add basename
5703 parameter. Write to temporary files, rename when done.
5704 (save_gdb_index_command): Adjust call to
5705 write_psymtabs_to_index.
5706 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5707 field.
5708 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5709 (get_gdb_index_contents_from_cache): New.
5710 (get_gdb_index_contents_from_cache_dwz): New.
5711 (dwarf2_initialize_objfile): Read index from cache.
5712 (dwarf2_build_psymtabs): Save to index.
5713 * dwarf-index-cache.h: New file.
5714 * dwarf-index-cache.c: New file.
5715 * dwarf-index-write.h: New file.
5716
5717 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5718
5719 * gnulib/aclocal.m4: Re-generate.
5720 * gnulib/config.in: Re-generate.
5721 * gnulib/configure: Re-generate.
5722 * gnulib/import/Makefile.am: Re-generate.
5723 * gnulib/import/Makefile.in: Re-generate.
5724 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5725 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5726 * gnulib/import/m4/mkdir.m4: New file.
5727 * gnulib/import/mkdir.c: New file.
5728 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5729 module.
5730
5731 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5732
5733 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5734 * common/scoped_mmap.c: New file.
5735 * common/scoped_mmap.h (destroy): New method.
5736 (~scoped_mmap, reset): Use destroy.
5737 (scoped_mmap): New move constructor.
5738 (mmap_file): New declaration.
5739 * unittests/scoped_mmap-selftests.c (test_normal,
5740 test_invalid_filename, run_tests): New functions.
5741 (_initialize_scoped_mmap_selftests): Register selftest.
5742
5743 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5744
5745 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5746 (read_gdb_index_from_buffer): ... this. Remove section
5747 parameter, add buffer parameter.
5748 (get_gdb_index_contents_ftype,
5749 get_gdb_index_contents_dwz_ftype): New typedefs.
5750 (dwarf2_read_gdb_index): Add callback parameters to get the
5751 index contents.
5752 (get_gdb_index_contents_from_section): New.
5753 (dwarf2_initialize_objfile): Update call to
5754 dwarf2_read_gdb_index.
5755
5756 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5757
5758 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5759 (gdb_open_cloexec): Likewise.
5760 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5761 (commandline_from_pid): Likewise.
5762 (linux_xfer_osdata_threads): Likewise.
5763 (linux_xfer_osdata_fds): Likewise.
5764 * ada-lang.c (is_package_name): Likewise.
5765 * auxv.c (procfs_xfer_auxv): Likewise.
5766 * breakpoint.c (print_one_breakpoint_location): Use
5767 uiout::field_fmt.
5768 (print_one_catch_solib): Use string_printf.
5769 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5770 (add_pe_forwarded_sym): Likewise.
5771 * dwarf2read.c (create_type_unit_group): Likewise.
5772 (build_error_marker_type): Likewise.
5773 * infcall.c (get_function_name): Likewise.
5774 * valprint.c (print_converted_chars_to_obstack): Likewise.
5775 * xtensa-tdep.c (xtensa_register_type): Likewise.
5776
5777 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5778
5779 * remote.c (remote_target::download_tracepoint): Fix format
5780 string errors.
5781
5782 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5783
5784 * tracefile.c: Include common/byte-vector.h.
5785 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5786 with trace_regblock_size if needed. Update uses of buf.
5787
5788 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5789
5790 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5791 std::vector<unsigned char>.
5792 * tracepoint.c (collection_list::collection_list): Remove
5793 m_regs_mask initializer from initializer list. Resize
5794 m_regs_mask using the largest remote register number.
5795 (collection_list::add_remote_register): Remove size check on
5796 m_regs_mask. Use at to access element.
5797 (collection_list::stringify): Change type of temp_buf to
5798 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5799 stringify the register mask. Use pack_hex_byte for the register
5800 mask.
5801
5802 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5803
5804 * tracepoint.h (class collection_list) <add_register>: Remove.
5805 <add_remote_register, add_ax_registers, add_local_register>:
5806 Declare.
5807 <add_memrange>: Add scope parameter.
5808 * tracepoint.c (encode_actions_1): Likewise.
5809 (collection_list::add_register): Rename to ...
5810 (collection_list::add_remote_register): ... this. Update
5811 comment.
5812 (collection_list::add_ax_registers, add_local_register): New
5813 methods.
5814 (collection_list::add_memrange): Add scope parameter. Call
5815 add_local_register instead of add_register.
5816 (finalize_tracepoint_aexpr): New function.
5817 (collection_list::collect_symbol): Update calls to add_memrange.
5818 Call add_local_register instead of add_register. Call
5819 add_ax_registers. Call finalize_tracepoint_aexpr.
5820 (encode_actions_1): Get remote regnos for $reg action. Call
5821 add_remote_register, add_ax_registers, and add_local_register.
5822 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5823 (validate_actionline): Call finalize_tracepoint_aexpr.
5824
5825 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5826
5827 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5828 Replace array buf with gdb::char_vector buf, of size
5829 get_remote_packet_size (). Replace references to buf and
5830 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5831 and xsnprintf with snprintf. Raise errors if the buffer is too
5832 small.
5833
5834 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5835
5836 * remote.c (remote_target::download_tracepoint): Fix the has_more
5837 predicate in the QTDP action list iteration.
5838
5839 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5840
5841 * remote.c (remote_target::download_tracepoint): Fix indentation
5842 in for block.
5843
5844 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5845
5846 * proc-api.c (_initialize_proc_api): Remove c, unused.
5847 * procfs.c (procfs_init_inferior): Remove signals, unused.
5848 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5849 unused.
5850
5851 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5852 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5855 'W_STOPCODE (0)' as this could be ambiguous.
5856
5857 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5858
5859 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5860 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5861 "ai_socktype").
5862
5863 2018-08-02 Tom Tromey <tom@tromey.com>
5864
5865 PR symtab/16842.
5866 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5867 symbols.
5868 (process_structure_scope): Likewise.
5869
5870 2018-08-02 Xavier Roirand <roirand@adacore.com>
5871
5872 PR gdb/22629:
5873 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5874 kill inferior.
5875
5876 2018-08-02 Tom Tromey <tom@tromey.com>
5877
5878 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5879 (darwin_suspend_inferior, darwin_resume_inferior)
5880 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5881 (darwin_check_new_threads): Check result of get_darwin_inferior.
5882
5883 2018-07-31 Joel Brobecker <brobecker@adacore.com>
5884
5885 GDB 8.1.1 released.
5886
5887 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5888
5889 * varobj.c (varobj_get_path_expr_parent): Report an error if
5890 parent is a dynamic varobj.
5891
5892 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5893
5894 * gnulib/aclocal.m4: Re-generate.
5895 * gnulib/config.in: Re-generate.
5896 * gnulib/configure: Re-generate.
5897 * gnulib/import/Makefile.in: Re-generate.
5898 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5899 * gnulib/import/m4/onceonly.m4: Re-generate.
5900
5901 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5902
5903 * target-descriptions.c (struct xml_test_tdesc): New.
5904 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5905 (record_xml_tdesc): Update.
5906 (maintenance_check_xml_descriptions): Update.
5907 * target-descriptions.h (record_xml_tdesc): Update comment.
5908
5909 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5912 checking array bounds are defined.
5913
5914 2018-07-30 Tom Tromey <tom@tromey.com>
5915
5916 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5917 irreflexivity violation.
5918
5919 2018-07-30 Tom Tromey <tom@tromey.com>
5920
5921 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5922 * value.c (unpack_long): Remove lint code.
5923 * valops.c (value_ind): Remove lint code.
5924 * valarith.c (value_x_binop, value_x_unop, value_equal)
5925 (value_pos): Remove lint code.
5926
5927 2018-07-28 Tom de Vries <tdevries@suse.de>
5928
5929 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5930 with undefined upper bound as <optimized out>.
5931
5932 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5933
5934 * gcore.in: Rename variable "name" to "prefix". Expand
5935 "usage" text.
5936
5937 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5938
5939 * windows-nat.c (windows_nat_target::create_inferior): Update to
5940 call close() in global namespace.
5941
5942 2018-07-26 Tom Tromey <tom@tromey.com>
5943
5944 * dwarf-index-write.c (add_address_entry): Don't add objfile
5945 offsets.
5946 * dbxread.c (find_stab_function): Rename from
5947 find_stab_function_addr. Return a bound_minimal_symbol.
5948 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5949 Don't add objfile offsets.
5950 (end_psymtab): Use raw_text_low, raw_text_high,
5951 MSYMBOL_VALUE_RAW_ADDRESS.
5952 (read_ofile_symtab): Update.
5953 (process_one_symbol): Update.
5954 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5955 offsets.
5956 (dw2_relocate): Remove.
5957 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5958 searching addrmap.
5959 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5960 Update.
5961 (process_psymtab_comp_unit_reader, add_partial_symbol)
5962 (add_partial_subprogram, dwarf2_ranges_read): Update.
5963 (load_partial_dies): Update.
5964 (add_address_entry): Don't add objfile offsets.
5965 (dwarf2_build_include_psymtabs): Update.
5966 (create_addrmap_from_aranges): Don't add objfile offsets.
5967 (dw2_find_pc_sect_compunit_symtab): Update.
5968 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5969 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5970 Update.
5971 (parse_partial_symbols): Don't add objfile offsets. Use
5972 raw_text_low, raw_text_high. Update.
5973 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5974 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5975 or call 'relocate' quick function. Clear psymbol_map.
5976 * psympriv.h (struct partial_symbol) <address>: Add section
5977 offset.
5978 <set_unrelocated_address>: Rename from set_address.
5979 <raw_text_low, raw_text_high>: New methods.
5980 <text_low, text_high>: Add objfile parameter.
5981 (add_psymbol_to_bcache): Add 'section' parameter. Call
5982 set_unrelocated_address.
5983 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5984 (find_pc_psymbol): Update.
5985 (fixup_psymbol_section, relocate_psymtabs): Remove.
5986 (dump_psymtab, psym_functions): Update.
5987 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5988 parameter.
5989 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5990 (start_psymtab_common): Update.
5991 * symfile-debug.c (debug_qf_relocate): Remove.
5992 (debug_sym_quick_functions): Update.
5993 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5994 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5995 Update.
5996
5997 2018-07-26 Tom Tromey <tromey@redhat.com>
5998
5999 * dbxread.c (end_psymtab): Use text_high_valid and
6000 text_low_valid.
6001 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
6002 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
6003 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
6004 Update comment.
6005 <text_low_valid, text_high_valid>: New fields.
6006 <set_text_low, set_text_high>: Update.
6007 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
6008
6009 2018-07-26 Tom Tromey <tom@tromey.com>
6010
6011 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
6012 Update.
6013 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
6014 textlow and texthigh fields.
6015 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
6016 Update.
6017 * mdebugread.c (parse_lines, parse_partial_symbols)
6018 (psymtab_to_symtab_1): Update.
6019 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
6020 Rename fields. Update comment. Now private.
6021 <text_low, text_high, set_text_low, set_text_high>: New methods.
6022 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
6023 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
6024 (start_psymtab_common, maintenance_info_psymtabs)
6025 (maintenance_check_psymtabs): Update.
6026 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
6027 texthigh fields.
6028 (scan_xcoff_symtab): Update.
6029
6030 2018-07-26 Tom Tromey <tromey@redhat.com>
6031
6032 * psympriv.h (struct partial_symbol) <unrelocated_address,
6033 address, set_address>: New methods.
6034 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
6035 (fixup_psymbol_section, relocate_psymtabs): Update.
6036 (print_partial_symbols): Add 'objfile' parameter. Update.
6037 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
6038 Update.
6039
6040 2018-07-26 Tom Tromey <tom@tromey.com>
6041
6042 * dwarf-index-write.c (write_psymbols, debug_names::insert)
6043 (debug_names::write_psymbols): Update.
6044 * psympriv.h (struct partial_symbol): Derive from
6045 general_symbol_info.
6046 <obj_section>: New method.
6047 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
6048 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
6049 (find_pc_sect_psymbol, fixup_psymbol_section)
6050 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
6051 (print_partial_symbols, recursively_search_psymtabs)
6052 (compare_psymbols, psymbol_hash, psymbol_compare)
6053 (add_psymbol_to_bcache, maintenance_check_psymtabs)
6054 (psymbol_name_matches, psym_fill_psymbol_map): Update.
6055
6056 2018-07-26 Tom Tromey <tromey@redhat.com>
6057
6058 * dbxread.c (end_psymtab): Remove dead code.
6059
6060 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
6063 DWARF unwinders are disabled.
6064 * dwarf2-frame.c: Add dwarf2read.h include.
6065 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
6066 disabled.
6067 (dwarf2_frame_unwinders_enabled_p): Define.
6068 (show_dwarf_unwinders_enabled_p): New function.
6069 (_initialize_dwarf2_frame): Register switch to control DWARF
6070 unwinder use.
6071 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
6072 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
6073 (show_dwarf_cmdlist): Remove static keyword.
6074 * dwarf2read.h (set_dwarf_cmdlist): Declare.
6075 (show_dwarf_cmdlist): Declare.
6076 * NEWS: Document new feature.
6077
6078 2018-07-26 Tom de Vries <tdevries@suse.de>
6079
6080 PR breakpoints/23366
6081 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
6082
6083 2018-07-26 Tom de Vries <tdevries@suse.de>
6084
6085 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
6086 DW_AT_count can't be translated to a dynamic prop.
6087
6088 2018-07-25 Tom de Vries <tdevries@suse.de>
6089
6090 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
6091 try/catch.
6092
6093 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
6094
6095 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
6096
6097 2018-07-25 Joel Brobecker <brobecker@adacore.com>
6098
6099 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
6100
6101 2018-07-24 Keith Seitz <keiths@redhat.comt
6102
6103 PR symtab/23010
6104 * dwarf2read.c (dw2_add_symbol_to_list): New function.
6105 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
6106 instead of add_symbol_to_list.
6107 (read_file_scope): Call prepare_one_comp_unit before reading
6108 any other DIEs.
6109
6110 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
6111
6112 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
6113
6114 2018-07-24 Tom Tromey <tom@tromey.com>
6115
6116 * utils.c (malloc, realloc, free): Don't declare.
6117 * configure, config.in: Rebuild.
6118 * configure.ac: Don't check for declarations of free, malloc, or
6119 realloc.
6120
6121 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6122
6123 * aarch64-linux-nat.c
6124 (aarch64_linux_nat_target::stopped_data_address): Remove unused
6125 variable.
6126 * arm-linux-nat.c (fetch_regs): Likewise.
6127 (store_regs): Likewise.
6128 (fetch_vfp_regs): Likewise.
6129 (store_vfp_regs): Likewise.
6130 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
6131 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
6132 (arm_linux_nat_target::insert_watchpoint): Likewise.
6133 (arm_linux_nat_target::remove_watchpoint): Likewise.
6134 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
6135 Likewise.
6136 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
6137 Likewise.
6138 * ppc-linux-nat.c (fetch_register): Likewise.
6139 (fetch_all_gp_regs): Likewise.
6140 (fetch_ppc_registers): Likewise.
6141 (store_all_gp_regs): Likewise.
6142 (store_ppc_registers): Likewise.
6143 (hwdebug_insert_point): Likewise.
6144 (can_use_watchpoint_cond_accel): Likewise.
6145 * remote-sim.c (gdb_os_write_stdout): Likewise.
6146
6147 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6148 Tom Tromey <tom@tromey.com>
6149
6150 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
6151 test for it.
6152 * configure: Rebuild.
6153
6154 2018-07-22 Tom Tromey <tom@tromey.com>
6155
6156 * regformats/regdat.sh: Define xmltarget_${name} inside
6157 #ifndef IN_PROCESS_AGENT.
6158
6159 2018-07-22 Tom Tromey <tom@tromey.com>
6160
6161 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
6162
6163 2018-07-22 Tom Tromey <tom@tromey.com>
6164
6165 * symfile.c (reread_symbols): Notify iter, not objfile.
6166
6167 2018-07-22 Tom Tromey <tom@tromey.com>
6168
6169 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
6170 Use arch_ops.
6171 (ravenscar_thread_target::prepare_to_store): Likewise.
6172
6173 2018-07-22 Tom Tromey <tom@tromey.com>
6174
6175 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
6176 unused variable. Call value_fetch_lazy when needed.
6177 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6178 Remove unused variable. Call value_fetch_lazy when needed.
6179
6180 2018-07-22 Tom Tromey <tom@tromey.com>
6181
6182 * m32c-tdep.c (mark_dma): Return void.
6183 (make_regs): Remove unused declarations.
6184
6185 2018-07-22 Tom Tromey <tom@tromey.com>
6186
6187 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
6188 cmdscm_get_valid_command_smob_arg_unsafe for effect.
6189 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
6190 bkscm_get_valid_block_smob_arg_unsafe for effect.
6191
6192 2018-07-22 Tom Tromey <tom@tromey.com>
6193
6194 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
6195 value_type.
6196
6197 2018-07-22 Tom Tromey <tom@tromey.com>
6198
6199 * windows-nat.c (saved_context): Conditionally define.
6200 * remote.c (remote_target::remote_btrace_maybe_reopen):
6201 Conditionally declare "warned".
6202 * inflow.c (sigquit_ours): Conditionally define.
6203 (new_tty): Move "tty" declaration inside #if.
6204 * guile/guile.c (guile_datadir): Conditionally define.
6205 * charset.c (set_be_le_names): Move some declarations inside #if.
6206 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
6207 #if.
6208 (parse_xml_btrace_conf): Likewise.
6209
6210 2018-07-22 Tom Tromey <tom@tromey.com>
6211
6212 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
6213
6214 2018-07-22 Tom Tromey <tom@tromey.com>
6215
6216 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
6217 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
6218 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
6219 * buildsym-legacy.c (get_macro_table): Remove unused variable.
6220 * stack.c (frame_apply_level_command): Remove unused variable.
6221 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
6222 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
6223 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
6224 unused variable.
6225 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
6226 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
6227 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
6228 variable.
6229 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
6230 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
6231 variable.
6232 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
6233 Remove unused variable.
6234 * cli/cli-script.c (recurse_read_control_structure): Remove unused
6235 variable.
6236 * common/tdesc.c (print_xml_feature::visit): Remove unused
6237 variable.
6238 * compile/compile-object-load.c (store_regs): Remove unused
6239 variables.
6240 * complaints.c (clear_complaints): Remove unused variable.
6241 * corelow.c (core_target_open): Remove unused variable.
6242 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
6243 variable.
6244 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
6245 variable.
6246 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
6247 variable.
6248 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
6249 variable.
6250 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
6251 variable.
6252 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
6253 variable.
6254 * ia64-tdep.c (examine_prologue): Remove unused variable.
6255 * infcall.c (run_inferior_call): Remove unused variable.
6256 * inferior.c (exit_inferior): Remove unused variable.
6257 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
6258 * linespec.c (decode_line_2): Remove unused variable.
6259 * linux-nat.c (super_close): Remove.
6260 * linux-tdep.c (linux_info_proc): Remove unused variable.
6261 * mi/mi-main.c (mi_execute_command): Remove unused variable.
6262 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
6263 Remove unused variable.
6264 * parse.c (find_minsym_type_and_address): Remove unused variable.
6265 * printcmd.c (info_symbol_command, printf_floating): Remove unused
6266 variable.
6267 * python/py-breakpoint.c (bppy_set_commands): Remove unused
6268 variable.
6269 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
6270 variables.
6271 * record-btrace.c (record_btrace_target::store_registers): Remove
6272 unused variable.
6273 (cmd_show_record_btrace_cpu): Remove unused variable.
6274 * riscv-tdep.c (riscv_register_reggroup_p)
6275 (riscv_push_dummy_call, riscv_return_value): Remove unused
6276 variable.
6277 * rust-exp.y (literal): Remove unused variable.
6278 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
6279 unused variable.
6280 <STRUCTOP_ANONYMOUS>: Likewise.
6281 * s390-linux-tdep.c (s390_linux_init_abi_31)
6282 (s390_linux_init_abi_64): Remove unused variable.
6283 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
6284 (file_select_thread, net_windows_open, _initialize_ser_windows):
6285 Remove unused variables.
6286 * symtab.c (find_pc_sect_line): Remove unused variable.
6287 * target-memory.c (compute_garbled_blocks): Remove unused
6288 variable.
6289 (target_write_memory_blocks): Remove unused variable.
6290 * target.c (target_stack::unpush): Remove unused variables.
6291 * tracepoint.c (start_tracing, all_tracepoint_actions)
6292 (merge_uploaded_trace_state_variables)
6293 (print_one_static_tracepoint_marker): Remove unused variable.
6294 * unittests/basic_string_view/element_access/char/1.cc (test01):
6295 Remove unused variable.
6296 * windows-nat.c (windows_continue, windows_add_all_dlls)
6297 (do_initial_windows_stuff, windows_nat_target::create_inferior):
6298 Remove unused variables.
6299
6300 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6301
6302 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
6303 attr_profile in HAVE_ELF.
6304 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
6305 HAVE_ELF.
6306
6307 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * frame.c (frame_register_unwind): Change parameter name.
6310 (frame_unwind_register): Likewise.
6311 (frame_unwind_register_value): Likewise.
6312 (frame_unwind_register_signed): Likewise.
6313 (frame_unwind_register_unsigned): Likewise.
6314 * frame.h (frame_register_unwind): Likewise.
6315 (frame_unwind_register): Likewise.
6316 (frame_unwind_register_value): Likewise.
6317 (frame_unwind_register_signed): Likewise.
6318 (frame_unwind_register_unsigned): Likewise.
6319 (frame_unwind_arch): Likewise.
6320
6321 2018-07-20 Maciej W. Rozycki <macro@mips.com>
6322
6323 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
6324 ISA maintenance.
6325
6326 2018-07-20 Maciej W. Rozycki <macro@mips.com>
6327
6328 * mips-linux-nat.c (mips_linux_nat_target::read_description):
6329 Call `get_ptrace_pid' rather than extracting the ptrace PID by
6330 hand.
6331
6332 2018-07-20 Keith Seitz <keiths@redhat.com>
6333
6334 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
6335 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
6336 m_compunit_symtab, m_language>: Add "m_" prefix.
6337 Update all uses.
6338 * buildsym.c: Update all uses.
6339
6340 2018-07-20 Tom Tromey <tom@tromey.com>
6341
6342 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
6343 * buildsym.h (record_line_ftype): Remove typedef.
6344
6345 2018-07-20 Tom Tromey <tom@tromey.com>
6346
6347 * buildsym-legacy.h (augment_type_symtab): Don't declare.
6348 (end_expandable_symtab): Likewise.
6349 (end_symtab_get_static_block): Likewise.
6350 (end_symtab_from_static_block): Likewise.
6351 * buildsym-legacy.c (augment_type_symtab): Remove.
6352 (end_expandable_symtab): Remove.
6353 (end_symtab_get_static_block): Remove.
6354 (end_symtab_from_static_block): Remove.
6355
6356 2018-07-20 Tom Tromey <tom@tromey.com>
6357
6358 * dwarf2read.c: Include buildsym.h.
6359 (struct dwarf2_cu) <builder>: New method.
6360 (fixup_go_packaging): Update.
6361 (process_full_comp_unit, process_full_type_unit): Update. Don't
6362 use scoped_free_pendings.
6363 (using_directives): Add "cu" parameter, remove "language".
6364 (read_import_statement, setup_type_unit_groups, )
6365 (read_func_scope, read_lexical_block_scope)
6366 (dwarf2_record_block_ranges, read_namespace): Update.
6367 (lnp_state_machine::lnp_state_machine): Add cu parameter.
6368 (lnp_state_machine::handle_end_sequence): Update.
6369 (class lnp_state_machine) <m_cu>: New member.
6370 <m_record_line_callback>: Remove.
6371 <m_currently_recording_lines>: New member.
6372 (lnp_state_machine::handle_set_file): Update.
6373 (noop_record_line): Remove.
6374 (dwarf_record_line_p): Add cu parameter.
6375 (dwarf_record_line_1, dwarf_finish_line): Likewise.
6376 (lnp_state_machine::record_line)
6377 (lnp_state_machine::lnp_state_machine)
6378 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6379 (dwarf_decode_lines): Update.
6380 (dwarf2_start_subfile): Add cu parameter.
6381 (dwarf2_start_symtab, new_symbol): Update.
6382 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
6383 Remove dwarf2_per_objfile parameter.
6384 (dwarf_decode_macros): Update.
6385
6386 2018-07-20 Tom Tromey <tom@tromey.com>
6387
6388 * stabsread.c (define_symbol): Update.
6389 * buildsym-legacy.h (get_buildsym_compunit): Declare.
6390 * dwarf2read.c (new_symbol): Update.
6391 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
6392 * cp-namespace.c: Include buildsym.h.
6393 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
6394 * buildsym-legacy.c (get_buildsym_compunit): New function.
6395
6396 2018-07-20 Tom Tromey <tom@tromey.com>
6397
6398 * xcoffread.c: Include buildsym-legacy.h.
6399 * windows-nat.c: Include buildsym-legacy.h.
6400 * stabsread.c: Include buildsym-legacy.h.
6401 * mdebugread.c: Include buildsym-legacy.h.
6402 * buildsym-legacy.h: New file.
6403 * buildsym-legacy.c: New file, from buildsym.c.
6404 * go32-nat.c: Include buildsym-legacy.h.
6405 * dwarf2read.c: Include buildsym-legacy.h.
6406 * dbxread.c: Include buildsym-legacy.h.
6407 * cp-namespace.c: Include buildsym-legacy.h.
6408 * coffread.c: Include buildsym-legacy.h.
6409 * buildsym.h: Move some contents to buildsym-legacy.h.
6410 * buildsym.c: Include buildsym-legacy.h. Move many functions to
6411 buildsym-legacy.c.
6412 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
6413
6414 2018-07-20 Tom Tromey <tom@tromey.com>
6415
6416 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
6417 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
6418 (buildsym_compunit::buildsym_compunit)
6419 (buildsym_compunit::~buildsym_compunit)
6420 (buildsym_compunit::get_macro_table): Define.
6421
6422 2018-07-20 Tom Tromey <tom@tromey.com>
6423
6424 * buildsym.c (reset_symtab_globals): Remove.
6425 (buildsym_compunit::end_symtab_from_static_block): Update.
6426 (buildsym_compunit::augment_type_symtab): Update.
6427 (end_symtab_from_static_block): Call free_buildsym_compunit.
6428 (augment_type_symtab, end_symtab, end_expandable_symtab):
6429 Likewise.
6430
6431 2018-07-20 Tom Tromey <tom@tromey.com>
6432
6433 * arch-utils.c: Do not include buildsym.h.
6434 * mipsread.c: Do not include buildsym.h.
6435 * machoread.c: Do not include buildsym.h.
6436 * elfread.c: Do not include buildsym.h.
6437
6438 2018-07-20 Tom Tromey <tom@tromey.com>
6439
6440 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
6441 initialization.
6442 (buildsym_compunit): Add new constructor.
6443 (struct buildsym_compunit) <get_last_source_file, finish_block,
6444 record_block_range, start_subfile, patch_subfile_names,
6445 push_subfile, pop_subfile, record_line, get_compunit_symtab,
6446 set_last_source_start_addr, get_last_source_start_addr,
6447 get_local_using_directives, set_local_using_directives,
6448 get_global_using_directives, outermost_context_p,
6449 get_current_context_stack, get_context_stack_depth,
6450 get_current_subfile, get_local_symbols, get_file_symbols,
6451 get_global_symbols, record_debugformat, record_producer,
6452 push_context, pop_context, end_symtab_get_static_block,
6453 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
6454 New public methods.
6455 <record_pending_block, finish_block_internal, make_blockvector,
6456 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
6457 private methods.
6458 Update all users.
6459
6460 2018-05-22 Tom Tromey <tom@tromey.com>
6461
6462 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6463 parameter.
6464 (finish_block_internal): Update.
6465
6466 2018-07-20 Tom Tromey <tom@tromey.com>
6467
6468 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6469 parameter.
6470 (finish_block_internal): Update.
6471
6472 2018-07-20 Tom Tromey <tom@tromey.com>
6473
6474 * buildsym.h (EXTERN): Don't define or undef.
6475 * buildsym.c (EXTERN): Don't define.
6476
6477 2018-07-20 Tom Tromey <tom@tromey.com>
6478
6479 * buildsym.c: Remove TODO comment.
6480
6481 2018-07-20 Tom Tromey <tom@tromey.com>
6482
6483 * coffread.c (coff_symtab_read): Update.
6484 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6485 (xcoff_new_init): Update.
6486 * mipsread.c (mipscoff_new_init): Update.
6487 * mdebugread.c (mdebug_build_psymtabs): Update.
6488 * elfread.c (elf_new_init): Update.
6489 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6490 Update.
6491 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6492 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6493 (stabsect_build_psymtabs): Update.
6494 * buildsym.h (buildsym_init): Don't declare.
6495 * buildsym.c: Update comment.
6496 (prepare_for_building): Remove.
6497 (start_symtab, restart_symtab): Update.
6498 (reset_symtab_globals): Update comment.
6499 (buildsym_init): Remove.
6500
6501 2018-07-20 Tom Tromey <tom@tromey.com>
6502
6503 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6504 * stabsread.c (patch_block_stabs, define_symbol, read_type)
6505 (read_enum_type, common_block_start, common_block_end)
6506 (cleanup_undefined_types_1, finish_global_stabs): Update.
6507 * mdebugread.c (psymtab_to_symtab_1): Update.
6508 * dwarf2read.c (fixup_go_packaging, read_func_scope)
6509 (read_lexical_block_scope, new_symbol): Update.
6510 * dbxread.c (process_one_symbol): Update.
6511 * coffread.c (coff_symtab_read, process_coff_symbol)
6512 (coff_read_enum_type): Update.
6513 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6514 declare.
6515 (get_local_symbols, get_file_symbols, get_global_symbols): New
6516 functions.
6517 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6518 m_global_symbols.
6519 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6520 (~scoped_free_pendings): Update.
6521 (finish_block, prepare_for_building, reset_symtab_globals)
6522 (end_symtab_get_static_block, end_symtab_with_blockvector)
6523 (augment_type_symtab, push_context): Update.
6524 (get_local_symbols, get_file_symbols, get_global_symbols): New
6525 functions.
6526 (buildsym_init): Update.
6527
6528 2018-07-20 Tom Tromey <tom@tromey.com>
6529
6530 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6531 (process_full_type_unit): Likewise.
6532 (dwarf2_start_symtab): Set list_in_scope.
6533
6534 2018-07-20 Tom Tromey <tom@tromey.com>
6535
6536 * dwarf2read.c (process_psymtab_comp_unit_reader)
6537 (build_type_psymtabs_reader): Do not set list_in_scope.
6538
6539 2018-07-20 Tom Tromey <tom@tromey.com>
6540
6541 * buildsym.c (free_pendings): Remove.
6542 (add_symbol_to_list, scoped_free_pendings)
6543 (finish_block_internal, buildsym_init): Update.
6544
6545 2018-07-20 Tom Tromey <tom@tromey.com>
6546
6547 * xcoffread.c (read_xcoff_symtab): Update.
6548 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6549 Update.
6550 * dbxread.c (process_one_symbol): Update.
6551 * coffread.c (coff_symtab_read): Update.
6552 * buildsym.h (finish_block): Update.
6553 * buildsym.c (finish_block): Remove "listhead" argument.
6554 (end_symtab_get_static_block): Update.
6555
6556 2018-07-20 Tom Tromey <tom@tromey.com>
6557
6558 * buildsym.h (class scoped_free_pendings): Remove constructor.
6559 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6560 method.
6561 <m_pending_block_obstack, m_pending_blocks>: New members.
6562 (pending_block_obstack, pending_blocks): Remove.
6563 (scoped_free_pendings::scoped_free_pendings): Default.
6564 (~scoped_free_pendings): Update.
6565 (free_pending_blocks): Remove.
6566 (finish_block_internal, record_pending_block, make_blockvector)
6567 (end_symtab_get_static_block, augment_type_symtab, push_context)
6568 (buildsym_init): Update.
6569
6570 2018-07-20 Tom Tromey <tom@tromey.com>
6571
6572 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6573 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6574 members.
6575 (pending_addrmap, pending_addrmap_obstack)
6576 (pending_addrmap_interesting): Remove.
6577 (scoped_free_pendings, record_block_range, make_blockvector)
6578 (prepare_for_building, reset_symtab_globals, buildsym_init):
6579 Update.
6580
6581 2018-07-20 Tom Tromey <tom@tromey.com>
6582
6583 * xcoffread.c (process_linenos): Update.
6584 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6585 * mdebugread.c (psymtab_to_symtab_1): Update.
6586 * dwarf2read.c (setup_type_unit_groups)
6587 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6588 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6589 * dbxread.c (process_one_symbol): Update.
6590 * coffread.c (coff_symtab_read, enter_linenos)
6591 (process_coff_symbol): Update.
6592 * buildsym.h (current_subfile): Don't declare.
6593 (get_current_subfile): Declare.
6594 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6595 member.
6596 (start_subfile, free_buildsym_compunit, push_subfile)
6597 (prepare_for_building, start_symtab): Update.
6598 (get_current_subfile): New function.
6599
6600 2018-07-20 Tom Tromey <tom@tromey.com>
6601
6602 * coffread.c (coff_symtab_read): Update.
6603 * xcoffread.c (read_xcoff_symtab): Update.
6604 * dwarf2read.c (new_symbol): Update.
6605 (read_func_scope, read_lexical_block_scope): Update.
6606 * dbxread.c (process_one_symbol): Update.
6607 * buildsym.h (context_stack, context_stack_depth): Don't declare.
6608 (outermost_context_p): Remove macro.
6609 (outermost_context_p, get_current_context_stack)
6610 (get_context_stack_depth): Declare.
6611 (pop_context): Return struct context_stack.
6612 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6613 member.
6614 (context_stack_size): Remove.
6615 (INITIAL_CONTEXT_STACK_SIZE): Remove.
6616 (prepare_for_building, end_symtab_get_static_block)
6617 (augment_type_symtab, push_context): Update.
6618 (pop_context): Return struct context_stack.
6619 (outermost_context_p, get_current_context_stack)
6620 (get_context_stack_depth): New functions.
6621 (buildsym_init): Update.
6622
6623 2018-07-20 Tom Tromey <tom@tromey.com>
6624
6625 * rust-exp.y: Now a pure parser. Update all rules.
6626 (%union): Move earlier.
6627 (current_parser, work_obstack): Remove globals.
6628 (rust_parser, ~rust_parser): Update.
6629 (class rust_parser) <copy_name, concat3, crate_name, super_name,
6630 lex_character, lex_number, lex_string, lex_identifier,
6631 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6632 convert_name, convert_params_to_expression,
6633 convert_ast_to_expression, ast_basic_type, ast_operation,
6634 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6635 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6636 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6637 ast_array_type, ast_slice_type, ast_reference_type,
6638 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6639 (rust_parse): Update.
6640 (rustyyerror, rustyylex): Add parser parameter.
6641 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6642 (rust_lex_stringish_test, rust_lex_test_sequence)
6643 (rust_lex_test_trailing_dot, rust_lex_test_completion)
6644 (rust_lex_test_push_back, rust_lex_tests): Update.
6645
6646 2018-07-19 Pedro Alves <palves@redhat.com>
6647
6648 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6649 gdb::unique_xmalloc_ptr.
6650 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6651 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6652 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6653 copy-initialization.
6654 * guile/scm-pretty-print.c (ppscm_print_children): Use
6655 gdb::unique_xmalloc_ptr instead of cleanups.
6656 (gdbscm_apply_val_pretty_printer): Remove cleanups.
6657 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6658 gdb::unique_xmalloc_ptr.
6659 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6660 Adjust to use gdb::unique_xmalloc_ptr.
6661 * guile/scm-utils.c (extract_arg): Adjust.
6662 * guile/scm-value.c (gdbscm_value_field): Adjust to use
6663 gdb::unique_xmalloc_ptr instead of a cleanup.
6664
6665 2018-07-19 Tom Tromey <tom@tromey.com>
6666
6667 * utils.c (do_value_free_to_mark)
6668 (make_cleanup_value_free_to_mark): Remove.
6669 * utils.h (make_cleanup_value_free_to_mark): Remove.
6670
6671 2018-07-19 Pedro Alves <palves@redhat.com>
6672
6673 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6674 forwarding reference.
6675
6676 2018-07-18 Pedro Alves <palves@redhat.com>
6677
6678 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6679 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
6680 cleanup.
6681
6682 2018-07-18 Pedro Alves <palves@redhat.com>
6683
6684 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6685 exceptions.
6686 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6687 (gdbscm_wrap): New.
6688 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6689 directly instead of a cleanup.
6690 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6691 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
6692 (vlscm_binop_gdbthrow): New, factored out from ...
6693 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
6694 (vlscm_rich_compare): Use gdbscm_wrap.
6695 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6696 instead of a cleanup.
6697 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6698 cleanup.
6699 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6700 Use xfree directly instead of a cleanup.
6701 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6702 Adjust to use gdbscm_wrap and scoped_value_mark.
6703 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6704 (gdbscm_value_address, gdbscm_value_dereference)
6705 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6706 scoped_value_mark.
6707 (gdbscm_value_dynamic_type): Use scoped_value_mark.
6708 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6709 scoped_value_mark.
6710 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6711 gdbscm_wrap and scoped_value_mark.
6712 (gdbscm_value_to_string): Use xfree directly instead of a
6713 cleanup. Move 'buffer' unique_ptr to TRY scope.
6714 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6715 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
6716 scoped_value_mark.
6717 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6718 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6719 scoped_value_mark.
6720 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6721 gdbscm_wrap.
6722
6723 2018-07-18 Tom de Vries <tdevries@suse.de>
6724
6725 * findvar.c (default_read_var_value): Also resolve dynamic type for
6726 LOC_OPTIMIZED_OUT vars.
6727
6728 2018-07-18 Maciej W. Rozycki <macro@mips.com>
6729
6730 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6731 decoding.
6732
6733 2018-07-17 Tom Tromey <tom@tromey.com>
6734
6735 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6736 (compute_enum_list, pascm_set_param_value_x)
6737 (gdbscm_parameter_value): Update.
6738 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6739 (gdbscm_scm_to_host_string): Update.
6740 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6741 Update.
6742 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6743 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6744 * guile/scm-string.c (gdbscm_scm_to_string): Return
6745 unique_xmalloc_ptr.
6746 (gdbscm_scm_to_host_string): Likewise.
6747
6748 2018-07-17 Tom Tromey <tom@tromey.com>
6749
6750 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6751 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6752 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6753 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6754 unique_xmalloc_ptr.
6755
6756 2018-07-17 Tom Tromey <tom@tromey.com>
6757
6758 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6759 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6760 Update.
6761 * guile/scm-cmd.c (cmdscm_function): Update.
6762 * guile/scm-pretty-print.c
6763 (ppscm_print_exception_unless_memory_error): Update.
6764 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6765 Return unique_xmalloc_ptr.
6766
6767 2018-07-17 Tom Tromey <tom@tromey.com>
6768
6769 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6770 Use string_printf.
6771
6772 2018-07-17 Jim Wilson <jimw@sifive.com>
6773
6774 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6775 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6776 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6777 unecessary braces after EF_RISCV_RVC test. Delete call to
6778 set_gdbarch_decr_pc_after_break.
6779
6780 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6781 RISCV_LAST_FP_REGNUM + 1.
6782 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6783
6784 2018-07-17 Tom Tromey <tom@tromey.com>
6785
6786 * configure.ac: Remove --disable-gdbcli.
6787 * configure: Rebuild.
6788 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6789 (SUBDIR_CLI_CFLAGS): Remove.
6790 (SFILES): Use SUBDIR_CLI_SRCS.
6791 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6792
6793 2018-07-17 Tom Tromey <tom@tromey.com>
6794
6795 PR gdb/18624:
6796 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6797
6798 2018-07-16 Jim Wilson <jimw@sifive.com>
6799
6800 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6801
6802 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6803
6804 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6805 variable.
6806 (libunwind_frame_sniffer): Likewise.
6807 (libunwind_frame_prev_register): Likewise.
6808 (libunwind_sigtramp_frame_sniffer): Likewise.
6809 * ia64-tdep.c (ia64_access_reg): Likewise.
6810 (ia64_access_rse_reg): Likewise.
6811 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6812 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6813
6814 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6815
6816 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6817
6818 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6819
6820 * remote-sim.c (gdbsim_target::close,
6821 gdbsim_target::mourn_inferior): Remove unused variables.
6822
6823 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * ia64-tdep.c (ktab_buf): New global.
6826 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6827 (get_kernel_table): Adjust.
6828
6829 2018-07-16 Tom Tromey <tom@tromey.com>
6830
6831 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6832 * dwarf2read.c (using_directives, new_symbol): Use
6833 outermost_context_p.
6834 * dbxread.c (process_one_symbol): Use outermost_context_p.
6835 * coffread.c (coff_symtab_read): Use outermost_context_p.
6836
6837 2018-07-16 Tom Tromey <tom@tromey.com>
6838
6839 * dwarf2read.c (using_directives, read_func_scope)
6840 (read_lexical_block_scope): Update.
6841 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6842 * buildsym.h (local_using_directives, global_using_directives):
6843 Don't declare.
6844 (get_local_using_directives, set_local_using_directives)
6845 (get_global_using_directives): Declare.
6846 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6847 m_global_using_directives>: New members.
6848 (finish_block_internal, prepare_for_building)
6849 (reset_symtab_globals, end_symtab_get_static_block)
6850 (push_context): Update.
6851 (get_local_using_directives, set_local_using_directives)
6852 (get_global_using_directives): New functions.
6853 (buildsym_init): Update.
6854
6855 2018-07-16 Tom Tromey <tom@tromey.com>
6856
6857 * xcoffread.c (xcoff_initial_scan): Don't call
6858 free_pending_blocks.
6859 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6860 * buildsym.h (class scoped_free_pendings): Add constructor.
6861 (free_pending_blocks): Don't declare.
6862 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6863 (free_pending_blocks): Now static.
6864
6865 2018-07-16 Tom Tromey <tom@tromey.com>
6866
6867 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6868 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6869 member.
6870 (struct subfile_stack): Remove.
6871 (subfile_stack): Remove.
6872 (push_subfile, pop_subfile, buildsym_init): Update.
6873
6874 2018-07-16 Tom Tromey <tom@tromey.com>
6875
6876 * buildsym.c (push_subfile): Use gdb_assert.
6877 (pop_subfile): Use gdb_assert.
6878
6879 2018-07-16 Tom Tromey <tom@tromey.com>
6880
6881 * buildsym.h (merge_symbol_lists): Remove.
6882 * buildsym.c (merge_symbol_lists): Remove.
6883
6884 2018-07-16 Tom Tromey <tom@tromey.com>
6885
6886 * stabsread.c (scan_file_globals): Update comment.
6887 * stabsread.h (scan_file_globals): Move from buildsym.h.
6888 * buildsym.h (scan_file_globals): Move to stabsread.h.
6889
6890 2018-07-16 Tom Tromey <tom@tromey.com>
6891
6892 * xcoffread.c (xcoff_new_init): Update.
6893 * mipsread.c (mipscoff_new_init): Update.
6894 * mdebugread.c (mdebug_build_psymtabs): Update.
6895 * elfread.c (elf_new_init): Update.
6896 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6897 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6898 * buildsym.h (buildsym_new_init): Don't declare.
6899 * buildsym.c (buildsym_new_init): Remove.
6900
6901 2018-07-16 Tom Tromey <tom@tromey.com>
6902
6903 * stabsread.h (within_function): Move from buildsym.h.
6904 * stabsread.c (start_stabs): Clear within_function.
6905 * coffread.c (coff_start_symtab): Clear within_function.
6906 * buildsym.h (within_function): Move to stabsread.h.
6907 * buildsym.c (prepare_for_building): Update.
6908
6909 2018-07-16 Tom Tromey <tom@tromey.com>
6910
6911 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6912 * dwarf2read.c (dwarf2_start_symtab): Don't set
6913 processing_gcc_compilation.
6914 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6915
6916 2018-07-16 Tom Tromey <tom@tromey.com>
6917
6918 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6919 (next_symbol_text_func): Move from buildsym.h.
6920 * stabsread.c (hashname): Move from buildsym.c.
6921 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6922 (next_symbol_text_func, hashname): Move to stabsread.h.
6923 * buildsym.c: Don't include bcache.h
6924 (hashname): Move to stasbread.c.
6925
6926 2018-07-16 Tom Tromey <tom@tromey.com>
6927
6928 * buildsym.h (context_stack_size): Don't declare.
6929 * buildsym.c (context_stack_size): New global.
6930
6931 2018-07-16 Tom Tromey <tom@tromey.com>
6932
6933 * dbxread.c (processing_acc_compilation): New global.
6934 * buildsym.h (processing_acc_compilation): Don't declare.
6935
6936 2018-07-16 Tom Tromey <tom@tromey.com>
6937
6938 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6939 * dbxread.c (read_ofile_symtab): Update.
6940 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6941 * buildsym.h (last_source_start_addr): Remove.
6942 (set_last_source_start_addr, get_last_source_start_addr):
6943 Declare.
6944 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6945 parameter.
6946 (struct buildsym_compunit) <m_last_source_start_addr>: New
6947 member.
6948 (prepare_for_building): Remove start_addr parameter.
6949 (start_symtab, restart_symtab, end_symtab_get_static_block)
6950 (end_symtab_with_blockvector): Update.
6951 (set_last_source_start_addr, get_last_source_start_addr): New
6952 functions.
6953
6954 2018-07-16 Tom Tromey <tom@tromey.com>
6955
6956 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6957 member.
6958 (have_line_numbers): Remove.
6959 (record_line, prepare_for_building, end_symtab_get_static_block)
6960 (augment_type_symtab): Update.
6961
6962 2018-07-16 Tom Tromey <tom@tromey.com>
6963
6964 * buildsym.c (~buildsym_compunit): Free the macro table.
6965 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6966 methods.
6967 <m_pending_macros>: New member.
6968 (pending_macros): Remove.
6969 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6970 (reset_symtab_globals, end_symtab_get_static_block)
6971 (end_symtab_with_blockvector, augment_type_symtab)
6972 (buildsym_init): Update.
6973
6974 2018-07-16 Tom Tromey <tom@tromey.com>
6975
6976 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6977 parameter.
6978 (buildsym_compunit::set_last_source_file): New method.
6979 <m_last_source_file>: New member.
6980 (prepare_for_building): Remove "name" parameter.
6981 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6982 (last_source_file): Remove.
6983 (set_last_source_file, get_last_source_file): Update.
6984
6985 2018-07-16 Tom Tromey <tom@tromey.com>
6986
6987 * buildsym.c (prepare_for_building): Add assert.
6988
6989 2018-07-16 Tom Tromey <tom@tromey.com>
6990
6991 * buildsym.c (~buildsym_compunit): Update.
6992 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6993 (start_subfile, patch_subfile_names)
6994 (end_symtab_with_blockvector): Update.
6995
6996 2018-07-16 Tom Tromey <tom@tromey.com>
6997
6998 * buildsym.c (struct buildsym_compunit): Add constructor,
6999 destructor, initializers.
7000 (start_buildsym_compunit): Remove.
7001 (free_buildsym_compunit): Use "delete".
7002 (start_symtab, restart_symtab): Use "new".
7003
7004 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
7005
7006 * symfile.c (set_objfile_default_section_offset): Remove struct
7007 keyword.
7008
7009 2018-07-14 Stafford Horne <shorne@gmail.com>
7010
7011 * (Responsible Maintainers): Add myself as or1k maintainer.
7012
7013 2018-07-13 Tom Tromey <tom@tromey.com>
7014
7015 * symfile.c (set_objfile_default_section_offset): Use extra braces
7016 around initializer.
7017
7018 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7019
7020 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
7021 non-branching basr.
7022
7023 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7024
7025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7026 unittests/cli-utils-selftests.c
7027 * unittests/cli-utils-selftests.c: New file.
7028
7029 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7030
7031 * NEWS: Mention new commands. Mention change to 'thread apply'.
7032
7033 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7034
7035 * thread.c (thr_try_catch_cmd): New function.
7036 (thread_apply_all_command): Handle qcs flags.
7037 (thread_apply_command): Handle qcs flags.
7038 (taas_command): New function.
7039 (tfaas_command): New function.
7040 (_initialize_thread): Update to setup the new commands 'taas
7041 and 'tfaas'. Change doc string for 'thread apply'.
7042
7043 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7044
7045 * stack.c: (trailing_outermost_frame): New function, mostly
7046 extracted from backtrace_command_1.
7047 (leading_innermost_frame): New function.
7048 (backtrace_command_1): Update to call trailing_outermost_frame.
7049 (frame_apply_command_count): New function.
7050 (frame_apply_level_command): New function.
7051 (frame_apply_all_command): New function.
7052 (frame_apply_command): New function.
7053 (faas_command): New function.
7054 (frame_cmd_list): New variable.
7055 (_initialize_stack): Update to setup the new commands 'frame apply'
7056 and 'faas'.
7057
7058 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7059
7060 * cli-utils.c (number_or_range_parser::get_number): Only handle
7061 numbers or convenience var as numbers.
7062 (parse_flags): New function.
7063 (parse_flags_qcs): New function.
7064 (number_or_range_parser::finished): Ensure parsing end is detected
7065 before end of string.
7066 * cli-utils.h (parse_flags): New function.
7067 (parse_flags_qcs): New function.
7068 (number_or_range_parser): Remove m_finished bool.
7069 (number_or_range_parser::skip_range): Set m_in_range to false.
7070
7071 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
7072
7073 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
7074 on Windows.
7075
7076 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
7077 Jan Kratochvil <jan.kratochvil@redhat.com>
7078 Paul Fertser <fercerpav@gmail.com>
7079 Tsutomu Seki <sekiriki@gmail.com>
7080 Pedro Alves <palves@redhat.com>
7081
7082 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7083 'unittests/parse-connection-spec-selftests.c'.
7084 (COMMON_SFILES): Add 'common/netstuff.c'.
7085 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
7086 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
7087 * common/netstuff.c: New file.
7088 * common/netstuff.h: New file.
7089 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
7090 (wait_for_connect): Update comment. New parameter
7091 'gdb::optional<int> sock' instead of 'struct serial *scb'.
7092 Use 'sock' directly instead of 'scb->fd'.
7093 (try_connect): New function, with code from 'net_open'.
7094 (net_open): Rewrite main loop to deal with multiple
7095 sockets/addresses. Handle IPv6-style hostnames; implement
7096 support for IPv6 connections.
7097 * unittests/parse-connection-spec-selftests.c: New file.
7098
7099 2018-07-11 Pedro Alves <palves@redhat.com>
7100
7101 PR gdb/23377
7102 * remote.c (remote_target::remote_detach_pid): Call
7103 set_current_process.
7104
7105 2018-07-11 Pedro Alves <palves@redhat.com>
7106
7107 * h8300-tdep.c (h8300_gdbarch_init): Remove
7108 set_gdbarch_ecoff_reg_to_regnum calls.
7109
7110 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
7111
7112 PR c++/23373
7113 * c-typeprint.c (c_type_print_base_struct_union): Don't print
7114 offsets/sizes for static members of a class/struct.
7115
7116 2018-07-11 Alan Hayward <alan.hayward@arm.com>
7117
7118 * target-descriptions.c (tdesc_register_bitsize): Rename.
7119 * target-descriptions.h (tdesc_register_bitsize): Likewise.
7120 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
7121 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
7122
7123 2018-07-10 Tom Tromey <tom@tromey.com>
7124
7125 * breakpoint.c (moribund_locations): Now static and a
7126 std::vector.
7127 (breakpoint_init_inferior, moribund_breakpoint_here_p)
7128 (build_bpstat_chain, update_global_location_list)
7129 (breakpoint_retire_moribund): Update.
7130 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
7131 VEC.
7132
7133 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7134
7135 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
7136 (riscv_register_reggroup_p): Use new function, remove unneeded
7137 parenthesis.
7138 (riscv_push_dummy_call): Extend assert to compare against xlen or
7139 flen based on register type.
7140
7141 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7142
7143 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
7144
7145 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 * remote.c (show_hardware_watchpoint_limit): New function.
7148 (show_hardware_watchpoint_length_limit): New function.
7149 (show_hardware_breakpoint_limit): New function.
7150 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
7151 where appropriate, update help text.
7152
7153 2018-07-09 Tom Tromey <tom@tromey.com>
7154
7155 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
7156 (CLIBS): Don't mention NAT_CLIBS.
7157
7158 2018-07-09 Tom Tromey <tom@tromey.com>
7159
7160 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
7161 (LIBGDB_OBS, clean mostlyclean): Update.
7162 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
7163
7164 2018-07-09 Tom Tromey <tom@tromey.com>
7165
7166 * Makefile.in (%.c: %.y): Use ECHO_YACC.
7167 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
7168 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
7169
7170 2018-07-09 Tom Tromey <tom@tromey.com>
7171
7172 * Makefile.in (ALLDEPFILES): Remove exec.c.
7173 (COMMON_OBS): Remove exec.o.
7174 (COMMON_SFILES): Add exec.c.
7175
7176 2018-07-09 Tom Tromey <tom@tromey.com>
7177
7178 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
7179
7180 2018-07-09 Tom Tromey <tom@tromey.com>
7181
7182 * Makefile.in (clean mostlyclean): Remove stamp-version.
7183 (version.c): Depend on stamp-version.
7184 (stamp-version): New rule, from version.c rule.
7185
7186 2018-07-09 Tom Tromey <tom@tromey.com>
7187
7188 * Makefile.in (init.c): Depend on stamp-init.
7189 (stamp-init): New rule, from init.c rule.
7190 (clean mostlyclean): Remove stamp-init.
7191
7192 2018-07-09 Tom Tromey <tom@tromey.com>
7193
7194 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
7195 SUBDIR_GCC_COMPILE_SRCS.
7196
7197 2018-07-09 Tom Tromey <tom@tromey.com>
7198
7199 * Makefile.in (init.c): Remove some unused sed rules.
7200
7201 2018-07-09 Tom Tromey <tom@tromey.com>
7202
7203 * Makefile.in (TSOBS): Remove.
7204 (INIT_FILES): Update.
7205 (LIBGDB_OBS): Update.
7206 (COMMON_SFILES): Add inflow.c.
7207 (SFILES): Remove inflow.c.
7208
7209 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7210
7211 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
7212
7213 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
7214
7215 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
7216 get_saveloc_name, is_signal_frame_name, step_name,
7217 init_remote_name, create_addr_space_name,
7218 destroy_addr_space_name, search_unwind_table_name,
7219 find_dyn_list_name): Constify.
7220
7221 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
7222
7223 * darwin-nat.c (darwin_pthread_kill): New function.
7224 (darwin_resume_thread): Use darwin_pthread_kill.
7225
7226 2018-07-05 Tom de Vries <tdevries@suse.de>
7227
7228 * macroexp.c (macro_buffer) <operator=>: New member function.
7229
7230 2018-07-04 Tom Tromey <tom@tromey.com>
7231
7232 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
7233
7234 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
7235
7236 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
7237 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
7238 * maint.c: Likewise.
7239 * top.c: Likewise.
7240
7241 2018-07-04 Joel Brobecker <brobecker@adacore.com>
7242
7243 * NEWS: Create a new section for the next release branch.
7244 Rename the section of the current branch, now that it has
7245 been cut.
7246
7247 2018-07-04 Joel Brobecker <brobecker@adacore.com>
7248
7249 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
7250 * version.in: Bump version to 8.2.50.DATE-git.
7251
7252 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
7253 Pedro Alves <palves@redhat.com>
7254
7255 * linux-nat.c (linux_init_ptrace): Rename to ...
7256 (linux_init_ptrace_procfs): ... this. Call
7257 linux_proc_init_warnings.
7258 (linux_nat_target::post_attach)
7259 (linux_nat_target::post_startup_inferior): Adjust.
7260 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
7261 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
7262
7263 2018-07-04 Tom de Vries <tdevries@suse.de>
7264
7265 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
7266 check ...
7267 (read_comp_unit_head): ... here.
7268
7269 2018-07-03 Tom Tromey <tom@tromey.com>
7270
7271 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
7272 (stop_tracing, tstatus_command)
7273 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
7274 (print_one_static_tracepoint_marker): Update.
7275 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
7276 std::vector.
7277 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
7278 VEC.
7279 (all_tracepoints, static_tracepoints_here): Return std::vector.
7280
7281 2018-07-03 Tom Tromey <tom@tromey.com>
7282
7283 * common/ptid.c (ptid_equal): Remove.
7284 * common/ptid.h (ptid_equal): Don't declare.
7285 * ada-tasks.c: Update.
7286 * breakpoint.c: Update.
7287 * common/agent.c: Update.
7288 * corelow.c: Update.
7289 * darwin-nat-info.c: Update.
7290 * darwin-nat.c: Update.
7291 * dcache.c: Update.
7292 * dtrace-probe.c: Update.
7293 * dummy-frame.c: Update.
7294 * fbsd-nat.c: Update.
7295 * frame.c: Update.
7296 * gdbthread.h: Update.
7297 * gnu-nat.c: Update.
7298 * go32-nat.c: Update.
7299 * inf-loop.c: Update.
7300 * inf-ptrace.c: Update.
7301 * infcall.c: Update.
7302 * infcmd.c: Update.
7303 * inflow.c: Update.
7304 * infrun.c: Update.
7305 * linux-fork.c: Update.
7306 * linux-nat.c: Update.
7307 * linux-thread-db.c: Update.
7308 * mi/mi-cmd-var.c: Update.
7309 * mi/mi-interp.c: Update.
7310 * mi/mi-main.c: Update.
7311 * nto-procfs.c: Update.
7312 * ppc-linux-tdep.c: Update.
7313 * procfs.c: Update.
7314 * python/py-inferior.c: Update.
7315 * python/py-record-btrace.c: Update.
7316 * python/py-record.c: Update.
7317 * ravenscar-thread.c: Update.
7318 * regcache.c: Update.
7319 * remote-sim.c: Update.
7320 * remote.c: Update.
7321 * sol-thread.c: Update.
7322 * solib.c: Update.
7323 * target.c: Update.
7324 * tui/tui-stack.c: Update.
7325 * varobj.c: Update.
7326 * windows-nat.c: Update.
7327 * windows-tdep.c: Update.
7328
7329 2018-07-03 Tom Tromey <tom@tromey.com>
7330
7331 * common/ptid.c (ptid_match): Remove.
7332 * common/ptid.h (ptid_match): Don't declare.
7333 * fbsd-nat.c: Update.
7334 * infcmd.c: Update.
7335 * infrun.c: Update.
7336 * linux-nat.c: Update.
7337 * record-btrace.c: Update.
7338 * regcache.c: Update.
7339 * remote.c: Update.
7340
7341 2018-07-03 Tom Tromey <tom@tromey.com>
7342
7343 * common/ptid.c (ptid_tid_p): Remove.
7344 * common/ptid.h (ptid_tid_p): Don't declare.
7345 * sol-thread.c: Update.
7346
7347 2018-07-03 Tom Tromey <tom@tromey.com>
7348
7349 * common/ptid.c (ptid_lwp_p): Remove.
7350 * common/ptid.h (ptid_lwp_p): Don't declare.
7351 * fbsd-nat.c: Update.
7352 * linux-nat.c: Update.
7353 * nat/linux-procfs.c: Update.
7354 * nat/x86-linux-dregs.c: Update.
7355 * sol-thread.c: Update.
7356
7357 2018-07-03 Tom Tromey <tom@tromey.com>
7358
7359 * common/ptid.c (ptid_is_pid): Remove.
7360 * common/ptid.h (ptid_is_pid): Don't declare.
7361 * infrun.c: Update.
7362 * linux-nat.c: Update.
7363 * mi/mi-interp.c: Update.
7364 * remote.c: Update.
7365 * thread.c: Update.
7366
7367 2018-07-03 Tom Tromey <tom@tromey.com>
7368
7369 * common/ptid.c (ptid_get_tid): Remove.
7370 * common/ptid.h (ptid_get_tid): Don't declare.
7371 * ada-tasks.c: Update.
7372 * aix-thread.c: Update.
7373 * bsd-uthread.c: Update.
7374 * darwin-nat.c: Update.
7375 * fbsd-nat.c: Update.
7376 * i386-darwin-nat.c: Update.
7377 * infrun.c: Update.
7378 * linux-tdep.c: Update.
7379 * nto-procfs.c: Update.
7380 * ppc-ravenscar-thread.c: Update.
7381 * python/py-infthread.c: Update.
7382 * ravenscar-thread.c: Update.
7383 * sol-thread.c: Update.
7384 * sparc-ravenscar-thread.c: Update.
7385 * windows-nat.c: Update.
7386
7387 2018-07-03 Tom Tromey <tom@tromey.com>
7388
7389 * common/ptid.c (ptid_get_lwp): Remove.
7390 * common/ptid.h (ptid_get_lwp): Don't declare.
7391 * aarch64-linux-nat.c: Update.
7392 * ada-tasks.c: Update.
7393 * aix-thread.c: Update.
7394 * amd64-linux-nat.c: Update.
7395 * arm-linux-nat.c: Update.
7396 * corelow.c: Update.
7397 * fbsd-nat.c: Update.
7398 * fbsd-tdep.c: Update.
7399 * gnu-nat.c: Update.
7400 * i386-cygwin-tdep.c: Update.
7401 * i386-gnu-nat.c: Update.
7402 * i386-linux-nat.c: Update.
7403 * ia64-linux-nat.c: Update.
7404 * inf-ptrace.c: Update.
7405 * infrun.c: Update.
7406 * linux-fork.c: Update.
7407 * linux-nat.c: Update.
7408 * linux-tdep.c: Update.
7409 * linux-thread-db.c: Update.
7410 * mips-linux-nat.c: Update.
7411 * nat/aarch64-linux-hw-point.c: Update.
7412 * nat/aarch64-linux.c: Update.
7413 * nat/linux-btrace.c: Update.
7414 * nat/linux-osdata.c: Update.
7415 * nat/linux-procfs.c: Update.
7416 * nat/x86-linux-dregs.c: Update.
7417 * obsd-nat.c: Update.
7418 * ppc-fbsd-nat.c: Update.
7419 * ppc-linux-nat.c: Update.
7420 * procfs.c: Update.
7421 * python/py-infthread.c: Update.
7422 * ravenscar-thread.c: Update.
7423 * remote.c: Update.
7424 * s390-linux-nat.c: Update.
7425 * sol-thread.c: Update.
7426 * sol2-tdep.c: Update.
7427 * spu-linux-nat.c: Update.
7428 * x86-linux-nat.c: Update.
7429 * xtensa-linux-nat.c: Update.
7430
7431 2018-07-03 Tom Tromey <tom@tromey.com>
7432
7433 * common/ptid.c (ptid_get_pid): Remove.
7434 * common/ptid.h (ptid_get_pid): Don't declare.
7435 * aarch64-linux-nat.c: Update.
7436 * ada-lang.c: Update.
7437 * aix-thread.c: Update.
7438 * alpha-bsd-nat.c: Update.
7439 * amd64-fbsd-nat.c: Update.
7440 * amd64-linux-nat.c: Update.
7441 * arm-linux-nat.c: Update.
7442 * arm-nbsd-nat.c: Update.
7443 * auxv.c: Update.
7444 * break-catch-syscall.c: Update.
7445 * breakpoint.c: Update.
7446 * bsd-uthread.c: Update.
7447 * corelow.c: Update.
7448 * ctf.c: Update.
7449 * darwin-nat.c: Update.
7450 * fbsd-nat.c: Update.
7451 * fbsd-tdep.c: Update.
7452 * gcore.c: Update.
7453 * gnu-nat.c: Update.
7454 * hppa-nbsd-nat.c: Update.
7455 * hppa-obsd-nat.c: Update.
7456 * i386-fbsd-nat.c: Update.
7457 * ia64-linux-nat.c: Update.
7458 * inf-ptrace.c: Update.
7459 * infcmd.c: Update.
7460 * inferior.c: Update.
7461 * inferior.h: Update.
7462 * inflow.c: Update.
7463 * infrun.c: Update.
7464 * linux-fork.c: Update.
7465 * linux-nat.c: Update.
7466 * linux-tdep.c: Update.
7467 * linux-thread-db.c: Update.
7468 * m68k-bsd-nat.c: Update.
7469 * mi/mi-interp.c: Update.
7470 * mi/mi-main.c: Update.
7471 * mips-linux-nat.c: Update.
7472 * mips-nbsd-nat.c: Update.
7473 * mips64-obsd-nat.c: Update.
7474 * nat/aarch64-linux-hw-point.c: Update.
7475 * nat/aarch64-linux.c: Update.
7476 * nat/linux-btrace.c: Update.
7477 * nat/linux-osdata.c: Update.
7478 * nat/linux-procfs.c: Update.
7479 * nat/x86-linux-dregs.c: Update.
7480 * nto-procfs.c: Update.
7481 * obsd-nat.c: Update.
7482 * ppc-linux-nat.c: Update.
7483 * ppc-nbsd-nat.c: Update.
7484 * ppc-obsd-nat.c: Update.
7485 * proc-service.c: Update.
7486 * procfs.c: Update.
7487 * python/py-inferior.c: Update.
7488 * python/py-infthread.c: Update.
7489 * ravenscar-thread.c: Update.
7490 * record.c: Update.
7491 * remote-sim.c: Update.
7492 * remote.c: Update.
7493 * rs6000-nat.c: Update.
7494 * s390-linux-nat.c: Update.
7495 * sh-nbsd-nat.c: Update.
7496 * sol-thread.c: Update.
7497 * sparc-nat.c: Update.
7498 * sparc64-tdep.c: Update.
7499 * spu-linux-nat.c: Update.
7500 * spu-tdep.c: Update.
7501 * target-debug.h: Update.
7502 * target.c: Update.
7503 * thread.c: Update.
7504 * tid-parse.c: Update.
7505 * tracefile-tfile.c: Update.
7506 * vax-bsd-nat.c: Update.
7507 * windows-nat.c: Update.
7508 * x86-linux-nat.c: Update.
7509 * x86-nat.c: Update.
7510
7511 2018-07-03 Tom Tromey <tom@tromey.com>
7512
7513 * common/ptid.c (pid_to_ptid): Remove.
7514 * common/ptid.h (pid_to_ptid): Don't declare.
7515 * aix-thread.c: Update.
7516 * arm-linux-nat.c: Update.
7517 * common/ptid.c: Update.
7518 * common/ptid.h: Update.
7519 * corelow.c: Update.
7520 * ctf.c: Update.
7521 * darwin-nat.c: Update.
7522 * fbsd-nat.c: Update.
7523 * fork-child.c: Update.
7524 * gnu-nat.c: Update.
7525 * go32-nat.c: Update.
7526 * inf-ptrace.c: Update.
7527 * infcmd.c: Update.
7528 * inferior.c: Update.
7529 * infrun.c: Update.
7530 * linux-fork.c: Update.
7531 * linux-nat.c: Update.
7532 * nat/aarch64-linux-hw-point.c: Update.
7533 * nat/fork-inferior.c: Update.
7534 * nat/x86-linux-dregs.c: Update.
7535 * nto-procfs.c: Update.
7536 * obsd-nat.c: Update.
7537 * procfs.c: Update.
7538 * progspace.c: Update.
7539 * remote.c: Update.
7540 * rs6000-nat.c: Update.
7541 * s390-linux-nat.c: Update.
7542 * sol-thread.c: Update.
7543 * spu-linux-nat.c: Update.
7544 * target.c: Update.
7545 * top.c: Update.
7546 * tracefile-tfile.c: Update.
7547 * windows-nat.c: Update.
7548
7549 2018-07-03 Tom Tromey <tom@tromey.com>
7550
7551 * common/ptid.h (ptid_build): Don't declare.
7552 * common/ptid.c (ptid_build): Remove.
7553 * aix-thread.c: Update.
7554 * bsd-kvm.c: Update.
7555 * bsd-uthread.c: Update.
7556 * common/agent.c: Update.
7557 * common/ptid.c: Update.
7558 * common/ptid.h: Update.
7559 * corelow.c: Update.
7560 * darwin-nat.c: Update.
7561 * fbsd-nat.c: Update.
7562 * gnu-nat.c: Update.
7563 * linux-fork.c: Update.
7564 * linux-nat.c: Update.
7565 * linux-thread-db.c: Update.
7566 * nat/linux-osdata.c: Update.
7567 * nat/linux-procfs.c: Update.
7568 * nto-procfs.c: Update.
7569 * obsd-nat.c: Update.
7570 * proc-service.c: Update.
7571 * procfs.c: Update.
7572 * ravenscar-thread.c: Update.
7573 * remote-sim.c: Update.
7574 * remote.c: Update.
7575 * sol-thread.c: Update.
7576 * target.c: Update.
7577 * windows-nat.c: Update.
7578
7579 2018-07-03 Tom Tromey <tom@tromey.com>
7580
7581 * infrun.c (follow_exec): Use exit_inferior_silent.
7582 * inferior.c (exit_inferior_num_silent): Remove.
7583 * inferior.h (exit_inferior_num_silent): Don't declare.
7584
7585 2018-07-03 Tom Tromey <tom@tromey.com>
7586
7587 PR cli/23340:
7588 * darwin-nat.c (darwin_attach_pid): Reset inferior and
7589 inferior_ptid on error.
7590
7591 2018-07-02 Maciej W. Rozycki <macro@mips.com>
7592 Simon Marchi <simon.marchi@polymtl.ca>
7593
7594 PR tdep/8282
7595 * disasm.h (gdb_disassembler): Add
7596 `m_disassembler_options_holder'. member
7597 * disasm.c (get_all_disassembler_options): New function.
7598 (gdb_disassembler::gdb_disassembler): Use it.
7599 (gdb_buffered_insn_length_init_dis): Likewise.
7600 (gdb_buffered_insn_length): Adjust accordingly.
7601 (set_disassembler_options): Handle options with arguments.
7602 (show_disassembler_options_sfunc): Likewise. Add a leading new
7603 line if showing options with descriptions.
7604 (disassembler_options_completer): Adapt to using the
7605 `disasm_options_and_args_t' structure.
7606 * mips-tdep.c (mips_disassembler_options): New variable.
7607 (mips_disassembler_options_o32): Likewise.
7608 (mips_disassembler_options_n32): Likewise.
7609 (mips_disassembler_options_n64): Likewise.
7610 (gdb_print_insn_mips): Don't set `disassembler_options'.
7611 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7612 functions.
7613 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7614 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
7615 `gdbarch_disassembler_options_implicit' and
7616 `gdbarch_valid_disassembler_options'.
7617 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7618 `disasm_options_and_args_t' structure.
7619 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7620 method.
7621 (valid_disassembler_options): Switch from `disasm_options_t' to
7622 the `disasm_options_and_args_t' structure.
7623 * NEWS: Document `set disassembler-options' support for the MIPS
7624 target.
7625 * gdbarch.h: Regenerate.
7626 * gdbarch.c: Regenerate.
7627
7628 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7629
7630 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7631
7632 2018-06-29 Joel Brobecker <brobecker@adacore.com>
7633
7634 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7635 parameter in call to amd64_target_description.
7636 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7637 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7638 (amd64fbsd_init_abi): Likewise.
7639 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7640 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7641 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7642 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7643
7644 2018-06-29 Pedro Alves <palves@redhat.com>
7645
7646 * gdb/amd64-tdep.h (amd64_create_target_description): Add
7647 "segments" parameter.
7648 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7649 (_initialize_amd64_tdep): Update call to
7650 amd64_create_target_description.
7651 (amd64_target_description): Add "segments" parameter. Adjust
7652 the implementation to use it.
7653 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7654 call to amd64_create_target_description.
7655 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7656 * gdb/arch/amd64.h (amd64_create_target_description): Add
7657 "segments" register.
7658 * gdb/arch/amd64.c (amd64_create_target_description): Add
7659 "segments" parameter. Call create_feature_i386_64bit_segments
7660 only if SEGMENTS is true.
7661 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7662 call to amd64_create_target_description.
7663
7664 2018-06-29 Pedro Alves <palves@redhat.com>
7665
7666 * thread.c (thread_target_id_str): New, factored out from ...
7667 (print_thread_info_1): ... here. Use it to compute the max
7668 "Target Id" column width.
7669
7670 2018-06-29 Pedro Alves <palves@redhat.com>
7671
7672 * remote.c (remote_target::extra_thread_info): Delete
7673 'display_buf' and 'n' locals. from the cache, regardless of
7674 packet mechanims is in use. Use cache for qThreadExtra and qP
7675 methods too.
7676
7677 2018-06-29 Pedro Alves <palves@redhat.com>
7678
7679 * blockframe.c (find_pc_sect_containing_function): New function.
7680 * breakpoint.c (print_breakpoint_location): Don't call
7681 find_pc_sect_function.
7682 * linespec.c (create_sals_line_offset): Record the location's
7683 symbol in the sal.
7684 * linespec.c (convert_address_location_to_sals): Fill in sal's
7685 symbol with find_pc_sect_containing_function.
7686 * symtab.c (find_function_start_sal): Rename to ...
7687 (find_function_start_sal_1): ... this.
7688 (find_function_start_sal): Reimplement as wrapper around
7689 find_function_start_sal_1, and use
7690 find_pc_sect_containing_function to fill in the sal's symbol.
7691 (find_function_start_sal(symbol*, bool)): Adjust.
7692 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7693 comments.
7694 (find_pc_sect_containing_function): Declare.
7695
7696 2018-06-29 Pedro Alves <palves@redhat.com>
7697
7698 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7699 true if the the location has no symbol.
7700
7701 2018-06-28 Tom Tromey <tom@tromey.com>
7702
7703 * NEWS: Mention --enable-codesign.
7704 * silent-rules.mk (ECHO_SIGN): New variable.
7705 * configure.ac: Add --enable-codesign.
7706 * configure: Rebuild.
7707 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7708 (gdb$(EXEEXT)): Optionally invoke codesign.
7709
7710 2018-06-28 Pedro Alves <palves@redhat.com>
7711
7712 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7713 comments.
7714 (switch_to_thread_no_regs): Adjust comment.
7715 * infcmd.c (stop_pc): Delete.
7716 (post_create_inferior, info_program_command): Replace references
7717 to stop_pc with references to thread_info->suspend.stop_pc.
7718 * inferior.h (stop_pc): Delete declaration.
7719 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7720 (handle_inferior_event_1, handle_signal_stop)
7721 (process_event_stop_test, keep_going_stepped_thread)
7722 (handle_step_into_function, handle_step_into_function_backward)
7723 (print_stop_location): Replace references to stop_pc with
7724 references to thread_info->suspend.stop_pc.
7725 (struct infcall_suspend_state) <stop_pc>: Delete field.
7726 (save_infcall_suspend_state, restore_infcall_suspend_state):
7727 Remove references to inf_stat->stop_pc.
7728 * linux-fork.c (fork_load_infrun_state): Likewise.
7729 * record-btrace.c (record_btrace_set_replay): Likewise.
7730 * record-full.c (record_full_goto_entry): Likewise.
7731 * remote.c (print_one_stopped_thread): Likewise.
7732 * target.c (target_resume): Extend comment.
7733 * thread.c (set_executing_thread): New.
7734 (set_executing): Use it.
7735 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7736 Remove references to stop_pc.
7737
7738 2018-06-28 Pedro Alves <palves@redhat.com>
7739
7740 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7741 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7742
7743 2018-06-28 Tom Tromey <tom@tromey.com>
7744
7745 * coffread.c (coff_symfile_finish): Update.
7746 * xcoffread.c (xcoff_symfile_finish): Update.
7747 * elfread.c (elf_symfile_finish): Update.
7748 * symfile.h (dwarf2_free_objfile): Don't declare.
7749 * dwarf2read.c (_initialize_dwarf2_read): Use
7750 register_objfile_data_with_cleanup.
7751 (dwarf2_free_objfile): Now static. Change signature.
7752
7753 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7754
7755 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7756 option "-o" to add-symbol-file-load to add an offset to each
7757 section's load address.
7758 * symfile.c (set_objfile_default_section_offset): New function.
7759
7760 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7761
7762 * symfile.c (add_symbol_file_command): Make sure that sections
7763 with the same name are sorted in the same order.
7764
7765 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7766
7767 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7768 require the second argument. If omitted, load sections at the
7769 addresses specified in the file.
7770
7771 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7772
7773 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7774 (_initialize_symfile): Add option "-o" to symbol-file to add an
7775 offset to each section of the symbol file.
7776
7777 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7778
7779 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7780
7781 2018-06-27 Tom Tromey <tom@tromey.com>
7782
7783 * stack.c (_initialize_stack): Update "func" help text.
7784
7785 2018-06-27 Tom Tromey <tom@tromey.com>
7786
7787 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7788 std::vector.
7789 (unwind_infopy_str, pyuw_create_unwind_info)
7790 (unwind_infopy_add_saved_register, pyuw_sniffer)
7791 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7792 Update.
7793 (struct saved_reg): Add constructor.
7794 <value>: Now a gdbpy_ref<>.
7795
7796 2018-06-27 Tom Tromey <tom@tromey.com>
7797
7798 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7799
7800 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7801
7802 * gdb-gdb.py.in: Format using autopep8.
7803
7804 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7805
7806 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7807 (type_lookup_function): Recognize CORE_ADDR values.
7808
7809 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7810
7811 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7812 print tag_name.
7813
7814 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7815
7816 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7817 <__lt__>: Add.
7818
7819 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7820
7821 * gdb-gdb.py: Move to...
7822 * gdb-gdb.py.in: ... here.
7823 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7824 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7825 dependencies.
7826 (distclean): Remove gdb-gdb.py when cleaning.
7827 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7828 * configure: Re-generate.
7829
7830 2018-06-27 Pedro Alves <palves@redhat.com>
7831
7832 * proc-service.c (get_ps_regcache): New.
7833 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7834 (ps_lsetfpregs): Use it.
7835
7836 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
7837
7838 PR gdb/21695
7839 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7840 declaration.
7841 (dwarf_decode_lines_1): Adjust.
7842
7843 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7844
7845 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7846 override.
7847 <info_proc>: Likewise.
7848
7849 2018-06-26 Joel Brobecker <brobecker@adacore.com>
7850
7851 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7852 to windows_fetch_one_register, and only handle the case of
7853 fetching one register. Move the code that reloads the context
7854 and iterates over all registers if R is negative to...
7855 (windows_nat_target::fetch_registers): ... here.
7856 (do_windows_store_inferior_registers): Rename to
7857 windows_store_one_register, and only handle the case of storing
7858 one register. Move the code that handles the case where r is
7859 negative to...
7860 (windows_nat_target::store_registers) ... here.
7861
7862 2018-06-26 Tom Tromey <tom@tromey.com>
7863
7864 PR rust/22574:
7865 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7866 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7867 Update.
7868 (rust_internal_print_type): Add podata parameter.
7869 (rust_print_type): Update.
7870
7871 2018-06-26 Tom Tromey <tom@tromey.com>
7872
7873 * typeprint.h (struct print_offset_data) <update, finish,
7874 maybe_print_hole>: New methods.
7875 <indentation>: New constant.
7876 * typeprint.c (print_offset_data::indentation): Define.
7877 (print_offset_data::maybe_print_hole, print_offset_data::update)
7878 (print_offset_data::finish): Move from c-typeprint.c and rename.
7879 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7880 (print_spaces_filtered_with_print_options): Update.
7881 (c_print_type_union_field_offset, maybe_print_hole)
7882 (c_print_type_struct_field_offset): Move to typeprint.c and
7883 rename.
7884 (c_type_print_base_struct_union): Update.
7885
7886 2018-06-25 Pedro Alves <palves@redhat.com>
7887
7888 * gdbthread.h (thread_info_ref, delete_thread)
7889 (delete_thread_silent, first_thread_of_inferior)
7890 (any_thread_of_inferior, switch_to_thread)
7891 (enable_thread_stack_temporaries)
7892 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7893 (get_last_thread_stack_temporary)
7894 (value_in_thread_stack_temporaries, can_access_registers_thread):
7895 Spell out "struct thread_info" instead of just "thread_info".
7896 * inferior.h (notice_new_inferior): Likewise.
7897
7898 2018-06-25 Pedro Alves <palves@redhat.com>
7899
7900 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7901 pass thread_info pointer to delete_thread.
7902 (windows_nat_target::detach): Pass inferior pointer to
7903 detach_inferior.
7904 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7905 delete_thread.
7906 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7907 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7908 and pass a thread_info pointer to delete_thread.
7909 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7910 pass thread_info pointer to delete_thread.
7911 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7912 delete_thread_silent call.
7913 * procfs.c (procfs_target::detach): Pass inferior pointer to
7914 detach_inferior.
7915 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7916 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7917 delete_thread_silent call.
7918 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7919 pass thread_info pointer to delete_thread.
7920 (windows_nat_target::detach): Pass inferior pointer to
7921 delete_inferior.
7922
7923 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7924
7925 * regcache.c (readable_regcache::read_part): Fix asserts.
7926 (reg_buffer::raw_collect_part): New function.
7927 (regcache::write_part): Fix asserts.
7928 (reg_buffer::raw_supply_part): New function.
7929 (regcache::transfer_regset_register): New helper function.
7930 (regcache::transfer_regset): Call new functions.
7931 (regcache_supply_regset): Use gdb_byte*.
7932 (regcache::supply_regset): Likewise.
7933 (regcache_collect_regset): Likewise.
7934 (regcache::collect_regset): Likewise.
7935 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7936 (reg_buffer::raw_supply_part): Likewise.
7937 (regcache::transfer_regset_register): Likewise.
7938 (regcache::transfer_regset): Use gdb_byte*.
7939
7940 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7941
7942 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7943
7944 2018-06-21 Pedro Alves <palves@redhat.com>
7945
7946 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7947 instead of a ptid_t. All callers adjusted.
7948 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7949 adjusted.
7950 (print_ada_task_info, display_current_task_id, task_command_1):
7951 Adjust.
7952 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7953 inferior_thread.
7954 (breakpoint_kind): Adjust.
7955 (remove_breakpoints_pid): Rename to ...
7956 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7957 pointer. All callers adjusted.
7958 (bpstat_clear_actions): Use inferior_thread.
7959 (get_bpstat_thread): New.
7960 (bpstat_do_actions): Use it.
7961 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7962 to take a thread_info pointer. All callers adjusted.
7963 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7964 (breakpoint_re_set_thread): Use inferior_thread.
7965 * breakpoint.h (struct inferior): Forward declare.
7966 (bpstat_stop_status): Update.
7967 (remove_breakpoints_pid): Delete.
7968 (remove_breakpoints_inf): New.
7969 * bsd-uthread.c (bsd_uthread_target::wait)
7970 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7971 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7972 (maint_btrace_packet_history_cmd)
7973 (maint_btrace_clear_packet_history_cmd): Adjust.
7974 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7975 inferior_thread.
7976 * cli/cli-interp.c: Include "inferior.h".
7977 * common/refcounted-object.h (struct
7978 refcounted_object_ref_policy): New.
7979 * compile/compile-object-load.c: Include gdbthread.h.
7980 (store_regs): Use inferior_thread.
7981 * corelow.c (core_target::close): Use current_inferior.
7982 (core_target_open): Adjust to use first_thread_of_inferior and use
7983 the current inferior.
7984 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7985 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7986 <thread>: ... this new field. All references adjusted.
7987 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7988 Take a thread_info pointer instead of a ptid_t.
7989 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7990 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7991 thread_info pointer instead of a ptid_t.
7992 * elfread.c: Include "inferior.h".
7993 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7994 Use inferior_thread.
7995 * eval.c (evaluate_subexp): Likewise.
7996 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7997 inferior_thread.
7998 * gdb_proc_service.h (struct thread_info): Forward declare.
7999 (struct ps_prochandle) <ptid>: Delete, replaced by ...
8000 <thread>: ... this new field. All references adjusted.
8001 * gdbarch.h, gdbarch.c: Regenerate.
8002 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
8003 'thread' parameter. All implementations and callers adjusted.
8004 * gdbthread.h (thread_info) <set_running>: New method.
8005 (delete_thread, delete_thread_silent): Take a thread_info pointer
8006 instead of a ptid.
8007 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
8008 (first_thread_of_process): Delete, replaced by ...
8009 (first_thread_of_inferior): ... this new function. All callers
8010 adjusted.
8011 (any_live_thread_of_process): Delete, replaced by ...
8012 (any_live_thread_of_inferior): ... this new function. All callers
8013 adjusted.
8014 (switch_to_thread, switch_to_no_thread): Declare.
8015 (is_executing): Delete.
8016 (enable_thread_stack_temporaries): Update comment.
8017 <enable_thread_stack_temporaries>: Take a thread_info pointer
8018 instead of a ptid_t. Incref the thread.
8019 <~enable_thread_stack_temporaries>: Decref the thread.
8020 <m_ptid>: Delete
8021 <m_thr>: New.
8022 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
8023 (get_last_thread_stack_temporary)
8024 (value_in_thread_stack_temporaries, can_access_registers_thread):
8025 Take a thread_info pointer instead of a ptid_t. All callers
8026 adjusted.
8027 * infcall.c (get_call_return_value): Use inferior_thread.
8028 (run_inferior_call): Work with thread pointers instead of ptid_t.
8029 (call_function_by_hand_dummy): Work with thread pointers instead
8030 of ptid_t. Use thread_info_ref.
8031 * infcmd.c (proceed_thread_callback): Access thread's state
8032 directly.
8033 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
8034 access thread's state directly.
8035 (continue_command): Use inferior_thread.
8036 (info_program_command): Use find_thread_ptid and access thread
8037 state directly.
8038 (proceed_after_attach_callback): Use thread state directly.
8039 (notice_new_inferior): Take a thread_info pointer instead of a
8040 ptid_t. All callers adjusted.
8041 (exit_inferior): Take an inferior pointer instead of a pid. All
8042 callers adjusted.
8043 (exit_inferior_silent): New.
8044 (detach_inferior): Delete.
8045 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
8046 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
8047 (detach_inferior_command, kill_inferior_command): Use
8048 find_inferior_id instead of valid_gdb_inferior_id and
8049 gdb_inferior_id_to_pid.
8050 (inferior_command): Use inferior and thread pointers.
8051 * inferior.h (struct thread_info): Forward declare.
8052 (notice_new_inferior): Take a thread_info pointer instead of a
8053 ptid_t. All callers adjusted.
8054 (detach_inferior): Delete declaration.
8055 (exit_inferior, exit_inferior_silent): Take an inferior pointer
8056 instead of a pid. All callers adjusted.
8057 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
8058 (valid_gdb_inferior_id): Delete.
8059 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
8060 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
8061 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
8062 ...
8063 <inf>: ... this new field.
8064 <step_ptid>: Delete, replaced by ...
8065 <step_thread>: ... this new field.
8066 (get_displaced_stepping_state): Take an inferior pointer instead
8067 of a pid. All callers adjusted.
8068 (displaced_step_in_progress_any_inferior): Adjust.
8069 (displaced_step_in_progress_thread): Take a thread pointer instead
8070 of a ptid_t. All callers adjusted.
8071 (displaced_step_in_progress, add_displaced_stepping_state): Take
8072 an inferior pointer instead of a pid. All callers adjusted.
8073 (get_displaced_step_closure_by_addr): Adjust.
8074 (remove_displaced_stepping_state): Take an inferior pointer
8075 instead of a pid. All callers adjusted.
8076 (displaced_step_prepare_throw, displaced_step_prepare)
8077 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
8078 All callers adjusted.
8079 (start_step_over): Adjust.
8080 (infrun_thread_ptid_changed): Remove bit updating ptids in the
8081 displaced step queue.
8082 (do_target_resume): Adjust.
8083 (fetch_inferior_event): Use inferior_thread.
8084 (context_switch, get_inferior_stop_soon): Take an
8085 execution_control_state pointer instead of a ptid_t. All callers
8086 adjusted.
8087 (switch_to_thread_cleanup): Delete.
8088 (stop_all_threads): Use scoped_restore_current_thread.
8089 * inline-frame.c: Include "gdbthread.h".
8090 (inline_state) <inline_state>: Take a thread pointer instead of a
8091 ptid_t. All callers adjusted.
8092 <ptid>: Delete, replaced by ...
8093 <thread>: ... this new field.
8094 (find_inline_frame_state): Take a thread pointer instead of a
8095 ptid_t. All callers adjusted.
8096 (skip_inline_frames, step_into_inline_frame)
8097 (inline_skipped_frames, inline_skipped_symbol): Take a thread
8098 pointer instead of a ptid_t. All callers adjusted.
8099 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
8100 (inline_skipped_frames, inline_skipped_symbol): Likewise.
8101 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
8102 pointers directly.
8103 * linux-nat.c (get_detach_signal): Likewise.
8104 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
8105 (thread_db_notice_clone): Adjust.
8106 (thread_db_find_new_threads_silently)
8107 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
8108 a thread pointer instead of a ptid_t. All callers adjusted.
8109 * mi/mi-cmd-var.c: Include "inferior.h".
8110 (mi_cmd_var_update_iter): Update to use thread pointers.
8111 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
8112 inferior directly.
8113 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
8114 out to ...
8115 (mi_output_running): ... this new function.
8116 (mi_on_resume_1): Adjust to use it.
8117 (mi_user_selected_context_changed): Adjust to use inferior_thread.
8118 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
8119 directly.
8120 (interrupt_thread_callback): : Adjust to use thread and inferior
8121 pointers.
8122 * proc-service.c: Include "gdbthread.h".
8123 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
8124 * progspace-and-thread.c: Include "inferior.h".
8125 * progspace.c: Include "inferior.h".
8126 * python/py-exitedevent.c (create_exited_event_object): Adjust to
8127 hold a reference to an inferior_object.
8128 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
8129 inferior_thread.
8130 * python/py-inferior.c (struct inferior_object): Give the type a
8131 tag name instead of a typedef.
8132 (python_on_normal_stop): No need to check if the current thread is
8133 listed.
8134 (inferior_to_inferior_object): Change return type to
8135 inferior_object. All callers adjusted.
8136 (find_thread_object): Delete, bits factored out to ...
8137 (thread_to_thread_object): ... this new function.
8138 * python/py-infthread.c (create_thread_object): Use
8139 inferior_to_inferior_object.
8140 (thpy_is_stopped): Use thread pointer directly.
8141 (gdbpy_selected_thread): Use inferior_thread.
8142 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
8143 field, replaced with ...
8144 <thread>: ... this new field. All users adjusted.
8145 (btpy_insn_or_gap_new): Drop const.
8146 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
8147 callers adjusted.
8148 * python/py-record.c: Include "gdbthread.h".
8149 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
8150 a ptid_t. All callers adjusted.
8151 (gdbpy_current_recording): Use inferior_thread.
8152 * python/py-record.h (recpy_record_object) <ptid>: Delete
8153 field, replaced with ...
8154 <thread>: ... this new field. All users adjusted.
8155 (recpy_element_object) <ptid>: Delete
8156 field, replaced with ...
8157 <thread>: ... this new field. All users adjusted.
8158 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
8159 a ptid_t. All callers adjusted.
8160 * python/py-threadevent.c: Include "gdbthread.h".
8161 (get_event_thread): Use thread_to_thread_object.
8162 * python/python-internal.h (struct inferior_object): Forward
8163 declare.
8164 (find_thread_object, find_inferior_object): Delete declarations.
8165 (thread_to_thread_object, inferior_to_inferior_object): New
8166 declarations.
8167 * record-btrace.c: Include "inferior.h".
8168 (require_btrace_thread): Use inferior_thread.
8169 (record_btrace_frame_sniffer)
8170 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
8171 (get_thread_current_frame): Use scoped_restore_current_thread and
8172 switch_to_thread.
8173 (get_thread_current_frame): Use thread pointer directly.
8174 (record_btrace_replay_at_breakpoint): Use thread's inferior
8175 pointer directly.
8176 * record-full.c: Include "inferior.h".
8177 * regcache.c: Include "gdbthread.h".
8178 (get_thread_arch_regcache): Use the inferior's address space
8179 directly.
8180 (get_thread_regcache, registers_changed_thread): New.
8181 * regcache.h (get_thread_regcache(thread_info *thread)): New
8182 overload.
8183 (registers_changed_thread): New.
8184 (remote_target) <remote_detach_1>: Swap order of parameters.
8185 (remote_add_thread): <remote_add_thread>: Return the new thread.
8186 (get_remote_thread_info(ptid_t)): New overload.
8187 (remote_target::remote_notice_new_inferior): Use thread pointers
8188 directly.
8189 (remote_target::process_initial_stop_replies): Use
8190 thread_info::set_running.
8191 (remote_target::remote_detach_1, remote_target::detach)
8192 (extended_remote_target::detach): Adjust.
8193 * stack.c (frame_show_address): Use inferior_thread.
8194 * target-debug.h (target_debug_print_thread_info_pp): New.
8195 * target-delegates.c: Regenerate.
8196 * target.c (default_thread_address_space): Delete.
8197 (memory_xfer_partial_1): Use current_inferior.
8198 (target_detach): Use current_inferior.
8199 (target_thread_address_space): Delete.
8200 (generic_mourn_inferior): Use current_inferior.
8201 * target.h (struct target_ops) <thread_address_space>: Delete.
8202 (target_thread_address_space): Delete.
8203 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
8204 pointers directly.
8205 (delete_thread_1, delete_thread, delete_thread_silent): Take a
8206 thread pointer instead of a ptid_t. Adjust all callers.
8207 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
8208 (first_thread_of_process): Delete, replaced by ...
8209 (first_thread_of_inferior): ... this new function. All callers
8210 adjusted.
8211 (any_thread_of_process): Rename to ...
8212 (any_thread_of_inferior): ... this, and take an inferior pointer.
8213 (any_live_thread_of_process): Rename to ...
8214 (any_live_thread_of_inferior): ... this, and take an inferior
8215 pointer.
8216 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
8217 (value_in_thread_stack_temporaries)
8218 (get_last_thread_stack_temporary): Take a thread pointer instead
8219 of a ptid_t. Adjust all callers.
8220 (thread_info::set_running): New.
8221 (validate_registers_access): Use inferior_thread.
8222 (can_access_registers_ptid): Rename to ...
8223 (can_access_registers_thread): ... this, and take a thread
8224 pointer.
8225 (print_thread_info_1): Adjust to compare thread pointers instead
8226 of ptids.
8227 (switch_to_no_thread, switch_to_thread): Make extern.
8228 (scoped_restore_current_thread::~scoped_restore_current_thread):
8229 Use m_thread pointer directly.
8230 (scoped_restore_current_thread::scoped_restore_current_thread):
8231 Use inferior_thread.
8232 (thread_command): Use thread pointer directly.
8233 (thread_num_make_value_helper): Use inferior_thread.
8234 * top.c (execute_command): Use inferior_thread.
8235 * tui/tui-interp.c: Include "inferior.h".
8236 * varobj.c (varobj_create): Use inferior_thread.
8237 (value_of_root_1): Use find_thread_global_id instead of
8238 global_thread_id_to_ptid.
8239
8240 2018-06-21 Alan Hayward <alan.hayward@arm.com>
8241
8242 * regcache.c (readable_regcache::read_part): Avoid memcpy when
8243 possible.
8244 (regcache::write_part): Likewise.
8245 (readable_regcache::cooked_read_part): Update comment.
8246 (readable_regcache::cooked_write_part): Likewise.
8247 * regcache.h: (readable_regcache::read_part): Likewise.
8248 (regcache::write_part): Likewise.
8249
8250 2018-06-21 Richard Bunt <richard.bunt@arm.com>
8251 Dirk Schubert <dirk.schubert@arm.com>
8252
8253 * aarch64-linux-nat.c (post_attach): New.
8254 (aarch64_linux_nat_target::post_attach): Override post_attach to
8255 record the number of hardware debug registers.
8256
8257 2018-06-20 Tom Tromey <tom@tromey.com>
8258
8259 * python/py-param.c (add_setshow_generic): Make parameters const.
8260 (parmpy_init): Update.
8261
8262 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
8263
8264 * regcache.h (regcache_cooked_read_ftype): Rename to...
8265 (register_read_ftype): ...this, change type to function_view.
8266 (class reg_buffer) <save>: Remove src parameter.
8267 (readonly_detached_regcache) <readonly_detached_regcache>: Make
8268 parameter non-const in first overload. Remove src parameter in
8269 second overload.
8270 * regcache.c (do_cooked_read): Remove.
8271 (readonly_detached_regcache::readonly_detached_regcache): Make
8272 parameter non-const, adjust call to other constructor.
8273 (reg_buffer::save): Remove src parameter.
8274 * frame.c (do_frame_register_read): Remove.
8275 (frame_save_as_regcache): Use lambda function.
8276 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
8277 parameter to ppu2spu_data *.
8278 (ppu2spu_sniffer): Use lambda function.
8279
8280 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
8281
8282 * record-full.c (record_full_target::insert_breakpoint): Remove
8283 "struct" keyword, add const.
8284
8285 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
8286
8287 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
8288 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
8289 * configure.ac: Remove AC_PREREQ, add missing quoting.
8290 * gnulib/configure.ac: Modernize usage of
8291 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
8292 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
8293 (AUTOMAKE_VERSION): Bump to 1.15.1.
8294 * configure: Re-generate.
8295 * config.in: Re-generate.
8296 * aclocal.m4: Re-generate.
8297 * gnulib/aclocal.m4: Re-generate.
8298 * gnulib/config.in: Re-generate.
8299 * gnulib/configure: Re-generate.
8300 * gnulib/import/Makefile.in: Re-generate.
8301
8302 2018-06-19 Pedro Alves <palves@redhat.com>
8303
8304 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
8305 (lookup_minimal_symbol_by_pc_section): ... here with
8306 gdb_assert_not_reached added.
8307
8308 2018-06-19 Pedro Alves <palves@redhat.com>
8309
8310 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
8311 parameter with a block parameter. Compare location's block symbol
8312 with the frame's block instead of addresses.
8313 (skip_inline_frames): Pass the current block instead of the
8314 frame's address. Break out as soon as we determine the frame
8315 should not be skipped.
8316
8317 2018-06-18 Tom Tromey <tom@tromey.com>
8318
8319 * solib-aix.c (solib_aix_get_section_offsets): Return
8320 unique_xmalloc_ptr.
8321 (solib_aix_solib_create_inferior_hook): Update.
8322
8323 2018-06-18 Tom Tromey <tom@tromey.com>
8324
8325 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
8326
8327 2018-06-18 Tom Tromey <tom@tromey.com>
8328
8329 * solib-frv.c (frv_relocate_main_executable): Use
8330 unique_xmalloc_ptr.
8331 * solib-dsbt.c (dsbt_relocate_main_executable): Use
8332 unique_xmalloc_ptr.
8333
8334 2018-06-18 Tom Tromey <tom@tromey.com>
8335
8336 * objfiles.h (inhibit_section_map_updates): Update.
8337 (resume_section_map_updates, resume_section_map_updates_cleanup):
8338 Remove.
8339 * solib-svr4.c (svr4_handle_solib_event): Update.
8340 * objfiles.c (inhibit_section_map_updates): Return
8341 scoped_restore_tmpl<int>.
8342 (resume_section_map_updates, resume_section_map_updates_cleanup):
8343 Remove.
8344
8345 2018-06-18 Tom Tromey <tom@tromey.com>
8346
8347 * valprint.h (read_string): Update.
8348 * valprint.c (read_string): Change type of "buffer".
8349 (val_print_string): Update.
8350 * python/py-value.c (valpy_string): Update.
8351 * language.h (struct language_defn) <la_get_string>: Change
8352 type of "buffer".
8353 (default_get_string, c_get_string): Update.
8354 * language.c (default_get_string): Change type of "buffer".
8355 * guile/scm-value.c (gdbscm_value_to_string): Update.
8356 * c-lang.c (c_get_string): Change type of "buffer".
8357
8358 2018-06-18 Tom Tromey <tom@tromey.com>
8359
8360 * ser-mingw.c (struct pipe_state_destroyer): New.
8361 (pipe_state_up): New typedef.
8362 (cleanup_pipe_state): Remove.
8363 (pipe_windows_open): Use pipe_state_up. Don't release argv.
8364
8365 2018-06-18 Tom Tromey <tom@tromey.com>
8366
8367 * rust-lang.h (rust_yyerror): Don't declare.
8368 * rust-lang.c (rust_language_defn): Update.
8369 * rust-exp.y (yyerror): Now static.
8370 * parse.c (parse_exp_in_context_1): Update.
8371 * p-lang.h (p_yyerror): Don't declare.
8372 * p-lang.c (p_language_defn): Update.
8373 * p-exp.y (yyerror): Now static.
8374 * opencl-lang.c (opencl_language_defn): Update.
8375 * objc-lang.c (objc_language_defn): Update.
8376 * m2-lang.h (m2_yyerror): Don't declare.
8377 * m2-lang.c (m2_language_defn): Update.
8378 * m2-exp.y (yyerror): Now static.
8379 * language.h (struct language_defn) <la_error>: Remove.
8380 * language.c (unk_lang_error): Remove.
8381 (unknown_language_defn, auto_language_defn): Remove.
8382 * go-lang.h (go_yyerror): Don't declare.
8383 * go-lang.c (go_language_defn): Update.
8384 * go-exp.y (yyerror): Now static.
8385 * f-lang.h (f_yyerror): Don't declare.
8386 * f-lang.c (f_language_defn): Update.
8387 * f-exp.y (yyerror): Now static.
8388 * d-lang.h (d_yyerror): Don't declare.
8389 * d-lang.c (d_language_defn): Update.
8390 * d-exp.y (yyerror): Now static.
8391 * c-lang.h (c_yyerror): Don't declare.
8392 * c-lang.c (c_language_defn, cplus_language_defn)
8393 (asm_language_defn, minimal_language_defn): Update.
8394 * c-exp.y (yyerror): Now static.
8395 * ada-lang.h (ada_yyerror): Don't declare.
8396 * ada-lang.c (ada_language_defn): Update.
8397 * ada-exp.y (yyerror): Now static.
8398
8399 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8400
8401 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
8402 (store_sveregs_to_thread): Likewise.
8403 (aarch64_linux_fetch_inferior_registers): Check for SVE.
8404 (aarch64_linux_store_inferior_registers): Likewise.
8405 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
8406 function.
8407 (aarch64_sve_regs_copy_to_regcache): Likewise.
8408 (aarch64_sve_regs_copy_from_regcache): Likewise.
8409 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
8410 declaration.
8411 (aarch64_sve_regs_copy_to_regcache): Likewise.
8412 (aarch64_sve_regs_copy_from_regcache): Likewise.
8413 (sve_context): Structure from Linux headers.
8414 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
8415 (SVE_SIG_ZREG_SIZE): Likewise.
8416 (SVE_SIG_PREG_SIZE): Likewise.
8417 (SVE_SIG_FFR_SIZE): Likewise.
8418 (SVE_SIG_REGS_OFFSET): Likewise.
8419 (SVE_SIG_ZREGS_OFFSET): Likewise.
8420 (SVE_SIG_ZREG_OFFSET): Likewise.
8421 (SVE_SIG_ZREGS_SIZE): Likewise.
8422 (SVE_SIG_PREGS_OFFSET): Likewise.
8423 (SVE_SIG_PREG_OFFSET): Likewise.
8424 (SVE_SIG_PREGS_SIZE): Likewise.
8425 (SVE_SIG_FFR_OFFSET): Likewise.
8426 (SVE_SIG_REGS_SIZE): Likewise.
8427 (SVE_SIG_CONTEXT_SIZE): Likewise.
8428 (SVE_PT_REGS_MASK): Likewise.
8429 (SVE_PT_REGS_FPSIMD): Likewise.
8430 (SVE_PT_REGS_SVE): Likewise.
8431 (SVE_PT_VL_INHERIT): Likewise.
8432 (SVE_PT_VL_ONEXEC): Likewise.
8433 (SVE_PT_REGS_OFFSET): Likewise.
8434 (SVE_PT_FPSIMD_OFFSET): Likewise.
8435 (SVE_PT_FPSIMD_SIZE): Likewise.
8436 (SVE_PT_SVE_ZREG_SIZE): Likewise.
8437 (SVE_PT_SVE_PREG_SIZE): Likewise.
8438 (SVE_PT_SVE_FFR_SIZE): Likewise.
8439 (SVE_PT_SVE_FPSR_SIZE): Likewise.
8440 (SVE_PT_SVE_FPCR_SIZE): Likewise.
8441 (__SVE_SIG_TO_PT): Likewise.
8442 (SVE_PT_SVE_OFFSET): Likewise.
8443 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
8444 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
8445 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
8446 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
8447 (SVE_PT_SVE_PREG_OFFSET): Likewise.
8448 (SVE_PT_SVE_PREGS_SIZE): Likewise.
8449 (SVE_PT_SVE_FFR_OFFSET): Likewise.
8450 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
8451 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
8452 (SVE_PT_SVE_SIZE): Likewise.
8453 (SVE_PT_SIZE): Likewise.
8454 (HAS_SVE_STATE): New define.
8455
8456 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8457
8458 * nat/aarch64-sve-linux-sigcontext.h: New file.
8459 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
8460 new files.
8461 (SVE_VQ_MIN): Likewise.
8462 (SVE_VQ_MAX): Likewise.
8463 (SVE_VL_MIN): Likewise.
8464 (SVE_VL_MAX): Likewise.
8465 (SVE_NUM_ZREGS): Likewise.
8466 (SVE_NUM_PREGS): Likewise.
8467 (sve_vl_valid): Likewise.
8468 (struct user_sve_header): Likewise.
8469
8470 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8471 Richard Bunt <Richard.Bunt@arm.com>
8472
8473 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8474 was requested by GDB.
8475
8476 2018-06-15 Tom de Vries <tdevries@suse.de>
8477
8478 * MAINTAINERS (Write After Approval): Add Tom de Vries.
8479
8480 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * gnulib/update-gnulib.sh: Print expected versions of
8483 autoconf/aclocal.
8484
8485 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
8486
8487 * arch-utils.c (default_type_align): Use type_length_units.
8488 * gdbtypes.c (type_align): Use type_length_units.
8489
8490 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8491
8492 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8493 of 'define' command.
8494
8495 2018-06-14 Tom de Vries <tdevries@suse.de>
8496
8497 PR cli/22573
8498 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8499 get_no_prettyformat_print_options.
8500
8501 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
8502
8503 * sparc-nat.h: Include target.h.
8504 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8505 <fetch_registers>: Remove this argument in function call.
8506 <store_registers>: Remove this argument in function call, remove
8507 extra semicolon.
8508 <low_forget_process>: Call sparc64_forget_process instead of
8509 sparc_forget_process.
8510
8511 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8512
8513 * procfs.c (_initialize_procfs): Use add_inf_child_target.
8514 (procfs_target::make_corefile_notes): Adjust to new
8515 target_read_alloc return type.
8516
8517 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8518 Stephen Roberts <stephen.roberts@arm.com>
8519
8520 PR gdb/22882
8521 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8522 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8523 Move should_notify_stop local into more inner scope.
8524
8525 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8526 Stephen Roberts <stephen.roberts@arm.com>
8527
8528 PR gdb/22882
8529 * infrun.c (resume_1): Add call to mark_async_event_handler.
8530
8531 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8532
8533 * infrun.c (do_target_wait): Change old version of $pc printed.
8534
8535 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
8536
8537 * dwarf2read.c (read_index_from_section): Rename to...
8538 (read_gdb_index_from_section): ... this, update all callers.
8539 (dwarf2_read_index): Rename to...
8540 (dwarf2_read_gdb_index): ... this, update all callers.
8541
8542 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
8543
8544 * hppa-linux-nat.c
8545 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8546 hppa_linux_nat_target::fetch_registers.
8547
8548 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8549
8550 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8551 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8552 (AARCH64_DWARF_SVE_FFR): Likewise.
8553 (AARCH64_DWARF_SVE_P0): Likewise.
8554 (AARCH64_DWARF_SVE_Z0): Likewise.
8555
8556 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8557
8558 * common/common-regcache.h (raw_compare): New function.
8559 * regcache.c (regcache::raw_compare): Likewise.
8560 * regcache.h (regcache::raw_compare): New declaration.
8561
8562 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8563
8564 * common/common-regcache.h (reg_buffer_common): New structure.
8565 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8566 (reg_buffer::raw_supply): Likewise.
8567 (reg_buffer::raw_supply_integer): Likewise.
8568 (reg_buffer::raw_supply_zeroed): Likewise.
8569 (reg_buffer::raw_collect): Likewise.
8570 (reg_buffer::raw_collect_integer): Likewise.
8571 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8572 (reg_buffer::raw_supply): Likewise.
8573 (reg_buffer::raw_supply_integer): Likewise.
8574 (reg_buffer::raw_supply_zeroed): Likewise.
8575 (reg_buffer::raw_collect): Likewise.
8576 (reg_buffer::raw_collect_integer): Likewise.
8577
8578 2018-06-10 Tom Tromey <tom@tromey.com>
8579
8580 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
8581 (class remote_state) <stop_reply_queue>: Now std::vector.
8582 (remote_state::~remote_state)
8583 (remote_target::stop_reply_queue_length): Update.
8584 (struct queue_iter_param, remove_child_of_pending_fork)
8585 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8586 (check_pending_event_prevents_wildcard_vcont_callback)
8587 (remove_stop_reply_for_inferior)
8588 (remove_stop_reply_of_remote_state)
8589 (remote_notif_remove_once_on_match)
8590 (stop_reply_match_ptid_and_ws)
8591 (remote_kill_child_of_pending_fork): Remove.
8592 (remote_target::remove_new_fork_children)
8593 (remote_target::check_pending_events_prevent_wildcard_vcont)
8594 (remote_target::discard_pending_stop_replies)
8595 (remote_target::discard_pending_stop_replies_in_queue)
8596 (remote_target::remote_notif_remove_queued_reply)
8597 (remote_target::queued_stop_reply)
8598 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8599 (remote_target::wait, remote_target::kill_new_fork_children)
8600 (remote_target::async): Update.
8601
8602 2018-06-10 Tom Tromey <tom@tromey.com>
8603
8604 * record-full.c (record_full_arch_list_cleanups): Remove.
8605 (record_full_message): Use try/catch.
8606 (record_full_wait_cleanups): Remove.
8607 (record_full_wait_1): Use try/catch.
8608 (record_full_restore): Likewise.
8609
8610 2018-06-10 Tom Tromey <tom@tromey.com>
8611
8612 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
8613 declare VEC. Add constructor.
8614 <in_target_beneath>: Now bool.
8615 (record_full_breakpoints): Now a std::vector, static.
8616 (record_full_sync_record_breakpoints)
8617 (record_full_init_record_breakpoints)
8618 (record_full_target::insert_breakpoint)
8619 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
8620
8621 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8622
8623 * dwarf2read.c (process_cu_includes): Remove struct keyword.
8624 * serial.c (serial_interface_lookup): Remove struct keyword.
8625
8626 2018-06-10 Tom Tromey <tom@tromey.com>
8627
8628 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8629 method.
8630 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8631 a method.
8632 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8633 method.
8634 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8635 "beneath" as a method.
8636 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8637 Use "beneath" as a method.
8638
8639 2018-06-10 Tom Tromey <tom@tromey.com>
8640
8641 * tracefile.c (struct trace_file_writer_deleter): New.
8642 <operator()>: Rename from trace_file_writer_xfree.
8643 (trace_file_writer_up): New typedef.
8644 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8645
8646 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8647
8648 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8649 <m_registers, m_register_status>: Change type to
8650 std::unique_ptr.
8651 * regcache.c (reg_buffer::reg_buffer): Use new instead of
8652 XCNEWVEC.
8653
8654 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8655
8656 * common/common-regcache.h (enum register_status): Add
8657 underlying type "signed char".
8658 * regcache.h (reg_buffer) <m_register_status>: Change type to
8659 register_status *.
8660 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8661 register_status instead of signed char.
8662 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8663 (reg_buffer::get_register_status): Remove cast.
8664 (readable_regcache::raw_read): Remove cast.
8665 (readable_regcache::cooked_read): Remove cast.
8666
8667 2018-06-09 Tom Tromey <tom@tromey.com>
8668
8669 * source.c (reverse_search_command, forward_search_command): Use
8670 scoped_fd.
8671
8672 2018-06-09 Tom Tromey <tom@tromey.com>
8673
8674 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
8675 (serial_ops_list): Now static, std::vector.
8676 (serial_interface_lookup, serial_add_interface): Update.
8677
8678 2018-06-09 Tom Tromey <tom@tromey.com>
8679
8680 * dwarf2read.c (process_cu_includes): Update.
8681 (process_full_comp_unit): Update.
8682 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8683 std::vector.
8684
8685 2018-06-08 Paul Koning <paul_koning@dell.com>
8686
8687 PR gdb/23252
8688
8689 * python/python.c (do_start_initialization):
8690 Avoid call to internal Python API.
8691 (init__gdb_module): New function.
8692
8693 2018-06-08 Gary Benson <gbenson@redhat.com>
8694
8695 * linux-thread-db.c (valprint.h): New include.
8696 (struct check_thread_db_info): New structure.
8697 (check_thread_db_on_load, tdb_testinfo): New static globals.
8698 (check_thread_db, check_thread_db_callback): New functions.
8699 (try_thread_db_load_1): Run integrity checks if requested.
8700 (maintenance_check_libthread_db): New function.
8701 (_initialize_thread_db): Register "maint check libthread-db"
8702 and "maint set/show check-libthread-db".
8703 * NEWS: Mention the above new commands.
8704
8705 2018-06-08 Tom Tromey <tom@tromey.com>
8706
8707 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8708 now a method.
8709
8710 2018-06-08 Tom Tromey <tom@tromey.com>
8711
8712 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8713
8714 2018-06-08 Tom Tromey <tom@tromey.com>
8715
8716 * common/btrace-common.h (struct btrace_data): Add constructor,
8717 destructor, move assignment operator.
8718 <empty, clear, fini>: New methods.
8719 <format>: Initialize.
8720 (btrace_data_init, btrace_data_fini, btrace_data_clear)
8721 (btrace_data_empty): Don't declare.
8722 * common/btrace-common.c (btrace_data_init): Remove.
8723 (btrace_data::fini): Rename from btrace_data_fini.
8724 (btrace_data::empty): Rename from btrace_data_empty.
8725 (btrace_data::clear): Rename from btrace_data_clear. Return
8726 bool.
8727 * btrace.h (make_cleanup_btrace_data): Don't declare.
8728 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8729 (parse_xml_btrace): Update.
8730 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8731 (maint_btrace_clear_packet_history_cmd): Update.
8732
8733 2018-06-07 Pedro Alves <palves@redhat.com>
8734
8735 * target.h (target_ops) <beneath>: Now a method. All references
8736 updated.
8737 (class target_stack): New.
8738 * target.c (g_target_stack): New.
8739 (g_current_top_target): Delete.
8740 (current_top_target): Get the top target out of g_target_stack.
8741 (target_stack::push, target_stack::unpush): New.
8742 (push_target, unpush_target): Reimplement.
8743 (target_is_pushed): Reimplement in terms of g_target_stack.
8744 (target_ops::beneath, target_stack::find_beneath): New.
8745
8746 2018-06-07 Pedro Alves <palves@redhat.com>
8747
8748 * target.h (find_target_beneath): Delete declaration.
8749 * target.c (find_target_beneath): Delete definition.
8750 * aix-thread.c: All callers of find_target_beneath adjusted to
8751 call target_ops::beneath instead.
8752 * bsd-uthread.c: Likewise.
8753 * linux-thread-db.c: Likewise.
8754 * ravenscar-thread.c: Likewise.
8755 * sol-thread.c: Likewise.
8756 * spu-multiarch.c: Likewise.
8757
8758 2018-06-07 Pedro Alves <palves@redhat.com>
8759
8760 * target.h (target_ops) <beneath>: Now a method. All references
8761 updated.
8762 (target_ops) <m_beneath>: New.
8763 * target.c (target_ops::beneath): New.
8764 * corelow.c: Adjust all references to target_ops::beneath.
8765 * linux-thread-db.c: Likewise.
8766 * make-target-delegates: Likewise.
8767 * record-btrace.c: Likewise.
8768 * record-full.c: Likewise.
8769 * remote.c: Likewise.
8770 * target.c: Likewise.
8771 * target-delegates.c: Regenerate.
8772
8773 2018-06-07 Pedro Alves <palves@redhat.com>
8774
8775 * target.h (target_stack): Delete.
8776 (current_top_target): Declare function.
8777 * target.c (target_stack): Delete.
8778 (g_current_top_target): New.
8779 (current_top_target): New function.
8780 * auxv.c: Use current_top_target instead of target_stack
8781 throughout.
8782 * avr-tdep.c: Likewise.
8783 * breakpoint.c: Likewise.
8784 * corefile.c: Likewise.
8785 * elfread.c: Likewise.
8786 * eval.c: Likewise.
8787 * exceptions.c: Likewise.
8788 * frame.c: Likewise.
8789 * gdbarch-selftests.c: Likewise.
8790 * gnu-v3-abi.c: Likewise.
8791 * ia64-tdep.c: Likewise.
8792 * ia64-vms-tdep.c: Likewise.
8793 * infcall.c: Likewise.
8794 * infcmd.c: Likewise.
8795 * infrun.c: Likewise.
8796 * linespec.c: Likewise.
8797 * linux-tdep.c: Likewise.
8798 * minsyms.c: Likewise.
8799 * ppc-linux-nat.c: Likewise.
8800 * ppc-linux-tdep.c: Likewise.
8801 * procfs.c: Likewise.
8802 * regcache.c: Likewise.
8803 * remote.c: Likewise.
8804 * rs6000-tdep.c: Likewise.
8805 * s390-linux-nat.c: Likewise.
8806 * s390-tdep.c: Likewise.
8807 * solib-aix.c: Likewise.
8808 * solib-darwin.c: Likewise.
8809 * solib-dsbt.c: Likewise.
8810 * solib-spu.c: Likewise.
8811 * solib-svr4.c: Likewise.
8812 * solib-target.c: Likewise.
8813 * sparc-tdep.c: Likewise.
8814 * sparc64-tdep.c: Likewise.
8815 * spu-tdep.c: Likewise.
8816 * symfile.c: Likewise.
8817 * symtab.c: Likewise.
8818 * target-descriptions.c: Likewise.
8819 * target-memory.c: Likewise.
8820 * target.c: Likewise.
8821 * target.h: Likewise.
8822 * tracefile-tfile.c: Likewise.
8823 * tracepoint.c: Likewise.
8824 * valops.c: Likewise.
8825 * valprint.c: Likewise.
8826 * value.c: Likewise.
8827 * windows-tdep.c: Likewise.
8828 * mi/mi-main.c: Likewise.
8829
8830 2018-06-07 Tom Tromey <tom@tromey.com>
8831
8832 * valprint.h (build_address_symbolic): Declare.
8833 * printcmd.c (print_address_symbolic): Update.
8834 (build_address_symbolic): Change "name" and "filename" to
8835 std::string.
8836 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8837 Update.
8838 * defs.h (build_address_symbolic): Remove declaration.
8839
8840 2018-06-07 Alan Hayward <alan.hayward@arm.com>
8841
8842 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8843 (aarch64_vnv_type): Add function.
8844 (aarch64_pseudo_register_name): Add V regs for SVE.
8845 (aarch64_pseudo_register_type): Likewise.
8846 (aarch64_pseudo_register_reggroup_p): Likewise.
8847 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8848 (aarch64_pseudo_read_value): Add V regs for SVE.
8849 (aarch64_pseudo_write_2): Use V0 offset for SVE
8850 (aarch64_pseudo_write): Add V regs for SVE.
8851 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8852
8853 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8854
8855 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8856 (sve_vl_from_vq): Likewise.
8857
8858 2018-06-05 Tom Tromey <tom@tromey.com>
8859
8860 * cli/cli-cmds.c (show_version): Update.
8861 * top.c (print_gdb_version): Add "interactive" parameter.
8862 Update.
8863 * main.c (captured_main_1): Update.
8864 * top.h (print_gdb_version): Add "interactive" parameter and a
8865 comment.
8866
8867 2018-06-05 David Malcolm <dmalcolm@redhat.com>
8868
8869 * common/enum-flags.h: Add trailing semicolon to example in
8870 comment.
8871
8872 2018-06-05 Tom Tromey <tom@tromey.com>
8873
8874 PR cli/12326:
8875 * NEWS: Add entry about pager.
8876 * utils.c (pagination_disabled_for_command): New global.
8877 (prompt_for_continue): Allow "c" response to prompt.
8878 (reinitialize_more_filter): Clear
8879 pagination_disabled_for_command.
8880 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8881
8882 2018-06-04 Tom Tromey <tom@tromey.com>
8883
8884 * ada-lang.h (ada_lookup_symbol_list): Update.
8885 * ada-lang.c (resolve_subexp): Update.
8886 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8887 parameter.
8888 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8889 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8890 results parameter to std::vector.
8891 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8892 Update.
8893 * ada-exp.y (block_lookup): Update.
8894 (select_possible_type_sym): Change type of syms. Remove nsyms
8895 parameter.
8896 (write_var_or_type, write_name_assoc): Update.
8897
8898 2018-06-04 Joel Brobecker <brobecker@adacore.com>
8899
8900 * windows-nat.c (windows_nat_target::xfer_partial): Return
8901 TARGET_XFER_E_IO if we need to delegate to the target beneath
8902 but BENEATH is NULL.
8903
8904 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8905
8906 * Makefile.in (config.status): Add configure.nat as a
8907 dependency.
8908
8909 2018-06-04 Tom Tromey <tom@tromey.com>
8910
8911 * cp-name-parser.y (cpname_state): Add method declarations.
8912 (HANDLE_QUAL): Update.
8913 (cpname_state::d_grab, cpname_state::fill_comp)
8914 (cpname_state::make_operator, cpname_state::make_dtor)
8915 (cpname_state::make_builtin_type, cpname_state::make_name)
8916 (cpname_state::d_qualify, cpname_state::d_int_type)
8917 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8918 (%union): Move earlier.
8919
8920 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8921
8922 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8923
8924 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8925
8926 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8927 (aarch64_pseudo_write_1): Likewise.
8928 (aarch64_pseudo_read_value): Use helper.
8929 (aarch64_pseudo_write): Likewise.
8930
8931 2018-06-04 Pedro Alves <palves@redhat.com>
8932
8933 * darwin-nat.c (darwin_ops): Delete.
8934 (darwin_attach_pid): Use get_native_target.
8935
8936 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8937
8938 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8939 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8940
8941 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8942
8943 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8944 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8945 (aarch64_gdbarch_init): Check for SVE.
8946 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8947
8948 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8949
8950 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8951 * aarch64-tdep.h (aarch64_read_description): Likewise.
8952 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8953 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8954 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8955 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8956 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8957
8958 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8959
8960 * value.c (value_fetch_lazy_bitfield): New.
8961 (value_fetch_lazy_memory): New.
8962 (value_fetch_lazy_register): New.
8963 (value_fetch_lazy): Factor out to smaller functions.
8964
8965 2018-06-01 Tom Tromey <tom@tromey.com>
8966
8967 * cp-name-parser.y (backslashable, represented): Now const.
8968
8969 2018-06-01 Tom Tromey <tom@tromey.com>
8970
8971 * cp-name-parser.y: Include parser-defs.h.
8972 (parser_fprintf): Remove declaration.
8973
8974 2018-06-01 Tom Tromey <tom@tromey.com>
8975
8976 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8977 %parse-param.
8978 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8979 (global_result): Remove globals.
8980 (struct cpname_state): New.
8981 (yyparse): Don't declare.
8982 (yylex, yyerror): Move declarations after %union.
8983 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8984 (make_name): Add state parameter.
8985 Update all callers.
8986 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8987 parameter.
8988 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8989 Update.
8990 (yylex): Add lvalp, state parameters.
8991 (yyerror): Add state parameter.
8992 (cp_demangled_name_to_comp): Update.
8993
8994 2018-06-01 Tom Tromey <tom@tromey.com>
8995
8996 * cp-name-parser.y (parser_fprintf): Declare.
8997 (GDB_YY_REMAP_PREFIX): Define.
8998 Include yy-remap.h. Don't redefine yy* identifiers.
8999
9000 2018-06-01 Tom Tromey <tom@tromey.com>
9001
9002 * python/py-type.c (typy_legacy_template_argument): Update.
9003 * cp-support.h (cp_demangled_name_to_comp): Update.
9004 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
9005 parameter to be a "std::string *".
9006 (main): Update.
9007
9008 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
9009
9010 * ada-lex.l: Include "diagnostics.h" instead of
9011 "common/diagnostics.h".
9012 * unittests/environ-selftests.c: Likewise.
9013 * common/diagnostics.h: Moved to ../include.
9014
9015 2018-06-01 Joel Brobecker <brobecker@adacore.com>
9016
9017 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
9018 to language_mode_manual while calling breakpoint_re_set_one.
9019
9020 2018-06-01 Tom Tromey <tom@tromey.com>
9021
9022 * valops.c (value_cast_structs, destructor_name_p): Update.
9023 * symtab.c (gdb_mangle_name): Update.
9024 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
9025 Update.
9026 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
9027 (pascal_object_print_value_fields, pascal_object_print_value):
9028 Update.
9029 * p-typeprint.c (pascal_type_print_derivation_info): Update.
9030 * linespec.c (find_methods): Update.
9031 * gdbtypes.h (type_name_no_tag): Remove.
9032 (type_name_or_error): Rename from type_name_no_tag_or_error.
9033 * gdbtypes.c (type_name_no_tag): Remove.
9034 (type_name_or_error): Rename from type_name_no_tag_or_error.
9035 (lookup_struct_elt_type, check_typedef): Update.
9036 * expprint.c (print_subexp_standard): Update.
9037 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
9038 * d-namespace.c (d_lookup_nested_symbol): Update.
9039 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
9040 (cp_print_class_member): Update.
9041 * cp-namespace.c (cp_lookup_nested_symbol): Update.
9042 * completer.c (add_struct_fields): Update.
9043 * c-typeprint.c (cp_type_print_derivation_info)
9044 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
9045 Update.
9046 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
9047 (ada_prefer_type, ada_is_exception_sym): Update.
9048
9049 2018-06-01 Tom Tromey <tom@tromey.com>
9050
9051 * valops.c (enum_constant_from_type, value_namespace_elt)
9052 (value_maybe_namespace_elt): Update.
9053 * valarith.c (find_size_for_pointer_math): Update.
9054 * target-descriptions.c (make_gdb_type): Update.
9055 * symmisc.c (print_symbol): Update.
9056 * stabsread.c (define_symbol, read_type)
9057 (complain_about_struct_wipeout, add_undefined_type)
9058 (cleanup_undefined_types_1): Update.
9059 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
9060 (rust_range_type_p, val_print_struct, rust_print_struct_def)
9061 (rust_internal_print_type, rust_composite_type)
9062 (rust_evaluate_funcall, rust_evaluate_subexp)
9063 (rust_inclusive_range_type_p): Update.
9064 * python/py-type.c (typy_get_tag): Update.
9065 * p-typeprint.c (pascal_type_print_base): Update.
9066 * mdebugread.c (parse_symbol, parse_type): Update.
9067 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
9068 Update.
9069 * guile/scm-type.c (gdbscm_type_tag): Update.
9070 * go-lang.c (sixg_string_p): Update.
9071 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
9072 Update.
9073 * gdbtypes.h (struct main_type) <tag_name>: Remove.
9074 (TYPE_TAG_NAME): Remove.
9075 * gdbtypes.c (type_name_no_tag): Simplify.
9076 (check_typedef, check_types_equal, recursive_dump_type)
9077 (copy_type_recursive, arch_composite_type): Update.
9078 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
9079 in summary mode when needed.
9080 * eval.c (evaluate_funcall): Update.
9081 * dwarf2read.c (fixup_go_packaging, read_structure_type)
9082 (process_structure_scope, read_enumeration_type)
9083 (read_namespace_type, read_module_type, determine_prefix): Update.
9084 * cp-support.c (inspect_type): Update.
9085 * coffread.c (process_coff_symbol, decode_base_type): Update.
9086 * c-varobj.c (c_is_path_expr_parent): Update.
9087 * c-typeprint.c (c_type_print_base_struct_union): Update.
9088 (c_type_print_base_1): Update. Print struct/class/union/enum in
9089 summary when using C language.
9090 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
9091 (gen_maybe_namespace_elt): Update.
9092 * ada-lang.c (ada_type_name): Simplify.
9093 (empty_record, ada_template_to_fixed_record_type_1)
9094 (template_to_static_fixed_type)
9095 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
9096
9097 2018-06-01 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
9100 c_print_type.
9101 * c-typeprint.c (c_print_type_1): Add "language" parameter.
9102 (c_print_type): Update.
9103 (c_print_type): New overload.
9104 (c_type_print_varspec_prefix, c_type_print_args)
9105 (c_type_print_varspec_suffix, c_print_type_no_offsets)
9106 (c_type_print_base_struct_union, c_type_print_base_1)
9107 (cp_type_print_method_args): Add "language" parameter.
9108 (c_type_print_base): Update.
9109 * c-lang.h (c_print_type): Add new overload.
9110
9111 2018-06-01 Tom Tromey <tom@tromey.com>
9112
9113 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
9114 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
9115
9116 2018-06-01 Alan Hayward <alan.hayward@arm.com>
9117
9118 * aarch64-tdep.c (aarch64_sve_register_names): New const
9119 var.
9120 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
9121 (AARCH64_SVE_Z_REGS_NUM): New define.
9122 (AARCH64_SVE_P_REGS_NUM): Likewise.
9123 (AARCH64_SVE_NUM_REGS): Likewise.
9124
9125 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
9126
9127 * nat/linux-ptrace.h [__alpha__]
9128 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
9129 definitions.
9130
9131 2018-05-31 Maciej W. Rozycki <macro@mips.com>
9132
9133 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
9134 the endianness selected.
9135 * NEWS: Document `set endian auto' mode operation update.
9136
9137 2018-05-31 Alan Hayward <alan.hayward@arm.com>
9138
9139 * Makefile.in: Add new header.
9140 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
9141 (sve_vl_from_vg): Likewise.
9142 (sve_vq_from_vl): Likewise.
9143 (sve_vl_from_vq): Likewise.
9144 (sve_vq_from_vg): Likewise.
9145 (sve_vg_from_vq): Likewise.
9146 * configure.nat: Add new c file.
9147 * nat/aarch64-sve-linux-ptrace.c: New file.
9148 * nat/aarch64-sve-linux-ptrace.h: New file.
9149
9150 2018-05-31 Alan Hayward <alan.hayward@arm.com>
9151
9152 * aarch64-linux-nat.c (aarch64_linux_read_description):
9153 Add parmeter zero.
9154 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9155 Likewise.
9156 * aarch64-tdep.c (tdesc_aarch64_list): Add.
9157 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
9158 (aarch64_gdbarch_init): Add parmeter zero.
9159 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
9160 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
9161 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
9162 parmeter.
9163 * doc/gdb.texinfo: Describe SVE feature
9164 * features/aarch64-sve.c: New file.
9165
9166 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
9167
9168 PR gdb/23210
9169 * gdbarch.sh (significant_addr_bit): Default to zero when
9170 not set by target architecture.
9171 * gdbarch.c: Re-generated.
9172 * utils.c (address_significant): Update.
9173
9174 2018-05-30 Joel Brobecker <brobecker@adacore.com>
9175
9176 * stack.c (func_command): Remove trailing newline in call to error.
9177
9178 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9179
9180 * regcache.h (regcache_raw_collect): Remove, update callers to
9181 use regcache::raw_collect.
9182 * regcache.c (regcache_raw_collect): Remove.
9183
9184 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9185
9186 * regcache.h (regcache_raw_supply): Remove, update callers to
9187 use detached_regcache::raw_supply.
9188 * regcache.c (regcache_raw_supply): Remove.
9189
9190 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9191
9192 * regcache.h (regcache_cooked_write_part): Remove, update
9193 callers to use regcache::cooked_write_part.
9194 * regcache.c (regcache_cooked_write_part): Remove.
9195
9196 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9197
9198 * regcache.h (regcache_cooked_read_part): Remove, update callers
9199 to use readable_regcache::cooked_read_part.
9200 * regcache.c (regcache_cooked_read_part): Remove.
9201
9202 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9203
9204 * regcache.h (regcache_cooked_read_value): Remove, update
9205 callers to use readable_regcache::cooked_read_value.
9206 * regcache.c (regcache_cooked_read_value): Remove.
9207
9208 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9209
9210 * regcache.h (regcache_cooked_write): Remove, update callers to
9211 use regcache::cooked_write.
9212 * regcache.c (regcache_cooked_write): Remove.
9213
9214 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9215
9216 * regcache.h (regcache_invalidate): Remove, update callers to
9217 use detached_regcache::invalidate instead.
9218 * regcache.c (regcache_invalidate): Remove.
9219
9220 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9221
9222 * regcache.h (regcache_raw_write_part): Remove, update callers
9223 to use regcache::raw_write_part instead.
9224 * regcache.c (regcache_raw_write_part): Remove.
9225
9226 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9227
9228 * regcache.h (regcache_raw_read_part): Remove, update callers to
9229 use readable_regcache::raw_read_part instead.
9230 * regcache.c (regcache_raw_read_part): Remove.
9231
9232 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9233
9234 * regcache.h (regcache_cooked_read): Remove, update callers to
9235 use readable_regcache::cooked_read instead.
9236 * regcache.c (regcache_cooked_read): Remove.
9237
9238 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9239
9240 * regcache.h (regcache_raw_write): Remove, update callers to use
9241 regcache::raw_write instead.
9242 * regcache.c (regcache_raw_write): Remove.
9243
9244 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9245
9246 * regcache.h (regcache_raw_read): Remove, update callers to use
9247 readable_regcache::raw_read instead.
9248 * regcache.c (regcache_raw_read): Remove.
9249
9250 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9251
9252 * regcache.h (regcache_raw_update): Remove, update callers to
9253 use readable_regcache::raw_update instead.
9254 * regcache.c (regcache_raw_update): Remove.
9255
9256 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9257
9258 * regcache.h (regcache_register_status): Remove, update callers
9259 to use reg_buffer::get_register_status directly instead.
9260 * regcache.c (regcache_register_status): Remove.
9261
9262 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9263
9264 * regcache.h (regcache_get_ptid): Remove, update all callers to
9265 call regcache::ptid instead.
9266 * regcache.c (regcache_get_ptid): Remove.
9267
9268 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9269
9270 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
9271
9272 2018-05-30 Pedro Alves <palves@redhat.com>
9273
9274 * common/common-exceptions.h (exception_rethrow): Use
9275 ATTRIBUTE_NORETURN.
9276
9277 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
9278
9279 * breakpoint.c (print_solib_event, check_status_catch_solib):
9280 Remove struct keyword in range-based for loops.
9281 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
9282 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
9283 Likewise.
9284 * linespec.c (find_superclass_methods, search_minsyms_for_name):
9285 Likewise.
9286 * symfile.c (addr_info_make_relative): Likewise.
9287 * thread.c (value_in_thread_stack_temporaries): Likewise.
9288
9289 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
9290
9291 PR gdb/16841
9292 * valops.c (value_struct_elt_for_reference): Call check_typedef on
9293 aggregate type to get its real type before accessing it.
9294
9295 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
9296
9297 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
9298 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
9299 * coff-pe-read.c (add_pe_forwarded_sym): Replace
9300 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
9301 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
9302 * jit.c (jit_breakpoint_re_set_internal): Likewise.
9303 * printcmd.c (info_address_command): Likewise.
9304
9305 2018-05-29 Tom Tromey <tom@tromey.com>
9306
9307 * windows-nat.c (handle_exception): Update fall-through comment.
9308
9309 2018-05-29 Tom Tromey <tom@tromey.com>
9310
9311 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
9312 (struct program_space) <added_solibs>: Now a std::vector.
9313 * breakpoint.c (print_solib_event): Update.
9314 (check_status_catch_solib): Update.
9315 * progspace.c (clear_program_space_solib_cache): Update.
9316 * solib.c (update_solib_list): Update.
9317
9318 2018-05-29 Tom Tromey <tom@tromey.com>
9319
9320 * python/py-type.c (typy_richcompare): Update.
9321 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
9322 * gdbtypes.h (types_deeply_equal): Return bool.
9323 (types_equal): Likewise.
9324 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
9325 declare VEC.
9326 (check_types_equal): Change worklist to std::vector. Return
9327 bool.
9328 (struct type_equality_entry): Add constructor.
9329 (compare_maybe_null_strings): Return bool.
9330 (check_types_worklist): Return bool. Change worklist to
9331 std::vector.
9332 (types_deeply_equal): Use std::vector.
9333 (types_equal): Return bool.
9334 (compare_maybe_null_strings): Simplify.
9335
9336 2018-05-29 Tom Tromey <tom@tromey.com>
9337
9338 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
9339
9340 2018-05-29 Tom Tromey <tom@tromey.com>
9341
9342 * objc-lang.h: Don't include cp-support.h.
9343 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
9344 declare VEC.
9345
9346 2018-05-27 Tom Tromey <tom@tromey.com>
9347
9348 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
9349
9350 2018-05-25 Tom Tromey <tom@tromey.com>
9351
9352 * value.c (value::location): Initialize.
9353
9354 2018-05-25 Tom Tromey <tom@tromey.com>
9355
9356 * dbxread.c (init_bincl_list): Remove.
9357 (bincl_list): Now a std::vector.
9358 (bincls_allocated, next_bincl): Remove.
9359 (free_bincl_list, do_free_bincl_list_cleanup)
9360 (make_cleanup_free_bincl_list): Remove.
9361 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
9362 unique_xmalloc_ptr.
9363 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
9364 (struct header_file_location): Add constructor.
9365 (add_bincl_to_list): Remove.
9366
9367 2018-05-25 Tom Tromey <tom@tromey.com>
9368
9369 * tui/tui.c (tui_enable): Update.
9370 * mi/mi-interp.c (mi_interp::init): Update.
9371 * interps.h (class interp) <name>: New method.
9372 <m_name>: Rename from name.
9373 (~scoped_restore_interp): Update.
9374 * interps.c (interp::interp): Update.
9375 (interp_add, interp_set, interp_lookup_existing)
9376 (current_interp_named_p): Update.
9377
9378 2018-05-25 Tom Tromey <tom@tromey.com>
9379
9380 * interps.c (interp_name): Remove.
9381 * mi/mi-interp.c (mi_interp::init): Update.
9382 * interps.h (interp_name): Remove.
9383 (~scoped_restore_interp): Update.
9384 * tui/tui.c (tui_enable): Update.
9385
9386 2018-05-25 Tom Tromey <tom@tromey.com>
9387
9388 * utils.c (fputs_maybe_filtered): Update.
9389 * linespec.c (decode_line_full): Update.
9390 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
9391 (mi_print_breakpoint_for_event, mi_solib_loaded)
9392 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
9393 (mi_user_selected_context_changed): Update.
9394 * mi/mi-main.c (mi_execute_command): Update.
9395 * cli/cli-script.c (execute_control_command): Update.
9396 * python/python.c (execute_gdb_command): Update.
9397 * solib.c (info_sharedlibrary_command): Update.
9398 * interps.c (interp_ui_out): Remove.
9399 * interps.h (interp_ui_out): Remove.
9400
9401 2018-05-25 Tom Tromey <tom@tromey.com>
9402
9403 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
9404 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
9405 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
9406
9407 2018-05-25 Tom Tromey <tom@tromey.com>
9408
9409 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
9410 * interps.c (interp_exec): Use scoped_restore.
9411
9412 2018-05-25 Tom Tromey <tom@tromey.com>
9413
9414 * remote.c (remote_target::remote_file_get): Use
9415 gdb::byte_vector.
9416 (remote_target::remote_file_put): Likewise.
9417
9418 2018-05-25 Tom Tromey <tom@tromey.com>
9419
9420 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
9421 a std::string.
9422 (get_pe_section_index, add_pe_exported_sym): Update.
9423 (read_pe_exported_syms): Use gdb::def_vector.
9424
9425 2018-05-25 Tom Tromey <tom@tromey.com>
9426
9427 * frame.c (remove_prev_frame): Remove.
9428 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
9429
9430 2018-05-25 Maciej W. Rozycki <macro@mips.com>
9431
9432 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
9433 Remove prototypes.
9434 * mips-linux-nat.c (supply_fpregset): Always call
9435 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
9436 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
9437 `mips_fill_fpregset'.
9438 * mips-linux-tdep.c (mips_supply_fpregset)
9439 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
9440 (mips_fill_fpregset_wrapper): Remove functions.
9441 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
9442 (mips_linux_fpregset): Remove variable.
9443 (mips_linux_iterate_over_regset_sections): Use
9444 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
9445 (mips_linux_o32_sigframe_init): Remove comment.
9446
9447 2018-05-25 Pedro Alves <palves@redhat.com>
9448
9449 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
9450 (struct readahead_cache, struct packet_reg, struct
9451 remote_arch_state, class remote_state): Move higher up in the
9452 file.
9453 (remote_target::m_remote_state): Now an object instead of a pointer.
9454 (remote_target::get_remote_state): Adjust.
9455
9456 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9457
9458 * stack.c (select_and_print_frame): Delete.
9459 (struct function_bounds): Move struct within function.
9460 (func_command): Most content moved into new function
9461 find_frame_for_function, use new function, print result, add
9462 function comment.
9463 (find_frame_for_function): New function, now returns a result.
9464
9465 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9466
9467 * stack.c (iterate_over_block_arg_vars): Fix comment.
9468 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
9469
9470 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9471
9472 PR gdb/23203
9473 * frame.c
9474 (scoped_restore_selected_frame::scoped_restore_selected_frame):
9475 Define.
9476 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9477 Define.
9478 * frame.h (class scoped_restore_selected_frame): New class.
9479 * stack.c (print_frame_local_vars): Remove catching and rethrowing
9480 of any exception, use scoped_restore_selected_frame to restore the
9481 frame instead.
9482
9483 2018-05-24 Pedro Alves <palves@redhat.com>
9484
9485 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9486 override.
9487
9488 2018-05-23 Tom Tromey <tom@tromey.com>
9489
9490 * complaints.c (struct complaints): Remove.
9491 (symfile_complaint_book): Remove.
9492 (series): New global.
9493 (complaint_internal): Update.
9494 (clear_complaints): Update.
9495
9496 2018-05-23 Tom Tromey <tom@tromey.com>
9497
9498 * complaints.c (counters): New global.
9499 (struct complain): Remove.
9500 (struct complaints) <root>: Remove.
9501 (complaint_sentinel): Remove.
9502 (symfile_complaint_book): Update.
9503 (find_complaint) Remove.
9504 (complaint_internal, clear_complaints): Update.
9505
9506 2018-05-23 Tom Tromey <tom@tromey.com>
9507
9508 * complaints.c (struct complain) <file, line>: Remove.
9509 (find_complaint): Remove file, line parameters.
9510 (complaint_internal): Update.
9511
9512 2018-05-23 Tom Tromey <tom@tromey.com>
9513
9514 * complaints.c (vcomplaint): Remove.
9515 (complaint_internal) Merge in contents of vcomplaint.
9516
9517 2018-05-23 Tom Tromey <tom@tromey.com>
9518
9519 * complaints.c (struct complaints) <explanation>: Remove.
9520 (symfile_explanations): Remove.
9521 (symfile_complaint_book): Update.
9522 (vcomplaint): Update.
9523 (struct explanation): Remove.
9524
9525 2018-05-23 Tom Tromey <tom@tromey.com>
9526
9527 * complaints.c (symfile_complaints): Remove.
9528 (complaint_internal): Remove "complaints" parameter.
9529 (clear_complaints, vcomplaint): Remove "c" parameter.
9530 (get_complaints): Remove.
9531 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9532 (dwarf2_debug_line_missing_file_complaint)
9533 (dwarf2_debug_line_missing_end_sequence_complaint)
9534 (dwarf2_complex_location_expr_complaint)
9535 (dwarf2_const_value_length_mismatch_complaint)
9536 (dwarf2_section_buffer_overflow_complaint)
9537 (dwarf2_macro_malformed_definition_complaint)
9538 (dwarf2_invalid_attrib_class_complaint)
9539 (create_addrmap_from_index, dw2_symtab_iter_next)
9540 (dw2_expand_marked_cus)
9541 (dw2_debug_names_iterator::find_vec_in_debug_names)
9542 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9543 (create_debug_type_hash_table, init_cutu_and_read_dies)
9544 (partial_die_parent_scope, add_partial_enumeration)
9545 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9546 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9547 (read_import_statement, read_file_scope, create_dwo_cu_reader)
9548 (create_cus_hash_table, create_dwp_hash_table)
9549 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9550 (dwarf2_rnglists_process, dwarf2_ranges_process)
9551 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9552 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9553 (handle_struct_member_die, process_structure_scope)
9554 (read_array_type, read_common_block, read_module_type)
9555 (read_tag_pointer_type, read_typedef, read_base_type)
9556 (read_subrange_type, load_partial_dies, partial_die_info::read)
9557 (partial_die_info::read, partial_die_info::read)
9558 (partial_die_info::read, read_checked_initial_length_and_offset)
9559 (dwarf2_string_attr, read_formatted_entries)
9560 (dwarf_decode_line_header)
9561 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9562 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9563 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9564 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9565 (get_signatured_type, get_DW_AT_signature_type)
9566 (decode_locdesc, file_file_name, consume_improper_spaces)
9567 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9568 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9569 (dwarf2_symbol_mark_computed, set_die_type)
9570 (read_attribute_value): Update.
9571 * stap-probe.c (handle_stap_probe, get_stap_base_address):
9572 Update.
9573 * dbxread.c (unknown_symtype_complaint)
9574 (lbrac_mismatch_complaint, repeated_header_complaint)
9575 (set_namestring, function_outside_compilation_unit_complaint)
9576 (read_dbx_symtab, process_one_symbol): Update.
9577 * gdbtypes.c (stub_noname_complaint): Update.
9578 * windows-nat.c (handle_unload_dll): Update.
9579 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9580 (decode_base_type): Update.
9581 * xcoffread.c (bf_notfound_complaint, ef_complaint)
9582 (eb_complaint, record_include_begin, record_include_end)
9583 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9584 (process_xcoff_symbol, read_symbol)
9585 (function_outside_compilation_unit_complaint)
9586 (scan_xcoff_symtab): Update.
9587 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9588 * buildsym.c (finish_block_internal, make_blockvector)
9589 (end_symtab_get_static_block, augment_type_symtab): Update.
9590 * dtrace-probe.c (dtrace_process_dof)
9591 (dtrace_static_probe_ops::get_probes): Update.
9592 * complaints.h (struct complaint): Don't declare.
9593 (symfile_complaints): Remove.
9594 (complaint_internal): Remove "complaints" parameter.
9595 (complaint): Likewise.
9596 (clear_complaints): Likewise.
9597 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9598 (reread_symbols): Update.
9599 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9600 (dwarf2_frame_cache, decode_frame_entry): Update.
9601 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9602 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9603 (info_selectors_command): Update.
9604 * macrotab.c (macro_include, check_for_redefinition)
9605 (macro_undef): Update.
9606 * objfiles.c (filter_overlapping_sections): Update.
9607 * stabsread.c (invalid_cpp_abbrev_complaint)
9608 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9609 (define_symbol, error_type, read_type, rs6000_builtin_type)
9610 (stabs_method_name_from_physname, read_member_functions)
9611 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9612 (attach_fields_to_type, complain_about_struct_wipeout)
9613 (read_range_type, read_args, common_block_start)
9614 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9615 Update.
9616 * mdebugread.c (index_complaint, unknown_ext_complaint)
9617 (basic_type_complaint, bad_tag_guess_complaint)
9618 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9619 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9620 (parse_procedure, parse_lines)
9621 (function_outside_compilation_unit_complaint)
9622 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9623 (bad_tag_guess_complaint, reg_value_complaint): Update.
9624 * cp-support.c (demangled_name_complaint): Update.
9625 * macroscope.c (sal_macro_scope): Update.
9626 * dwarf-index-write.c (class debug_names): Update.
9627
9628 2018-05-23 Tom Tromey <tom@tromey.com>
9629
9630 * complaints.c (clear_complaints): Remove "noisy" parameter.
9631 * complaints.h (clear_complaints): Update.
9632 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9633 (reread_symbols): Update.
9634
9635 2018-05-23 Tom Tromey <tom@tromey.com>
9636
9637 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9638 SUBSEQUENT_MESSAGE.
9639 (vcomplaint, clear_complaints): Update.
9640 (symfile_explanations): Remove some messages.
9641
9642 2018-05-23 Tom Tromey <tom@tromey.com>
9643
9644 * complaints.c (internal_complaint): Remove.
9645 * complaints.h (internal_complaint): Remove.
9646
9647 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9648
9649 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9650
9651 2018-05-22 Pedro Alves <palves@redhat.com>
9652
9653 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9654 (remote_fileio_badfd, remote_fileio_return_errno)
9655 (remote_fileio_return_success, remote_fileio_func_open)
9656 (remote_fileio_func_open, remote_fileio_func_close)
9657 (remote_fileio_func_read, remote_fileio_func_write)
9658 (remote_fileio_func_lseek, remote_fileio_func_rename)
9659 (remote_fileio_func_unlink, remote_fileio_func_stat)
9660 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9661 (remote_fileio_func_isatty, remote_fileio_func_system): Add
9662 remote_target parameter.
9663 (remote_fio_func_map) <func>: Add remote_target parameter.
9664 (do_remote_fileio_request, remote_fileio_request):
9665 * remote-fileio.h (remote_fileio_request):
9666 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9667 remote_target parameter.
9668 (remote_notif_process, handle_notification): Adjust to pass down
9669 the remote.
9670 (remote_notif_state_allocate): Add remote_target parameter. Save
9671 it.
9672 * remote-notif.h (struct remote_target): Forward declare.
9673 (struct notif_client) <parse, ack, can_get_pending_events>: Add
9674 remote_target parameter.
9675 (struct remote_notif_state) <remote>: New field.
9676 (remote_notif_ack, remote_notif_parse): Add remote_target
9677 parameter.
9678 (remote_notif_state_allocate, remote_notif_state_allocate): Add
9679 remote_target parameter.
9680 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9681 (threads_listing_context, rmt_thread_action, protocol_feature)
9682 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9683 (packet_result, struct threads_listing_context, remote_state):
9684 Move definitions and declarations higher up.
9685 (remote_target) <~remote_target>: Declare.
9686 (remote_download_command_source, remote_file_put, remote_file_get)
9687 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9688 (remote_hostio_pread_vFile, remote_hostio_send_command)
9689 (remote_hostio_set_filesystem, remote_hostio_open)
9690 (remote_hostio_close, remote_hostio_unlink, remote_state)
9691 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9692 (get_memory_write_packet_size, get_memory_read_packet_size)
9693 (append_pending_thread_resumptions, remote_detach_1)
9694 (append_resumption, remote_resume_with_vcont)
9695 (add_current_inferior_and_thread, wait_ns, wait_as)
9696 (process_stop_reply, remote_notice_new_inferior)
9697 (process_initial_stop_replies, remote_add_thread)
9698 (btrace_sync_conf, remote_btrace_maybe_reopen)
9699 (remove_new_fork_children, kill_new_fork_children)
9700 (discard_pending_stop_replies, stop_reply_queue_length)
9701 (check_pending_events_prevent_wildcard_vcont)
9702 (discard_pending_stop_replies_in_queue, stop_reply)
9703 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9704 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9705 (remote_interrupt_as, remote_interrupt_ns)
9706 (remote_get_noisy_reply, remote_query_attached)
9707 (remote_add_inferior, remote_current_thread, get_current_thread)
9708 (set_thread, set_general_thread, set_continue_thread)
9709 (set_general_process, write_ptid)
9710 (remote_unpack_thread_info_response, remote_get_threadinfo)
9711 (parse_threadlist_response, remote_get_threadlist)
9712 (remote_threadlist_iterator, remote_get_threads_with_ql)
9713 (remote_get_threads_with_qxfer)
9714 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9715 (get_offsets, remote_check_symbols, remote_supported_packet)
9716 (remote_query_supported, remote_packet_size)
9717 (remote_serial_quit_handler, remote_detach_pid)
9718 (remote_vcont_probe, remote_resume_with_hc)
9719 (send_interrupt_sequence, interrupt_query)
9720 (remote_notif_get_pending_events, fetch_register_using_p)
9721 (send_g_packet, process_g_packet, fetch_registers_using_g)
9722 (store_register_using_P, store_registers_using_G)
9723 (set_remote_traceframe, check_binary_download)
9724 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9725 (remote_xfer_live_readonly_partial, remote_read_bytes)
9726 (remote_send_printf, remote_flash_write, readchar)
9727 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9728 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9729 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9730 (extended_remote_disable_randomization, extended_remote_run)
9731 (send_environment_packet, extended_remote_environment_support)
9732 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9733 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9734 (packet_command): Now methods of ...
9735 (remote_target): ... this class.
9736 (m_remote_state) <remote_target>: New field.
9737 (struct remote_state) <stop_reply_queue,
9738 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9739 fields.
9740 (remote_state::remote_state): Allocate stop_reply_queue.
9741 (remote_state): Delete global.
9742 (get_remote_state_raw): Delete.
9743 (remote_target::get_remote_state): Allocate m_remote_state on
9744 demand.
9745 (get_current_remote_target): New.
9746 (remote_ops, extended_remote_ops): Delete.
9747 (wait_forever_enabled_p, remote_async_inferior_event_token):
9748 Delete, moved to struct remote_state.
9749 (remote_target::close): Delete self. Destruction bits split to
9750 ...
9751 (remote_target::~remote_target): ... this.
9752 (show_memory_packet_size): Adjust to use
9753 get_current_remote_target.
9754 (struct protocol_feature) <func>: Add remote_target parameter.
9755 All callers adjusted.
9756 (curr_quit_handler_target): New.
9757 (remote_serial_quit_handler): Reimplement.
9758 (remote_target::open_1): Adjust to use get_current_remote_target.
9759 Heap-allocate remote_target/extended_remote_target instances.
9760 (vcont_builder::vcont_builder): Add remote_target parameter, and
9761 save it in m_remote. All callers adjusted.
9762 (vcont_builder::m_remote): New field.
9763 (vcont_builder::restart, vcont_builder::flush)
9764 (vcont_builder::push_action): Use it.
9765 (remote_target::commit_resume): Use it.
9766 (struct queue_iter_param) <remote>: New field.
9767 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9768 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9769 (check_pending_event_prevents_wildcard_vcont_callback)
9770 (remote_target::check_pending_events_prevent_wildcard_vcont)
9771 (remote_target::discard_pending_stop_replies)
9772 (remote_target::discard_pending_stop_replies_in_queue)
9773 (remote_target::remote_notif_remove_queued_reply): Fill in
9774 'remote' field.
9775 (remote_notif_get_pending_events): New.
9776 (remote_target::readchar, remote_target::remote_serial_write):
9777 Save/restore curr_quit_handler_target.
9778 (putpkt): New.
9779 (kill_new_fork_children): Fill in 'remote' field.
9780 (packet_command): Use get_current_remote_target, defer to
9781 remote_target method of same name.
9782 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9783 parameter, and save it in m_remote. All callers adjusted.
9784 (scoped_remote_fd::release): Use m_remote.
9785 (scoped_remote_fd::m_remote): New field.
9786 (remote_file_put, remote_file_get, remote_file_delete): Use
9787 get_current_remote_target, defer to remote_target method of same
9788 name.
9789 (remote_btrace_reset): Add remote_state paremeter. Update all
9790 callers.
9791 (remote_async_inferior_event_handler). Pass down 'data'.
9792 (remote_new_objfile): Use get_current_remote_target.
9793 (remote_target::vcont_r_supported): New.
9794 (set_range_stepping): Use get_current_remote_target and
9795 remote_target::vcont_r_supported.
9796 (_initialize_remote): Don't allocate 'remote_state' and
9797 'stop_reply_queue' globals.
9798 * remote.h (struct remote_target): Forward declare.
9799 (getpkt, putpkt, remote_notif_get_pending_events): Add
9800 'remote_target' parameter.
9801
9802 2018-05-22 Pedro Alves <palves@redhat.com>
9803
9804 * remote.c (vcont_builder): Now a class. Make all data members
9805 private.
9806 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9807 Declare methods.
9808 (vcont_builder_restart): Rename to ...
9809 (vcont_builder::restart): ... this.
9810 (vcont_builder_flush): Rename to ...
9811 (vcont_builder::flush): ... this.
9812 (vcont_builder_push_action): Rename to ...
9813 (vcont_builder::push_action): ... this.
9814 (remote_target::commit_resume): Adjust.
9815
9816 2018-05-22 Pedro Alves <palves@redhat.com>
9817
9818 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9819 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9820 (get_fixed_memory_packet_size): New.
9821 (get_memory_packet_size): Use it.
9822 (set_memory_packet_size): Don't override the config size with
9823 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9824 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9825 Don't refer to get_memory_packet_size if not connected to a remote
9826 target. Show "(default)" if configured size is 0.
9827
9828 2018-05-22 Pedro Alves <palves@redhat.com>
9829
9830 * remote.c (remote_target::mourn_inferior): Move
9831 discard_pending_stop_replies call here from ...
9832 (_initialize_remote): ... here.
9833
9834 2018-05-22 Pedro Alves <palves@redhat.com>
9835
9836 * remote.c (compare_section_command): Remove set_general_process
9837 call.
9838
9839 2018-05-22 Pedro Alves <palves@redhat.com>
9840
9841 * remote.c (struct packet_reg, struct remote_arch_state):
9842 Move higher up in the file.
9843 (remote_state) <m_arch_states>: Store remote_arch_state values
9844 instead of remote_arch_state pointers.
9845 (remote_state::get_remote_arch_state): Adjust.
9846
9847 2018-05-22 Pedro Alves <palves@redhat.com>
9848
9849 * remote.c: Include <unordered_map>.
9850 (remote_state): Now a class.
9851 (remote_state) <get_remote_arch_state>: Declare method.
9852 <get_remote_arch_state>: New field.
9853 (remote_arch_state) <remote_arch_state>: Declare ctor.
9854 <regs>: Now a unique_ptr.
9855 (remote_gdbarch_data_handle): Delete.
9856 (get_remote_arch_state): Delete.
9857 (remote_state::get_remote_arch_state): New.
9858 (get_remote_state): Adjust to call remote_state's
9859 get_remote_arch_state method.
9860 (init_remote_state): Delete, bits factored out to ...
9861 (remote_arch_state::remote_arch_state): ... this new method.
9862 (get_remote_packet_size, get_memory_packet_size)
9863 (process_g_packet, remote_target::fetch_registers)
9864 (remote_target::prepare_to_store, store_registers_using_G)
9865 (remote_target::store_registers, remote_target::get_trace_status):
9866 Adjust to call remote_state's method.
9867 (_initialize_remote): Remove reference to
9868 remote_gdbarch_data_handle.
9869
9870 2018-05-22 Pedro Alves <palves@redhat.com>
9871
9872 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9873 pread>: New method declarations.
9874 (remote_target::open_1): Adjust.
9875 (readahead_cache_invalidate): Rename to ...
9876 (readahead_cache::invalidate): ... this, and adjust to be a class
9877 method.
9878 (readahead_cache_invalidate_fd): Rename to ...
9879 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9880 class method.
9881 (remote_hostio_pwrite): Adjust.
9882 (remote_hostio_pread_from_cache): Rename to ...
9883 (readahead_cache::pread): ... this, and adjust to be a class
9884 method.
9885 (remote_hostio_close): Adjust.
9886
9887 2018-05-22 Pedro Alves <palves@redhat.com>
9888
9889 * remote.c (remote_hostio_close_cleanup): Delete.
9890 (class scoped_remote_fd): New.
9891 (remote_file_put, remote_file_get): Use it.
9892
9893 2018-05-22 Pedro Alves <palves@redhat.com>
9894
9895 (struct vCont_action_support): Use bool and initialize all fields.
9896 (struct readahead_cache): Initialize all fields.
9897 (remote_state): Use bool and initialize all fields.
9898 (remote_state::remote_state, remote_state::~remote_state): New.
9899 (new_remote_state): Delete.
9900 (_initialize_remote): Use new to allocate remote_state.
9901
9902 2018-05-22 Pedro Alves <palves@redhat.com>
9903 張俊芝 <zjz@zjz.name>
9904
9905 PR gdb/22973
9906 * c-exp.y: Include "c-support.h".
9907 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9908 of tolower. Use c_ident_is_alpha to scan names.
9909 * c-lang.c: Include "c-support.h".
9910 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9911 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9912 * c-support.h: New file, with bits factored out from ...
9913 * cp-name-parser.y: ... this file.
9914 Include "c-support.h".
9915 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9916 c-support.h and renamed.
9917 (symbol_end, yylex): Adjust.
9918
9919 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9920
9921 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9922 parameter type to CORE_ADDR.
9923 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9924 parameter type in declaration to CORE_ADDR.
9925 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9926 target_auxv_search to get AT_HWCAP and use the result to get the
9927 target description.
9928 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9929 to CORE_ADDR. Remove the cast of the return value to unsigned
9930 long. Fix error predicate of target_auxv_search.
9931 (ppc_linux_nat_target::read_description): Change the type of the
9932 hwcap variable to CORE_ADDR.
9933
9934 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9935
9936 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9937 if the size of fpscr is larger than 32 bits.
9938
9939 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9940
9941 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9942 (ppc32_linux_vsxregmap): New global.
9943 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9944 regcache_supply_regset, and regcache_collect_regset.
9945 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9946 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9947 (fetch_vsx_register, store_vsx_register): Remove.
9948 (fetch_vsx_registers): Add regno parameter. Get regset using
9949 ppc_linux_vsxregset. Use regset to supply registers.
9950 (store_vsx_registers): Add regno parameter. Get regset using
9951 ppc_linux_vsxregset. Use regset to collect registers.
9952 (fetch_register): Call fetch_vsx_registers instead of
9953 fetch_vsx_register.
9954 (store_register): Call store_vsx_registers instead of
9955 store_vsx_register.
9956 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9957 new regno parameter.
9958 (store_ppc_registers): Call store_vsx_registers with -1 for the
9959 new regno parameter.
9960 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9961 (ppc_collect_vsxregset): Remove.
9962
9963 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9964
9965 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9966 offset fields.
9967 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9968 for vector register offset fields.
9969 (ppc64_fbsd_reg_offsets): Likewise.
9970 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9971 to vector register offset fields.
9972 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9973 to vector register offset fields.
9974 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9975 vector register offset fields.
9976 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9977 initializers for vector register offset fields.
9978 (rs6000_aix64_reg_offsets): Likewise.
9979 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9980 (ppc_supply_vrregset): Remove.
9981 (ppc_collect_vrregset): Remove.
9982 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9983 (ppc_linux_vrregset) : New function.
9984 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9985 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9986 (ppc32_linux_vrregset): Remove.
9987 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9988 and use result instead of ppc32_linux_vrregset.
9989 (ppc32_linux_reg_offsets): Remove initializers for vector register
9990 offset fields.
9991 (ppc64_linux_reg_offsets): Likewise.
9992 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9993 * ppc-linux-nat.c: Include regset.h.
9994 (gdb_vrregset_t): Adjust comment to account for little-endian
9995 mode.
9996 (supply_vrregset, fill_vrregset): Remove.
9997 (fetch_altivec_register, store_altivec_register): Remove.
9998 (fetch_altivec_registers): Add regno parameter. Get regset using
9999 ppc_linux_vrregset. Use regset to supply registers.
10000 (store_altivec_registers): Add regno parameter. Get regset using
10001 ppc_linux_vrregset. Use regset to collect registers.
10002 (fetch_register): Call fetch_altivec_registers instead of
10003 fetch_altivec_register.
10004 (store_register): Call store_altivec_registers instead of
10005 store_altivec_register.
10006 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
10007 the new regno parameter.
10008 (store_ppc_registers): Call store_altivec_registers with -1 for
10009 the new regno parameter.
10010
10011 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10012
10013 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
10014 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
10015 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
10016 (gdb_vrregset_t): Change array type size to
10017 PPC_LINUX_SIZEOF_VRREGSET.
10018 (gdb_vsxregset_t): Change array type size to
10019 PPC_LINUX_SIZEOF_VSXREGSET.
10020 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
10021 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
10022 PPC_LINUX_SIZEOF_VSXREGSET.
10023
10024 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10025
10026 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
10027 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
10028 nat/ppc-linux.c.
10029 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
10030 ppc_linux_target_wordsize with tid.
10031 (ppc_linux_nat_target::read_description): Call ppc_linux_target
10032 wordsize with tid.
10033 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
10034 (ppc64_64bit_inferior_p): Add static and inline specifiers.
10035 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
10036 tid parameter. Remove static specifier.
10037 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
10038 (ppc_linux_target_wordsize): New declaration.
10039
10040 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10041
10042 * arch/ppc-linux-common.c: New file.
10043 * arch/ppc-linux-common.h: New file.
10044 * arch/ppc-linux-tdesc.h: New file.
10045 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
10046 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
10047 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
10048 arch/ppc-linux-tdesc.h.
10049 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
10050 arch/ppc-linux-tdesc.h.
10051 (ppc_linux_nat_target::read_description): Remove target
10052 description matching code. Fill a ppc_linux_features struct and
10053 call ppc_linux_match_description with it. Move comment about ISA
10054 2.05 to ppc-linux-common.c.
10055 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
10056 arch/ppc-linux-tdesc.h.
10057 (ppc_linux_core_read_description): Remove target description
10058 matching code. Fill a ppc_linux_features struct and call
10059 ppc_linux_match_description with it.
10060 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
10061 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
10062 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
10063 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
10064 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
10065 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
10066 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
10067 (tdesc_powerpc_e500l): Remove.
10068
10069 2018-05-22 Joel Brobecker <brobecker@adacore.com>
10070
10071 * ada-lang.c (catch_assert_command): Pass empty string instead
10072 of NULL for excep_string argument.
10073
10074 2018-05-22 Maciej W. Rozycki <macro@mips.com>
10075
10076 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
10077 the width of the requested register exceeds the width of the
10078 `ptrace' data type.
10079
10080 2018-05-21 Tom Tromey <tom@tromey.com>
10081
10082 * printcmd.c (output_command): Remove.
10083 (output_command_const): Rename to output_command.
10084 * valprint.h (output_command): Rename from output_command_const.
10085 * tracepoint.c (trace_dump_actions): Call output_command.
10086
10087 2018-05-21 Tom Tromey <tom@tromey.com>
10088
10089 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
10090 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
10091 * ada-lang.h (create_ada_exception_catchpoint): Update.
10092 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
10093 std::string.
10094 (create_excep_cond_exprs, ~ada_catchpoint)
10095 (should_stop_exception, print_one_exception)
10096 (print_mention_exception, print_recreate_exception): Update.
10097 (ada_get_next_arg): Remove.
10098 (catch_ada_exception_command_split): Use std::string. Change type
10099 of "excep_string", "cond_string".
10100 (catch_ada_exception_command): Update.
10101 (create_ada_exception_catchpoint): Change type of excep_string.
10102 (ada_exception_sal): Remove excep_string parameter.
10103 (~ada_catchpoint): Remove.
10104
10105 2018-05-21 Tom Tromey <tom@tromey.com>
10106
10107 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
10108 cleanup.
10109
10110 2018-05-21 Tom Tromey <tom@tromey.com>
10111
10112 * ada-lang.c (ada_exception_message_1, ada_exception_message):
10113 Return unique_xmalloc_ptr.
10114 (print_it_exception): Update.
10115
10116 2018-05-21 Tom Tromey <tom@tromey.com>
10117
10118 * tracepoint.c (trace_dump_actions): Use std::string.
10119
10120 2018-05-21 Tom Tromey <tom@tromey.com>
10121
10122 * symfile.c (reread_symbols): Use std::string for original_name.
10123
10124 2018-05-21 Tom Tromey <tom@tromey.com>
10125
10126 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
10127 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
10128 constructor.
10129
10130 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
10131
10132 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
10133 instance to...
10134 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
10135 * objfiles.c (get_objfile_bfd_data): Allocate
10136 objfile_per_bfd_storage with obstack_new when allocating on
10137 obstack.
10138
10139 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
10140
10141 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
10142 OBSTACK_ZALLOC.
10143 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
10144 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
10145 * mdebugread.c (mdebug_build_psymtabs): Likewise.
10146 (add_pending): Likewise.
10147 (parse_symbol): Likewise.
10148 (parse_partial_symbols): Likewise.
10149 (psymtab_to_symtab_1): Likewise.
10150 (new_psymtab): Likewise.
10151 (elfmdebug_build_psymtabs): Likewise.
10152 * minsyms.c (terminate_minimal_symbol_table): Likewise.
10153 * objfiles.c (get_objfile_bfd_data): Likewise.
10154 (objfile_register_static_link): Likewise.
10155 * psymtab.c (allocate_psymtab): Likewise.
10156 * stabsread.c (read_member_functions): Likewise.
10157 * xcoffread.c (xcoff_end_psymtab): Likewise.
10158
10159 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
10160
10161 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
10162 compiler supports std::is_trivially_constructible.
10163 * common/poison.h: Include obstack.h.
10164 (IsMallocable): Define to is_trivially_constructible if the
10165 compiler supports it, define to true_type otherwise.
10166 (xobnew): New.
10167 (XOBNEW): Redefine.
10168 (xobnewvec): New.
10169 (XOBNEWVEC): Redefine.
10170 * gdb_obstack.h (obstack_zalloc): New.
10171 (OBSTACK_ZALLOC): Redefine.
10172 (obstack_calloc): New.
10173 (OBSTACK_CALLOC): Redefine.
10174 (obstack_new): New.
10175 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
10176 (gdbarch_obstack): New declaration in gdbarch.h, definition in
10177 gdbarch.c.
10178 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
10179 obstack_calloc/obstack_zalloc.
10180 (gdbarch_obstack_zalloc): Remove.
10181 * target-descriptions.c (tdesc_data_init): Use obstack_new.
10182
10183 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10184
10185 * stack.c (backtrace_command_1): Remove useless variable int i.
10186
10187 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10188
10189 * stack.c (print_frame_info): Fix comment.
10190
10191 2018-05-18 Tom Tromey <tom@tromey.com>
10192
10193 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
10194 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
10195 (~dwarf2_per_objfile): Update
10196 (dwarf2_get_dwz_file): Use new.
10197 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
10198 unique_ptr.
10199
10200 2018-05-18 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
10203 unique_ptr.
10204 * dwarf2read.c (struct dwp_file): Add constructor and
10205 initializers.
10206 (open_and_init_dwp_file): Return a unique_ptr.
10207 (dwarf2_per_objfile, create_dwp_hash_table)
10208 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
10209 (lookup_dwo_unit_in_dwp): Update.
10210 (open_and_init_dwp_file, get_dwp_file): Update.
10211
10212 2018-05-18 Tom Tromey <tom@tromey.com>
10213
10214 * dwarf2read.c (dwarf2_per_objfile): Update.
10215 (struct mapped_index): Add initializers.
10216 (dwarf2_read_index): Use new.
10217 (dw2_symtab_iter_init): Update.
10218 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
10219 unique_ptr.
10220
10221 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
10222
10223 * dwarf2read.c (mapped_index) <total_size>: Remove.
10224
10225 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
10226
10227 * unittests/format_pieces-selftests.c (test_format_specifier):
10228 Add ARI comments.
10229
10230 2018-05-18 Tom Tromey <tom@tromey.com>
10231
10232 * c-typeprint.c (maybe_print_hole): New function.
10233 (c_print_type_struct_field_offset): Update.
10234 (c_type_print_base_struct_union): Call maybe_print_hole.
10235
10236 2018-05-17 Keith Seitz <keiths@redhat.com>
10237
10238 * breakpoint.c (build_bpstat_chain): New function, moved from
10239 bpstat_stop_status.
10240 (bpstat_stop_status): Add optional parameter, `stop_chain'.
10241 If no stop chain is passed, call build_bpstat_chain to build it.
10242 * breakpoint.h (build_bpstat_chain): Declare.
10243 (bpstat_stop_status): Move documentation here from breakpoint.c.
10244 * infrun.c (handle_signal_stop): Before eliding inlined frames,
10245 build the stop chain and pass it to skip_inline_frames.
10246 Pass this stop chain to bpstat_stop_status.
10247 * inline-frame.c: Include breakpoint.h.
10248 (stopped_by_user_bp_inline_frame): New function.
10249 (skip_inline_frames): Add parameter `stop_chain'.
10250 Move documention to inline-frame.h.
10251 If non-NULL, use stopped_by_user_bp_inline_frame to determine
10252 whether the frame should be elided.
10253 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
10254 Add moved documentation and update for new parameter.
10255
10256 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
10257
10258 PR cli/14975
10259 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10260 unittests/format_pieces-selftests.c.
10261 * common/format.h (format_piece) <operator==>: New.
10262 (format_pieces) <operator[]>: Remove.
10263 * common/format.c (format_pieces::format_pieces): Handle \e.
10264 * unittests/format_pieces-selftests.c: New.
10265
10266 2018-05-17 Tom Tromey <tom@tromey.com>
10267
10268 PR symtab/23010:
10269 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
10270 (dw2_instantiate_symtab): Add skip_partial parameter.
10271 (dw2_find_last_source_symtab, dw2_map_expand_apply)
10272 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
10273 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
10274 (dw2_expand_symtabs_matching_one)
10275 (dw2_find_pc_sect_compunit_symtab)
10276 (dw2_debug_names_lookup_symbol)
10277 (dw2_debug_names_expand_symtabs_for_function): Update.
10278 (init_cutu_and_read_dies): Add skip_partial parameter.
10279 (process_psymtab_comp_unit, build_type_psymtabs_1)
10280 (process_skeletonless_type_unit, load_partial_comp_unit)
10281 (psymtab_to_symtab_1): Update.
10282 (load_full_comp_unit): Add skip_partial parameter.
10283 (process_imported_unit_die, dwarf2_read_addr_index)
10284 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
10285 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
10286 (read_signatured_type): Update.
10287
10288 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
10289
10290 * value.c (release_value): Remove unused variable.
10291 (record_latest_value): Likewise.
10292 (access_value_history): Likewise.
10293 (preserve_values): Likewise.
10294
10295 2018-05-17 Tom Tromey <tom@tromey.com>
10296
10297 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
10298 Initialize.
10299
10300 2018-05-16 Maciej W. Rozycki <macro@mips.com>
10301
10302 PR gdb/22286
10303 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
10304 Also handle registers whose width is not a multiple of
10305 PTRACE_TYPE_RET.
10306 (linux_nat_trad_target::store_register): Likewise.
10307
10308 2018-05-16 Tom Tromey <tom@tromey.com>
10309
10310 * gdbcore.h (core_bfd): Redefine.
10311 * corelow.c (core_target::close): Update.
10312 (core_target_open): Update.
10313 * progspace.h (struct program_space) <cbfd>: Now a
10314 gdb_bfd_ref_ptr.
10315
10316 2018-05-16 Tom Tromey <tom@tromey.com>
10317
10318 PR cli/19551:
10319 * symfile-add-flags.h (enum symfile_add_flags)
10320 <SYMFILE_NOT_FILENAME>: New constant.
10321 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
10322 objfile name from BFD.
10323 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
10324 * minidebug.c (find_separate_debug_file_in_section): Put
10325 ".gnu_debugdata" into BFD's file name.
10326
10327 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
10328
10329 * regcache.c (regcache_read_ftype, regcache_write_ftype):
10330 Remove.
10331
10332 2018-05-15 Tamar Christina <tamar.christina@arm.com>
10333
10334 PR binutils/21446
10335 * aarch64-tdep.c (aarch64_analyze_prologue,
10336 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
10337 Indicate not interested in errors.
10338
10339 2018-05-15 Maciej W. Rozycki <macro@mips.com>
10340
10341 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
10342 Supply the MIPS_ZERO_REGNUM register.
10343
10344 2018-05-15 Maciej W. Rozycki <macro@mips.com>
10345
10346 * mips-tdep.c (mask_address_var): Make variable static.
10347
10348 2018-05-14 Tom Tromey <tom@tromey.com>
10349
10350 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
10351
10352 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
10353
10354 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
10355 FXSAVE_ADDR for the mxcsr register.
10356
10357 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
10358
10359 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
10360
10361 2018-05-11 Pedro Alves <palves@redhat.com>
10362
10363 * corelow.c (core_target) <core_target>: No longer inline.
10364 Initialize m_core_gdbarch, m_core_vec and build the section table
10365 here.
10366 <~core_target>: New.
10367 <core_gdbarch, get_core_register_section>: New methods.
10368 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
10369 factored out from ...
10370 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
10371 (core_ops): Delete.
10372 (sniff_core_bfd): Add gdbarch parameter.
10373 (core_close): Delete, merged into ...
10374 (core_target::close): ... here. Delete self.
10375 (core_close_cleanup): Delete.
10376 (core_target_open): Allocate a core_target on the heap. Use a
10377 unique_ptr instead of a cleanup. Bits moved into the core_target
10378 ctor. Adjust to use core_target methods instead of globals.
10379 (get_core_register_section): Rename to ...
10380 (core_target::get_core_register_section): ... this and adjust.
10381 (struct get_core_registers_cb_data): New.
10382 (get_core_registers_cb): Use it. Use bool.
10383 (core_target::fetch_registers, core_target::files_info)
10384 (core_target::xfer_partial, core_target::read_description)
10385 (core_target::pid_to, core_target::thread_name): Adjust to
10386 reference class fields instead of globals.
10387 * target.h (struct target_ops_deleter, target_ops_up): New.
10388
10389 2018-05-11 Pedro Alves <palves@redhat.com>
10390
10391 * corefile.c (core_file_command): Move to corelow.c.
10392 * corelow.c (the_core_target): Delete.
10393 (core_file_command): Moved from corefile.c. Check exec_bfd
10394 instead of the_core_target. Use target_detach instead of calling
10395 into the_core_target directly.
10396 (maybe_say_no_core_file_now): New.
10397 (core_target::detach): Use it.
10398 (_initialize_corelow): Remove references to the_core_target.
10399 * gdbcore.h (the_core_target): Delete.
10400
10401 2018-05-11 Tom Tromey <tromey@redhat.com>
10402 Pedro Alves <palves@redhat.com>
10403
10404 * corefile.c (core_bfd): Remove.
10405 * gdbcore.h (core_bfd): Now a macro.
10406 * progspace.h (struct program_space) <cbfd>: New field.
10407
10408 2018-05-11 Tom Tromey <tom@tromey.com>
10409
10410 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
10411 gdb::def_vector.
10412
10413 2018-05-10 Tom Tromey <tom@tromey.com>
10414
10415 * configure: Rebuild.
10416 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
10417
10418 2018-05-10 Joel Brobecker <brobecker@adacore.com>
10419
10420 PR server/23158:
10421 * regformats/regdat.sh: Adjust script, following the addition
10422 of the new expedite_regs parameter to init_target_desc.
10423
10424 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
10425
10426 PR gdb/23127
10427 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
10428 set_gdbarch_significant_addr_bit.
10429 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
10430 set_gdbarch_significant_addr_bit.
10431 * utils.c (address_significant): Update to sign extend addr.
10432
10433 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
10434
10435 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
10436 (xtensa_linux_init_abi): Limit tdep->num_regs by
10437 tdep->num_nopriv_regs.
10438 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
10439 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
10440 not initialized.
10441
10442 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
10443
10444 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
10445
10446 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
10449 (I387_MXCSR_INIT_VAL): New constant.
10450 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
10451 buffer if it was supplied by the inferior.
10452 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
10453 (i387_xsave_get_clear_bv): New function.
10454 (i387_supply_xsave): Only read x87 control registers from the
10455 xsave buffer if the feature is enabled, and the state will have
10456 been written, otherwise, provide a suitable default.
10457 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
10458 including x87 control registers. Update control registers if they
10459 have changed from the default value, and mark features as enabled
10460 as required.
10461 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
10462
10463 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
10464
10465 * spu-tdep.c (info_spu_event_command): Fix output formatting.
10466
10467 2018-05-07 Tom Tromey <tom@tromey.com>
10468
10469 * configure: Rebuild.
10470 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10471
10472 2018-05-07 Tom Tromey <tom@tromey.com>
10473
10474 PR tdep/20362:
10475 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10476 bit. Use correct value for VDIV.
10477
10478 2018-05-04 Tom Tromey <tom@tromey.com>
10479
10480 * configure: Rebuild.
10481 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10482
10483 2018-05-04 Tom Tromey <tom@tromey.com>
10484
10485 * linux-record.c (record_linux_system_call) <case
10486 RECORD_SYS_RECVFROM>: Add "break".
10487
10488 2018-05-04 Tom Tromey <tom@tromey.com>
10489
10490 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10491 Add missing "break".
10492 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10493 Add missing "break".
10494
10495 2018-05-04 Tom Tromey <tom@tromey.com>
10496
10497 * rs6000-tdep.c (ppc_process_record_op4)
10498 (ppc_process_record_op63): Add fall-through comment.
10499
10500 2018-05-04 Tom Tromey <tom@tromey.com>
10501
10502 * i386-tdep.c (i386_process_record): Add fall-through comment.
10503
10504 2018-05-04 Tom Tromey <tom@tromey.com>
10505
10506 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10507 comment.
10508
10509 2018-05-04 Tom Tromey <tom@tromey.com>
10510
10511 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10512 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10513 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10514 comment.
10515 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10516 comment.
10517 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10518 comment.
10519
10520 2018-05-04 Tom Tromey <tom@tromey.com>
10521
10522 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10523
10524 2018-05-04 Tom Tromey <tom@tromey.com>
10525
10526 * s390-tdep.c (s390_process_record): Fix fall-through comments.
10527 * xcoffread.c (scan_xcoff_symtab): Move comment later.
10528 * symfile.c (section_is_mapped): Fix fall-through comment.
10529 * stabsread.c (define_symbol, read_member_functions): Fix
10530 fall-through comment.
10531 * s390-linux-tdep.c (s390_process_record): Fix fall-through
10532 comment.
10533 * remote.c (remote_wait_as): Fix fall-through comment.
10534 * p-exp.y (yylex): Fix fall-through comment.
10535 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10536 comment.
10537 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10538 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10539 * jv-exp.y (yylex): Fix fall-through comment.
10540 * go-exp.y (lex_one_token): Fix fall-through comment.
10541 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10542 fall-through comment.
10543 * f-exp.y (yylex): Fix fall-through comment.
10544 * dwarf2read.c (process_die): Fix fall-through comments.
10545 * dbxread.c (process_one_symbol): Fix fall-through comment.
10546 * d-exp.y (lex_one_token): Fix fall-through comment.
10547 * cp-name-parser.y (yylex): Fix fall-through comment.
10548 * coffread.c (coff_symtab_read): Fix fall-through comment.
10549 * c-exp.y (lex_one_token): Fix fall-through comment.
10550 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10551 comment.
10552 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10553 comment.
10554
10555 2018-05-04 Tom Tromey <tom@tromey.com>
10556
10557 PR python/22730:
10558 * NEWS: Mention gdb.execute change.
10559 * gdbcmd.h (execute_control_command): Don't declare.
10560 * python/python.c (execute_gdb_command): Use read_command_lines_1,
10561 execute_control_commands, execute_control_commands_to_string.
10562 * cli/cli-script.h (execute_control_commands)
10563 (execute_control_commands_to_string): Declare.
10564 (execute_control_command): Add from_tty parameter.
10565 * cli/cli-script.c (execute_control_commands)
10566 (execute_control_commands_to_string): New functions.
10567 (execute_user_command): Use execute_control_commands.
10568 (execute_control_command_1): Add "from_tty" parameter. Update.
10569 (execute_control_command): Likewise.
10570
10571 2018-05-04 Tom Tromey <tom@tromey.com>
10572
10573 PR python/22731:
10574 * NEWS: Mention that breakpoint commands are writable.
10575 * python/py-breakpoint.c (bppy_set_commands): New function.
10576 (breakpoint_object_getset) <"commands">: Use it.
10577
10578 2018-05-04 Tom Tromey <tom@tromey.com>
10579
10580 * tracepoint.c (actions_command): Update.
10581 * mi/mi-cmd-break.c (mi_command_line_array)
10582 (mi_command_line_array_cnt, mi_command_line_array_ptr)
10583 (mi_read_next_line): Remove.
10584 (mi_cmd_break_commands): Update.
10585 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10586 function_view.
10587 * cli/cli-script.c (get_command_line): Update.
10588 (process_next_line): Use function_view. Constify.
10589 (recurse_read_control_structure, read_command_lines)
10590 (read_command_lines_1): Change argument types to function_view.
10591 (do_define_command, document_command): Update.
10592 * breakpoint.h (check_tracepoint_command): Don't declare.
10593 * breakpoint.c (check_tracepoint_command): Remove.
10594 (commands_command_1, create_tracepoint_from_upload): Update.
10595
10596 2018-05-04 Tom Tromey <tom@tromey.com>
10597
10598 PR gdb/11750:
10599 * cli/cli-script.h (enum command_control_type) <define_control>:
10600 New constant.
10601 * cli/cli-script.c (multi_line_command_p): Handle define_control.
10602 (build_command_line, execute_control_command_1)
10603 (process_next_line): Likewise.
10604 (do_define_command): New function, extracted from define_command.
10605 (define_command): Use it.
10606
10607 2018-05-04 Tom Tromey <tom@tromey.com>
10608
10609 * tracepoint.c (actions_command): Update.
10610 * cli/cli-script.h (read_command_lines): Update.
10611 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10612 (MAX_TMPBUF): Remove define.
10613 (define_command): Use string_printf.
10614 (document_command): Likewise.
10615 * breakpoint.c (commands_command_1): Update.
10616
10617 2018-05-04 Tom Tromey <tom@tromey.com>
10618
10619 * top.c (execute_command): Update.
10620 * cli/cli-script.h (print_command_lines): Now varargs.
10621 * cli/cli-script.c (print_command_lines): Now varargs.
10622 (execute_control_command_1) <case while_control, case if_control>:
10623 Update.
10624
10625 2018-05-04 Tom Tromey <tom@tromey.com>
10626
10627 * tracepoint.c (all_tracepoint_actions): Rename from
10628 all_tracepoint_actions_and_cleanup. Change return type.
10629 (actions_command, encode_actions_1, encode_actions)
10630 (trace_dump_actions, tdump_command): Update.
10631 * remote.c (remote_download_command_source): Update.
10632 * python/python.c (gdbpy_eval_from_control_command)
10633 (python_command, python_interactive_command): Update.
10634 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10635 * guile/guile.c (guile_command)
10636 (gdbscm_eval_from_control_command, guile_command): Update.
10637 * compile/compile.c (compile_code_command)
10638 (compile_print_command, compile_to_object): Update.
10639 * cli/cli-script.h (struct command_lines_deleter): New.
10640 (counted_command_line): New typedef.
10641 (struct command_line): Add constructor, destructor.
10642 <body_list>: Remove.
10643 <body_list_0, body_list_1>: New members.
10644 (command_line_up): Remove typedef.
10645 (read_command_lines, read_command_lines_1, get_command_line):
10646 Update.
10647 (copy_command_lines): Don't declare.
10648 * cli/cli-script.c (build_command_line): Use "new".
10649 (get_command_line): Return counted_command_line.
10650 (print_command_lines, execute_user_command)
10651 (execute_control_command_1, while_command, if_command): Update.
10652 (realloc_body_list): Remove.
10653 (process_next_line, recurse_read_control_structure): Update.
10654 (read_command_lines, read_command_lines_1): Return counted_command_line.
10655 (free_command_lines): Use "delete".
10656 (copy_command_lines): Remove.
10657 (define_command, document_command, show_user_1): Update.
10658 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10659 a counted_command_line.
10660 * breakpoint.h (counted_command_line): Remove typedef.
10661 (breakpoint_set_commands): Update.
10662 * breakpoint.c (check_no_tracepoint_commands)
10663 (validate_commands_for_breakpoint): Update.
10664 (breakpoint_set_commands): Change commands to be a
10665 counted_command_line.
10666 (commands_command_1, update_dprintf_command_list)
10667 (create_tracepoint_from_upload): Update.
10668
10669 2018-05-04 Tom Tromey <tom@tromey.com>
10670
10671 * cli/cli-decode.h (cmd_list_element): New constructor.
10672 (~cmd_list_element): New destructor.
10673 (struct cmd_list_element): Add initializers.
10674 * cli/cli-decode.c (do_add_cmd): Use "new".
10675 (delete_cmd): Use "delete".
10676
10677 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10678 Pedro Alves <palves@redhat.com>
10679
10680 PR breakpoints/19806 and support for PR external/20207.
10681 * NEWS: Mention Aarch64 watchpoint improvements.
10682 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10683 watchpoints and PR external/20207 watchpoints.
10684 * nat/aarch64-linux-hw-point.c
10685 (kernel_supports_any_contiguous_range): New.
10686 (aarch64_watchpoint_offset): New.
10687 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10688 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10689 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10690 (aarch64_align_watchpoint): New parameters aligned_offset_p and
10691 next_addr_orig_p. Support PR external/20207 watchpoints.
10692 (aarch64_downgrade_regs): New.
10693 (aarch64_dr_state_insert_one_point): New parameters offset and
10694 addr_orig.
10695 (aarch64_dr_state_remove_one_point): Likewise.
10696 (aarch64_handle_breakpoint): Update caller.
10697 (aarch64_handle_aligned_watchpoint): Likewise.
10698 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10699 aligned_offset.
10700 (aarch64_linux_set_debug_regs): Remove const from state. Call
10701 aarch64_downgrade_regs.
10702 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10703 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10704 (DR_CONTROL_MASK): ... this.
10705 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10706 (unsigned int aarch64_watchpoint_offset): New prototype.
10707 (aarch64_linux_set_debug_regs): Remove const from state.
10708 * utils.c (align_up, align_down): Move to ...
10709 * common/common-utils.c (align_up, align_down): ... here.
10710 * utils.h (align_up, align_down): Move to ...
10711 * common/common-utils.h (align_up, align_down): ... here.
10712
10713 2018-05-04 Joel Brobecker <brobecker@adacore.com>
10714
10715 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10716 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10717 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10718 Re-implement to match the ABI as summarized in GCC's
10719 gcc/config/sparc/sparc.c. All callers updated.
10720 (sparc32_store_arguments): Remove assertion.
10721
10722 2018-05-04 Tom Tromey <tom@tromey.com>
10723
10724 * printcmd.c: Don't include tui.h.
10725 (decode_format): Use skip_spaces.
10726
10727 2018-05-04 Tom Tromey <tom@tromey.com>
10728
10729 PR gdb/22619:
10730 * printcmd.c (last_count): New global.
10731 (x_command): Use saved count when repeating.
10732
10733 2018-05-04 Tom Tromey <tom@tromey.com>
10734
10735 * nto-procfs.c (do_closedir_cleanup): Remove.
10736 (procfs_pidlist): Use gdb_dir_up.
10737 * procfs.c (do_closedir_cleanup): Remove.
10738 (proc_update_threads): Use gdb_dir_up.
10739 * common/filestuff.h (struct gdb_dir_deleter): New.
10740 (gdb_dir_up): New typedef.
10741
10742 2018-05-04 Tom Tromey <tom@tromey.com>
10743
10744 * ada-lang.c (print_mention_exception): Use std::string.
10745
10746 2018-05-04 Tom Tromey <tom@tromey.com>
10747
10748 * ada-lang.c (create_excep_cond_exprs): Update.
10749 (ada_exception_catchpoint_cond_string): Use std::string.
10750
10751 2018-05-04 Tom Tromey <tom@tromey.com>
10752
10753 * ada-lang.c (xget_renaming_scope): Return std::string.
10754 (old_renaming_is_invisible): Update.
10755
10756 2018-05-04 Tom Tromey <tom@tromey.com>
10757
10758 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10759 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10760
10761 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10762
10763 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10764
10765 2018-05-04 Tom Tromey <tom@tromey.com>
10766
10767 * remote.c (remote_query_supported_append): Change type.
10768 (remote_check_symbols): Update.
10769
10770 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10771
10772 PR gdb/11420
10773 * configure.ac: Prepend libpython.
10774 * python/python-config.py: Likewise.
10775 * configure: Regenerate.
10776
10777 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10778
10779 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10780
10781 2018-05-03 Pedro Alves <palves@redhat.com>
10782
10783 * s390-linux-nat.c
10784 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10785 override. Write 'true' instead of '1'.
10786 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10787 declaration.
10788
10789 2018-05-02 Pedro Alves <palves@redhat.com>
10790
10791 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10792 add_inf_child_target.
10793 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10794 add_inf_child_target.
10795 * aix-thread.c (aix_thread_target_info): New.
10796 (aix_thread_target) <shortname, longname, doc>: Delete.
10797 <info>: New.
10798 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10799 add_inf_child_target.
10800 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10801 add_inf_child_target.
10802 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10803 add_inf_child_target.
10804 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10805 add_inf_child_target.
10806 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10807 add_inf_child_target.
10808 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10809 add_inf_child_target.
10810 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10811 add_inf_child_target.
10812 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10813 add_inf_child_target.
10814 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10815 add_inf_child_target.
10816 * bfd-target.c (target_bfd_target_info): New.
10817 (target_bfd) <shortname, longname, doc>: Delete.
10818 <info>: New.
10819 * bsd-kvm.c (bsd_kvm_target_info): New.
10820 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10821 <info>: New.
10822 (bsd_kvm_target::open): Rename to ...
10823 (bsd_kvm_target_open): ... this. Adjust.
10824 * bsd-uthread.c (bsd_uthread_target_info): New.
10825 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10826 <info>: New.
10827 * corefile.c (core_file_command): Adjust.
10828 * corelow.c (core_target_info): New.
10829 (core_target) <shortname, longname, doc>: Delete.
10830 <info>: New.
10831 (core_target::open): Rename to ...
10832 (core_target_open): ... this. Adjust.
10833 * ctf.c (ctf_target_info): New.
10834 (ctf_target) <shortname, longname, doc>: Delete.
10835 <info>: New.
10836 (ctf_target::open): Rename to ...
10837 (ctf_target_open): ... this.
10838 (_initialize_ctf): Adjust.
10839 * exec.c (exec_target_info): New.
10840 (exec_target) <shortname, longname, doc>: Delete.
10841 <info>: New.
10842 (exec_target::open): Rename to ...
10843 (exec_target_open): ... this.
10844 * gdbcore.h (core_target_open): Declare.
10845 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10846 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10847 add_inf_child_target.
10848 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10849 add_inf_child_target.
10850 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10851 add_inf_child_target.
10852 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10853 add_inf_child_target.
10854 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10855 add_inf_child_target.
10856 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10857 add_inf_child_target.
10858 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10859 add_inf_child_target.
10860 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10861 add_inf_child_target.
10862 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10863 add_inf_child_target.
10864 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10865 add_inf_child_target.
10866 * inf-child.c (inf_child_target_info): New.
10867 (inf_child_target::info): New.
10868 (inf_child_open_target): Remove 'target' parameter. Use
10869 get_native_target instead.
10870 (inf_child_target::open): Delete.
10871 (add_inf_child_target): New.
10872 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10873 Delete.
10874 <info>: New.
10875 (add_inf_child_target): Declare.
10876 (inf_child_open_target): Declare.
10877 * linux-thread-db.c (thread_db_target_info): New.
10878 (thread_db_target) <shortname, longname, doc>: Delete.
10879 <info>: New.
10880 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10881 add_inf_child_target.
10882 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10883 add_inf_child_target.
10884 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10885 add_inf_child_target.
10886 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10887 add_inf_child_target.
10888 * make-target-delegates (print_class): Adjust.
10889 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10890 add_inf_child_target.
10891 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10892 add_inf_child_target.
10893 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10894 add_inf_child_target.
10895 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10896 add_inf_child_target.
10897 * nto-procfs.c (nto_native_target_info): New.
10898 (nto_procfs_target_native) <shortname, longname, doc>:
10899 Delete.
10900 <info>: New.
10901 (nto_procfs_target_info): New.
10902 (nto_procfs_target_procfs) <shortname, longname, doc>:
10903 Delete.
10904 <info>: New.
10905 (init_procfs_targets): Adjust.
10906 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10907 add_inf_child_target.
10908 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10909 add_inf_child_target.
10910 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10911 add_inf_child_target.
10912 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10913 add_inf_child_target.
10914 * ravenscar-thread.c (ravenscar_target_info): New.
10915 (ravenscar_thread_target) <shortname, longname, doc>:
10916 Delete.
10917 <info>: New.
10918 * record-btrace.c (record_btrace_target_info):
10919 (record_btrace_target) <shortname, longname, doc>: Delete.
10920 <info>: New.
10921 (record_btrace_target::open): Rename to ...
10922 (record_btrace_target_open): ... this. Adjust.
10923 * record-full.c (record_longname, record_doc): New.
10924 (record_full_base_target) <shortname, longname, doc>: Delete.
10925 <info>: New.
10926 (record_full_target_info): New.
10927 (record_full_target): <shortname>: Delete.
10928 <info>: New.
10929 (record_full_core_open_1, record_full_open_1): Update comments.
10930 (record_full_base_target::open): Rename to ...
10931 (record_full_open): ... this.
10932 (cmd_record_full_restore): Update.
10933 (_initialize_record_full): Update.
10934 * remote-sim.c (remote_sim_target_info): New.
10935 (gdbsim_target) <shortname, longname, doc>: Delete.
10936 <info>: New.
10937 (gdbsim_target::open): Rename to ...
10938 (gdbsim_target_open): ... this.
10939 (_initialize_remote_sim): Adjust.
10940 * remote.c (remote_doc): New.
10941 (remote_target_info): New.
10942 (remote_target) <shortname, longname, doc>: Delete.
10943 <info>: New.
10944 (extended_remote_target_info): New.
10945 (extended_remote_target) <shortname, longname, doc>: Delete.
10946 <info>: New.
10947 (remote_target::open_1): Make static. Adjust.
10948 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10949 * s390-linux-nat.c (_initialize_s390_nat): Use
10950 add_inf_child_target.
10951 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10952 add_inf_child_target.
10953 * sol-thread.c (thread_db_target_info): New.
10954 (sol_thread_target) <shortname, longname, doc>: Delete.
10955 <info>: New.
10956 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10957 add_inf_child_target.
10958 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10959 add_inf_child_target.
10960 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10961 add_inf_child_target.
10962 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10963 add_inf_child_target.
10964 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10965 add_inf_child_target.
10966 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10967 add_inf_child_target.
10968 * spu-linux-nat.c (_initialize_spu_nat): Use
10969 add_inf_child_target.
10970 * spu-multiarch.c (spu_multiarch_target_info): New.
10971 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10972 <info>: New.
10973 * target-delegates.c: Regenerate.
10974 * target.c: Include <unordered_map>.
10975 (target_ops_p): Delete.
10976 (DEF_VEC_P(target_ops_p)): Delete.
10977 (target_factories): New.
10978 (test_target_info): New.
10979 (test_target_ops::info): New.
10980 (open_target): Adjust to use target_factories.
10981 (add_target_with_completer): Rename to ...
10982 (add_target): ... this. Change prototype. Register target_info
10983 and open callback in target_factories. Register target_info in
10984 command context instead of target_ops.
10985 (add_target): Delete old implementation.
10986 (add_deprecated_target_alias): Change prototype. Adjust.
10987 (the_native_target): New.
10988 (set_native_target, get_native_target): New.
10989 (find_default_run_target): Use the_native_target.
10990 (find_attach_target, find_run_target): Simplify.
10991 (target_ops::open): Delete.
10992 (dummy_target_info): New.
10993 (dummy_target::shortname, dummy_target::longname)
10994 (dummy_target::doc): Delete.
10995 (dummy_target::info): New.
10996 (debug_target::shortname, debug_target::longname)
10997 (debug_target::doc): Delete.
10998 (debug_target::info): New.
10999 * target.h (struct target_info): New.
11000 (target_ops::~target_ops): Add comment.
11001 (target_ops::info): New.
11002 (target_ops::shortname, target_ops::longname, target_ops::doc): No
11003 longer virtual. Implement in terms of target_info.
11004 (set_native_target, get_native_target): Declare.
11005 (target_open_ftype): New.
11006 (add_target, add_target_with_completer)
11007 (add_deprecated_target_alias): Change prototype.
11008 (test_target) <shortname, longname, doc>: Delete.
11009 <info>: New.
11010 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
11011 add_inf_child_target.
11012 * tracefile-tfile.c (tfile_target_info): New.
11013 (tfile_target) <shortname, longname, doc>: Delete.
11014 <info>: New.
11015 (tfile_target::open): Rename to ...
11016 (tfile_target_open): ... this.
11017 (_initialize_tracefile_tfile): Adjust.
11018 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
11019 add_inf_child_target.
11020 * windows-nat.c (_initialize_windows_nat): Use
11021 add_inf_child_target.
11022 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
11023 add_inf_child_target.
11024
11025 2018-05-02 Pedro Alves <palves@redhat.com>
11026
11027 * linux-nat.h (linux_nat_target) <low_new_thread,
11028 low_delete_thread, low_new_fork, low_forget_process,
11029 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
11030 New virtual methods.
11031 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
11032 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
11033 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
11034 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
11035 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
11036 Delete.
11037 * linux-fork.c (delete_fork): Adjust to call low method.
11038 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
11039 (linux_nat_new_fork, linux_nat_forget_process_hook)
11040 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
11041 (linux_nat_status_is_event):
11042 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
11043 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
11044 to call low method.
11045 (sigtrap_is_event): Rename to ...
11046 (linux_nat_target::low_status_is_event): ... this.
11047 (linux_nat_set_status_is_event): Delete.
11048 (save_stop_reason, linux_nat_wait_1)
11049 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
11050 low methods.
11051 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
11052 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11053 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
11054 (linux_nat_set_prepare_to_resume): Delete.
11055 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
11056 low virtual methods.
11057 * amd64-linux-nat.c: Likewise.
11058 * arm-linux-nat.c: Likewise.
11059 * i386-linux-nat.c: Likewise.
11060 * ia64-linux-nat.c: Likewise.
11061 * mips-linux-nat.c: Likewise.
11062 * ppc-linux-nat.c: Likewise.
11063 * s390-linux-nat.c: Likewise.
11064 * sparc64-linux-nat.c: Likewise.
11065 * x86-linux-nat.c: Likewise.
11066 * x86-linux-nat.h: Include "nat/x86-linux.h".
11067 (x86_linux_nat_target) <low_new_fork, low_forget_process,
11068 low_prepare_to_resume, low_new_thread, low_delete_thread>:
11069 Override methods.
11070
11071 2018-05-02 Pedro Alves <palves@redhat.com>
11072
11073 * target.h (target_ops)
11074 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11075 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
11076 stopped_by_watchpoint, have_continuable_watchpoint,
11077 stopped_data_address, watchpoint_addr_within_range,
11078 can_accel_watchpoint_condition, can_run, thread_alive,
11079 has_all_memory, has_memory, has_stack, has_registers,
11080 has_execution, can_async_p, is_async_p, supports_non_stop,
11081 always_non_stop_p, can_execute_reverse, supports_multi_process,
11082 supports_enable_disable_tracepoint,
11083 supports_disable_randomization, supports_string_tracing,
11084 supports_evaluation_of_breakpoint_conditions,
11085 can_run_breakpoint_commands, filesystem_is_local,
11086 can_download_tracepoint, get_trace_state_variable_value,
11087 set_trace_notes, get_tib_address, use_agent, can_use_agent,
11088 record_is_replaying, record_will_replay,
11089 augmented_libraries_svr4_read>: Adjust to return bool.
11090 * aarch64-linux-nat.c: All implementations adjusted.
11091 * aix-thread.c: All implementations adjusted.
11092 * arm-linux-nat.c: All implementations adjusted.
11093 * breakpoint.c: All implementations adjusted.
11094 * bsd-kvm.c: All implementations adjusted.
11095 * bsd-uthread.c: All implementations adjusted.
11096 * corelow.c: All implementations adjusted.
11097 * ctf.c: All implementations adjusted.
11098 * darwin-nat.c: All implementations adjusted.
11099 * darwin-nat.h: All implementations adjusted.
11100 * exec.c: All implementations adjusted.
11101 * fbsd-nat.c: All implementations adjusted.
11102 * fbsd-nat.h: All implementations adjusted.
11103 * gnu-nat.c: All implementations adjusted.
11104 * gnu-nat.h: All implementations adjusted.
11105 * go32-nat.c: All implementations adjusted.
11106 * ia64-linux-nat.c: All implementations adjusted.
11107 * inf-child.c: All implementations adjusted.
11108 * inf-child.h: All implementations adjusted.
11109 * inf-ptrace.c: All implementations adjusted.
11110 * inf-ptrace.h: All implementations adjusted.
11111 * linux-nat.c: All implementations adjusted.
11112 * linux-nat.h: All implementations adjusted.
11113 * mips-linux-nat.c: All implementations adjusted.
11114 * nto-procfs.c: All implementations adjusted.
11115 * ppc-linux-nat.c: All implementations adjusted.
11116 * procfs.c: All implementations adjusted.
11117 * ravenscar-thread.c: All implementations adjusted.
11118 * record-btrace.c: All implementations adjusted.
11119 * record-full.c: All implementations adjusted.
11120 * remote-sim.c: All implementations adjusted.
11121 * remote.c: All implementations adjusted.
11122 * s390-linux-nat.c: All implementations adjusted.
11123 * sol-thread.c: All implementations adjusted.
11124 * spu-multiarch.c: All implementations adjusted.
11125 * target-delegates.c: All implementations adjusted.
11126 * target.c: All implementations adjusted.
11127 * target.h: All implementations adjusted.
11128 * tracefile-tfile.c: All implementations adjusted.
11129 * tracefile.c: All implementations adjusted.
11130 * tracefile.h: All implementations adjusted.
11131 * windows-nat.c: All implementations adjusted.
11132 * x86-linux-nat.h: All implementations adjusted.
11133 * x86-nat.h: All implementations adjusted.
11134
11135 2018-05-02 Pedro Alves <palves@redhat.com>
11136
11137 * make-target-delegates (scan_target_h): Don't trim lines here.
11138 Replace sequences of tabs and/or whitespace with a single
11139 whitespace.
11140 (top level, parsing methods): Trim each line before processing it
11141 here.
11142
11143 2018-05-02 Pedro Alves <palves@redhat.com>
11144 John Baldwin <jhb@freebsd.org>
11145
11146 * target.h (enum strata) <debug_stratum>: New.
11147 (struct target_ops) <all delegation methods>: Replace by C++
11148 virtual methods, and drop "to_" prefix. All references updated
11149 throughout.
11150 <to_shortname, to_longname, to_doc, to_data,
11151 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
11152 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
11153 virtual methods. All references updated throughout.
11154 <can_attach, supports_terminal_ours, can_create_inferior,
11155 get_thread_control_capabilities, attach_no_wait>: New
11156 virtual methods.
11157 <insert_breakpoint, remove_breakpoint>: Now
11158 TARGET_DEFAULT_NORETURN methods.
11159 <info_proc>: Now returns bool.
11160 <to_magic>: Delete.
11161 (OPS_MAGIC): Delete.
11162 (current_target): Delete. All references replaced by references
11163 to ...
11164 (target_stack): ... this. New.
11165 (target_shortname, target_longname): Adjust.
11166 (target_can_run): Now a function declaration.
11167 (default_child_has_all_memory, default_child_has_memory)
11168 (default_child_has_stack, default_child_has_registers)
11169 (default_child_has_execution): Remove target_ops parameter.
11170 (complete_target_initialization): Delete.
11171 (memory_breakpoint_target): New template class.
11172 (test_target_ops): Refactor as a C++ class with virtual methods.
11173 * make-target-delegates (NAME_PART): Tighten.
11174 (POINTER_PART, CP_SYMBOL): New.
11175 (SIMPLE_RETURN_PART): Reimplement.
11176 (VEC_RETURN_PART): Expect less.
11177 (RETURN_PART, VIRTUAL_PART): New.
11178 (METHOD): Adjust to C++ virtual methods.
11179 (scan_target_h): Remove reference to C99.
11180 (dname): Output "target_ops::" prefix.
11181 (write_function_header): Adjust to output a C++ class method.
11182 (write_declaration): New.
11183 (write_delegator): Adjust to output a C++ class method.
11184 (tdname): Output "dummy_target::" prefix.
11185 (write_tdefault, write_debugmethod): Adjust to output a C++ class
11186 method.
11187 (tdefault_names, debug_names): Delete.
11188 (return_types, tdefaults, styles, argtypes_array): New.
11189 (top level): All methods are delegators.
11190 (print_class): New.
11191 (top level): Print dummy_target and debug_target classes.
11192 * target-delegates.c: Regenerate.
11193 * target-debug.h (target_debug_print_enum_info_proc_what)
11194 (target_debug_print_thread_control_capabilities)
11195 (target_debug_print_thread_info_p): New.
11196 * target.c (dummy_target): Delete.
11197 (the_dummy_target, the_debug_target): New.
11198 (target_stack): Now extern.
11199 (set_targetdebug): Push/unpush debug target.
11200 (default_child_has_all_memory, default_child_has_memory)
11201 (default_child_has_stack, default_child_has_registers)
11202 (default_child_has_execution): Remove target_ops parameter.
11203 (complete_target_initialization): Delete.
11204 (add_target_with_completer): No longer call
11205 complete_target_initialization.
11206 (target_supports_terminal_ours): Use regular delegation.
11207 (update_current_target): Delete.
11208 (push_target): No longer check magic number. Don't call
11209 update_current_target.
11210 (unpush_target): Don't call update_current_target.
11211 (target_is_pushed): No longer check magic number.
11212 (target_require_runnable): Skip for all stratums over
11213 process_stratum.
11214 (target_ops::info_proc): New.
11215 (target_info_proc): Use find_target_at and
11216 find_default_run_target.
11217 (target_supports_disable_randomization): Use regular delegation.
11218 (target_get_osdata): Use find_target_at.
11219 (target_ops::open, target_ops::close, target_ops::can_attach)
11220 (target_ops::attach, target_ops::can_create_inferior)
11221 (target_ops::create_inferior, target_ops::can_run)
11222 (target_can_run): New.
11223 (default_fileio_target): Use regular delegation.
11224 (target_ops::fileio_open, target_ops::fileio_pwrite)
11225 (target_ops::fileio_pread, target_ops::fileio_fstat)
11226 (target_ops::fileio_close, target_ops::fileio_unlink)
11227 (target_ops::fileio_readlink): New.
11228 (target_fileio_open_1, target_fileio_unlink)
11229 (target_fileio_readlink): Always call the target method. Handle
11230 FILEIO_ENOSYS.
11231 (return_zero, return_zero_has_execution): Delete.
11232 (init_dummy_target): Delete.
11233 (dummy_target::dummy_target, dummy_target::shortname)
11234 (dummy_target::longname, dummy_target::doc)
11235 (debug_target::debug_target, debug_target::shortname)
11236 (debug_target::longname, debug_target::doc): New.
11237 (target_supports_delete_record): Use regular delegation.
11238 (setup_target_debug): Delete.
11239 (maintenance_print_target_stack): Skip debug_stratum.
11240 (initialize_targets): Instantiate the_dummy_target and
11241 the_debug_target.
11242 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
11243 use target_stack.
11244 (target_auxv_search, fprint_target_auxv): Adjust.
11245 (info_auxv_command): Adjust to use target_stack.
11246 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
11247 * exceptions.c (print_flush): Handle a NULL target_stack.
11248 * regcache.c (target_ops_no_register): Refactor as class with
11249 virtual methods.
11250
11251 * exec.c (exec_target): New class.
11252 (exec_ops): Now an exec_target.
11253 (exec_open, exec_close_1, exec_get_section_table)
11254 (exec_xfer_partial, exec_files_info, exec_has_memory)
11255 (exec_make_note_section): Refactor as exec_target methods.
11256 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
11257 Delete.
11258 (exec_target::find_memory_regions): New.
11259 (_initialize_exec): Don't call init_exec_ops.
11260 * gdbcore.h (exec_file_clear): Delete.
11261
11262 * corefile.c (core_target): Delete.
11263 (core_file_command): Adjust.
11264 * corelow.c (core_target): New class.
11265 (the_core_target): New.
11266 (core_close): Remove target_ops parameter.
11267 (core_close_cleanup): Adjust.
11268 (core_target::close): New.
11269 (core_open, core_detach, get_core_registers, core_files_info)
11270 (core_xfer_partial, core_thread_alive, core_read_description)
11271 (core_pid_to_str, core_thread_name, core_has_memory)
11272 (core_has_stack, core_has_registers, core_info_proc): Rework as
11273 core_target methods.
11274 (ignore, core_remove_breakpoint, init_core_ops): Delete.
11275 (_initialize_corelow): Initialize the_core_target.
11276 * gdbcore.h (core_target): Delete.
11277 (the_core_target): New.
11278
11279 * ctf.c: (ctf_target): New class.
11280 (ctf_ops): Now a ctf_target.
11281 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
11282 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
11283 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
11284 methods.
11285 (init_ctf_ops): Delete.
11286 (_initialize_ctf): Don't call it.
11287 * tracefile-tfile.c (tfile_target): New class.
11288 (tfile_ops): Now a tfile_target.
11289 (tfile_open, tfile_close, tfile_files_info)
11290 (tfile_get_tracepoint_status, tfile_trace_find)
11291 (tfile_fetch_registers, tfile_xfer_partial)
11292 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
11293 Refactor as tfile_target methods.
11294 (tfile_xfer_partial_features): Remove target_ops parameter.
11295 (init_tfile_ops): Delete.
11296 (_initialize_tracefile_tfile): Don't call it.
11297 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
11298 (tracefile_has_stack, tracefile_has_registers)
11299 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
11300 tracefile_target methods.
11301 (init_tracefile_ops): Delete.
11302 (tracefile_target::tracefile_target): New.
11303 * tracefile.h: Include "target.h".
11304 (tracefile_target): New class.
11305 (init_tracefile_ops): Delete.
11306
11307 * spu-multiarch.c (spu_multiarch_target): New class.
11308 (spu_ops): Now a spu_multiarch_target.
11309 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
11310 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
11311 (spu_search_memory, spu_mourn_inferior): Refactor as
11312 spu_multiarch_target methods.
11313 (init_spu_ops): Delete.
11314 (_initialize_spu_multiarch): Remove references to init_spu_ops,
11315 complete_target_initialization.
11316
11317 * ravenscar-thread.c (ravenscar_thread_target): New class.
11318 (ravenscar_ops): Now a ravenscar_thread_target.
11319 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
11320 (ravenscar_thread_alive, ravenscar_pid_to_str)
11321 (ravenscar_fetch_registers, ravenscar_store_registers)
11322 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
11323 (ravenscar_stopped_by_hw_breakpoint)
11324 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
11325 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
11326 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
11327 methods.
11328 (init_ravenscar_thread_ops): Delete.
11329 (_initialize_ravenscar): Remove references to
11330 init_ravenscar_thread_ops and complete_target_initialization.
11331
11332 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
11333 (bsd_uthread_target): New class.
11334 (bsd_uthread_ops): Now a bsd_uthread_target.
11335 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
11336 (bsd_uthread_close, bsd_uthread_mourn_inferior)
11337 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
11338 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
11339 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
11340 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
11341 (bsd_uthread_target): Delete function.
11342 (_initialize_bsd_uthread): Remove reference to
11343 complete_target_initialization.
11344
11345 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
11346 (target_bfd): ... this new class.
11347 (target_bfd_xfer_partial, target_bfd_get_section_table)
11348 (target_bfd_close): Refactor as target_bfd methods.
11349 (target_bfd::~target_bfd): New.
11350 (target_bfd_reopen): Adjust.
11351 (target_bfd::close): New.
11352
11353 * record-btrace.c (record_btrace_target): New class.
11354 (record_btrace_ops): Now a record_btrace_target.
11355 (record_btrace_open, record_btrace_stop_recording)
11356 (record_btrace_disconnect, record_btrace_close)
11357 (record_btrace_async, record_btrace_info)
11358 (record_btrace_insn_history, record_btrace_insn_history_range)
11359 (record_btrace_insn_history_from, record_btrace_call_history)
11360 (record_btrace_call_history_range)
11361 (record_btrace_call_history_from, record_btrace_record_method)
11362 (record_btrace_is_replaying, record_btrace_will_replay)
11363 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
11364 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
11365 (record_btrace_store_registers, record_btrace_prepare_to_store)
11366 (record_btrace_to_get_unwinder)
11367 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
11368 (record_btrace_commit_resume, record_btrace_wait)
11369 (record_btrace_stop, record_btrace_can_execute_reverse)
11370 (record_btrace_stopped_by_sw_breakpoint)
11371 (record_btrace_supports_stopped_by_sw_breakpoint)
11372 (record_btrace_stopped_by_hw_breakpoint)
11373 (record_btrace_supports_stopped_by_hw_breakpoint)
11374 (record_btrace_update_thread_list, record_btrace_thread_alive)
11375 (record_btrace_goto_begin, record_btrace_goto_end)
11376 (record_btrace_goto, record_btrace_stop_replaying_all)
11377 (record_btrace_execution_direction)
11378 (record_btrace_prepare_to_generate_core)
11379 (record_btrace_done_generating_core): Refactor as
11380 record_btrace_target methods.
11381 (init_record_btrace_ops): Delete.
11382 (_initialize_record_btrace): Remove reference to
11383 init_record_btrace_ops.
11384 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
11385 the execution_direction global.
11386 (record_full_base_target, record_full_target)
11387 (record_full_core_target): New classes.
11388 (record_full_ops): Now a record_full_target.
11389 (record_full_core_ops): Now a record_full_core_target.
11390 (record_full_target::detach, record_full_target::disconnect)
11391 (record_full_core_target::disconnect)
11392 (record_full_target::mourn_inferior, record_full_target::kill):
11393 New.
11394 (record_full_open, record_full_close, record_full_async): Refactor
11395 as methods of the record_full_base_target class.
11396 (record_full_resume, record_full_commit_resume): Refactor
11397 as methods of the record_full_target class.
11398 (record_full_wait, record_full_stopped_by_watchpoint)
11399 (record_full_stopped_data_address)
11400 (record_full_stopped_by_sw_breakpoint)
11401 (record_full_supports_stopped_by_sw_breakpoint)
11402 (record_full_stopped_by_hw_breakpoint)
11403 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
11404 methods of the record_full_base_target class.
11405 (record_full_store_registers, record_full_xfer_partial)
11406 (record_full_insert_breakpoint, record_full_remove_breakpoint):
11407 Refactor as methods of the record_full_target class.
11408 (record_full_can_execute_reverse, record_full_get_bookmark)
11409 (record_full_goto_bookmark, record_full_execution_direction)
11410 (record_full_record_method, record_full_info, record_full_delete)
11411 (record_full_is_replaying, record_full_will_replay)
11412 (record_full_goto_begin, record_full_goto_end, record_full_goto)
11413 (record_full_stop_replaying): Refactor as methods of the
11414 record_full_base_target class.
11415 (record_full_core_resume, record_full_core_kill)
11416 (record_full_core_fetch_registers)
11417 (record_full_core_prepare_to_store)
11418 (record_full_core_store_registers, record_full_core_xfer_partial)
11419 (record_full_core_insert_breakpoint)
11420 (record_full_core_remove_breakpoint)
11421 (record_full_core_has_execution): Refactor
11422 as methods of the record_full_core_target class.
11423 (record_full_base_target::supports_delete_record): New.
11424 (init_record_full_ops): Delete.
11425 (init_record_full_core_ops): Delete.
11426 (record_full_save): Refactor as method of the
11427 record_full_base_target class.
11428 (_initialize_record_full): Remove references to
11429 init_record_full_ops and init_record_full_core_ops.
11430
11431 * remote.c (remote_target, extended_remote_target): New classes.
11432 (remote_ops): Now a remote_target.
11433 (extended_remote_ops): Now an extended_remote_target.
11434 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
11435 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
11436 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
11437 (remote_pass_signals, remote_set_syscall_catchpoint)
11438 (remote_program_signals, )
11439 (remote_thread_always_alive): Remove target_ops parameter.
11440 (remote_thread_alive, remote_thread_name)
11441 (remote_update_thread_list, remote_threads_extra_info)
11442 (remote_static_tracepoint_marker_at)
11443 (remote_static_tracepoint_markers_by_strid)
11444 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
11445 (remote_open): Refactor as methods of remote_target.
11446 (extended_remote_open, extended_remote_detach)
11447 (extended_remote_attach, extended_remote_post_attach):
11448 (extended_remote_supports_disable_randomization)
11449 (extended_remote_create_inferior): : Refactor as method of
11450 extended_remote_target.
11451 (remote_set_permissions, remote_open_1, remote_detach)
11452 (remote_follow_fork, remote_follow_exec, remote_disconnect)
11453 (remote_resume, remote_commit_resume, remote_stop)
11454 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
11455 (remote_terminal_ours, remote_wait, remote_fetch_registers)
11456 (remote_prepare_to_store, remote_store_registers)
11457 (remote_flash_erase, remote_flash_done, remote_files_info)
11458 (remote_kill, remote_mourn, remote_insert_breakpoint)
11459 (remote_remove_breakpoint, remote_insert_watchpoint)
11460 (remote_watchpoint_addr_within_range)
11461 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
11462 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
11463 (remote_supports_stopped_by_sw_breakpoint)
11464 (remote_stopped_by_hw_breakpoint)
11465 (remote_supports_stopped_by_hw_breakpoint)
11466 (remote_stopped_by_watchpoint, remote_stopped_data_address)
11467 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
11468 (remote_verify_memory): Refactor as methods of remote_target.
11469 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11470 parameter.
11471 (remote_xfer_partial, remote_get_memory_xfer_limit)
11472 (remote_search_memory, remote_rcmd, remote_memory_map)
11473 (remote_pid_to_str, remote_get_thread_local_address)
11474 (remote_get_tib_address, remote_read_description): Refactor as
11475 methods of remote_target.
11476 (remote_target::fileio_open, remote_target::fileio_pwrite)
11477 (remote_target::fileio_pread, remote_target::fileio_close): New.
11478 (remote_hostio_readlink, remote_hostio_fstat)
11479 (remote_filesystem_is_local, remote_can_execute_reverse)
11480 (remote_supports_non_stop, remote_supports_disable_randomization)
11481 (remote_supports_multi_process, remote_supports_cond_breakpoints)
11482 (remote_supports_enable_disable_tracepoint)
11483 (remote_supports_string_tracing)
11484 (remote_can_run_breakpoint_commands, remote_trace_init)
11485 (remote_download_tracepoint, remote_can_download_tracepoint)
11486 (remote_download_trace_state_variable, remote_enable_tracepoint)
11487 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11488 (remote_trace_start, remote_get_trace_status)
11489 (remote_get_tracepoint_status, remote_trace_stop)
11490 (remote_trace_find, remote_get_trace_state_variable_value)
11491 (remote_save_trace_data, remote_get_raw_trace_data)
11492 (remote_set_disconnected_tracing, remote_core_of_thread)
11493 (remote_set_circular_trace_buffer, remote_traceframe_info)
11494 (remote_get_min_fast_tracepoint_insn_len)
11495 (remote_set_trace_buffer_size, remote_set_trace_notes)
11496 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11497 (remote_disable_btrace, remote_teardown_btrace)
11498 (remote_read_btrace, remote_btrace_conf)
11499 (remote_augmented_libraries_svr4_read, remote_load)
11500 (remote_pid_to_exec_file, remote_can_do_single_step)
11501 (remote_execution_direction, remote_thread_handle_to_thread_info):
11502 Refactor as methods of remote_target.
11503 (init_remote_ops, init_extended_remote_ops): Delete.
11504 (remote_can_async_p, remote_is_async_p, remote_async)
11505 (remote_thread_events, remote_upload_tracepoints)
11506 (remote_upload_trace_state_variables): Refactor as methods of
11507 remote_target.
11508 (_initialize_remote): Remove references to init_remote_ops and
11509 init_extended_remote_ops.
11510
11511 * remote-sim.c (gdbsim_target): New class.
11512 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11513 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11514 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11515 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11516 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11517 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11518 Refactor as methods of gdbsim_target.
11519 (gdbsim_ops): Now a gdbsim_target.
11520 (init_gdbsim_ops): Delete.
11521 (gdbsim_cntrl_c): Adjust.
11522 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11523
11524 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11525 (the_amd64_linux_nat_target): New.
11526 (amd64_linux_fetch_inferior_registers)
11527 (amd64_linux_store_inferior_registers): Refactor as methods of
11528 amd64_linux_nat_target.
11529 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
11530 * i386-linux-nat.c: Don't include "linux-nat.h".
11531 (i386_linux_nat_target): New class.
11532 (the_i386_linux_nat_target): New.
11533 (i386_linux_fetch_inferior_registers)
11534 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11535 as methods of i386_linux_nat_target.
11536 (_initialize_i386_linux_nat): Adjust. Set linux_target.
11537 * inf-child.c (inf_child_ops): Delete.
11538 (inf_child_fetch_inferior_registers)
11539 (inf_child_store_inferior_registers): Delete.
11540 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11541 methods of inf_child_target.
11542 (inf_child_target::supports_terminal_ours)
11543 (inf_child_target::terminal_init)
11544 (inf_child_target::terminal_inferior)
11545 (inf_child_target::terminal_ours_for_output)
11546 (inf_child_target::terminal_ours, inf_child_target::interrupt)
11547 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11548 New.
11549 (inf_child_open, inf_child_disconnect, inf_child_close)
11550 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11551 (inf_child_post_startup_inferior, inf_child_can_run)
11552 (inf_child_pid_to_exec_file): Refactor as methods of
11553 inf_child_target.
11554 (inf_child_follow_fork): Delete.
11555 (inf_child_target::can_create_inferior)
11556 (inf_child_target::can_attach): New.
11557 (inf_child_target::has_all_memory, inf_child_target::has_memory)
11558 (inf_child_target::has_stack, inf_child_target::has_registers)
11559 (inf_child_target::has_execution): New.
11560 (inf_child_fileio_open, inf_child_fileio_pwrite)
11561 (inf_child_fileio_pread, inf_child_fileio_fstat)
11562 (inf_child_fileio_close, inf_child_fileio_unlink)
11563 (inf_child_fileio_readlink, inf_child_use_agent)
11564 (inf_child_can_use_agent): Refactor as methods of
11565 inf_child_target.
11566 (return_zero, inf_child_target): Delete.
11567 (inf_child_target::inf_child_target): New.
11568 * inf-child.h: Include "target.h".
11569 (inf_child_target): Delete function prototype.
11570 (inf_child_target): New class.
11571 (inf_child_open_target, inf_child_mourn_inferior)
11572 (inf_child_maybe_unpush_target): Delete.
11573 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11574 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11575 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11576 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11577 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11578 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11579 (inf_ptrace_wait, inf_ptrace_xfer_partial)
11580 (inf_ptrace_thread_alive, inf_ptrace_files_info)
11581 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11582 methods of inf_ptrace_target.
11583 (inf_ptrace_target): Delete function.
11584 * inf-ptrace.h: Include "inf-child.h".
11585 (inf_ptrace_target): Delete function declaration.
11586 (inf_ptrace_target): New class.
11587 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11588 * linux-nat.c (linux_target): New.
11589 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11590 (linux_nat_target::~linux_nat_target): New.
11591 (linux_child_post_attach, linux_child_post_startup_inferior)
11592 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11593 (linux_child_remove_fork_catchpoint)
11594 (linux_child_insert_vfork_catchpoint)
11595 (linux_child_remove_vfork_catchpoint)
11596 (linux_child_insert_exec_catchpoint)
11597 (linux_child_remove_exec_catchpoint)
11598 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11599 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11600 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11601 (linux_nat_stopped_data_address)
11602 (linux_nat_stopped_by_sw_breakpoint)
11603 (linux_nat_supports_stopped_by_sw_breakpoint)
11604 (linux_nat_stopped_by_hw_breakpoint)
11605 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11606 (linux_nat_kill, linux_nat_mourn_inferior)
11607 (linux_nat_xfer_partial, linux_nat_thread_alive)
11608 (linux_nat_update_thread_list, linux_nat_pid_to_str)
11609 (linux_nat_thread_name, linux_child_pid_to_exec_file)
11610 (linux_child_static_tracepoint_markers_by_strid)
11611 (linux_nat_is_async_p, linux_nat_can_async_p)
11612 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11613 (linux_nat_supports_multi_process)
11614 (linux_nat_supports_disable_randomization, linux_nat_async)
11615 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11616 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11617 (linux_nat_fileio_open, linux_nat_fileio_readlink)
11618 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11619 methods of linux_nat_target.
11620 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11621 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11622 parameter.
11623 (check_stopped_by_watchpoint): Adjust.
11624 (linux_xfer_partial): Delete.
11625 (linux_target_install_ops, linux_target, linux_nat_add_target):
11626 Delete.
11627 (linux_nat_target::linux_nat_target): New.
11628 * linux-nat.h: Include "inf-ptrace.h".
11629 (linux_nat_target): New.
11630 (linux_target, linux_target_install_ops, linux_nat_add_target):
11631 Delete function declarations.
11632 (linux_target): Declare global.
11633 * linux-thread-db.c (thread_db_target): New.
11634 (thread_db_target::thread_db_target): New.
11635 (thread_db_ops): Delete.
11636 (the_thread_db_target): New.
11637 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11638 (thread_db_update_thread_list, thread_db_pid_to_str)
11639 (thread_db_extra_thread_info)
11640 (thread_db_thread_handle_to_thread_info)
11641 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11642 (thread_db_resume): Refactor as methods of thread_db_target.
11643 (init_thread_db_ops): Delete.
11644 (_initialize_thread_db): Remove reference to init_thread_db_ops.
11645 * x86-linux-nat.c: Don't include "linux-nat.h".
11646 (super_post_startup_inferior): Delete.
11647 (x86_linux_nat_target::~x86_linux_nat_target): New.
11648 (x86_linux_child_post_startup_inferior)
11649 (x86_linux_read_description, x86_linux_enable_btrace)
11650 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11651 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11652 methods of x86_linux_nat_target.
11653 (x86_linux_create_target): Delete. Bits folded ...
11654 (x86_linux_add_target): ... here. Now takes a linux_nat_target
11655 pointer.
11656 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11657 (x86_linux_nat_target): New class.
11658 (x86_linux_create_target): Delete.
11659 (x86_linux_add_target): Now takes a linux_nat_target pointer.
11660 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11661 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11662 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11663 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11664 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11665 make extern.
11666 (x86_use_watchpoints): Delete.
11667 * x86-nat.h: Include "breakpoint.h" and "target.h".
11668 (x86_use_watchpoints): Delete.
11669 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11670 (x86_stopped_by_watchpoint, x86_stopped_data_address)
11671 (x86_insert_watchpoint, x86_remove_watchpoint)
11672 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11673 (x86_stopped_by_hw_breakpoint): New declarations.
11674 (x86_nat_target): New template class.
11675
11676 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11677 (the_ppc_linux_nat_target): New.
11678 (ppc_linux_fetch_inferior_registers)
11679 (ppc_linux_can_use_hw_breakpoint)
11680 (ppc_linux_region_ok_for_hw_watchpoint)
11681 (ppc_linux_ranged_break_num_registers)
11682 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11683 (ppc_linux_insert_mask_watchpoint)
11684 (ppc_linux_remove_mask_watchpoint)
11685 (ppc_linux_can_accel_watchpoint_condition)
11686 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11687 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11688 (ppc_linux_watchpoint_addr_within_range)
11689 (ppc_linux_masked_watch_num_registers)
11690 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11691 (ppc_linux_read_description): Refactor as methods of
11692 ppc_linux_nat_target.
11693 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
11694
11695 * procfs.c (procfs_xfer_partial): Delete forward declaration.
11696 (procfs_target): New class.
11697 (the_procfs_target): New.
11698 (procfs_target): Delete function.
11699 (procfs_auxv_parse, procfs_attach, procfs_detach)
11700 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11701 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11702 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11703 (procfs_create_inferior, procfs_update_thread_list)
11704 (procfs_thread_alive, procfs_pid_to_str)
11705 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11706 (procfs_stopped_data_address, procfs_insert_watchpoint)
11707 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11708 (proc_find_memory_regions, procfs_info_proc)
11709 (procfs_make_note_section): Refactor as methods of procfs_target.
11710 (_initialize_procfs): Adjust.
11711 * sol-thread.c (sol_thread_target): New class.
11712 (sol_thread_ops): Now a sol_thread_target.
11713 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11714 (sol_thread_fetch_registers, sol_thread_store_registers)
11715 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11716 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11717 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11718 (init_sol_thread_ops): Delete.
11719 (_initialize_sol_thread): Adjust. Remove references to
11720 init_sol_thread_ops and complete_target_initialization.
11721
11722 * windows-nat.c (windows_nat_target): New class.
11723 (windows_fetch_inferior_registers)
11724 (windows_store_inferior_registers, windows_resume, windows_wait)
11725 (windows_attach, windows_detach, windows_pid_to_exec_file)
11726 (windows_files_info, windows_create_inferior)
11727 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11728 (windows_close, windows_pid_to_str, windows_xfer_partial)
11729 (windows_get_tib_address, windows_get_ada_task_ptid)
11730 (windows_thread_name, windows_thread_alive): Refactor as
11731 windows_nat_target methods.
11732 (do_initial_windows_stuff): Adjust.
11733 (windows_target): Delete function.
11734 (_initialize_windows_nat): Adjust.
11735
11736 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11737 (darwin_mourn_inferior, darwin_kill_inferior)
11738 (darwin_create_inferior, darwin_attach, darwin_detach)
11739 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11740 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11741 (darwin_supports_multi_process): Refactor as darwin_nat_target
11742 methods.
11743 (darwin_resume_to, darwin_files_info): Delete.
11744 (_initialize_darwin_inferior): Rename to ...
11745 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11746 * darwin-nat.h: Include "inf-child.h".
11747 (darwin_nat_target): New class.
11748 (darwin_complete_target): Delete.
11749 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11750 (darwin_target): New.
11751 (i386_darwin_fetch_inferior_registers)
11752 (i386_darwin_store_inferior_registers): Refactor as methods of
11753 darwin_nat_target.
11754 (darwin_complete_target): Delete, with ...
11755 (_initialize_i386_darwin_nat): ... bits factored out here.
11756
11757 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11758 (the_alpha_linux_nat_target): New.
11759 (alpha_linux_register_u_offset): Refactor as
11760 alpha_linux_nat_target method.
11761 (_initialize_alpha_linux_nat): Adjust.
11762 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11763 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11764 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11765 methods of linux_nat_trad_target.
11766 (linux_trad_target): Delete.
11767 * linux-nat-trad.h (linux_trad_target): Delete function.
11768 (linux_nat_trad_target): New class.
11769 * mips-linux-nat.c (mips_linux_nat_target): New class.
11770 (super_fetch_registers, super_store_registers, super_close):
11771 Delete.
11772 (the_mips_linux_nat_target): New.
11773 (mips64_linux_regsets_fetch_registers)
11774 (mips64_linux_regsets_store_registers)
11775 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11776 (mips_linux_register_u_offset, mips_linux_read_description)
11777 (mips_linux_can_use_hw_breakpoint)
11778 (mips_linux_stopped_by_watchpoint)
11779 (mips_linux_stopped_data_address)
11780 (mips_linux_region_ok_for_hw_watchpoint)
11781 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11782 (mips_linux_close): Refactor as methods of mips_linux_nat.
11783 (_initialize_mips_linux_nat): Adjust to C++ification.
11784
11785 * aix-thread.c (aix_thread_target): New class.
11786 (aix_thread_ops): Now an aix_thread_target.
11787 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11788 (aix_thread_fetch_registers, aix_thread_store_registers)
11789 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11790 (aix_thread_thread_alive, aix_thread_pid_to_str)
11791 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11792 Refactor as methods of aix_thread_target.
11793 (init_aix_thread_ops): Delete.
11794 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11795 and complete_target_initialization.
11796 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11797 (rs6000_nat_target): New class.
11798 (the_rs6000_nat_target): New.
11799 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11800 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11801 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11802 (super_create_inferior): Delete.
11803 (_initialize_rs6000_nat): Adjust to C++ification.
11804
11805 * arm-linux-nat.c (arm_linux_nat_target): New class.
11806 (the_arm_linux_nat_target): New.
11807 (arm_linux_fetch_inferior_registers)
11808 (arm_linux_store_inferior_registers, arm_linux_read_description)
11809 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11810 (arm_linux_remove_hw_breakpoint)
11811 (arm_linux_region_ok_for_hw_watchpoint)
11812 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11813 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11814 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11815 arm_linux_nat_target.
11816 (_initialize_arm_linux_nat): Adjust to C++ification.
11817
11818 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11819 (the_aarch64_linux_nat_target): New.
11820 (aarch64_linux_fetch_inferior_registers)
11821 (aarch64_linux_store_inferior_registers)
11822 (aarch64_linux_child_post_startup_inferior)
11823 (aarch64_linux_read_description)
11824 (aarch64_linux_can_use_hw_breakpoint)
11825 (aarch64_linux_insert_hw_breakpoint)
11826 (aarch64_linux_remove_hw_breakpoint)
11827 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11828 (aarch64_linux_region_ok_for_hw_watchpoint)
11829 (aarch64_linux_stopped_data_address)
11830 (aarch64_linux_stopped_by_watchpoint)
11831 (aarch64_linux_watchpoint_addr_within_range)
11832 (aarch64_linux_can_do_single_step): Refactor as methods of
11833 aarch64_linux_nat_target.
11834 (super_post_startup_inferior): Delete.
11835 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11836
11837 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11838 (the_hppa_linux_nat_target): New.
11839 (hppa_linux_fetch_inferior_registers)
11840 (hppa_linux_store_inferior_registers): Refactor as methods of
11841 hppa_linux_nat_target.
11842 (_initialize_hppa_linux_nat): Adjust to C++ification.
11843
11844 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11845 (the_ia64_linux_nat_target): New.
11846 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11847 (ia64_linux_stopped_data_address)
11848 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11849 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11850 ia64_linux_nat_target methods.
11851 (super_xfer_partial): Delete.
11852 (_initialize_ia64_linux_nat): Adjust to C++ification.
11853
11854 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11855 (the_m32r_linux_nat_target): New.
11856 (m32r_linux_fetch_inferior_registers)
11857 (m32r_linux_store_inferior_registers): Refactor as
11858 m32r_linux_nat_target methods.
11859 (_initialize_m32r_linux_nat): Adjust to C++ification.
11860
11861 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11862 (the_m68k_linux_nat_target): New.
11863 (m68k_linux_fetch_inferior_registers)
11864 (m68k_linux_store_inferior_registers): Refactor as
11865 m68k_linux_nat_target methods.
11866 (_initialize_m68k_linux_nat): Adjust to C++ification.
11867
11868 * s390-linux-nat.c (s390_linux_nat_target): New class.
11869 (the_s390_linux_nat_target): New.
11870 (s390_linux_fetch_inferior_registers)
11871 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11872 (s390_insert_watchpoint, s390_remove_watchpoint)
11873 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11874 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11875 (s390_auxv_parse, s390_read_description): Refactor as methods of
11876 s390_linux_nat_target.
11877 (_initialize_s390_nat): Adjust to C++ification.
11878
11879 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11880 (the_sparc_linux_nat_target): New.
11881 (_initialize_sparc_linux_nat): Adjust to C++ification.
11882 * sparc-nat.c (sparc_fetch_inferior_registers)
11883 (sparc_store_inferior_registers): Remove target_ops parameter.
11884 * sparc-nat.h (sparc_fetch_inferior_registers)
11885 (sparc_store_inferior_registers): Remove target_ops parameter.
11886 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11887 (the_sparc64_linux_nat_target): New.
11888 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11889
11890 * spu-linux-nat.c (spu_linux_nat_target): New class.
11891 (the_spu_linux_nat_target): New.
11892 (spu_child_post_startup_inferior, spu_child_post_attach)
11893 (spu_child_wait, spu_fetch_inferior_registers)
11894 (spu_store_inferior_registers, spu_xfer_partial)
11895 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11896 methods.
11897 (_initialize_spu_nat): Adjust to C++ification.
11898
11899 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11900 (the_tilegx_linux_nat_target): New.
11901 (fetch_inferior_registers, store_inferior_registers):
11902 Refactor as methods.
11903 (_initialize_tile_linux_nat): Adjust to C++ification.
11904
11905 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11906 (the_xtensa_linux_nat_target): New.
11907 (xtensa_linux_fetch_inferior_registers)
11908 (xtensa_linux_store_inferior_registers): Refactor as
11909 xtensa_linux_nat_target methods.
11910 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11911
11912 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11913 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11914 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11915 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11916 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11917 (fbsd_stopped_by_sw_breakpoint)
11918 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11919 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11920 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11921 (fbsd_post_startup_inferior, fbsd_post_attach)
11922 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11923 (fbsd_set_syscall_catchpoint)
11924 (super_xfer_partial, super_resume, super_wait)
11925 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11926 (fbsd_handle_debug_trap): Remove target_ops parameter.
11927 (fbsd_nat_add_target): Delete.
11928 * fbsd-nat.h: Include "inf-ptrace.h".
11929 (fbsd_nat_add_target): Delete.
11930 (USE_SIGTRAP_SIGINFO): Define.
11931 (fbsd_nat_target): New class.
11932
11933 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11934 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11935 (amd64bsd_target): Delete.
11936 * amd64-bsd-nat.h: New file.
11937 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11938 "x86-bsd-nat.h".
11939 (amd64_fbsd_nat_target): New class.
11940 (the_amd64_fbsd_nat_target): New.
11941 (amd64fbsd_read_description): Refactor as method of
11942 amd64_fbsd_nat_target.
11943 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11944 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11945 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11946 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11947 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11948 (i386bsd_target): Delete.
11949 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11950 (i386bsd_fetch_inferior_registers)
11951 (i386bsd_store_inferior_registers): Declare.
11952 (i386_bsd_nat_target): New class.
11953 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11954 (the_i386_fbsd_nat_target): New.
11955 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11956 i386_fbsd_nat_target methods.
11957 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11958 (_initialize_i386fbsd_nat): Adjust to C++ification.
11959 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11960 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11961 (_initialize_x86_bsd_nat): Adjust to C++ification.
11962 * x86-bsd-nat.h: Include "x86-nat.h".
11963 (x86bsd_target): Delete declaration.
11964 (x86bsd_nat_target): New class.
11965
11966 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11967 (the_aarch64_fbsd_nat_target): New.
11968 (aarch64_fbsd_fetch_inferior_registers)
11969 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11970 aarch64_fbsd_nat_target.
11971 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11972 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11973 (the_alpha_bsd_nat_target): New.
11974 (alphabsd_fetch_inferior_registers)
11975 (alphabsd_store_inferior_registers): Refactor as
11976 alpha_bsd_nat_target methods.
11977 (_initialize_alphabsd_nat): Refactor as methods of
11978 alpha_bsd_nat_target.
11979 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11980 (the_amd64_nbsd_nat_target): New.
11981 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11982 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11983 (the_amd64_obsd_nat_target): New.
11984 (_initialize_amd64obsd_nat): Adjust to C++ification.
11985 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11986 (the_arm_fbsd_nat_target): New.
11987 (arm_fbsd_fetch_inferior_registers)
11988 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11989 (_initialize_arm_fbsd_nat): Refactor as methods of
11990 arm_fbsd_nat_target.
11991 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11992 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11993 (the_arm_netbsd_nat_target): New.
11994 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11995 arm_netbsd_nat_target.
11996 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11997 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11998 (the_hppa_nbsd_nat_target): New.
11999 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
12000 hppa_nbsd_nat_target methods.
12001 (_initialize_hppanbsd_nat): Adjust to C++ification.
12002 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
12003 (the_hppa_obsd_nat_target): New.
12004 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
12005 methods of hppa_obsd_nat_target.
12006 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
12007 add_target.
12008 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
12009 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
12010 add_target.
12011 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
12012 (_initialize_i386obsd_nat): Use add_target.
12013 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
12014 (the_m68k_bsd_nat_target): New.
12015 (m68kbsd_fetch_inferior_registers)
12016 (m68kbsd_store_inferior_registers): Refactor as methods of
12017 m68k_bsd_nat_target.
12018 (_initialize_m68kbsd_nat): Adjust to C++ification.
12019 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
12020 (the_mips_fbsd_nat_target): New.
12021 (mips_fbsd_fetch_inferior_registers)
12022 (mips_fbsd_store_inferior_registers): Refactor as methods of
12023 mips_fbsd_nat_target.
12024 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
12025 add_target.
12026 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
12027 (the_mips_nbsd_nat_target): New.
12028 (mipsnbsd_fetch_inferior_registers)
12029 (mipsnbsd_store_inferior_registers): Refactor as methods of
12030 mips_nbsd_nat_target.
12031 (_initialize_mipsnbsd_nat): Adjust to C++ification.
12032 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
12033 (the_mips64_obsd_nat_target): New.
12034 (mips64obsd_fetch_inferior_registers)
12035 (mips64obsd_store_inferior_registers): Refactor as methods of
12036 mips64_obsd_nat_target.
12037 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
12038 add_target.
12039 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
12040 nbsd_nat_target.
12041 * nbsd-nat.h: Include "inf-ptrace.h".
12042 (nbsd_nat_target): New class.
12043 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
12044 (obsd_wait): Refactor as methods of obsd_nat_target.
12045 (obsd_add_target): Delete.
12046 * obsd-nat.h: Include "inf-ptrace.h".
12047 (obsd_nat_target): New class.
12048 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
12049 (the_ppc_fbsd_nat_target): New.
12050 (ppcfbsd_fetch_inferior_registers)
12051 (ppcfbsd_store_inferior_registers): Refactor as methods of
12052 ppc_fbsd_nat_target.
12053 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
12054 add_target.
12055 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
12056 (the_ppc_nbsd_nat_target): New.
12057 (ppcnbsd_fetch_inferior_registers)
12058 (ppcnbsd_store_inferior_registers): Refactor as methods of
12059 ppc_nbsd_nat_target.
12060 (_initialize_ppcnbsd_nat): Adjust to C++ification.
12061 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
12062 (the_ppc_obsd_nat_target): New.
12063 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
12064 methods of ppc_obsd_nat_target.
12065 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
12066 add_target.
12067 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
12068 (the_sh_nbsd_nat_target): New.
12069 (shnbsd_fetch_inferior_registers)
12070 (shnbsd_store_inferior_registers): Refactor as methods of
12071 sh_nbsd_nat_target.
12072 (_initialize_shnbsd_nat): Adjust to C++ification.
12073 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
12074 (inf_ptrace_xfer_partial): Delete.
12075 (sparc_xfer_partial, sparc_target): Delete.
12076 * sparc-nat.h (sparc_fetch_inferior_registers)
12077 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
12078 (sparc_target): Delete function declaration.
12079 (sparc_target): New template class.
12080 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
12081 (_initialize_sparcnbsd_nat): Adjust to C++ification.
12082 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
12083 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
12084 add_target.
12085 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
12086 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
12087 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
12088 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
12089 add_target.
12090 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
12091 (the_vax_bsd_nat_target): New.
12092 (vaxbsd_fetch_inferior_registers)
12093 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
12094 methods.
12095 (_initialize_vaxbsd_nat): Adjust to C++ification.
12096
12097 * bsd-kvm.c (bsd_kvm_target): New class.
12098 (bsd_kvm_ops): Now a bsd_kvm_target.
12099 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
12100 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
12101 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
12102 bsd_kvm_target.
12103 (bsd_kvm_return_one): Delete.
12104 (bsd_kvm_add_target): Adjust to C++ification.
12105
12106 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
12107 (nto_procfs_target_procfs): New classes.
12108 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
12109 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
12110 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
12111 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
12112 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
12113 (procfs_remove_hw_breakpoint, procfs_resume)
12114 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
12115 (procfs_kill_inferior, procfs_store_registers)
12116 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
12117 as methods of nto_procfs_target.
12118 (nto_procfs_ops): Now an nto_procfs_target_procfs.
12119 (nto_native_ops): Delete.
12120 (procfs_open, procfs_native_open): Delete.
12121 (nto_native_ops): Now an nto_procfs_target_native.
12122 (init_procfs_targets): Adjust to C++ification.
12123 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
12124 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
12125 Refactor as methods of nto_procfs_target.
12126
12127 * go32-nat.c (go32_nat_target): New class.
12128 (the_go32_nat_target): New.
12129 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
12130 (go32_store_registers, go32_xfer_partial, go32_files_info)
12131 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
12132 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
12133 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
12134 (go32_pid_to_str): Refactor as methods of go32_nat_target.
12135 (go32_target): Delete.
12136 (_initialize_go32_nat): Adjust to C++ification.
12137
12138 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
12139 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
12140 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
12141 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
12142 gnu_nat_target.
12143 (gnu_target): Delete.
12144 * gnu-nat.h (gnu_target): Delete.
12145 (gnu_nat_target): New class.
12146 * i386-gnu-nat.c (gnu_base_target): New.
12147 (i386_gnu_nat_target): New class.
12148 (the_i386_gnu_nat_target): New.
12149 (_initialize_i386gnu_nat): Adjust to C++ification.
12150
12151 2018-05-02 Pedro Alves <palves@redhat.com>
12152
12153 * bfd-target.c (target_bfd_xclose): Rename to ...
12154 (target_bfd_close): ... this.
12155 (target_bfd_reopen): Adjust.
12156 * target.c (target_close): Remove references to to_xclose.
12157 * target.h (target_ops::to_xclose): Delete.
12158 (target_ops::to_close): Update comments.
12159
12160 2018-05-02 Pedro Alves <palves@redhat.com>
12161
12162 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
12163 "linux-nat.h".
12164 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
12165 * inf-ptrace.c (inf_ptrace_register_u_offset)
12166 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
12167 (inf_ptrace_store_register, inf_ptrace_store_registers)
12168 (inf_ptrace_trad_target): Move to ...
12169 * linux-nat-trad.c: ... this new file.
12170 * linux-nat-trad.h: New file.
12171 * linux-nat.c (linux_target_install_ops): Make extern.
12172 (linux_trad_target): Delete.
12173 * linux-nat.h (linux_trad_target): Delete declaration.
12174 (linux_target_install_ops): Declare.
12175 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
12176 "linux-nat.h".
12177
12178 2018-05-02 Pedro Alves <palves@redhat.com>
12179
12180 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
12181 procfs_target/add_target here.
12182 * procfs.c (procfs_target): Make static.
12183 (_initialize_procfs): Call add_target here.
12184 * procfs.h (struct target_ops): Remove forward declaration.
12185 (procfs_target): Remove declaration.
12186 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
12187
12188 2018-05-02 Pedro Alves <palves@redhat.com>
12189
12190 * procfs.c (procfs_stopped_by_watchpoint)
12191 (procfs_insert_watchpoint, procfs_remove_watchpoint)
12192 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
12193 Forward declare.
12194 (procfs_use_watchpoints): Delete, move contents...
12195 (procfs_target): ... here.
12196 * procfs.h (procfs_use_watchpoints): Delete declaration.
12197 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
12198 procfs_use_watchpoints.
12199 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
12200 procfs_use_watchpoints.
12201
12202 2018-05-02 Tom Tromey <tom@tromey.com>
12203
12204 PR python/20084:
12205 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
12206 and var_zuinteger_unlimited.
12207 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
12208 and PARAM_ZUINTEGER_UNLIMITED.
12209 (set_parameter_value): Handle var_zuinteger and
12210 var_zuinteger_unlimited.
12211 (add_setshow_generic): Likewise.
12212 (parmpy_init): Likewise.
12213
12214 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
12215
12216 PR rust/23124
12217 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
12218 pointer is not null before dereferencing it.
12219
12220 2018-04-30 Tom Tromey <tom@tromey.com>
12221
12222 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
12223 is_mi_like_p.
12224
12225 2018-04-30 Tom Tromey <tom@tromey.com>
12226
12227 * breakpoint.c (mention): Remove use of is_mi_like_p.
12228 (print_mention_ranged_breakpoint): Likewise.
12229 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
12230 of is_mi_like_p.
12231
12232 2018-04-30 Tom Tromey <tom@tromey.com>
12233
12234 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
12235
12236 2018-04-30 Tom Tromey <tom@tromey.com>
12237
12238 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
12239 (info_spu_event_command): Remove some uses of is_mi_like_p.
12240
12241 2018-04-30 Tom Tromey <tom@tromey.com>
12242
12243 * python/py-framefilter.c (py_print_single_arg)
12244 (enumerate_locals, py_print_args, py_print_frame): Remove some
12245 uses of is_mi_like_p.
12246
12247 2018-04-30 Tom Tromey <tom@tromey.com>
12248
12249 * ui-out.c: Update.
12250 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
12251 * ui-out.h (ui_out::is_mi_like_p): Now const.
12252 (ui_out::do_is_mi_like_p): Now const.
12253 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
12254
12255 2018-04-30 Tom Tromey <tom@tromey.com>
12256
12257 * varobj.c (varobj_set_visualizer): Use new_reference.
12258 * python/python.c (gdbpy_decode_line): Use new_reference.
12259 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
12260 new_reference.
12261
12262 2018-04-30 Tom Tromey <tom@tromey.com>
12263
12264 * varobj.c (install_new_value): Use new_reference.
12265 * value.h (value_incref): Return void. Swap intro comment with
12266 value_decref.
12267 * value.c (set_value_parent): Use new_reference.
12268 (value_incref): Return void. Update intro comment.
12269 (release_value): Use new_reference.
12270 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
12271
12272 2018-04-30 Tom Tromey <tom@tromey.com>
12273
12274 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
12275 * gdb_bfd.h (new_bfd_ref): Remove.
12276 (gdb_bfd_open): Update comment.
12277 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12278 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
12279 (gdb_bfd_fdopenr): Use new_reference.
12280 * exec.c (exec_file_attach): Use new_reference.
12281
12282 2018-04-30 Tom Tromey <tom@tromey.com>
12283
12284 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
12285 method.
12286
12287 2018-04-30 Tom Tromey <tom@tromey.com>
12288
12289 * jit.c (jit_read_code_entry): Use type_align.
12290 * i386-tdep.c (i386_gdbarch_init): Don't call
12291 set_gdbarch_long_long_align_bit.
12292 * gdbarch.sh: Remove long_long_align_bit.
12293 * gdbarch.c, gdbarch.h: Rebuild.
12294 * arc-tdep.c (arc_type_align): New function.
12295 (arc_gdbarch_init): Use arc_type_align. Don't call
12296 set_gdbarch_long_long_align_bit.
12297
12298 2018-04-30 Tom Tromey <tom@tromey.com>
12299
12300 * rust-lang.c (rust_type_alignment): Remove.
12301 (rust_composite_type): Use type_align.
12302
12303 2018-04-30 Tom Tromey <tom@tromey.com>
12304
12305 * NEWS: Mention Type.align.
12306 * python/py-type.c (typy_get_alignof): New function.
12307 (type_object_getset): Add "alignof".
12308
12309 2018-04-30 Tom Tromey <tom@tromey.com>
12310
12311 PR exp/17095:
12312 * NEWS: Update.
12313 * std-operator.def (UNOP_ALIGNOF): New operator.
12314 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
12315 New.
12316 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
12317 * c-lang.c (c_op_print_tab): Add alignof.
12318 * c-exp.y (ALIGNOF): New token.
12319 (exp): Add "ALIGNOF" production.
12320 (ident_tokens): Add _Alignof and alignof.
12321
12322 2018-04-30 Tom Tromey <tom@tromey.com>
12323
12324 * i386-tdep.c (i386_type_align): New function.
12325 (i386_gdbarch_init): Update.
12326 * gdbarch.sh (type_align): New method.
12327 * gdbarch.c, gdbarch.h: Rebuild.
12328 * arch-utils.h (default_type_align): Declare.
12329 * arch-utils.c (default_type_align): New function.
12330 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
12331 (struct type) <align_log2>: New field.
12332 <instance_flags>: Now a bitfield.
12333 (TYPE_RAW_ALIGN): New macro.
12334 (type_align, type_raw_align, set_type_align): Declare.
12335 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
12336 functions.
12337 * dwarf2read.c (quirk_rust_enum): Set type alignment.
12338 (get_alignment, maybe_set_alignment): New functions.
12339 (read_structure_type, read_enumeration_type, read_array_type)
12340 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
12341 (read_subrange_type, read_base_type): Set type alignment.
12342
12343 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
12344
12345 * dwarf2read.c (read_index_from_section): Use bool.
12346
12347 2018-04-29 Fabian Groffen <grobian@gentoo.org>
12348
12349 PR gdb/22950
12350 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
12351 with #ifdef.
12352
12353 2018-04-29 John Reiser <jreiser@BitWagon.com>
12354
12355 PR build/22873
12356 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
12357 last step, and do it atomically.
12358
12359 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
12360
12361 * compile/compile-c-types.c (convert_int, convert_float):
12362 Update for C FE v1.
12363
12364 2018-04-27 Tom Tromey <tom@tromey.com>
12365
12366 PR rust/22545:
12367 * rust-lang.c (rust_inclusive_range_type_p): New function.
12368 (rust_range): Handle inclusive ranges.
12369 (rust_compute_range): Likewise.
12370 * rust-exp.y (struct rust_op) <inclusive>: New field.
12371 (DOTDOTEQ): New constant.
12372 (range_expr): Add "..=" productions.
12373 (operator_tokens): Add "..=" token.
12374 (ast_range): Add "inclusive" parameter.
12375 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
12376 ranges.
12377 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
12378 bounds values.
12379 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
12380 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
12381 Update comments.
12382 * expprint.c (print_subexp_standard): Handle new bounds values.
12383 (dump_subexp_body_standard): Likewise.
12384
12385 2018-04-27 Tom Tromey <tom@tromey.com>
12386
12387 * configure: Rebuild.
12388 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
12389 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
12390 "OVERRIDE".
12391 (class symbol_needs_eval_context): Likewise.
12392 * dwarf2read.c (mock_mapped_index::symbol_name_count)
12393 (mock_mapped_index::symbol_name_at): Use "override". Remove
12394 "virtual".
12395 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
12396 "override".
12397 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
12398 * aarch64-tdep.c (instruction_reader::read): Use "override".
12399 (instruction_reader_test::read): Likewise.
12400 * arm-tdep.c (instruction_reader::read): Use "override".
12401 (instruction_reader_thumb::read): Likewise.
12402
12403 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
12404
12405 PR remote/9665
12406 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
12407 instead of remote_send.
12408 (remote_send): Remove.
12409
12410 2018-04-26 Pedro Alves <palves@redhat.com>
12411
12412 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
12413 find_function_start_sal instead of find_pc_line.
12414
12415 2018-04-26 Pedro Alves <palves@redhat.com>
12416
12417 * breakpoint.c (set_breakpoint_location_function): Handle
12418 mst_data_gnu_ifunc.
12419 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
12420 * elfread.c (elf_symtab_read): Give data symbols with
12421 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
12422 (elf_rel_plt_read): Update comment.
12423 * linespec.c (convert_linespec_to_sals): Handle
12424 mst_data_gnu_ifunc.
12425 (minsym_found): Handle mst_data_gnu_ifunc.
12426 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
12427 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
12428 * parse.c (find_minsym_type_and_address): Handle
12429 mst_data_gnu_ifunc.
12430 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
12431 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
12432 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
12433 comment.
12434 <mst_data_gnu_ifunc>: New enumerator.
12435
12436 2018-04-26 Pedro Alves <palves@redhat.com>
12437
12438 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
12439 (lookup_minimal_symbol_by_pc_section): ... this. Replace
12440 'want_trampoline' parameter by a lookup_msym_prefer parameter.
12441 Handle it.
12442 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
12443 (lookup_minimal_symbol_by_pc): Adjust.
12444 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
12445 (lookup_solib_trampoline_symbol_by_pc): Adjust.
12446 * minsyms.h (lookup_msym_prefer): New enum.
12447 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12448 parameter by a lookup_msym_prefer parameter.
12449
12450 2018-04-26 Pedro Alves <palves@redhat.com>
12451
12452 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
12453 ends in "@plt" instead of looking at the symbol's section.
12454
12455 2018-04-26 Pedro Alves <palves@redhat.com>
12456
12457 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
12458 all references.
12459 (find_pc_partial_function_gnu_ifunc): Rename to ...
12460 (find_pc_partial_function): ... this, and remove references to
12461 'is_gnu_ifunc_p'.
12462 (find_pc_partial_function): Delete old implementation.
12463 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
12464
12465 2018-04-26 Pedro Alves <palves@redhat.com>
12466
12467 * linespec.c (struct bound_minimal_symbol_search_key): New.
12468 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
12469 skip first line if we found a GNU ifunc minimal symbol by name.
12470 (compare_msymbols): Change parameters to work with a destructured
12471 lhs minsym.
12472 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12473 functions.
12474
12475 2018-04-26 Pedro Alves <palves@redhat.com>
12476
12477 * breakpoint.c (set_breakpoint_location_function): Don't resolve
12478 ifunc targets here. Instead, if we have an ifunc minsym, use its
12479 address/name.
12480 (add_location_to_breakpoint): Store the minsym and the objfile in
12481 the breakpoint location.
12482 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12483 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12484 Record the minsym in the sal.
12485 * symtab.h (symtab_and_line) <msymbol>: New field.
12486
12487 2018-04-26 Pedro Alves <palves@redhat.com>
12488
12489 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12490 unless we actually resolved the ifunc.
12491
12492 2018-04-26 Pedro Alves <palves@redhat.com>
12493
12494 * c-exp.y (variable production): Prefer ifunc minsyms over
12495 regular function symbols.
12496 * symtab.c (find_gnu_ifunc): New function.
12497 * minsyms.h (lookup_msym_prefer): New enum.
12498 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12499 parameter by a lookup_msym_prefer parameter.
12500 * symtab.h (find_gnu_ifunc): New declaration.
12501
12502 2018-04-26 Pedro Alves <palves@redhat.com>
12503
12504 * blockframe.c (find_gnu_ifunc_target_type): New function.
12505 (find_function_type): New.
12506 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12507 return a value with a memory address.
12508 (eval_call): For calls to GNU ifunc functions, try to find the
12509 type of the target function from the type that the resolver
12510 returns.
12511 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12512 symbols.
12513 * infcall.c (find_function_return_type): Delete.
12514 (find_function_addr): Add 'function_type' parameter. For calls to
12515 GNU ifunc functions, try to find the type of the target function
12516 from the type that the resolver returns, and return it via
12517 FUNCTION_TYPE.
12518 (call_function_by_hand_dummy): Adjust to use the function type
12519 returned by find_function_addr.
12520 (find_function_addr): Add 'function_type' parameter and move
12521 description here.
12522 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12523 declarations.
12524
12525 2018-04-26 Pedro Alves <palves@redhat.com>
12526
12527 * c-exp.y (variable production): Skip finding an alias for ifunc
12528 symbols.
12529
12530 2018-04-26 Pedro Alves <palves@redhat.com>
12531
12532 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12533
12534 2018-04-25 Pedro Alves <palves@redhat.com>
12535
12536 * infcmd.c (kill_command): Print the pid as string, not the whole
12537 thread's ptid. Add comment. s/has been killed/killed/ in output
12538 message.
12539 * remote.c (remote_detach_1): Print the pid as string, not the
12540 whole thread's ptid.
12541
12542 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12543 Sergio Durigan Junior <sergiodj@redhat.com>
12544 Pedro Alves <palves@redhat.com>
12545
12546 * infcmd.c (kill_command): Print message when inferior has
12547 been killed.
12548 * inferior.c (print_inferior_events): Remove 'static'. Set as
12549 '1'.
12550 (add_inferior): Improve message printed when
12551 'print_inferior_events' is on.
12552 (exit_inferior): Remove message printed when
12553 'print_inferior_events' is on.
12554 (detach_inferior): Improve message printed when
12555 'print_inferior_events' is on.
12556 (initialize_inferiors): Use 'add_inferior_silent' to set
12557 'current_inferior_'.
12558 * inferior.h (print_inferior_events): Declare here as
12559 'extern'.
12560 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12561 '[Detaching...]' messages when 'print_inferior_events' is on.
12562 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
12563 as prefix/suffix for messages. Remove periods. Fix erroneous
12564 'Detaching after fork from child...', replace it by '... from
12565 parent...'.
12566 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12567 prefix/suffix when printing 'Detaching...' messages. Print
12568 them when 'print_inferior_events' is on.
12569 * remote.c (remote_detach_1): Print message when detaching
12570 from inferior and '!is_fork_parent'.
12571
12572 2018-04-24 Tom Tromey <tom@tromey.com>
12573
12574 * cli-out.h: Reindent.
12575
12576 2018-04-24 Tom Tromey <tom@tromey.com>
12577
12578 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12579 (cli_ui_out::do_field_string): Use fputs_filtered.
12580 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12581
12582 2018-04-23 Tom Tromey <tom@tromey.com>
12583
12584 * guile/scm-frame.c (gdbscm_frame_read_var): Use
12585 gdb::unique_xmalloc_ptr.
12586
12587 2018-04-23 Tom Tromey <tom@tromey.com>
12588
12589 * configure: Rebuild.
12590
12591 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
12592
12593 PR gdb/23095
12594 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12595 prepare_for_testing. Set normal_bp to r_debug_state if target
12596 is bsd.
12597
12598 2018-04-21 Pedro Alves <palves@redhat.com>
12599 Rajendra SY <rajendra.sy@gmail.com>
12600
12601 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12602 * remote.c (extended_remote_attach): In all-stop mode, mark the
12603 thread as executing.
12604
12605 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12606
12607 * thread.c (thread_apply_all_command): Fix comment.
12608 (thread_command): Fix comment.
12609
12610 2018-04-10 Alan Hayward <alan.hayward@arm.com>
12611
12612 * common/tdesc.h (tdesc_create_feature): Remove xml filename
12613 parameter.
12614 * features/aarch64-core.c (create_feature_aarch64_core):
12615 Regenerate.
12616 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12617 Likewise.
12618 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12619 Likewise.
12620 * features/i386/32bit-avx512.c
12621 (create_feature_i386_32bit_avx512): Likewise.
12622 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12623 Likewise.
12624 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12625 Likewise.
12626 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12627 Likewise.
12628 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12629 Likewise.
12630 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12631 Likewise.
12632 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12633 Likewise.
12634 * features/i386/64bit-avx512.c
12635 (create_feature_i386_64bit_avx512): Likewise.
12636 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12637 Likewise.
12638 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12639 Likewise.
12640 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12641 Likewise.
12642 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12643 Likewise.
12644 * features/i386/64bit-segments.c
12645 (create_feature_i386_64bit_segments): Likewise.
12646 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12647 Likewise.
12648 * features/i386/x32-core.c
12649 (create_feature_i386_x32_core): Likewise.
12650 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12651 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12652 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12653 * target-descriptions.c: In generated code, don't pass xml
12654 filename.
12655
12656 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12657
12658 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12659 (print_xml_feature::visit_post): Likewise.
12660 (print_xml_feature::visit): Likewise.
12661 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12662 (print_xml_feature): Add new class.
12663 * regformats/regdat.sh: Null xmltarget on feature targets.
12664 * target-descriptions.c (struct target_desc): Add xmltarget.
12665 (maintenance_check_tdesc_xml_convert): Add unittest function.
12666 (tdesc_get_features_xml): Add function to get xml.
12667 (maintenance_check_xml_descriptions): Test xml generation.
12668 * xml-tdesc.c (string_read_description_xml): Add function.
12669 * xml-tdesc.h (string_read_description_xml): Add declaration.
12670
12671 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12672
12673 * features/Makefile: Add feature marker to targets with new style
12674 target descriptions.
12675 * regformats/aarch64.dat: Regenerate.
12676 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12677 * regformats/i386/amd64-avx-linux.dat: Likewise.
12678 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12679 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12680 * regformats/i386/amd64-linux.dat: Likewise.
12681 * regformats/i386/amd64-mpx-linux.dat: Likewise.
12682 * regformats/i386/amd64.dat: Likewise.
12683 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12684 * regformats/i386/i386-avx-linux.dat: Likewise.
12685 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12686 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12687 * regformats/i386/i386-linux.dat: Likewise.
12688 * regformats/i386/i386-mmx-linux.dat: Likewise.
12689 * regformats/i386/i386-mpx-linux.dat: Likewise.
12690 * regformats/i386/i386.dat: Likewise.
12691 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12692 * regformats/i386/x32-avx-linux.dat: Likewise.
12693 * regformats/i386/x32-linux.dat: Likewise.
12694 * regformats/tic6x-c62x-linux.dat: Likewise.
12695 * regformats/tic6x-c64x-linux.dat: Likewise.
12696 * regformats/tic6x-c64xp-linux.dat: Likewise.
12697 * regformats/regdat.sh: Parse feature marker.
12698
12699 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12700
12701 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12702 (tdesc_osabi_name): Likewise.
12703 * target-descriptions.c (tdesc_architecture_name): Add new
12704 function.
12705 (tdesc_osabi_name): Likewise.
12706
12707 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12708
12709 * common/tdesc.c (tdesc_predefined_type): Move to here.
12710 (tdesc_named_type): Likewise.
12711 (tdesc_create_vector): Likewise.
12712 (tdesc_create_struct): Likewise.
12713 (tdesc_set_struct_size): Likewise.
12714 (tdesc_create_union): Likewise.
12715 (tdesc_create_flags): Likewise.
12716 (tdesc_create_enum): Likewise.
12717 (tdesc_add_field): Likewise.
12718 (tdesc_add_typed_bitfield): Likewise.
12719 (tdesc_add_bitfield): Likewise.
12720 (tdesc_add_flag): Likewise.
12721 (tdesc_add_enum_value): Likewise.
12722 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12723 (struct tdesc_type_vector): Likewise.
12724 (struct tdesc_type_field): Likewise.
12725 (struct tdesc_type_with_fields): Likewise.
12726 (tdesc_create_enum): Add declaration.
12727 (tdesc_add_typed_bitfield): Likewise.
12728 (tdesc_add_enum_value): Likewise.
12729 * target-descriptions.c (tdesc_type_field): Move from here.
12730 (tdesc_type_builtin): Likewise.
12731 (tdesc_type_vector): Likewise.
12732 (tdesc_type_with_fields): Likewise.
12733 (tdesc_predefined_types): Likewise.
12734 (tdesc_named_type): Likewise.
12735 (tdesc_create_vector): Likewise.
12736 (tdesc_create_struct): Likewise.
12737 (tdesc_set_struct_size): Likewise.
12738 (tdesc_create_union): Likewise.
12739 (tdesc_create_flags): Likewise.
12740 (tdesc_create_enum): Likewise.
12741 (tdesc_add_field): Likewise.
12742 (tdesc_add_typed_bitfield): Likewise.
12743 (tdesc_add_bitfield): Likewise.
12744 (tdesc_add_flag): Likewise.
12745 (tdesc_add_enum_value): Likewise.
12746 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12747 (tdesc_add_typed_bitfield): Likewise.
12748 (tdesc_add_enum_value): Likewise.
12749
12750 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12751
12752 * common/tdesc.c (tdesc_feature::accept): Move to here.
12753 (tdesc_feature::operator==): Likewise.
12754 (tdesc_create_reg): Likewise.
12755 * common/tdesc.h (tdesc_type_kind): Likewise.
12756 (struct tdesc_type): Likewise.
12757 (struct tdesc_feature): Likewise.
12758 * regformats/regdat.sh: Create a feature.
12759 * target-descriptions.c (tdesc_type_kind): Move from here.
12760 (tdesc_type): Likewise.
12761 (tdesc_type_up): Likewise.
12762 (tdesc_feature): Likewise.
12763 (tdesc_create_reg): Likewise.
12764
12765 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12766
12767 * Makefile.in: Add arch/tdesc.c
12768 * common/tdesc.c: New file.
12769 * common/tdesc.h (tdesc_element_visitor): Move to here.
12770 (tdesc_element): Likewise.
12771 (tdesc_reg): Likewise.
12772 (tdesc_reg_up): Likewise.
12773 * regformats/regdef.h (reg): Add offset to constructors.
12774 * target-descriptions.c (tdesc_element_visitor): Move from here.
12775 (tdesc_element): Likewise.
12776 (tdesc_reg): Likewise.
12777 (tdesc_reg_up): Likewise.
12778
12779 2018-04-17 Tom Tromey <tom@tromey.com>
12780
12781 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12782 discriminant field.
12783
12784 2018-04-17 Tom Tromey <tom@tromey.com>
12785
12786 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12787
12788 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12789
12790 * symtab.c (print_symbol_info): Skip printing filename and line
12791 number when `last' is NULL.
12792 (symtab_symbol_info): Use empty string instead of NULL for first
12793 invocation of print_symbol_info.
12794 (rbreak_command): Pass NULL to `last' parameter of
12795 print_symbol_info.
12796
12797 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12798
12799 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12800 instead of nullptr.
12801
12802 2018-04-16 Pedro Alves <palves@redhat.com>
12803
12804 * MAINTAINERS (sh): Remove.
12805 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12806 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12807 (ALLDEPFILES): Remove sh64-tdep.c.
12808 * NEWS: Mentions that support for SH-5/SH64 is removed.
12809 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12810 (sh*-*-openbsd*): Ditto.
12811 (sh64-*-elf*): Remove.
12812 (sh*): Remove.
12813 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12814 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12815 * sh-tdep.c: No longer include "sh64-tdep.h".
12816 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12817 * sh64-tdep.c, sh64-tdep.h: Remove files.
12818
12819 2018-04-16 Pedro Alves <palves@redhat.com>
12820
12821 * MAINTAINERS: Remove m88k.
12822 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12823 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12824 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12825 * NEWS: Mention that support for m88k was removed.
12826 * configure.host (m88*-*-*): Remove support.
12827 * configure.nat (m88k-*-*): Remove support.
12828 * configure.tgt (m88*-*-openbsd*): Remove.
12829 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12830
12831 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12832
12833 * configure.tgt (x86_tobjs): New variable.
12834 (amd64_tobjs, i386_tobjs): Use it.
12835
12836 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12837
12838 * symtab.c (print_symbol_info): Precede the symbol definition by
12839 the line number when available.
12840 * NEWS: Advertise this enhancement.
12841
12842 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12843
12844 * NEWS (New options): announce set/show record btrace cpu.
12845 * btrace.c: Include record-btrace.h.
12846 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12847 the vendor is unknown.
12848 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12849 Maybe overwrite the btrace configuration's cpu.
12850 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12851 (btrace_fetch): Add cpu parameter. Update callers.
12852 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12853 Maybe overwrite the btrace configuration's cpu. Skip enabling
12854 errata workarounds if the vendor is unknown.
12855 * python/py-record-btrace.c: Include record-btrace.h.
12856 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12857 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12858 * record-btrace.c (record_btrace_cpu_state_kind): New.
12859 (record_btrace_cpu): New.
12860 (set_record_btrace_cpu_cmdlist): New.
12861 (record_btrace_get_cpu): New.
12862 (require_btrace_thread, record_btrace_info)
12863 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12864 (cmd_set_record_btrace_cpu_none): New.
12865 (cmd_set_record_btrace_cpu_auto): New.
12866 (cmd_set_record_btrace_cpu): New.
12867 (cmd_show_record_btrace_cpu): New.
12868 (_initialize_record_btrace): Initialize set/show record btrace cpu
12869 commands.
12870 * record-btrace.h (record_btrace_get_cpu): New.
12871
12872 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12873
12874 * record.c (set_record_command): Fix typo in message.
12875
12876 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12877
12878 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12879
12880 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12881
12882 * infrun.c (process_event_stop_test): Call
12883 gdbarch_in_indirect_branch_thunk.
12884 * gdbarch.sh (in_indirect_branch_thunk): New.
12885 * gdbarch.c: Regenerated.
12886 * gdbarch.h: Regenerated.
12887 * x86-tdep.h: New.
12888 * x86-tdep.c: New.
12889 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12890 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12891 (ALLDEPFILES): Add x86-tdep.c.
12892 * arch-utils.h (default_in_indirect_branch_thunk): New.
12893 * arch-utils.c (default_in_indirect_branch_thunk): New.
12894 * i386-tdep: Include x86-tdep.h.
12895 (i386_in_indirect_branch_thunk): New.
12896 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12897 function.
12898 * amd64-tdep: Include x86-tdep.h.
12899 (amd64_in_indirect_branch_thunk): New.
12900 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12901
12902 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12903
12904 PR gdb/23053
12905 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12906 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12907 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12908 regression.
12909
12910 2018-04-12 Tom Tromey <tom@tromey.com>
12911
12912 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12913 (rust_evaluate_subexp): Likewise.
12914
12915 2018-04-12 Pedro Alves <palves@redhat.com>
12916
12917 * procfs.c (procfs_detach): Make forward declaration's prototype
12918 match definition's protototype.
12919 (proc_get_LDT_entry): Remove stale do_cleanups call.
12920
12921 2018-04-12 Pedro Alves <palves@redhat.com>
12922
12923 * target.h (target_ops::to_has_exited): Delete.
12924 (target_has_exited): Delete.
12925 * target-delegates.c: Regenerate.
12926
12927 2018-04-11 Pedro Alves <palves@redhat.com>
12928
12929 * target.c (fileio_fh_t::t): Add comment.
12930 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12931 (target_fileio_close): Handle a NULL target.
12932 (invalidate_fileio_fh): New.
12933 (target_close): Call it.
12934 * remote.c (remote_hostio_send_command): No longer check whether
12935 remote_desc is open.
12936
12937 2018-04-11 Pedro Alves <palves@redhat.com>
12938
12939 * target.c (fileio_fh_t): Make it a named struct instead of a
12940 typedef.
12941 (fileio_fh_t::is_closed): New method.
12942 (DEF_VEC_O (fileio_fh_t)): Remove.
12943 (fileio_fhandles): Now a std::vector.
12944 (is_closed_fileio_fh): Delete.
12945 (acquire_fileio_fd): Adjust. Rename parameters.
12946 (release_fileio_fd): Adjust.
12947 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12948 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12949 (target_fileio_close): Adjust.
12950
12951 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12952
12953 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12954 index.
12955
12956 2018-04-10 Pedro Alves <palves@redhat.com>
12957
12958 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12959 (scoped_finish_thread_state): New class.
12960 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12961 cleanup.
12962 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12963 (fetch_inferior_event, normal_stop): Likewise.
12964 * thread.c (finish_thread_state_cleanup): Delete.
12965
12966 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12967 Pedro Alves <palves@redhat.com>
12968
12969 * value.c: Include "selftest.h" and "common/array-view.h".
12970 (struct range) <operator ==>: New.
12971 (test_ranges_contain): New.
12972 (check_ranges_vector): New.
12973 (test_insert_into_bit_range_vector): New.
12974 (_initialize_values): Register selftests.
12975 * common/array-view.h (operator==, operator!=): New.
12976
12977 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12978
12979 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12980 an iterator.
12981 * inline-frame.c: Include <algorithm>.
12982 (struct inline_state): Add constructor.
12983 (inline_state_s): Remove.
12984 (DEF_VEC_O(inline_state_s)): Remove.
12985 (inline_states): Change type to std::vector.
12986 (find_inline_frame_state): Adjust to std::vector.
12987 (allocate_inline_frame_state): Remove.
12988 (clear_inline_frame_state): Adjust to std::vector.
12989 (skip_inline_frames): Adjust to std::vector.
12990
12991 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12992
12993 * tracepoint.h (struct trace_state_variable): Add constructor.
12994 <name>: Change type to std::string.
12995 * tracepoint.c (tsv_s): Remove.
12996 (DEF_VEC_O(tsv_s)): Remove.
12997 (tvariables): Change to std::vector.
12998 (create_trace_state_variable): Adjust to std::vector.
12999 (find_trace_state_variable): Likewise.
13000 (find_trace_state_variable_by_number): Likewise.
13001 (delete_trace_state_variable): Likewise.
13002 (trace_variable_command): Adjust to std::string.
13003 (delete_trace_variable_command): Likewise.
13004 (tvariables_info_1): Adjust to std::vector.
13005 (save_trace_state_variables): Likewise.
13006 (start_tracing): Likewise.
13007 (merge_uploaded_trace_state_variables): Adjust to std::vector
13008 and std::string.
13009 * target.h (struct target_ops)
13010 <to_download_trace_state_variable>: Pass reference to
13011 trace_state_variable.
13012 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
13013 * target-delegates.c: Re-generate.
13014 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
13015 (mi_tsv_deleted): Likewise.
13016 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
13017 * remote.c (remote_download_trace_state_variable): Change
13018 pointer to reference and adjust.
13019 * make-target-delegates (parse_argtypes): Handle references.
13020 (write_function_header): Likewise.
13021 (munge_type): Likewise.
13022
13023 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13024
13025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13026 string_view-selftests.c.
13027 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
13028 testsuite.
13029 * unittests/basic_string_view/cons/char/1.cc: Likewise.
13030 * unittests/basic_string_view/cons/char/2.cc: Likewise.
13031 * unittests/basic_string_view/cons/char/3.cc: Likewise.
13032 * unittests/basic_string_view/element_access/char/1.cc:
13033 Likewise.
13034 * unittests/basic_string_view/element_access/char/empty.cc:
13035 Likewise.
13036 * unittests/basic_string_view/element_access/char/front_back.cc:
13037 Likewise.
13038 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
13039 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
13040 Likewise.
13041 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
13042 Likewise.
13043 * unittests/basic_string_view/modifiers/swap/char/1.cc:
13044 Likewise.
13045 * unittests/basic_string_view/operations/compare/char/1.cc:
13046 Likewise.
13047 * unittests/basic_string_view/operations/compare/char/13650.cc:
13048 Likewise.
13049 * unittests/basic_string_view/operations/copy/char/1.cc:
13050 Likewise.
13051 * unittests/basic_string_view/operations/data/char/1.cc:
13052 Likewise.
13053 * unittests/basic_string_view/operations/find/char/1.cc:
13054 Likewise.
13055 * unittests/basic_string_view/operations/find/char/2.cc:
13056 Likewise.
13057 * unittests/basic_string_view/operations/find/char/3.cc:
13058 Likewise.
13059 * unittests/basic_string_view/operations/find/char/4.cc:
13060 Likewise.
13061 * unittests/basic_string_view/operations/rfind/char/1.cc:
13062 Likewise.
13063 * unittests/basic_string_view/operations/rfind/char/2.cc:
13064 Likewise.
13065 * unittests/basic_string_view/operations/rfind/char/3.cc:
13066 Likewise.
13067 * unittests/basic_string_view/operations/substr/char/1.cc:
13068 Likewise.
13069 * unittests/basic_string_view/operators/char/2.cc: Likewise.
13070 * unittests/string_view-selftests.c: New file.
13071
13072 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13073
13074 * unittests/basic_string_view/capacity/1.cc: New file.
13075 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
13076 * unittests/basic_string_view/cons/char/1.cc: New file.
13077 * unittests/basic_string_view/cons/char/2.cc: New file.
13078 * unittests/basic_string_view/cons/char/3.cc: New file.
13079 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
13080 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
13081 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
13082 * unittests/basic_string_view/element_access/char/1.cc: New file.
13083 * unittests/basic_string_view/element_access/char/2.cc: New file.
13084 * unittests/basic_string_view/element_access/char/empty.cc: New file.
13085 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
13086 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
13087 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
13088 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
13089 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
13090 * unittests/basic_string_view/include.cc: New file.
13091 * unittests/basic_string_view/inserters/char/1.cc: New file.
13092 * unittests/basic_string_view/inserters/char/2.cc: New file.
13093 * unittests/basic_string_view/inserters/char/3.cc: New file.
13094 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
13095 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
13096 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
13097 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
13098 * unittests/basic_string_view/literals/types.cc: New file.
13099 * unittests/basic_string_view/literals/values.cc: New file.
13100 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
13101 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
13102 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
13103 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
13104 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
13105 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
13106 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
13107 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
13108 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
13109 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
13110 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
13111 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
13112 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
13113 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
13114 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
13115 * unittests/basic_string_view/operations/data/char/1.cc: New file.
13116 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
13117 * unittests/basic_string_view/operations/find/char/1.cc: New file.
13118 * unittests/basic_string_view/operations/find/char/2.cc: New file.
13119 * unittests/basic_string_view/operations/find/char/3.cc: New file.
13120 * unittests/basic_string_view/operations/find/char/4.cc: New file.
13121 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
13122 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
13123 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
13124 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
13125 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
13126 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
13127 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
13128 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
13129 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
13130 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
13131 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
13132 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
13133 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
13134 * unittests/basic_string_view/operators/char/2.cc: New file.
13135 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
13136 * unittests/basic_string_view/range_access/char/1.cc: New file.
13137 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
13138 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
13139 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
13140 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
13141 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
13142 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
13143 * unittests/basic_string_view/requirements/typedefs.cc: New file.
13144 * unittests/basic_string_view/typedefs.cc: New file.
13145 * unittests/basic_string_view/types/1.cc: New file.
13146
13147 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13148
13149 * common/gdb_string_view.h: Remove libstdc++ implementation
13150 details, adjust to gdb reality.
13151 * common/gdb_string_view.tcc: Likewise.
13152 * cli/cli-script.c (struct string_view): Remove.
13153 (user_args) <m_args>: Change element type to gdb::string_view.
13154 (user_args::insert_args): Adjust.
13155
13156 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13157
13158 * common/gdb_string_view.h: New file.
13159 * common/gdb_string_view.tcc: New file.
13160
13161 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13162
13163 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
13164 * configure: Re-generate.
13165
13166 2018-04-09 Pedro Alves <palves@redhat.com>
13167
13168 * gdbarch.sh: Include "observable.h" instead of "observer.h".
13169 (set_target_gdbarch): Call
13170 gdb::observers::architecture_changed.notify instead of
13171 observer_notify_architecture_changed.
13172
13173 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13174
13175 * tracepoint.c (struct current_traceframe_cleanup): Remove.
13176 (do_restore_current_traceframe_cleanup): Remove.
13177 (restore_current_traceframe_cleanup_dtor): Remove.
13178 (make_cleanup_restore_current_traceframe): Remove.
13179 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
13180 New.
13181 * tracepoint.h (struct scoped_restore_current_traceframe): New.
13182 * infrun.c (fetch_inferior_event): Use
13183 scoped_restore_current_traceframe.
13184
13185 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13186
13187 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
13188 Remove.
13189 <n_allocated_type_units>: Remove.
13190 <all_type_units>: Change to std::vector.
13191 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
13192 to std::vector change.
13193 (dwarf2_per_objfile::get_cutu): Likewise.
13194 (dwarf2_per_objfile::get_tu): Likewise.
13195 (create_signatured_type_table_from_index): Likewise.
13196 (create_signatured_type_table_from_debug_names): Likewise.
13197 (dw2_symtab_iter_next): Likewise.
13198 (dw2_print_stats): Likewise.
13199 (dw2_expand_all_symtabs): Likewise.
13200 (dw2_expand_marked_cus): Likewise.
13201 (dw2_debug_names_iterator::next): Likewise.
13202 (dwarf2_initialize_objfile): Likewise.
13203 (add_signatured_type_cu_to_table): Likewise.
13204 (create_all_type_units): Likewise.
13205 (add_type_unit): Likewise.
13206 (struct tu_abbrev_offset): Add constructor.
13207 (build_type_psymtabs_1): Adjust to std::vector change.
13208 (print_tu_stats): Likewise.
13209 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13210 (write_debug_names): Likewise.
13211
13212 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13213
13214 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
13215 Make an std::vector.
13216 <n_comp_units>: Remove.
13217 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
13218 to std::vector change.
13219 (dwarf2_per_objfile::get_cutu): Likewise.
13220 (dwarf2_per_objfile::get_cu): Likewise.
13221 (create_cus_from_index): Likewise.
13222 (create_addrmap_from_index): Likewise.
13223 (create_addrmap_from_aranges): Likewise.
13224 (dwarf2_read_index): Likewise.
13225 (dw2_find_last_source_symtab): Likewise.
13226 (dw2_map_symtabs_matching_filename): Likewise.
13227 (dw2_symtab_iter_next): Likewise.
13228 (dw2_print_stats): Likewise.
13229 (dw2_expand_all_symtabs): Likewise.
13230 (dw2_expand_symtabs_with_fullname): Likewise.
13231 (dw2_expand_marked_cus): Likewise.
13232 (dw2_map_symbol_filenames): Likewise.
13233 (create_cus_from_debug_names): Likewise.
13234 (dwarf2_read_debug_names): Likewise.
13235 (dw2_debug_names_iterator::next): Likewise.
13236 (dwarf2_initialize_objfile): Likewise.
13237 (set_partial_user): Likewise.
13238 (dwarf2_build_psymtabs_hard): Likewise.
13239 (read_comp_units_from_section): Remove arguments, adjust to
13240 std::vector change.
13241 (create_all_comp_units): Adjust to std::vector and
13242 read_comp_units_from_section changes.
13243 (dwarf2_find_containing_comp_unit): Adjust to std::vector
13244 change.
13245 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13246 (psyms_seen_size): Likewise.
13247 (write_gdbindex): Likewise.
13248 (write_debug_names): Likewise.
13249
13250 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13251
13252 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
13253 with dwarf2_per_objfile.
13254 (create_cus_from_index): Likewise.
13255 (create_signatured_type_table_from_index): Likewise.
13256 (dwarf2_read_index): Likewise.
13257 (dwarf2_initialize_objfile): Likewise.
13258 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
13259 per_cu rather than get_dwarf2_per_objfile.
13260
13261 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13262
13263 * dwarf2read.h (struct signatured_type): Forward declare.
13264 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
13265 New methods.
13266 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
13267 (dw2_get_cutu): ...this.
13268 (dwarf2_per_objfile::get_cu): Rename from...
13269 (dw2_get_cu): ...this.
13270 (dwarf2_per_objfile::get_tu): New.
13271 (create_addrmap_from_index): Adjust.
13272 (create_addrmap_from_aranges): Adjust.
13273 (dw2_find_last_source_symtab): Adjust.
13274 (dw2_map_symtabs_matching_filename): Adjust.
13275 (dw2_symtab_iter_next): Adjust.
13276 (dw2_print_stats): Adjust.
13277 (dw2_expand_all_symtabs): Adjust.
13278 (dw2_expand_symtabs_with_fullname): Adjust.
13279 (dw2_expand_marked_cus): Adjust.
13280 (dw_expand_symtabs_matching_file_matcher): Adjust.
13281 (dw2_map_symbol_filenames): Adjust.
13282 (dw2_debug_names_iterator::next): Adjust.
13283 (dwarf2_initialize_objfile): Adjust.
13284 (set_partial_user): Adjust.
13285 (dwarf2_build_psymtabs_hard): Adjust.
13286
13287 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13288
13289 * dwarf2read.c (create_signatured_type_table_from_debug_names):
13290 Remove unused variables.
13291 (dw2_map_symtabs_matching_filename): Likewise.
13292 (dwarf2_record_block_ranges): Likewise.
13293 (dwarf2_read_addr_index): Likewise.
13294 (follow_die_offset): Likewise.
13295
13296 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13297
13298 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
13299 to symbol_file_add_main.
13300
13301 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13302
13303 PR mi/22299
13304 * mi/mi-console.c (do_fputc_async_safe): New.
13305 (mi_console_file::write_async_safe): New.
13306 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
13307 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
13308 New.
13309 * ui-file.c (ui_file::putstrn): Adjust call to
13310 fputstrn_unfiltered.
13311 * utils.c (printchar): Replace do_fputs and do_fprintf
13312 parameters by do_fputc.
13313 (fputstr_filtered): Adjust call to printchar.
13314 (fputstr_unfiltered): Likewise.
13315 (fputstrn_filtered): Likewise.
13316 (fputstrn_unfiltered): Add do_fputc parameter, pass to
13317 printchar.
13318 * utils.h (do_fputc_ftype): New typedef.
13319 (fputstrn_unfiltered): Add do_fputc parameter.
13320
13321 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13322
13323 * regformats/i386/i386-avx.dat: Remove.
13324
13325 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13326
13327 PR gdb/22979
13328 * amd64-tdep.c (amd64_none_init_abi): New function.
13329 (amd64_x32_none_init_abi): New function.
13330 (_initialize_amd64_tdep): Register handlers for x86-64 and
13331 x64_32 with GDB_OSABI_NONE.
13332 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
13333 GDB_OSABI_NONE osabi.
13334
13335 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13336
13337 PR gdb/22980
13338 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
13339 GDB_OSABI_NONE.
13340 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
13341 * osabi.c (gdb_osabi_names): Add "unknown" entry.
13342
13343 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13344
13345 * common/byte-vector.h (char_vector): New type.
13346 * target.h (target_read_alloc): Return
13347 gdb::optional<byte_vector>.
13348 (target_read_stralloc): Return gdb::optional<char_vector>.
13349 (target_get_osdata): Return gdb::optional<char_vector>.
13350 * target.c (target_read_alloc_1): Templatize. Replacement
13351 manual memory management with vector.
13352 (target_read_alloc): Change return type, adjust.
13353 (target_read_stralloc): Change return type, adjust.
13354 (target_get_osdata): Change return type, adjust.
13355 * auxv.c (struct auxv_info) <length>: Remove.
13356 <data>: Change type to gdb::optional<byte_vector>.
13357 (auxv_inferior_data_cleanup): Free auxv_info with delete.
13358 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
13359 (target_auxv_search): Adjust.
13360 (fprint_target_auxv): Adjust.
13361 * avr-tdep.c (avr_io_reg_read_command): Adjust.
13362 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
13363 (linux_make_corefile_notes): Adjust.
13364 * osdata.c (get_osdata): Adjust.
13365 * remote.c (remote_get_threads_with_qxfer): Adjust.
13366 (remote_memory_map): Adjust.
13367 (remote_traceframe_info): Adjust.
13368 (btrace_read_config): Adjust.
13369 (remote_read_btrace): Adjust.
13370 (remote_pid_to_exec_file): Adjust.
13371 * solib-aix.c (solib_aix_get_library_list): Adjust.
13372 * solib-dsbt.c (decode_loadmap): Don't free buf.
13373 (dsbt_get_initial_loadmaps): Adjust.
13374 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
13375 * solib-target.c (solib_target_current_sos): Adjust.
13376 * tracepoint.c (sdata_make_value): Adjust.
13377 * xml-support.c (xinclude_start_include): Adjust.
13378 (xml_fetch_content_from_file): Adjust.
13379 * xml-support.h (xml_fetch_another): Change return type.
13380 (xml_fetch_content_from_file): Change return type.
13381 * xml-syscall.c (xml_init_syscalls_info): Adjust.
13382 * xml-tdesc.c (file_read_description_xml): Adjust.
13383 (fetch_available_features_from_target): Change return type.
13384 (target_fetch_description_xml): Adjust.
13385 (target_read_description_xml): Adjust.
13386
13387 2018-04-06 Tom Tromey <tom@tromey.com>
13388
13389 * value.c (~value): Update.
13390 (struct value) <contents>: Now unique_xmalloc_ptr.
13391 (value_contents_bits_eq, allocate_value_contents)
13392 (value_contents_raw, value_contents_all_raw)
13393 (value_contents_for_printing, value_contents_for_printing_const)
13394 (set_value_enclosing_type): Update.
13395
13396 2018-04-06 Tom Tromey <tom@tromey.com>
13397
13398 * value.c (range_s): Remove typedef, VEC.
13399 (struct range): Add operator<.
13400 (range_lessthan): Remove.
13401 (ranges_contain): Change type.
13402 (~value): Update.
13403 (struct value) <unavailable, optimized_out>: Now std::vector.
13404 (value_entirely_available)
13405 (value_entirely_covered_by_range_vector)
13406 (value_entirely_unavailable, value_entirely_optimized_out):
13407 Update.
13408 (insert_into_bit_range_vector): Change argument type.
13409 (find_first_range_overlap): Likewise.
13410 (struct ranges_and_idx, value_contents_bits_eq)
13411 (require_not_optimized_out, require_available): Update.
13412 (ranges_copy_adjusted): Change argument types.
13413 (value_optimized_out, value_copy, value_fetch_lazy): Update.
13414
13415 2018-04-06 Tom Tromey <tom@tromey.com>
13416
13417 * value.c (~value): Update.
13418 (struct value) <parent>: Now a value_ref_ptr.
13419 (value_parent, set_value_parent, value_address, value_copy):
13420 Update.
13421
13422 2018-04-06 Tom Tromey <tom@tromey.com>
13423
13424 * value.c (struct value): Add constructor, destructor, and member
13425 initializers.
13426 (allocate_value_lazy, value_decref): Update.
13427
13428 2018-04-06 Tom Tromey <tom@tromey.com>
13429
13430 * value.c (struct value) <released, next>: Remove.
13431 (all_values): Now a std::vector.
13432 (allocate_value_lazy): Update.
13433 (value_next): Remove.
13434 (value_mark, value_free_to_mark, release_value)
13435 (value_release_to_mark): Update.
13436
13437 2018-04-06 Tom Tromey <tom@tromey.com>
13438
13439 * value.h (fetch_subexp_value, value_release_to_mark): Update.
13440 (free_value_chain): Remove.
13441 * value.c (free_value_chain): Remove.
13442 (value_release_to_mark): Return a std::vector.
13443 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
13444 std::vector.
13445 (check_condition): Update.
13446 * eval.c (fetch_subexp_value): Change "val_chain" to a
13447 std::vector.
13448 * breakpoint.c (update_watchpoint): Update.
13449 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
13450
13451 2018-04-06 Tom Tromey <tom@tromey.com>
13452
13453 * value.h (free_all_values): Remove.
13454 * value.c (free_all_values): Remove.
13455
13456 2018-04-06 Tom Tromey <tom@tromey.com>
13457
13458 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
13459 (value_history_chain, value_history_count): Remove.
13460 (value_history): New global.
13461 (record_latest_value, access_value_history, show_values)
13462 (preserve_values): Update.
13463
13464 2018-04-06 Tom Tromey <tom@tromey.com>
13465
13466 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
13467 * varobj.c (varobj_set_display_format, varobj_set_value)
13468 (install_default_visualizer, construct_visualizer)
13469 (install_new_value, ~varobj, varobj_get_value_type)
13470 (my_value_of_variable, varobj_editable_p): Update.
13471 * c-varobj.c (c_describe_child, c_value_of_variable)
13472 (cplus_number_of_children, cplus_describe_child): Update.
13473 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13474 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13475 (ada_value_of_variable, ada_value_is_changeable_p): Update.
13476
13477 2018-04-06 Tom Tromey <tom@tromey.com>
13478
13479 * printcmd.c (last_examine_address): Change type to
13480 value_ref_ptr.
13481 (do_examine, x_command): Update.
13482
13483 2018-04-06 Tom Tromey <tom@tromey.com>
13484
13485 * value.c (release_value): Update.
13486 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13487 (struct bpstats) <val>: Now a value_ref_ptr.
13488 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13489 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13490 (~watchpoint, print_it_watchpoint, watch_command_1)
13491 (invalidate_bp_value_on_memory_change): Update.
13492
13493 2018-04-06 Tom Tromey <tom@tromey.com>
13494
13495 * varobj.c (varobj_clear_saved_item)
13496 (update_dynamic_varobj_children, install_new_value, ~varobj):
13497 Update.
13498 * value.h (value_incref): Move declaration earlier.
13499 (value_decref): Rename from value_free.
13500 (struct value_ref_policy): New.
13501 (value_ref_ptr): New typedef.
13502 (struct value_deleter): Remove.
13503 (gdb_value_up): Remove typedef.
13504 (release_value): Change return type.
13505 (release_value_or_incref): Remove.
13506 * value.c (set_value_parent): Update.
13507 (value_incref): Change return type.
13508 (value_decref): Rename from value_free.
13509 (value_free_to_mark, free_all_values, free_value_chain): Update.
13510 (release_value): Return value_ref_ptr.
13511 (release_value_or_incref): Remove.
13512 (record_latest_value, set_internalvar, clear_internalvar):
13513 Update.
13514 * stack.c (info_frame_command): Don't call value_free.
13515 * python/py-value.c (valpy_dealloc, valpy_new)
13516 (value_to_value_object): Update.
13517 * printcmd.c (do_examine): Update.
13518 * opencl-lang.c (lval_func_free_closure): Update.
13519 * mi/mi-main.c (register_changed_p): Don't call value_free.
13520 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13521 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13522 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13523 value_free.
13524 * guile/scm-value.c (vlscm_free_value_smob)
13525 (vlscm_scm_from_value): Update.
13526 * frame.c (frame_register_unwind, frame_unwind_register_signed)
13527 (frame_unwind_register_unsigned, get_frame_register_bytes)
13528 (put_frame_register_bytes): Don't call value_free.
13529 * findvar.c (address_from_register): Don't call value_free.
13530 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13531 * dwarf2loc.c (entry_data_value_free_closure)
13532 (value_of_dwarf_reg_entry, free_pieced_value_closure)
13533 (dwarf2_evaluate_loc_desc_full): Update.
13534 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13535 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13536 (~watchpoint, watch_command_1)
13537 (invalidate_bp_value_on_memory_change): Update.
13538 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13539
13540 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
13541
13542 PR gdb/23022
13543 * warning.m4: Add -Wno-error=deprecated-register.
13544 * configure: Re-generate.
13545
13546 2018-04-05 Tom Tromey <tom@tromey.com>
13547
13548 * linespec.h: Remove include of "vec.h".
13549
13550 2018-04-05 Tom Tromey <tom@tromey.com>
13551
13552 * linespec.c (typep): Remove typedef.
13553 (find_methods, find_superclass_methods): Take a std::vector.
13554 (find_method): Use std::vector.
13555
13556 2018-04-05 Tom Tromey <tom@tromey.com>
13557
13558 * utils.c (compare_strings): Remove.
13559 * utils.h (compare_strings): Remove.
13560 * objc-lang.h (find_imps): Update.
13561 * objc-lang.c (find_methods): Take a std::vector.
13562 (uniquify_strings, find_imps): Likewise.
13563 * linespec.c (find_methods): Take a std::vector.
13564 (decode_objc): Use std::vector.
13565 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13566 a std::vector.
13567 (find_method, find_function_symbols): Use std::vector.
13568
13569 2018-04-05 Tom Tromey <tom@tromey.com>
13570
13571 * completer.c (completion_tracker::completion_tracker): Remove
13572 cast.
13573 (completion_tracker::discard_completions): Likewise.
13574 * breakpoint.c (ambiguous_names_p): Remove cast.
13575 * ada-lang.c (_initialize_ada_language): Remove cast.
13576 * utils.h (streq): Update.
13577 (streq_hash): Add new declaration.
13578 * utils.c (streq): Return bool.
13579 (streq_hash): New function.
13580
13581 2018-04-05 Tom Tromey <tom@tromey.com>
13582
13583 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13584 Remove a string copy.
13585
13586 2018-04-05 Tom Tromey <tom@tromey.com>
13587
13588 * linespec.c (filter_results): Use std::vector.
13589 (decode_line_2, decode_line_full): Update.
13590
13591 2018-04-05 Tom Tromey <tom@tromey.com>
13592
13593 * linespec.c (canonical_to_fullform): Return std::string.
13594 (filter_results): Update.
13595 (struct decode_line_2_item): Add constructor.
13596 <fullform, displayform>: Now std::string.
13597 (decode_line_2_compare_items): Now a std::sort comparator.
13598 (decode_line_2): Update.
13599
13600 2018-04-05 Tom Tromey <tom@tromey.com>
13601
13602 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13603 (unexpected_linespec_error): Update.
13604 (linespec_parse_basic, parse_linespec): Update.
13605
13606 2018-04-05 Tom Tromey <tom@tromey.com>
13607
13608 * linespec.c (linespec_parse_basic): Reindent.
13609
13610 2018-04-05 Tom Tromey <tom@tromey.com>
13611
13612 * minsyms.h (iterate_over_minimal_symbols): Update.
13613 * minsyms.c (iterate_over_minimal_symbols): Take a
13614 gdb::function_view.
13615 * linespec.c (struct collect_minsyms): Remove.
13616 (compare_msyms): Now a std::sort comparator.
13617 (add_minsym): Add parameters.
13618 (search_minsyms_for_name): Update. Use std::vector.
13619
13620 2018-04-03 Tom Tromey <tom@tromey.com>
13621
13622 * mipsread.c (read_alphacoff_dynamic_symtab): Use
13623 gdb::byte_vector.
13624
13625 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13626
13627 * MAINTAINERS (Write After Approval): Add Weimin Pan.
13628
13629 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13630
13631 PR gdb/16959
13632 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
13633 printing static type.
13634
13635 2018-04-01 Tom Tromey <tom@tromey.com>
13636
13637 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13638 (rs6000_xfer_shared_libraries): Update.
13639
13640 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13641
13642 * common/gdb_vecs.h (char_ptr): Remove.
13643 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13644
13645 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13646
13647 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13648 with std::vector.
13649 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13650
13651 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13652
13653 * tracepoint.h (struct uploaded_tp): Initialize fields.
13654 <actions, step_actions, cmd_strings>: Change type to
13655 std::vector<char *>.
13656 * tracepoint.c (get_uploaded_tp): Allocate with new.
13657 (free_uploaded_tps): Free with delete.
13658 (parse_tracepoint_definition): Adjust to std::vector change.
13659 * breakpoint.c (read_uploaded_action): Likewise.
13660 (create_tracepoint_from_upload): Likewise.
13661 * ctf.c (ctf_write_uploaded_tp): Likewise.
13662 (SET_ARRAY_FIELD): Likewise.
13663 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13664
13665 2018-03-30 Tom Tromey <tom@tromey.com>
13666
13667 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
13668 std::unique_ptr.
13669 (svr4_keep_data_in_core): Update.
13670 (svr4_read_so_list): Update.
13671
13672 2018-03-30 Tom Tromey <tom@tromey.com>
13673
13674 * windows-nat.c (handle_output_debug_string, handle_exception):
13675 Update.
13676 * target.h (target_read_string): Update.
13677 * target.c (target_read_string): Change "string" to
13678 unique_xmalloc_ptr.
13679 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13680 Update.
13681 * solib-frv.c (frv_current_sos): Update.
13682 * solib-dsbt.c (dsbt_current_sos): Update.
13683 * solib-darwin.c (darwin_current_sos): Update.
13684 * linux-thread-db.c (inferior_has_bug): Update.
13685 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13686 Update. Remove alloca.
13687 * ada-lang.c (ada_main_name): Update.
13688
13689 2018-03-30 Tom Tromey <tom@tromey.com>
13690
13691 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13692 (struct dwo_file_deleter): New.
13693 (dwo_file_up): New typedef.
13694 (open_and_init_dwo_file): Use dwo_file_up.
13695 (free_dwo_file_cleanup): Remove.
13696
13697 2018-03-30 Tom Tromey <tom@tromey.com>
13698
13699 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13700 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13701
13702 2018-03-30 Tom Tromey <tom@tromey.com>
13703
13704 * dwarf2read.c (class free_cached_comp_units): New class.
13705 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13706 (free_cached_comp_units): Remove function.
13707
13708 2018-03-30 Tom Tromey <tom@tromey.com>
13709
13710 * utils.h (make_cleanup_unpush_target): Remove.
13711 * inf-ptrace.c (struct target_unpusher): New.
13712 (target_unpush_up) New typedef.
13713 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13714 target_unpush_up.
13715 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13716
13717 2018-03-27 Tom Tromey <tom@tromey.com>
13718
13719 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13720
13721 2018-03-27 Pedro Alves <palves@redhat.com>
13722 Tom Tromey <tom@tromey.com>
13723
13724 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13725 destructor. Now a class.
13726 (gdb_readline_wrapper_cleanup): Remove function.
13727 (gdb_readline_wrapper): Remove cleanups.
13728
13729 2018-03-27 Tom Tromey <tom@tromey.com>
13730
13731 * typeprint.h (struct type_print_options) <local_typedefs,
13732 global_typedefs>: Remove "struct" keyword.
13733 (class typedef_hash_table): New class.
13734 (recursively_update_typedef_hash, add_template_parameters)
13735 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13736 (find_typedef_in_hash): Don't declare.
13737 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13738 (typedef_hash_table::recursively_update): Rename from
13739 recursively_update_typedef_hash. Now a member.
13740 (typedef_hash_table::add_template_parameters): Rename from
13741 add_template_parameters. Now a member.
13742 (typedef_hash_table::typedef_hash_table): Now a constructor;
13743 rename from create_typedef_hash.
13744 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13745 rename from free_typedef_hash.
13746 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13747 (do_free_global_table): Remove.
13748 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13749 from copy_type_recursive.
13750 (create_global_typedef_table): Remove.
13751 (typedef_hash_table::find_global_typedef): Now a member of
13752 typedef_hash_table.
13753 (typedef_hash_table::find_typedef): Rename from
13754 find_typedef_in_hash; now a member.
13755 (whatis_exp): Update.
13756 * extension.h (struct ext_lang_type_printers): Add constructor and
13757 destructor.
13758 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13759 declare.
13760 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13761 Now a constructor; rename from start_ext_lang_type_printers.
13762 (ext_lang_type_printers): Now a destructor; rename from
13763 free_ext_lang_type_printers.
13764 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13765 Update.
13766 (c_type_print_base_struct_union): Update. Remove cleanups.
13767
13768 2018-03-27 Tom Tromey <tom@tromey.com>
13769
13770 * dwarf-index-write.c: Include <cmath>.
13771
13772 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13773
13774 * NEWS: Add entry describing new "set|show varsize-limit" command.
13775 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13776 command.
13777 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13778 "set variable".
13779
13780 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13781
13782 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13783 dwarf-index-write.c
13784 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13785 * dwarf-index-common.c: New file.
13786 * dwarf-index-common.h: New file.
13787 * dwarf-index-write.c: New file.
13788 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13789 (struct dwarf2_section_info): Move from here.
13790 (dwarf2_section_info_def): Likewise.
13791 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13792 (offset_type): Likewise.
13793 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13794 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13795 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13796 (byte_swap): Likewise.
13797 (MAYBE_SWAP): Likewise.
13798 (dwarf2_per_cu_ptr): Likewise.
13799 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13800 (struct tu_stats): Likewise.
13801 (struct dwarf2_per_objfile): Likewise.
13802 (struct dwarf2_per_cu_data): Likewise.
13803 (struct signatured_type): Likewise.
13804 (sig_type_ptr): Likewise.
13805 (DEF_VEC_P (sig_type_ptr)): Likewise.
13806 (INDEX4_SUFFIX): Likewise.
13807 (INDEX5_SUFFIX): Likewise.
13808 (DEBUG_STR_SUFFIX): Likewise.
13809 (dwarf2_read_section): Make non-static.
13810 (mapped_index_string_hash): Move from here.
13811 (dwarf5_djb_hash): Likewise.
13812 (file_write): Likewise.
13813 (class data_buf): Likewise.
13814 (struct symtab_index_entry): Likewise.
13815 (struct mapped_symtab): Likewise.
13816 (find_slot): Likewise.
13817 (hash_expand): Likewise.
13818 (add_index_entry): Likewise.
13819 (uniquify_cu_indices): Likewise.
13820 (class c_str_view): Likewise.
13821 (class c_str_view_hasher): Likewise.
13822 (class vector_hasher): Likewise.
13823 (write_hash_table): Likewise.
13824 (psym_index_map): Likewise.
13825 (struct addrmap_index_data): Likewise.
13826 (add_address_entry): Likewise.
13827 (add_address_entry_worker): Likewise.
13828 (write_address_map): Likewise.
13829 (symbol_kind): Likewise.
13830 (write_psymbols): Likewise.
13831 (struct signatured_type_index_data): Likewise.
13832 (write_one_signatured_type): Likewise.
13833 (recursively_count_psymbols): Likewise.
13834 (recursively_write_psymbols): Likewise.
13835 (class debug_names): Likewise.
13836 (check_dwarf64_offsets): Likewise.
13837 (psyms_seen_size): Likewise.
13838 (write_gdbindex): Likewise.
13839 (write_debug_names): Likewise.
13840 (assert_file_size): Likewise.
13841 (write_psymtabs_to_index): Likewise.
13842 (save_gdb_index_command): Likewise.
13843 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13844 command.
13845 * dwarf2read.h: New file.
13846
13847 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13848
13849 PR gdb/22670
13850 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13851 symbol name if the CU's language stores symbol names in linkage
13852 format.
13853 * language.h (struct language_defn)
13854 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13855 all instances of this struct.
13856
13857 2018-03-26 Tom Tromey <tom@tromey.com>
13858
13859 * stack.c (backtrace_command_1): Remove verbose code.
13860
13861 2018-03-26 Tom Tromey <tom@tromey.com>
13862
13863 * python/py-framefilter.c (py_print_type): Don't catch
13864 exceptions. Return void.
13865 (py_print_value): Likewise.
13866 (py_print_single_arg): Likewise.
13867 (enumerate_args): Don't catch exceptions.
13868 (py_print_args): Likewise.
13869 (py_print_frame): Likewise.
13870 (gdbpy_apply_frame_filter): Catch exceptions here.
13871
13872 2018-03-26 Tom Tromey <tom@tromey.com>
13873
13874 * stack.c (_initialize_stack): Remove trailing newlines from help
13875 text. Add "Usage" line to "backtrace" help.
13876
13877 2018-03-26 Tom Tromey <tom@tromey.com>
13878
13879 PR python/16486:
13880 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13881
13882 2018-03-26 Tom Tromey <tom@tromey.com>
13883
13884 * python/py-framefilter.c (py_print_single_arg): Return
13885 EXT_LANG_BT_ERROR from catch.
13886
13887 2018-03-26 Tom Tromey <tom@tromey.com>
13888
13889 PR backtrace/15584:
13890 * stack.c (backtrace_command_1): Move some code into no-filters
13891 "if".
13892
13893 2018-03-26 Tom Tromey <tom@tromey.com>
13894
13895 * python/py-framefilter.c (throw_quit_or_print_exception): New
13896 function.
13897 (gdbpy_apply_frame_filter): Use it.
13898
13899 2018-03-26 Tom Tromey <tom@tromey.com>
13900
13901 PR cli/17716:
13902 * python/py-framefilter.c (py_print_type, py_print_value)
13903 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13904 RETURN_MASK_ERROR.
13905
13906 2018-03-26 Tom Tromey <tom@tromey.com>
13907
13908 * python/py-framefilter.c (enumerate_args): Use
13909 gdb::unique_xmalloc_ptr.
13910
13911 2018-03-26 Tom Tromey <tom@tromey.com>
13912
13913 * python/py-framefilter.c (py_print_frame): Return
13914 EXT_LANG_BT_OK.
13915 (gdbpy_apply_frame_filter): Update comment.
13916 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13917 Remove.
13918 <EXT_LANG_BT_NO_FILTERS>: Change value.
13919
13920 2018-03-26 Tom Tromey <tom@tromey.com>
13921
13922 PR backtrace/15582:
13923 * stack.c (backtrace_command): Parse "hide" argument.
13924 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13925 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13926 constant.
13927
13928 2018-03-26 Tom Tromey <tom@tromey.com>
13929
13930 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13931 add "flags".
13932 (backtrace_command): Remove "fulltrace", add "flags".
13933
13934 2018-03-26 Tom Tromey <tom@tromey.com>
13935
13936 * stack.c (backtrace_command): Rewrite command line parsing.
13937
13938 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13939
13940 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13941
13942 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13943
13944 * filename-seen-cache.h: Add include guard.
13945
13946 2018-03-26 Keith Seitz <keiths@redhat.com>
13947
13948 * symfile.c (place_section): Remove "struct" from section_addr_info
13949 in comment.
13950 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13951 "struct" keyword from section_addr_info.
13952
13953 2018-03-26 Alan Hayward <alan.hayward@arm.com>
13954
13955 * regformats/regdef.h (reg): Add constructors.
13956
13957 2018-03-25 Pedro Alves <palves@redhat.com>
13958
13959 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13960 if then/else bodies in var_func_name extraction.
13961
13962 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
13963
13964 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13965 lookup_minimal_symbol() to find symbol entry.
13966 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13967
13968 2018-03-23 Keith Seitz <keiths@redhat.com>
13969
13970 PR c++/22968
13971 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13972 nested type definitions for C++, too.
13973
13974 2018-03-23 Tom Tromey <tom@tromey.com>
13975
13976 * machoread.c (struct oso_el): Add a constructor. Don't define as
13977 a typedef.
13978 (macho_register_oso): Remove.
13979 (macho_symtab_read): Take a std::vector.
13980 (oso_el_compare_name): Now a std::sort comparator.
13981 (macho_symfile_read_all_oso): Take a std::vector.
13982 (macho_symfile_read): Use std::vector. Remove cleanups.
13983
13984 2018-03-22 Tom Tromey <tom@tromey.com>
13985
13986 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13987 (record_full_goto_bookmark): Use std::string.
13988
13989 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13990
13991 PR tdep/18295
13992 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13993 a single mask.
13994
13995 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13996
13997 * rs6000-tdep.c (store_insn_p): New function.
13998 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13999 and cr_reg to their unshifted values. Use store_insn_p to
14000 match LR saves using either R1 or fdata->alloca_reg. Use
14001 store_insn_p to match CR saves. Set alloca_reg_offset
14002 when alloca_reg and framep are set. Remove lr_reg shift
14003 when assigning to fdata->lr_register.
14004
14005 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
14006
14007 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
14008 command line args instead of emitting a warning.
14009
14010 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14011
14012 * tracepoint.h (struct static_tracepoint_marker): Initialize
14013 fields, define default constructor, move constructor and move
14014 assignment, disable the rest.
14015 <str_id, extra>: Make std::string.
14016 (release_static_tracepoint_marker): Remove.
14017 (free_current_marker): Remove.
14018 * tracepoint.c (free_current_marker): Remove.
14019 (parse_static_tracepoint_marker_definition): Adjust to
14020 std::string, use new hex2str overload.
14021 (release_static_tracepoint_marker): Remove.
14022 (print_one_static_tracepoint_marker): Get marker by reference
14023 and adjust to std::string.
14024 (info_static_tracepoint_markers_command): Adjust to std::vector
14025 changes
14026 * target.h (static_tracepoint_marker_p): Remove typedef.
14027 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
14028 (struct target_ops) <to_static_tracepoint_marker_at>: Return
14029 bool.
14030 <to_static_tracepoint_markers_by_strid>: Return std::vector.
14031 * target-debug.h
14032 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
14033 (target_debug_print_std_vector_static_tracepoint_marker): New.
14034 (target_debug_print_struct_static_tracepoint_marker_p): Rename
14035 to...
14036 (target_debug_print_static_tracepoint_marker_p): ... this.
14037 * target-delegates.c: Re-generate.
14038 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
14039 Make std::string.
14040 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
14041 (decode_static_tracepoint_spec): Adjust to std::vector.
14042 (tracepoint_print_one_detail): Adjust to std::string.
14043 (strace_marker_decode_location): Adjust to std::string.
14044 (update_static_tracepoint): Adjust to std::string, remove call
14045 to release_static_tracepoint_marker.
14046 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
14047 Adjust to std::vector.
14048 * remote.c (remote_static_tracepoint_marker_at): Return bool.
14049 (remote_static_tracepoint_markers_by_strid): Adjust to
14050 std::vector.
14051 * common/rsp-low.h (hex2str): New overload with explicit count
14052 of bytes.
14053 * common/rsp-low.c (hex2str): New overload with explicit count
14054 of bytes.
14055 * unittests/rsp-low-selftests.c (test_hex2str): New function.
14056 (_initialize_rsp_low_selftests): Add test_hex2str test.
14057 * unittests/tracepoint-selftests.c
14058 (test_parse_static_tracepoint_marker_definition): Adjust to
14059 std::string.
14060
14061 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14062
14063 * tracepoint.c (parse_static_tracepoint_marker_definition):
14064 Consider case where the definition is followed by more
14065 definitions.
14066 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14067 tracepoint-selftests.c.
14068 * unittests/tracepoint-selftests.c: New.
14069
14070 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
14071
14072 * MAINTAINERS (Write After Approval): Add Pedro Franco de
14073 Carvalho.
14074
14075 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
14076
14077 * symtab.c (find_pc_sect_line): fixed indentation.
14078
14079 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
14080
14081 * symtab.c (find_pc_sect_line): now uses binary search.
14082
14083 2018-03-19 Tom Tromey <tom@tromey.com>
14084
14085 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
14086 "IDENT" production.
14087
14088 2018-03-19 Pedro Alves <palves@redhat.com>
14089 Tom Tromey <tom@tromey.com>
14090
14091 * unittests/observable-selftests.c: New file.
14092 * common/observable.h: New file.
14093 * observable.h: New file.
14094 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
14095 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
14096 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
14097 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
14098 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
14099 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
14100 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
14101 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
14102 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
14103 python/py-breakpoint.c, python/py-finishbreakpoint.c,
14104 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
14105 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
14106 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
14107 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
14108 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
14109 tui/tui-interp.c, valops.c: Update all users.
14110 * tui/tui-hooks.c (tui_bp_created_observer)
14111 (tui_bp_deleted_observer, tui_bp_modified_observer)
14112 (tui_inferior_exit_observer, tui_before_prompt_observer)
14113 (tui_normal_stop_observer, tui_register_changed_observer):
14114 Remove.
14115 (tui_observers_token): New global.
14116 (attach_or_detach, tui_attach_detach_observers): New functions.
14117 (tui_install_hooks, tui_remove_hooks): Use
14118 tui_attach_detach_observers.
14119 * record-btrace.c (record_btrace_thread_observer): Remove.
14120 (record_btrace_thread_observer_token): New global.
14121 * observer.sh: Remove.
14122 * observer.c: Rename to observable.c.
14123 * observable.c (namespace gdb_observers): Define new objects.
14124 (observer_debug): Move into gdb_observers namespace.
14125 (struct observer, struct observer_list, xalloc_observer_list_node)
14126 (xfree_observer_list_node, generic_observer_attach)
14127 (generic_observer_detach, generic_observer_notify): Remove.
14128 (_initialize_observer): Update.
14129 Don't include observer.inc.
14130 * Makefile.in (generated_files): Remove observer.h, observer.inc.
14131 (clean mostlyclean): Likewise.
14132 (observer.h, observer.inc): Remove targets.
14133 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
14134 (COMMON_SFILES): Use observable.c, not observer.c.
14135 * .gitignore: Remove observer.h.
14136
14137 2018-03-18 Tom Tromey <tom@tromey.com>
14138
14139 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
14140 gdb::def_vector.
14141 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
14142
14143 2018-03-17 Tom Tromey <tom@tromey.com>
14144
14145 * auto-load.c (auto_load_objfile_script_1): Use std::string.
14146
14147 2018-03-17 Tom Tromey <tom@tromey.com>
14148
14149 * target.c (class scoped_target_fd): New.
14150 (target_fileio_close_cleanup): Remove.
14151 (target_fileio_read_alloc_1): Use scoped_target_fd.
14152
14153 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
14154
14155 * silent-rules.mk: New.
14156 * Makefile.in: Include silent-rules.mk
14157 (srcdir, VPATH, top_srcdir): Move up.
14158 (COMPILE): Add ECHO_CXX.
14159 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
14160 (init.c): Add ECHO_INIT_C.
14161 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
14162 (version.c): Add ECHO_GEN.
14163 (printcmd.o): Add ECHO_CXX.
14164 (target-float.o): Add ECHO_CXX.
14165 (ada-exp.o): Add ECHO_CXX.
14166 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
14167 (insight$(EXEEXT)): Add ECHO_CXXLD.
14168 * gnulib/configure.ac: Add AM_SILENT_RULES.
14169 * gnulib/aclocal.m4: Re-generate.
14170 * gnulib/configure: Re-generate.
14171 * gnulib/import/Makefile.in: Re-generate.
14172
14173 2018-03-16 Tom Tromey <tom@tromey.com>
14174
14175 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
14176 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
14177 * utils.c (do_free_section_addr_info)
14178 (make_cleanup_free_section_addr_info): Remove.
14179 * symfile.h (struct other_sections): Add constructor.
14180 (struct section_addr_info): Remove.
14181 (section_addr_info): New typedef.
14182 (struct sym_fns) <sym_offsets>: Change type of parameter.
14183 (build_section_addr_info_from_objfile)
14184 (relative_addr_info_to_section_offsets, addr_info_make_relative)
14185 (default_symfile_offsets, symbol_file_add)
14186 (symbol_file_add_from_bfd)
14187 (build_section_addr_info_from_section_table): Update.
14188 (alloc_section_addr_info, free_section_addr_info): Don't declare.
14189 * symfile.c (alloc_section_addr_info): Remove.
14190 (build_section_addr_info_from_section_table): Change return type.
14191 Update.
14192 (build_section_addr_info_from_bfd)
14193 (build_section_addr_info_from_objfile): Likewise.
14194 (free_section_addr_info): Remove.
14195 (relative_addr_info_to_section_offsets): Change type of "addrs".
14196 (addrs_section_compar): Now a std::sort comparator.
14197 (addrs_section_sort): Change return type.
14198 (addr_info_make_relative): Change type of "addrs". Update.
14199 (default_symfile_offsets, syms_from_objfile_1)
14200 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
14201 (symbol_file_add_separate): Update.
14202 (symbol_file_add): Change type of "addrs". Update.
14203 (add_symbol_file_command): Update. Remove cleanups.
14204 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
14205 cleanups.
14206 * symfile-debug.c (debug_sym_offsets): Change type of "info".
14207 * solib.c (solib_read_symbols): Update.
14208 * objfiles.c (objfile_relocate): Update. Remove cleanups.
14209 * machoread.c (macho_symfile_offsets): Update.
14210 * jit.c (jit_bfd_try_read_symtab): Update.
14211
14212 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
14213
14214 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14215 unittests/utils-selftests.c.
14216 * unittests/utils-selftests.c: New file.
14217
14218 2018-03-14 Tom Tromey <tom@tromey.com>
14219
14220 PR cli/14977:
14221 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
14222 for NULL.
14223
14224 2018-03-14 Tom Tromey <tom@tromey.com>
14225
14226 PR cli/19918:
14227 * printcmd.c (printf_pointer): Allow "-" in format.
14228
14229 2018-03-14 Tom Tromey <tom@tromey.com>
14230
14231 * printcmd.c (_initialize_printcmd): Add usage to printf.
14232
14233 2018-03-14 Yao Qi <qiyao@sourceware.org>
14234
14235 * MAINTAINERS: Update my email address.
14236
14237 2018-03-13 Tom Tromey <tom@tromey.com>
14238
14239 * machoread.c (macho_check_dsym): Change filenamep to a
14240 std::string*.
14241 (macho_symfile_read): Update.
14242 * symfile.c (load_command): Use std::string.
14243
14244 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
14245
14246 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
14247 to error message string.
14248 (riscv_register_name): Use xsnprintf instead of sprintf.
14249 (riscv_insn::fetch_instruction): Use gdb_assert instead of
14250 internal_error.
14251 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
14252 error.
14253 (riscv_push_dummy_call): Likewise.
14254
14255 2018-03-12 Tom Tromey <tom@tromey.com>
14256
14257 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
14258 Use gdb::byte_vector.
14259 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
14260
14261 2018-03-12 Yao Qi <yao.qi@linaro.org>
14262
14263 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
14264 parameter type to readable_regcache.
14265 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
14266 the declaration.
14267
14268 2018-03-11 Tom Tromey <tom@tromey.com>
14269
14270 * dwarf2read.c (struct nextfield): Add initializers.
14271 (struct nextfnfield): Remove.
14272 (struct fnfieldlist): Add initializers. Remove "length" and
14273 "head", use std::vector.
14274 (struct decl_field_list): Remove.
14275 (struct field_info): Add initializers.
14276 <fields, baseclasses>: Now std::vector.
14277 <nbaseclasses, nfnfields, typedef_field_list_count,
14278 nested_types_list_count>: Remove.
14279 (dwarf2_add_field, dwarf2_add_type_defn)
14280 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
14281 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
14282 (process_structure_scope): Update.
14283
14284 2018-03-11 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
14287 for use by std::sort.
14288 (build_type_psymtabs_1): Use std::vector.
14289
14290 2018-03-09 Eli Zaretskii <eliz@gnu.org>
14291
14292 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
14293 and LIBMPFR in the printed configuration.
14294
14295 2018-03-08 Tom Tromey <tom@tromey.com>
14296
14297 * source.c (get_filename_and_charpos): Use scoped_fd.
14298 * nto-procfs.c (procfs_open_1): Use scoped_fd.
14299 (procfs_pidlist): Likewise.
14300 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
14301 (iterate_over_mappings): Likewise.
14302
14303 2018-03-08 Tom Tromey <tom@tromey.com>
14304
14305 * infcall.c (struct call_return_meta_info)
14306 <stack_temporaries_enabled>: Remove.
14307 (get_call_return_value, call_function_by_hand_dummy): Update.
14308 * thread.c (disable_thread_stack_temporaries): Remove.
14309 (enable_thread_stack_temporaries): Remove.
14310 (thread_stack_temporaries_enabled_p): Return bool.
14311 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
14312 (get_last_thread_stack_temporary): Update.
14313 * eval.c (evaluate_subexp): Update.
14314 * gdbthread.h (class enable_thread_stack_temporaries): Now a
14315 class, not a function.
14316 (value_ptr, value_vec): Remove typedefs.
14317 (class thread_info) <stack_temporaries_enabled>: Now bool.
14318 <stack_temporaries>: Now a std::vector.
14319 (thread_stack_temporaries_enabled_p)
14320 (value_in_thread_stack_temporaries): Return bool.
14321
14322 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
14323
14324 * remote.c (putpkt_binary): Fix omitted bytes reporting.
14325 (getpkt_or_notif_sane_1): Likewise.
14326
14327 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14328
14329 * build-id.c (build_id_to_debug_bfd): Use std::string.
14330
14331 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14332
14333 * build-id.c (find_separate_debug_file_by_buildid): Return
14334 std::string.
14335 * build-id.h (find_separate_debug_file_by_buildid): Return
14336 std::string.
14337 * coffread.c (coff_symfile_read): Adjust to std::string.
14338 * elfread.c (elf_symfile_read): Adjust to std::string.
14339 * symfile.c (separate_debug_file_exists): Change parameter to
14340 std::string.
14341 (find_separate_debug_file): Return std::string.
14342 (find_separate_debug_file_by_debuglink): Return std::string.
14343 * symfile.h (find_separate_debug_file_by_debuglink): Return
14344 std::string.
14345
14346 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14347
14348 * common/xml-utils.c (xml_escape_text): Move code to...
14349 (xml_escape_text_append): ... this new function.
14350 * common/xml-utils.h (xml_escape_text_append): New declaration.
14351 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
14352 New function.
14353 (_initialize_xml_utils): register test_xml_escape_text_append as
14354 a selftest.
14355
14356 2018-03-07 Alan Hayward <alan.hayward@arm.com>
14357
14358 * defs.h: Remove MAX_REGISTER_SIZE.
14359 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
14360 asserts.
14361 * python/py-unwind.c (pyuw_sniffer): Likewise.
14362
14363 2018-03-07 Tom Tromey <tom@tromey.com>
14364
14365 * linux-tdep.c (linux_info_proc): Update.
14366 * target.h (struct target_ops) <to_fileio_readlink>: Return
14367 optional<string>.
14368 (target_fileio_readlink): Return optional<string>.
14369 * remote.c (remote_hostio_readlink): Return optional<string>.
14370 * inf-child.c (inf_child_fileio_readlink): Return
14371 optional<string>.
14372 * target.c (target_fileio_readlink): Return optional<string>.
14373
14374 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14375
14376 * regcache.c (cooked_read_test): Add riscv to the list of
14377 architectures that have a save_reggroup.
14378
14379 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
14380
14381 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
14382 value is not a dynamic class object.
14383
14384 2018-03-06 Tom Tromey <tom@tromey.com>
14385
14386 * rust-exp.y: Formatting fixes.
14387
14388 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14389
14390 * riscv-tdep.c (riscv_register_name): Remove target description
14391 support.
14392 (riscv_gdbarch_init): Remove target description check.
14393
14394 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14395
14396 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
14397 comment.
14398 * riscv-tdep.h: Likewise.
14399
14400 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14401
14402 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
14403 (riscv_pseudo_register_write): Delete.
14404 (riscv_gdbarch_init): Remove all use of pseudo registers.
14405
14406 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14407
14408 * record-btrace.c (btrace_print_lines): Replace cleanup
14409 parameter with RAII equivalents.
14410 (btrace_insn_history): Replace cleanup with RAII equivalents.
14411 * ui-out.h (make_cleanup_ui_out_list_begin_end,
14412 make_cleanup_ui_out_tuple_begin_end): Remove.
14413 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
14414 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
14415 make_cleanup_ui_out_list_begin_end): Remove.
14416
14417 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14418
14419 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
14420 parameter types to std::vector. Use bool.
14421 (record_btrace_wait): Replace VEC(tp_t) with
14422 std::vector<thread_info *>.
14423 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
14424
14425 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14426
14427 * record-btrace.c (record_btrace_disable_callback): Remove.
14428 (struct scoped_btrace_disable): New.
14429 (record_btrace_open): Use scoped_btrace_disable.
14430
14431 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14432
14433 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
14434 reading values from registers.
14435
14436 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14437
14438 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
14439 where appropriate.
14440
14441 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14442
14443 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
14444 change parameter type. Use GDB's print functions, and use
14445 core_addr_to_string where appropriate.
14446 (riscv_push_dummy_call): Use core_addr_to_string where
14447 appropriate, update call to riscv_print_arg_location, and reindent
14448 a few lines.
14449 (riscv_return_value): Update call to riscv_print_arg_location.
14450
14451 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14452 Tim Newsome <tim@sifive.com>
14453 Albert Ou <a0u@eecs.berkeley.edu>
14454 Darius Rad <darius@bluespec.com>
14455
14456 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
14457 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
14458 (ALLDEPFILES): Add riscv-tdep.c
14459 * configure.tgt: Add riscv support.
14460 * riscv-tdep.c: New file.
14461 * riscv-tdep.h: New file.
14462 * NEWS: Mention new target.
14463 * MAINTAINERS: Add entry for riscv.
14464
14465 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14466
14467 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
14468 fields within aggregates.
14469
14470 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
14471
14472 * record-btrace.c (btrace_print_lines): Change type of flags to
14473 gdb_disassembly_flags.
14474
14475 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14476
14477 * fbsd-nat.c: Include "inf-ptrace.h".
14478 (USE_SIGTRAP_SIGINFO): Conditionally define.
14479 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14480 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14481 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14482 function.
14483 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14484 Likewise.
14485 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14486 Likewise.
14487 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14488 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14489 "supports_stopped_by_hw_breakpoint" target methods.
14490
14491 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14492
14493 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14494 * fbsd-nat.c (debug_fbsd_nat): New variable.
14495 (show_fbsd_nat_debug): New function.
14496 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14497 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14498
14499 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14500
14501 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14502 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14503 prototype.
14504 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14505 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14506 method.
14507
14508 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14509
14510 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14511 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14512
14513 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14514
14515 * charset.c (struct charset_vector): New.
14516 (charsets): Change type to charset_vector.
14517 (find_charset_names): Adjust.
14518 (add_one): Adjust.
14519 (_initialize_charset): Adjust.
14520
14521 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14522
14523 * progspace.h (struct program_space) <deleted_solibs>: Change
14524 type to std::vector<std::string>.
14525 * progspace.c (clear_program_space_solib_cache): Adjust.
14526 * breakpoint.c (print_solib_event): Adjust.
14527 (check_status_catch_solib): Adjust.
14528 * solib.c (update_solib_list): Adjust.
14529 * ui-out.h (class ui_out) <field_string>: New overload.
14530 * ui-out.c (ui_out::field_string): New overload.
14531
14532 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14533
14534 * progspace.h (struct program_space): Add constructor and
14535 destructor, initialize fields.
14536 (add_program_space): Remove.
14537 * progspace.c (add_program_space): Rename to...
14538 (program_space::program_space): ... this.
14539 (release_program_space): Rename to...
14540 (program_space::~program_space): ... this.
14541 (delete_program_space): Use delete to delete program_space.
14542 (initialize_progspace): Use new to allocate program_space.
14543 * inferior.c (add_inferior_with_spaces): Likewise.
14544 (clone_inferior_command): Likewise.
14545 * infrun.c (follow_fork_inferior): Likewise.
14546 (handle_vfork_child_exec_or_exit): Likewise.
14547
14548 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14549
14550 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14551 (delim_string_to_char_ptr_vec): Return std::vector of
14552 gdb::unique_xmalloc_ptr.
14553 (dirnames_to_char_ptr_vec_append): Take std::vector of
14554 gdb::unique_xmalloc_ptr.
14555 (dirnames_to_char_ptr_vec): Return std::vector of
14556 gdb::unique_xmalloc_ptr.
14557 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14558 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14559 (delim_string_to_char_ptr_vec): Return an std::vector of
14560 gdb::unique_xmalloc_ptr, adjust the code.
14561 (dirnames_to_char_ptr_vec_append): Take an std::vector of
14562 gdb::unique_xmalloc_ptr, adjust the code.
14563 (dirnames_to_char_ptr_vec): Return an std::vector of
14564 gdb::unique_xmalloc_ptr, adjust the code.
14565 * auto-load.c (auto_load_safe_path_vec): Change type to
14566 std::vector of gdb::unique_xmalloc_ptr.
14567 (auto_load_expand_dir_vars): Return an std::vector of
14568 gdb::unique_xmalloc_ptr, adjust the code.
14569 (auto_load_safe_path_vec_update): Adjust.
14570 (filename_is_in_auto_load_safe_path_vec): Adjust.
14571 (auto_load_objfile_script_1): Adjust.
14572 * build-id.c (build_id_to_debug_bfd): Adjust.
14573 * linux-thread-db.c (thread_db_load_search): Adjust.
14574 * source.c (add_path): Adjust.
14575 (openp): Adjust.
14576 * symfile.c (find_separate_debug_file): Adjust.
14577 * utils.c (do_free_char_ptr_vec): Remove.
14578 (make_cleanup_free_char_ptr_vec): Remove.
14579
14580 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
14581
14582 PR gdb/22907
14583 * common/pathstuff.c: Conditionally include "<windows.h>".
14584
14585 2018-03-01 Georg Sauthoff <mail@georg.so>
14586
14587 PR gdb/22888
14588 * gcore.in: Quote variables and switch interpreter to bash.
14589
14590 2018-03-01 Tom Tromey <tom@tromey.com>
14591
14592 * dwarf2read.c (alloc_discriminant_info): Fix default_index
14593 assertion. Add assertion for discriminant_index.
14594 (quirk_rust_enum): Use correct base type name in univariant case.
14595
14596 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
14597
14598 * record.c (get_call_history_modifiers): Return a
14599 record_print_flags.
14600 (cmd_record_call_history): Adjust.
14601 * record-btrace.c (record_btrace_call_history): Adjust.
14602 (record_btrace_call_history_range): Adjust.
14603 (record_btrace_call_history_from): Adjust.
14604 * target-debug.h (target_debug_print_record_print_flags): New.
14605 * target-delegates.c: Re-generate.
14606 * target.c (target_call_history): Change flags type.
14607 (target_call_history_from): Likewise.
14608 (target_call_history_range): Likewise.
14609 * target.h (struct target_ops) <target_call_history>: Likewise.
14610 (target_call_history_from): Likewise.
14611 (target_call_history_range): Likewise.
14612
14613 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14614 Simon Marchi <simon.marchi@polymtl.ca>
14615
14616 * common/common-utils.c: Include "sys/stat.h".
14617 (is_regular_file): Move here from "source.c"; change return
14618 type to "bool".
14619 * common/common-utils.h (is_regular_file): New prototype.
14620 * common/pathstuff.c (contains_dir_separator): New function.
14621 * common/pathstuff.h (contains_dir_separator): New prototype.
14622 * source.c: Don't include "sys/stat.h".
14623 (is_regular_file): Move to "common/common-utils.c".
14624
14625 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14626
14627 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14628 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14629 * auto-load.c: Include "common/pathstuff.h".
14630 * common/common-def.h (current_directory): Move here.
14631 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14632 function.
14633 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14634 prototype.
14635 * common/pathstuff.c: New file.
14636 * common/pathstuff.h: New file.
14637 * compile/compile.c: Include "common/pathstuff.h".
14638 * defs.h (current_directory): Move to "common/common-defs.h".
14639 * dwarf2read.c: Include "common/pathstuff.h".
14640 * exec.c: Likewise.
14641 * guile/scm-safe-call.c: Likewise.
14642 * linux-thread-db.c: Likewise.
14643 * main.c: Likewise.
14644 * nto-tdep.c: Likewise.
14645 * objfiles.c: Likewise.
14646 * source.c: Likewise.
14647 * symtab.c: Likewise.
14648 * utils.c: Include "common/pathstuff.h".
14649 (gdb_realpath): Move to "common/pathstuff.c".
14650 (gdb_realpath_keepfile): Likewise.
14651 (gdb_abspath): Likewise.
14652 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14653 (gdb_realpath_keepfile): Likewise.
14654 (gdb_abspath): Likewise.
14655
14656 2018-02-28 John Baldwin <jhb@FreeBSD.org>
14657
14658 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14659 wildcard process pid for super_resume for kernels with a
14660 specific bug.
14661
14662 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
14663
14664 * compile/compile.c (get_args): Add additional comments
14665 explaining function.
14666
14667 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
14668 Tom Tromey <tom@tromey.com>
14669
14670 * target.h (memory_write_request_s): Remove typedef. Don't define
14671 VEC.
14672 (target_write_memory_blocks): Change argument to std::vector.
14673 (struct memory_write_request): Add constructor.
14674 * target-memory.c (compare_block_starting_address): Return bool.
14675 Change argument types.
14676 (claim_memory): Change arguments to use std::vector.
14677 (split_regular_and_flash_blocks, blocks_to_erase)
14678 (compute_garbled_blocks): Likewise.
14679 (cleanup_request_data, cleanup_write_requests_vector): Remove.
14680 (target_write_memory_blocks): Change argument to std::vector.
14681 * symfile.c (struct load_section_data): Add constructor and
14682 destructor. Use std::vector for "requests".
14683 (struct load_progress_data): Add initializers.
14684 (load_section_callback): Update. Use "new".
14685 (clear_memory_write_data): Remove.
14686 (generic_load): Update.
14687
14688 2018-02-27 Alan Hayward <alan.hayward@arm.com>
14689
14690 * arch/aarch64.h: Use common/tdesc.h.
14691
14692 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14693
14694 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14695 architecture with a 64-bit ABI.
14696
14697 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14698
14699 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14700 ahead of target description loading.
14701
14702 2018-02-26 Tom Tromey <tom@tromey.com>
14703
14704 * stack.c (backtrace_command_1): Update.
14705 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14706 of "flags".
14707 * python/py-framefilter.c (py_print_frame)
14708 (gdbpy_apply_frame_filter): Change type of "flags".
14709 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14710 of "flags".
14711 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14712 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14713 * extension.h (enum frame_filter_flag): Rename from
14714 frame_filter_flags.
14715 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14716 (apply_ext_lang_frame_filter): Change type of "flags".
14717 * extension.c (apply_ext_lang_frame_filter): Change type of
14718 "flags".
14719 * extension-priv.h (struct extension_language_ops)
14720 <apply_frame_filter>: Change type of "flags".
14721
14722 2018-02-26 Tom Tromey <tom@tromey.com>
14723
14724 PR python/16497:
14725 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
14726 off-by-one in py_end computation.
14727 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14728 PRINT_MORE_FRAMES.
14729 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14730 constant.
14731
14732 2018-02-26 Tom Tromey <tom@tromey.com>
14733
14734 * dwarf2read.c (struct variant_field): New.
14735 (struct nextfield) <variant>: New field.
14736 (dwarf2_add_field): Handle DW_TAG_variant_part.
14737 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14738 discriminated union.
14739 (read_structure_type): Handle DW_TAG_variant_part.
14740 (handle_struct_member_die): New function, extracted from
14741 process_structure_scope. Handle DW_TAG_variant.
14742 (process_structure_scope): Handle discriminated unions. Call
14743 handle_struct_member_die.
14744
14745 2018-02-26 Tom Tromey <tom@tromey.com>
14746
14747 * rust-lang.h (rust_last_path_segment): Declare.
14748 * rust-lang.c (rust_last_path_segment): Now public. Change
14749 contract.
14750 (struct disr_info): Remove.
14751 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14752 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14753 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14754 (rust_enum_p, rust_enum_variant): New function.
14755 (rust_underscore_fields): Remove "offset" parameter.
14756 (rust_print_enum): New function.
14757 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14758 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14759 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14760 enums.
14761 (rust_internal_print_type): New function, from rust_print_type.
14762 Remove enum code.
14763 (rust_print_type): Call rust_internal_print_type.
14764 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14765 Update enum handling.
14766 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14767 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14768 (rust_union_quirks): New functions.
14769 (process_full_comp_unit, process_full_type_unit): Call
14770 rust_union_quirks.
14771 (process_structure_scope): Update rust_unions if necessary.
14772
14773 2018-02-26 Tom Tromey <tom@tromey.com>
14774
14775 * value.h (value_union_variant): Declare.
14776 * valops.c (value_union_variant): New function.
14777 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14778 (struct discriminant_info): New.
14779 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14780 enumerator.
14781 (struct main_type) <flag_discriminated_union>: New field.
14782
14783 2018-02-26 Tom Tromey <tom@tromey.com>
14784
14785 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14786 unittests/unpack-selftests.c.
14787 * unittests/unpack-selftests.c: New file.
14788 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14789
14790 2018-02-26 Yao Qi <yao.qi@linaro.org>
14791
14792 * dwarf2read.c (struct partial_die_info) <read>: New method.
14793 (read_partial_die): Remove the declaration.
14794 (load_partial_dies): Update.
14795 (partial_die_info::partial_die_info):
14796 (read_partial_die): Change it to partial_die_info::read.
14797
14798 2018-02-26 Yao Qi <yao.qi@linaro.org>
14799
14800 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14801 (fixup_partial_die): Remove declaration.
14802 (scan_partial_symbols): Update.
14803 (partial_die_parent_scope): Likewise.
14804 (partial_die_full_name): Likewise.
14805 (fixup_partial_die): Change it to partial_die_info::fixup.
14806
14807 2018-02-26 Yao Qi <yao.qi@linaro.org>
14808
14809 * dwarf2read.c (read_partial_die): Update the declaration.
14810 (load_partial_dies): Caller update.
14811 (read_partial_die): Remove one argument abbrev_len.
14812
14813 2018-02-26 Yao Qi <yao.qi@linaro.org>
14814
14815 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14816 assignment operator.
14817 (load_partial_dies): Use ctor and copy ctor.
14818 (read_partial_die): Update.
14819 (dwarf2_cu::find_partial_die): Use ctor.
14820
14821 2018-02-26 Yao Qi <yao.qi@linaro.org>
14822
14823 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14824 (find_partial_die_in_comp_unit): Change it to
14825 dwarf2_cu::find_partial_die.
14826 (find_partial_die): Update.
14827
14828 2018-02-26 Yao Qi <yao.qi@linaro.org>
14829
14830 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14831 is NULL.
14832
14833 2018-02-26 Yao Qi <yao.qi@linaro.org>
14834
14835 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14836
14837 2018-02-26 Alan Hayward <alan.hayward@arm.com>
14838
14839 * arch/amd64.h: Use common/tdesc.h.
14840 * arch/i386.c: Likewise.
14841 * arch/i386.h: Likewise.
14842 * arch/tic6x.c: Likewise.
14843 * arch/tdesc.h: Move file from here...
14844 * common/tdesc.h: ...to here.
14845 * features/aarch64-core.c: Regenerate.
14846 * features/aarch64-fpu.c: Regenerate.
14847 * features/i386/32bit-avx.c: Regenerate.
14848 * features/i386/32bit-avx512.c: Regenerate.
14849 * features/i386/32bit-core.c: Regenerate.
14850 * features/i386/32bit-linux.c: Regenerate.
14851 * features/i386/32bit-mpx.c: Regenerate.
14852 * features/i386/32bit-pkeys.c: Regenerate.
14853 * features/i386/32bit-sse.c: Regenerate.
14854 * features/i386/64bit-avx.c: Regenerate.
14855 * features/i386/64bit-avx512.c: Regenerate.
14856 * features/i386/64bit-core.c: Regenerate.
14857 * features/i386/64bit-linux.c: Regenerate.
14858 * features/i386/64bit-mpx.c: Regenerate.
14859 * features/i386/64bit-pkeys.c: Regenerate.
14860 * features/i386/64bit-segments.c: Regenerate.
14861 * features/i386/64bit-sse.c: Regenerate.
14862 * features/i386/x32-core.c: Regenerate.
14863 * features/tic6x-c6xp.c: Regenerate.
14864 * features/tic6x-core.c: Regenerate.
14865 * features/tic6x-gp.c: Regenerate.
14866 * target-descriptions.c: Use common/tdesc.h.
14867 * target-descriptions.h: Likewise.
14868
14869 2018-02-24 Tom Tromey <tom@tromey.com>
14870
14871 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14872 (try_thread_db_load_from_dir, thread_db_load_search): Use
14873 std::string.
14874 (info_auto_load_libthread_db_compare): Return bool. Change
14875 argument types.
14876 (info_auto_load_libthread_db): Use std::vector, std::string.
14877 Remove cleanups.
14878
14879 2018-02-24 Tom Tromey <tom@tromey.com>
14880
14881 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14882 std::string.
14883 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14884 std::string*.
14885 * gdbarch.c: Rebuild.
14886 * gdbarch.h: Rebuild.
14887 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14888 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14889 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14890 std::string*.
14891
14892 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14893
14894 * gdbtypes.h (sect_offset): Change type to uint64_t.
14895 (sect_offset_str): New function.
14896 * dwarf2read.c (create_addrmap_from_aranges): Use
14897 sect_offset_str.
14898 (error_check_comp_unit_head): Likewise.
14899 (create_debug_type_hash_table): Likewise.
14900 (read_cutu_die_from_dwo): Likewise.
14901 (init_cutu_and_read_dies): Likewise.
14902 (init_cutu_and_read_dies_no_follow): Likewise.
14903 (process_psymtab_comp_unit_reader): Likewise.
14904 (partial_die_parent_scope): Likewise.
14905 (peek_die_abbrev): Likewise.
14906 (process_queue): Likewise.
14907 (dwarf2_physname): Likewise.
14908 (read_namespace_alias): Likewise.
14909 (read_import_statement): Likewise.
14910 (create_dwo_cu_reader): Likewise.
14911 (create_cus_hash_table): Likewise.
14912 (lookup_dwo_cutu): Likewise.
14913 (inherit_abstract_dies): Likewise.
14914 (read_func_scope): Likewise.
14915 (read_call_site_scope): Likewise.
14916 (dwarf2_add_member_fn): Likewise.
14917 (read_common_block): Likewise.
14918 (read_module_type): Likewise.
14919 (read_typedef): Likewise.
14920 (read_subrange_type): Likewise.
14921 (load_partial_dies): Likewise.
14922 (read_partial_die): Likewise.
14923 (find_partial_die): Likewise.
14924 (read_str_index): Likewise.
14925 (dwarf2_string_attr): Likewise.
14926 (build_error_marker_type): Likewise.
14927 (lookup_die_type): Likewise.
14928 (dump_die_shallow): Likewise.
14929 (follow_die_ref): Likewise.
14930 (dwarf2_fetch_die_loc_sect_off): Likewise.
14931 (dwarf2_fetch_constant_bytes): Likewise.
14932 (follow_die_sig): Likewise.
14933 (get_signatured_type): Likewise.
14934 (get_DW_AT_signature_type): Likewise.
14935 (dwarf2_find_containing_comp_unit): Likewise.
14936 (set_die_type): Likewise.
14937
14938 2018-02-21 John Baldwin <jhb@FreeBSD.org>
14939
14940 * arch/aarch64.c: Include "common-defs.h".
14941 * arch/amd64.c: Likewise.
14942 * arch/i386.c: Likewise.
14943
14944 2018-02-21 Tom Tromey <tom@tromey.com>
14945
14946 * value.h: (extract_field_op): Update.
14947 * eval.c (extract_field_op): Return a const char *.
14948 * expression.h (parse_expression_for_completion): Update.
14949 * completer.c (complete_expression): Update.
14950 (add_struct_fields): Make fieldname const.
14951 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14952 (mark_completion_tag, parse_exp_in_context_1): Update.
14953 (parse_expression_for_completion): Change "name" to
14954 unique_xmalloc_ptr*.
14955
14956 2018-02-21 Tom Tromey <tom@tromey.com>
14957
14958 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14959
14960 2018-02-21 Yao Qi <yao.qi@linaro.org>
14961
14962 * avr-tdep.c (avr_read_pc): Change parameter type to
14963 readable_regcache.
14964 * gdbarch.sh (read_pc): Likewise.
14965 * gdbarch.c: Re-generated.
14966 * gdbarch.h: Re-generated.
14967 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14968 readable_regcache.
14969 * ia64-tdep.c (ia64_read_pc): Likewise.
14970 * mips-tdep.c (mips_read_pc): Likewise.
14971 * spu-tdep.c (spu_read_pc): Likewise.
14972
14973 2018-02-21 Yao Qi <yao.qi@linaro.org>
14974
14975 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14976 * regcache-dump.c: New file.
14977 * regcache.c: Move register_dump to regcache-dump.c.
14978 (maintenance_print_registers): Likewise.
14979 (maintenance_print_raw_registers): Likewise.
14980 (maintenance_print_cooked_registers): Likewise.
14981 (maintenance_print_register_groups): Likewise.
14982 (maintenance_print_remote_registers): Likewise.
14983 (_initialize_regcache): Likewise.
14984 * regcache.h (register_dump): Moved from regcache.c.
14985
14986 2018-02-21 Yao Qi <yao.qi@linaro.org>
14987
14988 * regcache.c (regcache::regcache): Update.
14989 (regcache::invalidate): Move it to detached_regcache::invalidate.
14990 (get_thread_arch_aspace_regcache): Update.
14991 (regcache::raw_update): Update.
14992 (regcache::cooked_read): Remove some code.
14993 (regcache::cooked_read_value): Likewise.
14994 (regcache::raw_write): Remove assert on m_readonly_p.
14995 (regcache::raw_supply_integer): Move it to
14996 detached_regcache::raw_supply_integer.
14997 (regcache::raw_supply_zeroed): Likewise.
14998 * regcache.h (detached_regcache) <raw_supply_integer>: New
14999 declaration.
15000 <raw_supply_zeroed, invalidate>: Likewise.
15001 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
15002 <invalidate>: Likewise.
15003 <m_readonly_p>: Removed.
15004
15005 2018-02-21 Yao Qi <yao.qi@linaro.org>
15006
15007 * infcmd.c (get_return_value): Let stop_regs point to
15008 get_current_regcache.
15009 * regcache.c (regcache::regcache): Remove.
15010 (register_dump_reg_buffer): New class.
15011 (regcache_print): Adjust.
15012 * regcache.h (regcache): Remove constructors.
15013
15014 2018-02-21 Yao Qi <yao.qi@linaro.org>
15015
15016 * regcache.c (class register_dump): New class.
15017 (register_dump_regcache, register_dump_none): New class.
15018 (register_dump_remote, register_dump_groups): New class.
15019 (regcache_print): Update.
15020 * regcache.h (regcache_dump_what): Move it to regcache.c.
15021 (regcache) <dump>: Remove.
15022
15023 2018-02-21 Yao Qi <yao.qi@linaro.org>
15024
15025 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
15026 reg_buffer_rw *.
15027 (jit_unwind_reg_set_impl): Call raw_supply.
15028 (jit_frame_sniffer): Use reg_buffer_rw.
15029 * record-full.c (record_full_core_regbuf): Change its type.
15030 (record_full_core_open_1): Use reg_buffer_rw.
15031 (record_full_close): Likewise.
15032 (record_full_core_fetch_registers): Use regcache->raw_supply.
15033 (record_full_core_store_registers): Likewise.
15034 * regcache.c (regcache::get_register_status): Move it to
15035 reg_buffer.
15036 (regcache_raw_set_cached_value): Remove.
15037 (regcache::raw_set_cached_value): Remove.
15038 (regcache::raw_write): Call raw_supply.
15039 (regcache::raw_supply): Move it to reg_buffer_rw.
15040 * regcache.h (regcache_raw_set_cached_value): Remove.
15041 (reg_buffer_rw): New class.
15042
15043 2018-02-21 Yao Qi <yao.qi@linaro.org>
15044
15045 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
15046 readonly_detached_regcache.
15047 (dummy_frame_prev_register): Use regcache->cooked_read.
15048 * frame.c (frame_save_as_regcache): Change return type.
15049 (frame_pop): Update.
15050 * frame.h (frame_save_as_regcache): Update declaration.
15051 * inferior.h (get_infcall_suspend_state_regcache): Update
15052 declaration.
15053 * infrun.c (infcall_suspend_state) <registers>: use
15054 readonly_detached_regcache.
15055 (save_infcall_suspend_state): Don't use regcache_dup.
15056 (get_infcall_suspend_state_regcache): Change return type.
15057 * linux-fork.c (struct fork_info) <savedregs>: Change to
15058 readonly_detached_regcache.
15059 <pc>: New field.
15060 (fork_save_infrun_state): Don't use regcache_dup.
15061 (info_checkpoints_command): Adjust.
15062 * mi/mi-main.c (register_changed_p): Update declaration.
15063 (mi_cmd_data_list_changed_registers): Use
15064 readonly_detached_regcache.
15065 (register_changed_p): Change parameter type to
15066 readonly_detached_regcache.
15067 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
15068 readonly_detached_regcache.
15069 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
15070 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
15071 New.
15072 (regcache::save): Move it to reg_buffer.
15073 (regcache::restore): Change parameter type.
15074 (regcache_dup): Remove.
15075 * regcache.h (reg_buffer) <save>: New method.
15076 (readonly_detached_regcache): New class.
15077 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
15078 readonly_detached_regcache.
15079 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
15080
15081 2018-02-21 Yao Qi <yao.qi@linaro.org>
15082
15083 * frame.c (frame_save_as_regcache): Use regcache method save.
15084 (frame_pop): Use regcache method restore.
15085 * infrun.c (restore_infcall_suspend_state): Likewise.
15086 * linux-fork.c (fork_load_infrun_state): Likewise.
15087 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
15088 save.
15089 * regcache.c (regcache_save): Remove.
15090 (regcache::restore): More asserts.
15091 (regcache_cpy): Remove.
15092 * regcache.h (regcache_save): Remove the declaration.
15093 (regcache::restore): Move from private to public.
15094 Remove the friend declaration of regcache_cpy.
15095 (regcache_cpy): Remove declaration.
15096
15097 2018-02-21 Yao Qi <yao.qi@linaro.org>
15098
15099 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
15100 parameter type to 'readable_regcache *'.
15101 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15102 * arm-tdep.c (arm_neon_quad_read): Likewise.
15103 (arm_pseudo_read): Likewise.
15104 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15105 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15106 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15107 * gdbarch.c: Re-generated.
15108 * gdbarch.h: Re-generated.
15109 * gdbarch.sh (pseudo_register_read): Change parameter type to
15110 'readable_regcache *'.
15111 (pseudo_register_read_value): Likewise.
15112 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
15113 (h8300_pseudo_register_read): Likewise.
15114 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
15115 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15116 (i386_pseudo_register_read_into_value): Likewise.
15117 (i386_pseudo_register_read_value): Likewise.
15118 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
15119 declaration.
15120 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
15121 * m32c-tdep.c (m32c_raw_read): Likewise.
15122 (m32c_read_flg): Likewise.
15123 (m32c_banked_register): Likewise.
15124 (m32c_banked_read): Likewise.
15125 (m32c_sb_read): Likewise.
15126 (m32c_part_read): Likewise.
15127 (m32c_cat_read): Likewise.
15128 (m32c_r3r2r1r0_read): Likewise.
15129 (m32c_pseudo_register_read): Likewise.
15130 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15131 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15132 (mep_pseudo_cr64_read): Likewise.
15133 (mep_pseudo_register_read): Likewise.
15134 * mips-tdep.c (mips_pseudo_register_read): Likewise.
15135 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15136 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15137 * regcache.c (regcache::raw_read): Move it to readable_regcache.
15138 (regcache::cooked_read): Likewise.
15139 (regcache::cooked_read_value): Likewise.
15140 (regcache_cooked_read_signed):
15141 (regcache::cooked_read): Likewise.
15142 * regcache.h (readable_regcache): New class.
15143 (regcache): Inherit readable_regcache. Move some methods to
15144 readable_regcache.
15145 * rl78-tdep.c (rl78_pseudo_register_read): Change
15146 parameter type to 'readable_regcache *'.
15147 * rs6000-tdep.c (do_regcache_raw_read): Remove.
15148 (e500_pseudo_register_read): Change parameter type to
15149 'readable_regcache *'.
15150 (dfp_pseudo_register_read): Likewise.
15151 (vsx_pseudo_register_read): Likewise.
15152 (efpr_pseudo_register_read): Likewise.
15153 * s390-tdep.c (s390_pseudo_register_read): Likewise.
15154 * sh-tdep.c (sh_pseudo_register_read): Likewise.
15155 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
15156 (sh64_pseudo_register_read): Likewise.
15157 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15158 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15159 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15160 (spu_pseudo_register_read): Likewise.
15161 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15162 (xtensa_pseudo_register_read): Likewise.
15163
15164 2018-02-21 Yao Qi <yao.qi@linaro.org>
15165
15166 * regcache.c (regcache::regcache): Call reg_buffer ctor.
15167 (regcache::arch): Move it to reg_buffer::arch.
15168 (regcache::register_buffer): Likewise.
15169 (regcache::assert_regnum): Likewise.
15170 (regcache::num_raw_registers): Likewise.
15171 * regcache.h (reg_buffer): New class.
15172 (regcache): Inherit reg_buffer.
15173
15174 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
15175
15176 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
15177 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
15178
15179 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
15180
15181 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
15182
15183 2018-02-19 Alan Hayward <alan.hayward@arm.com>
15184
15185 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
15186 (SFILES): Remove common/*.c files.
15187 (COMMON_OBS): Remove some *.o files built from common/*.c files.
15188 * common/common.host: Add common reference.
15189 * configure.ac: Likewise.
15190 * configure: Regenerate.
15191
15192 2018-02-16 Yao Qi <yao.qi@linaro.org>
15193
15194 * block.c (block_namespace_info): Inherit allocate_on_obstack.
15195 (block_initialize_namespace): Use new.
15196 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
15197 (dwarf2_free_objfile): Use delete.
15198 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
15199 (copy_type_recursive): Use new.
15200 * gdb_obstack.h (allocate_on_obstack): New.
15201
15202 2018-02-15 Yao Qi <yao.qi@linaro.org>
15203
15204 PR gdb/22849
15205 * inferior.c (exit_inferior_1): Reset inf->control.
15206
15207 2018-02-15 Joel Brobecker <brobecker@adacore.com>
15208
15209 * ada-lang.c (ada_to_fixed_value_create): Delete advance
15210 declaration.
15211
15212 2018-02-14 Pedro Alves <palves@redhat.com>
15213
15214 * frame-unwind.c (frame_unwind_try_unwinder): Always call
15215 frame_cleanup_after_sniffer on exception.
15216
15217 2018-02-14 Tom Tromey <tom@tromey.com>
15218
15219 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
15220 const.
15221 (solib_bfd_open): Make pathname const.
15222 * solib.c (solib_bfd_open): Make pathname const.
15223 * solib-spu.c (spu_bfd_fopen): Make name const.
15224 (spu_bfd_open): Make pathname const.
15225 * solib-darwin.c (darwin_bfd_open): Make pathname const.
15226 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
15227
15228 2018-02-14 Tom Tromey <tom@tromey.com>
15229
15230 * symfile.c (symfile_bfd_open): Update.
15231 * source.h (openp, source_full_path_of, find_and_open_source):
15232 Change argument type to unique_xmalloc_ptr.
15233 * source.c (openp): Take a unique_xmalloc_ptr.
15234 (source_full_path_of, find_and_open_source): Likewise.
15235 (open_source_file, symtab_to_fullname): Update.
15236 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
15237 unique_xmalloc_ptr.
15238 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
15239 (exec_file_find): Update.
15240 * psymtab.c (psymtab_to_fullname): Update.
15241 * nto-tdep.h (nto_find_and_open_solib): Update.
15242 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
15243 unique_xmalloc_ptr.
15244 * exec.c (exec_file_attach): Update.
15245 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
15246 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
15247
15248 2018-02-14 Tom Tromey <tom@tromey.com>
15249
15250 * solib.c: Include source.h.
15251 * nto-tdep.c: Include source.h.
15252 * mi/mi-cmd-env.c: Include source.h.
15253 * infcmd.c: Include source.h.
15254 * exec.c: Include source.h.
15255 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
15256 (add_path, directory_switch, source_path, init_source_path): Move
15257 declarations...
15258 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
15259 (add_path, directory_switch, source_path, init_source_path):
15260 ...here.
15261
15262 2018-02-14 Tom Tromey <tom@tromey.com>
15263
15264 * solist.h (exec_file_find, solib_find): Return
15265 unique_xmalloc_ptr.
15266 (solib_bfd_fopen): Take a const char *.
15267 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
15268 (exec_file_find, solib_find): Likewise.
15269 (solib_bfd_fopen): Do not take ownership of "pathname".
15270 (solib_bfd_open): Use unique_xmalloc_ptr.
15271 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
15272 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
15273 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
15274 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
15275
15276 2018-02-14 Joel Brobecker <brobecker@adacore.com>
15277
15278 * ada-lang.c (name_match_type_from_name): Remove reference to
15279 ada_name_for_lookup in function's documentation.
15280 * ada-lang.h (ada_name_for_lookup): Delete declaration.
15281
15282 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
15283
15284 * defs.h (enum openp_flags): New enum.
15285 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
15286 Move to enum openp_flags.
15287 (openp_flags): New enum flags.
15288 (openp): Change parameter type to openp_flags.
15289 * source.c (openp): Change parameter type to openp_flags.
15290 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
15291 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
15292
15293 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
15294
15295 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
15296 per-command.
15297
15298 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
15299
15300 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
15301 into...
15302 (class dwarf2_queue_guard): ...the destructor of this new class.
15303 (dw2_do_instantiate_symtab): Create instance of the new class
15304 dwarf2_queue_guard, remove cleanup.
15305
15306 2018-02-09 Tom Tromey <tom@tromey.com>
15307
15308 * source.c (find_source_lines): Don't reference past the end of
15309 the vector.
15310
15311 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15312
15313 * remote.c (remote_btrace_maybe_reopen): Change error message.
15314 * btrace.c (btrace_enable): Likewise.
15315 (parse_xml_btrace): Likewise.
15316 (parse_xml_btrace_conf): Likewise.
15317
15318 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15319
15320 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
15321 (linux_enable_pt, linux_enable_bts): Call
15322 diagnose_perf_event_open_fail.
15323
15324 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15325
15326 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
15327 Remove parameter and change return type. Update callers. Move it.
15328 (linux_enable_bts, linux_enable_pt): Improve error message.
15329 (linux_enable_pt): Remove zero buffer size check.
15330 (linux_enable_btrace): Improve error messages. Remove NULL return
15331 check.
15332
15333 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15334
15335 * btrace.c (btrace_enable): Remove target_supports_btrace call.
15336 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
15337 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
15338 (linux_supports_pt, linux_supports_btrace): Remove.
15339 (linux_enable_bts): Call cpu_supports_bts.
15340 * nat/linux-btrace.h (linux_supports_btrace): Remove.
15341 * remote.c (remote_supports_btrace): Remove.
15342 (init_remote_ops): Remove remote_supports_btrace.
15343 * target-delegates.c: Regenerated.
15344 * target.c (target_supports_btrace): Remove.
15345 * target.h (target_ops) <to_supports_btrace>: Remove
15346 (target_supports_btrace): Remove.
15347 * x86-linux-nat.c (x86_linux_create_target): Remove
15348 linux_supports_btrace.
15349
15350 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15351
15352 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
15353 btrace failed.
15354 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
15355 exception and use message in own exception.
15356
15357 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15358
15359 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
15360 (perf_event_pt_event_type): Use gdb_file_up.
15361 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
15362 scoped_fd, and scoped_mmap.
15363
15364 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15365
15366 * common/scoped_mmap.h: New.
15367 * unittests/scoped_mmap-selftest.c: New.
15368 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15369 unittests/scoped_mmap-selftest.c.
15370
15371 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15372
15373 * common/scoped_fd.h: New.
15374 * unittests/scoped_fd-selftest.c: New.
15375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15376 unittests/scoped_fd-selftest.c.
15377
15378 2018-02-09 Tom Tromey <tom@tromey.com>
15379
15380 * auto-load.c (auto_load_section_scripts): Use
15381 gdb::unique_xmalloc_ptr.
15382
15383 2018-02-09 Tom Tromey <tom@tromey.com>
15384
15385 * auto-load.c (execute_script_contents): Use std::string.
15386
15387 2018-02-09 Joel Brobecker <brobecker@adacore.com>
15388
15389 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
15390 Python function, rather than a new command.
15391
15392 2018-02-08 Tom Tromey <tom@tromey.com>
15393
15394 * solib.c (solib_find_1): Use std::string.
15395 (solib_bfd_fopen): Use unique_xmalloc_ptr.
15396
15397 2018-02-08 Tom Tromey <tom@tromey.com>
15398
15399 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
15400
15401 2018-02-08 Tom Tromey <tom@tromey.com>
15402
15403 * source.c (find_source_lines): Use gdb::def_vector.
15404
15405 2018-02-08 Tom Tromey <tom@tromey.com>
15406
15407 * macrocmd.c (struct temporary_macro_definition): New.
15408 (macro_define_command): Use temporary_macro_definition. Remove
15409 cleanups.
15410 (free_macro_definition_ptr): Remove.
15411
15412 2018-02-08 Tom Tromey <tom@tromey.com>
15413
15414 * macroexp.c (maybe_expand): Use std::string.
15415
15416 2018-02-08 Tom Tromey <tom@tromey.com>
15417
15418 * macroexp.c (struct macro_buffer): Add initializers for some
15419 members.
15420 (init_buffer, init_shared_buffer, free_buffer)
15421 (free_buffer_return_text): Remove.
15422 (macro_buffer): New constructors.
15423 (~macro_buffer): New destructor.
15424 (macro_buffer::set_shared): New method.
15425 (macro_buffer::resize_buffer, macro_buffer::appendc)
15426 (macro_buffer::appendmem): Now methods, not free functions.
15427 (set_token, append_tokens_without_splicing, stringify)
15428 (macro_stringify): Update.
15429 (gather_arguments): Change return type. Remove argc_p argument,
15430 add args_ptr argument. Use std::vector.
15431 (substitute_args): Remove argc argument. Accept std::vector.
15432 (expand): Update. Use std::vector.
15433 (scan, macro_expand, macro_expand_next): Update.
15434
15435 2018-02-08 Tom Tromey <tom@tromey.com>
15436
15437 * symtab.c (default_collect_symbol_completion_matches_break_on):
15438 Use unique_xmalloc_ptr.
15439 * macroscope.h: (sal_macro_scope, user_macro_scope)
15440 (default_macro_scope): Return unique_xmalloc_ptr.
15441 * macroscope.c (sal_macro_scope, user_macro_scope)
15442 (default_macro_scope): Return unique_xmalloc_ptr.
15443 * macroexp.h (macro_expand, macro_expand_once): Return
15444 unique_xmalloc_ptr.
15445 * macroexp.c (macro_expand, macro_expand_once): Return
15446 unique_xmalloc_ptr.
15447 * macrocmd.c (macro_expand_command, macro_expand_once_command)
15448 (info_macro_command, info_macros_command): Use
15449 unique_xmalloc_ptr.
15450 * compile/compile-c-support.c (write_macro_definitions): Use
15451 unique_xmalloc_ptr.
15452 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
15453
15454 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
15455
15456 * value.c (value_static_field): Assign field type instead of
15457 containing type when returning an optimized out value.
15458
15459 2018-02-06 Yao Qi <yao.qi@linaro.org>
15460
15461 * ft32-tdep.c (ft32_read_pc): Remove.
15462 (ft32_write_pc): Remove.
15463 (ft32_gdbarch_init): Update.
15464 * m32r-tdep.c (m32r_read_pc): Remove.
15465 (m32r_gdbarch_init): Update.
15466 * mep-tdep.c (mep_read_pc): Remove.
15467 (mep_gdbarch_init): Update.
15468 * microblaze-tdep.c (microblaze_write_pc): Remove.
15469 (microblaze_gdbarch_init): Update.
15470 * mn10300-tdep.c (mn10300_read_pc): Remove.
15471 (mn10300_write_pc): Remove.
15472 (mn10300_gdbarch_init): Update.
15473 * moxie-tdep.c (moxie_read_pc): Remove.
15474 (moxie_write_pc): Remove.
15475 (moxie_gdbarch_init): Update.
15476
15477 2018-02-06 Yao Qi <yao.qi@linaro.org>
15478
15479 * expprint.c (print_subexp_standard): Handle
15480 OP_F77_UNDETERMINED_ARGLIST.
15481 (dump_subexp_body_standard): Likewise.
15482
15483 2018-02-05 Alan Hayward <alan.hayward@arm.com>
15484
15485 * target-descriptions.c (tdesc_element_visitor) Add empty
15486 implementations.
15487 (tdesc_type): Move make_gdb_type from here.
15488 (tdesc_type_builtin): Likewise.
15489 (tdesc_type_vector): Likewise.
15490 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15491 (make_gdb_type_struct): Move from tdesc_type_with_fields.
15492 (make_gdb_type_union): Likewise.
15493 (make_gdb_type_flags): Likewise.
15494 (make_gdb_type_enum): Likewise.
15495 (make_gdb_type): New function.
15496 (tdesc_register_type): Use static make_gdb_type.
15497
15498 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
15499
15500 * infcmd.c (default_print_one_register_info): Align natural-format
15501 column values consistently one under another.
15502 (pad_to_column): New function.
15503
15504 2018-02-05 Joel Brobecker <brobecker@adacore.com>
15505
15506 * dwarf2read.c (dwarf2_physname): Move commment.
15507
15508 2018-02-01 Leszek Swirski <leszeks@google.com>
15509
15510 * varobj.c (varobj_formatted_print_options): Allow recursive
15511 pretty printing if pretty printing is enabled.
15512
15513 2018-02-01 Leszek Swirski <leszeks@google.com>
15514
15515 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15516 names after a structop as a filename.
15517
15518 2018-02-01 Yao Qi <yao.qi@linaro.org>
15519
15520 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15521 (arm_record_coproc_data_proc): Likewise.
15522
15523 2018-02-01 Yao Qi <yao.qi@linaro.org>
15524
15525 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15526
15527 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
15528
15529 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15530 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15531
15532 2018-01-31 Pedro Alves <palves@redhat.com>
15533
15534 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15535 * inflow.c (child_terminal_save_inferior): Wrap reference to
15536 tcgetpgrp in HAVE_TERMIOS_H.
15537 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15538 _WIN32.
15539 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15540 always iterate over all inferiors.
15541 (gdbsim_cntrl_c): Adjust.
15542 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15543
15544 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15545
15546 * gdbtypes.c (lookup_array_range_type): Make sure the array's
15547 index type is objfile-owned if the element type is as well.
15548
15549 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15550
15551 GDB 8.1 released.
15552
15553 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
15554
15555 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15556 "features/s390x-linux64.c".
15557 (_initialize_s390_linux_tdep): Remove initialization of tdescs
15558 s390_linux32 and s390x_linux64.
15559 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15560 default tdesc.
15561 * s390-tdep.c: Include "features/s390-linux32.c" and
15562 "features/s390x-linux64.c".
15563 (s390_tdesc_valid): Add check for tdesc_has_registers.
15564 (s390_gdbarch_init): Make sure there is always a valid tdesc.
15565 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15566 tdesc_s390x_linux64.
15567 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15568 tdesc_s390x_linux64 to...
15569 * s390-tdep.h: ...here.
15570
15571 2018-01-30 Pedro Alves <palves@redhat.com>
15572
15573 PR gdb/13211
15574 * config.in, configure: Regenerate.
15575 * configure.ac: Check for getpgid.
15576 * go32-nat.c (go32_pass_ctrlc): New.
15577 (go32_target): Install it.
15578 * inf-child.c (inf_child_target): Install
15579 child_terminal_save_inferior, child_pass_ctrlc and
15580 child_interrupt.
15581 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15582 (inf_ptrace_target): No longer install it.
15583 * infcmd.c (interrupt_target_1): Adjust.
15584 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15585 (child_interrupt): Declare.
15586 (inferior::terminal_state): New.
15587 * inflow.c (struct terminal_info): Update comments.
15588 (inferior_process_group): Delete.
15589 (terminal_is_ours): Delete.
15590 (gdb_tty_state): New.
15591 (child_terminal_init): Adjust.
15592 (is_gdb_terminal, sharing_input_terminal_1)
15593 (sharing_input_terminal): New functions.
15594 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
15595 Set the process's actual process group in the foreground if
15596 possible. Handle is_ours_for_output/is_ours distinction. Don't
15597 mark terminal as the inferior's if not sharing GDB's terminal.
15598 Don't check attach_flag.
15599 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15600 pass down a target_terminal_state.
15601 (child_terminal_save_inferior): New, factored out from ...
15602 (child_terminal_ours_1): ... this. Handle
15603 target_terminal_state::is_ours_for_output.
15604 (child_interrupt, child_pass_ctrlc): New.
15605 (inflow_inferior_exit): Clear the inferior's terminal_state.
15606 (copy_terminal_info): Copy the inferior's terminal state.
15607 (_initialize_inflow): Remove reference to terminal_is_ours.
15608 * inflow.h (inferior_process_group): Delete.
15609 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15610 * procfs.c (procfs_target): Don't install procfs_interrupt.
15611 (procfs_interrupt): Delete.
15612 * remote.c (remote_serial_quit_handler): Adjust.
15613 (remote_interrupt): Remove ptid parameter. Adjust.
15614 * target-delegates.c: Regenerate.
15615 * target.c: Include "terminal.h".
15616 (target_terminal::terminal_state): Rename to ...
15617 (target_terminal::m_terminal_state): ... this.
15618 (target_terminal::init): Adjust.
15619 (target_terminal::inferior): Adjust to per-inferior
15620 terminal_state.
15621 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15622 (target_terminal::ours, target_terminal::ours_for_output): Use
15623 target_terminal_is_ours_kind.
15624 (target_interrupt): Remove ptid parameter. Adjust.
15625 (default_target_pass_ctrlc): Adjust.
15626 * target.h (target_ops::to_terminal_save_inferior): New field.
15627 (target_ops::to_interrupt): Remove ptid_t parameter.
15628 (target_interrupt): Remove ptid_t parameter. Update comment.
15629 (target_pass_ctrlc): Update comment.
15630 * target/target.h (target_terminal_state): New scoped enum,
15631 factored out of ...
15632 (target_terminal::terminal_state): ... here.
15633 (target_terminal::inferior): Update comments.
15634 (target_terminal::restore_inferior): New.
15635 (target_terminal::is_inferior, target_terminal::is_ours)
15636 (target_terminal::is_ours_for_output): Adjust.
15637 (target_terminal::scoped_restore_terminal_state): Adjust to
15638 rename, and call restore_inferior() instead of inferior().
15639 (target_terminal::scoped_restore_terminal_state::m_state): Change
15640 type.
15641 (target_terminal::terminal_state): Rename to ...
15642 (target_terminal::m_terminal_state): ... this and change type.
15643
15644 2018-01-30 Pedro Alves <palves@redhat.com>
15645
15646 * linux-nat.c (wait_for_signal): New function.
15647 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15648 directly.
15649 (async_terminal_is_ours)
15650 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15651 (linux_nat_add_target): Don't override
15652 to_terminal_inferior/to_terminal_ours.
15653
15654 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
15655
15656 * remote.c (remote_follow_fork): Don't call "detach_inferior".
15657
15658 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
15659
15660 * dwarf2read.c (free_dwo_files): Add forward-declaration.
15661 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15662 dwarf2_per_objfile_free here.
15663 (dwarf2_per_objfile_free): Remove.
15664 (_initialize_dwarf2_read): Don't register
15665 dwarf2_per_objfile_free as a registry cleanup.
15666
15667 2018-01-27 Eli Zaretskii <eliz@gnu.org>
15668
15669 Avoid compilation errors in MinGW native builds
15670
15671 The error is triggered by including python-internal.h, and the
15672 error message is:
15673
15674 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15675 from build-gnulib/import/math.h:27,
15676 from d:/usr/Python26/include/pyport.h:235,
15677 from d:/usr/Python26/include/Python.h:58,
15678 from python/python-internal.h:94,
15679 from python/py-arch.c:24:
15680 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15681 using ::hypot;
15682 ^~~~~
15683
15684 This happens because Python headers define 'hypot' to expand t
15685 '_hypot' in the Windows builds.
15686 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15687 'hypoth'. This avoids a compilation error.
15688
15689 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15690
15691 * MAINTAINERS (Write After Approval): Fix ordering.
15692
15693 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15694
15695 * MAINTAINERS (Write After Approval): Add Alan Hayward.
15696
15697 2018-01-26 Alan Modra <amodra@gmail.com>
15698
15699 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15700 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15701 Remove nop. Make const. Comment.
15702 (powerpc32_plt_stub_so_2): New.
15703 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15704 Correct count. Update uses.
15705 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15706 Move common code reading PLT entry word. Correct
15707 powerpc32_plt_stub PLT address calculation.
15708 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15709 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15710 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15711 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15712 (ppc64_standard_linkage8): Likewise.
15713 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15714 Correct insns description.
15715 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15716
15717 2018-01-24 Pedro Alves <palves@redhat.com>
15718
15719 GCC PR libstdc++/83906
15720 * gdbtypes.c (operator==(const dynamic_prop &,
15721 const dynamic_prop &)): New.
15722 (operator==(const range_bounds &, const range_bounds &)): New.
15723 (check_types_equal): Use them instead of memcmp.
15724 * gdbtypes.h (operator==(const dynamic_prop &,
15725 const dynamic_prop &)): Declare.
15726 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15727 (operator==(const range_bounds &, const range_bounds &)): Declare.
15728 (operator!=(const range_bounds &, const range_bounds &)): Declare.
15729
15730 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15731
15732 * s390-linux-tdep.c (s390_record_address_mask)
15733 (s390_record_calc_disp_common, s390_record_calc_disp)
15734 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15735 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15736 (s390_process_record): Move to s390-tdep.c.
15737 (s390_linux_init_abi_any): Adjust.
15738 * s390-tdep.c (s390_record_address_mask)
15739 (s390_record_calc_disp_common, s390_record_calc_disp)
15740 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15741 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15742 (s390_process_record): Moved from s390-linux-tdep.c
15743 (s390_gdbarch_init): Adjust.
15744
15745 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15746
15747 * s390-linux-nat.c (s390-tdep.h): New include.
15748 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15749 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15750 (ALLDEPFILES): Add s390-tdep.c.
15751 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15752 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15753 * s390-tdep.h: ...this. New file.
15754 * s390-linux-tdep.c (s390-tdep.h): New include.
15755 (_initialize_s390_tdep): Rename to...
15756 (_initialize_s390_linux_tdep): ...this and adjust.
15757 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15758 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15759 s390-tdep.h.
15760 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15761 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15762 (s390_is_partial_instruction, s390_software_single_step)
15763 (is_non_branch_ril, s390_displaced_step_copy_insn)
15764 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15765 (s390_prologue_data, s390_addr, s390_store, s390_load)
15766 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15767 (s390_register_call_saved, s390_guess_tracepoint_registers)
15768 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15769 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15770 (s390_pseudo_register_name, s390_pseudo_register_type)
15771 (s390_pseudo_register_read, s390_pseudo_register_write)
15772 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15773 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15774 (s390_addr_bits_remove, s390_address_class_type_flags)
15775 (s390_address_class_type_flags_to_name)
15776 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15777 (s390_function_arg_float, s390_function_arg_vector)
15778 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15779 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15780 (s390_frame_align, s390_register_return_value, s390_return_value)
15781 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15782 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15783 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15784 (s390_trad_frame_prev_register, s390_unwind_cache)
15785 (s390_prologue_frame_unwind_cache)
15786 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15787 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15788 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15789 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15790 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15791 (s390_frame_base_address, s390_local_base_address)
15792 (s390_frame_base, s390_gcc_target_options)
15793 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15794 (s390_validate_reg_range, s390_tdesc_valid)
15795 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15796 * s390-tdep.c: ...this. New file.
15797
15798 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15799
15800 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15801 (s390_process_record, s390_gdbarch_tdep_alloc)
15802 (s390_linux_init_abi_any): Use/set new hook.
15803
15804 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15805
15806 * s390-linux-tdep.c (osabi.h): New include.
15807 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15808 (s390_linux_init_abi_any): New functions.
15809 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15810
15811 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15812
15813 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15814 tdesc_has_registers check
15815
15816 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15817
15818 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15819 (s390_validate_reg_range): New macro.
15820 (s390_gdbarch_init): Adjust.
15821
15822 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15823
15824 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15825 (s390_gdbarch_tdep_alloc): Adjust.
15826 (s390_gdbarch_init): Adjust.
15827
15828 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15829
15830 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15831 <have_tdb>: Change type to bool.
15832 (s390_gdbarch_tdep_alloc): Adjust.
15833 (s390_gdbarch_init): Adjust.
15834
15835 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15836
15837 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15838 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15839 (s390_gdbarch_tdep_alloc): New function.
15840 (s390_gdbarch_init): Allocate tdep at start and use its fields
15841 instead of separate variables.
15842
15843 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15844
15845 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15846 when looking for cached gdbarch and add comment for remaining.
15847
15848 2018-01-22 Pedro Alves <palves@redhat.com>
15849 Sergio Durigan Junior <sergiodj@redhat.com>
15850
15851 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15852 case.
15853
15854 2018-01-22 Maciej W. Rozycki <macro@mips.com>
15855
15856 * MAINTAINERS: Update my company e-mail address.
15857
15858 2018-01-22 Yao Qi <yao.qi@linaro.org>
15859
15860 * regcache.c (cooked_write_test): New function.
15861 (_initialize_regcache): Register the test.
15862
15863 2018-01-22 Yao Qi <yao.qi@linaro.org>
15864
15865 * ia64-tdep.c (ia64_pseudo_register_read): Call
15866 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15867 * m32c-tdep.c (m32c_cat_read): Likewise.
15868 (m32c_r3r2r1r0_read): Likewise.
15869 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15870 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15871
15872 2018-01-22 Yao Qi <yao.qi@linaro.org>
15873
15874 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15875 method raw_read instead of regcache_raw_read.
15876 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15877 * arm-tdep.c (arm_neon_quad_read): Likewise.
15878 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15879 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15880 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15881 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15882 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15883 (i386_pseudo_register_read_into_value): Likewise.
15884 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15885 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15886 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15887 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15888 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15889 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15890 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15891 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15892 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15893
15894 2018-01-22 Yao Qi <yao.qi@linaro.org>
15895
15896 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15897 * configure.tgt: Remove target mt.
15898 * mt-tdep.c: Remove.
15899 * regcache.c (cooked_read_test): Remove the check for mt.
15900
15901 2018-01-22 Yao Qi <yao.qi@linaro.org>
15902
15903 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15904 instead of gdbarch_pseudo_register_read_value.
15905
15906 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15907
15908 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15909 language is Ada.
15910
15911 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15912
15913 * linespec.c (create_sals_line_offset): Remove code that preserved
15914 the symtab_and_line's line number.
15915
15916 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15917
15918 * varobj.c (varobj_create): Don't set valid_block when creating a
15919 floating varobj.
15920
15921 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15922
15923 * varobj.c (varobj_create): Remove out of date comment.
15924
15925 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15926
15927 PR mi/20395
15928 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15929 updating innermost block.
15930 * parse.c (innermost_block_tracker::update): Take extra type
15931 parameter, and check types match before updating innermost block.
15932 (write_dollar_variable): Update innermost block for registers.
15933 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15934 (innermost_block_tracker::innermost_block_tracker): Initialise
15935 m_types member.
15936 (innermost_block_tracker::reset): Take type parameter.
15937 (innermost_block_tracker::update): Take type parameter, and pass
15938 type through as needed.
15939 (innermost_block_tracker::m_types): New member.
15940 * varobj.c (varobj_create): Pass type when reseting innermost
15941 block.
15942
15943 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15944
15945 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15946 * ada-lang.c (resolve_subexp): Likewise.
15947 * breakpoint.c (set_breakpoint_condition) Likewise.
15948 (watch_command_1) Likewise.
15949 * c-exp.y (variable): Likewise.
15950 * d-exp.y (PrimaryExpression): Likewise.
15951 * f-exp.y (variable): Likewise.
15952 * go-exp.y (variable): Likewise.
15953 * m2-exp.y (variable): Likewise.
15954 * objfiles.c (objfile::~objfile): Likewise.
15955 * p-exp.y (variable): Likewise.
15956 * parse.c (innermost_block): Change type.
15957 * parser-defs.h (class innermost_block_tracker): New.
15958 (innermost_block): Change to innermost_block_tracker.
15959 * printcmd.c (display_command): Switch to innermost_block API.
15960 (do_one_display): Likewise.
15961 * rust-exp.y (do_one_display): Likewise.
15962 * symfile.c (clear_symtab_users): Likewise.
15963 * varobj.c (varobj_create): Switch to innermost_block API, replace
15964 use of innermost_block with block stored on varobj object.
15965
15966 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15967
15968 * expression.h (innermost_block): Remove declaration.
15969 * varobj.c: Add 'parser-defs.h' include.
15970
15971 2018-01-19 Tom Tromey <tom@tromey.com>
15972
15973 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15974 symbols in the static and global blocks.
15975
15976 2018-01-19 James Clarke <jrtc27@jrtc27.com>
15977
15978 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15979 gdb_ptrace.h, and move including gdb_wait.h ...
15980 * nat/linux-ptrace.h: ... to here.
15981
15982 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15983
15984 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15985 inf_ptrace_detach_success.
15986 (inf_ptrace_detach_success): Add inferior parameter, use it
15987 instead of inferior_ptid, pass it to detach_inferior.
15988 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15989 parameter.
15990 * inferior.c (detach_inferior): Add overload that takes an
15991 inferior object.
15992 * inferior.h (detach_inferior): Likewise.
15993 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15994 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15995 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15996
15997 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15998
15999 * target.h (struct target_ops) <to_detach>: Add inferior
16000 parameter.
16001 (target_detach): Likewise.
16002 * target.c (dispose_inferior): Pass inferior down.
16003 (target_detach): Pass inferior down. Assert that it is equal to
16004 the current inferior.
16005 * aix-thread.c (aix_thread_detach): Pass inferior down.
16006 * corefile.c (core_file_command): Pass current_inferior() down.
16007 * corelow.c (core_detach): Add inferior parameter.
16008 * darwin-nat.c (darwin_detach): Likewise.
16009 * gnu-nat.c (gnu_detach): Likewise.
16010 * inf-ptrace.c (inf_ptrace_detach): Likewise.
16011 * infcmd.c (detach_command): Pass current_inferior() down to
16012 target_detach.
16013 * infrun.c (follow_fork_inferior): Pass parent_inf to
16014 target_detach.
16015 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
16016 target_detach.
16017 * linux-nat.c (linux_nat_detach): Add inferior parameter.
16018 * linux-thread-db.c (thread_db_detach): Likewise.
16019 * nto-procfs.c (procfs_detach): Likewise.
16020 * procfs.c (procfs_detach): Likewise.
16021 * record.c (record_detach): Likewise.
16022 * record.h (struct inferior): Forward-declare.
16023 (record_detach): Add inferior parameter.
16024 * remote-sim.c (gdbsim_detach): Likewise.
16025 * remote.c (remote_detach_1): Likewise.
16026 (remote_detach): Likewise.
16027 (extended_remote_detach): Likewise.
16028 * sol-thread.c (sol_thread_detach): Likewise.
16029 * target-debug.h (target_debug_print_inferior_p): New macro.
16030 * target-delegates.c: Re-generate.
16031 * top.c (kill_or_detach): Pass inferior down to target_detach.
16032 * windows-nat.c (windows_detach): Add inferior parameter.
16033
16034 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
16035
16036 * target.h (struct target_ops) <to_detach>: Remove args
16037 parameter.
16038 (target_detach): Likewise.
16039 * target.c (dispose_inferior): Adjust.
16040 (target_detach): Remove args parameter, adjust.
16041 * aix-thread.c (aix_thread_detach): Adjust.
16042 * corefile.c (core_file_command): Adjust.
16043 * corelow.c (core_detach): Adjust.
16044 * darwin-nat.c (darwin_detach): Adjust.
16045 * gnu-nat.c (gnu_detach): Adjust.
16046 * inf-ptrace.c (inf_ptrace_detach): Adjust.
16047 * infcmd.c (detach_command): Adjust
16048 * infrun.c (follow_fork_inferior): Adjust.
16049 (handle_vfork_child_exec_or_exit): Adjust.
16050 * linux-fork.c (linux_fork_detach): Remove args parameter.
16051 * linux-fork.h (linux_fork_detach): Likewise.
16052 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
16053 * linux-thread-db.c (thread_db_detach): Likewise.
16054 * nto-procfs.c (procfs_detach): Likewise.
16055 * procfs.c (procfs_detach): Likewise.
16056 (do_detach): Remove signo parameter.
16057 * record.c (record_detach): Remove args parameter.
16058 * record.h (record_detach): Likewise.
16059 * remote-sim.c (gdbsim_detach): Likewise.
16060 * remote.c (remote_detach_1): Likewise.
16061 (remote_detach): Likewise.
16062 (extended_remote_detach): Likewise.
16063 * sol-thread.c (sol_thread_detach): Likewise.
16064 * target-delegates.c: Re-generate.
16065 * top.c (struct qt_args) <args>: Remove field.
16066 (kill_or_detach): Don't pass args.
16067 (quit_force): Don't set args.
16068 * windows-nat.c (windows_detach): Remove args parameter.
16069
16070 2018-01-19 Yao Qi <yao.qi@linaro.org>
16071
16072 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
16073 (arm_linux_init_abi): Install it.
16074
16075 2018-01-19 Yao Qi <yao.qi@linaro.org>
16076
16077 * osabi.c (gdb_osabi_names): Extend the regexp for
16078 arm-linux-gnueabihf.
16079
16080 2018-01-18 Yao Qi <yao.qi@linaro.org>
16081
16082 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
16083 m_abbrevs.
16084 (abbrev_table::add_abbrev): Update.
16085 (abbrev_table::lookup_abbrev): Update.
16086
16087 2018-01-18 Yao Qi <yao.qi@linaro.org>
16088
16089 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
16090
16091 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
16092
16093 * compile/compile.c (compile_to_object): Convert "triplet_rx"
16094 to "std::string".
16095
16096 2018-01-17 Tom Tromey <tom@tromey.com>
16097
16098 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
16099
16100 2018-01-17 Tom Tromey <tom@tromey.com>
16101
16102 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
16103 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
16104 (create_array_type_with_stride): Update.
16105 * dwarf2read.c (set_die_type): Update.
16106
16107 2018-01-17 Tom Tromey <tom@tromey.com>
16108
16109 * dwarf2read.c (delayed_method_info): Remove typedef.
16110 (dwarf2_cu::method_info): Now a std::vector.
16111 (add_to_method_list): Update.
16112 (free_delayed_list): Remove.
16113 (compute_delayed_physnames): Update.
16114 (process_full_comp_unit, process_full_type_unit): Clear the method
16115 list. Remove cleanups.
16116 (psymtab_include_file_name): Add name_holder parameter. Use
16117 unique_xmalloc_ptr.
16118 (dwarf_decode_lines): Update.
16119
16120 2018-01-17 Tom Tromey <tom@tromey.com>
16121 Simon Marchi <simon.marchi@ericsson.com>
16122
16123 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
16124 (dwarf2_per_objfile::free_cached_comp_units)
16125 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
16126 (init_cutu_and_read_dies_no_follow): Update.
16127 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
16128 (dwarf2_cu::~dwarf2_cu): New.
16129 (free_heap_comp_unit, free_stack_comp_unit): Remove.
16130 (age_cached_comp_units, free_one_cached_comp_unit): Update.
16131
16132 2018-01-17 Tom Tromey <tom@tromey.com>
16133 Simon Marchi <simon.marchi@ericsson.com>
16134
16135 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
16136 (struct die_reader_specs) <abbrev_table>: New member.
16137 (struct abbrev_table): Add constructor.
16138 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
16139 <abbrev_obstack>: Now an auto_obstack.
16140 (abbrev_table_up): New typedef.
16141 (init_cu_die_reader): Add abbrev_table parameter.
16142 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
16143 Add result_dwo_abbrev_table.
16144 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
16145 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
16146 Update.
16147 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
16148 parameter.
16149 (skip_children): Update.
16150 (abbrev_table::alloc_abbrev): Rename from
16151 abbrev_table_alloc_abbrev.
16152 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
16153 (abbrev_table::lookup_abbrev): Rename from
16154 abbrev_table_lookup_abbrev.
16155 (abbrev_table_read_table): Return abbrev_table_up.
16156 (abbrev_table_free, abbrev_table_free_cleanup)
16157 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
16158 (load_partial_dies): Update.
16159
16160 2018-01-17 Tom Tromey <tom@tromey.com>
16161
16162 * dwarf2read.c (dwarf2_compute_name): Update comment.
16163 (read_func_scope, read_variable): Update.
16164 (new_symbol): Remove.
16165 (new_symbol_full): Rename to new_symbol.
16166
16167 2018-01-17 Mike Gulick <mgulick@mathworks.com>
16168
16169 PR gdb/16577
16170 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
16171 a warning instead of throwing an error, set section size to 0 and return
16172 NULL.
16173 * gdb_bfd.h (gdb_bfd_map_section): Update description.
16174
16175 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
16176
16177 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
16178 std::string.
16179 (linux_ptrace_attach_fail_reason_string): Likewise.
16180 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
16181 Likewise.
16182 (linux_ptrace_attach_fail_reason_string): Likewise.
16183 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
16184
16185 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
16186
16187 * linux-nat.c (linux_nat_attach): Remove xstrdup.
16188
16189 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
16190
16191 PR gdb/21559
16192 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
16193 checking for fs_base/gs_base fields in struct user_regs_struct.
16194 * configure: Regenerate.
16195
16196 2018-01-17 Yao Qi <yao.qi@linaro.org>
16197
16198 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
16199 function.
16200 (aarch64_linux_init_abi): Install it to gdbarch hook
16201 gcc_target_options.
16202
16203 2018-01-15 Pedro Alves <palves@redhat.com>
16204
16205 * common/signals-state-save-restore.c
16206 (save_original_signals_state): Fix typos.
16207
16208 2017-01-12 Tom Tromey <tom@tromey.com>
16209 Sergio Durigan Junior <sergiodj@redhat.com>
16210
16211 * Makefile.in (install-only): Install gdb-add-index.
16212
16213 2018-01-12 John Baldwin <jhb@FreeBSD.org>
16214
16215 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
16216
16217 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
16218
16219 * infrun.c (keep_going_pass_signal): Clear step-over info when
16220 insert_breakpoints fails.
16221
16222 2018-01-11 Pedro Alves <palves@redhat.com>
16223
16224 PR gdb/22583
16225 * infrun.c (resume): Rename to ...
16226 (resume_1): ... this.
16227 (resume): Reimplement as wrapper around resume_1.
16228
16229 2018-01-11 Pedro Alves <palves@redhat.com>
16230
16231 PR remote/22597
16232 * remote.c (remote_parse_stop_reply): Default to the last-set
16233 general thread instead of to 'magic_null_ptid'.
16234
16235 2018-01-10 Pedro Alves <palves@redhat.com>
16236
16237 * language.h (language_get_symbol_name_matcher): Rename ...
16238 (get_symbol_name_matcher): ... this.
16239 * language.c (language_get_symbol_name_matcher): Ditto.
16240 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
16241 callers adjusted.
16242
16243 2018-01-10 Pedro Alves <palves@redhat.com>
16244
16245 PR gdb/22670
16246 * dwarf2read.c
16247 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
16248 Adjust to use language_get_symbol_name_matcher instead of
16249 language_defn::la_get_symbol_name_matcher.
16250 * language.c (language_get_symbol_name_matcher): If in Ada mode
16251 and the lookup name is a verbatim match, return Ada's matcher.
16252 * language.h (language_get_symbol_name_matcher): Adjust comment.
16253 (ada_lookup_name_info::verbatim_p):: New method.
16254
16255 2018-01-10 Pedro Alves <palves@redhat.com>
16256
16257 PR gdb/22670
16258 * ada-lang.c (ada_collect_symbol_completion_matches): If the
16259 minsym's language is language_auto or language_cplus, pass down
16260 language_ada instead.
16261 * symtab.c (compare_symbol_name): Don't frob symbol language here.
16262
16263 2018-01-10 Pedro Alves <palves@redhat.com>
16264
16265 PR gdb/22670
16266 * minsyms.c (linkage_name_str): New function.
16267 (iterate_over_minimal_symbols): Use it.
16268
16269 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16270
16271 * NEWS: Document that 'info proc' now works on FreeBSD.
16272
16273 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16274
16275 * configure.ac: Check for kinfo_getfile in libutil.
16276 * configure: Regenerate.
16277 * config.in: Regenerate.
16278 * fbsd-nat.c: Include "fbsd-tdep.h".
16279 (fbsd_fetch_cmdline): New.
16280 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
16281 rather than calling error.
16282 (fbsd_info_proc): New.
16283 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
16284 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
16285 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
16286
16287 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16288
16289 * fbsd-nat.c (struct free_deleter): Remove.
16290 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
16291
16292 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16293
16294 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
16295 NULL for an empty pathname.
16296
16297 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16298
16299 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
16300 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
16301 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
16302 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
16303 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
16304 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
16305 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
16306 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
16307 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
16308 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
16309 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
16310 (fbsd_core_fetch_timeval, fbsd_print_sigset)
16311 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
16312 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
16313 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
16314
16315 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
16316
16317 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
16318 (gnu_xfer_auxv): New function.
16319 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
16320 TARGET_OBJECT_AUXV.
16321
16322 2018-01-08 Yao Qi <yao.qi@linaro.org>
16323 Simon Marchi <simon.marchi@ericsson.com>
16324
16325 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
16326 common/selftest.c.
16327 (COMMON_OBS): Remove selftest.o.
16328 * configure.ac: Append selftest-arch.c and common/selftest.c to
16329 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
16330 * configure: Re-generated.
16331 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
16332 GDB_SELF_TEST.
16333 (maintenance_info_selftests): Likewise.
16334
16335 2018-01-08 Xavier Roirand <roirand@adacore.com>
16336
16337 * ada-valprint.c (val_print_packed_array_elements): Use
16338 proper number of elements when printing an array indexed
16339 by an enumeration type.
16340
16341 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16342
16343 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
16344 (dw2_get_file_names_reader): Adjust.
16345 (lookup_dwo_signatured_type): Adjust.
16346 (lookup_dwp_signatured_type): Adjust.
16347 (lookup_signatured_type): Adjust.
16348 (create_type_unit_group): Adjust.
16349 (get_type_unit_group): Adjust.
16350 (process_psymtab_comp_unit_reader): Adjust.
16351 (build_type_psymtabs_reader): Adjust.
16352 (scan_partial_symbols): Adjust.
16353 (add_partial_symbol): Adjust.
16354 (add_partial_subprogram): Adjust.
16355 (peek_die_abbrev): Adjust.
16356 (fixup_go_packaging): Adjust.
16357 (process_imported_unit_die): Adjust.
16358 (dwarf2_compute_name): Adjust.
16359 (dwarf2_physname): Adjust.
16360 (read_import_statement): Adjust.
16361 (handle_DW_AT_stmt_list): Adjust.
16362 (read_file_scope): Adjust.
16363 (read_func_scope): Adjust.
16364 (read_lexical_block_scope): Adjust.
16365 (read_call_site_scope): Adjust.
16366 (read_variable): Adjust.
16367 (dwarf2_rnglists_process): Adjust.
16368 (dwarf2_ranges_process): Adjust.
16369 (dwarf2_ranges_read): Adjust.
16370 (dwarf2_get_pc_bounds): Adjust.
16371 (dwarf2_record_block_ranges): Adjust.
16372 (dwarf2_add_field): Adjust.
16373 (dwarf2_add_member_fn): Adjust.
16374 (read_structure_type): Adjust.
16375 (process_structure_scope): Adjust.
16376 (read_enumeration_type): Adjust.
16377 (read_array_type): Adjust.
16378 (mark_common_block_symbol_computed): Adjust.
16379 (read_common_block): Adjust.
16380 (read_namespace_type): Adjust.
16381 (read_namespace): Adjust.
16382 (read_module_type): Adjust.
16383 (read_tag_pointer_type): Adjust.
16384 (read_tag_ptr_to_member_type): Adjust.
16385 (read_tag_string_type): Adjust.
16386 (read_subroutine_type): Adjust.
16387 (read_typedef): Adjust.
16388 (read_base_type): Adjust.
16389 (attr_to_dynamic_prop): Adjust.
16390 (read_subrange_type): Adjust.
16391 (read_unspecified_type): Adjust.
16392 (dwarf2_read_abbrevs): Adjust.
16393 (load_partial_dies): Adjust.
16394 (read_partial_die): Adjust.
16395 (find_partial_die): Adjust.
16396 (guess_partial_die_structure_name): Adjust.
16397 (fixup_partial_die): Adjust.
16398 (read_attribute_value): Adjust.
16399 (read_addr_index): Adjust.
16400 (read_addr_index_from_leb128): Adjust.
16401 (read_str_index): Adjust.
16402 (dwarf2_string_attr): Adjust.
16403 (get_debug_line_section): Adjust.
16404 (dwarf_decode_line_header): Adjust.
16405 (lnp_state_machine::check_line_address): Adjust.
16406 (dwarf_decode_lines_1): Adjust.
16407 (dwarf_decode_lines): Adjust.
16408 (dwarf2_start_symtab): Adjust.
16409 (var_decode_location): Adjust.
16410 (new_symbol_full): Adjust.
16411 (dwarf2_const_value_data): Adjust.
16412 (dwarf2_const_value_attr): Adjust.
16413 (dwarf2_const_value): Adjust.
16414 (die_type): Adjust.
16415 (die_containing_type): Adjust.
16416 (build_error_marker_type): Adjust.
16417 (lookup_die_type): Adjust.
16418 (guess_full_die_structure_name): Adjust.
16419 (anonymous_struct_prefix): Adjust.
16420 (determine_prefix): Adjust.
16421 (dwarf2_name): Adjust.
16422 (follow_die_ref_or_sig): Adjust.
16423 (follow_die_offset): Adjust.
16424 (follow_die_ref): Adjust.
16425 (follow_die_sig_1): Adjust.
16426 (follow_die_sig): Adjust.
16427 (get_signatured_type): Adjust.
16428 (get_DW_AT_signature_type): Adjust.
16429 (decode_locdesc): Adjust.
16430 (dwarf_decode_macros): Adjust.
16431 (cu_debug_loc_section): Adjust.
16432 (fill_in_loclist_baton): Adjust.
16433 (dwarf2_symbol_mark_computed): Adjust.
16434 (init_one_comp_unit): Don't assign
16435 dwarf2_cu::dwarf2_per_objfile.
16436 (set_die_type): Adjust.
16437
16438 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16439
16440 * dwarf2read.c (struct mapped_debug_names): Add constructor.
16441 <dwarf2_per_objfile>: New field.
16442 (dwarf2_per_objfile): Remove global.
16443 (get_dwarf2_per_objfile): New function.
16444 (set_dwarf2_per_objfile): New function.
16445 (dwarf2_build_psymtabs_hard): Change objfile parameter to
16446 dwarf2_per_objfile.
16447 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16448 (read_abbrev_offset): Likewise.
16449 (read_indirect_string): Likewise.
16450 (read_indirect_line_string): Likewise.
16451 (read_indirect_string_at_offset): Likewise.
16452 (read_indirect_string_from_dwz): Likewise.
16453 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16454 dwarf2_per_objfile.
16455 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16456 (create_all_comp_units): Change objfile parameter to
16457 dwarf2_per_objfile.
16458 (create_all_type_units): Likewise.
16459 (process_queue): Add dwarf2_per_objfile parameter.
16460 (read_and_check_comp_unit_head): Likewise.
16461 (lookup_dwo_unit_in_dwp): Likewise.
16462 (get_dwp_file): Likewise.
16463 (process_cu_includes): Likewise.
16464 (struct free_dwo_file_cleanup_data): New struct.
16465 (dwarf2_has_info): Use get_dwarf2_per_objfile and
16466 set_dwarf2_per_objfile.
16467 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
16468 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
16469 context, adjust calls.
16470 (dw2_instantiate_symtab): Likewise.
16471 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16472 (dw2_get_cu): Likewise.
16473 (create_cu_from_index_list): Change objfile parameter to
16474 dwarf2_per_objfile.
16475 (create_cus_from_index_list): Get dwarf2_per_objfile from
16476 context, adjust calls.
16477 (create_cus_from_index): Likewise.
16478 (create_signatured_type_table_from_index): Change objfile
16479 parameter to dwarf2_per_objfile.
16480 (create_signatured_type_table_from_debug_names): Change objfile
16481 parameter to dwarf2_per_objfile.
16482 (create_addrmap_from_index): Likewise.
16483 (create_addrmap_from_aranges): Likewise.
16484 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16485 (dw2_setup): Remove.
16486 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16487 context.
16488 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16489 get_dwarf2_per_objfile.
16490 (dw2_forget_cached_source_info): Likewise.
16491 (dw2_map_symtabs_matching_filename): Likewise.
16492 (struct dw2_symtab_iterator) <index>: Remove.
16493 <dwarf2_per_objfile>: New field.
16494 (dw2_symtab_iter_init): Replace index parameter with
16495 dwarf2_per_objfile.
16496 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16497 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16498 (dw2_print_stats): Likewise.
16499 (dw2_dump): Likewise.
16500 (dw2_expand_symtabs_for_function): Likewise.
16501 (dw2_expand_all_symtabs): Likewise.
16502 (dw2_expand_symtabs_with_fullname): Likewise.
16503 (dw2_expand_marked_cus): Replace index and objfile parameters
16504 with dwarf2_per_objfile.
16505 (dw_expand_symtabs_matching_file_matcher): Add
16506 dwarf2_per_objfile parameter and adjust calls.
16507 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16508 adjust calls.
16509 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16510 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16511 adjust calls.
16512 (create_cus_from_debug_names_list): Replace objfile parameter
16513 with dwarf2_per_objfile and adjust calls.
16514 (create_cus_from_debug_names): Likewise.
16515 (dwarf2_read_debug_names): Likewise.
16516 (mapped_debug_names::namei_to_name): Adjust call.
16517 (dw2_debug_names_iterator::next): Likewise.
16518 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16519 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16520 (dw2_debug_names_dump): Likewise.
16521 (dw2_debug_names_expand_symtabs_for_function): Likewise.
16522 (dw2_debug_names_expand_symtabs_matching): Likewise.
16523 (dwarf2_initialize_objfile): Likewise.
16524 (dwarf2_build_psymtabs): Likewise.
16525 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16526 this_cu.
16527 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16528 (read_and_check_comp_unit_head): Likewise.
16529 (read_abbrev_offset): Likewise.
16530 (create_debug_type_hash_table): Likewise.
16531 (create_debug_types_hash_table): Likewise.
16532 (create_all_type_units): Replace objfile parameter with
16533 dwarf2_per_objfile.
16534 (add_type_unit): Add dwarf2_per_objfile parameter.
16535 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16536 with dwarf2_per_objfile.
16537 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16538 (lookup_dwp_signatured_type): Likewise.
16539 (lookup_signatured_type): Likewise.
16540 (read_cutu_die_from_dwo): Likewise.
16541 (init_tu_and_read_dwo_dies): Likewise.
16542 (init_cutu_and_read_dies): Likewise.
16543 (init_cutu_and_read_dies_no_follow): Likewise.
16544 (allocate_type_unit_groups_table): Add objfile parameter.
16545 (create_type_unit_group): Use dwarf2_per_objfile from cu.
16546 (get_type_unit_group): Likewise.
16547 (process_psymtab_comp_unit): Update call.
16548 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16549 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16550 (print_tu_stats): Likewise.
16551 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16552 in void* parameter.
16553 (build_type_psymtabs): Change objfile parameter to
16554 dwarf2_per_objfile.
16555 (process_skeletonless_type_unit): Use dwarf2_per_objfile
16556 passed in void* parameter.
16557 (process_skeletonless_type_units): Change objfile parameter to
16558 dwarf2_per_objfile.
16559 (set_partial_user): Likewise.
16560 (dwarf2_build_psymtabs_hard): Likewise.
16561 (read_comp_units_from_section): Likewise.
16562 (create_all_comp_units): Likewise.
16563 (scan_partial_symbols): Update calls.
16564 (add_partial_symbol): Likewise.
16565 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16566 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16567 (process_queue): Add dwarf2_per_objfile parameter.
16568 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16569 (compute_compunit_symtab_includes): Likewise.
16570 (process_cu_includes): Add dwarf2_per_objfile parameter.
16571 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16572 (process_full_type_unit): Likewise.
16573 (process_imported_unit_die): Update call.
16574 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16575 (read_file_scope): Likewise.
16576 (allocate_dwo_file_hash_table): Add objfile parameter.
16577 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16578 (create_cus_hash_table): Likewise.
16579 (create_dwp_hash_table): Likewise.
16580 (create_dwo_unit_in_dwp_v1): Likewise.
16581 (create_dwp_v2_section): Likewise.
16582 (create_dwo_unit_in_dwp_v2): Likewise.
16583 (lookup_dwo_unit_in_dwp): Likewise.
16584 (try_open_dwop_file): Likewise.
16585 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16586 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16587 cleanup to include a reference to dwarf2_per_objfile.
16588 (open_dwp_file): Add dwarf2_per_objfile parameter.
16589 (open_and_init_dwp_file): Likewise.
16590 (get_dwp_file): Likewise.
16591 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16592 (queue_and_load_all_dwo_tus): Update call.
16593 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16594 data.
16595 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16596 (dwarf2_ranges_process): Likewise.
16597 (dwarf2_get_pc_bounds): Likewise.
16598 (mark_common_block_symbol_computed): Likewise.
16599 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16600 (dwarf2_read_abbrevs): Update call.
16601 (read_partial_die): Use dwarf2_per_objfile from cu.
16602 (find_partial_die): Likewise.
16603 (fixup_partial_die): Likewise.
16604 (read_attribute_value): Likewise.
16605 (read_indirect_string_at_offset_from): Add objfile parameter.
16606 (read_indirect_string_at_offset): Add dwarf2_per_objfile
16607 parameter.
16608 (read_indirect_string_from_dwz): Add objfile parameter.
16609 (read_indirect_string): Add objfile parameter.
16610 (read_addr_index_1): Add dwarf2_per_objfile parameter.
16611 (read_addr_index): Use dwarf2_per_objfile from cu.
16612 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16613 call dw2_setup.
16614 (read_str_index): Use dwarf2_per_objfile from cu.
16615 (get_debug_line_section): Likewise.
16616 (read_formatted_entries): Add dwarf2_per_objfile parameter.
16617 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16618 (new_symbol_full): Use dwarf2_per_objfile from cu.
16619 (build_error_marker_type): Likewise.
16620 (lookup_die_type): Likewise.
16621 (determine_prefix): Likewise.
16622 (follow_die_offset): Likewise.
16623 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16624 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16625 (dwarf2_fetch_die_type_sect_off): Likewise.
16626 (dwarf2_get_die_type): Likewise.
16627 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16628 (get_signatured_type): Likewise.
16629 (get_DW_AT_signature_type): Likewise.
16630 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16631 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16632 (cu_debug_loc_section): Likewise.
16633 (fill_in_loclist_baton): Likewise.
16634 (dwarf2_symbol_mark_computed): Likewise.
16635 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16636 dwarf2_per_objfile.
16637 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16638 parameter.
16639 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16640 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16641 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16642 (set_die_type): Use dwarf2_free_objfile from cu.
16643 (get_die_type_at_offset): Likewise.
16644 (dwarf2_per_objfile_free): Don't assign global variable.
16645 (debug_names) <constructor>: Add dwarf2_per_objfile
16646 parameter, update m_debugstrlookup construction.
16647 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16648 parameter.
16649 <m_dwarf2_per_objfile>: New field.
16650 <lookup>: Use m_dwarf2_per_objfile.
16651 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16652 (psyms_seen_size): Likewise.
16653 (write_gdbindex): Replace objfile parameter with
16654 dwarf2_per_objfile.
16655 (write_debug_names): Likewise.
16656 (write_psymtabs_to_index): Likewise.
16657 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16658 calls.
16659
16660 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16661
16662 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16663 <dwarf2_per_objfile>: New field.
16664 (struct dwarf2_per_cu_data) <objfile>: Remove.
16665 <dwarf2_per_objfile>: New field.
16666 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16667 of objfile.
16668 (create_signatured_type_table_from_index): Likewise.
16669 (create_debug_type_hash_table): Likewise.
16670 (fill_in_sig_entry_from_dwo_entry): Likewise.
16671 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16672 (create_type_unit_group): Assign dwarf2_per_objfile instead of
16673 objfile.
16674 (create_partial_symtab): Access objfile through
16675 dwarf2_per_objfile.
16676 (process_psymtab_comp_unit_reader): Likewise.
16677 (read_comp_units_from_section): Likewise.
16678 (scan_partial_symbols): Likewise.
16679 (add_partial_symbol): Likewise.
16680 (add_partial_subprogram): Likewise.
16681 (peek_die_abbrev): Likewise.
16682 (fixup_go_packaging): Likewise.
16683 (process_full_comp_unit): Likewise.
16684 (process_full_type_unit): Likewise.
16685 (process_imported_unit_die): Likewise.
16686 (dwarf2_compute_name): Likewise.
16687 (dwarf2_physname): Likewise.
16688 (read_import_statement): Likewise.
16689 (create_cus_hash_table): Assign dwarf2_physname instead of
16690 objfile.
16691 (read_func_scope): Access objfile through dwarf2_per_objfile.
16692 (read_lexical_block_scope): Likewise.
16693 (read_call_site_scope): Likewise.
16694 (read_variable): Likewise.
16695 (dwarf2_rnglists_process): Likewise.
16696 (dwarf2_ranges_process): Likewise.
16697 (dwarf2_ranges_read): Likewise.
16698 (dwarf2_record_block_ranges): Likewise.
16699 (dwarf2_add_field): Likewise.
16700 (dwarf2_add_member_fn): Likewise.
16701 (read_structure_type): Likewise.
16702 (process_structure_scope): Likewise.
16703 (read_enumeration_type): Likewise.
16704 (read_array_type): Likewise.
16705 (read_common_block): Likewise.
16706 (read_namespace_type): Likewise.
16707 (read_namespace): Likewise.
16708 (read_module_type): Likewise.
16709 (read_tag_pointer_type): Likewise.
16710 (read_tag_ptr_to_member_type): Likewise.
16711 (read_tag_string_type): Likewise.
16712 (read_subroutine_type): Likewise.
16713 (read_typedef): Likewise.
16714 (read_base_type): Likewise.
16715 (attr_to_dynamic_prop): Likewise.
16716 (read_subrange_type): Likewise.
16717 (read_unspecified_type): Likewise.
16718 (load_partial_dies): Likewise.
16719 (read_partial_die): Likewise.
16720 (find_partial_die): Likewise.
16721 (guess_partial_die_structure_name): Likewise.
16722 (fixup_partial_die): Likewise.
16723 (read_attribute_value): Likewise.
16724 (read_addr_index_from_leb128): Likewise.
16725 (dwarf2_read_addr_index): Likewise.
16726 (dwarf2_string_attr): Likewise.
16727 (lnp_state_machine::check_line_address): Likewise.
16728 (dwarf_decode_lines_1): Likewise.
16729 (dwarf_decode_lines): Likewise.
16730 (dwarf2_start_symtab): Likewise.
16731 (var_decode_location): Likewise.
16732 (new_symbol_full): Likewise.
16733 (dwarf2_const_value_data): Likewise.
16734 (dwarf2_const_value_attr): Likewise.
16735 (dwarf2_const_value): Likewise.
16736 (die_type): Likewise.
16737 (die_containing_type): Likewise.
16738 (lookup_die_type): Likewise.
16739 (guess_full_die_structure_name): Likewise.
16740 (anonymous_struct_prefix): Likewise.
16741 (dwarf2_name): Likewise.
16742 (follow_die_ref_or_sig): Likewise.
16743 (follow_die_offset): Likewise.
16744 (follow_die_ref): Likewise.
16745 (dwarf2_fetch_die_loc_sect_off): Likewise.
16746 (dwarf2_fetch_constant_bytes): Likewise.
16747 (dwarf2_fetch_die_type_sect_off): Likewise.
16748 (dwarf2_get_die_type): Likewise.
16749 (follow_die_sig): Likewise.
16750 (decode_locdesc): Likewise.
16751 (dwarf2_per_cu_objfile): Likewise.
16752 (dwarf2_per_cu_text_offset): Likewise.
16753 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16754 objfile.
16755 (set_die_type): Access objfile through
16756 dwarf2_per_objfile.
16757
16758 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16759
16760 * valprint.c (converted_character_d): Remove typedef.
16761 (DEF_VEC_O (converted_character_d)): Remove.
16762 (count_next_character): Use std::vector.
16763 (print_converted_chars_to_obstack): Likewise.
16764 (generic_printstr): Likewise.
16765
16766 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16767
16768 * xml-support.h (struct gdb_xml_value): Add constructor.
16769 <value>: Change type to unique_xmalloc_ptr.
16770 (gdb_xml_value_s): Remove typedef.
16771 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16772 (gdb_xml_element_start_handler): Change parameter type to
16773 std::vector.
16774 (xml_find_attribute): Likewise.
16775 * xml-support.c (xml_find_attribute): Change parameter type to
16776 std::vector and adjust.
16777 (gdb_xml_values_cleanup): Remove.
16778 (gdb_xml_parser::start_element): Adjust to std::vector.
16779 (xinclude_start_include): Change paraeter type to std::vector
16780 and adjust.
16781 * btrace.c (check_xml_btrace_version): Likewise.
16782 (parse_xml_btrace_block): Likewise.
16783 (parse_xml_btrace_pt_config_cpu): Likewise.
16784 (parse_xml_btrace_pt): Likewise.
16785 (parse_xml_btrace_conf_bts): Likewise.
16786 (parse_xml_btrace_conf_pt): Likewise.
16787 * memory-map.c (memory_map_start_memory): Likewise.
16788 (memory_map_start_property): Likewise.
16789 * osdata.c (osdata_start_osdata): Likewise.
16790 (osdata_start_item): Likewise.
16791 (osdata_start_column): Likewise.
16792 * remote.c (start_thread): Likewise.
16793 * solib-aix.c (library_list_start_library): Likewise.
16794 (library_list_start_list): Likewise.
16795 * solib-svr4.c (library_list_start_library): Likewise.
16796 (svr4_library_list_start_list): Likewise.
16797 * solib-target.c (library_list_start_segment): Likewise.
16798 (library_list_start_section): Likewise.
16799 (library_list_start_library): Likewise.
16800 (library_list_start_list): Likewise.
16801 * tracepoint.c (traceframe_info_start_memory): Likewise.
16802 (traceframe_info_start_tvar): Likewise.
16803 * xml-syscall.c (syscall_start_syscall): Likewise.
16804 * xml-tdesc.c (tdesc_start_target): Likewise.
16805 (tdesc_start_feature): Likewise.
16806 (tdesc_start_reg): Likewise.
16807 (tdesc_start_union): Likewise.
16808 (tdesc_start_struct): Likewise.
16809 (tdesc_start_flags): Likewise.
16810 (tdesc_start_enum): Likewise.
16811 (tdesc_start_field): Likewise.
16812 (tdesc_start_enum_value): Likewise.
16813 (tdesc_start_vector): Likewise.
16814
16815 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16816
16817 * extension.h (struct xmethod_worker) <clone>: Remove.
16818 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16819 Remove.
16820 (python_xmethod_worker::clone): Remove.
16821 * valops.c (find_overload_match): Use std::move instead of
16822 clone.
16823
16824 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16825
16826 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16827 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16828 <free_xmethod_worker_data>: Remove.
16829 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16830 <get_xmethod_arg_types>: Remove.
16831 <get_xmethod_result_type>: Remove.
16832 <invoke_xmethod>: Remove.
16833 * extension.c (new_xmethod_worker): Remove.
16834 (clone_xmethod_worker): Remove.
16835 (get_matching_xmethod_workers): Return void, pass std::vector by
16836 pointer.
16837 (get_xmethod_arg_types): Rename to...
16838 (xmethod_worker::get_arg_types): ... this, and adjust.
16839 (get_xmethod_result_type): Rename to...
16840 (xmethod_worker::get_result_type): ... this, and adjust.
16841 (invoke_xmethod): Remove.
16842 (free_xmethod_worker): Remove.
16843 (free_xmethod_worker_vec): Remove.
16844 * extension.h (enum ext_lang_rc): Move here from
16845 extension-priv.h.
16846 (struct xmethod_worker): Add constructor and destructor.
16847 <data>: Remove.
16848 <value>: Remove.
16849 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16850 virtual pure methods.
16851 <get_arg_types, get_result_type>: New methods.
16852 (xmethod_worker_ptr): Remove typedef.
16853 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16854 (xmethod_worker_vec): Remove typedef.
16855 (xmethod_worker_up): New typedef.
16856 (invoke_xmethod): Remove.
16857 (clone_xmethod_worker): Remove.
16858 (free_xmethod_worker): Remove.
16859 (free_xmethod_worker_vec): Remove.
16860 (get_xmethod_arg_types): Remove.
16861 (get_xmethod_result_type): Remove.
16862 * valops.c (find_method_list): Use std::vector, don't use
16863 intermediate vector.
16864 (value_find_oload_method_list): Use std::vector.
16865 (find_overload_match): Use std::vector.
16866 (find_oload_champ): Use std::vector.
16867 * value.c (value_free): Use operator delete.
16868 (value_of_xmethod): Rename to...
16869 (value_from_xmethod): ... this. Don't assign
16870 xmethod_worker::value, take rvalue-reference.
16871 (result_type_of_xmethod): Adjust.
16872 (call_xmethod): Adjust.
16873 * value.h: Include extension.h.
16874 (struct xmethod_worker): Don't forward-declare.
16875 (value_of_xmethod): Rename to...
16876 (value_from_xmethod): ... this, take rvalue-reference.
16877 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16878 (struct python_xmethod_worker): ... this, add constructor and
16879 destructor.
16880 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16881 (gdbpy_free_xmethod_worker_data): Rename to...
16882 (python_xmethod_worker::~python_xmethod_worker): ... this and
16883 adjust.
16884 (gdbpy_clone_xmethod_worker_data): Rename to...
16885 (python_xmethod_worker::clone): ... this and adjust.
16886 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16887 temporary vector.
16888 (gdbpy_get_xmethod_arg_types): Rename to...
16889 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16890 (gdbpy_get_xmethod_result_type): Rename to...
16891 (python_xmethod_worker::do_get_result_type): ... this and
16892 adjust.
16893 (gdbpy_invoke_xmethod): Rename to...
16894 (python_xmethod_worker::invoke): ... this and adjust.
16895 (new_python_xmethod_worker): Rename to...
16896 (python_xmethod_worker::python_xmethod_worker): ... this and
16897 adjust.
16898 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16899 Remove.
16900 (gdbpy_free_xmethod_worker_data): Remove.
16901 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16902 (gdbpy_get_xmethod_arg_types): Remove.
16903 (gdbpy_get_xmethod_result_type): Remove.
16904 (gdbpy_invoke_xmethod): Remove.
16905 * python/python.c (python_extension_ops): Remove obsolete
16906 callbacks.
16907
16908 2018-01-05 Pedro Alves <palves@redhat.com>
16909
16910 PR gdb/18653
16911 * common/signals-state-save-restore.c
16912 (save_original_signals_state): New parameter 'quiet'. Warn if we
16913 find a custom handler preinstalled, instead of internal erroring.
16914 But only warn if !quiet.
16915 * common/signals-state-save-restore.h
16916 (save_original_signals_state): New parameter 'quiet'.
16917 * main.c (captured_main_1): Move save_original_signals_state call
16918 after option handling, and pass QUIET.
16919
16920 2018-01-05 Pedro Alves <palves@redhat.com>
16921
16922 * spu-tdep.c (spu_catch_start): Pass
16923 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16924
16925 2018-01-05 Pedro Alves <palves@redhat.com>
16926
16927 PR gdb/22670
16928 * ada-lang.c (literal_symbol_name_matcher): New function.
16929 (ada_get_symbol_name_matcher): Use it for
16930 symbol_name_match_type::SEARCH_NAME.
16931 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16932 it down instead of assuming symbol_name_match_type::FULL.
16933 * block.h (block_lookup_symbol): New parameter 'match_type'.
16934 * c-valprint.c (print_unpacked_pointer): Use
16935 lookup_symbol_search_name instead of lookup_symbol.
16936 * compile/compile-object-load.c (get_out_value_type): Pass down
16937 symbol_name_match_type::SEARCH_NAME.
16938 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16939 symbol_name_match_type::FULL.
16940 * cp-support.c (cp_get_symbol_name_matcher): Handle
16941 symbol_name_match_type::SEARCH_NAME.
16942 * infrun.c (insert_exception_resume_breakpoint): Use
16943 lookup_symbol_search_name.
16944 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16945 * psymtab.c (maintenance_check_psymtabs): Use
16946 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16947 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16948 SYMBOL_SEARCH_NAME.
16949 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16950 if symbol_name_match_type::SEARCH_NAME.
16951 (lookup_symbol_in_language): Pass down
16952 symbol_name_match_type::FULL.
16953 (lookup_symbol_search_name): New.
16954 (lookup_language_this): Pass down
16955 symbol_name_match_type::SEARCH_NAME.
16956 (lookup_symbol_aux, lookup_local_symbol): New parameter
16957 'match_type'. Pass it down.
16958 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16959 (lookup_symbol_search_name): New declaration.
16960 (lookup_symbol_in_block): New 'match_type' parameter.
16961
16962 2018-01-05 Pedro Alves <palves@redhat.com>
16963
16964 PR gdb/22670
16965 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16966 ada_lookup_symbol.
16967 (ada_lookup_symbol): Reimplement in terms of
16968 ada_lookup_symbol_list, bits factored out from
16969 ada_lookup_encoded_symbol.
16970
16971 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16972
16973 * ada-exp.y (write_object_renaming): When subscripting an array
16974 using a symbol as the index, pass the block in call to
16975 ada_lookup_encoded_symbol when looking that symbol up.
16976
16977 2018-01-05 Jerome Guitton <guitton@adacore.com>
16978
16979 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16980 TYPE_INDEX_TYPE.
16981
16982 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16983
16984 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16985 the case where VALUE_LVAL (val0) is not lval_memory.
16986
16987 2018-01-05 Xavier Roirand <roirand@adacore.com>
16988
16989 * ada-valprint.c (print_optional_low_bound): Handle
16990 character-indexed array printing like boolean-indexed array
16991 printing.
16992
16993 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16994
16995 * NEWS: Create a new section for the next release branch.
16996 Rename the section of the current branch, now that it has
16997 been cut.
16998
16999 2018-01-05 Joel Brobecker <brobecker@adacore.com>
17000
17001 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
17002 * version.in: Bump version to 8.1.50.DATE-git.
17003
17004 2018-01-03 Xavier Roirand <roirand@adacore.com>
17005
17006 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
17007 Add field.
17008 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
17009 Add field.
17010 (default_exception_support_info) <catch_handlers_sym>: Add field.
17011 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
17012 (ada_exception_name_addr_1): Add "catch handlers" handling.
17013 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
17014 Update all callers.
17015 (create_excep_cond_exprs) <ex>: Add parameter.
17016 (re_set_exception): Update create_excep_cond_exprs call.
17017 (print_it_exception, print_one_exception, print_mention_exception)
17018 (print_recreate_exception): Add "catch handler" handling.
17019 (allocate_location_catch_handlers, re_set_catch_handlers)
17020 (check_status_catch_handlers, print_it_catch_handlers)
17021 (print_one_catch_handlers, print_mention_catch_handlers)
17022 (print_recreate_catch_handlers): New function.
17023 (catch_handlers_breakpoint_ops): New variable.
17024 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
17025 Add parameter. Add "catch handler" handling.
17026 (ada_exception_sym_name, ada_exception_breakpoint_ops):
17027 Add "catch handler" handling.
17028 (ada_exception_catchpoint_cond_string): Add "catch handler"
17029 handling.
17030 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
17031 call.
17032 (catch_ada_handlers_command): New function.
17033 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
17034 operations structure.
17035 (_initialize_ada_language): Add "catch handlers" command entry.
17036 * NEWS: Document "catch handlers" feature.
17037
17038 2018-01-02 Joel Brobecker <brobecker@adacore.com>
17039
17040 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
17041 account when creating the array type of the slice.
17042 (ada_value_slice): Likewise.
17043
17044 2018-01-02 Joel Brobecker <brobecker@adacore.com>
17045
17046 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
17047 New enum value.
17048 (create_array_type_with_stride): Add byte_stride_prop parameter.
17049 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
17050 New parameter. Update all callers in this file.
17051 (array_type_has_dynamic_stride): New function.
17052 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
17053 of arrays with dynamic byte strides.
17054 * dwarf2read.c (read_array_type): Add support for dynamic
17055 DW_AT_byte_stride attributes.
17056
17057 2018-01-02 Joel Brobecker <brobecker@adacore.com>
17058
17059 * dwarf2read.c (read_unspecified_type): Treat
17060 DW_TAG_enumeration_type DIEs from Ada units as stubs.
17061
17062 2018-01-01 Joel Brobecker <brobecker@adacore.com>
17063
17064 Update copyright year range in all GDB files.
17065
17066 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
17067
17068 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
17069 and gdb/testsuite/gdb.base/step-line.c.
17070
17071 2018-01-01 Joel Brobecker <brobecker@adacore.com>
17072
17073 * copyright.py (main): Dump the contents of
17074 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
17075 even if BY_HAND is empty.
17076
17077 2018-01-01 Joel Brobecker <brobecker@adacore.com>
17078
17079 * top.c (print_gdb_version): Update Copyright year in version
17080 message.
17081
17082 2018-01-01 Joel Brobecker <brobecker@adacore.com>
17083
17084 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
17085
17086 For older changes see ChangeLog-2017.
17087 \f
17088 Local Variables:
17089 mode: change-log
17090 left-margin: 8
17091 fill-column: 74
17092 version-control: never
17093 coding: utf-8
17094 End:
This page took 0.362487 seconds and 5 git commands to generate.