[PUSHED/OBVIOUS] ensure help set print type gives the correct help.
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
4 in add_prefix_cmd of set print type.
5
6 2018-10-19 Tom Tromey <tom@tromey.com>
7
8 PR tui/18388:
9 * NEWS: Mention tabset deprecation.
10 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
11 (update_tab_width): New function.
12 (tui_set_tab_width, tui_show_tab_width): New functions.
13 (tui_set_tab_width_command): Use update_tab_width.
14 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
15 Add new "set tui tab-width" command.
16 * tui/tui-source.c (tui_set_source_content): Update.
17 * tui/tui-disasm.c (tui_set_disassem_content): Update.
18 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
19 Don't declare.
20 (tui_tab_width): Declare.
21 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
22 (tui_set_default_tab_len): Remove.
23
24 2018-10-19 Tom Tromey <tom@tromey.com>
25
26 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
27 (key_is_backspace, tui_getc): Don't declare.
28 * tui/tui-io.c (key_is_start_sequence): Now static.
29 (key_is_end_sequence, key_is_backspace): Remove.
30 (tui_getc): Now static.
31
32 2018-10-19 Tom Tromey <tom@tromey.com>
33
34 * symfile.c (reread_symbols): Clear "static_links".
35
36 2018-10-19 Alan Hayward <alan.hayward@arm.com>
37
38 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
39 define.
40 (aarch64_linux_sigframe_init): Extra boundary checks.
41
42 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
43
44 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
45 the possibly non-existent tdesc type 'vec128', but the type of raw
46 register v16 instead.
47
48 2018-10-19 Gary Benson <gbenson@redhat.com>
49
50 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
51
52 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
53
54 PR cli/23785
55 * cli/cli-dump.c (restore_binary_file): Check if "file" is
56 NULL.
57
58 2018-10-17 Paul Koning <paul_koning@dell.com>
59
60 * charset.c (convert_between_encodings): Fix unsigned overflow.
61
62 2018-10-17 John Baldwin <jhb@FreeBSD.org>
63
64 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
65 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
66 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
67 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
68 New functions.
69 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
70 and fbsd_info_proc_mappings_header.
71 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
72 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
73 New.
74
75 2018-10-17 Joel Brobecker <brobecker@adacore.com>
76
77 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
78 Solaris Maintainer.
79
80 2018-10-15 Tom Tromey <tom@tromey.com>
81
82 * tui/tui.c (strcat_to_buf): Remove casts.
83 * tui/tui-winsource.c (tui_show_source_line)
84 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
85 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
86 * tui/tui-windata.c (tui_first_data_item_displayed)
87 (tui_delete_data_content_windows, tui_erase_data_content)
88 (tui_display_all_data, tui_display_data_from)
89 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
90 * tui/tui-win.c (tui_set_win_height)
91 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
92 casts.
93 * tui/tui-win.c (tui_resize_all): Remove casts.
94 (tui_scroll_backward_command, tui_set_focus)
95 (tui_set_tab_width_command): Likewise.
96 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
97 * tui/tui-regs.c (tui_show_register_group): Remove cast.
98 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
99 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
100 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
101 Remove casts.
102
103 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
104
105 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
106 AArch64/ARM maintainer.
107
108 2018-10-11 Gary Benson <gbenson@redhat.com>
109
110 * interps.h (interp::m_name): Make private and mutable.
111 * interps.c (interp::~interp): Free m_name.
112
113 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
114 Simon Marchi <simark@simark.ca>
115
116 * README (`configure' options): Add documentation for new
117 "--enable-unit-tests" option.
118 * acinclude.m4: Include "selftest.m4".
119 * configure: Regenerate.
120 * configure.ac: Use "GDB_AC_SELFTEST".
121 * maint.c (maintenance_selftest): Update message informing
122 that selftests have been disabled.
123 (maintenance_info_selftests): Likewise.
124 * selftest.m4: New file.
125
126 2018-10-10 Gary Benson <gbenson@redhat.com>
127
128 * remote.c (remote_target::remote_send_printf): Add
129 missing va_end found by Coverity.
130
131 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
132
133 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
134
135 2018-10-09 Tom Tromey <tom@tromey.com>
136
137 * configure: Rebuild.
138 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
139 * NEWS: Update --enable-ubsan documentation.
140
141 2018-10-09 Gary Benson <gbenson@redhat.com>
142
143 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
144 found by Coverity.
145
146 2018-10-08 Tom Tromey <tom@tromey.com>
147
148 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
149 variable.
150 (riscv_fbsd_init_abi): Likewise.
151
152 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
153 * valops.c (value_struct_elt_for_reference): Rename local variable
154 to work around the shadowing a previous local warning.
155
156 2018-10-08 John Baldwin <jhb@FreeBSD.org>
157
158 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
159 * NEWS: Mention new FreeBSD/riscv native configuration.
160 * configure.host: Add riscv*-*-freebsd*.
161 * configure.nat: Likewise.
162 * riscv-fbsd-nat.c: New file.
163
164 2018-10-08 John Baldwin <jhb@FreeBSD.org>
165
166 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
167 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
168 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
169 * NEWS: Mention new FreeBSD/riscv target.
170 * configure.tgt: Add riscv*-*-freebsd*.
171 * riscv-fbsd-tdep.c: New file.
172 * riscv-fbsd-tdep.h: New file.
173
174 2018-10-08 John Baldwin <jhb@FreeBSD.org>
175
176 * regcache.h (struct regcache_map_entry): Note that this type can
177 be used with traditional frame caches.
178 * trad-frame.c (trad_frame_set_reg_regmap): New.
179 * trad-frame.h (trad_frame_set_reg_regmap): New.
180
181 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
182
183 PR c++/16841
184 * valops.c (get_virtual_base_offset): New function.
185 (value_struct_elt_for_reference): Use it to get virtual base offset
186 and add it in calculating class member address.
187
188 2018-10-08 John Darrington <john@darrington.wattle.id.au>
189
190 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
191 (check_producer): Check if the producer is codewarrior.
192 (producer_is_codewarrior): New function.
193 (lnp_state_machine::record_line): Ignore is_stmt flag for records
194 produced by codewarrior.
195 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
196
197 2018-10-06 Tom Tromey <tom@tromey.com>
198
199 PR python/19399:
200 * python/py-inferior.c: Add "architecture" entry.
201 (infpy_architecture): New function.
202
203 2018-10-06 Tom Tromey <tom@tromey.com>
204
205 PR python/21765:
206 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
207 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
208 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
209 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
210
211 2018-10-06 Tom Tromey <tom@tromey.com>
212
213 PR build/17077:
214 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
215 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
216 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
217 #include.
218
219 2018-10-06 Tom Tromey <tom@tromey.com>
220
221 * python/py-breakpoint.c (bppy_get_location): Handle a
222 bp_breakpoint without a location.
223
224 2018-10-06 Tom Tromey <tom@tromey.com>
225
226 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
227 (_RegEx): Reformat help text.
228 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
229 (AnyCallerIs, AnyCallerMatches): Reformat help text.
230 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
231 text.
232 * python/lib/gdb/command/xmethods.py (InfoXMethod)
233 (EnableXMethod, DisableXMethod): Remove help indentation.
234 Capitalize meta-syntactic variables.
235 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
236 (EnableUnwinder, DisableUnwinder): Remove help indentation.
237 Capitalize meta-syntactic variables.
238 * python/lib/gdb/command/explore.py (ExploreCommand)
239 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
240 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
241 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
242 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
243 Remove help indentation.
244 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
245 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
246 (DisableFrameFilter, SetFrameFilterPriority)
247 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
248
249 2018-10-06 Tom Tromey <tom@tromey.com>
250
251 PR tui/28819:
252 * tui/tui-io.c (gdb_wgetch): New function.
253 (tui_mld_getc, tui_getc): Use it.
254
255 2018-10-05 Tom Tromey <tom@tromey.com>
256
257 * sol-thread.c (sol_thread_target::wait): Rename inner
258 "save_ptid".
259
260 2018-10-04 Tom Tromey <tom@tromey.com>
261
262 * configure: Rebuild.
263 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
264
265 2018-10-04 Tom Tromey <tom@tromey.com>
266
267 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
268 declaration of "block".
269
270 2018-10-04 Tom Tromey <tom@tromey.com>
271
272 * common/filestuff.c (fdwalk): Remove inner declaration of
273 "result".
274
275 2018-10-04 Tom Tromey <tom@tromey.com>
276
277 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
278 "structs_addr" and hoist declaration.
279
280 2018-10-04 Tom Tromey <tom@tromey.com>
281
282 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
283 variable "size".
284
285 2018-10-04 Tom Tromey <tom@tromey.com>
286
287 * mdebugread.c (parse_partial_symbols): Use std::string.
288
289 2018-10-04 Tom Tromey <tom@tromey.com>
290
291 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
292 * p-valprint.c (pascal_val_print): Split inner "i" variable.
293 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
294 header.
295 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
296 more inner scope.
297 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
298 * varobj.c (varobj_update): Rename inner "newobj",
299 "type_changed".
300 * valprint.c (generic_emit_char): Rename inner "buf".
301 * valops.c (find_overload_match): Rename inner "temp".
302 (value_struct_elt_for_reference): Declare "v" in more inner
303 scope.
304 * v850-tdep.c (v850_push_dummy_call): Rename "len".
305 * unittests/array-view-selftests.c (run_tests): Rename inner
306 "vec".
307 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
308 header.
309 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
310 "tsv" in more inner scope.
311 (print_one_static_tracepoint_marker): Rename inner
312 "tuple_emitter".
313 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
314 (tic6x_push_dummy_call): Don't redeclare "addr".
315 * target-float.c: Declare "dto" lower.
316 * symtab.c (lookup_local_symbol): Rename inner "sym".
317 (find_pc_sect_line): Rename inner "pc".
318 * stack.c (print_frame): Don't redeclare "gdbarch".
319 (return_command): Rename inner "gdbarch".
320 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
321 "sp".
322 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
323 header.
324 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
325 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
326 scope.
327 * remote.c (remote_target::update_thread_list): Don't redeclare
328 "tp".
329 (remote_target::process_initial_stop_replies): Rename inner
330 "thread".
331 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
332 (remote_target::wait_as): Don't redeclare "stop_reply".
333 (remote_target::get_thread_local_address): Rename inner
334 "result".
335 (remote_target::get_tib_address): Likewise.
336
337 * regcache.c (cooked_read_test): Rename "regnum".
338 * record-btrace.c (cmd_record_btrace_start): Rename inner
339 "exception".
340 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
341 loop header.
342 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
343 header.
344 (ppu2spu_sniffer): Rename inner "buf".
345 * parse.c (operator_check_standard): Rename inner "type",
346 "objfile".
347 * p-valprint.c (pascal_val_print): Introduce new scope for
348 "low_bound", "high_bound".
349 * p-exp.y (yylex): Declare "i" in loop header.
350 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
351 Lower declaration of "s".
352 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
353 header.
354 (nios2_push_dummy_call): Rename "len".
355 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
356 "buf".
357 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
358 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
359 (linux_xfer_osdata_modules): Likewise.
360 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
361 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
362 (mips_o64_push_dummy_call): Likewise.
363 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
364 "op".
365 * mi/mi-main.c (list_available_thread_groups): Rename inner
366 "tuple_emitter".
367 (mi_cmd_data_read_memory): Rename inner "opts".
368 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
369 "tuple_emitter".
370 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
371 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
372 more inner scope.
373 (parse_partial_symbols): Rename inner "pst", "p", "name"
374 * main.c (captured_main_1): Rename inner "i"s.
375 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
376 "oso2".
377 * linux-tdep.c (linux_info_proc): Rename inner "filename".
378 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
379 * infrun.c (handle_no_resumed): Don't redeclare "thread".
380 (handle_signal_stop): Rename inner "gdbarch".
381 (handle_command): Declare "signum" in loop header.
382 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
383 "status".
384 (examine_prologue): Rename inner "sol" and "sof".
385 (ia64_extract_return_value): Rename inner "val". Declare another
386 "val" in a more inner scope.
387 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
388 inner scope.
389 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
390 "except".
391 * findvar.c (default_read_var_value): Don't redeclare "addr".
392 * f-exp.y (yylex): Declare "i" in loop header.
393 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
394 Rename inner "type", "expect_type".
395 (evaluate_subexp_for_sizeof): Rename inner "pc".
396 * elfread.c (elf_symfile_read): Rename inner "abfd".
397 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
398 "bytes_read".
399 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
400 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
401 (dwarf_decode_line_header): Rename inner "lh".
402 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
403 "offset". Declare "i" in loop header.
404 (disassemble_dwarf_expression): Rename inner "addr_size".
405 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
406 inner "result".
407 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
408 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
409 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
410 "inner_list_emitter".
411 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
412 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
413 declaration in a block.
414 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
415 * cp-valprint.c (cp_print_value_fields): Don't redeclare
416 "obstack_final_size".
417 * cp-support.c (inspect_type): Declare "i" in loop header.
418 * compile/compile.c (compile_instance::insert_symbol_error):
419 Rename inner "e".
420 * common/agent.c (agent_run_command): Remove inner "ret"
421 declaration.
422 * coffread.c (coff_symfile_read): Rename inner "name".
423 (coff_symfile_read): Rename inner "abfd".
424 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
425 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
426 "high".
427 * c-exp.y (lex_one_token): Move "len" declaration lower.
428 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
429 "gdbarch".
430 (create_exception_master_breakpoint): Likewise. Don't redeclare
431 "b".
432 (watch_command_1): Declare "mark" later.
433 (clear_command): Don't shadow "a" or "b".
434 (delete_command): Rename inner "b".
435 (delete_trace_command): Likewise.
436 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
437 "op".
438 (arm_gdbarch_init): Remove inner "e_flags".
439 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
440 "offset" in inner blocks.
441
442 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
443
444 * dwarf-index-write.c (file_write): Don't write if the vector is
445 empty.
446
447 2018-10-05 Tom de Vries <tdevries@suse.de>
448
449 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
450 PyArg_ParseTuple call.
451
452 2018-10-05 Tom de Vries <tdevries@suse.de>
453
454 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
455 PyArg_ParseTuple call.
456
457 2018-10-04 Joel Brobecker <brobecker@adacore.com>
458
459 * psymtab.c (recursively_search_psymtabs): Reformat parameters
460 to avoid exceeding 80 characters per line limit.
461
462 2018-10-04 Tom Tromey <tom@tromey.com>
463
464 * symfile.c (syms_from_objfile_1, finish_new_objfile)
465 (reread_symbols): Update.
466 * complaints.h (clear_complaints): Remove argument.
467 * complaints.c (enum complaint_series): Remove.
468 (series): Remove global.
469 (complaint_internal): Update.
470 (clear_complaints): Remove argument.
471
472 2018-10-04 Tom Tromey <tom@tromey.com>
473
474 * symfile.c (symbol_file_add_with_addrs): Do not print "no
475 debugging symbols" message if there is a separate debug objfile.
476
477 2018-10-04 Tom Tromey <tom@tromey.com>
478
479 PR cli/19551:
480 * symfile.c (symbol_file_add_with_addrs): Update output.
481 * psymtab.c (require_partial_symbols): Update output.
482
483 2018-10-04 Tom Tromey <tom@tromey.com>
484
485 PR cli/22234:
486 * complaints.c: Emit \n.
487
488 2018-10-04 Tom Tromey <tom@tromey.com>
489
490 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
491 (separate_debug_file_exists, find_separate_debug_file)
492 (add_symbol_file_command, reread_symbols, allocate_symtab)
493 (allocate_compunit_symtab): Use filtered printing, not
494 unfiltered.
495 * psymtab.c (require_partial_symbols, dump_psymtab)
496 (allocate_psymtab): Use filtered printing, not unfiltered.
497
498 2018-10-04 Tom Tromey <tom@tromey.com>
499
500 * complaints.c (complaint_internal): Correctly check complaint
501 count.
502
503 2018-10-04 Tom Tromey <tom@tromey.com>
504
505 * complaints.h (struct complaints): Remove declaration.
506 * complaints.c (clear_complaints): Remove an unused variable.
507
508 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
509
510 * MAINTAINERS (Write After Approval): Add self.
511
512 2018-10-03 Tom Tromey <tom@tromey.com>
513
514 * guile/scm-value.c (gdbscm_value_to_string): Initialize
515 "buffer_contents".
516 * coffread.c (coff_symtab_read): Initialize "newobj".
517
518 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * dwarf2read.c (read_func_scope): Remove struct keyword in
521 range-based for.
522
523 2018-10-03 Tom Tromey <tom@tromey.com>
524
525 * README: Mention --enable-ubsan.
526 * NEWS: Mention --enable-ubsan.
527 * acinclude.m4: Include sanitize.m4.
528 * configure: Rebuild.
529 * configure.ac: Call AM_GDB_UBSAN.
530 * sanitize.m4: New file.
531
532 2018-10-03 Tom Tromey <tom@tromey.com>
533
534 * expression.h (enum exp_opcode): Use uint8_t as base type.
535 * expprint.c (op_name): Handle invalid opcodes.
536
537 2018-10-03 Tom Tromey <tom@tromey.com>
538
539 * parse.c (prefixify_expression): Add assert.
540 (parse_exp_in_context_1): Throw exception if the expression is
541 empty.
542
543 2018-10-03 Tom Tromey <tom@tromey.com>
544
545 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
546
547 2018-10-03 Tom Tromey <tom@tromey.com>
548
549 * c-exp.y (parse_number): Work in unsigned. Remove casts.
550
551 2018-10-03 Tom Tromey <tom@tromey.com>
552
553 * dwarf2read.c (read_subrange_type): Make "negative_mask"
554 unsigned.
555
556 2018-10-03 Tom Tromey <tom@tromey.com>
557
558 * findvar.c (extract_integer): Do work in an unsigned type.
559
560 2018-10-03 Tom Tromey <tom@tromey.com>
561
562 * common/enum-flags.h (enum_flags::operator~): Add static assert.
563 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
564 base type.
565 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
566 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
567 type.
568 * c-lang.h (enum c_string_type_values): Use unsigned as base
569 type.
570 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
571
572 2018-10-03 Tom Tromey <tom@tromey.com>
573
574 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
575 <~dwarf2_frame_state_reg_info>: Update.
576 <dwarf2_frame_state_reg_info>: Update.
577 <alloc_regs>: Add assertion. Update.
578 <reg>: Now a std::vector.
579 <num_regs>: Remove.
580 <swap>: Update.
581 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
582 (execute_cfa_program_test, dwarf2_frame_cache): Update.
583
584 2018-10-03 Tom Tromey <tom@tromey.com>
585
586 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
587
588 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
589
590 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
591
592 2018-10-02 Tom Tromey <tom@tromey.com>
593
594 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
595
596 2018-10-02 John Darrington <john@darrington.wattle.id.au>
597
598 * NEWS: Mention changed commands.
599 * ser-uds.c: New file.
600 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
601 * configure: Regenerate.
602 * Makefile.in: Add new file.
603 * serial.c (serial_open): Check if filename is a socket
604 and lookup the appropriate interface accordingly.
605
606 2018-10-01 Alan Hayward <alan.hayward@arm.com>
607
608 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
609 define.
610 (AARCH64_EXTRA_MAGIC): Likewise.
611 (AARCH64_FPSIMD_MAGIC): Likewise.
612 (AARCH64_SVE_MAGIC): Likewise.
613 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
614 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
615 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
616 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
617 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
618 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
619 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
620 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
621 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
622 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
623 (read_aarch64_ctx): Add function.
624 (aarch64_linux_sigframe_init): Detect FP registers.
625
626 2018-10-01 Alan Hayward <alan.hayward@arm.com>
627
628 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
629 (AARCH64_D0_REGNUM): Likewise.
630 (AARCH64_S0_REGNUM): Likewise.
631 (AARCH64_H0_REGNUM): Likewise.
632 (AARCH64_B0_REGNUM): Likewise.
633 (AARCH64_SVE_V0_REGNUM): Likewise.
634 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
635 (AARCH64_D0_REGNUM): Likewise.
636 (AARCH64_S0_REGNUM): Likewise.
637 (AARCH64_H0_REGNUM): Likewise.
638 (AARCH64_B0_REGNUM): Likewise.
639 (AARCH64_SVE_V0_REGNUM): Likewise.
640
641 2018-10-01 Gary Benson <gbenson@redhat.com>
642
643 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
644 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
645 prfpregset_t instead of gdb_prfpregset_t.
646 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
647 * configure, config.in: Rebuild.
648
649 2018-10-01 Gary Benson <gbenson@redhat.com>
650
651 * common/gdb_proc_service.h: New file, factored out from...
652 * gdb_proc_service.h: Moved common code to the above file.
653 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
654
655 2018-10-01 Gary Benson <gbenson@redhat.com>
656
657 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
658 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
659
660 2018-10-01 Gary Benson <gbenson@redhat.com>
661
662 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
663 (AC_CHECK_HEADERS): Check for linux/elf.h.
664 * configure, config.in: Rebuild.
665 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
666 doesn't define elf_fpregset_t.
667
668 2018-10-01 Gary Benson <gbenson@redhat.com>
669
670 * gdb_proc_service.h: Whitespace change.
671
672 2018-10-01 Tom Tromey <tom@tromey.com>
673
674 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
675 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
676 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
677
678 2018-10-01 Tom Tromey <tom@tromey.com>
679
680 * README: Minor change.
681
682 2018-09-30 Pedro Alves <palves@redhat.com>
683
684 * darwin-nat-info.c (darwin_debug_regions_recurse)
685 (info_mach_exceptions_command): Remove unused local variables.
686 * darwin-nat.c (darwin_decode_notify_message)
687 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
688 (darwin_stop_inferior, darwin_setup_exceptions)
689 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
690 (darwin_nat_target::attach, darwin_nat_target::detach)
691 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
692 local variables.
693 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
694 variables.
695
696 2018-09-29 Tom Tromey <tom@tromey.com>
697
698 * README: Remove some leftover text.
699
700 2018-09-29 Tom Tromey <tom@tromey.com>
701
702 * PROBLEMS: Rewrite.
703 * README: Update.
704
705 2018-09-28 John Baldwin <jhb@FreeBSD.org>
706
707 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
708 case with explicit breakpoint kind.
709 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
710 'additional_info' and related logic.
711 (riscv_debug_breakpoints): New variable.
712 (riscv_breakpoint_kind_from_pc): Use the length of the existing
713 instruction to determine the breakpoint kind.
714 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
715 flag. Update description of 'set/show riscv
716 use-compressed-breakpoints' flag.
717
718 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
719
720 (NEWS): Mention changes to frame related commands.
721 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
722 (add_prefix_cmd_suppress_notification): New function.
723 (add_com_suppress_notification): Call
724 add_cmd_suppress_notification.
725 * command.h (add_cmd_suppress_notification): Declare.
726 (add_prefix_cmd_suppress_notification): Declare.
727 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
728 (parse_frame_specification): Moved from stack.c, with
729 simplification to handle a single argument.
730 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
731 switch to the selected frame. Add a header comment.
732 * stack.c: Remove 'safe-ctype.h' include.
733 (find_frame_for_function): Add declaration.
734 (find_frame_for_address): New function.
735 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
736 (frame_selection_by_function_completer): New function.
737 (info_frame_command): Rename to...
738 (info_frame_command_core): ...this, and update parameter types.
739 (select_frame_command): Rename to...
740 (select_frame_command_core): ...this, and update parameter types.
741 (frame_command): Rename to...
742 (frame_command_core): ...this, and update parameter types.
743 (class frame_command_helper): New class to wrap implementations of
744 frame related sub-commands.
745 (frame_apply_cmd_list): New static global.
746 (frame_cmd_list): Make static.
747 (select_frame_cmd_list): New global for sub-commands.
748 (info_frame_cmd_list): New global for sub-commands.
749 (_initialize_stack): Register sub-commands for 'frame',
750 'select-frame', and 'info frame'. Update 'frame apply' commands
751 to use frame_apply_cmd_list. Move function local static
752 frame_apply_list to file static frame_apply_cmd_list for
753 consistency.
754 * stack.h (select_frame_command): Delete declarationn.
755 (select_frame_for_mi): Declare new function.
756
757 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
760 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
761 and NOP.
762
763 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
764
765 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
766
767 2018-09-26 Tom Tromey <tom@tromey.com>
768
769 * valops.c (auto_abandon): Remove dead code.
770
771 2018-09-26 Tom Tromey <tom@tromey.com>
772
773 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
774
775 2018-09-24 Tom Tromey <tom@tromey.com>
776
777 * common/pathstuff.c (get_standard_cache_dir): Make
778 "xdg_cache_home" and "home" const.
779 * top.c (init_history): Make "tmpenv" const.
780 * main.c (get_init_files): Make "homedir" const.
781
782 2018-09-23 Tom Tromey <tom@tromey.com>
783
784 PR python/18852:
785 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
786
787 2018-09-23 Tom Tromey <tom@tromey.com>
788
789 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
790 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
791 * python/python-internal.h (gdbpy_handle_exception): Declare.
792 * python/py-utils.c (gdbpy_handle_exception): New function.
793
794 2018-09-23 Tom Tromey <tom@tromey.com>
795
796 PR python/17284:
797 * python/py-type.c (typy_template_argument): Check for negative
798 argument number.
799
800 2018-09-23 Tom Tromey <tom@tromey.com>
801
802 PR python/14062:
803 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
804
805 2018-09-23 Tom Tromey <tom@tromey.com>
806
807 PR python/18170:
808 * python/py-value.c (valpy_int): Allow conversion from pointer
809 type.
810
811 2018-09-23 Tom Tromey <tom@tromey.com>
812
813 PR python/20126:
814 * python/py-value.c (valpy_int): Respect type sign.
815
816 2018-09-23 Tom Tromey <tom@tromey.com>
817
818 PR python/18352;
819 * python/py-value.c (valpy_float): Allow conversions from int or
820 char.
821 (valpy_int, valpy_long): Allow conversions from float.
822
823 2018-09-23 Tom Tromey <tom@tromey.com>
824
825 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
826 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
827
828 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
829
830 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
831 __sighndlr.
832 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
833
834 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
835
836 * windows-nat.c (windows_nat_target::wait): Remove a spurious
837 target_terminal::ours().
838
839 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
840
841 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
842 of vl to ULONGEST.
843
844 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
845
846 * breakpoint.c (update_inserted_breakpoint_locations): Remove
847 redundant condition.
848
849 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
850
851 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
852
853 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
854 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
855 * sol-thread.c (ps_pdmodel): Don't guard definition.
856
857 * procfs.c: Fix formatting.
858
859 * procfs.c (sysset_t_alloc): Remove.
860 (create_procinfo): Use XNEW instead of sysset_t_alloc.
861 (procfs_debug_inferior): Likewise.
862 (procfs_set_exec_trap): Likewise.
863 (proc_set_traced_sysentry): Don't allocate argp dynamically.
864 (proc_set_traced_sysexit): Likewise.
865
866 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
867 (dead_procinfo): Likewise.
868 (proc_warn): Likewise.
869 (proc_error): Likewise.
870 (proc_get_LDT_entry): Likewise.
871 (do_attach): Likewise.
872 (procfs_target::pid_to_str): Likewise.
873 (iterate_over_mappings): Likewise.
874
875 * procfs.c (create_procinfo): Fix ARI warning.
876 (proc_get_status): Likewise.
877 (proc_stop_process): Likewise.
878 (proc_run_process): Likewise.
879 (proc_kill): Likewise.
880 (proc_get_LDT_entry): Likewise.
881 (procfs_find_LDT_entry): Likewise.
882 (proc_update_threads): Likewise.
883 (proc_iterate_over_threads): Likewise.
884 (do_attach): Likewise.
885 (procfs_xfer_memory): Likewise.
886 (invalidate_cache): Likewise.
887 (procfs_target::resume): Likewise.
888 (procfs_init_inferior): Likewise.
889 (procfs_set_exec_trap): Likewise.
890 (procfs_target::thread_alive): Likewise.
891 (procfs_target::pid_to_exec_file): Likewise.
892 (iterate_over_mappings): Likewise.
893 (procfs_target::make_corefile_notes): Likewise.
894 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
895
896 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
897 (procfs_find_LDT_entry): Likewise.
898 * sol-thread.c (ps_lgetLDT): Likewise.
899
900 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
901
902 PR tdep/17903
903 * procfs.c (procfs_target): Declare pid_to_exec_file.
904 (procfs_target::pid_to_exec_file): New.
905
906 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
907
908 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
909 renaming.
910 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
911 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
912
913 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
914
915 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
916 (supply_fpregset, fill_fpregset): Move ...
917 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
918 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
919 Remove references to ioctl-based procfs.
920 Include <sys/reg.h>.
921 Remove PR_MODEL_NATIVE guards.
922 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
923 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
924
925 2018-09-19 Xavier Roirand <roirand@adacore.com>
926
927 PR gdb/20981:
928 * solib-darwin.c (darwin_get_dyld_bfd): New function.
929 (darwin_solib_get_all_image_info_addr_at_init): Update call.
930 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
931
932 2018-09-19 John Baldwin <jhb@FreeBSD.org>
933
934 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
935 (fbsd_print_sockaddr_in6): Likewise.
936
937 2018-09-19 Richard Bunt <richard.bunt@arm.com>
938 Chris January <chris.january@arm.com>
939
940 * eval.c (skip_undetermined_arglist): Skip argument list helper.
941 (evaluate_subexp_standard): Return a dummy type when
942 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
943 OP_F77_UNDETERMINED_ARGLIST case.
944 * expression.h (enum noside): Update comment.
945
946 2018-09-19 George Vasick <george.vasick@oracle.com>
947
948 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
949
950 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
951 April Chin <april.chin@oracle.com>
952 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
953
954 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
955 uint_t lwpid_t.
956 (create_procinfo): Print pids in /proc without leading zeros.
957
958 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
959
960 * nios2-tdep.c (nios2_gcc_target_options): New.
961 (nios2_gdb_arch_init): Install new hook.
962
963 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
964
965 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
966 New file.
967 * update-gnulib.sh: Apply patch.
968 * configure: Re-generate.
969
970 2018-09-18 John Baldwin <jhb@FreeBSD.org>
971
972 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
973 description. Make "info proc" command descriptions more
974 consistent.
975
976 2018-09-18 John Baldwin <jhb@FreeBSD.org>
977
978 * NEWS: Mention 'info proc files' command.
979
980 2018-09-18 John Baldwin <jhb@FreeBSD.org>
981
982 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
983 descriptors for IP_FILES and IP_ALL.
984
985 2018-09-18 John Baldwin <jhb@FreeBSD.org>
986
987 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
988 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
989 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
990 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
991 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
992 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
993 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
994 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
995 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
996 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
997 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
998 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
999 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1000 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1001 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1002 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1003 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1004 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1005 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1006 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1007 (struct fbsd_sockaddr_un): New types.
1008 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1009 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1010 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1011 (fbsd_core_info_proc_files): New functions.
1012 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1013 IP_ALL.
1014 * fbsd-tdep.h (fbsd_info_proc_files_header)
1015 (fbsd_info_proc_files_entry): New.
1016
1017 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1018
1019 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1020 * infcmd.c (info_proc_cmd_files): New function.
1021 (_initialize_infcmd): Register 'info proc files' command.
1022
1023 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1024
1025 * gnulib/aclocal-m4-deps.mk: Re-generate.
1026 * gnulib/aclocal.m4: Re-generate.
1027 * gnulib/config.in: Re-generate.
1028 * gnulib/configure: Re-generate.
1029 * gnulib/import/Makefile.am: Re-generate.
1030 * gnulib/import/Makefile.in: Re-generate.
1031 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1032 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1033 * gnulib/import/arpa_inet.in.h: New file.
1034 * gnulib/import/inet_ntop.c: New file.
1035 * gnulib/import/m4/arpa_inet_h.m4: New file.
1036 * gnulib/import/m4/inet_ntop.m4: New file.
1037 * gnulib/import/m4/netinet_in_h.m4: New file.
1038 * gnulib/import/m4/socklen.m4: New file.
1039 * gnulib/import/m4/sockpfaf.m4: New file.
1040 * gnulib/import/m4/stdalign.m4: New file.
1041 * gnulib/import/m4/sys_uio_h.m4: New file.
1042 * gnulib/import/netinet_in.in.h: New file.
1043 * gnulib/import/stdalign.in.h: New file.
1044 * gnulib/import/sys_socket.c: New file.
1045 * gnulib/import/sys_socket.in.h: New file.
1046 * gnulib/import/sys_uio.in.h: New file.
1047 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1048 module.
1049
1050 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1051
1052 * gnulib/aclocal-m4-deps.mk: New file.
1053 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1054 deterministically.
1055
1056 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1057
1058 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1059 KVE_PATH.
1060
1061 2018-09-18 Tom Tromey <tom@tromey.com>
1062
1063 * compile/compile-object-load.c (struct
1064 link_hash_table_cleanup_data): Add constructor and destructor.
1065 Use DISABLE_COPY_AND_ASSIGN.
1066 (~link_hash_table_cleanup_data): Rename from
1067 link_hash_table_free. Now a destructor.
1068 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1069
1070 2018-09-18 Tom Tromey <tom@tromey.com>
1071
1072 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1073 * compile/compile-object-load.c (struct munmap_list): Move to
1074 header file.
1075 (munmap_list::add): Rename from munmap_list_add; rewrite.
1076 (munmap_list::~munmap_list): Rename from munmap_list_free.
1077 (munmap_listp_free_cleanup): Remove.
1078 (compile_object_load): Update.
1079 * compile/compile-object-load.h (struct munmap_list): Move from
1080 compile-object-load.c. Rewrite.
1081
1082 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1083
1084 * aarch64-tdep.c (pass_in_v): Use register size.
1085 (aarch64_extract_return_value): Likewise.
1086 (aarch64_store_return_value): Likewise.
1087
1088 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1089
1090 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1091 rlim_t.
1092
1093 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1094
1095 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1096 Fix short help line.
1097
1098 2018-09-17 Tom Tromey <tom@tromey.com>
1099
1100 PR python/20445:
1101 * configure: Rebuild.
1102 * configure.ac: Conditionally use -DNDEBUG for Python.
1103
1104 2018-09-17 Tom Tromey <tom@tromey.com>
1105
1106 * configure: Rebuild.
1107 * configure.ac: Use gmp as a library dependency when checking for
1108 mpfr.
1109
1110 2018-09-17 Pedro Alves <palves@redhat.com>
1111
1112 * python/py-inferior.c (find_inferior_object): Delete.
1113
1114 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1115
1116 * compile/compile-cplus-types.c
1117 (compile_cplus_instance::enter_scope): Don't use new_scope after
1118 std::move.
1119
1120 2018-09-17 Tom Tromey <tom@tromey.com>
1121
1122 * common/pathstuff.c (get_standard_cache_dir): Use
1123 ~/Library/Caches on macOS.
1124 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1125
1126 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1127
1128 PR python/23669
1129 * breakpoint.c (commands_cmd_element): New.
1130 (_initialize_breakpoint): Assign commands_cmd_element.
1131 * breakpoint.h (commands_cmd_element): New.
1132 * cli/cli-script.c (while_cmd_element, if_command,
1133 define_cmd_element): New.
1134 (command_name_equals): Remove.
1135 (process_next_line): Compare commands by pointer, not by name.
1136 (_initialize_cli_script): Assign the various cmd_list_element
1137 variables.
1138 * compile/compile.c (compile_cmd_element): New.
1139 (_initialize_compile): Assign compile_cmd_element.
1140 * compile/compile.h (compile_cmd_element): New.
1141 * guile/guile.c (guile_cmd_element): New.
1142 (install_gdb_commands): Assign guile_cmd_element.
1143 * guile/guile.h (guile_cmd_element): New.
1144 * python/python.c (python_cmd_element): New.
1145 (_initialize_python): Assign python_cmd_element.
1146 * python/python.h (python_cmd_element): New.
1147 * tracepoint.c (while_stepping_cmd_element): New.
1148 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1149 * tracepoint.h (while_stepping_cmd_element): New.
1150
1151 2018-09-17 Tom Tromey <tom@tromey.com>
1152
1153 * infrun.c (save_infcall_suspend_state): Return
1154 infcall_suspend_state_up.
1155 (save_infcall_control_state): Return infcall_control_state_up.
1156 * inferior.h (save_infcall_suspend_state)
1157 (save_infcall_control_state): Declare later. Return unique
1158 pointers.
1159
1160 2018-09-17 Tom Tromey <tom@tromey.com>
1161
1162 * infrun.c (struct stop_context): Declare constructor,
1163 destructor, "changed" method.
1164 (stop_context::stop_context): Rename from save_stop_context.
1165 (stop_context::~stop_context): Rename from
1166 release_stop_context_cleanup.
1167 (normal_stop): Update.
1168 (stop_context::changed): Rename from stop_context_changed. Return
1169 bool.
1170
1171 2018-09-17 Tom Tromey <tom@tromey.com>
1172
1173 * inferior.h (struct infcall_suspend_state_deleter): New.
1174 (infcall_suspend_state_up): New typedef.
1175 (struct infcall_control_state_deleter): New.
1176 (infcall_control_state_up): New typedef.
1177 (make_cleanup_restore_infcall_suspend_state)
1178 (make_cleanup_restore_infcall_control_state): Don't declare.
1179 * infcall.c (call_function_by_hand_dummy): Update.
1180 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1181 (make_cleanup_restore_infcall_suspend_state): Remove.
1182 (do_restore_infcall_control_state_cleanup)
1183 (make_cleanup_restore_infcall_control_state): Remove.
1184
1185 2018-09-17 Tom Tromey <tom@tromey.com>
1186
1187 * gdbthread.h (struct thread_control_state): Add initializer.
1188 (class thread_info) <control>: Remove initializer.
1189 * inferior.h (struct inferior_control_state): Add initializer.
1190 (class inferior) <control>: Remove initializer.
1191 (exit_inferior_1): Update.
1192 * infrun.c (struct infcall_control_state): Add constructors.
1193 (save_infcall_control_state): Use new.
1194 (restore_infcall_control_state, discard_infcall_control_state):
1195 Use delete.
1196
1197 2018-09-17 Tom Tromey <tom@tromey.com>
1198
1199 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1200 unique_ptr.
1201 <siginfo_data>: Now a unique_xmalloc_ptr.
1202 (save_infcall_suspend_state, restore_infcall_suspend_state)
1203 (discard_infcall_suspend_state)
1204 (get_infcall_suspend_state_regcache): Update.
1205
1206 2018-09-17 Tom Tromey <tom@tromey.com>
1207
1208 * gdbthread.h (struct thread_suspend_state): Add initializers.
1209 (class thread_info) <suspend>: Remove initializer.
1210 * infrun.c (struct infcall_suspend_state): Add initializers.
1211 (save_infcall_suspend_state): Use new.
1212 (discard_infcall_suspend_state): Use delete.
1213
1214 2018-09-16 Tom Tromey <tom@tromey.com>
1215
1216 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1217 Remove.
1218 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1219 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1220 (py_varobj_iter_new): Likewise.
1221 (py_varobj_get_iterator): Use gdbpy_ref.
1222
1223 2018-09-16 Tom Tromey <tom@tromey.com>
1224
1225 * python/py-threadevent.c (py_get_event_thread): Simplify.
1226 * python/py-inferior.c (infpy_thread_from_thread_handle):
1227 Return immediately after calling thread_to_thread_object. Use
1228 Py_RETURN_NONE.
1229 (thread_to_thread_object): Set the exception on a NULL return.
1230
1231 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1234
1235 2018-09-16 Tom Tromey <tom@tromey.com>
1236
1237 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1238 Remove.
1239
1240 2018-09-16 Tom Tromey <tom@tromey.com>
1241
1242 * python/python-internal.h (thread_to_thread_object): Change
1243 return type.
1244 * python/py-inferior.c (thread_to_thread_object): Return a new
1245 reference.
1246 (infpy_thread_from_thread_handle): Update.
1247 * python/py-infthread.c (gdbpy_selected_thread): Update.
1248 * python/py-stopevent.c (create_stop_event_object): Update.
1249 * python/py-threadevent.c (py_get_event_thread): Return a new
1250 reference.
1251 (py_get_event_thread): Update.
1252 * python/py-event.h (py_get_event_thread): Change return type.
1253 * python/py-continueevent.c (create_continue_event_object):
1254 Update.
1255
1256 2018-09-16 Tom Tromey <tom@tromey.com>
1257
1258 * python/py-progspace.c (pspy_get_objfiles): Update.
1259 * python/python-internal.h (objfile_to_objfile_object): Change
1260 return type.
1261 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1262 Update.
1263 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1264 Update.
1265 * python/python.c (gdbpy_get_current_objfile): Update.
1266 (gdbpy_objfiles): Update.
1267 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1268 Update.
1269 (objfile_to_objfile_object): Return a new reference.
1270 * python/py-symtab.c (stpy_get_objfile): Update.
1271 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1272 Update.
1273
1274 2018-09-16 Tom Tromey <tom@tromey.com>
1275
1276 * python/py-inferior.c (infpy_get_progspace): Update.
1277 * python/python-internal.h (pspace_to_pspace_object): Change
1278 return type.
1279 * python/py-newobjfileevent.c
1280 (create_clear_objfiles_event_object): Update.
1281 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1282 Update.
1283 * python/python.c (gdbpy_get_current_progspace): Update.
1284 (gdbpy_progspaces): Update.
1285 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1286 reference.
1287 * python/py-objfile.c (objfpy_get_progspace): Update.
1288 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1289 Update.
1290
1291 2018-09-16 Tom Tromey <tom@tromey.com>
1292
1293 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1294 (solib_name, block_for_pc, find_pc_line): New functions.
1295 (execute_unwinders): Update.
1296 * python/py-block.c (gdbpy_block_for_pc): Remove.
1297 * python/py-inferior.c (infpy_get_progspace): New function.
1298 (inferior_object_getset) <progspace>: Add.
1299 * python/py-progspace.c (pspy_objfiles): Rewrite.
1300 (pspy_solib_name, pspy_block_for_pc)
1301 (pspy_find_pc_line, pspy_is_valid): New functions.
1302 (progspace_object_methods): Add entries for solib_name,
1303 block_for_pc, find_pc_line, is_valid.
1304 * python/python-internal.h (gdbpy_block_for_pc)
1305 (build_objfiles_list): Don't declare.
1306 * python/python.c: Don't include solib.h.
1307 (gdbpy_solib_name, gdbpy_find_pc_line)
1308 (gdbpy_get_current_progspace, build_objfiles_list)
1309 (gdbpy_objfiles): Remove.
1310 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1311 solib_name, find_pc_line>: Remove entries.
1312
1313 2018-09-16 Tom Tromey <tom@tromey.com>
1314
1315 * top.c (new_ui_command): Use GNU style for metasyntactic
1316 variables.
1317 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1318 variables.
1319 * maint.c (maintenance_translate_address): Remove "<>" around
1320 text.
1321 * interps.c (interpreter_exec_cmd): Use GNU style for
1322 metasyntactic variables.
1323 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1324 metasyntactic variables.
1325 * tracepoint.c (tfind_range_command): Use GNU style for
1326 metasyntactic variables.
1327 (tfind_outside_command): Likewise.
1328 (_initialize_tracepoint): Likewise.
1329 * remote.c (extended_remote_target::create_inferior): Use GNU
1330 style for metasyntactic variables.
1331 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1332 metasyntactic variables.
1333 (adi_assign_command): Likewise.
1334
1335 2018-09-16 Tom Tromey <tom@tromey.com>
1336
1337 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1338 metasyntactic variables. Print message if no disassembler options
1339 are available.
1340
1341 2018-09-15 Tom Tromey <tom@tromey.com>
1342
1343 * infcmd.c (get_inferior_args): Return const char *.
1344 * inferior.h (get_inferior_args): Return type now const.
1345 * linux-tdep.c (linux_fill_prpsinfo): Update.
1346 * procfs.c (procfs_target::make_corefile_notes): Update.
1347
1348 2018-09-07 Tom Tromey <tom@tromey.com>
1349
1350 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1351 inside the TRY.
1352
1353 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1354
1355 * nios2-tdep.c (nios2_type_align): New.
1356 (nios2_gdb_arch_init): Install type_align hook.
1357
1358 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1361 type that is neither object file owned, nor gdbarch owned.
1362 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1363 gdbarch is non-NULL.
1364 (alloc_type_instance): Allocate non-objfile owned types on the
1365 gdbarch obstack.
1366 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1367 using TYPE_ALLOC to ensure memory is allocated on the correct
1368 obstack.
1369 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1370 obstack, or the gdbarch obstack.
1371 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1372
1373 2018-09-14 Tom Tromey <tom@tromey.com>
1374
1375 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1376 block.
1377
1378 2018-09-14 Tom Tromey <tom@tromey.com>
1379
1380 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1381
1382 2018-09-13 Tom Tromey <tom@tromey.com>
1383
1384 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1385 static.
1386
1387 2018-09-13 Tom Tromey <tom@tromey.com>
1388
1389 * exec.c (try_open_exec_file): Use std::string.
1390
1391 2018-09-13 Tom Tromey <tom@tromey.com>
1392
1393 * utils.h (gdb_bfd_errmsg): Return std::string.
1394 * exec.c (exec_file_attach): Update.
1395 * compile/compile-object-load.c (compile_object_load): Update.
1396 * utils.c (gdb_bfd_errmsg): Return std::string.
1397
1398 2018-09-13 Tom Tromey <tom@tromey.com>
1399
1400 * procfs.c (struct procinfo_deleter): New.
1401 (procinfo_up): New typedef.
1402 (do_destroy_procinfo_cleanup): Remove.
1403 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1404
1405 2018-09-13 Tom Tromey <tom@tromey.com>
1406
1407 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1408
1409 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1410 2018-09-13 Tom Tromey <tom@tromey.com>
1411
1412 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1413 (pspy_get_objfiles): New function.
1414 (progspace_object_methods): New.
1415 (pspace_object_type): Add tp_methods callback.
1416 * python/python-internal.h (build_objfiles_list): New
1417 declaration.
1418 * python/python.c (build_objfiles_list): New function.
1419 (gdbpy_objfiles): Implement using build_objfiles_list.
1420 * NEWS: Mention the Progspace.objfiles method.
1421
1422 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1423
1424 * python/py-inferior.c (infpy_get_progspace): New function.
1425 (inferior_object_getset): Add progspace property.
1426 * NEWS: Mention the new property.
1427
1428 2018-09-13 Tom Tromey <tom@tromey.com>
1429
1430 PR rust/23650:
1431 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1432
1433 2018-09-13 Tom Tromey <tom@tromey.com>
1434
1435 PR rust/23626:
1436 * rust-lang.c (rust_enum_variant): Now static.
1437 (rust_empty_enum_p): New function.
1438 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1439 Handle empty enum.
1440
1441 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1442
1443 * python/py-inferior.c (infpy_repr): New.
1444 (inferior_object_type): Register infpy_repr.
1445 * python/py-objfile.c (objfpy_repr): New.
1446 (objfile_object_type): Register objfpy_repr.
1447
1448 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1449
1450 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1451
1452 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1453
1454 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1455 typo.
1456
1457 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1458
1459 * common/common-utils.c: Don't include '<sys/stat.h>'.
1460 (is_regular_file): Move to...
1461 * common/filestuff.c (is_regular_file): ... here.
1462 * common/common-utils.h (is_regular_file): Move to...
1463 * common/filestuff.h (is_regular_file): ... here.
1464
1465 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1466
1467 * skip.c (debug_skip): New variable.
1468 (skiplist_entry::do_skip_file_p): Add debug output.
1469 (skiplist_entry::do_skip_gfile_p): Likewise.
1470 (skiplist_entry::skip_function_p): Likewise.
1471 (_initialize_step_skip): Create debug command.
1472 * NEWS: Mention set/show debug skip.
1473
1474 2018-09-11 Xavier Roirand <roirand@adacore.com>
1475
1476 * darwin-nat.c (should_disable_startup_with_shell):
1477 New function.
1478 (darwin_nat_target::create_inferior): Add call.
1479
1480 2018-09-11 Xavier Roirand <roirand@adacore.com>
1481
1482 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1483 inf_port, msg_state>: Initialize.
1484 (struct darwin_thread_info) <signaled, single_step>: Change
1485 type and initialize.
1486 (struct darwin_thread_info) <event>: Initialize.
1487
1488 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1489
1490 PR gdb/23555
1491 PR gdb/23558
1492 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1493 guesses.
1494
1495 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1496
1497 Revert:
1498 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1499
1500 PR gdb/23555
1501 PR gdb/23558
1502 * gnulib/aclocal.m4: Regenerate.
1503 * gnulib/config.in: Regenerate.
1504 * gnulib/configure: Regenerate.
1505 * gnulib/import/Makefile.am: Update.
1506 * gnulib/import/Makefile.in: Update.
1507 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1508 * gnulib/import/_Noreturn.h: ... this.
1509 * gnulib/import/alloca.in.h: Update.
1510 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1511 * gnulib/import/arg-nonnull.h: ... this.
1512 * gnulib/import/assure.h: Update.
1513 * gnulib/import/at-func.c: Update.
1514 * gnulib/import/basename-lgpl.c: Update.
1515 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1516 * gnulib/import/c++defs.h: ... this.
1517 * gnulib/import/canonicalize-lgpl.c: Update.
1518 * gnulib/import/cdefs.h: Update.
1519 * gnulib/import/chdir-long.c: Update.
1520 * gnulib/import/chdir-long.h: Update.
1521 * gnulib/import/cloexec.c: Update.
1522 * gnulib/import/cloexec.h: Update.
1523 * gnulib/import/close.c: Update.
1524 * gnulib/import/closedir.c: Update.
1525 * gnulib/import/config.charset: Update.
1526 * gnulib/import/dirent-private.h: Update.
1527 * gnulib/import/dirent.in.h: Update.
1528 * gnulib/import/dirfd.c: Update.
1529 * gnulib/import/dirname-lgpl.c: Update.
1530 * gnulib/import/dirname.h: Update.
1531 * gnulib/import/dosname.h: Update.
1532 * gnulib/import/dup-safer-flag.c: Update.
1533 * gnulib/import/dup-safer.c: Update.
1534 * gnulib/import/dup.c: Update.
1535 * gnulib/import/dup2.c: Update.
1536 * gnulib/import/errno.in.h: Update.
1537 * gnulib/import/error.c: Update.
1538 * gnulib/import/error.h: Update.
1539 * gnulib/import/exitfail.c: Update.
1540 * gnulib/import/exitfail.h: Update.
1541 * gnulib/import/extra/update-copyright: Update.
1542 * gnulib/import/fchdir.c: Update.
1543 * gnulib/import/fcntl.c: Update.
1544 * gnulib/import/fcntl.in.h: Update.
1545 * gnulib/import/fd-hook.c: Update.
1546 * gnulib/import/fd-hook.h: Update.
1547 * gnulib/import/fd-safer-flag.c: Update.
1548 * gnulib/import/fd-safer.c: Update.
1549 * gnulib/import/fdopendir.c: Update.
1550 * gnulib/import/filename.h: Update.
1551 * gnulib/import/filenamecat-lgpl.c: Update.
1552 * gnulib/import/filenamecat.h: Update.
1553 * gnulib/import/flexmember.h: Update.
1554 * gnulib/import/float+.h: Update.
1555 * gnulib/import/float.c: Update.
1556 * gnulib/import/float.in.h: Update.
1557 * gnulib/import/fnmatch.c: Update.
1558 * gnulib/import/fnmatch.in.h: Update.
1559 * gnulib/import/fnmatch_loop.c: Update.
1560 * gnulib/import/fpucw.h: Update.
1561 * gnulib/import/frexp.c: Update.
1562 * gnulib/import/frexpl.c: Update.
1563 * gnulib/import/fstat.c: Update.
1564 * gnulib/import/fstatat.c: Update.
1565 * gnulib/import/getcwd-lgpl.c: Update.
1566 * gnulib/import/getcwd.c: Update.
1567 * gnulib/import/getdtablesize.c: Update.
1568 * gnulib/import/getlogin_r.c: Update.
1569 * gnulib/import/getprogname.c: Update.
1570 * gnulib/import/getprogname.h: Update.
1571 * gnulib/import/gettext.h: Update.
1572 * gnulib/import/gettimeofday.c: Update.
1573 * gnulib/import/glob-libc.h: Update.
1574 * gnulib/import/glob.c: Update.
1575 * gnulib/import/glob.in.h: Update.
1576 * gnulib/import/glob_internal.h: Update.
1577 * gnulib/import/glob_pattern_p.c: Update.
1578 * gnulib/import/globfree.c: Update.
1579 * gnulib/import/hard-locale.c: Update.
1580 * gnulib/import/hard-locale.h: Update.
1581 * gnulib/import/intprops.h: Update.
1582 * gnulib/import/inttypes.in.h: Update.
1583 * gnulib/import/isnan.c: Update.
1584 * gnulib/import/isnand-nolibm.h: Update.
1585 * gnulib/import/isnand.c: Update.
1586 * gnulib/import/isnanl-nolibm.h: Update.
1587 * gnulib/import/isnanl.c: Update.
1588 * gnulib/import/itold.c: Update.
1589 * gnulib/import/libc-config.h: Update.
1590 * gnulib/import/limits.in.h: Update.
1591 * gnulib/import/localcharset.c: Update.
1592 * gnulib/import/localcharset.h: Update.
1593 * gnulib/import/localtime-buffer.c: Update.
1594 * gnulib/import/localtime-buffer.h: Update.
1595 * gnulib/import/lstat.c: Update.
1596 * gnulib/import/m4/00gnulib.m4: Update.
1597 * gnulib/import/m4/__inline.m4: Update.
1598 * gnulib/import/m4/absolute-header.m4: Update.
1599 * gnulib/import/m4/alloca.m4: Update.
1600 * gnulib/import/m4/builtin-expect.m4: Update.
1601 * gnulib/import/m4/canonicalize.m4: Update.
1602 * gnulib/import/m4/chdir-long.m4: Update.
1603 * gnulib/import/m4/close.m4: Update.
1604 * gnulib/import/m4/closedir.m4: Update.
1605 * gnulib/import/m4/configmake.m4: Update.
1606 * gnulib/import/m4/d-ino.m4: Update.
1607 * gnulib/import/m4/d-type.m4: Update.
1608 * gnulib/import/m4/dirent_h.m4: Update.
1609 * gnulib/import/m4/dirfd.m4: Update.
1610 * gnulib/import/m4/dirname.m4: Update.
1611 * gnulib/import/m4/double-slash-root.m4: Update.
1612 * gnulib/import/m4/dup.m4: Update.
1613 * gnulib/import/m4/dup2.m4: Update.
1614 * gnulib/import/m4/eealloc.m4: Update.
1615 * gnulib/import/m4/environ.m4: Update.
1616 * gnulib/import/m4/errno_h.m4: Update.
1617 * gnulib/import/m4/error.m4: Update.
1618 * gnulib/import/m4/exponentd.m4: Update.
1619 * gnulib/import/m4/exponentl.m4: Update.
1620 * gnulib/import/m4/extensions.m4: Update.
1621 * gnulib/import/m4/extern-inline.m4: Update.
1622 * gnulib/import/m4/fchdir.m4: Update.
1623 * gnulib/import/m4/fcntl-o.m4: Update.
1624 * gnulib/import/m4/fcntl.m4: Update.
1625 * gnulib/import/m4/fcntl_h.m4: Update.
1626 * gnulib/import/m4/fdopendir.m4: Update.
1627 * gnulib/import/m4/filenamecat.m4: Update.
1628 * gnulib/import/m4/flexmember.m4: Update.
1629 * gnulib/import/m4/float_h.m4: Update.
1630 * gnulib/import/m4/fnmatch.m4: Update.
1631 * gnulib/import/m4/fnmatch_h.m4: Update.
1632 * gnulib/import/m4/fpieee.m4: Update.
1633 * gnulib/import/m4/frexp.m4: Update.
1634 * gnulib/import/m4/frexpl.m4: Update.
1635 * gnulib/import/m4/fstat.m4: Update.
1636 * gnulib/import/m4/fstatat.m4: Update.
1637 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1638 * gnulib/import/m4/getcwd-path-max.m4: Update.
1639 * gnulib/import/m4/getcwd.m4: Update.
1640 * gnulib/import/m4/getdtablesize.m4: Update.
1641 * gnulib/import/m4/getlogin.m4: Update.
1642 * gnulib/import/m4/getlogin_r.m4: Update.
1643 * gnulib/import/m4/getpagesize.m4: Update.
1644 * gnulib/import/m4/getprogname.m4: Update.
1645 * gnulib/import/m4/gettimeofday.m4: Update.
1646 * gnulib/import/m4/glibc21.m4: Update.
1647 * gnulib/import/m4/glob.m4: Update.
1648 * gnulib/import/m4/glob_h.m4: Update.
1649 * gnulib/import/m4/gnulib-cache.m4: Update.
1650 * gnulib/import/m4/gnulib-common.m4: Update.
1651 * gnulib/import/m4/gnulib-comp.m4: Update.
1652 * gnulib/import/m4/gnulib-tool.m4: Update.
1653 * gnulib/import/m4/hard-locale.m4: Update.
1654 * gnulib/import/m4/include_next.m4: Update.
1655 * gnulib/import/m4/inttypes-pri.m4: Update.
1656 * gnulib/import/m4/inttypes.m4: Update.
1657 * gnulib/import/m4/isnand.m4: Update.
1658 * gnulib/import/m4/isnanl.m4: Update.
1659 * gnulib/import/m4/largefile.m4: Update.
1660 * gnulib/import/m4/limits-h.m4: Update.
1661 * gnulib/import/m4/localcharset.m4: Update.
1662 * gnulib/import/m4/locale-fr.m4: Update.
1663 * gnulib/import/m4/locale-ja.m4: Update.
1664 * gnulib/import/m4/locale-zh.m4: Update.
1665 * gnulib/import/m4/localtime-buffer.m4: Update.
1666 * gnulib/import/m4/longlong.m4: Update.
1667 * gnulib/import/m4/lstat.m4: Update.
1668 * gnulib/import/m4/malloc.m4: Update.
1669 * gnulib/import/m4/malloca.m4: Update.
1670 * gnulib/import/m4/math_h.m4: Update.
1671 * gnulib/import/m4/mbrtowc.m4: Update.
1672 * gnulib/import/m4/mbsinit.m4: Update.
1673 * gnulib/import/m4/mbsrtowcs.m4: Update.
1674 * gnulib/import/m4/mbstate_t.m4: Update.
1675 * gnulib/import/m4/memchr.m4: Update.
1676 * gnulib/import/m4/memmem.m4: Update.
1677 * gnulib/import/m4/mempcpy.m4: Update.
1678 * gnulib/import/m4/memrchr.m4: Update.
1679 * gnulib/import/m4/mkdir.m4: Update.
1680 * gnulib/import/m4/mkstemp.m4: Update.
1681 * gnulib/import/m4/mmap-anon.m4: Update.
1682 * gnulib/import/m4/mode_t.m4: Update.
1683 * gnulib/import/m4/msvc-inval.m4: Update.
1684 * gnulib/import/m4/msvc-nothrow.m4: Update.
1685 * gnulib/import/m4/multiarch.m4: Update.
1686 * gnulib/import/m4/nocrash.m4: Update.
1687 * gnulib/import/m4/off_t.m4: Update.
1688 * gnulib/import/m4/onceonly.m4: Update.
1689 * gnulib/import/m4/open-cloexec.m4: Update.
1690 * gnulib/import/m4/open.m4: Update.
1691 * gnulib/import/m4/openat.m4: Update.
1692 * gnulib/import/m4/opendir.m4: Update.
1693 * gnulib/import/m4/pathmax.m4: Update.
1694 * gnulib/import/m4/rawmemchr.m4: Update.
1695 * gnulib/import/m4/readdir.m4: Update.
1696 * gnulib/import/m4/readlink.m4: Update.
1697 * gnulib/import/m4/realloc.m4: Update.
1698 * gnulib/import/m4/rename.m4: Update.
1699 * gnulib/import/m4/rewinddir.m4: Update.
1700 * gnulib/import/m4/rmdir.m4: Update.
1701 * gnulib/import/m4/save-cwd.m4: Update.
1702 * gnulib/import/m4/secure_getenv.m4: Update.
1703 * gnulib/import/m4/setenv.m4: Update.
1704 * gnulib/import/m4/signal_h.m4: Update.
1705 * gnulib/import/m4/ssize_t.m4: Update.
1706 * gnulib/import/m4/stat-time.m4: Update.
1707 * gnulib/import/m4/stat.m4: Update.
1708 * gnulib/import/m4/std-gnu11.m4: Update.
1709 * gnulib/import/m4/stdbool.m4: Update.
1710 * gnulib/import/m4/stddef_h.m4: Update.
1711 * gnulib/import/m4/stdint.m4: Update.
1712 * gnulib/import/m4/stdio_h.m4: Update.
1713 * gnulib/import/m4/stdlib_h.m4: Update.
1714 * gnulib/import/m4/strchrnul.m4: Update.
1715 * gnulib/import/m4/strdup.m4: Update.
1716 * gnulib/import/m4/strerror.m4: Update.
1717 * gnulib/import/m4/string_h.m4: Update.
1718 * gnulib/import/m4/strstr.m4: Update.
1719 * gnulib/import/m4/strtok_r.m4: Update.
1720 * gnulib/import/m4/sys_socket_h.m4: Update.
1721 * gnulib/import/m4/sys_stat_h.m4: Update.
1722 * gnulib/import/m4/sys_time_h.m4: Update.
1723 * gnulib/import/m4/sys_types_h.m4: Update.
1724 * gnulib/import/m4/tempname.m4: Update.
1725 * gnulib/import/m4/time_h.m4: Update.
1726 * gnulib/import/m4/unistd-safer.m4: Update.
1727 * gnulib/import/m4/unistd_h.m4: Update.
1728 * gnulib/import/m4/warn-on-use.m4: Update.
1729 * gnulib/import/m4/wchar_h.m4: Update.
1730 * gnulib/import/m4/wchar_t.m4: Update.
1731 * gnulib/import/m4/wctype_h.m4: Update.
1732 * gnulib/import/m4/wint_t.m4: Update.
1733 * gnulib/import/malloc.c: Update.
1734 * gnulib/import/malloc/scratch_buffer.h: Update.
1735 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1736 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1737 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1738 * gnulib/import/malloca.c: Update.
1739 * gnulib/import/malloca.h: Update.
1740 * gnulib/import/malloca.valgrind: Update.
1741 * gnulib/import/math.in.h: Update.
1742 * gnulib/import/mbrtowc.c: Update.
1743 * gnulib/import/mbsinit.c: Update.
1744 * gnulib/import/mbsrtowcs-impl.h: Update.
1745 * gnulib/import/mbsrtowcs-state.c: Update.
1746 * gnulib/import/mbsrtowcs.c: Update.
1747 * gnulib/import/memchr.c: Update.
1748 * gnulib/import/memmem.c: Update.
1749 * gnulib/import/mempcpy.c: Update.
1750 * gnulib/import/memrchr.c: Update.
1751 * gnulib/import/mkdir.c: Update.
1752 * gnulib/import/mkstemp.c: Update.
1753 * gnulib/import/msvc-inval.c: Update.
1754 * gnulib/import/msvc-inval.h: Update.
1755 * gnulib/import/msvc-nothrow.c: Update.
1756 * gnulib/import/msvc-nothrow.h: Update.
1757 * gnulib/import/open.c: Update.
1758 * gnulib/import/openat-die.c: Update.
1759 * gnulib/import/openat-priv.h: Update.
1760 * gnulib/import/openat-proc.c: Update.
1761 * gnulib/import/openat.c: Update.
1762 * gnulib/import/openat.h: Update.
1763 * gnulib/import/opendir.c: Update.
1764 * gnulib/import/pathmax.h: Update.
1765 * gnulib/import/pipe-safer.c: Update.
1766 * gnulib/import/rawmemchr.c: Update.
1767 * gnulib/import/readdir.c: Update.
1768 * gnulib/import/readlink.c: Update.
1769 * gnulib/import/realloc.c: Update.
1770 * gnulib/import/ref-add.sin: Update.
1771 * gnulib/import/ref-del.sin: Update.
1772 * gnulib/import/rename.c: Update.
1773 * gnulib/import/rewinddir.c: Update.
1774 * gnulib/import/rmdir.c: Update.
1775 * gnulib/import/same-inode.h: Update.
1776 * gnulib/import/save-cwd.c: Update.
1777 * gnulib/import/save-cwd.h: Update.
1778 * gnulib/import/scratch_buffer.h: Update.
1779 * gnulib/import/secure_getenv.c: Update.
1780 * gnulib/import/setenv.c: Update.
1781 * gnulib/import/signal.in.h: Update.
1782 * gnulib/import/stat-time.c: Update.
1783 * gnulib/import/stat-time.h: Update.
1784 * gnulib/import/stat-w32.c: Update.
1785 * gnulib/import/stat-w32.h: Update.
1786 * gnulib/import/stat.c: Update.
1787 * gnulib/import/stdbool.in.h: Update.
1788 * gnulib/import/stddef.in.h: Update.
1789 * gnulib/import/stdint.in.h: Update.
1790 * gnulib/import/stdio.in.h: Update.
1791 * gnulib/import/stdlib.in.h: Update.
1792 * gnulib/import/str-two-way.h: Update.
1793 * gnulib/import/strchrnul.c: Update.
1794 * gnulib/import/strdup.c: Update.
1795 * gnulib/import/streq.h: Update.
1796 * gnulib/import/strerror-override.c: Update.
1797 * gnulib/import/strerror-override.h: Update.
1798 * gnulib/import/strerror.c: Update.
1799 * gnulib/import/string.in.h: Update.
1800 * gnulib/import/stripslash.c: Update.
1801 * gnulib/import/strnlen1.c: Update.
1802 * gnulib/import/strnlen1.h: Update.
1803 * gnulib/import/strstr.c: Update.
1804 * gnulib/import/strtok_r.c: Update.
1805 * gnulib/import/sys_stat.in.h: Update.
1806 * gnulib/import/sys_time.in.h: Update.
1807 * gnulib/import/sys_types.in.h: Update.
1808 * gnulib/import/tempname.c: Update.
1809 * gnulib/import/tempname.h: Update.
1810 * gnulib/import/time.in.h: Update.
1811 * gnulib/import/unistd--.h: Update.
1812 * gnulib/import/unistd-safer.h: Update.
1813 * gnulib/import/unistd.in.h: Update.
1814 * gnulib/import/unsetenv.c: Update.
1815 * gnulib/import/verify.h: Update.
1816 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1817 * gnulib/import/wchar.in.h: Update.
1818 * gnulib/import/wctype.in.h: Update.
1819 * gnulib/import/xalloc-oversized.h: Update.
1820 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1821 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1822
1823 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1824
1825 * record-btrace.c (get_thread_current_frame): Remove
1826 old_inferior_ptid.
1827
1828 2018-09-10 Jerome Guitton <guitton@adacore.com>
1829
1830 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1831 with check_tag to 1 if and only if the type is tagged and the
1832 component being searched cannot been found in the current
1833 view. Otherwise, always call ada_to_fixed_type with
1834 check_tag to 0.
1835
1836 2018-09-10 Xavier Roirand <roirand@adacore.com>
1837
1838 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1839 declaration.
1840 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1841 * ada-varobj.c (ada_varobj_get_number_of_children,
1842 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1843
1844 2018-09-10 Xavier Roirand <roirand@adacore.com>
1845
1846 * ada-valprint.c (ada_value_print): Use type instead of
1847 enclosing type.
1848
1849 2018-09-10 Xavier Roirand <roirand@adacore.com>
1850
1851 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1852 an array of access to unconstrained array.
1853
1854 2018-09-10 Xavier Roirand <roirand@adacore.com>
1855
1856 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1857 (ada_check_typedef): Use it.
1858
1859 2018-09-10 Xavier Roirand <roirand@adacore.com>
1860
1861 * ada-varobj.c (ada_varobj_describe_struct_child)
1862 (ada_varobj_describe_child): Handle union case like struct one.
1863
1864 2018-09-10 Tom Tromey <tom@tromey.com>
1865
1866 PR python/18380:
1867 * python/python.c (_initialize_python): Make example in "python"
1868 help work in Python 3.
1869
1870 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1871
1872 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1873 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1874 $(EXEEXT) to the script, as it is not a program.
1875
1876 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1877
1878 * python/py-prettyprint.c (pretty_print_one_value): Return
1879 gdbpy_ref<>.
1880 (print_string_repr): Adjust.
1881 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1882 * python/python-internal.h (apply_varobj_pretty_printer): Return
1883 gdbpy_ref<>.
1884 * varobj.c (varobj_value_get_print_value): Adjust.
1885
1886 2018-09-08 Tom Tromey <tom@tromey.com>
1887
1888 PR python/16047:
1889 * python/py-prettyprint.c (pretty_print_one_value): Check for
1890 to_string method.
1891
1892 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1893
1894 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1895 replace_operator_with_call.
1896
1897 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1898
1899 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1900
1901 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1902
1903 * ada-typeprint.c (print_range): Print the bounds using TYPE
1904 rather than its TYPE_TARGET_TYPE.
1905
1906 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1907
1908 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1909 call to ada_to_fixed_value_create.
1910
1911 2018-09-08 Jerome Guitton <guitton@adacore.com>
1912
1913 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1914
1915 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1916
1917 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1918 by calls to error.
1919
1920 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1921
1922 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1923 Move update of loop variable "fi".
1924
1925 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1926
1927 * ada-lang.c (value_assign_to_component): In the case of
1928 big-endian targets, extract the bits of the given VAL
1929 using an src_offset of zero if container is not a scalar.
1930
1931 2018-09-06 Simon Ser <contact@emersion.fr>
1932
1933 PR gdb/23105
1934 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1935 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1936 * fbsd-tdep.c (fbsd_make_note_desc): New.
1937 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1938 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1939 * target.h (enum target_object) Add FreeBSD-specific
1940 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1941
1942 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1943
1944 * compile/compile-c.h (generate_c_for_variable_locations):
1945 Change reference to pointer.
1946 * compile/compile-c-support.c (compile_program) <compute>:
1947 Likewise.
1948 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1949 (generate_c_for_for_one_variable): Likewise
1950 (generate_c_for_variable_locations): Likewise
1951 * compile/compile-c-types.c (compile_c_instance::convert_type):
1952 Likewise
1953 * compile/compile-cplus-symbols.c (convert_one_symbol):
1954 std::move the scope passed to enter_scope.
1955 * compile/compile-cplus-types.c
1956 (compile_cplus_instance::enter_scope): Make parameter
1957 rvalue-reference.
1958 (compile_cplus_instance::new_scope): Change reference to
1959 pointer.
1960 (compile_cplus_instance::convert_type): Likewise
1961 (compile_cplus_convert_typedef): std::move the scope passed to
1962 enter_scope.
1963 (compile_cplus_convert_struct_or_union): Likewise.
1964 (compile_cplus_convert_enum): Likewise.
1965 (compile_cplus_convert_namespace): Likewise.
1966 * compile/compile-cplus.h (compile_cplus_instance)
1967 <enter_scope>: Make parameter rvalue-reference.
1968 * compile/compile-internal.h (compile_instance)
1969 <get_cached_type>: Likewise
1970 * compile/compile-loc2c.c (push): Likewise
1971 (pushf): Likewise
1972 (unary): Likewise
1973 (binary): Likewise
1974 (print_label): Likewise
1975 (pushf_register_address): Likewise
1976 (pushf_register): Likewise
1977 (do_compile_dwarf_expr_to_c): Likewise
1978 (compile_dwarf_expr_to_c): Likewise
1979 (compile_dwarf_bounds_to_c): Likewise
1980 * compile/compile.c (compile_instance::get_cached_type):
1981 Likewise
1982 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1983 (compile_dwarf_bounds_to_c): Likewise
1984 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1985 (dwarf2_compile_property_to_c): Likewise
1986 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1987 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1988 Likewise
1989
1990 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1991
1992 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1993 * tui/tui-data.c (init_content_element): Don't initialize it.
1994
1995 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1996
1997 * tui/tui-data.h (struct tui_win_info)
1998 <detail::opaque>: Remove.
1999 * tui/tui-data.c (init_win_info): Remove assignment.
2000
2001 2018-09-05 Tom Tromey <tom@tromey.com>
2002
2003 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2004 -Wformat-nonliteral.
2005 * target-float.c (host_float_ops<T>::to_string)
2006 (host_float_ops<T>::from_string): Use
2007 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2008 * configure: Rebuild.
2009
2010 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2011
2012 * printcmd.c (printf_c_string): Use
2013 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2014 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2015
2016 2018-09-05 Tom Tromey <tom@tromey.com>
2017
2018 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2019
2020 2018-09-05 Tom de Vries <tdevries@suse.de>
2021
2022 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2023 with resolve_abstract_p == true.
2024 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2025 defaulting to false. Propagate resolve_abstract_p to
2026 dwarf2_fetch_die_loc_sect_off.
2027 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2028 parameter, defaulting to false.
2029 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2030 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2031 parameter.
2032 * dwarf2read.h (struct die_info): Forward-declare.
2033 (die_info_ptr): New typedef.
2034 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2035
2036 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2037
2038 GDB 8.2 released.
2039
2040 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2041 Pedro Alves <palves@redhat.com>
2042
2043 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2044 "aclocal-m4-deps.mk". Include file here.
2045 $(srcdir)/aclocal.m4: Add "configure.ac".
2046 * gnulib/aclocal-m4-deps.mk: New file.
2047 * gnulib/update-gnulib.sh: Automatically update
2048 "aclocal-m4-deps.mk".
2049
2050 2018-09-04 Tom Tromey <tom@tromey.com>
2051
2052 * configure: Rebuild.
2053 * configure.ac: Remove multi-ice code.
2054
2055 2018-09-04 Tom Tromey <tom@tromey.com>
2056
2057 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2058 (ada-exp.o): Update.
2059
2060 2018-09-04 Tom Tromey <tom@tromey.com>
2061
2062 * Makefile.in (printcmd.o, target-float.o): Remove.
2063 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2064
2065 2018-09-04 Tom Tromey <tom@tromey.com>
2066
2067 * gnulib/Makefile.in: Remove obsolete comment.
2068 * Makefile.in: Remove obsolete comment.
2069
2070 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2073 line with '+'.
2074
2075 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 * riscv-tdep.c: Add 'prologue-value.h' include.
2078 (struct riscv_unwind_cache): New struct.
2079 (riscv_debug_unwinder): New global.
2080 (riscv_scan_prologue): Update arguments, capture register details
2081 from prologue scan.
2082 (riscv_skip_prologue): Reformat arguments line, move end of
2083 prologue calculation into riscv_scan_prologue.
2084 (riscv_frame_cache): Update return type, create
2085 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2086 details.
2087 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2088 (riscv_frame_prev_register): Use the trad_frame within the
2089 riscv_unwind_cache.
2090 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2091 flag.
2092
2093 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2094
2095 * trad-frame.h (trad_frame_set_realreg): Declare.
2096 (trad_frame_set_addr): Declare.
2097 * trad-frame.c (trad_frame_set_realreg): Define new function.
2098 (trad_frame_set_addr): Define new function.
2099 (trad_frame_set_reg_realreg): Use new function.
2100 (trad_frame_set_reg_addr): Use new function.
2101
2102 2018-09-01 Keith Seitz <keiths@redhat.com>
2103
2104 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2105 pulongest instead of "%lld".
2106 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2107 ATTRIBUTE_UNUSED.
2108
2109 2018-08-31 Tom Tromey <tom@tromey.com>
2110
2111 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2112 variant part type.
2113
2114 2018-08-31 Pedro Alves <palves@redhat.com>
2115
2116 * gdbarch.h: Regenerate.
2117
2118 2018-08-31 Pedro Alves <palves@redhat.com>
2119
2120 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2121 * target.h (Hardware watchpoint interfaces): Describe
2122 continuable/steppable/non-steppable watchpoints.
2123 * gdbarch.h, gdbarch.c: Regenerate.
2124
2125 2018-08-31 Pedro Alves <palves@redhat.com>
2126
2127 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2128 Delete.
2129 * s390-linux-nat.c
2130 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2131 * target.h (target_ops::have_continuable_watchpoint): Delete.
2132 (target_have_continuable_watchpoint): Delete.
2133 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2134 * target-delegates.c: Regenerate.
2135
2136 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2137
2138 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2139 the files present in "gnulib/import/m4/".
2140
2141 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2144 c.sw, c.swsp, and c.sdsp.
2145
2146 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2149 (riscv_read_misa_reg): Don't cache value read into inferior data.
2150 (riscv_new_inferior_data): Delete.
2151 (riscv_inferior_data_cleanup): Delete.
2152 (riscv_inferior_data): Delete.
2153 (riscv_invalidate_inferior_data): Delete.
2154 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2155
2156 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2157
2158 * compile/compile-cplus-types.c
2159 (compile_cplus_instance::leave_scope): Take the address of scope
2160 object.
2161 (compile_cplus_instance::convert_qualified_base): Compare quals
2162 to 0.
2163
2164 2018-08-30 Keith Seitz <keiths@redhat.com>
2165
2166 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2167 Use "%s" and host_address_to_string instead of "%p" in printf.
2168
2169 2018-08-29 Keith Seitz <keiths@redhat.com>
2170
2171 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2172 and compile-cplus-types.c.
2173 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2174 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2175 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2176 Declare.
2177 * compile/compile-c-support.c: Include compile-cplus.h.
2178 (load_libcompile): Templatize.
2179 (get_compile_context): "New" function.
2180 (c_get_compile_context): Use get_compile_context.
2181 (cplus_get_compile_context): New function.
2182 (cplus_push_user_expression, cplus_pop_user_expression)
2183 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2184 (cplus_compute_program): Define new structs/functions.
2185 * compile/compile-cplus-symmbols.c: New file.
2186 * compile/compile-cplus-types.c: New file.
2187 * compile/compile-cplus.h: New file.
2188 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2189 Declare.
2190 * compile/compile-object-load.c (get_out_value_type): Use
2191 strncmp_iw when comparing symbol names.
2192 (compile_object_load): Add mst_bss and mst_data.
2193 * compile/compile.c (_initialize_compile): Remove
2194 -Wno-implicit-function-declaration from `compile_args'.
2195 * compile/gcc-cp-plugin.h: New file.
2196 * NEWS: Mention C++ compile support and new debug options.
2197
2198 2018-08-29 Keith Seitz <keiths@redhat.com>
2199
2200 * linespec.c (collect_info::add_symbol): Make virtual.
2201 (struct symbol_searcher_collect_info): New struct.
2202 (symbol_searcher::find_all_symbols): New method.
2203 * symtab.h (class symbol_searcher): New class.
2204
2205 2018-08-29 Keith Seitz <keiths@redhat.com>
2206
2207 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2208 Change to vector of block_symbol. Update all users.
2209 (struct collect_info) <symbols>: Likewise.
2210 (collect_info::add_symbol): Take block_symbol as argument.
2211 Update all callers.
2212 (decode_compound_collector) <m_symbols>: Change type to vector
2213 of block_symbol. Update all users.
2214 (decode_compound_collector::operator ()): Change parameter type
2215 to block_symbol.
2216 (find_method, find_function_symbols, find_linespec_symbols)
2217 (find_label_symbols_in_block, find_label_symbols): Change symbol
2218 vectors to block_symbol vectors.
2219 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2220 block_symbol.
2221
2222 2018-08-29 Keith Seitz <keiths@redhat.com>
2223
2224 * linespec.c (symbolp): Remove typedef and VEC definitions.
2225 (bound_minimal_symbol_d): Likewise.
2226
2227 2018-08-29 Keith Seitz <keiths@redhat.com>
2228
2229 * linespec.c (decode_compound_collector::decode_compound_collector):
2230 Remove initialization for `m_symtabs'.
2231 (decode_compound_collector::release_symbols): Change return type
2232 to std::vector. Update all callers.
2233 (class decode_compound_collector) <m_symbols>: Change type to
2234 std::vector.
2235 (lookup_prefix_sym): Change return type to std::vector. Update all
2236 callers.
2237 (compare_symbols): Remove.
2238 (std_compare_symbols): Rename to `compare_symbols'.
2239 (find_method): Change `sym_classes' parameter to std::vector.
2240 Update all callers. Use std::sort to sort sym_classes.
2241 (find_linespec_symbols): Remove cleanup.
2242
2243 2018-08-29 Keith Seitz <keiths@redhat.com>
2244
2245 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2246 std::vector. Update all users.
2247 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2248 (struct collect_info) <minimal_symbols>: Likewise.
2249 (compare_msymbols): Return bool. Change parameters to const
2250 bound_minimal_symbol references.
2251 (find_method, find_function_symbols, find_linespec_symbols): Change
2252 `minsyms' parameter to std::vector. Update all callers.
2253
2254 2018-08-29 Keith Seitz <keiths@redhat.com>
2255
2256 * linespec.c (struct linespec) <label_symbols>: Change type to
2257 std::vector. Update all users.
2258 (find_label_symbols_in_block): Change `result' parameter to
2259 std::vector. Update all callers.
2260 (find_label_symbols): Return std::vector. Update all callers.
2261
2262 2018-08-29 Keith Seitz <keiths@redhat.com>
2263
2264 * linespec.c (struct linespec) <function_symbols>: Change type to
2265 std::vector. Update all users.
2266 (struct collect_info) <function_symbols>: Likewise.
2267 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2268 (std_compare_symbols): New function.
2269 (find_method, find_function_symbols, find_linespec_symbols)
2270 (find_label_symbols_in_block): Change `symbols' parameter to
2271 std::vector. Update all callers.
2272 (find_label_symbols): Likewise for `function_symbols' and
2273 `label_funcs_ret'.
2274
2275 2018-08-29 Keith Seitz <keiths@redhat.com>
2276
2277 * linespec.c (symtab_vector_up): Define.
2278 (struct linespec) <file_symtabs>: Change type to std::vector *.
2279 Update all uses.
2280 (struct collect_info) <file_symtabs>: Likewise.
2281 (collect_symtabs_from_filename): Return symtab_vector_up.
2282 Update all callers.
2283 (decode_objc): Remove cleanup.
2284 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2285 (symtab_collector::release_symtabs): Return symtab_vector_up.
2286 Update all callers.
2287 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2288 Update all users.
2289 (collect_symtabs_from_filename, symtabs_from_filename): Return
2290 symtab_vector_up. Update all callers.
2291
2292 2018-08-29 Tom Tromey <tom@tromey.com>
2293
2294 * csky-tdep.c (csky_analyze_prologue): Use
2295 core_addr_to_string_nz.
2296
2297 2018-08-29 Tom Tromey <tom@tromey.com>
2298
2299 * windows-nat.c (struct xlate_exception) <them>: Change type to
2300 DWORD.
2301 (xlate): Fix formatting. Remove last entry.
2302 (struct xlate_exception, xlate): Comment out.
2303 (windows_nat_target::resume): Use ranged for.
2304
2305 2018-08-29 Jim Wilson <jimw@sifive.com>
2306
2307 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2308 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2309 of NT_PRFPREG.
2310 (riscv_linux_nat_target::store_registers): Likewise.
2311
2312 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2313
2314 PR gdb/23555
2315 PR gdb/23558
2316 * gnulib/aclocal.m4: Regenerate.
2317 * gnulib/config.in: Regenerate.
2318 * gnulib/configure: Regenerate.
2319 * gnulib/import/Makefile.am: Update.
2320 * gnulib/import/Makefile.in: Update.
2321 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2322 * gnulib/import/_Noreturn.h: ... this.
2323 * gnulib/import/alloca.in.h: Update.
2324 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2325 * gnulib/import/arg-nonnull.h: ... this.
2326 * gnulib/import/assure.h: Update.
2327 * gnulib/import/at-func.c: Update.
2328 * gnulib/import/basename-lgpl.c: Update.
2329 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2330 * gnulib/import/c++defs.h: ... this.
2331 * gnulib/import/canonicalize-lgpl.c: Update.
2332 * gnulib/import/cdefs.h: Update.
2333 * gnulib/import/chdir-long.c: Update.
2334 * gnulib/import/chdir-long.h: Update.
2335 * gnulib/import/cloexec.c: Update.
2336 * gnulib/import/cloexec.h: Update.
2337 * gnulib/import/close.c: Update.
2338 * gnulib/import/closedir.c: Update.
2339 * gnulib/import/config.charset: Update.
2340 * gnulib/import/dirent-private.h: Update.
2341 * gnulib/import/dirent.in.h: Update.
2342 * gnulib/import/dirfd.c: Update.
2343 * gnulib/import/dirname-lgpl.c: Update.
2344 * gnulib/import/dirname.h: Update.
2345 * gnulib/import/dosname.h: Update.
2346 * gnulib/import/dup-safer-flag.c: Update.
2347 * gnulib/import/dup-safer.c: Update.
2348 * gnulib/import/dup.c: Update.
2349 * gnulib/import/dup2.c: Update.
2350 * gnulib/import/errno.in.h: Update.
2351 * gnulib/import/error.c: Update.
2352 * gnulib/import/error.h: Update.
2353 * gnulib/import/exitfail.c: Update.
2354 * gnulib/import/exitfail.h: Update.
2355 * gnulib/import/extra/update-copyright: Update.
2356 * gnulib/import/fchdir.c: Update.
2357 * gnulib/import/fcntl.c: Update.
2358 * gnulib/import/fcntl.in.h: Update.
2359 * gnulib/import/fd-hook.c: Update.
2360 * gnulib/import/fd-hook.h: Update.
2361 * gnulib/import/fd-safer-flag.c: Update.
2362 * gnulib/import/fd-safer.c: Update.
2363 * gnulib/import/fdopendir.c: Update.
2364 * gnulib/import/filename.h: Update.
2365 * gnulib/import/filenamecat-lgpl.c: Update.
2366 * gnulib/import/filenamecat.h: Update.
2367 * gnulib/import/flexmember.h: Update.
2368 * gnulib/import/float+.h: Update.
2369 * gnulib/import/float.c: Update.
2370 * gnulib/import/float.in.h: Update.
2371 * gnulib/import/fnmatch.c: Update.
2372 * gnulib/import/fnmatch.in.h: Update.
2373 * gnulib/import/fnmatch_loop.c: Update.
2374 * gnulib/import/fpucw.h: Update.
2375 * gnulib/import/frexp.c: Update.
2376 * gnulib/import/frexpl.c: Update.
2377 * gnulib/import/fstat.c: Update.
2378 * gnulib/import/fstatat.c: Update.
2379 * gnulib/import/getcwd-lgpl.c: Update.
2380 * gnulib/import/getcwd.c: Update.
2381 * gnulib/import/getdtablesize.c: Update.
2382 * gnulib/import/getlogin_r.c: Update.
2383 * gnulib/import/getprogname.c: Update.
2384 * gnulib/import/getprogname.h: Update.
2385 * gnulib/import/gettext.h: Update.
2386 * gnulib/import/gettimeofday.c: Update.
2387 * gnulib/import/glob-libc.h: Update.
2388 * gnulib/import/glob.c: Update.
2389 * gnulib/import/glob.in.h: Update.
2390 * gnulib/import/glob_internal.h: Update.
2391 * gnulib/import/glob_pattern_p.c: Update.
2392 * gnulib/import/globfree.c: Update.
2393 * gnulib/import/hard-locale.c: Update.
2394 * gnulib/import/hard-locale.h: Update.
2395 * gnulib/import/intprops.h: Update.
2396 * gnulib/import/inttypes.in.h: Update.
2397 * gnulib/import/isnan.c: Update.
2398 * gnulib/import/isnand-nolibm.h: Update.
2399 * gnulib/import/isnand.c: Update.
2400 * gnulib/import/isnanl-nolibm.h: Update.
2401 * gnulib/import/isnanl.c: Update.
2402 * gnulib/import/itold.c: Update.
2403 * gnulib/import/libc-config.h: Update.
2404 * gnulib/import/limits.in.h: Update.
2405 * gnulib/import/localcharset.c: Update.
2406 * gnulib/import/localcharset.h: Update.
2407 * gnulib/import/localtime-buffer.c: Update.
2408 * gnulib/import/localtime-buffer.h: Update.
2409 * gnulib/import/lstat.c: Update.
2410 * gnulib/import/m4/00gnulib.m4: Update.
2411 * gnulib/import/m4/__inline.m4: Update.
2412 * gnulib/import/m4/absolute-header.m4: Update.
2413 * gnulib/import/m4/alloca.m4: Update.
2414 * gnulib/import/m4/builtin-expect.m4: Update.
2415 * gnulib/import/m4/canonicalize.m4: Update.
2416 * gnulib/import/m4/chdir-long.m4: Update.
2417 * gnulib/import/m4/close.m4: Update.
2418 * gnulib/import/m4/closedir.m4: Update.
2419 * gnulib/import/m4/configmake.m4: Update.
2420 * gnulib/import/m4/d-ino.m4: Update.
2421 * gnulib/import/m4/d-type.m4: Update.
2422 * gnulib/import/m4/dirent_h.m4: Update.
2423 * gnulib/import/m4/dirfd.m4: Update.
2424 * gnulib/import/m4/dirname.m4: Update.
2425 * gnulib/import/m4/double-slash-root.m4: Update.
2426 * gnulib/import/m4/dup.m4: Update.
2427 * gnulib/import/m4/dup2.m4: Update.
2428 * gnulib/import/m4/eealloc.m4: Update.
2429 * gnulib/import/m4/environ.m4: Update.
2430 * gnulib/import/m4/errno_h.m4: Update.
2431 * gnulib/import/m4/error.m4: Update.
2432 * gnulib/import/m4/exponentd.m4: Update.
2433 * gnulib/import/m4/exponentl.m4: Update.
2434 * gnulib/import/m4/extensions.m4: Update.
2435 * gnulib/import/m4/extern-inline.m4: Update.
2436 * gnulib/import/m4/fchdir.m4: Update.
2437 * gnulib/import/m4/fcntl-o.m4: Update.
2438 * gnulib/import/m4/fcntl.m4: Update.
2439 * gnulib/import/m4/fcntl_h.m4: Update.
2440 * gnulib/import/m4/fdopendir.m4: Update.
2441 * gnulib/import/m4/filenamecat.m4: Update.
2442 * gnulib/import/m4/flexmember.m4: Update.
2443 * gnulib/import/m4/float_h.m4: Update.
2444 * gnulib/import/m4/fnmatch.m4: Update.
2445 * gnulib/import/m4/fnmatch_h.m4: Update.
2446 * gnulib/import/m4/fpieee.m4: Update.
2447 * gnulib/import/m4/frexp.m4: Update.
2448 * gnulib/import/m4/frexpl.m4: Update.
2449 * gnulib/import/m4/fstat.m4: Update.
2450 * gnulib/import/m4/fstatat.m4: Update.
2451 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2452 * gnulib/import/m4/getcwd-path-max.m4: Update.
2453 * gnulib/import/m4/getcwd.m4: Update.
2454 * gnulib/import/m4/getdtablesize.m4: Update.
2455 * gnulib/import/m4/getlogin.m4: Update.
2456 * gnulib/import/m4/getlogin_r.m4: Update.
2457 * gnulib/import/m4/getpagesize.m4: Update.
2458 * gnulib/import/m4/getprogname.m4: Update.
2459 * gnulib/import/m4/gettimeofday.m4: Update.
2460 * gnulib/import/m4/glibc21.m4: Update.
2461 * gnulib/import/m4/glob.m4: Update.
2462 * gnulib/import/m4/glob_h.m4: Update.
2463 * gnulib/import/m4/gnulib-cache.m4: Update.
2464 * gnulib/import/m4/gnulib-common.m4: Update.
2465 * gnulib/import/m4/gnulib-comp.m4: Update.
2466 * gnulib/import/m4/gnulib-tool.m4: Update.
2467 * gnulib/import/m4/hard-locale.m4: Update.
2468 * gnulib/import/m4/include_next.m4: Update.
2469 * gnulib/import/m4/inttypes-pri.m4: Update.
2470 * gnulib/import/m4/inttypes.m4: Update.
2471 * gnulib/import/m4/isnand.m4: Update.
2472 * gnulib/import/m4/isnanl.m4: Update.
2473 * gnulib/import/m4/largefile.m4: Update.
2474 * gnulib/import/m4/limits-h.m4: Update.
2475 * gnulib/import/m4/localcharset.m4: Update.
2476 * gnulib/import/m4/locale-fr.m4: Update.
2477 * gnulib/import/m4/locale-ja.m4: Update.
2478 * gnulib/import/m4/locale-zh.m4: Update.
2479 * gnulib/import/m4/localtime-buffer.m4: Update.
2480 * gnulib/import/m4/longlong.m4: Update.
2481 * gnulib/import/m4/lstat.m4: Update.
2482 * gnulib/import/m4/malloc.m4: Update.
2483 * gnulib/import/m4/malloca.m4: Update.
2484 * gnulib/import/m4/math_h.m4: Update.
2485 * gnulib/import/m4/mbrtowc.m4: Update.
2486 * gnulib/import/m4/mbsinit.m4: Update.
2487 * gnulib/import/m4/mbsrtowcs.m4: Update.
2488 * gnulib/import/m4/mbstate_t.m4: Update.
2489 * gnulib/import/m4/memchr.m4: Update.
2490 * gnulib/import/m4/memmem.m4: Update.
2491 * gnulib/import/m4/mempcpy.m4: Update.
2492 * gnulib/import/m4/memrchr.m4: Update.
2493 * gnulib/import/m4/mkdir.m4: Update.
2494 * gnulib/import/m4/mkstemp.m4: Update.
2495 * gnulib/import/m4/mmap-anon.m4: Update.
2496 * gnulib/import/m4/mode_t.m4: Update.
2497 * gnulib/import/m4/msvc-inval.m4: Update.
2498 * gnulib/import/m4/msvc-nothrow.m4: Update.
2499 * gnulib/import/m4/multiarch.m4: Update.
2500 * gnulib/import/m4/nocrash.m4: Update.
2501 * gnulib/import/m4/off_t.m4: Update.
2502 * gnulib/import/m4/onceonly.m4: Update.
2503 * gnulib/import/m4/open-cloexec.m4: Update.
2504 * gnulib/import/m4/open.m4: Update.
2505 * gnulib/import/m4/openat.m4: Update.
2506 * gnulib/import/m4/opendir.m4: Update.
2507 * gnulib/import/m4/pathmax.m4: Update.
2508 * gnulib/import/m4/rawmemchr.m4: Update.
2509 * gnulib/import/m4/readdir.m4: Update.
2510 * gnulib/import/m4/readlink.m4: Update.
2511 * gnulib/import/m4/realloc.m4: Update.
2512 * gnulib/import/m4/rename.m4: Update.
2513 * gnulib/import/m4/rewinddir.m4: Update.
2514 * gnulib/import/m4/rmdir.m4: Update.
2515 * gnulib/import/m4/save-cwd.m4: Update.
2516 * gnulib/import/m4/secure_getenv.m4: Update.
2517 * gnulib/import/m4/setenv.m4: Update.
2518 * gnulib/import/m4/signal_h.m4: Update.
2519 * gnulib/import/m4/ssize_t.m4: Update.
2520 * gnulib/import/m4/stat-time.m4: Update.
2521 * gnulib/import/m4/stat.m4: Update.
2522 * gnulib/import/m4/std-gnu11.m4: Update.
2523 * gnulib/import/m4/stdbool.m4: Update.
2524 * gnulib/import/m4/stddef_h.m4: Update.
2525 * gnulib/import/m4/stdint.m4: Update.
2526 * gnulib/import/m4/stdio_h.m4: Update.
2527 * gnulib/import/m4/stdlib_h.m4: Update.
2528 * gnulib/import/m4/strchrnul.m4: Update.
2529 * gnulib/import/m4/strdup.m4: Update.
2530 * gnulib/import/m4/strerror.m4: Update.
2531 * gnulib/import/m4/string_h.m4: Update.
2532 * gnulib/import/m4/strstr.m4: Update.
2533 * gnulib/import/m4/strtok_r.m4: Update.
2534 * gnulib/import/m4/sys_socket_h.m4: Update.
2535 * gnulib/import/m4/sys_stat_h.m4: Update.
2536 * gnulib/import/m4/sys_time_h.m4: Update.
2537 * gnulib/import/m4/sys_types_h.m4: Update.
2538 * gnulib/import/m4/tempname.m4: Update.
2539 * gnulib/import/m4/time_h.m4: Update.
2540 * gnulib/import/m4/unistd-safer.m4: Update.
2541 * gnulib/import/m4/unistd_h.m4: Update.
2542 * gnulib/import/m4/warn-on-use.m4: Update.
2543 * gnulib/import/m4/wchar_h.m4: Update.
2544 * gnulib/import/m4/wchar_t.m4: Update.
2545 * gnulib/import/m4/wctype_h.m4: Update.
2546 * gnulib/import/m4/wint_t.m4: Update.
2547 * gnulib/import/malloc.c: Update.
2548 * gnulib/import/malloc/scratch_buffer.h: Update.
2549 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2550 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2551 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2552 * gnulib/import/malloca.c: Update.
2553 * gnulib/import/malloca.h: Update.
2554 * gnulib/import/malloca.valgrind: Update.
2555 * gnulib/import/math.in.h: Update.
2556 * gnulib/import/mbrtowc.c: Update.
2557 * gnulib/import/mbsinit.c: Update.
2558 * gnulib/import/mbsrtowcs-impl.h: Update.
2559 * gnulib/import/mbsrtowcs-state.c: Update.
2560 * gnulib/import/mbsrtowcs.c: Update.
2561 * gnulib/import/memchr.c: Update.
2562 * gnulib/import/memmem.c: Update.
2563 * gnulib/import/mempcpy.c: Update.
2564 * gnulib/import/memrchr.c: Update.
2565 * gnulib/import/mkdir.c: Update.
2566 * gnulib/import/mkstemp.c: Update.
2567 * gnulib/import/msvc-inval.c: Update.
2568 * gnulib/import/msvc-inval.h: Update.
2569 * gnulib/import/msvc-nothrow.c: Update.
2570 * gnulib/import/msvc-nothrow.h: Update.
2571 * gnulib/import/open.c: Update.
2572 * gnulib/import/openat-die.c: Update.
2573 * gnulib/import/openat-priv.h: Update.
2574 * gnulib/import/openat-proc.c: Update.
2575 * gnulib/import/openat.c: Update.
2576 * gnulib/import/openat.h: Update.
2577 * gnulib/import/opendir.c: Update.
2578 * gnulib/import/pathmax.h: Update.
2579 * gnulib/import/pipe-safer.c: Update.
2580 * gnulib/import/rawmemchr.c: Update.
2581 * gnulib/import/readdir.c: Update.
2582 * gnulib/import/readlink.c: Update.
2583 * gnulib/import/realloc.c: Update.
2584 * gnulib/import/ref-add.sin: Update.
2585 * gnulib/import/ref-del.sin: Update.
2586 * gnulib/import/rename.c: Update.
2587 * gnulib/import/rewinddir.c: Update.
2588 * gnulib/import/rmdir.c: Update.
2589 * gnulib/import/same-inode.h: Update.
2590 * gnulib/import/save-cwd.c: Update.
2591 * gnulib/import/save-cwd.h: Update.
2592 * gnulib/import/scratch_buffer.h: Update.
2593 * gnulib/import/secure_getenv.c: Update.
2594 * gnulib/import/setenv.c: Update.
2595 * gnulib/import/signal.in.h: Update.
2596 * gnulib/import/stat-time.c: Update.
2597 * gnulib/import/stat-time.h: Update.
2598 * gnulib/import/stat-w32.c: Update.
2599 * gnulib/import/stat-w32.h: Update.
2600 * gnulib/import/stat.c: Update.
2601 * gnulib/import/stdbool.in.h: Update.
2602 * gnulib/import/stddef.in.h: Update.
2603 * gnulib/import/stdint.in.h: Update.
2604 * gnulib/import/stdio.in.h: Update.
2605 * gnulib/import/stdlib.in.h: Update.
2606 * gnulib/import/str-two-way.h: Update.
2607 * gnulib/import/strchrnul.c: Update.
2608 * gnulib/import/strdup.c: Update.
2609 * gnulib/import/streq.h: Update.
2610 * gnulib/import/strerror-override.c: Update.
2611 * gnulib/import/strerror-override.h: Update.
2612 * gnulib/import/strerror.c: Update.
2613 * gnulib/import/string.in.h: Update.
2614 * gnulib/import/stripslash.c: Update.
2615 * gnulib/import/strnlen1.c: Update.
2616 * gnulib/import/strnlen1.h: Update.
2617 * gnulib/import/strstr.c: Update.
2618 * gnulib/import/strtok_r.c: Update.
2619 * gnulib/import/sys_stat.in.h: Update.
2620 * gnulib/import/sys_time.in.h: Update.
2621 * gnulib/import/sys_types.in.h: Update.
2622 * gnulib/import/tempname.c: Update.
2623 * gnulib/import/tempname.h: Update.
2624 * gnulib/import/time.in.h: Update.
2625 * gnulib/import/unistd--.h: Update.
2626 * gnulib/import/unistd-safer.h: Update.
2627 * gnulib/import/unistd.in.h: Update.
2628 * gnulib/import/unsetenv.c: Update.
2629 * gnulib/import/verify.h: Update.
2630 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2631 * gnulib/import/wchar.in.h: Update.
2632 * gnulib/import/wctype.in.h: Update.
2633 * gnulib/import/xalloc-oversized.h: Update.
2634 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2635 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2636
2637 2018-08-16 Gary Benson <gbenson@redhat.com>
2638
2639 PR gdb/13000:
2640 * gdb/main.c (captured_main_1): Exit with nonzero status
2641 in batch mode if the last command to be executed failed.
2642 * NEWS: Mention the above.
2643
2644 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2645
2646 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2647 end of warning message.
2648
2649 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2650
2651 PR gdb/22943:
2652 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2653 (aarch64_extract_return_value): Use
2654 aapcs_is_vfp_call_or_return_candidate.
2655 (aarch64_return_in_memory): Likewise.
2656 (aarch64_store_return_value): Likewise.
2657
2658 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2659
2660 * aarch64-tdep.c
2661 (aapcs_is_vfp_call_or_return_candidate): Make static
2662 (pass_in_v_or_stack): Remove function.
2663 (pass_in_v_vfp_candidate): New function.
2664 (aarch64_push_dummy_call): Check for float register candidates.
2665
2666 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2667
2668 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2669 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2670 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2671
2672 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2673
2674 PR build/23399
2675 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2676 (struct ipa_sym_addresses): Rename to...
2677 (struct ipa_sym_addresses_common): ... this.
2678 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2679
2680 2018-08-28 Tom Tromey <tom@tromey.com>
2681
2682 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2683 (token_fifo): Now a std::vector.
2684 (yylex, c_parse): Update.
2685 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2686 (token_fifo): Now a std::vector.
2687 (yylex, d_parse): Update.
2688 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2689 (token_fifo): Now a std::vector.
2690 (yylex, go_parse): Update.
2691
2692 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2693
2694 * parser-defs.h (struct type_stack) <elements>: Change type to
2695 std::vector<union type_stack_elt>.
2696 <depth, size>: Remove.
2697 * parse.c (parse_exp_in_context_1): Adjust.
2698 (type_stack_reserve): Remove.
2699 (check_type_stack_depth): Remove.
2700 (insert_into_type_stack): Adjust to std::vector.
2701 (insert_type): Likewise.
2702 (push_type): Likewise.
2703 (push_type_int): Likewise.
2704 (insert_type_address_space): Likewise.
2705 (pop_type): Likewise.
2706 (pop_type_int): Likewise.
2707 (pop_typelist): Likewise.
2708 (pop_type_stack): Likewise.
2709 (append_type_stack): Likewise.
2710 (push_type_stack): Likewise.
2711 (get_type_stack): Likewise.
2712 (type_stack_cleanup): Likewise.
2713 (push_typelist): Likewise.
2714 (follow_types): Likewise.
2715 (_initialize_parse): Likewise.
2716
2717 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2718
2719 * NEWS: Mention csky target.
2720
2721 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2722 Hafiz Abid Qadeer <abidh@codesourcery.com>
2723 Don Breazeal <donb@codesourcery.com>
2724
2725 * csky-linux-tdep.c: New file.
2726 * csky-tdep.c: Likewise.
2727 * csky-tdep.h: Likewise.
2728 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2729 csky-tdep.o.
2730 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2731 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2732 * configure.tgt: Add csky support.
2733
2734 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2735
2736 * python/py-framefilter.c (py_print_frame): Print frame architecture
2737 when printing on an MI output.
2738
2739 2018-08-27 Tom Tromey <tom@tromey.com>
2740
2741 PR build/23087:
2742 * configure: Rebuild.
2743 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2744
2745 2018-08-27 Tom Tromey <tom@tromey.com>
2746
2747 * aarch64-linux-tdep.c
2748 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2749 casts to int.
2750
2751 2018-08-27 Tom Tromey <tom@tromey.com>
2752
2753 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2754 unsigned.
2755 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2756 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2757 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2758 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2759 unsigned.
2760
2761 2018-08-27 Tom Tromey <tom@tromey.com>
2762
2763 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2764 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2765
2766 2018-08-27 Tom Tromey <tom@tromey.com>
2767
2768 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2769 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2770 ULONGEST_MAX.
2771 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2772 ULONGEST_MAX.
2773 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2774 ULONGEST_MAX.
2775 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2776 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2777 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2778 ULONGEST_MAX.
2779 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2780 (ppc64_linux_sigaction_tramp_frame)
2781 (ppc32_linux_sighandler_tramp_frame)
2782 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2783 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2784 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2785 * mn10300-linux-tdep.c (am33_linux_sigframe)
2786 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2787 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2788 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2789 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2790 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2791 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2792 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2793 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2794 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2795 * microblaze-linux-tdep.c
2796 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2797 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2798 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2799 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2800 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2801 * common/common-types.h (ULONGEST_MAX): New define.
2802 (CORE_ADDR_MAX): Fix formatting.
2803 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2804 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2805 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2806 (arm_linux_rt_sigreturn_tramp_frame)
2807 (arm_eabi_linux_sigreturn_tramp_frame)
2808 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2809 (thumb2_eabi_linux_sigreturn_tramp_frame)
2810 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2811 (arm_linux_restart_syscall_tramp_frame)
2812 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2813 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2814 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2815 ULONGEST_MAX.
2816 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2817
2818 2018-08-27 Tom Tromey <tom@tromey.com>
2819
2820 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2821 CORE_ADDR_MAX.
2822 * mips-tdep.c (mips_deal_with_atomic_sequence)
2823 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2824 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2825 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2826 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2827 CORE_ADDR_MAX.
2828 * aarch64-tdep.c (aarch64_software_single_step): Use
2829 CORE_ADDR_MAX.
2830
2831 2018-08-27 Tom Tromey <tom@tromey.com>
2832
2833 * linespec.c (complete_linespec_component): Add cast to "char".
2834 * completer.c (completion_tracker::build_completion_result): Add
2835 cast to "char".
2836
2837 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * solist.h (struct solist, struct target_so_ops): Fix
2840 indentation.
2841
2842 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * ada-tasks.c (ada_task_info_s): Remove typedef.
2845 (DEF_VEC_O(ada_task_info_s)): Remove.
2846 (struct ada_tasks_inferior_data): Initialize fields.
2847 <task_list>: Make an std::vector.
2848 (get_ada_tasks_inferior_data): Allocate with new.
2849 (ada_get_task_number): Adjust.
2850 (get_task_number_from_id): Likewise.
2851 (valid_task_id): Likewise.
2852 (ada_get_task_info_from_ptid): Likewise.
2853 (iterate_over_live_ada_tasks): Likewise.
2854 (add_ada_task): Likewise.
2855 (read_known_tasks): Likewise.
2856 (ada_build_task_list): Likewise.
2857 (print_ada_task_info): Likewise.
2858 (info_task): Likewise.
2859 (task_command_1): Likewise.
2860
2861 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2862
2863 * ada-lang.c (add_angle_brackets): Return std::string.
2864
2865 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2866
2867 * python/py-threadevent.c (py_get_event_thread): Initialize
2868 pythread.
2869
2870 2018-08-24 Pedro Alves <palves@redhat.com>
2871
2872 * python/py-bpevent.c (create_breakpoint_event_object): Use
2873 copy-initialization.
2874 * python/py-continueevent.c (emit_continue_event): Use
2875 copy-initialization.
2876 * python/py-exitedevent.c (create_exited_event_object): Return a
2877 gdbpy_ref<>.
2878 (emit_exited_event): Use copy-initialization.
2879 * python/py-inferior.c (python_new_inferior)
2880 (python_inferior_deleted, add_thread_object): Use
2881 copy-initialization.
2882 * python/py-infevents.c (create_inferior_call_event_object)
2883 (create_register_changed_event_object)
2884 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2885 (emit_inferior_call_event, emit_memory_changed_event)
2886 (emit_register_changed_event): Use copy-initialization.
2887 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2888 Return a gdbpy_ref<>.
2889 (emit_new_objfile_event): Use copy-initialization.
2890 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2891 (emit_clear_objfiles_event): Use copy-initialization.
2892 * python/py-signalevent.c (create_signal_event_object): Use
2893 copy-initialization.
2894 * python/py-threadevent.c (create_thread_event_object): Use
2895 copy-initialization.
2896
2897 2018-08-24 Pedro Alves <palves@redhat.com>
2898 Simon Marchi <simon.marchi@ericsson.com>
2899
2900 PR gdb/23379
2901 * python/py-continueevent.c: Include "gdbthread.h".
2902 (create_continue_event_object): Add intro comment. Add 'ptid'
2903 parameter. Use it to find thread to pass to
2904 create_thread_event_object.
2905 (emit_continue_event): Pass PTID down to
2906 create_continue_event_object.
2907 * python/py-event.h (py_get_event_thread): Declare.
2908 (create_thread_event_object): Remove default from 'thread'
2909 parameter.
2910 * python/py-stopevent.c (create_stop_event_object): Use
2911 py_get_event_thread.
2912 * python/py-threadevent.c (get_event_thread): Rename to ...
2913 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2914 and use it to find the thread.
2915 (create_thread_event_object): Assert that THREAD isn't null.
2916 Don't find the event thread here.
2917
2918 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2919
2920 * block.h (blockrange, blockranges): New struct declarations.
2921 (struct block): Add new field named `ranges'.
2922 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2923 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2924 macros for accessing ranges in struct block.
2925 (make_blockranges): New declaration.
2926 block.c (make_blockranges): New function.
2927 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2928 for block.
2929 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2930 * blockframe.c (cache_pc_function_block): New static global.
2931 (clear_pc_function_cache): Clear cache_pc_function_block.
2932 (find_pc_partial_function): Move comment to symtab.h. Add
2933 support for non-contiguous blocks.
2934 * cli/cli-cmds.c (block.h): Include.
2935 (print_disassembly): Handle printing of non-contiguous blocks.
2936 (disassemble_current_function): Likewise.
2937 (disassemble_command): Likewise.
2938
2939 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2940 BLOCK_START.
2941 * blockframe.c (get_pc_function_start): Likewise.
2942 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2943 (gcc_symbol_address): Likewise.
2944 * compile/compile-object-run.c (compile_object_run): Likewise.
2945 * compile/compile.c (get_expr_block_and_pc): Likewise.
2946 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2947 (func_addr_to_tail_call_list): Likewise.
2948 * findvar.c (default_read_var_value): Likewise.
2949 * inline-frame.c (inline_frame_this_id): Likewise.
2950 (skip-inline_frames): Likewise.
2951 * infcmd.c (until_next_command): Likewise.
2952 * linespec.c (convert_linespec_to_sals): Likewise.
2953 * parse.c (parse_exp_in_context_1): Likewise.
2954 * printcmd.c (build_address_symbolic): likewise.
2955 (info_address_command): Likewise.
2956 symtab.c (find_function_start_sal): Likewise.
2957 (skip_prologue_sal): Likewise.
2958 (find_function_alias_target): Likewise.
2959 (find_gnu_ifunc): Likewise.
2960 * stack.c (find_frame_funname): Likewise.
2961 * symtab.c (fixup_symbol_section): Likewise.
2962 (find_function_start_sal): Likewise.
2963 (skip_prologue_sal): Likewsie.
2964 (find_function_alias_target): Likewise.
2965 (find_gnu_ifunc): Likewise.
2966 * tracepoint.c (info_scope_command): Likewise.
2967 * value.c (value_fn_field): Likewise.
2968
2969 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2970 in place of find_pc_partial_function.
2971 * blockframe.c (find_function_entry_range_from_pc): New function.
2972 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2973 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2974 for each range in a block.
2975
2976
2977 2018-08-23 Xavier Roirand <roirand@adacore.com>
2978
2979 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2980 incrementation.
2981
2982 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 * solib-svr4.c (read_program_headers_from_bfd): Return
2985 gdb::optional<gdb::byte_vector>.
2986 (svr4_exec_displacement): Adjust.
2987
2988 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2989
2990 * solib-svr4.c (read_program_header): Return
2991 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2992 (find_program_interpreter): Return
2993 gdb::optional<gdb::byte_vector>.
2994 (scan_dyntag_auxv): Adjust.
2995 (enable_break): Adjust.
2996 (svr4_exec_displacement): Adjust.
2997
2998 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2999
3000 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3001 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3002
3003 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3004
3005 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3006 string_vprintf.
3007 * guile/scm-utils.c (gdbscm_printf): Likewise.
3008 * serial.c (serial_printf): Likewise.
3009 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3010
3011 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3012
3013 * stack.c (print_frame): Print frame architecture when printing on
3014 an MI output.
3015 * NEWS: Mention new "arch" attribute in frame output.
3016
3017 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3018
3019 * arch/aarch64.h (aarch64_regnum): Update comment.
3020
3021 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3022
3023 * NEWS: Add SVE to 8.2 section.
3024
3025 2018-08-21 Pedro Alves <palves@redhat.com>
3026
3027 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3028 out from gdbscm_parse_function_args.
3029 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3030 gdbscm_parse_function_args_1.
3031
3032 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3033
3034 PR gdb/17816
3035 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3036 operator.
3037
3038 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3039
3040 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3041
3042 2018-08-19 Michael Spang <spang@google.com>
3043
3044 PR gdb/11786
3045 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3046 for PT_TLS segments.
3047
3048 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3049
3050 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3051 dwarf_variable_value.
3052 * dwarf2-frame.c (class dwarf_expr_executor):
3053 Add override for dwarf_variable_value.
3054 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3055 (class symbol_needs_eval_context): Likewise.
3056 (indirect_synthetic_pointer): Add forward declaration.
3057 (sect_variable_value): New function.
3058 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3059 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3060 for DW_OP_GNU_variable_value.
3061
3062 2018-08-16 Tom Tromey <tom@tromey.com>
3063
3064 * top.c (read_command_file): Update.
3065 (command_line_input): Remove "repeat" argument.
3066 * ada-lang.c (get_selections): Update.
3067 * linespec.c (decode_line_2): Update.
3068 * defs.h (command_line_input): Remove argument.
3069 * cli/cli-script.c (read_next_line): Update.
3070 * python/py-gdb-readline.c: Update.
3071
3072 2018-08-17 Tom Tromey <tom@tromey.com>
3073
3074 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3075 command_line_input.
3076
3077 2018-08-15 Tom Tromey <tom@tromey.com>
3078
3079 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3080
3081 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3082
3083 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3084 If used, use find_pc_partial_function to find address range
3085 to disassemble.
3086 * mi/mi-main.c (mi_cmd_list_features): Report
3087 "data-disassemble-a-option" feature.
3088 * NEWS: Mention new -data-disassemble option -a.
3089
3090 2018-08-13 Tom Tromey <tom@tromey.com>
3091
3092 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3093
3094 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3095
3096 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3097 (aarch64_linux_collect_sve_regset): Likewise.
3098 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3099 * regcache.h (regcache_map_entry_size): New function.
3100
3101 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3102
3103 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3104 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3105 (SVE_HEADER_VL_LENGTH): Likewise.
3106 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3107 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3108 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3109 (SVE_HEADER_SIZE_OFFSET): Likewise.
3110 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3111 (SVE_HEADER_VL_OFFSET): Likewise.
3112 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3113 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3114 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3115 (SVE_HEADER_SIZE): Likewise.
3116 (aarch64_linux_core_read_vq): Add function.
3117 (aarch64_linux_core_read_description): Check for SVE section.
3118
3119 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3120
3121 * aarch64-fbsd-tdep.c
3122 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3123 collect_size.
3124 * aarch64-linux-tdep.c
3125 (aarch64_linux_iterate_over_regset_sections): Likewise.
3126 * alpha-linux-tdep.c
3127 (alpha_linux_iterate_over_regset_sections):
3128 * alpha-nbsd-tdep.c
3129 (alphanbsd_iterate_over_regset_sections): Likewise.
3130 * amd64-fbsd-tdep.c
3131 (amd64fbsd_iterate_over_regset_sections): Likewise.
3132 * amd64-linux-tdep.c
3133 (amd64_linux_iterate_over_regset_sections): Likewise.
3134 * arm-bsd-tdep.c
3135 (armbsd_iterate_over_regset_sections): Likewise.
3136 * arm-fbsd-tdep.c
3137 (arm_fbsd_iterate_over_regset_sections): Likewise.
3138 * arm-linux-tdep.c
3139 (arm_linux_iterate_over_regset_sections): Likewise.
3140 * corelow.c (get_core_registers_cb): Likewise.
3141 (core_target::fetch_registers): Likewise.
3142 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3143 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3144 * gdbarch.h (void): Regenerate.
3145 * gdbarch.sh: Add supply_size and collect_size.
3146 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3147 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3148 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3149 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3150 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3151 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3152 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3153 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3154 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3155 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3156 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3157 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3158 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3159 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3160 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3161 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3162 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3163 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3164 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3165 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3166 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3167 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3168 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3169 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3170 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3171 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3172 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3173 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3174 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3175 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3176
3177 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3178
3179 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3180 with string_printf.
3181
3182 2018-08-10 Keith Seitz <keiths@redhat.com>
3183
3184 * compile/compile-c-support.c (add_code_header, add_code_footer):
3185 Move into policy class.
3186 (c_push_user_expression, pop_user_expression_nop)
3187 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3188 (compile_program): New host class.
3189 (c_compile_program): New typedef.
3190 (c_compute_porgram): Use c_compile_program.
3191
3192 2018-08-10 Keith Seitz <keiths@redhat.com>
3193
3194 * compile/compile-internal.h (compile_instance::~compile_instance):
3195 Remove calls to htab_delete.
3196 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3197 * compile.c (compile_instance::compile_instance): Initialize
3198 htab unique pointers.
3199 (compile_instance::get_cached_type, compile_instance::insert_type)
3200 (compile_instance::error_symbol_once): Update for unique_ptr.
3201
3202 2018-08-10 Keith Seitz <keiths@redhat.com>
3203
3204 * compile/compile-c-symbols.c (struct symbol_error)
3205 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3206 (compile_instance::insert_symbol_error)
3207 (compile_instance::error_symbol_once): Move to ...
3208 * compile/compile.c: ... here.
3209
3210 2018-08-10 Keith Seitz <keiths@redhat.com>
3211
3212 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3213 instead of `new_compile_instance'.
3214 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3215 Update description.
3216 If the symbol error map is not initialized, create it.
3217 (generate_c_for_for_one_symbol): Do not check/initialize
3218 the symbol error map.
3219 * compile/compile-c-types.c (compile_c_instance): Make a class.
3220 Update all callers.
3221 (compile_instance::compile_instance): Initialize the type cache.
3222 (get_cached_type): New function.
3223 (insert_type): Update description.
3224 (compile_c_instance::m_default_cflags): Define.
3225 (convert_type): Update description. Use get_cached_type.
3226 (delete_instance): Moved to destructor.
3227 (new_compile_instance): Moved to constructor.
3228 * compile/compile-c.h (compile_c_instance): Make class inheriting
3229 from compile_instance.
3230 <base>: Remove field.
3231 <type_map, symbol_err_map>: Move to base class.
3232 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3233 * compile/compile-internal.h (compile_instance): Make class.
3234 <type_map_t, symbol_err_map_t>: Define.
3235 <fe>: Rename to `m_gcc_fe'.
3236 <scope, block, gcc_target_options>: Add `m_' prefix.
3237 <m_type_map, m_symbol_err_map>: New fields, moved from
3238 compile_c_instance.
3239 <destroy>: Remove.
3240 (convert_type, new_compile_instance): Remove.
3241 * compile/compile.c (cleanup_compile_instance): Remove.
3242 (compile_to_object): Use unique_ptr to eliminate cleanups.
3243 (compile_instance::set_print_callback, compile_instance::version)
3244 (compile_instance::set_verbose)
3245 (compile_instance::set_driver_filename)
3246 (compile_instance::set_triplet_regexp)
3247 (compile_instance::set_arguments)
3248 (compile_instance::set_source_file)
3249 (compile_instance::compile): Define.
3250
3251 2018-08-10 Keith Seitz <keiths@redhat.com>
3252
3253 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3254 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3255 gcc-c-fe.def to define C plugin.
3256 (delete_instance): Delete `c_plugin'.
3257 (new_compile_instance): Initialize `c_plugin'.
3258 * compile/compile-c.h: Include gcc_c_plugin.h.
3259 (struct compile_c_instance) <c_plugin>: New member.
3260 * gcc-c-plugin.h: New file.
3261 Update all callers with API change.
3262
3263 2018-08-10 Keith Seitz <keiths@redhat.com>
3264
3265 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3266 (HFILES_NO_SRCDIR): ... to here.
3267 Add compile-internal.h and compile-c.h.
3268 * compile/compile-c-support.c: Include compile-c.h.
3269 * compile/compile-c-symbols.c: Include compile-c.h.
3270 (generate_c_for_variable_locations): Update comment.
3271 * compile/compile-c-types.c: Include compile-c.h.
3272 * compile/compile-c.h: New file -- moved C language declarations
3273 from other files here.
3274 * compile/compile-internal.h: Do not include hashtab.h or
3275 common/enum-flags.h.
3276 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3277 (gcc_convert_symbol, gcc_symbol_address)
3278 (generate_c_for_variable_locations, c_get_mode_for_size)
3279 (c_get_range_decl_name): Definitions moved to compile-c.h.
3280 * compile/compile-loc2c.c: Include compile-c.h.
3281
3282 2018-08-10 Keith Seitz <keiths@redhat.com>
3283
3284 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3285 (c_symbol_substitution_name): ... this.
3286 Update all callers.
3287
3288 2018-08-10 Keith Seitz <keiths@redhat.com>
3289
3290 * compile/compile-c-support.c (c_compute_program): Use
3291 unique_xmalloc_ptr to eliminate cleanup.
3292 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3293 Return a unique_xmalloc_ptr and eliminate cleanup.
3294 * compile/compile-internal.h (generate_c_for_variable_locations):
3295 Return unique_xmalloc_ptr and update description.
3296
3297 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3298
3299 * corelow.c (core_target::get_core_register_section): Rename
3300 min_size to section_min_size.
3301
3302 2018-08-09 Jim Wilson <jimw@sifive.com>
3303
3304 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3305 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3306 * NEWS: Mention new GNU/Linux RISC-V target.
3307 * configure.host: Add riscv*-*-linux*.
3308 * configure.nat: Add riscv*.
3309 * configure.tgt: Add riscv*-*-linux*.
3310 * riscv-linux-nat.c: New file.
3311 * riscv-linux-tdep.c: New file.
3312
3313 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * infrun.c (resume): Make static, add forward declaration.
3316 (proceed): Update header comment.
3317 * infrun.h (resume): Delete declaration.
3318
3319 2018-08-09 Tom Tromey <tom@tromey.com>
3320
3321 * riscv-tdep.h: Minor formatting fixes.
3322
3323 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3324
3325 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3326 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3327 (test_mkdir_recursive): Likewise.
3328 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3329
3330 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3331
3332 * valarith.c (value_subscripted_rvalue): If an array is not in
3333 memory, and we don't know the upper bound, then we can't know that
3334 the requested element exists or not.
3335
3336 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3337
3338 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3339 (target_options_to_string): Add comment.
3340
3341 2018-08-08 Tom Tromey <tom@tromey.com>
3342
3343 * unittests/scoped_mmap-selftests.c: Check result of "write".
3344
3345 2018-08-08 Jim Wilson <jimw@sifive.com>
3346
3347 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3348 (decode_register_index_short): New.
3349 (decode_j_type_insn, decode_cj_type_insn): New.
3350 (decode_b_type_insn, decode_cb_type_insn): New.
3351 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3352 local xlen. Check xlen when decoding ambiguous compressed insns. In
3353 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3354 is_c_sw_insn instead of is_sw_insn.
3355 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3356 (riscv_software_single_step): New.
3357 * riscv-tdep.h (riscv_software_single_step): Declare.
3358
3359 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3360 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3361
3362 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3363
3364 PR gdb/18050:
3365 * target.c (dispose_inferior): Don't dispose of inferiors that are
3366 already killed.
3367
3368 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3369
3370 * remote.c (remote_target::download_tracepoint): Change char* to
3371 const char*.
3372
3373 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3374
3375 * target.h (target_options_to_string): Return an std::string.
3376 * target.c (str_comma_list_concat_elem): Return void, use
3377 std::string.
3378 (do_option): Likewise.
3379 (target_options_to_string): Return an std::string.
3380 * linux-nat.c (linux_nat_target::wait): Adjust.
3381 * target-debug.h (target_debug_print_options): Adjust.
3382
3383 2018-08-07 Tom Tromey <tom@tromey.com>
3384
3385 * Makefile.in (CPPFLAGS): New variable.
3386 (INTERNAL_CPPFLAGS): Use it.
3387
3388 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3389
3390 * NEWS: Mention the index cache.
3391
3392 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3393
3394 * common/pathstuff.h (get_standard_cache_dir): New.
3395 * common/pathstuff.c (get_standard_cache_dir): New.
3396 * build-id.h (build_id_to_string): New.
3397 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3398 DEBUG_STR_SUFFIX): Move to here.
3399 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3400 DEBUG_STR_SUFFIX): Move from there.
3401 (write_psymtabs_to_index): Make non-static, add basename
3402 parameter. Write to temporary files, rename when done.
3403 (save_gdb_index_command): Adjust call to
3404 write_psymtabs_to_index.
3405 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3406 field.
3407 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3408 (get_gdb_index_contents_from_cache): New.
3409 (get_gdb_index_contents_from_cache_dwz): New.
3410 (dwarf2_initialize_objfile): Read index from cache.
3411 (dwarf2_build_psymtabs): Save to index.
3412 * dwarf-index-cache.h: New file.
3413 * dwarf-index-cache.c: New file.
3414 * dwarf-index-write.h: New file.
3415
3416 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3417
3418 * gnulib/aclocal.m4: Re-generate.
3419 * gnulib/config.in: Re-generate.
3420 * gnulib/configure: Re-generate.
3421 * gnulib/import/Makefile.am: Re-generate.
3422 * gnulib/import/Makefile.in: Re-generate.
3423 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3424 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3425 * gnulib/import/m4/mkdir.m4: New file.
3426 * gnulib/import/mkdir.c: New file.
3427 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3428 module.
3429
3430 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3431
3432 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3433 * common/scoped_mmap.c: New file.
3434 * common/scoped_mmap.h (destroy): New method.
3435 (~scoped_mmap, reset): Use destroy.
3436 (scoped_mmap): New move constructor.
3437 (mmap_file): New declaration.
3438 * unittests/scoped_mmap-selftests.c (test_normal,
3439 test_invalid_filename, run_tests): New functions.
3440 (_initialize_scoped_mmap_selftests): Register selftest.
3441
3442 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3443
3444 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3445 (read_gdb_index_from_buffer): ... this. Remove section
3446 parameter, add buffer parameter.
3447 (get_gdb_index_contents_ftype,
3448 get_gdb_index_contents_dwz_ftype): New typedefs.
3449 (dwarf2_read_gdb_index): Add callback parameters to get the
3450 index contents.
3451 (get_gdb_index_contents_from_section): New.
3452 (dwarf2_initialize_objfile): Update call to
3453 dwarf2_read_gdb_index.
3454
3455 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3456
3457 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3458 (gdb_open_cloexec): Likewise.
3459 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3460 (commandline_from_pid): Likewise.
3461 (linux_xfer_osdata_threads): Likewise.
3462 (linux_xfer_osdata_fds): Likewise.
3463 * ada-lang.c (is_package_name): Likewise.
3464 * auxv.c (procfs_xfer_auxv): Likewise.
3465 * breakpoint.c (print_one_breakpoint_location): Use
3466 uiout::field_fmt.
3467 (print_one_catch_solib): Use string_printf.
3468 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3469 (add_pe_forwarded_sym): Likewise.
3470 * dwarf2read.c (create_type_unit_group): Likewise.
3471 (build_error_marker_type): Likewise.
3472 * infcall.c (get_function_name): Likewise.
3473 * valprint.c (print_converted_chars_to_obstack): Likewise.
3474 * xtensa-tdep.c (xtensa_register_type): Likewise.
3475
3476 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3477
3478 * remote.c (remote_target::download_tracepoint): Fix format
3479 string errors.
3480
3481 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3482
3483 * tracefile.c: Include common/byte-vector.h.
3484 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3485 with trace_regblock_size if needed. Update uses of buf.
3486
3487 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3488
3489 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3490 std::vector<unsigned char>.
3491 * tracepoint.c (collection_list::collection_list): Remove
3492 m_regs_mask initializer from initializer list. Resize
3493 m_regs_mask using the largest remote register number.
3494 (collection_list::add_remote_register): Remove size check on
3495 m_regs_mask. Use at to access element.
3496 (collection_list::stringify): Change type of temp_buf to
3497 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3498 stringify the register mask. Use pack_hex_byte for the register
3499 mask.
3500
3501 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3502
3503 * tracepoint.h (class collection_list) <add_register>: Remove.
3504 <add_remote_register, add_ax_registers, add_local_register>:
3505 Declare.
3506 <add_memrange>: Add scope parameter.
3507 * tracepoint.c (encode_actions_1): Likewise.
3508 (collection_list::add_register): Rename to ...
3509 (collection_list::add_remote_register): ... this. Update
3510 comment.
3511 (collection_list::add_ax_registers, add_local_register): New
3512 methods.
3513 (collection_list::add_memrange): Add scope parameter. Call
3514 add_local_register instead of add_register.
3515 (finalize_tracepoint_aexpr): New function.
3516 (collection_list::collect_symbol): Update calls to add_memrange.
3517 Call add_local_register instead of add_register. Call
3518 add_ax_registers. Call finalize_tracepoint_aexpr.
3519 (encode_actions_1): Get remote regnos for $reg action. Call
3520 add_remote_register, add_ax_registers, and add_local_register.
3521 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3522 (validate_actionline): Call finalize_tracepoint_aexpr.
3523
3524 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3525
3526 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3527 Replace array buf with gdb::char_vector buf, of size
3528 get_remote_packet_size (). Replace references to buf and
3529 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3530 and xsnprintf with snprintf. Raise errors if the buffer is too
3531 small.
3532
3533 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3534
3535 * remote.c (remote_target::download_tracepoint): Fix the has_more
3536 predicate in the QTDP action list iteration.
3537
3538 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3539
3540 * remote.c (remote_target::download_tracepoint): Fix indentation
3541 in for block.
3542
3543 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3544
3545 * proc-api.c (_initialize_proc_api): Remove c, unused.
3546 * procfs.c (procfs_init_inferior): Remove signals, unused.
3547 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3548 unused.
3549
3550 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3551 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3554 'W_STOPCODE (0)' as this could be ambiguous.
3555
3556 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3557
3558 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3559 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3560 "ai_socktype").
3561
3562 2018-08-02 Tom Tromey <tom@tromey.com>
3563
3564 PR symtab/16842.
3565 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3566 symbols.
3567 (process_structure_scope): Likewise.
3568
3569 2018-08-02 Xavier Roirand <roirand@adacore.com>
3570
3571 PR gdb/22629:
3572 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3573 kill inferior.
3574
3575 2018-08-02 Tom Tromey <tom@tromey.com>
3576
3577 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3578 (darwin_suspend_inferior, darwin_resume_inferior)
3579 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3580 (darwin_check_new_threads): Check result of get_darwin_inferior.
3581
3582 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3583
3584 GDB 8.1.1 released.
3585
3586 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3587
3588 * varobj.c (varobj_get_path_expr_parent): Report an error if
3589 parent is a dynamic varobj.
3590
3591 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3592
3593 * gnulib/aclocal.m4: Re-generate.
3594 * gnulib/config.in: Re-generate.
3595 * gnulib/configure: Re-generate.
3596 * gnulib/import/Makefile.in: Re-generate.
3597 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3598 * gnulib/import/m4/onceonly.m4: Re-generate.
3599
3600 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3601
3602 * target-descriptions.c (struct xml_test_tdesc): New.
3603 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3604 (record_xml_tdesc): Update.
3605 (maintenance_check_xml_descriptions): Update.
3606 * target-descriptions.h (record_xml_tdesc): Update comment.
3607
3608 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3611 checking array bounds are defined.
3612
3613 2018-07-30 Tom Tromey <tom@tromey.com>
3614
3615 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3616 irreflexivity violation.
3617
3618 2018-07-30 Tom Tromey <tom@tromey.com>
3619
3620 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3621 * value.c (unpack_long): Remove lint code.
3622 * valops.c (value_ind): Remove lint code.
3623 * valarith.c (value_x_binop, value_x_unop, value_equal)
3624 (value_pos): Remove lint code.
3625
3626 2018-07-28 Tom de Vries <tdevries@suse.de>
3627
3628 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3629 with undefined upper bound as <optimized out>.
3630
3631 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3632
3633 * gcore.in: Rename variable "name" to "prefix". Expand
3634 "usage" text.
3635
3636 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3637
3638 * windows-nat.c (windows_nat_target::create_inferior): Update to
3639 call close() in global namespace.
3640
3641 2018-07-26 Tom Tromey <tom@tromey.com>
3642
3643 * dwarf-index-write.c (add_address_entry): Don't add objfile
3644 offsets.
3645 * dbxread.c (find_stab_function): Rename from
3646 find_stab_function_addr. Return a bound_minimal_symbol.
3647 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3648 Don't add objfile offsets.
3649 (end_psymtab): Use raw_text_low, raw_text_high,
3650 MSYMBOL_VALUE_RAW_ADDRESS.
3651 (read_ofile_symtab): Update.
3652 (process_one_symbol): Update.
3653 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3654 offsets.
3655 (dw2_relocate): Remove.
3656 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3657 searching addrmap.
3658 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3659 Update.
3660 (process_psymtab_comp_unit_reader, add_partial_symbol)
3661 (add_partial_subprogram, dwarf2_ranges_read): Update.
3662 (load_partial_dies): Update.
3663 (add_address_entry): Don't add objfile offsets.
3664 (dwarf2_build_include_psymtabs): Update.
3665 (create_addrmap_from_aranges): Don't add objfile offsets.
3666 (dw2_find_pc_sect_compunit_symtab): Update.
3667 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3668 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3669 Update.
3670 (parse_partial_symbols): Don't add objfile offsets. Use
3671 raw_text_low, raw_text_high. Update.
3672 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3673 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3674 or call 'relocate' quick function. Clear psymbol_map.
3675 * psympriv.h (struct partial_symbol) <address>: Add section
3676 offset.
3677 <set_unrelocated_address>: Rename from set_address.
3678 <raw_text_low, raw_text_high>: New methods.
3679 <text_low, text_high>: Add objfile parameter.
3680 (add_psymbol_to_bcache): Add 'section' parameter. Call
3681 set_unrelocated_address.
3682 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3683 (find_pc_psymbol): Update.
3684 (fixup_psymbol_section, relocate_psymtabs): Remove.
3685 (dump_psymtab, psym_functions): Update.
3686 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3687 parameter.
3688 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3689 (start_psymtab_common): Update.
3690 * symfile-debug.c (debug_qf_relocate): Remove.
3691 (debug_sym_quick_functions): Update.
3692 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3693 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3694 Update.
3695
3696 2018-07-26 Tom Tromey <tromey@redhat.com>
3697
3698 * dbxread.c (end_psymtab): Use text_high_valid and
3699 text_low_valid.
3700 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3701 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3702 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3703 Update comment.
3704 <text_low_valid, text_high_valid>: New fields.
3705 <set_text_low, set_text_high>: Update.
3706 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3707
3708 2018-07-26 Tom Tromey <tom@tromey.com>
3709
3710 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3711 Update.
3712 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3713 textlow and texthigh fields.
3714 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3715 Update.
3716 * mdebugread.c (parse_lines, parse_partial_symbols)
3717 (psymtab_to_symtab_1): Update.
3718 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3719 Rename fields. Update comment. Now private.
3720 <text_low, text_high, set_text_low, set_text_high>: New methods.
3721 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3722 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3723 (start_psymtab_common, maintenance_info_psymtabs)
3724 (maintenance_check_psymtabs): Update.
3725 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3726 texthigh fields.
3727 (scan_xcoff_symtab): Update.
3728
3729 2018-07-26 Tom Tromey <tromey@redhat.com>
3730
3731 * psympriv.h (struct partial_symbol) <unrelocated_address,
3732 address, set_address>: New methods.
3733 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3734 (fixup_psymbol_section, relocate_psymtabs): Update.
3735 (print_partial_symbols): Add 'objfile' parameter. Update.
3736 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3737 Update.
3738
3739 2018-07-26 Tom Tromey <tom@tromey.com>
3740
3741 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3742 (debug_names::write_psymbols): Update.
3743 * psympriv.h (struct partial_symbol): Derive from
3744 general_symbol_info.
3745 <obj_section>: New method.
3746 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3747 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3748 (find_pc_sect_psymbol, fixup_psymbol_section)
3749 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3750 (print_partial_symbols, recursively_search_psymtabs)
3751 (compare_psymbols, psymbol_hash, psymbol_compare)
3752 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3753 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3754
3755 2018-07-26 Tom Tromey <tromey@redhat.com>
3756
3757 * dbxread.c (end_psymtab): Remove dead code.
3758
3759 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3762 DWARF unwinders are disabled.
3763 * dwarf2-frame.c: Add dwarf2read.h include.
3764 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3765 disabled.
3766 (dwarf2_frame_unwinders_enabled_p): Define.
3767 (show_dwarf_unwinders_enabled_p): New function.
3768 (_initialize_dwarf2_frame): Register switch to control DWARF
3769 unwinder use.
3770 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3771 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3772 (show_dwarf_cmdlist): Remove static keyword.
3773 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3774 (show_dwarf_cmdlist): Declare.
3775 * NEWS: Document new feature.
3776
3777 2018-07-26 Tom de Vries <tdevries@suse.de>
3778
3779 PR breakpoints/23366
3780 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3781
3782 2018-07-26 Tom de Vries <tdevries@suse.de>
3783
3784 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3785 DW_AT_count can't be translated to a dynamic prop.
3786
3787 2018-07-25 Tom de Vries <tdevries@suse.de>
3788
3789 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3790 try/catch.
3791
3792 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3793
3794 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3795
3796 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3797
3798 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3799
3800 2018-07-24 Keith Seitz <keiths@redhat.comt
3801
3802 PR symtab/23010
3803 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3804 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3805 instead of add_symbol_to_list.
3806 (read_file_scope): Call prepare_one_comp_unit before reading
3807 any other DIEs.
3808
3809 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3810
3811 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3812
3813 2018-07-24 Tom Tromey <tom@tromey.com>
3814
3815 * utils.c (malloc, realloc, free): Don't declare.
3816 * configure, config.in: Rebuild.
3817 * configure.ac: Don't check for declarations of free, malloc, or
3818 realloc.
3819
3820 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3821
3822 * aarch64-linux-nat.c
3823 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3824 variable.
3825 * arm-linux-nat.c (fetch_regs): Likewise.
3826 (store_regs): Likewise.
3827 (fetch_vfp_regs): Likewise.
3828 (store_vfp_regs): Likewise.
3829 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3830 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3831 (arm_linux_nat_target::insert_watchpoint): Likewise.
3832 (arm_linux_nat_target::remove_watchpoint): Likewise.
3833 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3834 Likewise.
3835 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3836 Likewise.
3837 * ppc-linux-nat.c (fetch_register): Likewise.
3838 (fetch_all_gp_regs): Likewise.
3839 (fetch_ppc_registers): Likewise.
3840 (store_all_gp_regs): Likewise.
3841 (store_ppc_registers): Likewise.
3842 (hwdebug_insert_point): Likewise.
3843 (can_use_watchpoint_cond_accel): Likewise.
3844 * remote-sim.c (gdb_os_write_stdout): Likewise.
3845
3846 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3847 Tom Tromey <tom@tromey.com>
3848
3849 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3850 test for it.
3851 * configure: Rebuild.
3852
3853 2018-07-22 Tom Tromey <tom@tromey.com>
3854
3855 * regformats/regdat.sh: Define xmltarget_${name} inside
3856 #ifndef IN_PROCESS_AGENT.
3857
3858 2018-07-22 Tom Tromey <tom@tromey.com>
3859
3860 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3861
3862 2018-07-22 Tom Tromey <tom@tromey.com>
3863
3864 * symfile.c (reread_symbols): Notify iter, not objfile.
3865
3866 2018-07-22 Tom Tromey <tom@tromey.com>
3867
3868 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3869 Use arch_ops.
3870 (ravenscar_thread_target::prepare_to_store): Likewise.
3871
3872 2018-07-22 Tom Tromey <tom@tromey.com>
3873
3874 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3875 unused variable. Call value_fetch_lazy when needed.
3876 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3877 Remove unused variable. Call value_fetch_lazy when needed.
3878
3879 2018-07-22 Tom Tromey <tom@tromey.com>
3880
3881 * m32c-tdep.c (mark_dma): Return void.
3882 (make_regs): Remove unused declarations.
3883
3884 2018-07-22 Tom Tromey <tom@tromey.com>
3885
3886 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3887 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3888 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3889 bkscm_get_valid_block_smob_arg_unsafe for effect.
3890
3891 2018-07-22 Tom Tromey <tom@tromey.com>
3892
3893 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3894 value_type.
3895
3896 2018-07-22 Tom Tromey <tom@tromey.com>
3897
3898 * windows-nat.c (saved_context): Conditionally define.
3899 * remote.c (remote_target::remote_btrace_maybe_reopen):
3900 Conditionally declare "warned".
3901 * inflow.c (sigquit_ours): Conditionally define.
3902 (new_tty): Move "tty" declaration inside #if.
3903 * guile/guile.c (guile_datadir): Conditionally define.
3904 * charset.c (set_be_le_names): Move some declarations inside #if.
3905 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3906 #if.
3907 (parse_xml_btrace_conf): Likewise.
3908
3909 2018-07-22 Tom Tromey <tom@tromey.com>
3910
3911 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3912
3913 2018-07-22 Tom Tromey <tom@tromey.com>
3914
3915 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3916 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3917 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3918 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3919 * stack.c (frame_apply_level_command): Remove unused variable.
3920 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3921 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3922 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3923 unused variable.
3924 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3925 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3926 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3927 variable.
3928 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3929 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3930 variable.
3931 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3932 Remove unused variable.
3933 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3934 variable.
3935 * common/tdesc.c (print_xml_feature::visit): Remove unused
3936 variable.
3937 * compile/compile-object-load.c (store_regs): Remove unused
3938 variables.
3939 * complaints.c (clear_complaints): Remove unused variable.
3940 * corelow.c (core_target_open): Remove unused variable.
3941 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3942 variable.
3943 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3944 variable.
3945 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3946 variable.
3947 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3948 variable.
3949 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3950 variable.
3951 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3952 variable.
3953 * ia64-tdep.c (examine_prologue): Remove unused variable.
3954 * infcall.c (run_inferior_call): Remove unused variable.
3955 * inferior.c (exit_inferior): Remove unused variable.
3956 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3957 * linespec.c (decode_line_2): Remove unused variable.
3958 * linux-nat.c (super_close): Remove.
3959 * linux-tdep.c (linux_info_proc): Remove unused variable.
3960 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3961 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3962 Remove unused variable.
3963 * parse.c (find_minsym_type_and_address): Remove unused variable.
3964 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3965 variable.
3966 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3967 variable.
3968 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3969 variables.
3970 * record-btrace.c (record_btrace_target::store_registers): Remove
3971 unused variable.
3972 (cmd_show_record_btrace_cpu): Remove unused variable.
3973 * riscv-tdep.c (riscv_register_reggroup_p)
3974 (riscv_push_dummy_call, riscv_return_value): Remove unused
3975 variable.
3976 * rust-exp.y (literal): Remove unused variable.
3977 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3978 unused variable.
3979 <STRUCTOP_ANONYMOUS>: Likewise.
3980 * s390-linux-tdep.c (s390_linux_init_abi_31)
3981 (s390_linux_init_abi_64): Remove unused variable.
3982 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3983 (file_select_thread, net_windows_open, _initialize_ser_windows):
3984 Remove unused variables.
3985 * symtab.c (find_pc_sect_line): Remove unused variable.
3986 * target-memory.c (compute_garbled_blocks): Remove unused
3987 variable.
3988 (target_write_memory_blocks): Remove unused variable.
3989 * target.c (target_stack::unpush): Remove unused variables.
3990 * tracepoint.c (start_tracing, all_tracepoint_actions)
3991 (merge_uploaded_trace_state_variables)
3992 (print_one_static_tracepoint_marker): Remove unused variable.
3993 * unittests/basic_string_view/element_access/char/1.cc (test01):
3994 Remove unused variable.
3995 * windows-nat.c (windows_continue, windows_add_all_dlls)
3996 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3997 Remove unused variables.
3998
3999 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4002 attr_profile in HAVE_ELF.
4003 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4004 HAVE_ELF.
4005
4006 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4007
4008 * frame.c (frame_register_unwind): Change parameter name.
4009 (frame_unwind_register): Likewise.
4010 (frame_unwind_register_value): Likewise.
4011 (frame_unwind_register_signed): Likewise.
4012 (frame_unwind_register_unsigned): Likewise.
4013 * frame.h (frame_register_unwind): Likewise.
4014 (frame_unwind_register): Likewise.
4015 (frame_unwind_register_value): Likewise.
4016 (frame_unwind_register_signed): Likewise.
4017 (frame_unwind_register_unsigned): Likewise.
4018 (frame_unwind_arch): Likewise.
4019
4020 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4021
4022 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4023 ISA maintenance.
4024
4025 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4026
4027 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4028 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4029 hand.
4030
4031 2018-07-20 Keith Seitz <keiths@redhat.com>
4032
4033 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4034 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4035 m_compunit_symtab, m_language>: Add "m_" prefix.
4036 Update all uses.
4037 * buildsym.c: Update all uses.
4038
4039 2018-07-20 Tom Tromey <tom@tromey.com>
4040
4041 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4042 * buildsym.h (record_line_ftype): Remove typedef.
4043
4044 2018-07-20 Tom Tromey <tom@tromey.com>
4045
4046 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4047 (end_expandable_symtab): Likewise.
4048 (end_symtab_get_static_block): Likewise.
4049 (end_symtab_from_static_block): Likewise.
4050 * buildsym-legacy.c (augment_type_symtab): Remove.
4051 (end_expandable_symtab): Remove.
4052 (end_symtab_get_static_block): Remove.
4053 (end_symtab_from_static_block): Remove.
4054
4055 2018-07-20 Tom Tromey <tom@tromey.com>
4056
4057 * dwarf2read.c: Include buildsym.h.
4058 (struct dwarf2_cu) <builder>: New method.
4059 (fixup_go_packaging): Update.
4060 (process_full_comp_unit, process_full_type_unit): Update. Don't
4061 use scoped_free_pendings.
4062 (using_directives): Add "cu" parameter, remove "language".
4063 (read_import_statement, setup_type_unit_groups, )
4064 (read_func_scope, read_lexical_block_scope)
4065 (dwarf2_record_block_ranges, read_namespace): Update.
4066 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4067 (lnp_state_machine::handle_end_sequence): Update.
4068 (class lnp_state_machine) <m_cu>: New member.
4069 <m_record_line_callback>: Remove.
4070 <m_currently_recording_lines>: New member.
4071 (lnp_state_machine::handle_set_file): Update.
4072 (noop_record_line): Remove.
4073 (dwarf_record_line_p): Add cu parameter.
4074 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4075 (lnp_state_machine::record_line)
4076 (lnp_state_machine::lnp_state_machine)
4077 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4078 (dwarf_decode_lines): Update.
4079 (dwarf2_start_subfile): Add cu parameter.
4080 (dwarf2_start_symtab, new_symbol): Update.
4081 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4082 Remove dwarf2_per_objfile parameter.
4083 (dwarf_decode_macros): Update.
4084
4085 2018-07-20 Tom Tromey <tom@tromey.com>
4086
4087 * stabsread.c (define_symbol): Update.
4088 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4089 * dwarf2read.c (new_symbol): Update.
4090 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4091 * cp-namespace.c: Include buildsym.h.
4092 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4093 * buildsym-legacy.c (get_buildsym_compunit): New function.
4094
4095 2018-07-20 Tom Tromey <tom@tromey.com>
4096
4097 * xcoffread.c: Include buildsym-legacy.h.
4098 * windows-nat.c: Include buildsym-legacy.h.
4099 * stabsread.c: Include buildsym-legacy.h.
4100 * mdebugread.c: Include buildsym-legacy.h.
4101 * buildsym-legacy.h: New file.
4102 * buildsym-legacy.c: New file, from buildsym.c.
4103 * go32-nat.c: Include buildsym-legacy.h.
4104 * dwarf2read.c: Include buildsym-legacy.h.
4105 * dbxread.c: Include buildsym-legacy.h.
4106 * cp-namespace.c: Include buildsym-legacy.h.
4107 * coffread.c: Include buildsym-legacy.h.
4108 * buildsym.h: Move some contents to buildsym-legacy.h.
4109 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4110 buildsym-legacy.c.
4111 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4112
4113 2018-07-20 Tom Tromey <tom@tromey.com>
4114
4115 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4116 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4117 (buildsym_compunit::buildsym_compunit)
4118 (buildsym_compunit::~buildsym_compunit)
4119 (buildsym_compunit::get_macro_table): Define.
4120
4121 2018-07-20 Tom Tromey <tom@tromey.com>
4122
4123 * buildsym.c (reset_symtab_globals): Remove.
4124 (buildsym_compunit::end_symtab_from_static_block): Update.
4125 (buildsym_compunit::augment_type_symtab): Update.
4126 (end_symtab_from_static_block): Call free_buildsym_compunit.
4127 (augment_type_symtab, end_symtab, end_expandable_symtab):
4128 Likewise.
4129
4130 2018-07-20 Tom Tromey <tom@tromey.com>
4131
4132 * arch-utils.c: Do not include buildsym.h.
4133 * mipsread.c: Do not include buildsym.h.
4134 * machoread.c: Do not include buildsym.h.
4135 * elfread.c: Do not include buildsym.h.
4136
4137 2018-07-20 Tom Tromey <tom@tromey.com>
4138
4139 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4140 initialization.
4141 (buildsym_compunit): Add new constructor.
4142 (struct buildsym_compunit) <get_last_source_file, finish_block,
4143 record_block_range, start_subfile, patch_subfile_names,
4144 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4145 set_last_source_start_addr, get_last_source_start_addr,
4146 get_local_using_directives, set_local_using_directives,
4147 get_global_using_directives, outermost_context_p,
4148 get_current_context_stack, get_context_stack_depth,
4149 get_current_subfile, get_local_symbols, get_file_symbols,
4150 get_global_symbols, record_debugformat, record_producer,
4151 push_context, pop_context, end_symtab_get_static_block,
4152 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4153 New public methods.
4154 <record_pending_block, finish_block_internal, make_blockvector,
4155 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4156 private methods.
4157 Update all users.
4158
4159 2018-05-22 Tom Tromey <tom@tromey.com>
4160
4161 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4162 parameter.
4163 (finish_block_internal): Update.
4164
4165 2018-07-20 Tom Tromey <tom@tromey.com>
4166
4167 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4168 parameter.
4169 (finish_block_internal): Update.
4170
4171 2018-07-20 Tom Tromey <tom@tromey.com>
4172
4173 * buildsym.h (EXTERN): Don't define or undef.
4174 * buildsym.c (EXTERN): Don't define.
4175
4176 2018-07-20 Tom Tromey <tom@tromey.com>
4177
4178 * buildsym.c: Remove TODO comment.
4179
4180 2018-07-20 Tom Tromey <tom@tromey.com>
4181
4182 * coffread.c (coff_symtab_read): Update.
4183 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4184 (xcoff_new_init): Update.
4185 * mipsread.c (mipscoff_new_init): Update.
4186 * mdebugread.c (mdebug_build_psymtabs): Update.
4187 * elfread.c (elf_new_init): Update.
4188 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4189 Update.
4190 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4191 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4192 (stabsect_build_psymtabs): Update.
4193 * buildsym.h (buildsym_init): Don't declare.
4194 * buildsym.c: Update comment.
4195 (prepare_for_building): Remove.
4196 (start_symtab, restart_symtab): Update.
4197 (reset_symtab_globals): Update comment.
4198 (buildsym_init): Remove.
4199
4200 2018-07-20 Tom Tromey <tom@tromey.com>
4201
4202 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4203 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4204 (read_enum_type, common_block_start, common_block_end)
4205 (cleanup_undefined_types_1, finish_global_stabs): Update.
4206 * mdebugread.c (psymtab_to_symtab_1): Update.
4207 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4208 (read_lexical_block_scope, new_symbol): Update.
4209 * dbxread.c (process_one_symbol): Update.
4210 * coffread.c (coff_symtab_read, process_coff_symbol)
4211 (coff_read_enum_type): Update.
4212 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4213 declare.
4214 (get_local_symbols, get_file_symbols, get_global_symbols): New
4215 functions.
4216 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4217 m_global_symbols.
4218 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4219 (~scoped_free_pendings): Update.
4220 (finish_block, prepare_for_building, reset_symtab_globals)
4221 (end_symtab_get_static_block, end_symtab_with_blockvector)
4222 (augment_type_symtab, push_context): Update.
4223 (get_local_symbols, get_file_symbols, get_global_symbols): New
4224 functions.
4225 (buildsym_init): Update.
4226
4227 2018-07-20 Tom Tromey <tom@tromey.com>
4228
4229 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4230 (process_full_type_unit): Likewise.
4231 (dwarf2_start_symtab): Set list_in_scope.
4232
4233 2018-07-20 Tom Tromey <tom@tromey.com>
4234
4235 * dwarf2read.c (process_psymtab_comp_unit_reader)
4236 (build_type_psymtabs_reader): Do not set list_in_scope.
4237
4238 2018-07-20 Tom Tromey <tom@tromey.com>
4239
4240 * buildsym.c (free_pendings): Remove.
4241 (add_symbol_to_list, scoped_free_pendings)
4242 (finish_block_internal, buildsym_init): Update.
4243
4244 2018-07-20 Tom Tromey <tom@tromey.com>
4245
4246 * xcoffread.c (read_xcoff_symtab): Update.
4247 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4248 Update.
4249 * dbxread.c (process_one_symbol): Update.
4250 * coffread.c (coff_symtab_read): Update.
4251 * buildsym.h (finish_block): Update.
4252 * buildsym.c (finish_block): Remove "listhead" argument.
4253 (end_symtab_get_static_block): Update.
4254
4255 2018-07-20 Tom Tromey <tom@tromey.com>
4256
4257 * buildsym.h (class scoped_free_pendings): Remove constructor.
4258 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4259 method.
4260 <m_pending_block_obstack, m_pending_blocks>: New members.
4261 (pending_block_obstack, pending_blocks): Remove.
4262 (scoped_free_pendings::scoped_free_pendings): Default.
4263 (~scoped_free_pendings): Update.
4264 (free_pending_blocks): Remove.
4265 (finish_block_internal, record_pending_block, make_blockvector)
4266 (end_symtab_get_static_block, augment_type_symtab, push_context)
4267 (buildsym_init): Update.
4268
4269 2018-07-20 Tom Tromey <tom@tromey.com>
4270
4271 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4272 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4273 members.
4274 (pending_addrmap, pending_addrmap_obstack)
4275 (pending_addrmap_interesting): Remove.
4276 (scoped_free_pendings, record_block_range, make_blockvector)
4277 (prepare_for_building, reset_symtab_globals, buildsym_init):
4278 Update.
4279
4280 2018-07-20 Tom Tromey <tom@tromey.com>
4281
4282 * xcoffread.c (process_linenos): Update.
4283 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4284 * mdebugread.c (psymtab_to_symtab_1): Update.
4285 * dwarf2read.c (setup_type_unit_groups)
4286 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4287 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4288 * dbxread.c (process_one_symbol): Update.
4289 * coffread.c (coff_symtab_read, enter_linenos)
4290 (process_coff_symbol): Update.
4291 * buildsym.h (current_subfile): Don't declare.
4292 (get_current_subfile): Declare.
4293 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4294 member.
4295 (start_subfile, free_buildsym_compunit, push_subfile)
4296 (prepare_for_building, start_symtab): Update.
4297 (get_current_subfile): New function.
4298
4299 2018-07-20 Tom Tromey <tom@tromey.com>
4300
4301 * coffread.c (coff_symtab_read): Update.
4302 * xcoffread.c (read_xcoff_symtab): Update.
4303 * dwarf2read.c (new_symbol): Update.
4304 (read_func_scope, read_lexical_block_scope): Update.
4305 * dbxread.c (process_one_symbol): Update.
4306 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4307 (outermost_context_p): Remove macro.
4308 (outermost_context_p, get_current_context_stack)
4309 (get_context_stack_depth): Declare.
4310 (pop_context): Return struct context_stack.
4311 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4312 member.
4313 (context_stack_size): Remove.
4314 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4315 (prepare_for_building, end_symtab_get_static_block)
4316 (augment_type_symtab, push_context): Update.
4317 (pop_context): Return struct context_stack.
4318 (outermost_context_p, get_current_context_stack)
4319 (get_context_stack_depth): New functions.
4320 (buildsym_init): Update.
4321
4322 2018-07-20 Tom Tromey <tom@tromey.com>
4323
4324 * rust-exp.y: Now a pure parser. Update all rules.
4325 (%union): Move earlier.
4326 (current_parser, work_obstack): Remove globals.
4327 (rust_parser, ~rust_parser): Update.
4328 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4329 lex_character, lex_number, lex_string, lex_identifier,
4330 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4331 convert_name, convert_params_to_expression,
4332 convert_ast_to_expression, ast_basic_type, ast_operation,
4333 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4334 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4335 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4336 ast_array_type, ast_slice_type, ast_reference_type,
4337 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4338 (rust_parse): Update.
4339 (rustyyerror, rustyylex): Add parser parameter.
4340 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4341 (rust_lex_stringish_test, rust_lex_test_sequence)
4342 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4343 (rust_lex_test_push_back, rust_lex_tests): Update.
4344
4345 2018-07-19 Pedro Alves <palves@redhat.com>
4346
4347 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4348 gdb::unique_xmalloc_ptr.
4349 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4350 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4351 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4352 copy-initialization.
4353 * guile/scm-pretty-print.c (ppscm_print_children): Use
4354 gdb::unique_xmalloc_ptr instead of cleanups.
4355 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4356 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4357 gdb::unique_xmalloc_ptr.
4358 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4359 Adjust to use gdb::unique_xmalloc_ptr.
4360 * guile/scm-utils.c (extract_arg): Adjust.
4361 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4362 gdb::unique_xmalloc_ptr instead of a cleanup.
4363
4364 2018-07-19 Tom Tromey <tom@tromey.com>
4365
4366 * utils.c (do_value_free_to_mark)
4367 (make_cleanup_value_free_to_mark): Remove.
4368 * utils.h (make_cleanup_value_free_to_mark): Remove.
4369
4370 2018-07-19 Pedro Alves <palves@redhat.com>
4371
4372 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4373 forwarding reference.
4374
4375 2018-07-18 Pedro Alves <palves@redhat.com>
4376
4377 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4378 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4379 cleanup.
4380
4381 2018-07-18 Pedro Alves <palves@redhat.com>
4382
4383 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4384 exceptions.
4385 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4386 (gdbscm_wrap): New.
4387 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4388 directly instead of a cleanup.
4389 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4390 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4391 (vlscm_binop_gdbthrow): New, factored out from ...
4392 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4393 (vlscm_rich_compare): Use gdbscm_wrap.
4394 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4395 instead of a cleanup.
4396 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4397 cleanup.
4398 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4399 Use xfree directly instead of a cleanup.
4400 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4401 Adjust to use gdbscm_wrap and scoped_value_mark.
4402 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4403 (gdbscm_value_address, gdbscm_value_dereference)
4404 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4405 scoped_value_mark.
4406 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4407 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4408 scoped_value_mark.
4409 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4410 gdbscm_wrap and scoped_value_mark.
4411 (gdbscm_value_to_string): Use xfree directly instead of a
4412 cleanup. Move 'buffer' unique_ptr to TRY scope.
4413 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4414 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4415 scoped_value_mark.
4416 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4417 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4418 scoped_value_mark.
4419 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4420 gdbscm_wrap.
4421
4422 2018-07-18 Tom de Vries <tdevries@suse.de>
4423
4424 * findvar.c (default_read_var_value): Also resolve dynamic type for
4425 LOC_OPTIMIZED_OUT vars.
4426
4427 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4428
4429 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4430 decoding.
4431
4432 2018-07-17 Tom Tromey <tom@tromey.com>
4433
4434 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4435 (compute_enum_list, pascm_set_param_value_x)
4436 (gdbscm_parameter_value): Update.
4437 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4438 (gdbscm_scm_to_host_string): Update.
4439 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4440 Update.
4441 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4442 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4443 * guile/scm-string.c (gdbscm_scm_to_string): Return
4444 unique_xmalloc_ptr.
4445 (gdbscm_scm_to_host_string): Likewise.
4446
4447 2018-07-17 Tom Tromey <tom@tromey.com>
4448
4449 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4450 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4451 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4452 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4453 unique_xmalloc_ptr.
4454
4455 2018-07-17 Tom Tromey <tom@tromey.com>
4456
4457 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4458 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4459 Update.
4460 * guile/scm-cmd.c (cmdscm_function): Update.
4461 * guile/scm-pretty-print.c
4462 (ppscm_print_exception_unless_memory_error): Update.
4463 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4464 Return unique_xmalloc_ptr.
4465
4466 2018-07-17 Tom Tromey <tom@tromey.com>
4467
4468 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4469 Use string_printf.
4470
4471 2018-07-17 Jim Wilson <jimw@sifive.com>
4472
4473 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4474 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4475 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4476 unecessary braces after EF_RISCV_RVC test. Delete call to
4477 set_gdbarch_decr_pc_after_break.
4478
4479 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4480 RISCV_LAST_FP_REGNUM + 1.
4481 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4482
4483 2018-07-17 Tom Tromey <tom@tromey.com>
4484
4485 * configure.ac: Remove --disable-gdbcli.
4486 * configure: Rebuild.
4487 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4488 (SUBDIR_CLI_CFLAGS): Remove.
4489 (SFILES): Use SUBDIR_CLI_SRCS.
4490 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4491
4492 2018-07-17 Tom Tromey <tom@tromey.com>
4493
4494 PR gdb/18624:
4495 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4496
4497 2018-07-16 Jim Wilson <jimw@sifive.com>
4498
4499 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4500
4501 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4502
4503 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4504 variable.
4505 (libunwind_frame_sniffer): Likewise.
4506 (libunwind_frame_prev_register): Likewise.
4507 (libunwind_sigtramp_frame_sniffer): Likewise.
4508 * ia64-tdep.c (ia64_access_reg): Likewise.
4509 (ia64_access_rse_reg): Likewise.
4510 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4511 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4512
4513 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4514
4515 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4516
4517 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4518
4519 * remote-sim.c (gdbsim_target::close,
4520 gdbsim_target::mourn_inferior): Remove unused variables.
4521
4522 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4523
4524 * ia64-tdep.c (ktab_buf): New global.
4525 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4526 (get_kernel_table): Adjust.
4527
4528 2018-07-16 Tom Tromey <tom@tromey.com>
4529
4530 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4531 * dwarf2read.c (using_directives, new_symbol): Use
4532 outermost_context_p.
4533 * dbxread.c (process_one_symbol): Use outermost_context_p.
4534 * coffread.c (coff_symtab_read): Use outermost_context_p.
4535
4536 2018-07-16 Tom Tromey <tom@tromey.com>
4537
4538 * dwarf2read.c (using_directives, read_func_scope)
4539 (read_lexical_block_scope): Update.
4540 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4541 * buildsym.h (local_using_directives, global_using_directives):
4542 Don't declare.
4543 (get_local_using_directives, set_local_using_directives)
4544 (get_global_using_directives): Declare.
4545 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4546 m_global_using_directives>: New members.
4547 (finish_block_internal, prepare_for_building)
4548 (reset_symtab_globals, end_symtab_get_static_block)
4549 (push_context): Update.
4550 (get_local_using_directives, set_local_using_directives)
4551 (get_global_using_directives): New functions.
4552 (buildsym_init): Update.
4553
4554 2018-07-16 Tom Tromey <tom@tromey.com>
4555
4556 * xcoffread.c (xcoff_initial_scan): Don't call
4557 free_pending_blocks.
4558 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4559 * buildsym.h (class scoped_free_pendings): Add constructor.
4560 (free_pending_blocks): Don't declare.
4561 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4562 (free_pending_blocks): Now static.
4563
4564 2018-07-16 Tom Tromey <tom@tromey.com>
4565
4566 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4567 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4568 member.
4569 (struct subfile_stack): Remove.
4570 (subfile_stack): Remove.
4571 (push_subfile, pop_subfile, buildsym_init): Update.
4572
4573 2018-07-16 Tom Tromey <tom@tromey.com>
4574
4575 * buildsym.c (push_subfile): Use gdb_assert.
4576 (pop_subfile): Use gdb_assert.
4577
4578 2018-07-16 Tom Tromey <tom@tromey.com>
4579
4580 * buildsym.h (merge_symbol_lists): Remove.
4581 * buildsym.c (merge_symbol_lists): Remove.
4582
4583 2018-07-16 Tom Tromey <tom@tromey.com>
4584
4585 * stabsread.c (scan_file_globals): Update comment.
4586 * stabsread.h (scan_file_globals): Move from buildsym.h.
4587 * buildsym.h (scan_file_globals): Move to stabsread.h.
4588
4589 2018-07-16 Tom Tromey <tom@tromey.com>
4590
4591 * xcoffread.c (xcoff_new_init): Update.
4592 * mipsread.c (mipscoff_new_init): Update.
4593 * mdebugread.c (mdebug_build_psymtabs): Update.
4594 * elfread.c (elf_new_init): Update.
4595 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4596 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4597 * buildsym.h (buildsym_new_init): Don't declare.
4598 * buildsym.c (buildsym_new_init): Remove.
4599
4600 2018-07-16 Tom Tromey <tom@tromey.com>
4601
4602 * stabsread.h (within_function): Move from buildsym.h.
4603 * stabsread.c (start_stabs): Clear within_function.
4604 * coffread.c (coff_start_symtab): Clear within_function.
4605 * buildsym.h (within_function): Move to stabsread.h.
4606 * buildsym.c (prepare_for_building): Update.
4607
4608 2018-07-16 Tom Tromey <tom@tromey.com>
4609
4610 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4611 * dwarf2read.c (dwarf2_start_symtab): Don't set
4612 processing_gcc_compilation.
4613 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4614
4615 2018-07-16 Tom Tromey <tom@tromey.com>
4616
4617 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4618 (next_symbol_text_func): Move from buildsym.h.
4619 * stabsread.c (hashname): Move from buildsym.c.
4620 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4621 (next_symbol_text_func, hashname): Move to stabsread.h.
4622 * buildsym.c: Don't include bcache.h
4623 (hashname): Move to stasbread.c.
4624
4625 2018-07-16 Tom Tromey <tom@tromey.com>
4626
4627 * buildsym.h (context_stack_size): Don't declare.
4628 * buildsym.c (context_stack_size): New global.
4629
4630 2018-07-16 Tom Tromey <tom@tromey.com>
4631
4632 * dbxread.c (processing_acc_compilation): New global.
4633 * buildsym.h (processing_acc_compilation): Don't declare.
4634
4635 2018-07-16 Tom Tromey <tom@tromey.com>
4636
4637 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4638 * dbxread.c (read_ofile_symtab): Update.
4639 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4640 * buildsym.h (last_source_start_addr): Remove.
4641 (set_last_source_start_addr, get_last_source_start_addr):
4642 Declare.
4643 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4644 parameter.
4645 (struct buildsym_compunit) <m_last_source_start_addr>: New
4646 member.
4647 (prepare_for_building): Remove start_addr parameter.
4648 (start_symtab, restart_symtab, end_symtab_get_static_block)
4649 (end_symtab_with_blockvector): Update.
4650 (set_last_source_start_addr, get_last_source_start_addr): New
4651 functions.
4652
4653 2018-07-16 Tom Tromey <tom@tromey.com>
4654
4655 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4656 member.
4657 (have_line_numbers): Remove.
4658 (record_line, prepare_for_building, end_symtab_get_static_block)
4659 (augment_type_symtab): Update.
4660
4661 2018-07-16 Tom Tromey <tom@tromey.com>
4662
4663 * buildsym.c (~buildsym_compunit): Free the macro table.
4664 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4665 methods.
4666 <m_pending_macros>: New member.
4667 (pending_macros): Remove.
4668 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4669 (reset_symtab_globals, end_symtab_get_static_block)
4670 (end_symtab_with_blockvector, augment_type_symtab)
4671 (buildsym_init): Update.
4672
4673 2018-07-16 Tom Tromey <tom@tromey.com>
4674
4675 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4676 parameter.
4677 (buildsym_compunit::set_last_source_file): New method.
4678 <m_last_source_file>: New member.
4679 (prepare_for_building): Remove "name" parameter.
4680 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4681 (last_source_file): Remove.
4682 (set_last_source_file, get_last_source_file): Update.
4683
4684 2018-07-16 Tom Tromey <tom@tromey.com>
4685
4686 * buildsym.c (prepare_for_building): Add assert.
4687
4688 2018-07-16 Tom Tromey <tom@tromey.com>
4689
4690 * buildsym.c (~buildsym_compunit): Update.
4691 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4692 (start_subfile, patch_subfile_names)
4693 (end_symtab_with_blockvector): Update.
4694
4695 2018-07-16 Tom Tromey <tom@tromey.com>
4696
4697 * buildsym.c (struct buildsym_compunit): Add constructor,
4698 destructor, initializers.
4699 (start_buildsym_compunit): Remove.
4700 (free_buildsym_compunit): Use "delete".
4701 (start_symtab, restart_symtab): Use "new".
4702
4703 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4704
4705 * symfile.c (set_objfile_default_section_offset): Remove struct
4706 keyword.
4707
4708 2018-07-14 Stafford Horne <shorne@gmail.com>
4709
4710 * (Responsible Maintainers): Add myself as or1k maintainer.
4711
4712 2018-07-13 Tom Tromey <tom@tromey.com>
4713
4714 * symfile.c (set_objfile_default_section_offset): Use extra braces
4715 around initializer.
4716
4717 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4718
4719 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4720 non-branching basr.
4721
4722 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4723
4724 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4725 unittests/cli-utils-selftests.c
4726 * unittests/cli-utils-selftests.c: New file.
4727
4728 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4729
4730 * NEWS: Mention new commands. Mention change to 'thread apply'.
4731
4732 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4733
4734 * thread.c (thr_try_catch_cmd): New function.
4735 (thread_apply_all_command): Handle qcs flags.
4736 (thread_apply_command): Handle qcs flags.
4737 (taas_command): New function.
4738 (tfaas_command): New function.
4739 (_initialize_thread): Update to setup the new commands 'taas
4740 and 'tfaas'. Change doc string for 'thread apply'.
4741
4742 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4743
4744 * stack.c: (trailing_outermost_frame): New function, mostly
4745 extracted from backtrace_command_1.
4746 (leading_innermost_frame): New function.
4747 (backtrace_command_1): Update to call trailing_outermost_frame.
4748 (frame_apply_command_count): New function.
4749 (frame_apply_level_command): New function.
4750 (frame_apply_all_command): New function.
4751 (frame_apply_command): New function.
4752 (faas_command): New function.
4753 (frame_cmd_list): New variable.
4754 (_initialize_stack): Update to setup the new commands 'frame apply'
4755 and 'faas'.
4756
4757 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4758
4759 * cli-utils.c (number_or_range_parser::get_number): Only handle
4760 numbers or convenience var as numbers.
4761 (parse_flags): New function.
4762 (parse_flags_qcs): New function.
4763 (number_or_range_parser::finished): Ensure parsing end is detected
4764 before end of string.
4765 * cli-utils.h (parse_flags): New function.
4766 (parse_flags_qcs): New function.
4767 (number_or_range_parser): Remove m_finished bool.
4768 (number_or_range_parser::skip_range): Set m_in_range to false.
4769
4770 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4771
4772 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4773 on Windows.
4774
4775 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4776 Jan Kratochvil <jan.kratochvil@redhat.com>
4777 Paul Fertser <fercerpav@gmail.com>
4778 Tsutomu Seki <sekiriki@gmail.com>
4779 Pedro Alves <palves@redhat.com>
4780
4781 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4782 'unittests/parse-connection-spec-selftests.c'.
4783 (COMMON_SFILES): Add 'common/netstuff.c'.
4784 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4785 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4786 * common/netstuff.c: New file.
4787 * common/netstuff.h: New file.
4788 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4789 (wait_for_connect): Update comment. New parameter
4790 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4791 Use 'sock' directly instead of 'scb->fd'.
4792 (try_connect): New function, with code from 'net_open'.
4793 (net_open): Rewrite main loop to deal with multiple
4794 sockets/addresses. Handle IPv6-style hostnames; implement
4795 support for IPv6 connections.
4796 * unittests/parse-connection-spec-selftests.c: New file.
4797
4798 2018-07-11 Pedro Alves <palves@redhat.com>
4799
4800 PR gdb/23377
4801 * remote.c (remote_target::remote_detach_pid): Call
4802 set_current_process.
4803
4804 2018-07-11 Pedro Alves <palves@redhat.com>
4805
4806 * h8300-tdep.c (h8300_gdbarch_init): Remove
4807 set_gdbarch_ecoff_reg_to_regnum calls.
4808
4809 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4810
4811 PR c++/23373
4812 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4813 offsets/sizes for static members of a class/struct.
4814
4815 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4816
4817 * target-descriptions.c (tdesc_register_bitsize): Rename.
4818 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4819 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4820 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4821
4822 2018-07-10 Tom Tromey <tom@tromey.com>
4823
4824 * breakpoint.c (moribund_locations): Now static and a
4825 std::vector.
4826 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4827 (build_bpstat_chain, update_global_location_list)
4828 (breakpoint_retire_moribund): Update.
4829 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4830 VEC.
4831
4832 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4833
4834 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4835 (riscv_register_reggroup_p): Use new function, remove unneeded
4836 parenthesis.
4837 (riscv_push_dummy_call): Extend assert to compare against xlen or
4838 flen based on register type.
4839
4840 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4843
4844 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * remote.c (show_hardware_watchpoint_limit): New function.
4847 (show_hardware_watchpoint_length_limit): New function.
4848 (show_hardware_breakpoint_limit): New function.
4849 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4850 where appropriate, update help text.
4851
4852 2018-07-09 Tom Tromey <tom@tromey.com>
4853
4854 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4855 (CLIBS): Don't mention NAT_CLIBS.
4856
4857 2018-07-09 Tom Tromey <tom@tromey.com>
4858
4859 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4860 (LIBGDB_OBS, clean mostlyclean): Update.
4861 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4862
4863 2018-07-09 Tom Tromey <tom@tromey.com>
4864
4865 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4866 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4867 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4868
4869 2018-07-09 Tom Tromey <tom@tromey.com>
4870
4871 * Makefile.in (ALLDEPFILES): Remove exec.c.
4872 (COMMON_OBS): Remove exec.o.
4873 (COMMON_SFILES): Add exec.c.
4874
4875 2018-07-09 Tom Tromey <tom@tromey.com>
4876
4877 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4878
4879 2018-07-09 Tom Tromey <tom@tromey.com>
4880
4881 * Makefile.in (clean mostlyclean): Remove stamp-version.
4882 (version.c): Depend on stamp-version.
4883 (stamp-version): New rule, from version.c rule.
4884
4885 2018-07-09 Tom Tromey <tom@tromey.com>
4886
4887 * Makefile.in (init.c): Depend on stamp-init.
4888 (stamp-init): New rule, from init.c rule.
4889 (clean mostlyclean): Remove stamp-init.
4890
4891 2018-07-09 Tom Tromey <tom@tromey.com>
4892
4893 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4894 SUBDIR_GCC_COMPILE_SRCS.
4895
4896 2018-07-09 Tom Tromey <tom@tromey.com>
4897
4898 * Makefile.in (init.c): Remove some unused sed rules.
4899
4900 2018-07-09 Tom Tromey <tom@tromey.com>
4901
4902 * Makefile.in (TSOBS): Remove.
4903 (INIT_FILES): Update.
4904 (LIBGDB_OBS): Update.
4905 (COMMON_SFILES): Add inflow.c.
4906 (SFILES): Remove inflow.c.
4907
4908 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4909
4910 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4911
4912 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4915 get_saveloc_name, is_signal_frame_name, step_name,
4916 init_remote_name, create_addr_space_name,
4917 destroy_addr_space_name, search_unwind_table_name,
4918 find_dyn_list_name): Constify.
4919
4920 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4921
4922 * darwin-nat.c (darwin_pthread_kill): New function.
4923 (darwin_resume_thread): Use darwin_pthread_kill.
4924
4925 2018-07-05 Tom de Vries <tdevries@suse.de>
4926
4927 * macroexp.c (macro_buffer) <operator=>: New member function.
4928
4929 2018-07-04 Tom Tromey <tom@tromey.com>
4930
4931 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4932
4933 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4934
4935 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4936 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4937 * maint.c: Likewise.
4938 * top.c: Likewise.
4939
4940 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4941
4942 * NEWS: Create a new section for the next release branch.
4943 Rename the section of the current branch, now that it has
4944 been cut.
4945
4946 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4947
4948 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4949 * version.in: Bump version to 8.2.50.DATE-git.
4950
4951 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4952 Pedro Alves <palves@redhat.com>
4953
4954 * linux-nat.c (linux_init_ptrace): Rename to ...
4955 (linux_init_ptrace_procfs): ... this. Call
4956 linux_proc_init_warnings.
4957 (linux_nat_target::post_attach)
4958 (linux_nat_target::post_startup_inferior): Adjust.
4959 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4960 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4961
4962 2018-07-04 Tom de Vries <tdevries@suse.de>
4963
4964 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4965 check ...
4966 (read_comp_unit_head): ... here.
4967
4968 2018-07-03 Tom Tromey <tom@tromey.com>
4969
4970 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4971 (stop_tracing, tstatus_command)
4972 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4973 (print_one_static_tracepoint_marker): Update.
4974 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4975 std::vector.
4976 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4977 VEC.
4978 (all_tracepoints, static_tracepoints_here): Return std::vector.
4979
4980 2018-07-03 Tom Tromey <tom@tromey.com>
4981
4982 * common/ptid.c (ptid_equal): Remove.
4983 * common/ptid.h (ptid_equal): Don't declare.
4984 * ada-tasks.c: Update.
4985 * breakpoint.c: Update.
4986 * common/agent.c: Update.
4987 * corelow.c: Update.
4988 * darwin-nat-info.c: Update.
4989 * darwin-nat.c: Update.
4990 * dcache.c: Update.
4991 * dtrace-probe.c: Update.
4992 * dummy-frame.c: Update.
4993 * fbsd-nat.c: Update.
4994 * frame.c: Update.
4995 * gdbthread.h: Update.
4996 * gnu-nat.c: Update.
4997 * go32-nat.c: Update.
4998 * inf-loop.c: Update.
4999 * inf-ptrace.c: Update.
5000 * infcall.c: Update.
5001 * infcmd.c: Update.
5002 * inflow.c: Update.
5003 * infrun.c: Update.
5004 * linux-fork.c: Update.
5005 * linux-nat.c: Update.
5006 * linux-thread-db.c: Update.
5007 * mi/mi-cmd-var.c: Update.
5008 * mi/mi-interp.c: Update.
5009 * mi/mi-main.c: Update.
5010 * nto-procfs.c: Update.
5011 * ppc-linux-tdep.c: Update.
5012 * procfs.c: Update.
5013 * python/py-inferior.c: Update.
5014 * python/py-record-btrace.c: Update.
5015 * python/py-record.c: Update.
5016 * ravenscar-thread.c: Update.
5017 * regcache.c: Update.
5018 * remote-sim.c: Update.
5019 * remote.c: Update.
5020 * sol-thread.c: Update.
5021 * solib.c: Update.
5022 * target.c: Update.
5023 * tui/tui-stack.c: Update.
5024 * varobj.c: Update.
5025 * windows-nat.c: Update.
5026 * windows-tdep.c: Update.
5027
5028 2018-07-03 Tom Tromey <tom@tromey.com>
5029
5030 * common/ptid.c (ptid_match): Remove.
5031 * common/ptid.h (ptid_match): Don't declare.
5032 * fbsd-nat.c: Update.
5033 * infcmd.c: Update.
5034 * infrun.c: Update.
5035 * linux-nat.c: Update.
5036 * record-btrace.c: Update.
5037 * regcache.c: Update.
5038 * remote.c: Update.
5039
5040 2018-07-03 Tom Tromey <tom@tromey.com>
5041
5042 * common/ptid.c (ptid_tid_p): Remove.
5043 * common/ptid.h (ptid_tid_p): Don't declare.
5044 * sol-thread.c: Update.
5045
5046 2018-07-03 Tom Tromey <tom@tromey.com>
5047
5048 * common/ptid.c (ptid_lwp_p): Remove.
5049 * common/ptid.h (ptid_lwp_p): Don't declare.
5050 * fbsd-nat.c: Update.
5051 * linux-nat.c: Update.
5052 * nat/linux-procfs.c: Update.
5053 * nat/x86-linux-dregs.c: Update.
5054 * sol-thread.c: Update.
5055
5056 2018-07-03 Tom Tromey <tom@tromey.com>
5057
5058 * common/ptid.c (ptid_is_pid): Remove.
5059 * common/ptid.h (ptid_is_pid): Don't declare.
5060 * infrun.c: Update.
5061 * linux-nat.c: Update.
5062 * mi/mi-interp.c: Update.
5063 * remote.c: Update.
5064 * thread.c: Update.
5065
5066 2018-07-03 Tom Tromey <tom@tromey.com>
5067
5068 * common/ptid.c (ptid_get_tid): Remove.
5069 * common/ptid.h (ptid_get_tid): Don't declare.
5070 * ada-tasks.c: Update.
5071 * aix-thread.c: Update.
5072 * bsd-uthread.c: Update.
5073 * darwin-nat.c: Update.
5074 * fbsd-nat.c: Update.
5075 * i386-darwin-nat.c: Update.
5076 * infrun.c: Update.
5077 * linux-tdep.c: Update.
5078 * nto-procfs.c: Update.
5079 * ppc-ravenscar-thread.c: Update.
5080 * python/py-infthread.c: Update.
5081 * ravenscar-thread.c: Update.
5082 * sol-thread.c: Update.
5083 * sparc-ravenscar-thread.c: Update.
5084 * windows-nat.c: Update.
5085
5086 2018-07-03 Tom Tromey <tom@tromey.com>
5087
5088 * common/ptid.c (ptid_get_lwp): Remove.
5089 * common/ptid.h (ptid_get_lwp): Don't declare.
5090 * aarch64-linux-nat.c: Update.
5091 * ada-tasks.c: Update.
5092 * aix-thread.c: Update.
5093 * amd64-linux-nat.c: Update.
5094 * arm-linux-nat.c: Update.
5095 * corelow.c: Update.
5096 * fbsd-nat.c: Update.
5097 * fbsd-tdep.c: Update.
5098 * gnu-nat.c: Update.
5099 * i386-cygwin-tdep.c: Update.
5100 * i386-gnu-nat.c: Update.
5101 * i386-linux-nat.c: Update.
5102 * ia64-linux-nat.c: Update.
5103 * inf-ptrace.c: Update.
5104 * infrun.c: Update.
5105 * linux-fork.c: Update.
5106 * linux-nat.c: Update.
5107 * linux-tdep.c: Update.
5108 * linux-thread-db.c: Update.
5109 * mips-linux-nat.c: Update.
5110 * nat/aarch64-linux-hw-point.c: Update.
5111 * nat/aarch64-linux.c: Update.
5112 * nat/linux-btrace.c: Update.
5113 * nat/linux-osdata.c: Update.
5114 * nat/linux-procfs.c: Update.
5115 * nat/x86-linux-dregs.c: Update.
5116 * obsd-nat.c: Update.
5117 * ppc-fbsd-nat.c: Update.
5118 * ppc-linux-nat.c: Update.
5119 * procfs.c: Update.
5120 * python/py-infthread.c: Update.
5121 * ravenscar-thread.c: Update.
5122 * remote.c: Update.
5123 * s390-linux-nat.c: Update.
5124 * sol-thread.c: Update.
5125 * sol2-tdep.c: Update.
5126 * spu-linux-nat.c: Update.
5127 * x86-linux-nat.c: Update.
5128 * xtensa-linux-nat.c: Update.
5129
5130 2018-07-03 Tom Tromey <tom@tromey.com>
5131
5132 * common/ptid.c (ptid_get_pid): Remove.
5133 * common/ptid.h (ptid_get_pid): Don't declare.
5134 * aarch64-linux-nat.c: Update.
5135 * ada-lang.c: Update.
5136 * aix-thread.c: Update.
5137 * alpha-bsd-nat.c: Update.
5138 * amd64-fbsd-nat.c: Update.
5139 * amd64-linux-nat.c: Update.
5140 * arm-linux-nat.c: Update.
5141 * arm-nbsd-nat.c: Update.
5142 * auxv.c: Update.
5143 * break-catch-syscall.c: Update.
5144 * breakpoint.c: Update.
5145 * bsd-uthread.c: Update.
5146 * corelow.c: Update.
5147 * ctf.c: Update.
5148 * darwin-nat.c: Update.
5149 * fbsd-nat.c: Update.
5150 * fbsd-tdep.c: Update.
5151 * gcore.c: Update.
5152 * gnu-nat.c: Update.
5153 * hppa-nbsd-nat.c: Update.
5154 * hppa-obsd-nat.c: Update.
5155 * i386-fbsd-nat.c: Update.
5156 * ia64-linux-nat.c: Update.
5157 * inf-ptrace.c: Update.
5158 * infcmd.c: Update.
5159 * inferior.c: Update.
5160 * inferior.h: Update.
5161 * inflow.c: Update.
5162 * infrun.c: Update.
5163 * linux-fork.c: Update.
5164 * linux-nat.c: Update.
5165 * linux-tdep.c: Update.
5166 * linux-thread-db.c: Update.
5167 * m68k-bsd-nat.c: Update.
5168 * mi/mi-interp.c: Update.
5169 * mi/mi-main.c: Update.
5170 * mips-linux-nat.c: Update.
5171 * mips-nbsd-nat.c: Update.
5172 * mips64-obsd-nat.c: Update.
5173 * nat/aarch64-linux-hw-point.c: Update.
5174 * nat/aarch64-linux.c: Update.
5175 * nat/linux-btrace.c: Update.
5176 * nat/linux-osdata.c: Update.
5177 * nat/linux-procfs.c: Update.
5178 * nat/x86-linux-dregs.c: Update.
5179 * nto-procfs.c: Update.
5180 * obsd-nat.c: Update.
5181 * ppc-linux-nat.c: Update.
5182 * ppc-nbsd-nat.c: Update.
5183 * ppc-obsd-nat.c: Update.
5184 * proc-service.c: Update.
5185 * procfs.c: Update.
5186 * python/py-inferior.c: Update.
5187 * python/py-infthread.c: Update.
5188 * ravenscar-thread.c: Update.
5189 * record.c: Update.
5190 * remote-sim.c: Update.
5191 * remote.c: Update.
5192 * rs6000-nat.c: Update.
5193 * s390-linux-nat.c: Update.
5194 * sh-nbsd-nat.c: Update.
5195 * sol-thread.c: Update.
5196 * sparc-nat.c: Update.
5197 * sparc64-tdep.c: Update.
5198 * spu-linux-nat.c: Update.
5199 * spu-tdep.c: Update.
5200 * target-debug.h: Update.
5201 * target.c: Update.
5202 * thread.c: Update.
5203 * tid-parse.c: Update.
5204 * tracefile-tfile.c: Update.
5205 * vax-bsd-nat.c: Update.
5206 * windows-nat.c: Update.
5207 * x86-linux-nat.c: Update.
5208 * x86-nat.c: Update.
5209
5210 2018-07-03 Tom Tromey <tom@tromey.com>
5211
5212 * common/ptid.c (pid_to_ptid): Remove.
5213 * common/ptid.h (pid_to_ptid): Don't declare.
5214 * aix-thread.c: Update.
5215 * arm-linux-nat.c: Update.
5216 * common/ptid.c: Update.
5217 * common/ptid.h: Update.
5218 * corelow.c: Update.
5219 * ctf.c: Update.
5220 * darwin-nat.c: Update.
5221 * fbsd-nat.c: Update.
5222 * fork-child.c: Update.
5223 * gnu-nat.c: Update.
5224 * go32-nat.c: Update.
5225 * inf-ptrace.c: Update.
5226 * infcmd.c: Update.
5227 * inferior.c: Update.
5228 * infrun.c: Update.
5229 * linux-fork.c: Update.
5230 * linux-nat.c: Update.
5231 * nat/aarch64-linux-hw-point.c: Update.
5232 * nat/fork-inferior.c: Update.
5233 * nat/x86-linux-dregs.c: Update.
5234 * nto-procfs.c: Update.
5235 * obsd-nat.c: Update.
5236 * procfs.c: Update.
5237 * progspace.c: Update.
5238 * remote.c: Update.
5239 * rs6000-nat.c: Update.
5240 * s390-linux-nat.c: Update.
5241 * sol-thread.c: Update.
5242 * spu-linux-nat.c: Update.
5243 * target.c: Update.
5244 * top.c: Update.
5245 * tracefile-tfile.c: Update.
5246 * windows-nat.c: Update.
5247
5248 2018-07-03 Tom Tromey <tom@tromey.com>
5249
5250 * common/ptid.h (ptid_build): Don't declare.
5251 * common/ptid.c (ptid_build): Remove.
5252 * aix-thread.c: Update.
5253 * bsd-kvm.c: Update.
5254 * bsd-uthread.c: Update.
5255 * common/agent.c: Update.
5256 * common/ptid.c: Update.
5257 * common/ptid.h: Update.
5258 * corelow.c: Update.
5259 * darwin-nat.c: Update.
5260 * fbsd-nat.c: Update.
5261 * gnu-nat.c: Update.
5262 * linux-fork.c: Update.
5263 * linux-nat.c: Update.
5264 * linux-thread-db.c: Update.
5265 * nat/linux-osdata.c: Update.
5266 * nat/linux-procfs.c: Update.
5267 * nto-procfs.c: Update.
5268 * obsd-nat.c: Update.
5269 * proc-service.c: Update.
5270 * procfs.c: Update.
5271 * ravenscar-thread.c: Update.
5272 * remote-sim.c: Update.
5273 * remote.c: Update.
5274 * sol-thread.c: Update.
5275 * target.c: Update.
5276 * windows-nat.c: Update.
5277
5278 2018-07-03 Tom Tromey <tom@tromey.com>
5279
5280 * infrun.c (follow_exec): Use exit_inferior_silent.
5281 * inferior.c (exit_inferior_num_silent): Remove.
5282 * inferior.h (exit_inferior_num_silent): Don't declare.
5283
5284 2018-07-03 Tom Tromey <tom@tromey.com>
5285
5286 PR cli/23340:
5287 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5288 inferior_ptid on error.
5289
5290 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5291 Simon Marchi <simon.marchi@polymtl.ca>
5292
5293 PR tdep/8282
5294 * disasm.h (gdb_disassembler): Add
5295 `m_disassembler_options_holder'. member
5296 * disasm.c (get_all_disassembler_options): New function.
5297 (gdb_disassembler::gdb_disassembler): Use it.
5298 (gdb_buffered_insn_length_init_dis): Likewise.
5299 (gdb_buffered_insn_length): Adjust accordingly.
5300 (set_disassembler_options): Handle options with arguments.
5301 (show_disassembler_options_sfunc): Likewise. Add a leading new
5302 line if showing options with descriptions.
5303 (disassembler_options_completer): Adapt to using the
5304 `disasm_options_and_args_t' structure.
5305 * mips-tdep.c (mips_disassembler_options): New variable.
5306 (mips_disassembler_options_o32): Likewise.
5307 (mips_disassembler_options_n32): Likewise.
5308 (mips_disassembler_options_n64): Likewise.
5309 (gdb_print_insn_mips): Don't set `disassembler_options'.
5310 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5311 functions.
5312 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5313 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5314 `gdbarch_disassembler_options_implicit' and
5315 `gdbarch_valid_disassembler_options'.
5316 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5317 `disasm_options_and_args_t' structure.
5318 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5319 method.
5320 (valid_disassembler_options): Switch from `disasm_options_t' to
5321 the `disasm_options_and_args_t' structure.
5322 * NEWS: Document `set disassembler-options' support for the MIPS
5323 target.
5324 * gdbarch.h: Regenerate.
5325 * gdbarch.c: Regenerate.
5326
5327 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5328
5329 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5330
5331 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5332
5333 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5334 parameter in call to amd64_target_description.
5335 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5336 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5337 (amd64fbsd_init_abi): Likewise.
5338 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5339 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5340 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5341 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5342
5343 2018-06-29 Pedro Alves <palves@redhat.com>
5344
5345 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5346 "segments" parameter.
5347 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5348 (_initialize_amd64_tdep): Update call to
5349 amd64_create_target_description.
5350 (amd64_target_description): Add "segments" parameter. Adjust
5351 the implementation to use it.
5352 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5353 call to amd64_create_target_description.
5354 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5355 * gdb/arch/amd64.h (amd64_create_target_description): Add
5356 "segments" register.
5357 * gdb/arch/amd64.c (amd64_create_target_description): Add
5358 "segments" parameter. Call create_feature_i386_64bit_segments
5359 only if SEGMENTS is true.
5360 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5361 call to amd64_create_target_description.
5362
5363 2018-06-29 Pedro Alves <palves@redhat.com>
5364
5365 * thread.c (thread_target_id_str): New, factored out from ...
5366 (print_thread_info_1): ... here. Use it to compute the max
5367 "Target Id" column width.
5368
5369 2018-06-29 Pedro Alves <palves@redhat.com>
5370
5371 * remote.c (remote_target::extra_thread_info): Delete
5372 'display_buf' and 'n' locals. from the cache, regardless of
5373 packet mechanims is in use. Use cache for qThreadExtra and qP
5374 methods too.
5375
5376 2018-06-29 Pedro Alves <palves@redhat.com>
5377
5378 * blockframe.c (find_pc_sect_containing_function): New function.
5379 * breakpoint.c (print_breakpoint_location): Don't call
5380 find_pc_sect_function.
5381 * linespec.c (create_sals_line_offset): Record the location's
5382 symbol in the sal.
5383 * linespec.c (convert_address_location_to_sals): Fill in sal's
5384 symbol with find_pc_sect_containing_function.
5385 * symtab.c (find_function_start_sal): Rename to ...
5386 (find_function_start_sal_1): ... this.
5387 (find_function_start_sal): Reimplement as wrapper around
5388 find_function_start_sal_1, and use
5389 find_pc_sect_containing_function to fill in the sal's symbol.
5390 (find_function_start_sal(symbol*, bool)): Adjust.
5391 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5392 comments.
5393 (find_pc_sect_containing_function): Declare.
5394
5395 2018-06-29 Pedro Alves <palves@redhat.com>
5396
5397 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5398 true if the the location has no symbol.
5399
5400 2018-06-28 Tom Tromey <tom@tromey.com>
5401
5402 * NEWS: Mention --enable-codesign.
5403 * silent-rules.mk (ECHO_SIGN): New variable.
5404 * configure.ac: Add --enable-codesign.
5405 * configure: Rebuild.
5406 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5407 (gdb$(EXEEXT)): Optionally invoke codesign.
5408
5409 2018-06-28 Pedro Alves <palves@redhat.com>
5410
5411 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5412 comments.
5413 (switch_to_thread_no_regs): Adjust comment.
5414 * infcmd.c (stop_pc): Delete.
5415 (post_create_inferior, info_program_command): Replace references
5416 to stop_pc with references to thread_info->suspend.stop_pc.
5417 * inferior.h (stop_pc): Delete declaration.
5418 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5419 (handle_inferior_event_1, handle_signal_stop)
5420 (process_event_stop_test, keep_going_stepped_thread)
5421 (handle_step_into_function, handle_step_into_function_backward)
5422 (print_stop_location): Replace references to stop_pc with
5423 references to thread_info->suspend.stop_pc.
5424 (struct infcall_suspend_state) <stop_pc>: Delete field.
5425 (save_infcall_suspend_state, restore_infcall_suspend_state):
5426 Remove references to inf_stat->stop_pc.
5427 * linux-fork.c (fork_load_infrun_state): Likewise.
5428 * record-btrace.c (record_btrace_set_replay): Likewise.
5429 * record-full.c (record_full_goto_entry): Likewise.
5430 * remote.c (print_one_stopped_thread): Likewise.
5431 * target.c (target_resume): Extend comment.
5432 * thread.c (set_executing_thread): New.
5433 (set_executing): Use it.
5434 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5435 Remove references to stop_pc.
5436
5437 2018-06-28 Pedro Alves <palves@redhat.com>
5438
5439 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5440 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5441
5442 2018-06-28 Tom Tromey <tom@tromey.com>
5443
5444 * coffread.c (coff_symfile_finish): Update.
5445 * xcoffread.c (xcoff_symfile_finish): Update.
5446 * elfread.c (elf_symfile_finish): Update.
5447 * symfile.h (dwarf2_free_objfile): Don't declare.
5448 * dwarf2read.c (_initialize_dwarf2_read): Use
5449 register_objfile_data_with_cleanup.
5450 (dwarf2_free_objfile): Now static. Change signature.
5451
5452 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5453
5454 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5455 option "-o" to add-symbol-file-load to add an offset to each
5456 section's load address.
5457 * symfile.c (set_objfile_default_section_offset): New function.
5458
5459 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5460
5461 * symfile.c (add_symbol_file_command): Make sure that sections
5462 with the same name are sorted in the same order.
5463
5464 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5465
5466 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5467 require the second argument. If omitted, load sections at the
5468 addresses specified in the file.
5469
5470 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5471
5472 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5473 (_initialize_symfile): Add option "-o" to symbol-file to add an
5474 offset to each section of the symbol file.
5475
5476 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5477
5478 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5479
5480 2018-06-27 Tom Tromey <tom@tromey.com>
5481
5482 * stack.c (_initialize_stack): Update "func" help text.
5483
5484 2018-06-27 Tom Tromey <tom@tromey.com>
5485
5486 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5487 std::vector.
5488 (unwind_infopy_str, pyuw_create_unwind_info)
5489 (unwind_infopy_add_saved_register, pyuw_sniffer)
5490 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5491 Update.
5492 (struct saved_reg): Add constructor.
5493 <value>: Now a gdbpy_ref<>.
5494
5495 2018-06-27 Tom Tromey <tom@tromey.com>
5496
5497 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5498
5499 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5500
5501 * gdb-gdb.py.in: Format using autopep8.
5502
5503 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5504
5505 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5506 (type_lookup_function): Recognize CORE_ADDR values.
5507
5508 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5509
5510 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5511 print tag_name.
5512
5513 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5514
5515 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5516 <__lt__>: Add.
5517
5518 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5519
5520 * gdb-gdb.py: Move to...
5521 * gdb-gdb.py.in: ... here.
5522 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5523 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5524 dependencies.
5525 (distclean): Remove gdb-gdb.py when cleaning.
5526 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5527 * configure: Re-generate.
5528
5529 2018-06-27 Pedro Alves <palves@redhat.com>
5530
5531 * proc-service.c (get_ps_regcache): New.
5532 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5533 (ps_lsetfpregs): Use it.
5534
5535 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5536
5537 PR gdb/21695
5538 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5539 (dwarf_decode_lines_1): Adjust.
5540
5541 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5542
5543 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5544 override.
5545 <info_proc>: Likewise.
5546
5547 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5548
5549 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5550 to windows_fetch_one_register, and only handle the case of
5551 fetching one register. Move the code that reloads the context
5552 and iterates over all registers if R is negative to...
5553 (windows_nat_target::fetch_registers): ... here.
5554 (do_windows_store_inferior_registers): Rename to
5555 windows_store_one_register, and only handle the case of storing
5556 one register. Move the code that handles the case where r is
5557 negative to...
5558 (windows_nat_target::store_registers) ... here.
5559
5560 2018-06-26 Tom Tromey <tom@tromey.com>
5561
5562 PR rust/22574:
5563 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5564 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5565 Update.
5566 (rust_internal_print_type): Add podata parameter.
5567 (rust_print_type): Update.
5568
5569 2018-06-26 Tom Tromey <tom@tromey.com>
5570
5571 * typeprint.h (struct print_offset_data) <update, finish,
5572 maybe_print_hole>: New methods.
5573 <indentation>: New constant.
5574 * typeprint.c (print_offset_data::indentation): Define.
5575 (print_offset_data::maybe_print_hole, print_offset_data::update)
5576 (print_offset_data::finish): Move from c-typeprint.c and rename.
5577 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5578 (print_spaces_filtered_with_print_options): Update.
5579 (c_print_type_union_field_offset, maybe_print_hole)
5580 (c_print_type_struct_field_offset): Move to typeprint.c and
5581 rename.
5582 (c_type_print_base_struct_union): Update.
5583
5584 2018-06-25 Pedro Alves <palves@redhat.com>
5585
5586 * gdbthread.h (thread_info_ref, delete_thread)
5587 (delete_thread_silent, first_thread_of_inferior)
5588 (any_thread_of_inferior, switch_to_thread)
5589 (enable_thread_stack_temporaries)
5590 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5591 (get_last_thread_stack_temporary)
5592 (value_in_thread_stack_temporaries, can_access_registers_thread):
5593 Spell out "struct thread_info" instead of just "thread_info".
5594 * inferior.h (notice_new_inferior): Likewise.
5595
5596 2018-06-25 Pedro Alves <palves@redhat.com>
5597
5598 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5599 pass thread_info pointer to delete_thread.
5600 (windows_nat_target::detach): Pass inferior pointer to
5601 detach_inferior.
5602 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5603 delete_thread.
5604 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5605 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5606 and pass a thread_info pointer to delete_thread.
5607 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5608 pass thread_info pointer to delete_thread.
5609 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5610 delete_thread_silent call.
5611 * procfs.c (procfs_target::detach): Pass inferior pointer to
5612 detach_inferior.
5613 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5614 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5615 delete_thread_silent call.
5616 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5617 pass thread_info pointer to delete_thread.
5618 (windows_nat_target::detach): Pass inferior pointer to
5619 delete_inferior.
5620
5621 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5622
5623 * regcache.c (readable_regcache::read_part): Fix asserts.
5624 (reg_buffer::raw_collect_part): New function.
5625 (regcache::write_part): Fix asserts.
5626 (reg_buffer::raw_supply_part): New function.
5627 (regcache::transfer_regset_register): New helper function.
5628 (regcache::transfer_regset): Call new functions.
5629 (regcache_supply_regset): Use gdb_byte*.
5630 (regcache::supply_regset): Likewise.
5631 (regcache_collect_regset): Likewise.
5632 (regcache::collect_regset): Likewise.
5633 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5634 (reg_buffer::raw_supply_part): Likewise.
5635 (regcache::transfer_regset_register): Likewise.
5636 (regcache::transfer_regset): Use gdb_byte*.
5637
5638 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5639
5640 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5641
5642 2018-06-21 Pedro Alves <palves@redhat.com>
5643
5644 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5645 instead of a ptid_t. All callers adjusted.
5646 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5647 adjusted.
5648 (print_ada_task_info, display_current_task_id, task_command_1):
5649 Adjust.
5650 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5651 inferior_thread.
5652 (breakpoint_kind): Adjust.
5653 (remove_breakpoints_pid): Rename to ...
5654 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5655 pointer. All callers adjusted.
5656 (bpstat_clear_actions): Use inferior_thread.
5657 (get_bpstat_thread): New.
5658 (bpstat_do_actions): Use it.
5659 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5660 to take a thread_info pointer. All callers adjusted.
5661 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5662 (breakpoint_re_set_thread): Use inferior_thread.
5663 * breakpoint.h (struct inferior): Forward declare.
5664 (bpstat_stop_status): Update.
5665 (remove_breakpoints_pid): Delete.
5666 (remove_breakpoints_inf): New.
5667 * bsd-uthread.c (bsd_uthread_target::wait)
5668 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5669 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5670 (maint_btrace_packet_history_cmd)
5671 (maint_btrace_clear_packet_history_cmd): Adjust.
5672 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5673 inferior_thread.
5674 * cli/cli-interp.c: Include "inferior.h".
5675 * common/refcounted-object.h (struct
5676 refcounted_object_ref_policy): New.
5677 * compile/compile-object-load.c: Include gdbthread.h.
5678 (store_regs): Use inferior_thread.
5679 * corelow.c (core_target::close): Use current_inferior.
5680 (core_target_open): Adjust to use first_thread_of_inferior and use
5681 the current inferior.
5682 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5683 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5684 <thread>: ... this new field. All references adjusted.
5685 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5686 Take a thread_info pointer instead of a ptid_t.
5687 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5688 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5689 thread_info pointer instead of a ptid_t.
5690 * elfread.c: Include "inferior.h".
5691 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5692 Use inferior_thread.
5693 * eval.c (evaluate_subexp): Likewise.
5694 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5695 inferior_thread.
5696 * gdb_proc_service.h (struct thread_info): Forward declare.
5697 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5698 <thread>: ... this new field. All references adjusted.
5699 * gdbarch.h, gdbarch.c: Regenerate.
5700 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5701 'thread' parameter. All implementations and callers adjusted.
5702 * gdbthread.h (thread_info) <set_running>: New method.
5703 (delete_thread, delete_thread_silent): Take a thread_info pointer
5704 instead of a ptid.
5705 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5706 (first_thread_of_process): Delete, replaced by ...
5707 (first_thread_of_inferior): ... this new function. All callers
5708 adjusted.
5709 (any_live_thread_of_process): Delete, replaced by ...
5710 (any_live_thread_of_inferior): ... this new function. All callers
5711 adjusted.
5712 (switch_to_thread, switch_to_no_thread): Declare.
5713 (is_executing): Delete.
5714 (enable_thread_stack_temporaries): Update comment.
5715 <enable_thread_stack_temporaries>: Take a thread_info pointer
5716 instead of a ptid_t. Incref the thread.
5717 <~enable_thread_stack_temporaries>: Decref the thread.
5718 <m_ptid>: Delete
5719 <m_thr>: New.
5720 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5721 (get_last_thread_stack_temporary)
5722 (value_in_thread_stack_temporaries, can_access_registers_thread):
5723 Take a thread_info pointer instead of a ptid_t. All callers
5724 adjusted.
5725 * infcall.c (get_call_return_value): Use inferior_thread.
5726 (run_inferior_call): Work with thread pointers instead of ptid_t.
5727 (call_function_by_hand_dummy): Work with thread pointers instead
5728 of ptid_t. Use thread_info_ref.
5729 * infcmd.c (proceed_thread_callback): Access thread's state
5730 directly.
5731 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5732 access thread's state directly.
5733 (continue_command): Use inferior_thread.
5734 (info_program_command): Use find_thread_ptid and access thread
5735 state directly.
5736 (proceed_after_attach_callback): Use thread state directly.
5737 (notice_new_inferior): Take a thread_info pointer instead of a
5738 ptid_t. All callers adjusted.
5739 (exit_inferior): Take an inferior pointer instead of a pid. All
5740 callers adjusted.
5741 (exit_inferior_silent): New.
5742 (detach_inferior): Delete.
5743 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5744 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5745 (detach_inferior_command, kill_inferior_command): Use
5746 find_inferior_id instead of valid_gdb_inferior_id and
5747 gdb_inferior_id_to_pid.
5748 (inferior_command): Use inferior and thread pointers.
5749 * inferior.h (struct thread_info): Forward declare.
5750 (notice_new_inferior): Take a thread_info pointer instead of a
5751 ptid_t. All callers adjusted.
5752 (detach_inferior): Delete declaration.
5753 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5754 instead of a pid. All callers adjusted.
5755 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5756 (valid_gdb_inferior_id): Delete.
5757 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5758 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5759 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5760 ...
5761 <inf>: ... this new field.
5762 <step_ptid>: Delete, replaced by ...
5763 <step_thread>: ... this new field.
5764 (get_displaced_stepping_state): Take an inferior pointer instead
5765 of a pid. All callers adjusted.
5766 (displaced_step_in_progress_any_inferior): Adjust.
5767 (displaced_step_in_progress_thread): Take a thread pointer instead
5768 of a ptid_t. All callers adjusted.
5769 (displaced_step_in_progress, add_displaced_stepping_state): Take
5770 an inferior pointer instead of a pid. All callers adjusted.
5771 (get_displaced_step_closure_by_addr): Adjust.
5772 (remove_displaced_stepping_state): Take an inferior pointer
5773 instead of a pid. All callers adjusted.
5774 (displaced_step_prepare_throw, displaced_step_prepare)
5775 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5776 All callers adjusted.
5777 (start_step_over): Adjust.
5778 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5779 displaced step queue.
5780 (do_target_resume): Adjust.
5781 (fetch_inferior_event): Use inferior_thread.
5782 (context_switch, get_inferior_stop_soon): Take an
5783 execution_control_state pointer instead of a ptid_t. All callers
5784 adjusted.
5785 (switch_to_thread_cleanup): Delete.
5786 (stop_all_threads): Use scoped_restore_current_thread.
5787 * inline-frame.c: Include "gdbthread.h".
5788 (inline_state) <inline_state>: Take a thread pointer instead of a
5789 ptid_t. All callers adjusted.
5790 <ptid>: Delete, replaced by ...
5791 <thread>: ... this new field.
5792 (find_inline_frame_state): Take a thread pointer instead of a
5793 ptid_t. All callers adjusted.
5794 (skip_inline_frames, step_into_inline_frame)
5795 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5796 pointer instead of a ptid_t. All callers adjusted.
5797 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5798 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5799 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5800 pointers directly.
5801 * linux-nat.c (get_detach_signal): Likewise.
5802 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5803 (thread_db_notice_clone): Adjust.
5804 (thread_db_find_new_threads_silently)
5805 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5806 a thread pointer instead of a ptid_t. All callers adjusted.
5807 * mi/mi-cmd-var.c: Include "inferior.h".
5808 (mi_cmd_var_update_iter): Update to use thread pointers.
5809 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5810 inferior directly.
5811 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5812 out to ...
5813 (mi_output_running): ... this new function.
5814 (mi_on_resume_1): Adjust to use it.
5815 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5816 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5817 directly.
5818 (interrupt_thread_callback): : Adjust to use thread and inferior
5819 pointers.
5820 * proc-service.c: Include "gdbthread.h".
5821 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5822 * progspace-and-thread.c: Include "inferior.h".
5823 * progspace.c: Include "inferior.h".
5824 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5825 hold a reference to an inferior_object.
5826 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5827 inferior_thread.
5828 * python/py-inferior.c (struct inferior_object): Give the type a
5829 tag name instead of a typedef.
5830 (python_on_normal_stop): No need to check if the current thread is
5831 listed.
5832 (inferior_to_inferior_object): Change return type to
5833 inferior_object. All callers adjusted.
5834 (find_thread_object): Delete, bits factored out to ...
5835 (thread_to_thread_object): ... this new function.
5836 * python/py-infthread.c (create_thread_object): Use
5837 inferior_to_inferior_object.
5838 (thpy_is_stopped): Use thread pointer directly.
5839 (gdbpy_selected_thread): Use inferior_thread.
5840 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5841 field, replaced with ...
5842 <thread>: ... this new field. All users adjusted.
5843 (btpy_insn_or_gap_new): Drop const.
5844 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5845 callers adjusted.
5846 * python/py-record.c: Include "gdbthread.h".
5847 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5848 a ptid_t. All callers adjusted.
5849 (gdbpy_current_recording): Use inferior_thread.
5850 * python/py-record.h (recpy_record_object) <ptid>: Delete
5851 field, replaced with ...
5852 <thread>: ... this new field. All users adjusted.
5853 (recpy_element_object) <ptid>: Delete
5854 field, replaced with ...
5855 <thread>: ... this new field. All users adjusted.
5856 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5857 a ptid_t. All callers adjusted.
5858 * python/py-threadevent.c: Include "gdbthread.h".
5859 (get_event_thread): Use thread_to_thread_object.
5860 * python/python-internal.h (struct inferior_object): Forward
5861 declare.
5862 (find_thread_object, find_inferior_object): Delete declarations.
5863 (thread_to_thread_object, inferior_to_inferior_object): New
5864 declarations.
5865 * record-btrace.c: Include "inferior.h".
5866 (require_btrace_thread): Use inferior_thread.
5867 (record_btrace_frame_sniffer)
5868 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5869 (get_thread_current_frame): Use scoped_restore_current_thread and
5870 switch_to_thread.
5871 (get_thread_current_frame): Use thread pointer directly.
5872 (record_btrace_replay_at_breakpoint): Use thread's inferior
5873 pointer directly.
5874 * record-full.c: Include "inferior.h".
5875 * regcache.c: Include "gdbthread.h".
5876 (get_thread_arch_regcache): Use the inferior's address space
5877 directly.
5878 (get_thread_regcache, registers_changed_thread): New.
5879 * regcache.h (get_thread_regcache(thread_info *thread)): New
5880 overload.
5881 (registers_changed_thread): New.
5882 (remote_target) <remote_detach_1>: Swap order of parameters.
5883 (remote_add_thread): <remote_add_thread>: Return the new thread.
5884 (get_remote_thread_info(ptid_t)): New overload.
5885 (remote_target::remote_notice_new_inferior): Use thread pointers
5886 directly.
5887 (remote_target::process_initial_stop_replies): Use
5888 thread_info::set_running.
5889 (remote_target::remote_detach_1, remote_target::detach)
5890 (extended_remote_target::detach): Adjust.
5891 * stack.c (frame_show_address): Use inferior_thread.
5892 * target-debug.h (target_debug_print_thread_info_pp): New.
5893 * target-delegates.c: Regenerate.
5894 * target.c (default_thread_address_space): Delete.
5895 (memory_xfer_partial_1): Use current_inferior.
5896 (target_detach): Use current_inferior.
5897 (target_thread_address_space): Delete.
5898 (generic_mourn_inferior): Use current_inferior.
5899 * target.h (struct target_ops) <thread_address_space>: Delete.
5900 (target_thread_address_space): Delete.
5901 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5902 pointers directly.
5903 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5904 thread pointer instead of a ptid_t. Adjust all callers.
5905 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5906 (first_thread_of_process): Delete, replaced by ...
5907 (first_thread_of_inferior): ... this new function. All callers
5908 adjusted.
5909 (any_thread_of_process): Rename to ...
5910 (any_thread_of_inferior): ... this, and take an inferior pointer.
5911 (any_live_thread_of_process): Rename to ...
5912 (any_live_thread_of_inferior): ... this, and take an inferior
5913 pointer.
5914 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5915 (value_in_thread_stack_temporaries)
5916 (get_last_thread_stack_temporary): Take a thread pointer instead
5917 of a ptid_t. Adjust all callers.
5918 (thread_info::set_running): New.
5919 (validate_registers_access): Use inferior_thread.
5920 (can_access_registers_ptid): Rename to ...
5921 (can_access_registers_thread): ... this, and take a thread
5922 pointer.
5923 (print_thread_info_1): Adjust to compare thread pointers instead
5924 of ptids.
5925 (switch_to_no_thread, switch_to_thread): Make extern.
5926 (scoped_restore_current_thread::~scoped_restore_current_thread):
5927 Use m_thread pointer directly.
5928 (scoped_restore_current_thread::scoped_restore_current_thread):
5929 Use inferior_thread.
5930 (thread_command): Use thread pointer directly.
5931 (thread_num_make_value_helper): Use inferior_thread.
5932 * top.c (execute_command): Use inferior_thread.
5933 * tui/tui-interp.c: Include "inferior.h".
5934 * varobj.c (varobj_create): Use inferior_thread.
5935 (value_of_root_1): Use find_thread_global_id instead of
5936 global_thread_id_to_ptid.
5937
5938 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5939
5940 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5941 possible.
5942 (regcache::write_part): Likewise.
5943 (readable_regcache::cooked_read_part): Update comment.
5944 (readable_regcache::cooked_write_part): Likewise.
5945 * regcache.h: (readable_regcache::read_part): Likewise.
5946 (regcache::write_part): Likewise.
5947
5948 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5949 Dirk Schubert <dirk.schubert@arm.com>
5950
5951 * aarch64-linux-nat.c (post_attach): New.
5952 (aarch64_linux_nat_target::post_attach): Override post_attach to
5953 record the number of hardware debug registers.
5954
5955 2018-06-20 Tom Tromey <tom@tromey.com>
5956
5957 * python/py-param.c (add_setshow_generic): Make parameters const.
5958 (parmpy_init): Update.
5959
5960 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * regcache.h (regcache_cooked_read_ftype): Rename to...
5963 (register_read_ftype): ...this, change type to function_view.
5964 (class reg_buffer) <save>: Remove src parameter.
5965 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5966 parameter non-const in first overload. Remove src parameter in
5967 second overload.
5968 * regcache.c (do_cooked_read): Remove.
5969 (readonly_detached_regcache::readonly_detached_regcache): Make
5970 parameter non-const, adjust call to other constructor.
5971 (reg_buffer::save): Remove src parameter.
5972 * frame.c (do_frame_register_read): Remove.
5973 (frame_save_as_regcache): Use lambda function.
5974 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5975 parameter to ppu2spu_data *.
5976 (ppu2spu_sniffer): Use lambda function.
5977
5978 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * record-full.c (record_full_target::insert_breakpoint): Remove
5981 "struct" keyword, add const.
5982
5983 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5984
5985 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5986 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5987 * configure.ac: Remove AC_PREREQ, add missing quoting.
5988 * gnulib/configure.ac: Modernize usage of
5989 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5990 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5991 (AUTOMAKE_VERSION): Bump to 1.15.1.
5992 * configure: Re-generate.
5993 * config.in: Re-generate.
5994 * aclocal.m4: Re-generate.
5995 * gnulib/aclocal.m4: Re-generate.
5996 * gnulib/config.in: Re-generate.
5997 * gnulib/configure: Re-generate.
5998 * gnulib/import/Makefile.in: Re-generate.
5999
6000 2018-06-19 Pedro Alves <palves@redhat.com>
6001
6002 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6003 (lookup_minimal_symbol_by_pc_section): ... here with
6004 gdb_assert_not_reached added.
6005
6006 2018-06-19 Pedro Alves <palves@redhat.com>
6007
6008 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6009 parameter with a block parameter. Compare location's block symbol
6010 with the frame's block instead of addresses.
6011 (skip_inline_frames): Pass the current block instead of the
6012 frame's address. Break out as soon as we determine the frame
6013 should not be skipped.
6014
6015 2018-06-18 Tom Tromey <tom@tromey.com>
6016
6017 * solib-aix.c (solib_aix_get_section_offsets): Return
6018 unique_xmalloc_ptr.
6019 (solib_aix_solib_create_inferior_hook): Update.
6020
6021 2018-06-18 Tom Tromey <tom@tromey.com>
6022
6023 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6024
6025 2018-06-18 Tom Tromey <tom@tromey.com>
6026
6027 * solib-frv.c (frv_relocate_main_executable): Use
6028 unique_xmalloc_ptr.
6029 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6030 unique_xmalloc_ptr.
6031
6032 2018-06-18 Tom Tromey <tom@tromey.com>
6033
6034 * objfiles.h (inhibit_section_map_updates): Update.
6035 (resume_section_map_updates, resume_section_map_updates_cleanup):
6036 Remove.
6037 * solib-svr4.c (svr4_handle_solib_event): Update.
6038 * objfiles.c (inhibit_section_map_updates): Return
6039 scoped_restore_tmpl<int>.
6040 (resume_section_map_updates, resume_section_map_updates_cleanup):
6041 Remove.
6042
6043 2018-06-18 Tom Tromey <tom@tromey.com>
6044
6045 * valprint.h (read_string): Update.
6046 * valprint.c (read_string): Change type of "buffer".
6047 (val_print_string): Update.
6048 * python/py-value.c (valpy_string): Update.
6049 * language.h (struct language_defn) <la_get_string>: Change
6050 type of "buffer".
6051 (default_get_string, c_get_string): Update.
6052 * language.c (default_get_string): Change type of "buffer".
6053 * guile/scm-value.c (gdbscm_value_to_string): Update.
6054 * c-lang.c (c_get_string): Change type of "buffer".
6055
6056 2018-06-18 Tom Tromey <tom@tromey.com>
6057
6058 * ser-mingw.c (struct pipe_state_destroyer): New.
6059 (pipe_state_up): New typedef.
6060 (cleanup_pipe_state): Remove.
6061 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6062
6063 2018-06-18 Tom Tromey <tom@tromey.com>
6064
6065 * rust-lang.h (rust_yyerror): Don't declare.
6066 * rust-lang.c (rust_language_defn): Update.
6067 * rust-exp.y (yyerror): Now static.
6068 * parse.c (parse_exp_in_context_1): Update.
6069 * p-lang.h (p_yyerror): Don't declare.
6070 * p-lang.c (p_language_defn): Update.
6071 * p-exp.y (yyerror): Now static.
6072 * opencl-lang.c (opencl_language_defn): Update.
6073 * objc-lang.c (objc_language_defn): Update.
6074 * m2-lang.h (m2_yyerror): Don't declare.
6075 * m2-lang.c (m2_language_defn): Update.
6076 * m2-exp.y (yyerror): Now static.
6077 * language.h (struct language_defn) <la_error>: Remove.
6078 * language.c (unk_lang_error): Remove.
6079 (unknown_language_defn, auto_language_defn): Remove.
6080 * go-lang.h (go_yyerror): Don't declare.
6081 * go-lang.c (go_language_defn): Update.
6082 * go-exp.y (yyerror): Now static.
6083 * f-lang.h (f_yyerror): Don't declare.
6084 * f-lang.c (f_language_defn): Update.
6085 * f-exp.y (yyerror): Now static.
6086 * d-lang.h (d_yyerror): Don't declare.
6087 * d-lang.c (d_language_defn): Update.
6088 * d-exp.y (yyerror): Now static.
6089 * c-lang.h (c_yyerror): Don't declare.
6090 * c-lang.c (c_language_defn, cplus_language_defn)
6091 (asm_language_defn, minimal_language_defn): Update.
6092 * c-exp.y (yyerror): Now static.
6093 * ada-lang.h (ada_yyerror): Don't declare.
6094 * ada-lang.c (ada_language_defn): Update.
6095 * ada-exp.y (yyerror): Now static.
6096
6097 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6098
6099 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6100 (store_sveregs_to_thread): Likewise.
6101 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6102 (aarch64_linux_store_inferior_registers): Likewise.
6103 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6104 function.
6105 (aarch64_sve_regs_copy_to_regcache): Likewise.
6106 (aarch64_sve_regs_copy_from_regcache): Likewise.
6107 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6108 declaration.
6109 (aarch64_sve_regs_copy_to_regcache): Likewise.
6110 (aarch64_sve_regs_copy_from_regcache): Likewise.
6111 (sve_context): Structure from Linux headers.
6112 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6113 (SVE_SIG_ZREG_SIZE): Likewise.
6114 (SVE_SIG_PREG_SIZE): Likewise.
6115 (SVE_SIG_FFR_SIZE): Likewise.
6116 (SVE_SIG_REGS_OFFSET): Likewise.
6117 (SVE_SIG_ZREGS_OFFSET): Likewise.
6118 (SVE_SIG_ZREG_OFFSET): Likewise.
6119 (SVE_SIG_ZREGS_SIZE): Likewise.
6120 (SVE_SIG_PREGS_OFFSET): Likewise.
6121 (SVE_SIG_PREG_OFFSET): Likewise.
6122 (SVE_SIG_PREGS_SIZE): Likewise.
6123 (SVE_SIG_FFR_OFFSET): Likewise.
6124 (SVE_SIG_REGS_SIZE): Likewise.
6125 (SVE_SIG_CONTEXT_SIZE): Likewise.
6126 (SVE_PT_REGS_MASK): Likewise.
6127 (SVE_PT_REGS_FPSIMD): Likewise.
6128 (SVE_PT_REGS_SVE): Likewise.
6129 (SVE_PT_VL_INHERIT): Likewise.
6130 (SVE_PT_VL_ONEXEC): Likewise.
6131 (SVE_PT_REGS_OFFSET): Likewise.
6132 (SVE_PT_FPSIMD_OFFSET): Likewise.
6133 (SVE_PT_FPSIMD_SIZE): Likewise.
6134 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6135 (SVE_PT_SVE_PREG_SIZE): Likewise.
6136 (SVE_PT_SVE_FFR_SIZE): Likewise.
6137 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6138 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6139 (__SVE_SIG_TO_PT): Likewise.
6140 (SVE_PT_SVE_OFFSET): Likewise.
6141 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6142 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6143 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6144 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6145 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6146 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6147 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6148 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6149 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6150 (SVE_PT_SVE_SIZE): Likewise.
6151 (SVE_PT_SIZE): Likewise.
6152 (HAS_SVE_STATE): New define.
6153
6154 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6155
6156 * nat/aarch64-sve-linux-sigcontext.h: New file.
6157 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6158 new files.
6159 (SVE_VQ_MIN): Likewise.
6160 (SVE_VQ_MAX): Likewise.
6161 (SVE_VL_MIN): Likewise.
6162 (SVE_VL_MAX): Likewise.
6163 (SVE_NUM_ZREGS): Likewise.
6164 (SVE_NUM_PREGS): Likewise.
6165 (sve_vl_valid): Likewise.
6166 (struct user_sve_header): Likewise.
6167
6168 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6169 Richard Bunt <Richard.Bunt@arm.com>
6170
6171 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6172 was requested by GDB.
6173
6174 2018-06-15 Tom de Vries <tdevries@suse.de>
6175
6176 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6177
6178 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6179
6180 * gnulib/update-gnulib.sh: Print expected versions of
6181 autoconf/aclocal.
6182
6183 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6184
6185 * arch-utils.c (default_type_align): Use type_length_units.
6186 * gdbtypes.c (type_align): Use type_length_units.
6187
6188 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6189
6190 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6191 of 'define' command.
6192
6193 2018-06-14 Tom de Vries <tdevries@suse.de>
6194
6195 PR cli/22573
6196 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6197 get_no_prettyformat_print_options.
6198
6199 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6200
6201 * sparc-nat.h: Include target.h.
6202 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6203 <fetch_registers>: Remove this argument in function call.
6204 <store_registers>: Remove this argument in function call, remove
6205 extra semicolon.
6206 <low_forget_process>: Call sparc64_forget_process instead of
6207 sparc_forget_process.
6208
6209 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6210
6211 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6212 (procfs_target::make_corefile_notes): Adjust to new
6213 target_read_alloc return type.
6214
6215 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6216 Stephen Roberts <stephen.roberts@arm.com>
6217
6218 PR gdb/22882
6219 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6220 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6221 Move should_notify_stop local into more inner scope.
6222
6223 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6224 Stephen Roberts <stephen.roberts@arm.com>
6225
6226 PR gdb/22882
6227 * infrun.c (resume_1): Add call to mark_async_event_handler.
6228
6229 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * infrun.c (do_target_wait): Change old version of $pc printed.
6232
6233 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6234
6235 * dwarf2read.c (read_index_from_section): Rename to...
6236 (read_gdb_index_from_section): ... this, update all callers.
6237 (dwarf2_read_index): Rename to...
6238 (dwarf2_read_gdb_index): ... this, update all callers.
6239
6240 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6241
6242 * gdb/hppa-linux-nat.c
6243 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6244 hppa_linux_nat_target::fetch_registers.
6245
6246 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6247
6248 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6249 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6250 (AARCH64_DWARF_SVE_FFR): Likewise.
6251 (AARCH64_DWARF_SVE_P0): Likewise.
6252 (AARCH64_DWARF_SVE_Z0): Likewise.
6253
6254 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6255
6256 * common/common-regcache.h (raw_compare): New function.
6257 * regcache.c (regcache::raw_compare): Likewise.
6258 * regcache.h (regcache::raw_compare): New declaration.
6259
6260 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6261
6262 * common/common-regcache.h (reg_buffer_common): New structure.
6263 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6264 (reg_buffer::raw_supply): Likewise.
6265 (reg_buffer::raw_supply_integer): Likewise.
6266 (reg_buffer::raw_supply_zeroed): Likewise.
6267 (reg_buffer::raw_collect): Likewise.
6268 (reg_buffer::raw_collect_integer): Likewise.
6269 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6270 (reg_buffer::raw_supply): Likewise.
6271 (reg_buffer::raw_supply_integer): Likewise.
6272 (reg_buffer::raw_supply_zeroed): Likewise.
6273 (reg_buffer::raw_collect): Likewise.
6274 (reg_buffer::raw_collect_integer): Likewise.
6275
6276 2018-06-10 Tom Tromey <tom@tromey.com>
6277
6278 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6279 (class remote_state) <stop_reply_queue>: Now std::vector.
6280 (remote_state::~remote_state)
6281 (remote_target::stop_reply_queue_length): Update.
6282 (struct queue_iter_param, remove_child_of_pending_fork)
6283 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6284 (check_pending_event_prevents_wildcard_vcont_callback)
6285 (remove_stop_reply_for_inferior)
6286 (remove_stop_reply_of_remote_state)
6287 (remote_notif_remove_once_on_match)
6288 (stop_reply_match_ptid_and_ws)
6289 (remote_kill_child_of_pending_fork): Remove.
6290 (remote_target::remove_new_fork_children)
6291 (remote_target::check_pending_events_prevent_wildcard_vcont)
6292 (remote_target::discard_pending_stop_replies)
6293 (remote_target::discard_pending_stop_replies_in_queue)
6294 (remote_target::remote_notif_remove_queued_reply)
6295 (remote_target::queued_stop_reply)
6296 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6297 (remote_target::wait, remote_target::kill_new_fork_children)
6298 (remote_target::async): Update.
6299
6300 2018-06-10 Tom Tromey <tom@tromey.com>
6301
6302 * record-full.c (record_full_arch_list_cleanups): Remove.
6303 (record_full_message): Use try/catch.
6304 (record_full_wait_cleanups): Remove.
6305 (record_full_wait_1): Use try/catch.
6306 (record_full_restore): Likewise.
6307
6308 2018-06-10 Tom Tromey <tom@tromey.com>
6309
6310 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6311 declare VEC. Add constructor.
6312 <in_target_beneath>: Now bool.
6313 (record_full_breakpoints): Now a std::vector, static.
6314 (record_full_sync_record_breakpoints)
6315 (record_full_init_record_breakpoints)
6316 (record_full_target::insert_breakpoint)
6317 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6318
6319 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6322 * serial.c (serial_interface_lookup): Remove struct keyword.
6323
6324 2018-06-10 Tom Tromey <tom@tromey.com>
6325
6326 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6327 method.
6328 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6329 a method.
6330 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6331 method.
6332 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6333 "beneath" as a method.
6334 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6335 Use "beneath" as a method.
6336
6337 2018-06-10 Tom Tromey <tom@tromey.com>
6338
6339 * tracefile.c (struct trace_file_writer_deleter): New.
6340 <operator()>: Rename from trace_file_writer_xfree.
6341 (trace_file_writer_up): New typedef.
6342 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6343
6344 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6345
6346 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6347 <m_registers, m_register_status>: Change type to
6348 std::unique_ptr.
6349 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6350 XCNEWVEC.
6351
6352 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6353
6354 * common/common-regcache.h (enum register_status): Add
6355 underlying type "signed char".
6356 * regcache.h (reg_buffer) <m_register_status>: Change type to
6357 register_status *.
6358 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6359 register_status instead of signed char.
6360 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6361 (reg_buffer::get_register_status): Remove cast.
6362 (readable_regcache::raw_read): Remove cast.
6363 (readable_regcache::cooked_read): Remove cast.
6364
6365 2018-06-09 Tom Tromey <tom@tromey.com>
6366
6367 * source.c (reverse_search_command, forward_search_command): Use
6368 scoped_fd.
6369
6370 2018-06-09 Tom Tromey <tom@tromey.com>
6371
6372 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6373 (serial_ops_list): Now static, std::vector.
6374 (serial_interface_lookup, serial_add_interface): Update.
6375
6376 2018-06-09 Tom Tromey <tom@tromey.com>
6377
6378 * dwarf2read.c (process_cu_includes): Update.
6379 (process_full_comp_unit): Update.
6380 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6381 std::vector.
6382
6383 2018-06-08 Paul Koning <paul_koning@dell.com>
6384
6385 PR gdb/23252
6386
6387 * python/python.c (do_start_initialization):
6388 Avoid call to internal Python API.
6389 (init__gdb_module): New function.
6390
6391 2018-06-08 Gary Benson <gbenson@redhat.com>
6392
6393 * linux-thread-db.c (valprint.h): New include.
6394 (struct check_thread_db_info): New structure.
6395 (check_thread_db_on_load, tdb_testinfo): New static globals.
6396 (check_thread_db, check_thread_db_callback): New functions.
6397 (try_thread_db_load_1): Run integrity checks if requested.
6398 (maintenance_check_libthread_db): New function.
6399 (_initialize_thread_db): Register "maint check libthread-db"
6400 and "maint set/show check-libthread-db".
6401 * NEWS: Mention the above new commands.
6402
6403 2018-06-08 Tom Tromey <tom@tromey.com>
6404
6405 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6406 now a method.
6407
6408 2018-06-08 Tom Tromey <tom@tromey.com>
6409
6410 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6411
6412 2018-06-08 Tom Tromey <tom@tromey.com>
6413
6414 * common/btrace-common.h (struct btrace_data): Add constructor,
6415 destructor, move assignment operator.
6416 <empty, clear, fini>: New methods.
6417 <format>: Initialize.
6418 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6419 (btrace_data_empty): Don't declare.
6420 * common/btrace-common.c (btrace_data_init): Remove.
6421 (btrace_data::fini): Rename from btrace_data_fini.
6422 (btrace_data::empty): Rename from btrace_data_empty.
6423 (btrace_data::clear): Rename from btrace_data_clear. Return
6424 bool.
6425 * btrace.h (make_cleanup_btrace_data): Don't declare.
6426 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6427 (parse_xml_btrace): Update.
6428 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6429 (maint_btrace_clear_packet_history_cmd): Update.
6430
6431 2018-06-07 Pedro Alves <palves@redhat.com>
6432
6433 * target.h (target_ops) <beneath>: Now a method. All references
6434 updated.
6435 (class target_stack): New.
6436 * target.c (g_target_stack): New.
6437 (g_current_top_target): Delete.
6438 (current_top_target): Get the top target out of g_target_stack.
6439 (target_stack::push, target_stack::unpush): New.
6440 (push_target, unpush_target): Reimplement.
6441 (target_is_pushed): Reimplement in terms of g_target_stack.
6442 (target_ops::beneath, target_stack::find_beneath): New.
6443
6444 2018-06-07 Pedro Alves <palves@redhat.com>
6445
6446 * target.h (find_target_beneath): Delete declaration.
6447 * target.c (find_target_beneath): Delete definition.
6448 * aix-thread.c: All callers of find_target_beneath adjusted to
6449 call target_ops::beneath instead.
6450 * bsd-uthread.c: Likewise.
6451 * linux-thread-db.c: Likewise.
6452 * ravenscar-thread.c: Likewise.
6453 * sol-thread.c: Likewise.
6454 * spu-multiarch.c: Likewise.
6455
6456 2018-06-07 Pedro Alves <palves@redhat.com>
6457
6458 * target.h (target_ops) <beneath>: Now a method. All references
6459 updated.
6460 (target_ops) <m_beneath>: New.
6461 * target.c (target_ops::beneath): New.
6462 * corelow.c: Adjust all references to target_ops::beneath.
6463 * linux-thread-db.c: Likewise.
6464 * make-target-delegates: Likewise.
6465 * record-btrace.c: Likewise.
6466 * record-full.c: Likewise.
6467 * remote.c: Likewise.
6468 * target.c: Likewise.
6469 * target-delegates.c: Regenerate.
6470
6471 2018-06-07 Pedro Alves <palves@redhat.com>
6472
6473 * target.h (target_stack): Delete.
6474 (current_top_target): Declare function.
6475 * target.c (target_stack): Delete.
6476 (g_current_top_target): New.
6477 (current_top_target): New function.
6478 * auxv.c: Use current_top_target instead of target_stack
6479 throughout.
6480 * avr-tdep.c: Likewise.
6481 * breakpoint.c: Likewise.
6482 * corefile.c: Likewise.
6483 * elfread.c: Likewise.
6484 * eval.c: Likewise.
6485 * exceptions.c: Likewise.
6486 * frame.c: Likewise.
6487 * gdbarch-selftests.c: Likewise.
6488 * gnu-v3-abi.c: Likewise.
6489 * ia64-tdep.c: Likewise.
6490 * ia64-vms-tdep.c: Likewise.
6491 * infcall.c: Likewise.
6492 * infcmd.c: Likewise.
6493 * infrun.c: Likewise.
6494 * linespec.c: Likewise.
6495 * linux-tdep.c: Likewise.
6496 * minsyms.c: Likewise.
6497 * ppc-linux-nat.c: Likewise.
6498 * ppc-linux-tdep.c: Likewise.
6499 * procfs.c: Likewise.
6500 * regcache.c: Likewise.
6501 * remote.c: Likewise.
6502 * rs6000-tdep.c: Likewise.
6503 * s390-linux-nat.c: Likewise.
6504 * s390-tdep.c: Likewise.
6505 * solib-aix.c: Likewise.
6506 * solib-darwin.c: Likewise.
6507 * solib-dsbt.c: Likewise.
6508 * solib-spu.c: Likewise.
6509 * solib-svr4.c: Likewise.
6510 * solib-target.c: Likewise.
6511 * sparc-tdep.c: Likewise.
6512 * sparc64-tdep.c: Likewise.
6513 * spu-tdep.c: Likewise.
6514 * symfile.c: Likewise.
6515 * symtab.c: Likewise.
6516 * target-descriptions.c: Likewise.
6517 * target-memory.c: Likewise.
6518 * target.c: Likewise.
6519 * target.h: Likewise.
6520 * tracefile-tfile.c: Likewise.
6521 * tracepoint.c: Likewise.
6522 * valops.c: Likewise.
6523 * valprint.c: Likewise.
6524 * value.c: Likewise.
6525 * windows-tdep.c: Likewise.
6526 * mi/mi-main.c: Likewise.
6527
6528 2018-06-07 Tom Tromey <tom@tromey.com>
6529
6530 * valprint.h (build_address_symbolic): Declare.
6531 * printcmd.c (print_address_symbolic): Update.
6532 (build_address_symbolic): Change "name" and "filename" to
6533 std::string.
6534 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6535 Update.
6536 * defs.h (build_address_symbolic): Remove declaration.
6537
6538 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6539
6540 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6541 (aarch64_vnv_type): Add function.
6542 (aarch64_pseudo_register_name): Add V regs for SVE.
6543 (aarch64_pseudo_register_type): Likewise.
6544 (aarch64_pseudo_register_reggroup_p): Likewise.
6545 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6546 (aarch64_pseudo_read_value): Add V regs for SVE.
6547 (aarch64_pseudo_write_2): Use V0 offset for SVE
6548 (aarch64_pseudo_write): Add V regs for SVE.
6549 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6550
6551 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6552
6553 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6554 (sve_vl_from_vq): Likewise.
6555
6556 2018-06-05 Tom Tromey <tom@tromey.com>
6557
6558 * cli/cli-cmds.c (show_version): Update.
6559 * top.c (print_gdb_version): Add "interactive" parameter.
6560 Update.
6561 * main.c (captured_main_1): Update.
6562 * top.h (print_gdb_version): Add "interactive" parameter and a
6563 comment.
6564
6565 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6566
6567 * common/enum-flags.h: Add trailing semicolon to example in
6568 comment.
6569
6570 2018-06-05 Tom Tromey <tom@tromey.com>
6571
6572 PR cli/12326:
6573 * NEWS: Add entry about pager.
6574 * utils.c (pagination_disabled_for_command): New global.
6575 (prompt_for_continue): Allow "c" response to prompt.
6576 (reinitialize_more_filter): Clear
6577 pagination_disabled_for_command.
6578 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6579
6580 2018-06-04 Tom Tromey <tom@tromey.com>
6581
6582 * ada-lang.h (ada_lookup_symbol_list): Update.
6583 * ada-lang.c (resolve_subexp): Update.
6584 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6585 parameter.
6586 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6587 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6588 results parameter to std::vector.
6589 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6590 Update.
6591 * ada-exp.y (block_lookup): Update.
6592 (select_possible_type_sym): Change type of syms. Remove nsyms
6593 parameter.
6594 (write_var_or_type, write_name_assoc): Update.
6595
6596 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6597
6598 * windows-nat.c (windows_nat_target::xfer_partial): Return
6599 TARGET_XFER_E_IO if we need to delegate to the target beneath
6600 but BENEATH is NULL.
6601
6602 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6603
6604 * Makefile.in (config.status): Add configure.nat as a
6605 dependency.
6606
6607 2018-06-04 Tom Tromey <tom@tromey.com>
6608
6609 * cp-name-parser.y (cpname_state): Add method declarations.
6610 (HANDLE_QUAL): Update.
6611 (cpname_state::d_grab, cpname_state::fill_comp)
6612 (cpname_state::make_operator, cpname_state::make_dtor)
6613 (cpname_state::make_builtin_type, cpname_state::make_name)
6614 (cpname_state::d_qualify, cpname_state::d_int_type)
6615 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6616 (%union): Move earlier.
6617
6618 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6619
6620 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6621
6622 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6623
6624 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6625 (aarch64_pseudo_write_1): Likewise.
6626 (aarch64_pseudo_read_value): Use helper.
6627 (aarch64_pseudo_write): Likewise.
6628
6629 2018-06-04 Pedro Alves <palves@redhat.com>
6630
6631 * darwin-nat.c (darwin_ops): Delete.
6632 (darwin_attach_pid): Use get_native_target.
6633
6634 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6635
6636 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6637 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6638
6639 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6640
6641 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6642 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6643 (aarch64_gdbarch_init): Check for SVE.
6644 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6645
6646 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6647
6648 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6649 * aarch64-tdep.h (aarch64_read_description): Likewise.
6650 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6651 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6652 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6653 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6654 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6655
6656 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6657
6658 * value.c (value_fetch_lazy_bitfield): New.
6659 (value_fetch_lazy_memory): New.
6660 (value_fetch_lazy_register): New.
6661 (value_fetch_lazy): Factor out to smaller functions.
6662
6663 2018-06-01 Tom Tromey <tom@tromey.com>
6664
6665 * cp-name-parser.y (backslashable, represented): Now const.
6666
6667 2018-06-01 Tom Tromey <tom@tromey.com>
6668
6669 * cp-name-parser.y: Include parser-defs.h.
6670 (parser_fprintf): Remove declaration.
6671
6672 2018-06-01 Tom Tromey <tom@tromey.com>
6673
6674 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6675 %parse-param.
6676 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6677 (global_result): Remove globals.
6678 (struct cpname_state): New.
6679 (yyparse): Don't declare.
6680 (yylex, yyerror): Move declarations after %union.
6681 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6682 (make_name): Add state parameter.
6683 Update all callers.
6684 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6685 parameter.
6686 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6687 Update.
6688 (yylex): Add lvalp, state parameters.
6689 (yyerror): Add state parameter.
6690 (cp_demangled_name_to_comp): Update.
6691
6692 2018-06-01 Tom Tromey <tom@tromey.com>
6693
6694 * cp-name-parser.y (parser_fprintf): Declare.
6695 (GDB_YY_REMAP_PREFIX): Define.
6696 Include yy-remap.h. Don't redefine yy* identifiers.
6697
6698 2018-06-01 Tom Tromey <tom@tromey.com>
6699
6700 * python/py-type.c (typy_legacy_template_argument): Update.
6701 * cp-support.h (cp_demangled_name_to_comp): Update.
6702 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6703 parameter to be a "std::string *".
6704 (main): Update.
6705
6706 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6707
6708 * ada-lex.l: Include "diagnostics.h" instead of
6709 "common/diagnostics.h".
6710 * unittests/environ-selftests.c: Likewise.
6711 * common/diagnostics.h: Moved to ../include.
6712
6713 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6714
6715 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6716 to language_mode_manual while calling breakpoint_re_set_one.
6717
6718 2018-06-01 Tom Tromey <tom@tromey.com>
6719
6720 * valops.c (value_cast_structs, destructor_name_p): Update.
6721 * symtab.c (gdb_mangle_name): Update.
6722 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6723 Update.
6724 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6725 (pascal_object_print_value_fields, pascal_object_print_value):
6726 Update.
6727 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6728 * linespec.c (find_methods): Update.
6729 * gdbtypes.h (type_name_no_tag): Remove.
6730 (type_name_or_error): Rename from type_name_no_tag_or_error.
6731 * gdbtypes.c (type_name_no_tag): Remove.
6732 (type_name_or_error): Rename from type_name_no_tag_or_error.
6733 (lookup_struct_elt_type, check_typedef): Update.
6734 * expprint.c (print_subexp_standard): Update.
6735 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6736 * d-namespace.c (d_lookup_nested_symbol): Update.
6737 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6738 (cp_print_class_member): Update.
6739 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6740 * completer.c (add_struct_fields): Update.
6741 * c-typeprint.c (cp_type_print_derivation_info)
6742 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6743 Update.
6744 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6745 (ada_prefer_type, ada_is_exception_sym): Update.
6746
6747 2018-06-01 Tom Tromey <tom@tromey.com>
6748
6749 * valops.c (enum_constant_from_type, value_namespace_elt)
6750 (value_maybe_namespace_elt): Update.
6751 * valarith.c (find_size_for_pointer_math): Update.
6752 * target-descriptions.c (make_gdb_type): Update.
6753 * symmisc.c (print_symbol): Update.
6754 * stabsread.c (define_symbol, read_type)
6755 (complain_about_struct_wipeout, add_undefined_type)
6756 (cleanup_undefined_types_1): Update.
6757 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6758 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6759 (rust_internal_print_type, rust_composite_type)
6760 (rust_evaluate_funcall, rust_evaluate_subexp)
6761 (rust_inclusive_range_type_p): Update.
6762 * python/py-type.c (typy_get_tag): Update.
6763 * p-typeprint.c (pascal_type_print_base): Update.
6764 * mdebugread.c (parse_symbol, parse_type): Update.
6765 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6766 Update.
6767 * guile/scm-type.c (gdbscm_type_tag): Update.
6768 * go-lang.c (sixg_string_p): Update.
6769 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6770 Update.
6771 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6772 (TYPE_TAG_NAME): Remove.
6773 * gdbtypes.c (type_name_no_tag): Simplify.
6774 (check_typedef, check_types_equal, recursive_dump_type)
6775 (copy_type_recursive, arch_composite_type): Update.
6776 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6777 in summary mode when needed.
6778 * eval.c (evaluate_funcall): Update.
6779 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6780 (process_structure_scope, read_enumeration_type)
6781 (read_namespace_type, read_module_type, determine_prefix): Update.
6782 * cp-support.c (inspect_type): Update.
6783 * coffread.c (process_coff_symbol, decode_base_type): Update.
6784 * c-varobj.c (c_is_path_expr_parent): Update.
6785 * c-typeprint.c (c_type_print_base_struct_union): Update.
6786 (c_type_print_base_1): Update. Print struct/class/union/enum in
6787 summary when using C language.
6788 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6789 (gen_maybe_namespace_elt): Update.
6790 * ada-lang.c (ada_type_name): Simplify.
6791 (empty_record, ada_template_to_fixed_record_type_1)
6792 (template_to_static_fixed_type)
6793 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6794
6795 2018-06-01 Tom Tromey <tom@tromey.com>
6796
6797 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6798 c_print_type.
6799 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6800 (c_print_type): Update.
6801 (c_print_type): New overload.
6802 (c_type_print_varspec_prefix, c_type_print_args)
6803 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6804 (c_type_print_base_struct_union, c_type_print_base_1)
6805 (cp_type_print_method_args): Add "language" parameter.
6806 (c_type_print_base): Update.
6807 * c-lang.h (c_print_type): Add new overload.
6808
6809 2018-06-01 Tom Tromey <tom@tromey.com>
6810
6811 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6812 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6813
6814 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6815
6816 * aarch64-tdep.c (aarch64_sve_register_names): New const
6817 var.
6818 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6819 (AARCH64_SVE_Z_REGS_NUM): New define.
6820 (AARCH64_SVE_P_REGS_NUM): Likewise.
6821 (AARCH64_SVE_NUM_REGS): Likewise.
6822
6823 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6824
6825 * nat/linux-ptrace.h [__alpha__]
6826 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6827 definitions.
6828
6829 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6830
6831 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6832 the endianness selected.
6833 * NEWS: Document `set endian auto' mode operation update.
6834
6835 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6836
6837 * Makefile.in: Add new header.
6838 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6839 (sve_vl_from_vg): Likewise.
6840 (sve_vq_from_vl): Likewise.
6841 (sve_vl_from_vq): Likewise.
6842 (sve_vq_from_vg): Likewise.
6843 (sve_vg_from_vq): Likewise.
6844 * configure.nat: Add new c file.
6845 * nat/aarch64-sve-linux-ptrace.c: New file.
6846 * nat/aarch64-sve-linux-ptrace.h: New file.
6847
6848 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6849
6850 * aarch64-linux-nat.c (aarch64_linux_read_description):
6851 Add parmeter zero.
6852 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6853 Likewise.
6854 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6855 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6856 (aarch64_gdbarch_init): Add parmeter zero.
6857 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6858 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6859 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6860 parmeter.
6861 * doc/gdb.texinfo: Describe SVE feature
6862 * features/aarch64-sve.c: New file.
6863
6864 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6865
6866 PR gdb/23210
6867 * gdbarch.sh (significant_addr_bit): Default to zero when
6868 not set by target architecture.
6869 * gdbarch.c: Re-generated.
6870 * utils.c (address_significant): Update.
6871
6872 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6873
6874 * stack.c (func_command): Remove trailing newline in call to error.
6875
6876 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6877
6878 * regcache.h (regcache_raw_collect): Remove, update callers to
6879 use regcache::raw_collect.
6880 * regcache.c (regcache_raw_collect): Remove.
6881
6882 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6883
6884 * regcache.h (regcache_raw_supply): Remove, update callers to
6885 use detached_regcache::raw_supply.
6886 * regcache.c (regcache_raw_supply): Remove.
6887
6888 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6889
6890 * regcache.h (regcache_cooked_write_part): Remove, update
6891 callers to use regcache::cooked_write_part.
6892 * regcache.c (regcache_cooked_write_part): Remove.
6893
6894 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6895
6896 * regcache.h (regcache_cooked_read_part): Remove, update callers
6897 to use readable_regcache::cooked_read_part.
6898 * regcache.c (regcache_cooked_read_part): Remove.
6899
6900 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6901
6902 * regcache.h (regcache_cooked_read_value): Remove, update
6903 callers to use readable_regcache::cooked_read_value.
6904 * regcache.c (regcache_cooked_read_value): Remove.
6905
6906 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6907
6908 * regcache.h (regcache_cooked_write): Remove, update callers to
6909 use regcache::cooked_write.
6910 * regcache.c (regcache_cooked_write): Remove.
6911
6912 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6913
6914 * regcache.h (regcache_invalidate): Remove, update callers to
6915 use detached_regcache::invalidate instead.
6916 * regcache.c (regcache_invalidate): Remove.
6917
6918 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6919
6920 * regcache.h (regcache_raw_write_part): Remove, update callers
6921 to use regcache::raw_write_part instead.
6922 * regcache.c (regcache_raw_write_part): Remove.
6923
6924 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6925
6926 * regcache.h (regcache_raw_read_part): Remove, update callers to
6927 use readable_regcache::raw_read_part instead.
6928 * regcache.c (regcache_raw_read_part): Remove.
6929
6930 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6931
6932 * regcache.h (regcache_cooked_read): Remove, update callers to
6933 use readable_regcache::cooked_read instead.
6934 * regcache.c (regcache_cooked_read): Remove.
6935
6936 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6937
6938 * regcache.h (regcache_raw_write): Remove, update callers to use
6939 regcache::raw_write instead.
6940 * regcache.c (regcache_raw_write): Remove.
6941
6942 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * regcache.h (regcache_raw_read): Remove, update callers to use
6945 readable_regcache::raw_read instead.
6946 * regcache.c (regcache_raw_read): Remove.
6947
6948 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6949
6950 * regcache.h (regcache_raw_update): Remove, update callers to
6951 use readable_regcache::raw_update instead.
6952 * regcache.c (regcache_raw_update): Remove.
6953
6954 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6955
6956 * regcache.h (regcache_register_status): Remove, update callers
6957 to use reg_buffer::get_register_status directly instead.
6958 * regcache.c (regcache_register_status): Remove.
6959
6960 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6961
6962 * regcache.h (regcache_get_ptid): Remove, update all callers to
6963 call regcache::ptid instead.
6964 * regcache.c (regcache_get_ptid): Remove.
6965
6966 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6967
6968 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6969
6970 2018-05-30 Pedro Alves <palves@redhat.com>
6971
6972 * common/common-exceptions.h (exception_rethrow): Use
6973 ATTRIBUTE_NORETURN.
6974
6975 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6976
6977 * breakpoint.c (print_solib_event, check_status_catch_solib):
6978 Remove struct keyword in range-based for loops.
6979 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6980 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6981 Likewise.
6982 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6983 Likewise.
6984 * symfile.c (addr_info_make_relative): Likewise.
6985 * thread.c (value_in_thread_stack_temporaries): Likewise.
6986
6987 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6988
6989 PR gdb/16841
6990 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6991 aggregate type to get its real type before accessing it.
6992
6993 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6994
6995 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6996 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6997 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6998 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6999 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7000 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7001 * printcmd.c (info_address_command): Likewise.
7002
7003 2018-05-29 Tom Tromey <tom@tromey.com>
7004
7005 * windows-nat.c (handle_exception): Update fall-through comment.
7006
7007 2018-05-29 Tom Tromey <tom@tromey.com>
7008
7009 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7010 (struct program_space) <added_solibs>: Now a std::vector.
7011 * breakpoint.c (print_solib_event): Update.
7012 (check_status_catch_solib): Update.
7013 * progspace.c (clear_program_space_solib_cache): Update.
7014 * solib.c (update_solib_list): Update.
7015
7016 2018-05-29 Tom Tromey <tom@tromey.com>
7017
7018 * python/py-type.c (typy_richcompare): Update.
7019 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7020 * gdbtypes.h (types_deeply_equal): Return bool.
7021 (types_equal): Likewise.
7022 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7023 declare VEC.
7024 (check_types_equal): Change worklist to std::vector. Return
7025 bool.
7026 (struct type_equality_entry): Add constructor.
7027 (compare_maybe_null_strings): Return bool.
7028 (check_types_worklist): Return bool. Change worklist to
7029 std::vector.
7030 (types_deeply_equal): Use std::vector.
7031 (types_equal): Return bool.
7032 (compare_maybe_null_strings): Simplify.
7033
7034 2018-05-29 Tom Tromey <tom@tromey.com>
7035
7036 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7037
7038 2018-05-29 Tom Tromey <tom@tromey.com>
7039
7040 * objc-lang.h: Don't include cp-support.h.
7041 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7042 declare VEC.
7043
7044 2018-05-27 Tom Tromey <tom@tromey.com>
7045
7046 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7047
7048 2018-05-25 Tom Tromey <tom@tromey.com>
7049
7050 * value.c (value::location): Initialize.
7051
7052 2018-05-25 Tom Tromey <tom@tromey.com>
7053
7054 * dbxread.c (init_bincl_list): Remove.
7055 (bincl_list): Now a std::vector.
7056 (bincls_allocated, next_bincl): Remove.
7057 (free_bincl_list, do_free_bincl_list_cleanup)
7058 (make_cleanup_free_bincl_list): Remove.
7059 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7060 unique_xmalloc_ptr.
7061 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7062 (struct header_file_location): Add constructor.
7063 (add_bincl_to_list): Remove.
7064
7065 2018-05-25 Tom Tromey <tom@tromey.com>
7066
7067 * tui/tui.c (tui_enable): Update.
7068 * mi/mi-interp.c (mi_interp::init): Update.
7069 * interps.h (class interp) <name>: New method.
7070 <m_name>: Rename from name.
7071 (~scoped_restore_interp): Update.
7072 * interps.c (interp::interp): Update.
7073 (interp_add, interp_set, interp_lookup_existing)
7074 (current_interp_named_p): Update.
7075
7076 2018-05-25 Tom Tromey <tom@tromey.com>
7077
7078 * interps.c (interp_name): Remove.
7079 * mi/mi-interp.c (mi_interp::init): Update.
7080 * interps.h (interp_name): Remove.
7081 (~scoped_restore_interp): Update.
7082 * tui/tui.c (tui_enable): Update.
7083
7084 2018-05-25 Tom Tromey <tom@tromey.com>
7085
7086 * utils.c (fputs_maybe_filtered): Update.
7087 * linespec.c (decode_line_full): Update.
7088 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7089 (mi_print_breakpoint_for_event, mi_solib_loaded)
7090 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7091 (mi_user_selected_context_changed): Update.
7092 * mi/mi-main.c (mi_execute_command): Update.
7093 * cli/cli-script.c (execute_control_command): Update.
7094 * python/python.c (execute_gdb_command): Update.
7095 * solib.c (info_sharedlibrary_command): Update.
7096 * interps.c (interp_ui_out): Remove.
7097 * interps.h (interp_ui_out): Remove.
7098
7099 2018-05-25 Tom Tromey <tom@tromey.com>
7100
7101 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7102 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7103 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7104
7105 2018-05-25 Tom Tromey <tom@tromey.com>
7106
7107 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7108 * interps.c (interp_exec): Use scoped_restore.
7109
7110 2018-05-25 Tom Tromey <tom@tromey.com>
7111
7112 * remote.c (remote_target::remote_file_get): Use
7113 gdb::byte_vector.
7114 (remote_target::remote_file_put): Likewise.
7115
7116 2018-05-25 Tom Tromey <tom@tromey.com>
7117
7118 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7119 a std::string.
7120 (get_pe_section_index, add_pe_exported_sym): Update.
7121 (read_pe_exported_syms): Use gdb::def_vector.
7122
7123 2018-05-25 Tom Tromey <tom@tromey.com>
7124
7125 * frame.c (remove_prev_frame): Remove.
7126 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7127
7128 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7129
7130 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7131 Remove prototypes.
7132 * mips-linux-nat.c (supply_fpregset): Always call
7133 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7134 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7135 `mips_fill_fpregset'.
7136 * mips-linux-tdep.c (mips_supply_fpregset)
7137 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7138 (mips_fill_fpregset_wrapper): Remove functions.
7139 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7140 (mips_linux_fpregset): Remove variable.
7141 (mips_linux_iterate_over_regset_sections): Use
7142 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7143 (mips_linux_o32_sigframe_init): Remove comment.
7144
7145 2018-05-25 Pedro Alves <palves@redhat.com>
7146
7147 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7148 (struct readahead_cache, struct packet_reg, struct
7149 remote_arch_state, class remote_state): Move higher up in the
7150 file.
7151 (remote_target::m_remote_state): Now an object instead of a pointer.
7152 (remote_target::get_remote_state): Adjust.
7153
7154 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7155
7156 * stack.c (select_and_print_frame): Delete.
7157 (struct function_bounds): Move struct within function.
7158 (func_command): Most content moved into new function
7159 find_frame_for_function, use new function, print result, add
7160 function comment.
7161 (find_frame_for_function): New function, now returns a result.
7162
7163 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7164
7165 * stack.c (iterate_over_block_arg_vars): Fix comment.
7166 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7167
7168 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7169
7170 PR gdb/23203
7171 * frame.c
7172 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7173 Define.
7174 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7175 Define.
7176 * frame.h (class scoped_restore_selected_frame): New class.
7177 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7178 of any exception, use scoped_restore_selected_frame to restore the
7179 frame instead.
7180
7181 2018-05-24 Pedro Alves <palves@redhat.com>
7182
7183 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7184 override.
7185
7186 2018-05-23 Tom Tromey <tom@tromey.com>
7187
7188 * complaints.c (struct complaints): Remove.
7189 (symfile_complaint_book): Remove.
7190 (series): New global.
7191 (complaint_internal): Update.
7192 (clear_complaints): Update.
7193
7194 2018-05-23 Tom Tromey <tom@tromey.com>
7195
7196 * complaints.c (counters): New global.
7197 (struct complain): Remove.
7198 (struct complaints) <root>: Remove.
7199 (complaint_sentinel): Remove.
7200 (symfile_complaint_book): Update.
7201 (find_complaint) Remove.
7202 (complaint_internal, clear_complaints): Update.
7203
7204 2018-05-23 Tom Tromey <tom@tromey.com>
7205
7206 * complaints.c (struct complain) <file, line>: Remove.
7207 (find_complaint): Remove file, line parameters.
7208 (complaint_internal): Update.
7209
7210 2018-05-23 Tom Tromey <tom@tromey.com>
7211
7212 * complaints.c (vcomplaint): Remove.
7213 (complaint_internal) Merge in contents of vcomplaint.
7214
7215 2018-05-23 Tom Tromey <tom@tromey.com>
7216
7217 * complaints.c (struct complaints) <explanation>: Remove.
7218 (symfile_explanations): Remove.
7219 (symfile_complaint_book): Update.
7220 (vcomplaint): Update.
7221 (struct explanation): Remove.
7222
7223 2018-05-23 Tom Tromey <tom@tromey.com>
7224
7225 * complaints.c (symfile_complaints): Remove.
7226 (complaint_internal): Remove "complaints" parameter.
7227 (clear_complaints, vcomplaint): Remove "c" parameter.
7228 (get_complaints): Remove.
7229 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7230 (dwarf2_debug_line_missing_file_complaint)
7231 (dwarf2_debug_line_missing_end_sequence_complaint)
7232 (dwarf2_complex_location_expr_complaint)
7233 (dwarf2_const_value_length_mismatch_complaint)
7234 (dwarf2_section_buffer_overflow_complaint)
7235 (dwarf2_macro_malformed_definition_complaint)
7236 (dwarf2_invalid_attrib_class_complaint)
7237 (create_addrmap_from_index, dw2_symtab_iter_next)
7238 (dw2_expand_marked_cus)
7239 (dw2_debug_names_iterator::find_vec_in_debug_names)
7240 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7241 (create_debug_type_hash_table, init_cutu_and_read_dies)
7242 (partial_die_parent_scope, add_partial_enumeration)
7243 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7244 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7245 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7246 (create_cus_hash_table, create_dwp_hash_table)
7247 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7248 (dwarf2_rnglists_process, dwarf2_ranges_process)
7249 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7250 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7251 (handle_struct_member_die, process_structure_scope)
7252 (read_array_type, read_common_block, read_module_type)
7253 (read_tag_pointer_type, read_typedef, read_base_type)
7254 (read_subrange_type, load_partial_dies, partial_die_info::read)
7255 (partial_die_info::read, partial_die_info::read)
7256 (partial_die_info::read, read_checked_initial_length_and_offset)
7257 (dwarf2_string_attr, read_formatted_entries)
7258 (dwarf_decode_line_header)
7259 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7260 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7261 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7262 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7263 (get_signatured_type, get_DW_AT_signature_type)
7264 (decode_locdesc, file_file_name, consume_improper_spaces)
7265 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7266 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7267 (dwarf2_symbol_mark_computed, set_die_type)
7268 (read_attribute_value): Update.
7269 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7270 Update.
7271 * dbxread.c (unknown_symtype_complaint)
7272 (lbrac_mismatch_complaint, repeated_header_complaint)
7273 (set_namestring, function_outside_compilation_unit_complaint)
7274 (read_dbx_symtab, process_one_symbol): Update.
7275 * gdbtypes.c (stub_noname_complaint): Update.
7276 * windows-nat.c (handle_unload_dll): Update.
7277 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7278 (decode_base_type): Update.
7279 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7280 (eb_complaint, record_include_begin, record_include_end)
7281 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7282 (process_xcoff_symbol, read_symbol)
7283 (function_outside_compilation_unit_complaint)
7284 (scan_xcoff_symtab): Update.
7285 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7286 * buildsym.c (finish_block_internal, make_blockvector)
7287 (end_symtab_get_static_block, augment_type_symtab): Update.
7288 * dtrace-probe.c (dtrace_process_dof)
7289 (dtrace_static_probe_ops::get_probes): Update.
7290 * complaints.h (struct complaint): Don't declare.
7291 (symfile_complaints): Remove.
7292 (complaint_internal): Remove "complaints" parameter.
7293 (complaint): Likewise.
7294 (clear_complaints): Likewise.
7295 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7296 (reread_symbols): Update.
7297 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7298 (dwarf2_frame_cache, decode_frame_entry): Update.
7299 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7300 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7301 (info_selectors_command): Update.
7302 * macrotab.c (macro_include, check_for_redefinition)
7303 (macro_undef): Update.
7304 * objfiles.c (filter_overlapping_sections): Update.
7305 * stabsread.c (invalid_cpp_abbrev_complaint)
7306 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7307 (define_symbol, error_type, read_type, rs6000_builtin_type)
7308 (stabs_method_name_from_physname, read_member_functions)
7309 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7310 (attach_fields_to_type, complain_about_struct_wipeout)
7311 (read_range_type, read_args, common_block_start)
7312 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7313 Update.
7314 * mdebugread.c (index_complaint, unknown_ext_complaint)
7315 (basic_type_complaint, bad_tag_guess_complaint)
7316 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7317 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7318 (parse_procedure, parse_lines)
7319 (function_outside_compilation_unit_complaint)
7320 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7321 (bad_tag_guess_complaint, reg_value_complaint): Update.
7322 * cp-support.c (demangled_name_complaint): Update.
7323 * macroscope.c (sal_macro_scope): Update.
7324 * dwarf-index-write.c (class debug_names): Update.
7325
7326 2018-05-23 Tom Tromey <tom@tromey.com>
7327
7328 * complaints.c (clear_complaints): Remove "noisy" parameter.
7329 * complaints.h (clear_complaints): Update.
7330 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7331 (reread_symbols): Update.
7332
7333 2018-05-23 Tom Tromey <tom@tromey.com>
7334
7335 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7336 SUBSEQUENT_MESSAGE.
7337 (vcomplaint, clear_complaints): Update.
7338 (symfile_explanations): Remove some messages.
7339
7340 2018-05-23 Tom Tromey <tom@tromey.com>
7341
7342 * complaints.c (internal_complaint): Remove.
7343 * complaints.h (internal_complaint): Remove.
7344
7345 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7346
7347 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7348
7349 2018-05-22 Pedro Alves <palves@redhat.com>
7350
7351 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7352 (remote_fileio_badfd, remote_fileio_return_errno)
7353 (remote_fileio_return_success, remote_fileio_func_open)
7354 (remote_fileio_func_open, remote_fileio_func_close)
7355 (remote_fileio_func_read, remote_fileio_func_write)
7356 (remote_fileio_func_lseek, remote_fileio_func_rename)
7357 (remote_fileio_func_unlink, remote_fileio_func_stat)
7358 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7359 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7360 remote_target parameter.
7361 (remote_fio_func_map) <func>: Add remote_target parameter.
7362 (do_remote_fileio_request, remote_fileio_request):
7363 * remote-fileio.h (remote_fileio_request):
7364 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7365 remote_target parameter.
7366 (remote_notif_process, handle_notification): Adjust to pass down
7367 the remote.
7368 (remote_notif_state_allocate): Add remote_target parameter. Save
7369 it.
7370 * remote-notif.h (struct remote_target): Forward declare.
7371 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7372 remote_target parameter.
7373 (struct remote_notif_state) <remote>: New field.
7374 (remote_notif_ack, remote_notif_parse): Add remote_target
7375 parameter.
7376 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7377 remote_target parameter.
7378 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7379 (threads_listing_context, rmt_thread_action, protocol_feature)
7380 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7381 (packet_result, struct threads_listing_context, remote_state):
7382 Move definitions and declarations higher up.
7383 (remote_target) <~remote_target>: Declare.
7384 (remote_download_command_source, remote_file_put, remote_file_get)
7385 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7386 (remote_hostio_pread_vFile, remote_hostio_send_command)
7387 (remote_hostio_set_filesystem, remote_hostio_open)
7388 (remote_hostio_close, remote_hostio_unlink, remote_state)
7389 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7390 (get_memory_write_packet_size, get_memory_read_packet_size)
7391 (append_pending_thread_resumptions, remote_detach_1)
7392 (append_resumption, remote_resume_with_vcont)
7393 (add_current_inferior_and_thread, wait_ns, wait_as)
7394 (process_stop_reply, remote_notice_new_inferior)
7395 (process_initial_stop_replies, remote_add_thread)
7396 (btrace_sync_conf, remote_btrace_maybe_reopen)
7397 (remove_new_fork_children, kill_new_fork_children)
7398 (discard_pending_stop_replies, stop_reply_queue_length)
7399 (check_pending_events_prevent_wildcard_vcont)
7400 (discard_pending_stop_replies_in_queue, stop_reply)
7401 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7402 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7403 (remote_interrupt_as, remote_interrupt_ns)
7404 (remote_get_noisy_reply, remote_query_attached)
7405 (remote_add_inferior, remote_current_thread, get_current_thread)
7406 (set_thread, set_general_thread, set_continue_thread)
7407 (set_general_process, write_ptid)
7408 (remote_unpack_thread_info_response, remote_get_threadinfo)
7409 (parse_threadlist_response, remote_get_threadlist)
7410 (remote_threadlist_iterator, remote_get_threads_with_ql)
7411 (remote_get_threads_with_qxfer)
7412 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7413 (get_offsets, remote_check_symbols, remote_supported_packet)
7414 (remote_query_supported, remote_packet_size)
7415 (remote_serial_quit_handler, remote_detach_pid)
7416 (remote_vcont_probe, remote_resume_with_hc)
7417 (send_interrupt_sequence, interrupt_query)
7418 (remote_notif_get_pending_events, fetch_register_using_p)
7419 (send_g_packet, process_g_packet, fetch_registers_using_g)
7420 (store_register_using_P, store_registers_using_G)
7421 (set_remote_traceframe, check_binary_download)
7422 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7423 (remote_xfer_live_readonly_partial, remote_read_bytes)
7424 (remote_send_printf, remote_flash_write, readchar)
7425 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7426 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7427 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7428 (extended_remote_disable_randomization, extended_remote_run)
7429 (send_environment_packet, extended_remote_environment_support)
7430 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7431 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7432 (packet_command): Now methods of ...
7433 (remote_target): ... this class.
7434 (m_remote_state) <remote_target>: New field.
7435 (struct remote_state) <stop_reply_queue,
7436 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7437 fields.
7438 (remote_state::remote_state): Allocate stop_reply_queue.
7439 (remote_state): Delete global.
7440 (get_remote_state_raw): Delete.
7441 (remote_target::get_remote_state): Allocate m_remote_state on
7442 demand.
7443 (get_current_remote_target): New.
7444 (remote_ops, extended_remote_ops): Delete.
7445 (wait_forever_enabled_p, remote_async_inferior_event_token):
7446 Delete, moved to struct remote_state.
7447 (remote_target::close): Delete self. Destruction bits split to
7448 ...
7449 (remote_target::~remote_target): ... this.
7450 (show_memory_packet_size): Adjust to use
7451 get_current_remote_target.
7452 (struct protocol_feature) <func>: Add remote_target parameter.
7453 All callers adjusted.
7454 (curr_quit_handler_target): New.
7455 (remote_serial_quit_handler): Reimplement.
7456 (remote_target::open_1): Adjust to use get_current_remote_target.
7457 Heap-allocate remote_target/extended_remote_target instances.
7458 (vcont_builder::vcont_builder): Add remote_target parameter, and
7459 save it in m_remote. All callers adjusted.
7460 (vcont_builder::m_remote): New field.
7461 (vcont_builder::restart, vcont_builder::flush)
7462 (vcont_builder::push_action): Use it.
7463 (remote_target::commit_resume): Use it.
7464 (struct queue_iter_param) <remote>: New field.
7465 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7466 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7467 (check_pending_event_prevents_wildcard_vcont_callback)
7468 (remote_target::check_pending_events_prevent_wildcard_vcont)
7469 (remote_target::discard_pending_stop_replies)
7470 (remote_target::discard_pending_stop_replies_in_queue)
7471 (remote_target::remote_notif_remove_queued_reply): Fill in
7472 'remote' field.
7473 (remote_notif_get_pending_events): New.
7474 (remote_target::readchar, remote_target::remote_serial_write):
7475 Save/restore curr_quit_handler_target.
7476 (putpkt): New.
7477 (kill_new_fork_children): Fill in 'remote' field.
7478 (packet_command): Use get_current_remote_target, defer to
7479 remote_target method of same name.
7480 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7481 parameter, and save it in m_remote. All callers adjusted.
7482 (scoped_remote_fd::release): Use m_remote.
7483 (scoped_remote_fd::m_remote): New field.
7484 (remote_file_put, remote_file_get, remote_file_delete): Use
7485 get_current_remote_target, defer to remote_target method of same
7486 name.
7487 (remote_btrace_reset): Add remote_state paremeter. Update all
7488 callers.
7489 (remote_async_inferior_event_handler). Pass down 'data'.
7490 (remote_new_objfile): Use get_current_remote_target.
7491 (remote_target::vcont_r_supported): New.
7492 (set_range_stepping): Use get_current_remote_target and
7493 remote_target::vcont_r_supported.
7494 (_initialize_remote): Don't allocate 'remote_state' and
7495 'stop_reply_queue' globals.
7496 * remote.h (struct remote_target): Forward declare.
7497 (getpkt, putpkt, remote_notif_get_pending_events): Add
7498 'remote_target' parameter.
7499
7500 2018-05-22 Pedro Alves <palves@redhat.com>
7501
7502 * remote.c (vcont_builder): Now a class. Make all data members
7503 private.
7504 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7505 Declare methods.
7506 (vcont_builder_restart): Rename to ...
7507 (vcont_builder::restart): ... this.
7508 (vcont_builder_flush): Rename to ...
7509 (vcont_builder::flush): ... this.
7510 (vcont_builder_push_action): Rename to ...
7511 (vcont_builder::push_action): ... this.
7512 (remote_target::commit_resume): Adjust.
7513
7514 2018-05-22 Pedro Alves <palves@redhat.com>
7515
7516 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7517 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7518 (get_fixed_memory_packet_size): New.
7519 (get_memory_packet_size): Use it.
7520 (set_memory_packet_size): Don't override the config size with
7521 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7522 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7523 Don't refer to get_memory_packet_size if not connected to a remote
7524 target. Show "(default)" if configured size is 0.
7525
7526 2018-05-22 Pedro Alves <palves@redhat.com>
7527
7528 * remote.c (remote_target::mourn_inferior): Move
7529 discard_pending_stop_replies call here from ...
7530 (_initialize_remote): ... here.
7531
7532 2018-05-22 Pedro Alves <palves@redhat.com>
7533
7534 * remote.c (compare_section_command): Remove set_general_process
7535 call.
7536
7537 2018-05-22 Pedro Alves <palves@redhat.com>
7538
7539 * remote.c (struct packet_reg, struct remote_arch_state):
7540 Move higher up in the file.
7541 (remote_state) <m_arch_states>: Store remote_arch_state values
7542 instead of remote_arch_state pointers.
7543 (remote_state::get_remote_arch_state): Adjust.
7544
7545 2018-05-22 Pedro Alves <palves@redhat.com>
7546
7547 * remote.c: Include <unordered_map>.
7548 (remote_state): Now a class.
7549 (remote_state) <get_remote_arch_state>: Declare method.
7550 <get_remote_arch_state>: New field.
7551 (remote_arch_state) <remote_arch_state>: Declare ctor.
7552 <regs>: Now a unique_ptr.
7553 (remote_gdbarch_data_handle): Delete.
7554 (get_remote_arch_state): Delete.
7555 (remote_state::get_remote_arch_state): New.
7556 (get_remote_state): Adjust to call remote_state's
7557 get_remote_arch_state method.
7558 (init_remote_state): Delete, bits factored out to ...
7559 (remote_arch_state::remote_arch_state): ... this new method.
7560 (get_remote_packet_size, get_memory_packet_size)
7561 (process_g_packet, remote_target::fetch_registers)
7562 (remote_target::prepare_to_store, store_registers_using_G)
7563 (remote_target::store_registers, remote_target::get_trace_status):
7564 Adjust to call remote_state's method.
7565 (_initialize_remote): Remove reference to
7566 remote_gdbarch_data_handle.
7567
7568 2018-05-22 Pedro Alves <palves@redhat.com>
7569
7570 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7571 pread>: New method declarations.
7572 (remote_target::open_1): Adjust.
7573 (readahead_cache_invalidate): Rename to ...
7574 (readahead_cache::invalidate): ... this, and adjust to be a class
7575 method.
7576 (readahead_cache_invalidate_fd): Rename to ...
7577 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7578 class method.
7579 (remote_hostio_pwrite): Adjust.
7580 (remote_hostio_pread_from_cache): Rename to ...
7581 (readahead_cache::pread): ... this, and adjust to be a class
7582 method.
7583 (remote_hostio_close): Adjust.
7584
7585 2018-05-22 Pedro Alves <palves@redhat.com>
7586
7587 * remote.c (remote_hostio_close_cleanup): Delete.
7588 (class scoped_remote_fd): New.
7589 (remote_file_put, remote_file_get): Use it.
7590
7591 2018-05-22 Pedro Alves <palves@redhat.com>
7592
7593 (struct vCont_action_support): Use bool and initialize all fields.
7594 (struct readahead_cache): Initialize all fields.
7595 (remote_state): Use bool and initialize all fields.
7596 (remote_state::remote_state, remote_state::~remote_state): New.
7597 (new_remote_state): Delete.
7598 (_initialize_remote): Use new to allocate remote_state.
7599
7600 2018-05-22 Pedro Alves <palves@redhat.com>
7601 張俊芝 <zjz@zjz.name>
7602
7603 PR gdb/22973
7604 * c-exp.y: Include "c-support.h".
7605 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7606 of tolower. Use c_ident_is_alpha to scan names.
7607 * c-lang.c: Include "c-support.h".
7608 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7609 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7610 * c-support.h: New file, with bits factored out from ...
7611 * cp-name-parser.y: ... this file.
7612 Include "c-support.h".
7613 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7614 c-support.h and renamed.
7615 (symbol_end, yylex): Adjust.
7616
7617 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7618
7619 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7620 parameter type to CORE_ADDR.
7621 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7622 parameter type in declaration to CORE_ADDR.
7623 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7624 target_auxv_search to get AT_HWCAP and use the result to get the
7625 target description.
7626 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7627 to CORE_ADDR. Remove the cast of the return value to unsigned
7628 long. Fix error predicate of target_auxv_search.
7629 (ppc_linux_nat_target::read_description): Change the type of the
7630 hwcap variable to CORE_ADDR.
7631
7632 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7633
7634 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7635 if the size of fpscr is larger than 32 bits.
7636
7637 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7638
7639 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7640 (ppc32_linux_vsxregmap): New global.
7641 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7642 regcache_supply_regset, and regcache_collect_regset.
7643 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7644 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7645 (fetch_vsx_register, store_vsx_register): Remove.
7646 (fetch_vsx_registers): Add regno parameter. Get regset using
7647 ppc_linux_vsxregset. Use regset to supply registers.
7648 (store_vsx_registers): Add regno parameter. Get regset using
7649 ppc_linux_vsxregset. Use regset to collect registers.
7650 (fetch_register): Call fetch_vsx_registers instead of
7651 fetch_vsx_register.
7652 (store_register): Call store_vsx_registers instead of
7653 store_vsx_register.
7654 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7655 new regno parameter.
7656 (store_ppc_registers): Call store_vsx_registers with -1 for the
7657 new regno parameter.
7658 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7659 (ppc_collect_vsxregset): Remove.
7660
7661 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7662
7663 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7664 offset fields.
7665 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7666 for vector register offset fields.
7667 (ppc64_fbsd_reg_offsets): Likewise.
7668 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7669 to vector register offset fields.
7670 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7671 to vector register offset fields.
7672 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7673 vector register offset fields.
7674 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7675 initializers for vector register offset fields.
7676 (rs6000_aix64_reg_offsets): Likewise.
7677 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7678 (ppc_supply_vrregset): Remove.
7679 (ppc_collect_vrregset): Remove.
7680 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7681 (ppc_linux_vrregset) : New function.
7682 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7683 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7684 (ppc32_linux_vrregset): Remove.
7685 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7686 and use result instead of ppc32_linux_vrregset.
7687 (ppc32_linux_reg_offsets): Remove initializers for vector register
7688 offset fields.
7689 (ppc64_linux_reg_offsets): Likewise.
7690 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7691 * ppc-linux-nat.c: Include regset.h.
7692 (gdb_vrregset_t): Adjust comment to account for little-endian
7693 mode.
7694 (supply_vrregset, fill_vrregset): Remove.
7695 (fetch_altivec_register, store_altivec_register): Remove.
7696 (fetch_altivec_registers): Add regno parameter. Get regset using
7697 ppc_linux_vrregset. Use regset to supply registers.
7698 (store_altivec_registers): Add regno parameter. Get regset using
7699 ppc_linux_vrregset. Use regset to collect registers.
7700 (fetch_register): Call fetch_altivec_registers instead of
7701 fetch_altivec_register.
7702 (store_register): Call store_altivec_registers instead of
7703 store_altivec_register.
7704 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7705 the new regno parameter.
7706 (store_ppc_registers): Call store_altivec_registers with -1 for
7707 the new regno parameter.
7708
7709 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7710
7711 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7712 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7713 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7714 (gdb_vrregset_t): Change array type size to
7715 PPC_LINUX_SIZEOF_VRREGSET.
7716 (gdb_vsxregset_t): Change array type size to
7717 PPC_LINUX_SIZEOF_VSXREGSET.
7718 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7719 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7720 PPC_LINUX_SIZEOF_VSXREGSET.
7721
7722 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7723
7724 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7725 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7726 nat/ppc-linux.c.
7727 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7728 ppc_linux_target_wordsize with tid.
7729 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7730 wordsize with tid.
7731 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7732 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7733 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7734 tid parameter. Remove static specifier.
7735 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7736 (ppc_linux_target_wordsize): New declaration.
7737
7738 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7739
7740 * arch/ppc-linux-common.c: New file.
7741 * arch/ppc-linux-common.h: New file.
7742 * arch/ppc-linux-tdesc.h: New file.
7743 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7744 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7745 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7746 arch/ppc-linux-tdesc.h.
7747 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7748 arch/ppc-linux-tdesc.h.
7749 (ppc_linux_nat_target::read_description): Remove target
7750 description matching code. Fill a ppc_linux_features struct and
7751 call ppc_linux_match_description with it. Move comment about ISA
7752 2.05 to ppc-linux-common.c.
7753 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7754 arch/ppc-linux-tdesc.h.
7755 (ppc_linux_core_read_description): Remove target description
7756 matching code. Fill a ppc_linux_features struct and call
7757 ppc_linux_match_description with it.
7758 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7759 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7760 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7761 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7762 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7763 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7764 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7765 (tdesc_powerpc_e500l): Remove.
7766
7767 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7768
7769 * ada-lang.c (catch_assert_command): Pass empty string instead
7770 of NULL for excep_string argument.
7771
7772 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7773
7774 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7775 the width of the requested register exceeds the width of the
7776 `ptrace' data type.
7777
7778 2018-05-21 Tom Tromey <tom@tromey.com>
7779
7780 * printcmd.c (output_command): Remove.
7781 (output_command_const): Rename to output_command.
7782 * valprint.h (output_command): Rename from output_command_const.
7783 * tracepoint.c (trace_dump_actions): Call output_command.
7784
7785 2018-05-21 Tom Tromey <tom@tromey.com>
7786
7787 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7788 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7789 * ada-lang.h (create_ada_exception_catchpoint): Update.
7790 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7791 std::string.
7792 (create_excep_cond_exprs, ~ada_catchpoint)
7793 (should_stop_exception, print_one_exception)
7794 (print_mention_exception, print_recreate_exception): Update.
7795 (ada_get_next_arg): Remove.
7796 (catch_ada_exception_command_split): Use std::string. Change type
7797 of "excep_string", "cond_string".
7798 (catch_ada_exception_command): Update.
7799 (create_ada_exception_catchpoint): Change type of excep_string.
7800 (ada_exception_sal): Remove excep_string parameter.
7801 (~ada_catchpoint): Remove.
7802
7803 2018-05-21 Tom Tromey <tom@tromey.com>
7804
7805 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7806 cleanup.
7807
7808 2018-05-21 Tom Tromey <tom@tromey.com>
7809
7810 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7811 Return unique_xmalloc_ptr.
7812 (print_it_exception): Update.
7813
7814 2018-05-21 Tom Tromey <tom@tromey.com>
7815
7816 * tracepoint.c (trace_dump_actions): Use std::string.
7817
7818 2018-05-21 Tom Tromey <tom@tromey.com>
7819
7820 * symfile.c (reread_symbols): Use std::string for original_name.
7821
7822 2018-05-21 Tom Tromey <tom@tromey.com>
7823
7824 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7825 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7826 constructor.
7827
7828 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7829
7830 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7831 instance to...
7832 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7833 * objfiles.c (get_objfile_bfd_data): Allocate
7834 objfile_per_bfd_storage with obstack_new when allocating on
7835 obstack.
7836
7837 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7838
7839 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7840 OBSTACK_ZALLOC.
7841 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7842 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7843 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7844 (add_pending): Likewise.
7845 (parse_symbol): Likewise.
7846 (parse_partial_symbols): Likewise.
7847 (psymtab_to_symtab_1): Likewise.
7848 (new_psymtab): Likewise.
7849 (elfmdebug_build_psymtabs): Likewise.
7850 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7851 * objfiles.c (get_objfile_bfd_data): Likewise.
7852 (objfile_register_static_link): Likewise.
7853 * psymtab.c (allocate_psymtab): Likewise.
7854 * stabsread.c (read_member_functions): Likewise.
7855 * xcoffread.c (xcoff_end_psymtab): Likewise.
7856
7857 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7858
7859 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7860 compiler supports std::is_trivially_constructible.
7861 * common/poison.h: Include obstack.h.
7862 (IsMallocable): Define to is_trivially_constructible if the
7863 compiler supports it, define to true_type otherwise.
7864 (xobnew): New.
7865 (XOBNEW): Redefine.
7866 (xobnewvec): New.
7867 (XOBNEWVEC): Redefine.
7868 * gdb_obstack.h (obstack_zalloc): New.
7869 (OBSTACK_ZALLOC): Redefine.
7870 (obstack_calloc): New.
7871 (OBSTACK_CALLOC): Redefine.
7872 (obstack_new): New.
7873 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7874 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7875 gdbarch.c.
7876 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7877 obstack_calloc/obstack_zalloc.
7878 (gdbarch_obstack_zalloc): Remove.
7879 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7880
7881 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7882
7883 * stack.c (backtrace_command_1): Remove useless variable int i.
7884
7885 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7886
7887 * stack.c (print_frame_info): Fix comment.
7888
7889 2018-05-18 Tom Tromey <tom@tromey.com>
7890
7891 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7892 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7893 (~dwarf2_per_objfile): Update
7894 (dwarf2_get_dwz_file): Use new.
7895 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7896 unique_ptr.
7897
7898 2018-05-18 Tom Tromey <tom@tromey.com>
7899
7900 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7901 unique_ptr.
7902 * dwarf2read.c (struct dwp_file): Add constructor and
7903 initializers.
7904 (open_and_init_dwp_file): Return a unique_ptr.
7905 (dwarf2_per_objfile, create_dwp_hash_table)
7906 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7907 (lookup_dwo_unit_in_dwp): Update.
7908 (open_and_init_dwp_file, get_dwp_file): Update.
7909
7910 2018-05-18 Tom Tromey <tom@tromey.com>
7911
7912 * dwarf2read.c (dwarf2_per_objfile): Update.
7913 (struct mapped_index): Add initializers.
7914 (dwarf2_read_index): Use new.
7915 (dw2_symtab_iter_init): Update.
7916 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7917 unique_ptr.
7918
7919 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7920
7921 * dwarf2read.c (mapped_index) <total_size>: Remove.
7922
7923 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7924
7925 * unittests/format_pieces-selftests.c (test_format_specifier):
7926 Add ARI comments.
7927
7928 2018-05-18 Tom Tromey <tom@tromey.com>
7929
7930 * c-typeprint.c (maybe_print_hole): New function.
7931 (c_print_type_struct_field_offset): Update.
7932 (c_type_print_base_struct_union): Call maybe_print_hole.
7933
7934 2018-05-17 Keith Seitz <keiths@redhat.com>
7935
7936 * breakpoint.c (build_bpstat_chain): New function, moved from
7937 bpstat_stop_status.
7938 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7939 If no stop chain is passed, call build_bpstat_chain to build it.
7940 * breakpoint.h (build_bpstat_chain): Declare.
7941 (bpstat_stop_status): Move documentation here from breakpoint.c.
7942 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7943 build the stop chain and pass it to skip_inline_frames.
7944 Pass this stop chain to bpstat_stop_status.
7945 * inline-frame.c: Include breakpoint.h.
7946 (stopped_by_user_bp_inline_frame): New function.
7947 (skip_inline_frames): Add parameter `stop_chain'.
7948 Move documention to inline-frame.h.
7949 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7950 whether the frame should be elided.
7951 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7952 Add moved documentation and update for new parameter.
7953
7954 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7955
7956 PR cli/14975
7957 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7958 unittests/format_pieces-selftests.c.
7959 * common/format.h (format_piece) <operator==>: New.
7960 (format_pieces) <operator[]>: Remove.
7961 * common/format.c (format_pieces::format_pieces): Handle \e.
7962 * unittests/format_pieces-selftests.c: New.
7963
7964 2018-05-17 Tom Tromey <tom@tromey.com>
7965
7966 PR symtab/23010:
7967 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7968 (dw2_instantiate_symtab): Add skip_partial parameter.
7969 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7970 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7971 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7972 (dw2_expand_symtabs_matching_one)
7973 (dw2_find_pc_sect_compunit_symtab)
7974 (dw2_debug_names_lookup_symbol)
7975 (dw2_debug_names_expand_symtabs_for_function): Update.
7976 (init_cutu_and_read_dies): Add skip_partial parameter.
7977 (process_psymtab_comp_unit, build_type_psymtabs_1)
7978 (process_skeletonless_type_unit, load_partial_comp_unit)
7979 (psymtab_to_symtab_1): Update.
7980 (load_full_comp_unit): Add skip_partial parameter.
7981 (process_imported_unit_die, dwarf2_read_addr_index)
7982 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7983 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7984 (read_signatured_type): Update.
7985
7986 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7987
7988 * value.c (release_value): Remove unused variable.
7989 (record_latest_value): Likewise.
7990 (access_value_history): Likewise.
7991 (preserve_values): Likewise.
7992
7993 2018-05-17 Tom Tromey <tom@tromey.com>
7994
7995 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7996 Initialize.
7997
7998 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7999
8000 PR gdb/22286
8001 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8002 Also handle registers whose width is not a multiple of
8003 PTRACE_TYPE_RET.
8004 (linux_nat_trad_target::store_register): Likewise.
8005
8006 2018-05-16 Tom Tromey <tom@tromey.com>
8007
8008 * gdbcore.h (core_bfd): Redefine.
8009 * corelow.c (core_target::close): Update.
8010 (core_target_open): Update.
8011 * progspace.h (struct program_space) <cbfd>: Now a
8012 gdb_bfd_ref_ptr.
8013
8014 2018-05-16 Tom Tromey <tom@tromey.com>
8015
8016 PR cli/19551:
8017 * symfile-add-flags.h (enum symfile_add_flags)
8018 <SYMFILE_NOT_FILENAME>: New constant.
8019 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8020 objfile name from BFD.
8021 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8022 * minidebug.c (find_separate_debug_file_in_section): Put
8023 ".gnu_debugdata" into BFD's file name.
8024
8025 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8026
8027 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8028 Remove.
8029
8030 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8031
8032 PR binutils/21446
8033 * aarch64-tdep.c (aarch64_analyze_prologue,
8034 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8035 Indicate not interested in errors.
8036
8037 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8038
8039 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8040 Supply the MIPS_ZERO_REGNUM register.
8041
8042 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8043
8044 * mips-tdep.c (mask_address_var): Make variable static.
8045
8046 2018-05-14 Tom Tromey <tom@tromey.com>
8047
8048 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8049
8050 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8051
8052 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8053 FXSAVE_ADDR for the mxcsr register.
8054
8055 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8056
8057 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8058
8059 2018-05-11 Pedro Alves <palves@redhat.com>
8060
8061 * corelow.c (core_target) <core_target>: No longer inline.
8062 Initialize m_core_gdbarch, m_core_vec and build the section table
8063 here.
8064 <~core_target>: New.
8065 <core_gdbarch, get_core_register_section>: New methods.
8066 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8067 factored out from ...
8068 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8069 (core_ops): Delete.
8070 (sniff_core_bfd): Add gdbarch parameter.
8071 (core_close): Delete, merged into ...
8072 (core_target::close): ... here. Delete self.
8073 (core_close_cleanup): Delete.
8074 (core_target_open): Allocate a core_target on the heap. Use a
8075 unique_ptr instead of a cleanup. Bits moved into the core_target
8076 ctor. Adjust to use core_target methods instead of globals.
8077 (get_core_register_section): Rename to ...
8078 (core_target::get_core_register_section): ... this and adjust.
8079 (struct get_core_registers_cb_data): New.
8080 (get_core_registers_cb): Use it. Use bool.
8081 (core_target::fetch_registers, core_target::files_info)
8082 (core_target::xfer_partial, core_target::read_description)
8083 (core_target::pid_to, core_target::thread_name): Adjust to
8084 reference class fields instead of globals.
8085 * target.h (struct target_ops_deleter, target_ops_up): New.
8086
8087 2018-05-11 Pedro Alves <palves@redhat.com>
8088
8089 * corefile.c (core_file_command): Move to corelow.c.
8090 * corelow.c (the_core_target): Delete.
8091 (core_file_command): Moved from corefile.c. Check exec_bfd
8092 instead of the_core_target. Use target_detach instead of calling
8093 into the_core_target directly.
8094 (maybe_say_no_core_file_now): New.
8095 (core_target::detach): Use it.
8096 (_initialize_corelow): Remove references to the_core_target.
8097 * gdbcore.h (the_core_target): Delete.
8098
8099 2018-05-11 Tom Tromey <tromey@redhat.com>
8100 Pedro Alves <palves@redhat.com>
8101
8102 * corefile.c (core_bfd): Remove.
8103 * gdbcore.h (core_bfd): Now a macro.
8104 * progspace.h (struct program_space) <cbfd>: New field.
8105
8106 2018-05-11 Tom Tromey <tom@tromey.com>
8107
8108 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8109 gdb::def_vector.
8110
8111 2018-05-10 Tom Tromey <tom@tromey.com>
8112
8113 * configure: Rebuild.
8114 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8115
8116 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8117
8118 PR server/23158:
8119 * regformats/regdat.sh: Adjust script, following the addition
8120 of the new expedite_regs parameter to init_target_desc.
8121
8122 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8123
8124 PR gdb/23127
8125 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8126 set_gdbarch_significant_addr_bit.
8127 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8128 set_gdbarch_significant_addr_bit.
8129 * utils.c (address_significant): Update to sign extend addr.
8130
8131 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8132
8133 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8134 (xtensa_linux_init_abi): Limit tdep->num_regs by
8135 tdep->num_nopriv_regs.
8136 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8137 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8138 not initialized.
8139
8140 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8141
8142 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8143
8144 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8147 (I387_MXCSR_INIT_VAL): New constant.
8148 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8149 buffer if it was supplied by the inferior.
8150 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8151 (i387_xsave_get_clear_bv): New function.
8152 (i387_supply_xsave): Only read x87 control registers from the
8153 xsave buffer if the feature is enabled, and the state will have
8154 been written, otherwise, provide a suitable default.
8155 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8156 including x87 control registers. Update control registers if they
8157 have changed from the default value, and mark features as enabled
8158 as required.
8159 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8160
8161 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8162
8163 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8164
8165 2018-05-07 Tom Tromey <tom@tromey.com>
8166
8167 * configure: Rebuild.
8168 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8169
8170 2018-05-07 Tom Tromey <tom@tromey.com>
8171
8172 PR tdep/20362:
8173 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8174 bit. Use correct value for VDIV.
8175
8176 2018-05-04 Tom Tromey <tom@tromey.com>
8177
8178 * configure: Rebuild.
8179 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8180
8181 2018-05-04 Tom Tromey <tom@tromey.com>
8182
8183 * linux-record.c (record_linux_system_call) <case
8184 RECORD_SYS_RECVFROM>: Add "break".
8185
8186 2018-05-04 Tom Tromey <tom@tromey.com>
8187
8188 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8189 Add missing "break".
8190 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8191 Add missing "break".
8192
8193 2018-05-04 Tom Tromey <tom@tromey.com>
8194
8195 * rs6000-tdep.c (ppc_process_record_op4)
8196 (ppc_process_record_op63): Add fall-through comment.
8197
8198 2018-05-04 Tom Tromey <tom@tromey.com>
8199
8200 * i386-tdep.c (i386_process_record): Add fall-through comment.
8201
8202 2018-05-04 Tom Tromey <tom@tromey.com>
8203
8204 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8205 comment.
8206
8207 2018-05-04 Tom Tromey <tom@tromey.com>
8208
8209 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8210 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8211 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8212 comment.
8213 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8214 comment.
8215 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8216 comment.
8217
8218 2018-05-04 Tom Tromey <tom@tromey.com>
8219
8220 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8221
8222 2018-05-04 Tom Tromey <tom@tromey.com>
8223
8224 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8225 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8226 * symfile.c (section_is_mapped): Fix fall-through comment.
8227 * stabsread.c (define_symbol, read_member_functions): Fix
8228 fall-through comment.
8229 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8230 comment.
8231 * remote.c (remote_wait_as): Fix fall-through comment.
8232 * p-exp.y (yylex): Fix fall-through comment.
8233 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8234 comment.
8235 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8236 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8237 * jv-exp.y (yylex): Fix fall-through comment.
8238 * go-exp.y (lex_one_token): Fix fall-through comment.
8239 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8240 fall-through comment.
8241 * f-exp.y (yylex): Fix fall-through comment.
8242 * dwarf2read.c (process_die): Fix fall-through comments.
8243 * dbxread.c (process_one_symbol): Fix fall-through comment.
8244 * d-exp.y (lex_one_token): Fix fall-through comment.
8245 * cp-name-parser.y (yylex): Fix fall-through comment.
8246 * coffread.c (coff_symtab_read): Fix fall-through comment.
8247 * c-exp.y (lex_one_token): Fix fall-through comment.
8248 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8249 comment.
8250 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8251 comment.
8252
8253 2018-05-04 Tom Tromey <tom@tromey.com>
8254
8255 PR python/22730:
8256 * NEWS: Mention gdb.execute change.
8257 * gdbcmd.h (execute_control_command): Don't declare.
8258 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8259 execute_control_commands, execute_control_commands_to_string.
8260 * cli/cli-script.h (execute_control_commands)
8261 (execute_control_commands_to_string): Declare.
8262 (execute_control_command): Add from_tty parameter.
8263 * cli/cli-script.c (execute_control_commands)
8264 (execute_control_commands_to_string): New functions.
8265 (execute_user_command): Use execute_control_commands.
8266 (execute_control_command_1): Add "from_tty" parameter. Update.
8267 (execute_control_command): Likewise.
8268
8269 2018-05-04 Tom Tromey <tom@tromey.com>
8270
8271 PR python/22731:
8272 * NEWS: Mention that breakpoint commands are writable.
8273 * python/py-breakpoint.c (bppy_set_commands): New function.
8274 (breakpoint_object_getset) <"commands">: Use it.
8275
8276 2018-05-04 Tom Tromey <tom@tromey.com>
8277
8278 * tracepoint.c (actions_command): Update.
8279 * mi/mi-cmd-break.c (mi_command_line_array)
8280 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8281 (mi_read_next_line): Remove.
8282 (mi_cmd_break_commands): Update.
8283 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8284 function_view.
8285 * cli/cli-script.c (get_command_line): Update.
8286 (process_next_line): Use function_view. Constify.
8287 (recurse_read_control_structure, read_command_lines)
8288 (read_command_lines_1): Change argument types to function_view.
8289 (do_define_command, document_command): Update.
8290 * breakpoint.h (check_tracepoint_command): Don't declare.
8291 * breakpoint.c (check_tracepoint_command): Remove.
8292 (commands_command_1, create_tracepoint_from_upload): Update.
8293
8294 2018-05-04 Tom Tromey <tom@tromey.com>
8295
8296 PR gdb/11750:
8297 * cli/cli-script.h (enum command_control_type) <define_control>:
8298 New constant.
8299 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8300 (build_command_line, execute_control_command_1)
8301 (process_next_line): Likewise.
8302 (do_define_command): New function, extracted from define_command.
8303 (define_command): Use it.
8304
8305 2018-05-04 Tom Tromey <tom@tromey.com>
8306
8307 * tracepoint.c (actions_command): Update.
8308 * cli/cli-script.h (read_command_lines): Update.
8309 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8310 (MAX_TMPBUF): Remove define.
8311 (define_command): Use string_printf.
8312 (document_command): Likewise.
8313 * breakpoint.c (commands_command_1): Update.
8314
8315 2018-05-04 Tom Tromey <tom@tromey.com>
8316
8317 * top.c (execute_command): Update.
8318 * cli/cli-script.h (print_command_lines): Now varargs.
8319 * cli/cli-script.c (print_command_lines): Now varargs.
8320 (execute_control_command_1) <case while_control, case if_control>:
8321 Update.
8322
8323 2018-05-04 Tom Tromey <tom@tromey.com>
8324
8325 * tracepoint.c (all_tracepoint_actions): Rename from
8326 all_tracepoint_actions_and_cleanup. Change return type.
8327 (actions_command, encode_actions_1, encode_actions)
8328 (trace_dump_actions, tdump_command): Update.
8329 * remote.c (remote_download_command_source): Update.
8330 * python/python.c (gdbpy_eval_from_control_command)
8331 (python_command, python_interactive_command): Update.
8332 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8333 * guile/guile.c (guile_command)
8334 (gdbscm_eval_from_control_command, guile_command): Update.
8335 * compile/compile.c (compile_code_command)
8336 (compile_print_command, compile_to_object): Update.
8337 * cli/cli-script.h (struct command_lines_deleter): New.
8338 (counted_command_line): New typedef.
8339 (struct command_line): Add constructor, destructor.
8340 <body_list>: Remove.
8341 <body_list_0, body_list_1>: New members.
8342 (command_line_up): Remove typedef.
8343 (read_command_lines, read_command_lines_1, get_command_line):
8344 Update.
8345 (copy_command_lines): Don't declare.
8346 * cli/cli-script.c (build_command_line): Use "new".
8347 (get_command_line): Return counted_command_line.
8348 (print_command_lines, execute_user_command)
8349 (execute_control_command_1, while_command, if_command): Update.
8350 (realloc_body_list): Remove.
8351 (process_next_line, recurse_read_control_structure): Update.
8352 (read_command_lines, read_command_lines_1): Return counted_command_line.
8353 (free_command_lines): Use "delete".
8354 (copy_command_lines): Remove.
8355 (define_command, document_command, show_user_1): Update.
8356 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8357 a counted_command_line.
8358 * breakpoint.h (counted_command_line): Remove typedef.
8359 (breakpoint_set_commands): Update.
8360 * breakpoint.c (check_no_tracepoint_commands)
8361 (validate_commands_for_breakpoint): Update.
8362 (breakpoint_set_commands): Change commands to be a
8363 counted_command_line.
8364 (commands_command_1, update_dprintf_command_list)
8365 (create_tracepoint_from_upload): Update.
8366
8367 2018-05-04 Tom Tromey <tom@tromey.com>
8368
8369 * cli/cli-decode.h (cmd_list_element): New constructor.
8370 (~cmd_list_element): New destructor.
8371 (struct cmd_list_element): Add initializers.
8372 * cli/cli-decode.c (do_add_cmd): Use "new".
8373 (delete_cmd): Use "delete".
8374
8375 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8376 Pedro Alves <palves@redhat.com>
8377
8378 PR breakpoints/19806 and support for PR external/20207.
8379 * NEWS: Mention Aarch64 watchpoint improvements.
8380 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8381 watchpoints and PR external/20207 watchpoints.
8382 * nat/aarch64-linux-hw-point.c
8383 (kernel_supports_any_contiguous_range): New.
8384 (aarch64_watchpoint_offset): New.
8385 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8386 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8387 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8388 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8389 next_addr_orig_p. Support PR external/20207 watchpoints.
8390 (aarch64_downgrade_regs): New.
8391 (aarch64_dr_state_insert_one_point): New parameters offset and
8392 addr_orig.
8393 (aarch64_dr_state_remove_one_point): Likewise.
8394 (aarch64_handle_breakpoint): Update caller.
8395 (aarch64_handle_aligned_watchpoint): Likewise.
8396 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8397 aligned_offset.
8398 (aarch64_linux_set_debug_regs): Remove const from state. Call
8399 aarch64_downgrade_regs.
8400 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8401 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8402 (DR_CONTROL_MASK): ... this.
8403 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8404 (unsigned int aarch64_watchpoint_offset): New prototype.
8405 (aarch64_linux_set_debug_regs): Remove const from state.
8406 * utils.c (align_up, align_down): Move to ...
8407 * common/common-utils.c (align_up, align_down): ... here.
8408 * utils.h (align_up, align_down): Move to ...
8409 * common/common-utils.h (align_up, align_down): ... here.
8410
8411 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8412
8413 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8414 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8415 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8416 Re-implement to match the ABI as summarized in GCC's
8417 gcc/config/sparc/sparc.c. All callers updated.
8418 (sparc32_store_arguments): Remove assertion.
8419
8420 2018-05-04 Tom Tromey <tom@tromey.com>
8421
8422 * printcmd.c: Don't include tui.h.
8423 (decode_format): Use skip_spaces.
8424
8425 2018-05-04 Tom Tromey <tom@tromey.com>
8426
8427 PR gdb/22619:
8428 * printcmd.c (last_count): New global.
8429 (x_command): Use saved count when repeating.
8430
8431 2018-05-04 Tom Tromey <tom@tromey.com>
8432
8433 * nto-procfs.c (do_closedir_cleanup): Remove.
8434 (procfs_pidlist): Use gdb_dir_up.
8435 * procfs.c (do_closedir_cleanup): Remove.
8436 (proc_update_threads): Use gdb_dir_up.
8437 * common/filestuff.h (struct gdb_dir_deleter): New.
8438 (gdb_dir_up): New typedef.
8439
8440 2018-05-04 Tom Tromey <tom@tromey.com>
8441
8442 * ada-lang.c (print_mention_exception): Use std::string.
8443
8444 2018-05-04 Tom Tromey <tom@tromey.com>
8445
8446 * ada-lang.c (create_excep_cond_exprs): Update.
8447 (ada_exception_catchpoint_cond_string): Use std::string.
8448
8449 2018-05-04 Tom Tromey <tom@tromey.com>
8450
8451 * ada-lang.c (xget_renaming_scope): Return std::string.
8452 (old_renaming_is_invisible): Update.
8453
8454 2018-05-04 Tom Tromey <tom@tromey.com>
8455
8456 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8457 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8458
8459 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8460
8461 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8462
8463 2018-05-04 Tom Tromey <tom@tromey.com>
8464
8465 * remote.c (remote_query_supported_append): Change type.
8466 (remote_check_symbols): Update.
8467
8468 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8469
8470 PR gdb/11420
8471 * configure.ac: Prepend libpython.
8472 * python/python-config.py: Likewise.
8473 * configure: Regenerate.
8474
8475 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8476
8477 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8478
8479 2018-05-03 Pedro Alves <palves@redhat.com>
8480
8481 * s390-linux-nat.c
8482 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8483 override. Write 'true' instead of '1'.
8484 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8485 declaration.
8486
8487 2018-05-02 Pedro Alves <palves@redhat.com>
8488
8489 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8490 add_inf_child_target.
8491 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8492 add_inf_child_target.
8493 * aix-thread.c (aix_thread_target_info): New.
8494 (aix_thread_target) <shortname, longname, doc>: Delete.
8495 <info>: New.
8496 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8497 add_inf_child_target.
8498 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8499 add_inf_child_target.
8500 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8501 add_inf_child_target.
8502 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8503 add_inf_child_target.
8504 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8505 add_inf_child_target.
8506 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8507 add_inf_child_target.
8508 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8509 add_inf_child_target.
8510 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8511 add_inf_child_target.
8512 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8513 add_inf_child_target.
8514 * bfd-target.c (target_bfd_target_info): New.
8515 (target_bfd) <shortname, longname, doc>: Delete.
8516 <info>: New.
8517 * bsd-kvm.c (bsd_kvm_target_info): New.
8518 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8519 <info>: New.
8520 (bsd_kvm_target::open): Rename to ...
8521 (bsd_kvm_target_open): ... this. Adjust.
8522 * bsd-uthread.c (bsd_uthread_target_info): New.
8523 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8524 <info>: New.
8525 * corefile.c (core_file_command): Adjust.
8526 * corelow.c (core_target_info): New.
8527 (core_target) <shortname, longname, doc>: Delete.
8528 <info>: New.
8529 (core_target::open): Rename to ...
8530 (core_target_open): ... this. Adjust.
8531 * ctf.c (ctf_target_info): New.
8532 (ctf_target) <shortname, longname, doc>: Delete.
8533 <info>: New.
8534 (ctf_target::open): Rename to ...
8535 (ctf_target_open): ... this.
8536 (_initialize_ctf): Adjust.
8537 * exec.c (exec_target_info): New.
8538 (exec_target) <shortname, longname, doc>: Delete.
8539 <info>: New.
8540 (exec_target::open): Rename to ...
8541 (exec_target_open): ... this.
8542 * gdbcore.h (core_target_open): Declare.
8543 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8544 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8545 add_inf_child_target.
8546 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8547 add_inf_child_target.
8548 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8549 add_inf_child_target.
8550 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8551 add_inf_child_target.
8552 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8553 add_inf_child_target.
8554 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8555 add_inf_child_target.
8556 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8557 add_inf_child_target.
8558 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8559 add_inf_child_target.
8560 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8561 add_inf_child_target.
8562 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8563 add_inf_child_target.
8564 * inf-child.c (inf_child_target_info): New.
8565 (inf_child_target::info): New.
8566 (inf_child_open_target): Remove 'target' parameter. Use
8567 get_native_target instead.
8568 (inf_child_target::open): Delete.
8569 (add_inf_child_target): New.
8570 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8571 Delete.
8572 <info>: New.
8573 (add_inf_child_target): Declare.
8574 (inf_child_open_target): Declare.
8575 * linux-thread-db.c (thread_db_target_info): New.
8576 (thread_db_target) <shortname, longname, doc>: Delete.
8577 <info>: New.
8578 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8579 add_inf_child_target.
8580 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8581 add_inf_child_target.
8582 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8583 add_inf_child_target.
8584 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8585 add_inf_child_target.
8586 * make-target-delegates (print_class): Adjust.
8587 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8588 add_inf_child_target.
8589 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8590 add_inf_child_target.
8591 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8592 add_inf_child_target.
8593 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8594 add_inf_child_target.
8595 * nto-procfs.c (nto_native_target_info): New.
8596 (nto_procfs_target_native) <shortname, longname, doc>:
8597 Delete.
8598 <info>: New.
8599 (nto_procfs_target_info): New.
8600 (nto_procfs_target_procfs) <shortname, longname, doc>:
8601 Delete.
8602 <info>: New.
8603 (init_procfs_targets): Adjust.
8604 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8605 add_inf_child_target.
8606 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8607 add_inf_child_target.
8608 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8609 add_inf_child_target.
8610 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8611 add_inf_child_target.
8612 * ravenscar-thread.c (ravenscar_target_info): New.
8613 (ravenscar_thread_target) <shortname, longname, doc>:
8614 Delete.
8615 <info>: New.
8616 * record-btrace.c (record_btrace_target_info):
8617 (record_btrace_target) <shortname, longname, doc>: Delete.
8618 <info>: New.
8619 (record_btrace_target::open): Rename to ...
8620 (record_btrace_target_open): ... this. Adjust.
8621 * record-full.c (record_longname, record_doc): New.
8622 (record_full_base_target) <shortname, longname, doc>: Delete.
8623 <info>: New.
8624 (record_full_target_info): New.
8625 (record_full_target): <shortname>: Delete.
8626 <info>: New.
8627 (record_full_core_open_1, record_full_open_1): Update comments.
8628 (record_full_base_target::open): Rename to ...
8629 (record_full_open): ... this.
8630 (cmd_record_full_restore): Update.
8631 (_initialize_record_full): Update.
8632 * remote-sim.c (remote_sim_target_info): New.
8633 (gdbsim_target) <shortname, longname, doc>: Delete.
8634 <info>: New.
8635 (gdbsim_target::open): Rename to ...
8636 (gdbsim_target_open): ... this.
8637 (_initialize_remote_sim): Adjust.
8638 * remote.c (remote_doc): New.
8639 (remote_target_info): New.
8640 (remote_target) <shortname, longname, doc>: Delete.
8641 <info>: New.
8642 (extended_remote_target_info): New.
8643 (extended_remote_target) <shortname, longname, doc>: Delete.
8644 <info>: New.
8645 (remote_target::open_1): Make static. Adjust.
8646 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8647 * s390-linux-nat.c (_initialize_s390_nat): Use
8648 add_inf_child_target.
8649 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8650 add_inf_child_target.
8651 * sol-thread.c (thread_db_target_info): New.
8652 (sol_thread_target) <shortname, longname, doc>: Delete.
8653 <info>: New.
8654 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8655 add_inf_child_target.
8656 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8657 add_inf_child_target.
8658 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8659 add_inf_child_target.
8660 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8661 add_inf_child_target.
8662 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8663 add_inf_child_target.
8664 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8665 add_inf_child_target.
8666 * spu-linux-nat.c (_initialize_spu_nat): Use
8667 add_inf_child_target.
8668 * spu-multiarch.c (spu_multiarch_target_info): New.
8669 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8670 <info>: New.
8671 * target-delegates.c: Regenerate.
8672 * target.c: Include <unordered_map>.
8673 (target_ops_p): Delete.
8674 (DEF_VEC_P(target_ops_p)): Delete.
8675 (target_factories): New.
8676 (test_target_info): New.
8677 (test_target_ops::info): New.
8678 (open_target): Adjust to use target_factories.
8679 (add_target_with_completer): Rename to ...
8680 (add_target): ... this. Change prototype. Register target_info
8681 and open callback in target_factories. Register target_info in
8682 command context instead of target_ops.
8683 (add_target): Delete old implementation.
8684 (add_deprecated_target_alias): Change prototype. Adjust.
8685 (the_native_target): New.
8686 (set_native_target, get_native_target): New.
8687 (find_default_run_target): Use the_native_target.
8688 (find_attach_target, find_run_target): Simplify.
8689 (target_ops::open): Delete.
8690 (dummy_target_info): New.
8691 (dummy_target::shortname, dummy_target::longname)
8692 (dummy_target::doc): Delete.
8693 (dummy_target::info): New.
8694 (debug_target::shortname, debug_target::longname)
8695 (debug_target::doc): Delete.
8696 (debug_target::info): New.
8697 * target.h (struct target_info): New.
8698 (target_ops::~target_ops): Add comment.
8699 (target_ops::info): New.
8700 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8701 longer virtual. Implement in terms of target_info.
8702 (set_native_target, get_native_target): Declare.
8703 (target_open_ftype): New.
8704 (add_target, add_target_with_completer)
8705 (add_deprecated_target_alias): Change prototype.
8706 (test_target) <shortname, longname, doc>: Delete.
8707 <info>: New.
8708 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8709 add_inf_child_target.
8710 * tracefile-tfile.c (tfile_target_info): New.
8711 (tfile_target) <shortname, longname, doc>: Delete.
8712 <info>: New.
8713 (tfile_target::open): Rename to ...
8714 (tfile_target_open): ... this.
8715 (_initialize_tracefile_tfile): Adjust.
8716 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8717 add_inf_child_target.
8718 * windows-nat.c (_initialize_windows_nat): Use
8719 add_inf_child_target.
8720 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8721 add_inf_child_target.
8722
8723 2018-05-02 Pedro Alves <palves@redhat.com>
8724
8725 * linux-nat.h (linux_nat_target) <low_new_thread,
8726 low_delete_thread, low_new_fork, low_forget_process,
8727 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8728 New virtual methods.
8729 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8730 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8731 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8732 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8733 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8734 Delete.
8735 * linux-fork.c (delete_fork): Adjust to call low method.
8736 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8737 (linux_nat_new_fork, linux_nat_forget_process_hook)
8738 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8739 (linux_nat_status_is_event):
8740 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8741 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8742 to call low method.
8743 (sigtrap_is_event): Rename to ...
8744 (linux_nat_target::low_status_is_event): ... this.
8745 (linux_nat_set_status_is_event): Delete.
8746 (save_stop_reason, linux_nat_wait_1)
8747 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8748 low methods.
8749 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8750 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8751 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8752 (linux_nat_set_prepare_to_resume): Delete.
8753 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8754 low virtual methods.
8755 * amd64-linux-nat.c: Likewise.
8756 * arm-linux-nat.c: Likewise.
8757 * i386-linux-nat.c: Likewise.
8758 * ia64-linux-nat.c: Likewise.
8759 * mips-linux-nat.c: Likewise.
8760 * ppc-linux-nat.c: Likewise.
8761 * s390-linux-nat.c: Likewise.
8762 * sparc64-linux-nat.c: Likewise.
8763 * x86-linux-nat.c: Likewise.
8764 * x86-linux-nat.h: Include "nat/x86-linux.h".
8765 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8766 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8767 Override methods.
8768
8769 2018-05-02 Pedro Alves <palves@redhat.com>
8770
8771 * target.h (target_ops)
8772 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8773 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8774 stopped_by_watchpoint, have_continuable_watchpoint,
8775 stopped_data_address, watchpoint_addr_within_range,
8776 can_accel_watchpoint_condition, can_run, thread_alive,
8777 has_all_memory, has_memory, has_stack, has_registers,
8778 has_execution, can_async_p, is_async_p, supports_non_stop,
8779 always_non_stop_p, can_execute_reverse, supports_multi_process,
8780 supports_enable_disable_tracepoint,
8781 supports_disable_randomization, supports_string_tracing,
8782 supports_evaluation_of_breakpoint_conditions,
8783 can_run_breakpoint_commands, filesystem_is_local,
8784 can_download_tracepoint, get_trace_state_variable_value,
8785 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8786 record_is_replaying, record_will_replay,
8787 augmented_libraries_svr4_read>: Adjust to return bool.
8788 * aarch64-linux-nat.c: All implementations adjusted.
8789 * aix-thread.c: All implementations adjusted.
8790 * arm-linux-nat.c: All implementations adjusted.
8791 * breakpoint.c: All implementations adjusted.
8792 * bsd-kvm.c: All implementations adjusted.
8793 * bsd-uthread.c: All implementations adjusted.
8794 * corelow.c: All implementations adjusted.
8795 * ctf.c: All implementations adjusted.
8796 * darwin-nat.c: All implementations adjusted.
8797 * darwin-nat.h: All implementations adjusted.
8798 * exec.c: All implementations adjusted.
8799 * fbsd-nat.c: All implementations adjusted.
8800 * fbsd-nat.h: All implementations adjusted.
8801 * gnu-nat.c: All implementations adjusted.
8802 * gnu-nat.h: All implementations adjusted.
8803 * go32-nat.c: All implementations adjusted.
8804 * ia64-linux-nat.c: All implementations adjusted.
8805 * inf-child.c: All implementations adjusted.
8806 * inf-child.h: All implementations adjusted.
8807 * inf-ptrace.c: All implementations adjusted.
8808 * inf-ptrace.h: All implementations adjusted.
8809 * linux-nat.c: All implementations adjusted.
8810 * linux-nat.h: All implementations adjusted.
8811 * mips-linux-nat.c: All implementations adjusted.
8812 * nto-procfs.c: All implementations adjusted.
8813 * ppc-linux-nat.c: All implementations adjusted.
8814 * procfs.c: All implementations adjusted.
8815 * ravenscar-thread.c: All implementations adjusted.
8816 * record-btrace.c: All implementations adjusted.
8817 * record-full.c: All implementations adjusted.
8818 * remote-sim.c: All implementations adjusted.
8819 * remote.c: All implementations adjusted.
8820 * s390-linux-nat.c: All implementations adjusted.
8821 * sol-thread.c: All implementations adjusted.
8822 * spu-multiarch.c: All implementations adjusted.
8823 * target-delegates.c: All implementations adjusted.
8824 * target.c: All implementations adjusted.
8825 * target.h: All implementations adjusted.
8826 * tracefile-tfile.c: All implementations adjusted.
8827 * tracefile.c: All implementations adjusted.
8828 * tracefile.h: All implementations adjusted.
8829 * windows-nat.c: All implementations adjusted.
8830 * x86-linux-nat.h: All implementations adjusted.
8831 * x86-nat.h: All implementations adjusted.
8832
8833 2018-05-02 Pedro Alves <palves@redhat.com>
8834
8835 * make-target-delegates (scan_target_h): Don't trim lines here.
8836 Replace sequences of tabs and/or whitespace with a single
8837 whitespace.
8838 (top level, parsing methods): Trim each line before processing it
8839 here.
8840
8841 2018-05-02 Pedro Alves <palves@redhat.com>
8842 John Baldwin <jhb@freebsd.org>
8843
8844 * target.h (enum strata) <debug_stratum>: New.
8845 (struct target_ops) <all delegation methods>: Replace by C++
8846 virtual methods, and drop "to_" prefix. All references updated
8847 throughout.
8848 <to_shortname, to_longname, to_doc, to_data,
8849 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8850 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8851 virtual methods. All references updated throughout.
8852 <can_attach, supports_terminal_ours, can_create_inferior,
8853 get_thread_control_capabilities, attach_no_wait>: New
8854 virtual methods.
8855 <insert_breakpoint, remove_breakpoint>: Now
8856 TARGET_DEFAULT_NORETURN methods.
8857 <info_proc>: Now returns bool.
8858 <to_magic>: Delete.
8859 (OPS_MAGIC): Delete.
8860 (current_target): Delete. All references replaced by references
8861 to ...
8862 (target_stack): ... this. New.
8863 (target_shortname, target_longname): Adjust.
8864 (target_can_run): Now a function declaration.
8865 (default_child_has_all_memory, default_child_has_memory)
8866 (default_child_has_stack, default_child_has_registers)
8867 (default_child_has_execution): Remove target_ops parameter.
8868 (complete_target_initialization): Delete.
8869 (memory_breakpoint_target): New template class.
8870 (test_target_ops): Refactor as a C++ class with virtual methods.
8871 * make-target-delegates (NAME_PART): Tighten.
8872 (POINTER_PART, CP_SYMBOL): New.
8873 (SIMPLE_RETURN_PART): Reimplement.
8874 (VEC_RETURN_PART): Expect less.
8875 (RETURN_PART, VIRTUAL_PART): New.
8876 (METHOD): Adjust to C++ virtual methods.
8877 (scan_target_h): Remove reference to C99.
8878 (dname): Output "target_ops::" prefix.
8879 (write_function_header): Adjust to output a C++ class method.
8880 (write_declaration): New.
8881 (write_delegator): Adjust to output a C++ class method.
8882 (tdname): Output "dummy_target::" prefix.
8883 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8884 method.
8885 (tdefault_names, debug_names): Delete.
8886 (return_types, tdefaults, styles, argtypes_array): New.
8887 (top level): All methods are delegators.
8888 (print_class): New.
8889 (top level): Print dummy_target and debug_target classes.
8890 * target-delegates.c: Regenerate.
8891 * target-debug.h (target_debug_print_enum_info_proc_what)
8892 (target_debug_print_thread_control_capabilities)
8893 (target_debug_print_thread_info_p): New.
8894 * target.c (dummy_target): Delete.
8895 (the_dummy_target, the_debug_target): New.
8896 (target_stack): Now extern.
8897 (set_targetdebug): Push/unpush debug target.
8898 (default_child_has_all_memory, default_child_has_memory)
8899 (default_child_has_stack, default_child_has_registers)
8900 (default_child_has_execution): Remove target_ops parameter.
8901 (complete_target_initialization): Delete.
8902 (add_target_with_completer): No longer call
8903 complete_target_initialization.
8904 (target_supports_terminal_ours): Use regular delegation.
8905 (update_current_target): Delete.
8906 (push_target): No longer check magic number. Don't call
8907 update_current_target.
8908 (unpush_target): Don't call update_current_target.
8909 (target_is_pushed): No longer check magic number.
8910 (target_require_runnable): Skip for all stratums over
8911 process_stratum.
8912 (target_ops::info_proc): New.
8913 (target_info_proc): Use find_target_at and
8914 find_default_run_target.
8915 (target_supports_disable_randomization): Use regular delegation.
8916 (target_get_osdata): Use find_target_at.
8917 (target_ops::open, target_ops::close, target_ops::can_attach)
8918 (target_ops::attach, target_ops::can_create_inferior)
8919 (target_ops::create_inferior, target_ops::can_run)
8920 (target_can_run): New.
8921 (default_fileio_target): Use regular delegation.
8922 (target_ops::fileio_open, target_ops::fileio_pwrite)
8923 (target_ops::fileio_pread, target_ops::fileio_fstat)
8924 (target_ops::fileio_close, target_ops::fileio_unlink)
8925 (target_ops::fileio_readlink): New.
8926 (target_fileio_open_1, target_fileio_unlink)
8927 (target_fileio_readlink): Always call the target method. Handle
8928 FILEIO_ENOSYS.
8929 (return_zero, return_zero_has_execution): Delete.
8930 (init_dummy_target): Delete.
8931 (dummy_target::dummy_target, dummy_target::shortname)
8932 (dummy_target::longname, dummy_target::doc)
8933 (debug_target::debug_target, debug_target::shortname)
8934 (debug_target::longname, debug_target::doc): New.
8935 (target_supports_delete_record): Use regular delegation.
8936 (setup_target_debug): Delete.
8937 (maintenance_print_target_stack): Skip debug_stratum.
8938 (initialize_targets): Instantiate the_dummy_target and
8939 the_debug_target.
8940 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8941 use target_stack.
8942 (target_auxv_search, fprint_target_auxv): Adjust.
8943 (info_auxv_command): Adjust to use target_stack.
8944 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8945 * exceptions.c (print_flush): Handle a NULL target_stack.
8946 * regcache.c (target_ops_no_register): Refactor as class with
8947 virtual methods.
8948
8949 * exec.c (exec_target): New class.
8950 (exec_ops): Now an exec_target.
8951 (exec_open, exec_close_1, exec_get_section_table)
8952 (exec_xfer_partial, exec_files_info, exec_has_memory)
8953 (exec_make_note_section): Refactor as exec_target methods.
8954 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8955 Delete.
8956 (exec_target::find_memory_regions): New.
8957 (_initialize_exec): Don't call init_exec_ops.
8958 * gdbcore.h (exec_file_clear): Delete.
8959
8960 * corefile.c (core_target): Delete.
8961 (core_file_command): Adjust.
8962 * corelow.c (core_target): New class.
8963 (the_core_target): New.
8964 (core_close): Remove target_ops parameter.
8965 (core_close_cleanup): Adjust.
8966 (core_target::close): New.
8967 (core_open, core_detach, get_core_registers, core_files_info)
8968 (core_xfer_partial, core_thread_alive, core_read_description)
8969 (core_pid_to_str, core_thread_name, core_has_memory)
8970 (core_has_stack, core_has_registers, core_info_proc): Rework as
8971 core_target methods.
8972 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8973 (_initialize_corelow): Initialize the_core_target.
8974 * gdbcore.h (core_target): Delete.
8975 (the_core_target): New.
8976
8977 * ctf.c: (ctf_target): New class.
8978 (ctf_ops): Now a ctf_target.
8979 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8980 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8981 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8982 methods.
8983 (init_ctf_ops): Delete.
8984 (_initialize_ctf): Don't call it.
8985 * tracefile-tfile.c (tfile_target): New class.
8986 (tfile_ops): Now a tfile_target.
8987 (tfile_open, tfile_close, tfile_files_info)
8988 (tfile_get_tracepoint_status, tfile_trace_find)
8989 (tfile_fetch_registers, tfile_xfer_partial)
8990 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8991 Refactor as tfile_target methods.
8992 (tfile_xfer_partial_features): Remove target_ops parameter.
8993 (init_tfile_ops): Delete.
8994 (_initialize_tracefile_tfile): Don't call it.
8995 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8996 (tracefile_has_stack, tracefile_has_registers)
8997 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8998 tracefile_target methods.
8999 (init_tracefile_ops): Delete.
9000 (tracefile_target::tracefile_target): New.
9001 * tracefile.h: Include "target.h".
9002 (tracefile_target): New class.
9003 (init_tracefile_ops): Delete.
9004
9005 * spu-multiarch.c (spu_multiarch_target): New class.
9006 (spu_ops): Now a spu_multiarch_target.
9007 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9008 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9009 (spu_search_memory, spu_mourn_inferior): Refactor as
9010 spu_multiarch_target methods.
9011 (init_spu_ops): Delete.
9012 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9013 complete_target_initialization.
9014
9015 * ravenscar-thread.c (ravenscar_thread_target): New class.
9016 (ravenscar_ops): Now a ravenscar_thread_target.
9017 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9018 (ravenscar_thread_alive, ravenscar_pid_to_str)
9019 (ravenscar_fetch_registers, ravenscar_store_registers)
9020 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9021 (ravenscar_stopped_by_hw_breakpoint)
9022 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9023 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9024 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9025 methods.
9026 (init_ravenscar_thread_ops): Delete.
9027 (_initialize_ravenscar): Remove references to
9028 init_ravenscar_thread_ops and complete_target_initialization.
9029
9030 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9031 (bsd_uthread_target): New class.
9032 (bsd_uthread_ops): Now a bsd_uthread_target.
9033 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9034 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9035 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9036 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9037 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9038 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9039 (bsd_uthread_target): Delete function.
9040 (_initialize_bsd_uthread): Remove reference to
9041 complete_target_initialization.
9042
9043 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9044 (target_bfd): ... this new class.
9045 (target_bfd_xfer_partial, target_bfd_get_section_table)
9046 (target_bfd_close): Refactor as target_bfd methods.
9047 (target_bfd::~target_bfd): New.
9048 (target_bfd_reopen): Adjust.
9049 (target_bfd::close): New.
9050
9051 * record-btrace.c (record_btrace_target): New class.
9052 (record_btrace_ops): Now a record_btrace_target.
9053 (record_btrace_open, record_btrace_stop_recording)
9054 (record_btrace_disconnect, record_btrace_close)
9055 (record_btrace_async, record_btrace_info)
9056 (record_btrace_insn_history, record_btrace_insn_history_range)
9057 (record_btrace_insn_history_from, record_btrace_call_history)
9058 (record_btrace_call_history_range)
9059 (record_btrace_call_history_from, record_btrace_record_method)
9060 (record_btrace_is_replaying, record_btrace_will_replay)
9061 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9062 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9063 (record_btrace_store_registers, record_btrace_prepare_to_store)
9064 (record_btrace_to_get_unwinder)
9065 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9066 (record_btrace_commit_resume, record_btrace_wait)
9067 (record_btrace_stop, record_btrace_can_execute_reverse)
9068 (record_btrace_stopped_by_sw_breakpoint)
9069 (record_btrace_supports_stopped_by_sw_breakpoint)
9070 (record_btrace_stopped_by_hw_breakpoint)
9071 (record_btrace_supports_stopped_by_hw_breakpoint)
9072 (record_btrace_update_thread_list, record_btrace_thread_alive)
9073 (record_btrace_goto_begin, record_btrace_goto_end)
9074 (record_btrace_goto, record_btrace_stop_replaying_all)
9075 (record_btrace_execution_direction)
9076 (record_btrace_prepare_to_generate_core)
9077 (record_btrace_done_generating_core): Refactor as
9078 record_btrace_target methods.
9079 (init_record_btrace_ops): Delete.
9080 (_initialize_record_btrace): Remove reference to
9081 init_record_btrace_ops.
9082 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9083 the execution_direction global.
9084 (record_full_base_target, record_full_target)
9085 (record_full_core_target): New classes.
9086 (record_full_ops): Now a record_full_target.
9087 (record_full_core_ops): Now a record_full_core_target.
9088 (record_full_target::detach, record_full_target::disconnect)
9089 (record_full_core_target::disconnect)
9090 (record_full_target::mourn_inferior, record_full_target::kill):
9091 New.
9092 (record_full_open, record_full_close, record_full_async): Refactor
9093 as methods of the record_full_base_target class.
9094 (record_full_resume, record_full_commit_resume): Refactor
9095 as methods of the record_full_target class.
9096 (record_full_wait, record_full_stopped_by_watchpoint)
9097 (record_full_stopped_data_address)
9098 (record_full_stopped_by_sw_breakpoint)
9099 (record_full_supports_stopped_by_sw_breakpoint)
9100 (record_full_stopped_by_hw_breakpoint)
9101 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9102 methods of the record_full_base_target class.
9103 (record_full_store_registers, record_full_xfer_partial)
9104 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9105 Refactor as methods of the record_full_target class.
9106 (record_full_can_execute_reverse, record_full_get_bookmark)
9107 (record_full_goto_bookmark, record_full_execution_direction)
9108 (record_full_record_method, record_full_info, record_full_delete)
9109 (record_full_is_replaying, record_full_will_replay)
9110 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9111 (record_full_stop_replaying): Refactor as methods of the
9112 record_full_base_target class.
9113 (record_full_core_resume, record_full_core_kill)
9114 (record_full_core_fetch_registers)
9115 (record_full_core_prepare_to_store)
9116 (record_full_core_store_registers, record_full_core_xfer_partial)
9117 (record_full_core_insert_breakpoint)
9118 (record_full_core_remove_breakpoint)
9119 (record_full_core_has_execution): Refactor
9120 as methods of the record_full_core_target class.
9121 (record_full_base_target::supports_delete_record): New.
9122 (init_record_full_ops): Delete.
9123 (init_record_full_core_ops): Delete.
9124 (record_full_save): Refactor as method of the
9125 record_full_base_target class.
9126 (_initialize_record_full): Remove references to
9127 init_record_full_ops and init_record_full_core_ops.
9128
9129 * remote.c (remote_target, extended_remote_target): New classes.
9130 (remote_ops): Now a remote_target.
9131 (extended_remote_ops): Now an extended_remote_target.
9132 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9133 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9134 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9135 (remote_pass_signals, remote_set_syscall_catchpoint)
9136 (remote_program_signals, )
9137 (remote_thread_always_alive): Remove target_ops parameter.
9138 (remote_thread_alive, remote_thread_name)
9139 (remote_update_thread_list, remote_threads_extra_info)
9140 (remote_static_tracepoint_marker_at)
9141 (remote_static_tracepoint_markers_by_strid)
9142 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9143 (remote_open): Refactor as methods of remote_target.
9144 (extended_remote_open, extended_remote_detach)
9145 (extended_remote_attach, extended_remote_post_attach):
9146 (extended_remote_supports_disable_randomization)
9147 (extended_remote_create_inferior): : Refactor as method of
9148 extended_remote_target.
9149 (remote_set_permissions, remote_open_1, remote_detach)
9150 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9151 (remote_resume, remote_commit_resume, remote_stop)
9152 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9153 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9154 (remote_prepare_to_store, remote_store_registers)
9155 (remote_flash_erase, remote_flash_done, remote_files_info)
9156 (remote_kill, remote_mourn, remote_insert_breakpoint)
9157 (remote_remove_breakpoint, remote_insert_watchpoint)
9158 (remote_watchpoint_addr_within_range)
9159 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9160 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9161 (remote_supports_stopped_by_sw_breakpoint)
9162 (remote_stopped_by_hw_breakpoint)
9163 (remote_supports_stopped_by_hw_breakpoint)
9164 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9165 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9166 (remote_verify_memory): Refactor as methods of remote_target.
9167 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9168 parameter.
9169 (remote_xfer_partial, remote_get_memory_xfer_limit)
9170 (remote_search_memory, remote_rcmd, remote_memory_map)
9171 (remote_pid_to_str, remote_get_thread_local_address)
9172 (remote_get_tib_address, remote_read_description): Refactor as
9173 methods of remote_target.
9174 (remote_target::fileio_open, remote_target::fileio_pwrite)
9175 (remote_target::fileio_pread, remote_target::fileio_close): New.
9176 (remote_hostio_readlink, remote_hostio_fstat)
9177 (remote_filesystem_is_local, remote_can_execute_reverse)
9178 (remote_supports_non_stop, remote_supports_disable_randomization)
9179 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9180 (remote_supports_enable_disable_tracepoint)
9181 (remote_supports_string_tracing)
9182 (remote_can_run_breakpoint_commands, remote_trace_init)
9183 (remote_download_tracepoint, remote_can_download_tracepoint)
9184 (remote_download_trace_state_variable, remote_enable_tracepoint)
9185 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9186 (remote_trace_start, remote_get_trace_status)
9187 (remote_get_tracepoint_status, remote_trace_stop)
9188 (remote_trace_find, remote_get_trace_state_variable_value)
9189 (remote_save_trace_data, remote_get_raw_trace_data)
9190 (remote_set_disconnected_tracing, remote_core_of_thread)
9191 (remote_set_circular_trace_buffer, remote_traceframe_info)
9192 (remote_get_min_fast_tracepoint_insn_len)
9193 (remote_set_trace_buffer_size, remote_set_trace_notes)
9194 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9195 (remote_disable_btrace, remote_teardown_btrace)
9196 (remote_read_btrace, remote_btrace_conf)
9197 (remote_augmented_libraries_svr4_read, remote_load)
9198 (remote_pid_to_exec_file, remote_can_do_single_step)
9199 (remote_execution_direction, remote_thread_handle_to_thread_info):
9200 Refactor as methods of remote_target.
9201 (init_remote_ops, init_extended_remote_ops): Delete.
9202 (remote_can_async_p, remote_is_async_p, remote_async)
9203 (remote_thread_events, remote_upload_tracepoints)
9204 (remote_upload_trace_state_variables): Refactor as methods of
9205 remote_target.
9206 (_initialize_remote): Remove references to init_remote_ops and
9207 init_extended_remote_ops.
9208
9209 * remote-sim.c (gdbsim_target): New class.
9210 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9211 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9212 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9213 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9214 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9215 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9216 Refactor as methods of gdbsim_target.
9217 (gdbsim_ops): Now a gdbsim_target.
9218 (init_gdbsim_ops): Delete.
9219 (gdbsim_cntrl_c): Adjust.
9220 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9221
9222 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9223 (the_amd64_linux_nat_target): New.
9224 (amd64_linux_fetch_inferior_registers)
9225 (amd64_linux_store_inferior_registers): Refactor as methods of
9226 amd64_linux_nat_target.
9227 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9228 * i386-linux-nat.c: Don't include "linux-nat.h".
9229 (i386_linux_nat_target): New class.
9230 (the_i386_linux_nat_target): New.
9231 (i386_linux_fetch_inferior_registers)
9232 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9233 as methods of i386_linux_nat_target.
9234 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9235 * inf-child.c (inf_child_ops): Delete.
9236 (inf_child_fetch_inferior_registers)
9237 (inf_child_store_inferior_registers): Delete.
9238 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9239 methods of inf_child_target.
9240 (inf_child_target::supports_terminal_ours)
9241 (inf_child_target::terminal_init)
9242 (inf_child_target::terminal_inferior)
9243 (inf_child_target::terminal_ours_for_output)
9244 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9245 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9246 New.
9247 (inf_child_open, inf_child_disconnect, inf_child_close)
9248 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9249 (inf_child_post_startup_inferior, inf_child_can_run)
9250 (inf_child_pid_to_exec_file): Refactor as methods of
9251 inf_child_target.
9252 (inf_child_follow_fork): Delete.
9253 (inf_child_target::can_create_inferior)
9254 (inf_child_target::can_attach): New.
9255 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9256 (inf_child_target::has_stack, inf_child_target::has_registers)
9257 (inf_child_target::has_execution): New.
9258 (inf_child_fileio_open, inf_child_fileio_pwrite)
9259 (inf_child_fileio_pread, inf_child_fileio_fstat)
9260 (inf_child_fileio_close, inf_child_fileio_unlink)
9261 (inf_child_fileio_readlink, inf_child_use_agent)
9262 (inf_child_can_use_agent): Refactor as methods of
9263 inf_child_target.
9264 (return_zero, inf_child_target): Delete.
9265 (inf_child_target::inf_child_target): New.
9266 * inf-child.h: Include "target.h".
9267 (inf_child_target): Delete function prototype.
9268 (inf_child_target): New class.
9269 (inf_child_open_target, inf_child_mourn_inferior)
9270 (inf_child_maybe_unpush_target): Delete.
9271 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9272 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9273 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9274 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9275 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9276 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9277 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9278 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9279 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9280 methods of inf_ptrace_target.
9281 (inf_ptrace_target): Delete function.
9282 * inf-ptrace.h: Include "inf-child.h".
9283 (inf_ptrace_target): Delete function declaration.
9284 (inf_ptrace_target): New class.
9285 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9286 * linux-nat.c (linux_target): New.
9287 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9288 (linux_nat_target::~linux_nat_target): New.
9289 (linux_child_post_attach, linux_child_post_startup_inferior)
9290 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9291 (linux_child_remove_fork_catchpoint)
9292 (linux_child_insert_vfork_catchpoint)
9293 (linux_child_remove_vfork_catchpoint)
9294 (linux_child_insert_exec_catchpoint)
9295 (linux_child_remove_exec_catchpoint)
9296 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9297 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9298 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9299 (linux_nat_stopped_data_address)
9300 (linux_nat_stopped_by_sw_breakpoint)
9301 (linux_nat_supports_stopped_by_sw_breakpoint)
9302 (linux_nat_stopped_by_hw_breakpoint)
9303 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9304 (linux_nat_kill, linux_nat_mourn_inferior)
9305 (linux_nat_xfer_partial, linux_nat_thread_alive)
9306 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9307 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9308 (linux_child_static_tracepoint_markers_by_strid)
9309 (linux_nat_is_async_p, linux_nat_can_async_p)
9310 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9311 (linux_nat_supports_multi_process)
9312 (linux_nat_supports_disable_randomization, linux_nat_async)
9313 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9314 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9315 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9316 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9317 methods of linux_nat_target.
9318 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9319 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9320 parameter.
9321 (check_stopped_by_watchpoint): Adjust.
9322 (linux_xfer_partial): Delete.
9323 (linux_target_install_ops, linux_target, linux_nat_add_target):
9324 Delete.
9325 (linux_nat_target::linux_nat_target): New.
9326 * linux-nat.h: Include "inf-ptrace.h".
9327 (linux_nat_target): New.
9328 (linux_target, linux_target_install_ops, linux_nat_add_target):
9329 Delete function declarations.
9330 (linux_target): Declare global.
9331 * linux-thread-db.c (thread_db_target): New.
9332 (thread_db_target::thread_db_target): New.
9333 (thread_db_ops): Delete.
9334 (the_thread_db_target): New.
9335 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9336 (thread_db_update_thread_list, thread_db_pid_to_str)
9337 (thread_db_extra_thread_info)
9338 (thread_db_thread_handle_to_thread_info)
9339 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9340 (thread_db_resume): Refactor as methods of thread_db_target.
9341 (init_thread_db_ops): Delete.
9342 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9343 * x86-linux-nat.c: Don't include "linux-nat.h".
9344 (super_post_startup_inferior): Delete.
9345 (x86_linux_nat_target::~x86_linux_nat_target): New.
9346 (x86_linux_child_post_startup_inferior)
9347 (x86_linux_read_description, x86_linux_enable_btrace)
9348 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9349 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9350 methods of x86_linux_nat_target.
9351 (x86_linux_create_target): Delete. Bits folded ...
9352 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9353 pointer.
9354 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9355 (x86_linux_nat_target): New class.
9356 (x86_linux_create_target): Delete.
9357 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9358 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9359 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9360 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9361 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9362 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9363 make extern.
9364 (x86_use_watchpoints): Delete.
9365 * x86-nat.h: Include "breakpoint.h" and "target.h".
9366 (x86_use_watchpoints): Delete.
9367 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9368 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9369 (x86_insert_watchpoint, x86_remove_watchpoint)
9370 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9371 (x86_stopped_by_hw_breakpoint): New declarations.
9372 (x86_nat_target): New template class.
9373
9374 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9375 (the_ppc_linux_nat_target): New.
9376 (ppc_linux_fetch_inferior_registers)
9377 (ppc_linux_can_use_hw_breakpoint)
9378 (ppc_linux_region_ok_for_hw_watchpoint)
9379 (ppc_linux_ranged_break_num_registers)
9380 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9381 (ppc_linux_insert_mask_watchpoint)
9382 (ppc_linux_remove_mask_watchpoint)
9383 (ppc_linux_can_accel_watchpoint_condition)
9384 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9385 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9386 (ppc_linux_watchpoint_addr_within_range)
9387 (ppc_linux_masked_watch_num_registers)
9388 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9389 (ppc_linux_read_description): Refactor as methods of
9390 ppc_linux_nat_target.
9391 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9392
9393 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9394 (procfs_target): New class.
9395 (the_procfs_target): New.
9396 (procfs_target): Delete function.
9397 (procfs_auxv_parse, procfs_attach, procfs_detach)
9398 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9399 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9400 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9401 (procfs_create_inferior, procfs_update_thread_list)
9402 (procfs_thread_alive, procfs_pid_to_str)
9403 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9404 (procfs_stopped_data_address, procfs_insert_watchpoint)
9405 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9406 (proc_find_memory_regions, procfs_info_proc)
9407 (procfs_make_note_section): Refactor as methods of procfs_target.
9408 (_initialize_procfs): Adjust.
9409 * sol-thread.c (sol_thread_target): New class.
9410 (sol_thread_ops): Now a sol_thread_target.
9411 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9412 (sol_thread_fetch_registers, sol_thread_store_registers)
9413 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9414 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9415 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9416 (init_sol_thread_ops): Delete.
9417 (_initialize_sol_thread): Adjust. Remove references to
9418 init_sol_thread_ops and complete_target_initialization.
9419
9420 * windows-nat.c (windows_nat_target): New class.
9421 (windows_fetch_inferior_registers)
9422 (windows_store_inferior_registers, windows_resume, windows_wait)
9423 (windows_attach, windows_detach, windows_pid_to_exec_file)
9424 (windows_files_info, windows_create_inferior)
9425 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9426 (windows_close, windows_pid_to_str, windows_xfer_partial)
9427 (windows_get_tib_address, windows_get_ada_task_ptid)
9428 (windows_thread_name, windows_thread_alive): Refactor as
9429 windows_nat_target methods.
9430 (do_initial_windows_stuff): Adjust.
9431 (windows_target): Delete function.
9432 (_initialize_windows_nat): Adjust.
9433
9434 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9435 (darwin_mourn_inferior, darwin_kill_inferior)
9436 (darwin_create_inferior, darwin_attach, darwin_detach)
9437 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9438 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9439 (darwin_supports_multi_process): Refactor as darwin_nat_target
9440 methods.
9441 (darwin_resume_to, darwin_files_info): Delete.
9442 (_initialize_darwin_inferior): Rename to ...
9443 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9444 * darwin-nat.h: Include "inf-child.h".
9445 (darwin_nat_target): New class.
9446 (darwin_complete_target): Delete.
9447 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9448 (darwin_target): New.
9449 (i386_darwin_fetch_inferior_registers)
9450 (i386_darwin_store_inferior_registers): Refactor as methods of
9451 darwin_nat_target.
9452 (darwin_complete_target): Delete, with ...
9453 (_initialize_i386_darwin_nat): ... bits factored out here.
9454
9455 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9456 (the_alpha_linux_nat_target): New.
9457 (alpha_linux_register_u_offset): Refactor as
9458 alpha_linux_nat_target method.
9459 (_initialize_alpha_linux_nat): Adjust.
9460 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9461 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9462 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9463 methods of linux_nat_trad_target.
9464 (linux_trad_target): Delete.
9465 * linux-nat-trad.h (linux_trad_target): Delete function.
9466 (linux_nat_trad_target): New class.
9467 * mips-linux-nat.c (mips_linux_nat_target): New class.
9468 (super_fetch_registers, super_store_registers, super_close):
9469 Delete.
9470 (the_mips_linux_nat_target): New.
9471 (mips64_linux_regsets_fetch_registers)
9472 (mips64_linux_regsets_store_registers)
9473 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9474 (mips_linux_register_u_offset, mips_linux_read_description)
9475 (mips_linux_can_use_hw_breakpoint)
9476 (mips_linux_stopped_by_watchpoint)
9477 (mips_linux_stopped_data_address)
9478 (mips_linux_region_ok_for_hw_watchpoint)
9479 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9480 (mips_linux_close): Refactor as methods of mips_linux_nat.
9481 (_initialize_mips_linux_nat): Adjust to C++ification.
9482
9483 * aix-thread.c (aix_thread_target): New class.
9484 (aix_thread_ops): Now an aix_thread_target.
9485 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9486 (aix_thread_fetch_registers, aix_thread_store_registers)
9487 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9488 (aix_thread_thread_alive, aix_thread_pid_to_str)
9489 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9490 Refactor as methods of aix_thread_target.
9491 (init_aix_thread_ops): Delete.
9492 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9493 and complete_target_initialization.
9494 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9495 (rs6000_nat_target): New class.
9496 (the_rs6000_nat_target): New.
9497 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9498 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9499 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9500 (super_create_inferior): Delete.
9501 (_initialize_rs6000_nat): Adjust to C++ification.
9502
9503 * arm-linux-nat.c (arm_linux_nat_target): New class.
9504 (the_arm_linux_nat_target): New.
9505 (arm_linux_fetch_inferior_registers)
9506 (arm_linux_store_inferior_registers, arm_linux_read_description)
9507 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9508 (arm_linux_remove_hw_breakpoint)
9509 (arm_linux_region_ok_for_hw_watchpoint)
9510 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9511 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9512 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9513 arm_linux_nat_target.
9514 (_initialize_arm_linux_nat): Adjust to C++ification.
9515
9516 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9517 (the_aarch64_linux_nat_target): New.
9518 (aarch64_linux_fetch_inferior_registers)
9519 (aarch64_linux_store_inferior_registers)
9520 (aarch64_linux_child_post_startup_inferior)
9521 (aarch64_linux_read_description)
9522 (aarch64_linux_can_use_hw_breakpoint)
9523 (aarch64_linux_insert_hw_breakpoint)
9524 (aarch64_linux_remove_hw_breakpoint)
9525 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9526 (aarch64_linux_region_ok_for_hw_watchpoint)
9527 (aarch64_linux_stopped_data_address)
9528 (aarch64_linux_stopped_by_watchpoint)
9529 (aarch64_linux_watchpoint_addr_within_range)
9530 (aarch64_linux_can_do_single_step): Refactor as methods of
9531 aarch64_linux_nat_target.
9532 (super_post_startup_inferior): Delete.
9533 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9534
9535 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9536 (the_hppa_linux_nat_target): New.
9537 (hppa_linux_fetch_inferior_registers)
9538 (hppa_linux_store_inferior_registers): Refactor as methods of
9539 hppa_linux_nat_target.
9540 (_initialize_hppa_linux_nat): Adjust to C++ification.
9541
9542 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9543 (the_ia64_linux_nat_target): New.
9544 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9545 (ia64_linux_stopped_data_address)
9546 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9547 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9548 ia64_linux_nat_target methods.
9549 (super_xfer_partial): Delete.
9550 (_initialize_ia64_linux_nat): Adjust to C++ification.
9551
9552 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9553 (the_m32r_linux_nat_target): New.
9554 (m32r_linux_fetch_inferior_registers)
9555 (m32r_linux_store_inferior_registers): Refactor as
9556 m32r_linux_nat_target methods.
9557 (_initialize_m32r_linux_nat): Adjust to C++ification.
9558
9559 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9560 (the_m68k_linux_nat_target): New.
9561 (m68k_linux_fetch_inferior_registers)
9562 (m68k_linux_store_inferior_registers): Refactor as
9563 m68k_linux_nat_target methods.
9564 (_initialize_m68k_linux_nat): Adjust to C++ification.
9565
9566 * s390-linux-nat.c (s390_linux_nat_target): New class.
9567 (the_s390_linux_nat_target): New.
9568 (s390_linux_fetch_inferior_registers)
9569 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9570 (s390_insert_watchpoint, s390_remove_watchpoint)
9571 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9572 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9573 (s390_auxv_parse, s390_read_description): Refactor as methods of
9574 s390_linux_nat_target.
9575 (_initialize_s390_nat): Adjust to C++ification.
9576
9577 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9578 (the_sparc_linux_nat_target): New.
9579 (_initialize_sparc_linux_nat): Adjust to C++ification.
9580 * sparc-nat.c (sparc_fetch_inferior_registers)
9581 (sparc_store_inferior_registers): Remove target_ops parameter.
9582 * sparc-nat.h (sparc_fetch_inferior_registers)
9583 (sparc_store_inferior_registers): Remove target_ops parameter.
9584 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9585 (the_sparc64_linux_nat_target): New.
9586 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9587
9588 * spu-linux-nat.c (spu_linux_nat_target): New class.
9589 (the_spu_linux_nat_target): New.
9590 (spu_child_post_startup_inferior, spu_child_post_attach)
9591 (spu_child_wait, spu_fetch_inferior_registers)
9592 (spu_store_inferior_registers, spu_xfer_partial)
9593 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9594 methods.
9595 (_initialize_spu_nat): Adjust to C++ification.
9596
9597 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9598 (the_tilegx_linux_nat_target): New.
9599 (fetch_inferior_registers, store_inferior_registers):
9600 Refactor as methods.
9601 (_initialize_tile_linux_nat): Adjust to C++ification.
9602
9603 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9604 (the_xtensa_linux_nat_target): New.
9605 (xtensa_linux_fetch_inferior_registers)
9606 (xtensa_linux_store_inferior_registers): Refactor as
9607 xtensa_linux_nat_target methods.
9608 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9609
9610 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9611 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9612 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9613 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9614 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9615 (fbsd_stopped_by_sw_breakpoint)
9616 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9617 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9618 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9619 (fbsd_post_startup_inferior, fbsd_post_attach)
9620 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9621 (fbsd_set_syscall_catchpoint)
9622 (super_xfer_partial, super_resume, super_wait)
9623 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9624 (fbsd_handle_debug_trap): Remove target_ops parameter.
9625 (fbsd_nat_add_target): Delete.
9626 * fbsd-nat.h: Include "inf-ptrace.h".
9627 (fbsd_nat_add_target): Delete.
9628 (USE_SIGTRAP_SIGINFO): Define.
9629 (fbsd_nat_target): New class.
9630
9631 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9632 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9633 (amd64bsd_target): Delete.
9634 * amd64-bsd-nat.h: New file.
9635 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9636 "x86-bsd-nat.h".
9637 (amd64_fbsd_nat_target): New class.
9638 (the_amd64_fbsd_nat_target): New.
9639 (amd64fbsd_read_description): Refactor as method of
9640 amd64_fbsd_nat_target.
9641 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9642 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9643 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9644 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9645 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9646 (i386bsd_target): Delete.
9647 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9648 (i386bsd_fetch_inferior_registers)
9649 (i386bsd_store_inferior_registers): Declare.
9650 (i386_bsd_nat_target): New class.
9651 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9652 (the_i386_fbsd_nat_target): New.
9653 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9654 i386_fbsd_nat_target methods.
9655 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9656 (_initialize_i386fbsd_nat): Adjust to C++ification.
9657 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9658 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9659 (_initialize_x86_bsd_nat): Adjust to C++ification.
9660 * x86-bsd-nat.h: Include "x86-nat.h".
9661 (x86bsd_target): Delete declaration.
9662 (x86bsd_nat_target): New class.
9663
9664 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9665 (the_aarch64_fbsd_nat_target): New.
9666 (aarch64_fbsd_fetch_inferior_registers)
9667 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9668 aarch64_fbsd_nat_target.
9669 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9670 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9671 (the_alpha_bsd_nat_target): New.
9672 (alphabsd_fetch_inferior_registers)
9673 (alphabsd_store_inferior_registers): Refactor as
9674 alpha_bsd_nat_target methods.
9675 (_initialize_alphabsd_nat): Refactor as methods of
9676 alpha_bsd_nat_target.
9677 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9678 (the_amd64_nbsd_nat_target): New.
9679 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9680 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9681 (the_amd64_obsd_nat_target): New.
9682 (_initialize_amd64obsd_nat): Adjust to C++ification.
9683 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9684 (the_arm_fbsd_nat_target): New.
9685 (arm_fbsd_fetch_inferior_registers)
9686 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9687 (_initialize_arm_fbsd_nat): Refactor as methods of
9688 arm_fbsd_nat_target.
9689 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9690 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9691 (the_arm_netbsd_nat_target): New.
9692 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9693 arm_netbsd_nat_target.
9694 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9695 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9696 (the_hppa_nbsd_nat_target): New.
9697 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9698 hppa_nbsd_nat_target methods.
9699 (_initialize_hppanbsd_nat): Adjust to C++ification.
9700 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9701 (the_hppa_obsd_nat_target): New.
9702 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9703 methods of hppa_obsd_nat_target.
9704 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9705 add_target.
9706 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9707 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9708 add_target.
9709 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9710 (_initialize_i386obsd_nat): Use add_target.
9711 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9712 (the_m68k_bsd_nat_target): New.
9713 (m68kbsd_fetch_inferior_registers)
9714 (m68kbsd_store_inferior_registers): Refactor as methods of
9715 m68k_bsd_nat_target.
9716 (_initialize_m68kbsd_nat): Adjust to C++ification.
9717 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9718 (the_mips_fbsd_nat_target): New.
9719 (mips_fbsd_fetch_inferior_registers)
9720 (mips_fbsd_store_inferior_registers): Refactor as methods of
9721 mips_fbsd_nat_target.
9722 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9723 add_target.
9724 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9725 (the_mips_nbsd_nat_target): New.
9726 (mipsnbsd_fetch_inferior_registers)
9727 (mipsnbsd_store_inferior_registers): Refactor as methods of
9728 mips_nbsd_nat_target.
9729 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9730 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9731 (the_mips64_obsd_nat_target): New.
9732 (mips64obsd_fetch_inferior_registers)
9733 (mips64obsd_store_inferior_registers): Refactor as methods of
9734 mips64_obsd_nat_target.
9735 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9736 add_target.
9737 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9738 nbsd_nat_target.
9739 * nbsd-nat.h: Include "inf-ptrace.h".
9740 (nbsd_nat_target): New class.
9741 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9742 (obsd_wait): Refactor as methods of obsd_nat_target.
9743 (obsd_add_target): Delete.
9744 * obsd-nat.h: Include "inf-ptrace.h".
9745 (obsd_nat_target): New class.
9746 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9747 (the_ppc_fbsd_nat_target): New.
9748 (ppcfbsd_fetch_inferior_registers)
9749 (ppcfbsd_store_inferior_registers): Refactor as methods of
9750 ppc_fbsd_nat_target.
9751 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9752 add_target.
9753 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9754 (the_ppc_nbsd_nat_target): New.
9755 (ppcnbsd_fetch_inferior_registers)
9756 (ppcnbsd_store_inferior_registers): Refactor as methods of
9757 ppc_nbsd_nat_target.
9758 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9759 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9760 (the_ppc_obsd_nat_target): New.
9761 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9762 methods of ppc_obsd_nat_target.
9763 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9764 add_target.
9765 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9766 (the_sh_nbsd_nat_target): New.
9767 (shnbsd_fetch_inferior_registers)
9768 (shnbsd_store_inferior_registers): Refactor as methods of
9769 sh_nbsd_nat_target.
9770 (_initialize_shnbsd_nat): Adjust to C++ification.
9771 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9772 (inf_ptrace_xfer_partial): Delete.
9773 (sparc_xfer_partial, sparc_target): Delete.
9774 * sparc-nat.h (sparc_fetch_inferior_registers)
9775 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9776 (sparc_target): Delete function declaration.
9777 (sparc_target): New template class.
9778 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9779 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9780 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9781 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9782 add_target.
9783 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9784 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9785 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9786 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9787 add_target.
9788 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9789 (the_vax_bsd_nat_target): New.
9790 (vaxbsd_fetch_inferior_registers)
9791 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9792 methods.
9793 (_initialize_vaxbsd_nat): Adjust to C++ification.
9794
9795 * bsd-kvm.c (bsd_kvm_target): New class.
9796 (bsd_kvm_ops): Now a bsd_kvm_target.
9797 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9798 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9799 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9800 bsd_kvm_target.
9801 (bsd_kvm_return_one): Delete.
9802 (bsd_kvm_add_target): Adjust to C++ification.
9803
9804 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9805 (nto_procfs_target_procfs): New classes.
9806 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9807 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9808 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9809 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9810 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9811 (procfs_remove_hw_breakpoint, procfs_resume)
9812 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9813 (procfs_kill_inferior, procfs_store_registers)
9814 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9815 as methods of nto_procfs_target.
9816 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9817 (nto_native_ops): Delete.
9818 (procfs_open, procfs_native_open): Delete.
9819 (nto_native_ops): Now an nto_procfs_target_native.
9820 (init_procfs_targets): Adjust to C++ification.
9821 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9822 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9823 Refactor as methods of nto_procfs_target.
9824
9825 * go32-nat.c (go32_nat_target): New class.
9826 (the_go32_nat_target): New.
9827 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9828 (go32_store_registers, go32_xfer_partial, go32_files_info)
9829 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9830 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9831 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9832 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9833 (go32_target): Delete.
9834 (_initialize_go32_nat): Adjust to C++ification.
9835
9836 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9837 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9838 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9839 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9840 gnu_nat_target.
9841 (gnu_target): Delete.
9842 * gnu-nat.h (gnu_target): Delete.
9843 (gnu_nat_target): New class.
9844 * i386-gnu-nat.c (gnu_base_target): New.
9845 (i386_gnu_nat_target): New class.
9846 (the_i386_gnu_nat_target): New.
9847 (_initialize_i386gnu_nat): Adjust to C++ification.
9848
9849 2018-05-02 Pedro Alves <palves@redhat.com>
9850
9851 * bfd-target.c (target_bfd_xclose): Rename to ...
9852 (target_bfd_close): ... this.
9853 (target_bfd_reopen): Adjust.
9854 * target.c (target_close): Remove references to to_xclose.
9855 * target.h (target_ops::to_xclose): Delete.
9856 (target_ops::to_close): Update comments.
9857
9858 2018-05-02 Pedro Alves <palves@redhat.com>
9859
9860 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9861 "linux-nat.h".
9862 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9863 * inf-ptrace.c (inf_ptrace_register_u_offset)
9864 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9865 (inf_ptrace_store_register, inf_ptrace_store_registers)
9866 (inf_ptrace_trad_target): Move to ...
9867 * linux-nat-trad.c: ... this new file.
9868 * linux-nat-trad.h: New file.
9869 * linux-nat.c (linux_target_install_ops): Make extern.
9870 (linux_trad_target): Delete.
9871 * linux-nat.h (linux_trad_target): Delete declaration.
9872 (linux_target_install_ops): Declare.
9873 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9874 "linux-nat.h".
9875
9876 2018-05-02 Pedro Alves <palves@redhat.com>
9877
9878 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9879 procfs_target/add_target here.
9880 * procfs.c (procfs_target): Make static.
9881 (_initialize_procfs): Call add_target here.
9882 * procfs.h (struct target_ops): Remove forward declaration.
9883 (procfs_target): Remove declaration.
9884 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9885
9886 2018-05-02 Pedro Alves <palves@redhat.com>
9887
9888 * procfs.c (procfs_stopped_by_watchpoint)
9889 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9890 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9891 Forward declare.
9892 (procfs_use_watchpoints): Delete, move contents...
9893 (procfs_target): ... here.
9894 * procfs.h (procfs_use_watchpoints): Delete declaration.
9895 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9896 procfs_use_watchpoints.
9897 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9898 procfs_use_watchpoints.
9899
9900 2018-05-02 Tom Tromey <tom@tromey.com>
9901
9902 PR python/20084:
9903 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9904 and var_zuinteger_unlimited.
9905 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9906 and PARAM_ZUINTEGER_UNLIMITED.
9907 (set_parameter_value): Handle var_zuinteger and
9908 var_zuinteger_unlimited.
9909 (add_setshow_generic): Likewise.
9910 (parmpy_init): Likewise.
9911
9912 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9913
9914 PR rust/23124
9915 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9916 pointer is not null before dereferencing it.
9917
9918 2018-04-30 Tom Tromey <tom@tromey.com>
9919
9920 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9921 is_mi_like_p.
9922
9923 2018-04-30 Tom Tromey <tom@tromey.com>
9924
9925 * breakpoint.c (mention): Remove use of is_mi_like_p.
9926 (print_mention_ranged_breakpoint): Likewise.
9927 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9928 of is_mi_like_p.
9929
9930 2018-04-30 Tom Tromey <tom@tromey.com>
9931
9932 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9933
9934 2018-04-30 Tom Tromey <tom@tromey.com>
9935
9936 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9937 (info_spu_event_command): Remove some uses of is_mi_like_p.
9938
9939 2018-04-30 Tom Tromey <tom@tromey.com>
9940
9941 * python/py-framefilter.c (py_print_single_arg)
9942 (enumerate_locals, py_print_args, py_print_frame): Remove some
9943 uses of is_mi_like_p.
9944
9945 2018-04-30 Tom Tromey <tom@tromey.com>
9946
9947 * ui-out.c: Update.
9948 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9949 * ui-out.h (ui_out::is_mi_like_p): Now const.
9950 (ui_out::do_is_mi_like_p): Now const.
9951 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9952
9953 2018-04-30 Tom Tromey <tom@tromey.com>
9954
9955 * varobj.c (varobj_set_visualizer): Use new_reference.
9956 * python/python.c (gdbpy_decode_line): Use new_reference.
9957 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9958 new_reference.
9959
9960 2018-04-30 Tom Tromey <tom@tromey.com>
9961
9962 * varobj.c (install_new_value): Use new_reference.
9963 * value.h (value_incref): Return void. Swap intro comment with
9964 value_decref.
9965 * value.c (set_value_parent): Use new_reference.
9966 (value_incref): Return void. Update intro comment.
9967 (release_value): Use new_reference.
9968 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9969
9970 2018-04-30 Tom Tromey <tom@tromey.com>
9971
9972 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9973 * gdb_bfd.h (new_bfd_ref): Remove.
9974 (gdb_bfd_open): Update comment.
9975 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9976 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9977 (gdb_bfd_fdopenr): Use new_reference.
9978 * exec.c (exec_file_attach): Use new_reference.
9979
9980 2018-04-30 Tom Tromey <tom@tromey.com>
9981
9982 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9983 method.
9984
9985 2018-04-30 Tom Tromey <tom@tromey.com>
9986
9987 * jit.c (jit_read_code_entry): Use type_align.
9988 * i386-tdep.c (i386_gdbarch_init): Don't call
9989 set_gdbarch_long_long_align_bit.
9990 * gdbarch.sh: Remove long_long_align_bit.
9991 * gdbarch.c, gdbarch.h: Rebuild.
9992 * arc-tdep.c (arc_type_align): New function.
9993 (arc_gdbarch_init): Use arc_type_align. Don't call
9994 set_gdbarch_long_long_align_bit.
9995
9996 2018-04-30 Tom Tromey <tom@tromey.com>
9997
9998 * rust-lang.c (rust_type_alignment): Remove.
9999 (rust_composite_type): Use type_align.
10000
10001 2018-04-30 Tom Tromey <tom@tromey.com>
10002
10003 * NEWS: Mention Type.align.
10004 * python/py-type.c (typy_get_alignof): New function.
10005 (type_object_getset): Add "alignof".
10006
10007 2018-04-30 Tom Tromey <tom@tromey.com>
10008
10009 PR exp/17095:
10010 * NEWS: Update.
10011 * std-operator.def (UNOP_ALIGNOF): New operator.
10012 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10013 New.
10014 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10015 * c-lang.c (c_op_print_tab): Add alignof.
10016 * c-exp.y (ALIGNOF): New token.
10017 (exp): Add "ALIGNOF" production.
10018 (ident_tokens): Add _Alignof and alignof.
10019
10020 2018-04-30 Tom Tromey <tom@tromey.com>
10021
10022 * i386-tdep.c (i386_type_align): New function.
10023 (i386_gdbarch_init): Update.
10024 * gdbarch.sh (type_align): New method.
10025 * gdbarch.c, gdbarch.h: Rebuild.
10026 * arch-utils.h (default_type_align): Declare.
10027 * arch-utils.c (default_type_align): New function.
10028 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10029 (struct type) <align_log2>: New field.
10030 <instance_flags>: Now a bitfield.
10031 (TYPE_RAW_ALIGN): New macro.
10032 (type_align, type_raw_align, set_type_align): Declare.
10033 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10034 functions.
10035 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10036 (get_alignment, maybe_set_alignment): New functions.
10037 (read_structure_type, read_enumeration_type, read_array_type)
10038 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10039 (read_subrange_type, read_base_type): Set type alignment.
10040
10041 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10042
10043 * dwarf2read.c (read_index_from_section): Use bool.
10044
10045 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10046
10047 PR gdb/22950
10048 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10049 with #ifdef.
10050
10051 2018-04-29 John Reiser <jreiser@BitWagon.com>
10052
10053 PR build/22873
10054 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10055 last step, and do it atomically.
10056
10057 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10058
10059 * compile/compile-c-types.c (convert_int, convert_float):
10060 Update for C FE v1.
10061
10062 2018-04-27 Tom Tromey <tom@tromey.com>
10063
10064 PR rust/22545:
10065 * rust-lang.c (rust_inclusive_range_type_p): New function.
10066 (rust_range): Handle inclusive ranges.
10067 (rust_compute_range): Likewise.
10068 * rust-exp.y (struct rust_op) <inclusive>: New field.
10069 (DOTDOTEQ): New constant.
10070 (range_expr): Add "..=" productions.
10071 (operator_tokens): Add "..=" token.
10072 (ast_range): Add "inclusive" parameter.
10073 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10074 ranges.
10075 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10076 bounds values.
10077 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10078 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10079 Update comments.
10080 * expprint.c (print_subexp_standard): Handle new bounds values.
10081 (dump_subexp_body_standard): Likewise.
10082
10083 2018-04-27 Tom Tromey <tom@tromey.com>
10084
10085 * configure: Rebuild.
10086 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10087 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10088 "OVERRIDE".
10089 (class symbol_needs_eval_context): Likewise.
10090 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10091 (mock_mapped_index::symbol_name_at): Use "override". Remove
10092 "virtual".
10093 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10094 "override".
10095 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10096 * aarch64-tdep.c (instruction_reader::read): Use "override".
10097 (instruction_reader_test::read): Likewise.
10098 * arm-tdep.c (instruction_reader::read): Use "override".
10099 (instruction_reader_thumb::read): Likewise.
10100
10101 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10102
10103 PR remote/9665
10104 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10105 instead of remote_send.
10106 (remote_send): Remove.
10107
10108 2018-04-26 Pedro Alves <palves@redhat.com>
10109
10110 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10111 find_function_start_sal instead of find_pc_line.
10112
10113 2018-04-26 Pedro Alves <palves@redhat.com>
10114
10115 * breakpoint.c (set_breakpoint_location_function): Handle
10116 mst_data_gnu_ifunc.
10117 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10118 * elfread.c (elf_symtab_read): Give data symbols with
10119 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10120 (elf_rel_plt_read): Update comment.
10121 * linespec.c (convert_linespec_to_sals): Handle
10122 mst_data_gnu_ifunc.
10123 (minsym_found): Handle mst_data_gnu_ifunc.
10124 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10125 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10126 * parse.c (find_minsym_type_and_address): Handle
10127 mst_data_gnu_ifunc.
10128 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10129 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10130 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10131 comment.
10132 <mst_data_gnu_ifunc>: New enumerator.
10133
10134 2018-04-26 Pedro Alves <palves@redhat.com>
10135
10136 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10137 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10138 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10139 Handle it.
10140 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10141 (lookup_minimal_symbol_by_pc): Adjust.
10142 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10143 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10144 * minsyms.h (lookup_msym_prefer): New enum.
10145 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10146 parameter by a lookup_msym_prefer parameter.
10147
10148 2018-04-26 Pedro Alves <palves@redhat.com>
10149
10150 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10151 ends in "@plt" instead of looking at the symbol's section.
10152
10153 2018-04-26 Pedro Alves <palves@redhat.com>
10154
10155 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10156 all references.
10157 (find_pc_partial_function_gnu_ifunc): Rename to ...
10158 (find_pc_partial_function): ... this, and remove references to
10159 'is_gnu_ifunc_p'.
10160 (find_pc_partial_function): Delete old implementation.
10161 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10162
10163 2018-04-26 Pedro Alves <palves@redhat.com>
10164
10165 * linespec.c (struct bound_minimal_symbol_search_key): New.
10166 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10167 skip first line if we found a GNU ifunc minimal symbol by name.
10168 (compare_msymbols): Change parameters to work with a destructured
10169 lhs minsym.
10170 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10171 functions.
10172
10173 2018-04-26 Pedro Alves <palves@redhat.com>
10174
10175 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10176 ifunc targets here. Instead, if we have an ifunc minsym, use its
10177 address/name.
10178 (add_location_to_breakpoint): Store the minsym and the objfile in
10179 the breakpoint location.
10180 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10181 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10182 Record the minsym in the sal.
10183 * symtab.h (symtab_and_line) <msymbol>: New field.
10184
10185 2018-04-26 Pedro Alves <palves@redhat.com>
10186
10187 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10188 unless we actually resolved the ifunc.
10189
10190 2018-04-26 Pedro Alves <palves@redhat.com>
10191
10192 * c-exp.y (variable production): Prefer ifunc minsyms over
10193 regular function symbols.
10194 * symtab.c (find_gnu_ifunc): New function.
10195 * minsyms.h (lookup_msym_prefer): New enum.
10196 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10197 parameter by a lookup_msym_prefer parameter.
10198 * symtab.h (find_gnu_ifunc): New declaration.
10199
10200 2018-04-26 Pedro Alves <palves@redhat.com>
10201
10202 * blockframe.c (find_gnu_ifunc_target_type): New function.
10203 (find_function_type): New.
10204 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10205 return a value with a memory address.
10206 (eval_call): For calls to GNU ifunc functions, try to find the
10207 type of the target function from the type that the resolver
10208 returns.
10209 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10210 symbols.
10211 * infcall.c (find_function_return_type): Delete.
10212 (find_function_addr): Add 'function_type' parameter. For calls to
10213 GNU ifunc functions, try to find the type of the target function
10214 from the type that the resolver returns, and return it via
10215 FUNCTION_TYPE.
10216 (call_function_by_hand_dummy): Adjust to use the function type
10217 returned by find_function_addr.
10218 (find_function_addr): Add 'function_type' parameter and move
10219 description here.
10220 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10221 declarations.
10222
10223 2018-04-26 Pedro Alves <palves@redhat.com>
10224
10225 * c-exp.y (variable production): Skip finding an alias for ifunc
10226 symbols.
10227
10228 2018-04-26 Pedro Alves <palves@redhat.com>
10229
10230 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10231
10232 2018-04-25 Pedro Alves <palves@redhat.com>
10233
10234 * infcmd.c (kill_command): Print the pid as string, not the whole
10235 thread's ptid. Add comment. s/has been killed/killed/ in output
10236 message.
10237 * remote.c (remote_detach_1): Print the pid as string, not the
10238 whole thread's ptid.
10239
10240 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10241 Sergio Durigan Junior <sergiodj@redhat.com>
10242 Pedro Alves <palves@redhat.com>
10243
10244 * infcmd.c (kill_command): Print message when inferior has
10245 been killed.
10246 * inferior.c (print_inferior_events): Remove 'static'. Set as
10247 '1'.
10248 (add_inferior): Improve message printed when
10249 'print_inferior_events' is on.
10250 (exit_inferior): Remove message printed when
10251 'print_inferior_events' is on.
10252 (detach_inferior): Improve message printed when
10253 'print_inferior_events' is on.
10254 (initialize_inferiors): Use 'add_inferior_silent' to set
10255 'current_inferior_'.
10256 * inferior.h (print_inferior_events): Declare here as
10257 'extern'.
10258 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10259 '[Detaching...]' messages when 'print_inferior_events' is on.
10260 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10261 as prefix/suffix for messages. Remove periods. Fix erroneous
10262 'Detaching after fork from child...', replace it by '... from
10263 parent...'.
10264 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10265 prefix/suffix when printing 'Detaching...' messages. Print
10266 them when 'print_inferior_events' is on.
10267 * remote.c (remote_detach_1): Print message when detaching
10268 from inferior and '!is_fork_parent'.
10269
10270 2018-04-24 Tom Tromey <tom@tromey.com>
10271
10272 * cli-out.h: Reindent.
10273
10274 2018-04-24 Tom Tromey <tom@tromey.com>
10275
10276 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10277 (cli_ui_out::do_field_string): Use fputs_filtered.
10278 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10279
10280 2018-04-23 Tom Tromey <tom@tromey.com>
10281
10282 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10283 gdb::unique_xmalloc_ptr.
10284
10285 2018-04-23 Tom Tromey <tom@tromey.com>
10286
10287 * configure: Rebuild.
10288
10289 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10290
10291 PR gdb/23095
10292 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10293 prepare_for_testing. Set normal_bp to r_debug_state if target
10294 is bsd.
10295
10296 2018-04-21 Pedro Alves <palves@redhat.com>
10297 Rajendra SY <rajendra.sy@gmail.com>
10298
10299 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10300 * remote.c (extended_remote_attach): In all-stop mode, mark the
10301 thread as executing.
10302
10303 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10304
10305 * thread.c (thread_apply_all_command): Fix comment.
10306 (thread_command): Fix comment.
10307
10308 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10309
10310 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10311 parameter.
10312 * features/aarch64-core.c (create_feature_aarch64_core):
10313 Regenerate.
10314 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10315 Likewise.
10316 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10317 Likewise.
10318 * features/i386/32bit-avx512.c
10319 (create_feature_i386_32bit_avx512): Likewise.
10320 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10321 Likewise.
10322 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10323 Likewise.
10324 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10325 Likewise.
10326 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10327 Likewise.
10328 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10329 Likewise.
10330 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10331 Likewise.
10332 * features/i386/64bit-avx512.c
10333 (create_feature_i386_64bit_avx512): Likewise.
10334 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10335 Likewise.
10336 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10337 Likewise.
10338 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10339 Likewise.
10340 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10341 Likewise.
10342 * features/i386/64bit-segments.c
10343 (create_feature_i386_64bit_segments): Likewise.
10344 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10345 Likewise.
10346 * features/i386/x32-core.c
10347 (create_feature_i386_x32_core): Likewise.
10348 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10349 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10350 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10351 * target-descriptions.c: In generated code, don't pass xml
10352 filename.
10353
10354 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10355
10356 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10357 (print_xml_feature::visit_post): Likewise.
10358 (print_xml_feature::visit): Likewise.
10359 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10360 (print_xml_feature): Add new class.
10361 * regformats/regdat.sh: Null xmltarget on feature targets.
10362 * target-descriptions.c (struct target_desc): Add xmltarget.
10363 (maintenance_check_tdesc_xml_convert): Add unittest function.
10364 (tdesc_get_features_xml): Add function to get xml.
10365 (maintenance_check_xml_descriptions): Test xml generation.
10366 * xml-tdesc.c (string_read_description_xml): Add function.
10367 * xml-tdesc.h (string_read_description_xml): Add declaration.
10368
10369 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10370
10371 * features/Makefile: Add feature marker to targets with new style
10372 target descriptions.
10373 * regformats/aarch64.dat: Regenerate.
10374 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10375 * regformats/i386/amd64-avx-linux.dat: Likewise.
10376 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10377 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10378 * regformats/i386/amd64-linux.dat: Likewise.
10379 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10380 * regformats/i386/amd64.dat: Likewise.
10381 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10382 * regformats/i386/i386-avx-linux.dat: Likewise.
10383 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10384 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10385 * regformats/i386/i386-linux.dat: Likewise.
10386 * regformats/i386/i386-mmx-linux.dat: Likewise.
10387 * regformats/i386/i386-mpx-linux.dat: Likewise.
10388 * regformats/i386/i386.dat: Likewise.
10389 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10390 * regformats/i386/x32-avx-linux.dat: Likewise.
10391 * regformats/i386/x32-linux.dat: Likewise.
10392 * regformats/tic6x-c62x-linux.dat: Likewise.
10393 * regformats/tic6x-c64x-linux.dat: Likewise.
10394 * regformats/tic6x-c64xp-linux.dat: Likewise.
10395 * regformats/regdat.sh: Parse feature marker.
10396
10397 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10398
10399 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10400 (tdesc_osabi_name): Likewise.
10401 * target-descriptions.c (tdesc_architecture_name): Add new
10402 function.
10403 (tdesc_osabi_name): Likewise.
10404
10405 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10406
10407 * common/tdesc.c (tdesc_predefined_type): Move to here.
10408 (tdesc_named_type): Likewise.
10409 (tdesc_create_vector): Likewise.
10410 (tdesc_create_struct): Likewise.
10411 (tdesc_set_struct_size): Likewise.
10412 (tdesc_create_union): Likewise.
10413 (tdesc_create_flags): Likewise.
10414 (tdesc_create_enum): Likewise.
10415 (tdesc_add_field): Likewise.
10416 (tdesc_add_typed_bitfield): Likewise.
10417 (tdesc_add_bitfield): Likewise.
10418 (tdesc_add_flag): Likewise.
10419 (tdesc_add_enum_value): Likewise.
10420 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10421 (struct tdesc_type_vector): Likewise.
10422 (struct tdesc_type_field): Likewise.
10423 (struct tdesc_type_with_fields): Likewise.
10424 (tdesc_create_enum): Add declaration.
10425 (tdesc_add_typed_bitfield): Likewise.
10426 (tdesc_add_enum_value): Likewise.
10427 * target-descriptions.c (tdesc_type_field): Move from here.
10428 (tdesc_type_builtin): Likewise.
10429 (tdesc_type_vector): Likewise.
10430 (tdesc_type_with_fields): Likewise.
10431 (tdesc_predefined_types): Likewise.
10432 (tdesc_named_type): Likewise.
10433 (tdesc_create_vector): Likewise.
10434 (tdesc_create_struct): Likewise.
10435 (tdesc_set_struct_size): Likewise.
10436 (tdesc_create_union): Likewise.
10437 (tdesc_create_flags): Likewise.
10438 (tdesc_create_enum): Likewise.
10439 (tdesc_add_field): Likewise.
10440 (tdesc_add_typed_bitfield): Likewise.
10441 (tdesc_add_bitfield): Likewise.
10442 (tdesc_add_flag): Likewise.
10443 (tdesc_add_enum_value): Likewise.
10444 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10445 (tdesc_add_typed_bitfield): Likewise.
10446 (tdesc_add_enum_value): Likewise.
10447
10448 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10449
10450 * common/tdesc.c (tdesc_feature::accept): Move to here.
10451 (tdesc_feature::operator==): Likewise.
10452 (tdesc_create_reg): Likewise.
10453 * common/tdesc.h (tdesc_type_kind): Likewise.
10454 (struct tdesc_type): Likewise.
10455 (struct tdesc_feature): Likewise.
10456 * regformats/regdat.sh: Create a feature.
10457 * target-descriptions.c (tdesc_type_kind): Move from here.
10458 (tdesc_type): Likewise.
10459 (tdesc_type_up): Likewise.
10460 (tdesc_feature): Likewise.
10461 (tdesc_create_reg): Likewise.
10462
10463 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10464
10465 * Makefile.in: Add arch/tdesc.c
10466 * common/tdesc.c: New file.
10467 * common/tdesc.h (tdesc_element_visitor): Move to here.
10468 (tdesc_element): Likewise.
10469 (tdesc_reg): Likewise.
10470 (tdesc_reg_up): Likewise.
10471 * regformats/regdef.h (reg): Add offset to constructors.
10472 * target-descriptions.c (tdesc_element_visitor): Move from here.
10473 (tdesc_element): Likewise.
10474 (tdesc_reg): Likewise.
10475 (tdesc_reg_up): Likewise.
10476
10477 2018-04-17 Tom Tromey <tom@tromey.com>
10478
10479 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10480 discriminant field.
10481
10482 2018-04-17 Tom Tromey <tom@tromey.com>
10483
10484 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10485
10486 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10487
10488 * symtab.c (print_symbol_info): Skip printing filename and line
10489 number when `last' is NULL.
10490 (symtab_symbol_info): Use empty string instead of NULL for first
10491 invocation of print_symbol_info.
10492 (rbreak_command): Pass NULL to `last' parameter of
10493 print_symbol_info.
10494
10495 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10496
10497 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10498 instead of nullptr.
10499
10500 2018-04-16 Pedro Alves <palves@redhat.com>
10501
10502 * MAINTAINERS (sh): Remove.
10503 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10504 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10505 (ALLDEPFILES): Remove sh64-tdep.c.
10506 * NEWS: Mentions that support for SH-5/SH64 is removed.
10507 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10508 (sh*-*-openbsd*): Ditto.
10509 (sh64-*-elf*): Remove.
10510 (sh*): Remove.
10511 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10512 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10513 * sh-tdep.c: No longer include "sh64-tdep.h".
10514 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10515 * sh64-tdep.c, sh64-tdep.h: Remove files.
10516
10517 2018-04-16 Pedro Alves <palves@redhat.com>
10518
10519 * MAINTAINERS: Remove m88k.
10520 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10521 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10522 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10523 * NEWS: Mention that support for m88k was removed.
10524 * configure.host (m88*-*-*): Remove support.
10525 * configure.nat (m88k-*-*): Remove support.
10526 * configure.tgt (m88*-*-openbsd*): Remove.
10527 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10528
10529 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10530
10531 * configure.tgt (x86_tobjs): New variable.
10532 (amd64_tobjs, i386_tobjs): Use it.
10533
10534 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10535
10536 * symtab.c (print_symbol_info): Precede the symbol definition by
10537 the line number when available.
10538 * NEWS: Advertise this enhancement.
10539
10540 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10541
10542 * NEWS (New options): announce set/show record btrace cpu.
10543 * btrace.c: Include record-btrace.h.
10544 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10545 the vendor is unknown.
10546 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10547 Maybe overwrite the btrace configuration's cpu.
10548 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10549 (btrace_fetch): Add cpu parameter. Update callers.
10550 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10551 Maybe overwrite the btrace configuration's cpu. Skip enabling
10552 errata workarounds if the vendor is unknown.
10553 * python/py-record-btrace.c: Include record-btrace.h.
10554 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10555 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10556 * record-btrace.c (record_btrace_cpu_state_kind): New.
10557 (record_btrace_cpu): New.
10558 (set_record_btrace_cpu_cmdlist): New.
10559 (record_btrace_get_cpu): New.
10560 (require_btrace_thread, record_btrace_info)
10561 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10562 (cmd_set_record_btrace_cpu_none): New.
10563 (cmd_set_record_btrace_cpu_auto): New.
10564 (cmd_set_record_btrace_cpu): New.
10565 (cmd_show_record_btrace_cpu): New.
10566 (_initialize_record_btrace): Initialize set/show record btrace cpu
10567 commands.
10568 * record-btrace.h (record_btrace_get_cpu): New.
10569
10570 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10571
10572 * record.c (set_record_command): Fix typo in message.
10573
10574 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10575
10576 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10577
10578 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10579
10580 * infrun.c (process_event_stop_test): Call
10581 gdbarch_in_indirect_branch_thunk.
10582 * gdbarch.sh (in_indirect_branch_thunk): New.
10583 * gdbarch.c: Regenerated.
10584 * gdbarch.h: Regenerated.
10585 * x86-tdep.h: New.
10586 * x86-tdep.c: New.
10587 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10588 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10589 (ALLDEPFILES): Add x86-tdep.c.
10590 * arch-utils.h (default_in_indirect_branch_thunk): New.
10591 * arch-utils.c (default_in_indirect_branch_thunk): New.
10592 * i386-tdep: Include x86-tdep.h.
10593 (i386_in_indirect_branch_thunk): New.
10594 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10595 function.
10596 * amd64-tdep: Include x86-tdep.h.
10597 (amd64_in_indirect_branch_thunk): New.
10598 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10599
10600 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10601
10602 PR gdb/23053
10603 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10604 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10605 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10606 regression.
10607
10608 2018-04-12 Tom Tromey <tom@tromey.com>
10609
10610 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10611 (rust_evaluate_subexp): Likewise.
10612
10613 2018-04-12 Pedro Alves <palves@redhat.com>
10614
10615 * procfs.c (procfs_detach): Make forward declaration's prototype
10616 match definition's protototype.
10617 (proc_get_LDT_entry): Remove stale do_cleanups call.
10618
10619 2018-04-12 Pedro Alves <palves@redhat.com>
10620
10621 * target.h (target_ops::to_has_exited): Delete.
10622 (target_has_exited): Delete.
10623 * target-delegates.c: Regenerate.
10624
10625 2018-04-11 Pedro Alves <palves@redhat.com>
10626
10627 * target.c (fileio_fh_t::t): Add comment.
10628 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10629 (target_fileio_close): Handle a NULL target.
10630 (invalidate_fileio_fh): New.
10631 (target_close): Call it.
10632 * remote.c (remote_hostio_send_command): No longer check whether
10633 remote_desc is open.
10634
10635 2018-04-11 Pedro Alves <palves@redhat.com>
10636
10637 * target.c (fileio_fh_t): Make it a named struct instead of a
10638 typedef.
10639 (fileio_fh_t::is_closed): New method.
10640 (DEF_VEC_O (fileio_fh_t)): Remove.
10641 (fileio_fhandles): Now a std::vector.
10642 (is_closed_fileio_fh): Delete.
10643 (acquire_fileio_fd): Adjust. Rename parameters.
10644 (release_fileio_fd): Adjust.
10645 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10646 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10647 (target_fileio_close): Adjust.
10648
10649 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10650
10651 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10652 index.
10653
10654 2018-04-10 Pedro Alves <palves@redhat.com>
10655
10656 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10657 (scoped_finish_thread_state): New class.
10658 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10659 cleanup.
10660 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10661 (fetch_inferior_event, normal_stop): Likewise.
10662 * thread.c (finish_thread_state_cleanup): Delete.
10663
10664 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10665 Pedro Alves <palves@redhat.com>
10666
10667 * value.c: Include "selftest.h" and "common/array-view.h".
10668 (struct range) <operator ==>: New.
10669 (test_ranges_contain): New.
10670 (check_ranges_vector): New.
10671 (test_insert_into_bit_range_vector): New.
10672 (_initialize_values): Register selftests.
10673 * common/array-view.h (operator==, operator!=): New.
10674
10675 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10676
10677 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10678 an iterator.
10679 * inline-frame.c: Include <algorithm>.
10680 (struct inline_state): Add constructor.
10681 (inline_state_s): Remove.
10682 (DEF_VEC_O(inline_state_s)): Remove.
10683 (inline_states): Change type to std::vector.
10684 (find_inline_frame_state): Adjust to std::vector.
10685 (allocate_inline_frame_state): Remove.
10686 (clear_inline_frame_state): Adjust to std::vector.
10687 (skip_inline_frames): Adjust to std::vector.
10688
10689 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10690
10691 * tracepoint.h (struct trace_state_variable): Add constructor.
10692 <name>: Change type to std::string.
10693 * tracepoint.c (tsv_s): Remove.
10694 (DEF_VEC_O(tsv_s)): Remove.
10695 (tvariables): Change to std::vector.
10696 (create_trace_state_variable): Adjust to std::vector.
10697 (find_trace_state_variable): Likewise.
10698 (find_trace_state_variable_by_number): Likewise.
10699 (delete_trace_state_variable): Likewise.
10700 (trace_variable_command): Adjust to std::string.
10701 (delete_trace_variable_command): Likewise.
10702 (tvariables_info_1): Adjust to std::vector.
10703 (save_trace_state_variables): Likewise.
10704 (start_tracing): Likewise.
10705 (merge_uploaded_trace_state_variables): Adjust to std::vector
10706 and std::string.
10707 * target.h (struct target_ops)
10708 <to_download_trace_state_variable>: Pass reference to
10709 trace_state_variable.
10710 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10711 * target-delegates.c: Re-generate.
10712 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10713 (mi_tsv_deleted): Likewise.
10714 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10715 * remote.c (remote_download_trace_state_variable): Change
10716 pointer to reference and adjust.
10717 * make-target-delegates (parse_argtypes): Handle references.
10718 (write_function_header): Likewise.
10719 (munge_type): Likewise.
10720
10721 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10722
10723 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10724 string_view-selftests.c.
10725 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10726 testsuite.
10727 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10728 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10729 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10730 * unittests/basic_string_view/element_access/char/1.cc:
10731 Likewise.
10732 * unittests/basic_string_view/element_access/char/empty.cc:
10733 Likewise.
10734 * unittests/basic_string_view/element_access/char/front_back.cc:
10735 Likewise.
10736 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10737 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10738 Likewise.
10739 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10740 Likewise.
10741 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10742 Likewise.
10743 * unittests/basic_string_view/operations/compare/char/1.cc:
10744 Likewise.
10745 * unittests/basic_string_view/operations/compare/char/13650.cc:
10746 Likewise.
10747 * unittests/basic_string_view/operations/copy/char/1.cc:
10748 Likewise.
10749 * unittests/basic_string_view/operations/data/char/1.cc:
10750 Likewise.
10751 * unittests/basic_string_view/operations/find/char/1.cc:
10752 Likewise.
10753 * unittests/basic_string_view/operations/find/char/2.cc:
10754 Likewise.
10755 * unittests/basic_string_view/operations/find/char/3.cc:
10756 Likewise.
10757 * unittests/basic_string_view/operations/find/char/4.cc:
10758 Likewise.
10759 * unittests/basic_string_view/operations/rfind/char/1.cc:
10760 Likewise.
10761 * unittests/basic_string_view/operations/rfind/char/2.cc:
10762 Likewise.
10763 * unittests/basic_string_view/operations/rfind/char/3.cc:
10764 Likewise.
10765 * unittests/basic_string_view/operations/substr/char/1.cc:
10766 Likewise.
10767 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10768 * unittests/string_view-selftests.c: New file.
10769
10770 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10771
10772 * unittests/basic_string_view/capacity/1.cc: New file.
10773 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10774 * unittests/basic_string_view/cons/char/1.cc: New file.
10775 * unittests/basic_string_view/cons/char/2.cc: New file.
10776 * unittests/basic_string_view/cons/char/3.cc: New file.
10777 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10778 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10779 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10780 * unittests/basic_string_view/element_access/char/1.cc: New file.
10781 * unittests/basic_string_view/element_access/char/2.cc: New file.
10782 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10783 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10784 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10785 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10786 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10787 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10788 * unittests/basic_string_view/include.cc: New file.
10789 * unittests/basic_string_view/inserters/char/1.cc: New file.
10790 * unittests/basic_string_view/inserters/char/2.cc: New file.
10791 * unittests/basic_string_view/inserters/char/3.cc: New file.
10792 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10793 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10794 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10795 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10796 * unittests/basic_string_view/literals/types.cc: New file.
10797 * unittests/basic_string_view/literals/values.cc: New file.
10798 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10799 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10800 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10801 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10802 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10803 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10804 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10805 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10806 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10807 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10808 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10809 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10810 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10811 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10812 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10813 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10814 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10815 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10816 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10817 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10818 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10819 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10820 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10821 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10822 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10823 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10824 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10825 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10826 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10827 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10828 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10829 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10830 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10831 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10832 * unittests/basic_string_view/operators/char/2.cc: New file.
10833 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10834 * unittests/basic_string_view/range_access/char/1.cc: New file.
10835 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10836 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10837 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10838 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10839 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10840 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10841 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10842 * unittests/basic_string_view/typedefs.cc: New file.
10843 * unittests/basic_string_view/types/1.cc: New file.
10844
10845 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10846
10847 * common/gdb_string_view.h: Remove libstdc++ implementation
10848 details, adjust to gdb reality.
10849 * common/gdb_string_view.tcc: Likewise.
10850 * cli/cli-script.c (struct string_view): Remove.
10851 (user_args) <m_args>: Change element type to gdb::string_view.
10852 (user_args::insert_args): Adjust.
10853
10854 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10855
10856 * common/gdb_string_view.h: New file.
10857 * common/gdb_string_view.tcc: New file.
10858
10859 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10860
10861 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10862 * configure: Re-generate.
10863
10864 2018-04-09 Pedro Alves <palves@redhat.com>
10865
10866 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10867 (set_target_gdbarch): Call
10868 gdb::observers::architecture_changed.notify instead of
10869 observer_notify_architecture_changed.
10870
10871 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10872
10873 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10874 (do_restore_current_traceframe_cleanup): Remove.
10875 (restore_current_traceframe_cleanup_dtor): Remove.
10876 (make_cleanup_restore_current_traceframe): Remove.
10877 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10878 New.
10879 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10880 * infrun.c (fetch_inferior_event): Use
10881 scoped_restore_current_traceframe.
10882
10883 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10884
10885 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10886 Remove.
10887 <n_allocated_type_units>: Remove.
10888 <all_type_units>: Change to std::vector.
10889 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10890 to std::vector change.
10891 (dwarf2_per_objfile::get_cutu): Likewise.
10892 (dwarf2_per_objfile::get_tu): Likewise.
10893 (create_signatured_type_table_from_index): Likewise.
10894 (create_signatured_type_table_from_debug_names): Likewise.
10895 (dw2_symtab_iter_next): Likewise.
10896 (dw2_print_stats): Likewise.
10897 (dw2_expand_all_symtabs): Likewise.
10898 (dw2_expand_marked_cus): Likewise.
10899 (dw2_debug_names_iterator::next): Likewise.
10900 (dwarf2_initialize_objfile): Likewise.
10901 (add_signatured_type_cu_to_table): Likewise.
10902 (create_all_type_units): Likewise.
10903 (add_type_unit): Likewise.
10904 (struct tu_abbrev_offset): Add constructor.
10905 (build_type_psymtabs_1): Adjust to std::vector change.
10906 (print_tu_stats): Likewise.
10907 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10908 (write_debug_names): Likewise.
10909
10910 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10911
10912 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10913 Make an std::vector.
10914 <n_comp_units>: Remove.
10915 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10916 to std::vector change.
10917 (dwarf2_per_objfile::get_cutu): Likewise.
10918 (dwarf2_per_objfile::get_cu): Likewise.
10919 (create_cus_from_index): Likewise.
10920 (create_addrmap_from_index): Likewise.
10921 (create_addrmap_from_aranges): Likewise.
10922 (dwarf2_read_index): Likewise.
10923 (dw2_find_last_source_symtab): Likewise.
10924 (dw2_map_symtabs_matching_filename): Likewise.
10925 (dw2_symtab_iter_next): Likewise.
10926 (dw2_print_stats): Likewise.
10927 (dw2_expand_all_symtabs): Likewise.
10928 (dw2_expand_symtabs_with_fullname): Likewise.
10929 (dw2_expand_marked_cus): Likewise.
10930 (dw2_map_symbol_filenames): Likewise.
10931 (create_cus_from_debug_names): Likewise.
10932 (dwarf2_read_debug_names): Likewise.
10933 (dw2_debug_names_iterator::next): Likewise.
10934 (dwarf2_initialize_objfile): Likewise.
10935 (set_partial_user): Likewise.
10936 (dwarf2_build_psymtabs_hard): Likewise.
10937 (read_comp_units_from_section): Remove arguments, adjust to
10938 std::vector change.
10939 (create_all_comp_units): Adjust to std::vector and
10940 read_comp_units_from_section changes.
10941 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10942 change.
10943 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10944 (psyms_seen_size): Likewise.
10945 (write_gdbindex): Likewise.
10946 (write_debug_names): Likewise.
10947
10948 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10949
10950 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10951 with dwarf2_per_objfile.
10952 (create_cus_from_index): Likewise.
10953 (create_signatured_type_table_from_index): Likewise.
10954 (dwarf2_read_index): Likewise.
10955 (dwarf2_initialize_objfile): Likewise.
10956 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10957 per_cu rather than get_dwarf2_per_objfile.
10958
10959 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10960
10961 * dwarf2read.h (struct signatured_type): Forward declare.
10962 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10963 New methods.
10964 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10965 (dw2_get_cutu): ...this.
10966 (dwarf2_per_objfile::get_cu): Rename from...
10967 (dw2_get_cu): ...this.
10968 (dwarf2_per_objfile::get_tu): New.
10969 (create_addrmap_from_index): Adjust.
10970 (create_addrmap_from_aranges): Adjust.
10971 (dw2_find_last_source_symtab): Adjust.
10972 (dw2_map_symtabs_matching_filename): Adjust.
10973 (dw2_symtab_iter_next): Adjust.
10974 (dw2_print_stats): Adjust.
10975 (dw2_expand_all_symtabs): Adjust.
10976 (dw2_expand_symtabs_with_fullname): Adjust.
10977 (dw2_expand_marked_cus): Adjust.
10978 (dw_expand_symtabs_matching_file_matcher): Adjust.
10979 (dw2_map_symbol_filenames): Adjust.
10980 (dw2_debug_names_iterator::next): Adjust.
10981 (dwarf2_initialize_objfile): Adjust.
10982 (set_partial_user): Adjust.
10983 (dwarf2_build_psymtabs_hard): Adjust.
10984
10985 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10986
10987 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10988 Remove unused variables.
10989 (dw2_map_symtabs_matching_filename): Likewise.
10990 (dwarf2_record_block_ranges): Likewise.
10991 (dwarf2_read_addr_index): Likewise.
10992 (follow_die_offset): Likewise.
10993
10994 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10995
10996 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10997 to symbol_file_add_main.
10998
10999 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11000
11001 PR mi/22299
11002 * mi/mi-console.c (do_fputc_async_safe): New.
11003 (mi_console_file::write_async_safe): New.
11004 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11005 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11006 New.
11007 * ui-file.c (ui_file::putstrn): Adjust call to
11008 fputstrn_unfiltered.
11009 * utils.c (printchar): Replace do_fputs and do_fprintf
11010 parameters by do_fputc.
11011 (fputstr_filtered): Adjust call to printchar.
11012 (fputstr_unfiltered): Likewise.
11013 (fputstrn_filtered): Likewise.
11014 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11015 printchar.
11016 * utils.h (do_fputc_ftype): New typedef.
11017 (fputstrn_unfiltered): Add do_fputc parameter.
11018
11019 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11020
11021 * regformats/i386/i386-avx.dat: Remove.
11022
11023 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11024
11025 PR gdb/22979
11026 * amd64-tdep.c (amd64_none_init_abi): New function.
11027 (amd64_x32_none_init_abi): New function.
11028 (_initialize_amd64_tdep): Register handlers for x86-64 and
11029 x64_32 with GDB_OSABI_NONE.
11030 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11031 GDB_OSABI_NONE osabi.
11032
11033 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11034
11035 PR gdb/22980
11036 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11037 GDB_OSABI_NONE.
11038 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11039 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11040
11041 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11042
11043 * common/byte-vector.h (char_vector): New type.
11044 * target.h (target_read_alloc): Return
11045 gdb::optional<byte_vector>.
11046 (target_read_stralloc): Return gdb::optional<char_vector>.
11047 (target_get_osdata): Return gdb::optional<char_vector>.
11048 * target.c (target_read_alloc_1): Templatize. Replacement
11049 manual memory management with vector.
11050 (target_read_alloc): Change return type, adjust.
11051 (target_read_stralloc): Change return type, adjust.
11052 (target_get_osdata): Change return type, adjust.
11053 * auxv.c (struct auxv_info) <length>: Remove.
11054 <data>: Change type to gdb::optional<byte_vector>.
11055 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11056 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11057 (target_auxv_search): Adjust.
11058 (fprint_target_auxv): Adjust.
11059 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11060 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11061 (linux_make_corefile_notes): Adjust.
11062 * osdata.c (get_osdata): Adjust.
11063 * remote.c (remote_get_threads_with_qxfer): Adjust.
11064 (remote_memory_map): Adjust.
11065 (remote_traceframe_info): Adjust.
11066 (btrace_read_config): Adjust.
11067 (remote_read_btrace): Adjust.
11068 (remote_pid_to_exec_file): Adjust.
11069 * solib-aix.c (solib_aix_get_library_list): Adjust.
11070 * solib-dsbt.c (decode_loadmap): Don't free buf.
11071 (dsbt_get_initial_loadmaps): Adjust.
11072 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11073 * solib-target.c (solib_target_current_sos): Adjust.
11074 * tracepoint.c (sdata_make_value): Adjust.
11075 * xml-support.c (xinclude_start_include): Adjust.
11076 (xml_fetch_content_from_file): Adjust.
11077 * xml-support.h (xml_fetch_another): Change return type.
11078 (xml_fetch_content_from_file): Change return type.
11079 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11080 * xml-tdesc.c (file_read_description_xml): Adjust.
11081 (fetch_available_features_from_target): Change return type.
11082 (target_fetch_description_xml): Adjust.
11083 (target_read_description_xml): Adjust.
11084
11085 2018-04-06 Tom Tromey <tom@tromey.com>
11086
11087 * value.c (~value): Update.
11088 (struct value) <contents>: Now unique_xmalloc_ptr.
11089 (value_contents_bits_eq, allocate_value_contents)
11090 (value_contents_raw, value_contents_all_raw)
11091 (value_contents_for_printing, value_contents_for_printing_const)
11092 (set_value_enclosing_type): Update.
11093
11094 2018-04-06 Tom Tromey <tom@tromey.com>
11095
11096 * value.c (range_s): Remove typedef, VEC.
11097 (struct range): Add operator<.
11098 (range_lessthan): Remove.
11099 (ranges_contain): Change type.
11100 (~value): Update.
11101 (struct value) <unavailable, optimized_out>: Now std::vector.
11102 (value_entirely_available)
11103 (value_entirely_covered_by_range_vector)
11104 (value_entirely_unavailable, value_entirely_optimized_out):
11105 Update.
11106 (insert_into_bit_range_vector): Change argument type.
11107 (find_first_range_overlap): Likewise.
11108 (struct ranges_and_idx, value_contents_bits_eq)
11109 (require_not_optimized_out, require_available): Update.
11110 (ranges_copy_adjusted): Change argument types.
11111 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11112
11113 2018-04-06 Tom Tromey <tom@tromey.com>
11114
11115 * value.c (~value): Update.
11116 (struct value) <parent>: Now a value_ref_ptr.
11117 (value_parent, set_value_parent, value_address, value_copy):
11118 Update.
11119
11120 2018-04-06 Tom Tromey <tom@tromey.com>
11121
11122 * value.c (struct value): Add constructor, destructor, and member
11123 initializers.
11124 (allocate_value_lazy, value_decref): Update.
11125
11126 2018-04-06 Tom Tromey <tom@tromey.com>
11127
11128 * value.c (struct value) <released, next>: Remove.
11129 (all_values): Now a std::vector.
11130 (allocate_value_lazy): Update.
11131 (value_next): Remove.
11132 (value_mark, value_free_to_mark, release_value)
11133 (value_release_to_mark): Update.
11134
11135 2018-04-06 Tom Tromey <tom@tromey.com>
11136
11137 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11138 (free_value_chain): Remove.
11139 * value.c (free_value_chain): Remove.
11140 (value_release_to_mark): Return a std::vector.
11141 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11142 std::vector.
11143 (check_condition): Update.
11144 * eval.c (fetch_subexp_value): Change "val_chain" to a
11145 std::vector.
11146 * breakpoint.c (update_watchpoint): Update.
11147 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11148
11149 2018-04-06 Tom Tromey <tom@tromey.com>
11150
11151 * value.h (free_all_values): Remove.
11152 * value.c (free_all_values): Remove.
11153
11154 2018-04-06 Tom Tromey <tom@tromey.com>
11155
11156 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11157 (value_history_chain, value_history_count): Remove.
11158 (value_history): New global.
11159 (record_latest_value, access_value_history, show_values)
11160 (preserve_values): Update.
11161
11162 2018-04-06 Tom Tromey <tom@tromey.com>
11163
11164 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11165 * varobj.c (varobj_set_display_format, varobj_set_value)
11166 (install_default_visualizer, construct_visualizer)
11167 (install_new_value, ~varobj, varobj_get_value_type)
11168 (my_value_of_variable, varobj_editable_p): Update.
11169 * c-varobj.c (c_describe_child, c_value_of_variable)
11170 (cplus_number_of_children, cplus_describe_child): Update.
11171 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11172 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11173 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11174
11175 2018-04-06 Tom Tromey <tom@tromey.com>
11176
11177 * printcmd.c (last_examine_address): Change type to
11178 value_ref_ptr.
11179 (do_examine, x_command): Update.
11180
11181 2018-04-06 Tom Tromey <tom@tromey.com>
11182
11183 * value.c (release_value): Update.
11184 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11185 (struct bpstats) <val>: Now a value_ref_ptr.
11186 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11187 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11188 (~watchpoint, print_it_watchpoint, watch_command_1)
11189 (invalidate_bp_value_on_memory_change): Update.
11190
11191 2018-04-06 Tom Tromey <tom@tromey.com>
11192
11193 * varobj.c (varobj_clear_saved_item)
11194 (update_dynamic_varobj_children, install_new_value, ~varobj):
11195 Update.
11196 * value.h (value_incref): Move declaration earlier.
11197 (value_decref): Rename from value_free.
11198 (struct value_ref_policy): New.
11199 (value_ref_ptr): New typedef.
11200 (struct value_deleter): Remove.
11201 (gdb_value_up): Remove typedef.
11202 (release_value): Change return type.
11203 (release_value_or_incref): Remove.
11204 * value.c (set_value_parent): Update.
11205 (value_incref): Change return type.
11206 (value_decref): Rename from value_free.
11207 (value_free_to_mark, free_all_values, free_value_chain): Update.
11208 (release_value): Return value_ref_ptr.
11209 (release_value_or_incref): Remove.
11210 (record_latest_value, set_internalvar, clear_internalvar):
11211 Update.
11212 * stack.c (info_frame_command): Don't call value_free.
11213 * python/py-value.c (valpy_dealloc, valpy_new)
11214 (value_to_value_object): Update.
11215 * printcmd.c (do_examine): Update.
11216 * opencl-lang.c (lval_func_free_closure): Update.
11217 * mi/mi-main.c (register_changed_p): Don't call value_free.
11218 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11219 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11220 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11221 value_free.
11222 * guile/scm-value.c (vlscm_free_value_smob)
11223 (vlscm_scm_from_value): Update.
11224 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11225 (frame_unwind_register_unsigned, get_frame_register_bytes)
11226 (put_frame_register_bytes): Don't call value_free.
11227 * findvar.c (address_from_register): Don't call value_free.
11228 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11229 * dwarf2loc.c (entry_data_value_free_closure)
11230 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11231 (dwarf2_evaluate_loc_desc_full): Update.
11232 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11233 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11234 (~watchpoint, watch_command_1)
11235 (invalidate_bp_value_on_memory_change): Update.
11236 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11237
11238 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11239
11240 PR gdb/23022
11241 * warning.m4: Add -Wno-error=deprecated-register.
11242 * configure: Re-generate.
11243
11244 2018-04-05 Tom Tromey <tom@tromey.com>
11245
11246 * linespec.h: Remove include of "vec.h".
11247
11248 2018-04-05 Tom Tromey <tom@tromey.com>
11249
11250 * linespec.c (typep): Remove typedef.
11251 (find_methods, find_superclass_methods): Take a std::vector.
11252 (find_method): Use std::vector.
11253
11254 2018-04-05 Tom Tromey <tom@tromey.com>
11255
11256 * utils.c (compare_strings): Remove.
11257 * utils.h (compare_strings): Remove.
11258 * objc-lang.h (find_imps): Update.
11259 * objc-lang.c (find_methods): Take a std::vector.
11260 (uniquify_strings, find_imps): Likewise.
11261 * linespec.c (find_methods): Take a std::vector.
11262 (decode_objc): Use std::vector.
11263 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11264 a std::vector.
11265 (find_method, find_function_symbols): Use std::vector.
11266
11267 2018-04-05 Tom Tromey <tom@tromey.com>
11268
11269 * completer.c (completion_tracker::completion_tracker): Remove
11270 cast.
11271 (completion_tracker::discard_completions): Likewise.
11272 * breakpoint.c (ambiguous_names_p): Remove cast.
11273 * ada-lang.c (_initialize_ada_language): Remove cast.
11274 * utils.h (streq): Update.
11275 (streq_hash): Add new declaration.
11276 * utils.c (streq): Return bool.
11277 (streq_hash): New function.
11278
11279 2018-04-05 Tom Tromey <tom@tromey.com>
11280
11281 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11282 Remove a string copy.
11283
11284 2018-04-05 Tom Tromey <tom@tromey.com>
11285
11286 * linespec.c (filter_results): Use std::vector.
11287 (decode_line_2, decode_line_full): Update.
11288
11289 2018-04-05 Tom Tromey <tom@tromey.com>
11290
11291 * linespec.c (canonical_to_fullform): Return std::string.
11292 (filter_results): Update.
11293 (struct decode_line_2_item): Add constructor.
11294 <fullform, displayform>: Now std::string.
11295 (decode_line_2_compare_items): Now a std::sort comparator.
11296 (decode_line_2): Update.
11297
11298 2018-04-05 Tom Tromey <tom@tromey.com>
11299
11300 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11301 (unexpected_linespec_error): Update.
11302 (linespec_parse_basic, parse_linespec): Update.
11303
11304 2018-04-05 Tom Tromey <tom@tromey.com>
11305
11306 * linespec.c (linespec_parse_basic): Reindent.
11307
11308 2018-04-05 Tom Tromey <tom@tromey.com>
11309
11310 * minsyms.h (iterate_over_minimal_symbols): Update.
11311 * minsyms.c (iterate_over_minimal_symbols): Take a
11312 gdb::function_view.
11313 * linespec.c (struct collect_minsyms): Remove.
11314 (compare_msyms): Now a std::sort comparator.
11315 (add_minsym): Add parameters.
11316 (search_minsyms_for_name): Update. Use std::vector.
11317
11318 2018-04-03 Tom Tromey <tom@tromey.com>
11319
11320 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11321 gdb::byte_vector.
11322
11323 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11324
11325 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11326
11327 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11328
11329 PR gdb/16959
11330 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11331 printing static type.
11332
11333 2018-04-01 Tom Tromey <tom@tromey.com>
11334
11335 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11336 (rs6000_xfer_shared_libraries): Update.
11337
11338 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11339
11340 * common/gdb_vecs.h (char_ptr): Remove.
11341 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11342
11343 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11344
11345 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11346 with std::vector.
11347 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11348
11349 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11350
11351 * tracepoint.h (struct uploaded_tp): Initialize fields.
11352 <actions, step_actions, cmd_strings>: Change type to
11353 std::vector<char *>.
11354 * tracepoint.c (get_uploaded_tp): Allocate with new.
11355 (free_uploaded_tps): Free with delete.
11356 (parse_tracepoint_definition): Adjust to std::vector change.
11357 * breakpoint.c (read_uploaded_action): Likewise.
11358 (create_tracepoint_from_upload): Likewise.
11359 * ctf.c (ctf_write_uploaded_tp): Likewise.
11360 (SET_ARRAY_FIELD): Likewise.
11361 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11362
11363 2018-03-30 Tom Tromey <tom@tromey.com>
11364
11365 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11366 std::unique_ptr.
11367 (svr4_keep_data_in_core): Update.
11368 (svr4_read_so_list): Update.
11369
11370 2018-03-30 Tom Tromey <tom@tromey.com>
11371
11372 * windows-nat.c (handle_output_debug_string, handle_exception):
11373 Update.
11374 * target.h (target_read_string): Update.
11375 * target.c (target_read_string): Change "string" to
11376 unique_xmalloc_ptr.
11377 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11378 Update.
11379 * solib-frv.c (frv_current_sos): Update.
11380 * solib-dsbt.c (dsbt_current_sos): Update.
11381 * solib-darwin.c (darwin_current_sos): Update.
11382 * linux-thread-db.c (inferior_has_bug): Update.
11383 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11384 Update. Remove alloca.
11385 * ada-lang.c (ada_main_name): Update.
11386
11387 2018-03-30 Tom Tromey <tom@tromey.com>
11388
11389 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11390 (struct dwo_file_deleter): New.
11391 (dwo_file_up): New typedef.
11392 (open_and_init_dwo_file): Use dwo_file_up.
11393 (free_dwo_file_cleanup): Remove.
11394
11395 2018-03-30 Tom Tromey <tom@tromey.com>
11396
11397 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11398 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11399
11400 2018-03-30 Tom Tromey <tom@tromey.com>
11401
11402 * dwarf2read.c (class free_cached_comp_units): New class.
11403 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11404 (free_cached_comp_units): Remove function.
11405
11406 2018-03-30 Tom Tromey <tom@tromey.com>
11407
11408 * utils.h (make_cleanup_unpush_target): Remove.
11409 * inf-ptrace.c (struct target_unpusher): New.
11410 (target_unpush_up) New typedef.
11411 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11412 target_unpush_up.
11413 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11414
11415 2018-03-27 Tom Tromey <tom@tromey.com>
11416
11417 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11418
11419 2018-03-27 Pedro Alves <palves@redhat.com>
11420 Tom Tromey <tom@tromey.com>
11421
11422 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11423 destructor. Now a class.
11424 (gdb_readline_wrapper_cleanup): Remove function.
11425 (gdb_readline_wrapper): Remove cleanups.
11426
11427 2018-03-27 Tom Tromey <tom@tromey.com>
11428
11429 * typeprint.h (struct type_print_options) <local_typedefs,
11430 global_typedefs>: Remove "struct" keyword.
11431 (class typedef_hash_table): New class.
11432 (recursively_update_typedef_hash, add_template_parameters)
11433 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11434 (find_typedef_in_hash): Don't declare.
11435 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11436 (typedef_hash_table::recursively_update): Rename from
11437 recursively_update_typedef_hash. Now a member.
11438 (typedef_hash_table::add_template_parameters): Rename from
11439 add_template_parameters. Now a member.
11440 (typedef_hash_table::typedef_hash_table): Now a constructor;
11441 rename from create_typedef_hash.
11442 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11443 rename from free_typedef_hash.
11444 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11445 (do_free_global_table): Remove.
11446 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11447 from copy_type_recursive.
11448 (create_global_typedef_table): Remove.
11449 (typedef_hash_table::find_global_typedef): Now a member of
11450 typedef_hash_table.
11451 (typedef_hash_table::find_typedef): Rename from
11452 find_typedef_in_hash; now a member.
11453 (whatis_exp): Update.
11454 * extension.h (struct ext_lang_type_printers): Add constructor and
11455 destructor.
11456 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11457 declare.
11458 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11459 Now a constructor; rename from start_ext_lang_type_printers.
11460 (ext_lang_type_printers): Now a destructor; rename from
11461 free_ext_lang_type_printers.
11462 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11463 Update.
11464 (c_type_print_base_struct_union): Update. Remove cleanups.
11465
11466 2018-03-27 Tom Tromey <tom@tromey.com>
11467
11468 * dwarf-index-write.c: Include <cmath>.
11469
11470 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11471
11472 * NEWS: Add entry describing new "set|show varsize-limit" command.
11473 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11474 command.
11475 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11476 "set variable".
11477
11478 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11479
11480 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11481 dwarf-index-write.c
11482 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11483 * dwarf-index-common.c: New file.
11484 * dwarf-index-common.h: New file.
11485 * dwarf-index-write.c: New file.
11486 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11487 (struct dwarf2_section_info): Move from here.
11488 (dwarf2_section_info_def): Likewise.
11489 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11490 (offset_type): Likewise.
11491 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11492 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11493 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11494 (byte_swap): Likewise.
11495 (MAYBE_SWAP): Likewise.
11496 (dwarf2_per_cu_ptr): Likewise.
11497 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11498 (struct tu_stats): Likewise.
11499 (struct dwarf2_per_objfile): Likewise.
11500 (struct dwarf2_per_cu_data): Likewise.
11501 (struct signatured_type): Likewise.
11502 (sig_type_ptr): Likewise.
11503 (DEF_VEC_P (sig_type_ptr)): Likewise.
11504 (INDEX4_SUFFIX): Likewise.
11505 (INDEX5_SUFFIX): Likewise.
11506 (DEBUG_STR_SUFFIX): Likewise.
11507 (dwarf2_read_section): Make non-static.
11508 (mapped_index_string_hash): Move from here.
11509 (dwarf5_djb_hash): Likewise.
11510 (file_write): Likewise.
11511 (class data_buf): Likewise.
11512 (struct symtab_index_entry): Likewise.
11513 (struct mapped_symtab): Likewise.
11514 (find_slot): Likewise.
11515 (hash_expand): Likewise.
11516 (add_index_entry): Likewise.
11517 (uniquify_cu_indices): Likewise.
11518 (class c_str_view): Likewise.
11519 (class c_str_view_hasher): Likewise.
11520 (class vector_hasher): Likewise.
11521 (write_hash_table): Likewise.
11522 (psym_index_map): Likewise.
11523 (struct addrmap_index_data): Likewise.
11524 (add_address_entry): Likewise.
11525 (add_address_entry_worker): Likewise.
11526 (write_address_map): Likewise.
11527 (symbol_kind): Likewise.
11528 (write_psymbols): Likewise.
11529 (struct signatured_type_index_data): Likewise.
11530 (write_one_signatured_type): Likewise.
11531 (recursively_count_psymbols): Likewise.
11532 (recursively_write_psymbols): Likewise.
11533 (class debug_names): Likewise.
11534 (check_dwarf64_offsets): Likewise.
11535 (psyms_seen_size): Likewise.
11536 (write_gdbindex): Likewise.
11537 (write_debug_names): Likewise.
11538 (assert_file_size): Likewise.
11539 (write_psymtabs_to_index): Likewise.
11540 (save_gdb_index_command): Likewise.
11541 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11542 command.
11543 * dwarf2read.h: New file.
11544
11545 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11546
11547 PR gdb/22670
11548 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11549 symbol name if the CU's language stores symbol names in linkage
11550 format.
11551 * language.h (struct language_defn)
11552 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11553 all instances of this struct.
11554
11555 2018-03-26 Tom Tromey <tom@tromey.com>
11556
11557 * stack.c (backtrace_command_1): Remove verbose code.
11558
11559 2018-03-26 Tom Tromey <tom@tromey.com>
11560
11561 * python/py-framefilter.c (py_print_type): Don't catch
11562 exceptions. Return void.
11563 (py_print_value): Likewise.
11564 (py_print_single_arg): Likewise.
11565 (enumerate_args): Don't catch exceptions.
11566 (py_print_args): Likewise.
11567 (py_print_frame): Likewise.
11568 (gdbpy_apply_frame_filter): Catch exceptions here.
11569
11570 2018-03-26 Tom Tromey <tom@tromey.com>
11571
11572 * stack.c (_initialize_stack): Remove trailing newlines from help
11573 text. Add "Usage" line to "backtrace" help.
11574
11575 2018-03-26 Tom Tromey <tom@tromey.com>
11576
11577 PR python/16486:
11578 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11579
11580 2018-03-26 Tom Tromey <tom@tromey.com>
11581
11582 * python/py-framefilter.c (py_print_single_arg): Return
11583 EXT_LANG_BT_ERROR from catch.
11584
11585 2018-03-26 Tom Tromey <tom@tromey.com>
11586
11587 PR backtrace/15584:
11588 * stack.c (backtrace_command_1): Move some code into no-filters
11589 "if".
11590
11591 2018-03-26 Tom Tromey <tom@tromey.com>
11592
11593 * python/py-framefilter.c (throw_quit_or_print_exception): New
11594 function.
11595 (gdbpy_apply_frame_filter): Use it.
11596
11597 2018-03-26 Tom Tromey <tom@tromey.com>
11598
11599 PR cli/17716:
11600 * python/py-framefilter.c (py_print_type, py_print_value)
11601 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11602 RETURN_MASK_ERROR.
11603
11604 2018-03-26 Tom Tromey <tom@tromey.com>
11605
11606 * python/py-framefilter.c (enumerate_args): Use
11607 gdb::unique_xmalloc_ptr.
11608
11609 2018-03-26 Tom Tromey <tom@tromey.com>
11610
11611 * python/py-framefilter.c (py_print_frame): Return
11612 EXT_LANG_BT_OK.
11613 (gdbpy_apply_frame_filter): Update comment.
11614 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11615 Remove.
11616 <EXT_LANG_BT_NO_FILTERS>: Change value.
11617
11618 2018-03-26 Tom Tromey <tom@tromey.com>
11619
11620 PR backtrace/15582:
11621 * stack.c (backtrace_command): Parse "hide" argument.
11622 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11623 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11624 constant.
11625
11626 2018-03-26 Tom Tromey <tom@tromey.com>
11627
11628 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11629 add "flags".
11630 (backtrace_command): Remove "fulltrace", add "flags".
11631
11632 2018-03-26 Tom Tromey <tom@tromey.com>
11633
11634 * stack.c (backtrace_command): Rewrite command line parsing.
11635
11636 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11637
11638 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11639
11640 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11641
11642 * filename-seen-cache.h: Add include guard.
11643
11644 2018-03-26 Keith Seitz <keiths@redhat.com>
11645
11646 * symfile.c (place_section): Remove "struct" from section_addr_info
11647 in comment.
11648 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11649 "struct" keyword from section_addr_info.
11650
11651 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11652
11653 * regformats/regdef.h (reg): Add constructors.
11654
11655 2018-03-25 Pedro Alves <palves@redhat.com>
11656
11657 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11658 if then/else bodies in var_func_name extraction.
11659
11660 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11661
11662 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11663 lookup_minimal_symbol() to find symbol entry.
11664 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11665
11666 2018-03-23 Keith Seitz <keiths@redhat.com>
11667
11668 PR c++/22968
11669 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11670 nested type definitions for C++, too.
11671
11672 2018-03-23 Tom Tromey <tom@tromey.com>
11673
11674 * machoread.c (struct oso_el): Add a constructor. Don't define as
11675 a typedef.
11676 (macho_register_oso): Remove.
11677 (macho_symtab_read): Take a std::vector.
11678 (oso_el_compare_name): Now a std::sort comparator.
11679 (macho_symfile_read_all_oso): Take a std::vector.
11680 (macho_symfile_read): Use std::vector. Remove cleanups.
11681
11682 2018-03-22 Tom Tromey <tom@tromey.com>
11683
11684 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11685 (record_full_goto_bookmark): Use std::string.
11686
11687 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11688
11689 PR tdep/18295
11690 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11691 a single mask.
11692
11693 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11694
11695 * rs6000-tdep.c (store_insn_p): New function.
11696 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11697 and cr_reg to their unshifted values. Use store_insn_p to
11698 match LR saves using either R1 or fdata->alloca_reg. Use
11699 store_insn_p to match CR saves. Set alloca_reg_offset
11700 when alloca_reg and framep are set. Remove lr_reg shift
11701 when assigning to fdata->lr_register.
11702
11703 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11704
11705 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11706 command line args instead of emitting a warning.
11707
11708 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11709
11710 * tracepoint.h (struct static_tracepoint_marker): Initialize
11711 fields, define default constructor, move constructor and move
11712 assignment, disable the rest.
11713 <str_id, extra>: Make std::string.
11714 (release_static_tracepoint_marker): Remove.
11715 (free_current_marker): Remove.
11716 * tracepoint.c (free_current_marker): Remove.
11717 (parse_static_tracepoint_marker_definition): Adjust to
11718 std::string, use new hex2str overload.
11719 (release_static_tracepoint_marker): Remove.
11720 (print_one_static_tracepoint_marker): Get marker by reference
11721 and adjust to std::string.
11722 (info_static_tracepoint_markers_command): Adjust to std::vector
11723 changes
11724 * target.h (static_tracepoint_marker_p): Remove typedef.
11725 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11726 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11727 bool.
11728 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11729 * target-debug.h
11730 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11731 (target_debug_print_std_vector_static_tracepoint_marker): New.
11732 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11733 to...
11734 (target_debug_print_static_tracepoint_marker_p): ... this.
11735 * target-delegates.c: Re-generate.
11736 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11737 Make std::string.
11738 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11739 (decode_static_tracepoint_spec): Adjust to std::vector.
11740 (tracepoint_print_one_detail): Adjust to std::string.
11741 (strace_marker_decode_location): Adjust to std::string.
11742 (update_static_tracepoint): Adjust to std::string, remove call
11743 to release_static_tracepoint_marker.
11744 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11745 Adjust to std::vector.
11746 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11747 (remote_static_tracepoint_markers_by_strid): Adjust to
11748 std::vector.
11749 * common/rsp-low.h (hex2str): New overload with explicit count
11750 of bytes.
11751 * common/rsp-low.c (hex2str): New overload with explicit count
11752 of bytes.
11753 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11754 (_initialize_rsp_low_selftests): Add test_hex2str test.
11755 * unittests/tracepoint-selftests.c
11756 (test_parse_static_tracepoint_marker_definition): Adjust to
11757 std::string.
11758
11759 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11760
11761 * tracepoint.c (parse_static_tracepoint_marker_definition):
11762 Consider case where the definition is followed by more
11763 definitions.
11764 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11765 tracepoint-selftests.c.
11766 * unittests/tracepoint-selftests.c: New.
11767
11768 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11769
11770 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11771 Carvalho.
11772
11773 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11774
11775 * symtab.c (find_pc_sect_line): fixed indentation.
11776
11777 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11778
11779 * symtab.c (find_pc_sect_line): now uses binary search.
11780
11781 2018-03-19 Tom Tromey <tom@tromey.com>
11782
11783 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11784 "IDENT" production.
11785
11786 2018-03-19 Pedro Alves <palves@redhat.com>
11787 Tom Tromey <tom@tromey.com>
11788
11789 * unittests/observable-selftests.c: New file.
11790 * common/observable.h: New file.
11791 * observable.h: New file.
11792 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11793 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11794 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11795 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11796 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11797 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11798 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11799 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11800 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11801 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11802 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11803 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11804 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11805 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11806 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11807 tui/tui-interp.c, valops.c: Update all users.
11808 * tui/tui-hooks.c (tui_bp_created_observer)
11809 (tui_bp_deleted_observer, tui_bp_modified_observer)
11810 (tui_inferior_exit_observer, tui_before_prompt_observer)
11811 (tui_normal_stop_observer, tui_register_changed_observer):
11812 Remove.
11813 (tui_observers_token): New global.
11814 (attach_or_detach, tui_attach_detach_observers): New functions.
11815 (tui_install_hooks, tui_remove_hooks): Use
11816 tui_attach_detach_observers.
11817 * record-btrace.c (record_btrace_thread_observer): Remove.
11818 (record_btrace_thread_observer_token): New global.
11819 * observer.sh: Remove.
11820 * observer.c: Rename to observable.c.
11821 * observable.c (namespace gdb_observers): Define new objects.
11822 (observer_debug): Move into gdb_observers namespace.
11823 (struct observer, struct observer_list, xalloc_observer_list_node)
11824 (xfree_observer_list_node, generic_observer_attach)
11825 (generic_observer_detach, generic_observer_notify): Remove.
11826 (_initialize_observer): Update.
11827 Don't include observer.inc.
11828 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11829 (clean mostlyclean): Likewise.
11830 (observer.h, observer.inc): Remove targets.
11831 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11832 (COMMON_SFILES): Use observable.c, not observer.c.
11833 * .gitignore: Remove observer.h.
11834
11835 2018-03-18 Tom Tromey <tom@tromey.com>
11836
11837 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11838 gdb::def_vector.
11839 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11840
11841 2018-03-17 Tom Tromey <tom@tromey.com>
11842
11843 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11844
11845 2018-03-17 Tom Tromey <tom@tromey.com>
11846
11847 * target.c (class scoped_target_fd): New.
11848 (target_fileio_close_cleanup): Remove.
11849 (target_fileio_read_alloc_1): Use scoped_target_fd.
11850
11851 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11852
11853 * silent-rules.mk: New.
11854 * Makefile.in: Include silent-rules.mk
11855 (srcdir, VPATH, top_srcdir): Move up.
11856 (COMPILE): Add ECHO_CXX.
11857 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11858 (init.c): Add ECHO_INIT_C.
11859 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11860 (version.c): Add ECHO_GEN.
11861 (printcmd.o): Add ECHO_CXX.
11862 (target-float.o): Add ECHO_CXX.
11863 (ada-exp.o): Add ECHO_CXX.
11864 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11865 (insight$(EXEEXT)): Add ECHO_CXXLD.
11866 * gnulib/configure.ac: Add AM_SILENT_RULES.
11867 * gnulib/aclocal.m4: Re-generate.
11868 * gnulib/configure: Re-generate.
11869 * gnulib/import/Makefile.in: Re-generate.
11870
11871 2018-03-16 Tom Tromey <tom@tromey.com>
11872
11873 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11874 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11875 * utils.c (do_free_section_addr_info)
11876 (make_cleanup_free_section_addr_info): Remove.
11877 * symfile.h (struct other_sections): Add constructor.
11878 (struct section_addr_info): Remove.
11879 (section_addr_info): New typedef.
11880 (struct sym_fns) <sym_offsets>: Change type of parameter.
11881 (build_section_addr_info_from_objfile)
11882 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11883 (default_symfile_offsets, symbol_file_add)
11884 (symbol_file_add_from_bfd)
11885 (build_section_addr_info_from_section_table): Update.
11886 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11887 * symfile.c (alloc_section_addr_info): Remove.
11888 (build_section_addr_info_from_section_table): Change return type.
11889 Update.
11890 (build_section_addr_info_from_bfd)
11891 (build_section_addr_info_from_objfile): Likewise.
11892 (free_section_addr_info): Remove.
11893 (relative_addr_info_to_section_offsets): Change type of "addrs".
11894 (addrs_section_compar): Now a std::sort comparator.
11895 (addrs_section_sort): Change return type.
11896 (addr_info_make_relative): Change type of "addrs". Update.
11897 (default_symfile_offsets, syms_from_objfile_1)
11898 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11899 (symbol_file_add_separate): Update.
11900 (symbol_file_add): Change type of "addrs". Update.
11901 (add_symbol_file_command): Update. Remove cleanups.
11902 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11903 cleanups.
11904 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11905 * solib.c (solib_read_symbols): Update.
11906 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11907 * machoread.c (macho_symfile_offsets): Update.
11908 * jit.c (jit_bfd_try_read_symtab): Update.
11909
11910 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11911
11912 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11913 unittests/utils-selftests.c.
11914 * unittests/utils-selftests.c: New file.
11915
11916 2018-03-14 Tom Tromey <tom@tromey.com>
11917
11918 PR cli/14977:
11919 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11920 for NULL.
11921
11922 2018-03-14 Tom Tromey <tom@tromey.com>
11923
11924 PR cli/19918:
11925 * printcmd.c (printf_pointer): Allow "-" in format.
11926
11927 2018-03-14 Tom Tromey <tom@tromey.com>
11928
11929 * printcmd.c (_initialize_printcmd): Add usage to printf.
11930
11931 2018-03-14 Yao Qi <qiyao@sourceware.org>
11932
11933 * MAINTAINERS: Update my email address.
11934
11935 2018-03-13 Tom Tromey <tom@tromey.com>
11936
11937 * machoread.c (macho_check_dsym): Change filenamep to a
11938 std::string*.
11939 (macho_symfile_read): Update.
11940 * symfile.c (load_command): Use std::string.
11941
11942 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11943
11944 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11945 to error message string.
11946 (riscv_register_name): Use xsnprintf instead of sprintf.
11947 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11948 internal_error.
11949 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11950 error.
11951 (riscv_push_dummy_call): Likewise.
11952
11953 2018-03-12 Tom Tromey <tom@tromey.com>
11954
11955 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11956 Use gdb::byte_vector.
11957 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11958
11959 2018-03-12 Yao Qi <yao.qi@linaro.org>
11960
11961 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11962 parameter type to readable_regcache.
11963 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11964 the declaration.
11965
11966 2018-03-11 Tom Tromey <tom@tromey.com>
11967
11968 * dwarf2read.c (struct nextfield): Add initializers.
11969 (struct nextfnfield): Remove.
11970 (struct fnfieldlist): Add initializers. Remove "length" and
11971 "head", use std::vector.
11972 (struct decl_field_list): Remove.
11973 (struct field_info): Add initializers.
11974 <fields, baseclasses>: Now std::vector.
11975 <nbaseclasses, nfnfields, typedef_field_list_count,
11976 nested_types_list_count>: Remove.
11977 (dwarf2_add_field, dwarf2_add_type_defn)
11978 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11979 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11980 (process_structure_scope): Update.
11981
11982 2018-03-11 Tom Tromey <tom@tromey.com>
11983
11984 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11985 for use by std::sort.
11986 (build_type_psymtabs_1): Use std::vector.
11987
11988 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11989
11990 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11991 and LIBMPFR in the printed configuration.
11992
11993 2018-03-08 Tom Tromey <tom@tromey.com>
11994
11995 * source.c (get_filename_and_charpos): Use scoped_fd.
11996 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11997 (procfs_pidlist): Likewise.
11998 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11999 (iterate_over_mappings): Likewise.
12000
12001 2018-03-08 Tom Tromey <tom@tromey.com>
12002
12003 * infcall.c (struct call_return_meta_info)
12004 <stack_temporaries_enabled>: Remove.
12005 (get_call_return_value, call_function_by_hand_dummy): Update.
12006 * thread.c (disable_thread_stack_temporaries): Remove.
12007 (enable_thread_stack_temporaries): Remove.
12008 (thread_stack_temporaries_enabled_p): Return bool.
12009 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12010 (get_last_thread_stack_temporary): Update.
12011 * eval.c (evaluate_subexp): Update.
12012 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12013 class, not a function.
12014 (value_ptr, value_vec): Remove typedefs.
12015 (class thread_info) <stack_temporaries_enabled>: Now bool.
12016 <stack_temporaries>: Now a std::vector.
12017 (thread_stack_temporaries_enabled_p)
12018 (value_in_thread_stack_temporaries): Return bool.
12019
12020 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12021
12022 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12023 (getpkt_or_notif_sane_1): Likewise.
12024
12025 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12026
12027 * build-id.c (build_id_to_debug_bfd): Use std::string.
12028
12029 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12030
12031 * build-id.c (find_separate_debug_file_by_buildid): Return
12032 std::string.
12033 * build-id.h (find_separate_debug_file_by_buildid): Return
12034 std::string.
12035 * coffread.c (coff_symfile_read): Adjust to std::string.
12036 * elfread.c (elf_symfile_read): Adjust to std::string.
12037 * symfile.c (separate_debug_file_exists): Change parameter to
12038 std::string.
12039 (find_separate_debug_file): Return std::string.
12040 (find_separate_debug_file_by_debuglink): Return std::string.
12041 * symfile.h (find_separate_debug_file_by_debuglink): Return
12042 std::string.
12043
12044 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12045
12046 * common/xml-utils.c (xml_escape_text): Move code to...
12047 (xml_escape_text_append): ... this new function.
12048 * common/xml-utils.h (xml_escape_text_append): New declaration.
12049 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12050 New function.
12051 (_initialize_xml_utils): register test_xml_escape_text_append as
12052 a selftest.
12053
12054 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12055
12056 * defs.h: Remove MAX_REGISTER_SIZE.
12057 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12058 asserts.
12059 * python/py-unwind.c (pyuw_sniffer): Likewise.
12060
12061 2018-03-07 Tom Tromey <tom@tromey.com>
12062
12063 * linux-tdep.c (linux_info_proc): Update.
12064 * target.h (struct target_ops) <to_fileio_readlink>: Return
12065 optional<string>.
12066 (target_fileio_readlink): Return optional<string>.
12067 * remote.c (remote_hostio_readlink): Return optional<string>.
12068 * inf-child.c (inf_child_fileio_readlink): Return
12069 optional<string>.
12070 * target.c (target_fileio_readlink): Return optional<string>.
12071
12072 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12073
12074 * regcache.c (cooked_read_test): Add riscv to the list of
12075 architectures that have a save_reggroup.
12076
12077 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12078
12079 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12080 value is not a dynamic class object.
12081
12082 2018-03-06 Tom Tromey <tom@tromey.com>
12083
12084 * rust-exp.y: Formatting fixes.
12085
12086 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12087
12088 * riscv-tdep.c (riscv_register_name): Remove target description
12089 support.
12090 (riscv_gdbarch_init): Remove target description check.
12091
12092 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12093
12094 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12095 comment.
12096 * riscv-tdep.h: Likewise.
12097
12098 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12099
12100 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12101 (riscv_pseudo_register_write): Delete.
12102 (riscv_gdbarch_init): Remove all use of pseudo registers.
12103
12104 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12105
12106 * record-btrace.c (btrace_print_lines): Replace cleanup
12107 parameter with RAII equivalents.
12108 (btrace_insn_history): Replace cleanup with RAII equivalents.
12109 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12110 make_cleanup_ui_out_tuple_begin_end): Remove.
12111 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12112 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12113 make_cleanup_ui_out_list_begin_end): Remove.
12114
12115 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12116
12117 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12118 parameter types to std::vector. Use bool.
12119 (record_btrace_wait): Replace VEC(tp_t) with
12120 std::vector<thread_info *>.
12121 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12122
12123 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12124
12125 * record-btrace.c (record_btrace_disable_callback): Remove.
12126 (struct scoped_btrace_disable): New.
12127 (record_btrace_open): Use scoped_btrace_disable.
12128
12129 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12130
12131 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12132 reading values from registers.
12133
12134 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12135
12136 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12137 where appropriate.
12138
12139 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12140
12141 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12142 change parameter type. Use GDB's print functions, and use
12143 core_addr_to_string where appropriate.
12144 (riscv_push_dummy_call): Use core_addr_to_string where
12145 appropriate, update call to riscv_print_arg_location, and reindent
12146 a few lines.
12147 (riscv_return_value): Update call to riscv_print_arg_location.
12148
12149 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12150 Tim Newsome <tim@sifive.com>
12151 Albert Ou <a0u@eecs.berkeley.edu>
12152 Darius Rad <darius@bluespec.com>
12153
12154 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12155 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12156 (ALLDEPFILES): Add riscv-tdep.c
12157 * configure.tgt: Add riscv support.
12158 * riscv-tdep.c: New file.
12159 * riscv-tdep.h: New file.
12160 * NEWS: Mention new target.
12161 * MAINTAINERS: Add entry for riscv.
12162
12163 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12164
12165 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12166 fields within aggregates.
12167
12168 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12169
12170 * record-btrace.c (btrace_print_lines): Change type of flags to
12171 gdb_disassembly_flags.
12172
12173 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12174
12175 * fbsd-nat.c: Include "inf-ptrace.h".
12176 (USE_SIGTRAP_SIGINFO): Conditionally define.
12177 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12178 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12179 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12180 function.
12181 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12182 Likewise.
12183 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12184 Likewise.
12185 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12186 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12187 "supports_stopped_by_hw_breakpoint" target methods.
12188
12189 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12190
12191 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12192 * fbsd-nat.c (debug_fbsd_nat): New variable.
12193 (show_fbsd_nat_debug): New function.
12194 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12195 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12196
12197 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12198
12199 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12200 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12201 prototype.
12202 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12203 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12204 method.
12205
12206 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12207
12208 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12209 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12210
12211 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12212
12213 * charset.c (struct charset_vector): New.
12214 (charsets): Change type to charset_vector.
12215 (find_charset_names): Adjust.
12216 (add_one): Adjust.
12217 (_initialize_charset): Adjust.
12218
12219 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12220
12221 * progspace.h (struct program_space) <deleted_solibs>: Change
12222 type to std::vector<std::string>.
12223 * progspace.c (clear_program_space_solib_cache): Adjust.
12224 * breakpoint.c (print_solib_event): Adjust.
12225 (check_status_catch_solib): Adjust.
12226 * solib.c (update_solib_list): Adjust.
12227 * ui-out.h (class ui_out) <field_string>: New overload.
12228 * ui-out.c (ui_out::field_string): New overload.
12229
12230 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12231
12232 * progspace.h (struct program_space): Add constructor and
12233 destructor, initialize fields.
12234 (add_program_space): Remove.
12235 * progspace.c (add_program_space): Rename to...
12236 (program_space::program_space): ... this.
12237 (release_program_space): Rename to...
12238 (program_space::~program_space): ... this.
12239 (delete_program_space): Use delete to delete program_space.
12240 (initialize_progspace): Use new to allocate program_space.
12241 * inferior.c (add_inferior_with_spaces): Likewise.
12242 (clone_inferior_command): Likewise.
12243 * infrun.c (follow_fork_inferior): Likewise.
12244 (handle_vfork_child_exec_or_exit): Likewise.
12245
12246 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12247
12248 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12249 (delim_string_to_char_ptr_vec): Return std::vector of
12250 gdb::unique_xmalloc_ptr.
12251 (dirnames_to_char_ptr_vec_append): Take std::vector of
12252 gdb::unique_xmalloc_ptr.
12253 (dirnames_to_char_ptr_vec): Return std::vector of
12254 gdb::unique_xmalloc_ptr.
12255 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12256 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12257 (delim_string_to_char_ptr_vec): Return an std::vector of
12258 gdb::unique_xmalloc_ptr, adjust the code.
12259 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12260 gdb::unique_xmalloc_ptr, adjust the code.
12261 (dirnames_to_char_ptr_vec): Return an std::vector of
12262 gdb::unique_xmalloc_ptr, adjust the code.
12263 * auto-load.c (auto_load_safe_path_vec): Change type to
12264 std::vector of gdb::unique_xmalloc_ptr.
12265 (auto_load_expand_dir_vars): Return an std::vector of
12266 gdb::unique_xmalloc_ptr, adjust the code.
12267 (auto_load_safe_path_vec_update): Adjust.
12268 (filename_is_in_auto_load_safe_path_vec): Adjust.
12269 (auto_load_objfile_script_1): Adjust.
12270 * build-id.c (build_id_to_debug_bfd): Adjust.
12271 * linux-thread-db.c (thread_db_load_search): Adjust.
12272 * source.c (add_path): Adjust.
12273 (openp): Adjust.
12274 * symfile.c (find_separate_debug_file): Adjust.
12275 * utils.c (do_free_char_ptr_vec): Remove.
12276 (make_cleanup_free_char_ptr_vec): Remove.
12277
12278 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12279
12280 PR gdb/22907
12281 * common/pathstuff.c: Conditionally include "<windows.h>".
12282
12283 2018-03-01 Georg Sauthoff <mail@georg.so>
12284
12285 PR gdb/22888
12286 * gcore.in: Quote variables and switch interpreter to bash.
12287
12288 2018-03-01 Tom Tromey <tom@tromey.com>
12289
12290 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12291 assertion. Add assertion for discriminant_index.
12292 (quirk_rust_enum): Use correct base type name in univariant case.
12293
12294 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12295
12296 * record.c (get_call_history_modifiers): Return a
12297 record_print_flags.
12298 (cmd_record_call_history): Adjust.
12299 * record-btrace.c (record_btrace_call_history): Adjust.
12300 (record_btrace_call_history_range): Adjust.
12301 (record_btrace_call_history_from): Adjust.
12302 * target-debug.h (target_debug_print_record_print_flags): New.
12303 * target-delegates.c: Re-generate.
12304 * target.c (target_call_history): Change flags type.
12305 (target_call_history_from): Likewise.
12306 (target_call_history_range): Likewise.
12307 * target.h (struct target_ops) <target_call_history>: Likewise.
12308 (target_call_history_from): Likewise.
12309 (target_call_history_range): Likewise.
12310
12311 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12312 Simon Marchi <simon.marchi@polymtl.ca>
12313
12314 * common/common-utils.c: Include "sys/stat.h".
12315 (is_regular_file): Move here from "source.c"; change return
12316 type to "bool".
12317 * common/common-utils.h (is_regular_file): New prototype.
12318 * common/pathstuff.c (contains_dir_separator): New function.
12319 * common/pathstuff.h (contains_dir_separator): New prototype.
12320 * source.c: Don't include "sys/stat.h".
12321 (is_regular_file): Move to "common/common-utils.c".
12322
12323 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12324
12325 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12326 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12327 * auto-load.c: Include "common/pathstuff.h".
12328 * common/common-def.h (current_directory): Move here.
12329 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12330 function.
12331 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12332 prototype.
12333 * common/pathstuff.c: New file.
12334 * common/pathstuff.h: New file.
12335 * compile/compile.c: Include "common/pathstuff.h".
12336 * defs.h (current_directory): Move to "common/common-defs.h".
12337 * dwarf2read.c: Include "common/pathstuff.h".
12338 * exec.c: Likewise.
12339 * guile/scm-safe-call.c: Likewise.
12340 * linux-thread-db.c: Likewise.
12341 * main.c: Likewise.
12342 * nto-tdep.c: Likewise.
12343 * objfiles.c: Likewise.
12344 * source.c: Likewise.
12345 * symtab.c: Likewise.
12346 * utils.c: Include "common/pathstuff.h".
12347 (gdb_realpath): Move to "common/pathstuff.c".
12348 (gdb_realpath_keepfile): Likewise.
12349 (gdb_abspath): Likewise.
12350 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12351 (gdb_realpath_keepfile): Likewise.
12352 (gdb_abspath): Likewise.
12353
12354 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12355
12356 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12357 wildcard process pid for super_resume for kernels with a
12358 specific bug.
12359
12360 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12361
12362 * compile/compile.c (get_args): Add additional comments
12363 explaining function.
12364
12365 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12366 Tom Tromey <tom@tromey.com>
12367
12368 * target.h (memory_write_request_s): Remove typedef. Don't define
12369 VEC.
12370 (target_write_memory_blocks): Change argument to std::vector.
12371 (struct memory_write_request): Add constructor.
12372 * target-memory.c (compare_block_starting_address): Return bool.
12373 Change argument types.
12374 (claim_memory): Change arguments to use std::vector.
12375 (split_regular_and_flash_blocks, blocks_to_erase)
12376 (compute_garbled_blocks): Likewise.
12377 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12378 (target_write_memory_blocks): Change argument to std::vector.
12379 * symfile.c (struct load_section_data): Add constructor and
12380 destructor. Use std::vector for "requests".
12381 (struct load_progress_data): Add initializers.
12382 (load_section_callback): Update. Use "new".
12383 (clear_memory_write_data): Remove.
12384 (generic_load): Update.
12385
12386 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12387
12388 * arch/aarch64.h: Use common/tdesc.h.
12389
12390 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12391
12392 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12393 architecture with a 64-bit ABI.
12394
12395 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12396
12397 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12398 ahead of target description loading.
12399
12400 2018-02-26 Tom Tromey <tom@tromey.com>
12401
12402 * stack.c (backtrace_command_1): Update.
12403 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12404 of "flags".
12405 * python/py-framefilter.c (py_print_frame)
12406 (gdbpy_apply_frame_filter): Change type of "flags".
12407 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12408 of "flags".
12409 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12410 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12411 * extension.h (enum frame_filter_flag): Rename from
12412 frame_filter_flags.
12413 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12414 (apply_ext_lang_frame_filter): Change type of "flags".
12415 * extension.c (apply_ext_lang_frame_filter): Change type of
12416 "flags".
12417 * extension-priv.h (struct extension_language_ops)
12418 <apply_frame_filter>: Change type of "flags".
12419
12420 2018-02-26 Tom Tromey <tom@tromey.com>
12421
12422 PR python/16497:
12423 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12424 off-by-one in py_end computation.
12425 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12426 PRINT_MORE_FRAMES.
12427 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12428 constant.
12429
12430 2018-02-26 Tom Tromey <tom@tromey.com>
12431
12432 * dwarf2read.c (struct variant_field): New.
12433 (struct nextfield) <variant>: New field.
12434 (dwarf2_add_field): Handle DW_TAG_variant_part.
12435 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12436 discriminated union.
12437 (read_structure_type): Handle DW_TAG_variant_part.
12438 (handle_struct_member_die): New function, extracted from
12439 process_structure_scope. Handle DW_TAG_variant.
12440 (process_structure_scope): Handle discriminated unions. Call
12441 handle_struct_member_die.
12442
12443 2018-02-26 Tom Tromey <tom@tromey.com>
12444
12445 * rust-lang.h (rust_last_path_segment): Declare.
12446 * rust-lang.c (rust_last_path_segment): Now public. Change
12447 contract.
12448 (struct disr_info): Remove.
12449 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12450 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12451 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12452 (rust_enum_p, rust_enum_variant): New function.
12453 (rust_underscore_fields): Remove "offset" parameter.
12454 (rust_print_enum): New function.
12455 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12456 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12457 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12458 enums.
12459 (rust_internal_print_type): New function, from rust_print_type.
12460 Remove enum code.
12461 (rust_print_type): Call rust_internal_print_type.
12462 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12463 Update enum handling.
12464 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12465 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12466 (rust_union_quirks): New functions.
12467 (process_full_comp_unit, process_full_type_unit): Call
12468 rust_union_quirks.
12469 (process_structure_scope): Update rust_unions if necessary.
12470
12471 2018-02-26 Tom Tromey <tom@tromey.com>
12472
12473 * value.h (value_union_variant): Declare.
12474 * valops.c (value_union_variant): New function.
12475 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12476 (struct discriminant_info): New.
12477 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12478 enumerator.
12479 (struct main_type) <flag_discriminated_union>: New field.
12480
12481 2018-02-26 Tom Tromey <tom@tromey.com>
12482
12483 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12484 unittests/unpack-selftests.c.
12485 * unittests/unpack-selftests.c: New file.
12486 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12487
12488 2018-02-26 Yao Qi <yao.qi@linaro.org>
12489
12490 * dwarf2read.c (struct partial_die_info) <read>: New method.
12491 (read_partial_die): Remove the declaration.
12492 (load_partial_dies): Update.
12493 (partial_die_info::partial_die_info):
12494 (read_partial_die): Change it to partial_die_info::read.
12495
12496 2018-02-26 Yao Qi <yao.qi@linaro.org>
12497
12498 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12499 (fixup_partial_die): Remove declaration.
12500 (scan_partial_symbols): Update.
12501 (partial_die_parent_scope): Likewise.
12502 (partial_die_full_name): Likewise.
12503 (fixup_partial_die): Change it to partial_die_info::fixup.
12504
12505 2018-02-26 Yao Qi <yao.qi@linaro.org>
12506
12507 * dwarf2read.c (read_partial_die): Update the declaration.
12508 (load_partial_dies): Caller update.
12509 (read_partial_die): Remove one argument abbrev_len.
12510
12511 2018-02-26 Yao Qi <yao.qi@linaro.org>
12512
12513 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12514 assignment operator.
12515 (load_partial_dies): Use ctor and copy ctor.
12516 (read_partial_die): Update.
12517 (dwarf2_cu::find_partial_die): Use ctor.
12518
12519 2018-02-26 Yao Qi <yao.qi@linaro.org>
12520
12521 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12522 (find_partial_die_in_comp_unit): Change it to
12523 dwarf2_cu::find_partial_die.
12524 (find_partial_die): Update.
12525
12526 2018-02-26 Yao Qi <yao.qi@linaro.org>
12527
12528 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12529 is NULL.
12530
12531 2018-02-26 Yao Qi <yao.qi@linaro.org>
12532
12533 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12534
12535 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12536
12537 * arch/amd64.h: Use common/tdesc.h.
12538 * arch/i386.c: Likewise.
12539 * arch/i386.h: Likewise.
12540 * arch/tic6x.c: Likewise.
12541 * arch/tdesc.h: Move file from here...
12542 * common/tdesc.h: ...to here.
12543 * features/aarch64-core.c: Regenerate.
12544 * features/aarch64-fpu.c: Regenerate.
12545 * features/i386/32bit-avx.c: Regenerate.
12546 * features/i386/32bit-avx512.c: Regenerate.
12547 * features/i386/32bit-core.c: Regenerate.
12548 * features/i386/32bit-linux.c: Regenerate.
12549 * features/i386/32bit-mpx.c: Regenerate.
12550 * features/i386/32bit-pkeys.c: Regenerate.
12551 * features/i386/32bit-sse.c: Regenerate.
12552 * features/i386/64bit-avx.c: Regenerate.
12553 * features/i386/64bit-avx512.c: Regenerate.
12554 * features/i386/64bit-core.c: Regenerate.
12555 * features/i386/64bit-linux.c: Regenerate.
12556 * features/i386/64bit-mpx.c: Regenerate.
12557 * features/i386/64bit-pkeys.c: Regenerate.
12558 * features/i386/64bit-segments.c: Regenerate.
12559 * features/i386/64bit-sse.c: Regenerate.
12560 * features/i386/x32-core.c: Regenerate.
12561 * features/tic6x-c6xp.c: Regenerate.
12562 * features/tic6x-core.c: Regenerate.
12563 * features/tic6x-gp.c: Regenerate.
12564 * target-descriptions.c: Use common/tdesc.h.
12565 * target-descriptions.h: Likewise.
12566
12567 2018-02-24 Tom Tromey <tom@tromey.com>
12568
12569 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12570 (try_thread_db_load_from_dir, thread_db_load_search): Use
12571 std::string.
12572 (info_auto_load_libthread_db_compare): Return bool. Change
12573 argument types.
12574 (info_auto_load_libthread_db): Use std::vector, std::string.
12575 Remove cleanups.
12576
12577 2018-02-24 Tom Tromey <tom@tromey.com>
12578
12579 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12580 std::string.
12581 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12582 std::string*.
12583 * gdbarch.c: Rebuild.
12584 * gdbarch.h: Rebuild.
12585 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12586 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12587 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12588 std::string*.
12589
12590 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12591
12592 * gdbtypes.h (sect_offset): Change type to uint64_t.
12593 (sect_offset_str): New function.
12594 * dwarf2read.c (create_addrmap_from_aranges): Use
12595 sect_offset_str.
12596 (error_check_comp_unit_head): Likewise.
12597 (create_debug_type_hash_table): Likewise.
12598 (read_cutu_die_from_dwo): Likewise.
12599 (init_cutu_and_read_dies): Likewise.
12600 (init_cutu_and_read_dies_no_follow): Likewise.
12601 (process_psymtab_comp_unit_reader): Likewise.
12602 (partial_die_parent_scope): Likewise.
12603 (peek_die_abbrev): Likewise.
12604 (process_queue): Likewise.
12605 (dwarf2_physname): Likewise.
12606 (read_namespace_alias): Likewise.
12607 (read_import_statement): Likewise.
12608 (create_dwo_cu_reader): Likewise.
12609 (create_cus_hash_table): Likewise.
12610 (lookup_dwo_cutu): Likewise.
12611 (inherit_abstract_dies): Likewise.
12612 (read_func_scope): Likewise.
12613 (read_call_site_scope): Likewise.
12614 (dwarf2_add_member_fn): Likewise.
12615 (read_common_block): Likewise.
12616 (read_module_type): Likewise.
12617 (read_typedef): Likewise.
12618 (read_subrange_type): Likewise.
12619 (load_partial_dies): Likewise.
12620 (read_partial_die): Likewise.
12621 (find_partial_die): Likewise.
12622 (read_str_index): Likewise.
12623 (dwarf2_string_attr): Likewise.
12624 (build_error_marker_type): Likewise.
12625 (lookup_die_type): Likewise.
12626 (dump_die_shallow): Likewise.
12627 (follow_die_ref): Likewise.
12628 (dwarf2_fetch_die_loc_sect_off): Likewise.
12629 (dwarf2_fetch_constant_bytes): Likewise.
12630 (follow_die_sig): Likewise.
12631 (get_signatured_type): Likewise.
12632 (get_DW_AT_signature_type): Likewise.
12633 (dwarf2_find_containing_comp_unit): Likewise.
12634 (set_die_type): Likewise.
12635
12636 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12637
12638 * arch/aarch64.c: Include "common-defs.h".
12639 * arch/amd64.c: Likewise.
12640 * arch/i386.c: Likewise.
12641
12642 2018-02-21 Tom Tromey <tom@tromey.com>
12643
12644 * value.h: (extract_field_op): Update.
12645 * eval.c (extract_field_op): Return a const char *.
12646 * expression.h (parse_expression_for_completion): Update.
12647 * completer.c (complete_expression): Update.
12648 (add_struct_fields): Make fieldname const.
12649 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12650 (mark_completion_tag, parse_exp_in_context_1): Update.
12651 (parse_expression_for_completion): Change "name" to
12652 unique_xmalloc_ptr*.
12653
12654 2018-02-21 Tom Tromey <tom@tromey.com>
12655
12656 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12657
12658 2018-02-21 Yao Qi <yao.qi@linaro.org>
12659
12660 * avr-tdep.c (avr_read_pc): Change parameter type to
12661 readable_regcache.
12662 * gdbarch.sh (read_pc): Likewise.
12663 * gdbarch.c: Re-generated.
12664 * gdbarch.h: Re-generated.
12665 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12666 readable_regcache.
12667 * ia64-tdep.c (ia64_read_pc): Likewise.
12668 * mips-tdep.c (mips_read_pc): Likewise.
12669 * spu-tdep.c (spu_read_pc): Likewise.
12670
12671 2018-02-21 Yao Qi <yao.qi@linaro.org>
12672
12673 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12674 * regcache-dump.c: New file.
12675 * regcache.c: Move register_dump to regcache-dump.c.
12676 (maintenance_print_registers): Likewise.
12677 (maintenance_print_raw_registers): Likewise.
12678 (maintenance_print_cooked_registers): Likewise.
12679 (maintenance_print_register_groups): Likewise.
12680 (maintenance_print_remote_registers): Likewise.
12681 (_initialize_regcache): Likewise.
12682 * regcache.h (register_dump): Moved from regcache.c.
12683
12684 2018-02-21 Yao Qi <yao.qi@linaro.org>
12685
12686 * regcache.c (regcache::regcache): Update.
12687 (regcache::invalidate): Move it to detached_regcache::invalidate.
12688 (get_thread_arch_aspace_regcache): Update.
12689 (regcache::raw_update): Update.
12690 (regcache::cooked_read): Remove some code.
12691 (regcache::cooked_read_value): Likewise.
12692 (regcache::raw_write): Remove assert on m_readonly_p.
12693 (regcache::raw_supply_integer): Move it to
12694 detached_regcache::raw_supply_integer.
12695 (regcache::raw_supply_zeroed): Likewise.
12696 * regcache.h (detached_regcache) <raw_supply_integer>: New
12697 declaration.
12698 <raw_supply_zeroed, invalidate>: Likewise.
12699 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12700 <invalidate>: Likewise.
12701 <m_readonly_p>: Removed.
12702
12703 2018-02-21 Yao Qi <yao.qi@linaro.org>
12704
12705 * infcmd.c (get_return_value): Let stop_regs point to
12706 get_current_regcache.
12707 * regcache.c (regcache::regcache): Remove.
12708 (register_dump_reg_buffer): New class.
12709 (regcache_print): Adjust.
12710 * regcache.h (regcache): Remove constructors.
12711
12712 2018-02-21 Yao Qi <yao.qi@linaro.org>
12713
12714 * regcache.c (class register_dump): New class.
12715 (register_dump_regcache, register_dump_none): New class.
12716 (register_dump_remote, register_dump_groups): New class.
12717 (regcache_print): Update.
12718 * regcache.h (regcache_dump_what): Move it to regcache.c.
12719 (regcache) <dump>: Remove.
12720
12721 2018-02-21 Yao Qi <yao.qi@linaro.org>
12722
12723 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12724 reg_buffer_rw *.
12725 (jit_unwind_reg_set_impl): Call raw_supply.
12726 (jit_frame_sniffer): Use reg_buffer_rw.
12727 * record-full.c (record_full_core_regbuf): Change its type.
12728 (record_full_core_open_1): Use reg_buffer_rw.
12729 (record_full_close): Likewise.
12730 (record_full_core_fetch_registers): Use regcache->raw_supply.
12731 (record_full_core_store_registers): Likewise.
12732 * regcache.c (regcache::get_register_status): Move it to
12733 reg_buffer.
12734 (regcache_raw_set_cached_value): Remove.
12735 (regcache::raw_set_cached_value): Remove.
12736 (regcache::raw_write): Call raw_supply.
12737 (regcache::raw_supply): Move it to reg_buffer_rw.
12738 * regcache.h (regcache_raw_set_cached_value): Remove.
12739 (reg_buffer_rw): New class.
12740
12741 2018-02-21 Yao Qi <yao.qi@linaro.org>
12742
12743 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12744 readonly_detached_regcache.
12745 (dummy_frame_prev_register): Use regcache->cooked_read.
12746 * frame.c (frame_save_as_regcache): Change return type.
12747 (frame_pop): Update.
12748 * frame.h (frame_save_as_regcache): Update declaration.
12749 * inferior.h (get_infcall_suspend_state_regcache): Update
12750 declaration.
12751 * infrun.c (infcall_suspend_state) <registers>: use
12752 readonly_detached_regcache.
12753 (save_infcall_suspend_state): Don't use regcache_dup.
12754 (get_infcall_suspend_state_regcache): Change return type.
12755 * linux-fork.c (struct fork_info) <savedregs>: Change to
12756 readonly_detached_regcache.
12757 <pc>: New field.
12758 (fork_save_infrun_state): Don't use regcache_dup.
12759 (info_checkpoints_command): Adjust.
12760 * mi/mi-main.c (register_changed_p): Update declaration.
12761 (mi_cmd_data_list_changed_registers): Use
12762 readonly_detached_regcache.
12763 (register_changed_p): Change parameter type to
12764 readonly_detached_regcache.
12765 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12766 readonly_detached_regcache.
12767 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12768 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12769 New.
12770 (regcache::save): Move it to reg_buffer.
12771 (regcache::restore): Change parameter type.
12772 (regcache_dup): Remove.
12773 * regcache.h (reg_buffer) <save>: New method.
12774 (readonly_detached_regcache): New class.
12775 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12776 readonly_detached_regcache.
12777 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12778
12779 2018-02-21 Yao Qi <yao.qi@linaro.org>
12780
12781 * frame.c (frame_save_as_regcache): Use regcache method save.
12782 (frame_pop): Use regcache method restore.
12783 * infrun.c (restore_infcall_suspend_state): Likewise.
12784 * linux-fork.c (fork_load_infrun_state): Likewise.
12785 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12786 save.
12787 * regcache.c (regcache_save): Remove.
12788 (regcache::restore): More asserts.
12789 (regcache_cpy): Remove.
12790 * regcache.h (regcache_save): Remove the declaration.
12791 (regcache::restore): Move from private to public.
12792 Remove the friend declaration of regcache_cpy.
12793 (regcache_cpy): Remove declaration.
12794
12795 2018-02-21 Yao Qi <yao.qi@linaro.org>
12796
12797 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12798 parameter type to 'readable_regcache *'.
12799 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12800 * arm-tdep.c (arm_neon_quad_read): Likewise.
12801 (arm_pseudo_read): Likewise.
12802 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12803 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12804 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12805 * gdbarch.c: Re-generated.
12806 * gdbarch.h: Re-generated.
12807 * gdbarch.sh (pseudo_register_read): Change parameter type to
12808 'readable_regcache *'.
12809 (pseudo_register_read_value): Likewise.
12810 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12811 (h8300_pseudo_register_read): Likewise.
12812 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12813 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12814 (i386_pseudo_register_read_into_value): Likewise.
12815 (i386_pseudo_register_read_value): Likewise.
12816 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12817 declaration.
12818 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12819 * m32c-tdep.c (m32c_raw_read): Likewise.
12820 (m32c_read_flg): Likewise.
12821 (m32c_banked_register): Likewise.
12822 (m32c_banked_read): Likewise.
12823 (m32c_sb_read): Likewise.
12824 (m32c_part_read): Likewise.
12825 (m32c_cat_read): Likewise.
12826 (m32c_r3r2r1r0_read): Likewise.
12827 (m32c_pseudo_register_read): Likewise.
12828 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12829 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12830 (mep_pseudo_cr64_read): Likewise.
12831 (mep_pseudo_register_read): Likewise.
12832 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12833 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12834 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12835 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12836 (regcache::cooked_read): Likewise.
12837 (regcache::cooked_read_value): Likewise.
12838 (regcache_cooked_read_signed):
12839 (regcache::cooked_read): Likewise.
12840 * regcache.h (readable_regcache): New class.
12841 (regcache): Inherit readable_regcache. Move some methods to
12842 readable_regcache.
12843 * rl78-tdep.c (rl78_pseudo_register_read): Change
12844 parameter type to 'readable_regcache *'.
12845 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12846 (e500_pseudo_register_read): Change parameter type to
12847 'readable_regcache *'.
12848 (dfp_pseudo_register_read): Likewise.
12849 (vsx_pseudo_register_read): Likewise.
12850 (efpr_pseudo_register_read): Likewise.
12851 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12852 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12853 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12854 (sh64_pseudo_register_read): Likewise.
12855 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12856 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12857 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12858 (spu_pseudo_register_read): Likewise.
12859 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12860 (xtensa_pseudo_register_read): Likewise.
12861
12862 2018-02-21 Yao Qi <yao.qi@linaro.org>
12863
12864 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12865 (regcache::arch): Move it to reg_buffer::arch.
12866 (regcache::register_buffer): Likewise.
12867 (regcache::assert_regnum): Likewise.
12868 (regcache::num_raw_registers): Likewise.
12869 * regcache.h (reg_buffer): New class.
12870 (regcache): Inherit reg_buffer.
12871
12872 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12873
12874 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12875 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12876
12877 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12878
12879 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12880
12881 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12882
12883 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12884 (SFILES): Remove common/*.c files.
12885 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12886 * common/common.host: Add common reference.
12887 * configure.ac: Likewise.
12888 * configure: Regenerate.
12889
12890 2018-02-16 Yao Qi <yao.qi@linaro.org>
12891
12892 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12893 (block_initialize_namespace): Use new.
12894 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12895 (dwarf2_free_objfile): Use delete.
12896 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12897 (copy_type_recursive): Use new.
12898 * gdb_obstack.h (allocate_on_obstack): New.
12899
12900 2018-02-15 Yao Qi <yao.qi@linaro.org>
12901
12902 PR gdb/22849
12903 * inferior.c (exit_inferior_1): Reset inf->control.
12904
12905 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12906
12907 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12908 declaration.
12909
12910 2018-02-14 Pedro Alves <palves@redhat.com>
12911
12912 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12913 frame_cleanup_after_sniffer on exception.
12914
12915 2018-02-14 Tom Tromey <tom@tromey.com>
12916
12917 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12918 const.
12919 (solib_bfd_open): Make pathname const.
12920 * solib.c (solib_bfd_open): Make pathname const.
12921 * solib-spu.c (spu_bfd_fopen): Make name const.
12922 (spu_bfd_open): Make pathname const.
12923 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12924 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12925
12926 2018-02-14 Tom Tromey <tom@tromey.com>
12927
12928 * symfile.c (symfile_bfd_open): Update.
12929 * source.h (openp, source_full_path_of, find_and_open_source):
12930 Change argument type to unique_xmalloc_ptr.
12931 * source.c (openp): Take a unique_xmalloc_ptr.
12932 (source_full_path_of, find_and_open_source): Likewise.
12933 (open_source_file, symtab_to_fullname): Update.
12934 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12935 unique_xmalloc_ptr.
12936 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12937 (exec_file_find): Update.
12938 * psymtab.c (psymtab_to_fullname): Update.
12939 * nto-tdep.h (nto_find_and_open_solib): Update.
12940 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12941 unique_xmalloc_ptr.
12942 * exec.c (exec_file_attach): Update.
12943 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12944 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12945
12946 2018-02-14 Tom Tromey <tom@tromey.com>
12947
12948 * solib.c: Include source.h.
12949 * nto-tdep.c: Include source.h.
12950 * mi/mi-cmd-env.c: Include source.h.
12951 * infcmd.c: Include source.h.
12952 * exec.c: Include source.h.
12953 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12954 (add_path, directory_switch, source_path, init_source_path): Move
12955 declarations...
12956 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12957 (add_path, directory_switch, source_path, init_source_path):
12958 ...here.
12959
12960 2018-02-14 Tom Tromey <tom@tromey.com>
12961
12962 * solist.h (exec_file_find, solib_find): Return
12963 unique_xmalloc_ptr.
12964 (solib_bfd_fopen): Take a const char *.
12965 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12966 (exec_file_find, solib_find): Likewise.
12967 (solib_bfd_fopen): Do not take ownership of "pathname".
12968 (solib_bfd_open): Use unique_xmalloc_ptr.
12969 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12970 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12971 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12972 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12973
12974 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12975
12976 * ada-lang.c (name_match_type_from_name): Remove reference to
12977 ada_name_for_lookup in function's documentation.
12978 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12979
12980 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12981
12982 * defs.h (enum openp_flags): New enum.
12983 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12984 Move to enum openp_flags.
12985 (openp_flags): New enum flags.
12986 (openp): Change parameter type to openp_flags.
12987 * source.c (openp): Change parameter type to openp_flags.
12988 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12989 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12990
12991 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12992
12993 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12994 per-command.
12995
12996 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12997
12998 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12999 into...
13000 (class dwarf2_queue_guard): ...the destructor of this new class.
13001 (dw2_do_instantiate_symtab): Create instance of the new class
13002 dwarf2_queue_guard, remove cleanup.
13003
13004 2018-02-09 Tom Tromey <tom@tromey.com>
13005
13006 * source.c (find_source_lines): Don't reference past the end of
13007 the vector.
13008
13009 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13010
13011 * remote.c (remote_btrace_maybe_reopen): Change error message.
13012 * btrace.c (btrace_enable): Likewise.
13013 (parse_xml_btrace): Likewise.
13014 (parse_xml_btrace_conf): Likewise.
13015
13016 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13017
13018 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13019 (linux_enable_pt, linux_enable_bts): Call
13020 diagnose_perf_event_open_fail.
13021
13022 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13023
13024 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13025 Remove parameter and change return type. Update callers. Move it.
13026 (linux_enable_bts, linux_enable_pt): Improve error message.
13027 (linux_enable_pt): Remove zero buffer size check.
13028 (linux_enable_btrace): Improve error messages. Remove NULL return
13029 check.
13030
13031 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13032
13033 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13034 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13035 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13036 (linux_supports_pt, linux_supports_btrace): Remove.
13037 (linux_enable_bts): Call cpu_supports_bts.
13038 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13039 * remote.c (remote_supports_btrace): Remove.
13040 (init_remote_ops): Remove remote_supports_btrace.
13041 * target-delegates.c: Regenerated.
13042 * target.c (target_supports_btrace): Remove.
13043 * target.h (target_ops) <to_supports_btrace>: Remove
13044 (target_supports_btrace): Remove.
13045 * x86-linux-nat.c (x86_linux_create_target): Remove
13046 linux_supports_btrace.
13047
13048 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13049
13050 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13051 btrace failed.
13052 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13053 exception and use message in own exception.
13054
13055 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13056
13057 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13058 (perf_event_pt_event_type): Use gdb_file_up.
13059 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13060 scoped_fd, and scoped_mmap.
13061
13062 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13063
13064 * common/scoped_mmap.h: New.
13065 * unittests/scoped_mmap-selftest.c: New.
13066 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13067 unittests/scoped_mmap-selftest.c.
13068
13069 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13070
13071 * common/scoped_fd.h: New.
13072 * unittests/scoped_fd-selftest.c: New.
13073 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13074 unittests/scoped_fd-selftest.c.
13075
13076 2018-02-09 Tom Tromey <tom@tromey.com>
13077
13078 * auto-load.c (auto_load_section_scripts): Use
13079 gdb::unique_xmalloc_ptr.
13080
13081 2018-02-09 Tom Tromey <tom@tromey.com>
13082
13083 * auto-load.c (execute_script_contents): Use std::string.
13084
13085 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13086
13087 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13088 Python function, rather than a new command.
13089
13090 2018-02-08 Tom Tromey <tom@tromey.com>
13091
13092 * solib.c (solib_find_1): Use std::string.
13093 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13094
13095 2018-02-08 Tom Tromey <tom@tromey.com>
13096
13097 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13098
13099 2018-02-08 Tom Tromey <tom@tromey.com>
13100
13101 * source.c (find_source_lines): Use gdb::def_vector.
13102
13103 2018-02-08 Tom Tromey <tom@tromey.com>
13104
13105 * macrocmd.c (struct temporary_macro_definition): New.
13106 (macro_define_command): Use temporary_macro_definition. Remove
13107 cleanups.
13108 (free_macro_definition_ptr): Remove.
13109
13110 2018-02-08 Tom Tromey <tom@tromey.com>
13111
13112 * macroexp.c (maybe_expand): Use std::string.
13113
13114 2018-02-08 Tom Tromey <tom@tromey.com>
13115
13116 * macroexp.c (struct macro_buffer): Add initializers for some
13117 members.
13118 (init_buffer, init_shared_buffer, free_buffer)
13119 (free_buffer_return_text): Remove.
13120 (macro_buffer): New constructors.
13121 (~macro_buffer): New destructor.
13122 (macro_buffer::set_shared): New method.
13123 (macro_buffer::resize_buffer, macro_buffer::appendc)
13124 (macro_buffer::appendmem): Now methods, not free functions.
13125 (set_token, append_tokens_without_splicing, stringify)
13126 (macro_stringify): Update.
13127 (gather_arguments): Change return type. Remove argc_p argument,
13128 add args_ptr argument. Use std::vector.
13129 (substitute_args): Remove argc argument. Accept std::vector.
13130 (expand): Update. Use std::vector.
13131 (scan, macro_expand, macro_expand_next): Update.
13132
13133 2018-02-08 Tom Tromey <tom@tromey.com>
13134
13135 * symtab.c (default_collect_symbol_completion_matches_break_on):
13136 Use unique_xmalloc_ptr.
13137 * macroscope.h: (sal_macro_scope, user_macro_scope)
13138 (default_macro_scope): Return unique_xmalloc_ptr.
13139 * macroscope.c (sal_macro_scope, user_macro_scope)
13140 (default_macro_scope): Return unique_xmalloc_ptr.
13141 * macroexp.h (macro_expand, macro_expand_once): Return
13142 unique_xmalloc_ptr.
13143 * macroexp.c (macro_expand, macro_expand_once): Return
13144 unique_xmalloc_ptr.
13145 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13146 (info_macro_command, info_macros_command): Use
13147 unique_xmalloc_ptr.
13148 * compile/compile-c-support.c (write_macro_definitions): Use
13149 unique_xmalloc_ptr.
13150 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13151
13152 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13153
13154 * value.c (value_static_field): Assign field type instead of
13155 containing type when returning an optimized out value.
13156
13157 2018-02-06 Yao Qi <yao.qi@linaro.org>
13158
13159 * ft32-tdep.c (ft32_read_pc): Remove.
13160 (ft32_write_pc): Remove.
13161 (ft32_gdbarch_init): Update.
13162 * m32r-tdep.c (m32r_read_pc): Remove.
13163 (m32r_gdbarch_init): Update.
13164 * mep-tdep.c (mep_read_pc): Remove.
13165 (mep_gdbarch_init): Update.
13166 * microblaze-tdep.c (microblaze_write_pc): Remove.
13167 (microblaze_gdbarch_init): Update.
13168 * mn10300-tdep.c (mn10300_read_pc): Remove.
13169 (mn10300_write_pc): Remove.
13170 (mn10300_gdbarch_init): Update.
13171 * moxie-tdep.c (moxie_read_pc): Remove.
13172 (moxie_write_pc): Remove.
13173 (moxie_gdbarch_init): Update.
13174
13175 2018-02-06 Yao Qi <yao.qi@linaro.org>
13176
13177 * expprint.c (print_subexp_standard): Handle
13178 OP_F77_UNDETERMINED_ARGLIST.
13179 (dump_subexp_body_standard): Likewise.
13180
13181 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13182
13183 * target-descriptions.c (tdesc_element_visitor) Add empty
13184 implementations.
13185 (tdesc_type): Move make_gdb_type from here.
13186 (tdesc_type_builtin): Likewise.
13187 (tdesc_type_vector): Likewise.
13188 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13189 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13190 (make_gdb_type_union): Likewise.
13191 (make_gdb_type_flags): Likewise.
13192 (make_gdb_type_enum): Likewise.
13193 (make_gdb_type): New function.
13194 (tdesc_register_type): Use static make_gdb_type.
13195
13196 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13197
13198 * infcmd.c (default_print_one_register_info): Align natural-format
13199 column values consistently one under another.
13200 (pad_to_column): New function.
13201
13202 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13203
13204 * dwarf2read.c (dwarf2_physname): Move commment.
13205
13206 2018-02-01 Leszek Swirski <leszeks@google.com>
13207
13208 * varobj.c (varobj_formatted_print_options): Allow recursive
13209 pretty printing if pretty printing is enabled.
13210
13211 2018-02-01 Leszek Swirski <leszeks@google.com>
13212
13213 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13214 names after a structop as a filename.
13215
13216 2018-02-01 Yao Qi <yao.qi@linaro.org>
13217
13218 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13219 (arm_record_coproc_data_proc): Likewise.
13220
13221 2018-02-01 Yao Qi <yao.qi@linaro.org>
13222
13223 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13224
13225 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13226
13227 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13228 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13229
13230 2018-01-31 Pedro Alves <palves@redhat.com>
13231
13232 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13233 * inflow.c (child_terminal_save_inferior): Wrap reference to
13234 tcgetpgrp in HAVE_TERMIOS_H.
13235 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13236 _WIN32.
13237 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13238 always iterate over all inferiors.
13239 (gdbsim_cntrl_c): Adjust.
13240 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13241
13242 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13243
13244 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13245 index type is objfile-owned if the element type is as well.
13246
13247 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13248
13249 GDB 8.1 released.
13250
13251 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13252
13253 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13254 "features/s390x-linux64.c".
13255 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13256 s390_linux32 and s390x_linux64.
13257 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13258 default tdesc.
13259 * s390-tdep.c: Include "features/s390-linux32.c" and
13260 "features/s390x-linux64.c".
13261 (s390_tdesc_valid): Add check for tdesc_has_registers.
13262 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13263 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13264 tdesc_s390x_linux64.
13265 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13266 tdesc_s390x_linux64 to...
13267 * s390-tdep.h: ...here.
13268
13269 2018-01-30 Pedro Alves <palves@redhat.com>
13270
13271 PR gdb/13211
13272 * config.in, configure: Regenerate.
13273 * configure.ac: Check for getpgid.
13274 * go32-nat.c (go32_pass_ctrlc): New.
13275 (go32_target): Install it.
13276 * inf-child.c (inf_child_target): Install
13277 child_terminal_save_inferior, child_pass_ctrlc and
13278 child_interrupt.
13279 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13280 (inf_ptrace_target): No longer install it.
13281 * infcmd.c (interrupt_target_1): Adjust.
13282 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13283 (child_interrupt): Declare.
13284 (inferior::terminal_state): New.
13285 * inflow.c (struct terminal_info): Update comments.
13286 (inferior_process_group): Delete.
13287 (terminal_is_ours): Delete.
13288 (gdb_tty_state): New.
13289 (child_terminal_init): Adjust.
13290 (is_gdb_terminal, sharing_input_terminal_1)
13291 (sharing_input_terminal): New functions.
13292 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13293 Set the process's actual process group in the foreground if
13294 possible. Handle is_ours_for_output/is_ours distinction. Don't
13295 mark terminal as the inferior's if not sharing GDB's terminal.
13296 Don't check attach_flag.
13297 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13298 pass down a target_terminal_state.
13299 (child_terminal_save_inferior): New, factored out from ...
13300 (child_terminal_ours_1): ... this. Handle
13301 target_terminal_state::is_ours_for_output.
13302 (child_interrupt, child_pass_ctrlc): New.
13303 (inflow_inferior_exit): Clear the inferior's terminal_state.
13304 (copy_terminal_info): Copy the inferior's terminal state.
13305 (_initialize_inflow): Remove reference to terminal_is_ours.
13306 * inflow.h (inferior_process_group): Delete.
13307 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13308 * procfs.c (procfs_target): Don't install procfs_interrupt.
13309 (procfs_interrupt): Delete.
13310 * remote.c (remote_serial_quit_handler): Adjust.
13311 (remote_interrupt): Remove ptid parameter. Adjust.
13312 * target-delegates.c: Regenerate.
13313 * target.c: Include "terminal.h".
13314 (target_terminal::terminal_state): Rename to ...
13315 (target_terminal::m_terminal_state): ... this.
13316 (target_terminal::init): Adjust.
13317 (target_terminal::inferior): Adjust to per-inferior
13318 terminal_state.
13319 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13320 (target_terminal::ours, target_terminal::ours_for_output): Use
13321 target_terminal_is_ours_kind.
13322 (target_interrupt): Remove ptid parameter. Adjust.
13323 (default_target_pass_ctrlc): Adjust.
13324 * target.h (target_ops::to_terminal_save_inferior): New field.
13325 (target_ops::to_interrupt): Remove ptid_t parameter.
13326 (target_interrupt): Remove ptid_t parameter. Update comment.
13327 (target_pass_ctrlc): Update comment.
13328 * target/target.h (target_terminal_state): New scoped enum,
13329 factored out of ...
13330 (target_terminal::terminal_state): ... here.
13331 (target_terminal::inferior): Update comments.
13332 (target_terminal::restore_inferior): New.
13333 (target_terminal::is_inferior, target_terminal::is_ours)
13334 (target_terminal::is_ours_for_output): Adjust.
13335 (target_terminal::scoped_restore_terminal_state): Adjust to
13336 rename, and call restore_inferior() instead of inferior().
13337 (target_terminal::scoped_restore_terminal_state::m_state): Change
13338 type.
13339 (target_terminal::terminal_state): Rename to ...
13340 (target_terminal::m_terminal_state): ... this and change type.
13341
13342 2018-01-30 Pedro Alves <palves@redhat.com>
13343
13344 * linux-nat.c (wait_for_signal): New function.
13345 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13346 directly.
13347 (async_terminal_is_ours)
13348 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13349 (linux_nat_add_target): Don't override
13350 to_terminal_inferior/to_terminal_ours.
13351
13352 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13353
13354 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13355
13356 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13357
13358 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13359 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13360 dwarf2_per_objfile_free here.
13361 (dwarf2_per_objfile_free): Remove.
13362 (_initialize_dwarf2_read): Don't register
13363 dwarf2_per_objfile_free as a registry cleanup.
13364
13365 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13366
13367 Avoid compilation errors in MinGW native builds
13368
13369 The error is triggered by including python-internal.h, and the
13370 error message is:
13371
13372 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13373 from build-gnulib/import/math.h:27,
13374 from d:/usr/Python26/include/pyport.h:235,
13375 from d:/usr/Python26/include/Python.h:58,
13376 from python/python-internal.h:94,
13377 from python/py-arch.c:24:
13378 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13379 using ::hypot;
13380 ^~~~~
13381
13382 This happens because Python headers define 'hypot' to expand t
13383 '_hypot' in the Windows builds.
13384 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13385 'hypoth'. This avoids a compilation error.
13386
13387 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13388
13389 * MAINTAINERS (Write After Approval): Fix ordering.
13390
13391 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13392
13393 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13394
13395 2018-01-26 Alan Modra <amodra@gmail.com>
13396
13397 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13398 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13399 Remove nop. Make const. Comment.
13400 (powerpc32_plt_stub_so_2): New.
13401 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13402 Correct count. Update uses.
13403 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13404 Move common code reading PLT entry word. Correct
13405 powerpc32_plt_stub PLT address calculation.
13406 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13407 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13408 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13409 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13410 (ppc64_standard_linkage8): Likewise.
13411 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13412 Correct insns description.
13413 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13414
13415 2018-01-24 Pedro Alves <palves@redhat.com>
13416
13417 GCC PR libstdc++/83906
13418 * gdbtypes.c (operator==(const dynamic_prop &,
13419 const dynamic_prop &)): New.
13420 (operator==(const range_bounds &, const range_bounds &)): New.
13421 (check_types_equal): Use them instead of memcmp.
13422 * gdbtypes.h (operator==(const dynamic_prop &,
13423 const dynamic_prop &)): Declare.
13424 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13425 (operator==(const range_bounds &, const range_bounds &)): Declare.
13426 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13427
13428 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13429
13430 * s390-linux-tdep.c (s390_record_address_mask)
13431 (s390_record_calc_disp_common, s390_record_calc_disp)
13432 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13433 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13434 (s390_process_record): Move to s390-tdep.c.
13435 (s390_linux_init_abi_any): Adjust.
13436 * s390-tdep.c (s390_record_address_mask)
13437 (s390_record_calc_disp_common, s390_record_calc_disp)
13438 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13439 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13440 (s390_process_record): Moved from s390-linux-tdep.c
13441 (s390_gdbarch_init): Adjust.
13442
13443 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13444
13445 * s390-linux-nat.c (s390-tdep.h): New include.
13446 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13447 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13448 (ALLDEPFILES): Add s390-tdep.c.
13449 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13450 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13451 * s390-tdep.h: ...this. New file.
13452 * s390-linux-tdep.c (s390-tdep.h): New include.
13453 (_initialize_s390_tdep): Rename to...
13454 (_initialize_s390_linux_tdep): ...this and adjust.
13455 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13456 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13457 s390-tdep.h.
13458 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13459 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13460 (s390_is_partial_instruction, s390_software_single_step)
13461 (is_non_branch_ril, s390_displaced_step_copy_insn)
13462 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13463 (s390_prologue_data, s390_addr, s390_store, s390_load)
13464 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13465 (s390_register_call_saved, s390_guess_tracepoint_registers)
13466 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13467 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13468 (s390_pseudo_register_name, s390_pseudo_register_type)
13469 (s390_pseudo_register_read, s390_pseudo_register_write)
13470 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13471 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13472 (s390_addr_bits_remove, s390_address_class_type_flags)
13473 (s390_address_class_type_flags_to_name)
13474 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13475 (s390_function_arg_float, s390_function_arg_vector)
13476 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13477 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13478 (s390_frame_align, s390_register_return_value, s390_return_value)
13479 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13480 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13481 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13482 (s390_trad_frame_prev_register, s390_unwind_cache)
13483 (s390_prologue_frame_unwind_cache)
13484 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13485 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13486 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13487 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13488 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13489 (s390_frame_base_address, s390_local_base_address)
13490 (s390_frame_base, s390_gcc_target_options)
13491 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13492 (s390_validate_reg_range, s390_tdesc_valid)
13493 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13494 * s390-tdep.c: ...this. New file.
13495
13496 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13497
13498 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13499 (s390_process_record, s390_gdbarch_tdep_alloc)
13500 (s390_linux_init_abi_any): Use/set new hook.
13501
13502 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13503
13504 * s390-linux-tdep.c (osabi.h): New include.
13505 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13506 (s390_linux_init_abi_any): New functions.
13507 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13508
13509 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13510
13511 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13512 tdesc_has_registers check
13513
13514 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13515
13516 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13517 (s390_validate_reg_range): New macro.
13518 (s390_gdbarch_init): Adjust.
13519
13520 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13521
13522 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13523 (s390_gdbarch_tdep_alloc): Adjust.
13524 (s390_gdbarch_init): Adjust.
13525
13526 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13527
13528 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13529 <have_tdb>: Change type to bool.
13530 (s390_gdbarch_tdep_alloc): Adjust.
13531 (s390_gdbarch_init): Adjust.
13532
13533 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13534
13535 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13536 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13537 (s390_gdbarch_tdep_alloc): New function.
13538 (s390_gdbarch_init): Allocate tdep at start and use its fields
13539 instead of separate variables.
13540
13541 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13542
13543 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13544 when looking for cached gdbarch and add comment for remaining.
13545
13546 2018-01-22 Pedro Alves <palves@redhat.com>
13547 Sergio Durigan Junior <sergiodj@redhat.com>
13548
13549 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13550 case.
13551
13552 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13553
13554 * MAINTAINERS: Update my company e-mail address.
13555
13556 2018-01-22 Yao Qi <yao.qi@linaro.org>
13557
13558 * regcache.c (cooked_write_test): New function.
13559 (_initialize_regcache): Register the test.
13560
13561 2018-01-22 Yao Qi <yao.qi@linaro.org>
13562
13563 * ia64-tdep.c (ia64_pseudo_register_read): Call
13564 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13565 * m32c-tdep.c (m32c_cat_read): Likewise.
13566 (m32c_r3r2r1r0_read): Likewise.
13567 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13568 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13569
13570 2018-01-22 Yao Qi <yao.qi@linaro.org>
13571
13572 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13573 method raw_read instead of regcache_raw_read.
13574 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13575 * arm-tdep.c (arm_neon_quad_read): Likewise.
13576 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13577 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13578 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13579 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13580 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13581 (i386_pseudo_register_read_into_value): Likewise.
13582 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13583 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13584 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13585 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13586 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13587 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13588 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13589 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13590 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13591
13592 2018-01-22 Yao Qi <yao.qi@linaro.org>
13593
13594 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13595 * configure.tgt: Remove target mt.
13596 * mt-tdep.c: Remove.
13597 * regcache.c (cooked_read_test): Remove the check for mt.
13598
13599 2018-01-22 Yao Qi <yao.qi@linaro.org>
13600
13601 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13602 instead of gdbarch_pseudo_register_read_value.
13603
13604 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13605
13606 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13607 language is Ada.
13608
13609 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13610
13611 * linespec.c (create_sals_line_offset): Remove code that preserved
13612 the symtab_and_line's line number.
13613
13614 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13615
13616 * varobj.c (varobj_create): Don't set valid_block when creating a
13617 floating varobj.
13618
13619 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13620
13621 * varobj.c (varobj_create): Remove out of date comment.
13622
13623 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13624
13625 PR mi/20395
13626 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13627 updating innermost block.
13628 * parse.c (innermost_block_tracker::update): Take extra type
13629 parameter, and check types match before updating innermost block.
13630 (write_dollar_variable): Update innermost block for registers.
13631 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13632 (innermost_block_tracker::innermost_block_tracker): Initialise
13633 m_types member.
13634 (innermost_block_tracker::reset): Take type parameter.
13635 (innermost_block_tracker::update): Take type parameter, and pass
13636 type through as needed.
13637 (innermost_block_tracker::m_types): New member.
13638 * varobj.c (varobj_create): Pass type when reseting innermost
13639 block.
13640
13641 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13642
13643 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13644 * ada-lang.c (resolve_subexp): Likewise.
13645 * breakpoint.c (set_breakpoint_condition) Likewise.
13646 (watch_command_1) Likewise.
13647 * c-exp.y (variable): Likewise.
13648 * d-exp.y (PrimaryExpression): Likewise.
13649 * f-exp.y (variable): Likewise.
13650 * go-exp.y (variable): Likewise.
13651 * m2-exp.y (variable): Likewise.
13652 * objfiles.c (objfile::~objfile): Likewise.
13653 * p-exp.y (variable): Likewise.
13654 * parse.c (innermost_block): Change type.
13655 * parser-defs.h (class innermost_block_tracker): New.
13656 (innermost_block): Change to innermost_block_tracker.
13657 * printcmd.c (display_command): Switch to innermost_block API.
13658 (do_one_display): Likewise.
13659 * rust-exp.y (do_one_display): Likewise.
13660 * symfile.c (clear_symtab_users): Likewise.
13661 * varobj.c (varobj_create): Switch to innermost_block API, replace
13662 use of innermost_block with block stored on varobj object.
13663
13664 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13665
13666 * expression.h (innermost_block): Remove declaration.
13667 * varobj.c: Add 'parser-defs.h' include.
13668
13669 2018-01-19 Tom Tromey <tom@tromey.com>
13670
13671 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13672 symbols in the static and global blocks.
13673
13674 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13675
13676 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13677 gdb_ptrace.h, and move including gdb_wait.h ...
13678 * nat/linux-ptrace.h: ... to here.
13679
13680 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13681
13682 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13683 inf_ptrace_detach_success.
13684 (inf_ptrace_detach_success): Add inferior parameter, use it
13685 instead of inferior_ptid, pass it to detach_inferior.
13686 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13687 parameter.
13688 * inferior.c (detach_inferior): Add overload that takes an
13689 inferior object.
13690 * inferior.h (detach_inferior): Likewise.
13691 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13692 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13693 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13694
13695 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13696
13697 * target.h (struct target_ops) <to_detach>: Add inferior
13698 parameter.
13699 (target_detach): Likewise.
13700 * target.c (dispose_inferior): Pass inferior down.
13701 (target_detach): Pass inferior down. Assert that it is equal to
13702 the current inferior.
13703 * aix-thread.c (aix_thread_detach): Pass inferior down.
13704 * corefile.c (core_file_command): Pass current_inferior() down.
13705 * corelow.c (core_detach): Add inferior parameter.
13706 * darwin-nat.c (darwin_detach): Likewise.
13707 * gnu-nat.c (gnu_detach): Likewise.
13708 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13709 * infcmd.c (detach_command): Pass current_inferior() down to
13710 target_detach.
13711 * infrun.c (follow_fork_inferior): Pass parent_inf to
13712 target_detach.
13713 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13714 target_detach.
13715 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13716 * linux-thread-db.c (thread_db_detach): Likewise.
13717 * nto-procfs.c (procfs_detach): Likewise.
13718 * procfs.c (procfs_detach): Likewise.
13719 * record.c (record_detach): Likewise.
13720 * record.h (struct inferior): Forward-declare.
13721 (record_detach): Add inferior parameter.
13722 * remote-sim.c (gdbsim_detach): Likewise.
13723 * remote.c (remote_detach_1): Likewise.
13724 (remote_detach): Likewise.
13725 (extended_remote_detach): Likewise.
13726 * sol-thread.c (sol_thread_detach): Likewise.
13727 * target-debug.h (target_debug_print_inferior_p): New macro.
13728 * target-delegates.c: Re-generate.
13729 * top.c (kill_or_detach): Pass inferior down to target_detach.
13730 * windows-nat.c (windows_detach): Add inferior parameter.
13731
13732 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13733
13734 * target.h (struct target_ops) <to_detach>: Remove args
13735 parameter.
13736 (target_detach): Likewise.
13737 * target.c (dispose_inferior): Adjust.
13738 (target_detach): Remove args parameter, adjust.
13739 * aix-thread.c (aix_thread_detach): Adjust.
13740 * corefile.c (core_file_command): Adjust.
13741 * corelow.c (core_detach): Adjust.
13742 * darwin-nat.c (darwin_detach): Adjust.
13743 * gnu-nat.c (gnu_detach): Adjust.
13744 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13745 * infcmd.c (detach_command): Adjust
13746 * infrun.c (follow_fork_inferior): Adjust.
13747 (handle_vfork_child_exec_or_exit): Adjust.
13748 * linux-fork.c (linux_fork_detach): Remove args parameter.
13749 * linux-fork.h (linux_fork_detach): Likewise.
13750 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13751 * linux-thread-db.c (thread_db_detach): Likewise.
13752 * nto-procfs.c (procfs_detach): Likewise.
13753 * procfs.c (procfs_detach): Likewise.
13754 (do_detach): Remove signo parameter.
13755 * record.c (record_detach): Remove args parameter.
13756 * record.h (record_detach): Likewise.
13757 * remote-sim.c (gdbsim_detach): Likewise.
13758 * remote.c (remote_detach_1): Likewise.
13759 (remote_detach): Likewise.
13760 (extended_remote_detach): Likewise.
13761 * sol-thread.c (sol_thread_detach): Likewise.
13762 * target-delegates.c: Re-generate.
13763 * top.c (struct qt_args) <args>: Remove field.
13764 (kill_or_detach): Don't pass args.
13765 (quit_force): Don't set args.
13766 * windows-nat.c (windows_detach): Remove args parameter.
13767
13768 2018-01-19 Yao Qi <yao.qi@linaro.org>
13769
13770 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13771 (arm_linux_init_abi): Install it.
13772
13773 2018-01-19 Yao Qi <yao.qi@linaro.org>
13774
13775 * osabi.c (gdb_osabi_names): Extend the regexp for
13776 arm-linux-gnueabihf.
13777
13778 2018-01-18 Yao Qi <yao.qi@linaro.org>
13779
13780 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13781 m_abbrevs.
13782 (abbrev_table::add_abbrev): Update.
13783 (abbrev_table::lookup_abbrev): Update.
13784
13785 2018-01-18 Yao Qi <yao.qi@linaro.org>
13786
13787 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13788
13789 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13790
13791 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13792 to "std::string".
13793
13794 2018-01-17 Tom Tromey <tom@tromey.com>
13795
13796 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13797
13798 2018-01-17 Tom Tromey <tom@tromey.com>
13799
13800 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13801 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13802 (create_array_type_with_stride): Update.
13803 * dwarf2read.c (set_die_type): Update.
13804
13805 2018-01-17 Tom Tromey <tom@tromey.com>
13806
13807 * dwarf2read.c (delayed_method_info): Remove typedef.
13808 (dwarf2_cu::method_info): Now a std::vector.
13809 (add_to_method_list): Update.
13810 (free_delayed_list): Remove.
13811 (compute_delayed_physnames): Update.
13812 (process_full_comp_unit, process_full_type_unit): Clear the method
13813 list. Remove cleanups.
13814 (psymtab_include_file_name): Add name_holder parameter. Use
13815 unique_xmalloc_ptr.
13816 (dwarf_decode_lines): Update.
13817
13818 2018-01-17 Tom Tromey <tom@tromey.com>
13819 Simon Marchi <simon.marchi@ericsson.com>
13820
13821 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13822 (dwarf2_per_objfile::free_cached_comp_units)
13823 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13824 (init_cutu_and_read_dies_no_follow): Update.
13825 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13826 (dwarf2_cu::~dwarf2_cu): New.
13827 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13828 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13829
13830 2018-01-17 Tom Tromey <tom@tromey.com>
13831 Simon Marchi <simon.marchi@ericsson.com>
13832
13833 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13834 (struct die_reader_specs) <abbrev_table>: New member.
13835 (struct abbrev_table): Add constructor.
13836 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13837 <abbrev_obstack>: Now an auto_obstack.
13838 (abbrev_table_up): New typedef.
13839 (init_cu_die_reader): Add abbrev_table parameter.
13840 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13841 Add result_dwo_abbrev_table.
13842 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13843 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13844 Update.
13845 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13846 parameter.
13847 (skip_children): Update.
13848 (abbrev_table::alloc_abbrev): Rename from
13849 abbrev_table_alloc_abbrev.
13850 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13851 (abbrev_table::lookup_abbrev): Rename from
13852 abbrev_table_lookup_abbrev.
13853 (abbrev_table_read_table): Return abbrev_table_up.
13854 (abbrev_table_free, abbrev_table_free_cleanup)
13855 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13856 (load_partial_dies): Update.
13857
13858 2018-01-17 Tom Tromey <tom@tromey.com>
13859
13860 * dwarf2read.c (dwarf2_compute_name): Update comment.
13861 (read_func_scope, read_variable): Update.
13862 (new_symbol): Remove.
13863 (new_symbol_full): Rename to new_symbol.
13864
13865 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13866
13867 PR gdb/16577
13868 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13869 a warning instead of throwing an error, set section size to 0 and return
13870 NULL.
13871 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13872
13873 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13874
13875 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13876 std::string.
13877 (linux_ptrace_attach_fail_reason_string): Likewise.
13878 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13879 Likewise.
13880 (linux_ptrace_attach_fail_reason_string): Likewise.
13881 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13882
13883 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13884
13885 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13886
13887 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13888
13889 PR gdb/21559
13890 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13891 checking for fs_base/gs_base fields in struct user_regs_struct.
13892 * configure: Regenerate.
13893
13894 2018-01-17 Yao Qi <yao.qi@linaro.org>
13895
13896 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13897 function.
13898 (aarch64_linux_init_abi): Install it to gdbarch hook
13899 gcc_target_options.
13900
13901 2018-01-15 Pedro Alves <palves@redhat.com>
13902
13903 * common/signals-state-save-restore.c
13904 (save_original_signals_state): Fix typos.
13905
13906 2017-01-12 Tom Tromey <tom@tromey.com>
13907 Sergio Durigan Junior <sergiodj@redhat.com>
13908
13909 * Makefile.in (install-only): Install gdb-add-index.
13910
13911 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13912
13913 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13914
13915 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13916
13917 * infrun.c (keep_going_pass_signal): Clear step-over info when
13918 insert_breakpoints fails.
13919
13920 2018-01-11 Pedro Alves <palves@redhat.com>
13921
13922 PR gdb/22583
13923 * infrun.c (resume): Rename to ...
13924 (resume_1): ... this.
13925 (resume): Reimplement as wrapper around resume_1.
13926
13927 2018-01-11 Pedro Alves <palves@redhat.com>
13928
13929 PR remote/22597
13930 * remote.c (remote_parse_stop_reply): Default to the last-set
13931 general thread instead of to 'magic_null_ptid'.
13932
13933 2018-01-10 Pedro Alves <palves@redhat.com>
13934
13935 * language.h (language_get_symbol_name_matcher): Rename ...
13936 (get_symbol_name_matcher): ... this.
13937 * language.c (language_get_symbol_name_matcher): Ditto.
13938 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13939 callers adjusted.
13940
13941 2018-01-10 Pedro Alves <palves@redhat.com>
13942
13943 PR gdb/22670
13944 * dwarf2read.c
13945 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13946 Adjust to use language_get_symbol_name_matcher instead of
13947 language_defn::la_get_symbol_name_matcher.
13948 * language.c (language_get_symbol_name_matcher): If in Ada mode
13949 and the lookup name is a verbatim match, return Ada's matcher.
13950 * language.h (language_get_symbol_name_matcher): Adjust comment.
13951 (ada_lookup_name_info::verbatim_p):: New method.
13952
13953 2018-01-10 Pedro Alves <palves@redhat.com>
13954
13955 PR gdb/22670
13956 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13957 minsym's language is language_auto or language_cplus, pass down
13958 language_ada instead.
13959 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13960
13961 2018-01-10 Pedro Alves <palves@redhat.com>
13962
13963 PR gdb/22670
13964 * minsyms.c (linkage_name_str): New function.
13965 (iterate_over_minimal_symbols): Use it.
13966
13967 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13968
13969 * NEWS: Document that 'info proc' now works on FreeBSD.
13970
13971 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13972
13973 * configure.ac: Check for kinfo_getfile in libutil.
13974 * configure: Regenerate.
13975 * config.in: Regenerate.
13976 * fbsd-nat.c: Include "fbsd-tdep.h".
13977 (fbsd_fetch_cmdline): New.
13978 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13979 rather than calling error.
13980 (fbsd_info_proc): New.
13981 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13982 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13983 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13984
13985 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13986
13987 * fbsd-nat.c (struct free_deleter): Remove.
13988 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13989
13990 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13991
13992 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13993 NULL for an empty pathname.
13994
13995 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13996
13997 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13998 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13999 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14000 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14001 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14002 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14003 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14004 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14005 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14006 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14007 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14008 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14009 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14010 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14011 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14012
14013 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14014
14015 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14016 (gnu_xfer_auxv): New function.
14017 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14018 TARGET_OBJECT_AUXV.
14019
14020 2018-01-08 Yao Qi <yao.qi@linaro.org>
14021 Simon Marchi <simon.marchi@ericsson.com>
14022
14023 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14024 common/selftest.c.
14025 (COMMON_OBS): Remove selftest.o.
14026 * configure.ac: Append selftest-arch.c and common/selftest.c to
14027 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14028 * configure: Re-generated.
14029 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14030 GDB_SELF_TEST.
14031 (maintenance_info_selftests): Likewise.
14032
14033 2018-01-08 Xavier Roirand <roirand@adacore.com>
14034
14035 * ada-valprint.c (val_print_packed_array_elements): Use
14036 proper number of elements when printing an array indexed
14037 by an enumeration type.
14038
14039 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14040
14041 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14042 (dw2_get_file_names_reader): Adjust.
14043 (lookup_dwo_signatured_type): Adjust.
14044 (lookup_dwp_signatured_type): Adjust.
14045 (lookup_signatured_type): Adjust.
14046 (create_type_unit_group): Adjust.
14047 (get_type_unit_group): Adjust.
14048 (process_psymtab_comp_unit_reader): Adjust.
14049 (build_type_psymtabs_reader): Adjust.
14050 (scan_partial_symbols): Adjust.
14051 (add_partial_symbol): Adjust.
14052 (add_partial_subprogram): Adjust.
14053 (peek_die_abbrev): Adjust.
14054 (fixup_go_packaging): Adjust.
14055 (process_imported_unit_die): Adjust.
14056 (dwarf2_compute_name): Adjust.
14057 (dwarf2_physname): Adjust.
14058 (read_import_statement): Adjust.
14059 (handle_DW_AT_stmt_list): Adjust.
14060 (read_file_scope): Adjust.
14061 (read_func_scope): Adjust.
14062 (read_lexical_block_scope): Adjust.
14063 (read_call_site_scope): Adjust.
14064 (read_variable): Adjust.
14065 (dwarf2_rnglists_process): Adjust.
14066 (dwarf2_ranges_process): Adjust.
14067 (dwarf2_ranges_read): Adjust.
14068 (dwarf2_get_pc_bounds): Adjust.
14069 (dwarf2_record_block_ranges): Adjust.
14070 (dwarf2_add_field): Adjust.
14071 (dwarf2_add_member_fn): Adjust.
14072 (read_structure_type): Adjust.
14073 (process_structure_scope): Adjust.
14074 (read_enumeration_type): Adjust.
14075 (read_array_type): Adjust.
14076 (mark_common_block_symbol_computed): Adjust.
14077 (read_common_block): Adjust.
14078 (read_namespace_type): Adjust.
14079 (read_namespace): Adjust.
14080 (read_module_type): Adjust.
14081 (read_tag_pointer_type): Adjust.
14082 (read_tag_ptr_to_member_type): Adjust.
14083 (read_tag_string_type): Adjust.
14084 (read_subroutine_type): Adjust.
14085 (read_typedef): Adjust.
14086 (read_base_type): Adjust.
14087 (attr_to_dynamic_prop): Adjust.
14088 (read_subrange_type): Adjust.
14089 (read_unspecified_type): Adjust.
14090 (dwarf2_read_abbrevs): Adjust.
14091 (load_partial_dies): Adjust.
14092 (read_partial_die): Adjust.
14093 (find_partial_die): Adjust.
14094 (guess_partial_die_structure_name): Adjust.
14095 (fixup_partial_die): Adjust.
14096 (read_attribute_value): Adjust.
14097 (read_addr_index): Adjust.
14098 (read_addr_index_from_leb128): Adjust.
14099 (read_str_index): Adjust.
14100 (dwarf2_string_attr): Adjust.
14101 (get_debug_line_section): Adjust.
14102 (dwarf_decode_line_header): Adjust.
14103 (lnp_state_machine::check_line_address): Adjust.
14104 (dwarf_decode_lines_1): Adjust.
14105 (dwarf_decode_lines): Adjust.
14106 (dwarf2_start_symtab): Adjust.
14107 (var_decode_location): Adjust.
14108 (new_symbol_full): Adjust.
14109 (dwarf2_const_value_data): Adjust.
14110 (dwarf2_const_value_attr): Adjust.
14111 (dwarf2_const_value): Adjust.
14112 (die_type): Adjust.
14113 (die_containing_type): Adjust.
14114 (build_error_marker_type): Adjust.
14115 (lookup_die_type): Adjust.
14116 (guess_full_die_structure_name): Adjust.
14117 (anonymous_struct_prefix): Adjust.
14118 (determine_prefix): Adjust.
14119 (dwarf2_name): Adjust.
14120 (follow_die_ref_or_sig): Adjust.
14121 (follow_die_offset): Adjust.
14122 (follow_die_ref): Adjust.
14123 (follow_die_sig_1): Adjust.
14124 (follow_die_sig): Adjust.
14125 (get_signatured_type): Adjust.
14126 (get_DW_AT_signature_type): Adjust.
14127 (decode_locdesc): Adjust.
14128 (dwarf_decode_macros): Adjust.
14129 (cu_debug_loc_section): Adjust.
14130 (fill_in_loclist_baton): Adjust.
14131 (dwarf2_symbol_mark_computed): Adjust.
14132 (init_one_comp_unit): Don't assign
14133 dwarf2_cu::dwarf2_per_objfile.
14134 (set_die_type): Adjust.
14135
14136 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14137
14138 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14139 <dwarf2_per_objfile>: New field.
14140 (dwarf2_per_objfile): Remove global.
14141 (get_dwarf2_per_objfile): New function.
14142 (set_dwarf2_per_objfile): New function.
14143 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14144 dwarf2_per_objfile.
14145 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14146 (read_abbrev_offset): Likewise.
14147 (read_indirect_string): Likewise.
14148 (read_indirect_line_string): Likewise.
14149 (read_indirect_string_at_offset): Likewise.
14150 (read_indirect_string_from_dwz): Likewise.
14151 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14152 dwarf2_per_objfile.
14153 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14154 (create_all_comp_units): Change objfile parameter to
14155 dwarf2_per_objfile.
14156 (create_all_type_units): Likewise.
14157 (process_queue): Add dwarf2_per_objfile parameter.
14158 (read_and_check_comp_unit_head): Likewise.
14159 (lookup_dwo_unit_in_dwp): Likewise.
14160 (get_dwp_file): Likewise.
14161 (process_cu_includes): Likewise.
14162 (struct free_dwo_file_cleanup_data): New struct.
14163 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14164 set_dwarf2_per_objfile.
14165 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14166 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14167 context, adjust calls.
14168 (dw2_instantiate_symtab): Likewise.
14169 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14170 (dw2_get_cu): Likewise.
14171 (create_cu_from_index_list): Change objfile parameter to
14172 dwarf2_per_objfile.
14173 (create_cus_from_index_list): Get dwarf2_per_objfile from
14174 context, adjust calls.
14175 (create_cus_from_index): Likewise.
14176 (create_signatured_type_table_from_index): Change objfile
14177 parameter to dwarf2_per_objfile.
14178 (create_signatured_type_table_from_debug_names): Change objfile
14179 parameter to dwarf2_per_objfile.
14180 (create_addrmap_from_index): Likewise.
14181 (create_addrmap_from_aranges): Likewise.
14182 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14183 (dw2_setup): Remove.
14184 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14185 context.
14186 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14187 get_dwarf2_per_objfile.
14188 (dw2_forget_cached_source_info): Likewise.
14189 (dw2_map_symtabs_matching_filename): Likewise.
14190 (struct dw2_symtab_iterator) <index>: Remove.
14191 <dwarf2_per_objfile>: New field.
14192 (dw2_symtab_iter_init): Replace index parameter with
14193 dwarf2_per_objfile.
14194 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14195 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14196 (dw2_print_stats): Likewise.
14197 (dw2_dump): Likewise.
14198 (dw2_expand_symtabs_for_function): Likewise.
14199 (dw2_expand_all_symtabs): Likewise.
14200 (dw2_expand_symtabs_with_fullname): Likewise.
14201 (dw2_expand_marked_cus): Replace index and objfile parameters
14202 with dwarf2_per_objfile.
14203 (dw_expand_symtabs_matching_file_matcher): Add
14204 dwarf2_per_objfile parameter and adjust calls.
14205 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14206 adjust calls.
14207 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14208 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14209 adjust calls.
14210 (create_cus_from_debug_names_list): Replace objfile parameter
14211 with dwarf2_per_objfile and adjust calls.
14212 (create_cus_from_debug_names): Likewise.
14213 (dwarf2_read_debug_names): Likewise.
14214 (mapped_debug_names::namei_to_name): Adjust call.
14215 (dw2_debug_names_iterator::next): Likewise.
14216 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14217 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14218 (dw2_debug_names_dump): Likewise.
14219 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14220 (dw2_debug_names_expand_symtabs_matching): Likewise.
14221 (dwarf2_initialize_objfile): Likewise.
14222 (dwarf2_build_psymtabs): Likewise.
14223 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14224 this_cu.
14225 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14226 (read_and_check_comp_unit_head): Likewise.
14227 (read_abbrev_offset): Likewise.
14228 (create_debug_type_hash_table): Likewise.
14229 (create_debug_types_hash_table): Likewise.
14230 (create_all_type_units): Replace objfile parameter with
14231 dwarf2_per_objfile.
14232 (add_type_unit): Add dwarf2_per_objfile parameter.
14233 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14234 with dwarf2_per_objfile.
14235 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14236 (lookup_dwp_signatured_type): Likewise.
14237 (lookup_signatured_type): Likewise.
14238 (read_cutu_die_from_dwo): Likewise.
14239 (init_tu_and_read_dwo_dies): Likewise.
14240 (init_cutu_and_read_dies): Likewise.
14241 (init_cutu_and_read_dies_no_follow): Likewise.
14242 (allocate_type_unit_groups_table): Add objfile parameter.
14243 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14244 (get_type_unit_group): Likewise.
14245 (process_psymtab_comp_unit): Update call.
14246 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14247 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14248 (print_tu_stats): Likewise.
14249 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14250 in void* parameter.
14251 (build_type_psymtabs): Change objfile parameter to
14252 dwarf2_per_objfile.
14253 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14254 passed in void* parameter.
14255 (process_skeletonless_type_units): Change objfile parameter to
14256 dwarf2_per_objfile.
14257 (set_partial_user): Likewise.
14258 (dwarf2_build_psymtabs_hard): Likewise.
14259 (read_comp_units_from_section): Likewise.
14260 (create_all_comp_units): Likewise.
14261 (scan_partial_symbols): Update calls.
14262 (add_partial_symbol): Likewise.
14263 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14264 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14265 (process_queue): Add dwarf2_per_objfile parameter.
14266 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14267 (compute_compunit_symtab_includes): Likewise.
14268 (process_cu_includes): Add dwarf2_per_objfile parameter.
14269 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14270 (process_full_type_unit): Likewise.
14271 (process_imported_unit_die): Update call.
14272 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14273 (read_file_scope): Likewise.
14274 (allocate_dwo_file_hash_table): Add objfile parameter.
14275 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14276 (create_cus_hash_table): Likewise.
14277 (create_dwp_hash_table): Likewise.
14278 (create_dwo_unit_in_dwp_v1): Likewise.
14279 (create_dwp_v2_section): Likewise.
14280 (create_dwo_unit_in_dwp_v2): Likewise.
14281 (lookup_dwo_unit_in_dwp): Likewise.
14282 (try_open_dwop_file): Likewise.
14283 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14284 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14285 cleanup to include a reference to dwarf2_per_objfile.
14286 (open_dwp_file): Add dwarf2_per_objfile parameter.
14287 (open_and_init_dwp_file): Likewise.
14288 (get_dwp_file): Likewise.
14289 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14290 (queue_and_load_all_dwo_tus): Update call.
14291 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14292 data.
14293 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14294 (dwarf2_ranges_process): Likewise.
14295 (dwarf2_get_pc_bounds): Likewise.
14296 (mark_common_block_symbol_computed): Likewise.
14297 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14298 (dwarf2_read_abbrevs): Update call.
14299 (read_partial_die): Use dwarf2_per_objfile from cu.
14300 (find_partial_die): Likewise.
14301 (fixup_partial_die): Likewise.
14302 (read_attribute_value): Likewise.
14303 (read_indirect_string_at_offset_from): Add objfile parameter.
14304 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14305 parameter.
14306 (read_indirect_string_from_dwz): Add objfile parameter.
14307 (read_indirect_string): Add objfile parameter.
14308 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14309 (read_addr_index): Use dwarf2_per_objfile from cu.
14310 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14311 call dw2_setup.
14312 (read_str_index): Use dwarf2_per_objfile from cu.
14313 (get_debug_line_section): Likewise.
14314 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14315 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14316 (new_symbol_full): Use dwarf2_per_objfile from cu.
14317 (build_error_marker_type): Likewise.
14318 (lookup_die_type): Likewise.
14319 (determine_prefix): Likewise.
14320 (follow_die_offset): Likewise.
14321 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14322 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14323 (dwarf2_fetch_die_type_sect_off): Likewise.
14324 (dwarf2_get_die_type): Likewise.
14325 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14326 (get_signatured_type): Likewise.
14327 (get_DW_AT_signature_type): Likewise.
14328 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14329 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14330 (cu_debug_loc_section): Likewise.
14331 (fill_in_loclist_baton): Likewise.
14332 (dwarf2_symbol_mark_computed): Likewise.
14333 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14334 dwarf2_per_objfile.
14335 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14336 parameter.
14337 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14338 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14339 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14340 (set_die_type): Use dwarf2_free_objfile from cu.
14341 (get_die_type_at_offset): Likewise.
14342 (dwarf2_per_objfile_free): Don't assign global variable.
14343 (debug_names) <constructor>: Add dwarf2_per_objfile
14344 parameter, update m_debugstrlookup construction.
14345 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14346 parameter.
14347 <m_dwarf2_per_objfile>: New field.
14348 <lookup>: Use m_dwarf2_per_objfile.
14349 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14350 (psyms_seen_size): Likewise.
14351 (write_gdbindex): Replace objfile parameter with
14352 dwarf2_per_objfile.
14353 (write_debug_names): Likewise.
14354 (write_psymtabs_to_index): Likewise.
14355 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14356 calls.
14357
14358 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14359
14360 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14361 <dwarf2_per_objfile>: New field.
14362 (struct dwarf2_per_cu_data) <objfile>: Remove.
14363 <dwarf2_per_objfile>: New field.
14364 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14365 of objfile.
14366 (create_signatured_type_table_from_index): Likewise.
14367 (create_debug_type_hash_table): Likewise.
14368 (fill_in_sig_entry_from_dwo_entry): Likewise.
14369 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14370 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14371 objfile.
14372 (create_partial_symtab): Access objfile through
14373 dwarf2_per_objfile.
14374 (process_psymtab_comp_unit_reader): Likewise.
14375 (read_comp_units_from_section): Likewise.
14376 (scan_partial_symbols): Likewise.
14377 (add_partial_symbol): Likewise.
14378 (add_partial_subprogram): Likewise.
14379 (peek_die_abbrev): Likewise.
14380 (fixup_go_packaging): Likewise.
14381 (process_full_comp_unit): Likewise.
14382 (process_full_type_unit): Likewise.
14383 (process_imported_unit_die): Likewise.
14384 (dwarf2_compute_name): Likewise.
14385 (dwarf2_physname): Likewise.
14386 (read_import_statement): Likewise.
14387 (create_cus_hash_table): Assign dwarf2_physname instead of
14388 objfile.
14389 (read_func_scope): Access objfile through dwarf2_per_objfile.
14390 (read_lexical_block_scope): Likewise.
14391 (read_call_site_scope): Likewise.
14392 (read_variable): Likewise.
14393 (dwarf2_rnglists_process): Likewise.
14394 (dwarf2_ranges_process): Likewise.
14395 (dwarf2_ranges_read): Likewise.
14396 (dwarf2_record_block_ranges): Likewise.
14397 (dwarf2_add_field): Likewise.
14398 (dwarf2_add_member_fn): Likewise.
14399 (read_structure_type): Likewise.
14400 (process_structure_scope): Likewise.
14401 (read_enumeration_type): Likewise.
14402 (read_array_type): Likewise.
14403 (read_common_block): Likewise.
14404 (read_namespace_type): Likewise.
14405 (read_namespace): Likewise.
14406 (read_module_type): Likewise.
14407 (read_tag_pointer_type): Likewise.
14408 (read_tag_ptr_to_member_type): Likewise.
14409 (read_tag_string_type): Likewise.
14410 (read_subroutine_type): Likewise.
14411 (read_typedef): Likewise.
14412 (read_base_type): Likewise.
14413 (attr_to_dynamic_prop): Likewise.
14414 (read_subrange_type): Likewise.
14415 (read_unspecified_type): Likewise.
14416 (load_partial_dies): Likewise.
14417 (read_partial_die): Likewise.
14418 (find_partial_die): Likewise.
14419 (guess_partial_die_structure_name): Likewise.
14420 (fixup_partial_die): Likewise.
14421 (read_attribute_value): Likewise.
14422 (read_addr_index_from_leb128): Likewise.
14423 (dwarf2_read_addr_index): Likewise.
14424 (dwarf2_string_attr): Likewise.
14425 (lnp_state_machine::check_line_address): Likewise.
14426 (dwarf_decode_lines_1): Likewise.
14427 (dwarf_decode_lines): Likewise.
14428 (dwarf2_start_symtab): Likewise.
14429 (var_decode_location): Likewise.
14430 (new_symbol_full): Likewise.
14431 (dwarf2_const_value_data): Likewise.
14432 (dwarf2_const_value_attr): Likewise.
14433 (dwarf2_const_value): Likewise.
14434 (die_type): Likewise.
14435 (die_containing_type): Likewise.
14436 (lookup_die_type): Likewise.
14437 (guess_full_die_structure_name): Likewise.
14438 (anonymous_struct_prefix): Likewise.
14439 (dwarf2_name): Likewise.
14440 (follow_die_ref_or_sig): Likewise.
14441 (follow_die_offset): Likewise.
14442 (follow_die_ref): Likewise.
14443 (dwarf2_fetch_die_loc_sect_off): Likewise.
14444 (dwarf2_fetch_constant_bytes): Likewise.
14445 (dwarf2_fetch_die_type_sect_off): Likewise.
14446 (dwarf2_get_die_type): Likewise.
14447 (follow_die_sig): Likewise.
14448 (decode_locdesc): Likewise.
14449 (dwarf2_per_cu_objfile): Likewise.
14450 (dwarf2_per_cu_text_offset): Likewise.
14451 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14452 objfile.
14453 (set_die_type): Access objfile through
14454 dwarf2_per_objfile.
14455
14456 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14457
14458 * valprint.c (converted_character_d): Remove typedef.
14459 (DEF_VEC_O (converted_character_d)): Remove.
14460 (count_next_character): Use std::vector.
14461 (print_converted_chars_to_obstack): Likewise.
14462 (generic_printstr): Likewise.
14463
14464 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14465
14466 * xml-support.h (struct gdb_xml_value): Add constructor.
14467 <value>: Change type to unique_xmalloc_ptr.
14468 (gdb_xml_value_s): Remove typedef.
14469 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14470 (gdb_xml_element_start_handler): Change parameter type to
14471 std::vector.
14472 (xml_find_attribute): Likewise.
14473 * xml-support.c (xml_find_attribute): Change parameter type to
14474 std::vector and adjust.
14475 (gdb_xml_values_cleanup): Remove.
14476 (gdb_xml_parser::start_element): Adjust to std::vector.
14477 (xinclude_start_include): Change paraeter type to std::vector
14478 and adjust.
14479 * btrace.c (check_xml_btrace_version): Likewise.
14480 (parse_xml_btrace_block): Likewise.
14481 (parse_xml_btrace_pt_config_cpu): Likewise.
14482 (parse_xml_btrace_pt): Likewise.
14483 (parse_xml_btrace_conf_bts): Likewise.
14484 (parse_xml_btrace_conf_pt): Likewise.
14485 * memory-map.c (memory_map_start_memory): Likewise.
14486 (memory_map_start_property): Likewise.
14487 * osdata.c (osdata_start_osdata): Likewise.
14488 (osdata_start_item): Likewise.
14489 (osdata_start_column): Likewise.
14490 * remote.c (start_thread): Likewise.
14491 * solib-aix.c (library_list_start_library): Likewise.
14492 (library_list_start_list): Likewise.
14493 * solib-svr4.c (library_list_start_library): Likewise.
14494 (svr4_library_list_start_list): Likewise.
14495 * solib-target.c (library_list_start_segment): Likewise.
14496 (library_list_start_section): Likewise.
14497 (library_list_start_library): Likewise.
14498 (library_list_start_list): Likewise.
14499 * tracepoint.c (traceframe_info_start_memory): Likewise.
14500 (traceframe_info_start_tvar): Likewise.
14501 * xml-syscall.c (syscall_start_syscall): Likewise.
14502 * xml-tdesc.c (tdesc_start_target): Likewise.
14503 (tdesc_start_feature): Likewise.
14504 (tdesc_start_reg): Likewise.
14505 (tdesc_start_union): Likewise.
14506 (tdesc_start_struct): Likewise.
14507 (tdesc_start_flags): Likewise.
14508 (tdesc_start_enum): Likewise.
14509 (tdesc_start_field): Likewise.
14510 (tdesc_start_enum_value): Likewise.
14511 (tdesc_start_vector): Likewise.
14512
14513 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14514
14515 * extension.h (struct xmethod_worker) <clone>: Remove.
14516 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14517 Remove.
14518 (python_xmethod_worker::clone): Remove.
14519 * valops.c (find_overload_match): Use std::move instead of
14520 clone.
14521
14522 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14523
14524 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14525 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14526 <free_xmethod_worker_data>: Remove.
14527 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14528 <get_xmethod_arg_types>: Remove.
14529 <get_xmethod_result_type>: Remove.
14530 <invoke_xmethod>: Remove.
14531 * extension.c (new_xmethod_worker): Remove.
14532 (clone_xmethod_worker): Remove.
14533 (get_matching_xmethod_workers): Return void, pass std::vector by
14534 pointer.
14535 (get_xmethod_arg_types): Rename to...
14536 (xmethod_worker::get_arg_types): ... this, and adjust.
14537 (get_xmethod_result_type): Rename to...
14538 (xmethod_worker::get_result_type): ... this, and adjust.
14539 (invoke_xmethod): Remove.
14540 (free_xmethod_worker): Remove.
14541 (free_xmethod_worker_vec): Remove.
14542 * extension.h (enum ext_lang_rc): Move here from
14543 extension-priv.h.
14544 (struct xmethod_worker): Add constructor and destructor.
14545 <data>: Remove.
14546 <value>: Remove.
14547 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14548 virtual pure methods.
14549 <get_arg_types, get_result_type>: New methods.
14550 (xmethod_worker_ptr): Remove typedef.
14551 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14552 (xmethod_worker_vec): Remove typedef.
14553 (xmethod_worker_up): New typedef.
14554 (invoke_xmethod): Remove.
14555 (clone_xmethod_worker): Remove.
14556 (free_xmethod_worker): Remove.
14557 (free_xmethod_worker_vec): Remove.
14558 (get_xmethod_arg_types): Remove.
14559 (get_xmethod_result_type): Remove.
14560 * valops.c (find_method_list): Use std::vector, don't use
14561 intermediate vector.
14562 (value_find_oload_method_list): Use std::vector.
14563 (find_overload_match): Use std::vector.
14564 (find_oload_champ): Use std::vector.
14565 * value.c (value_free): Use operator delete.
14566 (value_of_xmethod): Rename to...
14567 (value_from_xmethod): ... this. Don't assign
14568 xmethod_worker::value, take rvalue-reference.
14569 (result_type_of_xmethod): Adjust.
14570 (call_xmethod): Adjust.
14571 * value.h: Include extension.h.
14572 (struct xmethod_worker): Don't forward-declare.
14573 (value_of_xmethod): Rename to...
14574 (value_from_xmethod): ... this, take rvalue-reference.
14575 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14576 (struct python_xmethod_worker): ... this, add constructor and
14577 destructor.
14578 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14579 (gdbpy_free_xmethod_worker_data): Rename to...
14580 (python_xmethod_worker::~python_xmethod_worker): ... this and
14581 adjust.
14582 (gdbpy_clone_xmethod_worker_data): Rename to...
14583 (python_xmethod_worker::clone): ... this and adjust.
14584 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14585 temporary vector.
14586 (gdbpy_get_xmethod_arg_types): Rename to...
14587 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14588 (gdbpy_get_xmethod_result_type): Rename to...
14589 (python_xmethod_worker::do_get_result_type): ... this and
14590 adjust.
14591 (gdbpy_invoke_xmethod): Rename to...
14592 (python_xmethod_worker::invoke): ... this and adjust.
14593 (new_python_xmethod_worker): Rename to...
14594 (python_xmethod_worker::python_xmethod_worker): ... this and
14595 adjust.
14596 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14597 Remove.
14598 (gdbpy_free_xmethod_worker_data): Remove.
14599 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14600 (gdbpy_get_xmethod_arg_types): Remove.
14601 (gdbpy_get_xmethod_result_type): Remove.
14602 (gdbpy_invoke_xmethod): Remove.
14603 * python/python.c (python_extension_ops): Remove obsolete
14604 callbacks.
14605
14606 2018-01-05 Pedro Alves <palves@redhat.com>
14607
14608 PR gdb/18653
14609 * common/signals-state-save-restore.c
14610 (save_original_signals_state): New parameter 'quiet'. Warn if we
14611 find a custom handler preinstalled, instead of internal erroring.
14612 But only warn if !quiet.
14613 * common/signals-state-save-restore.h
14614 (save_original_signals_state): New parameter 'quiet'.
14615 * main.c (captured_main_1): Move save_original_signals_state call
14616 after option handling, and pass QUIET.
14617
14618 2018-01-05 Pedro Alves <palves@redhat.com>
14619
14620 * spu-tdep.c (spu_catch_start): Pass
14621 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14622
14623 2018-01-05 Pedro Alves <palves@redhat.com>
14624
14625 PR gdb/22670
14626 * ada-lang.c (literal_symbol_name_matcher): New function.
14627 (ada_get_symbol_name_matcher): Use it for
14628 symbol_name_match_type::SEARCH_NAME.
14629 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14630 it down instead of assuming symbol_name_match_type::FULL.
14631 * block.h (block_lookup_symbol): New parameter 'match_type'.
14632 * c-valprint.c (print_unpacked_pointer): Use
14633 lookup_symbol_search_name instead of lookup_symbol.
14634 * compile/compile-object-load.c (get_out_value_type): Pass down
14635 symbol_name_match_type::SEARCH_NAME.
14636 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14637 symbol_name_match_type::FULL.
14638 * cp-support.c (cp_get_symbol_name_matcher): Handle
14639 symbol_name_match_type::SEARCH_NAME.
14640 * infrun.c (insert_exception_resume_breakpoint): Use
14641 lookup_symbol_search_name.
14642 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14643 * psymtab.c (maintenance_check_psymtabs): Use
14644 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14645 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14646 SYMBOL_SEARCH_NAME.
14647 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14648 if symbol_name_match_type::SEARCH_NAME.
14649 (lookup_symbol_in_language): Pass down
14650 symbol_name_match_type::FULL.
14651 (lookup_symbol_search_name): New.
14652 (lookup_language_this): Pass down
14653 symbol_name_match_type::SEARCH_NAME.
14654 (lookup_symbol_aux, lookup_local_symbol): New parameter
14655 'match_type'. Pass it down.
14656 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14657 (lookup_symbol_search_name): New declaration.
14658 (lookup_symbol_in_block): New 'match_type' parameter.
14659
14660 2018-01-05 Pedro Alves <palves@redhat.com>
14661
14662 PR gdb/22670
14663 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14664 ada_lookup_symbol.
14665 (ada_lookup_symbol): Reimplement in terms of
14666 ada_lookup_symbol_list, bits factored out from
14667 ada_lookup_encoded_symbol.
14668
14669 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14670
14671 * ada-exp.y (write_object_renaming): When subscripting an array
14672 using a symbol as the index, pass the block in call to
14673 ada_lookup_encoded_symbol when looking that symbol up.
14674
14675 2018-01-05 Jerome Guitton <guitton@adacore.com>
14676
14677 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14678 TYPE_INDEX_TYPE.
14679
14680 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14681
14682 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14683 the case where VALUE_LVAL (val0) is not lval_memory.
14684
14685 2018-01-05 Xavier Roirand <roirand@adacore.com>
14686
14687 * ada-valprint.c (print_optional_low_bound): Handle
14688 character-indexed array printing like boolean-indexed array
14689 printing.
14690
14691 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14692
14693 * NEWS: Create a new section for the next release branch.
14694 Rename the section of the current branch, now that it has
14695 been cut.
14696
14697 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14698
14699 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14700 * version.in: Bump version to 8.1.50.DATE-git.
14701
14702 2018-01-03 Xavier Roirand <roirand@adacore.com>
14703
14704 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14705 Add field.
14706 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14707 Add field.
14708 (default_exception_support_info) <catch_handlers_sym>: Add field.
14709 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14710 (ada_exception_name_addr_1): Add "catch handlers" handling.
14711 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14712 Update all callers.
14713 (create_excep_cond_exprs) <ex>: Add parameter.
14714 (re_set_exception): Update create_excep_cond_exprs call.
14715 (print_it_exception, print_one_exception, print_mention_exception)
14716 (print_recreate_exception): Add "catch handler" handling.
14717 (allocate_location_catch_handlers, re_set_catch_handlers)
14718 (check_status_catch_handlers, print_it_catch_handlers)
14719 (print_one_catch_handlers, print_mention_catch_handlers)
14720 (print_recreate_catch_handlers): New function.
14721 (catch_handlers_breakpoint_ops): New variable.
14722 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14723 Add parameter. Add "catch handler" handling.
14724 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14725 Add "catch handler" handling.
14726 (ada_exception_catchpoint_cond_string): Add "catch handler"
14727 handling.
14728 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14729 call.
14730 (catch_ada_handlers_command): New function.
14731 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14732 operations structure.
14733 (_initialize_ada_language): Add "catch handlers" command entry.
14734 * NEWS: Document "catch handlers" feature.
14735
14736 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14737
14738 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14739 account when creating the array type of the slice.
14740 (ada_value_slice): Likewise.
14741
14742 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14743
14744 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14745 New enum value.
14746 (create_array_type_with_stride): Add byte_stride_prop parameter.
14747 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14748 New parameter. Update all callers in this file.
14749 (array_type_has_dynamic_stride): New function.
14750 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14751 of arrays with dynamic byte strides.
14752 * dwarf2read.c (read_array_type): Add support for dynamic
14753 DW_AT_byte_stride attributes.
14754
14755 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14756
14757 * dwarf2read.c (read_unspecified_type): Treat
14758 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14759
14760 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14761
14762 Update copyright year range in all GDB files.
14763
14764 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14765
14766 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14767 and gdb/testsuite/gdb.base/step-line.c.
14768
14769 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14770
14771 * copyright.py (main): Dump the contents of
14772 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14773 even if BY_HAND is empty.
14774
14775 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14776
14777 * top.c (print_gdb_version): Update Copyright year in version
14778 message.
14779
14780 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14781
14782 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14783
14784 For older changes see ChangeLog-2017.
14785 \f
14786 Local Variables:
14787 mode: change-log
14788 left-margin: 8
14789 fill-column: 74
14790 version-control: never
14791 coding: utf-8
14792 End: