gdb/MAINTAINERS: Add Rainer Orth as Solaris maintainer for GDB
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-17 Joel Brobecker <brobecker@adacore.com>
2
3 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
4 Solaris Maintainer.
5
6 2018-10-15 Tom Tromey <tom@tromey.com>
7
8 * tui/tui.c (strcat_to_buf): Remove casts.
9 * tui/tui-winsource.c (tui_show_source_line)
10 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
11 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
12 * tui/tui-windata.c (tui_first_data_item_displayed)
13 (tui_delete_data_content_windows, tui_erase_data_content)
14 (tui_display_all_data, tui_display_data_from)
15 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
16 * tui/tui-win.c (tui_set_win_height)
17 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
18 casts.
19 * tui/tui-win.c (tui_resize_all): Remove casts.
20 (tui_scroll_backward_command, tui_set_focus)
21 (tui_set_tab_width_command): Likewise.
22 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
23 * tui/tui-regs.c (tui_show_register_group): Remove cast.
24 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
25 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
26 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
27 Remove casts.
28
29 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
30
31 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
32 AArch64/ARM maintainer.
33
34 2018-10-11 Gary Benson <gbenson@redhat.com>
35
36 * interps.h (interp::m_name): Make private and mutable.
37 * interps.c (interp::~interp): Free m_name.
38
39 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
40 Simon Marchi <simark@simark.ca>
41
42 * README (`configure' options): Add documentation for new
43 "--enable-unit-tests" option.
44 * acinclude.m4: Include "selftest.m4".
45 * configure: Regenerate.
46 * configure.ac: Use "GDB_AC_SELFTEST".
47 * maint.c (maintenance_selftest): Update message informing
48 that selftests have been disabled.
49 (maintenance_info_selftests): Likewise.
50 * selftest.m4: New file.
51
52 2018-10-10 Gary Benson <gbenson@redhat.com>
53
54 * remote.c (remote_target::remote_send_printf): Add
55 missing va_end found by Coverity.
56
57 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
58
59 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
60
61 2018-10-09 Tom Tromey <tom@tromey.com>
62
63 * configure: Rebuild.
64 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
65 * NEWS: Update --enable-ubsan documentation.
66
67 2018-10-09 Gary Benson <gbenson@redhat.com>
68
69 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
70 found by Coverity.
71
72 2018-10-08 Tom Tromey <tom@tromey.com>
73
74 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
75 variable.
76 (riscv_fbsd_init_abi): Likewise.
77
78 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
79 * valops.c (value_struct_elt_for_reference): Rename local variable
80 to work around the shadowing a previous local warning.
81
82 2018-10-08 John Baldwin <jhb@FreeBSD.org>
83
84 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
85 * NEWS: Mention new FreeBSD/riscv native configuration.
86 * configure.host: Add riscv*-*-freebsd*.
87 * configure.nat: Likewise.
88 * riscv-fbsd-nat.c: New file.
89
90 2018-10-08 John Baldwin <jhb@FreeBSD.org>
91
92 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
93 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
94 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
95 * NEWS: Mention new FreeBSD/riscv target.
96 * configure.tgt: Add riscv*-*-freebsd*.
97 * riscv-fbsd-tdep.c: New file.
98 * riscv-fbsd-tdep.h: New file.
99
100 2018-10-08 John Baldwin <jhb@FreeBSD.org>
101
102 * regcache.h (struct regcache_map_entry): Note that this type can
103 be used with traditional frame caches.
104 * trad-frame.c (trad_frame_set_reg_regmap): New.
105 * trad-frame.h (trad_frame_set_reg_regmap): New.
106
107 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
108
109 PR c++/16841
110 * valops.c (get_virtual_base_offset): New function.
111 (value_struct_elt_for_reference): Use it to get virtual base offset
112 and add it in calculating class member address.
113
114 2018-10-08 John Darrington <john@darrington.wattle.id.au>
115
116 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
117 (check_producer): Check if the producer is codewarrior.
118 (producer_is_codewarrior): New function.
119 (lnp_state_machine::record_line): Ignore is_stmt flag for records
120 produced by codewarrior.
121 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
122
123 2018-10-06 Tom Tromey <tom@tromey.com>
124
125 PR python/19399:
126 * python/py-inferior.c: Add "architecture" entry.
127 (infpy_architecture): New function.
128
129 2018-10-06 Tom Tromey <tom@tromey.com>
130
131 PR python/21765:
132 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
133 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
134 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
135 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
136
137 2018-10-06 Tom Tromey <tom@tromey.com>
138
139 PR build/17077:
140 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
141 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
142 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
143 #include.
144
145 2018-10-06 Tom Tromey <tom@tromey.com>
146
147 * python/py-breakpoint.c (bppy_get_location): Handle a
148 bp_breakpoint without a location.
149
150 2018-10-06 Tom Tromey <tom@tromey.com>
151
152 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
153 (_RegEx): Reformat help text.
154 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
155 (AnyCallerIs, AnyCallerMatches): Reformat help text.
156 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
157 text.
158 * python/lib/gdb/command/xmethods.py (InfoXMethod)
159 (EnableXMethod, DisableXMethod): Remove help indentation.
160 Capitalize meta-syntactic variables.
161 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
162 (EnableUnwinder, DisableUnwinder): Remove help indentation.
163 Capitalize meta-syntactic variables.
164 * python/lib/gdb/command/explore.py (ExploreCommand)
165 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
166 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
167 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
168 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
169 Remove help indentation.
170 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
171 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
172 (DisableFrameFilter, SetFrameFilterPriority)
173 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
174
175 2018-10-06 Tom Tromey <tom@tromey.com>
176
177 PR tui/28819:
178 * tui/tui-io.c (gdb_wgetch): New function.
179 (tui_mld_getc, tui_getc): Use it.
180
181 2018-10-05 Tom Tromey <tom@tromey.com>
182
183 * sol-thread.c (sol_thread_target::wait): Rename inner
184 "save_ptid".
185
186 2018-10-04 Tom Tromey <tom@tromey.com>
187
188 * configure: Rebuild.
189 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
190
191 2018-10-04 Tom Tromey <tom@tromey.com>
192
193 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
194 declaration of "block".
195
196 2018-10-04 Tom Tromey <tom@tromey.com>
197
198 * common/filestuff.c (fdwalk): Remove inner declaration of
199 "result".
200
201 2018-10-04 Tom Tromey <tom@tromey.com>
202
203 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
204 "structs_addr" and hoist declaration.
205
206 2018-10-04 Tom Tromey <tom@tromey.com>
207
208 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
209 variable "size".
210
211 2018-10-04 Tom Tromey <tom@tromey.com>
212
213 * mdebugread.c (parse_partial_symbols): Use std::string.
214
215 2018-10-04 Tom Tromey <tom@tromey.com>
216
217 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
218 * p-valprint.c (pascal_val_print): Split inner "i" variable.
219 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
220 header.
221 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
222 more inner scope.
223 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
224 * varobj.c (varobj_update): Rename inner "newobj",
225 "type_changed".
226 * valprint.c (generic_emit_char): Rename inner "buf".
227 * valops.c (find_overload_match): Rename inner "temp".
228 (value_struct_elt_for_reference): Declare "v" in more inner
229 scope.
230 * v850-tdep.c (v850_push_dummy_call): Rename "len".
231 * unittests/array-view-selftests.c (run_tests): Rename inner
232 "vec".
233 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
234 header.
235 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
236 "tsv" in more inner scope.
237 (print_one_static_tracepoint_marker): Rename inner
238 "tuple_emitter".
239 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
240 (tic6x_push_dummy_call): Don't redeclare "addr".
241 * target-float.c: Declare "dto" lower.
242 * symtab.c (lookup_local_symbol): Rename inner "sym".
243 (find_pc_sect_line): Rename inner "pc".
244 * stack.c (print_frame): Don't redeclare "gdbarch".
245 (return_command): Rename inner "gdbarch".
246 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
247 "sp".
248 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
249 header.
250 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
251 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
252 scope.
253 * remote.c (remote_target::update_thread_list): Don't redeclare
254 "tp".
255 (remote_target::process_initial_stop_replies): Rename inner
256 "thread".
257 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
258 (remote_target::wait_as): Don't redeclare "stop_reply".
259 (remote_target::get_thread_local_address): Rename inner
260 "result".
261 (remote_target::get_tib_address): Likewise.
262
263 * regcache.c (cooked_read_test): Rename "regnum".
264 * record-btrace.c (cmd_record_btrace_start): Rename inner
265 "exception".
266 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
267 loop header.
268 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
269 header.
270 (ppu2spu_sniffer): Rename inner "buf".
271 * parse.c (operator_check_standard): Rename inner "type",
272 "objfile".
273 * p-valprint.c (pascal_val_print): Introduce new scope for
274 "low_bound", "high_bound".
275 * p-exp.y (yylex): Declare "i" in loop header.
276 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
277 Lower declaration of "s".
278 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
279 header.
280 (nios2_push_dummy_call): Rename "len".
281 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
282 "buf".
283 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
284 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
285 (linux_xfer_osdata_modules): Likewise.
286 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
287 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
288 (mips_o64_push_dummy_call): Likewise.
289 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
290 "op".
291 * mi/mi-main.c (list_available_thread_groups): Rename inner
292 "tuple_emitter".
293 (mi_cmd_data_read_memory): Rename inner "opts".
294 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
295 "tuple_emitter".
296 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
297 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
298 more inner scope.
299 (parse_partial_symbols): Rename inner "pst", "p", "name"
300 * main.c (captured_main_1): Rename inner "i"s.
301 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
302 "oso2".
303 * linux-tdep.c (linux_info_proc): Rename inner "filename".
304 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
305 * infrun.c (handle_no_resumed): Don't redeclare "thread".
306 (handle_signal_stop): Rename inner "gdbarch".
307 (handle_command): Declare "signum" in loop header.
308 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
309 "status".
310 (examine_prologue): Rename inner "sol" and "sof".
311 (ia64_extract_return_value): Rename inner "val". Declare another
312 "val" in a more inner scope.
313 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
314 inner scope.
315 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
316 "except".
317 * findvar.c (default_read_var_value): Don't redeclare "addr".
318 * f-exp.y (yylex): Declare "i" in loop header.
319 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
320 Rename inner "type", "expect_type".
321 (evaluate_subexp_for_sizeof): Rename inner "pc".
322 * elfread.c (elf_symfile_read): Rename inner "abfd".
323 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
324 "bytes_read".
325 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
326 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
327 (dwarf_decode_line_header): Rename inner "lh".
328 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
329 "offset". Declare "i" in loop header.
330 (disassemble_dwarf_expression): Rename inner "addr_size".
331 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
332 inner "result".
333 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
334 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
335 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
336 "inner_list_emitter".
337 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
338 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
339 declaration in a block.
340 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
341 * cp-valprint.c (cp_print_value_fields): Don't redeclare
342 "obstack_final_size".
343 * cp-support.c (inspect_type): Declare "i" in loop header.
344 * compile/compile.c (compile_instance::insert_symbol_error):
345 Rename inner "e".
346 * common/agent.c (agent_run_command): Remove inner "ret"
347 declaration.
348 * coffread.c (coff_symfile_read): Rename inner "name".
349 (coff_symfile_read): Rename inner "abfd".
350 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
351 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
352 "high".
353 * c-exp.y (lex_one_token): Move "len" declaration lower.
354 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
355 "gdbarch".
356 (create_exception_master_breakpoint): Likewise. Don't redeclare
357 "b".
358 (watch_command_1): Declare "mark" later.
359 (clear_command): Don't shadow "a" or "b".
360 (delete_command): Rename inner "b".
361 (delete_trace_command): Likewise.
362 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
363 "op".
364 (arm_gdbarch_init): Remove inner "e_flags".
365 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
366 "offset" in inner blocks.
367
368 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
369
370 * dwarf-index-write.c (file_write): Don't write if the vector is
371 empty.
372
373 2018-10-05 Tom de Vries <tdevries@suse.de>
374
375 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
376 PyArg_ParseTuple call.
377
378 2018-10-05 Tom de Vries <tdevries@suse.de>
379
380 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
381 PyArg_ParseTuple call.
382
383 2018-10-04 Joel Brobecker <brobecker@adacore.com>
384
385 * psymtab.c (recursively_search_psymtabs): Reformat parameters
386 to avoid exceeding 80 characters per line limit.
387
388 2018-10-04 Tom Tromey <tom@tromey.com>
389
390 * symfile.c (syms_from_objfile_1, finish_new_objfile)
391 (reread_symbols): Update.
392 * complaints.h (clear_complaints): Remove argument.
393 * complaints.c (enum complaint_series): Remove.
394 (series): Remove global.
395 (complaint_internal): Update.
396 (clear_complaints): Remove argument.
397
398 2018-10-04 Tom Tromey <tom@tromey.com>
399
400 * symfile.c (symbol_file_add_with_addrs): Do not print "no
401 debugging symbols" message if there is a separate debug objfile.
402
403 2018-10-04 Tom Tromey <tom@tromey.com>
404
405 PR cli/19551:
406 * symfile.c (symbol_file_add_with_addrs): Update output.
407 * psymtab.c (require_partial_symbols): Update output.
408
409 2018-10-04 Tom Tromey <tom@tromey.com>
410
411 PR cli/22234:
412 * complaints.c: Emit \n.
413
414 2018-10-04 Tom Tromey <tom@tromey.com>
415
416 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
417 (separate_debug_file_exists, find_separate_debug_file)
418 (add_symbol_file_command, reread_symbols, allocate_symtab)
419 (allocate_compunit_symtab): Use filtered printing, not
420 unfiltered.
421 * psymtab.c (require_partial_symbols, dump_psymtab)
422 (allocate_psymtab): Use filtered printing, not unfiltered.
423
424 2018-10-04 Tom Tromey <tom@tromey.com>
425
426 * complaints.c (complaint_internal): Correctly check complaint
427 count.
428
429 2018-10-04 Tom Tromey <tom@tromey.com>
430
431 * complaints.h (struct complaints): Remove declaration.
432 * complaints.c (clear_complaints): Remove an unused variable.
433
434 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
435
436 * MAINTAINERS (Write After Approval): Add self.
437
438 2018-10-03 Tom Tromey <tom@tromey.com>
439
440 * guile/scm-value.c (gdbscm_value_to_string): Initialize
441 "buffer_contents".
442 * coffread.c (coff_symtab_read): Initialize "newobj".
443
444 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * dwarf2read.c (read_func_scope): Remove struct keyword in
447 range-based for.
448
449 2018-10-03 Tom Tromey <tom@tromey.com>
450
451 * README: Mention --enable-ubsan.
452 * NEWS: Mention --enable-ubsan.
453 * acinclude.m4: Include sanitize.m4.
454 * configure: Rebuild.
455 * configure.ac: Call AM_GDB_UBSAN.
456 * sanitize.m4: New file.
457
458 2018-10-03 Tom Tromey <tom@tromey.com>
459
460 * expression.h (enum exp_opcode): Use uint8_t as base type.
461 * expprint.c (op_name): Handle invalid opcodes.
462
463 2018-10-03 Tom Tromey <tom@tromey.com>
464
465 * parse.c (prefixify_expression): Add assert.
466 (parse_exp_in_context_1): Throw exception if the expression is
467 empty.
468
469 2018-10-03 Tom Tromey <tom@tromey.com>
470
471 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
472
473 2018-10-03 Tom Tromey <tom@tromey.com>
474
475 * c-exp.y (parse_number): Work in unsigned. Remove casts.
476
477 2018-10-03 Tom Tromey <tom@tromey.com>
478
479 * dwarf2read.c (read_subrange_type): Make "negative_mask"
480 unsigned.
481
482 2018-10-03 Tom Tromey <tom@tromey.com>
483
484 * findvar.c (extract_integer): Do work in an unsigned type.
485
486 2018-10-03 Tom Tromey <tom@tromey.com>
487
488 * common/enum-flags.h (enum_flags::operator~): Add static assert.
489 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
490 base type.
491 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
492 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
493 type.
494 * c-lang.h (enum c_string_type_values): Use unsigned as base
495 type.
496 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
497
498 2018-10-03 Tom Tromey <tom@tromey.com>
499
500 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
501 <~dwarf2_frame_state_reg_info>: Update.
502 <dwarf2_frame_state_reg_info>: Update.
503 <alloc_regs>: Add assertion. Update.
504 <reg>: Now a std::vector.
505 <num_regs>: Remove.
506 <swap>: Update.
507 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
508 (execute_cfa_program_test, dwarf2_frame_cache): Update.
509
510 2018-10-03 Tom Tromey <tom@tromey.com>
511
512 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
513
514 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
515
516 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
517
518 2018-10-02 Tom Tromey <tom@tromey.com>
519
520 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
521
522 2018-10-02 John Darrington <john@darrington.wattle.id.au>
523
524 * NEWS: Mention changed commands.
525 * ser-uds.c: New file.
526 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
527 * configure: Regenerate.
528 * Makefile.in: Add new file.
529 * serial.c (serial_open): Check if filename is a socket
530 and lookup the appropriate interface accordingly.
531
532 2018-10-01 Alan Hayward <alan.hayward@arm.com>
533
534 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
535 define.
536 (AARCH64_EXTRA_MAGIC): Likewise.
537 (AARCH64_FPSIMD_MAGIC): Likewise.
538 (AARCH64_SVE_MAGIC): Likewise.
539 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
540 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
541 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
542 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
543 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
544 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
545 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
546 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
547 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
548 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
549 (read_aarch64_ctx): Add function.
550 (aarch64_linux_sigframe_init): Detect FP registers.
551
552 2018-10-01 Alan Hayward <alan.hayward@arm.com>
553
554 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
555 (AARCH64_D0_REGNUM): Likewise.
556 (AARCH64_S0_REGNUM): Likewise.
557 (AARCH64_H0_REGNUM): Likewise.
558 (AARCH64_B0_REGNUM): Likewise.
559 (AARCH64_SVE_V0_REGNUM): Likewise.
560 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
561 (AARCH64_D0_REGNUM): Likewise.
562 (AARCH64_S0_REGNUM): Likewise.
563 (AARCH64_H0_REGNUM): Likewise.
564 (AARCH64_B0_REGNUM): Likewise.
565 (AARCH64_SVE_V0_REGNUM): Likewise.
566
567 2018-10-01 Gary Benson <gbenson@redhat.com>
568
569 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
570 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
571 prfpregset_t instead of gdb_prfpregset_t.
572 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
573 * configure, config.in: Rebuild.
574
575 2018-10-01 Gary Benson <gbenson@redhat.com>
576
577 * common/gdb_proc_service.h: New file, factored out from...
578 * gdb_proc_service.h: Moved common code to the above file.
579 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
580
581 2018-10-01 Gary Benson <gbenson@redhat.com>
582
583 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
584 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
585
586 2018-10-01 Gary Benson <gbenson@redhat.com>
587
588 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
589 (AC_CHECK_HEADERS): Check for linux/elf.h.
590 * configure, config.in: Rebuild.
591 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
592 doesn't define elf_fpregset_t.
593
594 2018-10-01 Gary Benson <gbenson@redhat.com>
595
596 * gdb_proc_service.h: Whitespace change.
597
598 2018-10-01 Tom Tromey <tom@tromey.com>
599
600 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
601 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
602 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
603
604 2018-10-01 Tom Tromey <tom@tromey.com>
605
606 * README: Minor change.
607
608 2018-09-30 Pedro Alves <palves@redhat.com>
609
610 * darwin-nat-info.c (darwin_debug_regions_recurse)
611 (info_mach_exceptions_command): Remove unused local variables.
612 * darwin-nat.c (darwin_decode_notify_message)
613 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
614 (darwin_stop_inferior, darwin_setup_exceptions)
615 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
616 (darwin_nat_target::attach, darwin_nat_target::detach)
617 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
618 local variables.
619 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
620 variables.
621
622 2018-09-29 Tom Tromey <tom@tromey.com>
623
624 * README: Remove some leftover text.
625
626 2018-09-29 Tom Tromey <tom@tromey.com>
627
628 * PROBLEMS: Rewrite.
629 * README: Update.
630
631 2018-09-28 John Baldwin <jhb@FreeBSD.org>
632
633 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
634 case with explicit breakpoint kind.
635 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
636 'additional_info' and related logic.
637 (riscv_debug_breakpoints): New variable.
638 (riscv_breakpoint_kind_from_pc): Use the length of the existing
639 instruction to determine the breakpoint kind.
640 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
641 flag. Update description of 'set/show riscv
642 use-compressed-breakpoints' flag.
643
644 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 (NEWS): Mention changes to frame related commands.
647 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
648 (add_prefix_cmd_suppress_notification): New function.
649 (add_com_suppress_notification): Call
650 add_cmd_suppress_notification.
651 * command.h (add_cmd_suppress_notification): Declare.
652 (add_prefix_cmd_suppress_notification): Declare.
653 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
654 (parse_frame_specification): Moved from stack.c, with
655 simplification to handle a single argument.
656 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
657 switch to the selected frame. Add a header comment.
658 * stack.c: Remove 'safe-ctype.h' include.
659 (find_frame_for_function): Add declaration.
660 (find_frame_for_address): New function.
661 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
662 (frame_selection_by_function_completer): New function.
663 (info_frame_command): Rename to...
664 (info_frame_command_core): ...this, and update parameter types.
665 (select_frame_command): Rename to...
666 (select_frame_command_core): ...this, and update parameter types.
667 (frame_command): Rename to...
668 (frame_command_core): ...this, and update parameter types.
669 (class frame_command_helper): New class to wrap implementations of
670 frame related sub-commands.
671 (frame_apply_cmd_list): New static global.
672 (frame_cmd_list): Make static.
673 (select_frame_cmd_list): New global for sub-commands.
674 (info_frame_cmd_list): New global for sub-commands.
675 (_initialize_stack): Register sub-commands for 'frame',
676 'select-frame', and 'info frame'. Update 'frame apply' commands
677 to use frame_apply_cmd_list. Move function local static
678 frame_apply_list to file static frame_apply_cmd_list for
679 consistency.
680 * stack.h (select_frame_command): Delete declarationn.
681 (select_frame_for_mi): Declare new function.
682
683 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
686 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
687 and NOP.
688
689 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
690
691 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
692
693 2018-09-26 Tom Tromey <tom@tromey.com>
694
695 * valops.c (auto_abandon): Remove dead code.
696
697 2018-09-26 Tom Tromey <tom@tromey.com>
698
699 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
700
701 2018-09-24 Tom Tromey <tom@tromey.com>
702
703 * common/pathstuff.c (get_standard_cache_dir): Make
704 "xdg_cache_home" and "home" const.
705 * top.c (init_history): Make "tmpenv" const.
706 * main.c (get_init_files): Make "homedir" const.
707
708 2018-09-23 Tom Tromey <tom@tromey.com>
709
710 PR python/18852:
711 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
712
713 2018-09-23 Tom Tromey <tom@tromey.com>
714
715 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
716 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
717 * python/python-internal.h (gdbpy_handle_exception): Declare.
718 * python/py-utils.c (gdbpy_handle_exception): New function.
719
720 2018-09-23 Tom Tromey <tom@tromey.com>
721
722 PR python/17284:
723 * python/py-type.c (typy_template_argument): Check for negative
724 argument number.
725
726 2018-09-23 Tom Tromey <tom@tromey.com>
727
728 PR python/14062:
729 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
730
731 2018-09-23 Tom Tromey <tom@tromey.com>
732
733 PR python/18170:
734 * python/py-value.c (valpy_int): Allow conversion from pointer
735 type.
736
737 2018-09-23 Tom Tromey <tom@tromey.com>
738
739 PR python/20126:
740 * python/py-value.c (valpy_int): Respect type sign.
741
742 2018-09-23 Tom Tromey <tom@tromey.com>
743
744 PR python/18352;
745 * python/py-value.c (valpy_float): Allow conversions from int or
746 char.
747 (valpy_int, valpy_long): Allow conversions from float.
748
749 2018-09-23 Tom Tromey <tom@tromey.com>
750
751 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
752 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
753
754 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
755
756 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
757 __sighndlr.
758 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
759
760 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
761
762 * windows-nat.c (windows_nat_target::wait): Remove a spurious
763 target_terminal::ours().
764
765 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
766
767 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
768 of vl to ULONGEST.
769
770 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
771
772 * breakpoint.c (update_inserted_breakpoint_locations): Remove
773 redundant condition.
774
775 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
776
777 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
778
779 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
780 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
781 * sol-thread.c (ps_pdmodel): Don't guard definition.
782
783 * procfs.c: Fix formatting.
784
785 * procfs.c (sysset_t_alloc): Remove.
786 (create_procinfo): Use XNEW instead of sysset_t_alloc.
787 (procfs_debug_inferior): Likewise.
788 (procfs_set_exec_trap): Likewise.
789 (proc_set_traced_sysentry): Don't allocate argp dynamically.
790 (proc_set_traced_sysexit): Likewise.
791
792 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
793 (dead_procinfo): Likewise.
794 (proc_warn): Likewise.
795 (proc_error): Likewise.
796 (proc_get_LDT_entry): Likewise.
797 (do_attach): Likewise.
798 (procfs_target::pid_to_str): Likewise.
799 (iterate_over_mappings): Likewise.
800
801 * procfs.c (create_procinfo): Fix ARI warning.
802 (proc_get_status): Likewise.
803 (proc_stop_process): Likewise.
804 (proc_run_process): Likewise.
805 (proc_kill): Likewise.
806 (proc_get_LDT_entry): Likewise.
807 (procfs_find_LDT_entry): Likewise.
808 (proc_update_threads): Likewise.
809 (proc_iterate_over_threads): Likewise.
810 (do_attach): Likewise.
811 (procfs_xfer_memory): Likewise.
812 (invalidate_cache): Likewise.
813 (procfs_target::resume): Likewise.
814 (procfs_init_inferior): Likewise.
815 (procfs_set_exec_trap): Likewise.
816 (procfs_target::thread_alive): Likewise.
817 (procfs_target::pid_to_exec_file): Likewise.
818 (iterate_over_mappings): Likewise.
819 (procfs_target::make_corefile_notes): Likewise.
820 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
821
822 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
823 (procfs_find_LDT_entry): Likewise.
824 * sol-thread.c (ps_lgetLDT): Likewise.
825
826 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
827
828 PR tdep/17903
829 * procfs.c (procfs_target): Declare pid_to_exec_file.
830 (procfs_target::pid_to_exec_file): New.
831
832 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
833
834 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
835 renaming.
836 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
837 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
838
839 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
840
841 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
842 (supply_fpregset, fill_fpregset): Move ...
843 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
844 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
845 Remove references to ioctl-based procfs.
846 Include <sys/reg.h>.
847 Remove PR_MODEL_NATIVE guards.
848 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
849 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
850
851 2018-09-19 Xavier Roirand <roirand@adacore.com>
852
853 PR gdb/20981:
854 * solib-darwin.c (darwin_get_dyld_bfd): New function.
855 (darwin_solib_get_all_image_info_addr_at_init): Update call.
856 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
857
858 2018-09-19 John Baldwin <jhb@FreeBSD.org>
859
860 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
861 (fbsd_print_sockaddr_in6): Likewise.
862
863 2018-09-19 Richard Bunt <richard.bunt@arm.com>
864 Chris January <chris.january@arm.com>
865
866 * eval.c (skip_undetermined_arglist): Skip argument list helper.
867 (evaluate_subexp_standard): Return a dummy type when
868 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
869 OP_F77_UNDETERMINED_ARGLIST case.
870 * expression.h (enum noside): Update comment.
871
872 2018-09-19 George Vasick <george.vasick@oracle.com>
873
874 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
875
876 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
877 April Chin <april.chin@oracle.com>
878 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
879
880 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
881 uint_t lwpid_t.
882 (create_procinfo): Print pids in /proc without leading zeros.
883
884 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
885
886 * nios2-tdep.c (nios2_gcc_target_options): New.
887 (nios2_gdb_arch_init): Install new hook.
888
889 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
890
891 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
892 New file.
893 * update-gnulib.sh: Apply patch.
894 * configure: Re-generate.
895
896 2018-09-18 John Baldwin <jhb@FreeBSD.org>
897
898 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
899 description. Make "info proc" command descriptions more
900 consistent.
901
902 2018-09-18 John Baldwin <jhb@FreeBSD.org>
903
904 * NEWS: Mention 'info proc files' command.
905
906 2018-09-18 John Baldwin <jhb@FreeBSD.org>
907
908 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
909 descriptors for IP_FILES and IP_ALL.
910
911 2018-09-18 John Baldwin <jhb@FreeBSD.org>
912
913 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
914 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
915 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
916 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
917 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
918 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
919 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
920 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
921 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
922 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
923 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
924 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
925 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
926 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
927 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
928 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
929 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
930 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
931 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
932 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
933 (struct fbsd_sockaddr_un): New types.
934 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
935 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
936 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
937 (fbsd_core_info_proc_files): New functions.
938 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
939 IP_ALL.
940 * fbsd-tdep.h (fbsd_info_proc_files_header)
941 (fbsd_info_proc_files_entry): New.
942
943 2018-09-18 John Baldwin <jhb@FreeBSD.org>
944
945 * defs.h (enum info_proc_what) [IP_FILES]: New value.
946 * infcmd.c (info_proc_cmd_files): New function.
947 (_initialize_infcmd): Register 'info proc files' command.
948
949 2018-09-18 John Baldwin <jhb@FreeBSD.org>
950
951 * gnulib/aclocal-m4-deps.mk: Re-generate.
952 * gnulib/aclocal.m4: Re-generate.
953 * gnulib/config.in: Re-generate.
954 * gnulib/configure: Re-generate.
955 * gnulib/import/Makefile.am: Re-generate.
956 * gnulib/import/Makefile.in: Re-generate.
957 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
958 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
959 * gnulib/import/arpa_inet.in.h: New file.
960 * gnulib/import/inet_ntop.c: New file.
961 * gnulib/import/m4/arpa_inet_h.m4: New file.
962 * gnulib/import/m4/inet_ntop.m4: New file.
963 * gnulib/import/m4/netinet_in_h.m4: New file.
964 * gnulib/import/m4/socklen.m4: New file.
965 * gnulib/import/m4/sockpfaf.m4: New file.
966 * gnulib/import/m4/stdalign.m4: New file.
967 * gnulib/import/m4/sys_uio_h.m4: New file.
968 * gnulib/import/netinet_in.in.h: New file.
969 * gnulib/import/stdalign.in.h: New file.
970 * gnulib/import/sys_socket.c: New file.
971 * gnulib/import/sys_socket.in.h: New file.
972 * gnulib/import/sys_uio.in.h: New file.
973 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
974 module.
975
976 2018-09-18 John Baldwin <jhb@FreeBSD.org>
977
978 * gnulib/aclocal-m4-deps.mk: New file.
979 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
980 deterministically.
981
982 2018-09-18 John Baldwin <jhb@FreeBSD.org>
983
984 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
985 KVE_PATH.
986
987 2018-09-18 Tom Tromey <tom@tromey.com>
988
989 * compile/compile-object-load.c (struct
990 link_hash_table_cleanup_data): Add constructor and destructor.
991 Use DISABLE_COPY_AND_ASSIGN.
992 (~link_hash_table_cleanup_data): Rename from
993 link_hash_table_free. Now a destructor.
994 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
995
996 2018-09-18 Tom Tromey <tom@tromey.com>
997
998 * compile/compile-object-run.c (do_module_cleanup): Use delete.
999 * compile/compile-object-load.c (struct munmap_list): Move to
1000 header file.
1001 (munmap_list::add): Rename from munmap_list_add; rewrite.
1002 (munmap_list::~munmap_list): Rename from munmap_list_free.
1003 (munmap_listp_free_cleanup): Remove.
1004 (compile_object_load): Update.
1005 * compile/compile-object-load.h (struct munmap_list): Move from
1006 compile-object-load.c. Rewrite.
1007
1008 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1009
1010 * aarch64-tdep.c (pass_in_v): Use register size.
1011 (aarch64_extract_return_value): Likewise.
1012 (aarch64_store_return_value): Likewise.
1013
1014 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1015
1016 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1017 rlim_t.
1018
1019 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1020
1021 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1022 Fix short help line.
1023
1024 2018-09-17 Tom Tromey <tom@tromey.com>
1025
1026 PR python/20445:
1027 * configure: Rebuild.
1028 * configure.ac: Conditionally use -DNDEBUG for Python.
1029
1030 2018-09-17 Tom Tromey <tom@tromey.com>
1031
1032 * configure: Rebuild.
1033 * configure.ac: Use gmp as a library dependency when checking for
1034 mpfr.
1035
1036 2018-09-17 Pedro Alves <palves@redhat.com>
1037
1038 * python/py-inferior.c (find_inferior_object): Delete.
1039
1040 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1041
1042 * compile/compile-cplus-types.c
1043 (compile_cplus_instance::enter_scope): Don't use new_scope after
1044 std::move.
1045
1046 2018-09-17 Tom Tromey <tom@tromey.com>
1047
1048 * common/pathstuff.c (get_standard_cache_dir): Use
1049 ~/Library/Caches on macOS.
1050 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1051
1052 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1053
1054 PR python/23669
1055 * breakpoint.c (commands_cmd_element): New.
1056 (_initialize_breakpoint): Assign commands_cmd_element.
1057 * breakpoint.h (commands_cmd_element): New.
1058 * cli/cli-script.c (while_cmd_element, if_command,
1059 define_cmd_element): New.
1060 (command_name_equals): Remove.
1061 (process_next_line): Compare commands by pointer, not by name.
1062 (_initialize_cli_script): Assign the various cmd_list_element
1063 variables.
1064 * compile/compile.c (compile_cmd_element): New.
1065 (_initialize_compile): Assign compile_cmd_element.
1066 * compile/compile.h (compile_cmd_element): New.
1067 * guile/guile.c (guile_cmd_element): New.
1068 (install_gdb_commands): Assign guile_cmd_element.
1069 * guile/guile.h (guile_cmd_element): New.
1070 * python/python.c (python_cmd_element): New.
1071 (_initialize_python): Assign python_cmd_element.
1072 * python/python.h (python_cmd_element): New.
1073 * tracepoint.c (while_stepping_cmd_element): New.
1074 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1075 * tracepoint.h (while_stepping_cmd_element): New.
1076
1077 2018-09-17 Tom Tromey <tom@tromey.com>
1078
1079 * infrun.c (save_infcall_suspend_state): Return
1080 infcall_suspend_state_up.
1081 (save_infcall_control_state): Return infcall_control_state_up.
1082 * inferior.h (save_infcall_suspend_state)
1083 (save_infcall_control_state): Declare later. Return unique
1084 pointers.
1085
1086 2018-09-17 Tom Tromey <tom@tromey.com>
1087
1088 * infrun.c (struct stop_context): Declare constructor,
1089 destructor, "changed" method.
1090 (stop_context::stop_context): Rename from save_stop_context.
1091 (stop_context::~stop_context): Rename from
1092 release_stop_context_cleanup.
1093 (normal_stop): Update.
1094 (stop_context::changed): Rename from stop_context_changed. Return
1095 bool.
1096
1097 2018-09-17 Tom Tromey <tom@tromey.com>
1098
1099 * inferior.h (struct infcall_suspend_state_deleter): New.
1100 (infcall_suspend_state_up): New typedef.
1101 (struct infcall_control_state_deleter): New.
1102 (infcall_control_state_up): New typedef.
1103 (make_cleanup_restore_infcall_suspend_state)
1104 (make_cleanup_restore_infcall_control_state): Don't declare.
1105 * infcall.c (call_function_by_hand_dummy): Update.
1106 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1107 (make_cleanup_restore_infcall_suspend_state): Remove.
1108 (do_restore_infcall_control_state_cleanup)
1109 (make_cleanup_restore_infcall_control_state): Remove.
1110
1111 2018-09-17 Tom Tromey <tom@tromey.com>
1112
1113 * gdbthread.h (struct thread_control_state): Add initializer.
1114 (class thread_info) <control>: Remove initializer.
1115 * inferior.h (struct inferior_control_state): Add initializer.
1116 (class inferior) <control>: Remove initializer.
1117 (exit_inferior_1): Update.
1118 * infrun.c (struct infcall_control_state): Add constructors.
1119 (save_infcall_control_state): Use new.
1120 (restore_infcall_control_state, discard_infcall_control_state):
1121 Use delete.
1122
1123 2018-09-17 Tom Tromey <tom@tromey.com>
1124
1125 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1126 unique_ptr.
1127 <siginfo_data>: Now a unique_xmalloc_ptr.
1128 (save_infcall_suspend_state, restore_infcall_suspend_state)
1129 (discard_infcall_suspend_state)
1130 (get_infcall_suspend_state_regcache): Update.
1131
1132 2018-09-17 Tom Tromey <tom@tromey.com>
1133
1134 * gdbthread.h (struct thread_suspend_state): Add initializers.
1135 (class thread_info) <suspend>: Remove initializer.
1136 * infrun.c (struct infcall_suspend_state): Add initializers.
1137 (save_infcall_suspend_state): Use new.
1138 (discard_infcall_suspend_state): Use delete.
1139
1140 2018-09-16 Tom Tromey <tom@tromey.com>
1141
1142 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1143 Remove.
1144 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1145 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1146 (py_varobj_iter_new): Likewise.
1147 (py_varobj_get_iterator): Use gdbpy_ref.
1148
1149 2018-09-16 Tom Tromey <tom@tromey.com>
1150
1151 * python/py-threadevent.c (py_get_event_thread): Simplify.
1152 * python/py-inferior.c (infpy_thread_from_thread_handle):
1153 Return immediately after calling thread_to_thread_object. Use
1154 Py_RETURN_NONE.
1155 (thread_to_thread_object): Set the exception on a NULL return.
1156
1157 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1158
1159 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1160
1161 2018-09-16 Tom Tromey <tom@tromey.com>
1162
1163 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1164 Remove.
1165
1166 2018-09-16 Tom Tromey <tom@tromey.com>
1167
1168 * python/python-internal.h (thread_to_thread_object): Change
1169 return type.
1170 * python/py-inferior.c (thread_to_thread_object): Return a new
1171 reference.
1172 (infpy_thread_from_thread_handle): Update.
1173 * python/py-infthread.c (gdbpy_selected_thread): Update.
1174 * python/py-stopevent.c (create_stop_event_object): Update.
1175 * python/py-threadevent.c (py_get_event_thread): Return a new
1176 reference.
1177 (py_get_event_thread): Update.
1178 * python/py-event.h (py_get_event_thread): Change return type.
1179 * python/py-continueevent.c (create_continue_event_object):
1180 Update.
1181
1182 2018-09-16 Tom Tromey <tom@tromey.com>
1183
1184 * python/py-progspace.c (pspy_get_objfiles): Update.
1185 * python/python-internal.h (objfile_to_objfile_object): Change
1186 return type.
1187 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1188 Update.
1189 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1190 Update.
1191 * python/python.c (gdbpy_get_current_objfile): Update.
1192 (gdbpy_objfiles): Update.
1193 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1194 Update.
1195 (objfile_to_objfile_object): Return a new reference.
1196 * python/py-symtab.c (stpy_get_objfile): Update.
1197 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1198 Update.
1199
1200 2018-09-16 Tom Tromey <tom@tromey.com>
1201
1202 * python/py-inferior.c (infpy_get_progspace): Update.
1203 * python/python-internal.h (pspace_to_pspace_object): Change
1204 return type.
1205 * python/py-newobjfileevent.c
1206 (create_clear_objfiles_event_object): Update.
1207 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1208 Update.
1209 * python/python.c (gdbpy_get_current_progspace): Update.
1210 (gdbpy_progspaces): Update.
1211 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1212 reference.
1213 * python/py-objfile.c (objfpy_get_progspace): Update.
1214 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1215 Update.
1216
1217 2018-09-16 Tom Tromey <tom@tromey.com>
1218
1219 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1220 (solib_name, block_for_pc, find_pc_line): New functions.
1221 (execute_unwinders): Update.
1222 * python/py-block.c (gdbpy_block_for_pc): Remove.
1223 * python/py-inferior.c (infpy_get_progspace): New function.
1224 (inferior_object_getset) <progspace>: Add.
1225 * python/py-progspace.c (pspy_objfiles): Rewrite.
1226 (pspy_solib_name, pspy_block_for_pc)
1227 (pspy_find_pc_line, pspy_is_valid): New functions.
1228 (progspace_object_methods): Add entries for solib_name,
1229 block_for_pc, find_pc_line, is_valid.
1230 * python/python-internal.h (gdbpy_block_for_pc)
1231 (build_objfiles_list): Don't declare.
1232 * python/python.c: Don't include solib.h.
1233 (gdbpy_solib_name, gdbpy_find_pc_line)
1234 (gdbpy_get_current_progspace, build_objfiles_list)
1235 (gdbpy_objfiles): Remove.
1236 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1237 solib_name, find_pc_line>: Remove entries.
1238
1239 2018-09-16 Tom Tromey <tom@tromey.com>
1240
1241 * top.c (new_ui_command): Use GNU style for metasyntactic
1242 variables.
1243 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1244 variables.
1245 * maint.c (maintenance_translate_address): Remove "<>" around
1246 text.
1247 * interps.c (interpreter_exec_cmd): Use GNU style for
1248 metasyntactic variables.
1249 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1250 metasyntactic variables.
1251 * tracepoint.c (tfind_range_command): Use GNU style for
1252 metasyntactic variables.
1253 (tfind_outside_command): Likewise.
1254 (_initialize_tracepoint): Likewise.
1255 * remote.c (extended_remote_target::create_inferior): Use GNU
1256 style for metasyntactic variables.
1257 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1258 metasyntactic variables.
1259 (adi_assign_command): Likewise.
1260
1261 2018-09-16 Tom Tromey <tom@tromey.com>
1262
1263 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1264 metasyntactic variables. Print message if no disassembler options
1265 are available.
1266
1267 2018-09-15 Tom Tromey <tom@tromey.com>
1268
1269 * infcmd.c (get_inferior_args): Return const char *.
1270 * inferior.h (get_inferior_args): Return type now const.
1271 * linux-tdep.c (linux_fill_prpsinfo): Update.
1272 * procfs.c (procfs_target::make_corefile_notes): Update.
1273
1274 2018-09-07 Tom Tromey <tom@tromey.com>
1275
1276 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1277 inside the TRY.
1278
1279 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1280
1281 * nios2-tdep.c (nios2_type_align): New.
1282 (nios2_gdb_arch_init): Install type_align hook.
1283
1284 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1287 type that is neither object file owned, nor gdbarch owned.
1288 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1289 gdbarch is non-NULL.
1290 (alloc_type_instance): Allocate non-objfile owned types on the
1291 gdbarch obstack.
1292 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1293 using TYPE_ALLOC to ensure memory is allocated on the correct
1294 obstack.
1295 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1296 obstack, or the gdbarch obstack.
1297 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1298
1299 2018-09-14 Tom Tromey <tom@tromey.com>
1300
1301 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1302 block.
1303
1304 2018-09-14 Tom Tromey <tom@tromey.com>
1305
1306 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1307
1308 2018-09-13 Tom Tromey <tom@tromey.com>
1309
1310 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1311 static.
1312
1313 2018-09-13 Tom Tromey <tom@tromey.com>
1314
1315 * exec.c (try_open_exec_file): Use std::string.
1316
1317 2018-09-13 Tom Tromey <tom@tromey.com>
1318
1319 * utils.h (gdb_bfd_errmsg): Return std::string.
1320 * exec.c (exec_file_attach): Update.
1321 * compile/compile-object-load.c (compile_object_load): Update.
1322 * utils.c (gdb_bfd_errmsg): Return std::string.
1323
1324 2018-09-13 Tom Tromey <tom@tromey.com>
1325
1326 * procfs.c (struct procinfo_deleter): New.
1327 (procinfo_up): New typedef.
1328 (do_destroy_procinfo_cleanup): Remove.
1329 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1330
1331 2018-09-13 Tom Tromey <tom@tromey.com>
1332
1333 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1334
1335 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1336 2018-09-13 Tom Tromey <tom@tromey.com>
1337
1338 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1339 (pspy_get_objfiles): New function.
1340 (progspace_object_methods): New.
1341 (pspace_object_type): Add tp_methods callback.
1342 * python/python-internal.h (build_objfiles_list): New
1343 declaration.
1344 * python/python.c (build_objfiles_list): New function.
1345 (gdbpy_objfiles): Implement using build_objfiles_list.
1346 * NEWS: Mention the Progspace.objfiles method.
1347
1348 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1349
1350 * python/py-inferior.c (infpy_get_progspace): New function.
1351 (inferior_object_getset): Add progspace property.
1352 * NEWS: Mention the new property.
1353
1354 2018-09-13 Tom Tromey <tom@tromey.com>
1355
1356 PR rust/23650:
1357 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1358
1359 2018-09-13 Tom Tromey <tom@tromey.com>
1360
1361 PR rust/23626:
1362 * rust-lang.c (rust_enum_variant): Now static.
1363 (rust_empty_enum_p): New function.
1364 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1365 Handle empty enum.
1366
1367 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1368
1369 * python/py-inferior.c (infpy_repr): New.
1370 (inferior_object_type): Register infpy_repr.
1371 * python/py-objfile.c (objfpy_repr): New.
1372 (objfile_object_type): Register objfpy_repr.
1373
1374 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1375
1376 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1377
1378 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1379
1380 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1381 typo.
1382
1383 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1384
1385 * common/common-utils.c: Don't include '<sys/stat.h>'.
1386 (is_regular_file): Move to...
1387 * common/filestuff.c (is_regular_file): ... here.
1388 * common/common-utils.h (is_regular_file): Move to...
1389 * common/filestuff.h (is_regular_file): ... here.
1390
1391 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1392
1393 * skip.c (debug_skip): New variable.
1394 (skiplist_entry::do_skip_file_p): Add debug output.
1395 (skiplist_entry::do_skip_gfile_p): Likewise.
1396 (skiplist_entry::skip_function_p): Likewise.
1397 (_initialize_step_skip): Create debug command.
1398 * NEWS: Mention set/show debug skip.
1399
1400 2018-09-11 Xavier Roirand <roirand@adacore.com>
1401
1402 * darwin-nat.c (should_disable_startup_with_shell):
1403 New function.
1404 (darwin_nat_target::create_inferior): Add call.
1405
1406 2018-09-11 Xavier Roirand <roirand@adacore.com>
1407
1408 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1409 inf_port, msg_state>: Initialize.
1410 (struct darwin_thread_info) <signaled, single_step>: Change
1411 type and initialize.
1412 (struct darwin_thread_info) <event>: Initialize.
1413
1414 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1415
1416 PR gdb/23555
1417 PR gdb/23558
1418 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1419 guesses.
1420
1421 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1422
1423 Revert:
1424 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1425
1426 PR gdb/23555
1427 PR gdb/23558
1428 * gnulib/aclocal.m4: Regenerate.
1429 * gnulib/config.in: Regenerate.
1430 * gnulib/configure: Regenerate.
1431 * gnulib/import/Makefile.am: Update.
1432 * gnulib/import/Makefile.in: Update.
1433 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1434 * gnulib/import/_Noreturn.h: ... this.
1435 * gnulib/import/alloca.in.h: Update.
1436 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1437 * gnulib/import/arg-nonnull.h: ... this.
1438 * gnulib/import/assure.h: Update.
1439 * gnulib/import/at-func.c: Update.
1440 * gnulib/import/basename-lgpl.c: Update.
1441 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1442 * gnulib/import/c++defs.h: ... this.
1443 * gnulib/import/canonicalize-lgpl.c: Update.
1444 * gnulib/import/cdefs.h: Update.
1445 * gnulib/import/chdir-long.c: Update.
1446 * gnulib/import/chdir-long.h: Update.
1447 * gnulib/import/cloexec.c: Update.
1448 * gnulib/import/cloexec.h: Update.
1449 * gnulib/import/close.c: Update.
1450 * gnulib/import/closedir.c: Update.
1451 * gnulib/import/config.charset: Update.
1452 * gnulib/import/dirent-private.h: Update.
1453 * gnulib/import/dirent.in.h: Update.
1454 * gnulib/import/dirfd.c: Update.
1455 * gnulib/import/dirname-lgpl.c: Update.
1456 * gnulib/import/dirname.h: Update.
1457 * gnulib/import/dosname.h: Update.
1458 * gnulib/import/dup-safer-flag.c: Update.
1459 * gnulib/import/dup-safer.c: Update.
1460 * gnulib/import/dup.c: Update.
1461 * gnulib/import/dup2.c: Update.
1462 * gnulib/import/errno.in.h: Update.
1463 * gnulib/import/error.c: Update.
1464 * gnulib/import/error.h: Update.
1465 * gnulib/import/exitfail.c: Update.
1466 * gnulib/import/exitfail.h: Update.
1467 * gnulib/import/extra/update-copyright: Update.
1468 * gnulib/import/fchdir.c: Update.
1469 * gnulib/import/fcntl.c: Update.
1470 * gnulib/import/fcntl.in.h: Update.
1471 * gnulib/import/fd-hook.c: Update.
1472 * gnulib/import/fd-hook.h: Update.
1473 * gnulib/import/fd-safer-flag.c: Update.
1474 * gnulib/import/fd-safer.c: Update.
1475 * gnulib/import/fdopendir.c: Update.
1476 * gnulib/import/filename.h: Update.
1477 * gnulib/import/filenamecat-lgpl.c: Update.
1478 * gnulib/import/filenamecat.h: Update.
1479 * gnulib/import/flexmember.h: Update.
1480 * gnulib/import/float+.h: Update.
1481 * gnulib/import/float.c: Update.
1482 * gnulib/import/float.in.h: Update.
1483 * gnulib/import/fnmatch.c: Update.
1484 * gnulib/import/fnmatch.in.h: Update.
1485 * gnulib/import/fnmatch_loop.c: Update.
1486 * gnulib/import/fpucw.h: Update.
1487 * gnulib/import/frexp.c: Update.
1488 * gnulib/import/frexpl.c: Update.
1489 * gnulib/import/fstat.c: Update.
1490 * gnulib/import/fstatat.c: Update.
1491 * gnulib/import/getcwd-lgpl.c: Update.
1492 * gnulib/import/getcwd.c: Update.
1493 * gnulib/import/getdtablesize.c: Update.
1494 * gnulib/import/getlogin_r.c: Update.
1495 * gnulib/import/getprogname.c: Update.
1496 * gnulib/import/getprogname.h: Update.
1497 * gnulib/import/gettext.h: Update.
1498 * gnulib/import/gettimeofday.c: Update.
1499 * gnulib/import/glob-libc.h: Update.
1500 * gnulib/import/glob.c: Update.
1501 * gnulib/import/glob.in.h: Update.
1502 * gnulib/import/glob_internal.h: Update.
1503 * gnulib/import/glob_pattern_p.c: Update.
1504 * gnulib/import/globfree.c: Update.
1505 * gnulib/import/hard-locale.c: Update.
1506 * gnulib/import/hard-locale.h: Update.
1507 * gnulib/import/intprops.h: Update.
1508 * gnulib/import/inttypes.in.h: Update.
1509 * gnulib/import/isnan.c: Update.
1510 * gnulib/import/isnand-nolibm.h: Update.
1511 * gnulib/import/isnand.c: Update.
1512 * gnulib/import/isnanl-nolibm.h: Update.
1513 * gnulib/import/isnanl.c: Update.
1514 * gnulib/import/itold.c: Update.
1515 * gnulib/import/libc-config.h: Update.
1516 * gnulib/import/limits.in.h: Update.
1517 * gnulib/import/localcharset.c: Update.
1518 * gnulib/import/localcharset.h: Update.
1519 * gnulib/import/localtime-buffer.c: Update.
1520 * gnulib/import/localtime-buffer.h: Update.
1521 * gnulib/import/lstat.c: Update.
1522 * gnulib/import/m4/00gnulib.m4: Update.
1523 * gnulib/import/m4/__inline.m4: Update.
1524 * gnulib/import/m4/absolute-header.m4: Update.
1525 * gnulib/import/m4/alloca.m4: Update.
1526 * gnulib/import/m4/builtin-expect.m4: Update.
1527 * gnulib/import/m4/canonicalize.m4: Update.
1528 * gnulib/import/m4/chdir-long.m4: Update.
1529 * gnulib/import/m4/close.m4: Update.
1530 * gnulib/import/m4/closedir.m4: Update.
1531 * gnulib/import/m4/configmake.m4: Update.
1532 * gnulib/import/m4/d-ino.m4: Update.
1533 * gnulib/import/m4/d-type.m4: Update.
1534 * gnulib/import/m4/dirent_h.m4: Update.
1535 * gnulib/import/m4/dirfd.m4: Update.
1536 * gnulib/import/m4/dirname.m4: Update.
1537 * gnulib/import/m4/double-slash-root.m4: Update.
1538 * gnulib/import/m4/dup.m4: Update.
1539 * gnulib/import/m4/dup2.m4: Update.
1540 * gnulib/import/m4/eealloc.m4: Update.
1541 * gnulib/import/m4/environ.m4: Update.
1542 * gnulib/import/m4/errno_h.m4: Update.
1543 * gnulib/import/m4/error.m4: Update.
1544 * gnulib/import/m4/exponentd.m4: Update.
1545 * gnulib/import/m4/exponentl.m4: Update.
1546 * gnulib/import/m4/extensions.m4: Update.
1547 * gnulib/import/m4/extern-inline.m4: Update.
1548 * gnulib/import/m4/fchdir.m4: Update.
1549 * gnulib/import/m4/fcntl-o.m4: Update.
1550 * gnulib/import/m4/fcntl.m4: Update.
1551 * gnulib/import/m4/fcntl_h.m4: Update.
1552 * gnulib/import/m4/fdopendir.m4: Update.
1553 * gnulib/import/m4/filenamecat.m4: Update.
1554 * gnulib/import/m4/flexmember.m4: Update.
1555 * gnulib/import/m4/float_h.m4: Update.
1556 * gnulib/import/m4/fnmatch.m4: Update.
1557 * gnulib/import/m4/fnmatch_h.m4: Update.
1558 * gnulib/import/m4/fpieee.m4: Update.
1559 * gnulib/import/m4/frexp.m4: Update.
1560 * gnulib/import/m4/frexpl.m4: Update.
1561 * gnulib/import/m4/fstat.m4: Update.
1562 * gnulib/import/m4/fstatat.m4: Update.
1563 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1564 * gnulib/import/m4/getcwd-path-max.m4: Update.
1565 * gnulib/import/m4/getcwd.m4: Update.
1566 * gnulib/import/m4/getdtablesize.m4: Update.
1567 * gnulib/import/m4/getlogin.m4: Update.
1568 * gnulib/import/m4/getlogin_r.m4: Update.
1569 * gnulib/import/m4/getpagesize.m4: Update.
1570 * gnulib/import/m4/getprogname.m4: Update.
1571 * gnulib/import/m4/gettimeofday.m4: Update.
1572 * gnulib/import/m4/glibc21.m4: Update.
1573 * gnulib/import/m4/glob.m4: Update.
1574 * gnulib/import/m4/glob_h.m4: Update.
1575 * gnulib/import/m4/gnulib-cache.m4: Update.
1576 * gnulib/import/m4/gnulib-common.m4: Update.
1577 * gnulib/import/m4/gnulib-comp.m4: Update.
1578 * gnulib/import/m4/gnulib-tool.m4: Update.
1579 * gnulib/import/m4/hard-locale.m4: Update.
1580 * gnulib/import/m4/include_next.m4: Update.
1581 * gnulib/import/m4/inttypes-pri.m4: Update.
1582 * gnulib/import/m4/inttypes.m4: Update.
1583 * gnulib/import/m4/isnand.m4: Update.
1584 * gnulib/import/m4/isnanl.m4: Update.
1585 * gnulib/import/m4/largefile.m4: Update.
1586 * gnulib/import/m4/limits-h.m4: Update.
1587 * gnulib/import/m4/localcharset.m4: Update.
1588 * gnulib/import/m4/locale-fr.m4: Update.
1589 * gnulib/import/m4/locale-ja.m4: Update.
1590 * gnulib/import/m4/locale-zh.m4: Update.
1591 * gnulib/import/m4/localtime-buffer.m4: Update.
1592 * gnulib/import/m4/longlong.m4: Update.
1593 * gnulib/import/m4/lstat.m4: Update.
1594 * gnulib/import/m4/malloc.m4: Update.
1595 * gnulib/import/m4/malloca.m4: Update.
1596 * gnulib/import/m4/math_h.m4: Update.
1597 * gnulib/import/m4/mbrtowc.m4: Update.
1598 * gnulib/import/m4/mbsinit.m4: Update.
1599 * gnulib/import/m4/mbsrtowcs.m4: Update.
1600 * gnulib/import/m4/mbstate_t.m4: Update.
1601 * gnulib/import/m4/memchr.m4: Update.
1602 * gnulib/import/m4/memmem.m4: Update.
1603 * gnulib/import/m4/mempcpy.m4: Update.
1604 * gnulib/import/m4/memrchr.m4: Update.
1605 * gnulib/import/m4/mkdir.m4: Update.
1606 * gnulib/import/m4/mkstemp.m4: Update.
1607 * gnulib/import/m4/mmap-anon.m4: Update.
1608 * gnulib/import/m4/mode_t.m4: Update.
1609 * gnulib/import/m4/msvc-inval.m4: Update.
1610 * gnulib/import/m4/msvc-nothrow.m4: Update.
1611 * gnulib/import/m4/multiarch.m4: Update.
1612 * gnulib/import/m4/nocrash.m4: Update.
1613 * gnulib/import/m4/off_t.m4: Update.
1614 * gnulib/import/m4/onceonly.m4: Update.
1615 * gnulib/import/m4/open-cloexec.m4: Update.
1616 * gnulib/import/m4/open.m4: Update.
1617 * gnulib/import/m4/openat.m4: Update.
1618 * gnulib/import/m4/opendir.m4: Update.
1619 * gnulib/import/m4/pathmax.m4: Update.
1620 * gnulib/import/m4/rawmemchr.m4: Update.
1621 * gnulib/import/m4/readdir.m4: Update.
1622 * gnulib/import/m4/readlink.m4: Update.
1623 * gnulib/import/m4/realloc.m4: Update.
1624 * gnulib/import/m4/rename.m4: Update.
1625 * gnulib/import/m4/rewinddir.m4: Update.
1626 * gnulib/import/m4/rmdir.m4: Update.
1627 * gnulib/import/m4/save-cwd.m4: Update.
1628 * gnulib/import/m4/secure_getenv.m4: Update.
1629 * gnulib/import/m4/setenv.m4: Update.
1630 * gnulib/import/m4/signal_h.m4: Update.
1631 * gnulib/import/m4/ssize_t.m4: Update.
1632 * gnulib/import/m4/stat-time.m4: Update.
1633 * gnulib/import/m4/stat.m4: Update.
1634 * gnulib/import/m4/std-gnu11.m4: Update.
1635 * gnulib/import/m4/stdbool.m4: Update.
1636 * gnulib/import/m4/stddef_h.m4: Update.
1637 * gnulib/import/m4/stdint.m4: Update.
1638 * gnulib/import/m4/stdio_h.m4: Update.
1639 * gnulib/import/m4/stdlib_h.m4: Update.
1640 * gnulib/import/m4/strchrnul.m4: Update.
1641 * gnulib/import/m4/strdup.m4: Update.
1642 * gnulib/import/m4/strerror.m4: Update.
1643 * gnulib/import/m4/string_h.m4: Update.
1644 * gnulib/import/m4/strstr.m4: Update.
1645 * gnulib/import/m4/strtok_r.m4: Update.
1646 * gnulib/import/m4/sys_socket_h.m4: Update.
1647 * gnulib/import/m4/sys_stat_h.m4: Update.
1648 * gnulib/import/m4/sys_time_h.m4: Update.
1649 * gnulib/import/m4/sys_types_h.m4: Update.
1650 * gnulib/import/m4/tempname.m4: Update.
1651 * gnulib/import/m4/time_h.m4: Update.
1652 * gnulib/import/m4/unistd-safer.m4: Update.
1653 * gnulib/import/m4/unistd_h.m4: Update.
1654 * gnulib/import/m4/warn-on-use.m4: Update.
1655 * gnulib/import/m4/wchar_h.m4: Update.
1656 * gnulib/import/m4/wchar_t.m4: Update.
1657 * gnulib/import/m4/wctype_h.m4: Update.
1658 * gnulib/import/m4/wint_t.m4: Update.
1659 * gnulib/import/malloc.c: Update.
1660 * gnulib/import/malloc/scratch_buffer.h: Update.
1661 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1662 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1663 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1664 * gnulib/import/malloca.c: Update.
1665 * gnulib/import/malloca.h: Update.
1666 * gnulib/import/malloca.valgrind: Update.
1667 * gnulib/import/math.in.h: Update.
1668 * gnulib/import/mbrtowc.c: Update.
1669 * gnulib/import/mbsinit.c: Update.
1670 * gnulib/import/mbsrtowcs-impl.h: Update.
1671 * gnulib/import/mbsrtowcs-state.c: Update.
1672 * gnulib/import/mbsrtowcs.c: Update.
1673 * gnulib/import/memchr.c: Update.
1674 * gnulib/import/memmem.c: Update.
1675 * gnulib/import/mempcpy.c: Update.
1676 * gnulib/import/memrchr.c: Update.
1677 * gnulib/import/mkdir.c: Update.
1678 * gnulib/import/mkstemp.c: Update.
1679 * gnulib/import/msvc-inval.c: Update.
1680 * gnulib/import/msvc-inval.h: Update.
1681 * gnulib/import/msvc-nothrow.c: Update.
1682 * gnulib/import/msvc-nothrow.h: Update.
1683 * gnulib/import/open.c: Update.
1684 * gnulib/import/openat-die.c: Update.
1685 * gnulib/import/openat-priv.h: Update.
1686 * gnulib/import/openat-proc.c: Update.
1687 * gnulib/import/openat.c: Update.
1688 * gnulib/import/openat.h: Update.
1689 * gnulib/import/opendir.c: Update.
1690 * gnulib/import/pathmax.h: Update.
1691 * gnulib/import/pipe-safer.c: Update.
1692 * gnulib/import/rawmemchr.c: Update.
1693 * gnulib/import/readdir.c: Update.
1694 * gnulib/import/readlink.c: Update.
1695 * gnulib/import/realloc.c: Update.
1696 * gnulib/import/ref-add.sin: Update.
1697 * gnulib/import/ref-del.sin: Update.
1698 * gnulib/import/rename.c: Update.
1699 * gnulib/import/rewinddir.c: Update.
1700 * gnulib/import/rmdir.c: Update.
1701 * gnulib/import/same-inode.h: Update.
1702 * gnulib/import/save-cwd.c: Update.
1703 * gnulib/import/save-cwd.h: Update.
1704 * gnulib/import/scratch_buffer.h: Update.
1705 * gnulib/import/secure_getenv.c: Update.
1706 * gnulib/import/setenv.c: Update.
1707 * gnulib/import/signal.in.h: Update.
1708 * gnulib/import/stat-time.c: Update.
1709 * gnulib/import/stat-time.h: Update.
1710 * gnulib/import/stat-w32.c: Update.
1711 * gnulib/import/stat-w32.h: Update.
1712 * gnulib/import/stat.c: Update.
1713 * gnulib/import/stdbool.in.h: Update.
1714 * gnulib/import/stddef.in.h: Update.
1715 * gnulib/import/stdint.in.h: Update.
1716 * gnulib/import/stdio.in.h: Update.
1717 * gnulib/import/stdlib.in.h: Update.
1718 * gnulib/import/str-two-way.h: Update.
1719 * gnulib/import/strchrnul.c: Update.
1720 * gnulib/import/strdup.c: Update.
1721 * gnulib/import/streq.h: Update.
1722 * gnulib/import/strerror-override.c: Update.
1723 * gnulib/import/strerror-override.h: Update.
1724 * gnulib/import/strerror.c: Update.
1725 * gnulib/import/string.in.h: Update.
1726 * gnulib/import/stripslash.c: Update.
1727 * gnulib/import/strnlen1.c: Update.
1728 * gnulib/import/strnlen1.h: Update.
1729 * gnulib/import/strstr.c: Update.
1730 * gnulib/import/strtok_r.c: Update.
1731 * gnulib/import/sys_stat.in.h: Update.
1732 * gnulib/import/sys_time.in.h: Update.
1733 * gnulib/import/sys_types.in.h: Update.
1734 * gnulib/import/tempname.c: Update.
1735 * gnulib/import/tempname.h: Update.
1736 * gnulib/import/time.in.h: Update.
1737 * gnulib/import/unistd--.h: Update.
1738 * gnulib/import/unistd-safer.h: Update.
1739 * gnulib/import/unistd.in.h: Update.
1740 * gnulib/import/unsetenv.c: Update.
1741 * gnulib/import/verify.h: Update.
1742 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1743 * gnulib/import/wchar.in.h: Update.
1744 * gnulib/import/wctype.in.h: Update.
1745 * gnulib/import/xalloc-oversized.h: Update.
1746 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1747 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1748
1749 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1750
1751 * record-btrace.c (get_thread_current_frame): Remove
1752 old_inferior_ptid.
1753
1754 2018-09-10 Jerome Guitton <guitton@adacore.com>
1755
1756 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1757 with check_tag to 1 if and only if the type is tagged and the
1758 component being searched cannot been found in the current
1759 view. Otherwise, always call ada_to_fixed_type with
1760 check_tag to 0.
1761
1762 2018-09-10 Xavier Roirand <roirand@adacore.com>
1763
1764 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1765 declaration.
1766 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1767 * ada-varobj.c (ada_varobj_get_number_of_children,
1768 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1769
1770 2018-09-10 Xavier Roirand <roirand@adacore.com>
1771
1772 * ada-valprint.c (ada_value_print): Use type instead of
1773 enclosing type.
1774
1775 2018-09-10 Xavier Roirand <roirand@adacore.com>
1776
1777 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1778 an array of access to unconstrained array.
1779
1780 2018-09-10 Xavier Roirand <roirand@adacore.com>
1781
1782 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1783 (ada_check_typedef): Use it.
1784
1785 2018-09-10 Xavier Roirand <roirand@adacore.com>
1786
1787 * ada-varobj.c (ada_varobj_describe_struct_child)
1788 (ada_varobj_describe_child): Handle union case like struct one.
1789
1790 2018-09-10 Tom Tromey <tom@tromey.com>
1791
1792 PR python/18380:
1793 * python/python.c (_initialize_python): Make example in "python"
1794 help work in Python 3.
1795
1796 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1797
1798 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1799 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1800 $(EXEEXT) to the script, as it is not a program.
1801
1802 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1803
1804 * python/py-prettyprint.c (pretty_print_one_value): Return
1805 gdbpy_ref<>.
1806 (print_string_repr): Adjust.
1807 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1808 * python/python-internal.h (apply_varobj_pretty_printer): Return
1809 gdbpy_ref<>.
1810 * varobj.c (varobj_value_get_print_value): Adjust.
1811
1812 2018-09-08 Tom Tromey <tom@tromey.com>
1813
1814 PR python/16047:
1815 * python/py-prettyprint.c (pretty_print_one_value): Check for
1816 to_string method.
1817
1818 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1819
1820 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1821 replace_operator_with_call.
1822
1823 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1824
1825 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1826
1827 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1828
1829 * ada-typeprint.c (print_range): Print the bounds using TYPE
1830 rather than its TYPE_TARGET_TYPE.
1831
1832 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1833
1834 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1835 call to ada_to_fixed_value_create.
1836
1837 2018-09-08 Jerome Guitton <guitton@adacore.com>
1838
1839 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1840
1841 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1842
1843 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1844 by calls to error.
1845
1846 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1847
1848 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1849 Move update of loop variable "fi".
1850
1851 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1852
1853 * ada-lang.c (value_assign_to_component): In the case of
1854 big-endian targets, extract the bits of the given VAL
1855 using an src_offset of zero if container is not a scalar.
1856
1857 2018-09-06 Simon Ser <contact@emersion.fr>
1858
1859 PR gdb/23105
1860 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1861 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1862 * fbsd-tdep.c (fbsd_make_note_desc): New.
1863 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1864 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1865 * target.h (enum target_object) Add FreeBSD-specific
1866 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1867
1868 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1869
1870 * compile/compile-c.h (generate_c_for_variable_locations):
1871 Change reference to pointer.
1872 * compile/compile-c-support.c (compile_program) <compute>:
1873 Likewise.
1874 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1875 (generate_c_for_for_one_variable): Likewise
1876 (generate_c_for_variable_locations): Likewise
1877 * compile/compile-c-types.c (compile_c_instance::convert_type):
1878 Likewise
1879 * compile/compile-cplus-symbols.c (convert_one_symbol):
1880 std::move the scope passed to enter_scope.
1881 * compile/compile-cplus-types.c
1882 (compile_cplus_instance::enter_scope): Make parameter
1883 rvalue-reference.
1884 (compile_cplus_instance::new_scope): Change reference to
1885 pointer.
1886 (compile_cplus_instance::convert_type): Likewise
1887 (compile_cplus_convert_typedef): std::move the scope passed to
1888 enter_scope.
1889 (compile_cplus_convert_struct_or_union): Likewise.
1890 (compile_cplus_convert_enum): Likewise.
1891 (compile_cplus_convert_namespace): Likewise.
1892 * compile/compile-cplus.h (compile_cplus_instance)
1893 <enter_scope>: Make parameter rvalue-reference.
1894 * compile/compile-internal.h (compile_instance)
1895 <get_cached_type>: Likewise
1896 * compile/compile-loc2c.c (push): Likewise
1897 (pushf): Likewise
1898 (unary): Likewise
1899 (binary): Likewise
1900 (print_label): Likewise
1901 (pushf_register_address): Likewise
1902 (pushf_register): Likewise
1903 (do_compile_dwarf_expr_to_c): Likewise
1904 (compile_dwarf_expr_to_c): Likewise
1905 (compile_dwarf_bounds_to_c): Likewise
1906 * compile/compile.c (compile_instance::get_cached_type):
1907 Likewise
1908 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1909 (compile_dwarf_bounds_to_c): Likewise
1910 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1911 (dwarf2_compile_property_to_c): Likewise
1912 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1913 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1914 Likewise
1915
1916 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1917
1918 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1919 * tui/tui-data.c (init_content_element): Don't initialize it.
1920
1921 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1922
1923 * tui/tui-data.h (struct tui_win_info)
1924 <detail::opaque>: Remove.
1925 * tui/tui-data.c (init_win_info): Remove assignment.
1926
1927 2018-09-05 Tom Tromey <tom@tromey.com>
1928
1929 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1930 -Wformat-nonliteral.
1931 * target-float.c (host_float_ops<T>::to_string)
1932 (host_float_ops<T>::from_string): Use
1933 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1934 * configure: Rebuild.
1935
1936 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1937
1938 * printcmd.c (printf_c_string): Use
1939 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1940 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1941
1942 2018-09-05 Tom Tromey <tom@tromey.com>
1943
1944 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1945
1946 2018-09-05 Tom de Vries <tdevries@suse.de>
1947
1948 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1949 with resolve_abstract_p == true.
1950 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1951 defaulting to false. Propagate resolve_abstract_p to
1952 dwarf2_fetch_die_loc_sect_off.
1953 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1954 parameter, defaulting to false.
1955 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1956 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1957 parameter.
1958 * dwarf2read.h (struct die_info): Forward-declare.
1959 (die_info_ptr): New typedef.
1960 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1961
1962 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1963
1964 GDB 8.2 released.
1965
1966 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1967 Pedro Alves <palves@redhat.com>
1968
1969 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1970 "aclocal-m4-deps.mk". Include file here.
1971 $(srcdir)/aclocal.m4: Add "configure.ac".
1972 * gnulib/aclocal-m4-deps.mk: New file.
1973 * gnulib/update-gnulib.sh: Automatically update
1974 "aclocal-m4-deps.mk".
1975
1976 2018-09-04 Tom Tromey <tom@tromey.com>
1977
1978 * configure: Rebuild.
1979 * configure.ac: Remove multi-ice code.
1980
1981 2018-09-04 Tom Tromey <tom@tromey.com>
1982
1983 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1984 (ada-exp.o): Update.
1985
1986 2018-09-04 Tom Tromey <tom@tromey.com>
1987
1988 * Makefile.in (printcmd.o, target-float.o): Remove.
1989 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1990
1991 2018-09-04 Tom Tromey <tom@tromey.com>
1992
1993 * gnulib/Makefile.in: Remove obsolete comment.
1994 * Makefile.in: Remove obsolete comment.
1995
1996 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1999 line with '+'.
2000
2001 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * riscv-tdep.c: Add 'prologue-value.h' include.
2004 (struct riscv_unwind_cache): New struct.
2005 (riscv_debug_unwinder): New global.
2006 (riscv_scan_prologue): Update arguments, capture register details
2007 from prologue scan.
2008 (riscv_skip_prologue): Reformat arguments line, move end of
2009 prologue calculation into riscv_scan_prologue.
2010 (riscv_frame_cache): Update return type, create
2011 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2012 details.
2013 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2014 (riscv_frame_prev_register): Use the trad_frame within the
2015 riscv_unwind_cache.
2016 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2017 flag.
2018
2019 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * trad-frame.h (trad_frame_set_realreg): Declare.
2022 (trad_frame_set_addr): Declare.
2023 * trad-frame.c (trad_frame_set_realreg): Define new function.
2024 (trad_frame_set_addr): Define new function.
2025 (trad_frame_set_reg_realreg): Use new function.
2026 (trad_frame_set_reg_addr): Use new function.
2027
2028 2018-09-01 Keith Seitz <keiths@redhat.com>
2029
2030 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2031 pulongest instead of "%lld".
2032 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2033 ATTRIBUTE_UNUSED.
2034
2035 2018-08-31 Tom Tromey <tom@tromey.com>
2036
2037 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2038 variant part type.
2039
2040 2018-08-31 Pedro Alves <palves@redhat.com>
2041
2042 * gdbarch.h: Regenerate.
2043
2044 2018-08-31 Pedro Alves <palves@redhat.com>
2045
2046 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2047 * target.h (Hardware watchpoint interfaces): Describe
2048 continuable/steppable/non-steppable watchpoints.
2049 * gdbarch.h, gdbarch.c: Regenerate.
2050
2051 2018-08-31 Pedro Alves <palves@redhat.com>
2052
2053 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2054 Delete.
2055 * s390-linux-nat.c
2056 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2057 * target.h (target_ops::have_continuable_watchpoint): Delete.
2058 (target_have_continuable_watchpoint): Delete.
2059 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2060 * target-delegates.c: Regenerate.
2061
2062 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2063
2064 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2065 the files present in "gnulib/import/m4/".
2066
2067 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2070 c.sw, c.swsp, and c.sdsp.
2071
2072 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2075 (riscv_read_misa_reg): Don't cache value read into inferior data.
2076 (riscv_new_inferior_data): Delete.
2077 (riscv_inferior_data_cleanup): Delete.
2078 (riscv_inferior_data): Delete.
2079 (riscv_invalidate_inferior_data): Delete.
2080 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2081
2082 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2083
2084 * compile/compile-cplus-types.c
2085 (compile_cplus_instance::leave_scope): Take the address of scope
2086 object.
2087 (compile_cplus_instance::convert_qualified_base): Compare quals
2088 to 0.
2089
2090 2018-08-30 Keith Seitz <keiths@redhat.com>
2091
2092 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2093 Use "%s" and host_address_to_string instead of "%p" in printf.
2094
2095 2018-08-29 Keith Seitz <keiths@redhat.com>
2096
2097 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2098 and compile-cplus-types.c.
2099 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2100 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2101 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2102 Declare.
2103 * compile/compile-c-support.c: Include compile-cplus.h.
2104 (load_libcompile): Templatize.
2105 (get_compile_context): "New" function.
2106 (c_get_compile_context): Use get_compile_context.
2107 (cplus_get_compile_context): New function.
2108 (cplus_push_user_expression, cplus_pop_user_expression)
2109 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2110 (cplus_compute_program): Define new structs/functions.
2111 * compile/compile-cplus-symmbols.c: New file.
2112 * compile/compile-cplus-types.c: New file.
2113 * compile/compile-cplus.h: New file.
2114 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2115 Declare.
2116 * compile/compile-object-load.c (get_out_value_type): Use
2117 strncmp_iw when comparing symbol names.
2118 (compile_object_load): Add mst_bss and mst_data.
2119 * compile/compile.c (_initialize_compile): Remove
2120 -Wno-implicit-function-declaration from `compile_args'.
2121 * compile/gcc-cp-plugin.h: New file.
2122 * NEWS: Mention C++ compile support and new debug options.
2123
2124 2018-08-29 Keith Seitz <keiths@redhat.com>
2125
2126 * linespec.c (collect_info::add_symbol): Make virtual.
2127 (struct symbol_searcher_collect_info): New struct.
2128 (symbol_searcher::find_all_symbols): New method.
2129 * symtab.h (class symbol_searcher): New class.
2130
2131 2018-08-29 Keith Seitz <keiths@redhat.com>
2132
2133 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2134 Change to vector of block_symbol. Update all users.
2135 (struct collect_info) <symbols>: Likewise.
2136 (collect_info::add_symbol): Take block_symbol as argument.
2137 Update all callers.
2138 (decode_compound_collector) <m_symbols>: Change type to vector
2139 of block_symbol. Update all users.
2140 (decode_compound_collector::operator ()): Change parameter type
2141 to block_symbol.
2142 (find_method, find_function_symbols, find_linespec_symbols)
2143 (find_label_symbols_in_block, find_label_symbols): Change symbol
2144 vectors to block_symbol vectors.
2145 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2146 block_symbol.
2147
2148 2018-08-29 Keith Seitz <keiths@redhat.com>
2149
2150 * linespec.c (symbolp): Remove typedef and VEC definitions.
2151 (bound_minimal_symbol_d): Likewise.
2152
2153 2018-08-29 Keith Seitz <keiths@redhat.com>
2154
2155 * linespec.c (decode_compound_collector::decode_compound_collector):
2156 Remove initialization for `m_symtabs'.
2157 (decode_compound_collector::release_symbols): Change return type
2158 to std::vector. Update all callers.
2159 (class decode_compound_collector) <m_symbols>: Change type to
2160 std::vector.
2161 (lookup_prefix_sym): Change return type to std::vector. Update all
2162 callers.
2163 (compare_symbols): Remove.
2164 (std_compare_symbols): Rename to `compare_symbols'.
2165 (find_method): Change `sym_classes' parameter to std::vector.
2166 Update all callers. Use std::sort to sort sym_classes.
2167 (find_linespec_symbols): Remove cleanup.
2168
2169 2018-08-29 Keith Seitz <keiths@redhat.com>
2170
2171 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2172 std::vector. Update all users.
2173 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2174 (struct collect_info) <minimal_symbols>: Likewise.
2175 (compare_msymbols): Return bool. Change parameters to const
2176 bound_minimal_symbol references.
2177 (find_method, find_function_symbols, find_linespec_symbols): Change
2178 `minsyms' parameter to std::vector. Update all callers.
2179
2180 2018-08-29 Keith Seitz <keiths@redhat.com>
2181
2182 * linespec.c (struct linespec) <label_symbols>: Change type to
2183 std::vector. Update all users.
2184 (find_label_symbols_in_block): Change `result' parameter to
2185 std::vector. Update all callers.
2186 (find_label_symbols): Return std::vector. Update all callers.
2187
2188 2018-08-29 Keith Seitz <keiths@redhat.com>
2189
2190 * linespec.c (struct linespec) <function_symbols>: Change type to
2191 std::vector. Update all users.
2192 (struct collect_info) <function_symbols>: Likewise.
2193 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2194 (std_compare_symbols): New function.
2195 (find_method, find_function_symbols, find_linespec_symbols)
2196 (find_label_symbols_in_block): Change `symbols' parameter to
2197 std::vector. Update all callers.
2198 (find_label_symbols): Likewise for `function_symbols' and
2199 `label_funcs_ret'.
2200
2201 2018-08-29 Keith Seitz <keiths@redhat.com>
2202
2203 * linespec.c (symtab_vector_up): Define.
2204 (struct linespec) <file_symtabs>: Change type to std::vector *.
2205 Update all uses.
2206 (struct collect_info) <file_symtabs>: Likewise.
2207 (collect_symtabs_from_filename): Return symtab_vector_up.
2208 Update all callers.
2209 (decode_objc): Remove cleanup.
2210 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2211 (symtab_collector::release_symtabs): Return symtab_vector_up.
2212 Update all callers.
2213 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2214 Update all users.
2215 (collect_symtabs_from_filename, symtabs_from_filename): Return
2216 symtab_vector_up. Update all callers.
2217
2218 2018-08-29 Tom Tromey <tom@tromey.com>
2219
2220 * csky-tdep.c (csky_analyze_prologue): Use
2221 core_addr_to_string_nz.
2222
2223 2018-08-29 Tom Tromey <tom@tromey.com>
2224
2225 * windows-nat.c (struct xlate_exception) <them>: Change type to
2226 DWORD.
2227 (xlate): Fix formatting. Remove last entry.
2228 (struct xlate_exception, xlate): Comment out.
2229 (windows_nat_target::resume): Use ranged for.
2230
2231 2018-08-29 Jim Wilson <jimw@sifive.com>
2232
2233 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2234 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2235 of NT_PRFPREG.
2236 (riscv_linux_nat_target::store_registers): Likewise.
2237
2238 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2239
2240 PR gdb/23555
2241 PR gdb/23558
2242 * gnulib/aclocal.m4: Regenerate.
2243 * gnulib/config.in: Regenerate.
2244 * gnulib/configure: Regenerate.
2245 * gnulib/import/Makefile.am: Update.
2246 * gnulib/import/Makefile.in: Update.
2247 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2248 * gnulib/import/_Noreturn.h: ... this.
2249 * gnulib/import/alloca.in.h: Update.
2250 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2251 * gnulib/import/arg-nonnull.h: ... this.
2252 * gnulib/import/assure.h: Update.
2253 * gnulib/import/at-func.c: Update.
2254 * gnulib/import/basename-lgpl.c: Update.
2255 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2256 * gnulib/import/c++defs.h: ... this.
2257 * gnulib/import/canonicalize-lgpl.c: Update.
2258 * gnulib/import/cdefs.h: Update.
2259 * gnulib/import/chdir-long.c: Update.
2260 * gnulib/import/chdir-long.h: Update.
2261 * gnulib/import/cloexec.c: Update.
2262 * gnulib/import/cloexec.h: Update.
2263 * gnulib/import/close.c: Update.
2264 * gnulib/import/closedir.c: Update.
2265 * gnulib/import/config.charset: Update.
2266 * gnulib/import/dirent-private.h: Update.
2267 * gnulib/import/dirent.in.h: Update.
2268 * gnulib/import/dirfd.c: Update.
2269 * gnulib/import/dirname-lgpl.c: Update.
2270 * gnulib/import/dirname.h: Update.
2271 * gnulib/import/dosname.h: Update.
2272 * gnulib/import/dup-safer-flag.c: Update.
2273 * gnulib/import/dup-safer.c: Update.
2274 * gnulib/import/dup.c: Update.
2275 * gnulib/import/dup2.c: Update.
2276 * gnulib/import/errno.in.h: Update.
2277 * gnulib/import/error.c: Update.
2278 * gnulib/import/error.h: Update.
2279 * gnulib/import/exitfail.c: Update.
2280 * gnulib/import/exitfail.h: Update.
2281 * gnulib/import/extra/update-copyright: Update.
2282 * gnulib/import/fchdir.c: Update.
2283 * gnulib/import/fcntl.c: Update.
2284 * gnulib/import/fcntl.in.h: Update.
2285 * gnulib/import/fd-hook.c: Update.
2286 * gnulib/import/fd-hook.h: Update.
2287 * gnulib/import/fd-safer-flag.c: Update.
2288 * gnulib/import/fd-safer.c: Update.
2289 * gnulib/import/fdopendir.c: Update.
2290 * gnulib/import/filename.h: Update.
2291 * gnulib/import/filenamecat-lgpl.c: Update.
2292 * gnulib/import/filenamecat.h: Update.
2293 * gnulib/import/flexmember.h: Update.
2294 * gnulib/import/float+.h: Update.
2295 * gnulib/import/float.c: Update.
2296 * gnulib/import/float.in.h: Update.
2297 * gnulib/import/fnmatch.c: Update.
2298 * gnulib/import/fnmatch.in.h: Update.
2299 * gnulib/import/fnmatch_loop.c: Update.
2300 * gnulib/import/fpucw.h: Update.
2301 * gnulib/import/frexp.c: Update.
2302 * gnulib/import/frexpl.c: Update.
2303 * gnulib/import/fstat.c: Update.
2304 * gnulib/import/fstatat.c: Update.
2305 * gnulib/import/getcwd-lgpl.c: Update.
2306 * gnulib/import/getcwd.c: Update.
2307 * gnulib/import/getdtablesize.c: Update.
2308 * gnulib/import/getlogin_r.c: Update.
2309 * gnulib/import/getprogname.c: Update.
2310 * gnulib/import/getprogname.h: Update.
2311 * gnulib/import/gettext.h: Update.
2312 * gnulib/import/gettimeofday.c: Update.
2313 * gnulib/import/glob-libc.h: Update.
2314 * gnulib/import/glob.c: Update.
2315 * gnulib/import/glob.in.h: Update.
2316 * gnulib/import/glob_internal.h: Update.
2317 * gnulib/import/glob_pattern_p.c: Update.
2318 * gnulib/import/globfree.c: Update.
2319 * gnulib/import/hard-locale.c: Update.
2320 * gnulib/import/hard-locale.h: Update.
2321 * gnulib/import/intprops.h: Update.
2322 * gnulib/import/inttypes.in.h: Update.
2323 * gnulib/import/isnan.c: Update.
2324 * gnulib/import/isnand-nolibm.h: Update.
2325 * gnulib/import/isnand.c: Update.
2326 * gnulib/import/isnanl-nolibm.h: Update.
2327 * gnulib/import/isnanl.c: Update.
2328 * gnulib/import/itold.c: Update.
2329 * gnulib/import/libc-config.h: Update.
2330 * gnulib/import/limits.in.h: Update.
2331 * gnulib/import/localcharset.c: Update.
2332 * gnulib/import/localcharset.h: Update.
2333 * gnulib/import/localtime-buffer.c: Update.
2334 * gnulib/import/localtime-buffer.h: Update.
2335 * gnulib/import/lstat.c: Update.
2336 * gnulib/import/m4/00gnulib.m4: Update.
2337 * gnulib/import/m4/__inline.m4: Update.
2338 * gnulib/import/m4/absolute-header.m4: Update.
2339 * gnulib/import/m4/alloca.m4: Update.
2340 * gnulib/import/m4/builtin-expect.m4: Update.
2341 * gnulib/import/m4/canonicalize.m4: Update.
2342 * gnulib/import/m4/chdir-long.m4: Update.
2343 * gnulib/import/m4/close.m4: Update.
2344 * gnulib/import/m4/closedir.m4: Update.
2345 * gnulib/import/m4/configmake.m4: Update.
2346 * gnulib/import/m4/d-ino.m4: Update.
2347 * gnulib/import/m4/d-type.m4: Update.
2348 * gnulib/import/m4/dirent_h.m4: Update.
2349 * gnulib/import/m4/dirfd.m4: Update.
2350 * gnulib/import/m4/dirname.m4: Update.
2351 * gnulib/import/m4/double-slash-root.m4: Update.
2352 * gnulib/import/m4/dup.m4: Update.
2353 * gnulib/import/m4/dup2.m4: Update.
2354 * gnulib/import/m4/eealloc.m4: Update.
2355 * gnulib/import/m4/environ.m4: Update.
2356 * gnulib/import/m4/errno_h.m4: Update.
2357 * gnulib/import/m4/error.m4: Update.
2358 * gnulib/import/m4/exponentd.m4: Update.
2359 * gnulib/import/m4/exponentl.m4: Update.
2360 * gnulib/import/m4/extensions.m4: Update.
2361 * gnulib/import/m4/extern-inline.m4: Update.
2362 * gnulib/import/m4/fchdir.m4: Update.
2363 * gnulib/import/m4/fcntl-o.m4: Update.
2364 * gnulib/import/m4/fcntl.m4: Update.
2365 * gnulib/import/m4/fcntl_h.m4: Update.
2366 * gnulib/import/m4/fdopendir.m4: Update.
2367 * gnulib/import/m4/filenamecat.m4: Update.
2368 * gnulib/import/m4/flexmember.m4: Update.
2369 * gnulib/import/m4/float_h.m4: Update.
2370 * gnulib/import/m4/fnmatch.m4: Update.
2371 * gnulib/import/m4/fnmatch_h.m4: Update.
2372 * gnulib/import/m4/fpieee.m4: Update.
2373 * gnulib/import/m4/frexp.m4: Update.
2374 * gnulib/import/m4/frexpl.m4: Update.
2375 * gnulib/import/m4/fstat.m4: Update.
2376 * gnulib/import/m4/fstatat.m4: Update.
2377 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2378 * gnulib/import/m4/getcwd-path-max.m4: Update.
2379 * gnulib/import/m4/getcwd.m4: Update.
2380 * gnulib/import/m4/getdtablesize.m4: Update.
2381 * gnulib/import/m4/getlogin.m4: Update.
2382 * gnulib/import/m4/getlogin_r.m4: Update.
2383 * gnulib/import/m4/getpagesize.m4: Update.
2384 * gnulib/import/m4/getprogname.m4: Update.
2385 * gnulib/import/m4/gettimeofday.m4: Update.
2386 * gnulib/import/m4/glibc21.m4: Update.
2387 * gnulib/import/m4/glob.m4: Update.
2388 * gnulib/import/m4/glob_h.m4: Update.
2389 * gnulib/import/m4/gnulib-cache.m4: Update.
2390 * gnulib/import/m4/gnulib-common.m4: Update.
2391 * gnulib/import/m4/gnulib-comp.m4: Update.
2392 * gnulib/import/m4/gnulib-tool.m4: Update.
2393 * gnulib/import/m4/hard-locale.m4: Update.
2394 * gnulib/import/m4/include_next.m4: Update.
2395 * gnulib/import/m4/inttypes-pri.m4: Update.
2396 * gnulib/import/m4/inttypes.m4: Update.
2397 * gnulib/import/m4/isnand.m4: Update.
2398 * gnulib/import/m4/isnanl.m4: Update.
2399 * gnulib/import/m4/largefile.m4: Update.
2400 * gnulib/import/m4/limits-h.m4: Update.
2401 * gnulib/import/m4/localcharset.m4: Update.
2402 * gnulib/import/m4/locale-fr.m4: Update.
2403 * gnulib/import/m4/locale-ja.m4: Update.
2404 * gnulib/import/m4/locale-zh.m4: Update.
2405 * gnulib/import/m4/localtime-buffer.m4: Update.
2406 * gnulib/import/m4/longlong.m4: Update.
2407 * gnulib/import/m4/lstat.m4: Update.
2408 * gnulib/import/m4/malloc.m4: Update.
2409 * gnulib/import/m4/malloca.m4: Update.
2410 * gnulib/import/m4/math_h.m4: Update.
2411 * gnulib/import/m4/mbrtowc.m4: Update.
2412 * gnulib/import/m4/mbsinit.m4: Update.
2413 * gnulib/import/m4/mbsrtowcs.m4: Update.
2414 * gnulib/import/m4/mbstate_t.m4: Update.
2415 * gnulib/import/m4/memchr.m4: Update.
2416 * gnulib/import/m4/memmem.m4: Update.
2417 * gnulib/import/m4/mempcpy.m4: Update.
2418 * gnulib/import/m4/memrchr.m4: Update.
2419 * gnulib/import/m4/mkdir.m4: Update.
2420 * gnulib/import/m4/mkstemp.m4: Update.
2421 * gnulib/import/m4/mmap-anon.m4: Update.
2422 * gnulib/import/m4/mode_t.m4: Update.
2423 * gnulib/import/m4/msvc-inval.m4: Update.
2424 * gnulib/import/m4/msvc-nothrow.m4: Update.
2425 * gnulib/import/m4/multiarch.m4: Update.
2426 * gnulib/import/m4/nocrash.m4: Update.
2427 * gnulib/import/m4/off_t.m4: Update.
2428 * gnulib/import/m4/onceonly.m4: Update.
2429 * gnulib/import/m4/open-cloexec.m4: Update.
2430 * gnulib/import/m4/open.m4: Update.
2431 * gnulib/import/m4/openat.m4: Update.
2432 * gnulib/import/m4/opendir.m4: Update.
2433 * gnulib/import/m4/pathmax.m4: Update.
2434 * gnulib/import/m4/rawmemchr.m4: Update.
2435 * gnulib/import/m4/readdir.m4: Update.
2436 * gnulib/import/m4/readlink.m4: Update.
2437 * gnulib/import/m4/realloc.m4: Update.
2438 * gnulib/import/m4/rename.m4: Update.
2439 * gnulib/import/m4/rewinddir.m4: Update.
2440 * gnulib/import/m4/rmdir.m4: Update.
2441 * gnulib/import/m4/save-cwd.m4: Update.
2442 * gnulib/import/m4/secure_getenv.m4: Update.
2443 * gnulib/import/m4/setenv.m4: Update.
2444 * gnulib/import/m4/signal_h.m4: Update.
2445 * gnulib/import/m4/ssize_t.m4: Update.
2446 * gnulib/import/m4/stat-time.m4: Update.
2447 * gnulib/import/m4/stat.m4: Update.
2448 * gnulib/import/m4/std-gnu11.m4: Update.
2449 * gnulib/import/m4/stdbool.m4: Update.
2450 * gnulib/import/m4/stddef_h.m4: Update.
2451 * gnulib/import/m4/stdint.m4: Update.
2452 * gnulib/import/m4/stdio_h.m4: Update.
2453 * gnulib/import/m4/stdlib_h.m4: Update.
2454 * gnulib/import/m4/strchrnul.m4: Update.
2455 * gnulib/import/m4/strdup.m4: Update.
2456 * gnulib/import/m4/strerror.m4: Update.
2457 * gnulib/import/m4/string_h.m4: Update.
2458 * gnulib/import/m4/strstr.m4: Update.
2459 * gnulib/import/m4/strtok_r.m4: Update.
2460 * gnulib/import/m4/sys_socket_h.m4: Update.
2461 * gnulib/import/m4/sys_stat_h.m4: Update.
2462 * gnulib/import/m4/sys_time_h.m4: Update.
2463 * gnulib/import/m4/sys_types_h.m4: Update.
2464 * gnulib/import/m4/tempname.m4: Update.
2465 * gnulib/import/m4/time_h.m4: Update.
2466 * gnulib/import/m4/unistd-safer.m4: Update.
2467 * gnulib/import/m4/unistd_h.m4: Update.
2468 * gnulib/import/m4/warn-on-use.m4: Update.
2469 * gnulib/import/m4/wchar_h.m4: Update.
2470 * gnulib/import/m4/wchar_t.m4: Update.
2471 * gnulib/import/m4/wctype_h.m4: Update.
2472 * gnulib/import/m4/wint_t.m4: Update.
2473 * gnulib/import/malloc.c: Update.
2474 * gnulib/import/malloc/scratch_buffer.h: Update.
2475 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2476 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2477 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2478 * gnulib/import/malloca.c: Update.
2479 * gnulib/import/malloca.h: Update.
2480 * gnulib/import/malloca.valgrind: Update.
2481 * gnulib/import/math.in.h: Update.
2482 * gnulib/import/mbrtowc.c: Update.
2483 * gnulib/import/mbsinit.c: Update.
2484 * gnulib/import/mbsrtowcs-impl.h: Update.
2485 * gnulib/import/mbsrtowcs-state.c: Update.
2486 * gnulib/import/mbsrtowcs.c: Update.
2487 * gnulib/import/memchr.c: Update.
2488 * gnulib/import/memmem.c: Update.
2489 * gnulib/import/mempcpy.c: Update.
2490 * gnulib/import/memrchr.c: Update.
2491 * gnulib/import/mkdir.c: Update.
2492 * gnulib/import/mkstemp.c: Update.
2493 * gnulib/import/msvc-inval.c: Update.
2494 * gnulib/import/msvc-inval.h: Update.
2495 * gnulib/import/msvc-nothrow.c: Update.
2496 * gnulib/import/msvc-nothrow.h: Update.
2497 * gnulib/import/open.c: Update.
2498 * gnulib/import/openat-die.c: Update.
2499 * gnulib/import/openat-priv.h: Update.
2500 * gnulib/import/openat-proc.c: Update.
2501 * gnulib/import/openat.c: Update.
2502 * gnulib/import/openat.h: Update.
2503 * gnulib/import/opendir.c: Update.
2504 * gnulib/import/pathmax.h: Update.
2505 * gnulib/import/pipe-safer.c: Update.
2506 * gnulib/import/rawmemchr.c: Update.
2507 * gnulib/import/readdir.c: Update.
2508 * gnulib/import/readlink.c: Update.
2509 * gnulib/import/realloc.c: Update.
2510 * gnulib/import/ref-add.sin: Update.
2511 * gnulib/import/ref-del.sin: Update.
2512 * gnulib/import/rename.c: Update.
2513 * gnulib/import/rewinddir.c: Update.
2514 * gnulib/import/rmdir.c: Update.
2515 * gnulib/import/same-inode.h: Update.
2516 * gnulib/import/save-cwd.c: Update.
2517 * gnulib/import/save-cwd.h: Update.
2518 * gnulib/import/scratch_buffer.h: Update.
2519 * gnulib/import/secure_getenv.c: Update.
2520 * gnulib/import/setenv.c: Update.
2521 * gnulib/import/signal.in.h: Update.
2522 * gnulib/import/stat-time.c: Update.
2523 * gnulib/import/stat-time.h: Update.
2524 * gnulib/import/stat-w32.c: Update.
2525 * gnulib/import/stat-w32.h: Update.
2526 * gnulib/import/stat.c: Update.
2527 * gnulib/import/stdbool.in.h: Update.
2528 * gnulib/import/stddef.in.h: Update.
2529 * gnulib/import/stdint.in.h: Update.
2530 * gnulib/import/stdio.in.h: Update.
2531 * gnulib/import/stdlib.in.h: Update.
2532 * gnulib/import/str-two-way.h: Update.
2533 * gnulib/import/strchrnul.c: Update.
2534 * gnulib/import/strdup.c: Update.
2535 * gnulib/import/streq.h: Update.
2536 * gnulib/import/strerror-override.c: Update.
2537 * gnulib/import/strerror-override.h: Update.
2538 * gnulib/import/strerror.c: Update.
2539 * gnulib/import/string.in.h: Update.
2540 * gnulib/import/stripslash.c: Update.
2541 * gnulib/import/strnlen1.c: Update.
2542 * gnulib/import/strnlen1.h: Update.
2543 * gnulib/import/strstr.c: Update.
2544 * gnulib/import/strtok_r.c: Update.
2545 * gnulib/import/sys_stat.in.h: Update.
2546 * gnulib/import/sys_time.in.h: Update.
2547 * gnulib/import/sys_types.in.h: Update.
2548 * gnulib/import/tempname.c: Update.
2549 * gnulib/import/tempname.h: Update.
2550 * gnulib/import/time.in.h: Update.
2551 * gnulib/import/unistd--.h: Update.
2552 * gnulib/import/unistd-safer.h: Update.
2553 * gnulib/import/unistd.in.h: Update.
2554 * gnulib/import/unsetenv.c: Update.
2555 * gnulib/import/verify.h: Update.
2556 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2557 * gnulib/import/wchar.in.h: Update.
2558 * gnulib/import/wctype.in.h: Update.
2559 * gnulib/import/xalloc-oversized.h: Update.
2560 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2561 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2562
2563 2018-08-16 Gary Benson <gbenson@redhat.com>
2564
2565 PR gdb/13000:
2566 * gdb/main.c (captured_main_1): Exit with nonzero status
2567 in batch mode if the last command to be executed failed.
2568 * NEWS: Mention the above.
2569
2570 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2571
2572 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2573 end of warning message.
2574
2575 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2576
2577 PR gdb/22943:
2578 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2579 (aarch64_extract_return_value): Use
2580 aapcs_is_vfp_call_or_return_candidate.
2581 (aarch64_return_in_memory): Likewise.
2582 (aarch64_store_return_value): Likewise.
2583
2584 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2585
2586 * aarch64-tdep.c
2587 (aapcs_is_vfp_call_or_return_candidate): Make static
2588 (pass_in_v_or_stack): Remove function.
2589 (pass_in_v_vfp_candidate): New function.
2590 (aarch64_push_dummy_call): Check for float register candidates.
2591
2592 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2593
2594 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2595 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2596 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2597
2598 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2599
2600 PR build/23399
2601 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2602 (struct ipa_sym_addresses): Rename to...
2603 (struct ipa_sym_addresses_common): ... this.
2604 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2605
2606 2018-08-28 Tom Tromey <tom@tromey.com>
2607
2608 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2609 (token_fifo): Now a std::vector.
2610 (yylex, c_parse): Update.
2611 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2612 (token_fifo): Now a std::vector.
2613 (yylex, d_parse): Update.
2614 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2615 (token_fifo): Now a std::vector.
2616 (yylex, go_parse): Update.
2617
2618 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2619
2620 * parser-defs.h (struct type_stack) <elements>: Change type to
2621 std::vector<union type_stack_elt>.
2622 <depth, size>: Remove.
2623 * parse.c (parse_exp_in_context_1): Adjust.
2624 (type_stack_reserve): Remove.
2625 (check_type_stack_depth): Remove.
2626 (insert_into_type_stack): Adjust to std::vector.
2627 (insert_type): Likewise.
2628 (push_type): Likewise.
2629 (push_type_int): Likewise.
2630 (insert_type_address_space): Likewise.
2631 (pop_type): Likewise.
2632 (pop_type_int): Likewise.
2633 (pop_typelist): Likewise.
2634 (pop_type_stack): Likewise.
2635 (append_type_stack): Likewise.
2636 (push_type_stack): Likewise.
2637 (get_type_stack): Likewise.
2638 (type_stack_cleanup): Likewise.
2639 (push_typelist): Likewise.
2640 (follow_types): Likewise.
2641 (_initialize_parse): Likewise.
2642
2643 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2644
2645 * NEWS: Mention csky target.
2646
2647 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2648 Hafiz Abid Qadeer <abidh@codesourcery.com>
2649 Don Breazeal <donb@codesourcery.com>
2650
2651 * csky-linux-tdep.c: New file.
2652 * csky-tdep.c: Likewise.
2653 * csky-tdep.h: Likewise.
2654 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2655 csky-tdep.o.
2656 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2657 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2658 * configure.tgt: Add csky support.
2659
2660 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2661
2662 * python/py-framefilter.c (py_print_frame): Print frame architecture
2663 when printing on an MI output.
2664
2665 2018-08-27 Tom Tromey <tom@tromey.com>
2666
2667 PR build/23087:
2668 * configure: Rebuild.
2669 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2670
2671 2018-08-27 Tom Tromey <tom@tromey.com>
2672
2673 * aarch64-linux-tdep.c
2674 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2675 casts to int.
2676
2677 2018-08-27 Tom Tromey <tom@tromey.com>
2678
2679 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2680 unsigned.
2681 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2682 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2683 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2684 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2685 unsigned.
2686
2687 2018-08-27 Tom Tromey <tom@tromey.com>
2688
2689 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2690 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2691
2692 2018-08-27 Tom Tromey <tom@tromey.com>
2693
2694 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2695 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2696 ULONGEST_MAX.
2697 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2698 ULONGEST_MAX.
2699 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2700 ULONGEST_MAX.
2701 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2702 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2703 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2704 ULONGEST_MAX.
2705 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2706 (ppc64_linux_sigaction_tramp_frame)
2707 (ppc32_linux_sighandler_tramp_frame)
2708 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2709 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2710 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2711 * mn10300-linux-tdep.c (am33_linux_sigframe)
2712 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2713 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2714 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2715 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2716 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2717 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2718 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2719 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2720 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2721 * microblaze-linux-tdep.c
2722 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2723 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2724 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2725 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2726 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2727 * common/common-types.h (ULONGEST_MAX): New define.
2728 (CORE_ADDR_MAX): Fix formatting.
2729 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2730 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2731 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2732 (arm_linux_rt_sigreturn_tramp_frame)
2733 (arm_eabi_linux_sigreturn_tramp_frame)
2734 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2735 (thumb2_eabi_linux_sigreturn_tramp_frame)
2736 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2737 (arm_linux_restart_syscall_tramp_frame)
2738 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2739 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2740 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2741 ULONGEST_MAX.
2742 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2743
2744 2018-08-27 Tom Tromey <tom@tromey.com>
2745
2746 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2747 CORE_ADDR_MAX.
2748 * mips-tdep.c (mips_deal_with_atomic_sequence)
2749 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2750 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2751 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2752 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2753 CORE_ADDR_MAX.
2754 * aarch64-tdep.c (aarch64_software_single_step): Use
2755 CORE_ADDR_MAX.
2756
2757 2018-08-27 Tom Tromey <tom@tromey.com>
2758
2759 * linespec.c (complete_linespec_component): Add cast to "char".
2760 * completer.c (completion_tracker::build_completion_result): Add
2761 cast to "char".
2762
2763 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2764
2765 * solist.h (struct solist, struct target_so_ops): Fix
2766 indentation.
2767
2768 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2769
2770 * ada-tasks.c (ada_task_info_s): Remove typedef.
2771 (DEF_VEC_O(ada_task_info_s)): Remove.
2772 (struct ada_tasks_inferior_data): Initialize fields.
2773 <task_list>: Make an std::vector.
2774 (get_ada_tasks_inferior_data): Allocate with new.
2775 (ada_get_task_number): Adjust.
2776 (get_task_number_from_id): Likewise.
2777 (valid_task_id): Likewise.
2778 (ada_get_task_info_from_ptid): Likewise.
2779 (iterate_over_live_ada_tasks): Likewise.
2780 (add_ada_task): Likewise.
2781 (read_known_tasks): Likewise.
2782 (ada_build_task_list): Likewise.
2783 (print_ada_task_info): Likewise.
2784 (info_task): Likewise.
2785 (task_command_1): Likewise.
2786
2787 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * ada-lang.c (add_angle_brackets): Return std::string.
2790
2791 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * python/py-threadevent.c (py_get_event_thread): Initialize
2794 pythread.
2795
2796 2018-08-24 Pedro Alves <palves@redhat.com>
2797
2798 * python/py-bpevent.c (create_breakpoint_event_object): Use
2799 copy-initialization.
2800 * python/py-continueevent.c (emit_continue_event): Use
2801 copy-initialization.
2802 * python/py-exitedevent.c (create_exited_event_object): Return a
2803 gdbpy_ref<>.
2804 (emit_exited_event): Use copy-initialization.
2805 * python/py-inferior.c (python_new_inferior)
2806 (python_inferior_deleted, add_thread_object): Use
2807 copy-initialization.
2808 * python/py-infevents.c (create_inferior_call_event_object)
2809 (create_register_changed_event_object)
2810 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2811 (emit_inferior_call_event, emit_memory_changed_event)
2812 (emit_register_changed_event): Use copy-initialization.
2813 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2814 Return a gdbpy_ref<>.
2815 (emit_new_objfile_event): Use copy-initialization.
2816 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2817 (emit_clear_objfiles_event): Use copy-initialization.
2818 * python/py-signalevent.c (create_signal_event_object): Use
2819 copy-initialization.
2820 * python/py-threadevent.c (create_thread_event_object): Use
2821 copy-initialization.
2822
2823 2018-08-24 Pedro Alves <palves@redhat.com>
2824 Simon Marchi <simon.marchi@ericsson.com>
2825
2826 PR gdb/23379
2827 * python/py-continueevent.c: Include "gdbthread.h".
2828 (create_continue_event_object): Add intro comment. Add 'ptid'
2829 parameter. Use it to find thread to pass to
2830 create_thread_event_object.
2831 (emit_continue_event): Pass PTID down to
2832 create_continue_event_object.
2833 * python/py-event.h (py_get_event_thread): Declare.
2834 (create_thread_event_object): Remove default from 'thread'
2835 parameter.
2836 * python/py-stopevent.c (create_stop_event_object): Use
2837 py_get_event_thread.
2838 * python/py-threadevent.c (get_event_thread): Rename to ...
2839 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2840 and use it to find the thread.
2841 (create_thread_event_object): Assert that THREAD isn't null.
2842 Don't find the event thread here.
2843
2844 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2845
2846 * block.h (blockrange, blockranges): New struct declarations.
2847 (struct block): Add new field named `ranges'.
2848 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2849 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2850 macros for accessing ranges in struct block.
2851 (make_blockranges): New declaration.
2852 block.c (make_blockranges): New function.
2853 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2854 for block.
2855 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2856 * blockframe.c (cache_pc_function_block): New static global.
2857 (clear_pc_function_cache): Clear cache_pc_function_block.
2858 (find_pc_partial_function): Move comment to symtab.h. Add
2859 support for non-contiguous blocks.
2860 * cli/cli-cmds.c (block.h): Include.
2861 (print_disassembly): Handle printing of non-contiguous blocks.
2862 (disassemble_current_function): Likewise.
2863 (disassemble_command): Likewise.
2864
2865 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2866 BLOCK_START.
2867 * blockframe.c (get_pc_function_start): Likewise.
2868 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2869 (gcc_symbol_address): Likewise.
2870 * compile/compile-object-run.c (compile_object_run): Likewise.
2871 * compile/compile.c (get_expr_block_and_pc): Likewise.
2872 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2873 (func_addr_to_tail_call_list): Likewise.
2874 * findvar.c (default_read_var_value): Likewise.
2875 * inline-frame.c (inline_frame_this_id): Likewise.
2876 (skip-inline_frames): Likewise.
2877 * infcmd.c (until_next_command): Likewise.
2878 * linespec.c (convert_linespec_to_sals): Likewise.
2879 * parse.c (parse_exp_in_context_1): Likewise.
2880 * printcmd.c (build_address_symbolic): likewise.
2881 (info_address_command): Likewise.
2882 symtab.c (find_function_start_sal): Likewise.
2883 (skip_prologue_sal): Likewise.
2884 (find_function_alias_target): Likewise.
2885 (find_gnu_ifunc): Likewise.
2886 * stack.c (find_frame_funname): Likewise.
2887 * symtab.c (fixup_symbol_section): Likewise.
2888 (find_function_start_sal): Likewise.
2889 (skip_prologue_sal): Likewsie.
2890 (find_function_alias_target): Likewise.
2891 (find_gnu_ifunc): Likewise.
2892 * tracepoint.c (info_scope_command): Likewise.
2893 * value.c (value_fn_field): Likewise.
2894
2895 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2896 in place of find_pc_partial_function.
2897 * blockframe.c (find_function_entry_range_from_pc): New function.
2898 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2899 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2900 for each range in a block.
2901
2902
2903 2018-08-23 Xavier Roirand <roirand@adacore.com>
2904
2905 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2906 incrementation.
2907
2908 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * solib-svr4.c (read_program_headers_from_bfd): Return
2911 gdb::optional<gdb::byte_vector>.
2912 (svr4_exec_displacement): Adjust.
2913
2914 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * solib-svr4.c (read_program_header): Return
2917 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2918 (find_program_interpreter): Return
2919 gdb::optional<gdb::byte_vector>.
2920 (scan_dyntag_auxv): Adjust.
2921 (enable_break): Adjust.
2922 (svr4_exec_displacement): Adjust.
2923
2924 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2927 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2928
2929 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2932 string_vprintf.
2933 * guile/scm-utils.c (gdbscm_printf): Likewise.
2934 * serial.c (serial_printf): Likewise.
2935 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2936
2937 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2938
2939 * stack.c (print_frame): Print frame architecture when printing on
2940 an MI output.
2941 * NEWS: Mention new "arch" attribute in frame output.
2942
2943 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2944
2945 * arch/aarch64.h (aarch64_regnum): Update comment.
2946
2947 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2948
2949 * NEWS: Add SVE to 8.2 section.
2950
2951 2018-08-21 Pedro Alves <palves@redhat.com>
2952
2953 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2954 out from gdbscm_parse_function_args.
2955 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2956 gdbscm_parse_function_args_1.
2957
2958 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2959
2960 PR gdb/17816
2961 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2962 operator.
2963
2964 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2967
2968 2018-08-19 Michael Spang <spang@google.com>
2969
2970 PR gdb/11786
2971 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2972 for PT_TLS segments.
2973
2974 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2975
2976 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2977 dwarf_variable_value.
2978 * dwarf2-frame.c (class dwarf_expr_executor):
2979 Add override for dwarf_variable_value.
2980 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2981 (class symbol_needs_eval_context): Likewise.
2982 (indirect_synthetic_pointer): Add forward declaration.
2983 (sect_variable_value): New function.
2984 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2985 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2986 for DW_OP_GNU_variable_value.
2987
2988 2018-08-16 Tom Tromey <tom@tromey.com>
2989
2990 * top.c (read_command_file): Update.
2991 (command_line_input): Remove "repeat" argument.
2992 * ada-lang.c (get_selections): Update.
2993 * linespec.c (decode_line_2): Update.
2994 * defs.h (command_line_input): Remove argument.
2995 * cli/cli-script.c (read_next_line): Update.
2996 * python/py-gdb-readline.c: Update.
2997
2998 2018-08-17 Tom Tromey <tom@tromey.com>
2999
3000 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3001 command_line_input.
3002
3003 2018-08-15 Tom Tromey <tom@tromey.com>
3004
3005 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3006
3007 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3008
3009 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3010 If used, use find_pc_partial_function to find address range
3011 to disassemble.
3012 * mi/mi-main.c (mi_cmd_list_features): Report
3013 "data-disassemble-a-option" feature.
3014 * NEWS: Mention new -data-disassemble option -a.
3015
3016 2018-08-13 Tom Tromey <tom@tromey.com>
3017
3018 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3019
3020 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3021
3022 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3023 (aarch64_linux_collect_sve_regset): Likewise.
3024 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3025 * regcache.h (regcache_map_entry_size): New function.
3026
3027 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3028
3029 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3030 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3031 (SVE_HEADER_VL_LENGTH): Likewise.
3032 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3033 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3034 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3035 (SVE_HEADER_SIZE_OFFSET): Likewise.
3036 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3037 (SVE_HEADER_VL_OFFSET): Likewise.
3038 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3039 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3040 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3041 (SVE_HEADER_SIZE): Likewise.
3042 (aarch64_linux_core_read_vq): Add function.
3043 (aarch64_linux_core_read_description): Check for SVE section.
3044
3045 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3046
3047 * aarch64-fbsd-tdep.c
3048 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3049 collect_size.
3050 * aarch64-linux-tdep.c
3051 (aarch64_linux_iterate_over_regset_sections): Likewise.
3052 * alpha-linux-tdep.c
3053 (alpha_linux_iterate_over_regset_sections):
3054 * alpha-nbsd-tdep.c
3055 (alphanbsd_iterate_over_regset_sections): Likewise.
3056 * amd64-fbsd-tdep.c
3057 (amd64fbsd_iterate_over_regset_sections): Likewise.
3058 * amd64-linux-tdep.c
3059 (amd64_linux_iterate_over_regset_sections): Likewise.
3060 * arm-bsd-tdep.c
3061 (armbsd_iterate_over_regset_sections): Likewise.
3062 * arm-fbsd-tdep.c
3063 (arm_fbsd_iterate_over_regset_sections): Likewise.
3064 * arm-linux-tdep.c
3065 (arm_linux_iterate_over_regset_sections): Likewise.
3066 * corelow.c (get_core_registers_cb): Likewise.
3067 (core_target::fetch_registers): Likewise.
3068 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3069 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3070 * gdbarch.h (void): Regenerate.
3071 * gdbarch.sh: Add supply_size and collect_size.
3072 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3073 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3074 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3075 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3076 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3077 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3078 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3079 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3080 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3081 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3082 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3083 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3084 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3085 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3086 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3087 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3088 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3089 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3090 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3091 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3092 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3093 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3094 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3095 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3096 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3097 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3098 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3099 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3100 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3101 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3102
3103 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3104
3105 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3106 with string_printf.
3107
3108 2018-08-10 Keith Seitz <keiths@redhat.com>
3109
3110 * compile/compile-c-support.c (add_code_header, add_code_footer):
3111 Move into policy class.
3112 (c_push_user_expression, pop_user_expression_nop)
3113 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3114 (compile_program): New host class.
3115 (c_compile_program): New typedef.
3116 (c_compute_porgram): Use c_compile_program.
3117
3118 2018-08-10 Keith Seitz <keiths@redhat.com>
3119
3120 * compile/compile-internal.h (compile_instance::~compile_instance):
3121 Remove calls to htab_delete.
3122 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3123 * compile.c (compile_instance::compile_instance): Initialize
3124 htab unique pointers.
3125 (compile_instance::get_cached_type, compile_instance::insert_type)
3126 (compile_instance::error_symbol_once): Update for unique_ptr.
3127
3128 2018-08-10 Keith Seitz <keiths@redhat.com>
3129
3130 * compile/compile-c-symbols.c (struct symbol_error)
3131 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3132 (compile_instance::insert_symbol_error)
3133 (compile_instance::error_symbol_once): Move to ...
3134 * compile/compile.c: ... here.
3135
3136 2018-08-10 Keith Seitz <keiths@redhat.com>
3137
3138 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3139 instead of `new_compile_instance'.
3140 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3141 Update description.
3142 If the symbol error map is not initialized, create it.
3143 (generate_c_for_for_one_symbol): Do not check/initialize
3144 the symbol error map.
3145 * compile/compile-c-types.c (compile_c_instance): Make a class.
3146 Update all callers.
3147 (compile_instance::compile_instance): Initialize the type cache.
3148 (get_cached_type): New function.
3149 (insert_type): Update description.
3150 (compile_c_instance::m_default_cflags): Define.
3151 (convert_type): Update description. Use get_cached_type.
3152 (delete_instance): Moved to destructor.
3153 (new_compile_instance): Moved to constructor.
3154 * compile/compile-c.h (compile_c_instance): Make class inheriting
3155 from compile_instance.
3156 <base>: Remove field.
3157 <type_map, symbol_err_map>: Move to base class.
3158 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3159 * compile/compile-internal.h (compile_instance): Make class.
3160 <type_map_t, symbol_err_map_t>: Define.
3161 <fe>: Rename to `m_gcc_fe'.
3162 <scope, block, gcc_target_options>: Add `m_' prefix.
3163 <m_type_map, m_symbol_err_map>: New fields, moved from
3164 compile_c_instance.
3165 <destroy>: Remove.
3166 (convert_type, new_compile_instance): Remove.
3167 * compile/compile.c (cleanup_compile_instance): Remove.
3168 (compile_to_object): Use unique_ptr to eliminate cleanups.
3169 (compile_instance::set_print_callback, compile_instance::version)
3170 (compile_instance::set_verbose)
3171 (compile_instance::set_driver_filename)
3172 (compile_instance::set_triplet_regexp)
3173 (compile_instance::set_arguments)
3174 (compile_instance::set_source_file)
3175 (compile_instance::compile): Define.
3176
3177 2018-08-10 Keith Seitz <keiths@redhat.com>
3178
3179 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3180 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3181 gcc-c-fe.def to define C plugin.
3182 (delete_instance): Delete `c_plugin'.
3183 (new_compile_instance): Initialize `c_plugin'.
3184 * compile/compile-c.h: Include gcc_c_plugin.h.
3185 (struct compile_c_instance) <c_plugin>: New member.
3186 * gcc-c-plugin.h: New file.
3187 Update all callers with API change.
3188
3189 2018-08-10 Keith Seitz <keiths@redhat.com>
3190
3191 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3192 (HFILES_NO_SRCDIR): ... to here.
3193 Add compile-internal.h and compile-c.h.
3194 * compile/compile-c-support.c: Include compile-c.h.
3195 * compile/compile-c-symbols.c: Include compile-c.h.
3196 (generate_c_for_variable_locations): Update comment.
3197 * compile/compile-c-types.c: Include compile-c.h.
3198 * compile/compile-c.h: New file -- moved C language declarations
3199 from other files here.
3200 * compile/compile-internal.h: Do not include hashtab.h or
3201 common/enum-flags.h.
3202 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3203 (gcc_convert_symbol, gcc_symbol_address)
3204 (generate_c_for_variable_locations, c_get_mode_for_size)
3205 (c_get_range_decl_name): Definitions moved to compile-c.h.
3206 * compile/compile-loc2c.c: Include compile-c.h.
3207
3208 2018-08-10 Keith Seitz <keiths@redhat.com>
3209
3210 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3211 (c_symbol_substitution_name): ... this.
3212 Update all callers.
3213
3214 2018-08-10 Keith Seitz <keiths@redhat.com>
3215
3216 * compile/compile-c-support.c (c_compute_program): Use
3217 unique_xmalloc_ptr to eliminate cleanup.
3218 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3219 Return a unique_xmalloc_ptr and eliminate cleanup.
3220 * compile/compile-internal.h (generate_c_for_variable_locations):
3221 Return unique_xmalloc_ptr and update description.
3222
3223 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3224
3225 * corelow.c (core_target::get_core_register_section): Rename
3226 min_size to section_min_size.
3227
3228 2018-08-09 Jim Wilson <jimw@sifive.com>
3229
3230 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3231 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3232 * NEWS: Mention new GNU/Linux RISC-V target.
3233 * configure.host: Add riscv*-*-linux*.
3234 * configure.nat: Add riscv*.
3235 * configure.tgt: Add riscv*-*-linux*.
3236 * riscv-linux-nat.c: New file.
3237 * riscv-linux-tdep.c: New file.
3238
3239 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3240
3241 * infrun.c (resume): Make static, add forward declaration.
3242 (proceed): Update header comment.
3243 * infrun.h (resume): Delete declaration.
3244
3245 2018-08-09 Tom Tromey <tom@tromey.com>
3246
3247 * riscv-tdep.h: Minor formatting fixes.
3248
3249 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3250
3251 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3252 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3253 (test_mkdir_recursive): Likewise.
3254 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3255
3256 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3257
3258 * valarith.c (value_subscripted_rvalue): If an array is not in
3259 memory, and we don't know the upper bound, then we can't know that
3260 the requested element exists or not.
3261
3262 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3263
3264 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3265 (target_options_to_string): Add comment.
3266
3267 2018-08-08 Tom Tromey <tom@tromey.com>
3268
3269 * unittests/scoped_mmap-selftests.c: Check result of "write".
3270
3271 2018-08-08 Jim Wilson <jimw@sifive.com>
3272
3273 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3274 (decode_register_index_short): New.
3275 (decode_j_type_insn, decode_cj_type_insn): New.
3276 (decode_b_type_insn, decode_cb_type_insn): New.
3277 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3278 local xlen. Check xlen when decoding ambiguous compressed insns. In
3279 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3280 is_c_sw_insn instead of is_sw_insn.
3281 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3282 (riscv_software_single_step): New.
3283 * riscv-tdep.h (riscv_software_single_step): Declare.
3284
3285 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3286 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3287
3288 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 PR gdb/18050:
3291 * target.c (dispose_inferior): Don't dispose of inferiors that are
3292 already killed.
3293
3294 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3295
3296 * remote.c (remote_target::download_tracepoint): Change char* to
3297 const char*.
3298
3299 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * target.h (target_options_to_string): Return an std::string.
3302 * target.c (str_comma_list_concat_elem): Return void, use
3303 std::string.
3304 (do_option): Likewise.
3305 (target_options_to_string): Return an std::string.
3306 * linux-nat.c (linux_nat_target::wait): Adjust.
3307 * target-debug.h (target_debug_print_options): Adjust.
3308
3309 2018-08-07 Tom Tromey <tom@tromey.com>
3310
3311 * Makefile.in (CPPFLAGS): New variable.
3312 (INTERNAL_CPPFLAGS): Use it.
3313
3314 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3315
3316 * NEWS: Mention the index cache.
3317
3318 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3319
3320 * common/pathstuff.h (get_standard_cache_dir): New.
3321 * common/pathstuff.c (get_standard_cache_dir): New.
3322 * build-id.h (build_id_to_string): New.
3323 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3324 DEBUG_STR_SUFFIX): Move to here.
3325 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3326 DEBUG_STR_SUFFIX): Move from there.
3327 (write_psymtabs_to_index): Make non-static, add basename
3328 parameter. Write to temporary files, rename when done.
3329 (save_gdb_index_command): Adjust call to
3330 write_psymtabs_to_index.
3331 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3332 field.
3333 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3334 (get_gdb_index_contents_from_cache): New.
3335 (get_gdb_index_contents_from_cache_dwz): New.
3336 (dwarf2_initialize_objfile): Read index from cache.
3337 (dwarf2_build_psymtabs): Save to index.
3338 * dwarf-index-cache.h: New file.
3339 * dwarf-index-cache.c: New file.
3340 * dwarf-index-write.h: New file.
3341
3342 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3343
3344 * gnulib/aclocal.m4: Re-generate.
3345 * gnulib/config.in: Re-generate.
3346 * gnulib/configure: Re-generate.
3347 * gnulib/import/Makefile.am: Re-generate.
3348 * gnulib/import/Makefile.in: Re-generate.
3349 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3350 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3351 * gnulib/import/m4/mkdir.m4: New file.
3352 * gnulib/import/mkdir.c: New file.
3353 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3354 module.
3355
3356 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3357
3358 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3359 * common/scoped_mmap.c: New file.
3360 * common/scoped_mmap.h (destroy): New method.
3361 (~scoped_mmap, reset): Use destroy.
3362 (scoped_mmap): New move constructor.
3363 (mmap_file): New declaration.
3364 * unittests/scoped_mmap-selftests.c (test_normal,
3365 test_invalid_filename, run_tests): New functions.
3366 (_initialize_scoped_mmap_selftests): Register selftest.
3367
3368 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3369
3370 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3371 (read_gdb_index_from_buffer): ... this. Remove section
3372 parameter, add buffer parameter.
3373 (get_gdb_index_contents_ftype,
3374 get_gdb_index_contents_dwz_ftype): New typedefs.
3375 (dwarf2_read_gdb_index): Add callback parameters to get the
3376 index contents.
3377 (get_gdb_index_contents_from_section): New.
3378 (dwarf2_initialize_objfile): Update call to
3379 dwarf2_read_gdb_index.
3380
3381 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3382
3383 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3384 (gdb_open_cloexec): Likewise.
3385 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3386 (commandline_from_pid): Likewise.
3387 (linux_xfer_osdata_threads): Likewise.
3388 (linux_xfer_osdata_fds): Likewise.
3389 * ada-lang.c (is_package_name): Likewise.
3390 * auxv.c (procfs_xfer_auxv): Likewise.
3391 * breakpoint.c (print_one_breakpoint_location): Use
3392 uiout::field_fmt.
3393 (print_one_catch_solib): Use string_printf.
3394 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3395 (add_pe_forwarded_sym): Likewise.
3396 * dwarf2read.c (create_type_unit_group): Likewise.
3397 (build_error_marker_type): Likewise.
3398 * infcall.c (get_function_name): Likewise.
3399 * valprint.c (print_converted_chars_to_obstack): Likewise.
3400 * xtensa-tdep.c (xtensa_register_type): Likewise.
3401
3402 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3403
3404 * remote.c (remote_target::download_tracepoint): Fix format
3405 string errors.
3406
3407 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3408
3409 * tracefile.c: Include common/byte-vector.h.
3410 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3411 with trace_regblock_size if needed. Update uses of buf.
3412
3413 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3414
3415 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3416 std::vector<unsigned char>.
3417 * tracepoint.c (collection_list::collection_list): Remove
3418 m_regs_mask initializer from initializer list. Resize
3419 m_regs_mask using the largest remote register number.
3420 (collection_list::add_remote_register): Remove size check on
3421 m_regs_mask. Use at to access element.
3422 (collection_list::stringify): Change type of temp_buf to
3423 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3424 stringify the register mask. Use pack_hex_byte for the register
3425 mask.
3426
3427 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3428
3429 * tracepoint.h (class collection_list) <add_register>: Remove.
3430 <add_remote_register, add_ax_registers, add_local_register>:
3431 Declare.
3432 <add_memrange>: Add scope parameter.
3433 * tracepoint.c (encode_actions_1): Likewise.
3434 (collection_list::add_register): Rename to ...
3435 (collection_list::add_remote_register): ... this. Update
3436 comment.
3437 (collection_list::add_ax_registers, add_local_register): New
3438 methods.
3439 (collection_list::add_memrange): Add scope parameter. Call
3440 add_local_register instead of add_register.
3441 (finalize_tracepoint_aexpr): New function.
3442 (collection_list::collect_symbol): Update calls to add_memrange.
3443 Call add_local_register instead of add_register. Call
3444 add_ax_registers. Call finalize_tracepoint_aexpr.
3445 (encode_actions_1): Get remote regnos for $reg action. Call
3446 add_remote_register, add_ax_registers, and add_local_register.
3447 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3448 (validate_actionline): Call finalize_tracepoint_aexpr.
3449
3450 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3451
3452 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3453 Replace array buf with gdb::char_vector buf, of size
3454 get_remote_packet_size (). Replace references to buf and
3455 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3456 and xsnprintf with snprintf. Raise errors if the buffer is too
3457 small.
3458
3459 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3460
3461 * remote.c (remote_target::download_tracepoint): Fix the has_more
3462 predicate in the QTDP action list iteration.
3463
3464 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3465
3466 * remote.c (remote_target::download_tracepoint): Fix indentation
3467 in for block.
3468
3469 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3470
3471 * proc-api.c (_initialize_proc_api): Remove c, unused.
3472 * procfs.c (procfs_init_inferior): Remove signals, unused.
3473 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3474 unused.
3475
3476 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3477 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3480 'W_STOPCODE (0)' as this could be ambiguous.
3481
3482 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3483
3484 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3485 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3486 "ai_socktype").
3487
3488 2018-08-02 Tom Tromey <tom@tromey.com>
3489
3490 PR symtab/16842.
3491 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3492 symbols.
3493 (process_structure_scope): Likewise.
3494
3495 2018-08-02 Xavier Roirand <roirand@adacore.com>
3496
3497 PR gdb/22629:
3498 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3499 kill inferior.
3500
3501 2018-08-02 Tom Tromey <tom@tromey.com>
3502
3503 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3504 (darwin_suspend_inferior, darwin_resume_inferior)
3505 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3506 (darwin_check_new_threads): Check result of get_darwin_inferior.
3507
3508 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3509
3510 GDB 8.1.1 released.
3511
3512 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3513
3514 * varobj.c (varobj_get_path_expr_parent): Report an error if
3515 parent is a dynamic varobj.
3516
3517 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3518
3519 * gnulib/aclocal.m4: Re-generate.
3520 * gnulib/config.in: Re-generate.
3521 * gnulib/configure: Re-generate.
3522 * gnulib/import/Makefile.in: Re-generate.
3523 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3524 * gnulib/import/m4/onceonly.m4: Re-generate.
3525
3526 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3527
3528 * target-descriptions.c (struct xml_test_tdesc): New.
3529 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3530 (record_xml_tdesc): Update.
3531 (maintenance_check_xml_descriptions): Update.
3532 * target-descriptions.h (record_xml_tdesc): Update comment.
3533
3534 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3537 checking array bounds are defined.
3538
3539 2018-07-30 Tom Tromey <tom@tromey.com>
3540
3541 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3542 irreflexivity violation.
3543
3544 2018-07-30 Tom Tromey <tom@tromey.com>
3545
3546 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3547 * value.c (unpack_long): Remove lint code.
3548 * valops.c (value_ind): Remove lint code.
3549 * valarith.c (value_x_binop, value_x_unop, value_equal)
3550 (value_pos): Remove lint code.
3551
3552 2018-07-28 Tom de Vries <tdevries@suse.de>
3553
3554 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3555 with undefined upper bound as <optimized out>.
3556
3557 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3558
3559 * gcore.in: Rename variable "name" to "prefix". Expand
3560 "usage" text.
3561
3562 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3563
3564 * windows-nat.c (windows_nat_target::create_inferior): Update to
3565 call close() in global namespace.
3566
3567 2018-07-26 Tom Tromey <tom@tromey.com>
3568
3569 * dwarf-index-write.c (add_address_entry): Don't add objfile
3570 offsets.
3571 * dbxread.c (find_stab_function): Rename from
3572 find_stab_function_addr. Return a bound_minimal_symbol.
3573 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3574 Don't add objfile offsets.
3575 (end_psymtab): Use raw_text_low, raw_text_high,
3576 MSYMBOL_VALUE_RAW_ADDRESS.
3577 (read_ofile_symtab): Update.
3578 (process_one_symbol): Update.
3579 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3580 offsets.
3581 (dw2_relocate): Remove.
3582 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3583 searching addrmap.
3584 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3585 Update.
3586 (process_psymtab_comp_unit_reader, add_partial_symbol)
3587 (add_partial_subprogram, dwarf2_ranges_read): Update.
3588 (load_partial_dies): Update.
3589 (add_address_entry): Don't add objfile offsets.
3590 (dwarf2_build_include_psymtabs): Update.
3591 (create_addrmap_from_aranges): Don't add objfile offsets.
3592 (dw2_find_pc_sect_compunit_symtab): Update.
3593 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3594 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3595 Update.
3596 (parse_partial_symbols): Don't add objfile offsets. Use
3597 raw_text_low, raw_text_high. Update.
3598 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3599 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3600 or call 'relocate' quick function. Clear psymbol_map.
3601 * psympriv.h (struct partial_symbol) <address>: Add section
3602 offset.
3603 <set_unrelocated_address>: Rename from set_address.
3604 <raw_text_low, raw_text_high>: New methods.
3605 <text_low, text_high>: Add objfile parameter.
3606 (add_psymbol_to_bcache): Add 'section' parameter. Call
3607 set_unrelocated_address.
3608 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3609 (find_pc_psymbol): Update.
3610 (fixup_psymbol_section, relocate_psymtabs): Remove.
3611 (dump_psymtab, psym_functions): Update.
3612 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3613 parameter.
3614 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3615 (start_psymtab_common): Update.
3616 * symfile-debug.c (debug_qf_relocate): Remove.
3617 (debug_sym_quick_functions): Update.
3618 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3619 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3620 Update.
3621
3622 2018-07-26 Tom Tromey <tromey@redhat.com>
3623
3624 * dbxread.c (end_psymtab): Use text_high_valid and
3625 text_low_valid.
3626 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3627 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3628 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3629 Update comment.
3630 <text_low_valid, text_high_valid>: New fields.
3631 <set_text_low, set_text_high>: Update.
3632 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3633
3634 2018-07-26 Tom Tromey <tom@tromey.com>
3635
3636 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3637 Update.
3638 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3639 textlow and texthigh fields.
3640 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3641 Update.
3642 * mdebugread.c (parse_lines, parse_partial_symbols)
3643 (psymtab_to_symtab_1): Update.
3644 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3645 Rename fields. Update comment. Now private.
3646 <text_low, text_high, set_text_low, set_text_high>: New methods.
3647 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3648 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3649 (start_psymtab_common, maintenance_info_psymtabs)
3650 (maintenance_check_psymtabs): Update.
3651 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3652 texthigh fields.
3653 (scan_xcoff_symtab): Update.
3654
3655 2018-07-26 Tom Tromey <tromey@redhat.com>
3656
3657 * psympriv.h (struct partial_symbol) <unrelocated_address,
3658 address, set_address>: New methods.
3659 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3660 (fixup_psymbol_section, relocate_psymtabs): Update.
3661 (print_partial_symbols): Add 'objfile' parameter. Update.
3662 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3663 Update.
3664
3665 2018-07-26 Tom Tromey <tom@tromey.com>
3666
3667 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3668 (debug_names::write_psymbols): Update.
3669 * psympriv.h (struct partial_symbol): Derive from
3670 general_symbol_info.
3671 <obj_section>: New method.
3672 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3673 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3674 (find_pc_sect_psymbol, fixup_psymbol_section)
3675 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3676 (print_partial_symbols, recursively_search_psymtabs)
3677 (compare_psymbols, psymbol_hash, psymbol_compare)
3678 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3679 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3680
3681 2018-07-26 Tom Tromey <tromey@redhat.com>
3682
3683 * dbxread.c (end_psymtab): Remove dead code.
3684
3685 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3686
3687 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3688 DWARF unwinders are disabled.
3689 * dwarf2-frame.c: Add dwarf2read.h include.
3690 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3691 disabled.
3692 (dwarf2_frame_unwinders_enabled_p): Define.
3693 (show_dwarf_unwinders_enabled_p): New function.
3694 (_initialize_dwarf2_frame): Register switch to control DWARF
3695 unwinder use.
3696 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3697 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3698 (show_dwarf_cmdlist): Remove static keyword.
3699 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3700 (show_dwarf_cmdlist): Declare.
3701 * NEWS: Document new feature.
3702
3703 2018-07-26 Tom de Vries <tdevries@suse.de>
3704
3705 PR breakpoints/23366
3706 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3707
3708 2018-07-26 Tom de Vries <tdevries@suse.de>
3709
3710 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3711 DW_AT_count can't be translated to a dynamic prop.
3712
3713 2018-07-25 Tom de Vries <tdevries@suse.de>
3714
3715 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3716 try/catch.
3717
3718 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3719
3720 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3721
3722 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3723
3724 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3725
3726 2018-07-24 Keith Seitz <keiths@redhat.comt
3727
3728 PR symtab/23010
3729 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3730 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3731 instead of add_symbol_to_list.
3732 (read_file_scope): Call prepare_one_comp_unit before reading
3733 any other DIEs.
3734
3735 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3736
3737 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3738
3739 2018-07-24 Tom Tromey <tom@tromey.com>
3740
3741 * utils.c (malloc, realloc, free): Don't declare.
3742 * configure, config.in: Rebuild.
3743 * configure.ac: Don't check for declarations of free, malloc, or
3744 realloc.
3745
3746 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3747
3748 * aarch64-linux-nat.c
3749 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3750 variable.
3751 * arm-linux-nat.c (fetch_regs): Likewise.
3752 (store_regs): Likewise.
3753 (fetch_vfp_regs): Likewise.
3754 (store_vfp_regs): Likewise.
3755 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3756 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3757 (arm_linux_nat_target::insert_watchpoint): Likewise.
3758 (arm_linux_nat_target::remove_watchpoint): Likewise.
3759 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3760 Likewise.
3761 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3762 Likewise.
3763 * ppc-linux-nat.c (fetch_register): Likewise.
3764 (fetch_all_gp_regs): Likewise.
3765 (fetch_ppc_registers): Likewise.
3766 (store_all_gp_regs): Likewise.
3767 (store_ppc_registers): Likewise.
3768 (hwdebug_insert_point): Likewise.
3769 (can_use_watchpoint_cond_accel): Likewise.
3770 * remote-sim.c (gdb_os_write_stdout): Likewise.
3771
3772 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3773 Tom Tromey <tom@tromey.com>
3774
3775 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3776 test for it.
3777 * configure: Rebuild.
3778
3779 2018-07-22 Tom Tromey <tom@tromey.com>
3780
3781 * regformats/regdat.sh: Define xmltarget_${name} inside
3782 #ifndef IN_PROCESS_AGENT.
3783
3784 2018-07-22 Tom Tromey <tom@tromey.com>
3785
3786 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3787
3788 2018-07-22 Tom Tromey <tom@tromey.com>
3789
3790 * symfile.c (reread_symbols): Notify iter, not objfile.
3791
3792 2018-07-22 Tom Tromey <tom@tromey.com>
3793
3794 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3795 Use arch_ops.
3796 (ravenscar_thread_target::prepare_to_store): Likewise.
3797
3798 2018-07-22 Tom Tromey <tom@tromey.com>
3799
3800 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3801 unused variable. Call value_fetch_lazy when needed.
3802 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3803 Remove unused variable. Call value_fetch_lazy when needed.
3804
3805 2018-07-22 Tom Tromey <tom@tromey.com>
3806
3807 * m32c-tdep.c (mark_dma): Return void.
3808 (make_regs): Remove unused declarations.
3809
3810 2018-07-22 Tom Tromey <tom@tromey.com>
3811
3812 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3813 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3814 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3815 bkscm_get_valid_block_smob_arg_unsafe for effect.
3816
3817 2018-07-22 Tom Tromey <tom@tromey.com>
3818
3819 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3820 value_type.
3821
3822 2018-07-22 Tom Tromey <tom@tromey.com>
3823
3824 * windows-nat.c (saved_context): Conditionally define.
3825 * remote.c (remote_target::remote_btrace_maybe_reopen):
3826 Conditionally declare "warned".
3827 * inflow.c (sigquit_ours): Conditionally define.
3828 (new_tty): Move "tty" declaration inside #if.
3829 * guile/guile.c (guile_datadir): Conditionally define.
3830 * charset.c (set_be_le_names): Move some declarations inside #if.
3831 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3832 #if.
3833 (parse_xml_btrace_conf): Likewise.
3834
3835 2018-07-22 Tom Tromey <tom@tromey.com>
3836
3837 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3838
3839 2018-07-22 Tom Tromey <tom@tromey.com>
3840
3841 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3842 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3843 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3844 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3845 * stack.c (frame_apply_level_command): Remove unused variable.
3846 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3847 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3848 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3849 unused variable.
3850 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3851 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3852 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3853 variable.
3854 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3855 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3856 variable.
3857 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3858 Remove unused variable.
3859 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3860 variable.
3861 * common/tdesc.c (print_xml_feature::visit): Remove unused
3862 variable.
3863 * compile/compile-object-load.c (store_regs): Remove unused
3864 variables.
3865 * complaints.c (clear_complaints): Remove unused variable.
3866 * corelow.c (core_target_open): Remove unused variable.
3867 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3868 variable.
3869 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3870 variable.
3871 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3872 variable.
3873 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3874 variable.
3875 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3876 variable.
3877 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3878 variable.
3879 * ia64-tdep.c (examine_prologue): Remove unused variable.
3880 * infcall.c (run_inferior_call): Remove unused variable.
3881 * inferior.c (exit_inferior): Remove unused variable.
3882 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3883 * linespec.c (decode_line_2): Remove unused variable.
3884 * linux-nat.c (super_close): Remove.
3885 * linux-tdep.c (linux_info_proc): Remove unused variable.
3886 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3887 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3888 Remove unused variable.
3889 * parse.c (find_minsym_type_and_address): Remove unused variable.
3890 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3891 variable.
3892 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3893 variable.
3894 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3895 variables.
3896 * record-btrace.c (record_btrace_target::store_registers): Remove
3897 unused variable.
3898 (cmd_show_record_btrace_cpu): Remove unused variable.
3899 * riscv-tdep.c (riscv_register_reggroup_p)
3900 (riscv_push_dummy_call, riscv_return_value): Remove unused
3901 variable.
3902 * rust-exp.y (literal): Remove unused variable.
3903 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3904 unused variable.
3905 <STRUCTOP_ANONYMOUS>: Likewise.
3906 * s390-linux-tdep.c (s390_linux_init_abi_31)
3907 (s390_linux_init_abi_64): Remove unused variable.
3908 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3909 (file_select_thread, net_windows_open, _initialize_ser_windows):
3910 Remove unused variables.
3911 * symtab.c (find_pc_sect_line): Remove unused variable.
3912 * target-memory.c (compute_garbled_blocks): Remove unused
3913 variable.
3914 (target_write_memory_blocks): Remove unused variable.
3915 * target.c (target_stack::unpush): Remove unused variables.
3916 * tracepoint.c (start_tracing, all_tracepoint_actions)
3917 (merge_uploaded_trace_state_variables)
3918 (print_one_static_tracepoint_marker): Remove unused variable.
3919 * unittests/basic_string_view/element_access/char/1.cc (test01):
3920 Remove unused variable.
3921 * windows-nat.c (windows_continue, windows_add_all_dlls)
3922 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3923 Remove unused variables.
3924
3925 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3928 attr_profile in HAVE_ELF.
3929 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3930 HAVE_ELF.
3931
3932 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3933
3934 * frame.c (frame_register_unwind): Change parameter name.
3935 (frame_unwind_register): Likewise.
3936 (frame_unwind_register_value): Likewise.
3937 (frame_unwind_register_signed): Likewise.
3938 (frame_unwind_register_unsigned): Likewise.
3939 * frame.h (frame_register_unwind): Likewise.
3940 (frame_unwind_register): Likewise.
3941 (frame_unwind_register_value): Likewise.
3942 (frame_unwind_register_signed): Likewise.
3943 (frame_unwind_register_unsigned): Likewise.
3944 (frame_unwind_arch): Likewise.
3945
3946 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3947
3948 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3949 ISA maintenance.
3950
3951 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3952
3953 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3954 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3955 hand.
3956
3957 2018-07-20 Keith Seitz <keiths@redhat.com>
3958
3959 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3960 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3961 m_compunit_symtab, m_language>: Add "m_" prefix.
3962 Update all uses.
3963 * buildsym.c: Update all uses.
3964
3965 2018-07-20 Tom Tromey <tom@tromey.com>
3966
3967 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3968 * buildsym.h (record_line_ftype): Remove typedef.
3969
3970 2018-07-20 Tom Tromey <tom@tromey.com>
3971
3972 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3973 (end_expandable_symtab): Likewise.
3974 (end_symtab_get_static_block): Likewise.
3975 (end_symtab_from_static_block): Likewise.
3976 * buildsym-legacy.c (augment_type_symtab): Remove.
3977 (end_expandable_symtab): Remove.
3978 (end_symtab_get_static_block): Remove.
3979 (end_symtab_from_static_block): Remove.
3980
3981 2018-07-20 Tom Tromey <tom@tromey.com>
3982
3983 * dwarf2read.c: Include buildsym.h.
3984 (struct dwarf2_cu) <builder>: New method.
3985 (fixup_go_packaging): Update.
3986 (process_full_comp_unit, process_full_type_unit): Update. Don't
3987 use scoped_free_pendings.
3988 (using_directives): Add "cu" parameter, remove "language".
3989 (read_import_statement, setup_type_unit_groups, )
3990 (read_func_scope, read_lexical_block_scope)
3991 (dwarf2_record_block_ranges, read_namespace): Update.
3992 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3993 (lnp_state_machine::handle_end_sequence): Update.
3994 (class lnp_state_machine) <m_cu>: New member.
3995 <m_record_line_callback>: Remove.
3996 <m_currently_recording_lines>: New member.
3997 (lnp_state_machine::handle_set_file): Update.
3998 (noop_record_line): Remove.
3999 (dwarf_record_line_p): Add cu parameter.
4000 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4001 (lnp_state_machine::record_line)
4002 (lnp_state_machine::lnp_state_machine)
4003 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4004 (dwarf_decode_lines): Update.
4005 (dwarf2_start_subfile): Add cu parameter.
4006 (dwarf2_start_symtab, new_symbol): Update.
4007 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4008 Remove dwarf2_per_objfile parameter.
4009 (dwarf_decode_macros): Update.
4010
4011 2018-07-20 Tom Tromey <tom@tromey.com>
4012
4013 * stabsread.c (define_symbol): Update.
4014 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4015 * dwarf2read.c (new_symbol): Update.
4016 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4017 * cp-namespace.c: Include buildsym.h.
4018 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4019 * buildsym-legacy.c (get_buildsym_compunit): New function.
4020
4021 2018-07-20 Tom Tromey <tom@tromey.com>
4022
4023 * xcoffread.c: Include buildsym-legacy.h.
4024 * windows-nat.c: Include buildsym-legacy.h.
4025 * stabsread.c: Include buildsym-legacy.h.
4026 * mdebugread.c: Include buildsym-legacy.h.
4027 * buildsym-legacy.h: New file.
4028 * buildsym-legacy.c: New file, from buildsym.c.
4029 * go32-nat.c: Include buildsym-legacy.h.
4030 * dwarf2read.c: Include buildsym-legacy.h.
4031 * dbxread.c: Include buildsym-legacy.h.
4032 * cp-namespace.c: Include buildsym-legacy.h.
4033 * coffread.c: Include buildsym-legacy.h.
4034 * buildsym.h: Move some contents to buildsym-legacy.h.
4035 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4036 buildsym-legacy.c.
4037 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4038
4039 2018-07-20 Tom Tromey <tom@tromey.com>
4040
4041 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4042 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4043 (buildsym_compunit::buildsym_compunit)
4044 (buildsym_compunit::~buildsym_compunit)
4045 (buildsym_compunit::get_macro_table): Define.
4046
4047 2018-07-20 Tom Tromey <tom@tromey.com>
4048
4049 * buildsym.c (reset_symtab_globals): Remove.
4050 (buildsym_compunit::end_symtab_from_static_block): Update.
4051 (buildsym_compunit::augment_type_symtab): Update.
4052 (end_symtab_from_static_block): Call free_buildsym_compunit.
4053 (augment_type_symtab, end_symtab, end_expandable_symtab):
4054 Likewise.
4055
4056 2018-07-20 Tom Tromey <tom@tromey.com>
4057
4058 * arch-utils.c: Do not include buildsym.h.
4059 * mipsread.c: Do not include buildsym.h.
4060 * machoread.c: Do not include buildsym.h.
4061 * elfread.c: Do not include buildsym.h.
4062
4063 2018-07-20 Tom Tromey <tom@tromey.com>
4064
4065 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4066 initialization.
4067 (buildsym_compunit): Add new constructor.
4068 (struct buildsym_compunit) <get_last_source_file, finish_block,
4069 record_block_range, start_subfile, patch_subfile_names,
4070 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4071 set_last_source_start_addr, get_last_source_start_addr,
4072 get_local_using_directives, set_local_using_directives,
4073 get_global_using_directives, outermost_context_p,
4074 get_current_context_stack, get_context_stack_depth,
4075 get_current_subfile, get_local_symbols, get_file_symbols,
4076 get_global_symbols, record_debugformat, record_producer,
4077 push_context, pop_context, end_symtab_get_static_block,
4078 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4079 New public methods.
4080 <record_pending_block, finish_block_internal, make_blockvector,
4081 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4082 private methods.
4083 Update all users.
4084
4085 2018-05-22 Tom Tromey <tom@tromey.com>
4086
4087 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4088 parameter.
4089 (finish_block_internal): Update.
4090
4091 2018-07-20 Tom Tromey <tom@tromey.com>
4092
4093 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4094 parameter.
4095 (finish_block_internal): Update.
4096
4097 2018-07-20 Tom Tromey <tom@tromey.com>
4098
4099 * buildsym.h (EXTERN): Don't define or undef.
4100 * buildsym.c (EXTERN): Don't define.
4101
4102 2018-07-20 Tom Tromey <tom@tromey.com>
4103
4104 * buildsym.c: Remove TODO comment.
4105
4106 2018-07-20 Tom Tromey <tom@tromey.com>
4107
4108 * coffread.c (coff_symtab_read): Update.
4109 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4110 (xcoff_new_init): Update.
4111 * mipsread.c (mipscoff_new_init): Update.
4112 * mdebugread.c (mdebug_build_psymtabs): Update.
4113 * elfread.c (elf_new_init): Update.
4114 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4115 Update.
4116 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4117 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4118 (stabsect_build_psymtabs): Update.
4119 * buildsym.h (buildsym_init): Don't declare.
4120 * buildsym.c: Update comment.
4121 (prepare_for_building): Remove.
4122 (start_symtab, restart_symtab): Update.
4123 (reset_symtab_globals): Update comment.
4124 (buildsym_init): Remove.
4125
4126 2018-07-20 Tom Tromey <tom@tromey.com>
4127
4128 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4129 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4130 (read_enum_type, common_block_start, common_block_end)
4131 (cleanup_undefined_types_1, finish_global_stabs): Update.
4132 * mdebugread.c (psymtab_to_symtab_1): Update.
4133 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4134 (read_lexical_block_scope, new_symbol): Update.
4135 * dbxread.c (process_one_symbol): Update.
4136 * coffread.c (coff_symtab_read, process_coff_symbol)
4137 (coff_read_enum_type): Update.
4138 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4139 declare.
4140 (get_local_symbols, get_file_symbols, get_global_symbols): New
4141 functions.
4142 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4143 m_global_symbols.
4144 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4145 (~scoped_free_pendings): Update.
4146 (finish_block, prepare_for_building, reset_symtab_globals)
4147 (end_symtab_get_static_block, end_symtab_with_blockvector)
4148 (augment_type_symtab, push_context): Update.
4149 (get_local_symbols, get_file_symbols, get_global_symbols): New
4150 functions.
4151 (buildsym_init): Update.
4152
4153 2018-07-20 Tom Tromey <tom@tromey.com>
4154
4155 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4156 (process_full_type_unit): Likewise.
4157 (dwarf2_start_symtab): Set list_in_scope.
4158
4159 2018-07-20 Tom Tromey <tom@tromey.com>
4160
4161 * dwarf2read.c (process_psymtab_comp_unit_reader)
4162 (build_type_psymtabs_reader): Do not set list_in_scope.
4163
4164 2018-07-20 Tom Tromey <tom@tromey.com>
4165
4166 * buildsym.c (free_pendings): Remove.
4167 (add_symbol_to_list, scoped_free_pendings)
4168 (finish_block_internal, buildsym_init): Update.
4169
4170 2018-07-20 Tom Tromey <tom@tromey.com>
4171
4172 * xcoffread.c (read_xcoff_symtab): Update.
4173 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4174 Update.
4175 * dbxread.c (process_one_symbol): Update.
4176 * coffread.c (coff_symtab_read): Update.
4177 * buildsym.h (finish_block): Update.
4178 * buildsym.c (finish_block): Remove "listhead" argument.
4179 (end_symtab_get_static_block): Update.
4180
4181 2018-07-20 Tom Tromey <tom@tromey.com>
4182
4183 * buildsym.h (class scoped_free_pendings): Remove constructor.
4184 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4185 method.
4186 <m_pending_block_obstack, m_pending_blocks>: New members.
4187 (pending_block_obstack, pending_blocks): Remove.
4188 (scoped_free_pendings::scoped_free_pendings): Default.
4189 (~scoped_free_pendings): Update.
4190 (free_pending_blocks): Remove.
4191 (finish_block_internal, record_pending_block, make_blockvector)
4192 (end_symtab_get_static_block, augment_type_symtab, push_context)
4193 (buildsym_init): Update.
4194
4195 2018-07-20 Tom Tromey <tom@tromey.com>
4196
4197 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4198 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4199 members.
4200 (pending_addrmap, pending_addrmap_obstack)
4201 (pending_addrmap_interesting): Remove.
4202 (scoped_free_pendings, record_block_range, make_blockvector)
4203 (prepare_for_building, reset_symtab_globals, buildsym_init):
4204 Update.
4205
4206 2018-07-20 Tom Tromey <tom@tromey.com>
4207
4208 * xcoffread.c (process_linenos): Update.
4209 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4210 * mdebugread.c (psymtab_to_symtab_1): Update.
4211 * dwarf2read.c (setup_type_unit_groups)
4212 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4213 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4214 * dbxread.c (process_one_symbol): Update.
4215 * coffread.c (coff_symtab_read, enter_linenos)
4216 (process_coff_symbol): Update.
4217 * buildsym.h (current_subfile): Don't declare.
4218 (get_current_subfile): Declare.
4219 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4220 member.
4221 (start_subfile, free_buildsym_compunit, push_subfile)
4222 (prepare_for_building, start_symtab): Update.
4223 (get_current_subfile): New function.
4224
4225 2018-07-20 Tom Tromey <tom@tromey.com>
4226
4227 * coffread.c (coff_symtab_read): Update.
4228 * xcoffread.c (read_xcoff_symtab): Update.
4229 * dwarf2read.c (new_symbol): Update.
4230 (read_func_scope, read_lexical_block_scope): Update.
4231 * dbxread.c (process_one_symbol): Update.
4232 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4233 (outermost_context_p): Remove macro.
4234 (outermost_context_p, get_current_context_stack)
4235 (get_context_stack_depth): Declare.
4236 (pop_context): Return struct context_stack.
4237 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4238 member.
4239 (context_stack_size): Remove.
4240 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4241 (prepare_for_building, end_symtab_get_static_block)
4242 (augment_type_symtab, push_context): Update.
4243 (pop_context): Return struct context_stack.
4244 (outermost_context_p, get_current_context_stack)
4245 (get_context_stack_depth): New functions.
4246 (buildsym_init): Update.
4247
4248 2018-07-20 Tom Tromey <tom@tromey.com>
4249
4250 * rust-exp.y: Now a pure parser. Update all rules.
4251 (%union): Move earlier.
4252 (current_parser, work_obstack): Remove globals.
4253 (rust_parser, ~rust_parser): Update.
4254 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4255 lex_character, lex_number, lex_string, lex_identifier,
4256 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4257 convert_name, convert_params_to_expression,
4258 convert_ast_to_expression, ast_basic_type, ast_operation,
4259 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4260 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4261 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4262 ast_array_type, ast_slice_type, ast_reference_type,
4263 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4264 (rust_parse): Update.
4265 (rustyyerror, rustyylex): Add parser parameter.
4266 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4267 (rust_lex_stringish_test, rust_lex_test_sequence)
4268 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4269 (rust_lex_test_push_back, rust_lex_tests): Update.
4270
4271 2018-07-19 Pedro Alves <palves@redhat.com>
4272
4273 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4274 gdb::unique_xmalloc_ptr.
4275 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4276 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4277 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4278 copy-initialization.
4279 * guile/scm-pretty-print.c (ppscm_print_children): Use
4280 gdb::unique_xmalloc_ptr instead of cleanups.
4281 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4282 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4283 gdb::unique_xmalloc_ptr.
4284 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4285 Adjust to use gdb::unique_xmalloc_ptr.
4286 * guile/scm-utils.c (extract_arg): Adjust.
4287 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4288 gdb::unique_xmalloc_ptr instead of a cleanup.
4289
4290 2018-07-19 Tom Tromey <tom@tromey.com>
4291
4292 * utils.c (do_value_free_to_mark)
4293 (make_cleanup_value_free_to_mark): Remove.
4294 * utils.h (make_cleanup_value_free_to_mark): Remove.
4295
4296 2018-07-19 Pedro Alves <palves@redhat.com>
4297
4298 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4299 forwarding reference.
4300
4301 2018-07-18 Pedro Alves <palves@redhat.com>
4302
4303 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4304 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4305 cleanup.
4306
4307 2018-07-18 Pedro Alves <palves@redhat.com>
4308
4309 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4310 exceptions.
4311 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4312 (gdbscm_wrap): New.
4313 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4314 directly instead of a cleanup.
4315 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4316 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4317 (vlscm_binop_gdbthrow): New, factored out from ...
4318 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4319 (vlscm_rich_compare): Use gdbscm_wrap.
4320 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4321 instead of a cleanup.
4322 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4323 cleanup.
4324 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4325 Use xfree directly instead of a cleanup.
4326 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4327 Adjust to use gdbscm_wrap and scoped_value_mark.
4328 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4329 (gdbscm_value_address, gdbscm_value_dereference)
4330 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4331 scoped_value_mark.
4332 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4333 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4334 scoped_value_mark.
4335 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4336 gdbscm_wrap and scoped_value_mark.
4337 (gdbscm_value_to_string): Use xfree directly instead of a
4338 cleanup. Move 'buffer' unique_ptr to TRY scope.
4339 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4340 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4341 scoped_value_mark.
4342 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4343 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4344 scoped_value_mark.
4345 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4346 gdbscm_wrap.
4347
4348 2018-07-18 Tom de Vries <tdevries@suse.de>
4349
4350 * findvar.c (default_read_var_value): Also resolve dynamic type for
4351 LOC_OPTIMIZED_OUT vars.
4352
4353 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4354
4355 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4356 decoding.
4357
4358 2018-07-17 Tom Tromey <tom@tromey.com>
4359
4360 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4361 (compute_enum_list, pascm_set_param_value_x)
4362 (gdbscm_parameter_value): Update.
4363 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4364 (gdbscm_scm_to_host_string): Update.
4365 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4366 Update.
4367 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4368 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4369 * guile/scm-string.c (gdbscm_scm_to_string): Return
4370 unique_xmalloc_ptr.
4371 (gdbscm_scm_to_host_string): Likewise.
4372
4373 2018-07-17 Tom Tromey <tom@tromey.com>
4374
4375 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4376 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4377 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4378 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4379 unique_xmalloc_ptr.
4380
4381 2018-07-17 Tom Tromey <tom@tromey.com>
4382
4383 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4384 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4385 Update.
4386 * guile/scm-cmd.c (cmdscm_function): Update.
4387 * guile/scm-pretty-print.c
4388 (ppscm_print_exception_unless_memory_error): Update.
4389 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4390 Return unique_xmalloc_ptr.
4391
4392 2018-07-17 Tom Tromey <tom@tromey.com>
4393
4394 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4395 Use string_printf.
4396
4397 2018-07-17 Jim Wilson <jimw@sifive.com>
4398
4399 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4400 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4401 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4402 unecessary braces after EF_RISCV_RVC test. Delete call to
4403 set_gdbarch_decr_pc_after_break.
4404
4405 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4406 RISCV_LAST_FP_REGNUM + 1.
4407 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4408
4409 2018-07-17 Tom Tromey <tom@tromey.com>
4410
4411 * configure.ac: Remove --disable-gdbcli.
4412 * configure: Rebuild.
4413 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4414 (SUBDIR_CLI_CFLAGS): Remove.
4415 (SFILES): Use SUBDIR_CLI_SRCS.
4416 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4417
4418 2018-07-17 Tom Tromey <tom@tromey.com>
4419
4420 PR gdb/18624:
4421 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4422
4423 2018-07-16 Jim Wilson <jimw@sifive.com>
4424
4425 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4426
4427 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4428
4429 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4430 variable.
4431 (libunwind_frame_sniffer): Likewise.
4432 (libunwind_frame_prev_register): Likewise.
4433 (libunwind_sigtramp_frame_sniffer): Likewise.
4434 * ia64-tdep.c (ia64_access_reg): Likewise.
4435 (ia64_access_rse_reg): Likewise.
4436 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4437 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4438
4439 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4440
4441 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4442
4443 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4444
4445 * remote-sim.c (gdbsim_target::close,
4446 gdbsim_target::mourn_inferior): Remove unused variables.
4447
4448 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4449
4450 * ia64-tdep.c (ktab_buf): New global.
4451 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4452 (get_kernel_table): Adjust.
4453
4454 2018-07-16 Tom Tromey <tom@tromey.com>
4455
4456 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4457 * dwarf2read.c (using_directives, new_symbol): Use
4458 outermost_context_p.
4459 * dbxread.c (process_one_symbol): Use outermost_context_p.
4460 * coffread.c (coff_symtab_read): Use outermost_context_p.
4461
4462 2018-07-16 Tom Tromey <tom@tromey.com>
4463
4464 * dwarf2read.c (using_directives, read_func_scope)
4465 (read_lexical_block_scope): Update.
4466 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4467 * buildsym.h (local_using_directives, global_using_directives):
4468 Don't declare.
4469 (get_local_using_directives, set_local_using_directives)
4470 (get_global_using_directives): Declare.
4471 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4472 m_global_using_directives>: New members.
4473 (finish_block_internal, prepare_for_building)
4474 (reset_symtab_globals, end_symtab_get_static_block)
4475 (push_context): Update.
4476 (get_local_using_directives, set_local_using_directives)
4477 (get_global_using_directives): New functions.
4478 (buildsym_init): Update.
4479
4480 2018-07-16 Tom Tromey <tom@tromey.com>
4481
4482 * xcoffread.c (xcoff_initial_scan): Don't call
4483 free_pending_blocks.
4484 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4485 * buildsym.h (class scoped_free_pendings): Add constructor.
4486 (free_pending_blocks): Don't declare.
4487 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4488 (free_pending_blocks): Now static.
4489
4490 2018-07-16 Tom Tromey <tom@tromey.com>
4491
4492 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4493 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4494 member.
4495 (struct subfile_stack): Remove.
4496 (subfile_stack): Remove.
4497 (push_subfile, pop_subfile, buildsym_init): Update.
4498
4499 2018-07-16 Tom Tromey <tom@tromey.com>
4500
4501 * buildsym.c (push_subfile): Use gdb_assert.
4502 (pop_subfile): Use gdb_assert.
4503
4504 2018-07-16 Tom Tromey <tom@tromey.com>
4505
4506 * buildsym.h (merge_symbol_lists): Remove.
4507 * buildsym.c (merge_symbol_lists): Remove.
4508
4509 2018-07-16 Tom Tromey <tom@tromey.com>
4510
4511 * stabsread.c (scan_file_globals): Update comment.
4512 * stabsread.h (scan_file_globals): Move from buildsym.h.
4513 * buildsym.h (scan_file_globals): Move to stabsread.h.
4514
4515 2018-07-16 Tom Tromey <tom@tromey.com>
4516
4517 * xcoffread.c (xcoff_new_init): Update.
4518 * mipsread.c (mipscoff_new_init): Update.
4519 * mdebugread.c (mdebug_build_psymtabs): Update.
4520 * elfread.c (elf_new_init): Update.
4521 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4522 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4523 * buildsym.h (buildsym_new_init): Don't declare.
4524 * buildsym.c (buildsym_new_init): Remove.
4525
4526 2018-07-16 Tom Tromey <tom@tromey.com>
4527
4528 * stabsread.h (within_function): Move from buildsym.h.
4529 * stabsread.c (start_stabs): Clear within_function.
4530 * coffread.c (coff_start_symtab): Clear within_function.
4531 * buildsym.h (within_function): Move to stabsread.h.
4532 * buildsym.c (prepare_for_building): Update.
4533
4534 2018-07-16 Tom Tromey <tom@tromey.com>
4535
4536 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4537 * dwarf2read.c (dwarf2_start_symtab): Don't set
4538 processing_gcc_compilation.
4539 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4540
4541 2018-07-16 Tom Tromey <tom@tromey.com>
4542
4543 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4544 (next_symbol_text_func): Move from buildsym.h.
4545 * stabsread.c (hashname): Move from buildsym.c.
4546 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4547 (next_symbol_text_func, hashname): Move to stabsread.h.
4548 * buildsym.c: Don't include bcache.h
4549 (hashname): Move to stasbread.c.
4550
4551 2018-07-16 Tom Tromey <tom@tromey.com>
4552
4553 * buildsym.h (context_stack_size): Don't declare.
4554 * buildsym.c (context_stack_size): New global.
4555
4556 2018-07-16 Tom Tromey <tom@tromey.com>
4557
4558 * dbxread.c (processing_acc_compilation): New global.
4559 * buildsym.h (processing_acc_compilation): Don't declare.
4560
4561 2018-07-16 Tom Tromey <tom@tromey.com>
4562
4563 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4564 * dbxread.c (read_ofile_symtab): Update.
4565 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4566 * buildsym.h (last_source_start_addr): Remove.
4567 (set_last_source_start_addr, get_last_source_start_addr):
4568 Declare.
4569 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4570 parameter.
4571 (struct buildsym_compunit) <m_last_source_start_addr>: New
4572 member.
4573 (prepare_for_building): Remove start_addr parameter.
4574 (start_symtab, restart_symtab, end_symtab_get_static_block)
4575 (end_symtab_with_blockvector): Update.
4576 (set_last_source_start_addr, get_last_source_start_addr): New
4577 functions.
4578
4579 2018-07-16 Tom Tromey <tom@tromey.com>
4580
4581 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4582 member.
4583 (have_line_numbers): Remove.
4584 (record_line, prepare_for_building, end_symtab_get_static_block)
4585 (augment_type_symtab): Update.
4586
4587 2018-07-16 Tom Tromey <tom@tromey.com>
4588
4589 * buildsym.c (~buildsym_compunit): Free the macro table.
4590 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4591 methods.
4592 <m_pending_macros>: New member.
4593 (pending_macros): Remove.
4594 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4595 (reset_symtab_globals, end_symtab_get_static_block)
4596 (end_symtab_with_blockvector, augment_type_symtab)
4597 (buildsym_init): Update.
4598
4599 2018-07-16 Tom Tromey <tom@tromey.com>
4600
4601 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4602 parameter.
4603 (buildsym_compunit::set_last_source_file): New method.
4604 <m_last_source_file>: New member.
4605 (prepare_for_building): Remove "name" parameter.
4606 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4607 (last_source_file): Remove.
4608 (set_last_source_file, get_last_source_file): Update.
4609
4610 2018-07-16 Tom Tromey <tom@tromey.com>
4611
4612 * buildsym.c (prepare_for_building): Add assert.
4613
4614 2018-07-16 Tom Tromey <tom@tromey.com>
4615
4616 * buildsym.c (~buildsym_compunit): Update.
4617 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4618 (start_subfile, patch_subfile_names)
4619 (end_symtab_with_blockvector): Update.
4620
4621 2018-07-16 Tom Tromey <tom@tromey.com>
4622
4623 * buildsym.c (struct buildsym_compunit): Add constructor,
4624 destructor, initializers.
4625 (start_buildsym_compunit): Remove.
4626 (free_buildsym_compunit): Use "delete".
4627 (start_symtab, restart_symtab): Use "new".
4628
4629 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4630
4631 * symfile.c (set_objfile_default_section_offset): Remove struct
4632 keyword.
4633
4634 2018-07-14 Stafford Horne <shorne@gmail.com>
4635
4636 * (Responsible Maintainers): Add myself as or1k maintainer.
4637
4638 2018-07-13 Tom Tromey <tom@tromey.com>
4639
4640 * symfile.c (set_objfile_default_section_offset): Use extra braces
4641 around initializer.
4642
4643 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4644
4645 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4646 non-branching basr.
4647
4648 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4649
4650 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4651 unittests/cli-utils-selftests.c
4652 * unittests/cli-utils-selftests.c: New file.
4653
4654 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4655
4656 * NEWS: Mention new commands. Mention change to 'thread apply'.
4657
4658 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4659
4660 * thread.c (thr_try_catch_cmd): New function.
4661 (thread_apply_all_command): Handle qcs flags.
4662 (thread_apply_command): Handle qcs flags.
4663 (taas_command): New function.
4664 (tfaas_command): New function.
4665 (_initialize_thread): Update to setup the new commands 'taas
4666 and 'tfaas'. Change doc string for 'thread apply'.
4667
4668 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4669
4670 * stack.c: (trailing_outermost_frame): New function, mostly
4671 extracted from backtrace_command_1.
4672 (leading_innermost_frame): New function.
4673 (backtrace_command_1): Update to call trailing_outermost_frame.
4674 (frame_apply_command_count): New function.
4675 (frame_apply_level_command): New function.
4676 (frame_apply_all_command): New function.
4677 (frame_apply_command): New function.
4678 (faas_command): New function.
4679 (frame_cmd_list): New variable.
4680 (_initialize_stack): Update to setup the new commands 'frame apply'
4681 and 'faas'.
4682
4683 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4684
4685 * cli-utils.c (number_or_range_parser::get_number): Only handle
4686 numbers or convenience var as numbers.
4687 (parse_flags): New function.
4688 (parse_flags_qcs): New function.
4689 (number_or_range_parser::finished): Ensure parsing end is detected
4690 before end of string.
4691 * cli-utils.h (parse_flags): New function.
4692 (parse_flags_qcs): New function.
4693 (number_or_range_parser): Remove m_finished bool.
4694 (number_or_range_parser::skip_range): Set m_in_range to false.
4695
4696 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4697
4698 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4699 on Windows.
4700
4701 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4702 Jan Kratochvil <jan.kratochvil@redhat.com>
4703 Paul Fertser <fercerpav@gmail.com>
4704 Tsutomu Seki <sekiriki@gmail.com>
4705 Pedro Alves <palves@redhat.com>
4706
4707 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4708 'unittests/parse-connection-spec-selftests.c'.
4709 (COMMON_SFILES): Add 'common/netstuff.c'.
4710 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4711 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4712 * common/netstuff.c: New file.
4713 * common/netstuff.h: New file.
4714 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4715 (wait_for_connect): Update comment. New parameter
4716 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4717 Use 'sock' directly instead of 'scb->fd'.
4718 (try_connect): New function, with code from 'net_open'.
4719 (net_open): Rewrite main loop to deal with multiple
4720 sockets/addresses. Handle IPv6-style hostnames; implement
4721 support for IPv6 connections.
4722 * unittests/parse-connection-spec-selftests.c: New file.
4723
4724 2018-07-11 Pedro Alves <palves@redhat.com>
4725
4726 PR gdb/23377
4727 * remote.c (remote_target::remote_detach_pid): Call
4728 set_current_process.
4729
4730 2018-07-11 Pedro Alves <palves@redhat.com>
4731
4732 * h8300-tdep.c (h8300_gdbarch_init): Remove
4733 set_gdbarch_ecoff_reg_to_regnum calls.
4734
4735 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4736
4737 PR c++/23373
4738 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4739 offsets/sizes for static members of a class/struct.
4740
4741 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4742
4743 * target-descriptions.c (tdesc_register_bitsize): Rename.
4744 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4745 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4746 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4747
4748 2018-07-10 Tom Tromey <tom@tromey.com>
4749
4750 * breakpoint.c (moribund_locations): Now static and a
4751 std::vector.
4752 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4753 (build_bpstat_chain, update_global_location_list)
4754 (breakpoint_retire_moribund): Update.
4755 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4756 VEC.
4757
4758 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4761 (riscv_register_reggroup_p): Use new function, remove unneeded
4762 parenthesis.
4763 (riscv_push_dummy_call): Extend assert to compare against xlen or
4764 flen based on register type.
4765
4766 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4767
4768 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4769
4770 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4771
4772 * remote.c (show_hardware_watchpoint_limit): New function.
4773 (show_hardware_watchpoint_length_limit): New function.
4774 (show_hardware_breakpoint_limit): New function.
4775 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4776 where appropriate, update help text.
4777
4778 2018-07-09 Tom Tromey <tom@tromey.com>
4779
4780 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4781 (CLIBS): Don't mention NAT_CLIBS.
4782
4783 2018-07-09 Tom Tromey <tom@tromey.com>
4784
4785 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4786 (LIBGDB_OBS, clean mostlyclean): Update.
4787 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4788
4789 2018-07-09 Tom Tromey <tom@tromey.com>
4790
4791 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4792 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4793 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4794
4795 2018-07-09 Tom Tromey <tom@tromey.com>
4796
4797 * Makefile.in (ALLDEPFILES): Remove exec.c.
4798 (COMMON_OBS): Remove exec.o.
4799 (COMMON_SFILES): Add exec.c.
4800
4801 2018-07-09 Tom Tromey <tom@tromey.com>
4802
4803 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4804
4805 2018-07-09 Tom Tromey <tom@tromey.com>
4806
4807 * Makefile.in (clean mostlyclean): Remove stamp-version.
4808 (version.c): Depend on stamp-version.
4809 (stamp-version): New rule, from version.c rule.
4810
4811 2018-07-09 Tom Tromey <tom@tromey.com>
4812
4813 * Makefile.in (init.c): Depend on stamp-init.
4814 (stamp-init): New rule, from init.c rule.
4815 (clean mostlyclean): Remove stamp-init.
4816
4817 2018-07-09 Tom Tromey <tom@tromey.com>
4818
4819 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4820 SUBDIR_GCC_COMPILE_SRCS.
4821
4822 2018-07-09 Tom Tromey <tom@tromey.com>
4823
4824 * Makefile.in (init.c): Remove some unused sed rules.
4825
4826 2018-07-09 Tom Tromey <tom@tromey.com>
4827
4828 * Makefile.in (TSOBS): Remove.
4829 (INIT_FILES): Update.
4830 (LIBGDB_OBS): Update.
4831 (COMMON_SFILES): Add inflow.c.
4832 (SFILES): Remove inflow.c.
4833
4834 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4835
4836 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4837
4838 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4839
4840 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4841 get_saveloc_name, is_signal_frame_name, step_name,
4842 init_remote_name, create_addr_space_name,
4843 destroy_addr_space_name, search_unwind_table_name,
4844 find_dyn_list_name): Constify.
4845
4846 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4847
4848 * darwin-nat.c (darwin_pthread_kill): New function.
4849 (darwin_resume_thread): Use darwin_pthread_kill.
4850
4851 2018-07-05 Tom de Vries <tdevries@suse.de>
4852
4853 * macroexp.c (macro_buffer) <operator=>: New member function.
4854
4855 2018-07-04 Tom Tromey <tom@tromey.com>
4856
4857 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4858
4859 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4860
4861 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4862 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4863 * maint.c: Likewise.
4864 * top.c: Likewise.
4865
4866 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4867
4868 * NEWS: Create a new section for the next release branch.
4869 Rename the section of the current branch, now that it has
4870 been cut.
4871
4872 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4873
4874 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4875 * version.in: Bump version to 8.2.50.DATE-git.
4876
4877 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4878 Pedro Alves <palves@redhat.com>
4879
4880 * linux-nat.c (linux_init_ptrace): Rename to ...
4881 (linux_init_ptrace_procfs): ... this. Call
4882 linux_proc_init_warnings.
4883 (linux_nat_target::post_attach)
4884 (linux_nat_target::post_startup_inferior): Adjust.
4885 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4886 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4887
4888 2018-07-04 Tom de Vries <tdevries@suse.de>
4889
4890 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4891 check ...
4892 (read_comp_unit_head): ... here.
4893
4894 2018-07-03 Tom Tromey <tom@tromey.com>
4895
4896 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4897 (stop_tracing, tstatus_command)
4898 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4899 (print_one_static_tracepoint_marker): Update.
4900 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4901 std::vector.
4902 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4903 VEC.
4904 (all_tracepoints, static_tracepoints_here): Return std::vector.
4905
4906 2018-07-03 Tom Tromey <tom@tromey.com>
4907
4908 * common/ptid.c (ptid_equal): Remove.
4909 * common/ptid.h (ptid_equal): Don't declare.
4910 * ada-tasks.c: Update.
4911 * breakpoint.c: Update.
4912 * common/agent.c: Update.
4913 * corelow.c: Update.
4914 * darwin-nat-info.c: Update.
4915 * darwin-nat.c: Update.
4916 * dcache.c: Update.
4917 * dtrace-probe.c: Update.
4918 * dummy-frame.c: Update.
4919 * fbsd-nat.c: Update.
4920 * frame.c: Update.
4921 * gdbthread.h: Update.
4922 * gnu-nat.c: Update.
4923 * go32-nat.c: Update.
4924 * inf-loop.c: Update.
4925 * inf-ptrace.c: Update.
4926 * infcall.c: Update.
4927 * infcmd.c: Update.
4928 * inflow.c: Update.
4929 * infrun.c: Update.
4930 * linux-fork.c: Update.
4931 * linux-nat.c: Update.
4932 * linux-thread-db.c: Update.
4933 * mi/mi-cmd-var.c: Update.
4934 * mi/mi-interp.c: Update.
4935 * mi/mi-main.c: Update.
4936 * nto-procfs.c: Update.
4937 * ppc-linux-tdep.c: Update.
4938 * procfs.c: Update.
4939 * python/py-inferior.c: Update.
4940 * python/py-record-btrace.c: Update.
4941 * python/py-record.c: Update.
4942 * ravenscar-thread.c: Update.
4943 * regcache.c: Update.
4944 * remote-sim.c: Update.
4945 * remote.c: Update.
4946 * sol-thread.c: Update.
4947 * solib.c: Update.
4948 * target.c: Update.
4949 * tui/tui-stack.c: Update.
4950 * varobj.c: Update.
4951 * windows-nat.c: Update.
4952 * windows-tdep.c: Update.
4953
4954 2018-07-03 Tom Tromey <tom@tromey.com>
4955
4956 * common/ptid.c (ptid_match): Remove.
4957 * common/ptid.h (ptid_match): Don't declare.
4958 * fbsd-nat.c: Update.
4959 * infcmd.c: Update.
4960 * infrun.c: Update.
4961 * linux-nat.c: Update.
4962 * record-btrace.c: Update.
4963 * regcache.c: Update.
4964 * remote.c: Update.
4965
4966 2018-07-03 Tom Tromey <tom@tromey.com>
4967
4968 * common/ptid.c (ptid_tid_p): Remove.
4969 * common/ptid.h (ptid_tid_p): Don't declare.
4970 * sol-thread.c: Update.
4971
4972 2018-07-03 Tom Tromey <tom@tromey.com>
4973
4974 * common/ptid.c (ptid_lwp_p): Remove.
4975 * common/ptid.h (ptid_lwp_p): Don't declare.
4976 * fbsd-nat.c: Update.
4977 * linux-nat.c: Update.
4978 * nat/linux-procfs.c: Update.
4979 * nat/x86-linux-dregs.c: Update.
4980 * sol-thread.c: Update.
4981
4982 2018-07-03 Tom Tromey <tom@tromey.com>
4983
4984 * common/ptid.c (ptid_is_pid): Remove.
4985 * common/ptid.h (ptid_is_pid): Don't declare.
4986 * infrun.c: Update.
4987 * linux-nat.c: Update.
4988 * mi/mi-interp.c: Update.
4989 * remote.c: Update.
4990 * thread.c: Update.
4991
4992 2018-07-03 Tom Tromey <tom@tromey.com>
4993
4994 * common/ptid.c (ptid_get_tid): Remove.
4995 * common/ptid.h (ptid_get_tid): Don't declare.
4996 * ada-tasks.c: Update.
4997 * aix-thread.c: Update.
4998 * bsd-uthread.c: Update.
4999 * darwin-nat.c: Update.
5000 * fbsd-nat.c: Update.
5001 * i386-darwin-nat.c: Update.
5002 * infrun.c: Update.
5003 * linux-tdep.c: Update.
5004 * nto-procfs.c: Update.
5005 * ppc-ravenscar-thread.c: Update.
5006 * python/py-infthread.c: Update.
5007 * ravenscar-thread.c: Update.
5008 * sol-thread.c: Update.
5009 * sparc-ravenscar-thread.c: Update.
5010 * windows-nat.c: Update.
5011
5012 2018-07-03 Tom Tromey <tom@tromey.com>
5013
5014 * common/ptid.c (ptid_get_lwp): Remove.
5015 * common/ptid.h (ptid_get_lwp): Don't declare.
5016 * aarch64-linux-nat.c: Update.
5017 * ada-tasks.c: Update.
5018 * aix-thread.c: Update.
5019 * amd64-linux-nat.c: Update.
5020 * arm-linux-nat.c: Update.
5021 * corelow.c: Update.
5022 * fbsd-nat.c: Update.
5023 * fbsd-tdep.c: Update.
5024 * gnu-nat.c: Update.
5025 * i386-cygwin-tdep.c: Update.
5026 * i386-gnu-nat.c: Update.
5027 * i386-linux-nat.c: Update.
5028 * ia64-linux-nat.c: Update.
5029 * inf-ptrace.c: Update.
5030 * infrun.c: Update.
5031 * linux-fork.c: Update.
5032 * linux-nat.c: Update.
5033 * linux-tdep.c: Update.
5034 * linux-thread-db.c: Update.
5035 * mips-linux-nat.c: Update.
5036 * nat/aarch64-linux-hw-point.c: Update.
5037 * nat/aarch64-linux.c: Update.
5038 * nat/linux-btrace.c: Update.
5039 * nat/linux-osdata.c: Update.
5040 * nat/linux-procfs.c: Update.
5041 * nat/x86-linux-dregs.c: Update.
5042 * obsd-nat.c: Update.
5043 * ppc-fbsd-nat.c: Update.
5044 * ppc-linux-nat.c: Update.
5045 * procfs.c: Update.
5046 * python/py-infthread.c: Update.
5047 * ravenscar-thread.c: Update.
5048 * remote.c: Update.
5049 * s390-linux-nat.c: Update.
5050 * sol-thread.c: Update.
5051 * sol2-tdep.c: Update.
5052 * spu-linux-nat.c: Update.
5053 * x86-linux-nat.c: Update.
5054 * xtensa-linux-nat.c: Update.
5055
5056 2018-07-03 Tom Tromey <tom@tromey.com>
5057
5058 * common/ptid.c (ptid_get_pid): Remove.
5059 * common/ptid.h (ptid_get_pid): Don't declare.
5060 * aarch64-linux-nat.c: Update.
5061 * ada-lang.c: Update.
5062 * aix-thread.c: Update.
5063 * alpha-bsd-nat.c: Update.
5064 * amd64-fbsd-nat.c: Update.
5065 * amd64-linux-nat.c: Update.
5066 * arm-linux-nat.c: Update.
5067 * arm-nbsd-nat.c: Update.
5068 * auxv.c: Update.
5069 * break-catch-syscall.c: Update.
5070 * breakpoint.c: Update.
5071 * bsd-uthread.c: Update.
5072 * corelow.c: Update.
5073 * ctf.c: Update.
5074 * darwin-nat.c: Update.
5075 * fbsd-nat.c: Update.
5076 * fbsd-tdep.c: Update.
5077 * gcore.c: Update.
5078 * gnu-nat.c: Update.
5079 * hppa-nbsd-nat.c: Update.
5080 * hppa-obsd-nat.c: Update.
5081 * i386-fbsd-nat.c: Update.
5082 * ia64-linux-nat.c: Update.
5083 * inf-ptrace.c: Update.
5084 * infcmd.c: Update.
5085 * inferior.c: Update.
5086 * inferior.h: Update.
5087 * inflow.c: Update.
5088 * infrun.c: Update.
5089 * linux-fork.c: Update.
5090 * linux-nat.c: Update.
5091 * linux-tdep.c: Update.
5092 * linux-thread-db.c: Update.
5093 * m68k-bsd-nat.c: Update.
5094 * mi/mi-interp.c: Update.
5095 * mi/mi-main.c: Update.
5096 * mips-linux-nat.c: Update.
5097 * mips-nbsd-nat.c: Update.
5098 * mips64-obsd-nat.c: Update.
5099 * nat/aarch64-linux-hw-point.c: Update.
5100 * nat/aarch64-linux.c: Update.
5101 * nat/linux-btrace.c: Update.
5102 * nat/linux-osdata.c: Update.
5103 * nat/linux-procfs.c: Update.
5104 * nat/x86-linux-dregs.c: Update.
5105 * nto-procfs.c: Update.
5106 * obsd-nat.c: Update.
5107 * ppc-linux-nat.c: Update.
5108 * ppc-nbsd-nat.c: Update.
5109 * ppc-obsd-nat.c: Update.
5110 * proc-service.c: Update.
5111 * procfs.c: Update.
5112 * python/py-inferior.c: Update.
5113 * python/py-infthread.c: Update.
5114 * ravenscar-thread.c: Update.
5115 * record.c: Update.
5116 * remote-sim.c: Update.
5117 * remote.c: Update.
5118 * rs6000-nat.c: Update.
5119 * s390-linux-nat.c: Update.
5120 * sh-nbsd-nat.c: Update.
5121 * sol-thread.c: Update.
5122 * sparc-nat.c: Update.
5123 * sparc64-tdep.c: Update.
5124 * spu-linux-nat.c: Update.
5125 * spu-tdep.c: Update.
5126 * target-debug.h: Update.
5127 * target.c: Update.
5128 * thread.c: Update.
5129 * tid-parse.c: Update.
5130 * tracefile-tfile.c: Update.
5131 * vax-bsd-nat.c: Update.
5132 * windows-nat.c: Update.
5133 * x86-linux-nat.c: Update.
5134 * x86-nat.c: Update.
5135
5136 2018-07-03 Tom Tromey <tom@tromey.com>
5137
5138 * common/ptid.c (pid_to_ptid): Remove.
5139 * common/ptid.h (pid_to_ptid): Don't declare.
5140 * aix-thread.c: Update.
5141 * arm-linux-nat.c: Update.
5142 * common/ptid.c: Update.
5143 * common/ptid.h: Update.
5144 * corelow.c: Update.
5145 * ctf.c: Update.
5146 * darwin-nat.c: Update.
5147 * fbsd-nat.c: Update.
5148 * fork-child.c: Update.
5149 * gnu-nat.c: Update.
5150 * go32-nat.c: Update.
5151 * inf-ptrace.c: Update.
5152 * infcmd.c: Update.
5153 * inferior.c: Update.
5154 * infrun.c: Update.
5155 * linux-fork.c: Update.
5156 * linux-nat.c: Update.
5157 * nat/aarch64-linux-hw-point.c: Update.
5158 * nat/fork-inferior.c: Update.
5159 * nat/x86-linux-dregs.c: Update.
5160 * nto-procfs.c: Update.
5161 * obsd-nat.c: Update.
5162 * procfs.c: Update.
5163 * progspace.c: Update.
5164 * remote.c: Update.
5165 * rs6000-nat.c: Update.
5166 * s390-linux-nat.c: Update.
5167 * sol-thread.c: Update.
5168 * spu-linux-nat.c: Update.
5169 * target.c: Update.
5170 * top.c: Update.
5171 * tracefile-tfile.c: Update.
5172 * windows-nat.c: Update.
5173
5174 2018-07-03 Tom Tromey <tom@tromey.com>
5175
5176 * common/ptid.h (ptid_build): Don't declare.
5177 * common/ptid.c (ptid_build): Remove.
5178 * aix-thread.c: Update.
5179 * bsd-kvm.c: Update.
5180 * bsd-uthread.c: Update.
5181 * common/agent.c: Update.
5182 * common/ptid.c: Update.
5183 * common/ptid.h: Update.
5184 * corelow.c: Update.
5185 * darwin-nat.c: Update.
5186 * fbsd-nat.c: Update.
5187 * gnu-nat.c: Update.
5188 * linux-fork.c: Update.
5189 * linux-nat.c: Update.
5190 * linux-thread-db.c: Update.
5191 * nat/linux-osdata.c: Update.
5192 * nat/linux-procfs.c: Update.
5193 * nto-procfs.c: Update.
5194 * obsd-nat.c: Update.
5195 * proc-service.c: Update.
5196 * procfs.c: Update.
5197 * ravenscar-thread.c: Update.
5198 * remote-sim.c: Update.
5199 * remote.c: Update.
5200 * sol-thread.c: Update.
5201 * target.c: Update.
5202 * windows-nat.c: Update.
5203
5204 2018-07-03 Tom Tromey <tom@tromey.com>
5205
5206 * infrun.c (follow_exec): Use exit_inferior_silent.
5207 * inferior.c (exit_inferior_num_silent): Remove.
5208 * inferior.h (exit_inferior_num_silent): Don't declare.
5209
5210 2018-07-03 Tom Tromey <tom@tromey.com>
5211
5212 PR cli/23340:
5213 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5214 inferior_ptid on error.
5215
5216 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5217 Simon Marchi <simon.marchi@polymtl.ca>
5218
5219 PR tdep/8282
5220 * disasm.h (gdb_disassembler): Add
5221 `m_disassembler_options_holder'. member
5222 * disasm.c (get_all_disassembler_options): New function.
5223 (gdb_disassembler::gdb_disassembler): Use it.
5224 (gdb_buffered_insn_length_init_dis): Likewise.
5225 (gdb_buffered_insn_length): Adjust accordingly.
5226 (set_disassembler_options): Handle options with arguments.
5227 (show_disassembler_options_sfunc): Likewise. Add a leading new
5228 line if showing options with descriptions.
5229 (disassembler_options_completer): Adapt to using the
5230 `disasm_options_and_args_t' structure.
5231 * mips-tdep.c (mips_disassembler_options): New variable.
5232 (mips_disassembler_options_o32): Likewise.
5233 (mips_disassembler_options_n32): Likewise.
5234 (mips_disassembler_options_n64): Likewise.
5235 (gdb_print_insn_mips): Don't set `disassembler_options'.
5236 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5237 functions.
5238 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5239 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5240 `gdbarch_disassembler_options_implicit' and
5241 `gdbarch_valid_disassembler_options'.
5242 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5243 `disasm_options_and_args_t' structure.
5244 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5245 method.
5246 (valid_disassembler_options): Switch from `disasm_options_t' to
5247 the `disasm_options_and_args_t' structure.
5248 * NEWS: Document `set disassembler-options' support for the MIPS
5249 target.
5250 * gdbarch.h: Regenerate.
5251 * gdbarch.c: Regenerate.
5252
5253 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5254
5255 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5256
5257 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5258
5259 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5260 parameter in call to amd64_target_description.
5261 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5262 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5263 (amd64fbsd_init_abi): Likewise.
5264 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5265 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5266 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5267 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5268
5269 2018-06-29 Pedro Alves <palves@redhat.com>
5270
5271 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5272 "segments" parameter.
5273 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5274 (_initialize_amd64_tdep): Update call to
5275 amd64_create_target_description.
5276 (amd64_target_description): Add "segments" parameter. Adjust
5277 the implementation to use it.
5278 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5279 call to amd64_create_target_description.
5280 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5281 * gdb/arch/amd64.h (amd64_create_target_description): Add
5282 "segments" register.
5283 * gdb/arch/amd64.c (amd64_create_target_description): Add
5284 "segments" parameter. Call create_feature_i386_64bit_segments
5285 only if SEGMENTS is true.
5286 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5287 call to amd64_create_target_description.
5288
5289 2018-06-29 Pedro Alves <palves@redhat.com>
5290
5291 * thread.c (thread_target_id_str): New, factored out from ...
5292 (print_thread_info_1): ... here. Use it to compute the max
5293 "Target Id" column width.
5294
5295 2018-06-29 Pedro Alves <palves@redhat.com>
5296
5297 * remote.c (remote_target::extra_thread_info): Delete
5298 'display_buf' and 'n' locals. from the cache, regardless of
5299 packet mechanims is in use. Use cache for qThreadExtra and qP
5300 methods too.
5301
5302 2018-06-29 Pedro Alves <palves@redhat.com>
5303
5304 * blockframe.c (find_pc_sect_containing_function): New function.
5305 * breakpoint.c (print_breakpoint_location): Don't call
5306 find_pc_sect_function.
5307 * linespec.c (create_sals_line_offset): Record the location's
5308 symbol in the sal.
5309 * linespec.c (convert_address_location_to_sals): Fill in sal's
5310 symbol with find_pc_sect_containing_function.
5311 * symtab.c (find_function_start_sal): Rename to ...
5312 (find_function_start_sal_1): ... this.
5313 (find_function_start_sal): Reimplement as wrapper around
5314 find_function_start_sal_1, and use
5315 find_pc_sect_containing_function to fill in the sal's symbol.
5316 (find_function_start_sal(symbol*, bool)): Adjust.
5317 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5318 comments.
5319 (find_pc_sect_containing_function): Declare.
5320
5321 2018-06-29 Pedro Alves <palves@redhat.com>
5322
5323 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5324 true if the the location has no symbol.
5325
5326 2018-06-28 Tom Tromey <tom@tromey.com>
5327
5328 * NEWS: Mention --enable-codesign.
5329 * silent-rules.mk (ECHO_SIGN): New variable.
5330 * configure.ac: Add --enable-codesign.
5331 * configure: Rebuild.
5332 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5333 (gdb$(EXEEXT)): Optionally invoke codesign.
5334
5335 2018-06-28 Pedro Alves <palves@redhat.com>
5336
5337 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5338 comments.
5339 (switch_to_thread_no_regs): Adjust comment.
5340 * infcmd.c (stop_pc): Delete.
5341 (post_create_inferior, info_program_command): Replace references
5342 to stop_pc with references to thread_info->suspend.stop_pc.
5343 * inferior.h (stop_pc): Delete declaration.
5344 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5345 (handle_inferior_event_1, handle_signal_stop)
5346 (process_event_stop_test, keep_going_stepped_thread)
5347 (handle_step_into_function, handle_step_into_function_backward)
5348 (print_stop_location): Replace references to stop_pc with
5349 references to thread_info->suspend.stop_pc.
5350 (struct infcall_suspend_state) <stop_pc>: Delete field.
5351 (save_infcall_suspend_state, restore_infcall_suspend_state):
5352 Remove references to inf_stat->stop_pc.
5353 * linux-fork.c (fork_load_infrun_state): Likewise.
5354 * record-btrace.c (record_btrace_set_replay): Likewise.
5355 * record-full.c (record_full_goto_entry): Likewise.
5356 * remote.c (print_one_stopped_thread): Likewise.
5357 * target.c (target_resume): Extend comment.
5358 * thread.c (set_executing_thread): New.
5359 (set_executing): Use it.
5360 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5361 Remove references to stop_pc.
5362
5363 2018-06-28 Pedro Alves <palves@redhat.com>
5364
5365 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5366 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5367
5368 2018-06-28 Tom Tromey <tom@tromey.com>
5369
5370 * coffread.c (coff_symfile_finish): Update.
5371 * xcoffread.c (xcoff_symfile_finish): Update.
5372 * elfread.c (elf_symfile_finish): Update.
5373 * symfile.h (dwarf2_free_objfile): Don't declare.
5374 * dwarf2read.c (_initialize_dwarf2_read): Use
5375 register_objfile_data_with_cleanup.
5376 (dwarf2_free_objfile): Now static. Change signature.
5377
5378 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5379
5380 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5381 option "-o" to add-symbol-file-load to add an offset to each
5382 section's load address.
5383 * symfile.c (set_objfile_default_section_offset): New function.
5384
5385 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5386
5387 * symfile.c (add_symbol_file_command): Make sure that sections
5388 with the same name are sorted in the same order.
5389
5390 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5391
5392 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5393 require the second argument. If omitted, load sections at the
5394 addresses specified in the file.
5395
5396 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5397
5398 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5399 (_initialize_symfile): Add option "-o" to symbol-file to add an
5400 offset to each section of the symbol file.
5401
5402 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5403
5404 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5405
5406 2018-06-27 Tom Tromey <tom@tromey.com>
5407
5408 * stack.c (_initialize_stack): Update "func" help text.
5409
5410 2018-06-27 Tom Tromey <tom@tromey.com>
5411
5412 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5413 std::vector.
5414 (unwind_infopy_str, pyuw_create_unwind_info)
5415 (unwind_infopy_add_saved_register, pyuw_sniffer)
5416 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5417 Update.
5418 (struct saved_reg): Add constructor.
5419 <value>: Now a gdbpy_ref<>.
5420
5421 2018-06-27 Tom Tromey <tom@tromey.com>
5422
5423 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5424
5425 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5426
5427 * gdb-gdb.py.in: Format using autopep8.
5428
5429 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5430
5431 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5432 (type_lookup_function): Recognize CORE_ADDR values.
5433
5434 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5435
5436 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5437 print tag_name.
5438
5439 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5440
5441 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5442 <__lt__>: Add.
5443
5444 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5445
5446 * gdb-gdb.py: Move to...
5447 * gdb-gdb.py.in: ... here.
5448 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5449 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5450 dependencies.
5451 (distclean): Remove gdb-gdb.py when cleaning.
5452 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5453 * configure: Re-generate.
5454
5455 2018-06-27 Pedro Alves <palves@redhat.com>
5456
5457 * proc-service.c (get_ps_regcache): New.
5458 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5459 (ps_lsetfpregs): Use it.
5460
5461 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5462
5463 PR gdb/21695
5464 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5465 (dwarf_decode_lines_1): Adjust.
5466
5467 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5470 override.
5471 <info_proc>: Likewise.
5472
5473 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5474
5475 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5476 to windows_fetch_one_register, and only handle the case of
5477 fetching one register. Move the code that reloads the context
5478 and iterates over all registers if R is negative to...
5479 (windows_nat_target::fetch_registers): ... here.
5480 (do_windows_store_inferior_registers): Rename to
5481 windows_store_one_register, and only handle the case of storing
5482 one register. Move the code that handles the case where r is
5483 negative to...
5484 (windows_nat_target::store_registers) ... here.
5485
5486 2018-06-26 Tom Tromey <tom@tromey.com>
5487
5488 PR rust/22574:
5489 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5490 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5491 Update.
5492 (rust_internal_print_type): Add podata parameter.
5493 (rust_print_type): Update.
5494
5495 2018-06-26 Tom Tromey <tom@tromey.com>
5496
5497 * typeprint.h (struct print_offset_data) <update, finish,
5498 maybe_print_hole>: New methods.
5499 <indentation>: New constant.
5500 * typeprint.c (print_offset_data::indentation): Define.
5501 (print_offset_data::maybe_print_hole, print_offset_data::update)
5502 (print_offset_data::finish): Move from c-typeprint.c and rename.
5503 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5504 (print_spaces_filtered_with_print_options): Update.
5505 (c_print_type_union_field_offset, maybe_print_hole)
5506 (c_print_type_struct_field_offset): Move to typeprint.c and
5507 rename.
5508 (c_type_print_base_struct_union): Update.
5509
5510 2018-06-25 Pedro Alves <palves@redhat.com>
5511
5512 * gdbthread.h (thread_info_ref, delete_thread)
5513 (delete_thread_silent, first_thread_of_inferior)
5514 (any_thread_of_inferior, switch_to_thread)
5515 (enable_thread_stack_temporaries)
5516 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5517 (get_last_thread_stack_temporary)
5518 (value_in_thread_stack_temporaries, can_access_registers_thread):
5519 Spell out "struct thread_info" instead of just "thread_info".
5520 * inferior.h (notice_new_inferior): Likewise.
5521
5522 2018-06-25 Pedro Alves <palves@redhat.com>
5523
5524 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5525 pass thread_info pointer to delete_thread.
5526 (windows_nat_target::detach): Pass inferior pointer to
5527 detach_inferior.
5528 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5529 delete_thread.
5530 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5531 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5532 and pass a thread_info pointer to delete_thread.
5533 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5534 pass thread_info pointer to delete_thread.
5535 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5536 delete_thread_silent call.
5537 * procfs.c (procfs_target::detach): Pass inferior pointer to
5538 detach_inferior.
5539 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5540 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5541 delete_thread_silent call.
5542 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5543 pass thread_info pointer to delete_thread.
5544 (windows_nat_target::detach): Pass inferior pointer to
5545 delete_inferior.
5546
5547 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5548
5549 * regcache.c (readable_regcache::read_part): Fix asserts.
5550 (reg_buffer::raw_collect_part): New function.
5551 (regcache::write_part): Fix asserts.
5552 (reg_buffer::raw_supply_part): New function.
5553 (regcache::transfer_regset_register): New helper function.
5554 (regcache::transfer_regset): Call new functions.
5555 (regcache_supply_regset): Use gdb_byte*.
5556 (regcache::supply_regset): Likewise.
5557 (regcache_collect_regset): Likewise.
5558 (regcache::collect_regset): Likewise.
5559 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5560 (reg_buffer::raw_supply_part): Likewise.
5561 (regcache::transfer_regset_register): Likewise.
5562 (regcache::transfer_regset): Use gdb_byte*.
5563
5564 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5565
5566 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5567
5568 2018-06-21 Pedro Alves <palves@redhat.com>
5569
5570 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5571 instead of a ptid_t. All callers adjusted.
5572 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5573 adjusted.
5574 (print_ada_task_info, display_current_task_id, task_command_1):
5575 Adjust.
5576 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5577 inferior_thread.
5578 (breakpoint_kind): Adjust.
5579 (remove_breakpoints_pid): Rename to ...
5580 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5581 pointer. All callers adjusted.
5582 (bpstat_clear_actions): Use inferior_thread.
5583 (get_bpstat_thread): New.
5584 (bpstat_do_actions): Use it.
5585 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5586 to take a thread_info pointer. All callers adjusted.
5587 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5588 (breakpoint_re_set_thread): Use inferior_thread.
5589 * breakpoint.h (struct inferior): Forward declare.
5590 (bpstat_stop_status): Update.
5591 (remove_breakpoints_pid): Delete.
5592 (remove_breakpoints_inf): New.
5593 * bsd-uthread.c (bsd_uthread_target::wait)
5594 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5595 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5596 (maint_btrace_packet_history_cmd)
5597 (maint_btrace_clear_packet_history_cmd): Adjust.
5598 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5599 inferior_thread.
5600 * cli/cli-interp.c: Include "inferior.h".
5601 * common/refcounted-object.h (struct
5602 refcounted_object_ref_policy): New.
5603 * compile/compile-object-load.c: Include gdbthread.h.
5604 (store_regs): Use inferior_thread.
5605 * corelow.c (core_target::close): Use current_inferior.
5606 (core_target_open): Adjust to use first_thread_of_inferior and use
5607 the current inferior.
5608 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5609 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5610 <thread>: ... this new field. All references adjusted.
5611 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5612 Take a thread_info pointer instead of a ptid_t.
5613 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5614 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5615 thread_info pointer instead of a ptid_t.
5616 * elfread.c: Include "inferior.h".
5617 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5618 Use inferior_thread.
5619 * eval.c (evaluate_subexp): Likewise.
5620 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5621 inferior_thread.
5622 * gdb_proc_service.h (struct thread_info): Forward declare.
5623 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5624 <thread>: ... this new field. All references adjusted.
5625 * gdbarch.h, gdbarch.c: Regenerate.
5626 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5627 'thread' parameter. All implementations and callers adjusted.
5628 * gdbthread.h (thread_info) <set_running>: New method.
5629 (delete_thread, delete_thread_silent): Take a thread_info pointer
5630 instead of a ptid.
5631 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5632 (first_thread_of_process): Delete, replaced by ...
5633 (first_thread_of_inferior): ... this new function. All callers
5634 adjusted.
5635 (any_live_thread_of_process): Delete, replaced by ...
5636 (any_live_thread_of_inferior): ... this new function. All callers
5637 adjusted.
5638 (switch_to_thread, switch_to_no_thread): Declare.
5639 (is_executing): Delete.
5640 (enable_thread_stack_temporaries): Update comment.
5641 <enable_thread_stack_temporaries>: Take a thread_info pointer
5642 instead of a ptid_t. Incref the thread.
5643 <~enable_thread_stack_temporaries>: Decref the thread.
5644 <m_ptid>: Delete
5645 <m_thr>: New.
5646 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5647 (get_last_thread_stack_temporary)
5648 (value_in_thread_stack_temporaries, can_access_registers_thread):
5649 Take a thread_info pointer instead of a ptid_t. All callers
5650 adjusted.
5651 * infcall.c (get_call_return_value): Use inferior_thread.
5652 (run_inferior_call): Work with thread pointers instead of ptid_t.
5653 (call_function_by_hand_dummy): Work with thread pointers instead
5654 of ptid_t. Use thread_info_ref.
5655 * infcmd.c (proceed_thread_callback): Access thread's state
5656 directly.
5657 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5658 access thread's state directly.
5659 (continue_command): Use inferior_thread.
5660 (info_program_command): Use find_thread_ptid and access thread
5661 state directly.
5662 (proceed_after_attach_callback): Use thread state directly.
5663 (notice_new_inferior): Take a thread_info pointer instead of a
5664 ptid_t. All callers adjusted.
5665 (exit_inferior): Take an inferior pointer instead of a pid. All
5666 callers adjusted.
5667 (exit_inferior_silent): New.
5668 (detach_inferior): Delete.
5669 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5670 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5671 (detach_inferior_command, kill_inferior_command): Use
5672 find_inferior_id instead of valid_gdb_inferior_id and
5673 gdb_inferior_id_to_pid.
5674 (inferior_command): Use inferior and thread pointers.
5675 * inferior.h (struct thread_info): Forward declare.
5676 (notice_new_inferior): Take a thread_info pointer instead of a
5677 ptid_t. All callers adjusted.
5678 (detach_inferior): Delete declaration.
5679 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5680 instead of a pid. All callers adjusted.
5681 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5682 (valid_gdb_inferior_id): Delete.
5683 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5684 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5685 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5686 ...
5687 <inf>: ... this new field.
5688 <step_ptid>: Delete, replaced by ...
5689 <step_thread>: ... this new field.
5690 (get_displaced_stepping_state): Take an inferior pointer instead
5691 of a pid. All callers adjusted.
5692 (displaced_step_in_progress_any_inferior): Adjust.
5693 (displaced_step_in_progress_thread): Take a thread pointer instead
5694 of a ptid_t. All callers adjusted.
5695 (displaced_step_in_progress, add_displaced_stepping_state): Take
5696 an inferior pointer instead of a pid. All callers adjusted.
5697 (get_displaced_step_closure_by_addr): Adjust.
5698 (remove_displaced_stepping_state): Take an inferior pointer
5699 instead of a pid. All callers adjusted.
5700 (displaced_step_prepare_throw, displaced_step_prepare)
5701 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5702 All callers adjusted.
5703 (start_step_over): Adjust.
5704 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5705 displaced step queue.
5706 (do_target_resume): Adjust.
5707 (fetch_inferior_event): Use inferior_thread.
5708 (context_switch, get_inferior_stop_soon): Take an
5709 execution_control_state pointer instead of a ptid_t. All callers
5710 adjusted.
5711 (switch_to_thread_cleanup): Delete.
5712 (stop_all_threads): Use scoped_restore_current_thread.
5713 * inline-frame.c: Include "gdbthread.h".
5714 (inline_state) <inline_state>: Take a thread pointer instead of a
5715 ptid_t. All callers adjusted.
5716 <ptid>: Delete, replaced by ...
5717 <thread>: ... this new field.
5718 (find_inline_frame_state): Take a thread pointer instead of a
5719 ptid_t. All callers adjusted.
5720 (skip_inline_frames, step_into_inline_frame)
5721 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5722 pointer instead of a ptid_t. All callers adjusted.
5723 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5724 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5725 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5726 pointers directly.
5727 * linux-nat.c (get_detach_signal): Likewise.
5728 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5729 (thread_db_notice_clone): Adjust.
5730 (thread_db_find_new_threads_silently)
5731 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5732 a thread pointer instead of a ptid_t. All callers adjusted.
5733 * mi/mi-cmd-var.c: Include "inferior.h".
5734 (mi_cmd_var_update_iter): Update to use thread pointers.
5735 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5736 inferior directly.
5737 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5738 out to ...
5739 (mi_output_running): ... this new function.
5740 (mi_on_resume_1): Adjust to use it.
5741 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5742 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5743 directly.
5744 (interrupt_thread_callback): : Adjust to use thread and inferior
5745 pointers.
5746 * proc-service.c: Include "gdbthread.h".
5747 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5748 * progspace-and-thread.c: Include "inferior.h".
5749 * progspace.c: Include "inferior.h".
5750 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5751 hold a reference to an inferior_object.
5752 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5753 inferior_thread.
5754 * python/py-inferior.c (struct inferior_object): Give the type a
5755 tag name instead of a typedef.
5756 (python_on_normal_stop): No need to check if the current thread is
5757 listed.
5758 (inferior_to_inferior_object): Change return type to
5759 inferior_object. All callers adjusted.
5760 (find_thread_object): Delete, bits factored out to ...
5761 (thread_to_thread_object): ... this new function.
5762 * python/py-infthread.c (create_thread_object): Use
5763 inferior_to_inferior_object.
5764 (thpy_is_stopped): Use thread pointer directly.
5765 (gdbpy_selected_thread): Use inferior_thread.
5766 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5767 field, replaced with ...
5768 <thread>: ... this new field. All users adjusted.
5769 (btpy_insn_or_gap_new): Drop const.
5770 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5771 callers adjusted.
5772 * python/py-record.c: Include "gdbthread.h".
5773 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5774 a ptid_t. All callers adjusted.
5775 (gdbpy_current_recording): Use inferior_thread.
5776 * python/py-record.h (recpy_record_object) <ptid>: Delete
5777 field, replaced with ...
5778 <thread>: ... this new field. All users adjusted.
5779 (recpy_element_object) <ptid>: Delete
5780 field, replaced with ...
5781 <thread>: ... this new field. All users adjusted.
5782 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5783 a ptid_t. All callers adjusted.
5784 * python/py-threadevent.c: Include "gdbthread.h".
5785 (get_event_thread): Use thread_to_thread_object.
5786 * python/python-internal.h (struct inferior_object): Forward
5787 declare.
5788 (find_thread_object, find_inferior_object): Delete declarations.
5789 (thread_to_thread_object, inferior_to_inferior_object): New
5790 declarations.
5791 * record-btrace.c: Include "inferior.h".
5792 (require_btrace_thread): Use inferior_thread.
5793 (record_btrace_frame_sniffer)
5794 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5795 (get_thread_current_frame): Use scoped_restore_current_thread and
5796 switch_to_thread.
5797 (get_thread_current_frame): Use thread pointer directly.
5798 (record_btrace_replay_at_breakpoint): Use thread's inferior
5799 pointer directly.
5800 * record-full.c: Include "inferior.h".
5801 * regcache.c: Include "gdbthread.h".
5802 (get_thread_arch_regcache): Use the inferior's address space
5803 directly.
5804 (get_thread_regcache, registers_changed_thread): New.
5805 * regcache.h (get_thread_regcache(thread_info *thread)): New
5806 overload.
5807 (registers_changed_thread): New.
5808 (remote_target) <remote_detach_1>: Swap order of parameters.
5809 (remote_add_thread): <remote_add_thread>: Return the new thread.
5810 (get_remote_thread_info(ptid_t)): New overload.
5811 (remote_target::remote_notice_new_inferior): Use thread pointers
5812 directly.
5813 (remote_target::process_initial_stop_replies): Use
5814 thread_info::set_running.
5815 (remote_target::remote_detach_1, remote_target::detach)
5816 (extended_remote_target::detach): Adjust.
5817 * stack.c (frame_show_address): Use inferior_thread.
5818 * target-debug.h (target_debug_print_thread_info_pp): New.
5819 * target-delegates.c: Regenerate.
5820 * target.c (default_thread_address_space): Delete.
5821 (memory_xfer_partial_1): Use current_inferior.
5822 (target_detach): Use current_inferior.
5823 (target_thread_address_space): Delete.
5824 (generic_mourn_inferior): Use current_inferior.
5825 * target.h (struct target_ops) <thread_address_space>: Delete.
5826 (target_thread_address_space): Delete.
5827 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5828 pointers directly.
5829 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5830 thread pointer instead of a ptid_t. Adjust all callers.
5831 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5832 (first_thread_of_process): Delete, replaced by ...
5833 (first_thread_of_inferior): ... this new function. All callers
5834 adjusted.
5835 (any_thread_of_process): Rename to ...
5836 (any_thread_of_inferior): ... this, and take an inferior pointer.
5837 (any_live_thread_of_process): Rename to ...
5838 (any_live_thread_of_inferior): ... this, and take an inferior
5839 pointer.
5840 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5841 (value_in_thread_stack_temporaries)
5842 (get_last_thread_stack_temporary): Take a thread pointer instead
5843 of a ptid_t. Adjust all callers.
5844 (thread_info::set_running): New.
5845 (validate_registers_access): Use inferior_thread.
5846 (can_access_registers_ptid): Rename to ...
5847 (can_access_registers_thread): ... this, and take a thread
5848 pointer.
5849 (print_thread_info_1): Adjust to compare thread pointers instead
5850 of ptids.
5851 (switch_to_no_thread, switch_to_thread): Make extern.
5852 (scoped_restore_current_thread::~scoped_restore_current_thread):
5853 Use m_thread pointer directly.
5854 (scoped_restore_current_thread::scoped_restore_current_thread):
5855 Use inferior_thread.
5856 (thread_command): Use thread pointer directly.
5857 (thread_num_make_value_helper): Use inferior_thread.
5858 * top.c (execute_command): Use inferior_thread.
5859 * tui/tui-interp.c: Include "inferior.h".
5860 * varobj.c (varobj_create): Use inferior_thread.
5861 (value_of_root_1): Use find_thread_global_id instead of
5862 global_thread_id_to_ptid.
5863
5864 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5865
5866 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5867 possible.
5868 (regcache::write_part): Likewise.
5869 (readable_regcache::cooked_read_part): Update comment.
5870 (readable_regcache::cooked_write_part): Likewise.
5871 * regcache.h: (readable_regcache::read_part): Likewise.
5872 (regcache::write_part): Likewise.
5873
5874 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5875 Dirk Schubert <dirk.schubert@arm.com>
5876
5877 * aarch64-linux-nat.c (post_attach): New.
5878 (aarch64_linux_nat_target::post_attach): Override post_attach to
5879 record the number of hardware debug registers.
5880
5881 2018-06-20 Tom Tromey <tom@tromey.com>
5882
5883 * python/py-param.c (add_setshow_generic): Make parameters const.
5884 (parmpy_init): Update.
5885
5886 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * regcache.h (regcache_cooked_read_ftype): Rename to...
5889 (register_read_ftype): ...this, change type to function_view.
5890 (class reg_buffer) <save>: Remove src parameter.
5891 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5892 parameter non-const in first overload. Remove src parameter in
5893 second overload.
5894 * regcache.c (do_cooked_read): Remove.
5895 (readonly_detached_regcache::readonly_detached_regcache): Make
5896 parameter non-const, adjust call to other constructor.
5897 (reg_buffer::save): Remove src parameter.
5898 * frame.c (do_frame_register_read): Remove.
5899 (frame_save_as_regcache): Use lambda function.
5900 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5901 parameter to ppu2spu_data *.
5902 (ppu2spu_sniffer): Use lambda function.
5903
5904 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * record-full.c (record_full_target::insert_breakpoint): Remove
5907 "struct" keyword, add const.
5908
5909 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5910
5911 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5912 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5913 * configure.ac: Remove AC_PREREQ, add missing quoting.
5914 * gnulib/configure.ac: Modernize usage of
5915 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5916 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5917 (AUTOMAKE_VERSION): Bump to 1.15.1.
5918 * configure: Re-generate.
5919 * config.in: Re-generate.
5920 * aclocal.m4: Re-generate.
5921 * gnulib/aclocal.m4: Re-generate.
5922 * gnulib/config.in: Re-generate.
5923 * gnulib/configure: Re-generate.
5924 * gnulib/import/Makefile.in: Re-generate.
5925
5926 2018-06-19 Pedro Alves <palves@redhat.com>
5927
5928 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5929 (lookup_minimal_symbol_by_pc_section): ... here with
5930 gdb_assert_not_reached added.
5931
5932 2018-06-19 Pedro Alves <palves@redhat.com>
5933
5934 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5935 parameter with a block parameter. Compare location's block symbol
5936 with the frame's block instead of addresses.
5937 (skip_inline_frames): Pass the current block instead of the
5938 frame's address. Break out as soon as we determine the frame
5939 should not be skipped.
5940
5941 2018-06-18 Tom Tromey <tom@tromey.com>
5942
5943 * solib-aix.c (solib_aix_get_section_offsets): Return
5944 unique_xmalloc_ptr.
5945 (solib_aix_solib_create_inferior_hook): Update.
5946
5947 2018-06-18 Tom Tromey <tom@tromey.com>
5948
5949 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5950
5951 2018-06-18 Tom Tromey <tom@tromey.com>
5952
5953 * solib-frv.c (frv_relocate_main_executable): Use
5954 unique_xmalloc_ptr.
5955 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5956 unique_xmalloc_ptr.
5957
5958 2018-06-18 Tom Tromey <tom@tromey.com>
5959
5960 * objfiles.h (inhibit_section_map_updates): Update.
5961 (resume_section_map_updates, resume_section_map_updates_cleanup):
5962 Remove.
5963 * solib-svr4.c (svr4_handle_solib_event): Update.
5964 * objfiles.c (inhibit_section_map_updates): Return
5965 scoped_restore_tmpl<int>.
5966 (resume_section_map_updates, resume_section_map_updates_cleanup):
5967 Remove.
5968
5969 2018-06-18 Tom Tromey <tom@tromey.com>
5970
5971 * valprint.h (read_string): Update.
5972 * valprint.c (read_string): Change type of "buffer".
5973 (val_print_string): Update.
5974 * python/py-value.c (valpy_string): Update.
5975 * language.h (struct language_defn) <la_get_string>: Change
5976 type of "buffer".
5977 (default_get_string, c_get_string): Update.
5978 * language.c (default_get_string): Change type of "buffer".
5979 * guile/scm-value.c (gdbscm_value_to_string): Update.
5980 * c-lang.c (c_get_string): Change type of "buffer".
5981
5982 2018-06-18 Tom Tromey <tom@tromey.com>
5983
5984 * ser-mingw.c (struct pipe_state_destroyer): New.
5985 (pipe_state_up): New typedef.
5986 (cleanup_pipe_state): Remove.
5987 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5988
5989 2018-06-18 Tom Tromey <tom@tromey.com>
5990
5991 * rust-lang.h (rust_yyerror): Don't declare.
5992 * rust-lang.c (rust_language_defn): Update.
5993 * rust-exp.y (yyerror): Now static.
5994 * parse.c (parse_exp_in_context_1): Update.
5995 * p-lang.h (p_yyerror): Don't declare.
5996 * p-lang.c (p_language_defn): Update.
5997 * p-exp.y (yyerror): Now static.
5998 * opencl-lang.c (opencl_language_defn): Update.
5999 * objc-lang.c (objc_language_defn): Update.
6000 * m2-lang.h (m2_yyerror): Don't declare.
6001 * m2-lang.c (m2_language_defn): Update.
6002 * m2-exp.y (yyerror): Now static.
6003 * language.h (struct language_defn) <la_error>: Remove.
6004 * language.c (unk_lang_error): Remove.
6005 (unknown_language_defn, auto_language_defn): Remove.
6006 * go-lang.h (go_yyerror): Don't declare.
6007 * go-lang.c (go_language_defn): Update.
6008 * go-exp.y (yyerror): Now static.
6009 * f-lang.h (f_yyerror): Don't declare.
6010 * f-lang.c (f_language_defn): Update.
6011 * f-exp.y (yyerror): Now static.
6012 * d-lang.h (d_yyerror): Don't declare.
6013 * d-lang.c (d_language_defn): Update.
6014 * d-exp.y (yyerror): Now static.
6015 * c-lang.h (c_yyerror): Don't declare.
6016 * c-lang.c (c_language_defn, cplus_language_defn)
6017 (asm_language_defn, minimal_language_defn): Update.
6018 * c-exp.y (yyerror): Now static.
6019 * ada-lang.h (ada_yyerror): Don't declare.
6020 * ada-lang.c (ada_language_defn): Update.
6021 * ada-exp.y (yyerror): Now static.
6022
6023 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6024
6025 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6026 (store_sveregs_to_thread): Likewise.
6027 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6028 (aarch64_linux_store_inferior_registers): Likewise.
6029 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6030 function.
6031 (aarch64_sve_regs_copy_to_regcache): Likewise.
6032 (aarch64_sve_regs_copy_from_regcache): Likewise.
6033 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6034 declaration.
6035 (aarch64_sve_regs_copy_to_regcache): Likewise.
6036 (aarch64_sve_regs_copy_from_regcache): Likewise.
6037 (sve_context): Structure from Linux headers.
6038 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6039 (SVE_SIG_ZREG_SIZE): Likewise.
6040 (SVE_SIG_PREG_SIZE): Likewise.
6041 (SVE_SIG_FFR_SIZE): Likewise.
6042 (SVE_SIG_REGS_OFFSET): Likewise.
6043 (SVE_SIG_ZREGS_OFFSET): Likewise.
6044 (SVE_SIG_ZREG_OFFSET): Likewise.
6045 (SVE_SIG_ZREGS_SIZE): Likewise.
6046 (SVE_SIG_PREGS_OFFSET): Likewise.
6047 (SVE_SIG_PREG_OFFSET): Likewise.
6048 (SVE_SIG_PREGS_SIZE): Likewise.
6049 (SVE_SIG_FFR_OFFSET): Likewise.
6050 (SVE_SIG_REGS_SIZE): Likewise.
6051 (SVE_SIG_CONTEXT_SIZE): Likewise.
6052 (SVE_PT_REGS_MASK): Likewise.
6053 (SVE_PT_REGS_FPSIMD): Likewise.
6054 (SVE_PT_REGS_SVE): Likewise.
6055 (SVE_PT_VL_INHERIT): Likewise.
6056 (SVE_PT_VL_ONEXEC): Likewise.
6057 (SVE_PT_REGS_OFFSET): Likewise.
6058 (SVE_PT_FPSIMD_OFFSET): Likewise.
6059 (SVE_PT_FPSIMD_SIZE): Likewise.
6060 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6061 (SVE_PT_SVE_PREG_SIZE): Likewise.
6062 (SVE_PT_SVE_FFR_SIZE): Likewise.
6063 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6064 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6065 (__SVE_SIG_TO_PT): Likewise.
6066 (SVE_PT_SVE_OFFSET): Likewise.
6067 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6068 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6069 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6070 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6071 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6072 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6073 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6074 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6075 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6076 (SVE_PT_SVE_SIZE): Likewise.
6077 (SVE_PT_SIZE): Likewise.
6078 (HAS_SVE_STATE): New define.
6079
6080 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6081
6082 * nat/aarch64-sve-linux-sigcontext.h: New file.
6083 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6084 new files.
6085 (SVE_VQ_MIN): Likewise.
6086 (SVE_VQ_MAX): Likewise.
6087 (SVE_VL_MIN): Likewise.
6088 (SVE_VL_MAX): Likewise.
6089 (SVE_NUM_ZREGS): Likewise.
6090 (SVE_NUM_PREGS): Likewise.
6091 (sve_vl_valid): Likewise.
6092 (struct user_sve_header): Likewise.
6093
6094 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6095 Richard Bunt <Richard.Bunt@arm.com>
6096
6097 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6098 was requested by GDB.
6099
6100 2018-06-15 Tom de Vries <tdevries@suse.de>
6101
6102 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6103
6104 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6105
6106 * gnulib/update-gnulib.sh: Print expected versions of
6107 autoconf/aclocal.
6108
6109 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6110
6111 * arch-utils.c (default_type_align): Use type_length_units.
6112 * gdbtypes.c (type_align): Use type_length_units.
6113
6114 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6115
6116 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6117 of 'define' command.
6118
6119 2018-06-14 Tom de Vries <tdevries@suse.de>
6120
6121 PR cli/22573
6122 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6123 get_no_prettyformat_print_options.
6124
6125 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * sparc-nat.h: Include target.h.
6128 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6129 <fetch_registers>: Remove this argument in function call.
6130 <store_registers>: Remove this argument in function call, remove
6131 extra semicolon.
6132 <low_forget_process>: Call sparc64_forget_process instead of
6133 sparc_forget_process.
6134
6135 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6136
6137 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6138 (procfs_target::make_corefile_notes): Adjust to new
6139 target_read_alloc return type.
6140
6141 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6142 Stephen Roberts <stephen.roberts@arm.com>
6143
6144 PR gdb/22882
6145 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6146 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6147 Move should_notify_stop local into more inner scope.
6148
6149 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6150 Stephen Roberts <stephen.roberts@arm.com>
6151
6152 PR gdb/22882
6153 * infrun.c (resume_1): Add call to mark_async_event_handler.
6154
6155 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6156
6157 * infrun.c (do_target_wait): Change old version of $pc printed.
6158
6159 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6160
6161 * dwarf2read.c (read_index_from_section): Rename to...
6162 (read_gdb_index_from_section): ... this, update all callers.
6163 (dwarf2_read_index): Rename to...
6164 (dwarf2_read_gdb_index): ... this, update all callers.
6165
6166 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6167
6168 * gdb/hppa-linux-nat.c
6169 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6170 hppa_linux_nat_target::fetch_registers.
6171
6172 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6173
6174 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6175 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6176 (AARCH64_DWARF_SVE_FFR): Likewise.
6177 (AARCH64_DWARF_SVE_P0): Likewise.
6178 (AARCH64_DWARF_SVE_Z0): Likewise.
6179
6180 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6181
6182 * common/common-regcache.h (raw_compare): New function.
6183 * regcache.c (regcache::raw_compare): Likewise.
6184 * regcache.h (regcache::raw_compare): New declaration.
6185
6186 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6187
6188 * common/common-regcache.h (reg_buffer_common): New structure.
6189 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6190 (reg_buffer::raw_supply): Likewise.
6191 (reg_buffer::raw_supply_integer): Likewise.
6192 (reg_buffer::raw_supply_zeroed): Likewise.
6193 (reg_buffer::raw_collect): Likewise.
6194 (reg_buffer::raw_collect_integer): Likewise.
6195 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6196 (reg_buffer::raw_supply): Likewise.
6197 (reg_buffer::raw_supply_integer): Likewise.
6198 (reg_buffer::raw_supply_zeroed): Likewise.
6199 (reg_buffer::raw_collect): Likewise.
6200 (reg_buffer::raw_collect_integer): Likewise.
6201
6202 2018-06-10 Tom Tromey <tom@tromey.com>
6203
6204 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6205 (class remote_state) <stop_reply_queue>: Now std::vector.
6206 (remote_state::~remote_state)
6207 (remote_target::stop_reply_queue_length): Update.
6208 (struct queue_iter_param, remove_child_of_pending_fork)
6209 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6210 (check_pending_event_prevents_wildcard_vcont_callback)
6211 (remove_stop_reply_for_inferior)
6212 (remove_stop_reply_of_remote_state)
6213 (remote_notif_remove_once_on_match)
6214 (stop_reply_match_ptid_and_ws)
6215 (remote_kill_child_of_pending_fork): Remove.
6216 (remote_target::remove_new_fork_children)
6217 (remote_target::check_pending_events_prevent_wildcard_vcont)
6218 (remote_target::discard_pending_stop_replies)
6219 (remote_target::discard_pending_stop_replies_in_queue)
6220 (remote_target::remote_notif_remove_queued_reply)
6221 (remote_target::queued_stop_reply)
6222 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6223 (remote_target::wait, remote_target::kill_new_fork_children)
6224 (remote_target::async): Update.
6225
6226 2018-06-10 Tom Tromey <tom@tromey.com>
6227
6228 * record-full.c (record_full_arch_list_cleanups): Remove.
6229 (record_full_message): Use try/catch.
6230 (record_full_wait_cleanups): Remove.
6231 (record_full_wait_1): Use try/catch.
6232 (record_full_restore): Likewise.
6233
6234 2018-06-10 Tom Tromey <tom@tromey.com>
6235
6236 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6237 declare VEC. Add constructor.
6238 <in_target_beneath>: Now bool.
6239 (record_full_breakpoints): Now a std::vector, static.
6240 (record_full_sync_record_breakpoints)
6241 (record_full_init_record_breakpoints)
6242 (record_full_target::insert_breakpoint)
6243 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6244
6245 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6248 * serial.c (serial_interface_lookup): Remove struct keyword.
6249
6250 2018-06-10 Tom Tromey <tom@tromey.com>
6251
6252 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6253 method.
6254 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6255 a method.
6256 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6257 method.
6258 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6259 "beneath" as a method.
6260 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6261 Use "beneath" as a method.
6262
6263 2018-06-10 Tom Tromey <tom@tromey.com>
6264
6265 * tracefile.c (struct trace_file_writer_deleter): New.
6266 <operator()>: Rename from trace_file_writer_xfree.
6267 (trace_file_writer_up): New typedef.
6268 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6269
6270 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6271
6272 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6273 <m_registers, m_register_status>: Change type to
6274 std::unique_ptr.
6275 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6276 XCNEWVEC.
6277
6278 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6279
6280 * common/common-regcache.h (enum register_status): Add
6281 underlying type "signed char".
6282 * regcache.h (reg_buffer) <m_register_status>: Change type to
6283 register_status *.
6284 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6285 register_status instead of signed char.
6286 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6287 (reg_buffer::get_register_status): Remove cast.
6288 (readable_regcache::raw_read): Remove cast.
6289 (readable_regcache::cooked_read): Remove cast.
6290
6291 2018-06-09 Tom Tromey <tom@tromey.com>
6292
6293 * source.c (reverse_search_command, forward_search_command): Use
6294 scoped_fd.
6295
6296 2018-06-09 Tom Tromey <tom@tromey.com>
6297
6298 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6299 (serial_ops_list): Now static, std::vector.
6300 (serial_interface_lookup, serial_add_interface): Update.
6301
6302 2018-06-09 Tom Tromey <tom@tromey.com>
6303
6304 * dwarf2read.c (process_cu_includes): Update.
6305 (process_full_comp_unit): Update.
6306 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6307 std::vector.
6308
6309 2018-06-08 Paul Koning <paul_koning@dell.com>
6310
6311 PR gdb/23252
6312
6313 * python/python.c (do_start_initialization):
6314 Avoid call to internal Python API.
6315 (init__gdb_module): New function.
6316
6317 2018-06-08 Gary Benson <gbenson@redhat.com>
6318
6319 * linux-thread-db.c (valprint.h): New include.
6320 (struct check_thread_db_info): New structure.
6321 (check_thread_db_on_load, tdb_testinfo): New static globals.
6322 (check_thread_db, check_thread_db_callback): New functions.
6323 (try_thread_db_load_1): Run integrity checks if requested.
6324 (maintenance_check_libthread_db): New function.
6325 (_initialize_thread_db): Register "maint check libthread-db"
6326 and "maint set/show check-libthread-db".
6327 * NEWS: Mention the above new commands.
6328
6329 2018-06-08 Tom Tromey <tom@tromey.com>
6330
6331 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6332 now a method.
6333
6334 2018-06-08 Tom Tromey <tom@tromey.com>
6335
6336 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6337
6338 2018-06-08 Tom Tromey <tom@tromey.com>
6339
6340 * common/btrace-common.h (struct btrace_data): Add constructor,
6341 destructor, move assignment operator.
6342 <empty, clear, fini>: New methods.
6343 <format>: Initialize.
6344 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6345 (btrace_data_empty): Don't declare.
6346 * common/btrace-common.c (btrace_data_init): Remove.
6347 (btrace_data::fini): Rename from btrace_data_fini.
6348 (btrace_data::empty): Rename from btrace_data_empty.
6349 (btrace_data::clear): Rename from btrace_data_clear. Return
6350 bool.
6351 * btrace.h (make_cleanup_btrace_data): Don't declare.
6352 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6353 (parse_xml_btrace): Update.
6354 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6355 (maint_btrace_clear_packet_history_cmd): Update.
6356
6357 2018-06-07 Pedro Alves <palves@redhat.com>
6358
6359 * target.h (target_ops) <beneath>: Now a method. All references
6360 updated.
6361 (class target_stack): New.
6362 * target.c (g_target_stack): New.
6363 (g_current_top_target): Delete.
6364 (current_top_target): Get the top target out of g_target_stack.
6365 (target_stack::push, target_stack::unpush): New.
6366 (push_target, unpush_target): Reimplement.
6367 (target_is_pushed): Reimplement in terms of g_target_stack.
6368 (target_ops::beneath, target_stack::find_beneath): New.
6369
6370 2018-06-07 Pedro Alves <palves@redhat.com>
6371
6372 * target.h (find_target_beneath): Delete declaration.
6373 * target.c (find_target_beneath): Delete definition.
6374 * aix-thread.c: All callers of find_target_beneath adjusted to
6375 call target_ops::beneath instead.
6376 * bsd-uthread.c: Likewise.
6377 * linux-thread-db.c: Likewise.
6378 * ravenscar-thread.c: Likewise.
6379 * sol-thread.c: Likewise.
6380 * spu-multiarch.c: Likewise.
6381
6382 2018-06-07 Pedro Alves <palves@redhat.com>
6383
6384 * target.h (target_ops) <beneath>: Now a method. All references
6385 updated.
6386 (target_ops) <m_beneath>: New.
6387 * target.c (target_ops::beneath): New.
6388 * corelow.c: Adjust all references to target_ops::beneath.
6389 * linux-thread-db.c: Likewise.
6390 * make-target-delegates: Likewise.
6391 * record-btrace.c: Likewise.
6392 * record-full.c: Likewise.
6393 * remote.c: Likewise.
6394 * target.c: Likewise.
6395 * target-delegates.c: Regenerate.
6396
6397 2018-06-07 Pedro Alves <palves@redhat.com>
6398
6399 * target.h (target_stack): Delete.
6400 (current_top_target): Declare function.
6401 * target.c (target_stack): Delete.
6402 (g_current_top_target): New.
6403 (current_top_target): New function.
6404 * auxv.c: Use current_top_target instead of target_stack
6405 throughout.
6406 * avr-tdep.c: Likewise.
6407 * breakpoint.c: Likewise.
6408 * corefile.c: Likewise.
6409 * elfread.c: Likewise.
6410 * eval.c: Likewise.
6411 * exceptions.c: Likewise.
6412 * frame.c: Likewise.
6413 * gdbarch-selftests.c: Likewise.
6414 * gnu-v3-abi.c: Likewise.
6415 * ia64-tdep.c: Likewise.
6416 * ia64-vms-tdep.c: Likewise.
6417 * infcall.c: Likewise.
6418 * infcmd.c: Likewise.
6419 * infrun.c: Likewise.
6420 * linespec.c: Likewise.
6421 * linux-tdep.c: Likewise.
6422 * minsyms.c: Likewise.
6423 * ppc-linux-nat.c: Likewise.
6424 * ppc-linux-tdep.c: Likewise.
6425 * procfs.c: Likewise.
6426 * regcache.c: Likewise.
6427 * remote.c: Likewise.
6428 * rs6000-tdep.c: Likewise.
6429 * s390-linux-nat.c: Likewise.
6430 * s390-tdep.c: Likewise.
6431 * solib-aix.c: Likewise.
6432 * solib-darwin.c: Likewise.
6433 * solib-dsbt.c: Likewise.
6434 * solib-spu.c: Likewise.
6435 * solib-svr4.c: Likewise.
6436 * solib-target.c: Likewise.
6437 * sparc-tdep.c: Likewise.
6438 * sparc64-tdep.c: Likewise.
6439 * spu-tdep.c: Likewise.
6440 * symfile.c: Likewise.
6441 * symtab.c: Likewise.
6442 * target-descriptions.c: Likewise.
6443 * target-memory.c: Likewise.
6444 * target.c: Likewise.
6445 * target.h: Likewise.
6446 * tracefile-tfile.c: Likewise.
6447 * tracepoint.c: Likewise.
6448 * valops.c: Likewise.
6449 * valprint.c: Likewise.
6450 * value.c: Likewise.
6451 * windows-tdep.c: Likewise.
6452 * mi/mi-main.c: Likewise.
6453
6454 2018-06-07 Tom Tromey <tom@tromey.com>
6455
6456 * valprint.h (build_address_symbolic): Declare.
6457 * printcmd.c (print_address_symbolic): Update.
6458 (build_address_symbolic): Change "name" and "filename" to
6459 std::string.
6460 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6461 Update.
6462 * defs.h (build_address_symbolic): Remove declaration.
6463
6464 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6465
6466 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6467 (aarch64_vnv_type): Add function.
6468 (aarch64_pseudo_register_name): Add V regs for SVE.
6469 (aarch64_pseudo_register_type): Likewise.
6470 (aarch64_pseudo_register_reggroup_p): Likewise.
6471 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6472 (aarch64_pseudo_read_value): Add V regs for SVE.
6473 (aarch64_pseudo_write_2): Use V0 offset for SVE
6474 (aarch64_pseudo_write): Add V regs for SVE.
6475 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6476
6477 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6478
6479 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6480 (sve_vl_from_vq): Likewise.
6481
6482 2018-06-05 Tom Tromey <tom@tromey.com>
6483
6484 * cli/cli-cmds.c (show_version): Update.
6485 * top.c (print_gdb_version): Add "interactive" parameter.
6486 Update.
6487 * main.c (captured_main_1): Update.
6488 * top.h (print_gdb_version): Add "interactive" parameter and a
6489 comment.
6490
6491 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6492
6493 * common/enum-flags.h: Add trailing semicolon to example in
6494 comment.
6495
6496 2018-06-05 Tom Tromey <tom@tromey.com>
6497
6498 PR cli/12326:
6499 * NEWS: Add entry about pager.
6500 * utils.c (pagination_disabled_for_command): New global.
6501 (prompt_for_continue): Allow "c" response to prompt.
6502 (reinitialize_more_filter): Clear
6503 pagination_disabled_for_command.
6504 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6505
6506 2018-06-04 Tom Tromey <tom@tromey.com>
6507
6508 * ada-lang.h (ada_lookup_symbol_list): Update.
6509 * ada-lang.c (resolve_subexp): Update.
6510 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6511 parameter.
6512 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6513 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6514 results parameter to std::vector.
6515 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6516 Update.
6517 * ada-exp.y (block_lookup): Update.
6518 (select_possible_type_sym): Change type of syms. Remove nsyms
6519 parameter.
6520 (write_var_or_type, write_name_assoc): Update.
6521
6522 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6523
6524 * windows-nat.c (windows_nat_target::xfer_partial): Return
6525 TARGET_XFER_E_IO if we need to delegate to the target beneath
6526 but BENEATH is NULL.
6527
6528 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6529
6530 * Makefile.in (config.status): Add configure.nat as a
6531 dependency.
6532
6533 2018-06-04 Tom Tromey <tom@tromey.com>
6534
6535 * cp-name-parser.y (cpname_state): Add method declarations.
6536 (HANDLE_QUAL): Update.
6537 (cpname_state::d_grab, cpname_state::fill_comp)
6538 (cpname_state::make_operator, cpname_state::make_dtor)
6539 (cpname_state::make_builtin_type, cpname_state::make_name)
6540 (cpname_state::d_qualify, cpname_state::d_int_type)
6541 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6542 (%union): Move earlier.
6543
6544 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6545
6546 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6547
6548 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6549
6550 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6551 (aarch64_pseudo_write_1): Likewise.
6552 (aarch64_pseudo_read_value): Use helper.
6553 (aarch64_pseudo_write): Likewise.
6554
6555 2018-06-04 Pedro Alves <palves@redhat.com>
6556
6557 * darwin-nat.c (darwin_ops): Delete.
6558 (darwin_attach_pid): Use get_native_target.
6559
6560 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6561
6562 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6563 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6564
6565 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6566
6567 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6568 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6569 (aarch64_gdbarch_init): Check for SVE.
6570 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6571
6572 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6573
6574 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6575 * aarch64-tdep.h (aarch64_read_description): Likewise.
6576 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6577 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6578 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6579 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6580 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6581
6582 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6583
6584 * value.c (value_fetch_lazy_bitfield): New.
6585 (value_fetch_lazy_memory): New.
6586 (value_fetch_lazy_register): New.
6587 (value_fetch_lazy): Factor out to smaller functions.
6588
6589 2018-06-01 Tom Tromey <tom@tromey.com>
6590
6591 * cp-name-parser.y (backslashable, represented): Now const.
6592
6593 2018-06-01 Tom Tromey <tom@tromey.com>
6594
6595 * cp-name-parser.y: Include parser-defs.h.
6596 (parser_fprintf): Remove declaration.
6597
6598 2018-06-01 Tom Tromey <tom@tromey.com>
6599
6600 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6601 %parse-param.
6602 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6603 (global_result): Remove globals.
6604 (struct cpname_state): New.
6605 (yyparse): Don't declare.
6606 (yylex, yyerror): Move declarations after %union.
6607 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6608 (make_name): Add state parameter.
6609 Update all callers.
6610 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6611 parameter.
6612 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6613 Update.
6614 (yylex): Add lvalp, state parameters.
6615 (yyerror): Add state parameter.
6616 (cp_demangled_name_to_comp): Update.
6617
6618 2018-06-01 Tom Tromey <tom@tromey.com>
6619
6620 * cp-name-parser.y (parser_fprintf): Declare.
6621 (GDB_YY_REMAP_PREFIX): Define.
6622 Include yy-remap.h. Don't redefine yy* identifiers.
6623
6624 2018-06-01 Tom Tromey <tom@tromey.com>
6625
6626 * python/py-type.c (typy_legacy_template_argument): Update.
6627 * cp-support.h (cp_demangled_name_to_comp): Update.
6628 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6629 parameter to be a "std::string *".
6630 (main): Update.
6631
6632 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6633
6634 * ada-lex.l: Include "diagnostics.h" instead of
6635 "common/diagnostics.h".
6636 * unittests/environ-selftests.c: Likewise.
6637 * common/diagnostics.h: Moved to ../include.
6638
6639 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6640
6641 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6642 to language_mode_manual while calling breakpoint_re_set_one.
6643
6644 2018-06-01 Tom Tromey <tom@tromey.com>
6645
6646 * valops.c (value_cast_structs, destructor_name_p): Update.
6647 * symtab.c (gdb_mangle_name): Update.
6648 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6649 Update.
6650 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6651 (pascal_object_print_value_fields, pascal_object_print_value):
6652 Update.
6653 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6654 * linespec.c (find_methods): Update.
6655 * gdbtypes.h (type_name_no_tag): Remove.
6656 (type_name_or_error): Rename from type_name_no_tag_or_error.
6657 * gdbtypes.c (type_name_no_tag): Remove.
6658 (type_name_or_error): Rename from type_name_no_tag_or_error.
6659 (lookup_struct_elt_type, check_typedef): Update.
6660 * expprint.c (print_subexp_standard): Update.
6661 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6662 * d-namespace.c (d_lookup_nested_symbol): Update.
6663 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6664 (cp_print_class_member): Update.
6665 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6666 * completer.c (add_struct_fields): Update.
6667 * c-typeprint.c (cp_type_print_derivation_info)
6668 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6669 Update.
6670 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6671 (ada_prefer_type, ada_is_exception_sym): Update.
6672
6673 2018-06-01 Tom Tromey <tom@tromey.com>
6674
6675 * valops.c (enum_constant_from_type, value_namespace_elt)
6676 (value_maybe_namespace_elt): Update.
6677 * valarith.c (find_size_for_pointer_math): Update.
6678 * target-descriptions.c (make_gdb_type): Update.
6679 * symmisc.c (print_symbol): Update.
6680 * stabsread.c (define_symbol, read_type)
6681 (complain_about_struct_wipeout, add_undefined_type)
6682 (cleanup_undefined_types_1): Update.
6683 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6684 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6685 (rust_internal_print_type, rust_composite_type)
6686 (rust_evaluate_funcall, rust_evaluate_subexp)
6687 (rust_inclusive_range_type_p): Update.
6688 * python/py-type.c (typy_get_tag): Update.
6689 * p-typeprint.c (pascal_type_print_base): Update.
6690 * mdebugread.c (parse_symbol, parse_type): Update.
6691 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6692 Update.
6693 * guile/scm-type.c (gdbscm_type_tag): Update.
6694 * go-lang.c (sixg_string_p): Update.
6695 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6696 Update.
6697 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6698 (TYPE_TAG_NAME): Remove.
6699 * gdbtypes.c (type_name_no_tag): Simplify.
6700 (check_typedef, check_types_equal, recursive_dump_type)
6701 (copy_type_recursive, arch_composite_type): Update.
6702 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6703 in summary mode when needed.
6704 * eval.c (evaluate_funcall): Update.
6705 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6706 (process_structure_scope, read_enumeration_type)
6707 (read_namespace_type, read_module_type, determine_prefix): Update.
6708 * cp-support.c (inspect_type): Update.
6709 * coffread.c (process_coff_symbol, decode_base_type): Update.
6710 * c-varobj.c (c_is_path_expr_parent): Update.
6711 * c-typeprint.c (c_type_print_base_struct_union): Update.
6712 (c_type_print_base_1): Update. Print struct/class/union/enum in
6713 summary when using C language.
6714 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6715 (gen_maybe_namespace_elt): Update.
6716 * ada-lang.c (ada_type_name): Simplify.
6717 (empty_record, ada_template_to_fixed_record_type_1)
6718 (template_to_static_fixed_type)
6719 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6720
6721 2018-06-01 Tom Tromey <tom@tromey.com>
6722
6723 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6724 c_print_type.
6725 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6726 (c_print_type): Update.
6727 (c_print_type): New overload.
6728 (c_type_print_varspec_prefix, c_type_print_args)
6729 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6730 (c_type_print_base_struct_union, c_type_print_base_1)
6731 (cp_type_print_method_args): Add "language" parameter.
6732 (c_type_print_base): Update.
6733 * c-lang.h (c_print_type): Add new overload.
6734
6735 2018-06-01 Tom Tromey <tom@tromey.com>
6736
6737 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6738 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6739
6740 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6741
6742 * aarch64-tdep.c (aarch64_sve_register_names): New const
6743 var.
6744 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6745 (AARCH64_SVE_Z_REGS_NUM): New define.
6746 (AARCH64_SVE_P_REGS_NUM): Likewise.
6747 (AARCH64_SVE_NUM_REGS): Likewise.
6748
6749 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6750
6751 * nat/linux-ptrace.h [__alpha__]
6752 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6753 definitions.
6754
6755 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6756
6757 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6758 the endianness selected.
6759 * NEWS: Document `set endian auto' mode operation update.
6760
6761 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6762
6763 * Makefile.in: Add new header.
6764 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6765 (sve_vl_from_vg): Likewise.
6766 (sve_vq_from_vl): Likewise.
6767 (sve_vl_from_vq): Likewise.
6768 (sve_vq_from_vg): Likewise.
6769 (sve_vg_from_vq): Likewise.
6770 * configure.nat: Add new c file.
6771 * nat/aarch64-sve-linux-ptrace.c: New file.
6772 * nat/aarch64-sve-linux-ptrace.h: New file.
6773
6774 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6775
6776 * aarch64-linux-nat.c (aarch64_linux_read_description):
6777 Add parmeter zero.
6778 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6779 Likewise.
6780 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6781 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6782 (aarch64_gdbarch_init): Add parmeter zero.
6783 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6784 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6785 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6786 parmeter.
6787 * doc/gdb.texinfo: Describe SVE feature
6788 * features/aarch64-sve.c: New file.
6789
6790 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6791
6792 PR gdb/23210
6793 * gdbarch.sh (significant_addr_bit): Default to zero when
6794 not set by target architecture.
6795 * gdbarch.c: Re-generated.
6796 * utils.c (address_significant): Update.
6797
6798 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6799
6800 * stack.c (func_command): Remove trailing newline in call to error.
6801
6802 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6803
6804 * regcache.h (regcache_raw_collect): Remove, update callers to
6805 use regcache::raw_collect.
6806 * regcache.c (regcache_raw_collect): Remove.
6807
6808 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6809
6810 * regcache.h (regcache_raw_supply): Remove, update callers to
6811 use detached_regcache::raw_supply.
6812 * regcache.c (regcache_raw_supply): Remove.
6813
6814 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6815
6816 * regcache.h (regcache_cooked_write_part): Remove, update
6817 callers to use regcache::cooked_write_part.
6818 * regcache.c (regcache_cooked_write_part): Remove.
6819
6820 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6821
6822 * regcache.h (regcache_cooked_read_part): Remove, update callers
6823 to use readable_regcache::cooked_read_part.
6824 * regcache.c (regcache_cooked_read_part): Remove.
6825
6826 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6827
6828 * regcache.h (regcache_cooked_read_value): Remove, update
6829 callers to use readable_regcache::cooked_read_value.
6830 * regcache.c (regcache_cooked_read_value): Remove.
6831
6832 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6833
6834 * regcache.h (regcache_cooked_write): Remove, update callers to
6835 use regcache::cooked_write.
6836 * regcache.c (regcache_cooked_write): Remove.
6837
6838 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6839
6840 * regcache.h (regcache_invalidate): Remove, update callers to
6841 use detached_regcache::invalidate instead.
6842 * regcache.c (regcache_invalidate): Remove.
6843
6844 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6845
6846 * regcache.h (regcache_raw_write_part): Remove, update callers
6847 to use regcache::raw_write_part instead.
6848 * regcache.c (regcache_raw_write_part): Remove.
6849
6850 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6851
6852 * regcache.h (regcache_raw_read_part): Remove, update callers to
6853 use readable_regcache::raw_read_part instead.
6854 * regcache.c (regcache_raw_read_part): Remove.
6855
6856 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6857
6858 * regcache.h (regcache_cooked_read): Remove, update callers to
6859 use readable_regcache::cooked_read instead.
6860 * regcache.c (regcache_cooked_read): Remove.
6861
6862 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6863
6864 * regcache.h (regcache_raw_write): Remove, update callers to use
6865 regcache::raw_write instead.
6866 * regcache.c (regcache_raw_write): Remove.
6867
6868 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6869
6870 * regcache.h (regcache_raw_read): Remove, update callers to use
6871 readable_regcache::raw_read instead.
6872 * regcache.c (regcache_raw_read): Remove.
6873
6874 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6875
6876 * regcache.h (regcache_raw_update): Remove, update callers to
6877 use readable_regcache::raw_update instead.
6878 * regcache.c (regcache_raw_update): Remove.
6879
6880 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6881
6882 * regcache.h (regcache_register_status): Remove, update callers
6883 to use reg_buffer::get_register_status directly instead.
6884 * regcache.c (regcache_register_status): Remove.
6885
6886 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6887
6888 * regcache.h (regcache_get_ptid): Remove, update all callers to
6889 call regcache::ptid instead.
6890 * regcache.c (regcache_get_ptid): Remove.
6891
6892 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6893
6894 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6895
6896 2018-05-30 Pedro Alves <palves@redhat.com>
6897
6898 * common/common-exceptions.h (exception_rethrow): Use
6899 ATTRIBUTE_NORETURN.
6900
6901 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6902
6903 * breakpoint.c (print_solib_event, check_status_catch_solib):
6904 Remove struct keyword in range-based for loops.
6905 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6906 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6907 Likewise.
6908 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6909 Likewise.
6910 * symfile.c (addr_info_make_relative): Likewise.
6911 * thread.c (value_in_thread_stack_temporaries): Likewise.
6912
6913 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6914
6915 PR gdb/16841
6916 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6917 aggregate type to get its real type before accessing it.
6918
6919 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6920
6921 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6922 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6923 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6924 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6925 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6926 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6927 * printcmd.c (info_address_command): Likewise.
6928
6929 2018-05-29 Tom Tromey <tom@tromey.com>
6930
6931 * windows-nat.c (handle_exception): Update fall-through comment.
6932
6933 2018-05-29 Tom Tromey <tom@tromey.com>
6934
6935 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6936 (struct program_space) <added_solibs>: Now a std::vector.
6937 * breakpoint.c (print_solib_event): Update.
6938 (check_status_catch_solib): Update.
6939 * progspace.c (clear_program_space_solib_cache): Update.
6940 * solib.c (update_solib_list): Update.
6941
6942 2018-05-29 Tom Tromey <tom@tromey.com>
6943
6944 * python/py-type.c (typy_richcompare): Update.
6945 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6946 * gdbtypes.h (types_deeply_equal): Return bool.
6947 (types_equal): Likewise.
6948 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6949 declare VEC.
6950 (check_types_equal): Change worklist to std::vector. Return
6951 bool.
6952 (struct type_equality_entry): Add constructor.
6953 (compare_maybe_null_strings): Return bool.
6954 (check_types_worklist): Return bool. Change worklist to
6955 std::vector.
6956 (types_deeply_equal): Use std::vector.
6957 (types_equal): Return bool.
6958 (compare_maybe_null_strings): Simplify.
6959
6960 2018-05-29 Tom Tromey <tom@tromey.com>
6961
6962 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6963
6964 2018-05-29 Tom Tromey <tom@tromey.com>
6965
6966 * objc-lang.h: Don't include cp-support.h.
6967 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6968 declare VEC.
6969
6970 2018-05-27 Tom Tromey <tom@tromey.com>
6971
6972 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6973
6974 2018-05-25 Tom Tromey <tom@tromey.com>
6975
6976 * value.c (value::location): Initialize.
6977
6978 2018-05-25 Tom Tromey <tom@tromey.com>
6979
6980 * dbxread.c (init_bincl_list): Remove.
6981 (bincl_list): Now a std::vector.
6982 (bincls_allocated, next_bincl): Remove.
6983 (free_bincl_list, do_free_bincl_list_cleanup)
6984 (make_cleanup_free_bincl_list): Remove.
6985 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6986 unique_xmalloc_ptr.
6987 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6988 (struct header_file_location): Add constructor.
6989 (add_bincl_to_list): Remove.
6990
6991 2018-05-25 Tom Tromey <tom@tromey.com>
6992
6993 * tui/tui.c (tui_enable): Update.
6994 * mi/mi-interp.c (mi_interp::init): Update.
6995 * interps.h (class interp) <name>: New method.
6996 <m_name>: Rename from name.
6997 (~scoped_restore_interp): Update.
6998 * interps.c (interp::interp): Update.
6999 (interp_add, interp_set, interp_lookup_existing)
7000 (current_interp_named_p): Update.
7001
7002 2018-05-25 Tom Tromey <tom@tromey.com>
7003
7004 * interps.c (interp_name): Remove.
7005 * mi/mi-interp.c (mi_interp::init): Update.
7006 * interps.h (interp_name): Remove.
7007 (~scoped_restore_interp): Update.
7008 * tui/tui.c (tui_enable): Update.
7009
7010 2018-05-25 Tom Tromey <tom@tromey.com>
7011
7012 * utils.c (fputs_maybe_filtered): Update.
7013 * linespec.c (decode_line_full): Update.
7014 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7015 (mi_print_breakpoint_for_event, mi_solib_loaded)
7016 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7017 (mi_user_selected_context_changed): Update.
7018 * mi/mi-main.c (mi_execute_command): Update.
7019 * cli/cli-script.c (execute_control_command): Update.
7020 * python/python.c (execute_gdb_command): Update.
7021 * solib.c (info_sharedlibrary_command): Update.
7022 * interps.c (interp_ui_out): Remove.
7023 * interps.h (interp_ui_out): Remove.
7024
7025 2018-05-25 Tom Tromey <tom@tromey.com>
7026
7027 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7028 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7029 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7030
7031 2018-05-25 Tom Tromey <tom@tromey.com>
7032
7033 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7034 * interps.c (interp_exec): Use scoped_restore.
7035
7036 2018-05-25 Tom Tromey <tom@tromey.com>
7037
7038 * remote.c (remote_target::remote_file_get): Use
7039 gdb::byte_vector.
7040 (remote_target::remote_file_put): Likewise.
7041
7042 2018-05-25 Tom Tromey <tom@tromey.com>
7043
7044 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7045 a std::string.
7046 (get_pe_section_index, add_pe_exported_sym): Update.
7047 (read_pe_exported_syms): Use gdb::def_vector.
7048
7049 2018-05-25 Tom Tromey <tom@tromey.com>
7050
7051 * frame.c (remove_prev_frame): Remove.
7052 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7053
7054 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7055
7056 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7057 Remove prototypes.
7058 * mips-linux-nat.c (supply_fpregset): Always call
7059 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7060 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7061 `mips_fill_fpregset'.
7062 * mips-linux-tdep.c (mips_supply_fpregset)
7063 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7064 (mips_fill_fpregset_wrapper): Remove functions.
7065 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7066 (mips_linux_fpregset): Remove variable.
7067 (mips_linux_iterate_over_regset_sections): Use
7068 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7069 (mips_linux_o32_sigframe_init): Remove comment.
7070
7071 2018-05-25 Pedro Alves <palves@redhat.com>
7072
7073 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7074 (struct readahead_cache, struct packet_reg, struct
7075 remote_arch_state, class remote_state): Move higher up in the
7076 file.
7077 (remote_target::m_remote_state): Now an object instead of a pointer.
7078 (remote_target::get_remote_state): Adjust.
7079
7080 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * stack.c (select_and_print_frame): Delete.
7083 (struct function_bounds): Move struct within function.
7084 (func_command): Most content moved into new function
7085 find_frame_for_function, use new function, print result, add
7086 function comment.
7087 (find_frame_for_function): New function, now returns a result.
7088
7089 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7090
7091 * stack.c (iterate_over_block_arg_vars): Fix comment.
7092 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7093
7094 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7095
7096 PR gdb/23203
7097 * frame.c
7098 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7099 Define.
7100 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7101 Define.
7102 * frame.h (class scoped_restore_selected_frame): New class.
7103 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7104 of any exception, use scoped_restore_selected_frame to restore the
7105 frame instead.
7106
7107 2018-05-24 Pedro Alves <palves@redhat.com>
7108
7109 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7110 override.
7111
7112 2018-05-23 Tom Tromey <tom@tromey.com>
7113
7114 * complaints.c (struct complaints): Remove.
7115 (symfile_complaint_book): Remove.
7116 (series): New global.
7117 (complaint_internal): Update.
7118 (clear_complaints): Update.
7119
7120 2018-05-23 Tom Tromey <tom@tromey.com>
7121
7122 * complaints.c (counters): New global.
7123 (struct complain): Remove.
7124 (struct complaints) <root>: Remove.
7125 (complaint_sentinel): Remove.
7126 (symfile_complaint_book): Update.
7127 (find_complaint) Remove.
7128 (complaint_internal, clear_complaints): Update.
7129
7130 2018-05-23 Tom Tromey <tom@tromey.com>
7131
7132 * complaints.c (struct complain) <file, line>: Remove.
7133 (find_complaint): Remove file, line parameters.
7134 (complaint_internal): Update.
7135
7136 2018-05-23 Tom Tromey <tom@tromey.com>
7137
7138 * complaints.c (vcomplaint): Remove.
7139 (complaint_internal) Merge in contents of vcomplaint.
7140
7141 2018-05-23 Tom Tromey <tom@tromey.com>
7142
7143 * complaints.c (struct complaints) <explanation>: Remove.
7144 (symfile_explanations): Remove.
7145 (symfile_complaint_book): Update.
7146 (vcomplaint): Update.
7147 (struct explanation): Remove.
7148
7149 2018-05-23 Tom Tromey <tom@tromey.com>
7150
7151 * complaints.c (symfile_complaints): Remove.
7152 (complaint_internal): Remove "complaints" parameter.
7153 (clear_complaints, vcomplaint): Remove "c" parameter.
7154 (get_complaints): Remove.
7155 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7156 (dwarf2_debug_line_missing_file_complaint)
7157 (dwarf2_debug_line_missing_end_sequence_complaint)
7158 (dwarf2_complex_location_expr_complaint)
7159 (dwarf2_const_value_length_mismatch_complaint)
7160 (dwarf2_section_buffer_overflow_complaint)
7161 (dwarf2_macro_malformed_definition_complaint)
7162 (dwarf2_invalid_attrib_class_complaint)
7163 (create_addrmap_from_index, dw2_symtab_iter_next)
7164 (dw2_expand_marked_cus)
7165 (dw2_debug_names_iterator::find_vec_in_debug_names)
7166 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7167 (create_debug_type_hash_table, init_cutu_and_read_dies)
7168 (partial_die_parent_scope, add_partial_enumeration)
7169 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7170 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7171 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7172 (create_cus_hash_table, create_dwp_hash_table)
7173 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7174 (dwarf2_rnglists_process, dwarf2_ranges_process)
7175 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7176 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7177 (handle_struct_member_die, process_structure_scope)
7178 (read_array_type, read_common_block, read_module_type)
7179 (read_tag_pointer_type, read_typedef, read_base_type)
7180 (read_subrange_type, load_partial_dies, partial_die_info::read)
7181 (partial_die_info::read, partial_die_info::read)
7182 (partial_die_info::read, read_checked_initial_length_and_offset)
7183 (dwarf2_string_attr, read_formatted_entries)
7184 (dwarf_decode_line_header)
7185 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7186 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7187 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7188 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7189 (get_signatured_type, get_DW_AT_signature_type)
7190 (decode_locdesc, file_file_name, consume_improper_spaces)
7191 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7192 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7193 (dwarf2_symbol_mark_computed, set_die_type)
7194 (read_attribute_value): Update.
7195 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7196 Update.
7197 * dbxread.c (unknown_symtype_complaint)
7198 (lbrac_mismatch_complaint, repeated_header_complaint)
7199 (set_namestring, function_outside_compilation_unit_complaint)
7200 (read_dbx_symtab, process_one_symbol): Update.
7201 * gdbtypes.c (stub_noname_complaint): Update.
7202 * windows-nat.c (handle_unload_dll): Update.
7203 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7204 (decode_base_type): Update.
7205 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7206 (eb_complaint, record_include_begin, record_include_end)
7207 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7208 (process_xcoff_symbol, read_symbol)
7209 (function_outside_compilation_unit_complaint)
7210 (scan_xcoff_symtab): Update.
7211 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7212 * buildsym.c (finish_block_internal, make_blockvector)
7213 (end_symtab_get_static_block, augment_type_symtab): Update.
7214 * dtrace-probe.c (dtrace_process_dof)
7215 (dtrace_static_probe_ops::get_probes): Update.
7216 * complaints.h (struct complaint): Don't declare.
7217 (symfile_complaints): Remove.
7218 (complaint_internal): Remove "complaints" parameter.
7219 (complaint): Likewise.
7220 (clear_complaints): Likewise.
7221 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7222 (reread_symbols): Update.
7223 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7224 (dwarf2_frame_cache, decode_frame_entry): Update.
7225 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7226 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7227 (info_selectors_command): Update.
7228 * macrotab.c (macro_include, check_for_redefinition)
7229 (macro_undef): Update.
7230 * objfiles.c (filter_overlapping_sections): Update.
7231 * stabsread.c (invalid_cpp_abbrev_complaint)
7232 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7233 (define_symbol, error_type, read_type, rs6000_builtin_type)
7234 (stabs_method_name_from_physname, read_member_functions)
7235 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7236 (attach_fields_to_type, complain_about_struct_wipeout)
7237 (read_range_type, read_args, common_block_start)
7238 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7239 Update.
7240 * mdebugread.c (index_complaint, unknown_ext_complaint)
7241 (basic_type_complaint, bad_tag_guess_complaint)
7242 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7243 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7244 (parse_procedure, parse_lines)
7245 (function_outside_compilation_unit_complaint)
7246 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7247 (bad_tag_guess_complaint, reg_value_complaint): Update.
7248 * cp-support.c (demangled_name_complaint): Update.
7249 * macroscope.c (sal_macro_scope): Update.
7250 * dwarf-index-write.c (class debug_names): Update.
7251
7252 2018-05-23 Tom Tromey <tom@tromey.com>
7253
7254 * complaints.c (clear_complaints): Remove "noisy" parameter.
7255 * complaints.h (clear_complaints): Update.
7256 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7257 (reread_symbols): Update.
7258
7259 2018-05-23 Tom Tromey <tom@tromey.com>
7260
7261 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7262 SUBSEQUENT_MESSAGE.
7263 (vcomplaint, clear_complaints): Update.
7264 (symfile_explanations): Remove some messages.
7265
7266 2018-05-23 Tom Tromey <tom@tromey.com>
7267
7268 * complaints.c (internal_complaint): Remove.
7269 * complaints.h (internal_complaint): Remove.
7270
7271 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7272
7273 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7274
7275 2018-05-22 Pedro Alves <palves@redhat.com>
7276
7277 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7278 (remote_fileio_badfd, remote_fileio_return_errno)
7279 (remote_fileio_return_success, remote_fileio_func_open)
7280 (remote_fileio_func_open, remote_fileio_func_close)
7281 (remote_fileio_func_read, remote_fileio_func_write)
7282 (remote_fileio_func_lseek, remote_fileio_func_rename)
7283 (remote_fileio_func_unlink, remote_fileio_func_stat)
7284 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7285 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7286 remote_target parameter.
7287 (remote_fio_func_map) <func>: Add remote_target parameter.
7288 (do_remote_fileio_request, remote_fileio_request):
7289 * remote-fileio.h (remote_fileio_request):
7290 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7291 remote_target parameter.
7292 (remote_notif_process, handle_notification): Adjust to pass down
7293 the remote.
7294 (remote_notif_state_allocate): Add remote_target parameter. Save
7295 it.
7296 * remote-notif.h (struct remote_target): Forward declare.
7297 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7298 remote_target parameter.
7299 (struct remote_notif_state) <remote>: New field.
7300 (remote_notif_ack, remote_notif_parse): Add remote_target
7301 parameter.
7302 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7303 remote_target parameter.
7304 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7305 (threads_listing_context, rmt_thread_action, protocol_feature)
7306 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7307 (packet_result, struct threads_listing_context, remote_state):
7308 Move definitions and declarations higher up.
7309 (remote_target) <~remote_target>: Declare.
7310 (remote_download_command_source, remote_file_put, remote_file_get)
7311 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7312 (remote_hostio_pread_vFile, remote_hostio_send_command)
7313 (remote_hostio_set_filesystem, remote_hostio_open)
7314 (remote_hostio_close, remote_hostio_unlink, remote_state)
7315 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7316 (get_memory_write_packet_size, get_memory_read_packet_size)
7317 (append_pending_thread_resumptions, remote_detach_1)
7318 (append_resumption, remote_resume_with_vcont)
7319 (add_current_inferior_and_thread, wait_ns, wait_as)
7320 (process_stop_reply, remote_notice_new_inferior)
7321 (process_initial_stop_replies, remote_add_thread)
7322 (btrace_sync_conf, remote_btrace_maybe_reopen)
7323 (remove_new_fork_children, kill_new_fork_children)
7324 (discard_pending_stop_replies, stop_reply_queue_length)
7325 (check_pending_events_prevent_wildcard_vcont)
7326 (discard_pending_stop_replies_in_queue, stop_reply)
7327 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7328 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7329 (remote_interrupt_as, remote_interrupt_ns)
7330 (remote_get_noisy_reply, remote_query_attached)
7331 (remote_add_inferior, remote_current_thread, get_current_thread)
7332 (set_thread, set_general_thread, set_continue_thread)
7333 (set_general_process, write_ptid)
7334 (remote_unpack_thread_info_response, remote_get_threadinfo)
7335 (parse_threadlist_response, remote_get_threadlist)
7336 (remote_threadlist_iterator, remote_get_threads_with_ql)
7337 (remote_get_threads_with_qxfer)
7338 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7339 (get_offsets, remote_check_symbols, remote_supported_packet)
7340 (remote_query_supported, remote_packet_size)
7341 (remote_serial_quit_handler, remote_detach_pid)
7342 (remote_vcont_probe, remote_resume_with_hc)
7343 (send_interrupt_sequence, interrupt_query)
7344 (remote_notif_get_pending_events, fetch_register_using_p)
7345 (send_g_packet, process_g_packet, fetch_registers_using_g)
7346 (store_register_using_P, store_registers_using_G)
7347 (set_remote_traceframe, check_binary_download)
7348 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7349 (remote_xfer_live_readonly_partial, remote_read_bytes)
7350 (remote_send_printf, remote_flash_write, readchar)
7351 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7352 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7353 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7354 (extended_remote_disable_randomization, extended_remote_run)
7355 (send_environment_packet, extended_remote_environment_support)
7356 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7357 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7358 (packet_command): Now methods of ...
7359 (remote_target): ... this class.
7360 (m_remote_state) <remote_target>: New field.
7361 (struct remote_state) <stop_reply_queue,
7362 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7363 fields.
7364 (remote_state::remote_state): Allocate stop_reply_queue.
7365 (remote_state): Delete global.
7366 (get_remote_state_raw): Delete.
7367 (remote_target::get_remote_state): Allocate m_remote_state on
7368 demand.
7369 (get_current_remote_target): New.
7370 (remote_ops, extended_remote_ops): Delete.
7371 (wait_forever_enabled_p, remote_async_inferior_event_token):
7372 Delete, moved to struct remote_state.
7373 (remote_target::close): Delete self. Destruction bits split to
7374 ...
7375 (remote_target::~remote_target): ... this.
7376 (show_memory_packet_size): Adjust to use
7377 get_current_remote_target.
7378 (struct protocol_feature) <func>: Add remote_target parameter.
7379 All callers adjusted.
7380 (curr_quit_handler_target): New.
7381 (remote_serial_quit_handler): Reimplement.
7382 (remote_target::open_1): Adjust to use get_current_remote_target.
7383 Heap-allocate remote_target/extended_remote_target instances.
7384 (vcont_builder::vcont_builder): Add remote_target parameter, and
7385 save it in m_remote. All callers adjusted.
7386 (vcont_builder::m_remote): New field.
7387 (vcont_builder::restart, vcont_builder::flush)
7388 (vcont_builder::push_action): Use it.
7389 (remote_target::commit_resume): Use it.
7390 (struct queue_iter_param) <remote>: New field.
7391 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7392 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7393 (check_pending_event_prevents_wildcard_vcont_callback)
7394 (remote_target::check_pending_events_prevent_wildcard_vcont)
7395 (remote_target::discard_pending_stop_replies)
7396 (remote_target::discard_pending_stop_replies_in_queue)
7397 (remote_target::remote_notif_remove_queued_reply): Fill in
7398 'remote' field.
7399 (remote_notif_get_pending_events): New.
7400 (remote_target::readchar, remote_target::remote_serial_write):
7401 Save/restore curr_quit_handler_target.
7402 (putpkt): New.
7403 (kill_new_fork_children): Fill in 'remote' field.
7404 (packet_command): Use get_current_remote_target, defer to
7405 remote_target method of same name.
7406 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7407 parameter, and save it in m_remote. All callers adjusted.
7408 (scoped_remote_fd::release): Use m_remote.
7409 (scoped_remote_fd::m_remote): New field.
7410 (remote_file_put, remote_file_get, remote_file_delete): Use
7411 get_current_remote_target, defer to remote_target method of same
7412 name.
7413 (remote_btrace_reset): Add remote_state paremeter. Update all
7414 callers.
7415 (remote_async_inferior_event_handler). Pass down 'data'.
7416 (remote_new_objfile): Use get_current_remote_target.
7417 (remote_target::vcont_r_supported): New.
7418 (set_range_stepping): Use get_current_remote_target and
7419 remote_target::vcont_r_supported.
7420 (_initialize_remote): Don't allocate 'remote_state' and
7421 'stop_reply_queue' globals.
7422 * remote.h (struct remote_target): Forward declare.
7423 (getpkt, putpkt, remote_notif_get_pending_events): Add
7424 'remote_target' parameter.
7425
7426 2018-05-22 Pedro Alves <palves@redhat.com>
7427
7428 * remote.c (vcont_builder): Now a class. Make all data members
7429 private.
7430 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7431 Declare methods.
7432 (vcont_builder_restart): Rename to ...
7433 (vcont_builder::restart): ... this.
7434 (vcont_builder_flush): Rename to ...
7435 (vcont_builder::flush): ... this.
7436 (vcont_builder_push_action): Rename to ...
7437 (vcont_builder::push_action): ... this.
7438 (remote_target::commit_resume): Adjust.
7439
7440 2018-05-22 Pedro Alves <palves@redhat.com>
7441
7442 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7443 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7444 (get_fixed_memory_packet_size): New.
7445 (get_memory_packet_size): Use it.
7446 (set_memory_packet_size): Don't override the config size with
7447 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7448 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7449 Don't refer to get_memory_packet_size if not connected to a remote
7450 target. Show "(default)" if configured size is 0.
7451
7452 2018-05-22 Pedro Alves <palves@redhat.com>
7453
7454 * remote.c (remote_target::mourn_inferior): Move
7455 discard_pending_stop_replies call here from ...
7456 (_initialize_remote): ... here.
7457
7458 2018-05-22 Pedro Alves <palves@redhat.com>
7459
7460 * remote.c (compare_section_command): Remove set_general_process
7461 call.
7462
7463 2018-05-22 Pedro Alves <palves@redhat.com>
7464
7465 * remote.c (struct packet_reg, struct remote_arch_state):
7466 Move higher up in the file.
7467 (remote_state) <m_arch_states>: Store remote_arch_state values
7468 instead of remote_arch_state pointers.
7469 (remote_state::get_remote_arch_state): Adjust.
7470
7471 2018-05-22 Pedro Alves <palves@redhat.com>
7472
7473 * remote.c: Include <unordered_map>.
7474 (remote_state): Now a class.
7475 (remote_state) <get_remote_arch_state>: Declare method.
7476 <get_remote_arch_state>: New field.
7477 (remote_arch_state) <remote_arch_state>: Declare ctor.
7478 <regs>: Now a unique_ptr.
7479 (remote_gdbarch_data_handle): Delete.
7480 (get_remote_arch_state): Delete.
7481 (remote_state::get_remote_arch_state): New.
7482 (get_remote_state): Adjust to call remote_state's
7483 get_remote_arch_state method.
7484 (init_remote_state): Delete, bits factored out to ...
7485 (remote_arch_state::remote_arch_state): ... this new method.
7486 (get_remote_packet_size, get_memory_packet_size)
7487 (process_g_packet, remote_target::fetch_registers)
7488 (remote_target::prepare_to_store, store_registers_using_G)
7489 (remote_target::store_registers, remote_target::get_trace_status):
7490 Adjust to call remote_state's method.
7491 (_initialize_remote): Remove reference to
7492 remote_gdbarch_data_handle.
7493
7494 2018-05-22 Pedro Alves <palves@redhat.com>
7495
7496 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7497 pread>: New method declarations.
7498 (remote_target::open_1): Adjust.
7499 (readahead_cache_invalidate): Rename to ...
7500 (readahead_cache::invalidate): ... this, and adjust to be a class
7501 method.
7502 (readahead_cache_invalidate_fd): Rename to ...
7503 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7504 class method.
7505 (remote_hostio_pwrite): Adjust.
7506 (remote_hostio_pread_from_cache): Rename to ...
7507 (readahead_cache::pread): ... this, and adjust to be a class
7508 method.
7509 (remote_hostio_close): Adjust.
7510
7511 2018-05-22 Pedro Alves <palves@redhat.com>
7512
7513 * remote.c (remote_hostio_close_cleanup): Delete.
7514 (class scoped_remote_fd): New.
7515 (remote_file_put, remote_file_get): Use it.
7516
7517 2018-05-22 Pedro Alves <palves@redhat.com>
7518
7519 (struct vCont_action_support): Use bool and initialize all fields.
7520 (struct readahead_cache): Initialize all fields.
7521 (remote_state): Use bool and initialize all fields.
7522 (remote_state::remote_state, remote_state::~remote_state): New.
7523 (new_remote_state): Delete.
7524 (_initialize_remote): Use new to allocate remote_state.
7525
7526 2018-05-22 Pedro Alves <palves@redhat.com>
7527 張俊芝 <zjz@zjz.name>
7528
7529 PR gdb/22973
7530 * c-exp.y: Include "c-support.h".
7531 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7532 of tolower. Use c_ident_is_alpha to scan names.
7533 * c-lang.c: Include "c-support.h".
7534 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7535 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7536 * c-support.h: New file, with bits factored out from ...
7537 * cp-name-parser.y: ... this file.
7538 Include "c-support.h".
7539 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7540 c-support.h and renamed.
7541 (symbol_end, yylex): Adjust.
7542
7543 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7544
7545 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7546 parameter type to CORE_ADDR.
7547 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7548 parameter type in declaration to CORE_ADDR.
7549 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7550 target_auxv_search to get AT_HWCAP and use the result to get the
7551 target description.
7552 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7553 to CORE_ADDR. Remove the cast of the return value to unsigned
7554 long. Fix error predicate of target_auxv_search.
7555 (ppc_linux_nat_target::read_description): Change the type of the
7556 hwcap variable to CORE_ADDR.
7557
7558 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7559
7560 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7561 if the size of fpscr is larger than 32 bits.
7562
7563 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7564
7565 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7566 (ppc32_linux_vsxregmap): New global.
7567 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7568 regcache_supply_regset, and regcache_collect_regset.
7569 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7570 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7571 (fetch_vsx_register, store_vsx_register): Remove.
7572 (fetch_vsx_registers): Add regno parameter. Get regset using
7573 ppc_linux_vsxregset. Use regset to supply registers.
7574 (store_vsx_registers): Add regno parameter. Get regset using
7575 ppc_linux_vsxregset. Use regset to collect registers.
7576 (fetch_register): Call fetch_vsx_registers instead of
7577 fetch_vsx_register.
7578 (store_register): Call store_vsx_registers instead of
7579 store_vsx_register.
7580 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7581 new regno parameter.
7582 (store_ppc_registers): Call store_vsx_registers with -1 for the
7583 new regno parameter.
7584 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7585 (ppc_collect_vsxregset): Remove.
7586
7587 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7588
7589 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7590 offset fields.
7591 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7592 for vector register offset fields.
7593 (ppc64_fbsd_reg_offsets): Likewise.
7594 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7595 to vector register offset fields.
7596 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7597 to vector register offset fields.
7598 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7599 vector register offset fields.
7600 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7601 initializers for vector register offset fields.
7602 (rs6000_aix64_reg_offsets): Likewise.
7603 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7604 (ppc_supply_vrregset): Remove.
7605 (ppc_collect_vrregset): Remove.
7606 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7607 (ppc_linux_vrregset) : New function.
7608 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7609 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7610 (ppc32_linux_vrregset): Remove.
7611 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7612 and use result instead of ppc32_linux_vrregset.
7613 (ppc32_linux_reg_offsets): Remove initializers for vector register
7614 offset fields.
7615 (ppc64_linux_reg_offsets): Likewise.
7616 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7617 * ppc-linux-nat.c: Include regset.h.
7618 (gdb_vrregset_t): Adjust comment to account for little-endian
7619 mode.
7620 (supply_vrregset, fill_vrregset): Remove.
7621 (fetch_altivec_register, store_altivec_register): Remove.
7622 (fetch_altivec_registers): Add regno parameter. Get regset using
7623 ppc_linux_vrregset. Use regset to supply registers.
7624 (store_altivec_registers): Add regno parameter. Get regset using
7625 ppc_linux_vrregset. Use regset to collect registers.
7626 (fetch_register): Call fetch_altivec_registers instead of
7627 fetch_altivec_register.
7628 (store_register): Call store_altivec_registers instead of
7629 store_altivec_register.
7630 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7631 the new regno parameter.
7632 (store_ppc_registers): Call store_altivec_registers with -1 for
7633 the new regno parameter.
7634
7635 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7636
7637 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7638 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7639 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7640 (gdb_vrregset_t): Change array type size to
7641 PPC_LINUX_SIZEOF_VRREGSET.
7642 (gdb_vsxregset_t): Change array type size to
7643 PPC_LINUX_SIZEOF_VSXREGSET.
7644 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7645 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7646 PPC_LINUX_SIZEOF_VSXREGSET.
7647
7648 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7649
7650 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7651 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7652 nat/ppc-linux.c.
7653 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7654 ppc_linux_target_wordsize with tid.
7655 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7656 wordsize with tid.
7657 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7658 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7659 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7660 tid parameter. Remove static specifier.
7661 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7662 (ppc_linux_target_wordsize): New declaration.
7663
7664 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7665
7666 * arch/ppc-linux-common.c: New file.
7667 * arch/ppc-linux-common.h: New file.
7668 * arch/ppc-linux-tdesc.h: New file.
7669 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7670 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7671 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7672 arch/ppc-linux-tdesc.h.
7673 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7674 arch/ppc-linux-tdesc.h.
7675 (ppc_linux_nat_target::read_description): Remove target
7676 description matching code. Fill a ppc_linux_features struct and
7677 call ppc_linux_match_description with it. Move comment about ISA
7678 2.05 to ppc-linux-common.c.
7679 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7680 arch/ppc-linux-tdesc.h.
7681 (ppc_linux_core_read_description): Remove target description
7682 matching code. Fill a ppc_linux_features struct and call
7683 ppc_linux_match_description with it.
7684 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7685 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7686 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7687 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7688 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7689 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7690 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7691 (tdesc_powerpc_e500l): Remove.
7692
7693 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7694
7695 * ada-lang.c (catch_assert_command): Pass empty string instead
7696 of NULL for excep_string argument.
7697
7698 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7699
7700 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7701 the width of the requested register exceeds the width of the
7702 `ptrace' data type.
7703
7704 2018-05-21 Tom Tromey <tom@tromey.com>
7705
7706 * printcmd.c (output_command): Remove.
7707 (output_command_const): Rename to output_command.
7708 * valprint.h (output_command): Rename from output_command_const.
7709 * tracepoint.c (trace_dump_actions): Call output_command.
7710
7711 2018-05-21 Tom Tromey <tom@tromey.com>
7712
7713 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7714 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7715 * ada-lang.h (create_ada_exception_catchpoint): Update.
7716 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7717 std::string.
7718 (create_excep_cond_exprs, ~ada_catchpoint)
7719 (should_stop_exception, print_one_exception)
7720 (print_mention_exception, print_recreate_exception): Update.
7721 (ada_get_next_arg): Remove.
7722 (catch_ada_exception_command_split): Use std::string. Change type
7723 of "excep_string", "cond_string".
7724 (catch_ada_exception_command): Update.
7725 (create_ada_exception_catchpoint): Change type of excep_string.
7726 (ada_exception_sal): Remove excep_string parameter.
7727 (~ada_catchpoint): Remove.
7728
7729 2018-05-21 Tom Tromey <tom@tromey.com>
7730
7731 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7732 cleanup.
7733
7734 2018-05-21 Tom Tromey <tom@tromey.com>
7735
7736 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7737 Return unique_xmalloc_ptr.
7738 (print_it_exception): Update.
7739
7740 2018-05-21 Tom Tromey <tom@tromey.com>
7741
7742 * tracepoint.c (trace_dump_actions): Use std::string.
7743
7744 2018-05-21 Tom Tromey <tom@tromey.com>
7745
7746 * symfile.c (reread_symbols): Use std::string for original_name.
7747
7748 2018-05-21 Tom Tromey <tom@tromey.com>
7749
7750 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7751 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7752 constructor.
7753
7754 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7755
7756 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7757 instance to...
7758 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7759 * objfiles.c (get_objfile_bfd_data): Allocate
7760 objfile_per_bfd_storage with obstack_new when allocating on
7761 obstack.
7762
7763 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7764
7765 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7766 OBSTACK_ZALLOC.
7767 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7768 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7769 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7770 (add_pending): Likewise.
7771 (parse_symbol): Likewise.
7772 (parse_partial_symbols): Likewise.
7773 (psymtab_to_symtab_1): Likewise.
7774 (new_psymtab): Likewise.
7775 (elfmdebug_build_psymtabs): Likewise.
7776 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7777 * objfiles.c (get_objfile_bfd_data): Likewise.
7778 (objfile_register_static_link): Likewise.
7779 * psymtab.c (allocate_psymtab): Likewise.
7780 * stabsread.c (read_member_functions): Likewise.
7781 * xcoffread.c (xcoff_end_psymtab): Likewise.
7782
7783 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7784
7785 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7786 compiler supports std::is_trivially_constructible.
7787 * common/poison.h: Include obstack.h.
7788 (IsMallocable): Define to is_trivially_constructible if the
7789 compiler supports it, define to true_type otherwise.
7790 (xobnew): New.
7791 (XOBNEW): Redefine.
7792 (xobnewvec): New.
7793 (XOBNEWVEC): Redefine.
7794 * gdb_obstack.h (obstack_zalloc): New.
7795 (OBSTACK_ZALLOC): Redefine.
7796 (obstack_calloc): New.
7797 (OBSTACK_CALLOC): Redefine.
7798 (obstack_new): New.
7799 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7800 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7801 gdbarch.c.
7802 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7803 obstack_calloc/obstack_zalloc.
7804 (gdbarch_obstack_zalloc): Remove.
7805 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7806
7807 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7808
7809 * stack.c (backtrace_command_1): Remove useless variable int i.
7810
7811 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7812
7813 * stack.c (print_frame_info): Fix comment.
7814
7815 2018-05-18 Tom Tromey <tom@tromey.com>
7816
7817 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7818 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7819 (~dwarf2_per_objfile): Update
7820 (dwarf2_get_dwz_file): Use new.
7821 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7822 unique_ptr.
7823
7824 2018-05-18 Tom Tromey <tom@tromey.com>
7825
7826 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7827 unique_ptr.
7828 * dwarf2read.c (struct dwp_file): Add constructor and
7829 initializers.
7830 (open_and_init_dwp_file): Return a unique_ptr.
7831 (dwarf2_per_objfile, create_dwp_hash_table)
7832 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7833 (lookup_dwo_unit_in_dwp): Update.
7834 (open_and_init_dwp_file, get_dwp_file): Update.
7835
7836 2018-05-18 Tom Tromey <tom@tromey.com>
7837
7838 * dwarf2read.c (dwarf2_per_objfile): Update.
7839 (struct mapped_index): Add initializers.
7840 (dwarf2_read_index): Use new.
7841 (dw2_symtab_iter_init): Update.
7842 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7843 unique_ptr.
7844
7845 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7846
7847 * dwarf2read.c (mapped_index) <total_size>: Remove.
7848
7849 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7850
7851 * unittests/format_pieces-selftests.c (test_format_specifier):
7852 Add ARI comments.
7853
7854 2018-05-18 Tom Tromey <tom@tromey.com>
7855
7856 * c-typeprint.c (maybe_print_hole): New function.
7857 (c_print_type_struct_field_offset): Update.
7858 (c_type_print_base_struct_union): Call maybe_print_hole.
7859
7860 2018-05-17 Keith Seitz <keiths@redhat.com>
7861
7862 * breakpoint.c (build_bpstat_chain): New function, moved from
7863 bpstat_stop_status.
7864 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7865 If no stop chain is passed, call build_bpstat_chain to build it.
7866 * breakpoint.h (build_bpstat_chain): Declare.
7867 (bpstat_stop_status): Move documentation here from breakpoint.c.
7868 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7869 build the stop chain and pass it to skip_inline_frames.
7870 Pass this stop chain to bpstat_stop_status.
7871 * inline-frame.c: Include breakpoint.h.
7872 (stopped_by_user_bp_inline_frame): New function.
7873 (skip_inline_frames): Add parameter `stop_chain'.
7874 Move documention to inline-frame.h.
7875 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7876 whether the frame should be elided.
7877 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7878 Add moved documentation and update for new parameter.
7879
7880 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7881
7882 PR cli/14975
7883 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7884 unittests/format_pieces-selftests.c.
7885 * common/format.h (format_piece) <operator==>: New.
7886 (format_pieces) <operator[]>: Remove.
7887 * common/format.c (format_pieces::format_pieces): Handle \e.
7888 * unittests/format_pieces-selftests.c: New.
7889
7890 2018-05-17 Tom Tromey <tom@tromey.com>
7891
7892 PR symtab/23010:
7893 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7894 (dw2_instantiate_symtab): Add skip_partial parameter.
7895 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7896 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7897 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7898 (dw2_expand_symtabs_matching_one)
7899 (dw2_find_pc_sect_compunit_symtab)
7900 (dw2_debug_names_lookup_symbol)
7901 (dw2_debug_names_expand_symtabs_for_function): Update.
7902 (init_cutu_and_read_dies): Add skip_partial parameter.
7903 (process_psymtab_comp_unit, build_type_psymtabs_1)
7904 (process_skeletonless_type_unit, load_partial_comp_unit)
7905 (psymtab_to_symtab_1): Update.
7906 (load_full_comp_unit): Add skip_partial parameter.
7907 (process_imported_unit_die, dwarf2_read_addr_index)
7908 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7909 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7910 (read_signatured_type): Update.
7911
7912 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7913
7914 * value.c (release_value): Remove unused variable.
7915 (record_latest_value): Likewise.
7916 (access_value_history): Likewise.
7917 (preserve_values): Likewise.
7918
7919 2018-05-17 Tom Tromey <tom@tromey.com>
7920
7921 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7922 Initialize.
7923
7924 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7925
7926 PR gdb/22286
7927 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7928 Also handle registers whose width is not a multiple of
7929 PTRACE_TYPE_RET.
7930 (linux_nat_trad_target::store_register): Likewise.
7931
7932 2018-05-16 Tom Tromey <tom@tromey.com>
7933
7934 * gdbcore.h (core_bfd): Redefine.
7935 * corelow.c (core_target::close): Update.
7936 (core_target_open): Update.
7937 * progspace.h (struct program_space) <cbfd>: Now a
7938 gdb_bfd_ref_ptr.
7939
7940 2018-05-16 Tom Tromey <tom@tromey.com>
7941
7942 PR cli/19551:
7943 * symfile-add-flags.h (enum symfile_add_flags)
7944 <SYMFILE_NOT_FILENAME>: New constant.
7945 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7946 objfile name from BFD.
7947 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7948 * minidebug.c (find_separate_debug_file_in_section): Put
7949 ".gnu_debugdata" into BFD's file name.
7950
7951 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7952
7953 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7954 Remove.
7955
7956 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7957
7958 PR binutils/21446
7959 * aarch64-tdep.c (aarch64_analyze_prologue,
7960 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7961 Indicate not interested in errors.
7962
7963 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7964
7965 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7966 Supply the MIPS_ZERO_REGNUM register.
7967
7968 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7969
7970 * mips-tdep.c (mask_address_var): Make variable static.
7971
7972 2018-05-14 Tom Tromey <tom@tromey.com>
7973
7974 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7975
7976 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7977
7978 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7979 FXSAVE_ADDR for the mxcsr register.
7980
7981 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7982
7983 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7984
7985 2018-05-11 Pedro Alves <palves@redhat.com>
7986
7987 * corelow.c (core_target) <core_target>: No longer inline.
7988 Initialize m_core_gdbarch, m_core_vec and build the section table
7989 here.
7990 <~core_target>: New.
7991 <core_gdbarch, get_core_register_section>: New methods.
7992 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7993 factored out from ...
7994 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7995 (core_ops): Delete.
7996 (sniff_core_bfd): Add gdbarch parameter.
7997 (core_close): Delete, merged into ...
7998 (core_target::close): ... here. Delete self.
7999 (core_close_cleanup): Delete.
8000 (core_target_open): Allocate a core_target on the heap. Use a
8001 unique_ptr instead of a cleanup. Bits moved into the core_target
8002 ctor. Adjust to use core_target methods instead of globals.
8003 (get_core_register_section): Rename to ...
8004 (core_target::get_core_register_section): ... this and adjust.
8005 (struct get_core_registers_cb_data): New.
8006 (get_core_registers_cb): Use it. Use bool.
8007 (core_target::fetch_registers, core_target::files_info)
8008 (core_target::xfer_partial, core_target::read_description)
8009 (core_target::pid_to, core_target::thread_name): Adjust to
8010 reference class fields instead of globals.
8011 * target.h (struct target_ops_deleter, target_ops_up): New.
8012
8013 2018-05-11 Pedro Alves <palves@redhat.com>
8014
8015 * corefile.c (core_file_command): Move to corelow.c.
8016 * corelow.c (the_core_target): Delete.
8017 (core_file_command): Moved from corefile.c. Check exec_bfd
8018 instead of the_core_target. Use target_detach instead of calling
8019 into the_core_target directly.
8020 (maybe_say_no_core_file_now): New.
8021 (core_target::detach): Use it.
8022 (_initialize_corelow): Remove references to the_core_target.
8023 * gdbcore.h (the_core_target): Delete.
8024
8025 2018-05-11 Tom Tromey <tromey@redhat.com>
8026 Pedro Alves <palves@redhat.com>
8027
8028 * corefile.c (core_bfd): Remove.
8029 * gdbcore.h (core_bfd): Now a macro.
8030 * progspace.h (struct program_space) <cbfd>: New field.
8031
8032 2018-05-11 Tom Tromey <tom@tromey.com>
8033
8034 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8035 gdb::def_vector.
8036
8037 2018-05-10 Tom Tromey <tom@tromey.com>
8038
8039 * configure: Rebuild.
8040 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8041
8042 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8043
8044 PR server/23158:
8045 * regformats/regdat.sh: Adjust script, following the addition
8046 of the new expedite_regs parameter to init_target_desc.
8047
8048 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8049
8050 PR gdb/23127
8051 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8052 set_gdbarch_significant_addr_bit.
8053 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8054 set_gdbarch_significant_addr_bit.
8055 * utils.c (address_significant): Update to sign extend addr.
8056
8057 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8058
8059 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8060 (xtensa_linux_init_abi): Limit tdep->num_regs by
8061 tdep->num_nopriv_regs.
8062 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8063 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8064 not initialized.
8065
8066 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8067
8068 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8069
8070 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8071
8072 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8073 (I387_MXCSR_INIT_VAL): New constant.
8074 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8075 buffer if it was supplied by the inferior.
8076 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8077 (i387_xsave_get_clear_bv): New function.
8078 (i387_supply_xsave): Only read x87 control registers from the
8079 xsave buffer if the feature is enabled, and the state will have
8080 been written, otherwise, provide a suitable default.
8081 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8082 including x87 control registers. Update control registers if they
8083 have changed from the default value, and mark features as enabled
8084 as required.
8085 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8086
8087 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8088
8089 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8090
8091 2018-05-07 Tom Tromey <tom@tromey.com>
8092
8093 * configure: Rebuild.
8094 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8095
8096 2018-05-07 Tom Tromey <tom@tromey.com>
8097
8098 PR tdep/20362:
8099 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8100 bit. Use correct value for VDIV.
8101
8102 2018-05-04 Tom Tromey <tom@tromey.com>
8103
8104 * configure: Rebuild.
8105 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8106
8107 2018-05-04 Tom Tromey <tom@tromey.com>
8108
8109 * linux-record.c (record_linux_system_call) <case
8110 RECORD_SYS_RECVFROM>: Add "break".
8111
8112 2018-05-04 Tom Tromey <tom@tromey.com>
8113
8114 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8115 Add missing "break".
8116 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8117 Add missing "break".
8118
8119 2018-05-04 Tom Tromey <tom@tromey.com>
8120
8121 * rs6000-tdep.c (ppc_process_record_op4)
8122 (ppc_process_record_op63): Add fall-through comment.
8123
8124 2018-05-04 Tom Tromey <tom@tromey.com>
8125
8126 * i386-tdep.c (i386_process_record): Add fall-through comment.
8127
8128 2018-05-04 Tom Tromey <tom@tromey.com>
8129
8130 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8131 comment.
8132
8133 2018-05-04 Tom Tromey <tom@tromey.com>
8134
8135 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8136 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8137 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8138 comment.
8139 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8140 comment.
8141 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8142 comment.
8143
8144 2018-05-04 Tom Tromey <tom@tromey.com>
8145
8146 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8147
8148 2018-05-04 Tom Tromey <tom@tromey.com>
8149
8150 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8151 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8152 * symfile.c (section_is_mapped): Fix fall-through comment.
8153 * stabsread.c (define_symbol, read_member_functions): Fix
8154 fall-through comment.
8155 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8156 comment.
8157 * remote.c (remote_wait_as): Fix fall-through comment.
8158 * p-exp.y (yylex): Fix fall-through comment.
8159 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8160 comment.
8161 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8162 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8163 * jv-exp.y (yylex): Fix fall-through comment.
8164 * go-exp.y (lex_one_token): Fix fall-through comment.
8165 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8166 fall-through comment.
8167 * f-exp.y (yylex): Fix fall-through comment.
8168 * dwarf2read.c (process_die): Fix fall-through comments.
8169 * dbxread.c (process_one_symbol): Fix fall-through comment.
8170 * d-exp.y (lex_one_token): Fix fall-through comment.
8171 * cp-name-parser.y (yylex): Fix fall-through comment.
8172 * coffread.c (coff_symtab_read): Fix fall-through comment.
8173 * c-exp.y (lex_one_token): Fix fall-through comment.
8174 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8175 comment.
8176 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8177 comment.
8178
8179 2018-05-04 Tom Tromey <tom@tromey.com>
8180
8181 PR python/22730:
8182 * NEWS: Mention gdb.execute change.
8183 * gdbcmd.h (execute_control_command): Don't declare.
8184 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8185 execute_control_commands, execute_control_commands_to_string.
8186 * cli/cli-script.h (execute_control_commands)
8187 (execute_control_commands_to_string): Declare.
8188 (execute_control_command): Add from_tty parameter.
8189 * cli/cli-script.c (execute_control_commands)
8190 (execute_control_commands_to_string): New functions.
8191 (execute_user_command): Use execute_control_commands.
8192 (execute_control_command_1): Add "from_tty" parameter. Update.
8193 (execute_control_command): Likewise.
8194
8195 2018-05-04 Tom Tromey <tom@tromey.com>
8196
8197 PR python/22731:
8198 * NEWS: Mention that breakpoint commands are writable.
8199 * python/py-breakpoint.c (bppy_set_commands): New function.
8200 (breakpoint_object_getset) <"commands">: Use it.
8201
8202 2018-05-04 Tom Tromey <tom@tromey.com>
8203
8204 * tracepoint.c (actions_command): Update.
8205 * mi/mi-cmd-break.c (mi_command_line_array)
8206 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8207 (mi_read_next_line): Remove.
8208 (mi_cmd_break_commands): Update.
8209 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8210 function_view.
8211 * cli/cli-script.c (get_command_line): Update.
8212 (process_next_line): Use function_view. Constify.
8213 (recurse_read_control_structure, read_command_lines)
8214 (read_command_lines_1): Change argument types to function_view.
8215 (do_define_command, document_command): Update.
8216 * breakpoint.h (check_tracepoint_command): Don't declare.
8217 * breakpoint.c (check_tracepoint_command): Remove.
8218 (commands_command_1, create_tracepoint_from_upload): Update.
8219
8220 2018-05-04 Tom Tromey <tom@tromey.com>
8221
8222 PR gdb/11750:
8223 * cli/cli-script.h (enum command_control_type) <define_control>:
8224 New constant.
8225 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8226 (build_command_line, execute_control_command_1)
8227 (process_next_line): Likewise.
8228 (do_define_command): New function, extracted from define_command.
8229 (define_command): Use it.
8230
8231 2018-05-04 Tom Tromey <tom@tromey.com>
8232
8233 * tracepoint.c (actions_command): Update.
8234 * cli/cli-script.h (read_command_lines): Update.
8235 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8236 (MAX_TMPBUF): Remove define.
8237 (define_command): Use string_printf.
8238 (document_command): Likewise.
8239 * breakpoint.c (commands_command_1): Update.
8240
8241 2018-05-04 Tom Tromey <tom@tromey.com>
8242
8243 * top.c (execute_command): Update.
8244 * cli/cli-script.h (print_command_lines): Now varargs.
8245 * cli/cli-script.c (print_command_lines): Now varargs.
8246 (execute_control_command_1) <case while_control, case if_control>:
8247 Update.
8248
8249 2018-05-04 Tom Tromey <tom@tromey.com>
8250
8251 * tracepoint.c (all_tracepoint_actions): Rename from
8252 all_tracepoint_actions_and_cleanup. Change return type.
8253 (actions_command, encode_actions_1, encode_actions)
8254 (trace_dump_actions, tdump_command): Update.
8255 * remote.c (remote_download_command_source): Update.
8256 * python/python.c (gdbpy_eval_from_control_command)
8257 (python_command, python_interactive_command): Update.
8258 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8259 * guile/guile.c (guile_command)
8260 (gdbscm_eval_from_control_command, guile_command): Update.
8261 * compile/compile.c (compile_code_command)
8262 (compile_print_command, compile_to_object): Update.
8263 * cli/cli-script.h (struct command_lines_deleter): New.
8264 (counted_command_line): New typedef.
8265 (struct command_line): Add constructor, destructor.
8266 <body_list>: Remove.
8267 <body_list_0, body_list_1>: New members.
8268 (command_line_up): Remove typedef.
8269 (read_command_lines, read_command_lines_1, get_command_line):
8270 Update.
8271 (copy_command_lines): Don't declare.
8272 * cli/cli-script.c (build_command_line): Use "new".
8273 (get_command_line): Return counted_command_line.
8274 (print_command_lines, execute_user_command)
8275 (execute_control_command_1, while_command, if_command): Update.
8276 (realloc_body_list): Remove.
8277 (process_next_line, recurse_read_control_structure): Update.
8278 (read_command_lines, read_command_lines_1): Return counted_command_line.
8279 (free_command_lines): Use "delete".
8280 (copy_command_lines): Remove.
8281 (define_command, document_command, show_user_1): Update.
8282 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8283 a counted_command_line.
8284 * breakpoint.h (counted_command_line): Remove typedef.
8285 (breakpoint_set_commands): Update.
8286 * breakpoint.c (check_no_tracepoint_commands)
8287 (validate_commands_for_breakpoint): Update.
8288 (breakpoint_set_commands): Change commands to be a
8289 counted_command_line.
8290 (commands_command_1, update_dprintf_command_list)
8291 (create_tracepoint_from_upload): Update.
8292
8293 2018-05-04 Tom Tromey <tom@tromey.com>
8294
8295 * cli/cli-decode.h (cmd_list_element): New constructor.
8296 (~cmd_list_element): New destructor.
8297 (struct cmd_list_element): Add initializers.
8298 * cli/cli-decode.c (do_add_cmd): Use "new".
8299 (delete_cmd): Use "delete".
8300
8301 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8302 Pedro Alves <palves@redhat.com>
8303
8304 PR breakpoints/19806 and support for PR external/20207.
8305 * NEWS: Mention Aarch64 watchpoint improvements.
8306 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8307 watchpoints and PR external/20207 watchpoints.
8308 * nat/aarch64-linux-hw-point.c
8309 (kernel_supports_any_contiguous_range): New.
8310 (aarch64_watchpoint_offset): New.
8311 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8312 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8313 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8314 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8315 next_addr_orig_p. Support PR external/20207 watchpoints.
8316 (aarch64_downgrade_regs): New.
8317 (aarch64_dr_state_insert_one_point): New parameters offset and
8318 addr_orig.
8319 (aarch64_dr_state_remove_one_point): Likewise.
8320 (aarch64_handle_breakpoint): Update caller.
8321 (aarch64_handle_aligned_watchpoint): Likewise.
8322 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8323 aligned_offset.
8324 (aarch64_linux_set_debug_regs): Remove const from state. Call
8325 aarch64_downgrade_regs.
8326 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8327 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8328 (DR_CONTROL_MASK): ... this.
8329 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8330 (unsigned int aarch64_watchpoint_offset): New prototype.
8331 (aarch64_linux_set_debug_regs): Remove const from state.
8332 * utils.c (align_up, align_down): Move to ...
8333 * common/common-utils.c (align_up, align_down): ... here.
8334 * utils.h (align_up, align_down): Move to ...
8335 * common/common-utils.h (align_up, align_down): ... here.
8336
8337 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8338
8339 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8340 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8341 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8342 Re-implement to match the ABI as summarized in GCC's
8343 gcc/config/sparc/sparc.c. All callers updated.
8344 (sparc32_store_arguments): Remove assertion.
8345
8346 2018-05-04 Tom Tromey <tom@tromey.com>
8347
8348 * printcmd.c: Don't include tui.h.
8349 (decode_format): Use skip_spaces.
8350
8351 2018-05-04 Tom Tromey <tom@tromey.com>
8352
8353 PR gdb/22619:
8354 * printcmd.c (last_count): New global.
8355 (x_command): Use saved count when repeating.
8356
8357 2018-05-04 Tom Tromey <tom@tromey.com>
8358
8359 * nto-procfs.c (do_closedir_cleanup): Remove.
8360 (procfs_pidlist): Use gdb_dir_up.
8361 * procfs.c (do_closedir_cleanup): Remove.
8362 (proc_update_threads): Use gdb_dir_up.
8363 * common/filestuff.h (struct gdb_dir_deleter): New.
8364 (gdb_dir_up): New typedef.
8365
8366 2018-05-04 Tom Tromey <tom@tromey.com>
8367
8368 * ada-lang.c (print_mention_exception): Use std::string.
8369
8370 2018-05-04 Tom Tromey <tom@tromey.com>
8371
8372 * ada-lang.c (create_excep_cond_exprs): Update.
8373 (ada_exception_catchpoint_cond_string): Use std::string.
8374
8375 2018-05-04 Tom Tromey <tom@tromey.com>
8376
8377 * ada-lang.c (xget_renaming_scope): Return std::string.
8378 (old_renaming_is_invisible): Update.
8379
8380 2018-05-04 Tom Tromey <tom@tromey.com>
8381
8382 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8383 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8384
8385 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8386
8387 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8388
8389 2018-05-04 Tom Tromey <tom@tromey.com>
8390
8391 * remote.c (remote_query_supported_append): Change type.
8392 (remote_check_symbols): Update.
8393
8394 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8395
8396 PR gdb/11420
8397 * configure.ac: Prepend libpython.
8398 * python/python-config.py: Likewise.
8399 * configure: Regenerate.
8400
8401 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8402
8403 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8404
8405 2018-05-03 Pedro Alves <palves@redhat.com>
8406
8407 * s390-linux-nat.c
8408 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8409 override. Write 'true' instead of '1'.
8410 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8411 declaration.
8412
8413 2018-05-02 Pedro Alves <palves@redhat.com>
8414
8415 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8416 add_inf_child_target.
8417 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8418 add_inf_child_target.
8419 * aix-thread.c (aix_thread_target_info): New.
8420 (aix_thread_target) <shortname, longname, doc>: Delete.
8421 <info>: New.
8422 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8423 add_inf_child_target.
8424 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8425 add_inf_child_target.
8426 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8427 add_inf_child_target.
8428 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8429 add_inf_child_target.
8430 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8431 add_inf_child_target.
8432 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8433 add_inf_child_target.
8434 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8435 add_inf_child_target.
8436 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8437 add_inf_child_target.
8438 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8439 add_inf_child_target.
8440 * bfd-target.c (target_bfd_target_info): New.
8441 (target_bfd) <shortname, longname, doc>: Delete.
8442 <info>: New.
8443 * bsd-kvm.c (bsd_kvm_target_info): New.
8444 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8445 <info>: New.
8446 (bsd_kvm_target::open): Rename to ...
8447 (bsd_kvm_target_open): ... this. Adjust.
8448 * bsd-uthread.c (bsd_uthread_target_info): New.
8449 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8450 <info>: New.
8451 * corefile.c (core_file_command): Adjust.
8452 * corelow.c (core_target_info): New.
8453 (core_target) <shortname, longname, doc>: Delete.
8454 <info>: New.
8455 (core_target::open): Rename to ...
8456 (core_target_open): ... this. Adjust.
8457 * ctf.c (ctf_target_info): New.
8458 (ctf_target) <shortname, longname, doc>: Delete.
8459 <info>: New.
8460 (ctf_target::open): Rename to ...
8461 (ctf_target_open): ... this.
8462 (_initialize_ctf): Adjust.
8463 * exec.c (exec_target_info): New.
8464 (exec_target) <shortname, longname, doc>: Delete.
8465 <info>: New.
8466 (exec_target::open): Rename to ...
8467 (exec_target_open): ... this.
8468 * gdbcore.h (core_target_open): Declare.
8469 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8470 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8471 add_inf_child_target.
8472 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8473 add_inf_child_target.
8474 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8475 add_inf_child_target.
8476 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8477 add_inf_child_target.
8478 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8479 add_inf_child_target.
8480 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8481 add_inf_child_target.
8482 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8483 add_inf_child_target.
8484 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8485 add_inf_child_target.
8486 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8487 add_inf_child_target.
8488 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8489 add_inf_child_target.
8490 * inf-child.c (inf_child_target_info): New.
8491 (inf_child_target::info): New.
8492 (inf_child_open_target): Remove 'target' parameter. Use
8493 get_native_target instead.
8494 (inf_child_target::open): Delete.
8495 (add_inf_child_target): New.
8496 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8497 Delete.
8498 <info>: New.
8499 (add_inf_child_target): Declare.
8500 (inf_child_open_target): Declare.
8501 * linux-thread-db.c (thread_db_target_info): New.
8502 (thread_db_target) <shortname, longname, doc>: Delete.
8503 <info>: New.
8504 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8505 add_inf_child_target.
8506 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8507 add_inf_child_target.
8508 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8509 add_inf_child_target.
8510 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8511 add_inf_child_target.
8512 * make-target-delegates (print_class): Adjust.
8513 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8514 add_inf_child_target.
8515 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8516 add_inf_child_target.
8517 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8518 add_inf_child_target.
8519 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8520 add_inf_child_target.
8521 * nto-procfs.c (nto_native_target_info): New.
8522 (nto_procfs_target_native) <shortname, longname, doc>:
8523 Delete.
8524 <info>: New.
8525 (nto_procfs_target_info): New.
8526 (nto_procfs_target_procfs) <shortname, longname, doc>:
8527 Delete.
8528 <info>: New.
8529 (init_procfs_targets): Adjust.
8530 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8531 add_inf_child_target.
8532 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8533 add_inf_child_target.
8534 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8535 add_inf_child_target.
8536 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8537 add_inf_child_target.
8538 * ravenscar-thread.c (ravenscar_target_info): New.
8539 (ravenscar_thread_target) <shortname, longname, doc>:
8540 Delete.
8541 <info>: New.
8542 * record-btrace.c (record_btrace_target_info):
8543 (record_btrace_target) <shortname, longname, doc>: Delete.
8544 <info>: New.
8545 (record_btrace_target::open): Rename to ...
8546 (record_btrace_target_open): ... this. Adjust.
8547 * record-full.c (record_longname, record_doc): New.
8548 (record_full_base_target) <shortname, longname, doc>: Delete.
8549 <info>: New.
8550 (record_full_target_info): New.
8551 (record_full_target): <shortname>: Delete.
8552 <info>: New.
8553 (record_full_core_open_1, record_full_open_1): Update comments.
8554 (record_full_base_target::open): Rename to ...
8555 (record_full_open): ... this.
8556 (cmd_record_full_restore): Update.
8557 (_initialize_record_full): Update.
8558 * remote-sim.c (remote_sim_target_info): New.
8559 (gdbsim_target) <shortname, longname, doc>: Delete.
8560 <info>: New.
8561 (gdbsim_target::open): Rename to ...
8562 (gdbsim_target_open): ... this.
8563 (_initialize_remote_sim): Adjust.
8564 * remote.c (remote_doc): New.
8565 (remote_target_info): New.
8566 (remote_target) <shortname, longname, doc>: Delete.
8567 <info>: New.
8568 (extended_remote_target_info): New.
8569 (extended_remote_target) <shortname, longname, doc>: Delete.
8570 <info>: New.
8571 (remote_target::open_1): Make static. Adjust.
8572 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8573 * s390-linux-nat.c (_initialize_s390_nat): Use
8574 add_inf_child_target.
8575 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8576 add_inf_child_target.
8577 * sol-thread.c (thread_db_target_info): New.
8578 (sol_thread_target) <shortname, longname, doc>: Delete.
8579 <info>: New.
8580 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8581 add_inf_child_target.
8582 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8583 add_inf_child_target.
8584 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8585 add_inf_child_target.
8586 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8587 add_inf_child_target.
8588 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8589 add_inf_child_target.
8590 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8591 add_inf_child_target.
8592 * spu-linux-nat.c (_initialize_spu_nat): Use
8593 add_inf_child_target.
8594 * spu-multiarch.c (spu_multiarch_target_info): New.
8595 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8596 <info>: New.
8597 * target-delegates.c: Regenerate.
8598 * target.c: Include <unordered_map>.
8599 (target_ops_p): Delete.
8600 (DEF_VEC_P(target_ops_p)): Delete.
8601 (target_factories): New.
8602 (test_target_info): New.
8603 (test_target_ops::info): New.
8604 (open_target): Adjust to use target_factories.
8605 (add_target_with_completer): Rename to ...
8606 (add_target): ... this. Change prototype. Register target_info
8607 and open callback in target_factories. Register target_info in
8608 command context instead of target_ops.
8609 (add_target): Delete old implementation.
8610 (add_deprecated_target_alias): Change prototype. Adjust.
8611 (the_native_target): New.
8612 (set_native_target, get_native_target): New.
8613 (find_default_run_target): Use the_native_target.
8614 (find_attach_target, find_run_target): Simplify.
8615 (target_ops::open): Delete.
8616 (dummy_target_info): New.
8617 (dummy_target::shortname, dummy_target::longname)
8618 (dummy_target::doc): Delete.
8619 (dummy_target::info): New.
8620 (debug_target::shortname, debug_target::longname)
8621 (debug_target::doc): Delete.
8622 (debug_target::info): New.
8623 * target.h (struct target_info): New.
8624 (target_ops::~target_ops): Add comment.
8625 (target_ops::info): New.
8626 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8627 longer virtual. Implement in terms of target_info.
8628 (set_native_target, get_native_target): Declare.
8629 (target_open_ftype): New.
8630 (add_target, add_target_with_completer)
8631 (add_deprecated_target_alias): Change prototype.
8632 (test_target) <shortname, longname, doc>: Delete.
8633 <info>: New.
8634 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8635 add_inf_child_target.
8636 * tracefile-tfile.c (tfile_target_info): New.
8637 (tfile_target) <shortname, longname, doc>: Delete.
8638 <info>: New.
8639 (tfile_target::open): Rename to ...
8640 (tfile_target_open): ... this.
8641 (_initialize_tracefile_tfile): Adjust.
8642 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8643 add_inf_child_target.
8644 * windows-nat.c (_initialize_windows_nat): Use
8645 add_inf_child_target.
8646 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8647 add_inf_child_target.
8648
8649 2018-05-02 Pedro Alves <palves@redhat.com>
8650
8651 * linux-nat.h (linux_nat_target) <low_new_thread,
8652 low_delete_thread, low_new_fork, low_forget_process,
8653 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8654 New virtual methods.
8655 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8656 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8657 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8658 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8659 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8660 Delete.
8661 * linux-fork.c (delete_fork): Adjust to call low method.
8662 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8663 (linux_nat_new_fork, linux_nat_forget_process_hook)
8664 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8665 (linux_nat_status_is_event):
8666 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8667 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8668 to call low method.
8669 (sigtrap_is_event): Rename to ...
8670 (linux_nat_target::low_status_is_event): ... this.
8671 (linux_nat_set_status_is_event): Delete.
8672 (save_stop_reason, linux_nat_wait_1)
8673 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8674 low methods.
8675 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8676 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8677 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8678 (linux_nat_set_prepare_to_resume): Delete.
8679 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8680 low virtual methods.
8681 * amd64-linux-nat.c: Likewise.
8682 * arm-linux-nat.c: Likewise.
8683 * i386-linux-nat.c: Likewise.
8684 * ia64-linux-nat.c: Likewise.
8685 * mips-linux-nat.c: Likewise.
8686 * ppc-linux-nat.c: Likewise.
8687 * s390-linux-nat.c: Likewise.
8688 * sparc64-linux-nat.c: Likewise.
8689 * x86-linux-nat.c: Likewise.
8690 * x86-linux-nat.h: Include "nat/x86-linux.h".
8691 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8692 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8693 Override methods.
8694
8695 2018-05-02 Pedro Alves <palves@redhat.com>
8696
8697 * target.h (target_ops)
8698 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8699 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8700 stopped_by_watchpoint, have_continuable_watchpoint,
8701 stopped_data_address, watchpoint_addr_within_range,
8702 can_accel_watchpoint_condition, can_run, thread_alive,
8703 has_all_memory, has_memory, has_stack, has_registers,
8704 has_execution, can_async_p, is_async_p, supports_non_stop,
8705 always_non_stop_p, can_execute_reverse, supports_multi_process,
8706 supports_enable_disable_tracepoint,
8707 supports_disable_randomization, supports_string_tracing,
8708 supports_evaluation_of_breakpoint_conditions,
8709 can_run_breakpoint_commands, filesystem_is_local,
8710 can_download_tracepoint, get_trace_state_variable_value,
8711 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8712 record_is_replaying, record_will_replay,
8713 augmented_libraries_svr4_read>: Adjust to return bool.
8714 * aarch64-linux-nat.c: All implementations adjusted.
8715 * aix-thread.c: All implementations adjusted.
8716 * arm-linux-nat.c: All implementations adjusted.
8717 * breakpoint.c: All implementations adjusted.
8718 * bsd-kvm.c: All implementations adjusted.
8719 * bsd-uthread.c: All implementations adjusted.
8720 * corelow.c: All implementations adjusted.
8721 * ctf.c: All implementations adjusted.
8722 * darwin-nat.c: All implementations adjusted.
8723 * darwin-nat.h: All implementations adjusted.
8724 * exec.c: All implementations adjusted.
8725 * fbsd-nat.c: All implementations adjusted.
8726 * fbsd-nat.h: All implementations adjusted.
8727 * gnu-nat.c: All implementations adjusted.
8728 * gnu-nat.h: All implementations adjusted.
8729 * go32-nat.c: All implementations adjusted.
8730 * ia64-linux-nat.c: All implementations adjusted.
8731 * inf-child.c: All implementations adjusted.
8732 * inf-child.h: All implementations adjusted.
8733 * inf-ptrace.c: All implementations adjusted.
8734 * inf-ptrace.h: All implementations adjusted.
8735 * linux-nat.c: All implementations adjusted.
8736 * linux-nat.h: All implementations adjusted.
8737 * mips-linux-nat.c: All implementations adjusted.
8738 * nto-procfs.c: All implementations adjusted.
8739 * ppc-linux-nat.c: All implementations adjusted.
8740 * procfs.c: All implementations adjusted.
8741 * ravenscar-thread.c: All implementations adjusted.
8742 * record-btrace.c: All implementations adjusted.
8743 * record-full.c: All implementations adjusted.
8744 * remote-sim.c: All implementations adjusted.
8745 * remote.c: All implementations adjusted.
8746 * s390-linux-nat.c: All implementations adjusted.
8747 * sol-thread.c: All implementations adjusted.
8748 * spu-multiarch.c: All implementations adjusted.
8749 * target-delegates.c: All implementations adjusted.
8750 * target.c: All implementations adjusted.
8751 * target.h: All implementations adjusted.
8752 * tracefile-tfile.c: All implementations adjusted.
8753 * tracefile.c: All implementations adjusted.
8754 * tracefile.h: All implementations adjusted.
8755 * windows-nat.c: All implementations adjusted.
8756 * x86-linux-nat.h: All implementations adjusted.
8757 * x86-nat.h: All implementations adjusted.
8758
8759 2018-05-02 Pedro Alves <palves@redhat.com>
8760
8761 * make-target-delegates (scan_target_h): Don't trim lines here.
8762 Replace sequences of tabs and/or whitespace with a single
8763 whitespace.
8764 (top level, parsing methods): Trim each line before processing it
8765 here.
8766
8767 2018-05-02 Pedro Alves <palves@redhat.com>
8768 John Baldwin <jhb@freebsd.org>
8769
8770 * target.h (enum strata) <debug_stratum>: New.
8771 (struct target_ops) <all delegation methods>: Replace by C++
8772 virtual methods, and drop "to_" prefix. All references updated
8773 throughout.
8774 <to_shortname, to_longname, to_doc, to_data,
8775 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8776 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8777 virtual methods. All references updated throughout.
8778 <can_attach, supports_terminal_ours, can_create_inferior,
8779 get_thread_control_capabilities, attach_no_wait>: New
8780 virtual methods.
8781 <insert_breakpoint, remove_breakpoint>: Now
8782 TARGET_DEFAULT_NORETURN methods.
8783 <info_proc>: Now returns bool.
8784 <to_magic>: Delete.
8785 (OPS_MAGIC): Delete.
8786 (current_target): Delete. All references replaced by references
8787 to ...
8788 (target_stack): ... this. New.
8789 (target_shortname, target_longname): Adjust.
8790 (target_can_run): Now a function declaration.
8791 (default_child_has_all_memory, default_child_has_memory)
8792 (default_child_has_stack, default_child_has_registers)
8793 (default_child_has_execution): Remove target_ops parameter.
8794 (complete_target_initialization): Delete.
8795 (memory_breakpoint_target): New template class.
8796 (test_target_ops): Refactor as a C++ class with virtual methods.
8797 * make-target-delegates (NAME_PART): Tighten.
8798 (POINTER_PART, CP_SYMBOL): New.
8799 (SIMPLE_RETURN_PART): Reimplement.
8800 (VEC_RETURN_PART): Expect less.
8801 (RETURN_PART, VIRTUAL_PART): New.
8802 (METHOD): Adjust to C++ virtual methods.
8803 (scan_target_h): Remove reference to C99.
8804 (dname): Output "target_ops::" prefix.
8805 (write_function_header): Adjust to output a C++ class method.
8806 (write_declaration): New.
8807 (write_delegator): Adjust to output a C++ class method.
8808 (tdname): Output "dummy_target::" prefix.
8809 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8810 method.
8811 (tdefault_names, debug_names): Delete.
8812 (return_types, tdefaults, styles, argtypes_array): New.
8813 (top level): All methods are delegators.
8814 (print_class): New.
8815 (top level): Print dummy_target and debug_target classes.
8816 * target-delegates.c: Regenerate.
8817 * target-debug.h (target_debug_print_enum_info_proc_what)
8818 (target_debug_print_thread_control_capabilities)
8819 (target_debug_print_thread_info_p): New.
8820 * target.c (dummy_target): Delete.
8821 (the_dummy_target, the_debug_target): New.
8822 (target_stack): Now extern.
8823 (set_targetdebug): Push/unpush debug target.
8824 (default_child_has_all_memory, default_child_has_memory)
8825 (default_child_has_stack, default_child_has_registers)
8826 (default_child_has_execution): Remove target_ops parameter.
8827 (complete_target_initialization): Delete.
8828 (add_target_with_completer): No longer call
8829 complete_target_initialization.
8830 (target_supports_terminal_ours): Use regular delegation.
8831 (update_current_target): Delete.
8832 (push_target): No longer check magic number. Don't call
8833 update_current_target.
8834 (unpush_target): Don't call update_current_target.
8835 (target_is_pushed): No longer check magic number.
8836 (target_require_runnable): Skip for all stratums over
8837 process_stratum.
8838 (target_ops::info_proc): New.
8839 (target_info_proc): Use find_target_at and
8840 find_default_run_target.
8841 (target_supports_disable_randomization): Use regular delegation.
8842 (target_get_osdata): Use find_target_at.
8843 (target_ops::open, target_ops::close, target_ops::can_attach)
8844 (target_ops::attach, target_ops::can_create_inferior)
8845 (target_ops::create_inferior, target_ops::can_run)
8846 (target_can_run): New.
8847 (default_fileio_target): Use regular delegation.
8848 (target_ops::fileio_open, target_ops::fileio_pwrite)
8849 (target_ops::fileio_pread, target_ops::fileio_fstat)
8850 (target_ops::fileio_close, target_ops::fileio_unlink)
8851 (target_ops::fileio_readlink): New.
8852 (target_fileio_open_1, target_fileio_unlink)
8853 (target_fileio_readlink): Always call the target method. Handle
8854 FILEIO_ENOSYS.
8855 (return_zero, return_zero_has_execution): Delete.
8856 (init_dummy_target): Delete.
8857 (dummy_target::dummy_target, dummy_target::shortname)
8858 (dummy_target::longname, dummy_target::doc)
8859 (debug_target::debug_target, debug_target::shortname)
8860 (debug_target::longname, debug_target::doc): New.
8861 (target_supports_delete_record): Use regular delegation.
8862 (setup_target_debug): Delete.
8863 (maintenance_print_target_stack): Skip debug_stratum.
8864 (initialize_targets): Instantiate the_dummy_target and
8865 the_debug_target.
8866 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8867 use target_stack.
8868 (target_auxv_search, fprint_target_auxv): Adjust.
8869 (info_auxv_command): Adjust to use target_stack.
8870 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8871 * exceptions.c (print_flush): Handle a NULL target_stack.
8872 * regcache.c (target_ops_no_register): Refactor as class with
8873 virtual methods.
8874
8875 * exec.c (exec_target): New class.
8876 (exec_ops): Now an exec_target.
8877 (exec_open, exec_close_1, exec_get_section_table)
8878 (exec_xfer_partial, exec_files_info, exec_has_memory)
8879 (exec_make_note_section): Refactor as exec_target methods.
8880 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8881 Delete.
8882 (exec_target::find_memory_regions): New.
8883 (_initialize_exec): Don't call init_exec_ops.
8884 * gdbcore.h (exec_file_clear): Delete.
8885
8886 * corefile.c (core_target): Delete.
8887 (core_file_command): Adjust.
8888 * corelow.c (core_target): New class.
8889 (the_core_target): New.
8890 (core_close): Remove target_ops parameter.
8891 (core_close_cleanup): Adjust.
8892 (core_target::close): New.
8893 (core_open, core_detach, get_core_registers, core_files_info)
8894 (core_xfer_partial, core_thread_alive, core_read_description)
8895 (core_pid_to_str, core_thread_name, core_has_memory)
8896 (core_has_stack, core_has_registers, core_info_proc): Rework as
8897 core_target methods.
8898 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8899 (_initialize_corelow): Initialize the_core_target.
8900 * gdbcore.h (core_target): Delete.
8901 (the_core_target): New.
8902
8903 * ctf.c: (ctf_target): New class.
8904 (ctf_ops): Now a ctf_target.
8905 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8906 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8907 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8908 methods.
8909 (init_ctf_ops): Delete.
8910 (_initialize_ctf): Don't call it.
8911 * tracefile-tfile.c (tfile_target): New class.
8912 (tfile_ops): Now a tfile_target.
8913 (tfile_open, tfile_close, tfile_files_info)
8914 (tfile_get_tracepoint_status, tfile_trace_find)
8915 (tfile_fetch_registers, tfile_xfer_partial)
8916 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8917 Refactor as tfile_target methods.
8918 (tfile_xfer_partial_features): Remove target_ops parameter.
8919 (init_tfile_ops): Delete.
8920 (_initialize_tracefile_tfile): Don't call it.
8921 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8922 (tracefile_has_stack, tracefile_has_registers)
8923 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8924 tracefile_target methods.
8925 (init_tracefile_ops): Delete.
8926 (tracefile_target::tracefile_target): New.
8927 * tracefile.h: Include "target.h".
8928 (tracefile_target): New class.
8929 (init_tracefile_ops): Delete.
8930
8931 * spu-multiarch.c (spu_multiarch_target): New class.
8932 (spu_ops): Now a spu_multiarch_target.
8933 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8934 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8935 (spu_search_memory, spu_mourn_inferior): Refactor as
8936 spu_multiarch_target methods.
8937 (init_spu_ops): Delete.
8938 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8939 complete_target_initialization.
8940
8941 * ravenscar-thread.c (ravenscar_thread_target): New class.
8942 (ravenscar_ops): Now a ravenscar_thread_target.
8943 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8944 (ravenscar_thread_alive, ravenscar_pid_to_str)
8945 (ravenscar_fetch_registers, ravenscar_store_registers)
8946 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8947 (ravenscar_stopped_by_hw_breakpoint)
8948 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8949 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8950 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8951 methods.
8952 (init_ravenscar_thread_ops): Delete.
8953 (_initialize_ravenscar): Remove references to
8954 init_ravenscar_thread_ops and complete_target_initialization.
8955
8956 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8957 (bsd_uthread_target): New class.
8958 (bsd_uthread_ops): Now a bsd_uthread_target.
8959 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8960 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8961 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8962 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8963 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8964 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8965 (bsd_uthread_target): Delete function.
8966 (_initialize_bsd_uthread): Remove reference to
8967 complete_target_initialization.
8968
8969 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8970 (target_bfd): ... this new class.
8971 (target_bfd_xfer_partial, target_bfd_get_section_table)
8972 (target_bfd_close): Refactor as target_bfd methods.
8973 (target_bfd::~target_bfd): New.
8974 (target_bfd_reopen): Adjust.
8975 (target_bfd::close): New.
8976
8977 * record-btrace.c (record_btrace_target): New class.
8978 (record_btrace_ops): Now a record_btrace_target.
8979 (record_btrace_open, record_btrace_stop_recording)
8980 (record_btrace_disconnect, record_btrace_close)
8981 (record_btrace_async, record_btrace_info)
8982 (record_btrace_insn_history, record_btrace_insn_history_range)
8983 (record_btrace_insn_history_from, record_btrace_call_history)
8984 (record_btrace_call_history_range)
8985 (record_btrace_call_history_from, record_btrace_record_method)
8986 (record_btrace_is_replaying, record_btrace_will_replay)
8987 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8988 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8989 (record_btrace_store_registers, record_btrace_prepare_to_store)
8990 (record_btrace_to_get_unwinder)
8991 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8992 (record_btrace_commit_resume, record_btrace_wait)
8993 (record_btrace_stop, record_btrace_can_execute_reverse)
8994 (record_btrace_stopped_by_sw_breakpoint)
8995 (record_btrace_supports_stopped_by_sw_breakpoint)
8996 (record_btrace_stopped_by_hw_breakpoint)
8997 (record_btrace_supports_stopped_by_hw_breakpoint)
8998 (record_btrace_update_thread_list, record_btrace_thread_alive)
8999 (record_btrace_goto_begin, record_btrace_goto_end)
9000 (record_btrace_goto, record_btrace_stop_replaying_all)
9001 (record_btrace_execution_direction)
9002 (record_btrace_prepare_to_generate_core)
9003 (record_btrace_done_generating_core): Refactor as
9004 record_btrace_target methods.
9005 (init_record_btrace_ops): Delete.
9006 (_initialize_record_btrace): Remove reference to
9007 init_record_btrace_ops.
9008 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9009 the execution_direction global.
9010 (record_full_base_target, record_full_target)
9011 (record_full_core_target): New classes.
9012 (record_full_ops): Now a record_full_target.
9013 (record_full_core_ops): Now a record_full_core_target.
9014 (record_full_target::detach, record_full_target::disconnect)
9015 (record_full_core_target::disconnect)
9016 (record_full_target::mourn_inferior, record_full_target::kill):
9017 New.
9018 (record_full_open, record_full_close, record_full_async): Refactor
9019 as methods of the record_full_base_target class.
9020 (record_full_resume, record_full_commit_resume): Refactor
9021 as methods of the record_full_target class.
9022 (record_full_wait, record_full_stopped_by_watchpoint)
9023 (record_full_stopped_data_address)
9024 (record_full_stopped_by_sw_breakpoint)
9025 (record_full_supports_stopped_by_sw_breakpoint)
9026 (record_full_stopped_by_hw_breakpoint)
9027 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9028 methods of the record_full_base_target class.
9029 (record_full_store_registers, record_full_xfer_partial)
9030 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9031 Refactor as methods of the record_full_target class.
9032 (record_full_can_execute_reverse, record_full_get_bookmark)
9033 (record_full_goto_bookmark, record_full_execution_direction)
9034 (record_full_record_method, record_full_info, record_full_delete)
9035 (record_full_is_replaying, record_full_will_replay)
9036 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9037 (record_full_stop_replaying): Refactor as methods of the
9038 record_full_base_target class.
9039 (record_full_core_resume, record_full_core_kill)
9040 (record_full_core_fetch_registers)
9041 (record_full_core_prepare_to_store)
9042 (record_full_core_store_registers, record_full_core_xfer_partial)
9043 (record_full_core_insert_breakpoint)
9044 (record_full_core_remove_breakpoint)
9045 (record_full_core_has_execution): Refactor
9046 as methods of the record_full_core_target class.
9047 (record_full_base_target::supports_delete_record): New.
9048 (init_record_full_ops): Delete.
9049 (init_record_full_core_ops): Delete.
9050 (record_full_save): Refactor as method of the
9051 record_full_base_target class.
9052 (_initialize_record_full): Remove references to
9053 init_record_full_ops and init_record_full_core_ops.
9054
9055 * remote.c (remote_target, extended_remote_target): New classes.
9056 (remote_ops): Now a remote_target.
9057 (extended_remote_ops): Now an extended_remote_target.
9058 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9059 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9060 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9061 (remote_pass_signals, remote_set_syscall_catchpoint)
9062 (remote_program_signals, )
9063 (remote_thread_always_alive): Remove target_ops parameter.
9064 (remote_thread_alive, remote_thread_name)
9065 (remote_update_thread_list, remote_threads_extra_info)
9066 (remote_static_tracepoint_marker_at)
9067 (remote_static_tracepoint_markers_by_strid)
9068 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9069 (remote_open): Refactor as methods of remote_target.
9070 (extended_remote_open, extended_remote_detach)
9071 (extended_remote_attach, extended_remote_post_attach):
9072 (extended_remote_supports_disable_randomization)
9073 (extended_remote_create_inferior): : Refactor as method of
9074 extended_remote_target.
9075 (remote_set_permissions, remote_open_1, remote_detach)
9076 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9077 (remote_resume, remote_commit_resume, remote_stop)
9078 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9079 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9080 (remote_prepare_to_store, remote_store_registers)
9081 (remote_flash_erase, remote_flash_done, remote_files_info)
9082 (remote_kill, remote_mourn, remote_insert_breakpoint)
9083 (remote_remove_breakpoint, remote_insert_watchpoint)
9084 (remote_watchpoint_addr_within_range)
9085 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9086 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9087 (remote_supports_stopped_by_sw_breakpoint)
9088 (remote_stopped_by_hw_breakpoint)
9089 (remote_supports_stopped_by_hw_breakpoint)
9090 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9091 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9092 (remote_verify_memory): Refactor as methods of remote_target.
9093 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9094 parameter.
9095 (remote_xfer_partial, remote_get_memory_xfer_limit)
9096 (remote_search_memory, remote_rcmd, remote_memory_map)
9097 (remote_pid_to_str, remote_get_thread_local_address)
9098 (remote_get_tib_address, remote_read_description): Refactor as
9099 methods of remote_target.
9100 (remote_target::fileio_open, remote_target::fileio_pwrite)
9101 (remote_target::fileio_pread, remote_target::fileio_close): New.
9102 (remote_hostio_readlink, remote_hostio_fstat)
9103 (remote_filesystem_is_local, remote_can_execute_reverse)
9104 (remote_supports_non_stop, remote_supports_disable_randomization)
9105 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9106 (remote_supports_enable_disable_tracepoint)
9107 (remote_supports_string_tracing)
9108 (remote_can_run_breakpoint_commands, remote_trace_init)
9109 (remote_download_tracepoint, remote_can_download_tracepoint)
9110 (remote_download_trace_state_variable, remote_enable_tracepoint)
9111 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9112 (remote_trace_start, remote_get_trace_status)
9113 (remote_get_tracepoint_status, remote_trace_stop)
9114 (remote_trace_find, remote_get_trace_state_variable_value)
9115 (remote_save_trace_data, remote_get_raw_trace_data)
9116 (remote_set_disconnected_tracing, remote_core_of_thread)
9117 (remote_set_circular_trace_buffer, remote_traceframe_info)
9118 (remote_get_min_fast_tracepoint_insn_len)
9119 (remote_set_trace_buffer_size, remote_set_trace_notes)
9120 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9121 (remote_disable_btrace, remote_teardown_btrace)
9122 (remote_read_btrace, remote_btrace_conf)
9123 (remote_augmented_libraries_svr4_read, remote_load)
9124 (remote_pid_to_exec_file, remote_can_do_single_step)
9125 (remote_execution_direction, remote_thread_handle_to_thread_info):
9126 Refactor as methods of remote_target.
9127 (init_remote_ops, init_extended_remote_ops): Delete.
9128 (remote_can_async_p, remote_is_async_p, remote_async)
9129 (remote_thread_events, remote_upload_tracepoints)
9130 (remote_upload_trace_state_variables): Refactor as methods of
9131 remote_target.
9132 (_initialize_remote): Remove references to init_remote_ops and
9133 init_extended_remote_ops.
9134
9135 * remote-sim.c (gdbsim_target): New class.
9136 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9137 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9138 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9139 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9140 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9141 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9142 Refactor as methods of gdbsim_target.
9143 (gdbsim_ops): Now a gdbsim_target.
9144 (init_gdbsim_ops): Delete.
9145 (gdbsim_cntrl_c): Adjust.
9146 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9147
9148 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9149 (the_amd64_linux_nat_target): New.
9150 (amd64_linux_fetch_inferior_registers)
9151 (amd64_linux_store_inferior_registers): Refactor as methods of
9152 amd64_linux_nat_target.
9153 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9154 * i386-linux-nat.c: Don't include "linux-nat.h".
9155 (i386_linux_nat_target): New class.
9156 (the_i386_linux_nat_target): New.
9157 (i386_linux_fetch_inferior_registers)
9158 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9159 as methods of i386_linux_nat_target.
9160 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9161 * inf-child.c (inf_child_ops): Delete.
9162 (inf_child_fetch_inferior_registers)
9163 (inf_child_store_inferior_registers): Delete.
9164 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9165 methods of inf_child_target.
9166 (inf_child_target::supports_terminal_ours)
9167 (inf_child_target::terminal_init)
9168 (inf_child_target::terminal_inferior)
9169 (inf_child_target::terminal_ours_for_output)
9170 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9171 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9172 New.
9173 (inf_child_open, inf_child_disconnect, inf_child_close)
9174 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9175 (inf_child_post_startup_inferior, inf_child_can_run)
9176 (inf_child_pid_to_exec_file): Refactor as methods of
9177 inf_child_target.
9178 (inf_child_follow_fork): Delete.
9179 (inf_child_target::can_create_inferior)
9180 (inf_child_target::can_attach): New.
9181 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9182 (inf_child_target::has_stack, inf_child_target::has_registers)
9183 (inf_child_target::has_execution): New.
9184 (inf_child_fileio_open, inf_child_fileio_pwrite)
9185 (inf_child_fileio_pread, inf_child_fileio_fstat)
9186 (inf_child_fileio_close, inf_child_fileio_unlink)
9187 (inf_child_fileio_readlink, inf_child_use_agent)
9188 (inf_child_can_use_agent): Refactor as methods of
9189 inf_child_target.
9190 (return_zero, inf_child_target): Delete.
9191 (inf_child_target::inf_child_target): New.
9192 * inf-child.h: Include "target.h".
9193 (inf_child_target): Delete function prototype.
9194 (inf_child_target): New class.
9195 (inf_child_open_target, inf_child_mourn_inferior)
9196 (inf_child_maybe_unpush_target): Delete.
9197 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9198 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9199 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9200 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9201 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9202 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9203 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9204 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9205 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9206 methods of inf_ptrace_target.
9207 (inf_ptrace_target): Delete function.
9208 * inf-ptrace.h: Include "inf-child.h".
9209 (inf_ptrace_target): Delete function declaration.
9210 (inf_ptrace_target): New class.
9211 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9212 * linux-nat.c (linux_target): New.
9213 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9214 (linux_nat_target::~linux_nat_target): New.
9215 (linux_child_post_attach, linux_child_post_startup_inferior)
9216 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9217 (linux_child_remove_fork_catchpoint)
9218 (linux_child_insert_vfork_catchpoint)
9219 (linux_child_remove_vfork_catchpoint)
9220 (linux_child_insert_exec_catchpoint)
9221 (linux_child_remove_exec_catchpoint)
9222 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9223 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9224 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9225 (linux_nat_stopped_data_address)
9226 (linux_nat_stopped_by_sw_breakpoint)
9227 (linux_nat_supports_stopped_by_sw_breakpoint)
9228 (linux_nat_stopped_by_hw_breakpoint)
9229 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9230 (linux_nat_kill, linux_nat_mourn_inferior)
9231 (linux_nat_xfer_partial, linux_nat_thread_alive)
9232 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9233 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9234 (linux_child_static_tracepoint_markers_by_strid)
9235 (linux_nat_is_async_p, linux_nat_can_async_p)
9236 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9237 (linux_nat_supports_multi_process)
9238 (linux_nat_supports_disable_randomization, linux_nat_async)
9239 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9240 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9241 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9242 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9243 methods of linux_nat_target.
9244 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9245 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9246 parameter.
9247 (check_stopped_by_watchpoint): Adjust.
9248 (linux_xfer_partial): Delete.
9249 (linux_target_install_ops, linux_target, linux_nat_add_target):
9250 Delete.
9251 (linux_nat_target::linux_nat_target): New.
9252 * linux-nat.h: Include "inf-ptrace.h".
9253 (linux_nat_target): New.
9254 (linux_target, linux_target_install_ops, linux_nat_add_target):
9255 Delete function declarations.
9256 (linux_target): Declare global.
9257 * linux-thread-db.c (thread_db_target): New.
9258 (thread_db_target::thread_db_target): New.
9259 (thread_db_ops): Delete.
9260 (the_thread_db_target): New.
9261 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9262 (thread_db_update_thread_list, thread_db_pid_to_str)
9263 (thread_db_extra_thread_info)
9264 (thread_db_thread_handle_to_thread_info)
9265 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9266 (thread_db_resume): Refactor as methods of thread_db_target.
9267 (init_thread_db_ops): Delete.
9268 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9269 * x86-linux-nat.c: Don't include "linux-nat.h".
9270 (super_post_startup_inferior): Delete.
9271 (x86_linux_nat_target::~x86_linux_nat_target): New.
9272 (x86_linux_child_post_startup_inferior)
9273 (x86_linux_read_description, x86_linux_enable_btrace)
9274 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9275 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9276 methods of x86_linux_nat_target.
9277 (x86_linux_create_target): Delete. Bits folded ...
9278 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9279 pointer.
9280 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9281 (x86_linux_nat_target): New class.
9282 (x86_linux_create_target): Delete.
9283 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9284 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9285 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9286 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9287 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9288 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9289 make extern.
9290 (x86_use_watchpoints): Delete.
9291 * x86-nat.h: Include "breakpoint.h" and "target.h".
9292 (x86_use_watchpoints): Delete.
9293 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9294 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9295 (x86_insert_watchpoint, x86_remove_watchpoint)
9296 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9297 (x86_stopped_by_hw_breakpoint): New declarations.
9298 (x86_nat_target): New template class.
9299
9300 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9301 (the_ppc_linux_nat_target): New.
9302 (ppc_linux_fetch_inferior_registers)
9303 (ppc_linux_can_use_hw_breakpoint)
9304 (ppc_linux_region_ok_for_hw_watchpoint)
9305 (ppc_linux_ranged_break_num_registers)
9306 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9307 (ppc_linux_insert_mask_watchpoint)
9308 (ppc_linux_remove_mask_watchpoint)
9309 (ppc_linux_can_accel_watchpoint_condition)
9310 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9311 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9312 (ppc_linux_watchpoint_addr_within_range)
9313 (ppc_linux_masked_watch_num_registers)
9314 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9315 (ppc_linux_read_description): Refactor as methods of
9316 ppc_linux_nat_target.
9317 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9318
9319 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9320 (procfs_target): New class.
9321 (the_procfs_target): New.
9322 (procfs_target): Delete function.
9323 (procfs_auxv_parse, procfs_attach, procfs_detach)
9324 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9325 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9326 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9327 (procfs_create_inferior, procfs_update_thread_list)
9328 (procfs_thread_alive, procfs_pid_to_str)
9329 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9330 (procfs_stopped_data_address, procfs_insert_watchpoint)
9331 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9332 (proc_find_memory_regions, procfs_info_proc)
9333 (procfs_make_note_section): Refactor as methods of procfs_target.
9334 (_initialize_procfs): Adjust.
9335 * sol-thread.c (sol_thread_target): New class.
9336 (sol_thread_ops): Now a sol_thread_target.
9337 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9338 (sol_thread_fetch_registers, sol_thread_store_registers)
9339 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9340 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9341 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9342 (init_sol_thread_ops): Delete.
9343 (_initialize_sol_thread): Adjust. Remove references to
9344 init_sol_thread_ops and complete_target_initialization.
9345
9346 * windows-nat.c (windows_nat_target): New class.
9347 (windows_fetch_inferior_registers)
9348 (windows_store_inferior_registers, windows_resume, windows_wait)
9349 (windows_attach, windows_detach, windows_pid_to_exec_file)
9350 (windows_files_info, windows_create_inferior)
9351 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9352 (windows_close, windows_pid_to_str, windows_xfer_partial)
9353 (windows_get_tib_address, windows_get_ada_task_ptid)
9354 (windows_thread_name, windows_thread_alive): Refactor as
9355 windows_nat_target methods.
9356 (do_initial_windows_stuff): Adjust.
9357 (windows_target): Delete function.
9358 (_initialize_windows_nat): Adjust.
9359
9360 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9361 (darwin_mourn_inferior, darwin_kill_inferior)
9362 (darwin_create_inferior, darwin_attach, darwin_detach)
9363 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9364 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9365 (darwin_supports_multi_process): Refactor as darwin_nat_target
9366 methods.
9367 (darwin_resume_to, darwin_files_info): Delete.
9368 (_initialize_darwin_inferior): Rename to ...
9369 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9370 * darwin-nat.h: Include "inf-child.h".
9371 (darwin_nat_target): New class.
9372 (darwin_complete_target): Delete.
9373 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9374 (darwin_target): New.
9375 (i386_darwin_fetch_inferior_registers)
9376 (i386_darwin_store_inferior_registers): Refactor as methods of
9377 darwin_nat_target.
9378 (darwin_complete_target): Delete, with ...
9379 (_initialize_i386_darwin_nat): ... bits factored out here.
9380
9381 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9382 (the_alpha_linux_nat_target): New.
9383 (alpha_linux_register_u_offset): Refactor as
9384 alpha_linux_nat_target method.
9385 (_initialize_alpha_linux_nat): Adjust.
9386 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9387 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9388 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9389 methods of linux_nat_trad_target.
9390 (linux_trad_target): Delete.
9391 * linux-nat-trad.h (linux_trad_target): Delete function.
9392 (linux_nat_trad_target): New class.
9393 * mips-linux-nat.c (mips_linux_nat_target): New class.
9394 (super_fetch_registers, super_store_registers, super_close):
9395 Delete.
9396 (the_mips_linux_nat_target): New.
9397 (mips64_linux_regsets_fetch_registers)
9398 (mips64_linux_regsets_store_registers)
9399 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9400 (mips_linux_register_u_offset, mips_linux_read_description)
9401 (mips_linux_can_use_hw_breakpoint)
9402 (mips_linux_stopped_by_watchpoint)
9403 (mips_linux_stopped_data_address)
9404 (mips_linux_region_ok_for_hw_watchpoint)
9405 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9406 (mips_linux_close): Refactor as methods of mips_linux_nat.
9407 (_initialize_mips_linux_nat): Adjust to C++ification.
9408
9409 * aix-thread.c (aix_thread_target): New class.
9410 (aix_thread_ops): Now an aix_thread_target.
9411 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9412 (aix_thread_fetch_registers, aix_thread_store_registers)
9413 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9414 (aix_thread_thread_alive, aix_thread_pid_to_str)
9415 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9416 Refactor as methods of aix_thread_target.
9417 (init_aix_thread_ops): Delete.
9418 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9419 and complete_target_initialization.
9420 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9421 (rs6000_nat_target): New class.
9422 (the_rs6000_nat_target): New.
9423 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9424 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9425 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9426 (super_create_inferior): Delete.
9427 (_initialize_rs6000_nat): Adjust to C++ification.
9428
9429 * arm-linux-nat.c (arm_linux_nat_target): New class.
9430 (the_arm_linux_nat_target): New.
9431 (arm_linux_fetch_inferior_registers)
9432 (arm_linux_store_inferior_registers, arm_linux_read_description)
9433 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9434 (arm_linux_remove_hw_breakpoint)
9435 (arm_linux_region_ok_for_hw_watchpoint)
9436 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9437 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9438 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9439 arm_linux_nat_target.
9440 (_initialize_arm_linux_nat): Adjust to C++ification.
9441
9442 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9443 (the_aarch64_linux_nat_target): New.
9444 (aarch64_linux_fetch_inferior_registers)
9445 (aarch64_linux_store_inferior_registers)
9446 (aarch64_linux_child_post_startup_inferior)
9447 (aarch64_linux_read_description)
9448 (aarch64_linux_can_use_hw_breakpoint)
9449 (aarch64_linux_insert_hw_breakpoint)
9450 (aarch64_linux_remove_hw_breakpoint)
9451 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9452 (aarch64_linux_region_ok_for_hw_watchpoint)
9453 (aarch64_linux_stopped_data_address)
9454 (aarch64_linux_stopped_by_watchpoint)
9455 (aarch64_linux_watchpoint_addr_within_range)
9456 (aarch64_linux_can_do_single_step): Refactor as methods of
9457 aarch64_linux_nat_target.
9458 (super_post_startup_inferior): Delete.
9459 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9460
9461 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9462 (the_hppa_linux_nat_target): New.
9463 (hppa_linux_fetch_inferior_registers)
9464 (hppa_linux_store_inferior_registers): Refactor as methods of
9465 hppa_linux_nat_target.
9466 (_initialize_hppa_linux_nat): Adjust to C++ification.
9467
9468 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9469 (the_ia64_linux_nat_target): New.
9470 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9471 (ia64_linux_stopped_data_address)
9472 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9473 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9474 ia64_linux_nat_target methods.
9475 (super_xfer_partial): Delete.
9476 (_initialize_ia64_linux_nat): Adjust to C++ification.
9477
9478 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9479 (the_m32r_linux_nat_target): New.
9480 (m32r_linux_fetch_inferior_registers)
9481 (m32r_linux_store_inferior_registers): Refactor as
9482 m32r_linux_nat_target methods.
9483 (_initialize_m32r_linux_nat): Adjust to C++ification.
9484
9485 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9486 (the_m68k_linux_nat_target): New.
9487 (m68k_linux_fetch_inferior_registers)
9488 (m68k_linux_store_inferior_registers): Refactor as
9489 m68k_linux_nat_target methods.
9490 (_initialize_m68k_linux_nat): Adjust to C++ification.
9491
9492 * s390-linux-nat.c (s390_linux_nat_target): New class.
9493 (the_s390_linux_nat_target): New.
9494 (s390_linux_fetch_inferior_registers)
9495 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9496 (s390_insert_watchpoint, s390_remove_watchpoint)
9497 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9498 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9499 (s390_auxv_parse, s390_read_description): Refactor as methods of
9500 s390_linux_nat_target.
9501 (_initialize_s390_nat): Adjust to C++ification.
9502
9503 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9504 (the_sparc_linux_nat_target): New.
9505 (_initialize_sparc_linux_nat): Adjust to C++ification.
9506 * sparc-nat.c (sparc_fetch_inferior_registers)
9507 (sparc_store_inferior_registers): Remove target_ops parameter.
9508 * sparc-nat.h (sparc_fetch_inferior_registers)
9509 (sparc_store_inferior_registers): Remove target_ops parameter.
9510 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9511 (the_sparc64_linux_nat_target): New.
9512 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9513
9514 * spu-linux-nat.c (spu_linux_nat_target): New class.
9515 (the_spu_linux_nat_target): New.
9516 (spu_child_post_startup_inferior, spu_child_post_attach)
9517 (spu_child_wait, spu_fetch_inferior_registers)
9518 (spu_store_inferior_registers, spu_xfer_partial)
9519 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9520 methods.
9521 (_initialize_spu_nat): Adjust to C++ification.
9522
9523 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9524 (the_tilegx_linux_nat_target): New.
9525 (fetch_inferior_registers, store_inferior_registers):
9526 Refactor as methods.
9527 (_initialize_tile_linux_nat): Adjust to C++ification.
9528
9529 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9530 (the_xtensa_linux_nat_target): New.
9531 (xtensa_linux_fetch_inferior_registers)
9532 (xtensa_linux_store_inferior_registers): Refactor as
9533 xtensa_linux_nat_target methods.
9534 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9535
9536 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9537 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9538 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9539 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9540 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9541 (fbsd_stopped_by_sw_breakpoint)
9542 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9543 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9544 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9545 (fbsd_post_startup_inferior, fbsd_post_attach)
9546 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9547 (fbsd_set_syscall_catchpoint)
9548 (super_xfer_partial, super_resume, super_wait)
9549 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9550 (fbsd_handle_debug_trap): Remove target_ops parameter.
9551 (fbsd_nat_add_target): Delete.
9552 * fbsd-nat.h: Include "inf-ptrace.h".
9553 (fbsd_nat_add_target): Delete.
9554 (USE_SIGTRAP_SIGINFO): Define.
9555 (fbsd_nat_target): New class.
9556
9557 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9558 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9559 (amd64bsd_target): Delete.
9560 * amd64-bsd-nat.h: New file.
9561 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9562 "x86-bsd-nat.h".
9563 (amd64_fbsd_nat_target): New class.
9564 (the_amd64_fbsd_nat_target): New.
9565 (amd64fbsd_read_description): Refactor as method of
9566 amd64_fbsd_nat_target.
9567 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9568 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9569 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9570 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9571 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9572 (i386bsd_target): Delete.
9573 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9574 (i386bsd_fetch_inferior_registers)
9575 (i386bsd_store_inferior_registers): Declare.
9576 (i386_bsd_nat_target): New class.
9577 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9578 (the_i386_fbsd_nat_target): New.
9579 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9580 i386_fbsd_nat_target methods.
9581 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9582 (_initialize_i386fbsd_nat): Adjust to C++ification.
9583 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9584 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9585 (_initialize_x86_bsd_nat): Adjust to C++ification.
9586 * x86-bsd-nat.h: Include "x86-nat.h".
9587 (x86bsd_target): Delete declaration.
9588 (x86bsd_nat_target): New class.
9589
9590 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9591 (the_aarch64_fbsd_nat_target): New.
9592 (aarch64_fbsd_fetch_inferior_registers)
9593 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9594 aarch64_fbsd_nat_target.
9595 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9596 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9597 (the_alpha_bsd_nat_target): New.
9598 (alphabsd_fetch_inferior_registers)
9599 (alphabsd_store_inferior_registers): Refactor as
9600 alpha_bsd_nat_target methods.
9601 (_initialize_alphabsd_nat): Refactor as methods of
9602 alpha_bsd_nat_target.
9603 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9604 (the_amd64_nbsd_nat_target): New.
9605 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9606 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9607 (the_amd64_obsd_nat_target): New.
9608 (_initialize_amd64obsd_nat): Adjust to C++ification.
9609 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9610 (the_arm_fbsd_nat_target): New.
9611 (arm_fbsd_fetch_inferior_registers)
9612 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9613 (_initialize_arm_fbsd_nat): Refactor as methods of
9614 arm_fbsd_nat_target.
9615 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9616 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9617 (the_arm_netbsd_nat_target): New.
9618 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9619 arm_netbsd_nat_target.
9620 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9621 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9622 (the_hppa_nbsd_nat_target): New.
9623 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9624 hppa_nbsd_nat_target methods.
9625 (_initialize_hppanbsd_nat): Adjust to C++ification.
9626 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9627 (the_hppa_obsd_nat_target): New.
9628 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9629 methods of hppa_obsd_nat_target.
9630 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9631 add_target.
9632 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9633 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9634 add_target.
9635 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9636 (_initialize_i386obsd_nat): Use add_target.
9637 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9638 (the_m68k_bsd_nat_target): New.
9639 (m68kbsd_fetch_inferior_registers)
9640 (m68kbsd_store_inferior_registers): Refactor as methods of
9641 m68k_bsd_nat_target.
9642 (_initialize_m68kbsd_nat): Adjust to C++ification.
9643 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9644 (the_mips_fbsd_nat_target): New.
9645 (mips_fbsd_fetch_inferior_registers)
9646 (mips_fbsd_store_inferior_registers): Refactor as methods of
9647 mips_fbsd_nat_target.
9648 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9649 add_target.
9650 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9651 (the_mips_nbsd_nat_target): New.
9652 (mipsnbsd_fetch_inferior_registers)
9653 (mipsnbsd_store_inferior_registers): Refactor as methods of
9654 mips_nbsd_nat_target.
9655 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9656 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9657 (the_mips64_obsd_nat_target): New.
9658 (mips64obsd_fetch_inferior_registers)
9659 (mips64obsd_store_inferior_registers): Refactor as methods of
9660 mips64_obsd_nat_target.
9661 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9662 add_target.
9663 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9664 nbsd_nat_target.
9665 * nbsd-nat.h: Include "inf-ptrace.h".
9666 (nbsd_nat_target): New class.
9667 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9668 (obsd_wait): Refactor as methods of obsd_nat_target.
9669 (obsd_add_target): Delete.
9670 * obsd-nat.h: Include "inf-ptrace.h".
9671 (obsd_nat_target): New class.
9672 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9673 (the_ppc_fbsd_nat_target): New.
9674 (ppcfbsd_fetch_inferior_registers)
9675 (ppcfbsd_store_inferior_registers): Refactor as methods of
9676 ppc_fbsd_nat_target.
9677 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9678 add_target.
9679 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9680 (the_ppc_nbsd_nat_target): New.
9681 (ppcnbsd_fetch_inferior_registers)
9682 (ppcnbsd_store_inferior_registers): Refactor as methods of
9683 ppc_nbsd_nat_target.
9684 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9685 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9686 (the_ppc_obsd_nat_target): New.
9687 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9688 methods of ppc_obsd_nat_target.
9689 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9690 add_target.
9691 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9692 (the_sh_nbsd_nat_target): New.
9693 (shnbsd_fetch_inferior_registers)
9694 (shnbsd_store_inferior_registers): Refactor as methods of
9695 sh_nbsd_nat_target.
9696 (_initialize_shnbsd_nat): Adjust to C++ification.
9697 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9698 (inf_ptrace_xfer_partial): Delete.
9699 (sparc_xfer_partial, sparc_target): Delete.
9700 * sparc-nat.h (sparc_fetch_inferior_registers)
9701 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9702 (sparc_target): Delete function declaration.
9703 (sparc_target): New template class.
9704 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9705 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9706 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9707 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9708 add_target.
9709 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9710 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9711 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9712 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9713 add_target.
9714 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9715 (the_vax_bsd_nat_target): New.
9716 (vaxbsd_fetch_inferior_registers)
9717 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9718 methods.
9719 (_initialize_vaxbsd_nat): Adjust to C++ification.
9720
9721 * bsd-kvm.c (bsd_kvm_target): New class.
9722 (bsd_kvm_ops): Now a bsd_kvm_target.
9723 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9724 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9725 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9726 bsd_kvm_target.
9727 (bsd_kvm_return_one): Delete.
9728 (bsd_kvm_add_target): Adjust to C++ification.
9729
9730 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9731 (nto_procfs_target_procfs): New classes.
9732 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9733 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9734 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9735 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9736 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9737 (procfs_remove_hw_breakpoint, procfs_resume)
9738 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9739 (procfs_kill_inferior, procfs_store_registers)
9740 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9741 as methods of nto_procfs_target.
9742 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9743 (nto_native_ops): Delete.
9744 (procfs_open, procfs_native_open): Delete.
9745 (nto_native_ops): Now an nto_procfs_target_native.
9746 (init_procfs_targets): Adjust to C++ification.
9747 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9748 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9749 Refactor as methods of nto_procfs_target.
9750
9751 * go32-nat.c (go32_nat_target): New class.
9752 (the_go32_nat_target): New.
9753 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9754 (go32_store_registers, go32_xfer_partial, go32_files_info)
9755 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9756 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9757 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9758 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9759 (go32_target): Delete.
9760 (_initialize_go32_nat): Adjust to C++ification.
9761
9762 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9763 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9764 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9765 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9766 gnu_nat_target.
9767 (gnu_target): Delete.
9768 * gnu-nat.h (gnu_target): Delete.
9769 (gnu_nat_target): New class.
9770 * i386-gnu-nat.c (gnu_base_target): New.
9771 (i386_gnu_nat_target): New class.
9772 (the_i386_gnu_nat_target): New.
9773 (_initialize_i386gnu_nat): Adjust to C++ification.
9774
9775 2018-05-02 Pedro Alves <palves@redhat.com>
9776
9777 * bfd-target.c (target_bfd_xclose): Rename to ...
9778 (target_bfd_close): ... this.
9779 (target_bfd_reopen): Adjust.
9780 * target.c (target_close): Remove references to to_xclose.
9781 * target.h (target_ops::to_xclose): Delete.
9782 (target_ops::to_close): Update comments.
9783
9784 2018-05-02 Pedro Alves <palves@redhat.com>
9785
9786 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9787 "linux-nat.h".
9788 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9789 * inf-ptrace.c (inf_ptrace_register_u_offset)
9790 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9791 (inf_ptrace_store_register, inf_ptrace_store_registers)
9792 (inf_ptrace_trad_target): Move to ...
9793 * linux-nat-trad.c: ... this new file.
9794 * linux-nat-trad.h: New file.
9795 * linux-nat.c (linux_target_install_ops): Make extern.
9796 (linux_trad_target): Delete.
9797 * linux-nat.h (linux_trad_target): Delete declaration.
9798 (linux_target_install_ops): Declare.
9799 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9800 "linux-nat.h".
9801
9802 2018-05-02 Pedro Alves <palves@redhat.com>
9803
9804 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9805 procfs_target/add_target here.
9806 * procfs.c (procfs_target): Make static.
9807 (_initialize_procfs): Call add_target here.
9808 * procfs.h (struct target_ops): Remove forward declaration.
9809 (procfs_target): Remove declaration.
9810 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9811
9812 2018-05-02 Pedro Alves <palves@redhat.com>
9813
9814 * procfs.c (procfs_stopped_by_watchpoint)
9815 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9816 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9817 Forward declare.
9818 (procfs_use_watchpoints): Delete, move contents...
9819 (procfs_target): ... here.
9820 * procfs.h (procfs_use_watchpoints): Delete declaration.
9821 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9822 procfs_use_watchpoints.
9823 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9824 procfs_use_watchpoints.
9825
9826 2018-05-02 Tom Tromey <tom@tromey.com>
9827
9828 PR python/20084:
9829 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9830 and var_zuinteger_unlimited.
9831 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9832 and PARAM_ZUINTEGER_UNLIMITED.
9833 (set_parameter_value): Handle var_zuinteger and
9834 var_zuinteger_unlimited.
9835 (add_setshow_generic): Likewise.
9836 (parmpy_init): Likewise.
9837
9838 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9839
9840 PR rust/23124
9841 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9842 pointer is not null before dereferencing it.
9843
9844 2018-04-30 Tom Tromey <tom@tromey.com>
9845
9846 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9847 is_mi_like_p.
9848
9849 2018-04-30 Tom Tromey <tom@tromey.com>
9850
9851 * breakpoint.c (mention): Remove use of is_mi_like_p.
9852 (print_mention_ranged_breakpoint): Likewise.
9853 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9854 of is_mi_like_p.
9855
9856 2018-04-30 Tom Tromey <tom@tromey.com>
9857
9858 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9859
9860 2018-04-30 Tom Tromey <tom@tromey.com>
9861
9862 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9863 (info_spu_event_command): Remove some uses of is_mi_like_p.
9864
9865 2018-04-30 Tom Tromey <tom@tromey.com>
9866
9867 * python/py-framefilter.c (py_print_single_arg)
9868 (enumerate_locals, py_print_args, py_print_frame): Remove some
9869 uses of is_mi_like_p.
9870
9871 2018-04-30 Tom Tromey <tom@tromey.com>
9872
9873 * ui-out.c: Update.
9874 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9875 * ui-out.h (ui_out::is_mi_like_p): Now const.
9876 (ui_out::do_is_mi_like_p): Now const.
9877 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9878
9879 2018-04-30 Tom Tromey <tom@tromey.com>
9880
9881 * varobj.c (varobj_set_visualizer): Use new_reference.
9882 * python/python.c (gdbpy_decode_line): Use new_reference.
9883 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9884 new_reference.
9885
9886 2018-04-30 Tom Tromey <tom@tromey.com>
9887
9888 * varobj.c (install_new_value): Use new_reference.
9889 * value.h (value_incref): Return void. Swap intro comment with
9890 value_decref.
9891 * value.c (set_value_parent): Use new_reference.
9892 (value_incref): Return void. Update intro comment.
9893 (release_value): Use new_reference.
9894 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9895
9896 2018-04-30 Tom Tromey <tom@tromey.com>
9897
9898 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9899 * gdb_bfd.h (new_bfd_ref): Remove.
9900 (gdb_bfd_open): Update comment.
9901 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9902 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9903 (gdb_bfd_fdopenr): Use new_reference.
9904 * exec.c (exec_file_attach): Use new_reference.
9905
9906 2018-04-30 Tom Tromey <tom@tromey.com>
9907
9908 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9909 method.
9910
9911 2018-04-30 Tom Tromey <tom@tromey.com>
9912
9913 * jit.c (jit_read_code_entry): Use type_align.
9914 * i386-tdep.c (i386_gdbarch_init): Don't call
9915 set_gdbarch_long_long_align_bit.
9916 * gdbarch.sh: Remove long_long_align_bit.
9917 * gdbarch.c, gdbarch.h: Rebuild.
9918 * arc-tdep.c (arc_type_align): New function.
9919 (arc_gdbarch_init): Use arc_type_align. Don't call
9920 set_gdbarch_long_long_align_bit.
9921
9922 2018-04-30 Tom Tromey <tom@tromey.com>
9923
9924 * rust-lang.c (rust_type_alignment): Remove.
9925 (rust_composite_type): Use type_align.
9926
9927 2018-04-30 Tom Tromey <tom@tromey.com>
9928
9929 * NEWS: Mention Type.align.
9930 * python/py-type.c (typy_get_alignof): New function.
9931 (type_object_getset): Add "alignof".
9932
9933 2018-04-30 Tom Tromey <tom@tromey.com>
9934
9935 PR exp/17095:
9936 * NEWS: Update.
9937 * std-operator.def (UNOP_ALIGNOF): New operator.
9938 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9939 New.
9940 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9941 * c-lang.c (c_op_print_tab): Add alignof.
9942 * c-exp.y (ALIGNOF): New token.
9943 (exp): Add "ALIGNOF" production.
9944 (ident_tokens): Add _Alignof and alignof.
9945
9946 2018-04-30 Tom Tromey <tom@tromey.com>
9947
9948 * i386-tdep.c (i386_type_align): New function.
9949 (i386_gdbarch_init): Update.
9950 * gdbarch.sh (type_align): New method.
9951 * gdbarch.c, gdbarch.h: Rebuild.
9952 * arch-utils.h (default_type_align): Declare.
9953 * arch-utils.c (default_type_align): New function.
9954 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9955 (struct type) <align_log2>: New field.
9956 <instance_flags>: Now a bitfield.
9957 (TYPE_RAW_ALIGN): New macro.
9958 (type_align, type_raw_align, set_type_align): Declare.
9959 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9960 functions.
9961 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9962 (get_alignment, maybe_set_alignment): New functions.
9963 (read_structure_type, read_enumeration_type, read_array_type)
9964 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9965 (read_subrange_type, read_base_type): Set type alignment.
9966
9967 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9968
9969 * dwarf2read.c (read_index_from_section): Use bool.
9970
9971 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9972
9973 PR gdb/22950
9974 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9975 with #ifdef.
9976
9977 2018-04-29 John Reiser <jreiser@BitWagon.com>
9978
9979 PR build/22873
9980 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9981 last step, and do it atomically.
9982
9983 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9984
9985 * compile/compile-c-types.c (convert_int, convert_float):
9986 Update for C FE v1.
9987
9988 2018-04-27 Tom Tromey <tom@tromey.com>
9989
9990 PR rust/22545:
9991 * rust-lang.c (rust_inclusive_range_type_p): New function.
9992 (rust_range): Handle inclusive ranges.
9993 (rust_compute_range): Likewise.
9994 * rust-exp.y (struct rust_op) <inclusive>: New field.
9995 (DOTDOTEQ): New constant.
9996 (range_expr): Add "..=" productions.
9997 (operator_tokens): Add "..=" token.
9998 (ast_range): Add "inclusive" parameter.
9999 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10000 ranges.
10001 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10002 bounds values.
10003 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10004 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10005 Update comments.
10006 * expprint.c (print_subexp_standard): Handle new bounds values.
10007 (dump_subexp_body_standard): Likewise.
10008
10009 2018-04-27 Tom Tromey <tom@tromey.com>
10010
10011 * configure: Rebuild.
10012 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10013 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10014 "OVERRIDE".
10015 (class symbol_needs_eval_context): Likewise.
10016 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10017 (mock_mapped_index::symbol_name_at): Use "override". Remove
10018 "virtual".
10019 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10020 "override".
10021 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10022 * aarch64-tdep.c (instruction_reader::read): Use "override".
10023 (instruction_reader_test::read): Likewise.
10024 * arm-tdep.c (instruction_reader::read): Use "override".
10025 (instruction_reader_thumb::read): Likewise.
10026
10027 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10028
10029 PR remote/9665
10030 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10031 instead of remote_send.
10032 (remote_send): Remove.
10033
10034 2018-04-26 Pedro Alves <palves@redhat.com>
10035
10036 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10037 find_function_start_sal instead of find_pc_line.
10038
10039 2018-04-26 Pedro Alves <palves@redhat.com>
10040
10041 * breakpoint.c (set_breakpoint_location_function): Handle
10042 mst_data_gnu_ifunc.
10043 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10044 * elfread.c (elf_symtab_read): Give data symbols with
10045 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10046 (elf_rel_plt_read): Update comment.
10047 * linespec.c (convert_linespec_to_sals): Handle
10048 mst_data_gnu_ifunc.
10049 (minsym_found): Handle mst_data_gnu_ifunc.
10050 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10051 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10052 * parse.c (find_minsym_type_and_address): Handle
10053 mst_data_gnu_ifunc.
10054 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10055 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10056 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10057 comment.
10058 <mst_data_gnu_ifunc>: New enumerator.
10059
10060 2018-04-26 Pedro Alves <palves@redhat.com>
10061
10062 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10063 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10064 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10065 Handle it.
10066 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10067 (lookup_minimal_symbol_by_pc): Adjust.
10068 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10069 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10070 * minsyms.h (lookup_msym_prefer): New enum.
10071 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10072 parameter by a lookup_msym_prefer parameter.
10073
10074 2018-04-26 Pedro Alves <palves@redhat.com>
10075
10076 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10077 ends in "@plt" instead of looking at the symbol's section.
10078
10079 2018-04-26 Pedro Alves <palves@redhat.com>
10080
10081 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10082 all references.
10083 (find_pc_partial_function_gnu_ifunc): Rename to ...
10084 (find_pc_partial_function): ... this, and remove references to
10085 'is_gnu_ifunc_p'.
10086 (find_pc_partial_function): Delete old implementation.
10087 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10088
10089 2018-04-26 Pedro Alves <palves@redhat.com>
10090
10091 * linespec.c (struct bound_minimal_symbol_search_key): New.
10092 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10093 skip first line if we found a GNU ifunc minimal symbol by name.
10094 (compare_msymbols): Change parameters to work with a destructured
10095 lhs minsym.
10096 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10097 functions.
10098
10099 2018-04-26 Pedro Alves <palves@redhat.com>
10100
10101 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10102 ifunc targets here. Instead, if we have an ifunc minsym, use its
10103 address/name.
10104 (add_location_to_breakpoint): Store the minsym and the objfile in
10105 the breakpoint location.
10106 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10107 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10108 Record the minsym in the sal.
10109 * symtab.h (symtab_and_line) <msymbol>: New field.
10110
10111 2018-04-26 Pedro Alves <palves@redhat.com>
10112
10113 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10114 unless we actually resolved the ifunc.
10115
10116 2018-04-26 Pedro Alves <palves@redhat.com>
10117
10118 * c-exp.y (variable production): Prefer ifunc minsyms over
10119 regular function symbols.
10120 * symtab.c (find_gnu_ifunc): New function.
10121 * minsyms.h (lookup_msym_prefer): New enum.
10122 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10123 parameter by a lookup_msym_prefer parameter.
10124 * symtab.h (find_gnu_ifunc): New declaration.
10125
10126 2018-04-26 Pedro Alves <palves@redhat.com>
10127
10128 * blockframe.c (find_gnu_ifunc_target_type): New function.
10129 (find_function_type): New.
10130 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10131 return a value with a memory address.
10132 (eval_call): For calls to GNU ifunc functions, try to find the
10133 type of the target function from the type that the resolver
10134 returns.
10135 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10136 symbols.
10137 * infcall.c (find_function_return_type): Delete.
10138 (find_function_addr): Add 'function_type' parameter. For calls to
10139 GNU ifunc functions, try to find the type of the target function
10140 from the type that the resolver returns, and return it via
10141 FUNCTION_TYPE.
10142 (call_function_by_hand_dummy): Adjust to use the function type
10143 returned by find_function_addr.
10144 (find_function_addr): Add 'function_type' parameter and move
10145 description here.
10146 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10147 declarations.
10148
10149 2018-04-26 Pedro Alves <palves@redhat.com>
10150
10151 * c-exp.y (variable production): Skip finding an alias for ifunc
10152 symbols.
10153
10154 2018-04-26 Pedro Alves <palves@redhat.com>
10155
10156 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10157
10158 2018-04-25 Pedro Alves <palves@redhat.com>
10159
10160 * infcmd.c (kill_command): Print the pid as string, not the whole
10161 thread's ptid. Add comment. s/has been killed/killed/ in output
10162 message.
10163 * remote.c (remote_detach_1): Print the pid as string, not the
10164 whole thread's ptid.
10165
10166 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10167 Sergio Durigan Junior <sergiodj@redhat.com>
10168 Pedro Alves <palves@redhat.com>
10169
10170 * infcmd.c (kill_command): Print message when inferior has
10171 been killed.
10172 * inferior.c (print_inferior_events): Remove 'static'. Set as
10173 '1'.
10174 (add_inferior): Improve message printed when
10175 'print_inferior_events' is on.
10176 (exit_inferior): Remove message printed when
10177 'print_inferior_events' is on.
10178 (detach_inferior): Improve message printed when
10179 'print_inferior_events' is on.
10180 (initialize_inferiors): Use 'add_inferior_silent' to set
10181 'current_inferior_'.
10182 * inferior.h (print_inferior_events): Declare here as
10183 'extern'.
10184 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10185 '[Detaching...]' messages when 'print_inferior_events' is on.
10186 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10187 as prefix/suffix for messages. Remove periods. Fix erroneous
10188 'Detaching after fork from child...', replace it by '... from
10189 parent...'.
10190 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10191 prefix/suffix when printing 'Detaching...' messages. Print
10192 them when 'print_inferior_events' is on.
10193 * remote.c (remote_detach_1): Print message when detaching
10194 from inferior and '!is_fork_parent'.
10195
10196 2018-04-24 Tom Tromey <tom@tromey.com>
10197
10198 * cli-out.h: Reindent.
10199
10200 2018-04-24 Tom Tromey <tom@tromey.com>
10201
10202 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10203 (cli_ui_out::do_field_string): Use fputs_filtered.
10204 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10205
10206 2018-04-23 Tom Tromey <tom@tromey.com>
10207
10208 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10209 gdb::unique_xmalloc_ptr.
10210
10211 2018-04-23 Tom Tromey <tom@tromey.com>
10212
10213 * configure: Rebuild.
10214
10215 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10216
10217 PR gdb/23095
10218 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10219 prepare_for_testing. Set normal_bp to r_debug_state if target
10220 is bsd.
10221
10222 2018-04-21 Pedro Alves <palves@redhat.com>
10223 Rajendra SY <rajendra.sy@gmail.com>
10224
10225 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10226 * remote.c (extended_remote_attach): In all-stop mode, mark the
10227 thread as executing.
10228
10229 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10230
10231 * thread.c (thread_apply_all_command): Fix comment.
10232 (thread_command): Fix comment.
10233
10234 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10235
10236 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10237 parameter.
10238 * features/aarch64-core.c (create_feature_aarch64_core):
10239 Regenerate.
10240 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10241 Likewise.
10242 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10243 Likewise.
10244 * features/i386/32bit-avx512.c
10245 (create_feature_i386_32bit_avx512): Likewise.
10246 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10247 Likewise.
10248 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10249 Likewise.
10250 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10251 Likewise.
10252 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10253 Likewise.
10254 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10255 Likewise.
10256 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10257 Likewise.
10258 * features/i386/64bit-avx512.c
10259 (create_feature_i386_64bit_avx512): Likewise.
10260 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10261 Likewise.
10262 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10263 Likewise.
10264 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10265 Likewise.
10266 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10267 Likewise.
10268 * features/i386/64bit-segments.c
10269 (create_feature_i386_64bit_segments): Likewise.
10270 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10271 Likewise.
10272 * features/i386/x32-core.c
10273 (create_feature_i386_x32_core): Likewise.
10274 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10275 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10276 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10277 * target-descriptions.c: In generated code, don't pass xml
10278 filename.
10279
10280 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10281
10282 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10283 (print_xml_feature::visit_post): Likewise.
10284 (print_xml_feature::visit): Likewise.
10285 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10286 (print_xml_feature): Add new class.
10287 * regformats/regdat.sh: Null xmltarget on feature targets.
10288 * target-descriptions.c (struct target_desc): Add xmltarget.
10289 (maintenance_check_tdesc_xml_convert): Add unittest function.
10290 (tdesc_get_features_xml): Add function to get xml.
10291 (maintenance_check_xml_descriptions): Test xml generation.
10292 * xml-tdesc.c (string_read_description_xml): Add function.
10293 * xml-tdesc.h (string_read_description_xml): Add declaration.
10294
10295 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10296
10297 * features/Makefile: Add feature marker to targets with new style
10298 target descriptions.
10299 * regformats/aarch64.dat: Regenerate.
10300 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10301 * regformats/i386/amd64-avx-linux.dat: Likewise.
10302 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10303 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10304 * regformats/i386/amd64-linux.dat: Likewise.
10305 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10306 * regformats/i386/amd64.dat: Likewise.
10307 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10308 * regformats/i386/i386-avx-linux.dat: Likewise.
10309 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10310 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10311 * regformats/i386/i386-linux.dat: Likewise.
10312 * regformats/i386/i386-mmx-linux.dat: Likewise.
10313 * regformats/i386/i386-mpx-linux.dat: Likewise.
10314 * regformats/i386/i386.dat: Likewise.
10315 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10316 * regformats/i386/x32-avx-linux.dat: Likewise.
10317 * regformats/i386/x32-linux.dat: Likewise.
10318 * regformats/tic6x-c62x-linux.dat: Likewise.
10319 * regformats/tic6x-c64x-linux.dat: Likewise.
10320 * regformats/tic6x-c64xp-linux.dat: Likewise.
10321 * regformats/regdat.sh: Parse feature marker.
10322
10323 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10324
10325 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10326 (tdesc_osabi_name): Likewise.
10327 * target-descriptions.c (tdesc_architecture_name): Add new
10328 function.
10329 (tdesc_osabi_name): Likewise.
10330
10331 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10332
10333 * common/tdesc.c (tdesc_predefined_type): Move to here.
10334 (tdesc_named_type): Likewise.
10335 (tdesc_create_vector): Likewise.
10336 (tdesc_create_struct): Likewise.
10337 (tdesc_set_struct_size): Likewise.
10338 (tdesc_create_union): Likewise.
10339 (tdesc_create_flags): Likewise.
10340 (tdesc_create_enum): Likewise.
10341 (tdesc_add_field): Likewise.
10342 (tdesc_add_typed_bitfield): Likewise.
10343 (tdesc_add_bitfield): Likewise.
10344 (tdesc_add_flag): Likewise.
10345 (tdesc_add_enum_value): Likewise.
10346 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10347 (struct tdesc_type_vector): Likewise.
10348 (struct tdesc_type_field): Likewise.
10349 (struct tdesc_type_with_fields): Likewise.
10350 (tdesc_create_enum): Add declaration.
10351 (tdesc_add_typed_bitfield): Likewise.
10352 (tdesc_add_enum_value): Likewise.
10353 * target-descriptions.c (tdesc_type_field): Move from here.
10354 (tdesc_type_builtin): Likewise.
10355 (tdesc_type_vector): Likewise.
10356 (tdesc_type_with_fields): Likewise.
10357 (tdesc_predefined_types): Likewise.
10358 (tdesc_named_type): Likewise.
10359 (tdesc_create_vector): Likewise.
10360 (tdesc_create_struct): Likewise.
10361 (tdesc_set_struct_size): Likewise.
10362 (tdesc_create_union): Likewise.
10363 (tdesc_create_flags): Likewise.
10364 (tdesc_create_enum): Likewise.
10365 (tdesc_add_field): Likewise.
10366 (tdesc_add_typed_bitfield): Likewise.
10367 (tdesc_add_bitfield): Likewise.
10368 (tdesc_add_flag): Likewise.
10369 (tdesc_add_enum_value): Likewise.
10370 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10371 (tdesc_add_typed_bitfield): Likewise.
10372 (tdesc_add_enum_value): Likewise.
10373
10374 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10375
10376 * common/tdesc.c (tdesc_feature::accept): Move to here.
10377 (tdesc_feature::operator==): Likewise.
10378 (tdesc_create_reg): Likewise.
10379 * common/tdesc.h (tdesc_type_kind): Likewise.
10380 (struct tdesc_type): Likewise.
10381 (struct tdesc_feature): Likewise.
10382 * regformats/regdat.sh: Create a feature.
10383 * target-descriptions.c (tdesc_type_kind): Move from here.
10384 (tdesc_type): Likewise.
10385 (tdesc_type_up): Likewise.
10386 (tdesc_feature): Likewise.
10387 (tdesc_create_reg): Likewise.
10388
10389 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10390
10391 * Makefile.in: Add arch/tdesc.c
10392 * common/tdesc.c: New file.
10393 * common/tdesc.h (tdesc_element_visitor): Move to here.
10394 (tdesc_element): Likewise.
10395 (tdesc_reg): Likewise.
10396 (tdesc_reg_up): Likewise.
10397 * regformats/regdef.h (reg): Add offset to constructors.
10398 * target-descriptions.c (tdesc_element_visitor): Move from here.
10399 (tdesc_element): Likewise.
10400 (tdesc_reg): Likewise.
10401 (tdesc_reg_up): Likewise.
10402
10403 2018-04-17 Tom Tromey <tom@tromey.com>
10404
10405 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10406 discriminant field.
10407
10408 2018-04-17 Tom Tromey <tom@tromey.com>
10409
10410 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10411
10412 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10413
10414 * symtab.c (print_symbol_info): Skip printing filename and line
10415 number when `last' is NULL.
10416 (symtab_symbol_info): Use empty string instead of NULL for first
10417 invocation of print_symbol_info.
10418 (rbreak_command): Pass NULL to `last' parameter of
10419 print_symbol_info.
10420
10421 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10422
10423 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10424 instead of nullptr.
10425
10426 2018-04-16 Pedro Alves <palves@redhat.com>
10427
10428 * MAINTAINERS (sh): Remove.
10429 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10430 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10431 (ALLDEPFILES): Remove sh64-tdep.c.
10432 * NEWS: Mentions that support for SH-5/SH64 is removed.
10433 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10434 (sh*-*-openbsd*): Ditto.
10435 (sh64-*-elf*): Remove.
10436 (sh*): Remove.
10437 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10438 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10439 * sh-tdep.c: No longer include "sh64-tdep.h".
10440 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10441 * sh64-tdep.c, sh64-tdep.h: Remove files.
10442
10443 2018-04-16 Pedro Alves <palves@redhat.com>
10444
10445 * MAINTAINERS: Remove m88k.
10446 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10447 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10448 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10449 * NEWS: Mention that support for m88k was removed.
10450 * configure.host (m88*-*-*): Remove support.
10451 * configure.nat (m88k-*-*): Remove support.
10452 * configure.tgt (m88*-*-openbsd*): Remove.
10453 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10454
10455 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10456
10457 * configure.tgt (x86_tobjs): New variable.
10458 (amd64_tobjs, i386_tobjs): Use it.
10459
10460 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10461
10462 * symtab.c (print_symbol_info): Precede the symbol definition by
10463 the line number when available.
10464 * NEWS: Advertise this enhancement.
10465
10466 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10467
10468 * NEWS (New options): announce set/show record btrace cpu.
10469 * btrace.c: Include record-btrace.h.
10470 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10471 the vendor is unknown.
10472 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10473 Maybe overwrite the btrace configuration's cpu.
10474 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10475 (btrace_fetch): Add cpu parameter. Update callers.
10476 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10477 Maybe overwrite the btrace configuration's cpu. Skip enabling
10478 errata workarounds if the vendor is unknown.
10479 * python/py-record-btrace.c: Include record-btrace.h.
10480 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10481 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10482 * record-btrace.c (record_btrace_cpu_state_kind): New.
10483 (record_btrace_cpu): New.
10484 (set_record_btrace_cpu_cmdlist): New.
10485 (record_btrace_get_cpu): New.
10486 (require_btrace_thread, record_btrace_info)
10487 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10488 (cmd_set_record_btrace_cpu_none): New.
10489 (cmd_set_record_btrace_cpu_auto): New.
10490 (cmd_set_record_btrace_cpu): New.
10491 (cmd_show_record_btrace_cpu): New.
10492 (_initialize_record_btrace): Initialize set/show record btrace cpu
10493 commands.
10494 * record-btrace.h (record_btrace_get_cpu): New.
10495
10496 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10497
10498 * record.c (set_record_command): Fix typo in message.
10499
10500 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10501
10502 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10503
10504 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10505
10506 * infrun.c (process_event_stop_test): Call
10507 gdbarch_in_indirect_branch_thunk.
10508 * gdbarch.sh (in_indirect_branch_thunk): New.
10509 * gdbarch.c: Regenerated.
10510 * gdbarch.h: Regenerated.
10511 * x86-tdep.h: New.
10512 * x86-tdep.c: New.
10513 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10514 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10515 (ALLDEPFILES): Add x86-tdep.c.
10516 * arch-utils.h (default_in_indirect_branch_thunk): New.
10517 * arch-utils.c (default_in_indirect_branch_thunk): New.
10518 * i386-tdep: Include x86-tdep.h.
10519 (i386_in_indirect_branch_thunk): New.
10520 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10521 function.
10522 * amd64-tdep: Include x86-tdep.h.
10523 (amd64_in_indirect_branch_thunk): New.
10524 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10525
10526 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10527
10528 PR gdb/23053
10529 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10530 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10531 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10532 regression.
10533
10534 2018-04-12 Tom Tromey <tom@tromey.com>
10535
10536 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10537 (rust_evaluate_subexp): Likewise.
10538
10539 2018-04-12 Pedro Alves <palves@redhat.com>
10540
10541 * procfs.c (procfs_detach): Make forward declaration's prototype
10542 match definition's protototype.
10543 (proc_get_LDT_entry): Remove stale do_cleanups call.
10544
10545 2018-04-12 Pedro Alves <palves@redhat.com>
10546
10547 * target.h (target_ops::to_has_exited): Delete.
10548 (target_has_exited): Delete.
10549 * target-delegates.c: Regenerate.
10550
10551 2018-04-11 Pedro Alves <palves@redhat.com>
10552
10553 * target.c (fileio_fh_t::t): Add comment.
10554 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10555 (target_fileio_close): Handle a NULL target.
10556 (invalidate_fileio_fh): New.
10557 (target_close): Call it.
10558 * remote.c (remote_hostio_send_command): No longer check whether
10559 remote_desc is open.
10560
10561 2018-04-11 Pedro Alves <palves@redhat.com>
10562
10563 * target.c (fileio_fh_t): Make it a named struct instead of a
10564 typedef.
10565 (fileio_fh_t::is_closed): New method.
10566 (DEF_VEC_O (fileio_fh_t)): Remove.
10567 (fileio_fhandles): Now a std::vector.
10568 (is_closed_fileio_fh): Delete.
10569 (acquire_fileio_fd): Adjust. Rename parameters.
10570 (release_fileio_fd): Adjust.
10571 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10572 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10573 (target_fileio_close): Adjust.
10574
10575 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10576
10577 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10578 index.
10579
10580 2018-04-10 Pedro Alves <palves@redhat.com>
10581
10582 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10583 (scoped_finish_thread_state): New class.
10584 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10585 cleanup.
10586 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10587 (fetch_inferior_event, normal_stop): Likewise.
10588 * thread.c (finish_thread_state_cleanup): Delete.
10589
10590 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10591 Pedro Alves <palves@redhat.com>
10592
10593 * value.c: Include "selftest.h" and "common/array-view.h".
10594 (struct range) <operator ==>: New.
10595 (test_ranges_contain): New.
10596 (check_ranges_vector): New.
10597 (test_insert_into_bit_range_vector): New.
10598 (_initialize_values): Register selftests.
10599 * common/array-view.h (operator==, operator!=): New.
10600
10601 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10602
10603 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10604 an iterator.
10605 * inline-frame.c: Include <algorithm>.
10606 (struct inline_state): Add constructor.
10607 (inline_state_s): Remove.
10608 (DEF_VEC_O(inline_state_s)): Remove.
10609 (inline_states): Change type to std::vector.
10610 (find_inline_frame_state): Adjust to std::vector.
10611 (allocate_inline_frame_state): Remove.
10612 (clear_inline_frame_state): Adjust to std::vector.
10613 (skip_inline_frames): Adjust to std::vector.
10614
10615 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10616
10617 * tracepoint.h (struct trace_state_variable): Add constructor.
10618 <name>: Change type to std::string.
10619 * tracepoint.c (tsv_s): Remove.
10620 (DEF_VEC_O(tsv_s)): Remove.
10621 (tvariables): Change to std::vector.
10622 (create_trace_state_variable): Adjust to std::vector.
10623 (find_trace_state_variable): Likewise.
10624 (find_trace_state_variable_by_number): Likewise.
10625 (delete_trace_state_variable): Likewise.
10626 (trace_variable_command): Adjust to std::string.
10627 (delete_trace_variable_command): Likewise.
10628 (tvariables_info_1): Adjust to std::vector.
10629 (save_trace_state_variables): Likewise.
10630 (start_tracing): Likewise.
10631 (merge_uploaded_trace_state_variables): Adjust to std::vector
10632 and std::string.
10633 * target.h (struct target_ops)
10634 <to_download_trace_state_variable>: Pass reference to
10635 trace_state_variable.
10636 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10637 * target-delegates.c: Re-generate.
10638 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10639 (mi_tsv_deleted): Likewise.
10640 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10641 * remote.c (remote_download_trace_state_variable): Change
10642 pointer to reference and adjust.
10643 * make-target-delegates (parse_argtypes): Handle references.
10644 (write_function_header): Likewise.
10645 (munge_type): Likewise.
10646
10647 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10648
10649 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10650 string_view-selftests.c.
10651 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10652 testsuite.
10653 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10654 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10655 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10656 * unittests/basic_string_view/element_access/char/1.cc:
10657 Likewise.
10658 * unittests/basic_string_view/element_access/char/empty.cc:
10659 Likewise.
10660 * unittests/basic_string_view/element_access/char/front_back.cc:
10661 Likewise.
10662 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10663 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10664 Likewise.
10665 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10666 Likewise.
10667 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10668 Likewise.
10669 * unittests/basic_string_view/operations/compare/char/1.cc:
10670 Likewise.
10671 * unittests/basic_string_view/operations/compare/char/13650.cc:
10672 Likewise.
10673 * unittests/basic_string_view/operations/copy/char/1.cc:
10674 Likewise.
10675 * unittests/basic_string_view/operations/data/char/1.cc:
10676 Likewise.
10677 * unittests/basic_string_view/operations/find/char/1.cc:
10678 Likewise.
10679 * unittests/basic_string_view/operations/find/char/2.cc:
10680 Likewise.
10681 * unittests/basic_string_view/operations/find/char/3.cc:
10682 Likewise.
10683 * unittests/basic_string_view/operations/find/char/4.cc:
10684 Likewise.
10685 * unittests/basic_string_view/operations/rfind/char/1.cc:
10686 Likewise.
10687 * unittests/basic_string_view/operations/rfind/char/2.cc:
10688 Likewise.
10689 * unittests/basic_string_view/operations/rfind/char/3.cc:
10690 Likewise.
10691 * unittests/basic_string_view/operations/substr/char/1.cc:
10692 Likewise.
10693 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10694 * unittests/string_view-selftests.c: New file.
10695
10696 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10697
10698 * unittests/basic_string_view/capacity/1.cc: New file.
10699 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10700 * unittests/basic_string_view/cons/char/1.cc: New file.
10701 * unittests/basic_string_view/cons/char/2.cc: New file.
10702 * unittests/basic_string_view/cons/char/3.cc: New file.
10703 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10704 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10705 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10706 * unittests/basic_string_view/element_access/char/1.cc: New file.
10707 * unittests/basic_string_view/element_access/char/2.cc: New file.
10708 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10709 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10710 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10711 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10712 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10713 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10714 * unittests/basic_string_view/include.cc: New file.
10715 * unittests/basic_string_view/inserters/char/1.cc: New file.
10716 * unittests/basic_string_view/inserters/char/2.cc: New file.
10717 * unittests/basic_string_view/inserters/char/3.cc: New file.
10718 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10719 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10720 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10721 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10722 * unittests/basic_string_view/literals/types.cc: New file.
10723 * unittests/basic_string_view/literals/values.cc: New file.
10724 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10725 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10726 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10727 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10728 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10729 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10730 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10731 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10732 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10733 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10734 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10735 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10736 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10737 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10738 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10739 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10740 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10741 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10742 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10743 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10744 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10745 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10746 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10747 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10748 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10749 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10750 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10751 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10752 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10753 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10754 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10755 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10756 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10757 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10758 * unittests/basic_string_view/operators/char/2.cc: New file.
10759 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10760 * unittests/basic_string_view/range_access/char/1.cc: New file.
10761 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10762 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10763 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10764 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10765 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10766 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10767 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10768 * unittests/basic_string_view/typedefs.cc: New file.
10769 * unittests/basic_string_view/types/1.cc: New file.
10770
10771 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10772
10773 * common/gdb_string_view.h: Remove libstdc++ implementation
10774 details, adjust to gdb reality.
10775 * common/gdb_string_view.tcc: Likewise.
10776 * cli/cli-script.c (struct string_view): Remove.
10777 (user_args) <m_args>: Change element type to gdb::string_view.
10778 (user_args::insert_args): Adjust.
10779
10780 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10781
10782 * common/gdb_string_view.h: New file.
10783 * common/gdb_string_view.tcc: New file.
10784
10785 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10786
10787 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10788 * configure: Re-generate.
10789
10790 2018-04-09 Pedro Alves <palves@redhat.com>
10791
10792 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10793 (set_target_gdbarch): Call
10794 gdb::observers::architecture_changed.notify instead of
10795 observer_notify_architecture_changed.
10796
10797 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10798
10799 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10800 (do_restore_current_traceframe_cleanup): Remove.
10801 (restore_current_traceframe_cleanup_dtor): Remove.
10802 (make_cleanup_restore_current_traceframe): Remove.
10803 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10804 New.
10805 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10806 * infrun.c (fetch_inferior_event): Use
10807 scoped_restore_current_traceframe.
10808
10809 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10810
10811 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10812 Remove.
10813 <n_allocated_type_units>: Remove.
10814 <all_type_units>: Change to std::vector.
10815 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10816 to std::vector change.
10817 (dwarf2_per_objfile::get_cutu): Likewise.
10818 (dwarf2_per_objfile::get_tu): Likewise.
10819 (create_signatured_type_table_from_index): Likewise.
10820 (create_signatured_type_table_from_debug_names): Likewise.
10821 (dw2_symtab_iter_next): Likewise.
10822 (dw2_print_stats): Likewise.
10823 (dw2_expand_all_symtabs): Likewise.
10824 (dw2_expand_marked_cus): Likewise.
10825 (dw2_debug_names_iterator::next): Likewise.
10826 (dwarf2_initialize_objfile): Likewise.
10827 (add_signatured_type_cu_to_table): Likewise.
10828 (create_all_type_units): Likewise.
10829 (add_type_unit): Likewise.
10830 (struct tu_abbrev_offset): Add constructor.
10831 (build_type_psymtabs_1): Adjust to std::vector change.
10832 (print_tu_stats): Likewise.
10833 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10834 (write_debug_names): Likewise.
10835
10836 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10837
10838 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10839 Make an std::vector.
10840 <n_comp_units>: Remove.
10841 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10842 to std::vector change.
10843 (dwarf2_per_objfile::get_cutu): Likewise.
10844 (dwarf2_per_objfile::get_cu): Likewise.
10845 (create_cus_from_index): Likewise.
10846 (create_addrmap_from_index): Likewise.
10847 (create_addrmap_from_aranges): Likewise.
10848 (dwarf2_read_index): Likewise.
10849 (dw2_find_last_source_symtab): Likewise.
10850 (dw2_map_symtabs_matching_filename): Likewise.
10851 (dw2_symtab_iter_next): Likewise.
10852 (dw2_print_stats): Likewise.
10853 (dw2_expand_all_symtabs): Likewise.
10854 (dw2_expand_symtabs_with_fullname): Likewise.
10855 (dw2_expand_marked_cus): Likewise.
10856 (dw2_map_symbol_filenames): Likewise.
10857 (create_cus_from_debug_names): Likewise.
10858 (dwarf2_read_debug_names): Likewise.
10859 (dw2_debug_names_iterator::next): Likewise.
10860 (dwarf2_initialize_objfile): Likewise.
10861 (set_partial_user): Likewise.
10862 (dwarf2_build_psymtabs_hard): Likewise.
10863 (read_comp_units_from_section): Remove arguments, adjust to
10864 std::vector change.
10865 (create_all_comp_units): Adjust to std::vector and
10866 read_comp_units_from_section changes.
10867 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10868 change.
10869 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10870 (psyms_seen_size): Likewise.
10871 (write_gdbindex): Likewise.
10872 (write_debug_names): Likewise.
10873
10874 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10875
10876 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10877 with dwarf2_per_objfile.
10878 (create_cus_from_index): Likewise.
10879 (create_signatured_type_table_from_index): Likewise.
10880 (dwarf2_read_index): Likewise.
10881 (dwarf2_initialize_objfile): Likewise.
10882 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10883 per_cu rather than get_dwarf2_per_objfile.
10884
10885 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10886
10887 * dwarf2read.h (struct signatured_type): Forward declare.
10888 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10889 New methods.
10890 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10891 (dw2_get_cutu): ...this.
10892 (dwarf2_per_objfile::get_cu): Rename from...
10893 (dw2_get_cu): ...this.
10894 (dwarf2_per_objfile::get_tu): New.
10895 (create_addrmap_from_index): Adjust.
10896 (create_addrmap_from_aranges): Adjust.
10897 (dw2_find_last_source_symtab): Adjust.
10898 (dw2_map_symtabs_matching_filename): Adjust.
10899 (dw2_symtab_iter_next): Adjust.
10900 (dw2_print_stats): Adjust.
10901 (dw2_expand_all_symtabs): Adjust.
10902 (dw2_expand_symtabs_with_fullname): Adjust.
10903 (dw2_expand_marked_cus): Adjust.
10904 (dw_expand_symtabs_matching_file_matcher): Adjust.
10905 (dw2_map_symbol_filenames): Adjust.
10906 (dw2_debug_names_iterator::next): Adjust.
10907 (dwarf2_initialize_objfile): Adjust.
10908 (set_partial_user): Adjust.
10909 (dwarf2_build_psymtabs_hard): Adjust.
10910
10911 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10912
10913 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10914 Remove unused variables.
10915 (dw2_map_symtabs_matching_filename): Likewise.
10916 (dwarf2_record_block_ranges): Likewise.
10917 (dwarf2_read_addr_index): Likewise.
10918 (follow_die_offset): Likewise.
10919
10920 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10921
10922 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10923 to symbol_file_add_main.
10924
10925 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10926
10927 PR mi/22299
10928 * mi/mi-console.c (do_fputc_async_safe): New.
10929 (mi_console_file::write_async_safe): New.
10930 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10931 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10932 New.
10933 * ui-file.c (ui_file::putstrn): Adjust call to
10934 fputstrn_unfiltered.
10935 * utils.c (printchar): Replace do_fputs and do_fprintf
10936 parameters by do_fputc.
10937 (fputstr_filtered): Adjust call to printchar.
10938 (fputstr_unfiltered): Likewise.
10939 (fputstrn_filtered): Likewise.
10940 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10941 printchar.
10942 * utils.h (do_fputc_ftype): New typedef.
10943 (fputstrn_unfiltered): Add do_fputc parameter.
10944
10945 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10946
10947 * regformats/i386/i386-avx.dat: Remove.
10948
10949 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10950
10951 PR gdb/22979
10952 * amd64-tdep.c (amd64_none_init_abi): New function.
10953 (amd64_x32_none_init_abi): New function.
10954 (_initialize_amd64_tdep): Register handlers for x86-64 and
10955 x64_32 with GDB_OSABI_NONE.
10956 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10957 GDB_OSABI_NONE osabi.
10958
10959 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10960
10961 PR gdb/22980
10962 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10963 GDB_OSABI_NONE.
10964 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10965 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10966
10967 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10968
10969 * common/byte-vector.h (char_vector): New type.
10970 * target.h (target_read_alloc): Return
10971 gdb::optional<byte_vector>.
10972 (target_read_stralloc): Return gdb::optional<char_vector>.
10973 (target_get_osdata): Return gdb::optional<char_vector>.
10974 * target.c (target_read_alloc_1): Templatize. Replacement
10975 manual memory management with vector.
10976 (target_read_alloc): Change return type, adjust.
10977 (target_read_stralloc): Change return type, adjust.
10978 (target_get_osdata): Change return type, adjust.
10979 * auxv.c (struct auxv_info) <length>: Remove.
10980 <data>: Change type to gdb::optional<byte_vector>.
10981 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10982 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10983 (target_auxv_search): Adjust.
10984 (fprint_target_auxv): Adjust.
10985 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10986 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10987 (linux_make_corefile_notes): Adjust.
10988 * osdata.c (get_osdata): Adjust.
10989 * remote.c (remote_get_threads_with_qxfer): Adjust.
10990 (remote_memory_map): Adjust.
10991 (remote_traceframe_info): Adjust.
10992 (btrace_read_config): Adjust.
10993 (remote_read_btrace): Adjust.
10994 (remote_pid_to_exec_file): Adjust.
10995 * solib-aix.c (solib_aix_get_library_list): Adjust.
10996 * solib-dsbt.c (decode_loadmap): Don't free buf.
10997 (dsbt_get_initial_loadmaps): Adjust.
10998 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10999 * solib-target.c (solib_target_current_sos): Adjust.
11000 * tracepoint.c (sdata_make_value): Adjust.
11001 * xml-support.c (xinclude_start_include): Adjust.
11002 (xml_fetch_content_from_file): Adjust.
11003 * xml-support.h (xml_fetch_another): Change return type.
11004 (xml_fetch_content_from_file): Change return type.
11005 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11006 * xml-tdesc.c (file_read_description_xml): Adjust.
11007 (fetch_available_features_from_target): Change return type.
11008 (target_fetch_description_xml): Adjust.
11009 (target_read_description_xml): Adjust.
11010
11011 2018-04-06 Tom Tromey <tom@tromey.com>
11012
11013 * value.c (~value): Update.
11014 (struct value) <contents>: Now unique_xmalloc_ptr.
11015 (value_contents_bits_eq, allocate_value_contents)
11016 (value_contents_raw, value_contents_all_raw)
11017 (value_contents_for_printing, value_contents_for_printing_const)
11018 (set_value_enclosing_type): Update.
11019
11020 2018-04-06 Tom Tromey <tom@tromey.com>
11021
11022 * value.c (range_s): Remove typedef, VEC.
11023 (struct range): Add operator<.
11024 (range_lessthan): Remove.
11025 (ranges_contain): Change type.
11026 (~value): Update.
11027 (struct value) <unavailable, optimized_out>: Now std::vector.
11028 (value_entirely_available)
11029 (value_entirely_covered_by_range_vector)
11030 (value_entirely_unavailable, value_entirely_optimized_out):
11031 Update.
11032 (insert_into_bit_range_vector): Change argument type.
11033 (find_first_range_overlap): Likewise.
11034 (struct ranges_and_idx, value_contents_bits_eq)
11035 (require_not_optimized_out, require_available): Update.
11036 (ranges_copy_adjusted): Change argument types.
11037 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11038
11039 2018-04-06 Tom Tromey <tom@tromey.com>
11040
11041 * value.c (~value): Update.
11042 (struct value) <parent>: Now a value_ref_ptr.
11043 (value_parent, set_value_parent, value_address, value_copy):
11044 Update.
11045
11046 2018-04-06 Tom Tromey <tom@tromey.com>
11047
11048 * value.c (struct value): Add constructor, destructor, and member
11049 initializers.
11050 (allocate_value_lazy, value_decref): Update.
11051
11052 2018-04-06 Tom Tromey <tom@tromey.com>
11053
11054 * value.c (struct value) <released, next>: Remove.
11055 (all_values): Now a std::vector.
11056 (allocate_value_lazy): Update.
11057 (value_next): Remove.
11058 (value_mark, value_free_to_mark, release_value)
11059 (value_release_to_mark): Update.
11060
11061 2018-04-06 Tom Tromey <tom@tromey.com>
11062
11063 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11064 (free_value_chain): Remove.
11065 * value.c (free_value_chain): Remove.
11066 (value_release_to_mark): Return a std::vector.
11067 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11068 std::vector.
11069 (check_condition): Update.
11070 * eval.c (fetch_subexp_value): Change "val_chain" to a
11071 std::vector.
11072 * breakpoint.c (update_watchpoint): Update.
11073 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11074
11075 2018-04-06 Tom Tromey <tom@tromey.com>
11076
11077 * value.h (free_all_values): Remove.
11078 * value.c (free_all_values): Remove.
11079
11080 2018-04-06 Tom Tromey <tom@tromey.com>
11081
11082 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11083 (value_history_chain, value_history_count): Remove.
11084 (value_history): New global.
11085 (record_latest_value, access_value_history, show_values)
11086 (preserve_values): Update.
11087
11088 2018-04-06 Tom Tromey <tom@tromey.com>
11089
11090 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11091 * varobj.c (varobj_set_display_format, varobj_set_value)
11092 (install_default_visualizer, construct_visualizer)
11093 (install_new_value, ~varobj, varobj_get_value_type)
11094 (my_value_of_variable, varobj_editable_p): Update.
11095 * c-varobj.c (c_describe_child, c_value_of_variable)
11096 (cplus_number_of_children, cplus_describe_child): Update.
11097 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11098 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11099 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11100
11101 2018-04-06 Tom Tromey <tom@tromey.com>
11102
11103 * printcmd.c (last_examine_address): Change type to
11104 value_ref_ptr.
11105 (do_examine, x_command): Update.
11106
11107 2018-04-06 Tom Tromey <tom@tromey.com>
11108
11109 * value.c (release_value): Update.
11110 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11111 (struct bpstats) <val>: Now a value_ref_ptr.
11112 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11113 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11114 (~watchpoint, print_it_watchpoint, watch_command_1)
11115 (invalidate_bp_value_on_memory_change): Update.
11116
11117 2018-04-06 Tom Tromey <tom@tromey.com>
11118
11119 * varobj.c (varobj_clear_saved_item)
11120 (update_dynamic_varobj_children, install_new_value, ~varobj):
11121 Update.
11122 * value.h (value_incref): Move declaration earlier.
11123 (value_decref): Rename from value_free.
11124 (struct value_ref_policy): New.
11125 (value_ref_ptr): New typedef.
11126 (struct value_deleter): Remove.
11127 (gdb_value_up): Remove typedef.
11128 (release_value): Change return type.
11129 (release_value_or_incref): Remove.
11130 * value.c (set_value_parent): Update.
11131 (value_incref): Change return type.
11132 (value_decref): Rename from value_free.
11133 (value_free_to_mark, free_all_values, free_value_chain): Update.
11134 (release_value): Return value_ref_ptr.
11135 (release_value_or_incref): Remove.
11136 (record_latest_value, set_internalvar, clear_internalvar):
11137 Update.
11138 * stack.c (info_frame_command): Don't call value_free.
11139 * python/py-value.c (valpy_dealloc, valpy_new)
11140 (value_to_value_object): Update.
11141 * printcmd.c (do_examine): Update.
11142 * opencl-lang.c (lval_func_free_closure): Update.
11143 * mi/mi-main.c (register_changed_p): Don't call value_free.
11144 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11145 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11146 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11147 value_free.
11148 * guile/scm-value.c (vlscm_free_value_smob)
11149 (vlscm_scm_from_value): Update.
11150 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11151 (frame_unwind_register_unsigned, get_frame_register_bytes)
11152 (put_frame_register_bytes): Don't call value_free.
11153 * findvar.c (address_from_register): Don't call value_free.
11154 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11155 * dwarf2loc.c (entry_data_value_free_closure)
11156 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11157 (dwarf2_evaluate_loc_desc_full): Update.
11158 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11159 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11160 (~watchpoint, watch_command_1)
11161 (invalidate_bp_value_on_memory_change): Update.
11162 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11163
11164 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11165
11166 PR gdb/23022
11167 * warning.m4: Add -Wno-error=deprecated-register.
11168 * configure: Re-generate.
11169
11170 2018-04-05 Tom Tromey <tom@tromey.com>
11171
11172 * linespec.h: Remove include of "vec.h".
11173
11174 2018-04-05 Tom Tromey <tom@tromey.com>
11175
11176 * linespec.c (typep): Remove typedef.
11177 (find_methods, find_superclass_methods): Take a std::vector.
11178 (find_method): Use std::vector.
11179
11180 2018-04-05 Tom Tromey <tom@tromey.com>
11181
11182 * utils.c (compare_strings): Remove.
11183 * utils.h (compare_strings): Remove.
11184 * objc-lang.h (find_imps): Update.
11185 * objc-lang.c (find_methods): Take a std::vector.
11186 (uniquify_strings, find_imps): Likewise.
11187 * linespec.c (find_methods): Take a std::vector.
11188 (decode_objc): Use std::vector.
11189 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11190 a std::vector.
11191 (find_method, find_function_symbols): Use std::vector.
11192
11193 2018-04-05 Tom Tromey <tom@tromey.com>
11194
11195 * completer.c (completion_tracker::completion_tracker): Remove
11196 cast.
11197 (completion_tracker::discard_completions): Likewise.
11198 * breakpoint.c (ambiguous_names_p): Remove cast.
11199 * ada-lang.c (_initialize_ada_language): Remove cast.
11200 * utils.h (streq): Update.
11201 (streq_hash): Add new declaration.
11202 * utils.c (streq): Return bool.
11203 (streq_hash): New function.
11204
11205 2018-04-05 Tom Tromey <tom@tromey.com>
11206
11207 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11208 Remove a string copy.
11209
11210 2018-04-05 Tom Tromey <tom@tromey.com>
11211
11212 * linespec.c (filter_results): Use std::vector.
11213 (decode_line_2, decode_line_full): Update.
11214
11215 2018-04-05 Tom Tromey <tom@tromey.com>
11216
11217 * linespec.c (canonical_to_fullform): Return std::string.
11218 (filter_results): Update.
11219 (struct decode_line_2_item): Add constructor.
11220 <fullform, displayform>: Now std::string.
11221 (decode_line_2_compare_items): Now a std::sort comparator.
11222 (decode_line_2): Update.
11223
11224 2018-04-05 Tom Tromey <tom@tromey.com>
11225
11226 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11227 (unexpected_linespec_error): Update.
11228 (linespec_parse_basic, parse_linespec): Update.
11229
11230 2018-04-05 Tom Tromey <tom@tromey.com>
11231
11232 * linespec.c (linespec_parse_basic): Reindent.
11233
11234 2018-04-05 Tom Tromey <tom@tromey.com>
11235
11236 * minsyms.h (iterate_over_minimal_symbols): Update.
11237 * minsyms.c (iterate_over_minimal_symbols): Take a
11238 gdb::function_view.
11239 * linespec.c (struct collect_minsyms): Remove.
11240 (compare_msyms): Now a std::sort comparator.
11241 (add_minsym): Add parameters.
11242 (search_minsyms_for_name): Update. Use std::vector.
11243
11244 2018-04-03 Tom Tromey <tom@tromey.com>
11245
11246 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11247 gdb::byte_vector.
11248
11249 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11250
11251 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11252
11253 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11254
11255 PR gdb/16959
11256 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11257 printing static type.
11258
11259 2018-04-01 Tom Tromey <tom@tromey.com>
11260
11261 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11262 (rs6000_xfer_shared_libraries): Update.
11263
11264 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11265
11266 * common/gdb_vecs.h (char_ptr): Remove.
11267 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11268
11269 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11270
11271 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11272 with std::vector.
11273 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11274
11275 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11276
11277 * tracepoint.h (struct uploaded_tp): Initialize fields.
11278 <actions, step_actions, cmd_strings>: Change type to
11279 std::vector<char *>.
11280 * tracepoint.c (get_uploaded_tp): Allocate with new.
11281 (free_uploaded_tps): Free with delete.
11282 (parse_tracepoint_definition): Adjust to std::vector change.
11283 * breakpoint.c (read_uploaded_action): Likewise.
11284 (create_tracepoint_from_upload): Likewise.
11285 * ctf.c (ctf_write_uploaded_tp): Likewise.
11286 (SET_ARRAY_FIELD): Likewise.
11287 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11288
11289 2018-03-30 Tom Tromey <tom@tromey.com>
11290
11291 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11292 std::unique_ptr.
11293 (svr4_keep_data_in_core): Update.
11294 (svr4_read_so_list): Update.
11295
11296 2018-03-30 Tom Tromey <tom@tromey.com>
11297
11298 * windows-nat.c (handle_output_debug_string, handle_exception):
11299 Update.
11300 * target.h (target_read_string): Update.
11301 * target.c (target_read_string): Change "string" to
11302 unique_xmalloc_ptr.
11303 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11304 Update.
11305 * solib-frv.c (frv_current_sos): Update.
11306 * solib-dsbt.c (dsbt_current_sos): Update.
11307 * solib-darwin.c (darwin_current_sos): Update.
11308 * linux-thread-db.c (inferior_has_bug): Update.
11309 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11310 Update. Remove alloca.
11311 * ada-lang.c (ada_main_name): Update.
11312
11313 2018-03-30 Tom Tromey <tom@tromey.com>
11314
11315 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11316 (struct dwo_file_deleter): New.
11317 (dwo_file_up): New typedef.
11318 (open_and_init_dwo_file): Use dwo_file_up.
11319 (free_dwo_file_cleanup): Remove.
11320
11321 2018-03-30 Tom Tromey <tom@tromey.com>
11322
11323 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11324 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11325
11326 2018-03-30 Tom Tromey <tom@tromey.com>
11327
11328 * dwarf2read.c (class free_cached_comp_units): New class.
11329 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11330 (free_cached_comp_units): Remove function.
11331
11332 2018-03-30 Tom Tromey <tom@tromey.com>
11333
11334 * utils.h (make_cleanup_unpush_target): Remove.
11335 * inf-ptrace.c (struct target_unpusher): New.
11336 (target_unpush_up) New typedef.
11337 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11338 target_unpush_up.
11339 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11340
11341 2018-03-27 Tom Tromey <tom@tromey.com>
11342
11343 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11344
11345 2018-03-27 Pedro Alves <palves@redhat.com>
11346 Tom Tromey <tom@tromey.com>
11347
11348 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11349 destructor. Now a class.
11350 (gdb_readline_wrapper_cleanup): Remove function.
11351 (gdb_readline_wrapper): Remove cleanups.
11352
11353 2018-03-27 Tom Tromey <tom@tromey.com>
11354
11355 * typeprint.h (struct type_print_options) <local_typedefs,
11356 global_typedefs>: Remove "struct" keyword.
11357 (class typedef_hash_table): New class.
11358 (recursively_update_typedef_hash, add_template_parameters)
11359 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11360 (find_typedef_in_hash): Don't declare.
11361 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11362 (typedef_hash_table::recursively_update): Rename from
11363 recursively_update_typedef_hash. Now a member.
11364 (typedef_hash_table::add_template_parameters): Rename from
11365 add_template_parameters. Now a member.
11366 (typedef_hash_table::typedef_hash_table): Now a constructor;
11367 rename from create_typedef_hash.
11368 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11369 rename from free_typedef_hash.
11370 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11371 (do_free_global_table): Remove.
11372 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11373 from copy_type_recursive.
11374 (create_global_typedef_table): Remove.
11375 (typedef_hash_table::find_global_typedef): Now a member of
11376 typedef_hash_table.
11377 (typedef_hash_table::find_typedef): Rename from
11378 find_typedef_in_hash; now a member.
11379 (whatis_exp): Update.
11380 * extension.h (struct ext_lang_type_printers): Add constructor and
11381 destructor.
11382 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11383 declare.
11384 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11385 Now a constructor; rename from start_ext_lang_type_printers.
11386 (ext_lang_type_printers): Now a destructor; rename from
11387 free_ext_lang_type_printers.
11388 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11389 Update.
11390 (c_type_print_base_struct_union): Update. Remove cleanups.
11391
11392 2018-03-27 Tom Tromey <tom@tromey.com>
11393
11394 * dwarf-index-write.c: Include <cmath>.
11395
11396 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11397
11398 * NEWS: Add entry describing new "set|show varsize-limit" command.
11399 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11400 command.
11401 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11402 "set variable".
11403
11404 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11405
11406 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11407 dwarf-index-write.c
11408 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11409 * dwarf-index-common.c: New file.
11410 * dwarf-index-common.h: New file.
11411 * dwarf-index-write.c: New file.
11412 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11413 (struct dwarf2_section_info): Move from here.
11414 (dwarf2_section_info_def): Likewise.
11415 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11416 (offset_type): Likewise.
11417 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11418 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11419 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11420 (byte_swap): Likewise.
11421 (MAYBE_SWAP): Likewise.
11422 (dwarf2_per_cu_ptr): Likewise.
11423 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11424 (struct tu_stats): Likewise.
11425 (struct dwarf2_per_objfile): Likewise.
11426 (struct dwarf2_per_cu_data): Likewise.
11427 (struct signatured_type): Likewise.
11428 (sig_type_ptr): Likewise.
11429 (DEF_VEC_P (sig_type_ptr)): Likewise.
11430 (INDEX4_SUFFIX): Likewise.
11431 (INDEX5_SUFFIX): Likewise.
11432 (DEBUG_STR_SUFFIX): Likewise.
11433 (dwarf2_read_section): Make non-static.
11434 (mapped_index_string_hash): Move from here.
11435 (dwarf5_djb_hash): Likewise.
11436 (file_write): Likewise.
11437 (class data_buf): Likewise.
11438 (struct symtab_index_entry): Likewise.
11439 (struct mapped_symtab): Likewise.
11440 (find_slot): Likewise.
11441 (hash_expand): Likewise.
11442 (add_index_entry): Likewise.
11443 (uniquify_cu_indices): Likewise.
11444 (class c_str_view): Likewise.
11445 (class c_str_view_hasher): Likewise.
11446 (class vector_hasher): Likewise.
11447 (write_hash_table): Likewise.
11448 (psym_index_map): Likewise.
11449 (struct addrmap_index_data): Likewise.
11450 (add_address_entry): Likewise.
11451 (add_address_entry_worker): Likewise.
11452 (write_address_map): Likewise.
11453 (symbol_kind): Likewise.
11454 (write_psymbols): Likewise.
11455 (struct signatured_type_index_data): Likewise.
11456 (write_one_signatured_type): Likewise.
11457 (recursively_count_psymbols): Likewise.
11458 (recursively_write_psymbols): Likewise.
11459 (class debug_names): Likewise.
11460 (check_dwarf64_offsets): Likewise.
11461 (psyms_seen_size): Likewise.
11462 (write_gdbindex): Likewise.
11463 (write_debug_names): Likewise.
11464 (assert_file_size): Likewise.
11465 (write_psymtabs_to_index): Likewise.
11466 (save_gdb_index_command): Likewise.
11467 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11468 command.
11469 * dwarf2read.h: New file.
11470
11471 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11472
11473 PR gdb/22670
11474 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11475 symbol name if the CU's language stores symbol names in linkage
11476 format.
11477 * language.h (struct language_defn)
11478 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11479 all instances of this struct.
11480
11481 2018-03-26 Tom Tromey <tom@tromey.com>
11482
11483 * stack.c (backtrace_command_1): Remove verbose code.
11484
11485 2018-03-26 Tom Tromey <tom@tromey.com>
11486
11487 * python/py-framefilter.c (py_print_type): Don't catch
11488 exceptions. Return void.
11489 (py_print_value): Likewise.
11490 (py_print_single_arg): Likewise.
11491 (enumerate_args): Don't catch exceptions.
11492 (py_print_args): Likewise.
11493 (py_print_frame): Likewise.
11494 (gdbpy_apply_frame_filter): Catch exceptions here.
11495
11496 2018-03-26 Tom Tromey <tom@tromey.com>
11497
11498 * stack.c (_initialize_stack): Remove trailing newlines from help
11499 text. Add "Usage" line to "backtrace" help.
11500
11501 2018-03-26 Tom Tromey <tom@tromey.com>
11502
11503 PR python/16486:
11504 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11505
11506 2018-03-26 Tom Tromey <tom@tromey.com>
11507
11508 * python/py-framefilter.c (py_print_single_arg): Return
11509 EXT_LANG_BT_ERROR from catch.
11510
11511 2018-03-26 Tom Tromey <tom@tromey.com>
11512
11513 PR backtrace/15584:
11514 * stack.c (backtrace_command_1): Move some code into no-filters
11515 "if".
11516
11517 2018-03-26 Tom Tromey <tom@tromey.com>
11518
11519 * python/py-framefilter.c (throw_quit_or_print_exception): New
11520 function.
11521 (gdbpy_apply_frame_filter): Use it.
11522
11523 2018-03-26 Tom Tromey <tom@tromey.com>
11524
11525 PR cli/17716:
11526 * python/py-framefilter.c (py_print_type, py_print_value)
11527 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11528 RETURN_MASK_ERROR.
11529
11530 2018-03-26 Tom Tromey <tom@tromey.com>
11531
11532 * python/py-framefilter.c (enumerate_args): Use
11533 gdb::unique_xmalloc_ptr.
11534
11535 2018-03-26 Tom Tromey <tom@tromey.com>
11536
11537 * python/py-framefilter.c (py_print_frame): Return
11538 EXT_LANG_BT_OK.
11539 (gdbpy_apply_frame_filter): Update comment.
11540 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11541 Remove.
11542 <EXT_LANG_BT_NO_FILTERS>: Change value.
11543
11544 2018-03-26 Tom Tromey <tom@tromey.com>
11545
11546 PR backtrace/15582:
11547 * stack.c (backtrace_command): Parse "hide" argument.
11548 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11549 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11550 constant.
11551
11552 2018-03-26 Tom Tromey <tom@tromey.com>
11553
11554 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11555 add "flags".
11556 (backtrace_command): Remove "fulltrace", add "flags".
11557
11558 2018-03-26 Tom Tromey <tom@tromey.com>
11559
11560 * stack.c (backtrace_command): Rewrite command line parsing.
11561
11562 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11563
11564 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11565
11566 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11567
11568 * filename-seen-cache.h: Add include guard.
11569
11570 2018-03-26 Keith Seitz <keiths@redhat.com>
11571
11572 * symfile.c (place_section): Remove "struct" from section_addr_info
11573 in comment.
11574 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11575 "struct" keyword from section_addr_info.
11576
11577 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11578
11579 * regformats/regdef.h (reg): Add constructors.
11580
11581 2018-03-25 Pedro Alves <palves@redhat.com>
11582
11583 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11584 if then/else bodies in var_func_name extraction.
11585
11586 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11587
11588 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11589 lookup_minimal_symbol() to find symbol entry.
11590 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11591
11592 2018-03-23 Keith Seitz <keiths@redhat.com>
11593
11594 PR c++/22968
11595 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11596 nested type definitions for C++, too.
11597
11598 2018-03-23 Tom Tromey <tom@tromey.com>
11599
11600 * machoread.c (struct oso_el): Add a constructor. Don't define as
11601 a typedef.
11602 (macho_register_oso): Remove.
11603 (macho_symtab_read): Take a std::vector.
11604 (oso_el_compare_name): Now a std::sort comparator.
11605 (macho_symfile_read_all_oso): Take a std::vector.
11606 (macho_symfile_read): Use std::vector. Remove cleanups.
11607
11608 2018-03-22 Tom Tromey <tom@tromey.com>
11609
11610 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11611 (record_full_goto_bookmark): Use std::string.
11612
11613 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11614
11615 PR tdep/18295
11616 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11617 a single mask.
11618
11619 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11620
11621 * rs6000-tdep.c (store_insn_p): New function.
11622 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11623 and cr_reg to their unshifted values. Use store_insn_p to
11624 match LR saves using either R1 or fdata->alloca_reg. Use
11625 store_insn_p to match CR saves. Set alloca_reg_offset
11626 when alloca_reg and framep are set. Remove lr_reg shift
11627 when assigning to fdata->lr_register.
11628
11629 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11630
11631 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11632 command line args instead of emitting a warning.
11633
11634 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11635
11636 * tracepoint.h (struct static_tracepoint_marker): Initialize
11637 fields, define default constructor, move constructor and move
11638 assignment, disable the rest.
11639 <str_id, extra>: Make std::string.
11640 (release_static_tracepoint_marker): Remove.
11641 (free_current_marker): Remove.
11642 * tracepoint.c (free_current_marker): Remove.
11643 (parse_static_tracepoint_marker_definition): Adjust to
11644 std::string, use new hex2str overload.
11645 (release_static_tracepoint_marker): Remove.
11646 (print_one_static_tracepoint_marker): Get marker by reference
11647 and adjust to std::string.
11648 (info_static_tracepoint_markers_command): Adjust to std::vector
11649 changes
11650 * target.h (static_tracepoint_marker_p): Remove typedef.
11651 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11652 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11653 bool.
11654 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11655 * target-debug.h
11656 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11657 (target_debug_print_std_vector_static_tracepoint_marker): New.
11658 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11659 to...
11660 (target_debug_print_static_tracepoint_marker_p): ... this.
11661 * target-delegates.c: Re-generate.
11662 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11663 Make std::string.
11664 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11665 (decode_static_tracepoint_spec): Adjust to std::vector.
11666 (tracepoint_print_one_detail): Adjust to std::string.
11667 (strace_marker_decode_location): Adjust to std::string.
11668 (update_static_tracepoint): Adjust to std::string, remove call
11669 to release_static_tracepoint_marker.
11670 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11671 Adjust to std::vector.
11672 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11673 (remote_static_tracepoint_markers_by_strid): Adjust to
11674 std::vector.
11675 * common/rsp-low.h (hex2str): New overload with explicit count
11676 of bytes.
11677 * common/rsp-low.c (hex2str): New overload with explicit count
11678 of bytes.
11679 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11680 (_initialize_rsp_low_selftests): Add test_hex2str test.
11681 * unittests/tracepoint-selftests.c
11682 (test_parse_static_tracepoint_marker_definition): Adjust to
11683 std::string.
11684
11685 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11686
11687 * tracepoint.c (parse_static_tracepoint_marker_definition):
11688 Consider case where the definition is followed by more
11689 definitions.
11690 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11691 tracepoint-selftests.c.
11692 * unittests/tracepoint-selftests.c: New.
11693
11694 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11695
11696 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11697 Carvalho.
11698
11699 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11700
11701 * symtab.c (find_pc_sect_line): fixed indentation.
11702
11703 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11704
11705 * symtab.c (find_pc_sect_line): now uses binary search.
11706
11707 2018-03-19 Tom Tromey <tom@tromey.com>
11708
11709 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11710 "IDENT" production.
11711
11712 2018-03-19 Pedro Alves <palves@redhat.com>
11713 Tom Tromey <tom@tromey.com>
11714
11715 * unittests/observable-selftests.c: New file.
11716 * common/observable.h: New file.
11717 * observable.h: New file.
11718 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11719 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11720 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11721 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11722 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11723 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11724 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11725 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11726 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11727 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11728 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11729 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11730 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11731 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11732 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11733 tui/tui-interp.c, valops.c: Update all users.
11734 * tui/tui-hooks.c (tui_bp_created_observer)
11735 (tui_bp_deleted_observer, tui_bp_modified_observer)
11736 (tui_inferior_exit_observer, tui_before_prompt_observer)
11737 (tui_normal_stop_observer, tui_register_changed_observer):
11738 Remove.
11739 (tui_observers_token): New global.
11740 (attach_or_detach, tui_attach_detach_observers): New functions.
11741 (tui_install_hooks, tui_remove_hooks): Use
11742 tui_attach_detach_observers.
11743 * record-btrace.c (record_btrace_thread_observer): Remove.
11744 (record_btrace_thread_observer_token): New global.
11745 * observer.sh: Remove.
11746 * observer.c: Rename to observable.c.
11747 * observable.c (namespace gdb_observers): Define new objects.
11748 (observer_debug): Move into gdb_observers namespace.
11749 (struct observer, struct observer_list, xalloc_observer_list_node)
11750 (xfree_observer_list_node, generic_observer_attach)
11751 (generic_observer_detach, generic_observer_notify): Remove.
11752 (_initialize_observer): Update.
11753 Don't include observer.inc.
11754 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11755 (clean mostlyclean): Likewise.
11756 (observer.h, observer.inc): Remove targets.
11757 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11758 (COMMON_SFILES): Use observable.c, not observer.c.
11759 * .gitignore: Remove observer.h.
11760
11761 2018-03-18 Tom Tromey <tom@tromey.com>
11762
11763 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11764 gdb::def_vector.
11765 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11766
11767 2018-03-17 Tom Tromey <tom@tromey.com>
11768
11769 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11770
11771 2018-03-17 Tom Tromey <tom@tromey.com>
11772
11773 * target.c (class scoped_target_fd): New.
11774 (target_fileio_close_cleanup): Remove.
11775 (target_fileio_read_alloc_1): Use scoped_target_fd.
11776
11777 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11778
11779 * silent-rules.mk: New.
11780 * Makefile.in: Include silent-rules.mk
11781 (srcdir, VPATH, top_srcdir): Move up.
11782 (COMPILE): Add ECHO_CXX.
11783 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11784 (init.c): Add ECHO_INIT_C.
11785 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11786 (version.c): Add ECHO_GEN.
11787 (printcmd.o): Add ECHO_CXX.
11788 (target-float.o): Add ECHO_CXX.
11789 (ada-exp.o): Add ECHO_CXX.
11790 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11791 (insight$(EXEEXT)): Add ECHO_CXXLD.
11792 * gnulib/configure.ac: Add AM_SILENT_RULES.
11793 * gnulib/aclocal.m4: Re-generate.
11794 * gnulib/configure: Re-generate.
11795 * gnulib/import/Makefile.in: Re-generate.
11796
11797 2018-03-16 Tom Tromey <tom@tromey.com>
11798
11799 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11800 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11801 * utils.c (do_free_section_addr_info)
11802 (make_cleanup_free_section_addr_info): Remove.
11803 * symfile.h (struct other_sections): Add constructor.
11804 (struct section_addr_info): Remove.
11805 (section_addr_info): New typedef.
11806 (struct sym_fns) <sym_offsets>: Change type of parameter.
11807 (build_section_addr_info_from_objfile)
11808 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11809 (default_symfile_offsets, symbol_file_add)
11810 (symbol_file_add_from_bfd)
11811 (build_section_addr_info_from_section_table): Update.
11812 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11813 * symfile.c (alloc_section_addr_info): Remove.
11814 (build_section_addr_info_from_section_table): Change return type.
11815 Update.
11816 (build_section_addr_info_from_bfd)
11817 (build_section_addr_info_from_objfile): Likewise.
11818 (free_section_addr_info): Remove.
11819 (relative_addr_info_to_section_offsets): Change type of "addrs".
11820 (addrs_section_compar): Now a std::sort comparator.
11821 (addrs_section_sort): Change return type.
11822 (addr_info_make_relative): Change type of "addrs". Update.
11823 (default_symfile_offsets, syms_from_objfile_1)
11824 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11825 (symbol_file_add_separate): Update.
11826 (symbol_file_add): Change type of "addrs". Update.
11827 (add_symbol_file_command): Update. Remove cleanups.
11828 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11829 cleanups.
11830 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11831 * solib.c (solib_read_symbols): Update.
11832 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11833 * machoread.c (macho_symfile_offsets): Update.
11834 * jit.c (jit_bfd_try_read_symtab): Update.
11835
11836 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11837
11838 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11839 unittests/utils-selftests.c.
11840 * unittests/utils-selftests.c: New file.
11841
11842 2018-03-14 Tom Tromey <tom@tromey.com>
11843
11844 PR cli/14977:
11845 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11846 for NULL.
11847
11848 2018-03-14 Tom Tromey <tom@tromey.com>
11849
11850 PR cli/19918:
11851 * printcmd.c (printf_pointer): Allow "-" in format.
11852
11853 2018-03-14 Tom Tromey <tom@tromey.com>
11854
11855 * printcmd.c (_initialize_printcmd): Add usage to printf.
11856
11857 2018-03-14 Yao Qi <qiyao@sourceware.org>
11858
11859 * MAINTAINERS: Update my email address.
11860
11861 2018-03-13 Tom Tromey <tom@tromey.com>
11862
11863 * machoread.c (macho_check_dsym): Change filenamep to a
11864 std::string*.
11865 (macho_symfile_read): Update.
11866 * symfile.c (load_command): Use std::string.
11867
11868 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11869
11870 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11871 to error message string.
11872 (riscv_register_name): Use xsnprintf instead of sprintf.
11873 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11874 internal_error.
11875 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11876 error.
11877 (riscv_push_dummy_call): Likewise.
11878
11879 2018-03-12 Tom Tromey <tom@tromey.com>
11880
11881 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11882 Use gdb::byte_vector.
11883 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11884
11885 2018-03-12 Yao Qi <yao.qi@linaro.org>
11886
11887 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11888 parameter type to readable_regcache.
11889 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11890 the declaration.
11891
11892 2018-03-11 Tom Tromey <tom@tromey.com>
11893
11894 * dwarf2read.c (struct nextfield): Add initializers.
11895 (struct nextfnfield): Remove.
11896 (struct fnfieldlist): Add initializers. Remove "length" and
11897 "head", use std::vector.
11898 (struct decl_field_list): Remove.
11899 (struct field_info): Add initializers.
11900 <fields, baseclasses>: Now std::vector.
11901 <nbaseclasses, nfnfields, typedef_field_list_count,
11902 nested_types_list_count>: Remove.
11903 (dwarf2_add_field, dwarf2_add_type_defn)
11904 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11905 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11906 (process_structure_scope): Update.
11907
11908 2018-03-11 Tom Tromey <tom@tromey.com>
11909
11910 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11911 for use by std::sort.
11912 (build_type_psymtabs_1): Use std::vector.
11913
11914 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11915
11916 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11917 and LIBMPFR in the printed configuration.
11918
11919 2018-03-08 Tom Tromey <tom@tromey.com>
11920
11921 * source.c (get_filename_and_charpos): Use scoped_fd.
11922 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11923 (procfs_pidlist): Likewise.
11924 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11925 (iterate_over_mappings): Likewise.
11926
11927 2018-03-08 Tom Tromey <tom@tromey.com>
11928
11929 * infcall.c (struct call_return_meta_info)
11930 <stack_temporaries_enabled>: Remove.
11931 (get_call_return_value, call_function_by_hand_dummy): Update.
11932 * thread.c (disable_thread_stack_temporaries): Remove.
11933 (enable_thread_stack_temporaries): Remove.
11934 (thread_stack_temporaries_enabled_p): Return bool.
11935 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11936 (get_last_thread_stack_temporary): Update.
11937 * eval.c (evaluate_subexp): Update.
11938 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11939 class, not a function.
11940 (value_ptr, value_vec): Remove typedefs.
11941 (class thread_info) <stack_temporaries_enabled>: Now bool.
11942 <stack_temporaries>: Now a std::vector.
11943 (thread_stack_temporaries_enabled_p)
11944 (value_in_thread_stack_temporaries): Return bool.
11945
11946 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11947
11948 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11949 (getpkt_or_notif_sane_1): Likewise.
11950
11951 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11952
11953 * build-id.c (build_id_to_debug_bfd): Use std::string.
11954
11955 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11956
11957 * build-id.c (find_separate_debug_file_by_buildid): Return
11958 std::string.
11959 * build-id.h (find_separate_debug_file_by_buildid): Return
11960 std::string.
11961 * coffread.c (coff_symfile_read): Adjust to std::string.
11962 * elfread.c (elf_symfile_read): Adjust to std::string.
11963 * symfile.c (separate_debug_file_exists): Change parameter to
11964 std::string.
11965 (find_separate_debug_file): Return std::string.
11966 (find_separate_debug_file_by_debuglink): Return std::string.
11967 * symfile.h (find_separate_debug_file_by_debuglink): Return
11968 std::string.
11969
11970 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11971
11972 * common/xml-utils.c (xml_escape_text): Move code to...
11973 (xml_escape_text_append): ... this new function.
11974 * common/xml-utils.h (xml_escape_text_append): New declaration.
11975 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11976 New function.
11977 (_initialize_xml_utils): register test_xml_escape_text_append as
11978 a selftest.
11979
11980 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11981
11982 * defs.h: Remove MAX_REGISTER_SIZE.
11983 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11984 asserts.
11985 * python/py-unwind.c (pyuw_sniffer): Likewise.
11986
11987 2018-03-07 Tom Tromey <tom@tromey.com>
11988
11989 * linux-tdep.c (linux_info_proc): Update.
11990 * target.h (struct target_ops) <to_fileio_readlink>: Return
11991 optional<string>.
11992 (target_fileio_readlink): Return optional<string>.
11993 * remote.c (remote_hostio_readlink): Return optional<string>.
11994 * inf-child.c (inf_child_fileio_readlink): Return
11995 optional<string>.
11996 * target.c (target_fileio_readlink): Return optional<string>.
11997
11998 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11999
12000 * regcache.c (cooked_read_test): Add riscv to the list of
12001 architectures that have a save_reggroup.
12002
12003 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12004
12005 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12006 value is not a dynamic class object.
12007
12008 2018-03-06 Tom Tromey <tom@tromey.com>
12009
12010 * rust-exp.y: Formatting fixes.
12011
12012 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12013
12014 * riscv-tdep.c (riscv_register_name): Remove target description
12015 support.
12016 (riscv_gdbarch_init): Remove target description check.
12017
12018 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12019
12020 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12021 comment.
12022 * riscv-tdep.h: Likewise.
12023
12024 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12025
12026 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12027 (riscv_pseudo_register_write): Delete.
12028 (riscv_gdbarch_init): Remove all use of pseudo registers.
12029
12030 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12031
12032 * record-btrace.c (btrace_print_lines): Replace cleanup
12033 parameter with RAII equivalents.
12034 (btrace_insn_history): Replace cleanup with RAII equivalents.
12035 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12036 make_cleanup_ui_out_tuple_begin_end): Remove.
12037 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12038 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12039 make_cleanup_ui_out_list_begin_end): Remove.
12040
12041 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12042
12043 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12044 parameter types to std::vector. Use bool.
12045 (record_btrace_wait): Replace VEC(tp_t) with
12046 std::vector<thread_info *>.
12047 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12048
12049 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12050
12051 * record-btrace.c (record_btrace_disable_callback): Remove.
12052 (struct scoped_btrace_disable): New.
12053 (record_btrace_open): Use scoped_btrace_disable.
12054
12055 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12056
12057 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12058 reading values from registers.
12059
12060 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12061
12062 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12063 where appropriate.
12064
12065 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12066
12067 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12068 change parameter type. Use GDB's print functions, and use
12069 core_addr_to_string where appropriate.
12070 (riscv_push_dummy_call): Use core_addr_to_string where
12071 appropriate, update call to riscv_print_arg_location, and reindent
12072 a few lines.
12073 (riscv_return_value): Update call to riscv_print_arg_location.
12074
12075 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12076 Tim Newsome <tim@sifive.com>
12077 Albert Ou <a0u@eecs.berkeley.edu>
12078 Darius Rad <darius@bluespec.com>
12079
12080 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12081 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12082 (ALLDEPFILES): Add riscv-tdep.c
12083 * configure.tgt: Add riscv support.
12084 * riscv-tdep.c: New file.
12085 * riscv-tdep.h: New file.
12086 * NEWS: Mention new target.
12087 * MAINTAINERS: Add entry for riscv.
12088
12089 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12090
12091 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12092 fields within aggregates.
12093
12094 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12095
12096 * record-btrace.c (btrace_print_lines): Change type of flags to
12097 gdb_disassembly_flags.
12098
12099 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12100
12101 * fbsd-nat.c: Include "inf-ptrace.h".
12102 (USE_SIGTRAP_SIGINFO): Conditionally define.
12103 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12104 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12105 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12106 function.
12107 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12108 Likewise.
12109 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12110 Likewise.
12111 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12112 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12113 "supports_stopped_by_hw_breakpoint" target methods.
12114
12115 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12116
12117 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12118 * fbsd-nat.c (debug_fbsd_nat): New variable.
12119 (show_fbsd_nat_debug): New function.
12120 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12121 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12122
12123 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12124
12125 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12126 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12127 prototype.
12128 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12129 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12130 method.
12131
12132 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12133
12134 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12135 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12136
12137 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12138
12139 * charset.c (struct charset_vector): New.
12140 (charsets): Change type to charset_vector.
12141 (find_charset_names): Adjust.
12142 (add_one): Adjust.
12143 (_initialize_charset): Adjust.
12144
12145 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12146
12147 * progspace.h (struct program_space) <deleted_solibs>: Change
12148 type to std::vector<std::string>.
12149 * progspace.c (clear_program_space_solib_cache): Adjust.
12150 * breakpoint.c (print_solib_event): Adjust.
12151 (check_status_catch_solib): Adjust.
12152 * solib.c (update_solib_list): Adjust.
12153 * ui-out.h (class ui_out) <field_string>: New overload.
12154 * ui-out.c (ui_out::field_string): New overload.
12155
12156 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12157
12158 * progspace.h (struct program_space): Add constructor and
12159 destructor, initialize fields.
12160 (add_program_space): Remove.
12161 * progspace.c (add_program_space): Rename to...
12162 (program_space::program_space): ... this.
12163 (release_program_space): Rename to...
12164 (program_space::~program_space): ... this.
12165 (delete_program_space): Use delete to delete program_space.
12166 (initialize_progspace): Use new to allocate program_space.
12167 * inferior.c (add_inferior_with_spaces): Likewise.
12168 (clone_inferior_command): Likewise.
12169 * infrun.c (follow_fork_inferior): Likewise.
12170 (handle_vfork_child_exec_or_exit): Likewise.
12171
12172 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12173
12174 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12175 (delim_string_to_char_ptr_vec): Return std::vector of
12176 gdb::unique_xmalloc_ptr.
12177 (dirnames_to_char_ptr_vec_append): Take std::vector of
12178 gdb::unique_xmalloc_ptr.
12179 (dirnames_to_char_ptr_vec): Return std::vector of
12180 gdb::unique_xmalloc_ptr.
12181 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12182 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12183 (delim_string_to_char_ptr_vec): Return an std::vector of
12184 gdb::unique_xmalloc_ptr, adjust the code.
12185 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12186 gdb::unique_xmalloc_ptr, adjust the code.
12187 (dirnames_to_char_ptr_vec): Return an std::vector of
12188 gdb::unique_xmalloc_ptr, adjust the code.
12189 * auto-load.c (auto_load_safe_path_vec): Change type to
12190 std::vector of gdb::unique_xmalloc_ptr.
12191 (auto_load_expand_dir_vars): Return an std::vector of
12192 gdb::unique_xmalloc_ptr, adjust the code.
12193 (auto_load_safe_path_vec_update): Adjust.
12194 (filename_is_in_auto_load_safe_path_vec): Adjust.
12195 (auto_load_objfile_script_1): Adjust.
12196 * build-id.c (build_id_to_debug_bfd): Adjust.
12197 * linux-thread-db.c (thread_db_load_search): Adjust.
12198 * source.c (add_path): Adjust.
12199 (openp): Adjust.
12200 * symfile.c (find_separate_debug_file): Adjust.
12201 * utils.c (do_free_char_ptr_vec): Remove.
12202 (make_cleanup_free_char_ptr_vec): Remove.
12203
12204 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12205
12206 PR gdb/22907
12207 * common/pathstuff.c: Conditionally include "<windows.h>".
12208
12209 2018-03-01 Georg Sauthoff <mail@georg.so>
12210
12211 PR gdb/22888
12212 * gcore.in: Quote variables and switch interpreter to bash.
12213
12214 2018-03-01 Tom Tromey <tom@tromey.com>
12215
12216 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12217 assertion. Add assertion for discriminant_index.
12218 (quirk_rust_enum): Use correct base type name in univariant case.
12219
12220 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12221
12222 * record.c (get_call_history_modifiers): Return a
12223 record_print_flags.
12224 (cmd_record_call_history): Adjust.
12225 * record-btrace.c (record_btrace_call_history): Adjust.
12226 (record_btrace_call_history_range): Adjust.
12227 (record_btrace_call_history_from): Adjust.
12228 * target-debug.h (target_debug_print_record_print_flags): New.
12229 * target-delegates.c: Re-generate.
12230 * target.c (target_call_history): Change flags type.
12231 (target_call_history_from): Likewise.
12232 (target_call_history_range): Likewise.
12233 * target.h (struct target_ops) <target_call_history>: Likewise.
12234 (target_call_history_from): Likewise.
12235 (target_call_history_range): Likewise.
12236
12237 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12238 Simon Marchi <simon.marchi@polymtl.ca>
12239
12240 * common/common-utils.c: Include "sys/stat.h".
12241 (is_regular_file): Move here from "source.c"; change return
12242 type to "bool".
12243 * common/common-utils.h (is_regular_file): New prototype.
12244 * common/pathstuff.c (contains_dir_separator): New function.
12245 * common/pathstuff.h (contains_dir_separator): New prototype.
12246 * source.c: Don't include "sys/stat.h".
12247 (is_regular_file): Move to "common/common-utils.c".
12248
12249 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12250
12251 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12252 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12253 * auto-load.c: Include "common/pathstuff.h".
12254 * common/common-def.h (current_directory): Move here.
12255 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12256 function.
12257 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12258 prototype.
12259 * common/pathstuff.c: New file.
12260 * common/pathstuff.h: New file.
12261 * compile/compile.c: Include "common/pathstuff.h".
12262 * defs.h (current_directory): Move to "common/common-defs.h".
12263 * dwarf2read.c: Include "common/pathstuff.h".
12264 * exec.c: Likewise.
12265 * guile/scm-safe-call.c: Likewise.
12266 * linux-thread-db.c: Likewise.
12267 * main.c: Likewise.
12268 * nto-tdep.c: Likewise.
12269 * objfiles.c: Likewise.
12270 * source.c: Likewise.
12271 * symtab.c: Likewise.
12272 * utils.c: Include "common/pathstuff.h".
12273 (gdb_realpath): Move to "common/pathstuff.c".
12274 (gdb_realpath_keepfile): Likewise.
12275 (gdb_abspath): Likewise.
12276 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12277 (gdb_realpath_keepfile): Likewise.
12278 (gdb_abspath): Likewise.
12279
12280 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12281
12282 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12283 wildcard process pid for super_resume for kernels with a
12284 specific bug.
12285
12286 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12287
12288 * compile/compile.c (get_args): Add additional comments
12289 explaining function.
12290
12291 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12292 Tom Tromey <tom@tromey.com>
12293
12294 * target.h (memory_write_request_s): Remove typedef. Don't define
12295 VEC.
12296 (target_write_memory_blocks): Change argument to std::vector.
12297 (struct memory_write_request): Add constructor.
12298 * target-memory.c (compare_block_starting_address): Return bool.
12299 Change argument types.
12300 (claim_memory): Change arguments to use std::vector.
12301 (split_regular_and_flash_blocks, blocks_to_erase)
12302 (compute_garbled_blocks): Likewise.
12303 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12304 (target_write_memory_blocks): Change argument to std::vector.
12305 * symfile.c (struct load_section_data): Add constructor and
12306 destructor. Use std::vector for "requests".
12307 (struct load_progress_data): Add initializers.
12308 (load_section_callback): Update. Use "new".
12309 (clear_memory_write_data): Remove.
12310 (generic_load): Update.
12311
12312 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12313
12314 * arch/aarch64.h: Use common/tdesc.h.
12315
12316 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12317
12318 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12319 architecture with a 64-bit ABI.
12320
12321 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12322
12323 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12324 ahead of target description loading.
12325
12326 2018-02-26 Tom Tromey <tom@tromey.com>
12327
12328 * stack.c (backtrace_command_1): Update.
12329 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12330 of "flags".
12331 * python/py-framefilter.c (py_print_frame)
12332 (gdbpy_apply_frame_filter): Change type of "flags".
12333 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12334 of "flags".
12335 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12336 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12337 * extension.h (enum frame_filter_flag): Rename from
12338 frame_filter_flags.
12339 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12340 (apply_ext_lang_frame_filter): Change type of "flags".
12341 * extension.c (apply_ext_lang_frame_filter): Change type of
12342 "flags".
12343 * extension-priv.h (struct extension_language_ops)
12344 <apply_frame_filter>: Change type of "flags".
12345
12346 2018-02-26 Tom Tromey <tom@tromey.com>
12347
12348 PR python/16497:
12349 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12350 off-by-one in py_end computation.
12351 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12352 PRINT_MORE_FRAMES.
12353 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12354 constant.
12355
12356 2018-02-26 Tom Tromey <tom@tromey.com>
12357
12358 * dwarf2read.c (struct variant_field): New.
12359 (struct nextfield) <variant>: New field.
12360 (dwarf2_add_field): Handle DW_TAG_variant_part.
12361 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12362 discriminated union.
12363 (read_structure_type): Handle DW_TAG_variant_part.
12364 (handle_struct_member_die): New function, extracted from
12365 process_structure_scope. Handle DW_TAG_variant.
12366 (process_structure_scope): Handle discriminated unions. Call
12367 handle_struct_member_die.
12368
12369 2018-02-26 Tom Tromey <tom@tromey.com>
12370
12371 * rust-lang.h (rust_last_path_segment): Declare.
12372 * rust-lang.c (rust_last_path_segment): Now public. Change
12373 contract.
12374 (struct disr_info): Remove.
12375 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12376 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12377 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12378 (rust_enum_p, rust_enum_variant): New function.
12379 (rust_underscore_fields): Remove "offset" parameter.
12380 (rust_print_enum): New function.
12381 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12382 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12383 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12384 enums.
12385 (rust_internal_print_type): New function, from rust_print_type.
12386 Remove enum code.
12387 (rust_print_type): Call rust_internal_print_type.
12388 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12389 Update enum handling.
12390 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12391 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12392 (rust_union_quirks): New functions.
12393 (process_full_comp_unit, process_full_type_unit): Call
12394 rust_union_quirks.
12395 (process_structure_scope): Update rust_unions if necessary.
12396
12397 2018-02-26 Tom Tromey <tom@tromey.com>
12398
12399 * value.h (value_union_variant): Declare.
12400 * valops.c (value_union_variant): New function.
12401 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12402 (struct discriminant_info): New.
12403 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12404 enumerator.
12405 (struct main_type) <flag_discriminated_union>: New field.
12406
12407 2018-02-26 Tom Tromey <tom@tromey.com>
12408
12409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12410 unittests/unpack-selftests.c.
12411 * unittests/unpack-selftests.c: New file.
12412 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12413
12414 2018-02-26 Yao Qi <yao.qi@linaro.org>
12415
12416 * dwarf2read.c (struct partial_die_info) <read>: New method.
12417 (read_partial_die): Remove the declaration.
12418 (load_partial_dies): Update.
12419 (partial_die_info::partial_die_info):
12420 (read_partial_die): Change it to partial_die_info::read.
12421
12422 2018-02-26 Yao Qi <yao.qi@linaro.org>
12423
12424 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12425 (fixup_partial_die): Remove declaration.
12426 (scan_partial_symbols): Update.
12427 (partial_die_parent_scope): Likewise.
12428 (partial_die_full_name): Likewise.
12429 (fixup_partial_die): Change it to partial_die_info::fixup.
12430
12431 2018-02-26 Yao Qi <yao.qi@linaro.org>
12432
12433 * dwarf2read.c (read_partial_die): Update the declaration.
12434 (load_partial_dies): Caller update.
12435 (read_partial_die): Remove one argument abbrev_len.
12436
12437 2018-02-26 Yao Qi <yao.qi@linaro.org>
12438
12439 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12440 assignment operator.
12441 (load_partial_dies): Use ctor and copy ctor.
12442 (read_partial_die): Update.
12443 (dwarf2_cu::find_partial_die): Use ctor.
12444
12445 2018-02-26 Yao Qi <yao.qi@linaro.org>
12446
12447 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12448 (find_partial_die_in_comp_unit): Change it to
12449 dwarf2_cu::find_partial_die.
12450 (find_partial_die): Update.
12451
12452 2018-02-26 Yao Qi <yao.qi@linaro.org>
12453
12454 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12455 is NULL.
12456
12457 2018-02-26 Yao Qi <yao.qi@linaro.org>
12458
12459 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12460
12461 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12462
12463 * arch/amd64.h: Use common/tdesc.h.
12464 * arch/i386.c: Likewise.
12465 * arch/i386.h: Likewise.
12466 * arch/tic6x.c: Likewise.
12467 * arch/tdesc.h: Move file from here...
12468 * common/tdesc.h: ...to here.
12469 * features/aarch64-core.c: Regenerate.
12470 * features/aarch64-fpu.c: Regenerate.
12471 * features/i386/32bit-avx.c: Regenerate.
12472 * features/i386/32bit-avx512.c: Regenerate.
12473 * features/i386/32bit-core.c: Regenerate.
12474 * features/i386/32bit-linux.c: Regenerate.
12475 * features/i386/32bit-mpx.c: Regenerate.
12476 * features/i386/32bit-pkeys.c: Regenerate.
12477 * features/i386/32bit-sse.c: Regenerate.
12478 * features/i386/64bit-avx.c: Regenerate.
12479 * features/i386/64bit-avx512.c: Regenerate.
12480 * features/i386/64bit-core.c: Regenerate.
12481 * features/i386/64bit-linux.c: Regenerate.
12482 * features/i386/64bit-mpx.c: Regenerate.
12483 * features/i386/64bit-pkeys.c: Regenerate.
12484 * features/i386/64bit-segments.c: Regenerate.
12485 * features/i386/64bit-sse.c: Regenerate.
12486 * features/i386/x32-core.c: Regenerate.
12487 * features/tic6x-c6xp.c: Regenerate.
12488 * features/tic6x-core.c: Regenerate.
12489 * features/tic6x-gp.c: Regenerate.
12490 * target-descriptions.c: Use common/tdesc.h.
12491 * target-descriptions.h: Likewise.
12492
12493 2018-02-24 Tom Tromey <tom@tromey.com>
12494
12495 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12496 (try_thread_db_load_from_dir, thread_db_load_search): Use
12497 std::string.
12498 (info_auto_load_libthread_db_compare): Return bool. Change
12499 argument types.
12500 (info_auto_load_libthread_db): Use std::vector, std::string.
12501 Remove cleanups.
12502
12503 2018-02-24 Tom Tromey <tom@tromey.com>
12504
12505 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12506 std::string.
12507 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12508 std::string*.
12509 * gdbarch.c: Rebuild.
12510 * gdbarch.h: Rebuild.
12511 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12512 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12513 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12514 std::string*.
12515
12516 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12517
12518 * gdbtypes.h (sect_offset): Change type to uint64_t.
12519 (sect_offset_str): New function.
12520 * dwarf2read.c (create_addrmap_from_aranges): Use
12521 sect_offset_str.
12522 (error_check_comp_unit_head): Likewise.
12523 (create_debug_type_hash_table): Likewise.
12524 (read_cutu_die_from_dwo): Likewise.
12525 (init_cutu_and_read_dies): Likewise.
12526 (init_cutu_and_read_dies_no_follow): Likewise.
12527 (process_psymtab_comp_unit_reader): Likewise.
12528 (partial_die_parent_scope): Likewise.
12529 (peek_die_abbrev): Likewise.
12530 (process_queue): Likewise.
12531 (dwarf2_physname): Likewise.
12532 (read_namespace_alias): Likewise.
12533 (read_import_statement): Likewise.
12534 (create_dwo_cu_reader): Likewise.
12535 (create_cus_hash_table): Likewise.
12536 (lookup_dwo_cutu): Likewise.
12537 (inherit_abstract_dies): Likewise.
12538 (read_func_scope): Likewise.
12539 (read_call_site_scope): Likewise.
12540 (dwarf2_add_member_fn): Likewise.
12541 (read_common_block): Likewise.
12542 (read_module_type): Likewise.
12543 (read_typedef): Likewise.
12544 (read_subrange_type): Likewise.
12545 (load_partial_dies): Likewise.
12546 (read_partial_die): Likewise.
12547 (find_partial_die): Likewise.
12548 (read_str_index): Likewise.
12549 (dwarf2_string_attr): Likewise.
12550 (build_error_marker_type): Likewise.
12551 (lookup_die_type): Likewise.
12552 (dump_die_shallow): Likewise.
12553 (follow_die_ref): Likewise.
12554 (dwarf2_fetch_die_loc_sect_off): Likewise.
12555 (dwarf2_fetch_constant_bytes): Likewise.
12556 (follow_die_sig): Likewise.
12557 (get_signatured_type): Likewise.
12558 (get_DW_AT_signature_type): Likewise.
12559 (dwarf2_find_containing_comp_unit): Likewise.
12560 (set_die_type): Likewise.
12561
12562 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12563
12564 * arch/aarch64.c: Include "common-defs.h".
12565 * arch/amd64.c: Likewise.
12566 * arch/i386.c: Likewise.
12567
12568 2018-02-21 Tom Tromey <tom@tromey.com>
12569
12570 * value.h: (extract_field_op): Update.
12571 * eval.c (extract_field_op): Return a const char *.
12572 * expression.h (parse_expression_for_completion): Update.
12573 * completer.c (complete_expression): Update.
12574 (add_struct_fields): Make fieldname const.
12575 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12576 (mark_completion_tag, parse_exp_in_context_1): Update.
12577 (parse_expression_for_completion): Change "name" to
12578 unique_xmalloc_ptr*.
12579
12580 2018-02-21 Tom Tromey <tom@tromey.com>
12581
12582 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12583
12584 2018-02-21 Yao Qi <yao.qi@linaro.org>
12585
12586 * avr-tdep.c (avr_read_pc): Change parameter type to
12587 readable_regcache.
12588 * gdbarch.sh (read_pc): Likewise.
12589 * gdbarch.c: Re-generated.
12590 * gdbarch.h: Re-generated.
12591 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12592 readable_regcache.
12593 * ia64-tdep.c (ia64_read_pc): Likewise.
12594 * mips-tdep.c (mips_read_pc): Likewise.
12595 * spu-tdep.c (spu_read_pc): Likewise.
12596
12597 2018-02-21 Yao Qi <yao.qi@linaro.org>
12598
12599 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12600 * regcache-dump.c: New file.
12601 * regcache.c: Move register_dump to regcache-dump.c.
12602 (maintenance_print_registers): Likewise.
12603 (maintenance_print_raw_registers): Likewise.
12604 (maintenance_print_cooked_registers): Likewise.
12605 (maintenance_print_register_groups): Likewise.
12606 (maintenance_print_remote_registers): Likewise.
12607 (_initialize_regcache): Likewise.
12608 * regcache.h (register_dump): Moved from regcache.c.
12609
12610 2018-02-21 Yao Qi <yao.qi@linaro.org>
12611
12612 * regcache.c (regcache::regcache): Update.
12613 (regcache::invalidate): Move it to detached_regcache::invalidate.
12614 (get_thread_arch_aspace_regcache): Update.
12615 (regcache::raw_update): Update.
12616 (regcache::cooked_read): Remove some code.
12617 (regcache::cooked_read_value): Likewise.
12618 (regcache::raw_write): Remove assert on m_readonly_p.
12619 (regcache::raw_supply_integer): Move it to
12620 detached_regcache::raw_supply_integer.
12621 (regcache::raw_supply_zeroed): Likewise.
12622 * regcache.h (detached_regcache) <raw_supply_integer>: New
12623 declaration.
12624 <raw_supply_zeroed, invalidate>: Likewise.
12625 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12626 <invalidate>: Likewise.
12627 <m_readonly_p>: Removed.
12628
12629 2018-02-21 Yao Qi <yao.qi@linaro.org>
12630
12631 * infcmd.c (get_return_value): Let stop_regs point to
12632 get_current_regcache.
12633 * regcache.c (regcache::regcache): Remove.
12634 (register_dump_reg_buffer): New class.
12635 (regcache_print): Adjust.
12636 * regcache.h (regcache): Remove constructors.
12637
12638 2018-02-21 Yao Qi <yao.qi@linaro.org>
12639
12640 * regcache.c (class register_dump): New class.
12641 (register_dump_regcache, register_dump_none): New class.
12642 (register_dump_remote, register_dump_groups): New class.
12643 (regcache_print): Update.
12644 * regcache.h (regcache_dump_what): Move it to regcache.c.
12645 (regcache) <dump>: Remove.
12646
12647 2018-02-21 Yao Qi <yao.qi@linaro.org>
12648
12649 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12650 reg_buffer_rw *.
12651 (jit_unwind_reg_set_impl): Call raw_supply.
12652 (jit_frame_sniffer): Use reg_buffer_rw.
12653 * record-full.c (record_full_core_regbuf): Change its type.
12654 (record_full_core_open_1): Use reg_buffer_rw.
12655 (record_full_close): Likewise.
12656 (record_full_core_fetch_registers): Use regcache->raw_supply.
12657 (record_full_core_store_registers): Likewise.
12658 * regcache.c (regcache::get_register_status): Move it to
12659 reg_buffer.
12660 (regcache_raw_set_cached_value): Remove.
12661 (regcache::raw_set_cached_value): Remove.
12662 (regcache::raw_write): Call raw_supply.
12663 (regcache::raw_supply): Move it to reg_buffer_rw.
12664 * regcache.h (regcache_raw_set_cached_value): Remove.
12665 (reg_buffer_rw): New class.
12666
12667 2018-02-21 Yao Qi <yao.qi@linaro.org>
12668
12669 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12670 readonly_detached_regcache.
12671 (dummy_frame_prev_register): Use regcache->cooked_read.
12672 * frame.c (frame_save_as_regcache): Change return type.
12673 (frame_pop): Update.
12674 * frame.h (frame_save_as_regcache): Update declaration.
12675 * inferior.h (get_infcall_suspend_state_regcache): Update
12676 declaration.
12677 * infrun.c (infcall_suspend_state) <registers>: use
12678 readonly_detached_regcache.
12679 (save_infcall_suspend_state): Don't use regcache_dup.
12680 (get_infcall_suspend_state_regcache): Change return type.
12681 * linux-fork.c (struct fork_info) <savedregs>: Change to
12682 readonly_detached_regcache.
12683 <pc>: New field.
12684 (fork_save_infrun_state): Don't use regcache_dup.
12685 (info_checkpoints_command): Adjust.
12686 * mi/mi-main.c (register_changed_p): Update declaration.
12687 (mi_cmd_data_list_changed_registers): Use
12688 readonly_detached_regcache.
12689 (register_changed_p): Change parameter type to
12690 readonly_detached_regcache.
12691 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12692 readonly_detached_regcache.
12693 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12694 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12695 New.
12696 (regcache::save): Move it to reg_buffer.
12697 (regcache::restore): Change parameter type.
12698 (regcache_dup): Remove.
12699 * regcache.h (reg_buffer) <save>: New method.
12700 (readonly_detached_regcache): New class.
12701 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12702 readonly_detached_regcache.
12703 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12704
12705 2018-02-21 Yao Qi <yao.qi@linaro.org>
12706
12707 * frame.c (frame_save_as_regcache): Use regcache method save.
12708 (frame_pop): Use regcache method restore.
12709 * infrun.c (restore_infcall_suspend_state): Likewise.
12710 * linux-fork.c (fork_load_infrun_state): Likewise.
12711 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12712 save.
12713 * regcache.c (regcache_save): Remove.
12714 (regcache::restore): More asserts.
12715 (regcache_cpy): Remove.
12716 * regcache.h (regcache_save): Remove the declaration.
12717 (regcache::restore): Move from private to public.
12718 Remove the friend declaration of regcache_cpy.
12719 (regcache_cpy): Remove declaration.
12720
12721 2018-02-21 Yao Qi <yao.qi@linaro.org>
12722
12723 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12724 parameter type to 'readable_regcache *'.
12725 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12726 * arm-tdep.c (arm_neon_quad_read): Likewise.
12727 (arm_pseudo_read): Likewise.
12728 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12729 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12730 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12731 * gdbarch.c: Re-generated.
12732 * gdbarch.h: Re-generated.
12733 * gdbarch.sh (pseudo_register_read): Change parameter type to
12734 'readable_regcache *'.
12735 (pseudo_register_read_value): Likewise.
12736 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12737 (h8300_pseudo_register_read): Likewise.
12738 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12739 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12740 (i386_pseudo_register_read_into_value): Likewise.
12741 (i386_pseudo_register_read_value): Likewise.
12742 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12743 declaration.
12744 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12745 * m32c-tdep.c (m32c_raw_read): Likewise.
12746 (m32c_read_flg): Likewise.
12747 (m32c_banked_register): Likewise.
12748 (m32c_banked_read): Likewise.
12749 (m32c_sb_read): Likewise.
12750 (m32c_part_read): Likewise.
12751 (m32c_cat_read): Likewise.
12752 (m32c_r3r2r1r0_read): Likewise.
12753 (m32c_pseudo_register_read): Likewise.
12754 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12755 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12756 (mep_pseudo_cr64_read): Likewise.
12757 (mep_pseudo_register_read): Likewise.
12758 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12759 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12760 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12761 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12762 (regcache::cooked_read): Likewise.
12763 (regcache::cooked_read_value): Likewise.
12764 (regcache_cooked_read_signed):
12765 (regcache::cooked_read): Likewise.
12766 * regcache.h (readable_regcache): New class.
12767 (regcache): Inherit readable_regcache. Move some methods to
12768 readable_regcache.
12769 * rl78-tdep.c (rl78_pseudo_register_read): Change
12770 parameter type to 'readable_regcache *'.
12771 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12772 (e500_pseudo_register_read): Change parameter type to
12773 'readable_regcache *'.
12774 (dfp_pseudo_register_read): Likewise.
12775 (vsx_pseudo_register_read): Likewise.
12776 (efpr_pseudo_register_read): Likewise.
12777 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12778 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12779 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12780 (sh64_pseudo_register_read): Likewise.
12781 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12782 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12783 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12784 (spu_pseudo_register_read): Likewise.
12785 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12786 (xtensa_pseudo_register_read): Likewise.
12787
12788 2018-02-21 Yao Qi <yao.qi@linaro.org>
12789
12790 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12791 (regcache::arch): Move it to reg_buffer::arch.
12792 (regcache::register_buffer): Likewise.
12793 (regcache::assert_regnum): Likewise.
12794 (regcache::num_raw_registers): Likewise.
12795 * regcache.h (reg_buffer): New class.
12796 (regcache): Inherit reg_buffer.
12797
12798 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12799
12800 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12801 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12802
12803 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12804
12805 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12806
12807 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12808
12809 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12810 (SFILES): Remove common/*.c files.
12811 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12812 * common/common.host: Add common reference.
12813 * configure.ac: Likewise.
12814 * configure: Regenerate.
12815
12816 2018-02-16 Yao Qi <yao.qi@linaro.org>
12817
12818 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12819 (block_initialize_namespace): Use new.
12820 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12821 (dwarf2_free_objfile): Use delete.
12822 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12823 (copy_type_recursive): Use new.
12824 * gdb_obstack.h (allocate_on_obstack): New.
12825
12826 2018-02-15 Yao Qi <yao.qi@linaro.org>
12827
12828 PR gdb/22849
12829 * inferior.c (exit_inferior_1): Reset inf->control.
12830
12831 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12832
12833 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12834 declaration.
12835
12836 2018-02-14 Pedro Alves <palves@redhat.com>
12837
12838 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12839 frame_cleanup_after_sniffer on exception.
12840
12841 2018-02-14 Tom Tromey <tom@tromey.com>
12842
12843 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12844 const.
12845 (solib_bfd_open): Make pathname const.
12846 * solib.c (solib_bfd_open): Make pathname const.
12847 * solib-spu.c (spu_bfd_fopen): Make name const.
12848 (spu_bfd_open): Make pathname const.
12849 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12850 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12851
12852 2018-02-14 Tom Tromey <tom@tromey.com>
12853
12854 * symfile.c (symfile_bfd_open): Update.
12855 * source.h (openp, source_full_path_of, find_and_open_source):
12856 Change argument type to unique_xmalloc_ptr.
12857 * source.c (openp): Take a unique_xmalloc_ptr.
12858 (source_full_path_of, find_and_open_source): Likewise.
12859 (open_source_file, symtab_to_fullname): Update.
12860 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12861 unique_xmalloc_ptr.
12862 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12863 (exec_file_find): Update.
12864 * psymtab.c (psymtab_to_fullname): Update.
12865 * nto-tdep.h (nto_find_and_open_solib): Update.
12866 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12867 unique_xmalloc_ptr.
12868 * exec.c (exec_file_attach): Update.
12869 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12870 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12871
12872 2018-02-14 Tom Tromey <tom@tromey.com>
12873
12874 * solib.c: Include source.h.
12875 * nto-tdep.c: Include source.h.
12876 * mi/mi-cmd-env.c: Include source.h.
12877 * infcmd.c: Include source.h.
12878 * exec.c: Include source.h.
12879 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12880 (add_path, directory_switch, source_path, init_source_path): Move
12881 declarations...
12882 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12883 (add_path, directory_switch, source_path, init_source_path):
12884 ...here.
12885
12886 2018-02-14 Tom Tromey <tom@tromey.com>
12887
12888 * solist.h (exec_file_find, solib_find): Return
12889 unique_xmalloc_ptr.
12890 (solib_bfd_fopen): Take a const char *.
12891 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12892 (exec_file_find, solib_find): Likewise.
12893 (solib_bfd_fopen): Do not take ownership of "pathname".
12894 (solib_bfd_open): Use unique_xmalloc_ptr.
12895 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12896 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12897 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12898 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12899
12900 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12901
12902 * ada-lang.c (name_match_type_from_name): Remove reference to
12903 ada_name_for_lookup in function's documentation.
12904 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12905
12906 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12907
12908 * defs.h (enum openp_flags): New enum.
12909 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12910 Move to enum openp_flags.
12911 (openp_flags): New enum flags.
12912 (openp): Change parameter type to openp_flags.
12913 * source.c (openp): Change parameter type to openp_flags.
12914 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12915 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12916
12917 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12918
12919 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12920 per-command.
12921
12922 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12923
12924 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12925 into...
12926 (class dwarf2_queue_guard): ...the destructor of this new class.
12927 (dw2_do_instantiate_symtab): Create instance of the new class
12928 dwarf2_queue_guard, remove cleanup.
12929
12930 2018-02-09 Tom Tromey <tom@tromey.com>
12931
12932 * source.c (find_source_lines): Don't reference past the end of
12933 the vector.
12934
12935 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12936
12937 * remote.c (remote_btrace_maybe_reopen): Change error message.
12938 * btrace.c (btrace_enable): Likewise.
12939 (parse_xml_btrace): Likewise.
12940 (parse_xml_btrace_conf): Likewise.
12941
12942 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12943
12944 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12945 (linux_enable_pt, linux_enable_bts): Call
12946 diagnose_perf_event_open_fail.
12947
12948 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12949
12950 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12951 Remove parameter and change return type. Update callers. Move it.
12952 (linux_enable_bts, linux_enable_pt): Improve error message.
12953 (linux_enable_pt): Remove zero buffer size check.
12954 (linux_enable_btrace): Improve error messages. Remove NULL return
12955 check.
12956
12957 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12958
12959 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12960 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12961 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12962 (linux_supports_pt, linux_supports_btrace): Remove.
12963 (linux_enable_bts): Call cpu_supports_bts.
12964 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12965 * remote.c (remote_supports_btrace): Remove.
12966 (init_remote_ops): Remove remote_supports_btrace.
12967 * target-delegates.c: Regenerated.
12968 * target.c (target_supports_btrace): Remove.
12969 * target.h (target_ops) <to_supports_btrace>: Remove
12970 (target_supports_btrace): Remove.
12971 * x86-linux-nat.c (x86_linux_create_target): Remove
12972 linux_supports_btrace.
12973
12974 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12975
12976 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12977 btrace failed.
12978 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12979 exception and use message in own exception.
12980
12981 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12982
12983 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12984 (perf_event_pt_event_type): Use gdb_file_up.
12985 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12986 scoped_fd, and scoped_mmap.
12987
12988 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12989
12990 * common/scoped_mmap.h: New.
12991 * unittests/scoped_mmap-selftest.c: New.
12992 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12993 unittests/scoped_mmap-selftest.c.
12994
12995 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12996
12997 * common/scoped_fd.h: New.
12998 * unittests/scoped_fd-selftest.c: New.
12999 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13000 unittests/scoped_fd-selftest.c.
13001
13002 2018-02-09 Tom Tromey <tom@tromey.com>
13003
13004 * auto-load.c (auto_load_section_scripts): Use
13005 gdb::unique_xmalloc_ptr.
13006
13007 2018-02-09 Tom Tromey <tom@tromey.com>
13008
13009 * auto-load.c (execute_script_contents): Use std::string.
13010
13011 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13012
13013 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13014 Python function, rather than a new command.
13015
13016 2018-02-08 Tom Tromey <tom@tromey.com>
13017
13018 * solib.c (solib_find_1): Use std::string.
13019 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13020
13021 2018-02-08 Tom Tromey <tom@tromey.com>
13022
13023 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13024
13025 2018-02-08 Tom Tromey <tom@tromey.com>
13026
13027 * source.c (find_source_lines): Use gdb::def_vector.
13028
13029 2018-02-08 Tom Tromey <tom@tromey.com>
13030
13031 * macrocmd.c (struct temporary_macro_definition): New.
13032 (macro_define_command): Use temporary_macro_definition. Remove
13033 cleanups.
13034 (free_macro_definition_ptr): Remove.
13035
13036 2018-02-08 Tom Tromey <tom@tromey.com>
13037
13038 * macroexp.c (maybe_expand): Use std::string.
13039
13040 2018-02-08 Tom Tromey <tom@tromey.com>
13041
13042 * macroexp.c (struct macro_buffer): Add initializers for some
13043 members.
13044 (init_buffer, init_shared_buffer, free_buffer)
13045 (free_buffer_return_text): Remove.
13046 (macro_buffer): New constructors.
13047 (~macro_buffer): New destructor.
13048 (macro_buffer::set_shared): New method.
13049 (macro_buffer::resize_buffer, macro_buffer::appendc)
13050 (macro_buffer::appendmem): Now methods, not free functions.
13051 (set_token, append_tokens_without_splicing, stringify)
13052 (macro_stringify): Update.
13053 (gather_arguments): Change return type. Remove argc_p argument,
13054 add args_ptr argument. Use std::vector.
13055 (substitute_args): Remove argc argument. Accept std::vector.
13056 (expand): Update. Use std::vector.
13057 (scan, macro_expand, macro_expand_next): Update.
13058
13059 2018-02-08 Tom Tromey <tom@tromey.com>
13060
13061 * symtab.c (default_collect_symbol_completion_matches_break_on):
13062 Use unique_xmalloc_ptr.
13063 * macroscope.h: (sal_macro_scope, user_macro_scope)
13064 (default_macro_scope): Return unique_xmalloc_ptr.
13065 * macroscope.c (sal_macro_scope, user_macro_scope)
13066 (default_macro_scope): Return unique_xmalloc_ptr.
13067 * macroexp.h (macro_expand, macro_expand_once): Return
13068 unique_xmalloc_ptr.
13069 * macroexp.c (macro_expand, macro_expand_once): Return
13070 unique_xmalloc_ptr.
13071 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13072 (info_macro_command, info_macros_command): Use
13073 unique_xmalloc_ptr.
13074 * compile/compile-c-support.c (write_macro_definitions): Use
13075 unique_xmalloc_ptr.
13076 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13077
13078 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13079
13080 * value.c (value_static_field): Assign field type instead of
13081 containing type when returning an optimized out value.
13082
13083 2018-02-06 Yao Qi <yao.qi@linaro.org>
13084
13085 * ft32-tdep.c (ft32_read_pc): Remove.
13086 (ft32_write_pc): Remove.
13087 (ft32_gdbarch_init): Update.
13088 * m32r-tdep.c (m32r_read_pc): Remove.
13089 (m32r_gdbarch_init): Update.
13090 * mep-tdep.c (mep_read_pc): Remove.
13091 (mep_gdbarch_init): Update.
13092 * microblaze-tdep.c (microblaze_write_pc): Remove.
13093 (microblaze_gdbarch_init): Update.
13094 * mn10300-tdep.c (mn10300_read_pc): Remove.
13095 (mn10300_write_pc): Remove.
13096 (mn10300_gdbarch_init): Update.
13097 * moxie-tdep.c (moxie_read_pc): Remove.
13098 (moxie_write_pc): Remove.
13099 (moxie_gdbarch_init): Update.
13100
13101 2018-02-06 Yao Qi <yao.qi@linaro.org>
13102
13103 * expprint.c (print_subexp_standard): Handle
13104 OP_F77_UNDETERMINED_ARGLIST.
13105 (dump_subexp_body_standard): Likewise.
13106
13107 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13108
13109 * target-descriptions.c (tdesc_element_visitor) Add empty
13110 implementations.
13111 (tdesc_type): Move make_gdb_type from here.
13112 (tdesc_type_builtin): Likewise.
13113 (tdesc_type_vector): Likewise.
13114 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13115 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13116 (make_gdb_type_union): Likewise.
13117 (make_gdb_type_flags): Likewise.
13118 (make_gdb_type_enum): Likewise.
13119 (make_gdb_type): New function.
13120 (tdesc_register_type): Use static make_gdb_type.
13121
13122 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13123
13124 * infcmd.c (default_print_one_register_info): Align natural-format
13125 column values consistently one under another.
13126 (pad_to_column): New function.
13127
13128 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13129
13130 * dwarf2read.c (dwarf2_physname): Move commment.
13131
13132 2018-02-01 Leszek Swirski <leszeks@google.com>
13133
13134 * varobj.c (varobj_formatted_print_options): Allow recursive
13135 pretty printing if pretty printing is enabled.
13136
13137 2018-02-01 Leszek Swirski <leszeks@google.com>
13138
13139 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13140 names after a structop as a filename.
13141
13142 2018-02-01 Yao Qi <yao.qi@linaro.org>
13143
13144 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13145 (arm_record_coproc_data_proc): Likewise.
13146
13147 2018-02-01 Yao Qi <yao.qi@linaro.org>
13148
13149 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13150
13151 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13152
13153 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13154 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13155
13156 2018-01-31 Pedro Alves <palves@redhat.com>
13157
13158 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13159 * inflow.c (child_terminal_save_inferior): Wrap reference to
13160 tcgetpgrp in HAVE_TERMIOS_H.
13161 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13162 _WIN32.
13163 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13164 always iterate over all inferiors.
13165 (gdbsim_cntrl_c): Adjust.
13166 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13167
13168 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13169
13170 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13171 index type is objfile-owned if the element type is as well.
13172
13173 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13174
13175 GDB 8.1 released.
13176
13177 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13178
13179 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13180 "features/s390x-linux64.c".
13181 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13182 s390_linux32 and s390x_linux64.
13183 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13184 default tdesc.
13185 * s390-tdep.c: Include "features/s390-linux32.c" and
13186 "features/s390x-linux64.c".
13187 (s390_tdesc_valid): Add check for tdesc_has_registers.
13188 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13189 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13190 tdesc_s390x_linux64.
13191 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13192 tdesc_s390x_linux64 to...
13193 * s390-tdep.h: ...here.
13194
13195 2018-01-30 Pedro Alves <palves@redhat.com>
13196
13197 PR gdb/13211
13198 * config.in, configure: Regenerate.
13199 * configure.ac: Check for getpgid.
13200 * go32-nat.c (go32_pass_ctrlc): New.
13201 (go32_target): Install it.
13202 * inf-child.c (inf_child_target): Install
13203 child_terminal_save_inferior, child_pass_ctrlc and
13204 child_interrupt.
13205 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13206 (inf_ptrace_target): No longer install it.
13207 * infcmd.c (interrupt_target_1): Adjust.
13208 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13209 (child_interrupt): Declare.
13210 (inferior::terminal_state): New.
13211 * inflow.c (struct terminal_info): Update comments.
13212 (inferior_process_group): Delete.
13213 (terminal_is_ours): Delete.
13214 (gdb_tty_state): New.
13215 (child_terminal_init): Adjust.
13216 (is_gdb_terminal, sharing_input_terminal_1)
13217 (sharing_input_terminal): New functions.
13218 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13219 Set the process's actual process group in the foreground if
13220 possible. Handle is_ours_for_output/is_ours distinction. Don't
13221 mark terminal as the inferior's if not sharing GDB's terminal.
13222 Don't check attach_flag.
13223 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13224 pass down a target_terminal_state.
13225 (child_terminal_save_inferior): New, factored out from ...
13226 (child_terminal_ours_1): ... this. Handle
13227 target_terminal_state::is_ours_for_output.
13228 (child_interrupt, child_pass_ctrlc): New.
13229 (inflow_inferior_exit): Clear the inferior's terminal_state.
13230 (copy_terminal_info): Copy the inferior's terminal state.
13231 (_initialize_inflow): Remove reference to terminal_is_ours.
13232 * inflow.h (inferior_process_group): Delete.
13233 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13234 * procfs.c (procfs_target): Don't install procfs_interrupt.
13235 (procfs_interrupt): Delete.
13236 * remote.c (remote_serial_quit_handler): Adjust.
13237 (remote_interrupt): Remove ptid parameter. Adjust.
13238 * target-delegates.c: Regenerate.
13239 * target.c: Include "terminal.h".
13240 (target_terminal::terminal_state): Rename to ...
13241 (target_terminal::m_terminal_state): ... this.
13242 (target_terminal::init): Adjust.
13243 (target_terminal::inferior): Adjust to per-inferior
13244 terminal_state.
13245 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13246 (target_terminal::ours, target_terminal::ours_for_output): Use
13247 target_terminal_is_ours_kind.
13248 (target_interrupt): Remove ptid parameter. Adjust.
13249 (default_target_pass_ctrlc): Adjust.
13250 * target.h (target_ops::to_terminal_save_inferior): New field.
13251 (target_ops::to_interrupt): Remove ptid_t parameter.
13252 (target_interrupt): Remove ptid_t parameter. Update comment.
13253 (target_pass_ctrlc): Update comment.
13254 * target/target.h (target_terminal_state): New scoped enum,
13255 factored out of ...
13256 (target_terminal::terminal_state): ... here.
13257 (target_terminal::inferior): Update comments.
13258 (target_terminal::restore_inferior): New.
13259 (target_terminal::is_inferior, target_terminal::is_ours)
13260 (target_terminal::is_ours_for_output): Adjust.
13261 (target_terminal::scoped_restore_terminal_state): Adjust to
13262 rename, and call restore_inferior() instead of inferior().
13263 (target_terminal::scoped_restore_terminal_state::m_state): Change
13264 type.
13265 (target_terminal::terminal_state): Rename to ...
13266 (target_terminal::m_terminal_state): ... this and change type.
13267
13268 2018-01-30 Pedro Alves <palves@redhat.com>
13269
13270 * linux-nat.c (wait_for_signal): New function.
13271 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13272 directly.
13273 (async_terminal_is_ours)
13274 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13275 (linux_nat_add_target): Don't override
13276 to_terminal_inferior/to_terminal_ours.
13277
13278 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13279
13280 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13281
13282 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13283
13284 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13285 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13286 dwarf2_per_objfile_free here.
13287 (dwarf2_per_objfile_free): Remove.
13288 (_initialize_dwarf2_read): Don't register
13289 dwarf2_per_objfile_free as a registry cleanup.
13290
13291 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13292
13293 Avoid compilation errors in MinGW native builds
13294
13295 The error is triggered by including python-internal.h, and the
13296 error message is:
13297
13298 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13299 from build-gnulib/import/math.h:27,
13300 from d:/usr/Python26/include/pyport.h:235,
13301 from d:/usr/Python26/include/Python.h:58,
13302 from python/python-internal.h:94,
13303 from python/py-arch.c:24:
13304 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13305 using ::hypot;
13306 ^~~~~
13307
13308 This happens because Python headers define 'hypot' to expand t
13309 '_hypot' in the Windows builds.
13310 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13311 'hypoth'. This avoids a compilation error.
13312
13313 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13314
13315 * MAINTAINERS (Write After Approval): Fix ordering.
13316
13317 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13318
13319 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13320
13321 2018-01-26 Alan Modra <amodra@gmail.com>
13322
13323 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13324 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13325 Remove nop. Make const. Comment.
13326 (powerpc32_plt_stub_so_2): New.
13327 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13328 Correct count. Update uses.
13329 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13330 Move common code reading PLT entry word. Correct
13331 powerpc32_plt_stub PLT address calculation.
13332 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13333 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13334 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13335 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13336 (ppc64_standard_linkage8): Likewise.
13337 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13338 Correct insns description.
13339 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13340
13341 2018-01-24 Pedro Alves <palves@redhat.com>
13342
13343 GCC PR libstdc++/83906
13344 * gdbtypes.c (operator==(const dynamic_prop &,
13345 const dynamic_prop &)): New.
13346 (operator==(const range_bounds &, const range_bounds &)): New.
13347 (check_types_equal): Use them instead of memcmp.
13348 * gdbtypes.h (operator==(const dynamic_prop &,
13349 const dynamic_prop &)): Declare.
13350 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13351 (operator==(const range_bounds &, const range_bounds &)): Declare.
13352 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13353
13354 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13355
13356 * s390-linux-tdep.c (s390_record_address_mask)
13357 (s390_record_calc_disp_common, s390_record_calc_disp)
13358 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13359 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13360 (s390_process_record): Move to s390-tdep.c.
13361 (s390_linux_init_abi_any): Adjust.
13362 * s390-tdep.c (s390_record_address_mask)
13363 (s390_record_calc_disp_common, s390_record_calc_disp)
13364 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13365 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13366 (s390_process_record): Moved from s390-linux-tdep.c
13367 (s390_gdbarch_init): Adjust.
13368
13369 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13370
13371 * s390-linux-nat.c (s390-tdep.h): New include.
13372 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13373 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13374 (ALLDEPFILES): Add s390-tdep.c.
13375 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13376 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13377 * s390-tdep.h: ...this. New file.
13378 * s390-linux-tdep.c (s390-tdep.h): New include.
13379 (_initialize_s390_tdep): Rename to...
13380 (_initialize_s390_linux_tdep): ...this and adjust.
13381 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13382 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13383 s390-tdep.h.
13384 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13385 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13386 (s390_is_partial_instruction, s390_software_single_step)
13387 (is_non_branch_ril, s390_displaced_step_copy_insn)
13388 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13389 (s390_prologue_data, s390_addr, s390_store, s390_load)
13390 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13391 (s390_register_call_saved, s390_guess_tracepoint_registers)
13392 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13393 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13394 (s390_pseudo_register_name, s390_pseudo_register_type)
13395 (s390_pseudo_register_read, s390_pseudo_register_write)
13396 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13397 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13398 (s390_addr_bits_remove, s390_address_class_type_flags)
13399 (s390_address_class_type_flags_to_name)
13400 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13401 (s390_function_arg_float, s390_function_arg_vector)
13402 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13403 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13404 (s390_frame_align, s390_register_return_value, s390_return_value)
13405 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13406 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13407 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13408 (s390_trad_frame_prev_register, s390_unwind_cache)
13409 (s390_prologue_frame_unwind_cache)
13410 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13411 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13412 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13413 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13414 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13415 (s390_frame_base_address, s390_local_base_address)
13416 (s390_frame_base, s390_gcc_target_options)
13417 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13418 (s390_validate_reg_range, s390_tdesc_valid)
13419 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13420 * s390-tdep.c: ...this. New file.
13421
13422 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13423
13424 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13425 (s390_process_record, s390_gdbarch_tdep_alloc)
13426 (s390_linux_init_abi_any): Use/set new hook.
13427
13428 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13429
13430 * s390-linux-tdep.c (osabi.h): New include.
13431 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13432 (s390_linux_init_abi_any): New functions.
13433 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13434
13435 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13436
13437 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13438 tdesc_has_registers check
13439
13440 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13441
13442 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13443 (s390_validate_reg_range): New macro.
13444 (s390_gdbarch_init): Adjust.
13445
13446 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13447
13448 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13449 (s390_gdbarch_tdep_alloc): Adjust.
13450 (s390_gdbarch_init): Adjust.
13451
13452 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13453
13454 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13455 <have_tdb>: Change type to bool.
13456 (s390_gdbarch_tdep_alloc): Adjust.
13457 (s390_gdbarch_init): Adjust.
13458
13459 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13460
13461 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13462 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13463 (s390_gdbarch_tdep_alloc): New function.
13464 (s390_gdbarch_init): Allocate tdep at start and use its fields
13465 instead of separate variables.
13466
13467 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13468
13469 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13470 when looking for cached gdbarch and add comment for remaining.
13471
13472 2018-01-22 Pedro Alves <palves@redhat.com>
13473 Sergio Durigan Junior <sergiodj@redhat.com>
13474
13475 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13476 case.
13477
13478 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13479
13480 * MAINTAINERS: Update my company e-mail address.
13481
13482 2018-01-22 Yao Qi <yao.qi@linaro.org>
13483
13484 * regcache.c (cooked_write_test): New function.
13485 (_initialize_regcache): Register the test.
13486
13487 2018-01-22 Yao Qi <yao.qi@linaro.org>
13488
13489 * ia64-tdep.c (ia64_pseudo_register_read): Call
13490 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13491 * m32c-tdep.c (m32c_cat_read): Likewise.
13492 (m32c_r3r2r1r0_read): Likewise.
13493 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13494 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13495
13496 2018-01-22 Yao Qi <yao.qi@linaro.org>
13497
13498 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13499 method raw_read instead of regcache_raw_read.
13500 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13501 * arm-tdep.c (arm_neon_quad_read): Likewise.
13502 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13503 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13504 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13505 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13506 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13507 (i386_pseudo_register_read_into_value): Likewise.
13508 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13509 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13510 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13511 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13512 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13513 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13514 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13515 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13516 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13517
13518 2018-01-22 Yao Qi <yao.qi@linaro.org>
13519
13520 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13521 * configure.tgt: Remove target mt.
13522 * mt-tdep.c: Remove.
13523 * regcache.c (cooked_read_test): Remove the check for mt.
13524
13525 2018-01-22 Yao Qi <yao.qi@linaro.org>
13526
13527 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13528 instead of gdbarch_pseudo_register_read_value.
13529
13530 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13531
13532 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13533 language is Ada.
13534
13535 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13536
13537 * linespec.c (create_sals_line_offset): Remove code that preserved
13538 the symtab_and_line's line number.
13539
13540 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13541
13542 * varobj.c (varobj_create): Don't set valid_block when creating a
13543 floating varobj.
13544
13545 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13546
13547 * varobj.c (varobj_create): Remove out of date comment.
13548
13549 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13550
13551 PR mi/20395
13552 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13553 updating innermost block.
13554 * parse.c (innermost_block_tracker::update): Take extra type
13555 parameter, and check types match before updating innermost block.
13556 (write_dollar_variable): Update innermost block for registers.
13557 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13558 (innermost_block_tracker::innermost_block_tracker): Initialise
13559 m_types member.
13560 (innermost_block_tracker::reset): Take type parameter.
13561 (innermost_block_tracker::update): Take type parameter, and pass
13562 type through as needed.
13563 (innermost_block_tracker::m_types): New member.
13564 * varobj.c (varobj_create): Pass type when reseting innermost
13565 block.
13566
13567 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13568
13569 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13570 * ada-lang.c (resolve_subexp): Likewise.
13571 * breakpoint.c (set_breakpoint_condition) Likewise.
13572 (watch_command_1) Likewise.
13573 * c-exp.y (variable): Likewise.
13574 * d-exp.y (PrimaryExpression): Likewise.
13575 * f-exp.y (variable): Likewise.
13576 * go-exp.y (variable): Likewise.
13577 * m2-exp.y (variable): Likewise.
13578 * objfiles.c (objfile::~objfile): Likewise.
13579 * p-exp.y (variable): Likewise.
13580 * parse.c (innermost_block): Change type.
13581 * parser-defs.h (class innermost_block_tracker): New.
13582 (innermost_block): Change to innermost_block_tracker.
13583 * printcmd.c (display_command): Switch to innermost_block API.
13584 (do_one_display): Likewise.
13585 * rust-exp.y (do_one_display): Likewise.
13586 * symfile.c (clear_symtab_users): Likewise.
13587 * varobj.c (varobj_create): Switch to innermost_block API, replace
13588 use of innermost_block with block stored on varobj object.
13589
13590 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13591
13592 * expression.h (innermost_block): Remove declaration.
13593 * varobj.c: Add 'parser-defs.h' include.
13594
13595 2018-01-19 Tom Tromey <tom@tromey.com>
13596
13597 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13598 symbols in the static and global blocks.
13599
13600 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13601
13602 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13603 gdb_ptrace.h, and move including gdb_wait.h ...
13604 * nat/linux-ptrace.h: ... to here.
13605
13606 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13607
13608 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13609 inf_ptrace_detach_success.
13610 (inf_ptrace_detach_success): Add inferior parameter, use it
13611 instead of inferior_ptid, pass it to detach_inferior.
13612 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13613 parameter.
13614 * inferior.c (detach_inferior): Add overload that takes an
13615 inferior object.
13616 * inferior.h (detach_inferior): Likewise.
13617 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13618 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13619 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13620
13621 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13622
13623 * target.h (struct target_ops) <to_detach>: Add inferior
13624 parameter.
13625 (target_detach): Likewise.
13626 * target.c (dispose_inferior): Pass inferior down.
13627 (target_detach): Pass inferior down. Assert that it is equal to
13628 the current inferior.
13629 * aix-thread.c (aix_thread_detach): Pass inferior down.
13630 * corefile.c (core_file_command): Pass current_inferior() down.
13631 * corelow.c (core_detach): Add inferior parameter.
13632 * darwin-nat.c (darwin_detach): Likewise.
13633 * gnu-nat.c (gnu_detach): Likewise.
13634 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13635 * infcmd.c (detach_command): Pass current_inferior() down to
13636 target_detach.
13637 * infrun.c (follow_fork_inferior): Pass parent_inf to
13638 target_detach.
13639 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13640 target_detach.
13641 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13642 * linux-thread-db.c (thread_db_detach): Likewise.
13643 * nto-procfs.c (procfs_detach): Likewise.
13644 * procfs.c (procfs_detach): Likewise.
13645 * record.c (record_detach): Likewise.
13646 * record.h (struct inferior): Forward-declare.
13647 (record_detach): Add inferior parameter.
13648 * remote-sim.c (gdbsim_detach): Likewise.
13649 * remote.c (remote_detach_1): Likewise.
13650 (remote_detach): Likewise.
13651 (extended_remote_detach): Likewise.
13652 * sol-thread.c (sol_thread_detach): Likewise.
13653 * target-debug.h (target_debug_print_inferior_p): New macro.
13654 * target-delegates.c: Re-generate.
13655 * top.c (kill_or_detach): Pass inferior down to target_detach.
13656 * windows-nat.c (windows_detach): Add inferior parameter.
13657
13658 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13659
13660 * target.h (struct target_ops) <to_detach>: Remove args
13661 parameter.
13662 (target_detach): Likewise.
13663 * target.c (dispose_inferior): Adjust.
13664 (target_detach): Remove args parameter, adjust.
13665 * aix-thread.c (aix_thread_detach): Adjust.
13666 * corefile.c (core_file_command): Adjust.
13667 * corelow.c (core_detach): Adjust.
13668 * darwin-nat.c (darwin_detach): Adjust.
13669 * gnu-nat.c (gnu_detach): Adjust.
13670 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13671 * infcmd.c (detach_command): Adjust
13672 * infrun.c (follow_fork_inferior): Adjust.
13673 (handle_vfork_child_exec_or_exit): Adjust.
13674 * linux-fork.c (linux_fork_detach): Remove args parameter.
13675 * linux-fork.h (linux_fork_detach): Likewise.
13676 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13677 * linux-thread-db.c (thread_db_detach): Likewise.
13678 * nto-procfs.c (procfs_detach): Likewise.
13679 * procfs.c (procfs_detach): Likewise.
13680 (do_detach): Remove signo parameter.
13681 * record.c (record_detach): Remove args parameter.
13682 * record.h (record_detach): Likewise.
13683 * remote-sim.c (gdbsim_detach): Likewise.
13684 * remote.c (remote_detach_1): Likewise.
13685 (remote_detach): Likewise.
13686 (extended_remote_detach): Likewise.
13687 * sol-thread.c (sol_thread_detach): Likewise.
13688 * target-delegates.c: Re-generate.
13689 * top.c (struct qt_args) <args>: Remove field.
13690 (kill_or_detach): Don't pass args.
13691 (quit_force): Don't set args.
13692 * windows-nat.c (windows_detach): Remove args parameter.
13693
13694 2018-01-19 Yao Qi <yao.qi@linaro.org>
13695
13696 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13697 (arm_linux_init_abi): Install it.
13698
13699 2018-01-19 Yao Qi <yao.qi@linaro.org>
13700
13701 * osabi.c (gdb_osabi_names): Extend the regexp for
13702 arm-linux-gnueabihf.
13703
13704 2018-01-18 Yao Qi <yao.qi@linaro.org>
13705
13706 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13707 m_abbrevs.
13708 (abbrev_table::add_abbrev): Update.
13709 (abbrev_table::lookup_abbrev): Update.
13710
13711 2018-01-18 Yao Qi <yao.qi@linaro.org>
13712
13713 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13714
13715 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13716
13717 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13718 to "std::string".
13719
13720 2018-01-17 Tom Tromey <tom@tromey.com>
13721
13722 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13723
13724 2018-01-17 Tom Tromey <tom@tromey.com>
13725
13726 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13727 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13728 (create_array_type_with_stride): Update.
13729 * dwarf2read.c (set_die_type): Update.
13730
13731 2018-01-17 Tom Tromey <tom@tromey.com>
13732
13733 * dwarf2read.c (delayed_method_info): Remove typedef.
13734 (dwarf2_cu::method_info): Now a std::vector.
13735 (add_to_method_list): Update.
13736 (free_delayed_list): Remove.
13737 (compute_delayed_physnames): Update.
13738 (process_full_comp_unit, process_full_type_unit): Clear the method
13739 list. Remove cleanups.
13740 (psymtab_include_file_name): Add name_holder parameter. Use
13741 unique_xmalloc_ptr.
13742 (dwarf_decode_lines): Update.
13743
13744 2018-01-17 Tom Tromey <tom@tromey.com>
13745 Simon Marchi <simon.marchi@ericsson.com>
13746
13747 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13748 (dwarf2_per_objfile::free_cached_comp_units)
13749 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13750 (init_cutu_and_read_dies_no_follow): Update.
13751 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13752 (dwarf2_cu::~dwarf2_cu): New.
13753 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13754 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13755
13756 2018-01-17 Tom Tromey <tom@tromey.com>
13757 Simon Marchi <simon.marchi@ericsson.com>
13758
13759 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13760 (struct die_reader_specs) <abbrev_table>: New member.
13761 (struct abbrev_table): Add constructor.
13762 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13763 <abbrev_obstack>: Now an auto_obstack.
13764 (abbrev_table_up): New typedef.
13765 (init_cu_die_reader): Add abbrev_table parameter.
13766 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13767 Add result_dwo_abbrev_table.
13768 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13769 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13770 Update.
13771 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13772 parameter.
13773 (skip_children): Update.
13774 (abbrev_table::alloc_abbrev): Rename from
13775 abbrev_table_alloc_abbrev.
13776 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13777 (abbrev_table::lookup_abbrev): Rename from
13778 abbrev_table_lookup_abbrev.
13779 (abbrev_table_read_table): Return abbrev_table_up.
13780 (abbrev_table_free, abbrev_table_free_cleanup)
13781 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13782 (load_partial_dies): Update.
13783
13784 2018-01-17 Tom Tromey <tom@tromey.com>
13785
13786 * dwarf2read.c (dwarf2_compute_name): Update comment.
13787 (read_func_scope, read_variable): Update.
13788 (new_symbol): Remove.
13789 (new_symbol_full): Rename to new_symbol.
13790
13791 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13792
13793 PR gdb/16577
13794 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13795 a warning instead of throwing an error, set section size to 0 and return
13796 NULL.
13797 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13798
13799 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13800
13801 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13802 std::string.
13803 (linux_ptrace_attach_fail_reason_string): Likewise.
13804 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13805 Likewise.
13806 (linux_ptrace_attach_fail_reason_string): Likewise.
13807 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13808
13809 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13810
13811 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13812
13813 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13814
13815 PR gdb/21559
13816 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13817 checking for fs_base/gs_base fields in struct user_regs_struct.
13818 * configure: Regenerate.
13819
13820 2018-01-17 Yao Qi <yao.qi@linaro.org>
13821
13822 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13823 function.
13824 (aarch64_linux_init_abi): Install it to gdbarch hook
13825 gcc_target_options.
13826
13827 2018-01-15 Pedro Alves <palves@redhat.com>
13828
13829 * common/signals-state-save-restore.c
13830 (save_original_signals_state): Fix typos.
13831
13832 2017-01-12 Tom Tromey <tom@tromey.com>
13833 Sergio Durigan Junior <sergiodj@redhat.com>
13834
13835 * Makefile.in (install-only): Install gdb-add-index.
13836
13837 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13838
13839 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13840
13841 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13842
13843 * infrun.c (keep_going_pass_signal): Clear step-over info when
13844 insert_breakpoints fails.
13845
13846 2018-01-11 Pedro Alves <palves@redhat.com>
13847
13848 PR gdb/22583
13849 * infrun.c (resume): Rename to ...
13850 (resume_1): ... this.
13851 (resume): Reimplement as wrapper around resume_1.
13852
13853 2018-01-11 Pedro Alves <palves@redhat.com>
13854
13855 PR remote/22597
13856 * remote.c (remote_parse_stop_reply): Default to the last-set
13857 general thread instead of to 'magic_null_ptid'.
13858
13859 2018-01-10 Pedro Alves <palves@redhat.com>
13860
13861 * language.h (language_get_symbol_name_matcher): Rename ...
13862 (get_symbol_name_matcher): ... this.
13863 * language.c (language_get_symbol_name_matcher): Ditto.
13864 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13865 callers adjusted.
13866
13867 2018-01-10 Pedro Alves <palves@redhat.com>
13868
13869 PR gdb/22670
13870 * dwarf2read.c
13871 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13872 Adjust to use language_get_symbol_name_matcher instead of
13873 language_defn::la_get_symbol_name_matcher.
13874 * language.c (language_get_symbol_name_matcher): If in Ada mode
13875 and the lookup name is a verbatim match, return Ada's matcher.
13876 * language.h (language_get_symbol_name_matcher): Adjust comment.
13877 (ada_lookup_name_info::verbatim_p):: New method.
13878
13879 2018-01-10 Pedro Alves <palves@redhat.com>
13880
13881 PR gdb/22670
13882 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13883 minsym's language is language_auto or language_cplus, pass down
13884 language_ada instead.
13885 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13886
13887 2018-01-10 Pedro Alves <palves@redhat.com>
13888
13889 PR gdb/22670
13890 * minsyms.c (linkage_name_str): New function.
13891 (iterate_over_minimal_symbols): Use it.
13892
13893 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13894
13895 * NEWS: Document that 'info proc' now works on FreeBSD.
13896
13897 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13898
13899 * configure.ac: Check for kinfo_getfile in libutil.
13900 * configure: Regenerate.
13901 * config.in: Regenerate.
13902 * fbsd-nat.c: Include "fbsd-tdep.h".
13903 (fbsd_fetch_cmdline): New.
13904 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13905 rather than calling error.
13906 (fbsd_info_proc): New.
13907 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13908 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13909 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13910
13911 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13912
13913 * fbsd-nat.c (struct free_deleter): Remove.
13914 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13915
13916 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13917
13918 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13919 NULL for an empty pathname.
13920
13921 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13922
13923 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13924 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13925 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13926 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13927 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13928 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13929 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13930 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13931 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13932 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13933 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13934 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13935 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13936 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13937 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13938
13939 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13940
13941 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13942 (gnu_xfer_auxv): New function.
13943 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13944 TARGET_OBJECT_AUXV.
13945
13946 2018-01-08 Yao Qi <yao.qi@linaro.org>
13947 Simon Marchi <simon.marchi@ericsson.com>
13948
13949 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13950 common/selftest.c.
13951 (COMMON_OBS): Remove selftest.o.
13952 * configure.ac: Append selftest-arch.c and common/selftest.c to
13953 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13954 * configure: Re-generated.
13955 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13956 GDB_SELF_TEST.
13957 (maintenance_info_selftests): Likewise.
13958
13959 2018-01-08 Xavier Roirand <roirand@adacore.com>
13960
13961 * ada-valprint.c (val_print_packed_array_elements): Use
13962 proper number of elements when printing an array indexed
13963 by an enumeration type.
13964
13965 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13966
13967 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13968 (dw2_get_file_names_reader): Adjust.
13969 (lookup_dwo_signatured_type): Adjust.
13970 (lookup_dwp_signatured_type): Adjust.
13971 (lookup_signatured_type): Adjust.
13972 (create_type_unit_group): Adjust.
13973 (get_type_unit_group): Adjust.
13974 (process_psymtab_comp_unit_reader): Adjust.
13975 (build_type_psymtabs_reader): Adjust.
13976 (scan_partial_symbols): Adjust.
13977 (add_partial_symbol): Adjust.
13978 (add_partial_subprogram): Adjust.
13979 (peek_die_abbrev): Adjust.
13980 (fixup_go_packaging): Adjust.
13981 (process_imported_unit_die): Adjust.
13982 (dwarf2_compute_name): Adjust.
13983 (dwarf2_physname): Adjust.
13984 (read_import_statement): Adjust.
13985 (handle_DW_AT_stmt_list): Adjust.
13986 (read_file_scope): Adjust.
13987 (read_func_scope): Adjust.
13988 (read_lexical_block_scope): Adjust.
13989 (read_call_site_scope): Adjust.
13990 (read_variable): Adjust.
13991 (dwarf2_rnglists_process): Adjust.
13992 (dwarf2_ranges_process): Adjust.
13993 (dwarf2_ranges_read): Adjust.
13994 (dwarf2_get_pc_bounds): Adjust.
13995 (dwarf2_record_block_ranges): Adjust.
13996 (dwarf2_add_field): Adjust.
13997 (dwarf2_add_member_fn): Adjust.
13998 (read_structure_type): Adjust.
13999 (process_structure_scope): Adjust.
14000 (read_enumeration_type): Adjust.
14001 (read_array_type): Adjust.
14002 (mark_common_block_symbol_computed): Adjust.
14003 (read_common_block): Adjust.
14004 (read_namespace_type): Adjust.
14005 (read_namespace): Adjust.
14006 (read_module_type): Adjust.
14007 (read_tag_pointer_type): Adjust.
14008 (read_tag_ptr_to_member_type): Adjust.
14009 (read_tag_string_type): Adjust.
14010 (read_subroutine_type): Adjust.
14011 (read_typedef): Adjust.
14012 (read_base_type): Adjust.
14013 (attr_to_dynamic_prop): Adjust.
14014 (read_subrange_type): Adjust.
14015 (read_unspecified_type): Adjust.
14016 (dwarf2_read_abbrevs): Adjust.
14017 (load_partial_dies): Adjust.
14018 (read_partial_die): Adjust.
14019 (find_partial_die): Adjust.
14020 (guess_partial_die_structure_name): Adjust.
14021 (fixup_partial_die): Adjust.
14022 (read_attribute_value): Adjust.
14023 (read_addr_index): Adjust.
14024 (read_addr_index_from_leb128): Adjust.
14025 (read_str_index): Adjust.
14026 (dwarf2_string_attr): Adjust.
14027 (get_debug_line_section): Adjust.
14028 (dwarf_decode_line_header): Adjust.
14029 (lnp_state_machine::check_line_address): Adjust.
14030 (dwarf_decode_lines_1): Adjust.
14031 (dwarf_decode_lines): Adjust.
14032 (dwarf2_start_symtab): Adjust.
14033 (var_decode_location): Adjust.
14034 (new_symbol_full): Adjust.
14035 (dwarf2_const_value_data): Adjust.
14036 (dwarf2_const_value_attr): Adjust.
14037 (dwarf2_const_value): Adjust.
14038 (die_type): Adjust.
14039 (die_containing_type): Adjust.
14040 (build_error_marker_type): Adjust.
14041 (lookup_die_type): Adjust.
14042 (guess_full_die_structure_name): Adjust.
14043 (anonymous_struct_prefix): Adjust.
14044 (determine_prefix): Adjust.
14045 (dwarf2_name): Adjust.
14046 (follow_die_ref_or_sig): Adjust.
14047 (follow_die_offset): Adjust.
14048 (follow_die_ref): Adjust.
14049 (follow_die_sig_1): Adjust.
14050 (follow_die_sig): Adjust.
14051 (get_signatured_type): Adjust.
14052 (get_DW_AT_signature_type): Adjust.
14053 (decode_locdesc): Adjust.
14054 (dwarf_decode_macros): Adjust.
14055 (cu_debug_loc_section): Adjust.
14056 (fill_in_loclist_baton): Adjust.
14057 (dwarf2_symbol_mark_computed): Adjust.
14058 (init_one_comp_unit): Don't assign
14059 dwarf2_cu::dwarf2_per_objfile.
14060 (set_die_type): Adjust.
14061
14062 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14063
14064 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14065 <dwarf2_per_objfile>: New field.
14066 (dwarf2_per_objfile): Remove global.
14067 (get_dwarf2_per_objfile): New function.
14068 (set_dwarf2_per_objfile): New function.
14069 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14070 dwarf2_per_objfile.
14071 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14072 (read_abbrev_offset): Likewise.
14073 (read_indirect_string): Likewise.
14074 (read_indirect_line_string): Likewise.
14075 (read_indirect_string_at_offset): Likewise.
14076 (read_indirect_string_from_dwz): Likewise.
14077 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14078 dwarf2_per_objfile.
14079 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14080 (create_all_comp_units): Change objfile parameter to
14081 dwarf2_per_objfile.
14082 (create_all_type_units): Likewise.
14083 (process_queue): Add dwarf2_per_objfile parameter.
14084 (read_and_check_comp_unit_head): Likewise.
14085 (lookup_dwo_unit_in_dwp): Likewise.
14086 (get_dwp_file): Likewise.
14087 (process_cu_includes): Likewise.
14088 (struct free_dwo_file_cleanup_data): New struct.
14089 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14090 set_dwarf2_per_objfile.
14091 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14092 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14093 context, adjust calls.
14094 (dw2_instantiate_symtab): Likewise.
14095 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14096 (dw2_get_cu): Likewise.
14097 (create_cu_from_index_list): Change objfile parameter to
14098 dwarf2_per_objfile.
14099 (create_cus_from_index_list): Get dwarf2_per_objfile from
14100 context, adjust calls.
14101 (create_cus_from_index): Likewise.
14102 (create_signatured_type_table_from_index): Change objfile
14103 parameter to dwarf2_per_objfile.
14104 (create_signatured_type_table_from_debug_names): Change objfile
14105 parameter to dwarf2_per_objfile.
14106 (create_addrmap_from_index): Likewise.
14107 (create_addrmap_from_aranges): Likewise.
14108 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14109 (dw2_setup): Remove.
14110 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14111 context.
14112 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14113 get_dwarf2_per_objfile.
14114 (dw2_forget_cached_source_info): Likewise.
14115 (dw2_map_symtabs_matching_filename): Likewise.
14116 (struct dw2_symtab_iterator) <index>: Remove.
14117 <dwarf2_per_objfile>: New field.
14118 (dw2_symtab_iter_init): Replace index parameter with
14119 dwarf2_per_objfile.
14120 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14121 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14122 (dw2_print_stats): Likewise.
14123 (dw2_dump): Likewise.
14124 (dw2_expand_symtabs_for_function): Likewise.
14125 (dw2_expand_all_symtabs): Likewise.
14126 (dw2_expand_symtabs_with_fullname): Likewise.
14127 (dw2_expand_marked_cus): Replace index and objfile parameters
14128 with dwarf2_per_objfile.
14129 (dw_expand_symtabs_matching_file_matcher): Add
14130 dwarf2_per_objfile parameter and adjust calls.
14131 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14132 adjust calls.
14133 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14134 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14135 adjust calls.
14136 (create_cus_from_debug_names_list): Replace objfile parameter
14137 with dwarf2_per_objfile and adjust calls.
14138 (create_cus_from_debug_names): Likewise.
14139 (dwarf2_read_debug_names): Likewise.
14140 (mapped_debug_names::namei_to_name): Adjust call.
14141 (dw2_debug_names_iterator::next): Likewise.
14142 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14143 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14144 (dw2_debug_names_dump): Likewise.
14145 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14146 (dw2_debug_names_expand_symtabs_matching): Likewise.
14147 (dwarf2_initialize_objfile): Likewise.
14148 (dwarf2_build_psymtabs): Likewise.
14149 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14150 this_cu.
14151 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14152 (read_and_check_comp_unit_head): Likewise.
14153 (read_abbrev_offset): Likewise.
14154 (create_debug_type_hash_table): Likewise.
14155 (create_debug_types_hash_table): Likewise.
14156 (create_all_type_units): Replace objfile parameter with
14157 dwarf2_per_objfile.
14158 (add_type_unit): Add dwarf2_per_objfile parameter.
14159 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14160 with dwarf2_per_objfile.
14161 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14162 (lookup_dwp_signatured_type): Likewise.
14163 (lookup_signatured_type): Likewise.
14164 (read_cutu_die_from_dwo): Likewise.
14165 (init_tu_and_read_dwo_dies): Likewise.
14166 (init_cutu_and_read_dies): Likewise.
14167 (init_cutu_and_read_dies_no_follow): Likewise.
14168 (allocate_type_unit_groups_table): Add objfile parameter.
14169 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14170 (get_type_unit_group): Likewise.
14171 (process_psymtab_comp_unit): Update call.
14172 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14173 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14174 (print_tu_stats): Likewise.
14175 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14176 in void* parameter.
14177 (build_type_psymtabs): Change objfile parameter to
14178 dwarf2_per_objfile.
14179 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14180 passed in void* parameter.
14181 (process_skeletonless_type_units): Change objfile parameter to
14182 dwarf2_per_objfile.
14183 (set_partial_user): Likewise.
14184 (dwarf2_build_psymtabs_hard): Likewise.
14185 (read_comp_units_from_section): Likewise.
14186 (create_all_comp_units): Likewise.
14187 (scan_partial_symbols): Update calls.
14188 (add_partial_symbol): Likewise.
14189 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14190 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14191 (process_queue): Add dwarf2_per_objfile parameter.
14192 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14193 (compute_compunit_symtab_includes): Likewise.
14194 (process_cu_includes): Add dwarf2_per_objfile parameter.
14195 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14196 (process_full_type_unit): Likewise.
14197 (process_imported_unit_die): Update call.
14198 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14199 (read_file_scope): Likewise.
14200 (allocate_dwo_file_hash_table): Add objfile parameter.
14201 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14202 (create_cus_hash_table): Likewise.
14203 (create_dwp_hash_table): Likewise.
14204 (create_dwo_unit_in_dwp_v1): Likewise.
14205 (create_dwp_v2_section): Likewise.
14206 (create_dwo_unit_in_dwp_v2): Likewise.
14207 (lookup_dwo_unit_in_dwp): Likewise.
14208 (try_open_dwop_file): Likewise.
14209 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14210 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14211 cleanup to include a reference to dwarf2_per_objfile.
14212 (open_dwp_file): Add dwarf2_per_objfile parameter.
14213 (open_and_init_dwp_file): Likewise.
14214 (get_dwp_file): Likewise.
14215 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14216 (queue_and_load_all_dwo_tus): Update call.
14217 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14218 data.
14219 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14220 (dwarf2_ranges_process): Likewise.
14221 (dwarf2_get_pc_bounds): Likewise.
14222 (mark_common_block_symbol_computed): Likewise.
14223 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14224 (dwarf2_read_abbrevs): Update call.
14225 (read_partial_die): Use dwarf2_per_objfile from cu.
14226 (find_partial_die): Likewise.
14227 (fixup_partial_die): Likewise.
14228 (read_attribute_value): Likewise.
14229 (read_indirect_string_at_offset_from): Add objfile parameter.
14230 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14231 parameter.
14232 (read_indirect_string_from_dwz): Add objfile parameter.
14233 (read_indirect_string): Add objfile parameter.
14234 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14235 (read_addr_index): Use dwarf2_per_objfile from cu.
14236 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14237 call dw2_setup.
14238 (read_str_index): Use dwarf2_per_objfile from cu.
14239 (get_debug_line_section): Likewise.
14240 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14241 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14242 (new_symbol_full): Use dwarf2_per_objfile from cu.
14243 (build_error_marker_type): Likewise.
14244 (lookup_die_type): Likewise.
14245 (determine_prefix): Likewise.
14246 (follow_die_offset): Likewise.
14247 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14248 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14249 (dwarf2_fetch_die_type_sect_off): Likewise.
14250 (dwarf2_get_die_type): Likewise.
14251 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14252 (get_signatured_type): Likewise.
14253 (get_DW_AT_signature_type): Likewise.
14254 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14255 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14256 (cu_debug_loc_section): Likewise.
14257 (fill_in_loclist_baton): Likewise.
14258 (dwarf2_symbol_mark_computed): Likewise.
14259 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14260 dwarf2_per_objfile.
14261 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14262 parameter.
14263 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14264 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14265 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14266 (set_die_type): Use dwarf2_free_objfile from cu.
14267 (get_die_type_at_offset): Likewise.
14268 (dwarf2_per_objfile_free): Don't assign global variable.
14269 (debug_names) <constructor>: Add dwarf2_per_objfile
14270 parameter, update m_debugstrlookup construction.
14271 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14272 parameter.
14273 <m_dwarf2_per_objfile>: New field.
14274 <lookup>: Use m_dwarf2_per_objfile.
14275 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14276 (psyms_seen_size): Likewise.
14277 (write_gdbindex): Replace objfile parameter with
14278 dwarf2_per_objfile.
14279 (write_debug_names): Likewise.
14280 (write_psymtabs_to_index): Likewise.
14281 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14282 calls.
14283
14284 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14285
14286 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14287 <dwarf2_per_objfile>: New field.
14288 (struct dwarf2_per_cu_data) <objfile>: Remove.
14289 <dwarf2_per_objfile>: New field.
14290 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14291 of objfile.
14292 (create_signatured_type_table_from_index): Likewise.
14293 (create_debug_type_hash_table): Likewise.
14294 (fill_in_sig_entry_from_dwo_entry): Likewise.
14295 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14296 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14297 objfile.
14298 (create_partial_symtab): Access objfile through
14299 dwarf2_per_objfile.
14300 (process_psymtab_comp_unit_reader): Likewise.
14301 (read_comp_units_from_section): Likewise.
14302 (scan_partial_symbols): Likewise.
14303 (add_partial_symbol): Likewise.
14304 (add_partial_subprogram): Likewise.
14305 (peek_die_abbrev): Likewise.
14306 (fixup_go_packaging): Likewise.
14307 (process_full_comp_unit): Likewise.
14308 (process_full_type_unit): Likewise.
14309 (process_imported_unit_die): Likewise.
14310 (dwarf2_compute_name): Likewise.
14311 (dwarf2_physname): Likewise.
14312 (read_import_statement): Likewise.
14313 (create_cus_hash_table): Assign dwarf2_physname instead of
14314 objfile.
14315 (read_func_scope): Access objfile through dwarf2_per_objfile.
14316 (read_lexical_block_scope): Likewise.
14317 (read_call_site_scope): Likewise.
14318 (read_variable): Likewise.
14319 (dwarf2_rnglists_process): Likewise.
14320 (dwarf2_ranges_process): Likewise.
14321 (dwarf2_ranges_read): Likewise.
14322 (dwarf2_record_block_ranges): Likewise.
14323 (dwarf2_add_field): Likewise.
14324 (dwarf2_add_member_fn): Likewise.
14325 (read_structure_type): Likewise.
14326 (process_structure_scope): Likewise.
14327 (read_enumeration_type): Likewise.
14328 (read_array_type): Likewise.
14329 (read_common_block): Likewise.
14330 (read_namespace_type): Likewise.
14331 (read_namespace): Likewise.
14332 (read_module_type): Likewise.
14333 (read_tag_pointer_type): Likewise.
14334 (read_tag_ptr_to_member_type): Likewise.
14335 (read_tag_string_type): Likewise.
14336 (read_subroutine_type): Likewise.
14337 (read_typedef): Likewise.
14338 (read_base_type): Likewise.
14339 (attr_to_dynamic_prop): Likewise.
14340 (read_subrange_type): Likewise.
14341 (read_unspecified_type): Likewise.
14342 (load_partial_dies): Likewise.
14343 (read_partial_die): Likewise.
14344 (find_partial_die): Likewise.
14345 (guess_partial_die_structure_name): Likewise.
14346 (fixup_partial_die): Likewise.
14347 (read_attribute_value): Likewise.
14348 (read_addr_index_from_leb128): Likewise.
14349 (dwarf2_read_addr_index): Likewise.
14350 (dwarf2_string_attr): Likewise.
14351 (lnp_state_machine::check_line_address): Likewise.
14352 (dwarf_decode_lines_1): Likewise.
14353 (dwarf_decode_lines): Likewise.
14354 (dwarf2_start_symtab): Likewise.
14355 (var_decode_location): Likewise.
14356 (new_symbol_full): Likewise.
14357 (dwarf2_const_value_data): Likewise.
14358 (dwarf2_const_value_attr): Likewise.
14359 (dwarf2_const_value): Likewise.
14360 (die_type): Likewise.
14361 (die_containing_type): Likewise.
14362 (lookup_die_type): Likewise.
14363 (guess_full_die_structure_name): Likewise.
14364 (anonymous_struct_prefix): Likewise.
14365 (dwarf2_name): Likewise.
14366 (follow_die_ref_or_sig): Likewise.
14367 (follow_die_offset): Likewise.
14368 (follow_die_ref): Likewise.
14369 (dwarf2_fetch_die_loc_sect_off): Likewise.
14370 (dwarf2_fetch_constant_bytes): Likewise.
14371 (dwarf2_fetch_die_type_sect_off): Likewise.
14372 (dwarf2_get_die_type): Likewise.
14373 (follow_die_sig): Likewise.
14374 (decode_locdesc): Likewise.
14375 (dwarf2_per_cu_objfile): Likewise.
14376 (dwarf2_per_cu_text_offset): Likewise.
14377 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14378 objfile.
14379 (set_die_type): Access objfile through
14380 dwarf2_per_objfile.
14381
14382 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14383
14384 * valprint.c (converted_character_d): Remove typedef.
14385 (DEF_VEC_O (converted_character_d)): Remove.
14386 (count_next_character): Use std::vector.
14387 (print_converted_chars_to_obstack): Likewise.
14388 (generic_printstr): Likewise.
14389
14390 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14391
14392 * xml-support.h (struct gdb_xml_value): Add constructor.
14393 <value>: Change type to unique_xmalloc_ptr.
14394 (gdb_xml_value_s): Remove typedef.
14395 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14396 (gdb_xml_element_start_handler): Change parameter type to
14397 std::vector.
14398 (xml_find_attribute): Likewise.
14399 * xml-support.c (xml_find_attribute): Change parameter type to
14400 std::vector and adjust.
14401 (gdb_xml_values_cleanup): Remove.
14402 (gdb_xml_parser::start_element): Adjust to std::vector.
14403 (xinclude_start_include): Change paraeter type to std::vector
14404 and adjust.
14405 * btrace.c (check_xml_btrace_version): Likewise.
14406 (parse_xml_btrace_block): Likewise.
14407 (parse_xml_btrace_pt_config_cpu): Likewise.
14408 (parse_xml_btrace_pt): Likewise.
14409 (parse_xml_btrace_conf_bts): Likewise.
14410 (parse_xml_btrace_conf_pt): Likewise.
14411 * memory-map.c (memory_map_start_memory): Likewise.
14412 (memory_map_start_property): Likewise.
14413 * osdata.c (osdata_start_osdata): Likewise.
14414 (osdata_start_item): Likewise.
14415 (osdata_start_column): Likewise.
14416 * remote.c (start_thread): Likewise.
14417 * solib-aix.c (library_list_start_library): Likewise.
14418 (library_list_start_list): Likewise.
14419 * solib-svr4.c (library_list_start_library): Likewise.
14420 (svr4_library_list_start_list): Likewise.
14421 * solib-target.c (library_list_start_segment): Likewise.
14422 (library_list_start_section): Likewise.
14423 (library_list_start_library): Likewise.
14424 (library_list_start_list): Likewise.
14425 * tracepoint.c (traceframe_info_start_memory): Likewise.
14426 (traceframe_info_start_tvar): Likewise.
14427 * xml-syscall.c (syscall_start_syscall): Likewise.
14428 * xml-tdesc.c (tdesc_start_target): Likewise.
14429 (tdesc_start_feature): Likewise.
14430 (tdesc_start_reg): Likewise.
14431 (tdesc_start_union): Likewise.
14432 (tdesc_start_struct): Likewise.
14433 (tdesc_start_flags): Likewise.
14434 (tdesc_start_enum): Likewise.
14435 (tdesc_start_field): Likewise.
14436 (tdesc_start_enum_value): Likewise.
14437 (tdesc_start_vector): Likewise.
14438
14439 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14440
14441 * extension.h (struct xmethod_worker) <clone>: Remove.
14442 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14443 Remove.
14444 (python_xmethod_worker::clone): Remove.
14445 * valops.c (find_overload_match): Use std::move instead of
14446 clone.
14447
14448 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14449
14450 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14451 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14452 <free_xmethod_worker_data>: Remove.
14453 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14454 <get_xmethod_arg_types>: Remove.
14455 <get_xmethod_result_type>: Remove.
14456 <invoke_xmethod>: Remove.
14457 * extension.c (new_xmethod_worker): Remove.
14458 (clone_xmethod_worker): Remove.
14459 (get_matching_xmethod_workers): Return void, pass std::vector by
14460 pointer.
14461 (get_xmethod_arg_types): Rename to...
14462 (xmethod_worker::get_arg_types): ... this, and adjust.
14463 (get_xmethod_result_type): Rename to...
14464 (xmethod_worker::get_result_type): ... this, and adjust.
14465 (invoke_xmethod): Remove.
14466 (free_xmethod_worker): Remove.
14467 (free_xmethod_worker_vec): Remove.
14468 * extension.h (enum ext_lang_rc): Move here from
14469 extension-priv.h.
14470 (struct xmethod_worker): Add constructor and destructor.
14471 <data>: Remove.
14472 <value>: Remove.
14473 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14474 virtual pure methods.
14475 <get_arg_types, get_result_type>: New methods.
14476 (xmethod_worker_ptr): Remove typedef.
14477 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14478 (xmethod_worker_vec): Remove typedef.
14479 (xmethod_worker_up): New typedef.
14480 (invoke_xmethod): Remove.
14481 (clone_xmethod_worker): Remove.
14482 (free_xmethod_worker): Remove.
14483 (free_xmethod_worker_vec): Remove.
14484 (get_xmethod_arg_types): Remove.
14485 (get_xmethod_result_type): Remove.
14486 * valops.c (find_method_list): Use std::vector, don't use
14487 intermediate vector.
14488 (value_find_oload_method_list): Use std::vector.
14489 (find_overload_match): Use std::vector.
14490 (find_oload_champ): Use std::vector.
14491 * value.c (value_free): Use operator delete.
14492 (value_of_xmethod): Rename to...
14493 (value_from_xmethod): ... this. Don't assign
14494 xmethod_worker::value, take rvalue-reference.
14495 (result_type_of_xmethod): Adjust.
14496 (call_xmethod): Adjust.
14497 * value.h: Include extension.h.
14498 (struct xmethod_worker): Don't forward-declare.
14499 (value_of_xmethod): Rename to...
14500 (value_from_xmethod): ... this, take rvalue-reference.
14501 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14502 (struct python_xmethod_worker): ... this, add constructor and
14503 destructor.
14504 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14505 (gdbpy_free_xmethod_worker_data): Rename to...
14506 (python_xmethod_worker::~python_xmethod_worker): ... this and
14507 adjust.
14508 (gdbpy_clone_xmethod_worker_data): Rename to...
14509 (python_xmethod_worker::clone): ... this and adjust.
14510 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14511 temporary vector.
14512 (gdbpy_get_xmethod_arg_types): Rename to...
14513 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14514 (gdbpy_get_xmethod_result_type): Rename to...
14515 (python_xmethod_worker::do_get_result_type): ... this and
14516 adjust.
14517 (gdbpy_invoke_xmethod): Rename to...
14518 (python_xmethod_worker::invoke): ... this and adjust.
14519 (new_python_xmethod_worker): Rename to...
14520 (python_xmethod_worker::python_xmethod_worker): ... this and
14521 adjust.
14522 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14523 Remove.
14524 (gdbpy_free_xmethod_worker_data): Remove.
14525 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14526 (gdbpy_get_xmethod_arg_types): Remove.
14527 (gdbpy_get_xmethod_result_type): Remove.
14528 (gdbpy_invoke_xmethod): Remove.
14529 * python/python.c (python_extension_ops): Remove obsolete
14530 callbacks.
14531
14532 2018-01-05 Pedro Alves <palves@redhat.com>
14533
14534 PR gdb/18653
14535 * common/signals-state-save-restore.c
14536 (save_original_signals_state): New parameter 'quiet'. Warn if we
14537 find a custom handler preinstalled, instead of internal erroring.
14538 But only warn if !quiet.
14539 * common/signals-state-save-restore.h
14540 (save_original_signals_state): New parameter 'quiet'.
14541 * main.c (captured_main_1): Move save_original_signals_state call
14542 after option handling, and pass QUIET.
14543
14544 2018-01-05 Pedro Alves <palves@redhat.com>
14545
14546 * spu-tdep.c (spu_catch_start): Pass
14547 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14548
14549 2018-01-05 Pedro Alves <palves@redhat.com>
14550
14551 PR gdb/22670
14552 * ada-lang.c (literal_symbol_name_matcher): New function.
14553 (ada_get_symbol_name_matcher): Use it for
14554 symbol_name_match_type::SEARCH_NAME.
14555 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14556 it down instead of assuming symbol_name_match_type::FULL.
14557 * block.h (block_lookup_symbol): New parameter 'match_type'.
14558 * c-valprint.c (print_unpacked_pointer): Use
14559 lookup_symbol_search_name instead of lookup_symbol.
14560 * compile/compile-object-load.c (get_out_value_type): Pass down
14561 symbol_name_match_type::SEARCH_NAME.
14562 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14563 symbol_name_match_type::FULL.
14564 * cp-support.c (cp_get_symbol_name_matcher): Handle
14565 symbol_name_match_type::SEARCH_NAME.
14566 * infrun.c (insert_exception_resume_breakpoint): Use
14567 lookup_symbol_search_name.
14568 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14569 * psymtab.c (maintenance_check_psymtabs): Use
14570 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14571 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14572 SYMBOL_SEARCH_NAME.
14573 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14574 if symbol_name_match_type::SEARCH_NAME.
14575 (lookup_symbol_in_language): Pass down
14576 symbol_name_match_type::FULL.
14577 (lookup_symbol_search_name): New.
14578 (lookup_language_this): Pass down
14579 symbol_name_match_type::SEARCH_NAME.
14580 (lookup_symbol_aux, lookup_local_symbol): New parameter
14581 'match_type'. Pass it down.
14582 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14583 (lookup_symbol_search_name): New declaration.
14584 (lookup_symbol_in_block): New 'match_type' parameter.
14585
14586 2018-01-05 Pedro Alves <palves@redhat.com>
14587
14588 PR gdb/22670
14589 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14590 ada_lookup_symbol.
14591 (ada_lookup_symbol): Reimplement in terms of
14592 ada_lookup_symbol_list, bits factored out from
14593 ada_lookup_encoded_symbol.
14594
14595 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14596
14597 * ada-exp.y (write_object_renaming): When subscripting an array
14598 using a symbol as the index, pass the block in call to
14599 ada_lookup_encoded_symbol when looking that symbol up.
14600
14601 2018-01-05 Jerome Guitton <guitton@adacore.com>
14602
14603 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14604 TYPE_INDEX_TYPE.
14605
14606 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14607
14608 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14609 the case where VALUE_LVAL (val0) is not lval_memory.
14610
14611 2018-01-05 Xavier Roirand <roirand@adacore.com>
14612
14613 * ada-valprint.c (print_optional_low_bound): Handle
14614 character-indexed array printing like boolean-indexed array
14615 printing.
14616
14617 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14618
14619 * NEWS: Create a new section for the next release branch.
14620 Rename the section of the current branch, now that it has
14621 been cut.
14622
14623 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14624
14625 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14626 * version.in: Bump version to 8.1.50.DATE-git.
14627
14628 2018-01-03 Xavier Roirand <roirand@adacore.com>
14629
14630 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14631 Add field.
14632 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14633 Add field.
14634 (default_exception_support_info) <catch_handlers_sym>: Add field.
14635 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14636 (ada_exception_name_addr_1): Add "catch handlers" handling.
14637 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14638 Update all callers.
14639 (create_excep_cond_exprs) <ex>: Add parameter.
14640 (re_set_exception): Update create_excep_cond_exprs call.
14641 (print_it_exception, print_one_exception, print_mention_exception)
14642 (print_recreate_exception): Add "catch handler" handling.
14643 (allocate_location_catch_handlers, re_set_catch_handlers)
14644 (check_status_catch_handlers, print_it_catch_handlers)
14645 (print_one_catch_handlers, print_mention_catch_handlers)
14646 (print_recreate_catch_handlers): New function.
14647 (catch_handlers_breakpoint_ops): New variable.
14648 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14649 Add parameter. Add "catch handler" handling.
14650 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14651 Add "catch handler" handling.
14652 (ada_exception_catchpoint_cond_string): Add "catch handler"
14653 handling.
14654 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14655 call.
14656 (catch_ada_handlers_command): New function.
14657 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14658 operations structure.
14659 (_initialize_ada_language): Add "catch handlers" command entry.
14660 * NEWS: Document "catch handlers" feature.
14661
14662 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14663
14664 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14665 account when creating the array type of the slice.
14666 (ada_value_slice): Likewise.
14667
14668 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14669
14670 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14671 New enum value.
14672 (create_array_type_with_stride): Add byte_stride_prop parameter.
14673 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14674 New parameter. Update all callers in this file.
14675 (array_type_has_dynamic_stride): New function.
14676 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14677 of arrays with dynamic byte strides.
14678 * dwarf2read.c (read_array_type): Add support for dynamic
14679 DW_AT_byte_stride attributes.
14680
14681 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14682
14683 * dwarf2read.c (read_unspecified_type): Treat
14684 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14685
14686 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14687
14688 Update copyright year range in all GDB files.
14689
14690 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14691
14692 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14693 and gdb/testsuite/gdb.base/step-line.c.
14694
14695 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14696
14697 * copyright.py (main): Dump the contents of
14698 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14699 even if BY_HAND is empty.
14700
14701 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14702
14703 * top.c (print_gdb_version): Update Copyright year in version
14704 message.
14705
14706 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14707
14708 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14709
14710 For older changes see ChangeLog-2017.
14711 \f
14712 Local Variables:
14713 mode: change-log
14714 left-margin: 8
14715 fill-column: 74
14716 version-control: never
14717 coding: utf-8
14718 End: