RISC-V: Print FP regs as union of float types.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-10-22 Jim Wilson <jimw@sifive.com>
2
3 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
4 (riscv_register_type): Use them.
5 (riscv_print_one_register_info): Handle union of floats same as float.
6 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
7 riscv_fpreg_q_type fields.
8
9 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
10
11 * gdbarch.sh (gdbarch_num_cooked_regs): New.
12 * gdbarch.h: Re-generate.
13 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
14 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15 * eval.c (evaluate_subexp_standard): Likewise.
16 * findvar.c (value_of_register): Likewise.
17 (value_of_register_lazy): Likewise.
18 (address_from_register): Likewise.
19 * frame.c (get_frame_register_bytes): Likewise.
20 * gdbarch-selftests.c (register_to_value_test): Likewise.
21 * h8300-tdep.c (h8300_register_type): Likewise.
22 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
23 (i386_svr4_reg_to_regnum): Likewise.
24 * infcmd.c (default_print_registers_info): Likewise.
25 (registers_info): Likewise.
26 (print_vector_info): Likewise.
27 (default_print_float_info): Likewise.
28 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
29 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
30 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
31 (mi_cmd_data_list_changed_registers): Likewise.
32 (mi_cmd_data_list_register_values): Likewise.
33 (mi_cmd_data_write_register_values): Likewise.
34 (mi_cmd_trace_frame_collected): Likewise.
35 * mips-tdep.c (print_gp_register_row): Likewise.
36 (mips_print_registers_info): Likewise.
37 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
38 * regcache.c (init_regcache_descr): Likewise.
39 (register_size): Likewise.
40 (register_dump::dump): Likewise.
41 (cooked_read_test): Likewise.
42 (cooked_write_test): Likewise.
43 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
44 (rs6000_gdbarch_init): Likewise.
45 * stabsread.c (stab_reg_to_regnum): Likewise.
46 * stack.c (info_frame_command): Likewise.
47 * target-descriptions.c (tdesc_register_name): Likewise.
48 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
49 * tui/tui-regs.c (tui_show_register_group): Likewise.
50 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
51 (user_reg_map_regnum_to_name): Likewise.
52 (value_of_user_reg): Likewise.
53 (maintenance_print_user_registers): Likewise.
54 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
55 (xtensa_register_name): Likewise.
56 (xtensa_register_type): Likewise.
57 (xtensa_reg_to_regnum): Likewise.
58 (xtensa_pseudo_register_read): Likewise.
59 (xtensa_pseudo_register_write): Likewise.
60
61 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
62
63 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
64 correctly-sized buffer with raw_read.
65 (amd64_pseudo_register_write): Use correctly-sized buffer for
66 raw_read/raw_write.
67
68 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
69
70 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
71 in add_prefix_cmd of set print type.
72
73 2018-10-19 Tom Tromey <tom@tromey.com>
74
75 PR tui/18388:
76 * NEWS: Mention tabset deprecation.
77 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
78 (update_tab_width): New function.
79 (tui_set_tab_width, tui_show_tab_width): New functions.
80 (tui_set_tab_width_command): Use update_tab_width.
81 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
82 Add new "set tui tab-width" command.
83 * tui/tui-source.c (tui_set_source_content): Update.
84 * tui/tui-disasm.c (tui_set_disassem_content): Update.
85 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
86 Don't declare.
87 (tui_tab_width): Declare.
88 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
89 (tui_set_default_tab_len): Remove.
90
91 2018-10-19 Tom Tromey <tom@tromey.com>
92
93 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
94 (key_is_backspace, tui_getc): Don't declare.
95 * tui/tui-io.c (key_is_start_sequence): Now static.
96 (key_is_end_sequence, key_is_backspace): Remove.
97 (tui_getc): Now static.
98
99 2018-10-19 Tom Tromey <tom@tromey.com>
100
101 * symfile.c (reread_symbols): Clear "static_links".
102
103 2018-10-19 Alan Hayward <alan.hayward@arm.com>
104
105 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
106 define.
107 (aarch64_linux_sigframe_init): Extra boundary checks.
108
109 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
110
111 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
112 the possibly non-existent tdesc type 'vec128', but the type of raw
113 register v16 instead.
114
115 2018-10-19 Gary Benson <gbenson@redhat.com>
116
117 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
118
119 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
120
121 PR cli/23785
122 * cli/cli-dump.c (restore_binary_file): Check if "file" is
123 NULL.
124
125 2018-10-17 Paul Koning <paul_koning@dell.com>
126
127 * charset.c (convert_between_encodings): Fix unsigned overflow.
128
129 2018-10-17 John Baldwin <jhb@FreeBSD.org>
130
131 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
132 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
133 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
134 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
135 New functions.
136 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
137 and fbsd_info_proc_mappings_header.
138 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
139 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
140 New.
141
142 2018-10-17 Joel Brobecker <brobecker@adacore.com>
143
144 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
145 Solaris Maintainer.
146
147 2018-10-15 Tom Tromey <tom@tromey.com>
148
149 * tui/tui.c (strcat_to_buf): Remove casts.
150 * tui/tui-winsource.c (tui_show_source_line)
151 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
152 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
153 * tui/tui-windata.c (tui_first_data_item_displayed)
154 (tui_delete_data_content_windows, tui_erase_data_content)
155 (tui_display_all_data, tui_display_data_from)
156 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
157 * tui/tui-win.c (tui_set_win_height)
158 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
159 casts.
160 * tui/tui-win.c (tui_resize_all): Remove casts.
161 (tui_scroll_backward_command, tui_set_focus)
162 (tui_set_tab_width_command): Likewise.
163 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
164 * tui/tui-regs.c (tui_show_register_group): Remove cast.
165 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
166 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
167 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
168 Remove casts.
169
170 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
171
172 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
173 AArch64/ARM maintainer.
174
175 2018-10-11 Gary Benson <gbenson@redhat.com>
176
177 * interps.h (interp::m_name): Make private and mutable.
178 * interps.c (interp::~interp): Free m_name.
179
180 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
181 Simon Marchi <simark@simark.ca>
182
183 * README (`configure' options): Add documentation for new
184 "--enable-unit-tests" option.
185 * acinclude.m4: Include "selftest.m4".
186 * configure: Regenerate.
187 * configure.ac: Use "GDB_AC_SELFTEST".
188 * maint.c (maintenance_selftest): Update message informing
189 that selftests have been disabled.
190 (maintenance_info_selftests): Likewise.
191 * selftest.m4: New file.
192
193 2018-10-10 Gary Benson <gbenson@redhat.com>
194
195 * remote.c (remote_target::remote_send_printf): Add
196 missing va_end found by Coverity.
197
198 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
199
200 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
201
202 2018-10-09 Tom Tromey <tom@tromey.com>
203
204 * configure: Rebuild.
205 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
206 * NEWS: Update --enable-ubsan documentation.
207
208 2018-10-09 Gary Benson <gbenson@redhat.com>
209
210 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
211 found by Coverity.
212
213 2018-10-08 Tom Tromey <tom@tromey.com>
214
215 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
216 variable.
217 (riscv_fbsd_init_abi): Likewise.
218
219 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
220 * valops.c (value_struct_elt_for_reference): Rename local variable
221 to work around the shadowing a previous local warning.
222
223 2018-10-08 John Baldwin <jhb@FreeBSD.org>
224
225 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
226 * NEWS: Mention new FreeBSD/riscv native configuration.
227 * configure.host: Add riscv*-*-freebsd*.
228 * configure.nat: Likewise.
229 * riscv-fbsd-nat.c: New file.
230
231 2018-10-08 John Baldwin <jhb@FreeBSD.org>
232
233 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
234 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
235 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
236 * NEWS: Mention new FreeBSD/riscv target.
237 * configure.tgt: Add riscv*-*-freebsd*.
238 * riscv-fbsd-tdep.c: New file.
239 * riscv-fbsd-tdep.h: New file.
240
241 2018-10-08 John Baldwin <jhb@FreeBSD.org>
242
243 * regcache.h (struct regcache_map_entry): Note that this type can
244 be used with traditional frame caches.
245 * trad-frame.c (trad_frame_set_reg_regmap): New.
246 * trad-frame.h (trad_frame_set_reg_regmap): New.
247
248 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
249
250 PR c++/16841
251 * valops.c (get_virtual_base_offset): New function.
252 (value_struct_elt_for_reference): Use it to get virtual base offset
253 and add it in calculating class member address.
254
255 2018-10-08 John Darrington <john@darrington.wattle.id.au>
256
257 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
258 (check_producer): Check if the producer is codewarrior.
259 (producer_is_codewarrior): New function.
260 (lnp_state_machine::record_line): Ignore is_stmt flag for records
261 produced by codewarrior.
262 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
263
264 2018-10-06 Tom Tromey <tom@tromey.com>
265
266 PR python/19399:
267 * python/py-inferior.c: Add "architecture" entry.
268 (infpy_architecture): New function.
269
270 2018-10-06 Tom Tromey <tom@tromey.com>
271
272 PR python/21765:
273 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
274 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
275 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
276 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
277
278 2018-10-06 Tom Tromey <tom@tromey.com>
279
280 PR build/17077:
281 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
282 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
283 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
284 #include.
285
286 2018-10-06 Tom Tromey <tom@tromey.com>
287
288 * python/py-breakpoint.c (bppy_get_location): Handle a
289 bp_breakpoint without a location.
290
291 2018-10-06 Tom Tromey <tom@tromey.com>
292
293 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
294 (_RegEx): Reformat help text.
295 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
296 (AnyCallerIs, AnyCallerMatches): Reformat help text.
297 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
298 text.
299 * python/lib/gdb/command/xmethods.py (InfoXMethod)
300 (EnableXMethod, DisableXMethod): Remove help indentation.
301 Capitalize meta-syntactic variables.
302 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
303 (EnableUnwinder, DisableUnwinder): Remove help indentation.
304 Capitalize meta-syntactic variables.
305 * python/lib/gdb/command/explore.py (ExploreCommand)
306 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
307 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
308 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
309 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
310 Remove help indentation.
311 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
312 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
313 (DisableFrameFilter, SetFrameFilterPriority)
314 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
315
316 2018-10-06 Tom Tromey <tom@tromey.com>
317
318 PR tui/28819:
319 * tui/tui-io.c (gdb_wgetch): New function.
320 (tui_mld_getc, tui_getc): Use it.
321
322 2018-10-05 Tom Tromey <tom@tromey.com>
323
324 * sol-thread.c (sol_thread_target::wait): Rename inner
325 "save_ptid".
326
327 2018-10-04 Tom Tromey <tom@tromey.com>
328
329 * configure: Rebuild.
330 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
331
332 2018-10-04 Tom Tromey <tom@tromey.com>
333
334 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
335 declaration of "block".
336
337 2018-10-04 Tom Tromey <tom@tromey.com>
338
339 * common/filestuff.c (fdwalk): Remove inner declaration of
340 "result".
341
342 2018-10-04 Tom Tromey <tom@tromey.com>
343
344 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
345 "structs_addr" and hoist declaration.
346
347 2018-10-04 Tom Tromey <tom@tromey.com>
348
349 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
350 variable "size".
351
352 2018-10-04 Tom Tromey <tom@tromey.com>
353
354 * mdebugread.c (parse_partial_symbols): Use std::string.
355
356 2018-10-04 Tom Tromey <tom@tromey.com>
357
358 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
359 * p-valprint.c (pascal_val_print): Split inner "i" variable.
360 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
361 header.
362 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
363 more inner scope.
364 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
365 * varobj.c (varobj_update): Rename inner "newobj",
366 "type_changed".
367 * valprint.c (generic_emit_char): Rename inner "buf".
368 * valops.c (find_overload_match): Rename inner "temp".
369 (value_struct_elt_for_reference): Declare "v" in more inner
370 scope.
371 * v850-tdep.c (v850_push_dummy_call): Rename "len".
372 * unittests/array-view-selftests.c (run_tests): Rename inner
373 "vec".
374 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
375 header.
376 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
377 "tsv" in more inner scope.
378 (print_one_static_tracepoint_marker): Rename inner
379 "tuple_emitter".
380 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
381 (tic6x_push_dummy_call): Don't redeclare "addr".
382 * target-float.c: Declare "dto" lower.
383 * symtab.c (lookup_local_symbol): Rename inner "sym".
384 (find_pc_sect_line): Rename inner "pc".
385 * stack.c (print_frame): Don't redeclare "gdbarch".
386 (return_command): Rename inner "gdbarch".
387 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
388 "sp".
389 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
390 header.
391 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
392 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
393 scope.
394 * remote.c (remote_target::update_thread_list): Don't redeclare
395 "tp".
396 (remote_target::process_initial_stop_replies): Rename inner
397 "thread".
398 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
399 (remote_target::wait_as): Don't redeclare "stop_reply".
400 (remote_target::get_thread_local_address): Rename inner
401 "result".
402 (remote_target::get_tib_address): Likewise.
403
404 * regcache.c (cooked_read_test): Rename "regnum".
405 * record-btrace.c (cmd_record_btrace_start): Rename inner
406 "exception".
407 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
408 loop header.
409 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
410 header.
411 (ppu2spu_sniffer): Rename inner "buf".
412 * parse.c (operator_check_standard): Rename inner "type",
413 "objfile".
414 * p-valprint.c (pascal_val_print): Introduce new scope for
415 "low_bound", "high_bound".
416 * p-exp.y (yylex): Declare "i" in loop header.
417 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
418 Lower declaration of "s".
419 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
420 header.
421 (nios2_push_dummy_call): Rename "len".
422 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
423 "buf".
424 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
425 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
426 (linux_xfer_osdata_modules): Likewise.
427 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
428 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
429 (mips_o64_push_dummy_call): Likewise.
430 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
431 "op".
432 * mi/mi-main.c (list_available_thread_groups): Rename inner
433 "tuple_emitter".
434 (mi_cmd_data_read_memory): Rename inner "opts".
435 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
436 "tuple_emitter".
437 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
438 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
439 more inner scope.
440 (parse_partial_symbols): Rename inner "pst", "p", "name"
441 * main.c (captured_main_1): Rename inner "i"s.
442 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
443 "oso2".
444 * linux-tdep.c (linux_info_proc): Rename inner "filename".
445 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
446 * infrun.c (handle_no_resumed): Don't redeclare "thread".
447 (handle_signal_stop): Rename inner "gdbarch".
448 (handle_command): Declare "signum" in loop header.
449 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
450 "status".
451 (examine_prologue): Rename inner "sol" and "sof".
452 (ia64_extract_return_value): Rename inner "val". Declare another
453 "val" in a more inner scope.
454 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
455 inner scope.
456 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
457 "except".
458 * findvar.c (default_read_var_value): Don't redeclare "addr".
459 * f-exp.y (yylex): Declare "i" in loop header.
460 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
461 Rename inner "type", "expect_type".
462 (evaluate_subexp_for_sizeof): Rename inner "pc".
463 * elfread.c (elf_symfile_read): Rename inner "abfd".
464 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
465 "bytes_read".
466 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
467 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
468 (dwarf_decode_line_header): Rename inner "lh".
469 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
470 "offset". Declare "i" in loop header.
471 (disassemble_dwarf_expression): Rename inner "addr_size".
472 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
473 inner "result".
474 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
475 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
476 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
477 "inner_list_emitter".
478 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
479 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
480 declaration in a block.
481 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
482 * cp-valprint.c (cp_print_value_fields): Don't redeclare
483 "obstack_final_size".
484 * cp-support.c (inspect_type): Declare "i" in loop header.
485 * compile/compile.c (compile_instance::insert_symbol_error):
486 Rename inner "e".
487 * common/agent.c (agent_run_command): Remove inner "ret"
488 declaration.
489 * coffread.c (coff_symfile_read): Rename inner "name".
490 (coff_symfile_read): Rename inner "abfd".
491 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
492 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
493 "high".
494 * c-exp.y (lex_one_token): Move "len" declaration lower.
495 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
496 "gdbarch".
497 (create_exception_master_breakpoint): Likewise. Don't redeclare
498 "b".
499 (watch_command_1): Declare "mark" later.
500 (clear_command): Don't shadow "a" or "b".
501 (delete_command): Rename inner "b".
502 (delete_trace_command): Likewise.
503 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
504 "op".
505 (arm_gdbarch_init): Remove inner "e_flags".
506 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
507 "offset" in inner blocks.
508
509 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
510
511 * dwarf-index-write.c (file_write): Don't write if the vector is
512 empty.
513
514 2018-10-05 Tom de Vries <tdevries@suse.de>
515
516 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
517 PyArg_ParseTuple call.
518
519 2018-10-05 Tom de Vries <tdevries@suse.de>
520
521 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
522 PyArg_ParseTuple call.
523
524 2018-10-04 Joel Brobecker <brobecker@adacore.com>
525
526 * psymtab.c (recursively_search_psymtabs): Reformat parameters
527 to avoid exceeding 80 characters per line limit.
528
529 2018-10-04 Tom Tromey <tom@tromey.com>
530
531 * symfile.c (syms_from_objfile_1, finish_new_objfile)
532 (reread_symbols): Update.
533 * complaints.h (clear_complaints): Remove argument.
534 * complaints.c (enum complaint_series): Remove.
535 (series): Remove global.
536 (complaint_internal): Update.
537 (clear_complaints): Remove argument.
538
539 2018-10-04 Tom Tromey <tom@tromey.com>
540
541 * symfile.c (symbol_file_add_with_addrs): Do not print "no
542 debugging symbols" message if there is a separate debug objfile.
543
544 2018-10-04 Tom Tromey <tom@tromey.com>
545
546 PR cli/19551:
547 * symfile.c (symbol_file_add_with_addrs): Update output.
548 * psymtab.c (require_partial_symbols): Update output.
549
550 2018-10-04 Tom Tromey <tom@tromey.com>
551
552 PR cli/22234:
553 * complaints.c: Emit \n.
554
555 2018-10-04 Tom Tromey <tom@tromey.com>
556
557 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
558 (separate_debug_file_exists, find_separate_debug_file)
559 (add_symbol_file_command, reread_symbols, allocate_symtab)
560 (allocate_compunit_symtab): Use filtered printing, not
561 unfiltered.
562 * psymtab.c (require_partial_symbols, dump_psymtab)
563 (allocate_psymtab): Use filtered printing, not unfiltered.
564
565 2018-10-04 Tom Tromey <tom@tromey.com>
566
567 * complaints.c (complaint_internal): Correctly check complaint
568 count.
569
570 2018-10-04 Tom Tromey <tom@tromey.com>
571
572 * complaints.h (struct complaints): Remove declaration.
573 * complaints.c (clear_complaints): Remove an unused variable.
574
575 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
576
577 * MAINTAINERS (Write After Approval): Add self.
578
579 2018-10-03 Tom Tromey <tom@tromey.com>
580
581 * guile/scm-value.c (gdbscm_value_to_string): Initialize
582 "buffer_contents".
583 * coffread.c (coff_symtab_read): Initialize "newobj".
584
585 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
586
587 * dwarf2read.c (read_func_scope): Remove struct keyword in
588 range-based for.
589
590 2018-10-03 Tom Tromey <tom@tromey.com>
591
592 * README: Mention --enable-ubsan.
593 * NEWS: Mention --enable-ubsan.
594 * acinclude.m4: Include sanitize.m4.
595 * configure: Rebuild.
596 * configure.ac: Call AM_GDB_UBSAN.
597 * sanitize.m4: New file.
598
599 2018-10-03 Tom Tromey <tom@tromey.com>
600
601 * expression.h (enum exp_opcode): Use uint8_t as base type.
602 * expprint.c (op_name): Handle invalid opcodes.
603
604 2018-10-03 Tom Tromey <tom@tromey.com>
605
606 * parse.c (prefixify_expression): Add assert.
607 (parse_exp_in_context_1): Throw exception if the expression is
608 empty.
609
610 2018-10-03 Tom Tromey <tom@tromey.com>
611
612 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
613
614 2018-10-03 Tom Tromey <tom@tromey.com>
615
616 * c-exp.y (parse_number): Work in unsigned. Remove casts.
617
618 2018-10-03 Tom Tromey <tom@tromey.com>
619
620 * dwarf2read.c (read_subrange_type): Make "negative_mask"
621 unsigned.
622
623 2018-10-03 Tom Tromey <tom@tromey.com>
624
625 * findvar.c (extract_integer): Do work in an unsigned type.
626
627 2018-10-03 Tom Tromey <tom@tromey.com>
628
629 * common/enum-flags.h (enum_flags::operator~): Add static assert.
630 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
631 base type.
632 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
633 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
634 type.
635 * c-lang.h (enum c_string_type_values): Use unsigned as base
636 type.
637 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
638
639 2018-10-03 Tom Tromey <tom@tromey.com>
640
641 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
642 <~dwarf2_frame_state_reg_info>: Update.
643 <dwarf2_frame_state_reg_info>: Update.
644 <alloc_regs>: Add assertion. Update.
645 <reg>: Now a std::vector.
646 <num_regs>: Remove.
647 <swap>: Update.
648 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
649 (execute_cfa_program_test, dwarf2_frame_cache): Update.
650
651 2018-10-03 Tom Tromey <tom@tromey.com>
652
653 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
654
655 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
656
657 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
658
659 2018-10-02 Tom Tromey <tom@tromey.com>
660
661 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
662
663 2018-10-02 John Darrington <john@darrington.wattle.id.au>
664
665 * NEWS: Mention changed commands.
666 * ser-uds.c: New file.
667 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
668 * configure: Regenerate.
669 * Makefile.in: Add new file.
670 * serial.c (serial_open): Check if filename is a socket
671 and lookup the appropriate interface accordingly.
672
673 2018-10-01 Alan Hayward <alan.hayward@arm.com>
674
675 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
676 define.
677 (AARCH64_EXTRA_MAGIC): Likewise.
678 (AARCH64_FPSIMD_MAGIC): Likewise.
679 (AARCH64_SVE_MAGIC): Likewise.
680 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
681 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
682 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
683 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
684 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
685 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
686 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
687 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
688 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
689 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
690 (read_aarch64_ctx): Add function.
691 (aarch64_linux_sigframe_init): Detect FP registers.
692
693 2018-10-01 Alan Hayward <alan.hayward@arm.com>
694
695 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
696 (AARCH64_D0_REGNUM): Likewise.
697 (AARCH64_S0_REGNUM): Likewise.
698 (AARCH64_H0_REGNUM): Likewise.
699 (AARCH64_B0_REGNUM): Likewise.
700 (AARCH64_SVE_V0_REGNUM): Likewise.
701 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
702 (AARCH64_D0_REGNUM): Likewise.
703 (AARCH64_S0_REGNUM): Likewise.
704 (AARCH64_H0_REGNUM): Likewise.
705 (AARCH64_B0_REGNUM): Likewise.
706 (AARCH64_SVE_V0_REGNUM): Likewise.
707
708 2018-10-01 Gary Benson <gbenson@redhat.com>
709
710 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
711 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
712 prfpregset_t instead of gdb_prfpregset_t.
713 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
714 * configure, config.in: Rebuild.
715
716 2018-10-01 Gary Benson <gbenson@redhat.com>
717
718 * common/gdb_proc_service.h: New file, factored out from...
719 * gdb_proc_service.h: Moved common code to the above file.
720 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
721
722 2018-10-01 Gary Benson <gbenson@redhat.com>
723
724 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
725 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
726
727 2018-10-01 Gary Benson <gbenson@redhat.com>
728
729 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
730 (AC_CHECK_HEADERS): Check for linux/elf.h.
731 * configure, config.in: Rebuild.
732 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
733 doesn't define elf_fpregset_t.
734
735 2018-10-01 Gary Benson <gbenson@redhat.com>
736
737 * gdb_proc_service.h: Whitespace change.
738
739 2018-10-01 Tom Tromey <tom@tromey.com>
740
741 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
742 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
743 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
744
745 2018-10-01 Tom Tromey <tom@tromey.com>
746
747 * README: Minor change.
748
749 2018-09-30 Pedro Alves <palves@redhat.com>
750
751 * darwin-nat-info.c (darwin_debug_regions_recurse)
752 (info_mach_exceptions_command): Remove unused local variables.
753 * darwin-nat.c (darwin_decode_notify_message)
754 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
755 (darwin_stop_inferior, darwin_setup_exceptions)
756 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
757 (darwin_nat_target::attach, darwin_nat_target::detach)
758 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
759 local variables.
760 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
761 variables.
762
763 2018-09-29 Tom Tromey <tom@tromey.com>
764
765 * README: Remove some leftover text.
766
767 2018-09-29 Tom Tromey <tom@tromey.com>
768
769 * PROBLEMS: Rewrite.
770 * README: Update.
771
772 2018-09-28 John Baldwin <jhb@FreeBSD.org>
773
774 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
775 case with explicit breakpoint kind.
776 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
777 'additional_info' and related logic.
778 (riscv_debug_breakpoints): New variable.
779 (riscv_breakpoint_kind_from_pc): Use the length of the existing
780 instruction to determine the breakpoint kind.
781 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
782 flag. Update description of 'set/show riscv
783 use-compressed-breakpoints' flag.
784
785 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 (NEWS): Mention changes to frame related commands.
788 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
789 (add_prefix_cmd_suppress_notification): New function.
790 (add_com_suppress_notification): Call
791 add_cmd_suppress_notification.
792 * command.h (add_cmd_suppress_notification): Declare.
793 (add_prefix_cmd_suppress_notification): Declare.
794 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
795 (parse_frame_specification): Moved from stack.c, with
796 simplification to handle a single argument.
797 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
798 switch to the selected frame. Add a header comment.
799 * stack.c: Remove 'safe-ctype.h' include.
800 (find_frame_for_function): Add declaration.
801 (find_frame_for_address): New function.
802 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
803 (frame_selection_by_function_completer): New function.
804 (info_frame_command): Rename to...
805 (info_frame_command_core): ...this, and update parameter types.
806 (select_frame_command): Rename to...
807 (select_frame_command_core): ...this, and update parameter types.
808 (frame_command): Rename to...
809 (frame_command_core): ...this, and update parameter types.
810 (class frame_command_helper): New class to wrap implementations of
811 frame related sub-commands.
812 (frame_apply_cmd_list): New static global.
813 (frame_cmd_list): Make static.
814 (select_frame_cmd_list): New global for sub-commands.
815 (info_frame_cmd_list): New global for sub-commands.
816 (_initialize_stack): Register sub-commands for 'frame',
817 'select-frame', and 'info frame'. Update 'frame apply' commands
818 to use frame_apply_cmd_list. Move function local static
819 frame_apply_list to file static frame_apply_cmd_list for
820 consistency.
821 * stack.h (select_frame_command): Delete declarationn.
822 (select_frame_for_mi): Declare new function.
823
824 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
827 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
828 and NOP.
829
830 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
831
832 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
833
834 2018-09-26 Tom Tromey <tom@tromey.com>
835
836 * valops.c (auto_abandon): Remove dead code.
837
838 2018-09-26 Tom Tromey <tom@tromey.com>
839
840 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
841
842 2018-09-24 Tom Tromey <tom@tromey.com>
843
844 * common/pathstuff.c (get_standard_cache_dir): Make
845 "xdg_cache_home" and "home" const.
846 * top.c (init_history): Make "tmpenv" const.
847 * main.c (get_init_files): Make "homedir" const.
848
849 2018-09-23 Tom Tromey <tom@tromey.com>
850
851 PR python/18852:
852 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
853
854 2018-09-23 Tom Tromey <tom@tromey.com>
855
856 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
857 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
858 * python/python-internal.h (gdbpy_handle_exception): Declare.
859 * python/py-utils.c (gdbpy_handle_exception): New function.
860
861 2018-09-23 Tom Tromey <tom@tromey.com>
862
863 PR python/17284:
864 * python/py-type.c (typy_template_argument): Check for negative
865 argument number.
866
867 2018-09-23 Tom Tromey <tom@tromey.com>
868
869 PR python/14062:
870 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
871
872 2018-09-23 Tom Tromey <tom@tromey.com>
873
874 PR python/18170:
875 * python/py-value.c (valpy_int): Allow conversion from pointer
876 type.
877
878 2018-09-23 Tom Tromey <tom@tromey.com>
879
880 PR python/20126:
881 * python/py-value.c (valpy_int): Respect type sign.
882
883 2018-09-23 Tom Tromey <tom@tromey.com>
884
885 PR python/18352;
886 * python/py-value.c (valpy_float): Allow conversions from int or
887 char.
888 (valpy_int, valpy_long): Allow conversions from float.
889
890 2018-09-23 Tom Tromey <tom@tromey.com>
891
892 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
893 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
894
895 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
896
897 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
898 __sighndlr.
899 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
900
901 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
902
903 * windows-nat.c (windows_nat_target::wait): Remove a spurious
904 target_terminal::ours().
905
906 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
907
908 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
909 of vl to ULONGEST.
910
911 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
912
913 * breakpoint.c (update_inserted_breakpoint_locations): Remove
914 redundant condition.
915
916 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
917
918 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
919
920 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
921 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
922 * sol-thread.c (ps_pdmodel): Don't guard definition.
923
924 * procfs.c: Fix formatting.
925
926 * procfs.c (sysset_t_alloc): Remove.
927 (create_procinfo): Use XNEW instead of sysset_t_alloc.
928 (procfs_debug_inferior): Likewise.
929 (procfs_set_exec_trap): Likewise.
930 (proc_set_traced_sysentry): Don't allocate argp dynamically.
931 (proc_set_traced_sysexit): Likewise.
932
933 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
934 (dead_procinfo): Likewise.
935 (proc_warn): Likewise.
936 (proc_error): Likewise.
937 (proc_get_LDT_entry): Likewise.
938 (do_attach): Likewise.
939 (procfs_target::pid_to_str): Likewise.
940 (iterate_over_mappings): Likewise.
941
942 * procfs.c (create_procinfo): Fix ARI warning.
943 (proc_get_status): Likewise.
944 (proc_stop_process): Likewise.
945 (proc_run_process): Likewise.
946 (proc_kill): Likewise.
947 (proc_get_LDT_entry): Likewise.
948 (procfs_find_LDT_entry): Likewise.
949 (proc_update_threads): Likewise.
950 (proc_iterate_over_threads): Likewise.
951 (do_attach): Likewise.
952 (procfs_xfer_memory): Likewise.
953 (invalidate_cache): Likewise.
954 (procfs_target::resume): Likewise.
955 (procfs_init_inferior): Likewise.
956 (procfs_set_exec_trap): Likewise.
957 (procfs_target::thread_alive): Likewise.
958 (procfs_target::pid_to_exec_file): Likewise.
959 (iterate_over_mappings): Likewise.
960 (procfs_target::make_corefile_notes): Likewise.
961 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
962
963 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
964 (procfs_find_LDT_entry): Likewise.
965 * sol-thread.c (ps_lgetLDT): Likewise.
966
967 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968
969 PR tdep/17903
970 * procfs.c (procfs_target): Declare pid_to_exec_file.
971 (procfs_target::pid_to_exec_file): New.
972
973 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
974
975 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
976 renaming.
977 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
978 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
979
980 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
981
982 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
983 (supply_fpregset, fill_fpregset): Move ...
984 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
985 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
986 Remove references to ioctl-based procfs.
987 Include <sys/reg.h>.
988 Remove PR_MODEL_NATIVE guards.
989 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
990 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
991
992 2018-09-19 Xavier Roirand <roirand@adacore.com>
993
994 PR gdb/20981:
995 * solib-darwin.c (darwin_get_dyld_bfd): New function.
996 (darwin_solib_get_all_image_info_addr_at_init): Update call.
997 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
998
999 2018-09-19 John Baldwin <jhb@FreeBSD.org>
1000
1001 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1002 (fbsd_print_sockaddr_in6): Likewise.
1003
1004 2018-09-19 Richard Bunt <richard.bunt@arm.com>
1005 Chris January <chris.january@arm.com>
1006
1007 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1008 (evaluate_subexp_standard): Return a dummy type when
1009 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1010 OP_F77_UNDETERMINED_ARGLIST case.
1011 * expression.h (enum noside): Update comment.
1012
1013 2018-09-19 George Vasick <george.vasick@oracle.com>
1014
1015 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1016
1017 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1018 April Chin <april.chin@oracle.com>
1019 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1020
1021 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1022 uint_t lwpid_t.
1023 (create_procinfo): Print pids in /proc without leading zeros.
1024
1025 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1026
1027 * nios2-tdep.c (nios2_gcc_target_options): New.
1028 (nios2_gdb_arch_init): Install new hook.
1029
1030 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1031
1032 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1033 New file.
1034 * update-gnulib.sh: Apply patch.
1035 * configure: Re-generate.
1036
1037 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1038
1039 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1040 description. Make "info proc" command descriptions more
1041 consistent.
1042
1043 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1044
1045 * NEWS: Mention 'info proc files' command.
1046
1047 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1048
1049 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1050 descriptors for IP_FILES and IP_ALL.
1051
1052 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1053
1054 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1055 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1056 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1057 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1058 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1059 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1060 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1061 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1062 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1063 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1064 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1065 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1066 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1067 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1068 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1069 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1070 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1071 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1072 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1073 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1074 (struct fbsd_sockaddr_un): New types.
1075 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1076 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1077 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1078 (fbsd_core_info_proc_files): New functions.
1079 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1080 IP_ALL.
1081 * fbsd-tdep.h (fbsd_info_proc_files_header)
1082 (fbsd_info_proc_files_entry): New.
1083
1084 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1085
1086 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1087 * infcmd.c (info_proc_cmd_files): New function.
1088 (_initialize_infcmd): Register 'info proc files' command.
1089
1090 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1091
1092 * gnulib/aclocal-m4-deps.mk: Re-generate.
1093 * gnulib/aclocal.m4: Re-generate.
1094 * gnulib/config.in: Re-generate.
1095 * gnulib/configure: Re-generate.
1096 * gnulib/import/Makefile.am: Re-generate.
1097 * gnulib/import/Makefile.in: Re-generate.
1098 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1099 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1100 * gnulib/import/arpa_inet.in.h: New file.
1101 * gnulib/import/inet_ntop.c: New file.
1102 * gnulib/import/m4/arpa_inet_h.m4: New file.
1103 * gnulib/import/m4/inet_ntop.m4: New file.
1104 * gnulib/import/m4/netinet_in_h.m4: New file.
1105 * gnulib/import/m4/socklen.m4: New file.
1106 * gnulib/import/m4/sockpfaf.m4: New file.
1107 * gnulib/import/m4/stdalign.m4: New file.
1108 * gnulib/import/m4/sys_uio_h.m4: New file.
1109 * gnulib/import/netinet_in.in.h: New file.
1110 * gnulib/import/stdalign.in.h: New file.
1111 * gnulib/import/sys_socket.c: New file.
1112 * gnulib/import/sys_socket.in.h: New file.
1113 * gnulib/import/sys_uio.in.h: New file.
1114 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1115 module.
1116
1117 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1118
1119 * gnulib/aclocal-m4-deps.mk: New file.
1120 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1121 deterministically.
1122
1123 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1124
1125 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1126 KVE_PATH.
1127
1128 2018-09-18 Tom Tromey <tom@tromey.com>
1129
1130 * compile/compile-object-load.c (struct
1131 link_hash_table_cleanup_data): Add constructor and destructor.
1132 Use DISABLE_COPY_AND_ASSIGN.
1133 (~link_hash_table_cleanup_data): Rename from
1134 link_hash_table_free. Now a destructor.
1135 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1136
1137 2018-09-18 Tom Tromey <tom@tromey.com>
1138
1139 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1140 * compile/compile-object-load.c (struct munmap_list): Move to
1141 header file.
1142 (munmap_list::add): Rename from munmap_list_add; rewrite.
1143 (munmap_list::~munmap_list): Rename from munmap_list_free.
1144 (munmap_listp_free_cleanup): Remove.
1145 (compile_object_load): Update.
1146 * compile/compile-object-load.h (struct munmap_list): Move from
1147 compile-object-load.c. Rewrite.
1148
1149 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1150
1151 * aarch64-tdep.c (pass_in_v): Use register size.
1152 (aarch64_extract_return_value): Likewise.
1153 (aarch64_store_return_value): Likewise.
1154
1155 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1156
1157 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1158 rlim_t.
1159
1160 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1161
1162 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1163 Fix short help line.
1164
1165 2018-09-17 Tom Tromey <tom@tromey.com>
1166
1167 PR python/20445:
1168 * configure: Rebuild.
1169 * configure.ac: Conditionally use -DNDEBUG for Python.
1170
1171 2018-09-17 Tom Tromey <tom@tromey.com>
1172
1173 * configure: Rebuild.
1174 * configure.ac: Use gmp as a library dependency when checking for
1175 mpfr.
1176
1177 2018-09-17 Pedro Alves <palves@redhat.com>
1178
1179 * python/py-inferior.c (find_inferior_object): Delete.
1180
1181 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1182
1183 * compile/compile-cplus-types.c
1184 (compile_cplus_instance::enter_scope): Don't use new_scope after
1185 std::move.
1186
1187 2018-09-17 Tom Tromey <tom@tromey.com>
1188
1189 * common/pathstuff.c (get_standard_cache_dir): Use
1190 ~/Library/Caches on macOS.
1191 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1192
1193 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 PR python/23669
1196 * breakpoint.c (commands_cmd_element): New.
1197 (_initialize_breakpoint): Assign commands_cmd_element.
1198 * breakpoint.h (commands_cmd_element): New.
1199 * cli/cli-script.c (while_cmd_element, if_command,
1200 define_cmd_element): New.
1201 (command_name_equals): Remove.
1202 (process_next_line): Compare commands by pointer, not by name.
1203 (_initialize_cli_script): Assign the various cmd_list_element
1204 variables.
1205 * compile/compile.c (compile_cmd_element): New.
1206 (_initialize_compile): Assign compile_cmd_element.
1207 * compile/compile.h (compile_cmd_element): New.
1208 * guile/guile.c (guile_cmd_element): New.
1209 (install_gdb_commands): Assign guile_cmd_element.
1210 * guile/guile.h (guile_cmd_element): New.
1211 * python/python.c (python_cmd_element): New.
1212 (_initialize_python): Assign python_cmd_element.
1213 * python/python.h (python_cmd_element): New.
1214 * tracepoint.c (while_stepping_cmd_element): New.
1215 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1216 * tracepoint.h (while_stepping_cmd_element): New.
1217
1218 2018-09-17 Tom Tromey <tom@tromey.com>
1219
1220 * infrun.c (save_infcall_suspend_state): Return
1221 infcall_suspend_state_up.
1222 (save_infcall_control_state): Return infcall_control_state_up.
1223 * inferior.h (save_infcall_suspend_state)
1224 (save_infcall_control_state): Declare later. Return unique
1225 pointers.
1226
1227 2018-09-17 Tom Tromey <tom@tromey.com>
1228
1229 * infrun.c (struct stop_context): Declare constructor,
1230 destructor, "changed" method.
1231 (stop_context::stop_context): Rename from save_stop_context.
1232 (stop_context::~stop_context): Rename from
1233 release_stop_context_cleanup.
1234 (normal_stop): Update.
1235 (stop_context::changed): Rename from stop_context_changed. Return
1236 bool.
1237
1238 2018-09-17 Tom Tromey <tom@tromey.com>
1239
1240 * inferior.h (struct infcall_suspend_state_deleter): New.
1241 (infcall_suspend_state_up): New typedef.
1242 (struct infcall_control_state_deleter): New.
1243 (infcall_control_state_up): New typedef.
1244 (make_cleanup_restore_infcall_suspend_state)
1245 (make_cleanup_restore_infcall_control_state): Don't declare.
1246 * infcall.c (call_function_by_hand_dummy): Update.
1247 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1248 (make_cleanup_restore_infcall_suspend_state): Remove.
1249 (do_restore_infcall_control_state_cleanup)
1250 (make_cleanup_restore_infcall_control_state): Remove.
1251
1252 2018-09-17 Tom Tromey <tom@tromey.com>
1253
1254 * gdbthread.h (struct thread_control_state): Add initializer.
1255 (class thread_info) <control>: Remove initializer.
1256 * inferior.h (struct inferior_control_state): Add initializer.
1257 (class inferior) <control>: Remove initializer.
1258 (exit_inferior_1): Update.
1259 * infrun.c (struct infcall_control_state): Add constructors.
1260 (save_infcall_control_state): Use new.
1261 (restore_infcall_control_state, discard_infcall_control_state):
1262 Use delete.
1263
1264 2018-09-17 Tom Tromey <tom@tromey.com>
1265
1266 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1267 unique_ptr.
1268 <siginfo_data>: Now a unique_xmalloc_ptr.
1269 (save_infcall_suspend_state, restore_infcall_suspend_state)
1270 (discard_infcall_suspend_state)
1271 (get_infcall_suspend_state_regcache): Update.
1272
1273 2018-09-17 Tom Tromey <tom@tromey.com>
1274
1275 * gdbthread.h (struct thread_suspend_state): Add initializers.
1276 (class thread_info) <suspend>: Remove initializer.
1277 * infrun.c (struct infcall_suspend_state): Add initializers.
1278 (save_infcall_suspend_state): Use new.
1279 (discard_infcall_suspend_state): Use delete.
1280
1281 2018-09-16 Tom Tromey <tom@tromey.com>
1282
1283 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1284 Remove.
1285 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1286 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1287 (py_varobj_iter_new): Likewise.
1288 (py_varobj_get_iterator): Use gdbpy_ref.
1289
1290 2018-09-16 Tom Tromey <tom@tromey.com>
1291
1292 * python/py-threadevent.c (py_get_event_thread): Simplify.
1293 * python/py-inferior.c (infpy_thread_from_thread_handle):
1294 Return immediately after calling thread_to_thread_object. Use
1295 Py_RETURN_NONE.
1296 (thread_to_thread_object): Set the exception on a NULL return.
1297
1298 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1301
1302 2018-09-16 Tom Tromey <tom@tromey.com>
1303
1304 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1305 Remove.
1306
1307 2018-09-16 Tom Tromey <tom@tromey.com>
1308
1309 * python/python-internal.h (thread_to_thread_object): Change
1310 return type.
1311 * python/py-inferior.c (thread_to_thread_object): Return a new
1312 reference.
1313 (infpy_thread_from_thread_handle): Update.
1314 * python/py-infthread.c (gdbpy_selected_thread): Update.
1315 * python/py-stopevent.c (create_stop_event_object): Update.
1316 * python/py-threadevent.c (py_get_event_thread): Return a new
1317 reference.
1318 (py_get_event_thread): Update.
1319 * python/py-event.h (py_get_event_thread): Change return type.
1320 * python/py-continueevent.c (create_continue_event_object):
1321 Update.
1322
1323 2018-09-16 Tom Tromey <tom@tromey.com>
1324
1325 * python/py-progspace.c (pspy_get_objfiles): Update.
1326 * python/python-internal.h (objfile_to_objfile_object): Change
1327 return type.
1328 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1329 Update.
1330 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1331 Update.
1332 * python/python.c (gdbpy_get_current_objfile): Update.
1333 (gdbpy_objfiles): Update.
1334 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1335 Update.
1336 (objfile_to_objfile_object): Return a new reference.
1337 * python/py-symtab.c (stpy_get_objfile): Update.
1338 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1339 Update.
1340
1341 2018-09-16 Tom Tromey <tom@tromey.com>
1342
1343 * python/py-inferior.c (infpy_get_progspace): Update.
1344 * python/python-internal.h (pspace_to_pspace_object): Change
1345 return type.
1346 * python/py-newobjfileevent.c
1347 (create_clear_objfiles_event_object): Update.
1348 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1349 Update.
1350 * python/python.c (gdbpy_get_current_progspace): Update.
1351 (gdbpy_progspaces): Update.
1352 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1353 reference.
1354 * python/py-objfile.c (objfpy_get_progspace): Update.
1355 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1356 Update.
1357
1358 2018-09-16 Tom Tromey <tom@tromey.com>
1359
1360 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1361 (solib_name, block_for_pc, find_pc_line): New functions.
1362 (execute_unwinders): Update.
1363 * python/py-block.c (gdbpy_block_for_pc): Remove.
1364 * python/py-inferior.c (infpy_get_progspace): New function.
1365 (inferior_object_getset) <progspace>: Add.
1366 * python/py-progspace.c (pspy_objfiles): Rewrite.
1367 (pspy_solib_name, pspy_block_for_pc)
1368 (pspy_find_pc_line, pspy_is_valid): New functions.
1369 (progspace_object_methods): Add entries for solib_name,
1370 block_for_pc, find_pc_line, is_valid.
1371 * python/python-internal.h (gdbpy_block_for_pc)
1372 (build_objfiles_list): Don't declare.
1373 * python/python.c: Don't include solib.h.
1374 (gdbpy_solib_name, gdbpy_find_pc_line)
1375 (gdbpy_get_current_progspace, build_objfiles_list)
1376 (gdbpy_objfiles): Remove.
1377 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1378 solib_name, find_pc_line>: Remove entries.
1379
1380 2018-09-16 Tom Tromey <tom@tromey.com>
1381
1382 * top.c (new_ui_command): Use GNU style for metasyntactic
1383 variables.
1384 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1385 variables.
1386 * maint.c (maintenance_translate_address): Remove "<>" around
1387 text.
1388 * interps.c (interpreter_exec_cmd): Use GNU style for
1389 metasyntactic variables.
1390 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1391 metasyntactic variables.
1392 * tracepoint.c (tfind_range_command): Use GNU style for
1393 metasyntactic variables.
1394 (tfind_outside_command): Likewise.
1395 (_initialize_tracepoint): Likewise.
1396 * remote.c (extended_remote_target::create_inferior): Use GNU
1397 style for metasyntactic variables.
1398 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1399 metasyntactic variables.
1400 (adi_assign_command): Likewise.
1401
1402 2018-09-16 Tom Tromey <tom@tromey.com>
1403
1404 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1405 metasyntactic variables. Print message if no disassembler options
1406 are available.
1407
1408 2018-09-15 Tom Tromey <tom@tromey.com>
1409
1410 * infcmd.c (get_inferior_args): Return const char *.
1411 * inferior.h (get_inferior_args): Return type now const.
1412 * linux-tdep.c (linux_fill_prpsinfo): Update.
1413 * procfs.c (procfs_target::make_corefile_notes): Update.
1414
1415 2018-09-07 Tom Tromey <tom@tromey.com>
1416
1417 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1418 inside the TRY.
1419
1420 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1421
1422 * nios2-tdep.c (nios2_type_align): New.
1423 (nios2_gdb_arch_init): Install type_align hook.
1424
1425 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1428 type that is neither object file owned, nor gdbarch owned.
1429 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1430 gdbarch is non-NULL.
1431 (alloc_type_instance): Allocate non-objfile owned types on the
1432 gdbarch obstack.
1433 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1434 using TYPE_ALLOC to ensure memory is allocated on the correct
1435 obstack.
1436 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1437 obstack, or the gdbarch obstack.
1438 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1439
1440 2018-09-14 Tom Tromey <tom@tromey.com>
1441
1442 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1443 block.
1444
1445 2018-09-14 Tom Tromey <tom@tromey.com>
1446
1447 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1448
1449 2018-09-13 Tom Tromey <tom@tromey.com>
1450
1451 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1452 static.
1453
1454 2018-09-13 Tom Tromey <tom@tromey.com>
1455
1456 * exec.c (try_open_exec_file): Use std::string.
1457
1458 2018-09-13 Tom Tromey <tom@tromey.com>
1459
1460 * utils.h (gdb_bfd_errmsg): Return std::string.
1461 * exec.c (exec_file_attach): Update.
1462 * compile/compile-object-load.c (compile_object_load): Update.
1463 * utils.c (gdb_bfd_errmsg): Return std::string.
1464
1465 2018-09-13 Tom Tromey <tom@tromey.com>
1466
1467 * procfs.c (struct procinfo_deleter): New.
1468 (procinfo_up): New typedef.
1469 (do_destroy_procinfo_cleanup): Remove.
1470 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1471
1472 2018-09-13 Tom Tromey <tom@tromey.com>
1473
1474 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1475
1476 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1477 2018-09-13 Tom Tromey <tom@tromey.com>
1478
1479 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1480 (pspy_get_objfiles): New function.
1481 (progspace_object_methods): New.
1482 (pspace_object_type): Add tp_methods callback.
1483 * python/python-internal.h (build_objfiles_list): New
1484 declaration.
1485 * python/python.c (build_objfiles_list): New function.
1486 (gdbpy_objfiles): Implement using build_objfiles_list.
1487 * NEWS: Mention the Progspace.objfiles method.
1488
1489 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1490
1491 * python/py-inferior.c (infpy_get_progspace): New function.
1492 (inferior_object_getset): Add progspace property.
1493 * NEWS: Mention the new property.
1494
1495 2018-09-13 Tom Tromey <tom@tromey.com>
1496
1497 PR rust/23650:
1498 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1499
1500 2018-09-13 Tom Tromey <tom@tromey.com>
1501
1502 PR rust/23626:
1503 * rust-lang.c (rust_enum_variant): Now static.
1504 (rust_empty_enum_p): New function.
1505 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1506 Handle empty enum.
1507
1508 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1509
1510 * python/py-inferior.c (infpy_repr): New.
1511 (inferior_object_type): Register infpy_repr.
1512 * python/py-objfile.c (objfpy_repr): New.
1513 (objfile_object_type): Register objfpy_repr.
1514
1515 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1516
1517 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1518
1519 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1520
1521 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1522 typo.
1523
1524 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1525
1526 * common/common-utils.c: Don't include '<sys/stat.h>'.
1527 (is_regular_file): Move to...
1528 * common/filestuff.c (is_regular_file): ... here.
1529 * common/common-utils.h (is_regular_file): Move to...
1530 * common/filestuff.h (is_regular_file): ... here.
1531
1532 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1533
1534 * skip.c (debug_skip): New variable.
1535 (skiplist_entry::do_skip_file_p): Add debug output.
1536 (skiplist_entry::do_skip_gfile_p): Likewise.
1537 (skiplist_entry::skip_function_p): Likewise.
1538 (_initialize_step_skip): Create debug command.
1539 * NEWS: Mention set/show debug skip.
1540
1541 2018-09-11 Xavier Roirand <roirand@adacore.com>
1542
1543 * darwin-nat.c (should_disable_startup_with_shell):
1544 New function.
1545 (darwin_nat_target::create_inferior): Add call.
1546
1547 2018-09-11 Xavier Roirand <roirand@adacore.com>
1548
1549 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1550 inf_port, msg_state>: Initialize.
1551 (struct darwin_thread_info) <signaled, single_step>: Change
1552 type and initialize.
1553 (struct darwin_thread_info) <event>: Initialize.
1554
1555 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1556
1557 PR gdb/23555
1558 PR gdb/23558
1559 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1560 guesses.
1561
1562 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1563
1564 Revert:
1565 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1566
1567 PR gdb/23555
1568 PR gdb/23558
1569 * gnulib/aclocal.m4: Regenerate.
1570 * gnulib/config.in: Regenerate.
1571 * gnulib/configure: Regenerate.
1572 * gnulib/import/Makefile.am: Update.
1573 * gnulib/import/Makefile.in: Update.
1574 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1575 * gnulib/import/_Noreturn.h: ... this.
1576 * gnulib/import/alloca.in.h: Update.
1577 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1578 * gnulib/import/arg-nonnull.h: ... this.
1579 * gnulib/import/assure.h: Update.
1580 * gnulib/import/at-func.c: Update.
1581 * gnulib/import/basename-lgpl.c: Update.
1582 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1583 * gnulib/import/c++defs.h: ... this.
1584 * gnulib/import/canonicalize-lgpl.c: Update.
1585 * gnulib/import/cdefs.h: Update.
1586 * gnulib/import/chdir-long.c: Update.
1587 * gnulib/import/chdir-long.h: Update.
1588 * gnulib/import/cloexec.c: Update.
1589 * gnulib/import/cloexec.h: Update.
1590 * gnulib/import/close.c: Update.
1591 * gnulib/import/closedir.c: Update.
1592 * gnulib/import/config.charset: Update.
1593 * gnulib/import/dirent-private.h: Update.
1594 * gnulib/import/dirent.in.h: Update.
1595 * gnulib/import/dirfd.c: Update.
1596 * gnulib/import/dirname-lgpl.c: Update.
1597 * gnulib/import/dirname.h: Update.
1598 * gnulib/import/dosname.h: Update.
1599 * gnulib/import/dup-safer-flag.c: Update.
1600 * gnulib/import/dup-safer.c: Update.
1601 * gnulib/import/dup.c: Update.
1602 * gnulib/import/dup2.c: Update.
1603 * gnulib/import/errno.in.h: Update.
1604 * gnulib/import/error.c: Update.
1605 * gnulib/import/error.h: Update.
1606 * gnulib/import/exitfail.c: Update.
1607 * gnulib/import/exitfail.h: Update.
1608 * gnulib/import/extra/update-copyright: Update.
1609 * gnulib/import/fchdir.c: Update.
1610 * gnulib/import/fcntl.c: Update.
1611 * gnulib/import/fcntl.in.h: Update.
1612 * gnulib/import/fd-hook.c: Update.
1613 * gnulib/import/fd-hook.h: Update.
1614 * gnulib/import/fd-safer-flag.c: Update.
1615 * gnulib/import/fd-safer.c: Update.
1616 * gnulib/import/fdopendir.c: Update.
1617 * gnulib/import/filename.h: Update.
1618 * gnulib/import/filenamecat-lgpl.c: Update.
1619 * gnulib/import/filenamecat.h: Update.
1620 * gnulib/import/flexmember.h: Update.
1621 * gnulib/import/float+.h: Update.
1622 * gnulib/import/float.c: Update.
1623 * gnulib/import/float.in.h: Update.
1624 * gnulib/import/fnmatch.c: Update.
1625 * gnulib/import/fnmatch.in.h: Update.
1626 * gnulib/import/fnmatch_loop.c: Update.
1627 * gnulib/import/fpucw.h: Update.
1628 * gnulib/import/frexp.c: Update.
1629 * gnulib/import/frexpl.c: Update.
1630 * gnulib/import/fstat.c: Update.
1631 * gnulib/import/fstatat.c: Update.
1632 * gnulib/import/getcwd-lgpl.c: Update.
1633 * gnulib/import/getcwd.c: Update.
1634 * gnulib/import/getdtablesize.c: Update.
1635 * gnulib/import/getlogin_r.c: Update.
1636 * gnulib/import/getprogname.c: Update.
1637 * gnulib/import/getprogname.h: Update.
1638 * gnulib/import/gettext.h: Update.
1639 * gnulib/import/gettimeofday.c: Update.
1640 * gnulib/import/glob-libc.h: Update.
1641 * gnulib/import/glob.c: Update.
1642 * gnulib/import/glob.in.h: Update.
1643 * gnulib/import/glob_internal.h: Update.
1644 * gnulib/import/glob_pattern_p.c: Update.
1645 * gnulib/import/globfree.c: Update.
1646 * gnulib/import/hard-locale.c: Update.
1647 * gnulib/import/hard-locale.h: Update.
1648 * gnulib/import/intprops.h: Update.
1649 * gnulib/import/inttypes.in.h: Update.
1650 * gnulib/import/isnan.c: Update.
1651 * gnulib/import/isnand-nolibm.h: Update.
1652 * gnulib/import/isnand.c: Update.
1653 * gnulib/import/isnanl-nolibm.h: Update.
1654 * gnulib/import/isnanl.c: Update.
1655 * gnulib/import/itold.c: Update.
1656 * gnulib/import/libc-config.h: Update.
1657 * gnulib/import/limits.in.h: Update.
1658 * gnulib/import/localcharset.c: Update.
1659 * gnulib/import/localcharset.h: Update.
1660 * gnulib/import/localtime-buffer.c: Update.
1661 * gnulib/import/localtime-buffer.h: Update.
1662 * gnulib/import/lstat.c: Update.
1663 * gnulib/import/m4/00gnulib.m4: Update.
1664 * gnulib/import/m4/__inline.m4: Update.
1665 * gnulib/import/m4/absolute-header.m4: Update.
1666 * gnulib/import/m4/alloca.m4: Update.
1667 * gnulib/import/m4/builtin-expect.m4: Update.
1668 * gnulib/import/m4/canonicalize.m4: Update.
1669 * gnulib/import/m4/chdir-long.m4: Update.
1670 * gnulib/import/m4/close.m4: Update.
1671 * gnulib/import/m4/closedir.m4: Update.
1672 * gnulib/import/m4/configmake.m4: Update.
1673 * gnulib/import/m4/d-ino.m4: Update.
1674 * gnulib/import/m4/d-type.m4: Update.
1675 * gnulib/import/m4/dirent_h.m4: Update.
1676 * gnulib/import/m4/dirfd.m4: Update.
1677 * gnulib/import/m4/dirname.m4: Update.
1678 * gnulib/import/m4/double-slash-root.m4: Update.
1679 * gnulib/import/m4/dup.m4: Update.
1680 * gnulib/import/m4/dup2.m4: Update.
1681 * gnulib/import/m4/eealloc.m4: Update.
1682 * gnulib/import/m4/environ.m4: Update.
1683 * gnulib/import/m4/errno_h.m4: Update.
1684 * gnulib/import/m4/error.m4: Update.
1685 * gnulib/import/m4/exponentd.m4: Update.
1686 * gnulib/import/m4/exponentl.m4: Update.
1687 * gnulib/import/m4/extensions.m4: Update.
1688 * gnulib/import/m4/extern-inline.m4: Update.
1689 * gnulib/import/m4/fchdir.m4: Update.
1690 * gnulib/import/m4/fcntl-o.m4: Update.
1691 * gnulib/import/m4/fcntl.m4: Update.
1692 * gnulib/import/m4/fcntl_h.m4: Update.
1693 * gnulib/import/m4/fdopendir.m4: Update.
1694 * gnulib/import/m4/filenamecat.m4: Update.
1695 * gnulib/import/m4/flexmember.m4: Update.
1696 * gnulib/import/m4/float_h.m4: Update.
1697 * gnulib/import/m4/fnmatch.m4: Update.
1698 * gnulib/import/m4/fnmatch_h.m4: Update.
1699 * gnulib/import/m4/fpieee.m4: Update.
1700 * gnulib/import/m4/frexp.m4: Update.
1701 * gnulib/import/m4/frexpl.m4: Update.
1702 * gnulib/import/m4/fstat.m4: Update.
1703 * gnulib/import/m4/fstatat.m4: Update.
1704 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1705 * gnulib/import/m4/getcwd-path-max.m4: Update.
1706 * gnulib/import/m4/getcwd.m4: Update.
1707 * gnulib/import/m4/getdtablesize.m4: Update.
1708 * gnulib/import/m4/getlogin.m4: Update.
1709 * gnulib/import/m4/getlogin_r.m4: Update.
1710 * gnulib/import/m4/getpagesize.m4: Update.
1711 * gnulib/import/m4/getprogname.m4: Update.
1712 * gnulib/import/m4/gettimeofday.m4: Update.
1713 * gnulib/import/m4/glibc21.m4: Update.
1714 * gnulib/import/m4/glob.m4: Update.
1715 * gnulib/import/m4/glob_h.m4: Update.
1716 * gnulib/import/m4/gnulib-cache.m4: Update.
1717 * gnulib/import/m4/gnulib-common.m4: Update.
1718 * gnulib/import/m4/gnulib-comp.m4: Update.
1719 * gnulib/import/m4/gnulib-tool.m4: Update.
1720 * gnulib/import/m4/hard-locale.m4: Update.
1721 * gnulib/import/m4/include_next.m4: Update.
1722 * gnulib/import/m4/inttypes-pri.m4: Update.
1723 * gnulib/import/m4/inttypes.m4: Update.
1724 * gnulib/import/m4/isnand.m4: Update.
1725 * gnulib/import/m4/isnanl.m4: Update.
1726 * gnulib/import/m4/largefile.m4: Update.
1727 * gnulib/import/m4/limits-h.m4: Update.
1728 * gnulib/import/m4/localcharset.m4: Update.
1729 * gnulib/import/m4/locale-fr.m4: Update.
1730 * gnulib/import/m4/locale-ja.m4: Update.
1731 * gnulib/import/m4/locale-zh.m4: Update.
1732 * gnulib/import/m4/localtime-buffer.m4: Update.
1733 * gnulib/import/m4/longlong.m4: Update.
1734 * gnulib/import/m4/lstat.m4: Update.
1735 * gnulib/import/m4/malloc.m4: Update.
1736 * gnulib/import/m4/malloca.m4: Update.
1737 * gnulib/import/m4/math_h.m4: Update.
1738 * gnulib/import/m4/mbrtowc.m4: Update.
1739 * gnulib/import/m4/mbsinit.m4: Update.
1740 * gnulib/import/m4/mbsrtowcs.m4: Update.
1741 * gnulib/import/m4/mbstate_t.m4: Update.
1742 * gnulib/import/m4/memchr.m4: Update.
1743 * gnulib/import/m4/memmem.m4: Update.
1744 * gnulib/import/m4/mempcpy.m4: Update.
1745 * gnulib/import/m4/memrchr.m4: Update.
1746 * gnulib/import/m4/mkdir.m4: Update.
1747 * gnulib/import/m4/mkstemp.m4: Update.
1748 * gnulib/import/m4/mmap-anon.m4: Update.
1749 * gnulib/import/m4/mode_t.m4: Update.
1750 * gnulib/import/m4/msvc-inval.m4: Update.
1751 * gnulib/import/m4/msvc-nothrow.m4: Update.
1752 * gnulib/import/m4/multiarch.m4: Update.
1753 * gnulib/import/m4/nocrash.m4: Update.
1754 * gnulib/import/m4/off_t.m4: Update.
1755 * gnulib/import/m4/onceonly.m4: Update.
1756 * gnulib/import/m4/open-cloexec.m4: Update.
1757 * gnulib/import/m4/open.m4: Update.
1758 * gnulib/import/m4/openat.m4: Update.
1759 * gnulib/import/m4/opendir.m4: Update.
1760 * gnulib/import/m4/pathmax.m4: Update.
1761 * gnulib/import/m4/rawmemchr.m4: Update.
1762 * gnulib/import/m4/readdir.m4: Update.
1763 * gnulib/import/m4/readlink.m4: Update.
1764 * gnulib/import/m4/realloc.m4: Update.
1765 * gnulib/import/m4/rename.m4: Update.
1766 * gnulib/import/m4/rewinddir.m4: Update.
1767 * gnulib/import/m4/rmdir.m4: Update.
1768 * gnulib/import/m4/save-cwd.m4: Update.
1769 * gnulib/import/m4/secure_getenv.m4: Update.
1770 * gnulib/import/m4/setenv.m4: Update.
1771 * gnulib/import/m4/signal_h.m4: Update.
1772 * gnulib/import/m4/ssize_t.m4: Update.
1773 * gnulib/import/m4/stat-time.m4: Update.
1774 * gnulib/import/m4/stat.m4: Update.
1775 * gnulib/import/m4/std-gnu11.m4: Update.
1776 * gnulib/import/m4/stdbool.m4: Update.
1777 * gnulib/import/m4/stddef_h.m4: Update.
1778 * gnulib/import/m4/stdint.m4: Update.
1779 * gnulib/import/m4/stdio_h.m4: Update.
1780 * gnulib/import/m4/stdlib_h.m4: Update.
1781 * gnulib/import/m4/strchrnul.m4: Update.
1782 * gnulib/import/m4/strdup.m4: Update.
1783 * gnulib/import/m4/strerror.m4: Update.
1784 * gnulib/import/m4/string_h.m4: Update.
1785 * gnulib/import/m4/strstr.m4: Update.
1786 * gnulib/import/m4/strtok_r.m4: Update.
1787 * gnulib/import/m4/sys_socket_h.m4: Update.
1788 * gnulib/import/m4/sys_stat_h.m4: Update.
1789 * gnulib/import/m4/sys_time_h.m4: Update.
1790 * gnulib/import/m4/sys_types_h.m4: Update.
1791 * gnulib/import/m4/tempname.m4: Update.
1792 * gnulib/import/m4/time_h.m4: Update.
1793 * gnulib/import/m4/unistd-safer.m4: Update.
1794 * gnulib/import/m4/unistd_h.m4: Update.
1795 * gnulib/import/m4/warn-on-use.m4: Update.
1796 * gnulib/import/m4/wchar_h.m4: Update.
1797 * gnulib/import/m4/wchar_t.m4: Update.
1798 * gnulib/import/m4/wctype_h.m4: Update.
1799 * gnulib/import/m4/wint_t.m4: Update.
1800 * gnulib/import/malloc.c: Update.
1801 * gnulib/import/malloc/scratch_buffer.h: Update.
1802 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1803 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1804 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1805 * gnulib/import/malloca.c: Update.
1806 * gnulib/import/malloca.h: Update.
1807 * gnulib/import/malloca.valgrind: Update.
1808 * gnulib/import/math.in.h: Update.
1809 * gnulib/import/mbrtowc.c: Update.
1810 * gnulib/import/mbsinit.c: Update.
1811 * gnulib/import/mbsrtowcs-impl.h: Update.
1812 * gnulib/import/mbsrtowcs-state.c: Update.
1813 * gnulib/import/mbsrtowcs.c: Update.
1814 * gnulib/import/memchr.c: Update.
1815 * gnulib/import/memmem.c: Update.
1816 * gnulib/import/mempcpy.c: Update.
1817 * gnulib/import/memrchr.c: Update.
1818 * gnulib/import/mkdir.c: Update.
1819 * gnulib/import/mkstemp.c: Update.
1820 * gnulib/import/msvc-inval.c: Update.
1821 * gnulib/import/msvc-inval.h: Update.
1822 * gnulib/import/msvc-nothrow.c: Update.
1823 * gnulib/import/msvc-nothrow.h: Update.
1824 * gnulib/import/open.c: Update.
1825 * gnulib/import/openat-die.c: Update.
1826 * gnulib/import/openat-priv.h: Update.
1827 * gnulib/import/openat-proc.c: Update.
1828 * gnulib/import/openat.c: Update.
1829 * gnulib/import/openat.h: Update.
1830 * gnulib/import/opendir.c: Update.
1831 * gnulib/import/pathmax.h: Update.
1832 * gnulib/import/pipe-safer.c: Update.
1833 * gnulib/import/rawmemchr.c: Update.
1834 * gnulib/import/readdir.c: Update.
1835 * gnulib/import/readlink.c: Update.
1836 * gnulib/import/realloc.c: Update.
1837 * gnulib/import/ref-add.sin: Update.
1838 * gnulib/import/ref-del.sin: Update.
1839 * gnulib/import/rename.c: Update.
1840 * gnulib/import/rewinddir.c: Update.
1841 * gnulib/import/rmdir.c: Update.
1842 * gnulib/import/same-inode.h: Update.
1843 * gnulib/import/save-cwd.c: Update.
1844 * gnulib/import/save-cwd.h: Update.
1845 * gnulib/import/scratch_buffer.h: Update.
1846 * gnulib/import/secure_getenv.c: Update.
1847 * gnulib/import/setenv.c: Update.
1848 * gnulib/import/signal.in.h: Update.
1849 * gnulib/import/stat-time.c: Update.
1850 * gnulib/import/stat-time.h: Update.
1851 * gnulib/import/stat-w32.c: Update.
1852 * gnulib/import/stat-w32.h: Update.
1853 * gnulib/import/stat.c: Update.
1854 * gnulib/import/stdbool.in.h: Update.
1855 * gnulib/import/stddef.in.h: Update.
1856 * gnulib/import/stdint.in.h: Update.
1857 * gnulib/import/stdio.in.h: Update.
1858 * gnulib/import/stdlib.in.h: Update.
1859 * gnulib/import/str-two-way.h: Update.
1860 * gnulib/import/strchrnul.c: Update.
1861 * gnulib/import/strdup.c: Update.
1862 * gnulib/import/streq.h: Update.
1863 * gnulib/import/strerror-override.c: Update.
1864 * gnulib/import/strerror-override.h: Update.
1865 * gnulib/import/strerror.c: Update.
1866 * gnulib/import/string.in.h: Update.
1867 * gnulib/import/stripslash.c: Update.
1868 * gnulib/import/strnlen1.c: Update.
1869 * gnulib/import/strnlen1.h: Update.
1870 * gnulib/import/strstr.c: Update.
1871 * gnulib/import/strtok_r.c: Update.
1872 * gnulib/import/sys_stat.in.h: Update.
1873 * gnulib/import/sys_time.in.h: Update.
1874 * gnulib/import/sys_types.in.h: Update.
1875 * gnulib/import/tempname.c: Update.
1876 * gnulib/import/tempname.h: Update.
1877 * gnulib/import/time.in.h: Update.
1878 * gnulib/import/unistd--.h: Update.
1879 * gnulib/import/unistd-safer.h: Update.
1880 * gnulib/import/unistd.in.h: Update.
1881 * gnulib/import/unsetenv.c: Update.
1882 * gnulib/import/verify.h: Update.
1883 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1884 * gnulib/import/wchar.in.h: Update.
1885 * gnulib/import/wctype.in.h: Update.
1886 * gnulib/import/xalloc-oversized.h: Update.
1887 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1888 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1889
1890 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1891
1892 * record-btrace.c (get_thread_current_frame): Remove
1893 old_inferior_ptid.
1894
1895 2018-09-10 Jerome Guitton <guitton@adacore.com>
1896
1897 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1898 with check_tag to 1 if and only if the type is tagged and the
1899 component being searched cannot been found in the current
1900 view. Otherwise, always call ada_to_fixed_type with
1901 check_tag to 0.
1902
1903 2018-09-10 Xavier Roirand <roirand@adacore.com>
1904
1905 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1906 declaration.
1907 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1908 * ada-varobj.c (ada_varobj_get_number_of_children,
1909 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1910
1911 2018-09-10 Xavier Roirand <roirand@adacore.com>
1912
1913 * ada-valprint.c (ada_value_print): Use type instead of
1914 enclosing type.
1915
1916 2018-09-10 Xavier Roirand <roirand@adacore.com>
1917
1918 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1919 an array of access to unconstrained array.
1920
1921 2018-09-10 Xavier Roirand <roirand@adacore.com>
1922
1923 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1924 (ada_check_typedef): Use it.
1925
1926 2018-09-10 Xavier Roirand <roirand@adacore.com>
1927
1928 * ada-varobj.c (ada_varobj_describe_struct_child)
1929 (ada_varobj_describe_child): Handle union case like struct one.
1930
1931 2018-09-10 Tom Tromey <tom@tromey.com>
1932
1933 PR python/18380:
1934 * python/python.c (_initialize_python): Make example in "python"
1935 help work in Python 3.
1936
1937 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1938
1939 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1940 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1941 $(EXEEXT) to the script, as it is not a program.
1942
1943 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1944
1945 * python/py-prettyprint.c (pretty_print_one_value): Return
1946 gdbpy_ref<>.
1947 (print_string_repr): Adjust.
1948 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1949 * python/python-internal.h (apply_varobj_pretty_printer): Return
1950 gdbpy_ref<>.
1951 * varobj.c (varobj_value_get_print_value): Adjust.
1952
1953 2018-09-08 Tom Tromey <tom@tromey.com>
1954
1955 PR python/16047:
1956 * python/py-prettyprint.c (pretty_print_one_value): Check for
1957 to_string method.
1958
1959 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1960
1961 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1962 replace_operator_with_call.
1963
1964 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1965
1966 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1967
1968 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1969
1970 * ada-typeprint.c (print_range): Print the bounds using TYPE
1971 rather than its TYPE_TARGET_TYPE.
1972
1973 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1974
1975 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1976 call to ada_to_fixed_value_create.
1977
1978 2018-09-08 Jerome Guitton <guitton@adacore.com>
1979
1980 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1981
1982 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1983
1984 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1985 by calls to error.
1986
1987 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1988
1989 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1990 Move update of loop variable "fi".
1991
1992 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1993
1994 * ada-lang.c (value_assign_to_component): In the case of
1995 big-endian targets, extract the bits of the given VAL
1996 using an src_offset of zero if container is not a scalar.
1997
1998 2018-09-06 Simon Ser <contact@emersion.fr>
1999
2000 PR gdb/23105
2001 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2002 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2003 * fbsd-tdep.c (fbsd_make_note_desc): New.
2004 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2005 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2006 * target.h (enum target_object) Add FreeBSD-specific
2007 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2008
2009 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2010
2011 * compile/compile-c.h (generate_c_for_variable_locations):
2012 Change reference to pointer.
2013 * compile/compile-c-support.c (compile_program) <compute>:
2014 Likewise.
2015 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2016 (generate_c_for_for_one_variable): Likewise
2017 (generate_c_for_variable_locations): Likewise
2018 * compile/compile-c-types.c (compile_c_instance::convert_type):
2019 Likewise
2020 * compile/compile-cplus-symbols.c (convert_one_symbol):
2021 std::move the scope passed to enter_scope.
2022 * compile/compile-cplus-types.c
2023 (compile_cplus_instance::enter_scope): Make parameter
2024 rvalue-reference.
2025 (compile_cplus_instance::new_scope): Change reference to
2026 pointer.
2027 (compile_cplus_instance::convert_type): Likewise
2028 (compile_cplus_convert_typedef): std::move the scope passed to
2029 enter_scope.
2030 (compile_cplus_convert_struct_or_union): Likewise.
2031 (compile_cplus_convert_enum): Likewise.
2032 (compile_cplus_convert_namespace): Likewise.
2033 * compile/compile-cplus.h (compile_cplus_instance)
2034 <enter_scope>: Make parameter rvalue-reference.
2035 * compile/compile-internal.h (compile_instance)
2036 <get_cached_type>: Likewise
2037 * compile/compile-loc2c.c (push): Likewise
2038 (pushf): Likewise
2039 (unary): Likewise
2040 (binary): Likewise
2041 (print_label): Likewise
2042 (pushf_register_address): Likewise
2043 (pushf_register): Likewise
2044 (do_compile_dwarf_expr_to_c): Likewise
2045 (compile_dwarf_expr_to_c): Likewise
2046 (compile_dwarf_bounds_to_c): Likewise
2047 * compile/compile.c (compile_instance::get_cached_type):
2048 Likewise
2049 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2050 (compile_dwarf_bounds_to_c): Likewise
2051 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2052 (dwarf2_compile_property_to_c): Likewise
2053 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2054 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2055 Likewise
2056
2057 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2058
2059 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2060 * tui/tui-data.c (init_content_element): Don't initialize it.
2061
2062 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2063
2064 * tui/tui-data.h (struct tui_win_info)
2065 <detail::opaque>: Remove.
2066 * tui/tui-data.c (init_win_info): Remove assignment.
2067
2068 2018-09-05 Tom Tromey <tom@tromey.com>
2069
2070 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2071 -Wformat-nonliteral.
2072 * target-float.c (host_float_ops<T>::to_string)
2073 (host_float_ops<T>::from_string): Use
2074 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2075 * configure: Rebuild.
2076
2077 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2078
2079 * printcmd.c (printf_c_string): Use
2080 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2081 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2082
2083 2018-09-05 Tom Tromey <tom@tromey.com>
2084
2085 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2086
2087 2018-09-05 Tom de Vries <tdevries@suse.de>
2088
2089 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2090 with resolve_abstract_p == true.
2091 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2092 defaulting to false. Propagate resolve_abstract_p to
2093 dwarf2_fetch_die_loc_sect_off.
2094 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2095 parameter, defaulting to false.
2096 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2097 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2098 parameter.
2099 * dwarf2read.h (struct die_info): Forward-declare.
2100 (die_info_ptr): New typedef.
2101 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2102
2103 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2104
2105 GDB 8.2 released.
2106
2107 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2108 Pedro Alves <palves@redhat.com>
2109
2110 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2111 "aclocal-m4-deps.mk". Include file here.
2112 $(srcdir)/aclocal.m4: Add "configure.ac".
2113 * gnulib/aclocal-m4-deps.mk: New file.
2114 * gnulib/update-gnulib.sh: Automatically update
2115 "aclocal-m4-deps.mk".
2116
2117 2018-09-04 Tom Tromey <tom@tromey.com>
2118
2119 * configure: Rebuild.
2120 * configure.ac: Remove multi-ice code.
2121
2122 2018-09-04 Tom Tromey <tom@tromey.com>
2123
2124 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2125 (ada-exp.o): Update.
2126
2127 2018-09-04 Tom Tromey <tom@tromey.com>
2128
2129 * Makefile.in (printcmd.o, target-float.o): Remove.
2130 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2131
2132 2018-09-04 Tom Tromey <tom@tromey.com>
2133
2134 * gnulib/Makefile.in: Remove obsolete comment.
2135 * Makefile.in: Remove obsolete comment.
2136
2137 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2140 line with '+'.
2141
2142 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * riscv-tdep.c: Add 'prologue-value.h' include.
2145 (struct riscv_unwind_cache): New struct.
2146 (riscv_debug_unwinder): New global.
2147 (riscv_scan_prologue): Update arguments, capture register details
2148 from prologue scan.
2149 (riscv_skip_prologue): Reformat arguments line, move end of
2150 prologue calculation into riscv_scan_prologue.
2151 (riscv_frame_cache): Update return type, create
2152 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2153 details.
2154 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2155 (riscv_frame_prev_register): Use the trad_frame within the
2156 riscv_unwind_cache.
2157 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2158 flag.
2159
2160 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * trad-frame.h (trad_frame_set_realreg): Declare.
2163 (trad_frame_set_addr): Declare.
2164 * trad-frame.c (trad_frame_set_realreg): Define new function.
2165 (trad_frame_set_addr): Define new function.
2166 (trad_frame_set_reg_realreg): Use new function.
2167 (trad_frame_set_reg_addr): Use new function.
2168
2169 2018-09-01 Keith Seitz <keiths@redhat.com>
2170
2171 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2172 pulongest instead of "%lld".
2173 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2174 ATTRIBUTE_UNUSED.
2175
2176 2018-08-31 Tom Tromey <tom@tromey.com>
2177
2178 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2179 variant part type.
2180
2181 2018-08-31 Pedro Alves <palves@redhat.com>
2182
2183 * gdbarch.h: Regenerate.
2184
2185 2018-08-31 Pedro Alves <palves@redhat.com>
2186
2187 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2188 * target.h (Hardware watchpoint interfaces): Describe
2189 continuable/steppable/non-steppable watchpoints.
2190 * gdbarch.h, gdbarch.c: Regenerate.
2191
2192 2018-08-31 Pedro Alves <palves@redhat.com>
2193
2194 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2195 Delete.
2196 * s390-linux-nat.c
2197 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2198 * target.h (target_ops::have_continuable_watchpoint): Delete.
2199 (target_have_continuable_watchpoint): Delete.
2200 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2201 * target-delegates.c: Regenerate.
2202
2203 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2204
2205 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2206 the files present in "gnulib/import/m4/".
2207
2208 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2211 c.sw, c.swsp, and c.sdsp.
2212
2213 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2216 (riscv_read_misa_reg): Don't cache value read into inferior data.
2217 (riscv_new_inferior_data): Delete.
2218 (riscv_inferior_data_cleanup): Delete.
2219 (riscv_inferior_data): Delete.
2220 (riscv_invalidate_inferior_data): Delete.
2221 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2222
2223 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2224
2225 * compile/compile-cplus-types.c
2226 (compile_cplus_instance::leave_scope): Take the address of scope
2227 object.
2228 (compile_cplus_instance::convert_qualified_base): Compare quals
2229 to 0.
2230
2231 2018-08-30 Keith Seitz <keiths@redhat.com>
2232
2233 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2234 Use "%s" and host_address_to_string instead of "%p" in printf.
2235
2236 2018-08-29 Keith Seitz <keiths@redhat.com>
2237
2238 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2239 and compile-cplus-types.c.
2240 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2241 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2242 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2243 Declare.
2244 * compile/compile-c-support.c: Include compile-cplus.h.
2245 (load_libcompile): Templatize.
2246 (get_compile_context): "New" function.
2247 (c_get_compile_context): Use get_compile_context.
2248 (cplus_get_compile_context): New function.
2249 (cplus_push_user_expression, cplus_pop_user_expression)
2250 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2251 (cplus_compute_program): Define new structs/functions.
2252 * compile/compile-cplus-symmbols.c: New file.
2253 * compile/compile-cplus-types.c: New file.
2254 * compile/compile-cplus.h: New file.
2255 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2256 Declare.
2257 * compile/compile-object-load.c (get_out_value_type): Use
2258 strncmp_iw when comparing symbol names.
2259 (compile_object_load): Add mst_bss and mst_data.
2260 * compile/compile.c (_initialize_compile): Remove
2261 -Wno-implicit-function-declaration from `compile_args'.
2262 * compile/gcc-cp-plugin.h: New file.
2263 * NEWS: Mention C++ compile support and new debug options.
2264
2265 2018-08-29 Keith Seitz <keiths@redhat.com>
2266
2267 * linespec.c (collect_info::add_symbol): Make virtual.
2268 (struct symbol_searcher_collect_info): New struct.
2269 (symbol_searcher::find_all_symbols): New method.
2270 * symtab.h (class symbol_searcher): New class.
2271
2272 2018-08-29 Keith Seitz <keiths@redhat.com>
2273
2274 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2275 Change to vector of block_symbol. Update all users.
2276 (struct collect_info) <symbols>: Likewise.
2277 (collect_info::add_symbol): Take block_symbol as argument.
2278 Update all callers.
2279 (decode_compound_collector) <m_symbols>: Change type to vector
2280 of block_symbol. Update all users.
2281 (decode_compound_collector::operator ()): Change parameter type
2282 to block_symbol.
2283 (find_method, find_function_symbols, find_linespec_symbols)
2284 (find_label_symbols_in_block, find_label_symbols): Change symbol
2285 vectors to block_symbol vectors.
2286 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2287 block_symbol.
2288
2289 2018-08-29 Keith Seitz <keiths@redhat.com>
2290
2291 * linespec.c (symbolp): Remove typedef and VEC definitions.
2292 (bound_minimal_symbol_d): Likewise.
2293
2294 2018-08-29 Keith Seitz <keiths@redhat.com>
2295
2296 * linespec.c (decode_compound_collector::decode_compound_collector):
2297 Remove initialization for `m_symtabs'.
2298 (decode_compound_collector::release_symbols): Change return type
2299 to std::vector. Update all callers.
2300 (class decode_compound_collector) <m_symbols>: Change type to
2301 std::vector.
2302 (lookup_prefix_sym): Change return type to std::vector. Update all
2303 callers.
2304 (compare_symbols): Remove.
2305 (std_compare_symbols): Rename to `compare_symbols'.
2306 (find_method): Change `sym_classes' parameter to std::vector.
2307 Update all callers. Use std::sort to sort sym_classes.
2308 (find_linespec_symbols): Remove cleanup.
2309
2310 2018-08-29 Keith Seitz <keiths@redhat.com>
2311
2312 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2313 std::vector. Update all users.
2314 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2315 (struct collect_info) <minimal_symbols>: Likewise.
2316 (compare_msymbols): Return bool. Change parameters to const
2317 bound_minimal_symbol references.
2318 (find_method, find_function_symbols, find_linespec_symbols): Change
2319 `minsyms' parameter to std::vector. Update all callers.
2320
2321 2018-08-29 Keith Seitz <keiths@redhat.com>
2322
2323 * linespec.c (struct linespec) <label_symbols>: Change type to
2324 std::vector. Update all users.
2325 (find_label_symbols_in_block): Change `result' parameter to
2326 std::vector. Update all callers.
2327 (find_label_symbols): Return std::vector. Update all callers.
2328
2329 2018-08-29 Keith Seitz <keiths@redhat.com>
2330
2331 * linespec.c (struct linespec) <function_symbols>: Change type to
2332 std::vector. Update all users.
2333 (struct collect_info) <function_symbols>: Likewise.
2334 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2335 (std_compare_symbols): New function.
2336 (find_method, find_function_symbols, find_linespec_symbols)
2337 (find_label_symbols_in_block): Change `symbols' parameter to
2338 std::vector. Update all callers.
2339 (find_label_symbols): Likewise for `function_symbols' and
2340 `label_funcs_ret'.
2341
2342 2018-08-29 Keith Seitz <keiths@redhat.com>
2343
2344 * linespec.c (symtab_vector_up): Define.
2345 (struct linespec) <file_symtabs>: Change type to std::vector *.
2346 Update all uses.
2347 (struct collect_info) <file_symtabs>: Likewise.
2348 (collect_symtabs_from_filename): Return symtab_vector_up.
2349 Update all callers.
2350 (decode_objc): Remove cleanup.
2351 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2352 (symtab_collector::release_symtabs): Return symtab_vector_up.
2353 Update all callers.
2354 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2355 Update all users.
2356 (collect_symtabs_from_filename, symtabs_from_filename): Return
2357 symtab_vector_up. Update all callers.
2358
2359 2018-08-29 Tom Tromey <tom@tromey.com>
2360
2361 * csky-tdep.c (csky_analyze_prologue): Use
2362 core_addr_to_string_nz.
2363
2364 2018-08-29 Tom Tromey <tom@tromey.com>
2365
2366 * windows-nat.c (struct xlate_exception) <them>: Change type to
2367 DWORD.
2368 (xlate): Fix formatting. Remove last entry.
2369 (struct xlate_exception, xlate): Comment out.
2370 (windows_nat_target::resume): Use ranged for.
2371
2372 2018-08-29 Jim Wilson <jimw@sifive.com>
2373
2374 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2375 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2376 of NT_PRFPREG.
2377 (riscv_linux_nat_target::store_registers): Likewise.
2378
2379 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2380
2381 PR gdb/23555
2382 PR gdb/23558
2383 * gnulib/aclocal.m4: Regenerate.
2384 * gnulib/config.in: Regenerate.
2385 * gnulib/configure: Regenerate.
2386 * gnulib/import/Makefile.am: Update.
2387 * gnulib/import/Makefile.in: Update.
2388 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2389 * gnulib/import/_Noreturn.h: ... this.
2390 * gnulib/import/alloca.in.h: Update.
2391 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2392 * gnulib/import/arg-nonnull.h: ... this.
2393 * gnulib/import/assure.h: Update.
2394 * gnulib/import/at-func.c: Update.
2395 * gnulib/import/basename-lgpl.c: Update.
2396 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2397 * gnulib/import/c++defs.h: ... this.
2398 * gnulib/import/canonicalize-lgpl.c: Update.
2399 * gnulib/import/cdefs.h: Update.
2400 * gnulib/import/chdir-long.c: Update.
2401 * gnulib/import/chdir-long.h: Update.
2402 * gnulib/import/cloexec.c: Update.
2403 * gnulib/import/cloexec.h: Update.
2404 * gnulib/import/close.c: Update.
2405 * gnulib/import/closedir.c: Update.
2406 * gnulib/import/config.charset: Update.
2407 * gnulib/import/dirent-private.h: Update.
2408 * gnulib/import/dirent.in.h: Update.
2409 * gnulib/import/dirfd.c: Update.
2410 * gnulib/import/dirname-lgpl.c: Update.
2411 * gnulib/import/dirname.h: Update.
2412 * gnulib/import/dosname.h: Update.
2413 * gnulib/import/dup-safer-flag.c: Update.
2414 * gnulib/import/dup-safer.c: Update.
2415 * gnulib/import/dup.c: Update.
2416 * gnulib/import/dup2.c: Update.
2417 * gnulib/import/errno.in.h: Update.
2418 * gnulib/import/error.c: Update.
2419 * gnulib/import/error.h: Update.
2420 * gnulib/import/exitfail.c: Update.
2421 * gnulib/import/exitfail.h: Update.
2422 * gnulib/import/extra/update-copyright: Update.
2423 * gnulib/import/fchdir.c: Update.
2424 * gnulib/import/fcntl.c: Update.
2425 * gnulib/import/fcntl.in.h: Update.
2426 * gnulib/import/fd-hook.c: Update.
2427 * gnulib/import/fd-hook.h: Update.
2428 * gnulib/import/fd-safer-flag.c: Update.
2429 * gnulib/import/fd-safer.c: Update.
2430 * gnulib/import/fdopendir.c: Update.
2431 * gnulib/import/filename.h: Update.
2432 * gnulib/import/filenamecat-lgpl.c: Update.
2433 * gnulib/import/filenamecat.h: Update.
2434 * gnulib/import/flexmember.h: Update.
2435 * gnulib/import/float+.h: Update.
2436 * gnulib/import/float.c: Update.
2437 * gnulib/import/float.in.h: Update.
2438 * gnulib/import/fnmatch.c: Update.
2439 * gnulib/import/fnmatch.in.h: Update.
2440 * gnulib/import/fnmatch_loop.c: Update.
2441 * gnulib/import/fpucw.h: Update.
2442 * gnulib/import/frexp.c: Update.
2443 * gnulib/import/frexpl.c: Update.
2444 * gnulib/import/fstat.c: Update.
2445 * gnulib/import/fstatat.c: Update.
2446 * gnulib/import/getcwd-lgpl.c: Update.
2447 * gnulib/import/getcwd.c: Update.
2448 * gnulib/import/getdtablesize.c: Update.
2449 * gnulib/import/getlogin_r.c: Update.
2450 * gnulib/import/getprogname.c: Update.
2451 * gnulib/import/getprogname.h: Update.
2452 * gnulib/import/gettext.h: Update.
2453 * gnulib/import/gettimeofday.c: Update.
2454 * gnulib/import/glob-libc.h: Update.
2455 * gnulib/import/glob.c: Update.
2456 * gnulib/import/glob.in.h: Update.
2457 * gnulib/import/glob_internal.h: Update.
2458 * gnulib/import/glob_pattern_p.c: Update.
2459 * gnulib/import/globfree.c: Update.
2460 * gnulib/import/hard-locale.c: Update.
2461 * gnulib/import/hard-locale.h: Update.
2462 * gnulib/import/intprops.h: Update.
2463 * gnulib/import/inttypes.in.h: Update.
2464 * gnulib/import/isnan.c: Update.
2465 * gnulib/import/isnand-nolibm.h: Update.
2466 * gnulib/import/isnand.c: Update.
2467 * gnulib/import/isnanl-nolibm.h: Update.
2468 * gnulib/import/isnanl.c: Update.
2469 * gnulib/import/itold.c: Update.
2470 * gnulib/import/libc-config.h: Update.
2471 * gnulib/import/limits.in.h: Update.
2472 * gnulib/import/localcharset.c: Update.
2473 * gnulib/import/localcharset.h: Update.
2474 * gnulib/import/localtime-buffer.c: Update.
2475 * gnulib/import/localtime-buffer.h: Update.
2476 * gnulib/import/lstat.c: Update.
2477 * gnulib/import/m4/00gnulib.m4: Update.
2478 * gnulib/import/m4/__inline.m4: Update.
2479 * gnulib/import/m4/absolute-header.m4: Update.
2480 * gnulib/import/m4/alloca.m4: Update.
2481 * gnulib/import/m4/builtin-expect.m4: Update.
2482 * gnulib/import/m4/canonicalize.m4: Update.
2483 * gnulib/import/m4/chdir-long.m4: Update.
2484 * gnulib/import/m4/close.m4: Update.
2485 * gnulib/import/m4/closedir.m4: Update.
2486 * gnulib/import/m4/configmake.m4: Update.
2487 * gnulib/import/m4/d-ino.m4: Update.
2488 * gnulib/import/m4/d-type.m4: Update.
2489 * gnulib/import/m4/dirent_h.m4: Update.
2490 * gnulib/import/m4/dirfd.m4: Update.
2491 * gnulib/import/m4/dirname.m4: Update.
2492 * gnulib/import/m4/double-slash-root.m4: Update.
2493 * gnulib/import/m4/dup.m4: Update.
2494 * gnulib/import/m4/dup2.m4: Update.
2495 * gnulib/import/m4/eealloc.m4: Update.
2496 * gnulib/import/m4/environ.m4: Update.
2497 * gnulib/import/m4/errno_h.m4: Update.
2498 * gnulib/import/m4/error.m4: Update.
2499 * gnulib/import/m4/exponentd.m4: Update.
2500 * gnulib/import/m4/exponentl.m4: Update.
2501 * gnulib/import/m4/extensions.m4: Update.
2502 * gnulib/import/m4/extern-inline.m4: Update.
2503 * gnulib/import/m4/fchdir.m4: Update.
2504 * gnulib/import/m4/fcntl-o.m4: Update.
2505 * gnulib/import/m4/fcntl.m4: Update.
2506 * gnulib/import/m4/fcntl_h.m4: Update.
2507 * gnulib/import/m4/fdopendir.m4: Update.
2508 * gnulib/import/m4/filenamecat.m4: Update.
2509 * gnulib/import/m4/flexmember.m4: Update.
2510 * gnulib/import/m4/float_h.m4: Update.
2511 * gnulib/import/m4/fnmatch.m4: Update.
2512 * gnulib/import/m4/fnmatch_h.m4: Update.
2513 * gnulib/import/m4/fpieee.m4: Update.
2514 * gnulib/import/m4/frexp.m4: Update.
2515 * gnulib/import/m4/frexpl.m4: Update.
2516 * gnulib/import/m4/fstat.m4: Update.
2517 * gnulib/import/m4/fstatat.m4: Update.
2518 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2519 * gnulib/import/m4/getcwd-path-max.m4: Update.
2520 * gnulib/import/m4/getcwd.m4: Update.
2521 * gnulib/import/m4/getdtablesize.m4: Update.
2522 * gnulib/import/m4/getlogin.m4: Update.
2523 * gnulib/import/m4/getlogin_r.m4: Update.
2524 * gnulib/import/m4/getpagesize.m4: Update.
2525 * gnulib/import/m4/getprogname.m4: Update.
2526 * gnulib/import/m4/gettimeofday.m4: Update.
2527 * gnulib/import/m4/glibc21.m4: Update.
2528 * gnulib/import/m4/glob.m4: Update.
2529 * gnulib/import/m4/glob_h.m4: Update.
2530 * gnulib/import/m4/gnulib-cache.m4: Update.
2531 * gnulib/import/m4/gnulib-common.m4: Update.
2532 * gnulib/import/m4/gnulib-comp.m4: Update.
2533 * gnulib/import/m4/gnulib-tool.m4: Update.
2534 * gnulib/import/m4/hard-locale.m4: Update.
2535 * gnulib/import/m4/include_next.m4: Update.
2536 * gnulib/import/m4/inttypes-pri.m4: Update.
2537 * gnulib/import/m4/inttypes.m4: Update.
2538 * gnulib/import/m4/isnand.m4: Update.
2539 * gnulib/import/m4/isnanl.m4: Update.
2540 * gnulib/import/m4/largefile.m4: Update.
2541 * gnulib/import/m4/limits-h.m4: Update.
2542 * gnulib/import/m4/localcharset.m4: Update.
2543 * gnulib/import/m4/locale-fr.m4: Update.
2544 * gnulib/import/m4/locale-ja.m4: Update.
2545 * gnulib/import/m4/locale-zh.m4: Update.
2546 * gnulib/import/m4/localtime-buffer.m4: Update.
2547 * gnulib/import/m4/longlong.m4: Update.
2548 * gnulib/import/m4/lstat.m4: Update.
2549 * gnulib/import/m4/malloc.m4: Update.
2550 * gnulib/import/m4/malloca.m4: Update.
2551 * gnulib/import/m4/math_h.m4: Update.
2552 * gnulib/import/m4/mbrtowc.m4: Update.
2553 * gnulib/import/m4/mbsinit.m4: Update.
2554 * gnulib/import/m4/mbsrtowcs.m4: Update.
2555 * gnulib/import/m4/mbstate_t.m4: Update.
2556 * gnulib/import/m4/memchr.m4: Update.
2557 * gnulib/import/m4/memmem.m4: Update.
2558 * gnulib/import/m4/mempcpy.m4: Update.
2559 * gnulib/import/m4/memrchr.m4: Update.
2560 * gnulib/import/m4/mkdir.m4: Update.
2561 * gnulib/import/m4/mkstemp.m4: Update.
2562 * gnulib/import/m4/mmap-anon.m4: Update.
2563 * gnulib/import/m4/mode_t.m4: Update.
2564 * gnulib/import/m4/msvc-inval.m4: Update.
2565 * gnulib/import/m4/msvc-nothrow.m4: Update.
2566 * gnulib/import/m4/multiarch.m4: Update.
2567 * gnulib/import/m4/nocrash.m4: Update.
2568 * gnulib/import/m4/off_t.m4: Update.
2569 * gnulib/import/m4/onceonly.m4: Update.
2570 * gnulib/import/m4/open-cloexec.m4: Update.
2571 * gnulib/import/m4/open.m4: Update.
2572 * gnulib/import/m4/openat.m4: Update.
2573 * gnulib/import/m4/opendir.m4: Update.
2574 * gnulib/import/m4/pathmax.m4: Update.
2575 * gnulib/import/m4/rawmemchr.m4: Update.
2576 * gnulib/import/m4/readdir.m4: Update.
2577 * gnulib/import/m4/readlink.m4: Update.
2578 * gnulib/import/m4/realloc.m4: Update.
2579 * gnulib/import/m4/rename.m4: Update.
2580 * gnulib/import/m4/rewinddir.m4: Update.
2581 * gnulib/import/m4/rmdir.m4: Update.
2582 * gnulib/import/m4/save-cwd.m4: Update.
2583 * gnulib/import/m4/secure_getenv.m4: Update.
2584 * gnulib/import/m4/setenv.m4: Update.
2585 * gnulib/import/m4/signal_h.m4: Update.
2586 * gnulib/import/m4/ssize_t.m4: Update.
2587 * gnulib/import/m4/stat-time.m4: Update.
2588 * gnulib/import/m4/stat.m4: Update.
2589 * gnulib/import/m4/std-gnu11.m4: Update.
2590 * gnulib/import/m4/stdbool.m4: Update.
2591 * gnulib/import/m4/stddef_h.m4: Update.
2592 * gnulib/import/m4/stdint.m4: Update.
2593 * gnulib/import/m4/stdio_h.m4: Update.
2594 * gnulib/import/m4/stdlib_h.m4: Update.
2595 * gnulib/import/m4/strchrnul.m4: Update.
2596 * gnulib/import/m4/strdup.m4: Update.
2597 * gnulib/import/m4/strerror.m4: Update.
2598 * gnulib/import/m4/string_h.m4: Update.
2599 * gnulib/import/m4/strstr.m4: Update.
2600 * gnulib/import/m4/strtok_r.m4: Update.
2601 * gnulib/import/m4/sys_socket_h.m4: Update.
2602 * gnulib/import/m4/sys_stat_h.m4: Update.
2603 * gnulib/import/m4/sys_time_h.m4: Update.
2604 * gnulib/import/m4/sys_types_h.m4: Update.
2605 * gnulib/import/m4/tempname.m4: Update.
2606 * gnulib/import/m4/time_h.m4: Update.
2607 * gnulib/import/m4/unistd-safer.m4: Update.
2608 * gnulib/import/m4/unistd_h.m4: Update.
2609 * gnulib/import/m4/warn-on-use.m4: Update.
2610 * gnulib/import/m4/wchar_h.m4: Update.
2611 * gnulib/import/m4/wchar_t.m4: Update.
2612 * gnulib/import/m4/wctype_h.m4: Update.
2613 * gnulib/import/m4/wint_t.m4: Update.
2614 * gnulib/import/malloc.c: Update.
2615 * gnulib/import/malloc/scratch_buffer.h: Update.
2616 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2617 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2618 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2619 * gnulib/import/malloca.c: Update.
2620 * gnulib/import/malloca.h: Update.
2621 * gnulib/import/malloca.valgrind: Update.
2622 * gnulib/import/math.in.h: Update.
2623 * gnulib/import/mbrtowc.c: Update.
2624 * gnulib/import/mbsinit.c: Update.
2625 * gnulib/import/mbsrtowcs-impl.h: Update.
2626 * gnulib/import/mbsrtowcs-state.c: Update.
2627 * gnulib/import/mbsrtowcs.c: Update.
2628 * gnulib/import/memchr.c: Update.
2629 * gnulib/import/memmem.c: Update.
2630 * gnulib/import/mempcpy.c: Update.
2631 * gnulib/import/memrchr.c: Update.
2632 * gnulib/import/mkdir.c: Update.
2633 * gnulib/import/mkstemp.c: Update.
2634 * gnulib/import/msvc-inval.c: Update.
2635 * gnulib/import/msvc-inval.h: Update.
2636 * gnulib/import/msvc-nothrow.c: Update.
2637 * gnulib/import/msvc-nothrow.h: Update.
2638 * gnulib/import/open.c: Update.
2639 * gnulib/import/openat-die.c: Update.
2640 * gnulib/import/openat-priv.h: Update.
2641 * gnulib/import/openat-proc.c: Update.
2642 * gnulib/import/openat.c: Update.
2643 * gnulib/import/openat.h: Update.
2644 * gnulib/import/opendir.c: Update.
2645 * gnulib/import/pathmax.h: Update.
2646 * gnulib/import/pipe-safer.c: Update.
2647 * gnulib/import/rawmemchr.c: Update.
2648 * gnulib/import/readdir.c: Update.
2649 * gnulib/import/readlink.c: Update.
2650 * gnulib/import/realloc.c: Update.
2651 * gnulib/import/ref-add.sin: Update.
2652 * gnulib/import/ref-del.sin: Update.
2653 * gnulib/import/rename.c: Update.
2654 * gnulib/import/rewinddir.c: Update.
2655 * gnulib/import/rmdir.c: Update.
2656 * gnulib/import/same-inode.h: Update.
2657 * gnulib/import/save-cwd.c: Update.
2658 * gnulib/import/save-cwd.h: Update.
2659 * gnulib/import/scratch_buffer.h: Update.
2660 * gnulib/import/secure_getenv.c: Update.
2661 * gnulib/import/setenv.c: Update.
2662 * gnulib/import/signal.in.h: Update.
2663 * gnulib/import/stat-time.c: Update.
2664 * gnulib/import/stat-time.h: Update.
2665 * gnulib/import/stat-w32.c: Update.
2666 * gnulib/import/stat-w32.h: Update.
2667 * gnulib/import/stat.c: Update.
2668 * gnulib/import/stdbool.in.h: Update.
2669 * gnulib/import/stddef.in.h: Update.
2670 * gnulib/import/stdint.in.h: Update.
2671 * gnulib/import/stdio.in.h: Update.
2672 * gnulib/import/stdlib.in.h: Update.
2673 * gnulib/import/str-two-way.h: Update.
2674 * gnulib/import/strchrnul.c: Update.
2675 * gnulib/import/strdup.c: Update.
2676 * gnulib/import/streq.h: Update.
2677 * gnulib/import/strerror-override.c: Update.
2678 * gnulib/import/strerror-override.h: Update.
2679 * gnulib/import/strerror.c: Update.
2680 * gnulib/import/string.in.h: Update.
2681 * gnulib/import/stripslash.c: Update.
2682 * gnulib/import/strnlen1.c: Update.
2683 * gnulib/import/strnlen1.h: Update.
2684 * gnulib/import/strstr.c: Update.
2685 * gnulib/import/strtok_r.c: Update.
2686 * gnulib/import/sys_stat.in.h: Update.
2687 * gnulib/import/sys_time.in.h: Update.
2688 * gnulib/import/sys_types.in.h: Update.
2689 * gnulib/import/tempname.c: Update.
2690 * gnulib/import/tempname.h: Update.
2691 * gnulib/import/time.in.h: Update.
2692 * gnulib/import/unistd--.h: Update.
2693 * gnulib/import/unistd-safer.h: Update.
2694 * gnulib/import/unistd.in.h: Update.
2695 * gnulib/import/unsetenv.c: Update.
2696 * gnulib/import/verify.h: Update.
2697 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2698 * gnulib/import/wchar.in.h: Update.
2699 * gnulib/import/wctype.in.h: Update.
2700 * gnulib/import/xalloc-oversized.h: Update.
2701 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2702 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2703
2704 2018-08-16 Gary Benson <gbenson@redhat.com>
2705
2706 PR gdb/13000:
2707 * gdb/main.c (captured_main_1): Exit with nonzero status
2708 in batch mode if the last command to be executed failed.
2709 * NEWS: Mention the above.
2710
2711 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2712
2713 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2714 end of warning message.
2715
2716 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2717
2718 PR gdb/22943:
2719 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2720 (aarch64_extract_return_value): Use
2721 aapcs_is_vfp_call_or_return_candidate.
2722 (aarch64_return_in_memory): Likewise.
2723 (aarch64_store_return_value): Likewise.
2724
2725 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2726
2727 * aarch64-tdep.c
2728 (aapcs_is_vfp_call_or_return_candidate): Make static
2729 (pass_in_v_or_stack): Remove function.
2730 (pass_in_v_vfp_candidate): New function.
2731 (aarch64_push_dummy_call): Check for float register candidates.
2732
2733 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2734
2735 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2736 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2737 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2738
2739 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2740
2741 PR build/23399
2742 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2743 (struct ipa_sym_addresses): Rename to...
2744 (struct ipa_sym_addresses_common): ... this.
2745 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2746
2747 2018-08-28 Tom Tromey <tom@tromey.com>
2748
2749 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2750 (token_fifo): Now a std::vector.
2751 (yylex, c_parse): Update.
2752 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2753 (token_fifo): Now a std::vector.
2754 (yylex, d_parse): Update.
2755 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2756 (token_fifo): Now a std::vector.
2757 (yylex, go_parse): Update.
2758
2759 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2760
2761 * parser-defs.h (struct type_stack) <elements>: Change type to
2762 std::vector<union type_stack_elt>.
2763 <depth, size>: Remove.
2764 * parse.c (parse_exp_in_context_1): Adjust.
2765 (type_stack_reserve): Remove.
2766 (check_type_stack_depth): Remove.
2767 (insert_into_type_stack): Adjust to std::vector.
2768 (insert_type): Likewise.
2769 (push_type): Likewise.
2770 (push_type_int): Likewise.
2771 (insert_type_address_space): Likewise.
2772 (pop_type): Likewise.
2773 (pop_type_int): Likewise.
2774 (pop_typelist): Likewise.
2775 (pop_type_stack): Likewise.
2776 (append_type_stack): Likewise.
2777 (push_type_stack): Likewise.
2778 (get_type_stack): Likewise.
2779 (type_stack_cleanup): Likewise.
2780 (push_typelist): Likewise.
2781 (follow_types): Likewise.
2782 (_initialize_parse): Likewise.
2783
2784 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2785
2786 * NEWS: Mention csky target.
2787
2788 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2789 Hafiz Abid Qadeer <abidh@codesourcery.com>
2790 Don Breazeal <donb@codesourcery.com>
2791
2792 * csky-linux-tdep.c: New file.
2793 * csky-tdep.c: Likewise.
2794 * csky-tdep.h: Likewise.
2795 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2796 csky-tdep.o.
2797 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2798 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2799 * configure.tgt: Add csky support.
2800
2801 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2802
2803 * python/py-framefilter.c (py_print_frame): Print frame architecture
2804 when printing on an MI output.
2805
2806 2018-08-27 Tom Tromey <tom@tromey.com>
2807
2808 PR build/23087:
2809 * configure: Rebuild.
2810 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2811
2812 2018-08-27 Tom Tromey <tom@tromey.com>
2813
2814 * aarch64-linux-tdep.c
2815 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2816 casts to int.
2817
2818 2018-08-27 Tom Tromey <tom@tromey.com>
2819
2820 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2821 unsigned.
2822 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2823 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2824 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2825 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2826 unsigned.
2827
2828 2018-08-27 Tom Tromey <tom@tromey.com>
2829
2830 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2831 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2832
2833 2018-08-27 Tom Tromey <tom@tromey.com>
2834
2835 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2836 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2837 ULONGEST_MAX.
2838 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2839 ULONGEST_MAX.
2840 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2841 ULONGEST_MAX.
2842 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2843 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2844 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2845 ULONGEST_MAX.
2846 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2847 (ppc64_linux_sigaction_tramp_frame)
2848 (ppc32_linux_sighandler_tramp_frame)
2849 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2850 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2851 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2852 * mn10300-linux-tdep.c (am33_linux_sigframe)
2853 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2854 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2855 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2856 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2857 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2858 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2859 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2860 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2861 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2862 * microblaze-linux-tdep.c
2863 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2864 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2865 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2866 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2867 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2868 * common/common-types.h (ULONGEST_MAX): New define.
2869 (CORE_ADDR_MAX): Fix formatting.
2870 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2871 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2872 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2873 (arm_linux_rt_sigreturn_tramp_frame)
2874 (arm_eabi_linux_sigreturn_tramp_frame)
2875 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2876 (thumb2_eabi_linux_sigreturn_tramp_frame)
2877 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2878 (arm_linux_restart_syscall_tramp_frame)
2879 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2880 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2881 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2882 ULONGEST_MAX.
2883 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2884
2885 2018-08-27 Tom Tromey <tom@tromey.com>
2886
2887 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2888 CORE_ADDR_MAX.
2889 * mips-tdep.c (mips_deal_with_atomic_sequence)
2890 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2891 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2892 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2893 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2894 CORE_ADDR_MAX.
2895 * aarch64-tdep.c (aarch64_software_single_step): Use
2896 CORE_ADDR_MAX.
2897
2898 2018-08-27 Tom Tromey <tom@tromey.com>
2899
2900 * linespec.c (complete_linespec_component): Add cast to "char".
2901 * completer.c (completion_tracker::build_completion_result): Add
2902 cast to "char".
2903
2904 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2905
2906 * solist.h (struct solist, struct target_so_ops): Fix
2907 indentation.
2908
2909 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2910
2911 * ada-tasks.c (ada_task_info_s): Remove typedef.
2912 (DEF_VEC_O(ada_task_info_s)): Remove.
2913 (struct ada_tasks_inferior_data): Initialize fields.
2914 <task_list>: Make an std::vector.
2915 (get_ada_tasks_inferior_data): Allocate with new.
2916 (ada_get_task_number): Adjust.
2917 (get_task_number_from_id): Likewise.
2918 (valid_task_id): Likewise.
2919 (ada_get_task_info_from_ptid): Likewise.
2920 (iterate_over_live_ada_tasks): Likewise.
2921 (add_ada_task): Likewise.
2922 (read_known_tasks): Likewise.
2923 (ada_build_task_list): Likewise.
2924 (print_ada_task_info): Likewise.
2925 (info_task): Likewise.
2926 (task_command_1): Likewise.
2927
2928 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2929
2930 * ada-lang.c (add_angle_brackets): Return std::string.
2931
2932 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * python/py-threadevent.c (py_get_event_thread): Initialize
2935 pythread.
2936
2937 2018-08-24 Pedro Alves <palves@redhat.com>
2938
2939 * python/py-bpevent.c (create_breakpoint_event_object): Use
2940 copy-initialization.
2941 * python/py-continueevent.c (emit_continue_event): Use
2942 copy-initialization.
2943 * python/py-exitedevent.c (create_exited_event_object): Return a
2944 gdbpy_ref<>.
2945 (emit_exited_event): Use copy-initialization.
2946 * python/py-inferior.c (python_new_inferior)
2947 (python_inferior_deleted, add_thread_object): Use
2948 copy-initialization.
2949 * python/py-infevents.c (create_inferior_call_event_object)
2950 (create_register_changed_event_object)
2951 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2952 (emit_inferior_call_event, emit_memory_changed_event)
2953 (emit_register_changed_event): Use copy-initialization.
2954 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2955 Return a gdbpy_ref<>.
2956 (emit_new_objfile_event): Use copy-initialization.
2957 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2958 (emit_clear_objfiles_event): Use copy-initialization.
2959 * python/py-signalevent.c (create_signal_event_object): Use
2960 copy-initialization.
2961 * python/py-threadevent.c (create_thread_event_object): Use
2962 copy-initialization.
2963
2964 2018-08-24 Pedro Alves <palves@redhat.com>
2965 Simon Marchi <simon.marchi@ericsson.com>
2966
2967 PR gdb/23379
2968 * python/py-continueevent.c: Include "gdbthread.h".
2969 (create_continue_event_object): Add intro comment. Add 'ptid'
2970 parameter. Use it to find thread to pass to
2971 create_thread_event_object.
2972 (emit_continue_event): Pass PTID down to
2973 create_continue_event_object.
2974 * python/py-event.h (py_get_event_thread): Declare.
2975 (create_thread_event_object): Remove default from 'thread'
2976 parameter.
2977 * python/py-stopevent.c (create_stop_event_object): Use
2978 py_get_event_thread.
2979 * python/py-threadevent.c (get_event_thread): Rename to ...
2980 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2981 and use it to find the thread.
2982 (create_thread_event_object): Assert that THREAD isn't null.
2983 Don't find the event thread here.
2984
2985 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2986
2987 * block.h (blockrange, blockranges): New struct declarations.
2988 (struct block): Add new field named `ranges'.
2989 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2990 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2991 macros for accessing ranges in struct block.
2992 (make_blockranges): New declaration.
2993 block.c (make_blockranges): New function.
2994 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2995 for block.
2996 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2997 * blockframe.c (cache_pc_function_block): New static global.
2998 (clear_pc_function_cache): Clear cache_pc_function_block.
2999 (find_pc_partial_function): Move comment to symtab.h. Add
3000 support for non-contiguous blocks.
3001 * cli/cli-cmds.c (block.h): Include.
3002 (print_disassembly): Handle printing of non-contiguous blocks.
3003 (disassemble_current_function): Likewise.
3004 (disassemble_command): Likewise.
3005
3006 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3007 BLOCK_START.
3008 * blockframe.c (get_pc_function_start): Likewise.
3009 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3010 (gcc_symbol_address): Likewise.
3011 * compile/compile-object-run.c (compile_object_run): Likewise.
3012 * compile/compile.c (get_expr_block_and_pc): Likewise.
3013 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3014 (func_addr_to_tail_call_list): Likewise.
3015 * findvar.c (default_read_var_value): Likewise.
3016 * inline-frame.c (inline_frame_this_id): Likewise.
3017 (skip-inline_frames): Likewise.
3018 * infcmd.c (until_next_command): Likewise.
3019 * linespec.c (convert_linespec_to_sals): Likewise.
3020 * parse.c (parse_exp_in_context_1): Likewise.
3021 * printcmd.c (build_address_symbolic): likewise.
3022 (info_address_command): Likewise.
3023 symtab.c (find_function_start_sal): Likewise.
3024 (skip_prologue_sal): Likewise.
3025 (find_function_alias_target): Likewise.
3026 (find_gnu_ifunc): Likewise.
3027 * stack.c (find_frame_funname): Likewise.
3028 * symtab.c (fixup_symbol_section): Likewise.
3029 (find_function_start_sal): Likewise.
3030 (skip_prologue_sal): Likewsie.
3031 (find_function_alias_target): Likewise.
3032 (find_gnu_ifunc): Likewise.
3033 * tracepoint.c (info_scope_command): Likewise.
3034 * value.c (value_fn_field): Likewise.
3035
3036 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3037 in place of find_pc_partial_function.
3038 * blockframe.c (find_function_entry_range_from_pc): New function.
3039 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3040 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3041 for each range in a block.
3042
3043
3044 2018-08-23 Xavier Roirand <roirand@adacore.com>
3045
3046 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3047 incrementation.
3048
3049 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * solib-svr4.c (read_program_headers_from_bfd): Return
3052 gdb::optional<gdb::byte_vector>.
3053 (svr4_exec_displacement): Adjust.
3054
3055 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * solib-svr4.c (read_program_header): Return
3058 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3059 (find_program_interpreter): Return
3060 gdb::optional<gdb::byte_vector>.
3061 (scan_dyntag_auxv): Adjust.
3062 (enable_break): Adjust.
3063 (svr4_exec_displacement): Adjust.
3064
3065 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3066
3067 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3068 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3069
3070 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3071
3072 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3073 string_vprintf.
3074 * guile/scm-utils.c (gdbscm_printf): Likewise.
3075 * serial.c (serial_printf): Likewise.
3076 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3077
3078 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3079
3080 * stack.c (print_frame): Print frame architecture when printing on
3081 an MI output.
3082 * NEWS: Mention new "arch" attribute in frame output.
3083
3084 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3085
3086 * arch/aarch64.h (aarch64_regnum): Update comment.
3087
3088 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3089
3090 * NEWS: Add SVE to 8.2 section.
3091
3092 2018-08-21 Pedro Alves <palves@redhat.com>
3093
3094 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3095 out from gdbscm_parse_function_args.
3096 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3097 gdbscm_parse_function_args_1.
3098
3099 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3100
3101 PR gdb/17816
3102 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3103 operator.
3104
3105 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3106
3107 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3108
3109 2018-08-19 Michael Spang <spang@google.com>
3110
3111 PR gdb/11786
3112 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3113 for PT_TLS segments.
3114
3115 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3116
3117 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3118 dwarf_variable_value.
3119 * dwarf2-frame.c (class dwarf_expr_executor):
3120 Add override for dwarf_variable_value.
3121 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3122 (class symbol_needs_eval_context): Likewise.
3123 (indirect_synthetic_pointer): Add forward declaration.
3124 (sect_variable_value): New function.
3125 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3126 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3127 for DW_OP_GNU_variable_value.
3128
3129 2018-08-16 Tom Tromey <tom@tromey.com>
3130
3131 * top.c (read_command_file): Update.
3132 (command_line_input): Remove "repeat" argument.
3133 * ada-lang.c (get_selections): Update.
3134 * linespec.c (decode_line_2): Update.
3135 * defs.h (command_line_input): Remove argument.
3136 * cli/cli-script.c (read_next_line): Update.
3137 * python/py-gdb-readline.c: Update.
3138
3139 2018-08-17 Tom Tromey <tom@tromey.com>
3140
3141 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3142 command_line_input.
3143
3144 2018-08-15 Tom Tromey <tom@tromey.com>
3145
3146 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3147
3148 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3149
3150 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3151 If used, use find_pc_partial_function to find address range
3152 to disassemble.
3153 * mi/mi-main.c (mi_cmd_list_features): Report
3154 "data-disassemble-a-option" feature.
3155 * NEWS: Mention new -data-disassemble option -a.
3156
3157 2018-08-13 Tom Tromey <tom@tromey.com>
3158
3159 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3160
3161 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3162
3163 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3164 (aarch64_linux_collect_sve_regset): Likewise.
3165 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3166 * regcache.h (regcache_map_entry_size): New function.
3167
3168 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3169
3170 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3171 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3172 (SVE_HEADER_VL_LENGTH): Likewise.
3173 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3174 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3175 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3176 (SVE_HEADER_SIZE_OFFSET): Likewise.
3177 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3178 (SVE_HEADER_VL_OFFSET): Likewise.
3179 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3180 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3181 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3182 (SVE_HEADER_SIZE): Likewise.
3183 (aarch64_linux_core_read_vq): Add function.
3184 (aarch64_linux_core_read_description): Check for SVE section.
3185
3186 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3187
3188 * aarch64-fbsd-tdep.c
3189 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3190 collect_size.
3191 * aarch64-linux-tdep.c
3192 (aarch64_linux_iterate_over_regset_sections): Likewise.
3193 * alpha-linux-tdep.c
3194 (alpha_linux_iterate_over_regset_sections):
3195 * alpha-nbsd-tdep.c
3196 (alphanbsd_iterate_over_regset_sections): Likewise.
3197 * amd64-fbsd-tdep.c
3198 (amd64fbsd_iterate_over_regset_sections): Likewise.
3199 * amd64-linux-tdep.c
3200 (amd64_linux_iterate_over_regset_sections): Likewise.
3201 * arm-bsd-tdep.c
3202 (armbsd_iterate_over_regset_sections): Likewise.
3203 * arm-fbsd-tdep.c
3204 (arm_fbsd_iterate_over_regset_sections): Likewise.
3205 * arm-linux-tdep.c
3206 (arm_linux_iterate_over_regset_sections): Likewise.
3207 * corelow.c (get_core_registers_cb): Likewise.
3208 (core_target::fetch_registers): Likewise.
3209 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3210 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3211 * gdbarch.h (void): Regenerate.
3212 * gdbarch.sh: Add supply_size and collect_size.
3213 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3214 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3215 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3216 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3217 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3218 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3219 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3220 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3221 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3222 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3223 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3224 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3225 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3226 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3227 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3228 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3229 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3230 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3231 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3232 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3233 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3234 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3235 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3236 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3237 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3238 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3239 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3240 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3241 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3242 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3243
3244 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3245
3246 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3247 with string_printf.
3248
3249 2018-08-10 Keith Seitz <keiths@redhat.com>
3250
3251 * compile/compile-c-support.c (add_code_header, add_code_footer):
3252 Move into policy class.
3253 (c_push_user_expression, pop_user_expression_nop)
3254 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3255 (compile_program): New host class.
3256 (c_compile_program): New typedef.
3257 (c_compute_porgram): Use c_compile_program.
3258
3259 2018-08-10 Keith Seitz <keiths@redhat.com>
3260
3261 * compile/compile-internal.h (compile_instance::~compile_instance):
3262 Remove calls to htab_delete.
3263 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3264 * compile.c (compile_instance::compile_instance): Initialize
3265 htab unique pointers.
3266 (compile_instance::get_cached_type, compile_instance::insert_type)
3267 (compile_instance::error_symbol_once): Update for unique_ptr.
3268
3269 2018-08-10 Keith Seitz <keiths@redhat.com>
3270
3271 * compile/compile-c-symbols.c (struct symbol_error)
3272 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3273 (compile_instance::insert_symbol_error)
3274 (compile_instance::error_symbol_once): Move to ...
3275 * compile/compile.c: ... here.
3276
3277 2018-08-10 Keith Seitz <keiths@redhat.com>
3278
3279 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3280 instead of `new_compile_instance'.
3281 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3282 Update description.
3283 If the symbol error map is not initialized, create it.
3284 (generate_c_for_for_one_symbol): Do not check/initialize
3285 the symbol error map.
3286 * compile/compile-c-types.c (compile_c_instance): Make a class.
3287 Update all callers.
3288 (compile_instance::compile_instance): Initialize the type cache.
3289 (get_cached_type): New function.
3290 (insert_type): Update description.
3291 (compile_c_instance::m_default_cflags): Define.
3292 (convert_type): Update description. Use get_cached_type.
3293 (delete_instance): Moved to destructor.
3294 (new_compile_instance): Moved to constructor.
3295 * compile/compile-c.h (compile_c_instance): Make class inheriting
3296 from compile_instance.
3297 <base>: Remove field.
3298 <type_map, symbol_err_map>: Move to base class.
3299 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3300 * compile/compile-internal.h (compile_instance): Make class.
3301 <type_map_t, symbol_err_map_t>: Define.
3302 <fe>: Rename to `m_gcc_fe'.
3303 <scope, block, gcc_target_options>: Add `m_' prefix.
3304 <m_type_map, m_symbol_err_map>: New fields, moved from
3305 compile_c_instance.
3306 <destroy>: Remove.
3307 (convert_type, new_compile_instance): Remove.
3308 * compile/compile.c (cleanup_compile_instance): Remove.
3309 (compile_to_object): Use unique_ptr to eliminate cleanups.
3310 (compile_instance::set_print_callback, compile_instance::version)
3311 (compile_instance::set_verbose)
3312 (compile_instance::set_driver_filename)
3313 (compile_instance::set_triplet_regexp)
3314 (compile_instance::set_arguments)
3315 (compile_instance::set_source_file)
3316 (compile_instance::compile): Define.
3317
3318 2018-08-10 Keith Seitz <keiths@redhat.com>
3319
3320 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3321 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3322 gcc-c-fe.def to define C plugin.
3323 (delete_instance): Delete `c_plugin'.
3324 (new_compile_instance): Initialize `c_plugin'.
3325 * compile/compile-c.h: Include gcc_c_plugin.h.
3326 (struct compile_c_instance) <c_plugin>: New member.
3327 * gcc-c-plugin.h: New file.
3328 Update all callers with API change.
3329
3330 2018-08-10 Keith Seitz <keiths@redhat.com>
3331
3332 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3333 (HFILES_NO_SRCDIR): ... to here.
3334 Add compile-internal.h and compile-c.h.
3335 * compile/compile-c-support.c: Include compile-c.h.
3336 * compile/compile-c-symbols.c: Include compile-c.h.
3337 (generate_c_for_variable_locations): Update comment.
3338 * compile/compile-c-types.c: Include compile-c.h.
3339 * compile/compile-c.h: New file -- moved C language declarations
3340 from other files here.
3341 * compile/compile-internal.h: Do not include hashtab.h or
3342 common/enum-flags.h.
3343 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3344 (gcc_convert_symbol, gcc_symbol_address)
3345 (generate_c_for_variable_locations, c_get_mode_for_size)
3346 (c_get_range_decl_name): Definitions moved to compile-c.h.
3347 * compile/compile-loc2c.c: Include compile-c.h.
3348
3349 2018-08-10 Keith Seitz <keiths@redhat.com>
3350
3351 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3352 (c_symbol_substitution_name): ... this.
3353 Update all callers.
3354
3355 2018-08-10 Keith Seitz <keiths@redhat.com>
3356
3357 * compile/compile-c-support.c (c_compute_program): Use
3358 unique_xmalloc_ptr to eliminate cleanup.
3359 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3360 Return a unique_xmalloc_ptr and eliminate cleanup.
3361 * compile/compile-internal.h (generate_c_for_variable_locations):
3362 Return unique_xmalloc_ptr and update description.
3363
3364 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3365
3366 * corelow.c (core_target::get_core_register_section): Rename
3367 min_size to section_min_size.
3368
3369 2018-08-09 Jim Wilson <jimw@sifive.com>
3370
3371 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3372 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3373 * NEWS: Mention new GNU/Linux RISC-V target.
3374 * configure.host: Add riscv*-*-linux*.
3375 * configure.nat: Add riscv*.
3376 * configure.tgt: Add riscv*-*-linux*.
3377 * riscv-linux-nat.c: New file.
3378 * riscv-linux-tdep.c: New file.
3379
3380 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * infrun.c (resume): Make static, add forward declaration.
3383 (proceed): Update header comment.
3384 * infrun.h (resume): Delete declaration.
3385
3386 2018-08-09 Tom Tromey <tom@tromey.com>
3387
3388 * riscv-tdep.h: Minor formatting fixes.
3389
3390 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3391
3392 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3393 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3394 (test_mkdir_recursive): Likewise.
3395 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3396
3397 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * valarith.c (value_subscripted_rvalue): If an array is not in
3400 memory, and we don't know the upper bound, then we can't know that
3401 the requested element exists or not.
3402
3403 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3404
3405 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3406 (target_options_to_string): Add comment.
3407
3408 2018-08-08 Tom Tromey <tom@tromey.com>
3409
3410 * unittests/scoped_mmap-selftests.c: Check result of "write".
3411
3412 2018-08-08 Jim Wilson <jimw@sifive.com>
3413
3414 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3415 (decode_register_index_short): New.
3416 (decode_j_type_insn, decode_cj_type_insn): New.
3417 (decode_b_type_insn, decode_cb_type_insn): New.
3418 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3419 local xlen. Check xlen when decoding ambiguous compressed insns. In
3420 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3421 is_c_sw_insn instead of is_sw_insn.
3422 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3423 (riscv_software_single_step): New.
3424 * riscv-tdep.h (riscv_software_single_step): Declare.
3425
3426 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3427 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3428
3429 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 PR gdb/18050:
3432 * target.c (dispose_inferior): Don't dispose of inferiors that are
3433 already killed.
3434
3435 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3436
3437 * remote.c (remote_target::download_tracepoint): Change char* to
3438 const char*.
3439
3440 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3441
3442 * target.h (target_options_to_string): Return an std::string.
3443 * target.c (str_comma_list_concat_elem): Return void, use
3444 std::string.
3445 (do_option): Likewise.
3446 (target_options_to_string): Return an std::string.
3447 * linux-nat.c (linux_nat_target::wait): Adjust.
3448 * target-debug.h (target_debug_print_options): Adjust.
3449
3450 2018-08-07 Tom Tromey <tom@tromey.com>
3451
3452 * Makefile.in (CPPFLAGS): New variable.
3453 (INTERNAL_CPPFLAGS): Use it.
3454
3455 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3456
3457 * NEWS: Mention the index cache.
3458
3459 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3460
3461 * common/pathstuff.h (get_standard_cache_dir): New.
3462 * common/pathstuff.c (get_standard_cache_dir): New.
3463 * build-id.h (build_id_to_string): New.
3464 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3465 DEBUG_STR_SUFFIX): Move to here.
3466 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3467 DEBUG_STR_SUFFIX): Move from there.
3468 (write_psymtabs_to_index): Make non-static, add basename
3469 parameter. Write to temporary files, rename when done.
3470 (save_gdb_index_command): Adjust call to
3471 write_psymtabs_to_index.
3472 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3473 field.
3474 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3475 (get_gdb_index_contents_from_cache): New.
3476 (get_gdb_index_contents_from_cache_dwz): New.
3477 (dwarf2_initialize_objfile): Read index from cache.
3478 (dwarf2_build_psymtabs): Save to index.
3479 * dwarf-index-cache.h: New file.
3480 * dwarf-index-cache.c: New file.
3481 * dwarf-index-write.h: New file.
3482
3483 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3484
3485 * gnulib/aclocal.m4: Re-generate.
3486 * gnulib/config.in: Re-generate.
3487 * gnulib/configure: Re-generate.
3488 * gnulib/import/Makefile.am: Re-generate.
3489 * gnulib/import/Makefile.in: Re-generate.
3490 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3491 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3492 * gnulib/import/m4/mkdir.m4: New file.
3493 * gnulib/import/mkdir.c: New file.
3494 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3495 module.
3496
3497 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3498
3499 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3500 * common/scoped_mmap.c: New file.
3501 * common/scoped_mmap.h (destroy): New method.
3502 (~scoped_mmap, reset): Use destroy.
3503 (scoped_mmap): New move constructor.
3504 (mmap_file): New declaration.
3505 * unittests/scoped_mmap-selftests.c (test_normal,
3506 test_invalid_filename, run_tests): New functions.
3507 (_initialize_scoped_mmap_selftests): Register selftest.
3508
3509 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3510
3511 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3512 (read_gdb_index_from_buffer): ... this. Remove section
3513 parameter, add buffer parameter.
3514 (get_gdb_index_contents_ftype,
3515 get_gdb_index_contents_dwz_ftype): New typedefs.
3516 (dwarf2_read_gdb_index): Add callback parameters to get the
3517 index contents.
3518 (get_gdb_index_contents_from_section): New.
3519 (dwarf2_initialize_objfile): Update call to
3520 dwarf2_read_gdb_index.
3521
3522 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3523
3524 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3525 (gdb_open_cloexec): Likewise.
3526 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3527 (commandline_from_pid): Likewise.
3528 (linux_xfer_osdata_threads): Likewise.
3529 (linux_xfer_osdata_fds): Likewise.
3530 * ada-lang.c (is_package_name): Likewise.
3531 * auxv.c (procfs_xfer_auxv): Likewise.
3532 * breakpoint.c (print_one_breakpoint_location): Use
3533 uiout::field_fmt.
3534 (print_one_catch_solib): Use string_printf.
3535 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3536 (add_pe_forwarded_sym): Likewise.
3537 * dwarf2read.c (create_type_unit_group): Likewise.
3538 (build_error_marker_type): Likewise.
3539 * infcall.c (get_function_name): Likewise.
3540 * valprint.c (print_converted_chars_to_obstack): Likewise.
3541 * xtensa-tdep.c (xtensa_register_type): Likewise.
3542
3543 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3544
3545 * remote.c (remote_target::download_tracepoint): Fix format
3546 string errors.
3547
3548 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3549
3550 * tracefile.c: Include common/byte-vector.h.
3551 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3552 with trace_regblock_size if needed. Update uses of buf.
3553
3554 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3555
3556 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3557 std::vector<unsigned char>.
3558 * tracepoint.c (collection_list::collection_list): Remove
3559 m_regs_mask initializer from initializer list. Resize
3560 m_regs_mask using the largest remote register number.
3561 (collection_list::add_remote_register): Remove size check on
3562 m_regs_mask. Use at to access element.
3563 (collection_list::stringify): Change type of temp_buf to
3564 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3565 stringify the register mask. Use pack_hex_byte for the register
3566 mask.
3567
3568 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3569
3570 * tracepoint.h (class collection_list) <add_register>: Remove.
3571 <add_remote_register, add_ax_registers, add_local_register>:
3572 Declare.
3573 <add_memrange>: Add scope parameter.
3574 * tracepoint.c (encode_actions_1): Likewise.
3575 (collection_list::add_register): Rename to ...
3576 (collection_list::add_remote_register): ... this. Update
3577 comment.
3578 (collection_list::add_ax_registers, add_local_register): New
3579 methods.
3580 (collection_list::add_memrange): Add scope parameter. Call
3581 add_local_register instead of add_register.
3582 (finalize_tracepoint_aexpr): New function.
3583 (collection_list::collect_symbol): Update calls to add_memrange.
3584 Call add_local_register instead of add_register. Call
3585 add_ax_registers. Call finalize_tracepoint_aexpr.
3586 (encode_actions_1): Get remote regnos for $reg action. Call
3587 add_remote_register, add_ax_registers, and add_local_register.
3588 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3589 (validate_actionline): Call finalize_tracepoint_aexpr.
3590
3591 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3592
3593 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3594 Replace array buf with gdb::char_vector buf, of size
3595 get_remote_packet_size (). Replace references to buf and
3596 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3597 and xsnprintf with snprintf. Raise errors if the buffer is too
3598 small.
3599
3600 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3601
3602 * remote.c (remote_target::download_tracepoint): Fix the has_more
3603 predicate in the QTDP action list iteration.
3604
3605 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3606
3607 * remote.c (remote_target::download_tracepoint): Fix indentation
3608 in for block.
3609
3610 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3611
3612 * proc-api.c (_initialize_proc_api): Remove c, unused.
3613 * procfs.c (procfs_init_inferior): Remove signals, unused.
3614 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3615 unused.
3616
3617 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3618 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3621 'W_STOPCODE (0)' as this could be ambiguous.
3622
3623 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3624
3625 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3626 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3627 "ai_socktype").
3628
3629 2018-08-02 Tom Tromey <tom@tromey.com>
3630
3631 PR symtab/16842.
3632 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3633 symbols.
3634 (process_structure_scope): Likewise.
3635
3636 2018-08-02 Xavier Roirand <roirand@adacore.com>
3637
3638 PR gdb/22629:
3639 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3640 kill inferior.
3641
3642 2018-08-02 Tom Tromey <tom@tromey.com>
3643
3644 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3645 (darwin_suspend_inferior, darwin_resume_inferior)
3646 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3647 (darwin_check_new_threads): Check result of get_darwin_inferior.
3648
3649 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3650
3651 GDB 8.1.1 released.
3652
3653 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3654
3655 * varobj.c (varobj_get_path_expr_parent): Report an error if
3656 parent is a dynamic varobj.
3657
3658 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3659
3660 * gnulib/aclocal.m4: Re-generate.
3661 * gnulib/config.in: Re-generate.
3662 * gnulib/configure: Re-generate.
3663 * gnulib/import/Makefile.in: Re-generate.
3664 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3665 * gnulib/import/m4/onceonly.m4: Re-generate.
3666
3667 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3668
3669 * target-descriptions.c (struct xml_test_tdesc): New.
3670 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3671 (record_xml_tdesc): Update.
3672 (maintenance_check_xml_descriptions): Update.
3673 * target-descriptions.h (record_xml_tdesc): Update comment.
3674
3675 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3676
3677 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3678 checking array bounds are defined.
3679
3680 2018-07-30 Tom Tromey <tom@tromey.com>
3681
3682 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3683 irreflexivity violation.
3684
3685 2018-07-30 Tom Tromey <tom@tromey.com>
3686
3687 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3688 * value.c (unpack_long): Remove lint code.
3689 * valops.c (value_ind): Remove lint code.
3690 * valarith.c (value_x_binop, value_x_unop, value_equal)
3691 (value_pos): Remove lint code.
3692
3693 2018-07-28 Tom de Vries <tdevries@suse.de>
3694
3695 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3696 with undefined upper bound as <optimized out>.
3697
3698 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3699
3700 * gcore.in: Rename variable "name" to "prefix". Expand
3701 "usage" text.
3702
3703 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3704
3705 * windows-nat.c (windows_nat_target::create_inferior): Update to
3706 call close() in global namespace.
3707
3708 2018-07-26 Tom Tromey <tom@tromey.com>
3709
3710 * dwarf-index-write.c (add_address_entry): Don't add objfile
3711 offsets.
3712 * dbxread.c (find_stab_function): Rename from
3713 find_stab_function_addr. Return a bound_minimal_symbol.
3714 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3715 Don't add objfile offsets.
3716 (end_psymtab): Use raw_text_low, raw_text_high,
3717 MSYMBOL_VALUE_RAW_ADDRESS.
3718 (read_ofile_symtab): Update.
3719 (process_one_symbol): Update.
3720 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3721 offsets.
3722 (dw2_relocate): Remove.
3723 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3724 searching addrmap.
3725 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3726 Update.
3727 (process_psymtab_comp_unit_reader, add_partial_symbol)
3728 (add_partial_subprogram, dwarf2_ranges_read): Update.
3729 (load_partial_dies): Update.
3730 (add_address_entry): Don't add objfile offsets.
3731 (dwarf2_build_include_psymtabs): Update.
3732 (create_addrmap_from_aranges): Don't add objfile offsets.
3733 (dw2_find_pc_sect_compunit_symtab): Update.
3734 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3735 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3736 Update.
3737 (parse_partial_symbols): Don't add objfile offsets. Use
3738 raw_text_low, raw_text_high. Update.
3739 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3740 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3741 or call 'relocate' quick function. Clear psymbol_map.
3742 * psympriv.h (struct partial_symbol) <address>: Add section
3743 offset.
3744 <set_unrelocated_address>: Rename from set_address.
3745 <raw_text_low, raw_text_high>: New methods.
3746 <text_low, text_high>: Add objfile parameter.
3747 (add_psymbol_to_bcache): Add 'section' parameter. Call
3748 set_unrelocated_address.
3749 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3750 (find_pc_psymbol): Update.
3751 (fixup_psymbol_section, relocate_psymtabs): Remove.
3752 (dump_psymtab, psym_functions): Update.
3753 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3754 parameter.
3755 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3756 (start_psymtab_common): Update.
3757 * symfile-debug.c (debug_qf_relocate): Remove.
3758 (debug_sym_quick_functions): Update.
3759 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3760 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3761 Update.
3762
3763 2018-07-26 Tom Tromey <tromey@redhat.com>
3764
3765 * dbxread.c (end_psymtab): Use text_high_valid and
3766 text_low_valid.
3767 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3768 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3769 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3770 Update comment.
3771 <text_low_valid, text_high_valid>: New fields.
3772 <set_text_low, set_text_high>: Update.
3773 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3774
3775 2018-07-26 Tom Tromey <tom@tromey.com>
3776
3777 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3778 Update.
3779 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3780 textlow and texthigh fields.
3781 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3782 Update.
3783 * mdebugread.c (parse_lines, parse_partial_symbols)
3784 (psymtab_to_symtab_1): Update.
3785 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3786 Rename fields. Update comment. Now private.
3787 <text_low, text_high, set_text_low, set_text_high>: New methods.
3788 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3789 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3790 (start_psymtab_common, maintenance_info_psymtabs)
3791 (maintenance_check_psymtabs): Update.
3792 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3793 texthigh fields.
3794 (scan_xcoff_symtab): Update.
3795
3796 2018-07-26 Tom Tromey <tromey@redhat.com>
3797
3798 * psympriv.h (struct partial_symbol) <unrelocated_address,
3799 address, set_address>: New methods.
3800 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3801 (fixup_psymbol_section, relocate_psymtabs): Update.
3802 (print_partial_symbols): Add 'objfile' parameter. Update.
3803 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3804 Update.
3805
3806 2018-07-26 Tom Tromey <tom@tromey.com>
3807
3808 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3809 (debug_names::write_psymbols): Update.
3810 * psympriv.h (struct partial_symbol): Derive from
3811 general_symbol_info.
3812 <obj_section>: New method.
3813 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3814 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3815 (find_pc_sect_psymbol, fixup_psymbol_section)
3816 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3817 (print_partial_symbols, recursively_search_psymtabs)
3818 (compare_psymbols, psymbol_hash, psymbol_compare)
3819 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3820 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3821
3822 2018-07-26 Tom Tromey <tromey@redhat.com>
3823
3824 * dbxread.c (end_psymtab): Remove dead code.
3825
3826 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3827
3828 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3829 DWARF unwinders are disabled.
3830 * dwarf2-frame.c: Add dwarf2read.h include.
3831 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3832 disabled.
3833 (dwarf2_frame_unwinders_enabled_p): Define.
3834 (show_dwarf_unwinders_enabled_p): New function.
3835 (_initialize_dwarf2_frame): Register switch to control DWARF
3836 unwinder use.
3837 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3838 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3839 (show_dwarf_cmdlist): Remove static keyword.
3840 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3841 (show_dwarf_cmdlist): Declare.
3842 * NEWS: Document new feature.
3843
3844 2018-07-26 Tom de Vries <tdevries@suse.de>
3845
3846 PR breakpoints/23366
3847 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3848
3849 2018-07-26 Tom de Vries <tdevries@suse.de>
3850
3851 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3852 DW_AT_count can't be translated to a dynamic prop.
3853
3854 2018-07-25 Tom de Vries <tdevries@suse.de>
3855
3856 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3857 try/catch.
3858
3859 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3860
3861 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3862
3863 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3864
3865 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3866
3867 2018-07-24 Keith Seitz <keiths@redhat.comt
3868
3869 PR symtab/23010
3870 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3871 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3872 instead of add_symbol_to_list.
3873 (read_file_scope): Call prepare_one_comp_unit before reading
3874 any other DIEs.
3875
3876 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3877
3878 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3879
3880 2018-07-24 Tom Tromey <tom@tromey.com>
3881
3882 * utils.c (malloc, realloc, free): Don't declare.
3883 * configure, config.in: Rebuild.
3884 * configure.ac: Don't check for declarations of free, malloc, or
3885 realloc.
3886
3887 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3888
3889 * aarch64-linux-nat.c
3890 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3891 variable.
3892 * arm-linux-nat.c (fetch_regs): Likewise.
3893 (store_regs): Likewise.
3894 (fetch_vfp_regs): Likewise.
3895 (store_vfp_regs): Likewise.
3896 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3897 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3898 (arm_linux_nat_target::insert_watchpoint): Likewise.
3899 (arm_linux_nat_target::remove_watchpoint): Likewise.
3900 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3901 Likewise.
3902 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3903 Likewise.
3904 * ppc-linux-nat.c (fetch_register): Likewise.
3905 (fetch_all_gp_regs): Likewise.
3906 (fetch_ppc_registers): Likewise.
3907 (store_all_gp_regs): Likewise.
3908 (store_ppc_registers): Likewise.
3909 (hwdebug_insert_point): Likewise.
3910 (can_use_watchpoint_cond_accel): Likewise.
3911 * remote-sim.c (gdb_os_write_stdout): Likewise.
3912
3913 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3914 Tom Tromey <tom@tromey.com>
3915
3916 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3917 test for it.
3918 * configure: Rebuild.
3919
3920 2018-07-22 Tom Tromey <tom@tromey.com>
3921
3922 * regformats/regdat.sh: Define xmltarget_${name} inside
3923 #ifndef IN_PROCESS_AGENT.
3924
3925 2018-07-22 Tom Tromey <tom@tromey.com>
3926
3927 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3928
3929 2018-07-22 Tom Tromey <tom@tromey.com>
3930
3931 * symfile.c (reread_symbols): Notify iter, not objfile.
3932
3933 2018-07-22 Tom Tromey <tom@tromey.com>
3934
3935 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3936 Use arch_ops.
3937 (ravenscar_thread_target::prepare_to_store): Likewise.
3938
3939 2018-07-22 Tom Tromey <tom@tromey.com>
3940
3941 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3942 unused variable. Call value_fetch_lazy when needed.
3943 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3944 Remove unused variable. Call value_fetch_lazy when needed.
3945
3946 2018-07-22 Tom Tromey <tom@tromey.com>
3947
3948 * m32c-tdep.c (mark_dma): Return void.
3949 (make_regs): Remove unused declarations.
3950
3951 2018-07-22 Tom Tromey <tom@tromey.com>
3952
3953 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3954 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3955 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3956 bkscm_get_valid_block_smob_arg_unsafe for effect.
3957
3958 2018-07-22 Tom Tromey <tom@tromey.com>
3959
3960 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3961 value_type.
3962
3963 2018-07-22 Tom Tromey <tom@tromey.com>
3964
3965 * windows-nat.c (saved_context): Conditionally define.
3966 * remote.c (remote_target::remote_btrace_maybe_reopen):
3967 Conditionally declare "warned".
3968 * inflow.c (sigquit_ours): Conditionally define.
3969 (new_tty): Move "tty" declaration inside #if.
3970 * guile/guile.c (guile_datadir): Conditionally define.
3971 * charset.c (set_be_le_names): Move some declarations inside #if.
3972 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3973 #if.
3974 (parse_xml_btrace_conf): Likewise.
3975
3976 2018-07-22 Tom Tromey <tom@tromey.com>
3977
3978 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3979
3980 2018-07-22 Tom Tromey <tom@tromey.com>
3981
3982 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3983 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3984 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3985 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3986 * stack.c (frame_apply_level_command): Remove unused variable.
3987 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3988 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3989 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3990 unused variable.
3991 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3992 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3993 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3994 variable.
3995 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3996 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3997 variable.
3998 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3999 Remove unused variable.
4000 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4001 variable.
4002 * common/tdesc.c (print_xml_feature::visit): Remove unused
4003 variable.
4004 * compile/compile-object-load.c (store_regs): Remove unused
4005 variables.
4006 * complaints.c (clear_complaints): Remove unused variable.
4007 * corelow.c (core_target_open): Remove unused variable.
4008 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4009 variable.
4010 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4011 variable.
4012 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4013 variable.
4014 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4015 variable.
4016 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4017 variable.
4018 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4019 variable.
4020 * ia64-tdep.c (examine_prologue): Remove unused variable.
4021 * infcall.c (run_inferior_call): Remove unused variable.
4022 * inferior.c (exit_inferior): Remove unused variable.
4023 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4024 * linespec.c (decode_line_2): Remove unused variable.
4025 * linux-nat.c (super_close): Remove.
4026 * linux-tdep.c (linux_info_proc): Remove unused variable.
4027 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4028 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4029 Remove unused variable.
4030 * parse.c (find_minsym_type_and_address): Remove unused variable.
4031 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4032 variable.
4033 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4034 variable.
4035 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4036 variables.
4037 * record-btrace.c (record_btrace_target::store_registers): Remove
4038 unused variable.
4039 (cmd_show_record_btrace_cpu): Remove unused variable.
4040 * riscv-tdep.c (riscv_register_reggroup_p)
4041 (riscv_push_dummy_call, riscv_return_value): Remove unused
4042 variable.
4043 * rust-exp.y (literal): Remove unused variable.
4044 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4045 unused variable.
4046 <STRUCTOP_ANONYMOUS>: Likewise.
4047 * s390-linux-tdep.c (s390_linux_init_abi_31)
4048 (s390_linux_init_abi_64): Remove unused variable.
4049 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4050 (file_select_thread, net_windows_open, _initialize_ser_windows):
4051 Remove unused variables.
4052 * symtab.c (find_pc_sect_line): Remove unused variable.
4053 * target-memory.c (compute_garbled_blocks): Remove unused
4054 variable.
4055 (target_write_memory_blocks): Remove unused variable.
4056 * target.c (target_stack::unpush): Remove unused variables.
4057 * tracepoint.c (start_tracing, all_tracepoint_actions)
4058 (merge_uploaded_trace_state_variables)
4059 (print_one_static_tracepoint_marker): Remove unused variable.
4060 * unittests/basic_string_view/element_access/char/1.cc (test01):
4061 Remove unused variable.
4062 * windows-nat.c (windows_continue, windows_add_all_dlls)
4063 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4064 Remove unused variables.
4065
4066 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4067
4068 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4069 attr_profile in HAVE_ELF.
4070 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4071 HAVE_ELF.
4072
4073 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4074
4075 * frame.c (frame_register_unwind): Change parameter name.
4076 (frame_unwind_register): Likewise.
4077 (frame_unwind_register_value): Likewise.
4078 (frame_unwind_register_signed): Likewise.
4079 (frame_unwind_register_unsigned): Likewise.
4080 * frame.h (frame_register_unwind): Likewise.
4081 (frame_unwind_register): Likewise.
4082 (frame_unwind_register_value): Likewise.
4083 (frame_unwind_register_signed): Likewise.
4084 (frame_unwind_register_unsigned): Likewise.
4085 (frame_unwind_arch): Likewise.
4086
4087 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4088
4089 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4090 ISA maintenance.
4091
4092 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4093
4094 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4095 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4096 hand.
4097
4098 2018-07-20 Keith Seitz <keiths@redhat.com>
4099
4100 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4101 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4102 m_compunit_symtab, m_language>: Add "m_" prefix.
4103 Update all uses.
4104 * buildsym.c: Update all uses.
4105
4106 2018-07-20 Tom Tromey <tom@tromey.com>
4107
4108 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4109 * buildsym.h (record_line_ftype): Remove typedef.
4110
4111 2018-07-20 Tom Tromey <tom@tromey.com>
4112
4113 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4114 (end_expandable_symtab): Likewise.
4115 (end_symtab_get_static_block): Likewise.
4116 (end_symtab_from_static_block): Likewise.
4117 * buildsym-legacy.c (augment_type_symtab): Remove.
4118 (end_expandable_symtab): Remove.
4119 (end_symtab_get_static_block): Remove.
4120 (end_symtab_from_static_block): Remove.
4121
4122 2018-07-20 Tom Tromey <tom@tromey.com>
4123
4124 * dwarf2read.c: Include buildsym.h.
4125 (struct dwarf2_cu) <builder>: New method.
4126 (fixup_go_packaging): Update.
4127 (process_full_comp_unit, process_full_type_unit): Update. Don't
4128 use scoped_free_pendings.
4129 (using_directives): Add "cu" parameter, remove "language".
4130 (read_import_statement, setup_type_unit_groups, )
4131 (read_func_scope, read_lexical_block_scope)
4132 (dwarf2_record_block_ranges, read_namespace): Update.
4133 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4134 (lnp_state_machine::handle_end_sequence): Update.
4135 (class lnp_state_machine) <m_cu>: New member.
4136 <m_record_line_callback>: Remove.
4137 <m_currently_recording_lines>: New member.
4138 (lnp_state_machine::handle_set_file): Update.
4139 (noop_record_line): Remove.
4140 (dwarf_record_line_p): Add cu parameter.
4141 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4142 (lnp_state_machine::record_line)
4143 (lnp_state_machine::lnp_state_machine)
4144 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4145 (dwarf_decode_lines): Update.
4146 (dwarf2_start_subfile): Add cu parameter.
4147 (dwarf2_start_symtab, new_symbol): Update.
4148 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4149 Remove dwarf2_per_objfile parameter.
4150 (dwarf_decode_macros): Update.
4151
4152 2018-07-20 Tom Tromey <tom@tromey.com>
4153
4154 * stabsread.c (define_symbol): Update.
4155 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4156 * dwarf2read.c (new_symbol): Update.
4157 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4158 * cp-namespace.c: Include buildsym.h.
4159 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4160 * buildsym-legacy.c (get_buildsym_compunit): New function.
4161
4162 2018-07-20 Tom Tromey <tom@tromey.com>
4163
4164 * xcoffread.c: Include buildsym-legacy.h.
4165 * windows-nat.c: Include buildsym-legacy.h.
4166 * stabsread.c: Include buildsym-legacy.h.
4167 * mdebugread.c: Include buildsym-legacy.h.
4168 * buildsym-legacy.h: New file.
4169 * buildsym-legacy.c: New file, from buildsym.c.
4170 * go32-nat.c: Include buildsym-legacy.h.
4171 * dwarf2read.c: Include buildsym-legacy.h.
4172 * dbxread.c: Include buildsym-legacy.h.
4173 * cp-namespace.c: Include buildsym-legacy.h.
4174 * coffread.c: Include buildsym-legacy.h.
4175 * buildsym.h: Move some contents to buildsym-legacy.h.
4176 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4177 buildsym-legacy.c.
4178 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4179
4180 2018-07-20 Tom Tromey <tom@tromey.com>
4181
4182 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4183 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4184 (buildsym_compunit::buildsym_compunit)
4185 (buildsym_compunit::~buildsym_compunit)
4186 (buildsym_compunit::get_macro_table): Define.
4187
4188 2018-07-20 Tom Tromey <tom@tromey.com>
4189
4190 * buildsym.c (reset_symtab_globals): Remove.
4191 (buildsym_compunit::end_symtab_from_static_block): Update.
4192 (buildsym_compunit::augment_type_symtab): Update.
4193 (end_symtab_from_static_block): Call free_buildsym_compunit.
4194 (augment_type_symtab, end_symtab, end_expandable_symtab):
4195 Likewise.
4196
4197 2018-07-20 Tom Tromey <tom@tromey.com>
4198
4199 * arch-utils.c: Do not include buildsym.h.
4200 * mipsread.c: Do not include buildsym.h.
4201 * machoread.c: Do not include buildsym.h.
4202 * elfread.c: Do not include buildsym.h.
4203
4204 2018-07-20 Tom Tromey <tom@tromey.com>
4205
4206 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4207 initialization.
4208 (buildsym_compunit): Add new constructor.
4209 (struct buildsym_compunit) <get_last_source_file, finish_block,
4210 record_block_range, start_subfile, patch_subfile_names,
4211 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4212 set_last_source_start_addr, get_last_source_start_addr,
4213 get_local_using_directives, set_local_using_directives,
4214 get_global_using_directives, outermost_context_p,
4215 get_current_context_stack, get_context_stack_depth,
4216 get_current_subfile, get_local_symbols, get_file_symbols,
4217 get_global_symbols, record_debugformat, record_producer,
4218 push_context, pop_context, end_symtab_get_static_block,
4219 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4220 New public methods.
4221 <record_pending_block, finish_block_internal, make_blockvector,
4222 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4223 private methods.
4224 Update all users.
4225
4226 2018-05-22 Tom Tromey <tom@tromey.com>
4227
4228 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4229 parameter.
4230 (finish_block_internal): Update.
4231
4232 2018-07-20 Tom Tromey <tom@tromey.com>
4233
4234 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4235 parameter.
4236 (finish_block_internal): Update.
4237
4238 2018-07-20 Tom Tromey <tom@tromey.com>
4239
4240 * buildsym.h (EXTERN): Don't define or undef.
4241 * buildsym.c (EXTERN): Don't define.
4242
4243 2018-07-20 Tom Tromey <tom@tromey.com>
4244
4245 * buildsym.c: Remove TODO comment.
4246
4247 2018-07-20 Tom Tromey <tom@tromey.com>
4248
4249 * coffread.c (coff_symtab_read): Update.
4250 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4251 (xcoff_new_init): Update.
4252 * mipsread.c (mipscoff_new_init): Update.
4253 * mdebugread.c (mdebug_build_psymtabs): Update.
4254 * elfread.c (elf_new_init): Update.
4255 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4256 Update.
4257 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4258 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4259 (stabsect_build_psymtabs): Update.
4260 * buildsym.h (buildsym_init): Don't declare.
4261 * buildsym.c: Update comment.
4262 (prepare_for_building): Remove.
4263 (start_symtab, restart_symtab): Update.
4264 (reset_symtab_globals): Update comment.
4265 (buildsym_init): Remove.
4266
4267 2018-07-20 Tom Tromey <tom@tromey.com>
4268
4269 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4270 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4271 (read_enum_type, common_block_start, common_block_end)
4272 (cleanup_undefined_types_1, finish_global_stabs): Update.
4273 * mdebugread.c (psymtab_to_symtab_1): Update.
4274 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4275 (read_lexical_block_scope, new_symbol): Update.
4276 * dbxread.c (process_one_symbol): Update.
4277 * coffread.c (coff_symtab_read, process_coff_symbol)
4278 (coff_read_enum_type): Update.
4279 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4280 declare.
4281 (get_local_symbols, get_file_symbols, get_global_symbols): New
4282 functions.
4283 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4284 m_global_symbols.
4285 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4286 (~scoped_free_pendings): Update.
4287 (finish_block, prepare_for_building, reset_symtab_globals)
4288 (end_symtab_get_static_block, end_symtab_with_blockvector)
4289 (augment_type_symtab, push_context): Update.
4290 (get_local_symbols, get_file_symbols, get_global_symbols): New
4291 functions.
4292 (buildsym_init): Update.
4293
4294 2018-07-20 Tom Tromey <tom@tromey.com>
4295
4296 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4297 (process_full_type_unit): Likewise.
4298 (dwarf2_start_symtab): Set list_in_scope.
4299
4300 2018-07-20 Tom Tromey <tom@tromey.com>
4301
4302 * dwarf2read.c (process_psymtab_comp_unit_reader)
4303 (build_type_psymtabs_reader): Do not set list_in_scope.
4304
4305 2018-07-20 Tom Tromey <tom@tromey.com>
4306
4307 * buildsym.c (free_pendings): Remove.
4308 (add_symbol_to_list, scoped_free_pendings)
4309 (finish_block_internal, buildsym_init): Update.
4310
4311 2018-07-20 Tom Tromey <tom@tromey.com>
4312
4313 * xcoffread.c (read_xcoff_symtab): Update.
4314 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4315 Update.
4316 * dbxread.c (process_one_symbol): Update.
4317 * coffread.c (coff_symtab_read): Update.
4318 * buildsym.h (finish_block): Update.
4319 * buildsym.c (finish_block): Remove "listhead" argument.
4320 (end_symtab_get_static_block): Update.
4321
4322 2018-07-20 Tom Tromey <tom@tromey.com>
4323
4324 * buildsym.h (class scoped_free_pendings): Remove constructor.
4325 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4326 method.
4327 <m_pending_block_obstack, m_pending_blocks>: New members.
4328 (pending_block_obstack, pending_blocks): Remove.
4329 (scoped_free_pendings::scoped_free_pendings): Default.
4330 (~scoped_free_pendings): Update.
4331 (free_pending_blocks): Remove.
4332 (finish_block_internal, record_pending_block, make_blockvector)
4333 (end_symtab_get_static_block, augment_type_symtab, push_context)
4334 (buildsym_init): Update.
4335
4336 2018-07-20 Tom Tromey <tom@tromey.com>
4337
4338 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4339 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4340 members.
4341 (pending_addrmap, pending_addrmap_obstack)
4342 (pending_addrmap_interesting): Remove.
4343 (scoped_free_pendings, record_block_range, make_blockvector)
4344 (prepare_for_building, reset_symtab_globals, buildsym_init):
4345 Update.
4346
4347 2018-07-20 Tom Tromey <tom@tromey.com>
4348
4349 * xcoffread.c (process_linenos): Update.
4350 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4351 * mdebugread.c (psymtab_to_symtab_1): Update.
4352 * dwarf2read.c (setup_type_unit_groups)
4353 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4354 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4355 * dbxread.c (process_one_symbol): Update.
4356 * coffread.c (coff_symtab_read, enter_linenos)
4357 (process_coff_symbol): Update.
4358 * buildsym.h (current_subfile): Don't declare.
4359 (get_current_subfile): Declare.
4360 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4361 member.
4362 (start_subfile, free_buildsym_compunit, push_subfile)
4363 (prepare_for_building, start_symtab): Update.
4364 (get_current_subfile): New function.
4365
4366 2018-07-20 Tom Tromey <tom@tromey.com>
4367
4368 * coffread.c (coff_symtab_read): Update.
4369 * xcoffread.c (read_xcoff_symtab): Update.
4370 * dwarf2read.c (new_symbol): Update.
4371 (read_func_scope, read_lexical_block_scope): Update.
4372 * dbxread.c (process_one_symbol): Update.
4373 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4374 (outermost_context_p): Remove macro.
4375 (outermost_context_p, get_current_context_stack)
4376 (get_context_stack_depth): Declare.
4377 (pop_context): Return struct context_stack.
4378 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4379 member.
4380 (context_stack_size): Remove.
4381 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4382 (prepare_for_building, end_symtab_get_static_block)
4383 (augment_type_symtab, push_context): Update.
4384 (pop_context): Return struct context_stack.
4385 (outermost_context_p, get_current_context_stack)
4386 (get_context_stack_depth): New functions.
4387 (buildsym_init): Update.
4388
4389 2018-07-20 Tom Tromey <tom@tromey.com>
4390
4391 * rust-exp.y: Now a pure parser. Update all rules.
4392 (%union): Move earlier.
4393 (current_parser, work_obstack): Remove globals.
4394 (rust_parser, ~rust_parser): Update.
4395 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4396 lex_character, lex_number, lex_string, lex_identifier,
4397 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4398 convert_name, convert_params_to_expression,
4399 convert_ast_to_expression, ast_basic_type, ast_operation,
4400 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4401 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4402 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4403 ast_array_type, ast_slice_type, ast_reference_type,
4404 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4405 (rust_parse): Update.
4406 (rustyyerror, rustyylex): Add parser parameter.
4407 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4408 (rust_lex_stringish_test, rust_lex_test_sequence)
4409 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4410 (rust_lex_test_push_back, rust_lex_tests): Update.
4411
4412 2018-07-19 Pedro Alves <palves@redhat.com>
4413
4414 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4415 gdb::unique_xmalloc_ptr.
4416 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4417 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4418 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4419 copy-initialization.
4420 * guile/scm-pretty-print.c (ppscm_print_children): Use
4421 gdb::unique_xmalloc_ptr instead of cleanups.
4422 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4423 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4424 gdb::unique_xmalloc_ptr.
4425 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4426 Adjust to use gdb::unique_xmalloc_ptr.
4427 * guile/scm-utils.c (extract_arg): Adjust.
4428 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4429 gdb::unique_xmalloc_ptr instead of a cleanup.
4430
4431 2018-07-19 Tom Tromey <tom@tromey.com>
4432
4433 * utils.c (do_value_free_to_mark)
4434 (make_cleanup_value_free_to_mark): Remove.
4435 * utils.h (make_cleanup_value_free_to_mark): Remove.
4436
4437 2018-07-19 Pedro Alves <palves@redhat.com>
4438
4439 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4440 forwarding reference.
4441
4442 2018-07-18 Pedro Alves <palves@redhat.com>
4443
4444 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4445 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4446 cleanup.
4447
4448 2018-07-18 Pedro Alves <palves@redhat.com>
4449
4450 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4451 exceptions.
4452 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4453 (gdbscm_wrap): New.
4454 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4455 directly instead of a cleanup.
4456 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4457 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4458 (vlscm_binop_gdbthrow): New, factored out from ...
4459 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4460 (vlscm_rich_compare): Use gdbscm_wrap.
4461 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4462 instead of a cleanup.
4463 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4464 cleanup.
4465 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4466 Use xfree directly instead of a cleanup.
4467 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4468 Adjust to use gdbscm_wrap and scoped_value_mark.
4469 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4470 (gdbscm_value_address, gdbscm_value_dereference)
4471 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4472 scoped_value_mark.
4473 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4474 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4475 scoped_value_mark.
4476 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4477 gdbscm_wrap and scoped_value_mark.
4478 (gdbscm_value_to_string): Use xfree directly instead of a
4479 cleanup. Move 'buffer' unique_ptr to TRY scope.
4480 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4481 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4482 scoped_value_mark.
4483 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4484 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4485 scoped_value_mark.
4486 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4487 gdbscm_wrap.
4488
4489 2018-07-18 Tom de Vries <tdevries@suse.de>
4490
4491 * findvar.c (default_read_var_value): Also resolve dynamic type for
4492 LOC_OPTIMIZED_OUT vars.
4493
4494 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4495
4496 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4497 decoding.
4498
4499 2018-07-17 Tom Tromey <tom@tromey.com>
4500
4501 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4502 (compute_enum_list, pascm_set_param_value_x)
4503 (gdbscm_parameter_value): Update.
4504 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4505 (gdbscm_scm_to_host_string): Update.
4506 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4507 Update.
4508 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4509 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4510 * guile/scm-string.c (gdbscm_scm_to_string): Return
4511 unique_xmalloc_ptr.
4512 (gdbscm_scm_to_host_string): Likewise.
4513
4514 2018-07-17 Tom Tromey <tom@tromey.com>
4515
4516 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4517 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4518 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4519 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4520 unique_xmalloc_ptr.
4521
4522 2018-07-17 Tom Tromey <tom@tromey.com>
4523
4524 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4525 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4526 Update.
4527 * guile/scm-cmd.c (cmdscm_function): Update.
4528 * guile/scm-pretty-print.c
4529 (ppscm_print_exception_unless_memory_error): Update.
4530 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4531 Return unique_xmalloc_ptr.
4532
4533 2018-07-17 Tom Tromey <tom@tromey.com>
4534
4535 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4536 Use string_printf.
4537
4538 2018-07-17 Jim Wilson <jimw@sifive.com>
4539
4540 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4541 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4542 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4543 unecessary braces after EF_RISCV_RVC test. Delete call to
4544 set_gdbarch_decr_pc_after_break.
4545
4546 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4547 RISCV_LAST_FP_REGNUM + 1.
4548 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4549
4550 2018-07-17 Tom Tromey <tom@tromey.com>
4551
4552 * configure.ac: Remove --disable-gdbcli.
4553 * configure: Rebuild.
4554 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4555 (SUBDIR_CLI_CFLAGS): Remove.
4556 (SFILES): Use SUBDIR_CLI_SRCS.
4557 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4558
4559 2018-07-17 Tom Tromey <tom@tromey.com>
4560
4561 PR gdb/18624:
4562 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4563
4564 2018-07-16 Jim Wilson <jimw@sifive.com>
4565
4566 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4567
4568 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4569
4570 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4571 variable.
4572 (libunwind_frame_sniffer): Likewise.
4573 (libunwind_frame_prev_register): Likewise.
4574 (libunwind_sigtramp_frame_sniffer): Likewise.
4575 * ia64-tdep.c (ia64_access_reg): Likewise.
4576 (ia64_access_rse_reg): Likewise.
4577 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4578 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4579
4580 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4581
4582 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4583
4584 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4585
4586 * remote-sim.c (gdbsim_target::close,
4587 gdbsim_target::mourn_inferior): Remove unused variables.
4588
4589 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4590
4591 * ia64-tdep.c (ktab_buf): New global.
4592 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4593 (get_kernel_table): Adjust.
4594
4595 2018-07-16 Tom Tromey <tom@tromey.com>
4596
4597 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4598 * dwarf2read.c (using_directives, new_symbol): Use
4599 outermost_context_p.
4600 * dbxread.c (process_one_symbol): Use outermost_context_p.
4601 * coffread.c (coff_symtab_read): Use outermost_context_p.
4602
4603 2018-07-16 Tom Tromey <tom@tromey.com>
4604
4605 * dwarf2read.c (using_directives, read_func_scope)
4606 (read_lexical_block_scope): Update.
4607 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4608 * buildsym.h (local_using_directives, global_using_directives):
4609 Don't declare.
4610 (get_local_using_directives, set_local_using_directives)
4611 (get_global_using_directives): Declare.
4612 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4613 m_global_using_directives>: New members.
4614 (finish_block_internal, prepare_for_building)
4615 (reset_symtab_globals, end_symtab_get_static_block)
4616 (push_context): Update.
4617 (get_local_using_directives, set_local_using_directives)
4618 (get_global_using_directives): New functions.
4619 (buildsym_init): Update.
4620
4621 2018-07-16 Tom Tromey <tom@tromey.com>
4622
4623 * xcoffread.c (xcoff_initial_scan): Don't call
4624 free_pending_blocks.
4625 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4626 * buildsym.h (class scoped_free_pendings): Add constructor.
4627 (free_pending_blocks): Don't declare.
4628 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4629 (free_pending_blocks): Now static.
4630
4631 2018-07-16 Tom Tromey <tom@tromey.com>
4632
4633 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4634 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4635 member.
4636 (struct subfile_stack): Remove.
4637 (subfile_stack): Remove.
4638 (push_subfile, pop_subfile, buildsym_init): Update.
4639
4640 2018-07-16 Tom Tromey <tom@tromey.com>
4641
4642 * buildsym.c (push_subfile): Use gdb_assert.
4643 (pop_subfile): Use gdb_assert.
4644
4645 2018-07-16 Tom Tromey <tom@tromey.com>
4646
4647 * buildsym.h (merge_symbol_lists): Remove.
4648 * buildsym.c (merge_symbol_lists): Remove.
4649
4650 2018-07-16 Tom Tromey <tom@tromey.com>
4651
4652 * stabsread.c (scan_file_globals): Update comment.
4653 * stabsread.h (scan_file_globals): Move from buildsym.h.
4654 * buildsym.h (scan_file_globals): Move to stabsread.h.
4655
4656 2018-07-16 Tom Tromey <tom@tromey.com>
4657
4658 * xcoffread.c (xcoff_new_init): Update.
4659 * mipsread.c (mipscoff_new_init): Update.
4660 * mdebugread.c (mdebug_build_psymtabs): Update.
4661 * elfread.c (elf_new_init): Update.
4662 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4663 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4664 * buildsym.h (buildsym_new_init): Don't declare.
4665 * buildsym.c (buildsym_new_init): Remove.
4666
4667 2018-07-16 Tom Tromey <tom@tromey.com>
4668
4669 * stabsread.h (within_function): Move from buildsym.h.
4670 * stabsread.c (start_stabs): Clear within_function.
4671 * coffread.c (coff_start_symtab): Clear within_function.
4672 * buildsym.h (within_function): Move to stabsread.h.
4673 * buildsym.c (prepare_for_building): Update.
4674
4675 2018-07-16 Tom Tromey <tom@tromey.com>
4676
4677 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4678 * dwarf2read.c (dwarf2_start_symtab): Don't set
4679 processing_gcc_compilation.
4680 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4681
4682 2018-07-16 Tom Tromey <tom@tromey.com>
4683
4684 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4685 (next_symbol_text_func): Move from buildsym.h.
4686 * stabsread.c (hashname): Move from buildsym.c.
4687 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4688 (next_symbol_text_func, hashname): Move to stabsread.h.
4689 * buildsym.c: Don't include bcache.h
4690 (hashname): Move to stasbread.c.
4691
4692 2018-07-16 Tom Tromey <tom@tromey.com>
4693
4694 * buildsym.h (context_stack_size): Don't declare.
4695 * buildsym.c (context_stack_size): New global.
4696
4697 2018-07-16 Tom Tromey <tom@tromey.com>
4698
4699 * dbxread.c (processing_acc_compilation): New global.
4700 * buildsym.h (processing_acc_compilation): Don't declare.
4701
4702 2018-07-16 Tom Tromey <tom@tromey.com>
4703
4704 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4705 * dbxread.c (read_ofile_symtab): Update.
4706 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4707 * buildsym.h (last_source_start_addr): Remove.
4708 (set_last_source_start_addr, get_last_source_start_addr):
4709 Declare.
4710 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4711 parameter.
4712 (struct buildsym_compunit) <m_last_source_start_addr>: New
4713 member.
4714 (prepare_for_building): Remove start_addr parameter.
4715 (start_symtab, restart_symtab, end_symtab_get_static_block)
4716 (end_symtab_with_blockvector): Update.
4717 (set_last_source_start_addr, get_last_source_start_addr): New
4718 functions.
4719
4720 2018-07-16 Tom Tromey <tom@tromey.com>
4721
4722 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4723 member.
4724 (have_line_numbers): Remove.
4725 (record_line, prepare_for_building, end_symtab_get_static_block)
4726 (augment_type_symtab): Update.
4727
4728 2018-07-16 Tom Tromey <tom@tromey.com>
4729
4730 * buildsym.c (~buildsym_compunit): Free the macro table.
4731 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4732 methods.
4733 <m_pending_macros>: New member.
4734 (pending_macros): Remove.
4735 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4736 (reset_symtab_globals, end_symtab_get_static_block)
4737 (end_symtab_with_blockvector, augment_type_symtab)
4738 (buildsym_init): Update.
4739
4740 2018-07-16 Tom Tromey <tom@tromey.com>
4741
4742 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4743 parameter.
4744 (buildsym_compunit::set_last_source_file): New method.
4745 <m_last_source_file>: New member.
4746 (prepare_for_building): Remove "name" parameter.
4747 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4748 (last_source_file): Remove.
4749 (set_last_source_file, get_last_source_file): Update.
4750
4751 2018-07-16 Tom Tromey <tom@tromey.com>
4752
4753 * buildsym.c (prepare_for_building): Add assert.
4754
4755 2018-07-16 Tom Tromey <tom@tromey.com>
4756
4757 * buildsym.c (~buildsym_compunit): Update.
4758 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4759 (start_subfile, patch_subfile_names)
4760 (end_symtab_with_blockvector): Update.
4761
4762 2018-07-16 Tom Tromey <tom@tromey.com>
4763
4764 * buildsym.c (struct buildsym_compunit): Add constructor,
4765 destructor, initializers.
4766 (start_buildsym_compunit): Remove.
4767 (free_buildsym_compunit): Use "delete".
4768 (start_symtab, restart_symtab): Use "new".
4769
4770 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4771
4772 * symfile.c (set_objfile_default_section_offset): Remove struct
4773 keyword.
4774
4775 2018-07-14 Stafford Horne <shorne@gmail.com>
4776
4777 * (Responsible Maintainers): Add myself as or1k maintainer.
4778
4779 2018-07-13 Tom Tromey <tom@tromey.com>
4780
4781 * symfile.c (set_objfile_default_section_offset): Use extra braces
4782 around initializer.
4783
4784 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4785
4786 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4787 non-branching basr.
4788
4789 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4790
4791 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4792 unittests/cli-utils-selftests.c
4793 * unittests/cli-utils-selftests.c: New file.
4794
4795 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4796
4797 * NEWS: Mention new commands. Mention change to 'thread apply'.
4798
4799 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4800
4801 * thread.c (thr_try_catch_cmd): New function.
4802 (thread_apply_all_command): Handle qcs flags.
4803 (thread_apply_command): Handle qcs flags.
4804 (taas_command): New function.
4805 (tfaas_command): New function.
4806 (_initialize_thread): Update to setup the new commands 'taas
4807 and 'tfaas'. Change doc string for 'thread apply'.
4808
4809 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4810
4811 * stack.c: (trailing_outermost_frame): New function, mostly
4812 extracted from backtrace_command_1.
4813 (leading_innermost_frame): New function.
4814 (backtrace_command_1): Update to call trailing_outermost_frame.
4815 (frame_apply_command_count): New function.
4816 (frame_apply_level_command): New function.
4817 (frame_apply_all_command): New function.
4818 (frame_apply_command): New function.
4819 (faas_command): New function.
4820 (frame_cmd_list): New variable.
4821 (_initialize_stack): Update to setup the new commands 'frame apply'
4822 and 'faas'.
4823
4824 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4825
4826 * cli-utils.c (number_or_range_parser::get_number): Only handle
4827 numbers or convenience var as numbers.
4828 (parse_flags): New function.
4829 (parse_flags_qcs): New function.
4830 (number_or_range_parser::finished): Ensure parsing end is detected
4831 before end of string.
4832 * cli-utils.h (parse_flags): New function.
4833 (parse_flags_qcs): New function.
4834 (number_or_range_parser): Remove m_finished bool.
4835 (number_or_range_parser::skip_range): Set m_in_range to false.
4836
4837 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4838
4839 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4840 on Windows.
4841
4842 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4843 Jan Kratochvil <jan.kratochvil@redhat.com>
4844 Paul Fertser <fercerpav@gmail.com>
4845 Tsutomu Seki <sekiriki@gmail.com>
4846 Pedro Alves <palves@redhat.com>
4847
4848 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4849 'unittests/parse-connection-spec-selftests.c'.
4850 (COMMON_SFILES): Add 'common/netstuff.c'.
4851 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4852 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4853 * common/netstuff.c: New file.
4854 * common/netstuff.h: New file.
4855 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4856 (wait_for_connect): Update comment. New parameter
4857 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4858 Use 'sock' directly instead of 'scb->fd'.
4859 (try_connect): New function, with code from 'net_open'.
4860 (net_open): Rewrite main loop to deal with multiple
4861 sockets/addresses. Handle IPv6-style hostnames; implement
4862 support for IPv6 connections.
4863 * unittests/parse-connection-spec-selftests.c: New file.
4864
4865 2018-07-11 Pedro Alves <palves@redhat.com>
4866
4867 PR gdb/23377
4868 * remote.c (remote_target::remote_detach_pid): Call
4869 set_current_process.
4870
4871 2018-07-11 Pedro Alves <palves@redhat.com>
4872
4873 * h8300-tdep.c (h8300_gdbarch_init): Remove
4874 set_gdbarch_ecoff_reg_to_regnum calls.
4875
4876 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4877
4878 PR c++/23373
4879 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4880 offsets/sizes for static members of a class/struct.
4881
4882 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4883
4884 * target-descriptions.c (tdesc_register_bitsize): Rename.
4885 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4886 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4887 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4888
4889 2018-07-10 Tom Tromey <tom@tromey.com>
4890
4891 * breakpoint.c (moribund_locations): Now static and a
4892 std::vector.
4893 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4894 (build_bpstat_chain, update_global_location_list)
4895 (breakpoint_retire_moribund): Update.
4896 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4897 VEC.
4898
4899 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4902 (riscv_register_reggroup_p): Use new function, remove unneeded
4903 parenthesis.
4904 (riscv_push_dummy_call): Extend assert to compare against xlen or
4905 flen based on register type.
4906
4907 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4910
4911 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 * remote.c (show_hardware_watchpoint_limit): New function.
4914 (show_hardware_watchpoint_length_limit): New function.
4915 (show_hardware_breakpoint_limit): New function.
4916 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4917 where appropriate, update help text.
4918
4919 2018-07-09 Tom Tromey <tom@tromey.com>
4920
4921 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4922 (CLIBS): Don't mention NAT_CLIBS.
4923
4924 2018-07-09 Tom Tromey <tom@tromey.com>
4925
4926 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4927 (LIBGDB_OBS, clean mostlyclean): Update.
4928 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4929
4930 2018-07-09 Tom Tromey <tom@tromey.com>
4931
4932 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4933 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4934 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4935
4936 2018-07-09 Tom Tromey <tom@tromey.com>
4937
4938 * Makefile.in (ALLDEPFILES): Remove exec.c.
4939 (COMMON_OBS): Remove exec.o.
4940 (COMMON_SFILES): Add exec.c.
4941
4942 2018-07-09 Tom Tromey <tom@tromey.com>
4943
4944 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4945
4946 2018-07-09 Tom Tromey <tom@tromey.com>
4947
4948 * Makefile.in (clean mostlyclean): Remove stamp-version.
4949 (version.c): Depend on stamp-version.
4950 (stamp-version): New rule, from version.c rule.
4951
4952 2018-07-09 Tom Tromey <tom@tromey.com>
4953
4954 * Makefile.in (init.c): Depend on stamp-init.
4955 (stamp-init): New rule, from init.c rule.
4956 (clean mostlyclean): Remove stamp-init.
4957
4958 2018-07-09 Tom Tromey <tom@tromey.com>
4959
4960 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4961 SUBDIR_GCC_COMPILE_SRCS.
4962
4963 2018-07-09 Tom Tromey <tom@tromey.com>
4964
4965 * Makefile.in (init.c): Remove some unused sed rules.
4966
4967 2018-07-09 Tom Tromey <tom@tromey.com>
4968
4969 * Makefile.in (TSOBS): Remove.
4970 (INIT_FILES): Update.
4971 (LIBGDB_OBS): Update.
4972 (COMMON_SFILES): Add inflow.c.
4973 (SFILES): Remove inflow.c.
4974
4975 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4976
4977 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4978
4979 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4980
4981 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4982 get_saveloc_name, is_signal_frame_name, step_name,
4983 init_remote_name, create_addr_space_name,
4984 destroy_addr_space_name, search_unwind_table_name,
4985 find_dyn_list_name): Constify.
4986
4987 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4988
4989 * darwin-nat.c (darwin_pthread_kill): New function.
4990 (darwin_resume_thread): Use darwin_pthread_kill.
4991
4992 2018-07-05 Tom de Vries <tdevries@suse.de>
4993
4994 * macroexp.c (macro_buffer) <operator=>: New member function.
4995
4996 2018-07-04 Tom Tromey <tom@tromey.com>
4997
4998 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4999
5000 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5001
5002 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5003 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5004 * maint.c: Likewise.
5005 * top.c: Likewise.
5006
5007 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5008
5009 * NEWS: Create a new section for the next release branch.
5010 Rename the section of the current branch, now that it has
5011 been cut.
5012
5013 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5014
5015 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5016 * version.in: Bump version to 8.2.50.DATE-git.
5017
5018 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5019 Pedro Alves <palves@redhat.com>
5020
5021 * linux-nat.c (linux_init_ptrace): Rename to ...
5022 (linux_init_ptrace_procfs): ... this. Call
5023 linux_proc_init_warnings.
5024 (linux_nat_target::post_attach)
5025 (linux_nat_target::post_startup_inferior): Adjust.
5026 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5027 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5028
5029 2018-07-04 Tom de Vries <tdevries@suse.de>
5030
5031 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5032 check ...
5033 (read_comp_unit_head): ... here.
5034
5035 2018-07-03 Tom Tromey <tom@tromey.com>
5036
5037 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5038 (stop_tracing, tstatus_command)
5039 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5040 (print_one_static_tracepoint_marker): Update.
5041 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5042 std::vector.
5043 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5044 VEC.
5045 (all_tracepoints, static_tracepoints_here): Return std::vector.
5046
5047 2018-07-03 Tom Tromey <tom@tromey.com>
5048
5049 * common/ptid.c (ptid_equal): Remove.
5050 * common/ptid.h (ptid_equal): Don't declare.
5051 * ada-tasks.c: Update.
5052 * breakpoint.c: Update.
5053 * common/agent.c: Update.
5054 * corelow.c: Update.
5055 * darwin-nat-info.c: Update.
5056 * darwin-nat.c: Update.
5057 * dcache.c: Update.
5058 * dtrace-probe.c: Update.
5059 * dummy-frame.c: Update.
5060 * fbsd-nat.c: Update.
5061 * frame.c: Update.
5062 * gdbthread.h: Update.
5063 * gnu-nat.c: Update.
5064 * go32-nat.c: Update.
5065 * inf-loop.c: Update.
5066 * inf-ptrace.c: Update.
5067 * infcall.c: Update.
5068 * infcmd.c: Update.
5069 * inflow.c: Update.
5070 * infrun.c: Update.
5071 * linux-fork.c: Update.
5072 * linux-nat.c: Update.
5073 * linux-thread-db.c: Update.
5074 * mi/mi-cmd-var.c: Update.
5075 * mi/mi-interp.c: Update.
5076 * mi/mi-main.c: Update.
5077 * nto-procfs.c: Update.
5078 * ppc-linux-tdep.c: Update.
5079 * procfs.c: Update.
5080 * python/py-inferior.c: Update.
5081 * python/py-record-btrace.c: Update.
5082 * python/py-record.c: Update.
5083 * ravenscar-thread.c: Update.
5084 * regcache.c: Update.
5085 * remote-sim.c: Update.
5086 * remote.c: Update.
5087 * sol-thread.c: Update.
5088 * solib.c: Update.
5089 * target.c: Update.
5090 * tui/tui-stack.c: Update.
5091 * varobj.c: Update.
5092 * windows-nat.c: Update.
5093 * windows-tdep.c: Update.
5094
5095 2018-07-03 Tom Tromey <tom@tromey.com>
5096
5097 * common/ptid.c (ptid_match): Remove.
5098 * common/ptid.h (ptid_match): Don't declare.
5099 * fbsd-nat.c: Update.
5100 * infcmd.c: Update.
5101 * infrun.c: Update.
5102 * linux-nat.c: Update.
5103 * record-btrace.c: Update.
5104 * regcache.c: Update.
5105 * remote.c: Update.
5106
5107 2018-07-03 Tom Tromey <tom@tromey.com>
5108
5109 * common/ptid.c (ptid_tid_p): Remove.
5110 * common/ptid.h (ptid_tid_p): Don't declare.
5111 * sol-thread.c: Update.
5112
5113 2018-07-03 Tom Tromey <tom@tromey.com>
5114
5115 * common/ptid.c (ptid_lwp_p): Remove.
5116 * common/ptid.h (ptid_lwp_p): Don't declare.
5117 * fbsd-nat.c: Update.
5118 * linux-nat.c: Update.
5119 * nat/linux-procfs.c: Update.
5120 * nat/x86-linux-dregs.c: Update.
5121 * sol-thread.c: Update.
5122
5123 2018-07-03 Tom Tromey <tom@tromey.com>
5124
5125 * common/ptid.c (ptid_is_pid): Remove.
5126 * common/ptid.h (ptid_is_pid): Don't declare.
5127 * infrun.c: Update.
5128 * linux-nat.c: Update.
5129 * mi/mi-interp.c: Update.
5130 * remote.c: Update.
5131 * thread.c: Update.
5132
5133 2018-07-03 Tom Tromey <tom@tromey.com>
5134
5135 * common/ptid.c (ptid_get_tid): Remove.
5136 * common/ptid.h (ptid_get_tid): Don't declare.
5137 * ada-tasks.c: Update.
5138 * aix-thread.c: Update.
5139 * bsd-uthread.c: Update.
5140 * darwin-nat.c: Update.
5141 * fbsd-nat.c: Update.
5142 * i386-darwin-nat.c: Update.
5143 * infrun.c: Update.
5144 * linux-tdep.c: Update.
5145 * nto-procfs.c: Update.
5146 * ppc-ravenscar-thread.c: Update.
5147 * python/py-infthread.c: Update.
5148 * ravenscar-thread.c: Update.
5149 * sol-thread.c: Update.
5150 * sparc-ravenscar-thread.c: Update.
5151 * windows-nat.c: Update.
5152
5153 2018-07-03 Tom Tromey <tom@tromey.com>
5154
5155 * common/ptid.c (ptid_get_lwp): Remove.
5156 * common/ptid.h (ptid_get_lwp): Don't declare.
5157 * aarch64-linux-nat.c: Update.
5158 * ada-tasks.c: Update.
5159 * aix-thread.c: Update.
5160 * amd64-linux-nat.c: Update.
5161 * arm-linux-nat.c: Update.
5162 * corelow.c: Update.
5163 * fbsd-nat.c: Update.
5164 * fbsd-tdep.c: Update.
5165 * gnu-nat.c: Update.
5166 * i386-cygwin-tdep.c: Update.
5167 * i386-gnu-nat.c: Update.
5168 * i386-linux-nat.c: Update.
5169 * ia64-linux-nat.c: Update.
5170 * inf-ptrace.c: Update.
5171 * infrun.c: Update.
5172 * linux-fork.c: Update.
5173 * linux-nat.c: Update.
5174 * linux-tdep.c: Update.
5175 * linux-thread-db.c: Update.
5176 * mips-linux-nat.c: Update.
5177 * nat/aarch64-linux-hw-point.c: Update.
5178 * nat/aarch64-linux.c: Update.
5179 * nat/linux-btrace.c: Update.
5180 * nat/linux-osdata.c: Update.
5181 * nat/linux-procfs.c: Update.
5182 * nat/x86-linux-dregs.c: Update.
5183 * obsd-nat.c: Update.
5184 * ppc-fbsd-nat.c: Update.
5185 * ppc-linux-nat.c: Update.
5186 * procfs.c: Update.
5187 * python/py-infthread.c: Update.
5188 * ravenscar-thread.c: Update.
5189 * remote.c: Update.
5190 * s390-linux-nat.c: Update.
5191 * sol-thread.c: Update.
5192 * sol2-tdep.c: Update.
5193 * spu-linux-nat.c: Update.
5194 * x86-linux-nat.c: Update.
5195 * xtensa-linux-nat.c: Update.
5196
5197 2018-07-03 Tom Tromey <tom@tromey.com>
5198
5199 * common/ptid.c (ptid_get_pid): Remove.
5200 * common/ptid.h (ptid_get_pid): Don't declare.
5201 * aarch64-linux-nat.c: Update.
5202 * ada-lang.c: Update.
5203 * aix-thread.c: Update.
5204 * alpha-bsd-nat.c: Update.
5205 * amd64-fbsd-nat.c: Update.
5206 * amd64-linux-nat.c: Update.
5207 * arm-linux-nat.c: Update.
5208 * arm-nbsd-nat.c: Update.
5209 * auxv.c: Update.
5210 * break-catch-syscall.c: Update.
5211 * breakpoint.c: Update.
5212 * bsd-uthread.c: Update.
5213 * corelow.c: Update.
5214 * ctf.c: Update.
5215 * darwin-nat.c: Update.
5216 * fbsd-nat.c: Update.
5217 * fbsd-tdep.c: Update.
5218 * gcore.c: Update.
5219 * gnu-nat.c: Update.
5220 * hppa-nbsd-nat.c: Update.
5221 * hppa-obsd-nat.c: Update.
5222 * i386-fbsd-nat.c: Update.
5223 * ia64-linux-nat.c: Update.
5224 * inf-ptrace.c: Update.
5225 * infcmd.c: Update.
5226 * inferior.c: Update.
5227 * inferior.h: Update.
5228 * inflow.c: Update.
5229 * infrun.c: Update.
5230 * linux-fork.c: Update.
5231 * linux-nat.c: Update.
5232 * linux-tdep.c: Update.
5233 * linux-thread-db.c: Update.
5234 * m68k-bsd-nat.c: Update.
5235 * mi/mi-interp.c: Update.
5236 * mi/mi-main.c: Update.
5237 * mips-linux-nat.c: Update.
5238 * mips-nbsd-nat.c: Update.
5239 * mips64-obsd-nat.c: Update.
5240 * nat/aarch64-linux-hw-point.c: Update.
5241 * nat/aarch64-linux.c: Update.
5242 * nat/linux-btrace.c: Update.
5243 * nat/linux-osdata.c: Update.
5244 * nat/linux-procfs.c: Update.
5245 * nat/x86-linux-dregs.c: Update.
5246 * nto-procfs.c: Update.
5247 * obsd-nat.c: Update.
5248 * ppc-linux-nat.c: Update.
5249 * ppc-nbsd-nat.c: Update.
5250 * ppc-obsd-nat.c: Update.
5251 * proc-service.c: Update.
5252 * procfs.c: Update.
5253 * python/py-inferior.c: Update.
5254 * python/py-infthread.c: Update.
5255 * ravenscar-thread.c: Update.
5256 * record.c: Update.
5257 * remote-sim.c: Update.
5258 * remote.c: Update.
5259 * rs6000-nat.c: Update.
5260 * s390-linux-nat.c: Update.
5261 * sh-nbsd-nat.c: Update.
5262 * sol-thread.c: Update.
5263 * sparc-nat.c: Update.
5264 * sparc64-tdep.c: Update.
5265 * spu-linux-nat.c: Update.
5266 * spu-tdep.c: Update.
5267 * target-debug.h: Update.
5268 * target.c: Update.
5269 * thread.c: Update.
5270 * tid-parse.c: Update.
5271 * tracefile-tfile.c: Update.
5272 * vax-bsd-nat.c: Update.
5273 * windows-nat.c: Update.
5274 * x86-linux-nat.c: Update.
5275 * x86-nat.c: Update.
5276
5277 2018-07-03 Tom Tromey <tom@tromey.com>
5278
5279 * common/ptid.c (pid_to_ptid): Remove.
5280 * common/ptid.h (pid_to_ptid): Don't declare.
5281 * aix-thread.c: Update.
5282 * arm-linux-nat.c: Update.
5283 * common/ptid.c: Update.
5284 * common/ptid.h: Update.
5285 * corelow.c: Update.
5286 * ctf.c: Update.
5287 * darwin-nat.c: Update.
5288 * fbsd-nat.c: Update.
5289 * fork-child.c: Update.
5290 * gnu-nat.c: Update.
5291 * go32-nat.c: Update.
5292 * inf-ptrace.c: Update.
5293 * infcmd.c: Update.
5294 * inferior.c: Update.
5295 * infrun.c: Update.
5296 * linux-fork.c: Update.
5297 * linux-nat.c: Update.
5298 * nat/aarch64-linux-hw-point.c: Update.
5299 * nat/fork-inferior.c: Update.
5300 * nat/x86-linux-dregs.c: Update.
5301 * nto-procfs.c: Update.
5302 * obsd-nat.c: Update.
5303 * procfs.c: Update.
5304 * progspace.c: Update.
5305 * remote.c: Update.
5306 * rs6000-nat.c: Update.
5307 * s390-linux-nat.c: Update.
5308 * sol-thread.c: Update.
5309 * spu-linux-nat.c: Update.
5310 * target.c: Update.
5311 * top.c: Update.
5312 * tracefile-tfile.c: Update.
5313 * windows-nat.c: Update.
5314
5315 2018-07-03 Tom Tromey <tom@tromey.com>
5316
5317 * common/ptid.h (ptid_build): Don't declare.
5318 * common/ptid.c (ptid_build): Remove.
5319 * aix-thread.c: Update.
5320 * bsd-kvm.c: Update.
5321 * bsd-uthread.c: Update.
5322 * common/agent.c: Update.
5323 * common/ptid.c: Update.
5324 * common/ptid.h: Update.
5325 * corelow.c: Update.
5326 * darwin-nat.c: Update.
5327 * fbsd-nat.c: Update.
5328 * gnu-nat.c: Update.
5329 * linux-fork.c: Update.
5330 * linux-nat.c: Update.
5331 * linux-thread-db.c: Update.
5332 * nat/linux-osdata.c: Update.
5333 * nat/linux-procfs.c: Update.
5334 * nto-procfs.c: Update.
5335 * obsd-nat.c: Update.
5336 * proc-service.c: Update.
5337 * procfs.c: Update.
5338 * ravenscar-thread.c: Update.
5339 * remote-sim.c: Update.
5340 * remote.c: Update.
5341 * sol-thread.c: Update.
5342 * target.c: Update.
5343 * windows-nat.c: Update.
5344
5345 2018-07-03 Tom Tromey <tom@tromey.com>
5346
5347 * infrun.c (follow_exec): Use exit_inferior_silent.
5348 * inferior.c (exit_inferior_num_silent): Remove.
5349 * inferior.h (exit_inferior_num_silent): Don't declare.
5350
5351 2018-07-03 Tom Tromey <tom@tromey.com>
5352
5353 PR cli/23340:
5354 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5355 inferior_ptid on error.
5356
5357 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5358 Simon Marchi <simon.marchi@polymtl.ca>
5359
5360 PR tdep/8282
5361 * disasm.h (gdb_disassembler): Add
5362 `m_disassembler_options_holder'. member
5363 * disasm.c (get_all_disassembler_options): New function.
5364 (gdb_disassembler::gdb_disassembler): Use it.
5365 (gdb_buffered_insn_length_init_dis): Likewise.
5366 (gdb_buffered_insn_length): Adjust accordingly.
5367 (set_disassembler_options): Handle options with arguments.
5368 (show_disassembler_options_sfunc): Likewise. Add a leading new
5369 line if showing options with descriptions.
5370 (disassembler_options_completer): Adapt to using the
5371 `disasm_options_and_args_t' structure.
5372 * mips-tdep.c (mips_disassembler_options): New variable.
5373 (mips_disassembler_options_o32): Likewise.
5374 (mips_disassembler_options_n32): Likewise.
5375 (mips_disassembler_options_n64): Likewise.
5376 (gdb_print_insn_mips): Don't set `disassembler_options'.
5377 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5378 functions.
5379 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5380 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5381 `gdbarch_disassembler_options_implicit' and
5382 `gdbarch_valid_disassembler_options'.
5383 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5384 `disasm_options_and_args_t' structure.
5385 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5386 method.
5387 (valid_disassembler_options): Switch from `disasm_options_t' to
5388 the `disasm_options_and_args_t' structure.
5389 * NEWS: Document `set disassembler-options' support for the MIPS
5390 target.
5391 * gdbarch.h: Regenerate.
5392 * gdbarch.c: Regenerate.
5393
5394 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5395
5396 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5397
5398 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5399
5400 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5401 parameter in call to amd64_target_description.
5402 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5403 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5404 (amd64fbsd_init_abi): Likewise.
5405 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5406 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5407 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5408 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5409
5410 2018-06-29 Pedro Alves <palves@redhat.com>
5411
5412 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5413 "segments" parameter.
5414 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5415 (_initialize_amd64_tdep): Update call to
5416 amd64_create_target_description.
5417 (amd64_target_description): Add "segments" parameter. Adjust
5418 the implementation to use it.
5419 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5420 call to amd64_create_target_description.
5421 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5422 * gdb/arch/amd64.h (amd64_create_target_description): Add
5423 "segments" register.
5424 * gdb/arch/amd64.c (amd64_create_target_description): Add
5425 "segments" parameter. Call create_feature_i386_64bit_segments
5426 only if SEGMENTS is true.
5427 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5428 call to amd64_create_target_description.
5429
5430 2018-06-29 Pedro Alves <palves@redhat.com>
5431
5432 * thread.c (thread_target_id_str): New, factored out from ...
5433 (print_thread_info_1): ... here. Use it to compute the max
5434 "Target Id" column width.
5435
5436 2018-06-29 Pedro Alves <palves@redhat.com>
5437
5438 * remote.c (remote_target::extra_thread_info): Delete
5439 'display_buf' and 'n' locals. from the cache, regardless of
5440 packet mechanims is in use. Use cache for qThreadExtra and qP
5441 methods too.
5442
5443 2018-06-29 Pedro Alves <palves@redhat.com>
5444
5445 * blockframe.c (find_pc_sect_containing_function): New function.
5446 * breakpoint.c (print_breakpoint_location): Don't call
5447 find_pc_sect_function.
5448 * linespec.c (create_sals_line_offset): Record the location's
5449 symbol in the sal.
5450 * linespec.c (convert_address_location_to_sals): Fill in sal's
5451 symbol with find_pc_sect_containing_function.
5452 * symtab.c (find_function_start_sal): Rename to ...
5453 (find_function_start_sal_1): ... this.
5454 (find_function_start_sal): Reimplement as wrapper around
5455 find_function_start_sal_1, and use
5456 find_pc_sect_containing_function to fill in the sal's symbol.
5457 (find_function_start_sal(symbol*, bool)): Adjust.
5458 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5459 comments.
5460 (find_pc_sect_containing_function): Declare.
5461
5462 2018-06-29 Pedro Alves <palves@redhat.com>
5463
5464 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5465 true if the the location has no symbol.
5466
5467 2018-06-28 Tom Tromey <tom@tromey.com>
5468
5469 * NEWS: Mention --enable-codesign.
5470 * silent-rules.mk (ECHO_SIGN): New variable.
5471 * configure.ac: Add --enable-codesign.
5472 * configure: Rebuild.
5473 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5474 (gdb$(EXEEXT)): Optionally invoke codesign.
5475
5476 2018-06-28 Pedro Alves <palves@redhat.com>
5477
5478 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5479 comments.
5480 (switch_to_thread_no_regs): Adjust comment.
5481 * infcmd.c (stop_pc): Delete.
5482 (post_create_inferior, info_program_command): Replace references
5483 to stop_pc with references to thread_info->suspend.stop_pc.
5484 * inferior.h (stop_pc): Delete declaration.
5485 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5486 (handle_inferior_event_1, handle_signal_stop)
5487 (process_event_stop_test, keep_going_stepped_thread)
5488 (handle_step_into_function, handle_step_into_function_backward)
5489 (print_stop_location): Replace references to stop_pc with
5490 references to thread_info->suspend.stop_pc.
5491 (struct infcall_suspend_state) <stop_pc>: Delete field.
5492 (save_infcall_suspend_state, restore_infcall_suspend_state):
5493 Remove references to inf_stat->stop_pc.
5494 * linux-fork.c (fork_load_infrun_state): Likewise.
5495 * record-btrace.c (record_btrace_set_replay): Likewise.
5496 * record-full.c (record_full_goto_entry): Likewise.
5497 * remote.c (print_one_stopped_thread): Likewise.
5498 * target.c (target_resume): Extend comment.
5499 * thread.c (set_executing_thread): New.
5500 (set_executing): Use it.
5501 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5502 Remove references to stop_pc.
5503
5504 2018-06-28 Pedro Alves <palves@redhat.com>
5505
5506 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5507 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5508
5509 2018-06-28 Tom Tromey <tom@tromey.com>
5510
5511 * coffread.c (coff_symfile_finish): Update.
5512 * xcoffread.c (xcoff_symfile_finish): Update.
5513 * elfread.c (elf_symfile_finish): Update.
5514 * symfile.h (dwarf2_free_objfile): Don't declare.
5515 * dwarf2read.c (_initialize_dwarf2_read): Use
5516 register_objfile_data_with_cleanup.
5517 (dwarf2_free_objfile): Now static. Change signature.
5518
5519 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5520
5521 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5522 option "-o" to add-symbol-file-load to add an offset to each
5523 section's load address.
5524 * symfile.c (set_objfile_default_section_offset): New function.
5525
5526 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5527
5528 * symfile.c (add_symbol_file_command): Make sure that sections
5529 with the same name are sorted in the same order.
5530
5531 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5532
5533 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5534 require the second argument. If omitted, load sections at the
5535 addresses specified in the file.
5536
5537 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5538
5539 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5540 (_initialize_symfile): Add option "-o" to symbol-file to add an
5541 offset to each section of the symbol file.
5542
5543 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5544
5545 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5546
5547 2018-06-27 Tom Tromey <tom@tromey.com>
5548
5549 * stack.c (_initialize_stack): Update "func" help text.
5550
5551 2018-06-27 Tom Tromey <tom@tromey.com>
5552
5553 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5554 std::vector.
5555 (unwind_infopy_str, pyuw_create_unwind_info)
5556 (unwind_infopy_add_saved_register, pyuw_sniffer)
5557 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5558 Update.
5559 (struct saved_reg): Add constructor.
5560 <value>: Now a gdbpy_ref<>.
5561
5562 2018-06-27 Tom Tromey <tom@tromey.com>
5563
5564 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5565
5566 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5567
5568 * gdb-gdb.py.in: Format using autopep8.
5569
5570 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5571
5572 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5573 (type_lookup_function): Recognize CORE_ADDR values.
5574
5575 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5576
5577 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5578 print tag_name.
5579
5580 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5581
5582 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5583 <__lt__>: Add.
5584
5585 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5586
5587 * gdb-gdb.py: Move to...
5588 * gdb-gdb.py.in: ... here.
5589 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5590 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5591 dependencies.
5592 (distclean): Remove gdb-gdb.py when cleaning.
5593 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5594 * configure: Re-generate.
5595
5596 2018-06-27 Pedro Alves <palves@redhat.com>
5597
5598 * proc-service.c (get_ps_regcache): New.
5599 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5600 (ps_lsetfpregs): Use it.
5601
5602 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5603
5604 PR gdb/21695
5605 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5606 (dwarf_decode_lines_1): Adjust.
5607
5608 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5609
5610 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5611 override.
5612 <info_proc>: Likewise.
5613
5614 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5615
5616 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5617 to windows_fetch_one_register, and only handle the case of
5618 fetching one register. Move the code that reloads the context
5619 and iterates over all registers if R is negative to...
5620 (windows_nat_target::fetch_registers): ... here.
5621 (do_windows_store_inferior_registers): Rename to
5622 windows_store_one_register, and only handle the case of storing
5623 one register. Move the code that handles the case where r is
5624 negative to...
5625 (windows_nat_target::store_registers) ... here.
5626
5627 2018-06-26 Tom Tromey <tom@tromey.com>
5628
5629 PR rust/22574:
5630 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5631 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5632 Update.
5633 (rust_internal_print_type): Add podata parameter.
5634 (rust_print_type): Update.
5635
5636 2018-06-26 Tom Tromey <tom@tromey.com>
5637
5638 * typeprint.h (struct print_offset_data) <update, finish,
5639 maybe_print_hole>: New methods.
5640 <indentation>: New constant.
5641 * typeprint.c (print_offset_data::indentation): Define.
5642 (print_offset_data::maybe_print_hole, print_offset_data::update)
5643 (print_offset_data::finish): Move from c-typeprint.c and rename.
5644 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5645 (print_spaces_filtered_with_print_options): Update.
5646 (c_print_type_union_field_offset, maybe_print_hole)
5647 (c_print_type_struct_field_offset): Move to typeprint.c and
5648 rename.
5649 (c_type_print_base_struct_union): Update.
5650
5651 2018-06-25 Pedro Alves <palves@redhat.com>
5652
5653 * gdbthread.h (thread_info_ref, delete_thread)
5654 (delete_thread_silent, first_thread_of_inferior)
5655 (any_thread_of_inferior, switch_to_thread)
5656 (enable_thread_stack_temporaries)
5657 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5658 (get_last_thread_stack_temporary)
5659 (value_in_thread_stack_temporaries, can_access_registers_thread):
5660 Spell out "struct thread_info" instead of just "thread_info".
5661 * inferior.h (notice_new_inferior): Likewise.
5662
5663 2018-06-25 Pedro Alves <palves@redhat.com>
5664
5665 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5666 pass thread_info pointer to delete_thread.
5667 (windows_nat_target::detach): Pass inferior pointer to
5668 detach_inferior.
5669 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5670 delete_thread.
5671 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5672 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5673 and pass a thread_info pointer to delete_thread.
5674 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5675 pass thread_info pointer to delete_thread.
5676 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5677 delete_thread_silent call.
5678 * procfs.c (procfs_target::detach): Pass inferior pointer to
5679 detach_inferior.
5680 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5681 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5682 delete_thread_silent call.
5683 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5684 pass thread_info pointer to delete_thread.
5685 (windows_nat_target::detach): Pass inferior pointer to
5686 delete_inferior.
5687
5688 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5689
5690 * regcache.c (readable_regcache::read_part): Fix asserts.
5691 (reg_buffer::raw_collect_part): New function.
5692 (regcache::write_part): Fix asserts.
5693 (reg_buffer::raw_supply_part): New function.
5694 (regcache::transfer_regset_register): New helper function.
5695 (regcache::transfer_regset): Call new functions.
5696 (regcache_supply_regset): Use gdb_byte*.
5697 (regcache::supply_regset): Likewise.
5698 (regcache_collect_regset): Likewise.
5699 (regcache::collect_regset): Likewise.
5700 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5701 (reg_buffer::raw_supply_part): Likewise.
5702 (regcache::transfer_regset_register): Likewise.
5703 (regcache::transfer_regset): Use gdb_byte*.
5704
5705 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5706
5707 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5708
5709 2018-06-21 Pedro Alves <palves@redhat.com>
5710
5711 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5712 instead of a ptid_t. All callers adjusted.
5713 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5714 adjusted.
5715 (print_ada_task_info, display_current_task_id, task_command_1):
5716 Adjust.
5717 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5718 inferior_thread.
5719 (breakpoint_kind): Adjust.
5720 (remove_breakpoints_pid): Rename to ...
5721 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5722 pointer. All callers adjusted.
5723 (bpstat_clear_actions): Use inferior_thread.
5724 (get_bpstat_thread): New.
5725 (bpstat_do_actions): Use it.
5726 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5727 to take a thread_info pointer. All callers adjusted.
5728 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5729 (breakpoint_re_set_thread): Use inferior_thread.
5730 * breakpoint.h (struct inferior): Forward declare.
5731 (bpstat_stop_status): Update.
5732 (remove_breakpoints_pid): Delete.
5733 (remove_breakpoints_inf): New.
5734 * bsd-uthread.c (bsd_uthread_target::wait)
5735 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5736 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5737 (maint_btrace_packet_history_cmd)
5738 (maint_btrace_clear_packet_history_cmd): Adjust.
5739 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5740 inferior_thread.
5741 * cli/cli-interp.c: Include "inferior.h".
5742 * common/refcounted-object.h (struct
5743 refcounted_object_ref_policy): New.
5744 * compile/compile-object-load.c: Include gdbthread.h.
5745 (store_regs): Use inferior_thread.
5746 * corelow.c (core_target::close): Use current_inferior.
5747 (core_target_open): Adjust to use first_thread_of_inferior and use
5748 the current inferior.
5749 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5750 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5751 <thread>: ... this new field. All references adjusted.
5752 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5753 Take a thread_info pointer instead of a ptid_t.
5754 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5755 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5756 thread_info pointer instead of a ptid_t.
5757 * elfread.c: Include "inferior.h".
5758 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5759 Use inferior_thread.
5760 * eval.c (evaluate_subexp): Likewise.
5761 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5762 inferior_thread.
5763 * gdb_proc_service.h (struct thread_info): Forward declare.
5764 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5765 <thread>: ... this new field. All references adjusted.
5766 * gdbarch.h, gdbarch.c: Regenerate.
5767 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5768 'thread' parameter. All implementations and callers adjusted.
5769 * gdbthread.h (thread_info) <set_running>: New method.
5770 (delete_thread, delete_thread_silent): Take a thread_info pointer
5771 instead of a ptid.
5772 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5773 (first_thread_of_process): Delete, replaced by ...
5774 (first_thread_of_inferior): ... this new function. All callers
5775 adjusted.
5776 (any_live_thread_of_process): Delete, replaced by ...
5777 (any_live_thread_of_inferior): ... this new function. All callers
5778 adjusted.
5779 (switch_to_thread, switch_to_no_thread): Declare.
5780 (is_executing): Delete.
5781 (enable_thread_stack_temporaries): Update comment.
5782 <enable_thread_stack_temporaries>: Take a thread_info pointer
5783 instead of a ptid_t. Incref the thread.
5784 <~enable_thread_stack_temporaries>: Decref the thread.
5785 <m_ptid>: Delete
5786 <m_thr>: New.
5787 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5788 (get_last_thread_stack_temporary)
5789 (value_in_thread_stack_temporaries, can_access_registers_thread):
5790 Take a thread_info pointer instead of a ptid_t. All callers
5791 adjusted.
5792 * infcall.c (get_call_return_value): Use inferior_thread.
5793 (run_inferior_call): Work with thread pointers instead of ptid_t.
5794 (call_function_by_hand_dummy): Work with thread pointers instead
5795 of ptid_t. Use thread_info_ref.
5796 * infcmd.c (proceed_thread_callback): Access thread's state
5797 directly.
5798 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5799 access thread's state directly.
5800 (continue_command): Use inferior_thread.
5801 (info_program_command): Use find_thread_ptid and access thread
5802 state directly.
5803 (proceed_after_attach_callback): Use thread state directly.
5804 (notice_new_inferior): Take a thread_info pointer instead of a
5805 ptid_t. All callers adjusted.
5806 (exit_inferior): Take an inferior pointer instead of a pid. All
5807 callers adjusted.
5808 (exit_inferior_silent): New.
5809 (detach_inferior): Delete.
5810 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5811 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5812 (detach_inferior_command, kill_inferior_command): Use
5813 find_inferior_id instead of valid_gdb_inferior_id and
5814 gdb_inferior_id_to_pid.
5815 (inferior_command): Use inferior and thread pointers.
5816 * inferior.h (struct thread_info): Forward declare.
5817 (notice_new_inferior): Take a thread_info pointer instead of a
5818 ptid_t. All callers adjusted.
5819 (detach_inferior): Delete declaration.
5820 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5821 instead of a pid. All callers adjusted.
5822 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5823 (valid_gdb_inferior_id): Delete.
5824 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5825 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5826 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5827 ...
5828 <inf>: ... this new field.
5829 <step_ptid>: Delete, replaced by ...
5830 <step_thread>: ... this new field.
5831 (get_displaced_stepping_state): Take an inferior pointer instead
5832 of a pid. All callers adjusted.
5833 (displaced_step_in_progress_any_inferior): Adjust.
5834 (displaced_step_in_progress_thread): Take a thread pointer instead
5835 of a ptid_t. All callers adjusted.
5836 (displaced_step_in_progress, add_displaced_stepping_state): Take
5837 an inferior pointer instead of a pid. All callers adjusted.
5838 (get_displaced_step_closure_by_addr): Adjust.
5839 (remove_displaced_stepping_state): Take an inferior pointer
5840 instead of a pid. All callers adjusted.
5841 (displaced_step_prepare_throw, displaced_step_prepare)
5842 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5843 All callers adjusted.
5844 (start_step_over): Adjust.
5845 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5846 displaced step queue.
5847 (do_target_resume): Adjust.
5848 (fetch_inferior_event): Use inferior_thread.
5849 (context_switch, get_inferior_stop_soon): Take an
5850 execution_control_state pointer instead of a ptid_t. All callers
5851 adjusted.
5852 (switch_to_thread_cleanup): Delete.
5853 (stop_all_threads): Use scoped_restore_current_thread.
5854 * inline-frame.c: Include "gdbthread.h".
5855 (inline_state) <inline_state>: Take a thread pointer instead of a
5856 ptid_t. All callers adjusted.
5857 <ptid>: Delete, replaced by ...
5858 <thread>: ... this new field.
5859 (find_inline_frame_state): Take a thread pointer instead of a
5860 ptid_t. All callers adjusted.
5861 (skip_inline_frames, step_into_inline_frame)
5862 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5863 pointer instead of a ptid_t. All callers adjusted.
5864 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5865 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5866 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5867 pointers directly.
5868 * linux-nat.c (get_detach_signal): Likewise.
5869 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5870 (thread_db_notice_clone): Adjust.
5871 (thread_db_find_new_threads_silently)
5872 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5873 a thread pointer instead of a ptid_t. All callers adjusted.
5874 * mi/mi-cmd-var.c: Include "inferior.h".
5875 (mi_cmd_var_update_iter): Update to use thread pointers.
5876 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5877 inferior directly.
5878 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5879 out to ...
5880 (mi_output_running): ... this new function.
5881 (mi_on_resume_1): Adjust to use it.
5882 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5883 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5884 directly.
5885 (interrupt_thread_callback): : Adjust to use thread and inferior
5886 pointers.
5887 * proc-service.c: Include "gdbthread.h".
5888 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5889 * progspace-and-thread.c: Include "inferior.h".
5890 * progspace.c: Include "inferior.h".
5891 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5892 hold a reference to an inferior_object.
5893 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5894 inferior_thread.
5895 * python/py-inferior.c (struct inferior_object): Give the type a
5896 tag name instead of a typedef.
5897 (python_on_normal_stop): No need to check if the current thread is
5898 listed.
5899 (inferior_to_inferior_object): Change return type to
5900 inferior_object. All callers adjusted.
5901 (find_thread_object): Delete, bits factored out to ...
5902 (thread_to_thread_object): ... this new function.
5903 * python/py-infthread.c (create_thread_object): Use
5904 inferior_to_inferior_object.
5905 (thpy_is_stopped): Use thread pointer directly.
5906 (gdbpy_selected_thread): Use inferior_thread.
5907 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5908 field, replaced with ...
5909 <thread>: ... this new field. All users adjusted.
5910 (btpy_insn_or_gap_new): Drop const.
5911 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5912 callers adjusted.
5913 * python/py-record.c: Include "gdbthread.h".
5914 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5915 a ptid_t. All callers adjusted.
5916 (gdbpy_current_recording): Use inferior_thread.
5917 * python/py-record.h (recpy_record_object) <ptid>: Delete
5918 field, replaced with ...
5919 <thread>: ... this new field. All users adjusted.
5920 (recpy_element_object) <ptid>: Delete
5921 field, replaced with ...
5922 <thread>: ... this new field. All users adjusted.
5923 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5924 a ptid_t. All callers adjusted.
5925 * python/py-threadevent.c: Include "gdbthread.h".
5926 (get_event_thread): Use thread_to_thread_object.
5927 * python/python-internal.h (struct inferior_object): Forward
5928 declare.
5929 (find_thread_object, find_inferior_object): Delete declarations.
5930 (thread_to_thread_object, inferior_to_inferior_object): New
5931 declarations.
5932 * record-btrace.c: Include "inferior.h".
5933 (require_btrace_thread): Use inferior_thread.
5934 (record_btrace_frame_sniffer)
5935 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5936 (get_thread_current_frame): Use scoped_restore_current_thread and
5937 switch_to_thread.
5938 (get_thread_current_frame): Use thread pointer directly.
5939 (record_btrace_replay_at_breakpoint): Use thread's inferior
5940 pointer directly.
5941 * record-full.c: Include "inferior.h".
5942 * regcache.c: Include "gdbthread.h".
5943 (get_thread_arch_regcache): Use the inferior's address space
5944 directly.
5945 (get_thread_regcache, registers_changed_thread): New.
5946 * regcache.h (get_thread_regcache(thread_info *thread)): New
5947 overload.
5948 (registers_changed_thread): New.
5949 (remote_target) <remote_detach_1>: Swap order of parameters.
5950 (remote_add_thread): <remote_add_thread>: Return the new thread.
5951 (get_remote_thread_info(ptid_t)): New overload.
5952 (remote_target::remote_notice_new_inferior): Use thread pointers
5953 directly.
5954 (remote_target::process_initial_stop_replies): Use
5955 thread_info::set_running.
5956 (remote_target::remote_detach_1, remote_target::detach)
5957 (extended_remote_target::detach): Adjust.
5958 * stack.c (frame_show_address): Use inferior_thread.
5959 * target-debug.h (target_debug_print_thread_info_pp): New.
5960 * target-delegates.c: Regenerate.
5961 * target.c (default_thread_address_space): Delete.
5962 (memory_xfer_partial_1): Use current_inferior.
5963 (target_detach): Use current_inferior.
5964 (target_thread_address_space): Delete.
5965 (generic_mourn_inferior): Use current_inferior.
5966 * target.h (struct target_ops) <thread_address_space>: Delete.
5967 (target_thread_address_space): Delete.
5968 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5969 pointers directly.
5970 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5971 thread pointer instead of a ptid_t. Adjust all callers.
5972 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5973 (first_thread_of_process): Delete, replaced by ...
5974 (first_thread_of_inferior): ... this new function. All callers
5975 adjusted.
5976 (any_thread_of_process): Rename to ...
5977 (any_thread_of_inferior): ... this, and take an inferior pointer.
5978 (any_live_thread_of_process): Rename to ...
5979 (any_live_thread_of_inferior): ... this, and take an inferior
5980 pointer.
5981 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5982 (value_in_thread_stack_temporaries)
5983 (get_last_thread_stack_temporary): Take a thread pointer instead
5984 of a ptid_t. Adjust all callers.
5985 (thread_info::set_running): New.
5986 (validate_registers_access): Use inferior_thread.
5987 (can_access_registers_ptid): Rename to ...
5988 (can_access_registers_thread): ... this, and take a thread
5989 pointer.
5990 (print_thread_info_1): Adjust to compare thread pointers instead
5991 of ptids.
5992 (switch_to_no_thread, switch_to_thread): Make extern.
5993 (scoped_restore_current_thread::~scoped_restore_current_thread):
5994 Use m_thread pointer directly.
5995 (scoped_restore_current_thread::scoped_restore_current_thread):
5996 Use inferior_thread.
5997 (thread_command): Use thread pointer directly.
5998 (thread_num_make_value_helper): Use inferior_thread.
5999 * top.c (execute_command): Use inferior_thread.
6000 * tui/tui-interp.c: Include "inferior.h".
6001 * varobj.c (varobj_create): Use inferior_thread.
6002 (value_of_root_1): Use find_thread_global_id instead of
6003 global_thread_id_to_ptid.
6004
6005 2018-06-21 Alan Hayward <alan.hayward@arm.com>
6006
6007 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6008 possible.
6009 (regcache::write_part): Likewise.
6010 (readable_regcache::cooked_read_part): Update comment.
6011 (readable_regcache::cooked_write_part): Likewise.
6012 * regcache.h: (readable_regcache::read_part): Likewise.
6013 (regcache::write_part): Likewise.
6014
6015 2018-06-21 Richard Bunt <richard.bunt@arm.com>
6016 Dirk Schubert <dirk.schubert@arm.com>
6017
6018 * aarch64-linux-nat.c (post_attach): New.
6019 (aarch64_linux_nat_target::post_attach): Override post_attach to
6020 record the number of hardware debug registers.
6021
6022 2018-06-20 Tom Tromey <tom@tromey.com>
6023
6024 * python/py-param.c (add_setshow_generic): Make parameters const.
6025 (parmpy_init): Update.
6026
6027 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6028
6029 * regcache.h (regcache_cooked_read_ftype): Rename to...
6030 (register_read_ftype): ...this, change type to function_view.
6031 (class reg_buffer) <save>: Remove src parameter.
6032 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6033 parameter non-const in first overload. Remove src parameter in
6034 second overload.
6035 * regcache.c (do_cooked_read): Remove.
6036 (readonly_detached_regcache::readonly_detached_regcache): Make
6037 parameter non-const, adjust call to other constructor.
6038 (reg_buffer::save): Remove src parameter.
6039 * frame.c (do_frame_register_read): Remove.
6040 (frame_save_as_regcache): Use lambda function.
6041 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6042 parameter to ppu2spu_data *.
6043 (ppu2spu_sniffer): Use lambda function.
6044
6045 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6046
6047 * record-full.c (record_full_target::insert_breakpoint): Remove
6048 "struct" keyword, add const.
6049
6050 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6051
6052 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6053 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6054 * configure.ac: Remove AC_PREREQ, add missing quoting.
6055 * gnulib/configure.ac: Modernize usage of
6056 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6057 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6058 (AUTOMAKE_VERSION): Bump to 1.15.1.
6059 * configure: Re-generate.
6060 * config.in: Re-generate.
6061 * aclocal.m4: Re-generate.
6062 * gnulib/aclocal.m4: Re-generate.
6063 * gnulib/config.in: Re-generate.
6064 * gnulib/configure: Re-generate.
6065 * gnulib/import/Makefile.in: Re-generate.
6066
6067 2018-06-19 Pedro Alves <palves@redhat.com>
6068
6069 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6070 (lookup_minimal_symbol_by_pc_section): ... here with
6071 gdb_assert_not_reached added.
6072
6073 2018-06-19 Pedro Alves <palves@redhat.com>
6074
6075 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6076 parameter with a block parameter. Compare location's block symbol
6077 with the frame's block instead of addresses.
6078 (skip_inline_frames): Pass the current block instead of the
6079 frame's address. Break out as soon as we determine the frame
6080 should not be skipped.
6081
6082 2018-06-18 Tom Tromey <tom@tromey.com>
6083
6084 * solib-aix.c (solib_aix_get_section_offsets): Return
6085 unique_xmalloc_ptr.
6086 (solib_aix_solib_create_inferior_hook): Update.
6087
6088 2018-06-18 Tom Tromey <tom@tromey.com>
6089
6090 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6091
6092 2018-06-18 Tom Tromey <tom@tromey.com>
6093
6094 * solib-frv.c (frv_relocate_main_executable): Use
6095 unique_xmalloc_ptr.
6096 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6097 unique_xmalloc_ptr.
6098
6099 2018-06-18 Tom Tromey <tom@tromey.com>
6100
6101 * objfiles.h (inhibit_section_map_updates): Update.
6102 (resume_section_map_updates, resume_section_map_updates_cleanup):
6103 Remove.
6104 * solib-svr4.c (svr4_handle_solib_event): Update.
6105 * objfiles.c (inhibit_section_map_updates): Return
6106 scoped_restore_tmpl<int>.
6107 (resume_section_map_updates, resume_section_map_updates_cleanup):
6108 Remove.
6109
6110 2018-06-18 Tom Tromey <tom@tromey.com>
6111
6112 * valprint.h (read_string): Update.
6113 * valprint.c (read_string): Change type of "buffer".
6114 (val_print_string): Update.
6115 * python/py-value.c (valpy_string): Update.
6116 * language.h (struct language_defn) <la_get_string>: Change
6117 type of "buffer".
6118 (default_get_string, c_get_string): Update.
6119 * language.c (default_get_string): Change type of "buffer".
6120 * guile/scm-value.c (gdbscm_value_to_string): Update.
6121 * c-lang.c (c_get_string): Change type of "buffer".
6122
6123 2018-06-18 Tom Tromey <tom@tromey.com>
6124
6125 * ser-mingw.c (struct pipe_state_destroyer): New.
6126 (pipe_state_up): New typedef.
6127 (cleanup_pipe_state): Remove.
6128 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6129
6130 2018-06-18 Tom Tromey <tom@tromey.com>
6131
6132 * rust-lang.h (rust_yyerror): Don't declare.
6133 * rust-lang.c (rust_language_defn): Update.
6134 * rust-exp.y (yyerror): Now static.
6135 * parse.c (parse_exp_in_context_1): Update.
6136 * p-lang.h (p_yyerror): Don't declare.
6137 * p-lang.c (p_language_defn): Update.
6138 * p-exp.y (yyerror): Now static.
6139 * opencl-lang.c (opencl_language_defn): Update.
6140 * objc-lang.c (objc_language_defn): Update.
6141 * m2-lang.h (m2_yyerror): Don't declare.
6142 * m2-lang.c (m2_language_defn): Update.
6143 * m2-exp.y (yyerror): Now static.
6144 * language.h (struct language_defn) <la_error>: Remove.
6145 * language.c (unk_lang_error): Remove.
6146 (unknown_language_defn, auto_language_defn): Remove.
6147 * go-lang.h (go_yyerror): Don't declare.
6148 * go-lang.c (go_language_defn): Update.
6149 * go-exp.y (yyerror): Now static.
6150 * f-lang.h (f_yyerror): Don't declare.
6151 * f-lang.c (f_language_defn): Update.
6152 * f-exp.y (yyerror): Now static.
6153 * d-lang.h (d_yyerror): Don't declare.
6154 * d-lang.c (d_language_defn): Update.
6155 * d-exp.y (yyerror): Now static.
6156 * c-lang.h (c_yyerror): Don't declare.
6157 * c-lang.c (c_language_defn, cplus_language_defn)
6158 (asm_language_defn, minimal_language_defn): Update.
6159 * c-exp.y (yyerror): Now static.
6160 * ada-lang.h (ada_yyerror): Don't declare.
6161 * ada-lang.c (ada_language_defn): Update.
6162 * ada-exp.y (yyerror): Now static.
6163
6164 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6165
6166 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6167 (store_sveregs_to_thread): Likewise.
6168 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6169 (aarch64_linux_store_inferior_registers): Likewise.
6170 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6171 function.
6172 (aarch64_sve_regs_copy_to_regcache): Likewise.
6173 (aarch64_sve_regs_copy_from_regcache): Likewise.
6174 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6175 declaration.
6176 (aarch64_sve_regs_copy_to_regcache): Likewise.
6177 (aarch64_sve_regs_copy_from_regcache): Likewise.
6178 (sve_context): Structure from Linux headers.
6179 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6180 (SVE_SIG_ZREG_SIZE): Likewise.
6181 (SVE_SIG_PREG_SIZE): Likewise.
6182 (SVE_SIG_FFR_SIZE): Likewise.
6183 (SVE_SIG_REGS_OFFSET): Likewise.
6184 (SVE_SIG_ZREGS_OFFSET): Likewise.
6185 (SVE_SIG_ZREG_OFFSET): Likewise.
6186 (SVE_SIG_ZREGS_SIZE): Likewise.
6187 (SVE_SIG_PREGS_OFFSET): Likewise.
6188 (SVE_SIG_PREG_OFFSET): Likewise.
6189 (SVE_SIG_PREGS_SIZE): Likewise.
6190 (SVE_SIG_FFR_OFFSET): Likewise.
6191 (SVE_SIG_REGS_SIZE): Likewise.
6192 (SVE_SIG_CONTEXT_SIZE): Likewise.
6193 (SVE_PT_REGS_MASK): Likewise.
6194 (SVE_PT_REGS_FPSIMD): Likewise.
6195 (SVE_PT_REGS_SVE): Likewise.
6196 (SVE_PT_VL_INHERIT): Likewise.
6197 (SVE_PT_VL_ONEXEC): Likewise.
6198 (SVE_PT_REGS_OFFSET): Likewise.
6199 (SVE_PT_FPSIMD_OFFSET): Likewise.
6200 (SVE_PT_FPSIMD_SIZE): Likewise.
6201 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6202 (SVE_PT_SVE_PREG_SIZE): Likewise.
6203 (SVE_PT_SVE_FFR_SIZE): Likewise.
6204 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6205 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6206 (__SVE_SIG_TO_PT): Likewise.
6207 (SVE_PT_SVE_OFFSET): Likewise.
6208 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6209 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6210 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6211 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6212 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6213 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6214 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6215 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6216 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6217 (SVE_PT_SVE_SIZE): Likewise.
6218 (SVE_PT_SIZE): Likewise.
6219 (HAS_SVE_STATE): New define.
6220
6221 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6222
6223 * nat/aarch64-sve-linux-sigcontext.h: New file.
6224 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6225 new files.
6226 (SVE_VQ_MIN): Likewise.
6227 (SVE_VQ_MAX): Likewise.
6228 (SVE_VL_MIN): Likewise.
6229 (SVE_VL_MAX): Likewise.
6230 (SVE_NUM_ZREGS): Likewise.
6231 (SVE_NUM_PREGS): Likewise.
6232 (sve_vl_valid): Likewise.
6233 (struct user_sve_header): Likewise.
6234
6235 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6236 Richard Bunt <Richard.Bunt@arm.com>
6237
6238 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6239 was requested by GDB.
6240
6241 2018-06-15 Tom de Vries <tdevries@suse.de>
6242
6243 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6244
6245 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * gnulib/update-gnulib.sh: Print expected versions of
6248 autoconf/aclocal.
6249
6250 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6251
6252 * arch-utils.c (default_type_align): Use type_length_units.
6253 * gdbtypes.c (type_align): Use type_length_units.
6254
6255 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6256
6257 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6258 of 'define' command.
6259
6260 2018-06-14 Tom de Vries <tdevries@suse.de>
6261
6262 PR cli/22573
6263 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6264 get_no_prettyformat_print_options.
6265
6266 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6267
6268 * sparc-nat.h: Include target.h.
6269 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6270 <fetch_registers>: Remove this argument in function call.
6271 <store_registers>: Remove this argument in function call, remove
6272 extra semicolon.
6273 <low_forget_process>: Call sparc64_forget_process instead of
6274 sparc_forget_process.
6275
6276 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6277
6278 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6279 (procfs_target::make_corefile_notes): Adjust to new
6280 target_read_alloc return type.
6281
6282 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6283 Stephen Roberts <stephen.roberts@arm.com>
6284
6285 PR gdb/22882
6286 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6287 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6288 Move should_notify_stop local into more inner scope.
6289
6290 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6291 Stephen Roberts <stephen.roberts@arm.com>
6292
6293 PR gdb/22882
6294 * infrun.c (resume_1): Add call to mark_async_event_handler.
6295
6296 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6297
6298 * infrun.c (do_target_wait): Change old version of $pc printed.
6299
6300 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6301
6302 * dwarf2read.c (read_index_from_section): Rename to...
6303 (read_gdb_index_from_section): ... this, update all callers.
6304 (dwarf2_read_index): Rename to...
6305 (dwarf2_read_gdb_index): ... this, update all callers.
6306
6307 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6308
6309 * gdb/hppa-linux-nat.c
6310 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6311 hppa_linux_nat_target::fetch_registers.
6312
6313 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6314
6315 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6316 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6317 (AARCH64_DWARF_SVE_FFR): Likewise.
6318 (AARCH64_DWARF_SVE_P0): Likewise.
6319 (AARCH64_DWARF_SVE_Z0): Likewise.
6320
6321 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6322
6323 * common/common-regcache.h (raw_compare): New function.
6324 * regcache.c (regcache::raw_compare): Likewise.
6325 * regcache.h (regcache::raw_compare): New declaration.
6326
6327 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6328
6329 * common/common-regcache.h (reg_buffer_common): New structure.
6330 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6331 (reg_buffer::raw_supply): Likewise.
6332 (reg_buffer::raw_supply_integer): Likewise.
6333 (reg_buffer::raw_supply_zeroed): Likewise.
6334 (reg_buffer::raw_collect): Likewise.
6335 (reg_buffer::raw_collect_integer): Likewise.
6336 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6337 (reg_buffer::raw_supply): Likewise.
6338 (reg_buffer::raw_supply_integer): Likewise.
6339 (reg_buffer::raw_supply_zeroed): Likewise.
6340 (reg_buffer::raw_collect): Likewise.
6341 (reg_buffer::raw_collect_integer): Likewise.
6342
6343 2018-06-10 Tom Tromey <tom@tromey.com>
6344
6345 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6346 (class remote_state) <stop_reply_queue>: Now std::vector.
6347 (remote_state::~remote_state)
6348 (remote_target::stop_reply_queue_length): Update.
6349 (struct queue_iter_param, remove_child_of_pending_fork)
6350 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6351 (check_pending_event_prevents_wildcard_vcont_callback)
6352 (remove_stop_reply_for_inferior)
6353 (remove_stop_reply_of_remote_state)
6354 (remote_notif_remove_once_on_match)
6355 (stop_reply_match_ptid_and_ws)
6356 (remote_kill_child_of_pending_fork): Remove.
6357 (remote_target::remove_new_fork_children)
6358 (remote_target::check_pending_events_prevent_wildcard_vcont)
6359 (remote_target::discard_pending_stop_replies)
6360 (remote_target::discard_pending_stop_replies_in_queue)
6361 (remote_target::remote_notif_remove_queued_reply)
6362 (remote_target::queued_stop_reply)
6363 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6364 (remote_target::wait, remote_target::kill_new_fork_children)
6365 (remote_target::async): Update.
6366
6367 2018-06-10 Tom Tromey <tom@tromey.com>
6368
6369 * record-full.c (record_full_arch_list_cleanups): Remove.
6370 (record_full_message): Use try/catch.
6371 (record_full_wait_cleanups): Remove.
6372 (record_full_wait_1): Use try/catch.
6373 (record_full_restore): Likewise.
6374
6375 2018-06-10 Tom Tromey <tom@tromey.com>
6376
6377 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6378 declare VEC. Add constructor.
6379 <in_target_beneath>: Now bool.
6380 (record_full_breakpoints): Now a std::vector, static.
6381 (record_full_sync_record_breakpoints)
6382 (record_full_init_record_breakpoints)
6383 (record_full_target::insert_breakpoint)
6384 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6385
6386 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6387
6388 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6389 * serial.c (serial_interface_lookup): Remove struct keyword.
6390
6391 2018-06-10 Tom Tromey <tom@tromey.com>
6392
6393 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6394 method.
6395 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6396 a method.
6397 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6398 method.
6399 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6400 "beneath" as a method.
6401 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6402 Use "beneath" as a method.
6403
6404 2018-06-10 Tom Tromey <tom@tromey.com>
6405
6406 * tracefile.c (struct trace_file_writer_deleter): New.
6407 <operator()>: Rename from trace_file_writer_xfree.
6408 (trace_file_writer_up): New typedef.
6409 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6410
6411 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6412
6413 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6414 <m_registers, m_register_status>: Change type to
6415 std::unique_ptr.
6416 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6417 XCNEWVEC.
6418
6419 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * common/common-regcache.h (enum register_status): Add
6422 underlying type "signed char".
6423 * regcache.h (reg_buffer) <m_register_status>: Change type to
6424 register_status *.
6425 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6426 register_status instead of signed char.
6427 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6428 (reg_buffer::get_register_status): Remove cast.
6429 (readable_regcache::raw_read): Remove cast.
6430 (readable_regcache::cooked_read): Remove cast.
6431
6432 2018-06-09 Tom Tromey <tom@tromey.com>
6433
6434 * source.c (reverse_search_command, forward_search_command): Use
6435 scoped_fd.
6436
6437 2018-06-09 Tom Tromey <tom@tromey.com>
6438
6439 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6440 (serial_ops_list): Now static, std::vector.
6441 (serial_interface_lookup, serial_add_interface): Update.
6442
6443 2018-06-09 Tom Tromey <tom@tromey.com>
6444
6445 * dwarf2read.c (process_cu_includes): Update.
6446 (process_full_comp_unit): Update.
6447 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6448 std::vector.
6449
6450 2018-06-08 Paul Koning <paul_koning@dell.com>
6451
6452 PR gdb/23252
6453
6454 * python/python.c (do_start_initialization):
6455 Avoid call to internal Python API.
6456 (init__gdb_module): New function.
6457
6458 2018-06-08 Gary Benson <gbenson@redhat.com>
6459
6460 * linux-thread-db.c (valprint.h): New include.
6461 (struct check_thread_db_info): New structure.
6462 (check_thread_db_on_load, tdb_testinfo): New static globals.
6463 (check_thread_db, check_thread_db_callback): New functions.
6464 (try_thread_db_load_1): Run integrity checks if requested.
6465 (maintenance_check_libthread_db): New function.
6466 (_initialize_thread_db): Register "maint check libthread-db"
6467 and "maint set/show check-libthread-db".
6468 * NEWS: Mention the above new commands.
6469
6470 2018-06-08 Tom Tromey <tom@tromey.com>
6471
6472 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6473 now a method.
6474
6475 2018-06-08 Tom Tromey <tom@tromey.com>
6476
6477 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6478
6479 2018-06-08 Tom Tromey <tom@tromey.com>
6480
6481 * common/btrace-common.h (struct btrace_data): Add constructor,
6482 destructor, move assignment operator.
6483 <empty, clear, fini>: New methods.
6484 <format>: Initialize.
6485 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6486 (btrace_data_empty): Don't declare.
6487 * common/btrace-common.c (btrace_data_init): Remove.
6488 (btrace_data::fini): Rename from btrace_data_fini.
6489 (btrace_data::empty): Rename from btrace_data_empty.
6490 (btrace_data::clear): Rename from btrace_data_clear. Return
6491 bool.
6492 * btrace.h (make_cleanup_btrace_data): Don't declare.
6493 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6494 (parse_xml_btrace): Update.
6495 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6496 (maint_btrace_clear_packet_history_cmd): Update.
6497
6498 2018-06-07 Pedro Alves <palves@redhat.com>
6499
6500 * target.h (target_ops) <beneath>: Now a method. All references
6501 updated.
6502 (class target_stack): New.
6503 * target.c (g_target_stack): New.
6504 (g_current_top_target): Delete.
6505 (current_top_target): Get the top target out of g_target_stack.
6506 (target_stack::push, target_stack::unpush): New.
6507 (push_target, unpush_target): Reimplement.
6508 (target_is_pushed): Reimplement in terms of g_target_stack.
6509 (target_ops::beneath, target_stack::find_beneath): New.
6510
6511 2018-06-07 Pedro Alves <palves@redhat.com>
6512
6513 * target.h (find_target_beneath): Delete declaration.
6514 * target.c (find_target_beneath): Delete definition.
6515 * aix-thread.c: All callers of find_target_beneath adjusted to
6516 call target_ops::beneath instead.
6517 * bsd-uthread.c: Likewise.
6518 * linux-thread-db.c: Likewise.
6519 * ravenscar-thread.c: Likewise.
6520 * sol-thread.c: Likewise.
6521 * spu-multiarch.c: Likewise.
6522
6523 2018-06-07 Pedro Alves <palves@redhat.com>
6524
6525 * target.h (target_ops) <beneath>: Now a method. All references
6526 updated.
6527 (target_ops) <m_beneath>: New.
6528 * target.c (target_ops::beneath): New.
6529 * corelow.c: Adjust all references to target_ops::beneath.
6530 * linux-thread-db.c: Likewise.
6531 * make-target-delegates: Likewise.
6532 * record-btrace.c: Likewise.
6533 * record-full.c: Likewise.
6534 * remote.c: Likewise.
6535 * target.c: Likewise.
6536 * target-delegates.c: Regenerate.
6537
6538 2018-06-07 Pedro Alves <palves@redhat.com>
6539
6540 * target.h (target_stack): Delete.
6541 (current_top_target): Declare function.
6542 * target.c (target_stack): Delete.
6543 (g_current_top_target): New.
6544 (current_top_target): New function.
6545 * auxv.c: Use current_top_target instead of target_stack
6546 throughout.
6547 * avr-tdep.c: Likewise.
6548 * breakpoint.c: Likewise.
6549 * corefile.c: Likewise.
6550 * elfread.c: Likewise.
6551 * eval.c: Likewise.
6552 * exceptions.c: Likewise.
6553 * frame.c: Likewise.
6554 * gdbarch-selftests.c: Likewise.
6555 * gnu-v3-abi.c: Likewise.
6556 * ia64-tdep.c: Likewise.
6557 * ia64-vms-tdep.c: Likewise.
6558 * infcall.c: Likewise.
6559 * infcmd.c: Likewise.
6560 * infrun.c: Likewise.
6561 * linespec.c: Likewise.
6562 * linux-tdep.c: Likewise.
6563 * minsyms.c: Likewise.
6564 * ppc-linux-nat.c: Likewise.
6565 * ppc-linux-tdep.c: Likewise.
6566 * procfs.c: Likewise.
6567 * regcache.c: Likewise.
6568 * remote.c: Likewise.
6569 * rs6000-tdep.c: Likewise.
6570 * s390-linux-nat.c: Likewise.
6571 * s390-tdep.c: Likewise.
6572 * solib-aix.c: Likewise.
6573 * solib-darwin.c: Likewise.
6574 * solib-dsbt.c: Likewise.
6575 * solib-spu.c: Likewise.
6576 * solib-svr4.c: Likewise.
6577 * solib-target.c: Likewise.
6578 * sparc-tdep.c: Likewise.
6579 * sparc64-tdep.c: Likewise.
6580 * spu-tdep.c: Likewise.
6581 * symfile.c: Likewise.
6582 * symtab.c: Likewise.
6583 * target-descriptions.c: Likewise.
6584 * target-memory.c: Likewise.
6585 * target.c: Likewise.
6586 * target.h: Likewise.
6587 * tracefile-tfile.c: Likewise.
6588 * tracepoint.c: Likewise.
6589 * valops.c: Likewise.
6590 * valprint.c: Likewise.
6591 * value.c: Likewise.
6592 * windows-tdep.c: Likewise.
6593 * mi/mi-main.c: Likewise.
6594
6595 2018-06-07 Tom Tromey <tom@tromey.com>
6596
6597 * valprint.h (build_address_symbolic): Declare.
6598 * printcmd.c (print_address_symbolic): Update.
6599 (build_address_symbolic): Change "name" and "filename" to
6600 std::string.
6601 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6602 Update.
6603 * defs.h (build_address_symbolic): Remove declaration.
6604
6605 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6606
6607 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6608 (aarch64_vnv_type): Add function.
6609 (aarch64_pseudo_register_name): Add V regs for SVE.
6610 (aarch64_pseudo_register_type): Likewise.
6611 (aarch64_pseudo_register_reggroup_p): Likewise.
6612 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6613 (aarch64_pseudo_read_value): Add V regs for SVE.
6614 (aarch64_pseudo_write_2): Use V0 offset for SVE
6615 (aarch64_pseudo_write): Add V regs for SVE.
6616 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6617
6618 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6619
6620 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6621 (sve_vl_from_vq): Likewise.
6622
6623 2018-06-05 Tom Tromey <tom@tromey.com>
6624
6625 * cli/cli-cmds.c (show_version): Update.
6626 * top.c (print_gdb_version): Add "interactive" parameter.
6627 Update.
6628 * main.c (captured_main_1): Update.
6629 * top.h (print_gdb_version): Add "interactive" parameter and a
6630 comment.
6631
6632 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6633
6634 * common/enum-flags.h: Add trailing semicolon to example in
6635 comment.
6636
6637 2018-06-05 Tom Tromey <tom@tromey.com>
6638
6639 PR cli/12326:
6640 * NEWS: Add entry about pager.
6641 * utils.c (pagination_disabled_for_command): New global.
6642 (prompt_for_continue): Allow "c" response to prompt.
6643 (reinitialize_more_filter): Clear
6644 pagination_disabled_for_command.
6645 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6646
6647 2018-06-04 Tom Tromey <tom@tromey.com>
6648
6649 * ada-lang.h (ada_lookup_symbol_list): Update.
6650 * ada-lang.c (resolve_subexp): Update.
6651 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6652 parameter.
6653 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6654 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6655 results parameter to std::vector.
6656 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6657 Update.
6658 * ada-exp.y (block_lookup): Update.
6659 (select_possible_type_sym): Change type of syms. Remove nsyms
6660 parameter.
6661 (write_var_or_type, write_name_assoc): Update.
6662
6663 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6664
6665 * windows-nat.c (windows_nat_target::xfer_partial): Return
6666 TARGET_XFER_E_IO if we need to delegate to the target beneath
6667 but BENEATH is NULL.
6668
6669 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6670
6671 * Makefile.in (config.status): Add configure.nat as a
6672 dependency.
6673
6674 2018-06-04 Tom Tromey <tom@tromey.com>
6675
6676 * cp-name-parser.y (cpname_state): Add method declarations.
6677 (HANDLE_QUAL): Update.
6678 (cpname_state::d_grab, cpname_state::fill_comp)
6679 (cpname_state::make_operator, cpname_state::make_dtor)
6680 (cpname_state::make_builtin_type, cpname_state::make_name)
6681 (cpname_state::d_qualify, cpname_state::d_int_type)
6682 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6683 (%union): Move earlier.
6684
6685 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6686
6687 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6688
6689 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6690
6691 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6692 (aarch64_pseudo_write_1): Likewise.
6693 (aarch64_pseudo_read_value): Use helper.
6694 (aarch64_pseudo_write): Likewise.
6695
6696 2018-06-04 Pedro Alves <palves@redhat.com>
6697
6698 * darwin-nat.c (darwin_ops): Delete.
6699 (darwin_attach_pid): Use get_native_target.
6700
6701 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6702
6703 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6704 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6705
6706 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6707
6708 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6709 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6710 (aarch64_gdbarch_init): Check for SVE.
6711 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6712
6713 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6714
6715 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6716 * aarch64-tdep.h (aarch64_read_description): Likewise.
6717 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6718 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6719 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6720 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6721 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6722
6723 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6724
6725 * value.c (value_fetch_lazy_bitfield): New.
6726 (value_fetch_lazy_memory): New.
6727 (value_fetch_lazy_register): New.
6728 (value_fetch_lazy): Factor out to smaller functions.
6729
6730 2018-06-01 Tom Tromey <tom@tromey.com>
6731
6732 * cp-name-parser.y (backslashable, represented): Now const.
6733
6734 2018-06-01 Tom Tromey <tom@tromey.com>
6735
6736 * cp-name-parser.y: Include parser-defs.h.
6737 (parser_fprintf): Remove declaration.
6738
6739 2018-06-01 Tom Tromey <tom@tromey.com>
6740
6741 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6742 %parse-param.
6743 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6744 (global_result): Remove globals.
6745 (struct cpname_state): New.
6746 (yyparse): Don't declare.
6747 (yylex, yyerror): Move declarations after %union.
6748 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6749 (make_name): Add state parameter.
6750 Update all callers.
6751 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6752 parameter.
6753 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6754 Update.
6755 (yylex): Add lvalp, state parameters.
6756 (yyerror): Add state parameter.
6757 (cp_demangled_name_to_comp): Update.
6758
6759 2018-06-01 Tom Tromey <tom@tromey.com>
6760
6761 * cp-name-parser.y (parser_fprintf): Declare.
6762 (GDB_YY_REMAP_PREFIX): Define.
6763 Include yy-remap.h. Don't redefine yy* identifiers.
6764
6765 2018-06-01 Tom Tromey <tom@tromey.com>
6766
6767 * python/py-type.c (typy_legacy_template_argument): Update.
6768 * cp-support.h (cp_demangled_name_to_comp): Update.
6769 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6770 parameter to be a "std::string *".
6771 (main): Update.
6772
6773 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6774
6775 * ada-lex.l: Include "diagnostics.h" instead of
6776 "common/diagnostics.h".
6777 * unittests/environ-selftests.c: Likewise.
6778 * common/diagnostics.h: Moved to ../include.
6779
6780 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6781
6782 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6783 to language_mode_manual while calling breakpoint_re_set_one.
6784
6785 2018-06-01 Tom Tromey <tom@tromey.com>
6786
6787 * valops.c (value_cast_structs, destructor_name_p): Update.
6788 * symtab.c (gdb_mangle_name): Update.
6789 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6790 Update.
6791 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6792 (pascal_object_print_value_fields, pascal_object_print_value):
6793 Update.
6794 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6795 * linespec.c (find_methods): Update.
6796 * gdbtypes.h (type_name_no_tag): Remove.
6797 (type_name_or_error): Rename from type_name_no_tag_or_error.
6798 * gdbtypes.c (type_name_no_tag): Remove.
6799 (type_name_or_error): Rename from type_name_no_tag_or_error.
6800 (lookup_struct_elt_type, check_typedef): Update.
6801 * expprint.c (print_subexp_standard): Update.
6802 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6803 * d-namespace.c (d_lookup_nested_symbol): Update.
6804 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6805 (cp_print_class_member): Update.
6806 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6807 * completer.c (add_struct_fields): Update.
6808 * c-typeprint.c (cp_type_print_derivation_info)
6809 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6810 Update.
6811 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6812 (ada_prefer_type, ada_is_exception_sym): Update.
6813
6814 2018-06-01 Tom Tromey <tom@tromey.com>
6815
6816 * valops.c (enum_constant_from_type, value_namespace_elt)
6817 (value_maybe_namespace_elt): Update.
6818 * valarith.c (find_size_for_pointer_math): Update.
6819 * target-descriptions.c (make_gdb_type): Update.
6820 * symmisc.c (print_symbol): Update.
6821 * stabsread.c (define_symbol, read_type)
6822 (complain_about_struct_wipeout, add_undefined_type)
6823 (cleanup_undefined_types_1): Update.
6824 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6825 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6826 (rust_internal_print_type, rust_composite_type)
6827 (rust_evaluate_funcall, rust_evaluate_subexp)
6828 (rust_inclusive_range_type_p): Update.
6829 * python/py-type.c (typy_get_tag): Update.
6830 * p-typeprint.c (pascal_type_print_base): Update.
6831 * mdebugread.c (parse_symbol, parse_type): Update.
6832 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6833 Update.
6834 * guile/scm-type.c (gdbscm_type_tag): Update.
6835 * go-lang.c (sixg_string_p): Update.
6836 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6837 Update.
6838 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6839 (TYPE_TAG_NAME): Remove.
6840 * gdbtypes.c (type_name_no_tag): Simplify.
6841 (check_typedef, check_types_equal, recursive_dump_type)
6842 (copy_type_recursive, arch_composite_type): Update.
6843 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6844 in summary mode when needed.
6845 * eval.c (evaluate_funcall): Update.
6846 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6847 (process_structure_scope, read_enumeration_type)
6848 (read_namespace_type, read_module_type, determine_prefix): Update.
6849 * cp-support.c (inspect_type): Update.
6850 * coffread.c (process_coff_symbol, decode_base_type): Update.
6851 * c-varobj.c (c_is_path_expr_parent): Update.
6852 * c-typeprint.c (c_type_print_base_struct_union): Update.
6853 (c_type_print_base_1): Update. Print struct/class/union/enum in
6854 summary when using C language.
6855 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6856 (gen_maybe_namespace_elt): Update.
6857 * ada-lang.c (ada_type_name): Simplify.
6858 (empty_record, ada_template_to_fixed_record_type_1)
6859 (template_to_static_fixed_type)
6860 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6861
6862 2018-06-01 Tom Tromey <tom@tromey.com>
6863
6864 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6865 c_print_type.
6866 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6867 (c_print_type): Update.
6868 (c_print_type): New overload.
6869 (c_type_print_varspec_prefix, c_type_print_args)
6870 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6871 (c_type_print_base_struct_union, c_type_print_base_1)
6872 (cp_type_print_method_args): Add "language" parameter.
6873 (c_type_print_base): Update.
6874 * c-lang.h (c_print_type): Add new overload.
6875
6876 2018-06-01 Tom Tromey <tom@tromey.com>
6877
6878 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6879 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6880
6881 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6882
6883 * aarch64-tdep.c (aarch64_sve_register_names): New const
6884 var.
6885 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6886 (AARCH64_SVE_Z_REGS_NUM): New define.
6887 (AARCH64_SVE_P_REGS_NUM): Likewise.
6888 (AARCH64_SVE_NUM_REGS): Likewise.
6889
6890 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6891
6892 * nat/linux-ptrace.h [__alpha__]
6893 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6894 definitions.
6895
6896 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6897
6898 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6899 the endianness selected.
6900 * NEWS: Document `set endian auto' mode operation update.
6901
6902 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6903
6904 * Makefile.in: Add new header.
6905 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6906 (sve_vl_from_vg): Likewise.
6907 (sve_vq_from_vl): Likewise.
6908 (sve_vl_from_vq): Likewise.
6909 (sve_vq_from_vg): Likewise.
6910 (sve_vg_from_vq): Likewise.
6911 * configure.nat: Add new c file.
6912 * nat/aarch64-sve-linux-ptrace.c: New file.
6913 * nat/aarch64-sve-linux-ptrace.h: New file.
6914
6915 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6916
6917 * aarch64-linux-nat.c (aarch64_linux_read_description):
6918 Add parmeter zero.
6919 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6920 Likewise.
6921 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6922 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6923 (aarch64_gdbarch_init): Add parmeter zero.
6924 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6925 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6926 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6927 parmeter.
6928 * doc/gdb.texinfo: Describe SVE feature
6929 * features/aarch64-sve.c: New file.
6930
6931 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6932
6933 PR gdb/23210
6934 * gdbarch.sh (significant_addr_bit): Default to zero when
6935 not set by target architecture.
6936 * gdbarch.c: Re-generated.
6937 * utils.c (address_significant): Update.
6938
6939 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6940
6941 * stack.c (func_command): Remove trailing newline in call to error.
6942
6943 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6944
6945 * regcache.h (regcache_raw_collect): Remove, update callers to
6946 use regcache::raw_collect.
6947 * regcache.c (regcache_raw_collect): Remove.
6948
6949 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6950
6951 * regcache.h (regcache_raw_supply): Remove, update callers to
6952 use detached_regcache::raw_supply.
6953 * regcache.c (regcache_raw_supply): Remove.
6954
6955 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 * regcache.h (regcache_cooked_write_part): Remove, update
6958 callers to use regcache::cooked_write_part.
6959 * regcache.c (regcache_cooked_write_part): Remove.
6960
6961 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6962
6963 * regcache.h (regcache_cooked_read_part): Remove, update callers
6964 to use readable_regcache::cooked_read_part.
6965 * regcache.c (regcache_cooked_read_part): Remove.
6966
6967 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6968
6969 * regcache.h (regcache_cooked_read_value): Remove, update
6970 callers to use readable_regcache::cooked_read_value.
6971 * regcache.c (regcache_cooked_read_value): Remove.
6972
6973 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6974
6975 * regcache.h (regcache_cooked_write): Remove, update callers to
6976 use regcache::cooked_write.
6977 * regcache.c (regcache_cooked_write): Remove.
6978
6979 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6980
6981 * regcache.h (regcache_invalidate): Remove, update callers to
6982 use detached_regcache::invalidate instead.
6983 * regcache.c (regcache_invalidate): Remove.
6984
6985 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6986
6987 * regcache.h (regcache_raw_write_part): Remove, update callers
6988 to use regcache::raw_write_part instead.
6989 * regcache.c (regcache_raw_write_part): Remove.
6990
6991 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6992
6993 * regcache.h (regcache_raw_read_part): Remove, update callers to
6994 use readable_regcache::raw_read_part instead.
6995 * regcache.c (regcache_raw_read_part): Remove.
6996
6997 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6998
6999 * regcache.h (regcache_cooked_read): Remove, update callers to
7000 use readable_regcache::cooked_read instead.
7001 * regcache.c (regcache_cooked_read): Remove.
7002
7003 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7004
7005 * regcache.h (regcache_raw_write): Remove, update callers to use
7006 regcache::raw_write instead.
7007 * regcache.c (regcache_raw_write): Remove.
7008
7009 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * regcache.h (regcache_raw_read): Remove, update callers to use
7012 readable_regcache::raw_read instead.
7013 * regcache.c (regcache_raw_read): Remove.
7014
7015 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7016
7017 * regcache.h (regcache_raw_update): Remove, update callers to
7018 use readable_regcache::raw_update instead.
7019 * regcache.c (regcache_raw_update): Remove.
7020
7021 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7022
7023 * regcache.h (regcache_register_status): Remove, update callers
7024 to use reg_buffer::get_register_status directly instead.
7025 * regcache.c (regcache_register_status): Remove.
7026
7027 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7028
7029 * regcache.h (regcache_get_ptid): Remove, update all callers to
7030 call regcache::ptid instead.
7031 * regcache.c (regcache_get_ptid): Remove.
7032
7033 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7036
7037 2018-05-30 Pedro Alves <palves@redhat.com>
7038
7039 * common/common-exceptions.h (exception_rethrow): Use
7040 ATTRIBUTE_NORETURN.
7041
7042 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7043
7044 * breakpoint.c (print_solib_event, check_status_catch_solib):
7045 Remove struct keyword in range-based for loops.
7046 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7047 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7048 Likewise.
7049 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7050 Likewise.
7051 * symfile.c (addr_info_make_relative): Likewise.
7052 * thread.c (value_in_thread_stack_temporaries): Likewise.
7053
7054 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
7055
7056 PR gdb/16841
7057 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7058 aggregate type to get its real type before accessing it.
7059
7060 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
7061
7062 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7063 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7064 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7065 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7066 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7067 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7068 * printcmd.c (info_address_command): Likewise.
7069
7070 2018-05-29 Tom Tromey <tom@tromey.com>
7071
7072 * windows-nat.c (handle_exception): Update fall-through comment.
7073
7074 2018-05-29 Tom Tromey <tom@tromey.com>
7075
7076 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7077 (struct program_space) <added_solibs>: Now a std::vector.
7078 * breakpoint.c (print_solib_event): Update.
7079 (check_status_catch_solib): Update.
7080 * progspace.c (clear_program_space_solib_cache): Update.
7081 * solib.c (update_solib_list): Update.
7082
7083 2018-05-29 Tom Tromey <tom@tromey.com>
7084
7085 * python/py-type.c (typy_richcompare): Update.
7086 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7087 * gdbtypes.h (types_deeply_equal): Return bool.
7088 (types_equal): Likewise.
7089 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7090 declare VEC.
7091 (check_types_equal): Change worklist to std::vector. Return
7092 bool.
7093 (struct type_equality_entry): Add constructor.
7094 (compare_maybe_null_strings): Return bool.
7095 (check_types_worklist): Return bool. Change worklist to
7096 std::vector.
7097 (types_deeply_equal): Use std::vector.
7098 (types_equal): Return bool.
7099 (compare_maybe_null_strings): Simplify.
7100
7101 2018-05-29 Tom Tromey <tom@tromey.com>
7102
7103 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7104
7105 2018-05-29 Tom Tromey <tom@tromey.com>
7106
7107 * objc-lang.h: Don't include cp-support.h.
7108 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7109 declare VEC.
7110
7111 2018-05-27 Tom Tromey <tom@tromey.com>
7112
7113 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7114
7115 2018-05-25 Tom Tromey <tom@tromey.com>
7116
7117 * value.c (value::location): Initialize.
7118
7119 2018-05-25 Tom Tromey <tom@tromey.com>
7120
7121 * dbxread.c (init_bincl_list): Remove.
7122 (bincl_list): Now a std::vector.
7123 (bincls_allocated, next_bincl): Remove.
7124 (free_bincl_list, do_free_bincl_list_cleanup)
7125 (make_cleanup_free_bincl_list): Remove.
7126 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7127 unique_xmalloc_ptr.
7128 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7129 (struct header_file_location): Add constructor.
7130 (add_bincl_to_list): Remove.
7131
7132 2018-05-25 Tom Tromey <tom@tromey.com>
7133
7134 * tui/tui.c (tui_enable): Update.
7135 * mi/mi-interp.c (mi_interp::init): Update.
7136 * interps.h (class interp) <name>: New method.
7137 <m_name>: Rename from name.
7138 (~scoped_restore_interp): Update.
7139 * interps.c (interp::interp): Update.
7140 (interp_add, interp_set, interp_lookup_existing)
7141 (current_interp_named_p): Update.
7142
7143 2018-05-25 Tom Tromey <tom@tromey.com>
7144
7145 * interps.c (interp_name): Remove.
7146 * mi/mi-interp.c (mi_interp::init): Update.
7147 * interps.h (interp_name): Remove.
7148 (~scoped_restore_interp): Update.
7149 * tui/tui.c (tui_enable): Update.
7150
7151 2018-05-25 Tom Tromey <tom@tromey.com>
7152
7153 * utils.c (fputs_maybe_filtered): Update.
7154 * linespec.c (decode_line_full): Update.
7155 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7156 (mi_print_breakpoint_for_event, mi_solib_loaded)
7157 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7158 (mi_user_selected_context_changed): Update.
7159 * mi/mi-main.c (mi_execute_command): Update.
7160 * cli/cli-script.c (execute_control_command): Update.
7161 * python/python.c (execute_gdb_command): Update.
7162 * solib.c (info_sharedlibrary_command): Update.
7163 * interps.c (interp_ui_out): Remove.
7164 * interps.h (interp_ui_out): Remove.
7165
7166 2018-05-25 Tom Tromey <tom@tromey.com>
7167
7168 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7169 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7170 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7171
7172 2018-05-25 Tom Tromey <tom@tromey.com>
7173
7174 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7175 * interps.c (interp_exec): Use scoped_restore.
7176
7177 2018-05-25 Tom Tromey <tom@tromey.com>
7178
7179 * remote.c (remote_target::remote_file_get): Use
7180 gdb::byte_vector.
7181 (remote_target::remote_file_put): Likewise.
7182
7183 2018-05-25 Tom Tromey <tom@tromey.com>
7184
7185 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7186 a std::string.
7187 (get_pe_section_index, add_pe_exported_sym): Update.
7188 (read_pe_exported_syms): Use gdb::def_vector.
7189
7190 2018-05-25 Tom Tromey <tom@tromey.com>
7191
7192 * frame.c (remove_prev_frame): Remove.
7193 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7194
7195 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7196
7197 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7198 Remove prototypes.
7199 * mips-linux-nat.c (supply_fpregset): Always call
7200 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7201 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7202 `mips_fill_fpregset'.
7203 * mips-linux-tdep.c (mips_supply_fpregset)
7204 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7205 (mips_fill_fpregset_wrapper): Remove functions.
7206 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7207 (mips_linux_fpregset): Remove variable.
7208 (mips_linux_iterate_over_regset_sections): Use
7209 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7210 (mips_linux_o32_sigframe_init): Remove comment.
7211
7212 2018-05-25 Pedro Alves <palves@redhat.com>
7213
7214 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7215 (struct readahead_cache, struct packet_reg, struct
7216 remote_arch_state, class remote_state): Move higher up in the
7217 file.
7218 (remote_target::m_remote_state): Now an object instead of a pointer.
7219 (remote_target::get_remote_state): Adjust.
7220
7221 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * stack.c (select_and_print_frame): Delete.
7224 (struct function_bounds): Move struct within function.
7225 (func_command): Most content moved into new function
7226 find_frame_for_function, use new function, print result, add
7227 function comment.
7228 (find_frame_for_function): New function, now returns a result.
7229
7230 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7231
7232 * stack.c (iterate_over_block_arg_vars): Fix comment.
7233 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7234
7235 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 PR gdb/23203
7238 * frame.c
7239 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7240 Define.
7241 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7242 Define.
7243 * frame.h (class scoped_restore_selected_frame): New class.
7244 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7245 of any exception, use scoped_restore_selected_frame to restore the
7246 frame instead.
7247
7248 2018-05-24 Pedro Alves <palves@redhat.com>
7249
7250 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7251 override.
7252
7253 2018-05-23 Tom Tromey <tom@tromey.com>
7254
7255 * complaints.c (struct complaints): Remove.
7256 (symfile_complaint_book): Remove.
7257 (series): New global.
7258 (complaint_internal): Update.
7259 (clear_complaints): Update.
7260
7261 2018-05-23 Tom Tromey <tom@tromey.com>
7262
7263 * complaints.c (counters): New global.
7264 (struct complain): Remove.
7265 (struct complaints) <root>: Remove.
7266 (complaint_sentinel): Remove.
7267 (symfile_complaint_book): Update.
7268 (find_complaint) Remove.
7269 (complaint_internal, clear_complaints): Update.
7270
7271 2018-05-23 Tom Tromey <tom@tromey.com>
7272
7273 * complaints.c (struct complain) <file, line>: Remove.
7274 (find_complaint): Remove file, line parameters.
7275 (complaint_internal): Update.
7276
7277 2018-05-23 Tom Tromey <tom@tromey.com>
7278
7279 * complaints.c (vcomplaint): Remove.
7280 (complaint_internal) Merge in contents of vcomplaint.
7281
7282 2018-05-23 Tom Tromey <tom@tromey.com>
7283
7284 * complaints.c (struct complaints) <explanation>: Remove.
7285 (symfile_explanations): Remove.
7286 (symfile_complaint_book): Update.
7287 (vcomplaint): Update.
7288 (struct explanation): Remove.
7289
7290 2018-05-23 Tom Tromey <tom@tromey.com>
7291
7292 * complaints.c (symfile_complaints): Remove.
7293 (complaint_internal): Remove "complaints" parameter.
7294 (clear_complaints, vcomplaint): Remove "c" parameter.
7295 (get_complaints): Remove.
7296 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7297 (dwarf2_debug_line_missing_file_complaint)
7298 (dwarf2_debug_line_missing_end_sequence_complaint)
7299 (dwarf2_complex_location_expr_complaint)
7300 (dwarf2_const_value_length_mismatch_complaint)
7301 (dwarf2_section_buffer_overflow_complaint)
7302 (dwarf2_macro_malformed_definition_complaint)
7303 (dwarf2_invalid_attrib_class_complaint)
7304 (create_addrmap_from_index, dw2_symtab_iter_next)
7305 (dw2_expand_marked_cus)
7306 (dw2_debug_names_iterator::find_vec_in_debug_names)
7307 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7308 (create_debug_type_hash_table, init_cutu_and_read_dies)
7309 (partial_die_parent_scope, add_partial_enumeration)
7310 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7311 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7312 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7313 (create_cus_hash_table, create_dwp_hash_table)
7314 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7315 (dwarf2_rnglists_process, dwarf2_ranges_process)
7316 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7317 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7318 (handle_struct_member_die, process_structure_scope)
7319 (read_array_type, read_common_block, read_module_type)
7320 (read_tag_pointer_type, read_typedef, read_base_type)
7321 (read_subrange_type, load_partial_dies, partial_die_info::read)
7322 (partial_die_info::read, partial_die_info::read)
7323 (partial_die_info::read, read_checked_initial_length_and_offset)
7324 (dwarf2_string_attr, read_formatted_entries)
7325 (dwarf_decode_line_header)
7326 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7327 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7328 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7329 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7330 (get_signatured_type, get_DW_AT_signature_type)
7331 (decode_locdesc, file_file_name, consume_improper_spaces)
7332 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7333 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7334 (dwarf2_symbol_mark_computed, set_die_type)
7335 (read_attribute_value): Update.
7336 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7337 Update.
7338 * dbxread.c (unknown_symtype_complaint)
7339 (lbrac_mismatch_complaint, repeated_header_complaint)
7340 (set_namestring, function_outside_compilation_unit_complaint)
7341 (read_dbx_symtab, process_one_symbol): Update.
7342 * gdbtypes.c (stub_noname_complaint): Update.
7343 * windows-nat.c (handle_unload_dll): Update.
7344 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7345 (decode_base_type): Update.
7346 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7347 (eb_complaint, record_include_begin, record_include_end)
7348 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7349 (process_xcoff_symbol, read_symbol)
7350 (function_outside_compilation_unit_complaint)
7351 (scan_xcoff_symtab): Update.
7352 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7353 * buildsym.c (finish_block_internal, make_blockvector)
7354 (end_symtab_get_static_block, augment_type_symtab): Update.
7355 * dtrace-probe.c (dtrace_process_dof)
7356 (dtrace_static_probe_ops::get_probes): Update.
7357 * complaints.h (struct complaint): Don't declare.
7358 (symfile_complaints): Remove.
7359 (complaint_internal): Remove "complaints" parameter.
7360 (complaint): Likewise.
7361 (clear_complaints): Likewise.
7362 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7363 (reread_symbols): Update.
7364 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7365 (dwarf2_frame_cache, decode_frame_entry): Update.
7366 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7367 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7368 (info_selectors_command): Update.
7369 * macrotab.c (macro_include, check_for_redefinition)
7370 (macro_undef): Update.
7371 * objfiles.c (filter_overlapping_sections): Update.
7372 * stabsread.c (invalid_cpp_abbrev_complaint)
7373 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7374 (define_symbol, error_type, read_type, rs6000_builtin_type)
7375 (stabs_method_name_from_physname, read_member_functions)
7376 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7377 (attach_fields_to_type, complain_about_struct_wipeout)
7378 (read_range_type, read_args, common_block_start)
7379 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7380 Update.
7381 * mdebugread.c (index_complaint, unknown_ext_complaint)
7382 (basic_type_complaint, bad_tag_guess_complaint)
7383 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7384 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7385 (parse_procedure, parse_lines)
7386 (function_outside_compilation_unit_complaint)
7387 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7388 (bad_tag_guess_complaint, reg_value_complaint): Update.
7389 * cp-support.c (demangled_name_complaint): Update.
7390 * macroscope.c (sal_macro_scope): Update.
7391 * dwarf-index-write.c (class debug_names): Update.
7392
7393 2018-05-23 Tom Tromey <tom@tromey.com>
7394
7395 * complaints.c (clear_complaints): Remove "noisy" parameter.
7396 * complaints.h (clear_complaints): Update.
7397 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7398 (reread_symbols): Update.
7399
7400 2018-05-23 Tom Tromey <tom@tromey.com>
7401
7402 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7403 SUBSEQUENT_MESSAGE.
7404 (vcomplaint, clear_complaints): Update.
7405 (symfile_explanations): Remove some messages.
7406
7407 2018-05-23 Tom Tromey <tom@tromey.com>
7408
7409 * complaints.c (internal_complaint): Remove.
7410 * complaints.h (internal_complaint): Remove.
7411
7412 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7413
7414 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7415
7416 2018-05-22 Pedro Alves <palves@redhat.com>
7417
7418 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7419 (remote_fileio_badfd, remote_fileio_return_errno)
7420 (remote_fileio_return_success, remote_fileio_func_open)
7421 (remote_fileio_func_open, remote_fileio_func_close)
7422 (remote_fileio_func_read, remote_fileio_func_write)
7423 (remote_fileio_func_lseek, remote_fileio_func_rename)
7424 (remote_fileio_func_unlink, remote_fileio_func_stat)
7425 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7426 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7427 remote_target parameter.
7428 (remote_fio_func_map) <func>: Add remote_target parameter.
7429 (do_remote_fileio_request, remote_fileio_request):
7430 * remote-fileio.h (remote_fileio_request):
7431 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7432 remote_target parameter.
7433 (remote_notif_process, handle_notification): Adjust to pass down
7434 the remote.
7435 (remote_notif_state_allocate): Add remote_target parameter. Save
7436 it.
7437 * remote-notif.h (struct remote_target): Forward declare.
7438 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7439 remote_target parameter.
7440 (struct remote_notif_state) <remote>: New field.
7441 (remote_notif_ack, remote_notif_parse): Add remote_target
7442 parameter.
7443 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7444 remote_target parameter.
7445 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7446 (threads_listing_context, rmt_thread_action, protocol_feature)
7447 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7448 (packet_result, struct threads_listing_context, remote_state):
7449 Move definitions and declarations higher up.
7450 (remote_target) <~remote_target>: Declare.
7451 (remote_download_command_source, remote_file_put, remote_file_get)
7452 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7453 (remote_hostio_pread_vFile, remote_hostio_send_command)
7454 (remote_hostio_set_filesystem, remote_hostio_open)
7455 (remote_hostio_close, remote_hostio_unlink, remote_state)
7456 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7457 (get_memory_write_packet_size, get_memory_read_packet_size)
7458 (append_pending_thread_resumptions, remote_detach_1)
7459 (append_resumption, remote_resume_with_vcont)
7460 (add_current_inferior_and_thread, wait_ns, wait_as)
7461 (process_stop_reply, remote_notice_new_inferior)
7462 (process_initial_stop_replies, remote_add_thread)
7463 (btrace_sync_conf, remote_btrace_maybe_reopen)
7464 (remove_new_fork_children, kill_new_fork_children)
7465 (discard_pending_stop_replies, stop_reply_queue_length)
7466 (check_pending_events_prevent_wildcard_vcont)
7467 (discard_pending_stop_replies_in_queue, stop_reply)
7468 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7469 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7470 (remote_interrupt_as, remote_interrupt_ns)
7471 (remote_get_noisy_reply, remote_query_attached)
7472 (remote_add_inferior, remote_current_thread, get_current_thread)
7473 (set_thread, set_general_thread, set_continue_thread)
7474 (set_general_process, write_ptid)
7475 (remote_unpack_thread_info_response, remote_get_threadinfo)
7476 (parse_threadlist_response, remote_get_threadlist)
7477 (remote_threadlist_iterator, remote_get_threads_with_ql)
7478 (remote_get_threads_with_qxfer)
7479 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7480 (get_offsets, remote_check_symbols, remote_supported_packet)
7481 (remote_query_supported, remote_packet_size)
7482 (remote_serial_quit_handler, remote_detach_pid)
7483 (remote_vcont_probe, remote_resume_with_hc)
7484 (send_interrupt_sequence, interrupt_query)
7485 (remote_notif_get_pending_events, fetch_register_using_p)
7486 (send_g_packet, process_g_packet, fetch_registers_using_g)
7487 (store_register_using_P, store_registers_using_G)
7488 (set_remote_traceframe, check_binary_download)
7489 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7490 (remote_xfer_live_readonly_partial, remote_read_bytes)
7491 (remote_send_printf, remote_flash_write, readchar)
7492 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7493 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7494 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7495 (extended_remote_disable_randomization, extended_remote_run)
7496 (send_environment_packet, extended_remote_environment_support)
7497 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7498 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7499 (packet_command): Now methods of ...
7500 (remote_target): ... this class.
7501 (m_remote_state) <remote_target>: New field.
7502 (struct remote_state) <stop_reply_queue,
7503 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7504 fields.
7505 (remote_state::remote_state): Allocate stop_reply_queue.
7506 (remote_state): Delete global.
7507 (get_remote_state_raw): Delete.
7508 (remote_target::get_remote_state): Allocate m_remote_state on
7509 demand.
7510 (get_current_remote_target): New.
7511 (remote_ops, extended_remote_ops): Delete.
7512 (wait_forever_enabled_p, remote_async_inferior_event_token):
7513 Delete, moved to struct remote_state.
7514 (remote_target::close): Delete self. Destruction bits split to
7515 ...
7516 (remote_target::~remote_target): ... this.
7517 (show_memory_packet_size): Adjust to use
7518 get_current_remote_target.
7519 (struct protocol_feature) <func>: Add remote_target parameter.
7520 All callers adjusted.
7521 (curr_quit_handler_target): New.
7522 (remote_serial_quit_handler): Reimplement.
7523 (remote_target::open_1): Adjust to use get_current_remote_target.
7524 Heap-allocate remote_target/extended_remote_target instances.
7525 (vcont_builder::vcont_builder): Add remote_target parameter, and
7526 save it in m_remote. All callers adjusted.
7527 (vcont_builder::m_remote): New field.
7528 (vcont_builder::restart, vcont_builder::flush)
7529 (vcont_builder::push_action): Use it.
7530 (remote_target::commit_resume): Use it.
7531 (struct queue_iter_param) <remote>: New field.
7532 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7533 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7534 (check_pending_event_prevents_wildcard_vcont_callback)
7535 (remote_target::check_pending_events_prevent_wildcard_vcont)
7536 (remote_target::discard_pending_stop_replies)
7537 (remote_target::discard_pending_stop_replies_in_queue)
7538 (remote_target::remote_notif_remove_queued_reply): Fill in
7539 'remote' field.
7540 (remote_notif_get_pending_events): New.
7541 (remote_target::readchar, remote_target::remote_serial_write):
7542 Save/restore curr_quit_handler_target.
7543 (putpkt): New.
7544 (kill_new_fork_children): Fill in 'remote' field.
7545 (packet_command): Use get_current_remote_target, defer to
7546 remote_target method of same name.
7547 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7548 parameter, and save it in m_remote. All callers adjusted.
7549 (scoped_remote_fd::release): Use m_remote.
7550 (scoped_remote_fd::m_remote): New field.
7551 (remote_file_put, remote_file_get, remote_file_delete): Use
7552 get_current_remote_target, defer to remote_target method of same
7553 name.
7554 (remote_btrace_reset): Add remote_state paremeter. Update all
7555 callers.
7556 (remote_async_inferior_event_handler). Pass down 'data'.
7557 (remote_new_objfile): Use get_current_remote_target.
7558 (remote_target::vcont_r_supported): New.
7559 (set_range_stepping): Use get_current_remote_target and
7560 remote_target::vcont_r_supported.
7561 (_initialize_remote): Don't allocate 'remote_state' and
7562 'stop_reply_queue' globals.
7563 * remote.h (struct remote_target): Forward declare.
7564 (getpkt, putpkt, remote_notif_get_pending_events): Add
7565 'remote_target' parameter.
7566
7567 2018-05-22 Pedro Alves <palves@redhat.com>
7568
7569 * remote.c (vcont_builder): Now a class. Make all data members
7570 private.
7571 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7572 Declare methods.
7573 (vcont_builder_restart): Rename to ...
7574 (vcont_builder::restart): ... this.
7575 (vcont_builder_flush): Rename to ...
7576 (vcont_builder::flush): ... this.
7577 (vcont_builder_push_action): Rename to ...
7578 (vcont_builder::push_action): ... this.
7579 (remote_target::commit_resume): Adjust.
7580
7581 2018-05-22 Pedro Alves <palves@redhat.com>
7582
7583 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7584 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7585 (get_fixed_memory_packet_size): New.
7586 (get_memory_packet_size): Use it.
7587 (set_memory_packet_size): Don't override the config size with
7588 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7589 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7590 Don't refer to get_memory_packet_size if not connected to a remote
7591 target. Show "(default)" if configured size is 0.
7592
7593 2018-05-22 Pedro Alves <palves@redhat.com>
7594
7595 * remote.c (remote_target::mourn_inferior): Move
7596 discard_pending_stop_replies call here from ...
7597 (_initialize_remote): ... here.
7598
7599 2018-05-22 Pedro Alves <palves@redhat.com>
7600
7601 * remote.c (compare_section_command): Remove set_general_process
7602 call.
7603
7604 2018-05-22 Pedro Alves <palves@redhat.com>
7605
7606 * remote.c (struct packet_reg, struct remote_arch_state):
7607 Move higher up in the file.
7608 (remote_state) <m_arch_states>: Store remote_arch_state values
7609 instead of remote_arch_state pointers.
7610 (remote_state::get_remote_arch_state): Adjust.
7611
7612 2018-05-22 Pedro Alves <palves@redhat.com>
7613
7614 * remote.c: Include <unordered_map>.
7615 (remote_state): Now a class.
7616 (remote_state) <get_remote_arch_state>: Declare method.
7617 <get_remote_arch_state>: New field.
7618 (remote_arch_state) <remote_arch_state>: Declare ctor.
7619 <regs>: Now a unique_ptr.
7620 (remote_gdbarch_data_handle): Delete.
7621 (get_remote_arch_state): Delete.
7622 (remote_state::get_remote_arch_state): New.
7623 (get_remote_state): Adjust to call remote_state's
7624 get_remote_arch_state method.
7625 (init_remote_state): Delete, bits factored out to ...
7626 (remote_arch_state::remote_arch_state): ... this new method.
7627 (get_remote_packet_size, get_memory_packet_size)
7628 (process_g_packet, remote_target::fetch_registers)
7629 (remote_target::prepare_to_store, store_registers_using_G)
7630 (remote_target::store_registers, remote_target::get_trace_status):
7631 Adjust to call remote_state's method.
7632 (_initialize_remote): Remove reference to
7633 remote_gdbarch_data_handle.
7634
7635 2018-05-22 Pedro Alves <palves@redhat.com>
7636
7637 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7638 pread>: New method declarations.
7639 (remote_target::open_1): Adjust.
7640 (readahead_cache_invalidate): Rename to ...
7641 (readahead_cache::invalidate): ... this, and adjust to be a class
7642 method.
7643 (readahead_cache_invalidate_fd): Rename to ...
7644 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7645 class method.
7646 (remote_hostio_pwrite): Adjust.
7647 (remote_hostio_pread_from_cache): Rename to ...
7648 (readahead_cache::pread): ... this, and adjust to be a class
7649 method.
7650 (remote_hostio_close): Adjust.
7651
7652 2018-05-22 Pedro Alves <palves@redhat.com>
7653
7654 * remote.c (remote_hostio_close_cleanup): Delete.
7655 (class scoped_remote_fd): New.
7656 (remote_file_put, remote_file_get): Use it.
7657
7658 2018-05-22 Pedro Alves <palves@redhat.com>
7659
7660 (struct vCont_action_support): Use bool and initialize all fields.
7661 (struct readahead_cache): Initialize all fields.
7662 (remote_state): Use bool and initialize all fields.
7663 (remote_state::remote_state, remote_state::~remote_state): New.
7664 (new_remote_state): Delete.
7665 (_initialize_remote): Use new to allocate remote_state.
7666
7667 2018-05-22 Pedro Alves <palves@redhat.com>
7668 張俊芝 <zjz@zjz.name>
7669
7670 PR gdb/22973
7671 * c-exp.y: Include "c-support.h".
7672 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7673 of tolower. Use c_ident_is_alpha to scan names.
7674 * c-lang.c: Include "c-support.h".
7675 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7676 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7677 * c-support.h: New file, with bits factored out from ...
7678 * cp-name-parser.y: ... this file.
7679 Include "c-support.h".
7680 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7681 c-support.h and renamed.
7682 (symbol_end, yylex): Adjust.
7683
7684 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7685
7686 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7687 parameter type to CORE_ADDR.
7688 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7689 parameter type in declaration to CORE_ADDR.
7690 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7691 target_auxv_search to get AT_HWCAP and use the result to get the
7692 target description.
7693 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7694 to CORE_ADDR. Remove the cast of the return value to unsigned
7695 long. Fix error predicate of target_auxv_search.
7696 (ppc_linux_nat_target::read_description): Change the type of the
7697 hwcap variable to CORE_ADDR.
7698
7699 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7700
7701 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7702 if the size of fpscr is larger than 32 bits.
7703
7704 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7705
7706 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7707 (ppc32_linux_vsxregmap): New global.
7708 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7709 regcache_supply_regset, and regcache_collect_regset.
7710 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7711 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7712 (fetch_vsx_register, store_vsx_register): Remove.
7713 (fetch_vsx_registers): Add regno parameter. Get regset using
7714 ppc_linux_vsxregset. Use regset to supply registers.
7715 (store_vsx_registers): Add regno parameter. Get regset using
7716 ppc_linux_vsxregset. Use regset to collect registers.
7717 (fetch_register): Call fetch_vsx_registers instead of
7718 fetch_vsx_register.
7719 (store_register): Call store_vsx_registers instead of
7720 store_vsx_register.
7721 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7722 new regno parameter.
7723 (store_ppc_registers): Call store_vsx_registers with -1 for the
7724 new regno parameter.
7725 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7726 (ppc_collect_vsxregset): Remove.
7727
7728 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7729
7730 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7731 offset fields.
7732 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7733 for vector register offset fields.
7734 (ppc64_fbsd_reg_offsets): Likewise.
7735 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7736 to vector register offset fields.
7737 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7738 to vector register offset fields.
7739 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7740 vector register offset fields.
7741 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7742 initializers for vector register offset fields.
7743 (rs6000_aix64_reg_offsets): Likewise.
7744 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7745 (ppc_supply_vrregset): Remove.
7746 (ppc_collect_vrregset): Remove.
7747 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7748 (ppc_linux_vrregset) : New function.
7749 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7750 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7751 (ppc32_linux_vrregset): Remove.
7752 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7753 and use result instead of ppc32_linux_vrregset.
7754 (ppc32_linux_reg_offsets): Remove initializers for vector register
7755 offset fields.
7756 (ppc64_linux_reg_offsets): Likewise.
7757 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7758 * ppc-linux-nat.c: Include regset.h.
7759 (gdb_vrregset_t): Adjust comment to account for little-endian
7760 mode.
7761 (supply_vrregset, fill_vrregset): Remove.
7762 (fetch_altivec_register, store_altivec_register): Remove.
7763 (fetch_altivec_registers): Add regno parameter. Get regset using
7764 ppc_linux_vrregset. Use regset to supply registers.
7765 (store_altivec_registers): Add regno parameter. Get regset using
7766 ppc_linux_vrregset. Use regset to collect registers.
7767 (fetch_register): Call fetch_altivec_registers instead of
7768 fetch_altivec_register.
7769 (store_register): Call store_altivec_registers instead of
7770 store_altivec_register.
7771 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7772 the new regno parameter.
7773 (store_ppc_registers): Call store_altivec_registers with -1 for
7774 the new regno parameter.
7775
7776 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7777
7778 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7779 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7780 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7781 (gdb_vrregset_t): Change array type size to
7782 PPC_LINUX_SIZEOF_VRREGSET.
7783 (gdb_vsxregset_t): Change array type size to
7784 PPC_LINUX_SIZEOF_VSXREGSET.
7785 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7786 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7787 PPC_LINUX_SIZEOF_VSXREGSET.
7788
7789 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7790
7791 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7792 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7793 nat/ppc-linux.c.
7794 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7795 ppc_linux_target_wordsize with tid.
7796 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7797 wordsize with tid.
7798 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7799 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7800 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7801 tid parameter. Remove static specifier.
7802 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7803 (ppc_linux_target_wordsize): New declaration.
7804
7805 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7806
7807 * arch/ppc-linux-common.c: New file.
7808 * arch/ppc-linux-common.h: New file.
7809 * arch/ppc-linux-tdesc.h: New file.
7810 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7811 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7812 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7813 arch/ppc-linux-tdesc.h.
7814 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7815 arch/ppc-linux-tdesc.h.
7816 (ppc_linux_nat_target::read_description): Remove target
7817 description matching code. Fill a ppc_linux_features struct and
7818 call ppc_linux_match_description with it. Move comment about ISA
7819 2.05 to ppc-linux-common.c.
7820 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7821 arch/ppc-linux-tdesc.h.
7822 (ppc_linux_core_read_description): Remove target description
7823 matching code. Fill a ppc_linux_features struct and call
7824 ppc_linux_match_description with it.
7825 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7826 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7827 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7828 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7829 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7830 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7831 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7832 (tdesc_powerpc_e500l): Remove.
7833
7834 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7835
7836 * ada-lang.c (catch_assert_command): Pass empty string instead
7837 of NULL for excep_string argument.
7838
7839 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7840
7841 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7842 the width of the requested register exceeds the width of the
7843 `ptrace' data type.
7844
7845 2018-05-21 Tom Tromey <tom@tromey.com>
7846
7847 * printcmd.c (output_command): Remove.
7848 (output_command_const): Rename to output_command.
7849 * valprint.h (output_command): Rename from output_command_const.
7850 * tracepoint.c (trace_dump_actions): Call output_command.
7851
7852 2018-05-21 Tom Tromey <tom@tromey.com>
7853
7854 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7855 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7856 * ada-lang.h (create_ada_exception_catchpoint): Update.
7857 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7858 std::string.
7859 (create_excep_cond_exprs, ~ada_catchpoint)
7860 (should_stop_exception, print_one_exception)
7861 (print_mention_exception, print_recreate_exception): Update.
7862 (ada_get_next_arg): Remove.
7863 (catch_ada_exception_command_split): Use std::string. Change type
7864 of "excep_string", "cond_string".
7865 (catch_ada_exception_command): Update.
7866 (create_ada_exception_catchpoint): Change type of excep_string.
7867 (ada_exception_sal): Remove excep_string parameter.
7868 (~ada_catchpoint): Remove.
7869
7870 2018-05-21 Tom Tromey <tom@tromey.com>
7871
7872 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7873 cleanup.
7874
7875 2018-05-21 Tom Tromey <tom@tromey.com>
7876
7877 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7878 Return unique_xmalloc_ptr.
7879 (print_it_exception): Update.
7880
7881 2018-05-21 Tom Tromey <tom@tromey.com>
7882
7883 * tracepoint.c (trace_dump_actions): Use std::string.
7884
7885 2018-05-21 Tom Tromey <tom@tromey.com>
7886
7887 * symfile.c (reread_symbols): Use std::string for original_name.
7888
7889 2018-05-21 Tom Tromey <tom@tromey.com>
7890
7891 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7892 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7893 constructor.
7894
7895 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7896
7897 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7898 instance to...
7899 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7900 * objfiles.c (get_objfile_bfd_data): Allocate
7901 objfile_per_bfd_storage with obstack_new when allocating on
7902 obstack.
7903
7904 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7905
7906 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7907 OBSTACK_ZALLOC.
7908 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7909 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7910 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7911 (add_pending): Likewise.
7912 (parse_symbol): Likewise.
7913 (parse_partial_symbols): Likewise.
7914 (psymtab_to_symtab_1): Likewise.
7915 (new_psymtab): Likewise.
7916 (elfmdebug_build_psymtabs): Likewise.
7917 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7918 * objfiles.c (get_objfile_bfd_data): Likewise.
7919 (objfile_register_static_link): Likewise.
7920 * psymtab.c (allocate_psymtab): Likewise.
7921 * stabsread.c (read_member_functions): Likewise.
7922 * xcoffread.c (xcoff_end_psymtab): Likewise.
7923
7924 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7925
7926 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7927 compiler supports std::is_trivially_constructible.
7928 * common/poison.h: Include obstack.h.
7929 (IsMallocable): Define to is_trivially_constructible if the
7930 compiler supports it, define to true_type otherwise.
7931 (xobnew): New.
7932 (XOBNEW): Redefine.
7933 (xobnewvec): New.
7934 (XOBNEWVEC): Redefine.
7935 * gdb_obstack.h (obstack_zalloc): New.
7936 (OBSTACK_ZALLOC): Redefine.
7937 (obstack_calloc): New.
7938 (OBSTACK_CALLOC): Redefine.
7939 (obstack_new): New.
7940 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7941 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7942 gdbarch.c.
7943 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7944 obstack_calloc/obstack_zalloc.
7945 (gdbarch_obstack_zalloc): Remove.
7946 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7947
7948 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7949
7950 * stack.c (backtrace_command_1): Remove useless variable int i.
7951
7952 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7953
7954 * stack.c (print_frame_info): Fix comment.
7955
7956 2018-05-18 Tom Tromey <tom@tromey.com>
7957
7958 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7959 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7960 (~dwarf2_per_objfile): Update
7961 (dwarf2_get_dwz_file): Use new.
7962 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7963 unique_ptr.
7964
7965 2018-05-18 Tom Tromey <tom@tromey.com>
7966
7967 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7968 unique_ptr.
7969 * dwarf2read.c (struct dwp_file): Add constructor and
7970 initializers.
7971 (open_and_init_dwp_file): Return a unique_ptr.
7972 (dwarf2_per_objfile, create_dwp_hash_table)
7973 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7974 (lookup_dwo_unit_in_dwp): Update.
7975 (open_and_init_dwp_file, get_dwp_file): Update.
7976
7977 2018-05-18 Tom Tromey <tom@tromey.com>
7978
7979 * dwarf2read.c (dwarf2_per_objfile): Update.
7980 (struct mapped_index): Add initializers.
7981 (dwarf2_read_index): Use new.
7982 (dw2_symtab_iter_init): Update.
7983 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7984 unique_ptr.
7985
7986 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7987
7988 * dwarf2read.c (mapped_index) <total_size>: Remove.
7989
7990 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7991
7992 * unittests/format_pieces-selftests.c (test_format_specifier):
7993 Add ARI comments.
7994
7995 2018-05-18 Tom Tromey <tom@tromey.com>
7996
7997 * c-typeprint.c (maybe_print_hole): New function.
7998 (c_print_type_struct_field_offset): Update.
7999 (c_type_print_base_struct_union): Call maybe_print_hole.
8000
8001 2018-05-17 Keith Seitz <keiths@redhat.com>
8002
8003 * breakpoint.c (build_bpstat_chain): New function, moved from
8004 bpstat_stop_status.
8005 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8006 If no stop chain is passed, call build_bpstat_chain to build it.
8007 * breakpoint.h (build_bpstat_chain): Declare.
8008 (bpstat_stop_status): Move documentation here from breakpoint.c.
8009 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8010 build the stop chain and pass it to skip_inline_frames.
8011 Pass this stop chain to bpstat_stop_status.
8012 * inline-frame.c: Include breakpoint.h.
8013 (stopped_by_user_bp_inline_frame): New function.
8014 (skip_inline_frames): Add parameter `stop_chain'.
8015 Move documention to inline-frame.h.
8016 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8017 whether the frame should be elided.
8018 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8019 Add moved documentation and update for new parameter.
8020
8021 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8022
8023 PR cli/14975
8024 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8025 unittests/format_pieces-selftests.c.
8026 * common/format.h (format_piece) <operator==>: New.
8027 (format_pieces) <operator[]>: Remove.
8028 * common/format.c (format_pieces::format_pieces): Handle \e.
8029 * unittests/format_pieces-selftests.c: New.
8030
8031 2018-05-17 Tom Tromey <tom@tromey.com>
8032
8033 PR symtab/23010:
8034 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8035 (dw2_instantiate_symtab): Add skip_partial parameter.
8036 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8037 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8038 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8039 (dw2_expand_symtabs_matching_one)
8040 (dw2_find_pc_sect_compunit_symtab)
8041 (dw2_debug_names_lookup_symbol)
8042 (dw2_debug_names_expand_symtabs_for_function): Update.
8043 (init_cutu_and_read_dies): Add skip_partial parameter.
8044 (process_psymtab_comp_unit, build_type_psymtabs_1)
8045 (process_skeletonless_type_unit, load_partial_comp_unit)
8046 (psymtab_to_symtab_1): Update.
8047 (load_full_comp_unit): Add skip_partial parameter.
8048 (process_imported_unit_die, dwarf2_read_addr_index)
8049 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8050 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8051 (read_signatured_type): Update.
8052
8053 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8054
8055 * value.c (release_value): Remove unused variable.
8056 (record_latest_value): Likewise.
8057 (access_value_history): Likewise.
8058 (preserve_values): Likewise.
8059
8060 2018-05-17 Tom Tromey <tom@tromey.com>
8061
8062 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8063 Initialize.
8064
8065 2018-05-16 Maciej W. Rozycki <macro@mips.com>
8066
8067 PR gdb/22286
8068 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8069 Also handle registers whose width is not a multiple of
8070 PTRACE_TYPE_RET.
8071 (linux_nat_trad_target::store_register): Likewise.
8072
8073 2018-05-16 Tom Tromey <tom@tromey.com>
8074
8075 * gdbcore.h (core_bfd): Redefine.
8076 * corelow.c (core_target::close): Update.
8077 (core_target_open): Update.
8078 * progspace.h (struct program_space) <cbfd>: Now a
8079 gdb_bfd_ref_ptr.
8080
8081 2018-05-16 Tom Tromey <tom@tromey.com>
8082
8083 PR cli/19551:
8084 * symfile-add-flags.h (enum symfile_add_flags)
8085 <SYMFILE_NOT_FILENAME>: New constant.
8086 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8087 objfile name from BFD.
8088 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8089 * minidebug.c (find_separate_debug_file_in_section): Put
8090 ".gnu_debugdata" into BFD's file name.
8091
8092 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8093
8094 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8095 Remove.
8096
8097 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8098
8099 PR binutils/21446
8100 * aarch64-tdep.c (aarch64_analyze_prologue,
8101 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8102 Indicate not interested in errors.
8103
8104 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8105
8106 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8107 Supply the MIPS_ZERO_REGNUM register.
8108
8109 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8110
8111 * mips-tdep.c (mask_address_var): Make variable static.
8112
8113 2018-05-14 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8116
8117 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8120 FXSAVE_ADDR for the mxcsr register.
8121
8122 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8123
8124 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8125
8126 2018-05-11 Pedro Alves <palves@redhat.com>
8127
8128 * corelow.c (core_target) <core_target>: No longer inline.
8129 Initialize m_core_gdbarch, m_core_vec and build the section table
8130 here.
8131 <~core_target>: New.
8132 <core_gdbarch, get_core_register_section>: New methods.
8133 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8134 factored out from ...
8135 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8136 (core_ops): Delete.
8137 (sniff_core_bfd): Add gdbarch parameter.
8138 (core_close): Delete, merged into ...
8139 (core_target::close): ... here. Delete self.
8140 (core_close_cleanup): Delete.
8141 (core_target_open): Allocate a core_target on the heap. Use a
8142 unique_ptr instead of a cleanup. Bits moved into the core_target
8143 ctor. Adjust to use core_target methods instead of globals.
8144 (get_core_register_section): Rename to ...
8145 (core_target::get_core_register_section): ... this and adjust.
8146 (struct get_core_registers_cb_data): New.
8147 (get_core_registers_cb): Use it. Use bool.
8148 (core_target::fetch_registers, core_target::files_info)
8149 (core_target::xfer_partial, core_target::read_description)
8150 (core_target::pid_to, core_target::thread_name): Adjust to
8151 reference class fields instead of globals.
8152 * target.h (struct target_ops_deleter, target_ops_up): New.
8153
8154 2018-05-11 Pedro Alves <palves@redhat.com>
8155
8156 * corefile.c (core_file_command): Move to corelow.c.
8157 * corelow.c (the_core_target): Delete.
8158 (core_file_command): Moved from corefile.c. Check exec_bfd
8159 instead of the_core_target. Use target_detach instead of calling
8160 into the_core_target directly.
8161 (maybe_say_no_core_file_now): New.
8162 (core_target::detach): Use it.
8163 (_initialize_corelow): Remove references to the_core_target.
8164 * gdbcore.h (the_core_target): Delete.
8165
8166 2018-05-11 Tom Tromey <tromey@redhat.com>
8167 Pedro Alves <palves@redhat.com>
8168
8169 * corefile.c (core_bfd): Remove.
8170 * gdbcore.h (core_bfd): Now a macro.
8171 * progspace.h (struct program_space) <cbfd>: New field.
8172
8173 2018-05-11 Tom Tromey <tom@tromey.com>
8174
8175 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8176 gdb::def_vector.
8177
8178 2018-05-10 Tom Tromey <tom@tromey.com>
8179
8180 * configure: Rebuild.
8181 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8182
8183 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8184
8185 PR server/23158:
8186 * regformats/regdat.sh: Adjust script, following the addition
8187 of the new expedite_regs parameter to init_target_desc.
8188
8189 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8190
8191 PR gdb/23127
8192 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8193 set_gdbarch_significant_addr_bit.
8194 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8195 set_gdbarch_significant_addr_bit.
8196 * utils.c (address_significant): Update to sign extend addr.
8197
8198 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8199
8200 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8201 (xtensa_linux_init_abi): Limit tdep->num_regs by
8202 tdep->num_nopriv_regs.
8203 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8204 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8205 not initialized.
8206
8207 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8208
8209 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8210
8211 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8212
8213 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8214 (I387_MXCSR_INIT_VAL): New constant.
8215 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8216 buffer if it was supplied by the inferior.
8217 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8218 (i387_xsave_get_clear_bv): New function.
8219 (i387_supply_xsave): Only read x87 control registers from the
8220 xsave buffer if the feature is enabled, and the state will have
8221 been written, otherwise, provide a suitable default.
8222 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8223 including x87 control registers. Update control registers if they
8224 have changed from the default value, and mark features as enabled
8225 as required.
8226 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8227
8228 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8229
8230 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8231
8232 2018-05-07 Tom Tromey <tom@tromey.com>
8233
8234 * configure: Rebuild.
8235 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8236
8237 2018-05-07 Tom Tromey <tom@tromey.com>
8238
8239 PR tdep/20362:
8240 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8241 bit. Use correct value for VDIV.
8242
8243 2018-05-04 Tom Tromey <tom@tromey.com>
8244
8245 * configure: Rebuild.
8246 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8247
8248 2018-05-04 Tom Tromey <tom@tromey.com>
8249
8250 * linux-record.c (record_linux_system_call) <case
8251 RECORD_SYS_RECVFROM>: Add "break".
8252
8253 2018-05-04 Tom Tromey <tom@tromey.com>
8254
8255 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8256 Add missing "break".
8257 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8258 Add missing "break".
8259
8260 2018-05-04 Tom Tromey <tom@tromey.com>
8261
8262 * rs6000-tdep.c (ppc_process_record_op4)
8263 (ppc_process_record_op63): Add fall-through comment.
8264
8265 2018-05-04 Tom Tromey <tom@tromey.com>
8266
8267 * i386-tdep.c (i386_process_record): Add fall-through comment.
8268
8269 2018-05-04 Tom Tromey <tom@tromey.com>
8270
8271 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8272 comment.
8273
8274 2018-05-04 Tom Tromey <tom@tromey.com>
8275
8276 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8277 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8278 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8279 comment.
8280 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8281 comment.
8282 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8283 comment.
8284
8285 2018-05-04 Tom Tromey <tom@tromey.com>
8286
8287 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8288
8289 2018-05-04 Tom Tromey <tom@tromey.com>
8290
8291 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8292 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8293 * symfile.c (section_is_mapped): Fix fall-through comment.
8294 * stabsread.c (define_symbol, read_member_functions): Fix
8295 fall-through comment.
8296 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8297 comment.
8298 * remote.c (remote_wait_as): Fix fall-through comment.
8299 * p-exp.y (yylex): Fix fall-through comment.
8300 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8301 comment.
8302 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8303 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8304 * jv-exp.y (yylex): Fix fall-through comment.
8305 * go-exp.y (lex_one_token): Fix fall-through comment.
8306 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8307 fall-through comment.
8308 * f-exp.y (yylex): Fix fall-through comment.
8309 * dwarf2read.c (process_die): Fix fall-through comments.
8310 * dbxread.c (process_one_symbol): Fix fall-through comment.
8311 * d-exp.y (lex_one_token): Fix fall-through comment.
8312 * cp-name-parser.y (yylex): Fix fall-through comment.
8313 * coffread.c (coff_symtab_read): Fix fall-through comment.
8314 * c-exp.y (lex_one_token): Fix fall-through comment.
8315 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8316 comment.
8317 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8318 comment.
8319
8320 2018-05-04 Tom Tromey <tom@tromey.com>
8321
8322 PR python/22730:
8323 * NEWS: Mention gdb.execute change.
8324 * gdbcmd.h (execute_control_command): Don't declare.
8325 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8326 execute_control_commands, execute_control_commands_to_string.
8327 * cli/cli-script.h (execute_control_commands)
8328 (execute_control_commands_to_string): Declare.
8329 (execute_control_command): Add from_tty parameter.
8330 * cli/cli-script.c (execute_control_commands)
8331 (execute_control_commands_to_string): New functions.
8332 (execute_user_command): Use execute_control_commands.
8333 (execute_control_command_1): Add "from_tty" parameter. Update.
8334 (execute_control_command): Likewise.
8335
8336 2018-05-04 Tom Tromey <tom@tromey.com>
8337
8338 PR python/22731:
8339 * NEWS: Mention that breakpoint commands are writable.
8340 * python/py-breakpoint.c (bppy_set_commands): New function.
8341 (breakpoint_object_getset) <"commands">: Use it.
8342
8343 2018-05-04 Tom Tromey <tom@tromey.com>
8344
8345 * tracepoint.c (actions_command): Update.
8346 * mi/mi-cmd-break.c (mi_command_line_array)
8347 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8348 (mi_read_next_line): Remove.
8349 (mi_cmd_break_commands): Update.
8350 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8351 function_view.
8352 * cli/cli-script.c (get_command_line): Update.
8353 (process_next_line): Use function_view. Constify.
8354 (recurse_read_control_structure, read_command_lines)
8355 (read_command_lines_1): Change argument types to function_view.
8356 (do_define_command, document_command): Update.
8357 * breakpoint.h (check_tracepoint_command): Don't declare.
8358 * breakpoint.c (check_tracepoint_command): Remove.
8359 (commands_command_1, create_tracepoint_from_upload): Update.
8360
8361 2018-05-04 Tom Tromey <tom@tromey.com>
8362
8363 PR gdb/11750:
8364 * cli/cli-script.h (enum command_control_type) <define_control>:
8365 New constant.
8366 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8367 (build_command_line, execute_control_command_1)
8368 (process_next_line): Likewise.
8369 (do_define_command): New function, extracted from define_command.
8370 (define_command): Use it.
8371
8372 2018-05-04 Tom Tromey <tom@tromey.com>
8373
8374 * tracepoint.c (actions_command): Update.
8375 * cli/cli-script.h (read_command_lines): Update.
8376 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8377 (MAX_TMPBUF): Remove define.
8378 (define_command): Use string_printf.
8379 (document_command): Likewise.
8380 * breakpoint.c (commands_command_1): Update.
8381
8382 2018-05-04 Tom Tromey <tom@tromey.com>
8383
8384 * top.c (execute_command): Update.
8385 * cli/cli-script.h (print_command_lines): Now varargs.
8386 * cli/cli-script.c (print_command_lines): Now varargs.
8387 (execute_control_command_1) <case while_control, case if_control>:
8388 Update.
8389
8390 2018-05-04 Tom Tromey <tom@tromey.com>
8391
8392 * tracepoint.c (all_tracepoint_actions): Rename from
8393 all_tracepoint_actions_and_cleanup. Change return type.
8394 (actions_command, encode_actions_1, encode_actions)
8395 (trace_dump_actions, tdump_command): Update.
8396 * remote.c (remote_download_command_source): Update.
8397 * python/python.c (gdbpy_eval_from_control_command)
8398 (python_command, python_interactive_command): Update.
8399 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8400 * guile/guile.c (guile_command)
8401 (gdbscm_eval_from_control_command, guile_command): Update.
8402 * compile/compile.c (compile_code_command)
8403 (compile_print_command, compile_to_object): Update.
8404 * cli/cli-script.h (struct command_lines_deleter): New.
8405 (counted_command_line): New typedef.
8406 (struct command_line): Add constructor, destructor.
8407 <body_list>: Remove.
8408 <body_list_0, body_list_1>: New members.
8409 (command_line_up): Remove typedef.
8410 (read_command_lines, read_command_lines_1, get_command_line):
8411 Update.
8412 (copy_command_lines): Don't declare.
8413 * cli/cli-script.c (build_command_line): Use "new".
8414 (get_command_line): Return counted_command_line.
8415 (print_command_lines, execute_user_command)
8416 (execute_control_command_1, while_command, if_command): Update.
8417 (realloc_body_list): Remove.
8418 (process_next_line, recurse_read_control_structure): Update.
8419 (read_command_lines, read_command_lines_1): Return counted_command_line.
8420 (free_command_lines): Use "delete".
8421 (copy_command_lines): Remove.
8422 (define_command, document_command, show_user_1): Update.
8423 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8424 a counted_command_line.
8425 * breakpoint.h (counted_command_line): Remove typedef.
8426 (breakpoint_set_commands): Update.
8427 * breakpoint.c (check_no_tracepoint_commands)
8428 (validate_commands_for_breakpoint): Update.
8429 (breakpoint_set_commands): Change commands to be a
8430 counted_command_line.
8431 (commands_command_1, update_dprintf_command_list)
8432 (create_tracepoint_from_upload): Update.
8433
8434 2018-05-04 Tom Tromey <tom@tromey.com>
8435
8436 * cli/cli-decode.h (cmd_list_element): New constructor.
8437 (~cmd_list_element): New destructor.
8438 (struct cmd_list_element): Add initializers.
8439 * cli/cli-decode.c (do_add_cmd): Use "new".
8440 (delete_cmd): Use "delete".
8441
8442 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8443 Pedro Alves <palves@redhat.com>
8444
8445 PR breakpoints/19806 and support for PR external/20207.
8446 * NEWS: Mention Aarch64 watchpoint improvements.
8447 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8448 watchpoints and PR external/20207 watchpoints.
8449 * nat/aarch64-linux-hw-point.c
8450 (kernel_supports_any_contiguous_range): New.
8451 (aarch64_watchpoint_offset): New.
8452 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8453 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8454 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8455 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8456 next_addr_orig_p. Support PR external/20207 watchpoints.
8457 (aarch64_downgrade_regs): New.
8458 (aarch64_dr_state_insert_one_point): New parameters offset and
8459 addr_orig.
8460 (aarch64_dr_state_remove_one_point): Likewise.
8461 (aarch64_handle_breakpoint): Update caller.
8462 (aarch64_handle_aligned_watchpoint): Likewise.
8463 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8464 aligned_offset.
8465 (aarch64_linux_set_debug_regs): Remove const from state. Call
8466 aarch64_downgrade_regs.
8467 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8468 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8469 (DR_CONTROL_MASK): ... this.
8470 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8471 (unsigned int aarch64_watchpoint_offset): New prototype.
8472 (aarch64_linux_set_debug_regs): Remove const from state.
8473 * utils.c (align_up, align_down): Move to ...
8474 * common/common-utils.c (align_up, align_down): ... here.
8475 * utils.h (align_up, align_down): Move to ...
8476 * common/common-utils.h (align_up, align_down): ... here.
8477
8478 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8479
8480 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8481 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8482 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8483 Re-implement to match the ABI as summarized in GCC's
8484 gcc/config/sparc/sparc.c. All callers updated.
8485 (sparc32_store_arguments): Remove assertion.
8486
8487 2018-05-04 Tom Tromey <tom@tromey.com>
8488
8489 * printcmd.c: Don't include tui.h.
8490 (decode_format): Use skip_spaces.
8491
8492 2018-05-04 Tom Tromey <tom@tromey.com>
8493
8494 PR gdb/22619:
8495 * printcmd.c (last_count): New global.
8496 (x_command): Use saved count when repeating.
8497
8498 2018-05-04 Tom Tromey <tom@tromey.com>
8499
8500 * nto-procfs.c (do_closedir_cleanup): Remove.
8501 (procfs_pidlist): Use gdb_dir_up.
8502 * procfs.c (do_closedir_cleanup): Remove.
8503 (proc_update_threads): Use gdb_dir_up.
8504 * common/filestuff.h (struct gdb_dir_deleter): New.
8505 (gdb_dir_up): New typedef.
8506
8507 2018-05-04 Tom Tromey <tom@tromey.com>
8508
8509 * ada-lang.c (print_mention_exception): Use std::string.
8510
8511 2018-05-04 Tom Tromey <tom@tromey.com>
8512
8513 * ada-lang.c (create_excep_cond_exprs): Update.
8514 (ada_exception_catchpoint_cond_string): Use std::string.
8515
8516 2018-05-04 Tom Tromey <tom@tromey.com>
8517
8518 * ada-lang.c (xget_renaming_scope): Return std::string.
8519 (old_renaming_is_invisible): Update.
8520
8521 2018-05-04 Tom Tromey <tom@tromey.com>
8522
8523 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8524 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8525
8526 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8527
8528 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8529
8530 2018-05-04 Tom Tromey <tom@tromey.com>
8531
8532 * remote.c (remote_query_supported_append): Change type.
8533 (remote_check_symbols): Update.
8534
8535 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8536
8537 PR gdb/11420
8538 * configure.ac: Prepend libpython.
8539 * python/python-config.py: Likewise.
8540 * configure: Regenerate.
8541
8542 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8543
8544 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8545
8546 2018-05-03 Pedro Alves <palves@redhat.com>
8547
8548 * s390-linux-nat.c
8549 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8550 override. Write 'true' instead of '1'.
8551 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8552 declaration.
8553
8554 2018-05-02 Pedro Alves <palves@redhat.com>
8555
8556 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8557 add_inf_child_target.
8558 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8559 add_inf_child_target.
8560 * aix-thread.c (aix_thread_target_info): New.
8561 (aix_thread_target) <shortname, longname, doc>: Delete.
8562 <info>: New.
8563 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8564 add_inf_child_target.
8565 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8566 add_inf_child_target.
8567 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8568 add_inf_child_target.
8569 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8570 add_inf_child_target.
8571 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8572 add_inf_child_target.
8573 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8574 add_inf_child_target.
8575 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8576 add_inf_child_target.
8577 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8578 add_inf_child_target.
8579 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8580 add_inf_child_target.
8581 * bfd-target.c (target_bfd_target_info): New.
8582 (target_bfd) <shortname, longname, doc>: Delete.
8583 <info>: New.
8584 * bsd-kvm.c (bsd_kvm_target_info): New.
8585 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8586 <info>: New.
8587 (bsd_kvm_target::open): Rename to ...
8588 (bsd_kvm_target_open): ... this. Adjust.
8589 * bsd-uthread.c (bsd_uthread_target_info): New.
8590 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8591 <info>: New.
8592 * corefile.c (core_file_command): Adjust.
8593 * corelow.c (core_target_info): New.
8594 (core_target) <shortname, longname, doc>: Delete.
8595 <info>: New.
8596 (core_target::open): Rename to ...
8597 (core_target_open): ... this. Adjust.
8598 * ctf.c (ctf_target_info): New.
8599 (ctf_target) <shortname, longname, doc>: Delete.
8600 <info>: New.
8601 (ctf_target::open): Rename to ...
8602 (ctf_target_open): ... this.
8603 (_initialize_ctf): Adjust.
8604 * exec.c (exec_target_info): New.
8605 (exec_target) <shortname, longname, doc>: Delete.
8606 <info>: New.
8607 (exec_target::open): Rename to ...
8608 (exec_target_open): ... this.
8609 * gdbcore.h (core_target_open): Declare.
8610 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8611 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8612 add_inf_child_target.
8613 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8614 add_inf_child_target.
8615 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8616 add_inf_child_target.
8617 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8618 add_inf_child_target.
8619 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8620 add_inf_child_target.
8621 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8622 add_inf_child_target.
8623 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8624 add_inf_child_target.
8625 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8626 add_inf_child_target.
8627 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8628 add_inf_child_target.
8629 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8630 add_inf_child_target.
8631 * inf-child.c (inf_child_target_info): New.
8632 (inf_child_target::info): New.
8633 (inf_child_open_target): Remove 'target' parameter. Use
8634 get_native_target instead.
8635 (inf_child_target::open): Delete.
8636 (add_inf_child_target): New.
8637 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8638 Delete.
8639 <info>: New.
8640 (add_inf_child_target): Declare.
8641 (inf_child_open_target): Declare.
8642 * linux-thread-db.c (thread_db_target_info): New.
8643 (thread_db_target) <shortname, longname, doc>: Delete.
8644 <info>: New.
8645 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8646 add_inf_child_target.
8647 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8648 add_inf_child_target.
8649 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8650 add_inf_child_target.
8651 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8652 add_inf_child_target.
8653 * make-target-delegates (print_class): Adjust.
8654 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8655 add_inf_child_target.
8656 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8657 add_inf_child_target.
8658 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8659 add_inf_child_target.
8660 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8661 add_inf_child_target.
8662 * nto-procfs.c (nto_native_target_info): New.
8663 (nto_procfs_target_native) <shortname, longname, doc>:
8664 Delete.
8665 <info>: New.
8666 (nto_procfs_target_info): New.
8667 (nto_procfs_target_procfs) <shortname, longname, doc>:
8668 Delete.
8669 <info>: New.
8670 (init_procfs_targets): Adjust.
8671 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8672 add_inf_child_target.
8673 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8674 add_inf_child_target.
8675 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8676 add_inf_child_target.
8677 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8678 add_inf_child_target.
8679 * ravenscar-thread.c (ravenscar_target_info): New.
8680 (ravenscar_thread_target) <shortname, longname, doc>:
8681 Delete.
8682 <info>: New.
8683 * record-btrace.c (record_btrace_target_info):
8684 (record_btrace_target) <shortname, longname, doc>: Delete.
8685 <info>: New.
8686 (record_btrace_target::open): Rename to ...
8687 (record_btrace_target_open): ... this. Adjust.
8688 * record-full.c (record_longname, record_doc): New.
8689 (record_full_base_target) <shortname, longname, doc>: Delete.
8690 <info>: New.
8691 (record_full_target_info): New.
8692 (record_full_target): <shortname>: Delete.
8693 <info>: New.
8694 (record_full_core_open_1, record_full_open_1): Update comments.
8695 (record_full_base_target::open): Rename to ...
8696 (record_full_open): ... this.
8697 (cmd_record_full_restore): Update.
8698 (_initialize_record_full): Update.
8699 * remote-sim.c (remote_sim_target_info): New.
8700 (gdbsim_target) <shortname, longname, doc>: Delete.
8701 <info>: New.
8702 (gdbsim_target::open): Rename to ...
8703 (gdbsim_target_open): ... this.
8704 (_initialize_remote_sim): Adjust.
8705 * remote.c (remote_doc): New.
8706 (remote_target_info): New.
8707 (remote_target) <shortname, longname, doc>: Delete.
8708 <info>: New.
8709 (extended_remote_target_info): New.
8710 (extended_remote_target) <shortname, longname, doc>: Delete.
8711 <info>: New.
8712 (remote_target::open_1): Make static. Adjust.
8713 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8714 * s390-linux-nat.c (_initialize_s390_nat): Use
8715 add_inf_child_target.
8716 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8717 add_inf_child_target.
8718 * sol-thread.c (thread_db_target_info): New.
8719 (sol_thread_target) <shortname, longname, doc>: Delete.
8720 <info>: New.
8721 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8722 add_inf_child_target.
8723 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8724 add_inf_child_target.
8725 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8726 add_inf_child_target.
8727 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8728 add_inf_child_target.
8729 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8730 add_inf_child_target.
8731 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8732 add_inf_child_target.
8733 * spu-linux-nat.c (_initialize_spu_nat): Use
8734 add_inf_child_target.
8735 * spu-multiarch.c (spu_multiarch_target_info): New.
8736 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8737 <info>: New.
8738 * target-delegates.c: Regenerate.
8739 * target.c: Include <unordered_map>.
8740 (target_ops_p): Delete.
8741 (DEF_VEC_P(target_ops_p)): Delete.
8742 (target_factories): New.
8743 (test_target_info): New.
8744 (test_target_ops::info): New.
8745 (open_target): Adjust to use target_factories.
8746 (add_target_with_completer): Rename to ...
8747 (add_target): ... this. Change prototype. Register target_info
8748 and open callback in target_factories. Register target_info in
8749 command context instead of target_ops.
8750 (add_target): Delete old implementation.
8751 (add_deprecated_target_alias): Change prototype. Adjust.
8752 (the_native_target): New.
8753 (set_native_target, get_native_target): New.
8754 (find_default_run_target): Use the_native_target.
8755 (find_attach_target, find_run_target): Simplify.
8756 (target_ops::open): Delete.
8757 (dummy_target_info): New.
8758 (dummy_target::shortname, dummy_target::longname)
8759 (dummy_target::doc): Delete.
8760 (dummy_target::info): New.
8761 (debug_target::shortname, debug_target::longname)
8762 (debug_target::doc): Delete.
8763 (debug_target::info): New.
8764 * target.h (struct target_info): New.
8765 (target_ops::~target_ops): Add comment.
8766 (target_ops::info): New.
8767 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8768 longer virtual. Implement in terms of target_info.
8769 (set_native_target, get_native_target): Declare.
8770 (target_open_ftype): New.
8771 (add_target, add_target_with_completer)
8772 (add_deprecated_target_alias): Change prototype.
8773 (test_target) <shortname, longname, doc>: Delete.
8774 <info>: New.
8775 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8776 add_inf_child_target.
8777 * tracefile-tfile.c (tfile_target_info): New.
8778 (tfile_target) <shortname, longname, doc>: Delete.
8779 <info>: New.
8780 (tfile_target::open): Rename to ...
8781 (tfile_target_open): ... this.
8782 (_initialize_tracefile_tfile): Adjust.
8783 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8784 add_inf_child_target.
8785 * windows-nat.c (_initialize_windows_nat): Use
8786 add_inf_child_target.
8787 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8788 add_inf_child_target.
8789
8790 2018-05-02 Pedro Alves <palves@redhat.com>
8791
8792 * linux-nat.h (linux_nat_target) <low_new_thread,
8793 low_delete_thread, low_new_fork, low_forget_process,
8794 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8795 New virtual methods.
8796 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8797 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8798 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8799 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8800 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8801 Delete.
8802 * linux-fork.c (delete_fork): Adjust to call low method.
8803 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8804 (linux_nat_new_fork, linux_nat_forget_process_hook)
8805 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8806 (linux_nat_status_is_event):
8807 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8808 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8809 to call low method.
8810 (sigtrap_is_event): Rename to ...
8811 (linux_nat_target::low_status_is_event): ... this.
8812 (linux_nat_set_status_is_event): Delete.
8813 (save_stop_reason, linux_nat_wait_1)
8814 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8815 low methods.
8816 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8817 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8818 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8819 (linux_nat_set_prepare_to_resume): Delete.
8820 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8821 low virtual methods.
8822 * amd64-linux-nat.c: Likewise.
8823 * arm-linux-nat.c: Likewise.
8824 * i386-linux-nat.c: Likewise.
8825 * ia64-linux-nat.c: Likewise.
8826 * mips-linux-nat.c: Likewise.
8827 * ppc-linux-nat.c: Likewise.
8828 * s390-linux-nat.c: Likewise.
8829 * sparc64-linux-nat.c: Likewise.
8830 * x86-linux-nat.c: Likewise.
8831 * x86-linux-nat.h: Include "nat/x86-linux.h".
8832 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8833 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8834 Override methods.
8835
8836 2018-05-02 Pedro Alves <palves@redhat.com>
8837
8838 * target.h (target_ops)
8839 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8840 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8841 stopped_by_watchpoint, have_continuable_watchpoint,
8842 stopped_data_address, watchpoint_addr_within_range,
8843 can_accel_watchpoint_condition, can_run, thread_alive,
8844 has_all_memory, has_memory, has_stack, has_registers,
8845 has_execution, can_async_p, is_async_p, supports_non_stop,
8846 always_non_stop_p, can_execute_reverse, supports_multi_process,
8847 supports_enable_disable_tracepoint,
8848 supports_disable_randomization, supports_string_tracing,
8849 supports_evaluation_of_breakpoint_conditions,
8850 can_run_breakpoint_commands, filesystem_is_local,
8851 can_download_tracepoint, get_trace_state_variable_value,
8852 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8853 record_is_replaying, record_will_replay,
8854 augmented_libraries_svr4_read>: Adjust to return bool.
8855 * aarch64-linux-nat.c: All implementations adjusted.
8856 * aix-thread.c: All implementations adjusted.
8857 * arm-linux-nat.c: All implementations adjusted.
8858 * breakpoint.c: All implementations adjusted.
8859 * bsd-kvm.c: All implementations adjusted.
8860 * bsd-uthread.c: All implementations adjusted.
8861 * corelow.c: All implementations adjusted.
8862 * ctf.c: All implementations adjusted.
8863 * darwin-nat.c: All implementations adjusted.
8864 * darwin-nat.h: All implementations adjusted.
8865 * exec.c: All implementations adjusted.
8866 * fbsd-nat.c: All implementations adjusted.
8867 * fbsd-nat.h: All implementations adjusted.
8868 * gnu-nat.c: All implementations adjusted.
8869 * gnu-nat.h: All implementations adjusted.
8870 * go32-nat.c: All implementations adjusted.
8871 * ia64-linux-nat.c: All implementations adjusted.
8872 * inf-child.c: All implementations adjusted.
8873 * inf-child.h: All implementations adjusted.
8874 * inf-ptrace.c: All implementations adjusted.
8875 * inf-ptrace.h: All implementations adjusted.
8876 * linux-nat.c: All implementations adjusted.
8877 * linux-nat.h: All implementations adjusted.
8878 * mips-linux-nat.c: All implementations adjusted.
8879 * nto-procfs.c: All implementations adjusted.
8880 * ppc-linux-nat.c: All implementations adjusted.
8881 * procfs.c: All implementations adjusted.
8882 * ravenscar-thread.c: All implementations adjusted.
8883 * record-btrace.c: All implementations adjusted.
8884 * record-full.c: All implementations adjusted.
8885 * remote-sim.c: All implementations adjusted.
8886 * remote.c: All implementations adjusted.
8887 * s390-linux-nat.c: All implementations adjusted.
8888 * sol-thread.c: All implementations adjusted.
8889 * spu-multiarch.c: All implementations adjusted.
8890 * target-delegates.c: All implementations adjusted.
8891 * target.c: All implementations adjusted.
8892 * target.h: All implementations adjusted.
8893 * tracefile-tfile.c: All implementations adjusted.
8894 * tracefile.c: All implementations adjusted.
8895 * tracefile.h: All implementations adjusted.
8896 * windows-nat.c: All implementations adjusted.
8897 * x86-linux-nat.h: All implementations adjusted.
8898 * x86-nat.h: All implementations adjusted.
8899
8900 2018-05-02 Pedro Alves <palves@redhat.com>
8901
8902 * make-target-delegates (scan_target_h): Don't trim lines here.
8903 Replace sequences of tabs and/or whitespace with a single
8904 whitespace.
8905 (top level, parsing methods): Trim each line before processing it
8906 here.
8907
8908 2018-05-02 Pedro Alves <palves@redhat.com>
8909 John Baldwin <jhb@freebsd.org>
8910
8911 * target.h (enum strata) <debug_stratum>: New.
8912 (struct target_ops) <all delegation methods>: Replace by C++
8913 virtual methods, and drop "to_" prefix. All references updated
8914 throughout.
8915 <to_shortname, to_longname, to_doc, to_data,
8916 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8917 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8918 virtual methods. All references updated throughout.
8919 <can_attach, supports_terminal_ours, can_create_inferior,
8920 get_thread_control_capabilities, attach_no_wait>: New
8921 virtual methods.
8922 <insert_breakpoint, remove_breakpoint>: Now
8923 TARGET_DEFAULT_NORETURN methods.
8924 <info_proc>: Now returns bool.
8925 <to_magic>: Delete.
8926 (OPS_MAGIC): Delete.
8927 (current_target): Delete. All references replaced by references
8928 to ...
8929 (target_stack): ... this. New.
8930 (target_shortname, target_longname): Adjust.
8931 (target_can_run): Now a function declaration.
8932 (default_child_has_all_memory, default_child_has_memory)
8933 (default_child_has_stack, default_child_has_registers)
8934 (default_child_has_execution): Remove target_ops parameter.
8935 (complete_target_initialization): Delete.
8936 (memory_breakpoint_target): New template class.
8937 (test_target_ops): Refactor as a C++ class with virtual methods.
8938 * make-target-delegates (NAME_PART): Tighten.
8939 (POINTER_PART, CP_SYMBOL): New.
8940 (SIMPLE_RETURN_PART): Reimplement.
8941 (VEC_RETURN_PART): Expect less.
8942 (RETURN_PART, VIRTUAL_PART): New.
8943 (METHOD): Adjust to C++ virtual methods.
8944 (scan_target_h): Remove reference to C99.
8945 (dname): Output "target_ops::" prefix.
8946 (write_function_header): Adjust to output a C++ class method.
8947 (write_declaration): New.
8948 (write_delegator): Adjust to output a C++ class method.
8949 (tdname): Output "dummy_target::" prefix.
8950 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8951 method.
8952 (tdefault_names, debug_names): Delete.
8953 (return_types, tdefaults, styles, argtypes_array): New.
8954 (top level): All methods are delegators.
8955 (print_class): New.
8956 (top level): Print dummy_target and debug_target classes.
8957 * target-delegates.c: Regenerate.
8958 * target-debug.h (target_debug_print_enum_info_proc_what)
8959 (target_debug_print_thread_control_capabilities)
8960 (target_debug_print_thread_info_p): New.
8961 * target.c (dummy_target): Delete.
8962 (the_dummy_target, the_debug_target): New.
8963 (target_stack): Now extern.
8964 (set_targetdebug): Push/unpush debug target.
8965 (default_child_has_all_memory, default_child_has_memory)
8966 (default_child_has_stack, default_child_has_registers)
8967 (default_child_has_execution): Remove target_ops parameter.
8968 (complete_target_initialization): Delete.
8969 (add_target_with_completer): No longer call
8970 complete_target_initialization.
8971 (target_supports_terminal_ours): Use regular delegation.
8972 (update_current_target): Delete.
8973 (push_target): No longer check magic number. Don't call
8974 update_current_target.
8975 (unpush_target): Don't call update_current_target.
8976 (target_is_pushed): No longer check magic number.
8977 (target_require_runnable): Skip for all stratums over
8978 process_stratum.
8979 (target_ops::info_proc): New.
8980 (target_info_proc): Use find_target_at and
8981 find_default_run_target.
8982 (target_supports_disable_randomization): Use regular delegation.
8983 (target_get_osdata): Use find_target_at.
8984 (target_ops::open, target_ops::close, target_ops::can_attach)
8985 (target_ops::attach, target_ops::can_create_inferior)
8986 (target_ops::create_inferior, target_ops::can_run)
8987 (target_can_run): New.
8988 (default_fileio_target): Use regular delegation.
8989 (target_ops::fileio_open, target_ops::fileio_pwrite)
8990 (target_ops::fileio_pread, target_ops::fileio_fstat)
8991 (target_ops::fileio_close, target_ops::fileio_unlink)
8992 (target_ops::fileio_readlink): New.
8993 (target_fileio_open_1, target_fileio_unlink)
8994 (target_fileio_readlink): Always call the target method. Handle
8995 FILEIO_ENOSYS.
8996 (return_zero, return_zero_has_execution): Delete.
8997 (init_dummy_target): Delete.
8998 (dummy_target::dummy_target, dummy_target::shortname)
8999 (dummy_target::longname, dummy_target::doc)
9000 (debug_target::debug_target, debug_target::shortname)
9001 (debug_target::longname, debug_target::doc): New.
9002 (target_supports_delete_record): Use regular delegation.
9003 (setup_target_debug): Delete.
9004 (maintenance_print_target_stack): Skip debug_stratum.
9005 (initialize_targets): Instantiate the_dummy_target and
9006 the_debug_target.
9007 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9008 use target_stack.
9009 (target_auxv_search, fprint_target_auxv): Adjust.
9010 (info_auxv_command): Adjust to use target_stack.
9011 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9012 * exceptions.c (print_flush): Handle a NULL target_stack.
9013 * regcache.c (target_ops_no_register): Refactor as class with
9014 virtual methods.
9015
9016 * exec.c (exec_target): New class.
9017 (exec_ops): Now an exec_target.
9018 (exec_open, exec_close_1, exec_get_section_table)
9019 (exec_xfer_partial, exec_files_info, exec_has_memory)
9020 (exec_make_note_section): Refactor as exec_target methods.
9021 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9022 Delete.
9023 (exec_target::find_memory_regions): New.
9024 (_initialize_exec): Don't call init_exec_ops.
9025 * gdbcore.h (exec_file_clear): Delete.
9026
9027 * corefile.c (core_target): Delete.
9028 (core_file_command): Adjust.
9029 * corelow.c (core_target): New class.
9030 (the_core_target): New.
9031 (core_close): Remove target_ops parameter.
9032 (core_close_cleanup): Adjust.
9033 (core_target::close): New.
9034 (core_open, core_detach, get_core_registers, core_files_info)
9035 (core_xfer_partial, core_thread_alive, core_read_description)
9036 (core_pid_to_str, core_thread_name, core_has_memory)
9037 (core_has_stack, core_has_registers, core_info_proc): Rework as
9038 core_target methods.
9039 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9040 (_initialize_corelow): Initialize the_core_target.
9041 * gdbcore.h (core_target): Delete.
9042 (the_core_target): New.
9043
9044 * ctf.c: (ctf_target): New class.
9045 (ctf_ops): Now a ctf_target.
9046 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9047 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9048 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9049 methods.
9050 (init_ctf_ops): Delete.
9051 (_initialize_ctf): Don't call it.
9052 * tracefile-tfile.c (tfile_target): New class.
9053 (tfile_ops): Now a tfile_target.
9054 (tfile_open, tfile_close, tfile_files_info)
9055 (tfile_get_tracepoint_status, tfile_trace_find)
9056 (tfile_fetch_registers, tfile_xfer_partial)
9057 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9058 Refactor as tfile_target methods.
9059 (tfile_xfer_partial_features): Remove target_ops parameter.
9060 (init_tfile_ops): Delete.
9061 (_initialize_tracefile_tfile): Don't call it.
9062 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9063 (tracefile_has_stack, tracefile_has_registers)
9064 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9065 tracefile_target methods.
9066 (init_tracefile_ops): Delete.
9067 (tracefile_target::tracefile_target): New.
9068 * tracefile.h: Include "target.h".
9069 (tracefile_target): New class.
9070 (init_tracefile_ops): Delete.
9071
9072 * spu-multiarch.c (spu_multiarch_target): New class.
9073 (spu_ops): Now a spu_multiarch_target.
9074 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9075 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9076 (spu_search_memory, spu_mourn_inferior): Refactor as
9077 spu_multiarch_target methods.
9078 (init_spu_ops): Delete.
9079 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9080 complete_target_initialization.
9081
9082 * ravenscar-thread.c (ravenscar_thread_target): New class.
9083 (ravenscar_ops): Now a ravenscar_thread_target.
9084 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9085 (ravenscar_thread_alive, ravenscar_pid_to_str)
9086 (ravenscar_fetch_registers, ravenscar_store_registers)
9087 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9088 (ravenscar_stopped_by_hw_breakpoint)
9089 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9090 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9091 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9092 methods.
9093 (init_ravenscar_thread_ops): Delete.
9094 (_initialize_ravenscar): Remove references to
9095 init_ravenscar_thread_ops and complete_target_initialization.
9096
9097 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9098 (bsd_uthread_target): New class.
9099 (bsd_uthread_ops): Now a bsd_uthread_target.
9100 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9101 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9102 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9103 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9104 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9105 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9106 (bsd_uthread_target): Delete function.
9107 (_initialize_bsd_uthread): Remove reference to
9108 complete_target_initialization.
9109
9110 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9111 (target_bfd): ... this new class.
9112 (target_bfd_xfer_partial, target_bfd_get_section_table)
9113 (target_bfd_close): Refactor as target_bfd methods.
9114 (target_bfd::~target_bfd): New.
9115 (target_bfd_reopen): Adjust.
9116 (target_bfd::close): New.
9117
9118 * record-btrace.c (record_btrace_target): New class.
9119 (record_btrace_ops): Now a record_btrace_target.
9120 (record_btrace_open, record_btrace_stop_recording)
9121 (record_btrace_disconnect, record_btrace_close)
9122 (record_btrace_async, record_btrace_info)
9123 (record_btrace_insn_history, record_btrace_insn_history_range)
9124 (record_btrace_insn_history_from, record_btrace_call_history)
9125 (record_btrace_call_history_range)
9126 (record_btrace_call_history_from, record_btrace_record_method)
9127 (record_btrace_is_replaying, record_btrace_will_replay)
9128 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9129 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9130 (record_btrace_store_registers, record_btrace_prepare_to_store)
9131 (record_btrace_to_get_unwinder)
9132 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9133 (record_btrace_commit_resume, record_btrace_wait)
9134 (record_btrace_stop, record_btrace_can_execute_reverse)
9135 (record_btrace_stopped_by_sw_breakpoint)
9136 (record_btrace_supports_stopped_by_sw_breakpoint)
9137 (record_btrace_stopped_by_hw_breakpoint)
9138 (record_btrace_supports_stopped_by_hw_breakpoint)
9139 (record_btrace_update_thread_list, record_btrace_thread_alive)
9140 (record_btrace_goto_begin, record_btrace_goto_end)
9141 (record_btrace_goto, record_btrace_stop_replaying_all)
9142 (record_btrace_execution_direction)
9143 (record_btrace_prepare_to_generate_core)
9144 (record_btrace_done_generating_core): Refactor as
9145 record_btrace_target methods.
9146 (init_record_btrace_ops): Delete.
9147 (_initialize_record_btrace): Remove reference to
9148 init_record_btrace_ops.
9149 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9150 the execution_direction global.
9151 (record_full_base_target, record_full_target)
9152 (record_full_core_target): New classes.
9153 (record_full_ops): Now a record_full_target.
9154 (record_full_core_ops): Now a record_full_core_target.
9155 (record_full_target::detach, record_full_target::disconnect)
9156 (record_full_core_target::disconnect)
9157 (record_full_target::mourn_inferior, record_full_target::kill):
9158 New.
9159 (record_full_open, record_full_close, record_full_async): Refactor
9160 as methods of the record_full_base_target class.
9161 (record_full_resume, record_full_commit_resume): Refactor
9162 as methods of the record_full_target class.
9163 (record_full_wait, record_full_stopped_by_watchpoint)
9164 (record_full_stopped_data_address)
9165 (record_full_stopped_by_sw_breakpoint)
9166 (record_full_supports_stopped_by_sw_breakpoint)
9167 (record_full_stopped_by_hw_breakpoint)
9168 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9169 methods of the record_full_base_target class.
9170 (record_full_store_registers, record_full_xfer_partial)
9171 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9172 Refactor as methods of the record_full_target class.
9173 (record_full_can_execute_reverse, record_full_get_bookmark)
9174 (record_full_goto_bookmark, record_full_execution_direction)
9175 (record_full_record_method, record_full_info, record_full_delete)
9176 (record_full_is_replaying, record_full_will_replay)
9177 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9178 (record_full_stop_replaying): Refactor as methods of the
9179 record_full_base_target class.
9180 (record_full_core_resume, record_full_core_kill)
9181 (record_full_core_fetch_registers)
9182 (record_full_core_prepare_to_store)
9183 (record_full_core_store_registers, record_full_core_xfer_partial)
9184 (record_full_core_insert_breakpoint)
9185 (record_full_core_remove_breakpoint)
9186 (record_full_core_has_execution): Refactor
9187 as methods of the record_full_core_target class.
9188 (record_full_base_target::supports_delete_record): New.
9189 (init_record_full_ops): Delete.
9190 (init_record_full_core_ops): Delete.
9191 (record_full_save): Refactor as method of the
9192 record_full_base_target class.
9193 (_initialize_record_full): Remove references to
9194 init_record_full_ops and init_record_full_core_ops.
9195
9196 * remote.c (remote_target, extended_remote_target): New classes.
9197 (remote_ops): Now a remote_target.
9198 (extended_remote_ops): Now an extended_remote_target.
9199 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9200 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9201 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9202 (remote_pass_signals, remote_set_syscall_catchpoint)
9203 (remote_program_signals, )
9204 (remote_thread_always_alive): Remove target_ops parameter.
9205 (remote_thread_alive, remote_thread_name)
9206 (remote_update_thread_list, remote_threads_extra_info)
9207 (remote_static_tracepoint_marker_at)
9208 (remote_static_tracepoint_markers_by_strid)
9209 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9210 (remote_open): Refactor as methods of remote_target.
9211 (extended_remote_open, extended_remote_detach)
9212 (extended_remote_attach, extended_remote_post_attach):
9213 (extended_remote_supports_disable_randomization)
9214 (extended_remote_create_inferior): : Refactor as method of
9215 extended_remote_target.
9216 (remote_set_permissions, remote_open_1, remote_detach)
9217 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9218 (remote_resume, remote_commit_resume, remote_stop)
9219 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9220 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9221 (remote_prepare_to_store, remote_store_registers)
9222 (remote_flash_erase, remote_flash_done, remote_files_info)
9223 (remote_kill, remote_mourn, remote_insert_breakpoint)
9224 (remote_remove_breakpoint, remote_insert_watchpoint)
9225 (remote_watchpoint_addr_within_range)
9226 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9227 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9228 (remote_supports_stopped_by_sw_breakpoint)
9229 (remote_stopped_by_hw_breakpoint)
9230 (remote_supports_stopped_by_hw_breakpoint)
9231 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9232 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9233 (remote_verify_memory): Refactor as methods of remote_target.
9234 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9235 parameter.
9236 (remote_xfer_partial, remote_get_memory_xfer_limit)
9237 (remote_search_memory, remote_rcmd, remote_memory_map)
9238 (remote_pid_to_str, remote_get_thread_local_address)
9239 (remote_get_tib_address, remote_read_description): Refactor as
9240 methods of remote_target.
9241 (remote_target::fileio_open, remote_target::fileio_pwrite)
9242 (remote_target::fileio_pread, remote_target::fileio_close): New.
9243 (remote_hostio_readlink, remote_hostio_fstat)
9244 (remote_filesystem_is_local, remote_can_execute_reverse)
9245 (remote_supports_non_stop, remote_supports_disable_randomization)
9246 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9247 (remote_supports_enable_disable_tracepoint)
9248 (remote_supports_string_tracing)
9249 (remote_can_run_breakpoint_commands, remote_trace_init)
9250 (remote_download_tracepoint, remote_can_download_tracepoint)
9251 (remote_download_trace_state_variable, remote_enable_tracepoint)
9252 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9253 (remote_trace_start, remote_get_trace_status)
9254 (remote_get_tracepoint_status, remote_trace_stop)
9255 (remote_trace_find, remote_get_trace_state_variable_value)
9256 (remote_save_trace_data, remote_get_raw_trace_data)
9257 (remote_set_disconnected_tracing, remote_core_of_thread)
9258 (remote_set_circular_trace_buffer, remote_traceframe_info)
9259 (remote_get_min_fast_tracepoint_insn_len)
9260 (remote_set_trace_buffer_size, remote_set_trace_notes)
9261 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9262 (remote_disable_btrace, remote_teardown_btrace)
9263 (remote_read_btrace, remote_btrace_conf)
9264 (remote_augmented_libraries_svr4_read, remote_load)
9265 (remote_pid_to_exec_file, remote_can_do_single_step)
9266 (remote_execution_direction, remote_thread_handle_to_thread_info):
9267 Refactor as methods of remote_target.
9268 (init_remote_ops, init_extended_remote_ops): Delete.
9269 (remote_can_async_p, remote_is_async_p, remote_async)
9270 (remote_thread_events, remote_upload_tracepoints)
9271 (remote_upload_trace_state_variables): Refactor as methods of
9272 remote_target.
9273 (_initialize_remote): Remove references to init_remote_ops and
9274 init_extended_remote_ops.
9275
9276 * remote-sim.c (gdbsim_target): New class.
9277 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9278 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9279 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9280 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9281 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9282 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9283 Refactor as methods of gdbsim_target.
9284 (gdbsim_ops): Now a gdbsim_target.
9285 (init_gdbsim_ops): Delete.
9286 (gdbsim_cntrl_c): Adjust.
9287 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9288
9289 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9290 (the_amd64_linux_nat_target): New.
9291 (amd64_linux_fetch_inferior_registers)
9292 (amd64_linux_store_inferior_registers): Refactor as methods of
9293 amd64_linux_nat_target.
9294 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9295 * i386-linux-nat.c: Don't include "linux-nat.h".
9296 (i386_linux_nat_target): New class.
9297 (the_i386_linux_nat_target): New.
9298 (i386_linux_fetch_inferior_registers)
9299 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9300 as methods of i386_linux_nat_target.
9301 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9302 * inf-child.c (inf_child_ops): Delete.
9303 (inf_child_fetch_inferior_registers)
9304 (inf_child_store_inferior_registers): Delete.
9305 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9306 methods of inf_child_target.
9307 (inf_child_target::supports_terminal_ours)
9308 (inf_child_target::terminal_init)
9309 (inf_child_target::terminal_inferior)
9310 (inf_child_target::terminal_ours_for_output)
9311 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9312 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9313 New.
9314 (inf_child_open, inf_child_disconnect, inf_child_close)
9315 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9316 (inf_child_post_startup_inferior, inf_child_can_run)
9317 (inf_child_pid_to_exec_file): Refactor as methods of
9318 inf_child_target.
9319 (inf_child_follow_fork): Delete.
9320 (inf_child_target::can_create_inferior)
9321 (inf_child_target::can_attach): New.
9322 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9323 (inf_child_target::has_stack, inf_child_target::has_registers)
9324 (inf_child_target::has_execution): New.
9325 (inf_child_fileio_open, inf_child_fileio_pwrite)
9326 (inf_child_fileio_pread, inf_child_fileio_fstat)
9327 (inf_child_fileio_close, inf_child_fileio_unlink)
9328 (inf_child_fileio_readlink, inf_child_use_agent)
9329 (inf_child_can_use_agent): Refactor as methods of
9330 inf_child_target.
9331 (return_zero, inf_child_target): Delete.
9332 (inf_child_target::inf_child_target): New.
9333 * inf-child.h: Include "target.h".
9334 (inf_child_target): Delete function prototype.
9335 (inf_child_target): New class.
9336 (inf_child_open_target, inf_child_mourn_inferior)
9337 (inf_child_maybe_unpush_target): Delete.
9338 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9339 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9340 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9341 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9342 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9343 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9344 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9345 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9346 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9347 methods of inf_ptrace_target.
9348 (inf_ptrace_target): Delete function.
9349 * inf-ptrace.h: Include "inf-child.h".
9350 (inf_ptrace_target): Delete function declaration.
9351 (inf_ptrace_target): New class.
9352 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9353 * linux-nat.c (linux_target): New.
9354 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9355 (linux_nat_target::~linux_nat_target): New.
9356 (linux_child_post_attach, linux_child_post_startup_inferior)
9357 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9358 (linux_child_remove_fork_catchpoint)
9359 (linux_child_insert_vfork_catchpoint)
9360 (linux_child_remove_vfork_catchpoint)
9361 (linux_child_insert_exec_catchpoint)
9362 (linux_child_remove_exec_catchpoint)
9363 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9364 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9365 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9366 (linux_nat_stopped_data_address)
9367 (linux_nat_stopped_by_sw_breakpoint)
9368 (linux_nat_supports_stopped_by_sw_breakpoint)
9369 (linux_nat_stopped_by_hw_breakpoint)
9370 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9371 (linux_nat_kill, linux_nat_mourn_inferior)
9372 (linux_nat_xfer_partial, linux_nat_thread_alive)
9373 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9374 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9375 (linux_child_static_tracepoint_markers_by_strid)
9376 (linux_nat_is_async_p, linux_nat_can_async_p)
9377 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9378 (linux_nat_supports_multi_process)
9379 (linux_nat_supports_disable_randomization, linux_nat_async)
9380 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9381 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9382 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9383 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9384 methods of linux_nat_target.
9385 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9386 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9387 parameter.
9388 (check_stopped_by_watchpoint): Adjust.
9389 (linux_xfer_partial): Delete.
9390 (linux_target_install_ops, linux_target, linux_nat_add_target):
9391 Delete.
9392 (linux_nat_target::linux_nat_target): New.
9393 * linux-nat.h: Include "inf-ptrace.h".
9394 (linux_nat_target): New.
9395 (linux_target, linux_target_install_ops, linux_nat_add_target):
9396 Delete function declarations.
9397 (linux_target): Declare global.
9398 * linux-thread-db.c (thread_db_target): New.
9399 (thread_db_target::thread_db_target): New.
9400 (thread_db_ops): Delete.
9401 (the_thread_db_target): New.
9402 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9403 (thread_db_update_thread_list, thread_db_pid_to_str)
9404 (thread_db_extra_thread_info)
9405 (thread_db_thread_handle_to_thread_info)
9406 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9407 (thread_db_resume): Refactor as methods of thread_db_target.
9408 (init_thread_db_ops): Delete.
9409 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9410 * x86-linux-nat.c: Don't include "linux-nat.h".
9411 (super_post_startup_inferior): Delete.
9412 (x86_linux_nat_target::~x86_linux_nat_target): New.
9413 (x86_linux_child_post_startup_inferior)
9414 (x86_linux_read_description, x86_linux_enable_btrace)
9415 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9416 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9417 methods of x86_linux_nat_target.
9418 (x86_linux_create_target): Delete. Bits folded ...
9419 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9420 pointer.
9421 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9422 (x86_linux_nat_target): New class.
9423 (x86_linux_create_target): Delete.
9424 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9425 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9426 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9427 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9428 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9429 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9430 make extern.
9431 (x86_use_watchpoints): Delete.
9432 * x86-nat.h: Include "breakpoint.h" and "target.h".
9433 (x86_use_watchpoints): Delete.
9434 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9435 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9436 (x86_insert_watchpoint, x86_remove_watchpoint)
9437 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9438 (x86_stopped_by_hw_breakpoint): New declarations.
9439 (x86_nat_target): New template class.
9440
9441 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9442 (the_ppc_linux_nat_target): New.
9443 (ppc_linux_fetch_inferior_registers)
9444 (ppc_linux_can_use_hw_breakpoint)
9445 (ppc_linux_region_ok_for_hw_watchpoint)
9446 (ppc_linux_ranged_break_num_registers)
9447 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9448 (ppc_linux_insert_mask_watchpoint)
9449 (ppc_linux_remove_mask_watchpoint)
9450 (ppc_linux_can_accel_watchpoint_condition)
9451 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9452 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9453 (ppc_linux_watchpoint_addr_within_range)
9454 (ppc_linux_masked_watch_num_registers)
9455 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9456 (ppc_linux_read_description): Refactor as methods of
9457 ppc_linux_nat_target.
9458 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9459
9460 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9461 (procfs_target): New class.
9462 (the_procfs_target): New.
9463 (procfs_target): Delete function.
9464 (procfs_auxv_parse, procfs_attach, procfs_detach)
9465 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9466 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9467 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9468 (procfs_create_inferior, procfs_update_thread_list)
9469 (procfs_thread_alive, procfs_pid_to_str)
9470 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9471 (procfs_stopped_data_address, procfs_insert_watchpoint)
9472 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9473 (proc_find_memory_regions, procfs_info_proc)
9474 (procfs_make_note_section): Refactor as methods of procfs_target.
9475 (_initialize_procfs): Adjust.
9476 * sol-thread.c (sol_thread_target): New class.
9477 (sol_thread_ops): Now a sol_thread_target.
9478 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9479 (sol_thread_fetch_registers, sol_thread_store_registers)
9480 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9481 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9482 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9483 (init_sol_thread_ops): Delete.
9484 (_initialize_sol_thread): Adjust. Remove references to
9485 init_sol_thread_ops and complete_target_initialization.
9486
9487 * windows-nat.c (windows_nat_target): New class.
9488 (windows_fetch_inferior_registers)
9489 (windows_store_inferior_registers, windows_resume, windows_wait)
9490 (windows_attach, windows_detach, windows_pid_to_exec_file)
9491 (windows_files_info, windows_create_inferior)
9492 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9493 (windows_close, windows_pid_to_str, windows_xfer_partial)
9494 (windows_get_tib_address, windows_get_ada_task_ptid)
9495 (windows_thread_name, windows_thread_alive): Refactor as
9496 windows_nat_target methods.
9497 (do_initial_windows_stuff): Adjust.
9498 (windows_target): Delete function.
9499 (_initialize_windows_nat): Adjust.
9500
9501 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9502 (darwin_mourn_inferior, darwin_kill_inferior)
9503 (darwin_create_inferior, darwin_attach, darwin_detach)
9504 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9505 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9506 (darwin_supports_multi_process): Refactor as darwin_nat_target
9507 methods.
9508 (darwin_resume_to, darwin_files_info): Delete.
9509 (_initialize_darwin_inferior): Rename to ...
9510 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9511 * darwin-nat.h: Include "inf-child.h".
9512 (darwin_nat_target): New class.
9513 (darwin_complete_target): Delete.
9514 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9515 (darwin_target): New.
9516 (i386_darwin_fetch_inferior_registers)
9517 (i386_darwin_store_inferior_registers): Refactor as methods of
9518 darwin_nat_target.
9519 (darwin_complete_target): Delete, with ...
9520 (_initialize_i386_darwin_nat): ... bits factored out here.
9521
9522 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9523 (the_alpha_linux_nat_target): New.
9524 (alpha_linux_register_u_offset): Refactor as
9525 alpha_linux_nat_target method.
9526 (_initialize_alpha_linux_nat): Adjust.
9527 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9528 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9529 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9530 methods of linux_nat_trad_target.
9531 (linux_trad_target): Delete.
9532 * linux-nat-trad.h (linux_trad_target): Delete function.
9533 (linux_nat_trad_target): New class.
9534 * mips-linux-nat.c (mips_linux_nat_target): New class.
9535 (super_fetch_registers, super_store_registers, super_close):
9536 Delete.
9537 (the_mips_linux_nat_target): New.
9538 (mips64_linux_regsets_fetch_registers)
9539 (mips64_linux_regsets_store_registers)
9540 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9541 (mips_linux_register_u_offset, mips_linux_read_description)
9542 (mips_linux_can_use_hw_breakpoint)
9543 (mips_linux_stopped_by_watchpoint)
9544 (mips_linux_stopped_data_address)
9545 (mips_linux_region_ok_for_hw_watchpoint)
9546 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9547 (mips_linux_close): Refactor as methods of mips_linux_nat.
9548 (_initialize_mips_linux_nat): Adjust to C++ification.
9549
9550 * aix-thread.c (aix_thread_target): New class.
9551 (aix_thread_ops): Now an aix_thread_target.
9552 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9553 (aix_thread_fetch_registers, aix_thread_store_registers)
9554 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9555 (aix_thread_thread_alive, aix_thread_pid_to_str)
9556 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9557 Refactor as methods of aix_thread_target.
9558 (init_aix_thread_ops): Delete.
9559 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9560 and complete_target_initialization.
9561 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9562 (rs6000_nat_target): New class.
9563 (the_rs6000_nat_target): New.
9564 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9565 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9566 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9567 (super_create_inferior): Delete.
9568 (_initialize_rs6000_nat): Adjust to C++ification.
9569
9570 * arm-linux-nat.c (arm_linux_nat_target): New class.
9571 (the_arm_linux_nat_target): New.
9572 (arm_linux_fetch_inferior_registers)
9573 (arm_linux_store_inferior_registers, arm_linux_read_description)
9574 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9575 (arm_linux_remove_hw_breakpoint)
9576 (arm_linux_region_ok_for_hw_watchpoint)
9577 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9578 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9579 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9580 arm_linux_nat_target.
9581 (_initialize_arm_linux_nat): Adjust to C++ification.
9582
9583 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9584 (the_aarch64_linux_nat_target): New.
9585 (aarch64_linux_fetch_inferior_registers)
9586 (aarch64_linux_store_inferior_registers)
9587 (aarch64_linux_child_post_startup_inferior)
9588 (aarch64_linux_read_description)
9589 (aarch64_linux_can_use_hw_breakpoint)
9590 (aarch64_linux_insert_hw_breakpoint)
9591 (aarch64_linux_remove_hw_breakpoint)
9592 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9593 (aarch64_linux_region_ok_for_hw_watchpoint)
9594 (aarch64_linux_stopped_data_address)
9595 (aarch64_linux_stopped_by_watchpoint)
9596 (aarch64_linux_watchpoint_addr_within_range)
9597 (aarch64_linux_can_do_single_step): Refactor as methods of
9598 aarch64_linux_nat_target.
9599 (super_post_startup_inferior): Delete.
9600 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9601
9602 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9603 (the_hppa_linux_nat_target): New.
9604 (hppa_linux_fetch_inferior_registers)
9605 (hppa_linux_store_inferior_registers): Refactor as methods of
9606 hppa_linux_nat_target.
9607 (_initialize_hppa_linux_nat): Adjust to C++ification.
9608
9609 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9610 (the_ia64_linux_nat_target): New.
9611 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9612 (ia64_linux_stopped_data_address)
9613 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9614 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9615 ia64_linux_nat_target methods.
9616 (super_xfer_partial): Delete.
9617 (_initialize_ia64_linux_nat): Adjust to C++ification.
9618
9619 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9620 (the_m32r_linux_nat_target): New.
9621 (m32r_linux_fetch_inferior_registers)
9622 (m32r_linux_store_inferior_registers): Refactor as
9623 m32r_linux_nat_target methods.
9624 (_initialize_m32r_linux_nat): Adjust to C++ification.
9625
9626 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9627 (the_m68k_linux_nat_target): New.
9628 (m68k_linux_fetch_inferior_registers)
9629 (m68k_linux_store_inferior_registers): Refactor as
9630 m68k_linux_nat_target methods.
9631 (_initialize_m68k_linux_nat): Adjust to C++ification.
9632
9633 * s390-linux-nat.c (s390_linux_nat_target): New class.
9634 (the_s390_linux_nat_target): New.
9635 (s390_linux_fetch_inferior_registers)
9636 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9637 (s390_insert_watchpoint, s390_remove_watchpoint)
9638 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9639 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9640 (s390_auxv_parse, s390_read_description): Refactor as methods of
9641 s390_linux_nat_target.
9642 (_initialize_s390_nat): Adjust to C++ification.
9643
9644 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9645 (the_sparc_linux_nat_target): New.
9646 (_initialize_sparc_linux_nat): Adjust to C++ification.
9647 * sparc-nat.c (sparc_fetch_inferior_registers)
9648 (sparc_store_inferior_registers): Remove target_ops parameter.
9649 * sparc-nat.h (sparc_fetch_inferior_registers)
9650 (sparc_store_inferior_registers): Remove target_ops parameter.
9651 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9652 (the_sparc64_linux_nat_target): New.
9653 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9654
9655 * spu-linux-nat.c (spu_linux_nat_target): New class.
9656 (the_spu_linux_nat_target): New.
9657 (spu_child_post_startup_inferior, spu_child_post_attach)
9658 (spu_child_wait, spu_fetch_inferior_registers)
9659 (spu_store_inferior_registers, spu_xfer_partial)
9660 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9661 methods.
9662 (_initialize_spu_nat): Adjust to C++ification.
9663
9664 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9665 (the_tilegx_linux_nat_target): New.
9666 (fetch_inferior_registers, store_inferior_registers):
9667 Refactor as methods.
9668 (_initialize_tile_linux_nat): Adjust to C++ification.
9669
9670 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9671 (the_xtensa_linux_nat_target): New.
9672 (xtensa_linux_fetch_inferior_registers)
9673 (xtensa_linux_store_inferior_registers): Refactor as
9674 xtensa_linux_nat_target methods.
9675 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9676
9677 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9678 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9679 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9680 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9681 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9682 (fbsd_stopped_by_sw_breakpoint)
9683 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9684 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9685 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9686 (fbsd_post_startup_inferior, fbsd_post_attach)
9687 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9688 (fbsd_set_syscall_catchpoint)
9689 (super_xfer_partial, super_resume, super_wait)
9690 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9691 (fbsd_handle_debug_trap): Remove target_ops parameter.
9692 (fbsd_nat_add_target): Delete.
9693 * fbsd-nat.h: Include "inf-ptrace.h".
9694 (fbsd_nat_add_target): Delete.
9695 (USE_SIGTRAP_SIGINFO): Define.
9696 (fbsd_nat_target): New class.
9697
9698 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9699 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9700 (amd64bsd_target): Delete.
9701 * amd64-bsd-nat.h: New file.
9702 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9703 "x86-bsd-nat.h".
9704 (amd64_fbsd_nat_target): New class.
9705 (the_amd64_fbsd_nat_target): New.
9706 (amd64fbsd_read_description): Refactor as method of
9707 amd64_fbsd_nat_target.
9708 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9709 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9710 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9711 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9712 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9713 (i386bsd_target): Delete.
9714 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9715 (i386bsd_fetch_inferior_registers)
9716 (i386bsd_store_inferior_registers): Declare.
9717 (i386_bsd_nat_target): New class.
9718 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9719 (the_i386_fbsd_nat_target): New.
9720 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9721 i386_fbsd_nat_target methods.
9722 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9723 (_initialize_i386fbsd_nat): Adjust to C++ification.
9724 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9725 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9726 (_initialize_x86_bsd_nat): Adjust to C++ification.
9727 * x86-bsd-nat.h: Include "x86-nat.h".
9728 (x86bsd_target): Delete declaration.
9729 (x86bsd_nat_target): New class.
9730
9731 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9732 (the_aarch64_fbsd_nat_target): New.
9733 (aarch64_fbsd_fetch_inferior_registers)
9734 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9735 aarch64_fbsd_nat_target.
9736 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9737 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9738 (the_alpha_bsd_nat_target): New.
9739 (alphabsd_fetch_inferior_registers)
9740 (alphabsd_store_inferior_registers): Refactor as
9741 alpha_bsd_nat_target methods.
9742 (_initialize_alphabsd_nat): Refactor as methods of
9743 alpha_bsd_nat_target.
9744 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9745 (the_amd64_nbsd_nat_target): New.
9746 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9747 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9748 (the_amd64_obsd_nat_target): New.
9749 (_initialize_amd64obsd_nat): Adjust to C++ification.
9750 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9751 (the_arm_fbsd_nat_target): New.
9752 (arm_fbsd_fetch_inferior_registers)
9753 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9754 (_initialize_arm_fbsd_nat): Refactor as methods of
9755 arm_fbsd_nat_target.
9756 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9757 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9758 (the_arm_netbsd_nat_target): New.
9759 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9760 arm_netbsd_nat_target.
9761 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9762 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9763 (the_hppa_nbsd_nat_target): New.
9764 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9765 hppa_nbsd_nat_target methods.
9766 (_initialize_hppanbsd_nat): Adjust to C++ification.
9767 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9768 (the_hppa_obsd_nat_target): New.
9769 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9770 methods of hppa_obsd_nat_target.
9771 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9772 add_target.
9773 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9774 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9775 add_target.
9776 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9777 (_initialize_i386obsd_nat): Use add_target.
9778 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9779 (the_m68k_bsd_nat_target): New.
9780 (m68kbsd_fetch_inferior_registers)
9781 (m68kbsd_store_inferior_registers): Refactor as methods of
9782 m68k_bsd_nat_target.
9783 (_initialize_m68kbsd_nat): Adjust to C++ification.
9784 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9785 (the_mips_fbsd_nat_target): New.
9786 (mips_fbsd_fetch_inferior_registers)
9787 (mips_fbsd_store_inferior_registers): Refactor as methods of
9788 mips_fbsd_nat_target.
9789 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9790 add_target.
9791 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9792 (the_mips_nbsd_nat_target): New.
9793 (mipsnbsd_fetch_inferior_registers)
9794 (mipsnbsd_store_inferior_registers): Refactor as methods of
9795 mips_nbsd_nat_target.
9796 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9797 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9798 (the_mips64_obsd_nat_target): New.
9799 (mips64obsd_fetch_inferior_registers)
9800 (mips64obsd_store_inferior_registers): Refactor as methods of
9801 mips64_obsd_nat_target.
9802 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9803 add_target.
9804 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9805 nbsd_nat_target.
9806 * nbsd-nat.h: Include "inf-ptrace.h".
9807 (nbsd_nat_target): New class.
9808 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9809 (obsd_wait): Refactor as methods of obsd_nat_target.
9810 (obsd_add_target): Delete.
9811 * obsd-nat.h: Include "inf-ptrace.h".
9812 (obsd_nat_target): New class.
9813 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9814 (the_ppc_fbsd_nat_target): New.
9815 (ppcfbsd_fetch_inferior_registers)
9816 (ppcfbsd_store_inferior_registers): Refactor as methods of
9817 ppc_fbsd_nat_target.
9818 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9819 add_target.
9820 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9821 (the_ppc_nbsd_nat_target): New.
9822 (ppcnbsd_fetch_inferior_registers)
9823 (ppcnbsd_store_inferior_registers): Refactor as methods of
9824 ppc_nbsd_nat_target.
9825 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9826 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9827 (the_ppc_obsd_nat_target): New.
9828 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9829 methods of ppc_obsd_nat_target.
9830 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9831 add_target.
9832 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9833 (the_sh_nbsd_nat_target): New.
9834 (shnbsd_fetch_inferior_registers)
9835 (shnbsd_store_inferior_registers): Refactor as methods of
9836 sh_nbsd_nat_target.
9837 (_initialize_shnbsd_nat): Adjust to C++ification.
9838 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9839 (inf_ptrace_xfer_partial): Delete.
9840 (sparc_xfer_partial, sparc_target): Delete.
9841 * sparc-nat.h (sparc_fetch_inferior_registers)
9842 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9843 (sparc_target): Delete function declaration.
9844 (sparc_target): New template class.
9845 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9846 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9847 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9848 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9849 add_target.
9850 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9851 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9852 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9853 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9854 add_target.
9855 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9856 (the_vax_bsd_nat_target): New.
9857 (vaxbsd_fetch_inferior_registers)
9858 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9859 methods.
9860 (_initialize_vaxbsd_nat): Adjust to C++ification.
9861
9862 * bsd-kvm.c (bsd_kvm_target): New class.
9863 (bsd_kvm_ops): Now a bsd_kvm_target.
9864 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9865 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9866 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9867 bsd_kvm_target.
9868 (bsd_kvm_return_one): Delete.
9869 (bsd_kvm_add_target): Adjust to C++ification.
9870
9871 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9872 (nto_procfs_target_procfs): New classes.
9873 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9874 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9875 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9876 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9877 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9878 (procfs_remove_hw_breakpoint, procfs_resume)
9879 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9880 (procfs_kill_inferior, procfs_store_registers)
9881 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9882 as methods of nto_procfs_target.
9883 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9884 (nto_native_ops): Delete.
9885 (procfs_open, procfs_native_open): Delete.
9886 (nto_native_ops): Now an nto_procfs_target_native.
9887 (init_procfs_targets): Adjust to C++ification.
9888 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9889 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9890 Refactor as methods of nto_procfs_target.
9891
9892 * go32-nat.c (go32_nat_target): New class.
9893 (the_go32_nat_target): New.
9894 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9895 (go32_store_registers, go32_xfer_partial, go32_files_info)
9896 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9897 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9898 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9899 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9900 (go32_target): Delete.
9901 (_initialize_go32_nat): Adjust to C++ification.
9902
9903 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9904 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9905 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9906 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9907 gnu_nat_target.
9908 (gnu_target): Delete.
9909 * gnu-nat.h (gnu_target): Delete.
9910 (gnu_nat_target): New class.
9911 * i386-gnu-nat.c (gnu_base_target): New.
9912 (i386_gnu_nat_target): New class.
9913 (the_i386_gnu_nat_target): New.
9914 (_initialize_i386gnu_nat): Adjust to C++ification.
9915
9916 2018-05-02 Pedro Alves <palves@redhat.com>
9917
9918 * bfd-target.c (target_bfd_xclose): Rename to ...
9919 (target_bfd_close): ... this.
9920 (target_bfd_reopen): Adjust.
9921 * target.c (target_close): Remove references to to_xclose.
9922 * target.h (target_ops::to_xclose): Delete.
9923 (target_ops::to_close): Update comments.
9924
9925 2018-05-02 Pedro Alves <palves@redhat.com>
9926
9927 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9928 "linux-nat.h".
9929 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9930 * inf-ptrace.c (inf_ptrace_register_u_offset)
9931 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9932 (inf_ptrace_store_register, inf_ptrace_store_registers)
9933 (inf_ptrace_trad_target): Move to ...
9934 * linux-nat-trad.c: ... this new file.
9935 * linux-nat-trad.h: New file.
9936 * linux-nat.c (linux_target_install_ops): Make extern.
9937 (linux_trad_target): Delete.
9938 * linux-nat.h (linux_trad_target): Delete declaration.
9939 (linux_target_install_ops): Declare.
9940 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9941 "linux-nat.h".
9942
9943 2018-05-02 Pedro Alves <palves@redhat.com>
9944
9945 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9946 procfs_target/add_target here.
9947 * procfs.c (procfs_target): Make static.
9948 (_initialize_procfs): Call add_target here.
9949 * procfs.h (struct target_ops): Remove forward declaration.
9950 (procfs_target): Remove declaration.
9951 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9952
9953 2018-05-02 Pedro Alves <palves@redhat.com>
9954
9955 * procfs.c (procfs_stopped_by_watchpoint)
9956 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9957 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9958 Forward declare.
9959 (procfs_use_watchpoints): Delete, move contents...
9960 (procfs_target): ... here.
9961 * procfs.h (procfs_use_watchpoints): Delete declaration.
9962 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9963 procfs_use_watchpoints.
9964 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9965 procfs_use_watchpoints.
9966
9967 2018-05-02 Tom Tromey <tom@tromey.com>
9968
9969 PR python/20084:
9970 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9971 and var_zuinteger_unlimited.
9972 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9973 and PARAM_ZUINTEGER_UNLIMITED.
9974 (set_parameter_value): Handle var_zuinteger and
9975 var_zuinteger_unlimited.
9976 (add_setshow_generic): Likewise.
9977 (parmpy_init): Likewise.
9978
9979 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9980
9981 PR rust/23124
9982 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9983 pointer is not null before dereferencing it.
9984
9985 2018-04-30 Tom Tromey <tom@tromey.com>
9986
9987 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9988 is_mi_like_p.
9989
9990 2018-04-30 Tom Tromey <tom@tromey.com>
9991
9992 * breakpoint.c (mention): Remove use of is_mi_like_p.
9993 (print_mention_ranged_breakpoint): Likewise.
9994 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9995 of is_mi_like_p.
9996
9997 2018-04-30 Tom Tromey <tom@tromey.com>
9998
9999 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10000
10001 2018-04-30 Tom Tromey <tom@tromey.com>
10002
10003 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10004 (info_spu_event_command): Remove some uses of is_mi_like_p.
10005
10006 2018-04-30 Tom Tromey <tom@tromey.com>
10007
10008 * python/py-framefilter.c (py_print_single_arg)
10009 (enumerate_locals, py_print_args, py_print_frame): Remove some
10010 uses of is_mi_like_p.
10011
10012 2018-04-30 Tom Tromey <tom@tromey.com>
10013
10014 * ui-out.c: Update.
10015 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10016 * ui-out.h (ui_out::is_mi_like_p): Now const.
10017 (ui_out::do_is_mi_like_p): Now const.
10018 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10019
10020 2018-04-30 Tom Tromey <tom@tromey.com>
10021
10022 * varobj.c (varobj_set_visualizer): Use new_reference.
10023 * python/python.c (gdbpy_decode_line): Use new_reference.
10024 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10025 new_reference.
10026
10027 2018-04-30 Tom Tromey <tom@tromey.com>
10028
10029 * varobj.c (install_new_value): Use new_reference.
10030 * value.h (value_incref): Return void. Swap intro comment with
10031 value_decref.
10032 * value.c (set_value_parent): Use new_reference.
10033 (value_incref): Return void. Update intro comment.
10034 (release_value): Use new_reference.
10035 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10036
10037 2018-04-30 Tom Tromey <tom@tromey.com>
10038
10039 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10040 * gdb_bfd.h (new_bfd_ref): Remove.
10041 (gdb_bfd_open): Update comment.
10042 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10043 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10044 (gdb_bfd_fdopenr): Use new_reference.
10045 * exec.c (exec_file_attach): Use new_reference.
10046
10047 2018-04-30 Tom Tromey <tom@tromey.com>
10048
10049 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10050 method.
10051
10052 2018-04-30 Tom Tromey <tom@tromey.com>
10053
10054 * jit.c (jit_read_code_entry): Use type_align.
10055 * i386-tdep.c (i386_gdbarch_init): Don't call
10056 set_gdbarch_long_long_align_bit.
10057 * gdbarch.sh: Remove long_long_align_bit.
10058 * gdbarch.c, gdbarch.h: Rebuild.
10059 * arc-tdep.c (arc_type_align): New function.
10060 (arc_gdbarch_init): Use arc_type_align. Don't call
10061 set_gdbarch_long_long_align_bit.
10062
10063 2018-04-30 Tom Tromey <tom@tromey.com>
10064
10065 * rust-lang.c (rust_type_alignment): Remove.
10066 (rust_composite_type): Use type_align.
10067
10068 2018-04-30 Tom Tromey <tom@tromey.com>
10069
10070 * NEWS: Mention Type.align.
10071 * python/py-type.c (typy_get_alignof): New function.
10072 (type_object_getset): Add "alignof".
10073
10074 2018-04-30 Tom Tromey <tom@tromey.com>
10075
10076 PR exp/17095:
10077 * NEWS: Update.
10078 * std-operator.def (UNOP_ALIGNOF): New operator.
10079 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10080 New.
10081 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10082 * c-lang.c (c_op_print_tab): Add alignof.
10083 * c-exp.y (ALIGNOF): New token.
10084 (exp): Add "ALIGNOF" production.
10085 (ident_tokens): Add _Alignof and alignof.
10086
10087 2018-04-30 Tom Tromey <tom@tromey.com>
10088
10089 * i386-tdep.c (i386_type_align): New function.
10090 (i386_gdbarch_init): Update.
10091 * gdbarch.sh (type_align): New method.
10092 * gdbarch.c, gdbarch.h: Rebuild.
10093 * arch-utils.h (default_type_align): Declare.
10094 * arch-utils.c (default_type_align): New function.
10095 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10096 (struct type) <align_log2>: New field.
10097 <instance_flags>: Now a bitfield.
10098 (TYPE_RAW_ALIGN): New macro.
10099 (type_align, type_raw_align, set_type_align): Declare.
10100 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10101 functions.
10102 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10103 (get_alignment, maybe_set_alignment): New functions.
10104 (read_structure_type, read_enumeration_type, read_array_type)
10105 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10106 (read_subrange_type, read_base_type): Set type alignment.
10107
10108 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10109
10110 * dwarf2read.c (read_index_from_section): Use bool.
10111
10112 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10113
10114 PR gdb/22950
10115 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10116 with #ifdef.
10117
10118 2018-04-29 John Reiser <jreiser@BitWagon.com>
10119
10120 PR build/22873
10121 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10122 last step, and do it atomically.
10123
10124 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10125
10126 * compile/compile-c-types.c (convert_int, convert_float):
10127 Update for C FE v1.
10128
10129 2018-04-27 Tom Tromey <tom@tromey.com>
10130
10131 PR rust/22545:
10132 * rust-lang.c (rust_inclusive_range_type_p): New function.
10133 (rust_range): Handle inclusive ranges.
10134 (rust_compute_range): Likewise.
10135 * rust-exp.y (struct rust_op) <inclusive>: New field.
10136 (DOTDOTEQ): New constant.
10137 (range_expr): Add "..=" productions.
10138 (operator_tokens): Add "..=" token.
10139 (ast_range): Add "inclusive" parameter.
10140 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10141 ranges.
10142 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10143 bounds values.
10144 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10145 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10146 Update comments.
10147 * expprint.c (print_subexp_standard): Handle new bounds values.
10148 (dump_subexp_body_standard): Likewise.
10149
10150 2018-04-27 Tom Tromey <tom@tromey.com>
10151
10152 * configure: Rebuild.
10153 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10154 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10155 "OVERRIDE".
10156 (class symbol_needs_eval_context): Likewise.
10157 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10158 (mock_mapped_index::symbol_name_at): Use "override". Remove
10159 "virtual".
10160 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10161 "override".
10162 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10163 * aarch64-tdep.c (instruction_reader::read): Use "override".
10164 (instruction_reader_test::read): Likewise.
10165 * arm-tdep.c (instruction_reader::read): Use "override".
10166 (instruction_reader_thumb::read): Likewise.
10167
10168 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10169
10170 PR remote/9665
10171 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10172 instead of remote_send.
10173 (remote_send): Remove.
10174
10175 2018-04-26 Pedro Alves <palves@redhat.com>
10176
10177 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10178 find_function_start_sal instead of find_pc_line.
10179
10180 2018-04-26 Pedro Alves <palves@redhat.com>
10181
10182 * breakpoint.c (set_breakpoint_location_function): Handle
10183 mst_data_gnu_ifunc.
10184 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10185 * elfread.c (elf_symtab_read): Give data symbols with
10186 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10187 (elf_rel_plt_read): Update comment.
10188 * linespec.c (convert_linespec_to_sals): Handle
10189 mst_data_gnu_ifunc.
10190 (minsym_found): Handle mst_data_gnu_ifunc.
10191 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10192 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10193 * parse.c (find_minsym_type_and_address): Handle
10194 mst_data_gnu_ifunc.
10195 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10196 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10197 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10198 comment.
10199 <mst_data_gnu_ifunc>: New enumerator.
10200
10201 2018-04-26 Pedro Alves <palves@redhat.com>
10202
10203 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10204 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10205 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10206 Handle it.
10207 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10208 (lookup_minimal_symbol_by_pc): Adjust.
10209 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10210 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10211 * minsyms.h (lookup_msym_prefer): New enum.
10212 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10213 parameter by a lookup_msym_prefer parameter.
10214
10215 2018-04-26 Pedro Alves <palves@redhat.com>
10216
10217 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10218 ends in "@plt" instead of looking at the symbol's section.
10219
10220 2018-04-26 Pedro Alves <palves@redhat.com>
10221
10222 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10223 all references.
10224 (find_pc_partial_function_gnu_ifunc): Rename to ...
10225 (find_pc_partial_function): ... this, and remove references to
10226 'is_gnu_ifunc_p'.
10227 (find_pc_partial_function): Delete old implementation.
10228 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10229
10230 2018-04-26 Pedro Alves <palves@redhat.com>
10231
10232 * linespec.c (struct bound_minimal_symbol_search_key): New.
10233 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10234 skip first line if we found a GNU ifunc minimal symbol by name.
10235 (compare_msymbols): Change parameters to work with a destructured
10236 lhs minsym.
10237 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10238 functions.
10239
10240 2018-04-26 Pedro Alves <palves@redhat.com>
10241
10242 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10243 ifunc targets here. Instead, if we have an ifunc minsym, use its
10244 address/name.
10245 (add_location_to_breakpoint): Store the minsym and the objfile in
10246 the breakpoint location.
10247 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10248 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10249 Record the minsym in the sal.
10250 * symtab.h (symtab_and_line) <msymbol>: New field.
10251
10252 2018-04-26 Pedro Alves <palves@redhat.com>
10253
10254 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10255 unless we actually resolved the ifunc.
10256
10257 2018-04-26 Pedro Alves <palves@redhat.com>
10258
10259 * c-exp.y (variable production): Prefer ifunc minsyms over
10260 regular function symbols.
10261 * symtab.c (find_gnu_ifunc): New function.
10262 * minsyms.h (lookup_msym_prefer): New enum.
10263 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10264 parameter by a lookup_msym_prefer parameter.
10265 * symtab.h (find_gnu_ifunc): New declaration.
10266
10267 2018-04-26 Pedro Alves <palves@redhat.com>
10268
10269 * blockframe.c (find_gnu_ifunc_target_type): New function.
10270 (find_function_type): New.
10271 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10272 return a value with a memory address.
10273 (eval_call): For calls to GNU ifunc functions, try to find the
10274 type of the target function from the type that the resolver
10275 returns.
10276 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10277 symbols.
10278 * infcall.c (find_function_return_type): Delete.
10279 (find_function_addr): Add 'function_type' parameter. For calls to
10280 GNU ifunc functions, try to find the type of the target function
10281 from the type that the resolver returns, and return it via
10282 FUNCTION_TYPE.
10283 (call_function_by_hand_dummy): Adjust to use the function type
10284 returned by find_function_addr.
10285 (find_function_addr): Add 'function_type' parameter and move
10286 description here.
10287 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10288 declarations.
10289
10290 2018-04-26 Pedro Alves <palves@redhat.com>
10291
10292 * c-exp.y (variable production): Skip finding an alias for ifunc
10293 symbols.
10294
10295 2018-04-26 Pedro Alves <palves@redhat.com>
10296
10297 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10298
10299 2018-04-25 Pedro Alves <palves@redhat.com>
10300
10301 * infcmd.c (kill_command): Print the pid as string, not the whole
10302 thread's ptid. Add comment. s/has been killed/killed/ in output
10303 message.
10304 * remote.c (remote_detach_1): Print the pid as string, not the
10305 whole thread's ptid.
10306
10307 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10308 Sergio Durigan Junior <sergiodj@redhat.com>
10309 Pedro Alves <palves@redhat.com>
10310
10311 * infcmd.c (kill_command): Print message when inferior has
10312 been killed.
10313 * inferior.c (print_inferior_events): Remove 'static'. Set as
10314 '1'.
10315 (add_inferior): Improve message printed when
10316 'print_inferior_events' is on.
10317 (exit_inferior): Remove message printed when
10318 'print_inferior_events' is on.
10319 (detach_inferior): Improve message printed when
10320 'print_inferior_events' is on.
10321 (initialize_inferiors): Use 'add_inferior_silent' to set
10322 'current_inferior_'.
10323 * inferior.h (print_inferior_events): Declare here as
10324 'extern'.
10325 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10326 '[Detaching...]' messages when 'print_inferior_events' is on.
10327 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10328 as prefix/suffix for messages. Remove periods. Fix erroneous
10329 'Detaching after fork from child...', replace it by '... from
10330 parent...'.
10331 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10332 prefix/suffix when printing 'Detaching...' messages. Print
10333 them when 'print_inferior_events' is on.
10334 * remote.c (remote_detach_1): Print message when detaching
10335 from inferior and '!is_fork_parent'.
10336
10337 2018-04-24 Tom Tromey <tom@tromey.com>
10338
10339 * cli-out.h: Reindent.
10340
10341 2018-04-24 Tom Tromey <tom@tromey.com>
10342
10343 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10344 (cli_ui_out::do_field_string): Use fputs_filtered.
10345 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10346
10347 2018-04-23 Tom Tromey <tom@tromey.com>
10348
10349 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10350 gdb::unique_xmalloc_ptr.
10351
10352 2018-04-23 Tom Tromey <tom@tromey.com>
10353
10354 * configure: Rebuild.
10355
10356 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10357
10358 PR gdb/23095
10359 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10360 prepare_for_testing. Set normal_bp to r_debug_state if target
10361 is bsd.
10362
10363 2018-04-21 Pedro Alves <palves@redhat.com>
10364 Rajendra SY <rajendra.sy@gmail.com>
10365
10366 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10367 * remote.c (extended_remote_attach): In all-stop mode, mark the
10368 thread as executing.
10369
10370 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10371
10372 * thread.c (thread_apply_all_command): Fix comment.
10373 (thread_command): Fix comment.
10374
10375 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10376
10377 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10378 parameter.
10379 * features/aarch64-core.c (create_feature_aarch64_core):
10380 Regenerate.
10381 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10382 Likewise.
10383 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10384 Likewise.
10385 * features/i386/32bit-avx512.c
10386 (create_feature_i386_32bit_avx512): Likewise.
10387 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10388 Likewise.
10389 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10390 Likewise.
10391 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10392 Likewise.
10393 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10394 Likewise.
10395 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10396 Likewise.
10397 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10398 Likewise.
10399 * features/i386/64bit-avx512.c
10400 (create_feature_i386_64bit_avx512): Likewise.
10401 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10402 Likewise.
10403 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10404 Likewise.
10405 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10406 Likewise.
10407 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10408 Likewise.
10409 * features/i386/64bit-segments.c
10410 (create_feature_i386_64bit_segments): Likewise.
10411 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10412 Likewise.
10413 * features/i386/x32-core.c
10414 (create_feature_i386_x32_core): Likewise.
10415 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10416 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10417 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10418 * target-descriptions.c: In generated code, don't pass xml
10419 filename.
10420
10421 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10422
10423 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10424 (print_xml_feature::visit_post): Likewise.
10425 (print_xml_feature::visit): Likewise.
10426 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10427 (print_xml_feature): Add new class.
10428 * regformats/regdat.sh: Null xmltarget on feature targets.
10429 * target-descriptions.c (struct target_desc): Add xmltarget.
10430 (maintenance_check_tdesc_xml_convert): Add unittest function.
10431 (tdesc_get_features_xml): Add function to get xml.
10432 (maintenance_check_xml_descriptions): Test xml generation.
10433 * xml-tdesc.c (string_read_description_xml): Add function.
10434 * xml-tdesc.h (string_read_description_xml): Add declaration.
10435
10436 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10437
10438 * features/Makefile: Add feature marker to targets with new style
10439 target descriptions.
10440 * regformats/aarch64.dat: Regenerate.
10441 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10442 * regformats/i386/amd64-avx-linux.dat: Likewise.
10443 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10444 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10445 * regformats/i386/amd64-linux.dat: Likewise.
10446 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10447 * regformats/i386/amd64.dat: Likewise.
10448 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10449 * regformats/i386/i386-avx-linux.dat: Likewise.
10450 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10451 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10452 * regformats/i386/i386-linux.dat: Likewise.
10453 * regformats/i386/i386-mmx-linux.dat: Likewise.
10454 * regformats/i386/i386-mpx-linux.dat: Likewise.
10455 * regformats/i386/i386.dat: Likewise.
10456 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10457 * regformats/i386/x32-avx-linux.dat: Likewise.
10458 * regformats/i386/x32-linux.dat: Likewise.
10459 * regformats/tic6x-c62x-linux.dat: Likewise.
10460 * regformats/tic6x-c64x-linux.dat: Likewise.
10461 * regformats/tic6x-c64xp-linux.dat: Likewise.
10462 * regformats/regdat.sh: Parse feature marker.
10463
10464 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10465
10466 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10467 (tdesc_osabi_name): Likewise.
10468 * target-descriptions.c (tdesc_architecture_name): Add new
10469 function.
10470 (tdesc_osabi_name): Likewise.
10471
10472 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10473
10474 * common/tdesc.c (tdesc_predefined_type): Move to here.
10475 (tdesc_named_type): Likewise.
10476 (tdesc_create_vector): Likewise.
10477 (tdesc_create_struct): Likewise.
10478 (tdesc_set_struct_size): Likewise.
10479 (tdesc_create_union): Likewise.
10480 (tdesc_create_flags): Likewise.
10481 (tdesc_create_enum): Likewise.
10482 (tdesc_add_field): Likewise.
10483 (tdesc_add_typed_bitfield): Likewise.
10484 (tdesc_add_bitfield): Likewise.
10485 (tdesc_add_flag): Likewise.
10486 (tdesc_add_enum_value): Likewise.
10487 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10488 (struct tdesc_type_vector): Likewise.
10489 (struct tdesc_type_field): Likewise.
10490 (struct tdesc_type_with_fields): Likewise.
10491 (tdesc_create_enum): Add declaration.
10492 (tdesc_add_typed_bitfield): Likewise.
10493 (tdesc_add_enum_value): Likewise.
10494 * target-descriptions.c (tdesc_type_field): Move from here.
10495 (tdesc_type_builtin): Likewise.
10496 (tdesc_type_vector): Likewise.
10497 (tdesc_type_with_fields): Likewise.
10498 (tdesc_predefined_types): Likewise.
10499 (tdesc_named_type): Likewise.
10500 (tdesc_create_vector): Likewise.
10501 (tdesc_create_struct): Likewise.
10502 (tdesc_set_struct_size): Likewise.
10503 (tdesc_create_union): Likewise.
10504 (tdesc_create_flags): Likewise.
10505 (tdesc_create_enum): Likewise.
10506 (tdesc_add_field): Likewise.
10507 (tdesc_add_typed_bitfield): Likewise.
10508 (tdesc_add_bitfield): Likewise.
10509 (tdesc_add_flag): Likewise.
10510 (tdesc_add_enum_value): Likewise.
10511 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10512 (tdesc_add_typed_bitfield): Likewise.
10513 (tdesc_add_enum_value): Likewise.
10514
10515 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10516
10517 * common/tdesc.c (tdesc_feature::accept): Move to here.
10518 (tdesc_feature::operator==): Likewise.
10519 (tdesc_create_reg): Likewise.
10520 * common/tdesc.h (tdesc_type_kind): Likewise.
10521 (struct tdesc_type): Likewise.
10522 (struct tdesc_feature): Likewise.
10523 * regformats/regdat.sh: Create a feature.
10524 * target-descriptions.c (tdesc_type_kind): Move from here.
10525 (tdesc_type): Likewise.
10526 (tdesc_type_up): Likewise.
10527 (tdesc_feature): Likewise.
10528 (tdesc_create_reg): Likewise.
10529
10530 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10531
10532 * Makefile.in: Add arch/tdesc.c
10533 * common/tdesc.c: New file.
10534 * common/tdesc.h (tdesc_element_visitor): Move to here.
10535 (tdesc_element): Likewise.
10536 (tdesc_reg): Likewise.
10537 (tdesc_reg_up): Likewise.
10538 * regformats/regdef.h (reg): Add offset to constructors.
10539 * target-descriptions.c (tdesc_element_visitor): Move from here.
10540 (tdesc_element): Likewise.
10541 (tdesc_reg): Likewise.
10542 (tdesc_reg_up): Likewise.
10543
10544 2018-04-17 Tom Tromey <tom@tromey.com>
10545
10546 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10547 discriminant field.
10548
10549 2018-04-17 Tom Tromey <tom@tromey.com>
10550
10551 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10552
10553 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10554
10555 * symtab.c (print_symbol_info): Skip printing filename and line
10556 number when `last' is NULL.
10557 (symtab_symbol_info): Use empty string instead of NULL for first
10558 invocation of print_symbol_info.
10559 (rbreak_command): Pass NULL to `last' parameter of
10560 print_symbol_info.
10561
10562 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10563
10564 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10565 instead of nullptr.
10566
10567 2018-04-16 Pedro Alves <palves@redhat.com>
10568
10569 * MAINTAINERS (sh): Remove.
10570 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10571 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10572 (ALLDEPFILES): Remove sh64-tdep.c.
10573 * NEWS: Mentions that support for SH-5/SH64 is removed.
10574 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10575 (sh*-*-openbsd*): Ditto.
10576 (sh64-*-elf*): Remove.
10577 (sh*): Remove.
10578 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10579 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10580 * sh-tdep.c: No longer include "sh64-tdep.h".
10581 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10582 * sh64-tdep.c, sh64-tdep.h: Remove files.
10583
10584 2018-04-16 Pedro Alves <palves@redhat.com>
10585
10586 * MAINTAINERS: Remove m88k.
10587 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10588 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10589 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10590 * NEWS: Mention that support for m88k was removed.
10591 * configure.host (m88*-*-*): Remove support.
10592 * configure.nat (m88k-*-*): Remove support.
10593 * configure.tgt (m88*-*-openbsd*): Remove.
10594 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10595
10596 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10597
10598 * configure.tgt (x86_tobjs): New variable.
10599 (amd64_tobjs, i386_tobjs): Use it.
10600
10601 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10602
10603 * symtab.c (print_symbol_info): Precede the symbol definition by
10604 the line number when available.
10605 * NEWS: Advertise this enhancement.
10606
10607 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10608
10609 * NEWS (New options): announce set/show record btrace cpu.
10610 * btrace.c: Include record-btrace.h.
10611 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10612 the vendor is unknown.
10613 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10614 Maybe overwrite the btrace configuration's cpu.
10615 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10616 (btrace_fetch): Add cpu parameter. Update callers.
10617 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10618 Maybe overwrite the btrace configuration's cpu. Skip enabling
10619 errata workarounds if the vendor is unknown.
10620 * python/py-record-btrace.c: Include record-btrace.h.
10621 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10622 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10623 * record-btrace.c (record_btrace_cpu_state_kind): New.
10624 (record_btrace_cpu): New.
10625 (set_record_btrace_cpu_cmdlist): New.
10626 (record_btrace_get_cpu): New.
10627 (require_btrace_thread, record_btrace_info)
10628 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10629 (cmd_set_record_btrace_cpu_none): New.
10630 (cmd_set_record_btrace_cpu_auto): New.
10631 (cmd_set_record_btrace_cpu): New.
10632 (cmd_show_record_btrace_cpu): New.
10633 (_initialize_record_btrace): Initialize set/show record btrace cpu
10634 commands.
10635 * record-btrace.h (record_btrace_get_cpu): New.
10636
10637 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10638
10639 * record.c (set_record_command): Fix typo in message.
10640
10641 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10642
10643 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10644
10645 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10646
10647 * infrun.c (process_event_stop_test): Call
10648 gdbarch_in_indirect_branch_thunk.
10649 * gdbarch.sh (in_indirect_branch_thunk): New.
10650 * gdbarch.c: Regenerated.
10651 * gdbarch.h: Regenerated.
10652 * x86-tdep.h: New.
10653 * x86-tdep.c: New.
10654 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10655 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10656 (ALLDEPFILES): Add x86-tdep.c.
10657 * arch-utils.h (default_in_indirect_branch_thunk): New.
10658 * arch-utils.c (default_in_indirect_branch_thunk): New.
10659 * i386-tdep: Include x86-tdep.h.
10660 (i386_in_indirect_branch_thunk): New.
10661 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10662 function.
10663 * amd64-tdep: Include x86-tdep.h.
10664 (amd64_in_indirect_branch_thunk): New.
10665 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10666
10667 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10668
10669 PR gdb/23053
10670 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10671 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10672 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10673 regression.
10674
10675 2018-04-12 Tom Tromey <tom@tromey.com>
10676
10677 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10678 (rust_evaluate_subexp): Likewise.
10679
10680 2018-04-12 Pedro Alves <palves@redhat.com>
10681
10682 * procfs.c (procfs_detach): Make forward declaration's prototype
10683 match definition's protototype.
10684 (proc_get_LDT_entry): Remove stale do_cleanups call.
10685
10686 2018-04-12 Pedro Alves <palves@redhat.com>
10687
10688 * target.h (target_ops::to_has_exited): Delete.
10689 (target_has_exited): Delete.
10690 * target-delegates.c: Regenerate.
10691
10692 2018-04-11 Pedro Alves <palves@redhat.com>
10693
10694 * target.c (fileio_fh_t::t): Add comment.
10695 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10696 (target_fileio_close): Handle a NULL target.
10697 (invalidate_fileio_fh): New.
10698 (target_close): Call it.
10699 * remote.c (remote_hostio_send_command): No longer check whether
10700 remote_desc is open.
10701
10702 2018-04-11 Pedro Alves <palves@redhat.com>
10703
10704 * target.c (fileio_fh_t): Make it a named struct instead of a
10705 typedef.
10706 (fileio_fh_t::is_closed): New method.
10707 (DEF_VEC_O (fileio_fh_t)): Remove.
10708 (fileio_fhandles): Now a std::vector.
10709 (is_closed_fileio_fh): Delete.
10710 (acquire_fileio_fd): Adjust. Rename parameters.
10711 (release_fileio_fd): Adjust.
10712 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10713 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10714 (target_fileio_close): Adjust.
10715
10716 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10717
10718 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10719 index.
10720
10721 2018-04-10 Pedro Alves <palves@redhat.com>
10722
10723 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10724 (scoped_finish_thread_state): New class.
10725 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10726 cleanup.
10727 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10728 (fetch_inferior_event, normal_stop): Likewise.
10729 * thread.c (finish_thread_state_cleanup): Delete.
10730
10731 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10732 Pedro Alves <palves@redhat.com>
10733
10734 * value.c: Include "selftest.h" and "common/array-view.h".
10735 (struct range) <operator ==>: New.
10736 (test_ranges_contain): New.
10737 (check_ranges_vector): New.
10738 (test_insert_into_bit_range_vector): New.
10739 (_initialize_values): Register selftests.
10740 * common/array-view.h (operator==, operator!=): New.
10741
10742 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10743
10744 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10745 an iterator.
10746 * inline-frame.c: Include <algorithm>.
10747 (struct inline_state): Add constructor.
10748 (inline_state_s): Remove.
10749 (DEF_VEC_O(inline_state_s)): Remove.
10750 (inline_states): Change type to std::vector.
10751 (find_inline_frame_state): Adjust to std::vector.
10752 (allocate_inline_frame_state): Remove.
10753 (clear_inline_frame_state): Adjust to std::vector.
10754 (skip_inline_frames): Adjust to std::vector.
10755
10756 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10757
10758 * tracepoint.h (struct trace_state_variable): Add constructor.
10759 <name>: Change type to std::string.
10760 * tracepoint.c (tsv_s): Remove.
10761 (DEF_VEC_O(tsv_s)): Remove.
10762 (tvariables): Change to std::vector.
10763 (create_trace_state_variable): Adjust to std::vector.
10764 (find_trace_state_variable): Likewise.
10765 (find_trace_state_variable_by_number): Likewise.
10766 (delete_trace_state_variable): Likewise.
10767 (trace_variable_command): Adjust to std::string.
10768 (delete_trace_variable_command): Likewise.
10769 (tvariables_info_1): Adjust to std::vector.
10770 (save_trace_state_variables): Likewise.
10771 (start_tracing): Likewise.
10772 (merge_uploaded_trace_state_variables): Adjust to std::vector
10773 and std::string.
10774 * target.h (struct target_ops)
10775 <to_download_trace_state_variable>: Pass reference to
10776 trace_state_variable.
10777 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10778 * target-delegates.c: Re-generate.
10779 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10780 (mi_tsv_deleted): Likewise.
10781 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10782 * remote.c (remote_download_trace_state_variable): Change
10783 pointer to reference and adjust.
10784 * make-target-delegates (parse_argtypes): Handle references.
10785 (write_function_header): Likewise.
10786 (munge_type): Likewise.
10787
10788 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10789
10790 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10791 string_view-selftests.c.
10792 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10793 testsuite.
10794 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10795 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10796 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10797 * unittests/basic_string_view/element_access/char/1.cc:
10798 Likewise.
10799 * unittests/basic_string_view/element_access/char/empty.cc:
10800 Likewise.
10801 * unittests/basic_string_view/element_access/char/front_back.cc:
10802 Likewise.
10803 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10804 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10805 Likewise.
10806 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10807 Likewise.
10808 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10809 Likewise.
10810 * unittests/basic_string_view/operations/compare/char/1.cc:
10811 Likewise.
10812 * unittests/basic_string_view/operations/compare/char/13650.cc:
10813 Likewise.
10814 * unittests/basic_string_view/operations/copy/char/1.cc:
10815 Likewise.
10816 * unittests/basic_string_view/operations/data/char/1.cc:
10817 Likewise.
10818 * unittests/basic_string_view/operations/find/char/1.cc:
10819 Likewise.
10820 * unittests/basic_string_view/operations/find/char/2.cc:
10821 Likewise.
10822 * unittests/basic_string_view/operations/find/char/3.cc:
10823 Likewise.
10824 * unittests/basic_string_view/operations/find/char/4.cc:
10825 Likewise.
10826 * unittests/basic_string_view/operations/rfind/char/1.cc:
10827 Likewise.
10828 * unittests/basic_string_view/operations/rfind/char/2.cc:
10829 Likewise.
10830 * unittests/basic_string_view/operations/rfind/char/3.cc:
10831 Likewise.
10832 * unittests/basic_string_view/operations/substr/char/1.cc:
10833 Likewise.
10834 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10835 * unittests/string_view-selftests.c: New file.
10836
10837 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10838
10839 * unittests/basic_string_view/capacity/1.cc: New file.
10840 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10841 * unittests/basic_string_view/cons/char/1.cc: New file.
10842 * unittests/basic_string_view/cons/char/2.cc: New file.
10843 * unittests/basic_string_view/cons/char/3.cc: New file.
10844 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10845 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10846 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10847 * unittests/basic_string_view/element_access/char/1.cc: New file.
10848 * unittests/basic_string_view/element_access/char/2.cc: New file.
10849 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10850 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10851 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10852 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10853 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10854 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10855 * unittests/basic_string_view/include.cc: New file.
10856 * unittests/basic_string_view/inserters/char/1.cc: New file.
10857 * unittests/basic_string_view/inserters/char/2.cc: New file.
10858 * unittests/basic_string_view/inserters/char/3.cc: New file.
10859 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10860 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10861 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10862 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10863 * unittests/basic_string_view/literals/types.cc: New file.
10864 * unittests/basic_string_view/literals/values.cc: New file.
10865 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10866 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10867 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10868 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10869 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10870 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10871 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10872 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10873 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10874 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10875 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10876 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10877 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10878 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10879 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10880 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10881 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10882 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10883 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10884 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10885 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10886 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10887 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10888 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10889 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10890 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10891 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10892 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10893 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10894 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10895 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10896 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10897 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10898 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10899 * unittests/basic_string_view/operators/char/2.cc: New file.
10900 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10901 * unittests/basic_string_view/range_access/char/1.cc: New file.
10902 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10903 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10904 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10905 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10906 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10907 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10908 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10909 * unittests/basic_string_view/typedefs.cc: New file.
10910 * unittests/basic_string_view/types/1.cc: New file.
10911
10912 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10913
10914 * common/gdb_string_view.h: Remove libstdc++ implementation
10915 details, adjust to gdb reality.
10916 * common/gdb_string_view.tcc: Likewise.
10917 * cli/cli-script.c (struct string_view): Remove.
10918 (user_args) <m_args>: Change element type to gdb::string_view.
10919 (user_args::insert_args): Adjust.
10920
10921 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10922
10923 * common/gdb_string_view.h: New file.
10924 * common/gdb_string_view.tcc: New file.
10925
10926 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10927
10928 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10929 * configure: Re-generate.
10930
10931 2018-04-09 Pedro Alves <palves@redhat.com>
10932
10933 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10934 (set_target_gdbarch): Call
10935 gdb::observers::architecture_changed.notify instead of
10936 observer_notify_architecture_changed.
10937
10938 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10939
10940 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10941 (do_restore_current_traceframe_cleanup): Remove.
10942 (restore_current_traceframe_cleanup_dtor): Remove.
10943 (make_cleanup_restore_current_traceframe): Remove.
10944 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10945 New.
10946 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10947 * infrun.c (fetch_inferior_event): Use
10948 scoped_restore_current_traceframe.
10949
10950 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10951
10952 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10953 Remove.
10954 <n_allocated_type_units>: Remove.
10955 <all_type_units>: Change to std::vector.
10956 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10957 to std::vector change.
10958 (dwarf2_per_objfile::get_cutu): Likewise.
10959 (dwarf2_per_objfile::get_tu): Likewise.
10960 (create_signatured_type_table_from_index): Likewise.
10961 (create_signatured_type_table_from_debug_names): Likewise.
10962 (dw2_symtab_iter_next): Likewise.
10963 (dw2_print_stats): Likewise.
10964 (dw2_expand_all_symtabs): Likewise.
10965 (dw2_expand_marked_cus): Likewise.
10966 (dw2_debug_names_iterator::next): Likewise.
10967 (dwarf2_initialize_objfile): Likewise.
10968 (add_signatured_type_cu_to_table): Likewise.
10969 (create_all_type_units): Likewise.
10970 (add_type_unit): Likewise.
10971 (struct tu_abbrev_offset): Add constructor.
10972 (build_type_psymtabs_1): Adjust to std::vector change.
10973 (print_tu_stats): Likewise.
10974 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10975 (write_debug_names): Likewise.
10976
10977 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10978
10979 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10980 Make an std::vector.
10981 <n_comp_units>: Remove.
10982 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10983 to std::vector change.
10984 (dwarf2_per_objfile::get_cutu): Likewise.
10985 (dwarf2_per_objfile::get_cu): Likewise.
10986 (create_cus_from_index): Likewise.
10987 (create_addrmap_from_index): Likewise.
10988 (create_addrmap_from_aranges): Likewise.
10989 (dwarf2_read_index): Likewise.
10990 (dw2_find_last_source_symtab): Likewise.
10991 (dw2_map_symtabs_matching_filename): Likewise.
10992 (dw2_symtab_iter_next): Likewise.
10993 (dw2_print_stats): Likewise.
10994 (dw2_expand_all_symtabs): Likewise.
10995 (dw2_expand_symtabs_with_fullname): Likewise.
10996 (dw2_expand_marked_cus): Likewise.
10997 (dw2_map_symbol_filenames): Likewise.
10998 (create_cus_from_debug_names): Likewise.
10999 (dwarf2_read_debug_names): Likewise.
11000 (dw2_debug_names_iterator::next): Likewise.
11001 (dwarf2_initialize_objfile): Likewise.
11002 (set_partial_user): Likewise.
11003 (dwarf2_build_psymtabs_hard): Likewise.
11004 (read_comp_units_from_section): Remove arguments, adjust to
11005 std::vector change.
11006 (create_all_comp_units): Adjust to std::vector and
11007 read_comp_units_from_section changes.
11008 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11009 change.
11010 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11011 (psyms_seen_size): Likewise.
11012 (write_gdbindex): Likewise.
11013 (write_debug_names): Likewise.
11014
11015 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11016
11017 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11018 with dwarf2_per_objfile.
11019 (create_cus_from_index): Likewise.
11020 (create_signatured_type_table_from_index): Likewise.
11021 (dwarf2_read_index): Likewise.
11022 (dwarf2_initialize_objfile): Likewise.
11023 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11024 per_cu rather than get_dwarf2_per_objfile.
11025
11026 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11027
11028 * dwarf2read.h (struct signatured_type): Forward declare.
11029 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11030 New methods.
11031 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11032 (dw2_get_cutu): ...this.
11033 (dwarf2_per_objfile::get_cu): Rename from...
11034 (dw2_get_cu): ...this.
11035 (dwarf2_per_objfile::get_tu): New.
11036 (create_addrmap_from_index): Adjust.
11037 (create_addrmap_from_aranges): Adjust.
11038 (dw2_find_last_source_symtab): Adjust.
11039 (dw2_map_symtabs_matching_filename): Adjust.
11040 (dw2_symtab_iter_next): Adjust.
11041 (dw2_print_stats): Adjust.
11042 (dw2_expand_all_symtabs): Adjust.
11043 (dw2_expand_symtabs_with_fullname): Adjust.
11044 (dw2_expand_marked_cus): Adjust.
11045 (dw_expand_symtabs_matching_file_matcher): Adjust.
11046 (dw2_map_symbol_filenames): Adjust.
11047 (dw2_debug_names_iterator::next): Adjust.
11048 (dwarf2_initialize_objfile): Adjust.
11049 (set_partial_user): Adjust.
11050 (dwarf2_build_psymtabs_hard): Adjust.
11051
11052 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11053
11054 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11055 Remove unused variables.
11056 (dw2_map_symtabs_matching_filename): Likewise.
11057 (dwarf2_record_block_ranges): Likewise.
11058 (dwarf2_read_addr_index): Likewise.
11059 (follow_die_offset): Likewise.
11060
11061 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11062
11063 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11064 to symbol_file_add_main.
11065
11066 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11067
11068 PR mi/22299
11069 * mi/mi-console.c (do_fputc_async_safe): New.
11070 (mi_console_file::write_async_safe): New.
11071 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11072 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11073 New.
11074 * ui-file.c (ui_file::putstrn): Adjust call to
11075 fputstrn_unfiltered.
11076 * utils.c (printchar): Replace do_fputs and do_fprintf
11077 parameters by do_fputc.
11078 (fputstr_filtered): Adjust call to printchar.
11079 (fputstr_unfiltered): Likewise.
11080 (fputstrn_filtered): Likewise.
11081 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11082 printchar.
11083 * utils.h (do_fputc_ftype): New typedef.
11084 (fputstrn_unfiltered): Add do_fputc parameter.
11085
11086 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11087
11088 * regformats/i386/i386-avx.dat: Remove.
11089
11090 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11091
11092 PR gdb/22979
11093 * amd64-tdep.c (amd64_none_init_abi): New function.
11094 (amd64_x32_none_init_abi): New function.
11095 (_initialize_amd64_tdep): Register handlers for x86-64 and
11096 x64_32 with GDB_OSABI_NONE.
11097 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11098 GDB_OSABI_NONE osabi.
11099
11100 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11101
11102 PR gdb/22980
11103 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11104 GDB_OSABI_NONE.
11105 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11106 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11107
11108 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11109
11110 * common/byte-vector.h (char_vector): New type.
11111 * target.h (target_read_alloc): Return
11112 gdb::optional<byte_vector>.
11113 (target_read_stralloc): Return gdb::optional<char_vector>.
11114 (target_get_osdata): Return gdb::optional<char_vector>.
11115 * target.c (target_read_alloc_1): Templatize. Replacement
11116 manual memory management with vector.
11117 (target_read_alloc): Change return type, adjust.
11118 (target_read_stralloc): Change return type, adjust.
11119 (target_get_osdata): Change return type, adjust.
11120 * auxv.c (struct auxv_info) <length>: Remove.
11121 <data>: Change type to gdb::optional<byte_vector>.
11122 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11123 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11124 (target_auxv_search): Adjust.
11125 (fprint_target_auxv): Adjust.
11126 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11127 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11128 (linux_make_corefile_notes): Adjust.
11129 * osdata.c (get_osdata): Adjust.
11130 * remote.c (remote_get_threads_with_qxfer): Adjust.
11131 (remote_memory_map): Adjust.
11132 (remote_traceframe_info): Adjust.
11133 (btrace_read_config): Adjust.
11134 (remote_read_btrace): Adjust.
11135 (remote_pid_to_exec_file): Adjust.
11136 * solib-aix.c (solib_aix_get_library_list): Adjust.
11137 * solib-dsbt.c (decode_loadmap): Don't free buf.
11138 (dsbt_get_initial_loadmaps): Adjust.
11139 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11140 * solib-target.c (solib_target_current_sos): Adjust.
11141 * tracepoint.c (sdata_make_value): Adjust.
11142 * xml-support.c (xinclude_start_include): Adjust.
11143 (xml_fetch_content_from_file): Adjust.
11144 * xml-support.h (xml_fetch_another): Change return type.
11145 (xml_fetch_content_from_file): Change return type.
11146 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11147 * xml-tdesc.c (file_read_description_xml): Adjust.
11148 (fetch_available_features_from_target): Change return type.
11149 (target_fetch_description_xml): Adjust.
11150 (target_read_description_xml): Adjust.
11151
11152 2018-04-06 Tom Tromey <tom@tromey.com>
11153
11154 * value.c (~value): Update.
11155 (struct value) <contents>: Now unique_xmalloc_ptr.
11156 (value_contents_bits_eq, allocate_value_contents)
11157 (value_contents_raw, value_contents_all_raw)
11158 (value_contents_for_printing, value_contents_for_printing_const)
11159 (set_value_enclosing_type): Update.
11160
11161 2018-04-06 Tom Tromey <tom@tromey.com>
11162
11163 * value.c (range_s): Remove typedef, VEC.
11164 (struct range): Add operator<.
11165 (range_lessthan): Remove.
11166 (ranges_contain): Change type.
11167 (~value): Update.
11168 (struct value) <unavailable, optimized_out>: Now std::vector.
11169 (value_entirely_available)
11170 (value_entirely_covered_by_range_vector)
11171 (value_entirely_unavailable, value_entirely_optimized_out):
11172 Update.
11173 (insert_into_bit_range_vector): Change argument type.
11174 (find_first_range_overlap): Likewise.
11175 (struct ranges_and_idx, value_contents_bits_eq)
11176 (require_not_optimized_out, require_available): Update.
11177 (ranges_copy_adjusted): Change argument types.
11178 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11179
11180 2018-04-06 Tom Tromey <tom@tromey.com>
11181
11182 * value.c (~value): Update.
11183 (struct value) <parent>: Now a value_ref_ptr.
11184 (value_parent, set_value_parent, value_address, value_copy):
11185 Update.
11186
11187 2018-04-06 Tom Tromey <tom@tromey.com>
11188
11189 * value.c (struct value): Add constructor, destructor, and member
11190 initializers.
11191 (allocate_value_lazy, value_decref): Update.
11192
11193 2018-04-06 Tom Tromey <tom@tromey.com>
11194
11195 * value.c (struct value) <released, next>: Remove.
11196 (all_values): Now a std::vector.
11197 (allocate_value_lazy): Update.
11198 (value_next): Remove.
11199 (value_mark, value_free_to_mark, release_value)
11200 (value_release_to_mark): Update.
11201
11202 2018-04-06 Tom Tromey <tom@tromey.com>
11203
11204 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11205 (free_value_chain): Remove.
11206 * value.c (free_value_chain): Remove.
11207 (value_release_to_mark): Return a std::vector.
11208 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11209 std::vector.
11210 (check_condition): Update.
11211 * eval.c (fetch_subexp_value): Change "val_chain" to a
11212 std::vector.
11213 * breakpoint.c (update_watchpoint): Update.
11214 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11215
11216 2018-04-06 Tom Tromey <tom@tromey.com>
11217
11218 * value.h (free_all_values): Remove.
11219 * value.c (free_all_values): Remove.
11220
11221 2018-04-06 Tom Tromey <tom@tromey.com>
11222
11223 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11224 (value_history_chain, value_history_count): Remove.
11225 (value_history): New global.
11226 (record_latest_value, access_value_history, show_values)
11227 (preserve_values): Update.
11228
11229 2018-04-06 Tom Tromey <tom@tromey.com>
11230
11231 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11232 * varobj.c (varobj_set_display_format, varobj_set_value)
11233 (install_default_visualizer, construct_visualizer)
11234 (install_new_value, ~varobj, varobj_get_value_type)
11235 (my_value_of_variable, varobj_editable_p): Update.
11236 * c-varobj.c (c_describe_child, c_value_of_variable)
11237 (cplus_number_of_children, cplus_describe_child): Update.
11238 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11239 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11240 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11241
11242 2018-04-06 Tom Tromey <tom@tromey.com>
11243
11244 * printcmd.c (last_examine_address): Change type to
11245 value_ref_ptr.
11246 (do_examine, x_command): Update.
11247
11248 2018-04-06 Tom Tromey <tom@tromey.com>
11249
11250 * value.c (release_value): Update.
11251 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11252 (struct bpstats) <val>: Now a value_ref_ptr.
11253 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11254 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11255 (~watchpoint, print_it_watchpoint, watch_command_1)
11256 (invalidate_bp_value_on_memory_change): Update.
11257
11258 2018-04-06 Tom Tromey <tom@tromey.com>
11259
11260 * varobj.c (varobj_clear_saved_item)
11261 (update_dynamic_varobj_children, install_new_value, ~varobj):
11262 Update.
11263 * value.h (value_incref): Move declaration earlier.
11264 (value_decref): Rename from value_free.
11265 (struct value_ref_policy): New.
11266 (value_ref_ptr): New typedef.
11267 (struct value_deleter): Remove.
11268 (gdb_value_up): Remove typedef.
11269 (release_value): Change return type.
11270 (release_value_or_incref): Remove.
11271 * value.c (set_value_parent): Update.
11272 (value_incref): Change return type.
11273 (value_decref): Rename from value_free.
11274 (value_free_to_mark, free_all_values, free_value_chain): Update.
11275 (release_value): Return value_ref_ptr.
11276 (release_value_or_incref): Remove.
11277 (record_latest_value, set_internalvar, clear_internalvar):
11278 Update.
11279 * stack.c (info_frame_command): Don't call value_free.
11280 * python/py-value.c (valpy_dealloc, valpy_new)
11281 (value_to_value_object): Update.
11282 * printcmd.c (do_examine): Update.
11283 * opencl-lang.c (lval_func_free_closure): Update.
11284 * mi/mi-main.c (register_changed_p): Don't call value_free.
11285 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11286 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11287 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11288 value_free.
11289 * guile/scm-value.c (vlscm_free_value_smob)
11290 (vlscm_scm_from_value): Update.
11291 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11292 (frame_unwind_register_unsigned, get_frame_register_bytes)
11293 (put_frame_register_bytes): Don't call value_free.
11294 * findvar.c (address_from_register): Don't call value_free.
11295 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11296 * dwarf2loc.c (entry_data_value_free_closure)
11297 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11298 (dwarf2_evaluate_loc_desc_full): Update.
11299 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11300 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11301 (~watchpoint, watch_command_1)
11302 (invalidate_bp_value_on_memory_change): Update.
11303 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11304
11305 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11306
11307 PR gdb/23022
11308 * warning.m4: Add -Wno-error=deprecated-register.
11309 * configure: Re-generate.
11310
11311 2018-04-05 Tom Tromey <tom@tromey.com>
11312
11313 * linespec.h: Remove include of "vec.h".
11314
11315 2018-04-05 Tom Tromey <tom@tromey.com>
11316
11317 * linespec.c (typep): Remove typedef.
11318 (find_methods, find_superclass_methods): Take a std::vector.
11319 (find_method): Use std::vector.
11320
11321 2018-04-05 Tom Tromey <tom@tromey.com>
11322
11323 * utils.c (compare_strings): Remove.
11324 * utils.h (compare_strings): Remove.
11325 * objc-lang.h (find_imps): Update.
11326 * objc-lang.c (find_methods): Take a std::vector.
11327 (uniquify_strings, find_imps): Likewise.
11328 * linespec.c (find_methods): Take a std::vector.
11329 (decode_objc): Use std::vector.
11330 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11331 a std::vector.
11332 (find_method, find_function_symbols): Use std::vector.
11333
11334 2018-04-05 Tom Tromey <tom@tromey.com>
11335
11336 * completer.c (completion_tracker::completion_tracker): Remove
11337 cast.
11338 (completion_tracker::discard_completions): Likewise.
11339 * breakpoint.c (ambiguous_names_p): Remove cast.
11340 * ada-lang.c (_initialize_ada_language): Remove cast.
11341 * utils.h (streq): Update.
11342 (streq_hash): Add new declaration.
11343 * utils.c (streq): Return bool.
11344 (streq_hash): New function.
11345
11346 2018-04-05 Tom Tromey <tom@tromey.com>
11347
11348 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11349 Remove a string copy.
11350
11351 2018-04-05 Tom Tromey <tom@tromey.com>
11352
11353 * linespec.c (filter_results): Use std::vector.
11354 (decode_line_2, decode_line_full): Update.
11355
11356 2018-04-05 Tom Tromey <tom@tromey.com>
11357
11358 * linespec.c (canonical_to_fullform): Return std::string.
11359 (filter_results): Update.
11360 (struct decode_line_2_item): Add constructor.
11361 <fullform, displayform>: Now std::string.
11362 (decode_line_2_compare_items): Now a std::sort comparator.
11363 (decode_line_2): Update.
11364
11365 2018-04-05 Tom Tromey <tom@tromey.com>
11366
11367 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11368 (unexpected_linespec_error): Update.
11369 (linespec_parse_basic, parse_linespec): Update.
11370
11371 2018-04-05 Tom Tromey <tom@tromey.com>
11372
11373 * linespec.c (linespec_parse_basic): Reindent.
11374
11375 2018-04-05 Tom Tromey <tom@tromey.com>
11376
11377 * minsyms.h (iterate_over_minimal_symbols): Update.
11378 * minsyms.c (iterate_over_minimal_symbols): Take a
11379 gdb::function_view.
11380 * linespec.c (struct collect_minsyms): Remove.
11381 (compare_msyms): Now a std::sort comparator.
11382 (add_minsym): Add parameters.
11383 (search_minsyms_for_name): Update. Use std::vector.
11384
11385 2018-04-03 Tom Tromey <tom@tromey.com>
11386
11387 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11388 gdb::byte_vector.
11389
11390 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11391
11392 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11393
11394 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11395
11396 PR gdb/16959
11397 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11398 printing static type.
11399
11400 2018-04-01 Tom Tromey <tom@tromey.com>
11401
11402 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11403 (rs6000_xfer_shared_libraries): Update.
11404
11405 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11406
11407 * common/gdb_vecs.h (char_ptr): Remove.
11408 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11409
11410 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11411
11412 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11413 with std::vector.
11414 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11415
11416 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11417
11418 * tracepoint.h (struct uploaded_tp): Initialize fields.
11419 <actions, step_actions, cmd_strings>: Change type to
11420 std::vector<char *>.
11421 * tracepoint.c (get_uploaded_tp): Allocate with new.
11422 (free_uploaded_tps): Free with delete.
11423 (parse_tracepoint_definition): Adjust to std::vector change.
11424 * breakpoint.c (read_uploaded_action): Likewise.
11425 (create_tracepoint_from_upload): Likewise.
11426 * ctf.c (ctf_write_uploaded_tp): Likewise.
11427 (SET_ARRAY_FIELD): Likewise.
11428 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11429
11430 2018-03-30 Tom Tromey <tom@tromey.com>
11431
11432 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11433 std::unique_ptr.
11434 (svr4_keep_data_in_core): Update.
11435 (svr4_read_so_list): Update.
11436
11437 2018-03-30 Tom Tromey <tom@tromey.com>
11438
11439 * windows-nat.c (handle_output_debug_string, handle_exception):
11440 Update.
11441 * target.h (target_read_string): Update.
11442 * target.c (target_read_string): Change "string" to
11443 unique_xmalloc_ptr.
11444 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11445 Update.
11446 * solib-frv.c (frv_current_sos): Update.
11447 * solib-dsbt.c (dsbt_current_sos): Update.
11448 * solib-darwin.c (darwin_current_sos): Update.
11449 * linux-thread-db.c (inferior_has_bug): Update.
11450 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11451 Update. Remove alloca.
11452 * ada-lang.c (ada_main_name): Update.
11453
11454 2018-03-30 Tom Tromey <tom@tromey.com>
11455
11456 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11457 (struct dwo_file_deleter): New.
11458 (dwo_file_up): New typedef.
11459 (open_and_init_dwo_file): Use dwo_file_up.
11460 (free_dwo_file_cleanup): Remove.
11461
11462 2018-03-30 Tom Tromey <tom@tromey.com>
11463
11464 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11465 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11466
11467 2018-03-30 Tom Tromey <tom@tromey.com>
11468
11469 * dwarf2read.c (class free_cached_comp_units): New class.
11470 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11471 (free_cached_comp_units): Remove function.
11472
11473 2018-03-30 Tom Tromey <tom@tromey.com>
11474
11475 * utils.h (make_cleanup_unpush_target): Remove.
11476 * inf-ptrace.c (struct target_unpusher): New.
11477 (target_unpush_up) New typedef.
11478 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11479 target_unpush_up.
11480 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11481
11482 2018-03-27 Tom Tromey <tom@tromey.com>
11483
11484 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11485
11486 2018-03-27 Pedro Alves <palves@redhat.com>
11487 Tom Tromey <tom@tromey.com>
11488
11489 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11490 destructor. Now a class.
11491 (gdb_readline_wrapper_cleanup): Remove function.
11492 (gdb_readline_wrapper): Remove cleanups.
11493
11494 2018-03-27 Tom Tromey <tom@tromey.com>
11495
11496 * typeprint.h (struct type_print_options) <local_typedefs,
11497 global_typedefs>: Remove "struct" keyword.
11498 (class typedef_hash_table): New class.
11499 (recursively_update_typedef_hash, add_template_parameters)
11500 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11501 (find_typedef_in_hash): Don't declare.
11502 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11503 (typedef_hash_table::recursively_update): Rename from
11504 recursively_update_typedef_hash. Now a member.
11505 (typedef_hash_table::add_template_parameters): Rename from
11506 add_template_parameters. Now a member.
11507 (typedef_hash_table::typedef_hash_table): Now a constructor;
11508 rename from create_typedef_hash.
11509 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11510 rename from free_typedef_hash.
11511 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11512 (do_free_global_table): Remove.
11513 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11514 from copy_type_recursive.
11515 (create_global_typedef_table): Remove.
11516 (typedef_hash_table::find_global_typedef): Now a member of
11517 typedef_hash_table.
11518 (typedef_hash_table::find_typedef): Rename from
11519 find_typedef_in_hash; now a member.
11520 (whatis_exp): Update.
11521 * extension.h (struct ext_lang_type_printers): Add constructor and
11522 destructor.
11523 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11524 declare.
11525 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11526 Now a constructor; rename from start_ext_lang_type_printers.
11527 (ext_lang_type_printers): Now a destructor; rename from
11528 free_ext_lang_type_printers.
11529 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11530 Update.
11531 (c_type_print_base_struct_union): Update. Remove cleanups.
11532
11533 2018-03-27 Tom Tromey <tom@tromey.com>
11534
11535 * dwarf-index-write.c: Include <cmath>.
11536
11537 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11538
11539 * NEWS: Add entry describing new "set|show varsize-limit" command.
11540 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11541 command.
11542 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11543 "set variable".
11544
11545 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11546
11547 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11548 dwarf-index-write.c
11549 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11550 * dwarf-index-common.c: New file.
11551 * dwarf-index-common.h: New file.
11552 * dwarf-index-write.c: New file.
11553 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11554 (struct dwarf2_section_info): Move from here.
11555 (dwarf2_section_info_def): Likewise.
11556 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11557 (offset_type): Likewise.
11558 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11559 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11560 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11561 (byte_swap): Likewise.
11562 (MAYBE_SWAP): Likewise.
11563 (dwarf2_per_cu_ptr): Likewise.
11564 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11565 (struct tu_stats): Likewise.
11566 (struct dwarf2_per_objfile): Likewise.
11567 (struct dwarf2_per_cu_data): Likewise.
11568 (struct signatured_type): Likewise.
11569 (sig_type_ptr): Likewise.
11570 (DEF_VEC_P (sig_type_ptr)): Likewise.
11571 (INDEX4_SUFFIX): Likewise.
11572 (INDEX5_SUFFIX): Likewise.
11573 (DEBUG_STR_SUFFIX): Likewise.
11574 (dwarf2_read_section): Make non-static.
11575 (mapped_index_string_hash): Move from here.
11576 (dwarf5_djb_hash): Likewise.
11577 (file_write): Likewise.
11578 (class data_buf): Likewise.
11579 (struct symtab_index_entry): Likewise.
11580 (struct mapped_symtab): Likewise.
11581 (find_slot): Likewise.
11582 (hash_expand): Likewise.
11583 (add_index_entry): Likewise.
11584 (uniquify_cu_indices): Likewise.
11585 (class c_str_view): Likewise.
11586 (class c_str_view_hasher): Likewise.
11587 (class vector_hasher): Likewise.
11588 (write_hash_table): Likewise.
11589 (psym_index_map): Likewise.
11590 (struct addrmap_index_data): Likewise.
11591 (add_address_entry): Likewise.
11592 (add_address_entry_worker): Likewise.
11593 (write_address_map): Likewise.
11594 (symbol_kind): Likewise.
11595 (write_psymbols): Likewise.
11596 (struct signatured_type_index_data): Likewise.
11597 (write_one_signatured_type): Likewise.
11598 (recursively_count_psymbols): Likewise.
11599 (recursively_write_psymbols): Likewise.
11600 (class debug_names): Likewise.
11601 (check_dwarf64_offsets): Likewise.
11602 (psyms_seen_size): Likewise.
11603 (write_gdbindex): Likewise.
11604 (write_debug_names): Likewise.
11605 (assert_file_size): Likewise.
11606 (write_psymtabs_to_index): Likewise.
11607 (save_gdb_index_command): Likewise.
11608 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11609 command.
11610 * dwarf2read.h: New file.
11611
11612 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11613
11614 PR gdb/22670
11615 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11616 symbol name if the CU's language stores symbol names in linkage
11617 format.
11618 * language.h (struct language_defn)
11619 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11620 all instances of this struct.
11621
11622 2018-03-26 Tom Tromey <tom@tromey.com>
11623
11624 * stack.c (backtrace_command_1): Remove verbose code.
11625
11626 2018-03-26 Tom Tromey <tom@tromey.com>
11627
11628 * python/py-framefilter.c (py_print_type): Don't catch
11629 exceptions. Return void.
11630 (py_print_value): Likewise.
11631 (py_print_single_arg): Likewise.
11632 (enumerate_args): Don't catch exceptions.
11633 (py_print_args): Likewise.
11634 (py_print_frame): Likewise.
11635 (gdbpy_apply_frame_filter): Catch exceptions here.
11636
11637 2018-03-26 Tom Tromey <tom@tromey.com>
11638
11639 * stack.c (_initialize_stack): Remove trailing newlines from help
11640 text. Add "Usage" line to "backtrace" help.
11641
11642 2018-03-26 Tom Tromey <tom@tromey.com>
11643
11644 PR python/16486:
11645 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11646
11647 2018-03-26 Tom Tromey <tom@tromey.com>
11648
11649 * python/py-framefilter.c (py_print_single_arg): Return
11650 EXT_LANG_BT_ERROR from catch.
11651
11652 2018-03-26 Tom Tromey <tom@tromey.com>
11653
11654 PR backtrace/15584:
11655 * stack.c (backtrace_command_1): Move some code into no-filters
11656 "if".
11657
11658 2018-03-26 Tom Tromey <tom@tromey.com>
11659
11660 * python/py-framefilter.c (throw_quit_or_print_exception): New
11661 function.
11662 (gdbpy_apply_frame_filter): Use it.
11663
11664 2018-03-26 Tom Tromey <tom@tromey.com>
11665
11666 PR cli/17716:
11667 * python/py-framefilter.c (py_print_type, py_print_value)
11668 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11669 RETURN_MASK_ERROR.
11670
11671 2018-03-26 Tom Tromey <tom@tromey.com>
11672
11673 * python/py-framefilter.c (enumerate_args): Use
11674 gdb::unique_xmalloc_ptr.
11675
11676 2018-03-26 Tom Tromey <tom@tromey.com>
11677
11678 * python/py-framefilter.c (py_print_frame): Return
11679 EXT_LANG_BT_OK.
11680 (gdbpy_apply_frame_filter): Update comment.
11681 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11682 Remove.
11683 <EXT_LANG_BT_NO_FILTERS>: Change value.
11684
11685 2018-03-26 Tom Tromey <tom@tromey.com>
11686
11687 PR backtrace/15582:
11688 * stack.c (backtrace_command): Parse "hide" argument.
11689 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11690 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11691 constant.
11692
11693 2018-03-26 Tom Tromey <tom@tromey.com>
11694
11695 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11696 add "flags".
11697 (backtrace_command): Remove "fulltrace", add "flags".
11698
11699 2018-03-26 Tom Tromey <tom@tromey.com>
11700
11701 * stack.c (backtrace_command): Rewrite command line parsing.
11702
11703 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11704
11705 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11706
11707 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11708
11709 * filename-seen-cache.h: Add include guard.
11710
11711 2018-03-26 Keith Seitz <keiths@redhat.com>
11712
11713 * symfile.c (place_section): Remove "struct" from section_addr_info
11714 in comment.
11715 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11716 "struct" keyword from section_addr_info.
11717
11718 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11719
11720 * regformats/regdef.h (reg): Add constructors.
11721
11722 2018-03-25 Pedro Alves <palves@redhat.com>
11723
11724 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11725 if then/else bodies in var_func_name extraction.
11726
11727 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11728
11729 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11730 lookup_minimal_symbol() to find symbol entry.
11731 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11732
11733 2018-03-23 Keith Seitz <keiths@redhat.com>
11734
11735 PR c++/22968
11736 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11737 nested type definitions for C++, too.
11738
11739 2018-03-23 Tom Tromey <tom@tromey.com>
11740
11741 * machoread.c (struct oso_el): Add a constructor. Don't define as
11742 a typedef.
11743 (macho_register_oso): Remove.
11744 (macho_symtab_read): Take a std::vector.
11745 (oso_el_compare_name): Now a std::sort comparator.
11746 (macho_symfile_read_all_oso): Take a std::vector.
11747 (macho_symfile_read): Use std::vector. Remove cleanups.
11748
11749 2018-03-22 Tom Tromey <tom@tromey.com>
11750
11751 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11752 (record_full_goto_bookmark): Use std::string.
11753
11754 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11755
11756 PR tdep/18295
11757 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11758 a single mask.
11759
11760 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11761
11762 * rs6000-tdep.c (store_insn_p): New function.
11763 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11764 and cr_reg to their unshifted values. Use store_insn_p to
11765 match LR saves using either R1 or fdata->alloca_reg. Use
11766 store_insn_p to match CR saves. Set alloca_reg_offset
11767 when alloca_reg and framep are set. Remove lr_reg shift
11768 when assigning to fdata->lr_register.
11769
11770 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11771
11772 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11773 command line args instead of emitting a warning.
11774
11775 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11776
11777 * tracepoint.h (struct static_tracepoint_marker): Initialize
11778 fields, define default constructor, move constructor and move
11779 assignment, disable the rest.
11780 <str_id, extra>: Make std::string.
11781 (release_static_tracepoint_marker): Remove.
11782 (free_current_marker): Remove.
11783 * tracepoint.c (free_current_marker): Remove.
11784 (parse_static_tracepoint_marker_definition): Adjust to
11785 std::string, use new hex2str overload.
11786 (release_static_tracepoint_marker): Remove.
11787 (print_one_static_tracepoint_marker): Get marker by reference
11788 and adjust to std::string.
11789 (info_static_tracepoint_markers_command): Adjust to std::vector
11790 changes
11791 * target.h (static_tracepoint_marker_p): Remove typedef.
11792 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11793 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11794 bool.
11795 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11796 * target-debug.h
11797 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11798 (target_debug_print_std_vector_static_tracepoint_marker): New.
11799 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11800 to...
11801 (target_debug_print_static_tracepoint_marker_p): ... this.
11802 * target-delegates.c: Re-generate.
11803 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11804 Make std::string.
11805 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11806 (decode_static_tracepoint_spec): Adjust to std::vector.
11807 (tracepoint_print_one_detail): Adjust to std::string.
11808 (strace_marker_decode_location): Adjust to std::string.
11809 (update_static_tracepoint): Adjust to std::string, remove call
11810 to release_static_tracepoint_marker.
11811 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11812 Adjust to std::vector.
11813 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11814 (remote_static_tracepoint_markers_by_strid): Adjust to
11815 std::vector.
11816 * common/rsp-low.h (hex2str): New overload with explicit count
11817 of bytes.
11818 * common/rsp-low.c (hex2str): New overload with explicit count
11819 of bytes.
11820 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11821 (_initialize_rsp_low_selftests): Add test_hex2str test.
11822 * unittests/tracepoint-selftests.c
11823 (test_parse_static_tracepoint_marker_definition): Adjust to
11824 std::string.
11825
11826 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11827
11828 * tracepoint.c (parse_static_tracepoint_marker_definition):
11829 Consider case where the definition is followed by more
11830 definitions.
11831 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11832 tracepoint-selftests.c.
11833 * unittests/tracepoint-selftests.c: New.
11834
11835 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11836
11837 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11838 Carvalho.
11839
11840 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11841
11842 * symtab.c (find_pc_sect_line): fixed indentation.
11843
11844 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11845
11846 * symtab.c (find_pc_sect_line): now uses binary search.
11847
11848 2018-03-19 Tom Tromey <tom@tromey.com>
11849
11850 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11851 "IDENT" production.
11852
11853 2018-03-19 Pedro Alves <palves@redhat.com>
11854 Tom Tromey <tom@tromey.com>
11855
11856 * unittests/observable-selftests.c: New file.
11857 * common/observable.h: New file.
11858 * observable.h: New file.
11859 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11860 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11861 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11862 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11863 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11864 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11865 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11866 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11867 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11868 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11869 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11870 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11871 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11872 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11873 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11874 tui/tui-interp.c, valops.c: Update all users.
11875 * tui/tui-hooks.c (tui_bp_created_observer)
11876 (tui_bp_deleted_observer, tui_bp_modified_observer)
11877 (tui_inferior_exit_observer, tui_before_prompt_observer)
11878 (tui_normal_stop_observer, tui_register_changed_observer):
11879 Remove.
11880 (tui_observers_token): New global.
11881 (attach_or_detach, tui_attach_detach_observers): New functions.
11882 (tui_install_hooks, tui_remove_hooks): Use
11883 tui_attach_detach_observers.
11884 * record-btrace.c (record_btrace_thread_observer): Remove.
11885 (record_btrace_thread_observer_token): New global.
11886 * observer.sh: Remove.
11887 * observer.c: Rename to observable.c.
11888 * observable.c (namespace gdb_observers): Define new objects.
11889 (observer_debug): Move into gdb_observers namespace.
11890 (struct observer, struct observer_list, xalloc_observer_list_node)
11891 (xfree_observer_list_node, generic_observer_attach)
11892 (generic_observer_detach, generic_observer_notify): Remove.
11893 (_initialize_observer): Update.
11894 Don't include observer.inc.
11895 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11896 (clean mostlyclean): Likewise.
11897 (observer.h, observer.inc): Remove targets.
11898 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11899 (COMMON_SFILES): Use observable.c, not observer.c.
11900 * .gitignore: Remove observer.h.
11901
11902 2018-03-18 Tom Tromey <tom@tromey.com>
11903
11904 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11905 gdb::def_vector.
11906 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11907
11908 2018-03-17 Tom Tromey <tom@tromey.com>
11909
11910 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11911
11912 2018-03-17 Tom Tromey <tom@tromey.com>
11913
11914 * target.c (class scoped_target_fd): New.
11915 (target_fileio_close_cleanup): Remove.
11916 (target_fileio_read_alloc_1): Use scoped_target_fd.
11917
11918 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11919
11920 * silent-rules.mk: New.
11921 * Makefile.in: Include silent-rules.mk
11922 (srcdir, VPATH, top_srcdir): Move up.
11923 (COMPILE): Add ECHO_CXX.
11924 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11925 (init.c): Add ECHO_INIT_C.
11926 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11927 (version.c): Add ECHO_GEN.
11928 (printcmd.o): Add ECHO_CXX.
11929 (target-float.o): Add ECHO_CXX.
11930 (ada-exp.o): Add ECHO_CXX.
11931 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11932 (insight$(EXEEXT)): Add ECHO_CXXLD.
11933 * gnulib/configure.ac: Add AM_SILENT_RULES.
11934 * gnulib/aclocal.m4: Re-generate.
11935 * gnulib/configure: Re-generate.
11936 * gnulib/import/Makefile.in: Re-generate.
11937
11938 2018-03-16 Tom Tromey <tom@tromey.com>
11939
11940 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11941 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11942 * utils.c (do_free_section_addr_info)
11943 (make_cleanup_free_section_addr_info): Remove.
11944 * symfile.h (struct other_sections): Add constructor.
11945 (struct section_addr_info): Remove.
11946 (section_addr_info): New typedef.
11947 (struct sym_fns) <sym_offsets>: Change type of parameter.
11948 (build_section_addr_info_from_objfile)
11949 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11950 (default_symfile_offsets, symbol_file_add)
11951 (symbol_file_add_from_bfd)
11952 (build_section_addr_info_from_section_table): Update.
11953 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11954 * symfile.c (alloc_section_addr_info): Remove.
11955 (build_section_addr_info_from_section_table): Change return type.
11956 Update.
11957 (build_section_addr_info_from_bfd)
11958 (build_section_addr_info_from_objfile): Likewise.
11959 (free_section_addr_info): Remove.
11960 (relative_addr_info_to_section_offsets): Change type of "addrs".
11961 (addrs_section_compar): Now a std::sort comparator.
11962 (addrs_section_sort): Change return type.
11963 (addr_info_make_relative): Change type of "addrs". Update.
11964 (default_symfile_offsets, syms_from_objfile_1)
11965 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11966 (symbol_file_add_separate): Update.
11967 (symbol_file_add): Change type of "addrs". Update.
11968 (add_symbol_file_command): Update. Remove cleanups.
11969 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11970 cleanups.
11971 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11972 * solib.c (solib_read_symbols): Update.
11973 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11974 * machoread.c (macho_symfile_offsets): Update.
11975 * jit.c (jit_bfd_try_read_symtab): Update.
11976
11977 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11978
11979 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11980 unittests/utils-selftests.c.
11981 * unittests/utils-selftests.c: New file.
11982
11983 2018-03-14 Tom Tromey <tom@tromey.com>
11984
11985 PR cli/14977:
11986 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11987 for NULL.
11988
11989 2018-03-14 Tom Tromey <tom@tromey.com>
11990
11991 PR cli/19918:
11992 * printcmd.c (printf_pointer): Allow "-" in format.
11993
11994 2018-03-14 Tom Tromey <tom@tromey.com>
11995
11996 * printcmd.c (_initialize_printcmd): Add usage to printf.
11997
11998 2018-03-14 Yao Qi <qiyao@sourceware.org>
11999
12000 * MAINTAINERS: Update my email address.
12001
12002 2018-03-13 Tom Tromey <tom@tromey.com>
12003
12004 * machoread.c (macho_check_dsym): Change filenamep to a
12005 std::string*.
12006 (macho_symfile_read): Update.
12007 * symfile.c (load_command): Use std::string.
12008
12009 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12010
12011 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12012 to error message string.
12013 (riscv_register_name): Use xsnprintf instead of sprintf.
12014 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12015 internal_error.
12016 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12017 error.
12018 (riscv_push_dummy_call): Likewise.
12019
12020 2018-03-12 Tom Tromey <tom@tromey.com>
12021
12022 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12023 Use gdb::byte_vector.
12024 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12025
12026 2018-03-12 Yao Qi <yao.qi@linaro.org>
12027
12028 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12029 parameter type to readable_regcache.
12030 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12031 the declaration.
12032
12033 2018-03-11 Tom Tromey <tom@tromey.com>
12034
12035 * dwarf2read.c (struct nextfield): Add initializers.
12036 (struct nextfnfield): Remove.
12037 (struct fnfieldlist): Add initializers. Remove "length" and
12038 "head", use std::vector.
12039 (struct decl_field_list): Remove.
12040 (struct field_info): Add initializers.
12041 <fields, baseclasses>: Now std::vector.
12042 <nbaseclasses, nfnfields, typedef_field_list_count,
12043 nested_types_list_count>: Remove.
12044 (dwarf2_add_field, dwarf2_add_type_defn)
12045 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12046 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12047 (process_structure_scope): Update.
12048
12049 2018-03-11 Tom Tromey <tom@tromey.com>
12050
12051 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12052 for use by std::sort.
12053 (build_type_psymtabs_1): Use std::vector.
12054
12055 2018-03-09 Eli Zaretskii <eliz@gnu.org>
12056
12057 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12058 and LIBMPFR in the printed configuration.
12059
12060 2018-03-08 Tom Tromey <tom@tromey.com>
12061
12062 * source.c (get_filename_and_charpos): Use scoped_fd.
12063 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12064 (procfs_pidlist): Likewise.
12065 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12066 (iterate_over_mappings): Likewise.
12067
12068 2018-03-08 Tom Tromey <tom@tromey.com>
12069
12070 * infcall.c (struct call_return_meta_info)
12071 <stack_temporaries_enabled>: Remove.
12072 (get_call_return_value, call_function_by_hand_dummy): Update.
12073 * thread.c (disable_thread_stack_temporaries): Remove.
12074 (enable_thread_stack_temporaries): Remove.
12075 (thread_stack_temporaries_enabled_p): Return bool.
12076 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12077 (get_last_thread_stack_temporary): Update.
12078 * eval.c (evaluate_subexp): Update.
12079 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12080 class, not a function.
12081 (value_ptr, value_vec): Remove typedefs.
12082 (class thread_info) <stack_temporaries_enabled>: Now bool.
12083 <stack_temporaries>: Now a std::vector.
12084 (thread_stack_temporaries_enabled_p)
12085 (value_in_thread_stack_temporaries): Return bool.
12086
12087 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12088
12089 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12090 (getpkt_or_notif_sane_1): Likewise.
12091
12092 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12093
12094 * build-id.c (build_id_to_debug_bfd): Use std::string.
12095
12096 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12097
12098 * build-id.c (find_separate_debug_file_by_buildid): Return
12099 std::string.
12100 * build-id.h (find_separate_debug_file_by_buildid): Return
12101 std::string.
12102 * coffread.c (coff_symfile_read): Adjust to std::string.
12103 * elfread.c (elf_symfile_read): Adjust to std::string.
12104 * symfile.c (separate_debug_file_exists): Change parameter to
12105 std::string.
12106 (find_separate_debug_file): Return std::string.
12107 (find_separate_debug_file_by_debuglink): Return std::string.
12108 * symfile.h (find_separate_debug_file_by_debuglink): Return
12109 std::string.
12110
12111 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12112
12113 * common/xml-utils.c (xml_escape_text): Move code to...
12114 (xml_escape_text_append): ... this new function.
12115 * common/xml-utils.h (xml_escape_text_append): New declaration.
12116 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12117 New function.
12118 (_initialize_xml_utils): register test_xml_escape_text_append as
12119 a selftest.
12120
12121 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12122
12123 * defs.h: Remove MAX_REGISTER_SIZE.
12124 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12125 asserts.
12126 * python/py-unwind.c (pyuw_sniffer): Likewise.
12127
12128 2018-03-07 Tom Tromey <tom@tromey.com>
12129
12130 * linux-tdep.c (linux_info_proc): Update.
12131 * target.h (struct target_ops) <to_fileio_readlink>: Return
12132 optional<string>.
12133 (target_fileio_readlink): Return optional<string>.
12134 * remote.c (remote_hostio_readlink): Return optional<string>.
12135 * inf-child.c (inf_child_fileio_readlink): Return
12136 optional<string>.
12137 * target.c (target_fileio_readlink): Return optional<string>.
12138
12139 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12140
12141 * regcache.c (cooked_read_test): Add riscv to the list of
12142 architectures that have a save_reggroup.
12143
12144 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12145
12146 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12147 value is not a dynamic class object.
12148
12149 2018-03-06 Tom Tromey <tom@tromey.com>
12150
12151 * rust-exp.y: Formatting fixes.
12152
12153 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12154
12155 * riscv-tdep.c (riscv_register_name): Remove target description
12156 support.
12157 (riscv_gdbarch_init): Remove target description check.
12158
12159 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12160
12161 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12162 comment.
12163 * riscv-tdep.h: Likewise.
12164
12165 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12166
12167 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12168 (riscv_pseudo_register_write): Delete.
12169 (riscv_gdbarch_init): Remove all use of pseudo registers.
12170
12171 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12172
12173 * record-btrace.c (btrace_print_lines): Replace cleanup
12174 parameter with RAII equivalents.
12175 (btrace_insn_history): Replace cleanup with RAII equivalents.
12176 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12177 make_cleanup_ui_out_tuple_begin_end): Remove.
12178 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12179 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12180 make_cleanup_ui_out_list_begin_end): Remove.
12181
12182 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12183
12184 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12185 parameter types to std::vector. Use bool.
12186 (record_btrace_wait): Replace VEC(tp_t) with
12187 std::vector<thread_info *>.
12188 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12189
12190 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12191
12192 * record-btrace.c (record_btrace_disable_callback): Remove.
12193 (struct scoped_btrace_disable): New.
12194 (record_btrace_open): Use scoped_btrace_disable.
12195
12196 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12197
12198 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12199 reading values from registers.
12200
12201 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12202
12203 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12204 where appropriate.
12205
12206 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12209 change parameter type. Use GDB's print functions, and use
12210 core_addr_to_string where appropriate.
12211 (riscv_push_dummy_call): Use core_addr_to_string where
12212 appropriate, update call to riscv_print_arg_location, and reindent
12213 a few lines.
12214 (riscv_return_value): Update call to riscv_print_arg_location.
12215
12216 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12217 Tim Newsome <tim@sifive.com>
12218 Albert Ou <a0u@eecs.berkeley.edu>
12219 Darius Rad <darius@bluespec.com>
12220
12221 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12222 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12223 (ALLDEPFILES): Add riscv-tdep.c
12224 * configure.tgt: Add riscv support.
12225 * riscv-tdep.c: New file.
12226 * riscv-tdep.h: New file.
12227 * NEWS: Mention new target.
12228 * MAINTAINERS: Add entry for riscv.
12229
12230 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12231
12232 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12233 fields within aggregates.
12234
12235 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12236
12237 * record-btrace.c (btrace_print_lines): Change type of flags to
12238 gdb_disassembly_flags.
12239
12240 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12241
12242 * fbsd-nat.c: Include "inf-ptrace.h".
12243 (USE_SIGTRAP_SIGINFO): Conditionally define.
12244 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12245 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12246 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12247 function.
12248 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12249 Likewise.
12250 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12251 Likewise.
12252 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12253 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12254 "supports_stopped_by_hw_breakpoint" target methods.
12255
12256 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12257
12258 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12259 * fbsd-nat.c (debug_fbsd_nat): New variable.
12260 (show_fbsd_nat_debug): New function.
12261 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12262 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12263
12264 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12265
12266 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12267 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12268 prototype.
12269 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12270 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12271 method.
12272
12273 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12274
12275 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12276 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12277
12278 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12279
12280 * charset.c (struct charset_vector): New.
12281 (charsets): Change type to charset_vector.
12282 (find_charset_names): Adjust.
12283 (add_one): Adjust.
12284 (_initialize_charset): Adjust.
12285
12286 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12287
12288 * progspace.h (struct program_space) <deleted_solibs>: Change
12289 type to std::vector<std::string>.
12290 * progspace.c (clear_program_space_solib_cache): Adjust.
12291 * breakpoint.c (print_solib_event): Adjust.
12292 (check_status_catch_solib): Adjust.
12293 * solib.c (update_solib_list): Adjust.
12294 * ui-out.h (class ui_out) <field_string>: New overload.
12295 * ui-out.c (ui_out::field_string): New overload.
12296
12297 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12298
12299 * progspace.h (struct program_space): Add constructor and
12300 destructor, initialize fields.
12301 (add_program_space): Remove.
12302 * progspace.c (add_program_space): Rename to...
12303 (program_space::program_space): ... this.
12304 (release_program_space): Rename to...
12305 (program_space::~program_space): ... this.
12306 (delete_program_space): Use delete to delete program_space.
12307 (initialize_progspace): Use new to allocate program_space.
12308 * inferior.c (add_inferior_with_spaces): Likewise.
12309 (clone_inferior_command): Likewise.
12310 * infrun.c (follow_fork_inferior): Likewise.
12311 (handle_vfork_child_exec_or_exit): Likewise.
12312
12313 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12314
12315 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12316 (delim_string_to_char_ptr_vec): Return std::vector of
12317 gdb::unique_xmalloc_ptr.
12318 (dirnames_to_char_ptr_vec_append): Take std::vector of
12319 gdb::unique_xmalloc_ptr.
12320 (dirnames_to_char_ptr_vec): Return std::vector of
12321 gdb::unique_xmalloc_ptr.
12322 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12323 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12324 (delim_string_to_char_ptr_vec): Return an std::vector of
12325 gdb::unique_xmalloc_ptr, adjust the code.
12326 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12327 gdb::unique_xmalloc_ptr, adjust the code.
12328 (dirnames_to_char_ptr_vec): Return an std::vector of
12329 gdb::unique_xmalloc_ptr, adjust the code.
12330 * auto-load.c (auto_load_safe_path_vec): Change type to
12331 std::vector of gdb::unique_xmalloc_ptr.
12332 (auto_load_expand_dir_vars): Return an std::vector of
12333 gdb::unique_xmalloc_ptr, adjust the code.
12334 (auto_load_safe_path_vec_update): Adjust.
12335 (filename_is_in_auto_load_safe_path_vec): Adjust.
12336 (auto_load_objfile_script_1): Adjust.
12337 * build-id.c (build_id_to_debug_bfd): Adjust.
12338 * linux-thread-db.c (thread_db_load_search): Adjust.
12339 * source.c (add_path): Adjust.
12340 (openp): Adjust.
12341 * symfile.c (find_separate_debug_file): Adjust.
12342 * utils.c (do_free_char_ptr_vec): Remove.
12343 (make_cleanup_free_char_ptr_vec): Remove.
12344
12345 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12346
12347 PR gdb/22907
12348 * common/pathstuff.c: Conditionally include "<windows.h>".
12349
12350 2018-03-01 Georg Sauthoff <mail@georg.so>
12351
12352 PR gdb/22888
12353 * gcore.in: Quote variables and switch interpreter to bash.
12354
12355 2018-03-01 Tom Tromey <tom@tromey.com>
12356
12357 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12358 assertion. Add assertion for discriminant_index.
12359 (quirk_rust_enum): Use correct base type name in univariant case.
12360
12361 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12362
12363 * record.c (get_call_history_modifiers): Return a
12364 record_print_flags.
12365 (cmd_record_call_history): Adjust.
12366 * record-btrace.c (record_btrace_call_history): Adjust.
12367 (record_btrace_call_history_range): Adjust.
12368 (record_btrace_call_history_from): Adjust.
12369 * target-debug.h (target_debug_print_record_print_flags): New.
12370 * target-delegates.c: Re-generate.
12371 * target.c (target_call_history): Change flags type.
12372 (target_call_history_from): Likewise.
12373 (target_call_history_range): Likewise.
12374 * target.h (struct target_ops) <target_call_history>: Likewise.
12375 (target_call_history_from): Likewise.
12376 (target_call_history_range): Likewise.
12377
12378 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12379 Simon Marchi <simon.marchi@polymtl.ca>
12380
12381 * common/common-utils.c: Include "sys/stat.h".
12382 (is_regular_file): Move here from "source.c"; change return
12383 type to "bool".
12384 * common/common-utils.h (is_regular_file): New prototype.
12385 * common/pathstuff.c (contains_dir_separator): New function.
12386 * common/pathstuff.h (contains_dir_separator): New prototype.
12387 * source.c: Don't include "sys/stat.h".
12388 (is_regular_file): Move to "common/common-utils.c".
12389
12390 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12391
12392 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12393 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12394 * auto-load.c: Include "common/pathstuff.h".
12395 * common/common-def.h (current_directory): Move here.
12396 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12397 function.
12398 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12399 prototype.
12400 * common/pathstuff.c: New file.
12401 * common/pathstuff.h: New file.
12402 * compile/compile.c: Include "common/pathstuff.h".
12403 * defs.h (current_directory): Move to "common/common-defs.h".
12404 * dwarf2read.c: Include "common/pathstuff.h".
12405 * exec.c: Likewise.
12406 * guile/scm-safe-call.c: Likewise.
12407 * linux-thread-db.c: Likewise.
12408 * main.c: Likewise.
12409 * nto-tdep.c: Likewise.
12410 * objfiles.c: Likewise.
12411 * source.c: Likewise.
12412 * symtab.c: Likewise.
12413 * utils.c: Include "common/pathstuff.h".
12414 (gdb_realpath): Move to "common/pathstuff.c".
12415 (gdb_realpath_keepfile): Likewise.
12416 (gdb_abspath): Likewise.
12417 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12418 (gdb_realpath_keepfile): Likewise.
12419 (gdb_abspath): Likewise.
12420
12421 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12422
12423 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12424 wildcard process pid for super_resume for kernels with a
12425 specific bug.
12426
12427 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12428
12429 * compile/compile.c (get_args): Add additional comments
12430 explaining function.
12431
12432 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12433 Tom Tromey <tom@tromey.com>
12434
12435 * target.h (memory_write_request_s): Remove typedef. Don't define
12436 VEC.
12437 (target_write_memory_blocks): Change argument to std::vector.
12438 (struct memory_write_request): Add constructor.
12439 * target-memory.c (compare_block_starting_address): Return bool.
12440 Change argument types.
12441 (claim_memory): Change arguments to use std::vector.
12442 (split_regular_and_flash_blocks, blocks_to_erase)
12443 (compute_garbled_blocks): Likewise.
12444 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12445 (target_write_memory_blocks): Change argument to std::vector.
12446 * symfile.c (struct load_section_data): Add constructor and
12447 destructor. Use std::vector for "requests".
12448 (struct load_progress_data): Add initializers.
12449 (load_section_callback): Update. Use "new".
12450 (clear_memory_write_data): Remove.
12451 (generic_load): Update.
12452
12453 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12454
12455 * arch/aarch64.h: Use common/tdesc.h.
12456
12457 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12458
12459 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12460 architecture with a 64-bit ABI.
12461
12462 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12463
12464 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12465 ahead of target description loading.
12466
12467 2018-02-26 Tom Tromey <tom@tromey.com>
12468
12469 * stack.c (backtrace_command_1): Update.
12470 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12471 of "flags".
12472 * python/py-framefilter.c (py_print_frame)
12473 (gdbpy_apply_frame_filter): Change type of "flags".
12474 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12475 of "flags".
12476 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12477 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12478 * extension.h (enum frame_filter_flag): Rename from
12479 frame_filter_flags.
12480 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12481 (apply_ext_lang_frame_filter): Change type of "flags".
12482 * extension.c (apply_ext_lang_frame_filter): Change type of
12483 "flags".
12484 * extension-priv.h (struct extension_language_ops)
12485 <apply_frame_filter>: Change type of "flags".
12486
12487 2018-02-26 Tom Tromey <tom@tromey.com>
12488
12489 PR python/16497:
12490 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12491 off-by-one in py_end computation.
12492 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12493 PRINT_MORE_FRAMES.
12494 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12495 constant.
12496
12497 2018-02-26 Tom Tromey <tom@tromey.com>
12498
12499 * dwarf2read.c (struct variant_field): New.
12500 (struct nextfield) <variant>: New field.
12501 (dwarf2_add_field): Handle DW_TAG_variant_part.
12502 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12503 discriminated union.
12504 (read_structure_type): Handle DW_TAG_variant_part.
12505 (handle_struct_member_die): New function, extracted from
12506 process_structure_scope. Handle DW_TAG_variant.
12507 (process_structure_scope): Handle discriminated unions. Call
12508 handle_struct_member_die.
12509
12510 2018-02-26 Tom Tromey <tom@tromey.com>
12511
12512 * rust-lang.h (rust_last_path_segment): Declare.
12513 * rust-lang.c (rust_last_path_segment): Now public. Change
12514 contract.
12515 (struct disr_info): Remove.
12516 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12517 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12518 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12519 (rust_enum_p, rust_enum_variant): New function.
12520 (rust_underscore_fields): Remove "offset" parameter.
12521 (rust_print_enum): New function.
12522 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12523 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12524 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12525 enums.
12526 (rust_internal_print_type): New function, from rust_print_type.
12527 Remove enum code.
12528 (rust_print_type): Call rust_internal_print_type.
12529 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12530 Update enum handling.
12531 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12532 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12533 (rust_union_quirks): New functions.
12534 (process_full_comp_unit, process_full_type_unit): Call
12535 rust_union_quirks.
12536 (process_structure_scope): Update rust_unions if necessary.
12537
12538 2018-02-26 Tom Tromey <tom@tromey.com>
12539
12540 * value.h (value_union_variant): Declare.
12541 * valops.c (value_union_variant): New function.
12542 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12543 (struct discriminant_info): New.
12544 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12545 enumerator.
12546 (struct main_type) <flag_discriminated_union>: New field.
12547
12548 2018-02-26 Tom Tromey <tom@tromey.com>
12549
12550 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12551 unittests/unpack-selftests.c.
12552 * unittests/unpack-selftests.c: New file.
12553 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12554
12555 2018-02-26 Yao Qi <yao.qi@linaro.org>
12556
12557 * dwarf2read.c (struct partial_die_info) <read>: New method.
12558 (read_partial_die): Remove the declaration.
12559 (load_partial_dies): Update.
12560 (partial_die_info::partial_die_info):
12561 (read_partial_die): Change it to partial_die_info::read.
12562
12563 2018-02-26 Yao Qi <yao.qi@linaro.org>
12564
12565 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12566 (fixup_partial_die): Remove declaration.
12567 (scan_partial_symbols): Update.
12568 (partial_die_parent_scope): Likewise.
12569 (partial_die_full_name): Likewise.
12570 (fixup_partial_die): Change it to partial_die_info::fixup.
12571
12572 2018-02-26 Yao Qi <yao.qi@linaro.org>
12573
12574 * dwarf2read.c (read_partial_die): Update the declaration.
12575 (load_partial_dies): Caller update.
12576 (read_partial_die): Remove one argument abbrev_len.
12577
12578 2018-02-26 Yao Qi <yao.qi@linaro.org>
12579
12580 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12581 assignment operator.
12582 (load_partial_dies): Use ctor and copy ctor.
12583 (read_partial_die): Update.
12584 (dwarf2_cu::find_partial_die): Use ctor.
12585
12586 2018-02-26 Yao Qi <yao.qi@linaro.org>
12587
12588 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12589 (find_partial_die_in_comp_unit): Change it to
12590 dwarf2_cu::find_partial_die.
12591 (find_partial_die): Update.
12592
12593 2018-02-26 Yao Qi <yao.qi@linaro.org>
12594
12595 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12596 is NULL.
12597
12598 2018-02-26 Yao Qi <yao.qi@linaro.org>
12599
12600 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12601
12602 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12603
12604 * arch/amd64.h: Use common/tdesc.h.
12605 * arch/i386.c: Likewise.
12606 * arch/i386.h: Likewise.
12607 * arch/tic6x.c: Likewise.
12608 * arch/tdesc.h: Move file from here...
12609 * common/tdesc.h: ...to here.
12610 * features/aarch64-core.c: Regenerate.
12611 * features/aarch64-fpu.c: Regenerate.
12612 * features/i386/32bit-avx.c: Regenerate.
12613 * features/i386/32bit-avx512.c: Regenerate.
12614 * features/i386/32bit-core.c: Regenerate.
12615 * features/i386/32bit-linux.c: Regenerate.
12616 * features/i386/32bit-mpx.c: Regenerate.
12617 * features/i386/32bit-pkeys.c: Regenerate.
12618 * features/i386/32bit-sse.c: Regenerate.
12619 * features/i386/64bit-avx.c: Regenerate.
12620 * features/i386/64bit-avx512.c: Regenerate.
12621 * features/i386/64bit-core.c: Regenerate.
12622 * features/i386/64bit-linux.c: Regenerate.
12623 * features/i386/64bit-mpx.c: Regenerate.
12624 * features/i386/64bit-pkeys.c: Regenerate.
12625 * features/i386/64bit-segments.c: Regenerate.
12626 * features/i386/64bit-sse.c: Regenerate.
12627 * features/i386/x32-core.c: Regenerate.
12628 * features/tic6x-c6xp.c: Regenerate.
12629 * features/tic6x-core.c: Regenerate.
12630 * features/tic6x-gp.c: Regenerate.
12631 * target-descriptions.c: Use common/tdesc.h.
12632 * target-descriptions.h: Likewise.
12633
12634 2018-02-24 Tom Tromey <tom@tromey.com>
12635
12636 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12637 (try_thread_db_load_from_dir, thread_db_load_search): Use
12638 std::string.
12639 (info_auto_load_libthread_db_compare): Return bool. Change
12640 argument types.
12641 (info_auto_load_libthread_db): Use std::vector, std::string.
12642 Remove cleanups.
12643
12644 2018-02-24 Tom Tromey <tom@tromey.com>
12645
12646 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12647 std::string.
12648 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12649 std::string*.
12650 * gdbarch.c: Rebuild.
12651 * gdbarch.h: Rebuild.
12652 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12653 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12654 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12655 std::string*.
12656
12657 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12658
12659 * gdbtypes.h (sect_offset): Change type to uint64_t.
12660 (sect_offset_str): New function.
12661 * dwarf2read.c (create_addrmap_from_aranges): Use
12662 sect_offset_str.
12663 (error_check_comp_unit_head): Likewise.
12664 (create_debug_type_hash_table): Likewise.
12665 (read_cutu_die_from_dwo): Likewise.
12666 (init_cutu_and_read_dies): Likewise.
12667 (init_cutu_and_read_dies_no_follow): Likewise.
12668 (process_psymtab_comp_unit_reader): Likewise.
12669 (partial_die_parent_scope): Likewise.
12670 (peek_die_abbrev): Likewise.
12671 (process_queue): Likewise.
12672 (dwarf2_physname): Likewise.
12673 (read_namespace_alias): Likewise.
12674 (read_import_statement): Likewise.
12675 (create_dwo_cu_reader): Likewise.
12676 (create_cus_hash_table): Likewise.
12677 (lookup_dwo_cutu): Likewise.
12678 (inherit_abstract_dies): Likewise.
12679 (read_func_scope): Likewise.
12680 (read_call_site_scope): Likewise.
12681 (dwarf2_add_member_fn): Likewise.
12682 (read_common_block): Likewise.
12683 (read_module_type): Likewise.
12684 (read_typedef): Likewise.
12685 (read_subrange_type): Likewise.
12686 (load_partial_dies): Likewise.
12687 (read_partial_die): Likewise.
12688 (find_partial_die): Likewise.
12689 (read_str_index): Likewise.
12690 (dwarf2_string_attr): Likewise.
12691 (build_error_marker_type): Likewise.
12692 (lookup_die_type): Likewise.
12693 (dump_die_shallow): Likewise.
12694 (follow_die_ref): Likewise.
12695 (dwarf2_fetch_die_loc_sect_off): Likewise.
12696 (dwarf2_fetch_constant_bytes): Likewise.
12697 (follow_die_sig): Likewise.
12698 (get_signatured_type): Likewise.
12699 (get_DW_AT_signature_type): Likewise.
12700 (dwarf2_find_containing_comp_unit): Likewise.
12701 (set_die_type): Likewise.
12702
12703 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12704
12705 * arch/aarch64.c: Include "common-defs.h".
12706 * arch/amd64.c: Likewise.
12707 * arch/i386.c: Likewise.
12708
12709 2018-02-21 Tom Tromey <tom@tromey.com>
12710
12711 * value.h: (extract_field_op): Update.
12712 * eval.c (extract_field_op): Return a const char *.
12713 * expression.h (parse_expression_for_completion): Update.
12714 * completer.c (complete_expression): Update.
12715 (add_struct_fields): Make fieldname const.
12716 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12717 (mark_completion_tag, parse_exp_in_context_1): Update.
12718 (parse_expression_for_completion): Change "name" to
12719 unique_xmalloc_ptr*.
12720
12721 2018-02-21 Tom Tromey <tom@tromey.com>
12722
12723 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12724
12725 2018-02-21 Yao Qi <yao.qi@linaro.org>
12726
12727 * avr-tdep.c (avr_read_pc): Change parameter type to
12728 readable_regcache.
12729 * gdbarch.sh (read_pc): Likewise.
12730 * gdbarch.c: Re-generated.
12731 * gdbarch.h: Re-generated.
12732 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12733 readable_regcache.
12734 * ia64-tdep.c (ia64_read_pc): Likewise.
12735 * mips-tdep.c (mips_read_pc): Likewise.
12736 * spu-tdep.c (spu_read_pc): Likewise.
12737
12738 2018-02-21 Yao Qi <yao.qi@linaro.org>
12739
12740 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12741 * regcache-dump.c: New file.
12742 * regcache.c: Move register_dump to regcache-dump.c.
12743 (maintenance_print_registers): Likewise.
12744 (maintenance_print_raw_registers): Likewise.
12745 (maintenance_print_cooked_registers): Likewise.
12746 (maintenance_print_register_groups): Likewise.
12747 (maintenance_print_remote_registers): Likewise.
12748 (_initialize_regcache): Likewise.
12749 * regcache.h (register_dump): Moved from regcache.c.
12750
12751 2018-02-21 Yao Qi <yao.qi@linaro.org>
12752
12753 * regcache.c (regcache::regcache): Update.
12754 (regcache::invalidate): Move it to detached_regcache::invalidate.
12755 (get_thread_arch_aspace_regcache): Update.
12756 (regcache::raw_update): Update.
12757 (regcache::cooked_read): Remove some code.
12758 (regcache::cooked_read_value): Likewise.
12759 (regcache::raw_write): Remove assert on m_readonly_p.
12760 (regcache::raw_supply_integer): Move it to
12761 detached_regcache::raw_supply_integer.
12762 (regcache::raw_supply_zeroed): Likewise.
12763 * regcache.h (detached_regcache) <raw_supply_integer>: New
12764 declaration.
12765 <raw_supply_zeroed, invalidate>: Likewise.
12766 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12767 <invalidate>: Likewise.
12768 <m_readonly_p>: Removed.
12769
12770 2018-02-21 Yao Qi <yao.qi@linaro.org>
12771
12772 * infcmd.c (get_return_value): Let stop_regs point to
12773 get_current_regcache.
12774 * regcache.c (regcache::regcache): Remove.
12775 (register_dump_reg_buffer): New class.
12776 (regcache_print): Adjust.
12777 * regcache.h (regcache): Remove constructors.
12778
12779 2018-02-21 Yao Qi <yao.qi@linaro.org>
12780
12781 * regcache.c (class register_dump): New class.
12782 (register_dump_regcache, register_dump_none): New class.
12783 (register_dump_remote, register_dump_groups): New class.
12784 (regcache_print): Update.
12785 * regcache.h (regcache_dump_what): Move it to regcache.c.
12786 (regcache) <dump>: Remove.
12787
12788 2018-02-21 Yao Qi <yao.qi@linaro.org>
12789
12790 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12791 reg_buffer_rw *.
12792 (jit_unwind_reg_set_impl): Call raw_supply.
12793 (jit_frame_sniffer): Use reg_buffer_rw.
12794 * record-full.c (record_full_core_regbuf): Change its type.
12795 (record_full_core_open_1): Use reg_buffer_rw.
12796 (record_full_close): Likewise.
12797 (record_full_core_fetch_registers): Use regcache->raw_supply.
12798 (record_full_core_store_registers): Likewise.
12799 * regcache.c (regcache::get_register_status): Move it to
12800 reg_buffer.
12801 (regcache_raw_set_cached_value): Remove.
12802 (regcache::raw_set_cached_value): Remove.
12803 (regcache::raw_write): Call raw_supply.
12804 (regcache::raw_supply): Move it to reg_buffer_rw.
12805 * regcache.h (regcache_raw_set_cached_value): Remove.
12806 (reg_buffer_rw): New class.
12807
12808 2018-02-21 Yao Qi <yao.qi@linaro.org>
12809
12810 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12811 readonly_detached_regcache.
12812 (dummy_frame_prev_register): Use regcache->cooked_read.
12813 * frame.c (frame_save_as_regcache): Change return type.
12814 (frame_pop): Update.
12815 * frame.h (frame_save_as_regcache): Update declaration.
12816 * inferior.h (get_infcall_suspend_state_regcache): Update
12817 declaration.
12818 * infrun.c (infcall_suspend_state) <registers>: use
12819 readonly_detached_regcache.
12820 (save_infcall_suspend_state): Don't use regcache_dup.
12821 (get_infcall_suspend_state_regcache): Change return type.
12822 * linux-fork.c (struct fork_info) <savedregs>: Change to
12823 readonly_detached_regcache.
12824 <pc>: New field.
12825 (fork_save_infrun_state): Don't use regcache_dup.
12826 (info_checkpoints_command): Adjust.
12827 * mi/mi-main.c (register_changed_p): Update declaration.
12828 (mi_cmd_data_list_changed_registers): Use
12829 readonly_detached_regcache.
12830 (register_changed_p): Change parameter type to
12831 readonly_detached_regcache.
12832 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12833 readonly_detached_regcache.
12834 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12835 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12836 New.
12837 (regcache::save): Move it to reg_buffer.
12838 (regcache::restore): Change parameter type.
12839 (regcache_dup): Remove.
12840 * regcache.h (reg_buffer) <save>: New method.
12841 (readonly_detached_regcache): New class.
12842 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12843 readonly_detached_regcache.
12844 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12845
12846 2018-02-21 Yao Qi <yao.qi@linaro.org>
12847
12848 * frame.c (frame_save_as_regcache): Use regcache method save.
12849 (frame_pop): Use regcache method restore.
12850 * infrun.c (restore_infcall_suspend_state): Likewise.
12851 * linux-fork.c (fork_load_infrun_state): Likewise.
12852 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12853 save.
12854 * regcache.c (regcache_save): Remove.
12855 (regcache::restore): More asserts.
12856 (regcache_cpy): Remove.
12857 * regcache.h (regcache_save): Remove the declaration.
12858 (regcache::restore): Move from private to public.
12859 Remove the friend declaration of regcache_cpy.
12860 (regcache_cpy): Remove declaration.
12861
12862 2018-02-21 Yao Qi <yao.qi@linaro.org>
12863
12864 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12865 parameter type to 'readable_regcache *'.
12866 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12867 * arm-tdep.c (arm_neon_quad_read): Likewise.
12868 (arm_pseudo_read): Likewise.
12869 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12870 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12871 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12872 * gdbarch.c: Re-generated.
12873 * gdbarch.h: Re-generated.
12874 * gdbarch.sh (pseudo_register_read): Change parameter type to
12875 'readable_regcache *'.
12876 (pseudo_register_read_value): Likewise.
12877 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12878 (h8300_pseudo_register_read): Likewise.
12879 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12880 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12881 (i386_pseudo_register_read_into_value): Likewise.
12882 (i386_pseudo_register_read_value): Likewise.
12883 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12884 declaration.
12885 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12886 * m32c-tdep.c (m32c_raw_read): Likewise.
12887 (m32c_read_flg): Likewise.
12888 (m32c_banked_register): Likewise.
12889 (m32c_banked_read): Likewise.
12890 (m32c_sb_read): Likewise.
12891 (m32c_part_read): Likewise.
12892 (m32c_cat_read): Likewise.
12893 (m32c_r3r2r1r0_read): Likewise.
12894 (m32c_pseudo_register_read): Likewise.
12895 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12896 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12897 (mep_pseudo_cr64_read): Likewise.
12898 (mep_pseudo_register_read): Likewise.
12899 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12900 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12901 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12902 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12903 (regcache::cooked_read): Likewise.
12904 (regcache::cooked_read_value): Likewise.
12905 (regcache_cooked_read_signed):
12906 (regcache::cooked_read): Likewise.
12907 * regcache.h (readable_regcache): New class.
12908 (regcache): Inherit readable_regcache. Move some methods to
12909 readable_regcache.
12910 * rl78-tdep.c (rl78_pseudo_register_read): Change
12911 parameter type to 'readable_regcache *'.
12912 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12913 (e500_pseudo_register_read): Change parameter type to
12914 'readable_regcache *'.
12915 (dfp_pseudo_register_read): Likewise.
12916 (vsx_pseudo_register_read): Likewise.
12917 (efpr_pseudo_register_read): Likewise.
12918 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12919 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12920 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12921 (sh64_pseudo_register_read): Likewise.
12922 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12923 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12924 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12925 (spu_pseudo_register_read): Likewise.
12926 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12927 (xtensa_pseudo_register_read): Likewise.
12928
12929 2018-02-21 Yao Qi <yao.qi@linaro.org>
12930
12931 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12932 (regcache::arch): Move it to reg_buffer::arch.
12933 (regcache::register_buffer): Likewise.
12934 (regcache::assert_regnum): Likewise.
12935 (regcache::num_raw_registers): Likewise.
12936 * regcache.h (reg_buffer): New class.
12937 (regcache): Inherit reg_buffer.
12938
12939 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12940
12941 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12942 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12943
12944 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12945
12946 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12947
12948 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12949
12950 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12951 (SFILES): Remove common/*.c files.
12952 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12953 * common/common.host: Add common reference.
12954 * configure.ac: Likewise.
12955 * configure: Regenerate.
12956
12957 2018-02-16 Yao Qi <yao.qi@linaro.org>
12958
12959 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12960 (block_initialize_namespace): Use new.
12961 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12962 (dwarf2_free_objfile): Use delete.
12963 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12964 (copy_type_recursive): Use new.
12965 * gdb_obstack.h (allocate_on_obstack): New.
12966
12967 2018-02-15 Yao Qi <yao.qi@linaro.org>
12968
12969 PR gdb/22849
12970 * inferior.c (exit_inferior_1): Reset inf->control.
12971
12972 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12973
12974 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12975 declaration.
12976
12977 2018-02-14 Pedro Alves <palves@redhat.com>
12978
12979 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12980 frame_cleanup_after_sniffer on exception.
12981
12982 2018-02-14 Tom Tromey <tom@tromey.com>
12983
12984 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12985 const.
12986 (solib_bfd_open): Make pathname const.
12987 * solib.c (solib_bfd_open): Make pathname const.
12988 * solib-spu.c (spu_bfd_fopen): Make name const.
12989 (spu_bfd_open): Make pathname const.
12990 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12991 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12992
12993 2018-02-14 Tom Tromey <tom@tromey.com>
12994
12995 * symfile.c (symfile_bfd_open): Update.
12996 * source.h (openp, source_full_path_of, find_and_open_source):
12997 Change argument type to unique_xmalloc_ptr.
12998 * source.c (openp): Take a unique_xmalloc_ptr.
12999 (source_full_path_of, find_and_open_source): Likewise.
13000 (open_source_file, symtab_to_fullname): Update.
13001 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13002 unique_xmalloc_ptr.
13003 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13004 (exec_file_find): Update.
13005 * psymtab.c (psymtab_to_fullname): Update.
13006 * nto-tdep.h (nto_find_and_open_solib): Update.
13007 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13008 unique_xmalloc_ptr.
13009 * exec.c (exec_file_attach): Update.
13010 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13011 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13012
13013 2018-02-14 Tom Tromey <tom@tromey.com>
13014
13015 * solib.c: Include source.h.
13016 * nto-tdep.c: Include source.h.
13017 * mi/mi-cmd-env.c: Include source.h.
13018 * infcmd.c: Include source.h.
13019 * exec.c: Include source.h.
13020 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13021 (add_path, directory_switch, source_path, init_source_path): Move
13022 declarations...
13023 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13024 (add_path, directory_switch, source_path, init_source_path):
13025 ...here.
13026
13027 2018-02-14 Tom Tromey <tom@tromey.com>
13028
13029 * solist.h (exec_file_find, solib_find): Return
13030 unique_xmalloc_ptr.
13031 (solib_bfd_fopen): Take a const char *.
13032 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13033 (exec_file_find, solib_find): Likewise.
13034 (solib_bfd_fopen): Do not take ownership of "pathname".
13035 (solib_bfd_open): Use unique_xmalloc_ptr.
13036 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13037 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13038 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13039 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13040
13041 2018-02-14 Joel Brobecker <brobecker@adacore.com>
13042
13043 * ada-lang.c (name_match_type_from_name): Remove reference to
13044 ada_name_for_lookup in function's documentation.
13045 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13046
13047 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13048
13049 * defs.h (enum openp_flags): New enum.
13050 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13051 Move to enum openp_flags.
13052 (openp_flags): New enum flags.
13053 (openp): Change parameter type to openp_flags.
13054 * source.c (openp): Change parameter type to openp_flags.
13055 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13056 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13057
13058 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13059
13060 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13061 per-command.
13062
13063 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13064
13065 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13066 into...
13067 (class dwarf2_queue_guard): ...the destructor of this new class.
13068 (dw2_do_instantiate_symtab): Create instance of the new class
13069 dwarf2_queue_guard, remove cleanup.
13070
13071 2018-02-09 Tom Tromey <tom@tromey.com>
13072
13073 * source.c (find_source_lines): Don't reference past the end of
13074 the vector.
13075
13076 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13077
13078 * remote.c (remote_btrace_maybe_reopen): Change error message.
13079 * btrace.c (btrace_enable): Likewise.
13080 (parse_xml_btrace): Likewise.
13081 (parse_xml_btrace_conf): Likewise.
13082
13083 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13084
13085 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13086 (linux_enable_pt, linux_enable_bts): Call
13087 diagnose_perf_event_open_fail.
13088
13089 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13090
13091 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13092 Remove parameter and change return type. Update callers. Move it.
13093 (linux_enable_bts, linux_enable_pt): Improve error message.
13094 (linux_enable_pt): Remove zero buffer size check.
13095 (linux_enable_btrace): Improve error messages. Remove NULL return
13096 check.
13097
13098 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13099
13100 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13101 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13102 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13103 (linux_supports_pt, linux_supports_btrace): Remove.
13104 (linux_enable_bts): Call cpu_supports_bts.
13105 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13106 * remote.c (remote_supports_btrace): Remove.
13107 (init_remote_ops): Remove remote_supports_btrace.
13108 * target-delegates.c: Regenerated.
13109 * target.c (target_supports_btrace): Remove.
13110 * target.h (target_ops) <to_supports_btrace>: Remove
13111 (target_supports_btrace): Remove.
13112 * x86-linux-nat.c (x86_linux_create_target): Remove
13113 linux_supports_btrace.
13114
13115 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13116
13117 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13118 btrace failed.
13119 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13120 exception and use message in own exception.
13121
13122 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13123
13124 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13125 (perf_event_pt_event_type): Use gdb_file_up.
13126 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13127 scoped_fd, and scoped_mmap.
13128
13129 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13130
13131 * common/scoped_mmap.h: New.
13132 * unittests/scoped_mmap-selftest.c: New.
13133 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13134 unittests/scoped_mmap-selftest.c.
13135
13136 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13137
13138 * common/scoped_fd.h: New.
13139 * unittests/scoped_fd-selftest.c: New.
13140 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13141 unittests/scoped_fd-selftest.c.
13142
13143 2018-02-09 Tom Tromey <tom@tromey.com>
13144
13145 * auto-load.c (auto_load_section_scripts): Use
13146 gdb::unique_xmalloc_ptr.
13147
13148 2018-02-09 Tom Tromey <tom@tromey.com>
13149
13150 * auto-load.c (execute_script_contents): Use std::string.
13151
13152 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13153
13154 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13155 Python function, rather than a new command.
13156
13157 2018-02-08 Tom Tromey <tom@tromey.com>
13158
13159 * solib.c (solib_find_1): Use std::string.
13160 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13161
13162 2018-02-08 Tom Tromey <tom@tromey.com>
13163
13164 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13165
13166 2018-02-08 Tom Tromey <tom@tromey.com>
13167
13168 * source.c (find_source_lines): Use gdb::def_vector.
13169
13170 2018-02-08 Tom Tromey <tom@tromey.com>
13171
13172 * macrocmd.c (struct temporary_macro_definition): New.
13173 (macro_define_command): Use temporary_macro_definition. Remove
13174 cleanups.
13175 (free_macro_definition_ptr): Remove.
13176
13177 2018-02-08 Tom Tromey <tom@tromey.com>
13178
13179 * macroexp.c (maybe_expand): Use std::string.
13180
13181 2018-02-08 Tom Tromey <tom@tromey.com>
13182
13183 * macroexp.c (struct macro_buffer): Add initializers for some
13184 members.
13185 (init_buffer, init_shared_buffer, free_buffer)
13186 (free_buffer_return_text): Remove.
13187 (macro_buffer): New constructors.
13188 (~macro_buffer): New destructor.
13189 (macro_buffer::set_shared): New method.
13190 (macro_buffer::resize_buffer, macro_buffer::appendc)
13191 (macro_buffer::appendmem): Now methods, not free functions.
13192 (set_token, append_tokens_without_splicing, stringify)
13193 (macro_stringify): Update.
13194 (gather_arguments): Change return type. Remove argc_p argument,
13195 add args_ptr argument. Use std::vector.
13196 (substitute_args): Remove argc argument. Accept std::vector.
13197 (expand): Update. Use std::vector.
13198 (scan, macro_expand, macro_expand_next): Update.
13199
13200 2018-02-08 Tom Tromey <tom@tromey.com>
13201
13202 * symtab.c (default_collect_symbol_completion_matches_break_on):
13203 Use unique_xmalloc_ptr.
13204 * macroscope.h: (sal_macro_scope, user_macro_scope)
13205 (default_macro_scope): Return unique_xmalloc_ptr.
13206 * macroscope.c (sal_macro_scope, user_macro_scope)
13207 (default_macro_scope): Return unique_xmalloc_ptr.
13208 * macroexp.h (macro_expand, macro_expand_once): Return
13209 unique_xmalloc_ptr.
13210 * macroexp.c (macro_expand, macro_expand_once): Return
13211 unique_xmalloc_ptr.
13212 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13213 (info_macro_command, info_macros_command): Use
13214 unique_xmalloc_ptr.
13215 * compile/compile-c-support.c (write_macro_definitions): Use
13216 unique_xmalloc_ptr.
13217 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13218
13219 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13220
13221 * value.c (value_static_field): Assign field type instead of
13222 containing type when returning an optimized out value.
13223
13224 2018-02-06 Yao Qi <yao.qi@linaro.org>
13225
13226 * ft32-tdep.c (ft32_read_pc): Remove.
13227 (ft32_write_pc): Remove.
13228 (ft32_gdbarch_init): Update.
13229 * m32r-tdep.c (m32r_read_pc): Remove.
13230 (m32r_gdbarch_init): Update.
13231 * mep-tdep.c (mep_read_pc): Remove.
13232 (mep_gdbarch_init): Update.
13233 * microblaze-tdep.c (microblaze_write_pc): Remove.
13234 (microblaze_gdbarch_init): Update.
13235 * mn10300-tdep.c (mn10300_read_pc): Remove.
13236 (mn10300_write_pc): Remove.
13237 (mn10300_gdbarch_init): Update.
13238 * moxie-tdep.c (moxie_read_pc): Remove.
13239 (moxie_write_pc): Remove.
13240 (moxie_gdbarch_init): Update.
13241
13242 2018-02-06 Yao Qi <yao.qi@linaro.org>
13243
13244 * expprint.c (print_subexp_standard): Handle
13245 OP_F77_UNDETERMINED_ARGLIST.
13246 (dump_subexp_body_standard): Likewise.
13247
13248 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13249
13250 * target-descriptions.c (tdesc_element_visitor) Add empty
13251 implementations.
13252 (tdesc_type): Move make_gdb_type from here.
13253 (tdesc_type_builtin): Likewise.
13254 (tdesc_type_vector): Likewise.
13255 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13256 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13257 (make_gdb_type_union): Likewise.
13258 (make_gdb_type_flags): Likewise.
13259 (make_gdb_type_enum): Likewise.
13260 (make_gdb_type): New function.
13261 (tdesc_register_type): Use static make_gdb_type.
13262
13263 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13264
13265 * infcmd.c (default_print_one_register_info): Align natural-format
13266 column values consistently one under another.
13267 (pad_to_column): New function.
13268
13269 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13270
13271 * dwarf2read.c (dwarf2_physname): Move commment.
13272
13273 2018-02-01 Leszek Swirski <leszeks@google.com>
13274
13275 * varobj.c (varobj_formatted_print_options): Allow recursive
13276 pretty printing if pretty printing is enabled.
13277
13278 2018-02-01 Leszek Swirski <leszeks@google.com>
13279
13280 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13281 names after a structop as a filename.
13282
13283 2018-02-01 Yao Qi <yao.qi@linaro.org>
13284
13285 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13286 (arm_record_coproc_data_proc): Likewise.
13287
13288 2018-02-01 Yao Qi <yao.qi@linaro.org>
13289
13290 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13291
13292 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13293
13294 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13295 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13296
13297 2018-01-31 Pedro Alves <palves@redhat.com>
13298
13299 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13300 * inflow.c (child_terminal_save_inferior): Wrap reference to
13301 tcgetpgrp in HAVE_TERMIOS_H.
13302 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13303 _WIN32.
13304 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13305 always iterate over all inferiors.
13306 (gdbsim_cntrl_c): Adjust.
13307 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13308
13309 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13310
13311 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13312 index type is objfile-owned if the element type is as well.
13313
13314 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13315
13316 GDB 8.1 released.
13317
13318 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13319
13320 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13321 "features/s390x-linux64.c".
13322 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13323 s390_linux32 and s390x_linux64.
13324 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13325 default tdesc.
13326 * s390-tdep.c: Include "features/s390-linux32.c" and
13327 "features/s390x-linux64.c".
13328 (s390_tdesc_valid): Add check for tdesc_has_registers.
13329 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13330 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13331 tdesc_s390x_linux64.
13332 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13333 tdesc_s390x_linux64 to...
13334 * s390-tdep.h: ...here.
13335
13336 2018-01-30 Pedro Alves <palves@redhat.com>
13337
13338 PR gdb/13211
13339 * config.in, configure: Regenerate.
13340 * configure.ac: Check for getpgid.
13341 * go32-nat.c (go32_pass_ctrlc): New.
13342 (go32_target): Install it.
13343 * inf-child.c (inf_child_target): Install
13344 child_terminal_save_inferior, child_pass_ctrlc and
13345 child_interrupt.
13346 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13347 (inf_ptrace_target): No longer install it.
13348 * infcmd.c (interrupt_target_1): Adjust.
13349 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13350 (child_interrupt): Declare.
13351 (inferior::terminal_state): New.
13352 * inflow.c (struct terminal_info): Update comments.
13353 (inferior_process_group): Delete.
13354 (terminal_is_ours): Delete.
13355 (gdb_tty_state): New.
13356 (child_terminal_init): Adjust.
13357 (is_gdb_terminal, sharing_input_terminal_1)
13358 (sharing_input_terminal): New functions.
13359 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13360 Set the process's actual process group in the foreground if
13361 possible. Handle is_ours_for_output/is_ours distinction. Don't
13362 mark terminal as the inferior's if not sharing GDB's terminal.
13363 Don't check attach_flag.
13364 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13365 pass down a target_terminal_state.
13366 (child_terminal_save_inferior): New, factored out from ...
13367 (child_terminal_ours_1): ... this. Handle
13368 target_terminal_state::is_ours_for_output.
13369 (child_interrupt, child_pass_ctrlc): New.
13370 (inflow_inferior_exit): Clear the inferior's terminal_state.
13371 (copy_terminal_info): Copy the inferior's terminal state.
13372 (_initialize_inflow): Remove reference to terminal_is_ours.
13373 * inflow.h (inferior_process_group): Delete.
13374 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13375 * procfs.c (procfs_target): Don't install procfs_interrupt.
13376 (procfs_interrupt): Delete.
13377 * remote.c (remote_serial_quit_handler): Adjust.
13378 (remote_interrupt): Remove ptid parameter. Adjust.
13379 * target-delegates.c: Regenerate.
13380 * target.c: Include "terminal.h".
13381 (target_terminal::terminal_state): Rename to ...
13382 (target_terminal::m_terminal_state): ... this.
13383 (target_terminal::init): Adjust.
13384 (target_terminal::inferior): Adjust to per-inferior
13385 terminal_state.
13386 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13387 (target_terminal::ours, target_terminal::ours_for_output): Use
13388 target_terminal_is_ours_kind.
13389 (target_interrupt): Remove ptid parameter. Adjust.
13390 (default_target_pass_ctrlc): Adjust.
13391 * target.h (target_ops::to_terminal_save_inferior): New field.
13392 (target_ops::to_interrupt): Remove ptid_t parameter.
13393 (target_interrupt): Remove ptid_t parameter. Update comment.
13394 (target_pass_ctrlc): Update comment.
13395 * target/target.h (target_terminal_state): New scoped enum,
13396 factored out of ...
13397 (target_terminal::terminal_state): ... here.
13398 (target_terminal::inferior): Update comments.
13399 (target_terminal::restore_inferior): New.
13400 (target_terminal::is_inferior, target_terminal::is_ours)
13401 (target_terminal::is_ours_for_output): Adjust.
13402 (target_terminal::scoped_restore_terminal_state): Adjust to
13403 rename, and call restore_inferior() instead of inferior().
13404 (target_terminal::scoped_restore_terminal_state::m_state): Change
13405 type.
13406 (target_terminal::terminal_state): Rename to ...
13407 (target_terminal::m_terminal_state): ... this and change type.
13408
13409 2018-01-30 Pedro Alves <palves@redhat.com>
13410
13411 * linux-nat.c (wait_for_signal): New function.
13412 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13413 directly.
13414 (async_terminal_is_ours)
13415 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13416 (linux_nat_add_target): Don't override
13417 to_terminal_inferior/to_terminal_ours.
13418
13419 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13420
13421 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13422
13423 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13424
13425 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13426 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13427 dwarf2_per_objfile_free here.
13428 (dwarf2_per_objfile_free): Remove.
13429 (_initialize_dwarf2_read): Don't register
13430 dwarf2_per_objfile_free as a registry cleanup.
13431
13432 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13433
13434 Avoid compilation errors in MinGW native builds
13435
13436 The error is triggered by including python-internal.h, and the
13437 error message is:
13438
13439 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13440 from build-gnulib/import/math.h:27,
13441 from d:/usr/Python26/include/pyport.h:235,
13442 from d:/usr/Python26/include/Python.h:58,
13443 from python/python-internal.h:94,
13444 from python/py-arch.c:24:
13445 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13446 using ::hypot;
13447 ^~~~~
13448
13449 This happens because Python headers define 'hypot' to expand t
13450 '_hypot' in the Windows builds.
13451 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13452 'hypoth'. This avoids a compilation error.
13453
13454 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13455
13456 * MAINTAINERS (Write After Approval): Fix ordering.
13457
13458 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13459
13460 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13461
13462 2018-01-26 Alan Modra <amodra@gmail.com>
13463
13464 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13465 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13466 Remove nop. Make const. Comment.
13467 (powerpc32_plt_stub_so_2): New.
13468 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13469 Correct count. Update uses.
13470 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13471 Move common code reading PLT entry word. Correct
13472 powerpc32_plt_stub PLT address calculation.
13473 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13474 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13475 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13476 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13477 (ppc64_standard_linkage8): Likewise.
13478 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13479 Correct insns description.
13480 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13481
13482 2018-01-24 Pedro Alves <palves@redhat.com>
13483
13484 GCC PR libstdc++/83906
13485 * gdbtypes.c (operator==(const dynamic_prop &,
13486 const dynamic_prop &)): New.
13487 (operator==(const range_bounds &, const range_bounds &)): New.
13488 (check_types_equal): Use them instead of memcmp.
13489 * gdbtypes.h (operator==(const dynamic_prop &,
13490 const dynamic_prop &)): Declare.
13491 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13492 (operator==(const range_bounds &, const range_bounds &)): Declare.
13493 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13494
13495 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13496
13497 * s390-linux-tdep.c (s390_record_address_mask)
13498 (s390_record_calc_disp_common, s390_record_calc_disp)
13499 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13500 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13501 (s390_process_record): Move to s390-tdep.c.
13502 (s390_linux_init_abi_any): Adjust.
13503 * s390-tdep.c (s390_record_address_mask)
13504 (s390_record_calc_disp_common, s390_record_calc_disp)
13505 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13506 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13507 (s390_process_record): Moved from s390-linux-tdep.c
13508 (s390_gdbarch_init): Adjust.
13509
13510 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13511
13512 * s390-linux-nat.c (s390-tdep.h): New include.
13513 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13514 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13515 (ALLDEPFILES): Add s390-tdep.c.
13516 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13517 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13518 * s390-tdep.h: ...this. New file.
13519 * s390-linux-tdep.c (s390-tdep.h): New include.
13520 (_initialize_s390_tdep): Rename to...
13521 (_initialize_s390_linux_tdep): ...this and adjust.
13522 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13523 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13524 s390-tdep.h.
13525 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13526 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13527 (s390_is_partial_instruction, s390_software_single_step)
13528 (is_non_branch_ril, s390_displaced_step_copy_insn)
13529 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13530 (s390_prologue_data, s390_addr, s390_store, s390_load)
13531 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13532 (s390_register_call_saved, s390_guess_tracepoint_registers)
13533 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13534 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13535 (s390_pseudo_register_name, s390_pseudo_register_type)
13536 (s390_pseudo_register_read, s390_pseudo_register_write)
13537 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13538 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13539 (s390_addr_bits_remove, s390_address_class_type_flags)
13540 (s390_address_class_type_flags_to_name)
13541 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13542 (s390_function_arg_float, s390_function_arg_vector)
13543 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13544 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13545 (s390_frame_align, s390_register_return_value, s390_return_value)
13546 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13547 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13548 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13549 (s390_trad_frame_prev_register, s390_unwind_cache)
13550 (s390_prologue_frame_unwind_cache)
13551 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13552 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13553 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13554 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13555 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13556 (s390_frame_base_address, s390_local_base_address)
13557 (s390_frame_base, s390_gcc_target_options)
13558 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13559 (s390_validate_reg_range, s390_tdesc_valid)
13560 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13561 * s390-tdep.c: ...this. New file.
13562
13563 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13564
13565 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13566 (s390_process_record, s390_gdbarch_tdep_alloc)
13567 (s390_linux_init_abi_any): Use/set new hook.
13568
13569 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13570
13571 * s390-linux-tdep.c (osabi.h): New include.
13572 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13573 (s390_linux_init_abi_any): New functions.
13574 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13575
13576 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13577
13578 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13579 tdesc_has_registers check
13580
13581 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13582
13583 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13584 (s390_validate_reg_range): New macro.
13585 (s390_gdbarch_init): Adjust.
13586
13587 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13588
13589 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13590 (s390_gdbarch_tdep_alloc): Adjust.
13591 (s390_gdbarch_init): Adjust.
13592
13593 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13594
13595 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13596 <have_tdb>: Change type to bool.
13597 (s390_gdbarch_tdep_alloc): Adjust.
13598 (s390_gdbarch_init): Adjust.
13599
13600 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13601
13602 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13603 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13604 (s390_gdbarch_tdep_alloc): New function.
13605 (s390_gdbarch_init): Allocate tdep at start and use its fields
13606 instead of separate variables.
13607
13608 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13609
13610 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13611 when looking for cached gdbarch and add comment for remaining.
13612
13613 2018-01-22 Pedro Alves <palves@redhat.com>
13614 Sergio Durigan Junior <sergiodj@redhat.com>
13615
13616 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13617 case.
13618
13619 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13620
13621 * MAINTAINERS: Update my company e-mail address.
13622
13623 2018-01-22 Yao Qi <yao.qi@linaro.org>
13624
13625 * regcache.c (cooked_write_test): New function.
13626 (_initialize_regcache): Register the test.
13627
13628 2018-01-22 Yao Qi <yao.qi@linaro.org>
13629
13630 * ia64-tdep.c (ia64_pseudo_register_read): Call
13631 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13632 * m32c-tdep.c (m32c_cat_read): Likewise.
13633 (m32c_r3r2r1r0_read): Likewise.
13634 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13635 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13636
13637 2018-01-22 Yao Qi <yao.qi@linaro.org>
13638
13639 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13640 method raw_read instead of regcache_raw_read.
13641 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13642 * arm-tdep.c (arm_neon_quad_read): Likewise.
13643 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13644 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13645 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13646 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13647 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13648 (i386_pseudo_register_read_into_value): Likewise.
13649 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13650 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13651 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13652 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13653 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13654 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13655 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13656 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13657 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13658
13659 2018-01-22 Yao Qi <yao.qi@linaro.org>
13660
13661 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13662 * configure.tgt: Remove target mt.
13663 * mt-tdep.c: Remove.
13664 * regcache.c (cooked_read_test): Remove the check for mt.
13665
13666 2018-01-22 Yao Qi <yao.qi@linaro.org>
13667
13668 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13669 instead of gdbarch_pseudo_register_read_value.
13670
13671 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13672
13673 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13674 language is Ada.
13675
13676 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13677
13678 * linespec.c (create_sals_line_offset): Remove code that preserved
13679 the symtab_and_line's line number.
13680
13681 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 * varobj.c (varobj_create): Don't set valid_block when creating a
13684 floating varobj.
13685
13686 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13687
13688 * varobj.c (varobj_create): Remove out of date comment.
13689
13690 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13691
13692 PR mi/20395
13693 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13694 updating innermost block.
13695 * parse.c (innermost_block_tracker::update): Take extra type
13696 parameter, and check types match before updating innermost block.
13697 (write_dollar_variable): Update innermost block for registers.
13698 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13699 (innermost_block_tracker::innermost_block_tracker): Initialise
13700 m_types member.
13701 (innermost_block_tracker::reset): Take type parameter.
13702 (innermost_block_tracker::update): Take type parameter, and pass
13703 type through as needed.
13704 (innermost_block_tracker::m_types): New member.
13705 * varobj.c (varobj_create): Pass type when reseting innermost
13706 block.
13707
13708 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13709
13710 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13711 * ada-lang.c (resolve_subexp): Likewise.
13712 * breakpoint.c (set_breakpoint_condition) Likewise.
13713 (watch_command_1) Likewise.
13714 * c-exp.y (variable): Likewise.
13715 * d-exp.y (PrimaryExpression): Likewise.
13716 * f-exp.y (variable): Likewise.
13717 * go-exp.y (variable): Likewise.
13718 * m2-exp.y (variable): Likewise.
13719 * objfiles.c (objfile::~objfile): Likewise.
13720 * p-exp.y (variable): Likewise.
13721 * parse.c (innermost_block): Change type.
13722 * parser-defs.h (class innermost_block_tracker): New.
13723 (innermost_block): Change to innermost_block_tracker.
13724 * printcmd.c (display_command): Switch to innermost_block API.
13725 (do_one_display): Likewise.
13726 * rust-exp.y (do_one_display): Likewise.
13727 * symfile.c (clear_symtab_users): Likewise.
13728 * varobj.c (varobj_create): Switch to innermost_block API, replace
13729 use of innermost_block with block stored on varobj object.
13730
13731 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13732
13733 * expression.h (innermost_block): Remove declaration.
13734 * varobj.c: Add 'parser-defs.h' include.
13735
13736 2018-01-19 Tom Tromey <tom@tromey.com>
13737
13738 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13739 symbols in the static and global blocks.
13740
13741 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13742
13743 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13744 gdb_ptrace.h, and move including gdb_wait.h ...
13745 * nat/linux-ptrace.h: ... to here.
13746
13747 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13748
13749 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13750 inf_ptrace_detach_success.
13751 (inf_ptrace_detach_success): Add inferior parameter, use it
13752 instead of inferior_ptid, pass it to detach_inferior.
13753 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13754 parameter.
13755 * inferior.c (detach_inferior): Add overload that takes an
13756 inferior object.
13757 * inferior.h (detach_inferior): Likewise.
13758 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13759 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13760 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13761
13762 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13763
13764 * target.h (struct target_ops) <to_detach>: Add inferior
13765 parameter.
13766 (target_detach): Likewise.
13767 * target.c (dispose_inferior): Pass inferior down.
13768 (target_detach): Pass inferior down. Assert that it is equal to
13769 the current inferior.
13770 * aix-thread.c (aix_thread_detach): Pass inferior down.
13771 * corefile.c (core_file_command): Pass current_inferior() down.
13772 * corelow.c (core_detach): Add inferior parameter.
13773 * darwin-nat.c (darwin_detach): Likewise.
13774 * gnu-nat.c (gnu_detach): Likewise.
13775 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13776 * infcmd.c (detach_command): Pass current_inferior() down to
13777 target_detach.
13778 * infrun.c (follow_fork_inferior): Pass parent_inf to
13779 target_detach.
13780 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13781 target_detach.
13782 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13783 * linux-thread-db.c (thread_db_detach): Likewise.
13784 * nto-procfs.c (procfs_detach): Likewise.
13785 * procfs.c (procfs_detach): Likewise.
13786 * record.c (record_detach): Likewise.
13787 * record.h (struct inferior): Forward-declare.
13788 (record_detach): Add inferior parameter.
13789 * remote-sim.c (gdbsim_detach): Likewise.
13790 * remote.c (remote_detach_1): Likewise.
13791 (remote_detach): Likewise.
13792 (extended_remote_detach): Likewise.
13793 * sol-thread.c (sol_thread_detach): Likewise.
13794 * target-debug.h (target_debug_print_inferior_p): New macro.
13795 * target-delegates.c: Re-generate.
13796 * top.c (kill_or_detach): Pass inferior down to target_detach.
13797 * windows-nat.c (windows_detach): Add inferior parameter.
13798
13799 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13800
13801 * target.h (struct target_ops) <to_detach>: Remove args
13802 parameter.
13803 (target_detach): Likewise.
13804 * target.c (dispose_inferior): Adjust.
13805 (target_detach): Remove args parameter, adjust.
13806 * aix-thread.c (aix_thread_detach): Adjust.
13807 * corefile.c (core_file_command): Adjust.
13808 * corelow.c (core_detach): Adjust.
13809 * darwin-nat.c (darwin_detach): Adjust.
13810 * gnu-nat.c (gnu_detach): Adjust.
13811 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13812 * infcmd.c (detach_command): Adjust
13813 * infrun.c (follow_fork_inferior): Adjust.
13814 (handle_vfork_child_exec_or_exit): Adjust.
13815 * linux-fork.c (linux_fork_detach): Remove args parameter.
13816 * linux-fork.h (linux_fork_detach): Likewise.
13817 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13818 * linux-thread-db.c (thread_db_detach): Likewise.
13819 * nto-procfs.c (procfs_detach): Likewise.
13820 * procfs.c (procfs_detach): Likewise.
13821 (do_detach): Remove signo parameter.
13822 * record.c (record_detach): Remove args parameter.
13823 * record.h (record_detach): Likewise.
13824 * remote-sim.c (gdbsim_detach): Likewise.
13825 * remote.c (remote_detach_1): Likewise.
13826 (remote_detach): Likewise.
13827 (extended_remote_detach): Likewise.
13828 * sol-thread.c (sol_thread_detach): Likewise.
13829 * target-delegates.c: Re-generate.
13830 * top.c (struct qt_args) <args>: Remove field.
13831 (kill_or_detach): Don't pass args.
13832 (quit_force): Don't set args.
13833 * windows-nat.c (windows_detach): Remove args parameter.
13834
13835 2018-01-19 Yao Qi <yao.qi@linaro.org>
13836
13837 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13838 (arm_linux_init_abi): Install it.
13839
13840 2018-01-19 Yao Qi <yao.qi@linaro.org>
13841
13842 * osabi.c (gdb_osabi_names): Extend the regexp for
13843 arm-linux-gnueabihf.
13844
13845 2018-01-18 Yao Qi <yao.qi@linaro.org>
13846
13847 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13848 m_abbrevs.
13849 (abbrev_table::add_abbrev): Update.
13850 (abbrev_table::lookup_abbrev): Update.
13851
13852 2018-01-18 Yao Qi <yao.qi@linaro.org>
13853
13854 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13855
13856 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13857
13858 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13859 to "std::string".
13860
13861 2018-01-17 Tom Tromey <tom@tromey.com>
13862
13863 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13864
13865 2018-01-17 Tom Tromey <tom@tromey.com>
13866
13867 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13868 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13869 (create_array_type_with_stride): Update.
13870 * dwarf2read.c (set_die_type): Update.
13871
13872 2018-01-17 Tom Tromey <tom@tromey.com>
13873
13874 * dwarf2read.c (delayed_method_info): Remove typedef.
13875 (dwarf2_cu::method_info): Now a std::vector.
13876 (add_to_method_list): Update.
13877 (free_delayed_list): Remove.
13878 (compute_delayed_physnames): Update.
13879 (process_full_comp_unit, process_full_type_unit): Clear the method
13880 list. Remove cleanups.
13881 (psymtab_include_file_name): Add name_holder parameter. Use
13882 unique_xmalloc_ptr.
13883 (dwarf_decode_lines): Update.
13884
13885 2018-01-17 Tom Tromey <tom@tromey.com>
13886 Simon Marchi <simon.marchi@ericsson.com>
13887
13888 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13889 (dwarf2_per_objfile::free_cached_comp_units)
13890 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13891 (init_cutu_and_read_dies_no_follow): Update.
13892 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13893 (dwarf2_cu::~dwarf2_cu): New.
13894 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13895 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13896
13897 2018-01-17 Tom Tromey <tom@tromey.com>
13898 Simon Marchi <simon.marchi@ericsson.com>
13899
13900 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13901 (struct die_reader_specs) <abbrev_table>: New member.
13902 (struct abbrev_table): Add constructor.
13903 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13904 <abbrev_obstack>: Now an auto_obstack.
13905 (abbrev_table_up): New typedef.
13906 (init_cu_die_reader): Add abbrev_table parameter.
13907 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13908 Add result_dwo_abbrev_table.
13909 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13910 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13911 Update.
13912 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13913 parameter.
13914 (skip_children): Update.
13915 (abbrev_table::alloc_abbrev): Rename from
13916 abbrev_table_alloc_abbrev.
13917 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13918 (abbrev_table::lookup_abbrev): Rename from
13919 abbrev_table_lookup_abbrev.
13920 (abbrev_table_read_table): Return abbrev_table_up.
13921 (abbrev_table_free, abbrev_table_free_cleanup)
13922 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13923 (load_partial_dies): Update.
13924
13925 2018-01-17 Tom Tromey <tom@tromey.com>
13926
13927 * dwarf2read.c (dwarf2_compute_name): Update comment.
13928 (read_func_scope, read_variable): Update.
13929 (new_symbol): Remove.
13930 (new_symbol_full): Rename to new_symbol.
13931
13932 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13933
13934 PR gdb/16577
13935 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13936 a warning instead of throwing an error, set section size to 0 and return
13937 NULL.
13938 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13939
13940 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13941
13942 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13943 std::string.
13944 (linux_ptrace_attach_fail_reason_string): Likewise.
13945 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13946 Likewise.
13947 (linux_ptrace_attach_fail_reason_string): Likewise.
13948 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13949
13950 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13951
13952 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13953
13954 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13955
13956 PR gdb/21559
13957 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13958 checking for fs_base/gs_base fields in struct user_regs_struct.
13959 * configure: Regenerate.
13960
13961 2018-01-17 Yao Qi <yao.qi@linaro.org>
13962
13963 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13964 function.
13965 (aarch64_linux_init_abi): Install it to gdbarch hook
13966 gcc_target_options.
13967
13968 2018-01-15 Pedro Alves <palves@redhat.com>
13969
13970 * common/signals-state-save-restore.c
13971 (save_original_signals_state): Fix typos.
13972
13973 2017-01-12 Tom Tromey <tom@tromey.com>
13974 Sergio Durigan Junior <sergiodj@redhat.com>
13975
13976 * Makefile.in (install-only): Install gdb-add-index.
13977
13978 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13979
13980 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13981
13982 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13983
13984 * infrun.c (keep_going_pass_signal): Clear step-over info when
13985 insert_breakpoints fails.
13986
13987 2018-01-11 Pedro Alves <palves@redhat.com>
13988
13989 PR gdb/22583
13990 * infrun.c (resume): Rename to ...
13991 (resume_1): ... this.
13992 (resume): Reimplement as wrapper around resume_1.
13993
13994 2018-01-11 Pedro Alves <palves@redhat.com>
13995
13996 PR remote/22597
13997 * remote.c (remote_parse_stop_reply): Default to the last-set
13998 general thread instead of to 'magic_null_ptid'.
13999
14000 2018-01-10 Pedro Alves <palves@redhat.com>
14001
14002 * language.h (language_get_symbol_name_matcher): Rename ...
14003 (get_symbol_name_matcher): ... this.
14004 * language.c (language_get_symbol_name_matcher): Ditto.
14005 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14006 callers adjusted.
14007
14008 2018-01-10 Pedro Alves <palves@redhat.com>
14009
14010 PR gdb/22670
14011 * dwarf2read.c
14012 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14013 Adjust to use language_get_symbol_name_matcher instead of
14014 language_defn::la_get_symbol_name_matcher.
14015 * language.c (language_get_symbol_name_matcher): If in Ada mode
14016 and the lookup name is a verbatim match, return Ada's matcher.
14017 * language.h (language_get_symbol_name_matcher): Adjust comment.
14018 (ada_lookup_name_info::verbatim_p):: New method.
14019
14020 2018-01-10 Pedro Alves <palves@redhat.com>
14021
14022 PR gdb/22670
14023 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14024 minsym's language is language_auto or language_cplus, pass down
14025 language_ada instead.
14026 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14027
14028 2018-01-10 Pedro Alves <palves@redhat.com>
14029
14030 PR gdb/22670
14031 * minsyms.c (linkage_name_str): New function.
14032 (iterate_over_minimal_symbols): Use it.
14033
14034 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14035
14036 * NEWS: Document that 'info proc' now works on FreeBSD.
14037
14038 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14039
14040 * configure.ac: Check for kinfo_getfile in libutil.
14041 * configure: Regenerate.
14042 * config.in: Regenerate.
14043 * fbsd-nat.c: Include "fbsd-tdep.h".
14044 (fbsd_fetch_cmdline): New.
14045 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14046 rather than calling error.
14047 (fbsd_info_proc): New.
14048 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14049 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14050 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14051
14052 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14053
14054 * fbsd-nat.c (struct free_deleter): Remove.
14055 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14056
14057 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14058
14059 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14060 NULL for an empty pathname.
14061
14062 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14063
14064 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14065 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14066 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14067 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14068 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14069 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14070 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14071 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14072 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14073 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14074 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14075 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14076 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14077 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14078 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14079
14080 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14081
14082 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14083 (gnu_xfer_auxv): New function.
14084 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14085 TARGET_OBJECT_AUXV.
14086
14087 2018-01-08 Yao Qi <yao.qi@linaro.org>
14088 Simon Marchi <simon.marchi@ericsson.com>
14089
14090 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14091 common/selftest.c.
14092 (COMMON_OBS): Remove selftest.o.
14093 * configure.ac: Append selftest-arch.c and common/selftest.c to
14094 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14095 * configure: Re-generated.
14096 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14097 GDB_SELF_TEST.
14098 (maintenance_info_selftests): Likewise.
14099
14100 2018-01-08 Xavier Roirand <roirand@adacore.com>
14101
14102 * ada-valprint.c (val_print_packed_array_elements): Use
14103 proper number of elements when printing an array indexed
14104 by an enumeration type.
14105
14106 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14107
14108 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14109 (dw2_get_file_names_reader): Adjust.
14110 (lookup_dwo_signatured_type): Adjust.
14111 (lookup_dwp_signatured_type): Adjust.
14112 (lookup_signatured_type): Adjust.
14113 (create_type_unit_group): Adjust.
14114 (get_type_unit_group): Adjust.
14115 (process_psymtab_comp_unit_reader): Adjust.
14116 (build_type_psymtabs_reader): Adjust.
14117 (scan_partial_symbols): Adjust.
14118 (add_partial_symbol): Adjust.
14119 (add_partial_subprogram): Adjust.
14120 (peek_die_abbrev): Adjust.
14121 (fixup_go_packaging): Adjust.
14122 (process_imported_unit_die): Adjust.
14123 (dwarf2_compute_name): Adjust.
14124 (dwarf2_physname): Adjust.
14125 (read_import_statement): Adjust.
14126 (handle_DW_AT_stmt_list): Adjust.
14127 (read_file_scope): Adjust.
14128 (read_func_scope): Adjust.
14129 (read_lexical_block_scope): Adjust.
14130 (read_call_site_scope): Adjust.
14131 (read_variable): Adjust.
14132 (dwarf2_rnglists_process): Adjust.
14133 (dwarf2_ranges_process): Adjust.
14134 (dwarf2_ranges_read): Adjust.
14135 (dwarf2_get_pc_bounds): Adjust.
14136 (dwarf2_record_block_ranges): Adjust.
14137 (dwarf2_add_field): Adjust.
14138 (dwarf2_add_member_fn): Adjust.
14139 (read_structure_type): Adjust.
14140 (process_structure_scope): Adjust.
14141 (read_enumeration_type): Adjust.
14142 (read_array_type): Adjust.
14143 (mark_common_block_symbol_computed): Adjust.
14144 (read_common_block): Adjust.
14145 (read_namespace_type): Adjust.
14146 (read_namespace): Adjust.
14147 (read_module_type): Adjust.
14148 (read_tag_pointer_type): Adjust.
14149 (read_tag_ptr_to_member_type): Adjust.
14150 (read_tag_string_type): Adjust.
14151 (read_subroutine_type): Adjust.
14152 (read_typedef): Adjust.
14153 (read_base_type): Adjust.
14154 (attr_to_dynamic_prop): Adjust.
14155 (read_subrange_type): Adjust.
14156 (read_unspecified_type): Adjust.
14157 (dwarf2_read_abbrevs): Adjust.
14158 (load_partial_dies): Adjust.
14159 (read_partial_die): Adjust.
14160 (find_partial_die): Adjust.
14161 (guess_partial_die_structure_name): Adjust.
14162 (fixup_partial_die): Adjust.
14163 (read_attribute_value): Adjust.
14164 (read_addr_index): Adjust.
14165 (read_addr_index_from_leb128): Adjust.
14166 (read_str_index): Adjust.
14167 (dwarf2_string_attr): Adjust.
14168 (get_debug_line_section): Adjust.
14169 (dwarf_decode_line_header): Adjust.
14170 (lnp_state_machine::check_line_address): Adjust.
14171 (dwarf_decode_lines_1): Adjust.
14172 (dwarf_decode_lines): Adjust.
14173 (dwarf2_start_symtab): Adjust.
14174 (var_decode_location): Adjust.
14175 (new_symbol_full): Adjust.
14176 (dwarf2_const_value_data): Adjust.
14177 (dwarf2_const_value_attr): Adjust.
14178 (dwarf2_const_value): Adjust.
14179 (die_type): Adjust.
14180 (die_containing_type): Adjust.
14181 (build_error_marker_type): Adjust.
14182 (lookup_die_type): Adjust.
14183 (guess_full_die_structure_name): Adjust.
14184 (anonymous_struct_prefix): Adjust.
14185 (determine_prefix): Adjust.
14186 (dwarf2_name): Adjust.
14187 (follow_die_ref_or_sig): Adjust.
14188 (follow_die_offset): Adjust.
14189 (follow_die_ref): Adjust.
14190 (follow_die_sig_1): Adjust.
14191 (follow_die_sig): Adjust.
14192 (get_signatured_type): Adjust.
14193 (get_DW_AT_signature_type): Adjust.
14194 (decode_locdesc): Adjust.
14195 (dwarf_decode_macros): Adjust.
14196 (cu_debug_loc_section): Adjust.
14197 (fill_in_loclist_baton): Adjust.
14198 (dwarf2_symbol_mark_computed): Adjust.
14199 (init_one_comp_unit): Don't assign
14200 dwarf2_cu::dwarf2_per_objfile.
14201 (set_die_type): Adjust.
14202
14203 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14204
14205 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14206 <dwarf2_per_objfile>: New field.
14207 (dwarf2_per_objfile): Remove global.
14208 (get_dwarf2_per_objfile): New function.
14209 (set_dwarf2_per_objfile): New function.
14210 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14211 dwarf2_per_objfile.
14212 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14213 (read_abbrev_offset): Likewise.
14214 (read_indirect_string): Likewise.
14215 (read_indirect_line_string): Likewise.
14216 (read_indirect_string_at_offset): Likewise.
14217 (read_indirect_string_from_dwz): Likewise.
14218 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14219 dwarf2_per_objfile.
14220 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14221 (create_all_comp_units): Change objfile parameter to
14222 dwarf2_per_objfile.
14223 (create_all_type_units): Likewise.
14224 (process_queue): Add dwarf2_per_objfile parameter.
14225 (read_and_check_comp_unit_head): Likewise.
14226 (lookup_dwo_unit_in_dwp): Likewise.
14227 (get_dwp_file): Likewise.
14228 (process_cu_includes): Likewise.
14229 (struct free_dwo_file_cleanup_data): New struct.
14230 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14231 set_dwarf2_per_objfile.
14232 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14233 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14234 context, adjust calls.
14235 (dw2_instantiate_symtab): Likewise.
14236 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14237 (dw2_get_cu): Likewise.
14238 (create_cu_from_index_list): Change objfile parameter to
14239 dwarf2_per_objfile.
14240 (create_cus_from_index_list): Get dwarf2_per_objfile from
14241 context, adjust calls.
14242 (create_cus_from_index): Likewise.
14243 (create_signatured_type_table_from_index): Change objfile
14244 parameter to dwarf2_per_objfile.
14245 (create_signatured_type_table_from_debug_names): Change objfile
14246 parameter to dwarf2_per_objfile.
14247 (create_addrmap_from_index): Likewise.
14248 (create_addrmap_from_aranges): Likewise.
14249 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14250 (dw2_setup): Remove.
14251 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14252 context.
14253 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14254 get_dwarf2_per_objfile.
14255 (dw2_forget_cached_source_info): Likewise.
14256 (dw2_map_symtabs_matching_filename): Likewise.
14257 (struct dw2_symtab_iterator) <index>: Remove.
14258 <dwarf2_per_objfile>: New field.
14259 (dw2_symtab_iter_init): Replace index parameter with
14260 dwarf2_per_objfile.
14261 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14262 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14263 (dw2_print_stats): Likewise.
14264 (dw2_dump): Likewise.
14265 (dw2_expand_symtabs_for_function): Likewise.
14266 (dw2_expand_all_symtabs): Likewise.
14267 (dw2_expand_symtabs_with_fullname): Likewise.
14268 (dw2_expand_marked_cus): Replace index and objfile parameters
14269 with dwarf2_per_objfile.
14270 (dw_expand_symtabs_matching_file_matcher): Add
14271 dwarf2_per_objfile parameter and adjust calls.
14272 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14273 adjust calls.
14274 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14275 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14276 adjust calls.
14277 (create_cus_from_debug_names_list): Replace objfile parameter
14278 with dwarf2_per_objfile and adjust calls.
14279 (create_cus_from_debug_names): Likewise.
14280 (dwarf2_read_debug_names): Likewise.
14281 (mapped_debug_names::namei_to_name): Adjust call.
14282 (dw2_debug_names_iterator::next): Likewise.
14283 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14284 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14285 (dw2_debug_names_dump): Likewise.
14286 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14287 (dw2_debug_names_expand_symtabs_matching): Likewise.
14288 (dwarf2_initialize_objfile): Likewise.
14289 (dwarf2_build_psymtabs): Likewise.
14290 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14291 this_cu.
14292 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14293 (read_and_check_comp_unit_head): Likewise.
14294 (read_abbrev_offset): Likewise.
14295 (create_debug_type_hash_table): Likewise.
14296 (create_debug_types_hash_table): Likewise.
14297 (create_all_type_units): Replace objfile parameter with
14298 dwarf2_per_objfile.
14299 (add_type_unit): Add dwarf2_per_objfile parameter.
14300 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14301 with dwarf2_per_objfile.
14302 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14303 (lookup_dwp_signatured_type): Likewise.
14304 (lookup_signatured_type): Likewise.
14305 (read_cutu_die_from_dwo): Likewise.
14306 (init_tu_and_read_dwo_dies): Likewise.
14307 (init_cutu_and_read_dies): Likewise.
14308 (init_cutu_and_read_dies_no_follow): Likewise.
14309 (allocate_type_unit_groups_table): Add objfile parameter.
14310 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14311 (get_type_unit_group): Likewise.
14312 (process_psymtab_comp_unit): Update call.
14313 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14314 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14315 (print_tu_stats): Likewise.
14316 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14317 in void* parameter.
14318 (build_type_psymtabs): Change objfile parameter to
14319 dwarf2_per_objfile.
14320 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14321 passed in void* parameter.
14322 (process_skeletonless_type_units): Change objfile parameter to
14323 dwarf2_per_objfile.
14324 (set_partial_user): Likewise.
14325 (dwarf2_build_psymtabs_hard): Likewise.
14326 (read_comp_units_from_section): Likewise.
14327 (create_all_comp_units): Likewise.
14328 (scan_partial_symbols): Update calls.
14329 (add_partial_symbol): Likewise.
14330 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14331 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14332 (process_queue): Add dwarf2_per_objfile parameter.
14333 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14334 (compute_compunit_symtab_includes): Likewise.
14335 (process_cu_includes): Add dwarf2_per_objfile parameter.
14336 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14337 (process_full_type_unit): Likewise.
14338 (process_imported_unit_die): Update call.
14339 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14340 (read_file_scope): Likewise.
14341 (allocate_dwo_file_hash_table): Add objfile parameter.
14342 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14343 (create_cus_hash_table): Likewise.
14344 (create_dwp_hash_table): Likewise.
14345 (create_dwo_unit_in_dwp_v1): Likewise.
14346 (create_dwp_v2_section): Likewise.
14347 (create_dwo_unit_in_dwp_v2): Likewise.
14348 (lookup_dwo_unit_in_dwp): Likewise.
14349 (try_open_dwop_file): Likewise.
14350 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14351 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14352 cleanup to include a reference to dwarf2_per_objfile.
14353 (open_dwp_file): Add dwarf2_per_objfile parameter.
14354 (open_and_init_dwp_file): Likewise.
14355 (get_dwp_file): Likewise.
14356 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14357 (queue_and_load_all_dwo_tus): Update call.
14358 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14359 data.
14360 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14361 (dwarf2_ranges_process): Likewise.
14362 (dwarf2_get_pc_bounds): Likewise.
14363 (mark_common_block_symbol_computed): Likewise.
14364 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14365 (dwarf2_read_abbrevs): Update call.
14366 (read_partial_die): Use dwarf2_per_objfile from cu.
14367 (find_partial_die): Likewise.
14368 (fixup_partial_die): Likewise.
14369 (read_attribute_value): Likewise.
14370 (read_indirect_string_at_offset_from): Add objfile parameter.
14371 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14372 parameter.
14373 (read_indirect_string_from_dwz): Add objfile parameter.
14374 (read_indirect_string): Add objfile parameter.
14375 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14376 (read_addr_index): Use dwarf2_per_objfile from cu.
14377 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14378 call dw2_setup.
14379 (read_str_index): Use dwarf2_per_objfile from cu.
14380 (get_debug_line_section): Likewise.
14381 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14382 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14383 (new_symbol_full): Use dwarf2_per_objfile from cu.
14384 (build_error_marker_type): Likewise.
14385 (lookup_die_type): Likewise.
14386 (determine_prefix): Likewise.
14387 (follow_die_offset): Likewise.
14388 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14389 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14390 (dwarf2_fetch_die_type_sect_off): Likewise.
14391 (dwarf2_get_die_type): Likewise.
14392 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14393 (get_signatured_type): Likewise.
14394 (get_DW_AT_signature_type): Likewise.
14395 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14396 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14397 (cu_debug_loc_section): Likewise.
14398 (fill_in_loclist_baton): Likewise.
14399 (dwarf2_symbol_mark_computed): Likewise.
14400 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14401 dwarf2_per_objfile.
14402 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14403 parameter.
14404 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14405 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14406 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14407 (set_die_type): Use dwarf2_free_objfile from cu.
14408 (get_die_type_at_offset): Likewise.
14409 (dwarf2_per_objfile_free): Don't assign global variable.
14410 (debug_names) <constructor>: Add dwarf2_per_objfile
14411 parameter, update m_debugstrlookup construction.
14412 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14413 parameter.
14414 <m_dwarf2_per_objfile>: New field.
14415 <lookup>: Use m_dwarf2_per_objfile.
14416 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14417 (psyms_seen_size): Likewise.
14418 (write_gdbindex): Replace objfile parameter with
14419 dwarf2_per_objfile.
14420 (write_debug_names): Likewise.
14421 (write_psymtabs_to_index): Likewise.
14422 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14423 calls.
14424
14425 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14426
14427 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14428 <dwarf2_per_objfile>: New field.
14429 (struct dwarf2_per_cu_data) <objfile>: Remove.
14430 <dwarf2_per_objfile>: New field.
14431 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14432 of objfile.
14433 (create_signatured_type_table_from_index): Likewise.
14434 (create_debug_type_hash_table): Likewise.
14435 (fill_in_sig_entry_from_dwo_entry): Likewise.
14436 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14437 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14438 objfile.
14439 (create_partial_symtab): Access objfile through
14440 dwarf2_per_objfile.
14441 (process_psymtab_comp_unit_reader): Likewise.
14442 (read_comp_units_from_section): Likewise.
14443 (scan_partial_symbols): Likewise.
14444 (add_partial_symbol): Likewise.
14445 (add_partial_subprogram): Likewise.
14446 (peek_die_abbrev): Likewise.
14447 (fixup_go_packaging): Likewise.
14448 (process_full_comp_unit): Likewise.
14449 (process_full_type_unit): Likewise.
14450 (process_imported_unit_die): Likewise.
14451 (dwarf2_compute_name): Likewise.
14452 (dwarf2_physname): Likewise.
14453 (read_import_statement): Likewise.
14454 (create_cus_hash_table): Assign dwarf2_physname instead of
14455 objfile.
14456 (read_func_scope): Access objfile through dwarf2_per_objfile.
14457 (read_lexical_block_scope): Likewise.
14458 (read_call_site_scope): Likewise.
14459 (read_variable): Likewise.
14460 (dwarf2_rnglists_process): Likewise.
14461 (dwarf2_ranges_process): Likewise.
14462 (dwarf2_ranges_read): Likewise.
14463 (dwarf2_record_block_ranges): Likewise.
14464 (dwarf2_add_field): Likewise.
14465 (dwarf2_add_member_fn): Likewise.
14466 (read_structure_type): Likewise.
14467 (process_structure_scope): Likewise.
14468 (read_enumeration_type): Likewise.
14469 (read_array_type): Likewise.
14470 (read_common_block): Likewise.
14471 (read_namespace_type): Likewise.
14472 (read_namespace): Likewise.
14473 (read_module_type): Likewise.
14474 (read_tag_pointer_type): Likewise.
14475 (read_tag_ptr_to_member_type): Likewise.
14476 (read_tag_string_type): Likewise.
14477 (read_subroutine_type): Likewise.
14478 (read_typedef): Likewise.
14479 (read_base_type): Likewise.
14480 (attr_to_dynamic_prop): Likewise.
14481 (read_subrange_type): Likewise.
14482 (read_unspecified_type): Likewise.
14483 (load_partial_dies): Likewise.
14484 (read_partial_die): Likewise.
14485 (find_partial_die): Likewise.
14486 (guess_partial_die_structure_name): Likewise.
14487 (fixup_partial_die): Likewise.
14488 (read_attribute_value): Likewise.
14489 (read_addr_index_from_leb128): Likewise.
14490 (dwarf2_read_addr_index): Likewise.
14491 (dwarf2_string_attr): Likewise.
14492 (lnp_state_machine::check_line_address): Likewise.
14493 (dwarf_decode_lines_1): Likewise.
14494 (dwarf_decode_lines): Likewise.
14495 (dwarf2_start_symtab): Likewise.
14496 (var_decode_location): Likewise.
14497 (new_symbol_full): Likewise.
14498 (dwarf2_const_value_data): Likewise.
14499 (dwarf2_const_value_attr): Likewise.
14500 (dwarf2_const_value): Likewise.
14501 (die_type): Likewise.
14502 (die_containing_type): Likewise.
14503 (lookup_die_type): Likewise.
14504 (guess_full_die_structure_name): Likewise.
14505 (anonymous_struct_prefix): Likewise.
14506 (dwarf2_name): Likewise.
14507 (follow_die_ref_or_sig): Likewise.
14508 (follow_die_offset): Likewise.
14509 (follow_die_ref): Likewise.
14510 (dwarf2_fetch_die_loc_sect_off): Likewise.
14511 (dwarf2_fetch_constant_bytes): Likewise.
14512 (dwarf2_fetch_die_type_sect_off): Likewise.
14513 (dwarf2_get_die_type): Likewise.
14514 (follow_die_sig): Likewise.
14515 (decode_locdesc): Likewise.
14516 (dwarf2_per_cu_objfile): Likewise.
14517 (dwarf2_per_cu_text_offset): Likewise.
14518 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14519 objfile.
14520 (set_die_type): Access objfile through
14521 dwarf2_per_objfile.
14522
14523 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14524
14525 * valprint.c (converted_character_d): Remove typedef.
14526 (DEF_VEC_O (converted_character_d)): Remove.
14527 (count_next_character): Use std::vector.
14528 (print_converted_chars_to_obstack): Likewise.
14529 (generic_printstr): Likewise.
14530
14531 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14532
14533 * xml-support.h (struct gdb_xml_value): Add constructor.
14534 <value>: Change type to unique_xmalloc_ptr.
14535 (gdb_xml_value_s): Remove typedef.
14536 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14537 (gdb_xml_element_start_handler): Change parameter type to
14538 std::vector.
14539 (xml_find_attribute): Likewise.
14540 * xml-support.c (xml_find_attribute): Change parameter type to
14541 std::vector and adjust.
14542 (gdb_xml_values_cleanup): Remove.
14543 (gdb_xml_parser::start_element): Adjust to std::vector.
14544 (xinclude_start_include): Change paraeter type to std::vector
14545 and adjust.
14546 * btrace.c (check_xml_btrace_version): Likewise.
14547 (parse_xml_btrace_block): Likewise.
14548 (parse_xml_btrace_pt_config_cpu): Likewise.
14549 (parse_xml_btrace_pt): Likewise.
14550 (parse_xml_btrace_conf_bts): Likewise.
14551 (parse_xml_btrace_conf_pt): Likewise.
14552 * memory-map.c (memory_map_start_memory): Likewise.
14553 (memory_map_start_property): Likewise.
14554 * osdata.c (osdata_start_osdata): Likewise.
14555 (osdata_start_item): Likewise.
14556 (osdata_start_column): Likewise.
14557 * remote.c (start_thread): Likewise.
14558 * solib-aix.c (library_list_start_library): Likewise.
14559 (library_list_start_list): Likewise.
14560 * solib-svr4.c (library_list_start_library): Likewise.
14561 (svr4_library_list_start_list): Likewise.
14562 * solib-target.c (library_list_start_segment): Likewise.
14563 (library_list_start_section): Likewise.
14564 (library_list_start_library): Likewise.
14565 (library_list_start_list): Likewise.
14566 * tracepoint.c (traceframe_info_start_memory): Likewise.
14567 (traceframe_info_start_tvar): Likewise.
14568 * xml-syscall.c (syscall_start_syscall): Likewise.
14569 * xml-tdesc.c (tdesc_start_target): Likewise.
14570 (tdesc_start_feature): Likewise.
14571 (tdesc_start_reg): Likewise.
14572 (tdesc_start_union): Likewise.
14573 (tdesc_start_struct): Likewise.
14574 (tdesc_start_flags): Likewise.
14575 (tdesc_start_enum): Likewise.
14576 (tdesc_start_field): Likewise.
14577 (tdesc_start_enum_value): Likewise.
14578 (tdesc_start_vector): Likewise.
14579
14580 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14581
14582 * extension.h (struct xmethod_worker) <clone>: Remove.
14583 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14584 Remove.
14585 (python_xmethod_worker::clone): Remove.
14586 * valops.c (find_overload_match): Use std::move instead of
14587 clone.
14588
14589 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14590
14591 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14592 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14593 <free_xmethod_worker_data>: Remove.
14594 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14595 <get_xmethod_arg_types>: Remove.
14596 <get_xmethod_result_type>: Remove.
14597 <invoke_xmethod>: Remove.
14598 * extension.c (new_xmethod_worker): Remove.
14599 (clone_xmethod_worker): Remove.
14600 (get_matching_xmethod_workers): Return void, pass std::vector by
14601 pointer.
14602 (get_xmethod_arg_types): Rename to...
14603 (xmethod_worker::get_arg_types): ... this, and adjust.
14604 (get_xmethod_result_type): Rename to...
14605 (xmethod_worker::get_result_type): ... this, and adjust.
14606 (invoke_xmethod): Remove.
14607 (free_xmethod_worker): Remove.
14608 (free_xmethod_worker_vec): Remove.
14609 * extension.h (enum ext_lang_rc): Move here from
14610 extension-priv.h.
14611 (struct xmethod_worker): Add constructor and destructor.
14612 <data>: Remove.
14613 <value>: Remove.
14614 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14615 virtual pure methods.
14616 <get_arg_types, get_result_type>: New methods.
14617 (xmethod_worker_ptr): Remove typedef.
14618 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14619 (xmethod_worker_vec): Remove typedef.
14620 (xmethod_worker_up): New typedef.
14621 (invoke_xmethod): Remove.
14622 (clone_xmethod_worker): Remove.
14623 (free_xmethod_worker): Remove.
14624 (free_xmethod_worker_vec): Remove.
14625 (get_xmethod_arg_types): Remove.
14626 (get_xmethod_result_type): Remove.
14627 * valops.c (find_method_list): Use std::vector, don't use
14628 intermediate vector.
14629 (value_find_oload_method_list): Use std::vector.
14630 (find_overload_match): Use std::vector.
14631 (find_oload_champ): Use std::vector.
14632 * value.c (value_free): Use operator delete.
14633 (value_of_xmethod): Rename to...
14634 (value_from_xmethod): ... this. Don't assign
14635 xmethod_worker::value, take rvalue-reference.
14636 (result_type_of_xmethod): Adjust.
14637 (call_xmethod): Adjust.
14638 * value.h: Include extension.h.
14639 (struct xmethod_worker): Don't forward-declare.
14640 (value_of_xmethod): Rename to...
14641 (value_from_xmethod): ... this, take rvalue-reference.
14642 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14643 (struct python_xmethod_worker): ... this, add constructor and
14644 destructor.
14645 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14646 (gdbpy_free_xmethod_worker_data): Rename to...
14647 (python_xmethod_worker::~python_xmethod_worker): ... this and
14648 adjust.
14649 (gdbpy_clone_xmethod_worker_data): Rename to...
14650 (python_xmethod_worker::clone): ... this and adjust.
14651 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14652 temporary vector.
14653 (gdbpy_get_xmethod_arg_types): Rename to...
14654 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14655 (gdbpy_get_xmethod_result_type): Rename to...
14656 (python_xmethod_worker::do_get_result_type): ... this and
14657 adjust.
14658 (gdbpy_invoke_xmethod): Rename to...
14659 (python_xmethod_worker::invoke): ... this and adjust.
14660 (new_python_xmethod_worker): Rename to...
14661 (python_xmethod_worker::python_xmethod_worker): ... this and
14662 adjust.
14663 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14664 Remove.
14665 (gdbpy_free_xmethod_worker_data): Remove.
14666 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14667 (gdbpy_get_xmethod_arg_types): Remove.
14668 (gdbpy_get_xmethod_result_type): Remove.
14669 (gdbpy_invoke_xmethod): Remove.
14670 * python/python.c (python_extension_ops): Remove obsolete
14671 callbacks.
14672
14673 2018-01-05 Pedro Alves <palves@redhat.com>
14674
14675 PR gdb/18653
14676 * common/signals-state-save-restore.c
14677 (save_original_signals_state): New parameter 'quiet'. Warn if we
14678 find a custom handler preinstalled, instead of internal erroring.
14679 But only warn if !quiet.
14680 * common/signals-state-save-restore.h
14681 (save_original_signals_state): New parameter 'quiet'.
14682 * main.c (captured_main_1): Move save_original_signals_state call
14683 after option handling, and pass QUIET.
14684
14685 2018-01-05 Pedro Alves <palves@redhat.com>
14686
14687 * spu-tdep.c (spu_catch_start): Pass
14688 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14689
14690 2018-01-05 Pedro Alves <palves@redhat.com>
14691
14692 PR gdb/22670
14693 * ada-lang.c (literal_symbol_name_matcher): New function.
14694 (ada_get_symbol_name_matcher): Use it for
14695 symbol_name_match_type::SEARCH_NAME.
14696 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14697 it down instead of assuming symbol_name_match_type::FULL.
14698 * block.h (block_lookup_symbol): New parameter 'match_type'.
14699 * c-valprint.c (print_unpacked_pointer): Use
14700 lookup_symbol_search_name instead of lookup_symbol.
14701 * compile/compile-object-load.c (get_out_value_type): Pass down
14702 symbol_name_match_type::SEARCH_NAME.
14703 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14704 symbol_name_match_type::FULL.
14705 * cp-support.c (cp_get_symbol_name_matcher): Handle
14706 symbol_name_match_type::SEARCH_NAME.
14707 * infrun.c (insert_exception_resume_breakpoint): Use
14708 lookup_symbol_search_name.
14709 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14710 * psymtab.c (maintenance_check_psymtabs): Use
14711 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14712 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14713 SYMBOL_SEARCH_NAME.
14714 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14715 if symbol_name_match_type::SEARCH_NAME.
14716 (lookup_symbol_in_language): Pass down
14717 symbol_name_match_type::FULL.
14718 (lookup_symbol_search_name): New.
14719 (lookup_language_this): Pass down
14720 symbol_name_match_type::SEARCH_NAME.
14721 (lookup_symbol_aux, lookup_local_symbol): New parameter
14722 'match_type'. Pass it down.
14723 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14724 (lookup_symbol_search_name): New declaration.
14725 (lookup_symbol_in_block): New 'match_type' parameter.
14726
14727 2018-01-05 Pedro Alves <palves@redhat.com>
14728
14729 PR gdb/22670
14730 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14731 ada_lookup_symbol.
14732 (ada_lookup_symbol): Reimplement in terms of
14733 ada_lookup_symbol_list, bits factored out from
14734 ada_lookup_encoded_symbol.
14735
14736 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14737
14738 * ada-exp.y (write_object_renaming): When subscripting an array
14739 using a symbol as the index, pass the block in call to
14740 ada_lookup_encoded_symbol when looking that symbol up.
14741
14742 2018-01-05 Jerome Guitton <guitton@adacore.com>
14743
14744 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14745 TYPE_INDEX_TYPE.
14746
14747 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14748
14749 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14750 the case where VALUE_LVAL (val0) is not lval_memory.
14751
14752 2018-01-05 Xavier Roirand <roirand@adacore.com>
14753
14754 * ada-valprint.c (print_optional_low_bound): Handle
14755 character-indexed array printing like boolean-indexed array
14756 printing.
14757
14758 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14759
14760 * NEWS: Create a new section for the next release branch.
14761 Rename the section of the current branch, now that it has
14762 been cut.
14763
14764 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14765
14766 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14767 * version.in: Bump version to 8.1.50.DATE-git.
14768
14769 2018-01-03 Xavier Roirand <roirand@adacore.com>
14770
14771 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14772 Add field.
14773 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14774 Add field.
14775 (default_exception_support_info) <catch_handlers_sym>: Add field.
14776 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14777 (ada_exception_name_addr_1): Add "catch handlers" handling.
14778 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14779 Update all callers.
14780 (create_excep_cond_exprs) <ex>: Add parameter.
14781 (re_set_exception): Update create_excep_cond_exprs call.
14782 (print_it_exception, print_one_exception, print_mention_exception)
14783 (print_recreate_exception): Add "catch handler" handling.
14784 (allocate_location_catch_handlers, re_set_catch_handlers)
14785 (check_status_catch_handlers, print_it_catch_handlers)
14786 (print_one_catch_handlers, print_mention_catch_handlers)
14787 (print_recreate_catch_handlers): New function.
14788 (catch_handlers_breakpoint_ops): New variable.
14789 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14790 Add parameter. Add "catch handler" handling.
14791 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14792 Add "catch handler" handling.
14793 (ada_exception_catchpoint_cond_string): Add "catch handler"
14794 handling.
14795 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14796 call.
14797 (catch_ada_handlers_command): New function.
14798 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14799 operations structure.
14800 (_initialize_ada_language): Add "catch handlers" command entry.
14801 * NEWS: Document "catch handlers" feature.
14802
14803 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14804
14805 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14806 account when creating the array type of the slice.
14807 (ada_value_slice): Likewise.
14808
14809 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14810
14811 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14812 New enum value.
14813 (create_array_type_with_stride): Add byte_stride_prop parameter.
14814 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14815 New parameter. Update all callers in this file.
14816 (array_type_has_dynamic_stride): New function.
14817 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14818 of arrays with dynamic byte strides.
14819 * dwarf2read.c (read_array_type): Add support for dynamic
14820 DW_AT_byte_stride attributes.
14821
14822 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14823
14824 * dwarf2read.c (read_unspecified_type): Treat
14825 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14826
14827 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14828
14829 Update copyright year range in all GDB files.
14830
14831 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14832
14833 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14834 and gdb/testsuite/gdb.base/step-line.c.
14835
14836 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14837
14838 * copyright.py (main): Dump the contents of
14839 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14840 even if BY_HAND is empty.
14841
14842 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14843
14844 * top.c (print_gdb_version): Update Copyright year in version
14845 message.
14846
14847 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14848
14849 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14850
14851 For older changes see ChangeLog-2017.
14852 \f
14853 Local Variables:
14854 mode: change-log
14855 left-margin: 8
14856 fill-column: 74
14857 version-control: never
14858 coding: utf-8
14859 End:
This page took 0.334244 seconds and 5 git commands to generate.