Avoid GDB SIGTTOU on catch exec + set follow-exec-mode new (PR 23368)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
2
3 PR gdb/23368
4 * infrun.c (follow_exec): In the follow_exec_mode_new case,
5 transfer terminal state from old new new inferior.
6 * terminal.h (swap_terminal_info): New function.
7 * inflow.c (swap_terminal_info): New function.
8
9 2018-10-23 Tom Tromey <tom@tromey.com>
10
11 * record-btrace.c (get_thread_current_frame_id): Rename from
12 get_thread_current_frame. Return a frame_id.
13 (record_btrace_start_replaying): Update.
14
15 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
18 for CSRs.
19
20 2018-10-23 Joel Brobecker <brobecker@adacore.com>
21
22 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
23 have_nonsteppable_watchpoint attribute to 1.
24
25 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
28 register names.
29 (struct register_alias): Rename to...
30 (struct riscv_register_alias): ...this, and update comment.
31 (riscv_register_aliases): Update type, and alias names. Remove
32 CSR names from this list.
33 (riscv_register_name): Use riscv_gdb_reg_names for int and float
34 register names. Add an extra assertion.
35 (riscv_is_regnum_a_named_csr): New function.
36 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
37
38 2018-10-22 Jim Wilson <jimw@sifive.com>
39
40 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
41 FP reg smaller than FP reg size, and fill with -1 instead of 0.
42
43 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
44 (riscv_register_type): Use them.
45 (riscv_print_one_register_info): Handle union of floats same as float.
46 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
47 riscv_fpreg_q_type fields.
48
49 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
50
51 * gdbarch.sh (gdbarch_num_cooked_regs): New.
52 * gdbarch.h: Re-generate.
53 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
54 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
55 * eval.c (evaluate_subexp_standard): Likewise.
56 * findvar.c (value_of_register): Likewise.
57 (value_of_register_lazy): Likewise.
58 (address_from_register): Likewise.
59 * frame.c (get_frame_register_bytes): Likewise.
60 * gdbarch-selftests.c (register_to_value_test): Likewise.
61 * h8300-tdep.c (h8300_register_type): Likewise.
62 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
63 (i386_svr4_reg_to_regnum): Likewise.
64 * infcmd.c (default_print_registers_info): Likewise.
65 (registers_info): Likewise.
66 (print_vector_info): Likewise.
67 (default_print_float_info): Likewise.
68 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
69 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
70 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
71 (mi_cmd_data_list_changed_registers): Likewise.
72 (mi_cmd_data_list_register_values): Likewise.
73 (mi_cmd_data_write_register_values): Likewise.
74 (mi_cmd_trace_frame_collected): Likewise.
75 * mips-tdep.c (print_gp_register_row): Likewise.
76 (mips_print_registers_info): Likewise.
77 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
78 * regcache.c (init_regcache_descr): Likewise.
79 (register_size): Likewise.
80 (register_dump::dump): Likewise.
81 (cooked_read_test): Likewise.
82 (cooked_write_test): Likewise.
83 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
84 (rs6000_gdbarch_init): Likewise.
85 * stabsread.c (stab_reg_to_regnum): Likewise.
86 * stack.c (info_frame_command): Likewise.
87 * target-descriptions.c (tdesc_register_name): Likewise.
88 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
89 * tui/tui-regs.c (tui_show_register_group): Likewise.
90 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
91 (user_reg_map_regnum_to_name): Likewise.
92 (value_of_user_reg): Likewise.
93 (maintenance_print_user_registers): Likewise.
94 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
95 (xtensa_register_name): Likewise.
96 (xtensa_register_type): Likewise.
97 (xtensa_reg_to_regnum): Likewise.
98 (xtensa_pseudo_register_read): Likewise.
99 (xtensa_pseudo_register_write): Likewise.
100
101 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
102
103 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
104 correctly-sized buffer with raw_read.
105 (amd64_pseudo_register_write): Use correctly-sized buffer for
106 raw_read/raw_write.
107
108 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
109
110 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
111 in add_prefix_cmd of set print type.
112
113 2018-10-19 Tom Tromey <tom@tromey.com>
114
115 PR tui/18388:
116 * NEWS: Mention tabset deprecation.
117 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
118 (update_tab_width): New function.
119 (tui_set_tab_width, tui_show_tab_width): New functions.
120 (tui_set_tab_width_command): Use update_tab_width.
121 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
122 Add new "set tui tab-width" command.
123 * tui/tui-source.c (tui_set_source_content): Update.
124 * tui/tui-disasm.c (tui_set_disassem_content): Update.
125 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
126 Don't declare.
127 (tui_tab_width): Declare.
128 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
129 (tui_set_default_tab_len): Remove.
130
131 2018-10-19 Tom Tromey <tom@tromey.com>
132
133 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
134 (key_is_backspace, tui_getc): Don't declare.
135 * tui/tui-io.c (key_is_start_sequence): Now static.
136 (key_is_end_sequence, key_is_backspace): Remove.
137 (tui_getc): Now static.
138
139 2018-10-19 Tom Tromey <tom@tromey.com>
140
141 * symfile.c (reread_symbols): Clear "static_links".
142
143 2018-10-19 Alan Hayward <alan.hayward@arm.com>
144
145 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
146 define.
147 (aarch64_linux_sigframe_init): Extra boundary checks.
148
149 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
150
151 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
152 the possibly non-existent tdesc type 'vec128', but the type of raw
153 register v16 instead.
154
155 2018-10-19 Gary Benson <gbenson@redhat.com>
156
157 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
158
159 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
160
161 PR cli/23785
162 * cli/cli-dump.c (restore_binary_file): Check if "file" is
163 NULL.
164
165 2018-10-17 Paul Koning <paul_koning@dell.com>
166
167 * charset.c (convert_between_encodings): Fix unsigned overflow.
168
169 2018-10-17 John Baldwin <jhb@FreeBSD.org>
170
171 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
172 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
173 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
174 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
175 New functions.
176 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
177 and fbsd_info_proc_mappings_header.
178 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
179 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
180 New.
181
182 2018-10-17 Joel Brobecker <brobecker@adacore.com>
183
184 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
185 Solaris Maintainer.
186
187 2018-10-15 Tom Tromey <tom@tromey.com>
188
189 * tui/tui.c (strcat_to_buf): Remove casts.
190 * tui/tui-winsource.c (tui_show_source_line)
191 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
192 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
193 * tui/tui-windata.c (tui_first_data_item_displayed)
194 (tui_delete_data_content_windows, tui_erase_data_content)
195 (tui_display_all_data, tui_display_data_from)
196 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
197 * tui/tui-win.c (tui_set_win_height)
198 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
199 casts.
200 * tui/tui-win.c (tui_resize_all): Remove casts.
201 (tui_scroll_backward_command, tui_set_focus)
202 (tui_set_tab_width_command): Likewise.
203 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
204 * tui/tui-regs.c (tui_show_register_group): Remove cast.
205 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
206 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
207 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
208 Remove casts.
209
210 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
211
212 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
213 AArch64/ARM maintainer.
214
215 2018-10-11 Gary Benson <gbenson@redhat.com>
216
217 * interps.h (interp::m_name): Make private and mutable.
218 * interps.c (interp::~interp): Free m_name.
219
220 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
221 Simon Marchi <simark@simark.ca>
222
223 * README (`configure' options): Add documentation for new
224 "--enable-unit-tests" option.
225 * acinclude.m4: Include "selftest.m4".
226 * configure: Regenerate.
227 * configure.ac: Use "GDB_AC_SELFTEST".
228 * maint.c (maintenance_selftest): Update message informing
229 that selftests have been disabled.
230 (maintenance_info_selftests): Likewise.
231 * selftest.m4: New file.
232
233 2018-10-10 Gary Benson <gbenson@redhat.com>
234
235 * remote.c (remote_target::remote_send_printf): Add
236 missing va_end found by Coverity.
237
238 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
239
240 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
241
242 2018-10-09 Tom Tromey <tom@tromey.com>
243
244 * configure: Rebuild.
245 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
246 * NEWS: Update --enable-ubsan documentation.
247
248 2018-10-09 Gary Benson <gbenson@redhat.com>
249
250 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
251 found by Coverity.
252
253 2018-10-08 Tom Tromey <tom@tromey.com>
254
255 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
256 variable.
257 (riscv_fbsd_init_abi): Likewise.
258
259 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
260 * valops.c (value_struct_elt_for_reference): Rename local variable
261 to work around the shadowing a previous local warning.
262
263 2018-10-08 John Baldwin <jhb@FreeBSD.org>
264
265 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
266 * NEWS: Mention new FreeBSD/riscv native configuration.
267 * configure.host: Add riscv*-*-freebsd*.
268 * configure.nat: Likewise.
269 * riscv-fbsd-nat.c: New file.
270
271 2018-10-08 John Baldwin <jhb@FreeBSD.org>
272
273 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
274 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
275 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
276 * NEWS: Mention new FreeBSD/riscv target.
277 * configure.tgt: Add riscv*-*-freebsd*.
278 * riscv-fbsd-tdep.c: New file.
279 * riscv-fbsd-tdep.h: New file.
280
281 2018-10-08 John Baldwin <jhb@FreeBSD.org>
282
283 * regcache.h (struct regcache_map_entry): Note that this type can
284 be used with traditional frame caches.
285 * trad-frame.c (trad_frame_set_reg_regmap): New.
286 * trad-frame.h (trad_frame_set_reg_regmap): New.
287
288 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
289
290 PR c++/16841
291 * valops.c (get_virtual_base_offset): New function.
292 (value_struct_elt_for_reference): Use it to get virtual base offset
293 and add it in calculating class member address.
294
295 2018-10-08 John Darrington <john@darrington.wattle.id.au>
296
297 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
298 (check_producer): Check if the producer is codewarrior.
299 (producer_is_codewarrior): New function.
300 (lnp_state_machine::record_line): Ignore is_stmt flag for records
301 produced by codewarrior.
302 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
303
304 2018-10-06 Tom Tromey <tom@tromey.com>
305
306 PR python/19399:
307 * python/py-inferior.c: Add "architecture" entry.
308 (infpy_architecture): New function.
309
310 2018-10-06 Tom Tromey <tom@tromey.com>
311
312 PR python/21765:
313 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
314 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
315 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
316 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
317
318 2018-10-06 Tom Tromey <tom@tromey.com>
319
320 PR build/17077:
321 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
322 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
323 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
324 #include.
325
326 2018-10-06 Tom Tromey <tom@tromey.com>
327
328 * python/py-breakpoint.c (bppy_get_location): Handle a
329 bp_breakpoint without a location.
330
331 2018-10-06 Tom Tromey <tom@tromey.com>
332
333 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
334 (_RegEx): Reformat help text.
335 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
336 (AnyCallerIs, AnyCallerMatches): Reformat help text.
337 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
338 text.
339 * python/lib/gdb/command/xmethods.py (InfoXMethod)
340 (EnableXMethod, DisableXMethod): Remove help indentation.
341 Capitalize meta-syntactic variables.
342 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
343 (EnableUnwinder, DisableUnwinder): Remove help indentation.
344 Capitalize meta-syntactic variables.
345 * python/lib/gdb/command/explore.py (ExploreCommand)
346 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
347 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
348 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
349 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
350 Remove help indentation.
351 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
352 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
353 (DisableFrameFilter, SetFrameFilterPriority)
354 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
355
356 2018-10-06 Tom Tromey <tom@tromey.com>
357
358 PR tui/28819:
359 * tui/tui-io.c (gdb_wgetch): New function.
360 (tui_mld_getc, tui_getc): Use it.
361
362 2018-10-05 Tom Tromey <tom@tromey.com>
363
364 * sol-thread.c (sol_thread_target::wait): Rename inner
365 "save_ptid".
366
367 2018-10-04 Tom Tromey <tom@tromey.com>
368
369 * configure: Rebuild.
370 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
371
372 2018-10-04 Tom Tromey <tom@tromey.com>
373
374 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
375 declaration of "block".
376
377 2018-10-04 Tom Tromey <tom@tromey.com>
378
379 * common/filestuff.c (fdwalk): Remove inner declaration of
380 "result".
381
382 2018-10-04 Tom Tromey <tom@tromey.com>
383
384 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
385 "structs_addr" and hoist declaration.
386
387 2018-10-04 Tom Tromey <tom@tromey.com>
388
389 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
390 variable "size".
391
392 2018-10-04 Tom Tromey <tom@tromey.com>
393
394 * mdebugread.c (parse_partial_symbols): Use std::string.
395
396 2018-10-04 Tom Tromey <tom@tromey.com>
397
398 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
399 * p-valprint.c (pascal_val_print): Split inner "i" variable.
400 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
401 header.
402 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
403 more inner scope.
404 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
405 * varobj.c (varobj_update): Rename inner "newobj",
406 "type_changed".
407 * valprint.c (generic_emit_char): Rename inner "buf".
408 * valops.c (find_overload_match): Rename inner "temp".
409 (value_struct_elt_for_reference): Declare "v" in more inner
410 scope.
411 * v850-tdep.c (v850_push_dummy_call): Rename "len".
412 * unittests/array-view-selftests.c (run_tests): Rename inner
413 "vec".
414 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
415 header.
416 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
417 "tsv" in more inner scope.
418 (print_one_static_tracepoint_marker): Rename inner
419 "tuple_emitter".
420 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
421 (tic6x_push_dummy_call): Don't redeclare "addr".
422 * target-float.c: Declare "dto" lower.
423 * symtab.c (lookup_local_symbol): Rename inner "sym".
424 (find_pc_sect_line): Rename inner "pc".
425 * stack.c (print_frame): Don't redeclare "gdbarch".
426 (return_command): Rename inner "gdbarch".
427 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
428 "sp".
429 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
430 header.
431 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
432 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
433 scope.
434 * remote.c (remote_target::update_thread_list): Don't redeclare
435 "tp".
436 (remote_target::process_initial_stop_replies): Rename inner
437 "thread".
438 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
439 (remote_target::wait_as): Don't redeclare "stop_reply".
440 (remote_target::get_thread_local_address): Rename inner
441 "result".
442 (remote_target::get_tib_address): Likewise.
443
444 * regcache.c (cooked_read_test): Rename "regnum".
445 * record-btrace.c (cmd_record_btrace_start): Rename inner
446 "exception".
447 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
448 loop header.
449 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
450 header.
451 (ppu2spu_sniffer): Rename inner "buf".
452 * parse.c (operator_check_standard): Rename inner "type",
453 "objfile".
454 * p-valprint.c (pascal_val_print): Introduce new scope for
455 "low_bound", "high_bound".
456 * p-exp.y (yylex): Declare "i" in loop header.
457 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
458 Lower declaration of "s".
459 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
460 header.
461 (nios2_push_dummy_call): Rename "len".
462 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
463 "buf".
464 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
465 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
466 (linux_xfer_osdata_modules): Likewise.
467 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
468 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
469 (mips_o64_push_dummy_call): Likewise.
470 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
471 "op".
472 * mi/mi-main.c (list_available_thread_groups): Rename inner
473 "tuple_emitter".
474 (mi_cmd_data_read_memory): Rename inner "opts".
475 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
476 "tuple_emitter".
477 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
478 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
479 more inner scope.
480 (parse_partial_symbols): Rename inner "pst", "p", "name"
481 * main.c (captured_main_1): Rename inner "i"s.
482 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
483 "oso2".
484 * linux-tdep.c (linux_info_proc): Rename inner "filename".
485 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
486 * infrun.c (handle_no_resumed): Don't redeclare "thread".
487 (handle_signal_stop): Rename inner "gdbarch".
488 (handle_command): Declare "signum" in loop header.
489 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
490 "status".
491 (examine_prologue): Rename inner "sol" and "sof".
492 (ia64_extract_return_value): Rename inner "val". Declare another
493 "val" in a more inner scope.
494 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
495 inner scope.
496 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
497 "except".
498 * findvar.c (default_read_var_value): Don't redeclare "addr".
499 * f-exp.y (yylex): Declare "i" in loop header.
500 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
501 Rename inner "type", "expect_type".
502 (evaluate_subexp_for_sizeof): Rename inner "pc".
503 * elfread.c (elf_symfile_read): Rename inner "abfd".
504 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
505 "bytes_read".
506 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
507 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
508 (dwarf_decode_line_header): Rename inner "lh".
509 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
510 "offset". Declare "i" in loop header.
511 (disassemble_dwarf_expression): Rename inner "addr_size".
512 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
513 inner "result".
514 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
515 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
516 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
517 "inner_list_emitter".
518 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
519 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
520 declaration in a block.
521 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
522 * cp-valprint.c (cp_print_value_fields): Don't redeclare
523 "obstack_final_size".
524 * cp-support.c (inspect_type): Declare "i" in loop header.
525 * compile/compile.c (compile_instance::insert_symbol_error):
526 Rename inner "e".
527 * common/agent.c (agent_run_command): Remove inner "ret"
528 declaration.
529 * coffread.c (coff_symfile_read): Rename inner "name".
530 (coff_symfile_read): Rename inner "abfd".
531 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
532 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
533 "high".
534 * c-exp.y (lex_one_token): Move "len" declaration lower.
535 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
536 "gdbarch".
537 (create_exception_master_breakpoint): Likewise. Don't redeclare
538 "b".
539 (watch_command_1): Declare "mark" later.
540 (clear_command): Don't shadow "a" or "b".
541 (delete_command): Rename inner "b".
542 (delete_trace_command): Likewise.
543 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
544 "op".
545 (arm_gdbarch_init): Remove inner "e_flags".
546 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
547 "offset" in inner blocks.
548
549 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
550
551 * dwarf-index-write.c (file_write): Don't write if the vector is
552 empty.
553
554 2018-10-05 Tom de Vries <tdevries@suse.de>
555
556 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
557 PyArg_ParseTuple call.
558
559 2018-10-05 Tom de Vries <tdevries@suse.de>
560
561 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
562 PyArg_ParseTuple call.
563
564 2018-10-04 Joel Brobecker <brobecker@adacore.com>
565
566 * psymtab.c (recursively_search_psymtabs): Reformat parameters
567 to avoid exceeding 80 characters per line limit.
568
569 2018-10-04 Tom Tromey <tom@tromey.com>
570
571 * symfile.c (syms_from_objfile_1, finish_new_objfile)
572 (reread_symbols): Update.
573 * complaints.h (clear_complaints): Remove argument.
574 * complaints.c (enum complaint_series): Remove.
575 (series): Remove global.
576 (complaint_internal): Update.
577 (clear_complaints): Remove argument.
578
579 2018-10-04 Tom Tromey <tom@tromey.com>
580
581 * symfile.c (symbol_file_add_with_addrs): Do not print "no
582 debugging symbols" message if there is a separate debug objfile.
583
584 2018-10-04 Tom Tromey <tom@tromey.com>
585
586 PR cli/19551:
587 * symfile.c (symbol_file_add_with_addrs): Update output.
588 * psymtab.c (require_partial_symbols): Update output.
589
590 2018-10-04 Tom Tromey <tom@tromey.com>
591
592 PR cli/22234:
593 * complaints.c: Emit \n.
594
595 2018-10-04 Tom Tromey <tom@tromey.com>
596
597 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
598 (separate_debug_file_exists, find_separate_debug_file)
599 (add_symbol_file_command, reread_symbols, allocate_symtab)
600 (allocate_compunit_symtab): Use filtered printing, not
601 unfiltered.
602 * psymtab.c (require_partial_symbols, dump_psymtab)
603 (allocate_psymtab): Use filtered printing, not unfiltered.
604
605 2018-10-04 Tom Tromey <tom@tromey.com>
606
607 * complaints.c (complaint_internal): Correctly check complaint
608 count.
609
610 2018-10-04 Tom Tromey <tom@tromey.com>
611
612 * complaints.h (struct complaints): Remove declaration.
613 * complaints.c (clear_complaints): Remove an unused variable.
614
615 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
616
617 * MAINTAINERS (Write After Approval): Add self.
618
619 2018-10-03 Tom Tromey <tom@tromey.com>
620
621 * guile/scm-value.c (gdbscm_value_to_string): Initialize
622 "buffer_contents".
623 * coffread.c (coff_symtab_read): Initialize "newobj".
624
625 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * dwarf2read.c (read_func_scope): Remove struct keyword in
628 range-based for.
629
630 2018-10-03 Tom Tromey <tom@tromey.com>
631
632 * README: Mention --enable-ubsan.
633 * NEWS: Mention --enable-ubsan.
634 * acinclude.m4: Include sanitize.m4.
635 * configure: Rebuild.
636 * configure.ac: Call AM_GDB_UBSAN.
637 * sanitize.m4: New file.
638
639 2018-10-03 Tom Tromey <tom@tromey.com>
640
641 * expression.h (enum exp_opcode): Use uint8_t as base type.
642 * expprint.c (op_name): Handle invalid opcodes.
643
644 2018-10-03 Tom Tromey <tom@tromey.com>
645
646 * parse.c (prefixify_expression): Add assert.
647 (parse_exp_in_context_1): Throw exception if the expression is
648 empty.
649
650 2018-10-03 Tom Tromey <tom@tromey.com>
651
652 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
653
654 2018-10-03 Tom Tromey <tom@tromey.com>
655
656 * c-exp.y (parse_number): Work in unsigned. Remove casts.
657
658 2018-10-03 Tom Tromey <tom@tromey.com>
659
660 * dwarf2read.c (read_subrange_type): Make "negative_mask"
661 unsigned.
662
663 2018-10-03 Tom Tromey <tom@tromey.com>
664
665 * findvar.c (extract_integer): Do work in an unsigned type.
666
667 2018-10-03 Tom Tromey <tom@tromey.com>
668
669 * common/enum-flags.h (enum_flags::operator~): Add static assert.
670 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
671 base type.
672 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
673 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
674 type.
675 * c-lang.h (enum c_string_type_values): Use unsigned as base
676 type.
677 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
678
679 2018-10-03 Tom Tromey <tom@tromey.com>
680
681 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
682 <~dwarf2_frame_state_reg_info>: Update.
683 <dwarf2_frame_state_reg_info>: Update.
684 <alloc_regs>: Add assertion. Update.
685 <reg>: Now a std::vector.
686 <num_regs>: Remove.
687 <swap>: Update.
688 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
689 (execute_cfa_program_test, dwarf2_frame_cache): Update.
690
691 2018-10-03 Tom Tromey <tom@tromey.com>
692
693 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
694
695 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
696
697 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
698
699 2018-10-02 Tom Tromey <tom@tromey.com>
700
701 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
702
703 2018-10-02 John Darrington <john@darrington.wattle.id.au>
704
705 * NEWS: Mention changed commands.
706 * ser-uds.c: New file.
707 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
708 * configure: Regenerate.
709 * Makefile.in: Add new file.
710 * serial.c (serial_open): Check if filename is a socket
711 and lookup the appropriate interface accordingly.
712
713 2018-10-01 Alan Hayward <alan.hayward@arm.com>
714
715 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
716 define.
717 (AARCH64_EXTRA_MAGIC): Likewise.
718 (AARCH64_FPSIMD_MAGIC): Likewise.
719 (AARCH64_SVE_MAGIC): Likewise.
720 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
721 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
722 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
723 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
724 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
725 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
726 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
727 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
728 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
729 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
730 (read_aarch64_ctx): Add function.
731 (aarch64_linux_sigframe_init): Detect FP registers.
732
733 2018-10-01 Alan Hayward <alan.hayward@arm.com>
734
735 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
736 (AARCH64_D0_REGNUM): Likewise.
737 (AARCH64_S0_REGNUM): Likewise.
738 (AARCH64_H0_REGNUM): Likewise.
739 (AARCH64_B0_REGNUM): Likewise.
740 (AARCH64_SVE_V0_REGNUM): Likewise.
741 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
742 (AARCH64_D0_REGNUM): Likewise.
743 (AARCH64_S0_REGNUM): Likewise.
744 (AARCH64_H0_REGNUM): Likewise.
745 (AARCH64_B0_REGNUM): Likewise.
746 (AARCH64_SVE_V0_REGNUM): Likewise.
747
748 2018-10-01 Gary Benson <gbenson@redhat.com>
749
750 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
751 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
752 prfpregset_t instead of gdb_prfpregset_t.
753 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
754 * configure, config.in: Rebuild.
755
756 2018-10-01 Gary Benson <gbenson@redhat.com>
757
758 * common/gdb_proc_service.h: New file, factored out from...
759 * gdb_proc_service.h: Moved common code to the above file.
760 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
761
762 2018-10-01 Gary Benson <gbenson@redhat.com>
763
764 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
765 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
766
767 2018-10-01 Gary Benson <gbenson@redhat.com>
768
769 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
770 (AC_CHECK_HEADERS): Check for linux/elf.h.
771 * configure, config.in: Rebuild.
772 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
773 doesn't define elf_fpregset_t.
774
775 2018-10-01 Gary Benson <gbenson@redhat.com>
776
777 * gdb_proc_service.h: Whitespace change.
778
779 2018-10-01 Tom Tromey <tom@tromey.com>
780
781 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
782 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
783 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
784
785 2018-10-01 Tom Tromey <tom@tromey.com>
786
787 * README: Minor change.
788
789 2018-09-30 Pedro Alves <palves@redhat.com>
790
791 * darwin-nat-info.c (darwin_debug_regions_recurse)
792 (info_mach_exceptions_command): Remove unused local variables.
793 * darwin-nat.c (darwin_decode_notify_message)
794 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
795 (darwin_stop_inferior, darwin_setup_exceptions)
796 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
797 (darwin_nat_target::attach, darwin_nat_target::detach)
798 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
799 local variables.
800 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
801 variables.
802
803 2018-09-29 Tom Tromey <tom@tromey.com>
804
805 * README: Remove some leftover text.
806
807 2018-09-29 Tom Tromey <tom@tromey.com>
808
809 * PROBLEMS: Rewrite.
810 * README: Update.
811
812 2018-09-28 John Baldwin <jhb@FreeBSD.org>
813
814 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
815 case with explicit breakpoint kind.
816 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
817 'additional_info' and related logic.
818 (riscv_debug_breakpoints): New variable.
819 (riscv_breakpoint_kind_from_pc): Use the length of the existing
820 instruction to determine the breakpoint kind.
821 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
822 flag. Update description of 'set/show riscv
823 use-compressed-breakpoints' flag.
824
825 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
826
827 (NEWS): Mention changes to frame related commands.
828 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
829 (add_prefix_cmd_suppress_notification): New function.
830 (add_com_suppress_notification): Call
831 add_cmd_suppress_notification.
832 * command.h (add_cmd_suppress_notification): Declare.
833 (add_prefix_cmd_suppress_notification): Declare.
834 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
835 (parse_frame_specification): Moved from stack.c, with
836 simplification to handle a single argument.
837 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
838 switch to the selected frame. Add a header comment.
839 * stack.c: Remove 'safe-ctype.h' include.
840 (find_frame_for_function): Add declaration.
841 (find_frame_for_address): New function.
842 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
843 (frame_selection_by_function_completer): New function.
844 (info_frame_command): Rename to...
845 (info_frame_command_core): ...this, and update parameter types.
846 (select_frame_command): Rename to...
847 (select_frame_command_core): ...this, and update parameter types.
848 (frame_command): Rename to...
849 (frame_command_core): ...this, and update parameter types.
850 (class frame_command_helper): New class to wrap implementations of
851 frame related sub-commands.
852 (frame_apply_cmd_list): New static global.
853 (frame_cmd_list): Make static.
854 (select_frame_cmd_list): New global for sub-commands.
855 (info_frame_cmd_list): New global for sub-commands.
856 (_initialize_stack): Register sub-commands for 'frame',
857 'select-frame', and 'info frame'. Update 'frame apply' commands
858 to use frame_apply_cmd_list. Move function local static
859 frame_apply_list to file static frame_apply_cmd_list for
860 consistency.
861 * stack.h (select_frame_command): Delete declarationn.
862 (select_frame_for_mi): Declare new function.
863
864 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
867 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
868 and NOP.
869
870 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
871
872 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
873
874 2018-09-26 Tom Tromey <tom@tromey.com>
875
876 * valops.c (auto_abandon): Remove dead code.
877
878 2018-09-26 Tom Tromey <tom@tromey.com>
879
880 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
881
882 2018-09-24 Tom Tromey <tom@tromey.com>
883
884 * common/pathstuff.c (get_standard_cache_dir): Make
885 "xdg_cache_home" and "home" const.
886 * top.c (init_history): Make "tmpenv" const.
887 * main.c (get_init_files): Make "homedir" const.
888
889 2018-09-23 Tom Tromey <tom@tromey.com>
890
891 PR python/18852:
892 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
893
894 2018-09-23 Tom Tromey <tom@tromey.com>
895
896 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
897 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
898 * python/python-internal.h (gdbpy_handle_exception): Declare.
899 * python/py-utils.c (gdbpy_handle_exception): New function.
900
901 2018-09-23 Tom Tromey <tom@tromey.com>
902
903 PR python/17284:
904 * python/py-type.c (typy_template_argument): Check for negative
905 argument number.
906
907 2018-09-23 Tom Tromey <tom@tromey.com>
908
909 PR python/14062:
910 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
911
912 2018-09-23 Tom Tromey <tom@tromey.com>
913
914 PR python/18170:
915 * python/py-value.c (valpy_int): Allow conversion from pointer
916 type.
917
918 2018-09-23 Tom Tromey <tom@tromey.com>
919
920 PR python/20126:
921 * python/py-value.c (valpy_int): Respect type sign.
922
923 2018-09-23 Tom Tromey <tom@tromey.com>
924
925 PR python/18352;
926 * python/py-value.c (valpy_float): Allow conversions from int or
927 char.
928 (valpy_int, valpy_long): Allow conversions from float.
929
930 2018-09-23 Tom Tromey <tom@tromey.com>
931
932 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
933 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
934
935 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936
937 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
938 __sighndlr.
939 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
940
941 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
942
943 * windows-nat.c (windows_nat_target::wait): Remove a spurious
944 target_terminal::ours().
945
946 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
947
948 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
949 of vl to ULONGEST.
950
951 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
952
953 * breakpoint.c (update_inserted_breakpoint_locations): Remove
954 redundant condition.
955
956 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
957
958 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
959
960 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
961 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
962 * sol-thread.c (ps_pdmodel): Don't guard definition.
963
964 * procfs.c: Fix formatting.
965
966 * procfs.c (sysset_t_alloc): Remove.
967 (create_procinfo): Use XNEW instead of sysset_t_alloc.
968 (procfs_debug_inferior): Likewise.
969 (procfs_set_exec_trap): Likewise.
970 (proc_set_traced_sysentry): Don't allocate argp dynamically.
971 (proc_set_traced_sysexit): Likewise.
972
973 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
974 (dead_procinfo): Likewise.
975 (proc_warn): Likewise.
976 (proc_error): Likewise.
977 (proc_get_LDT_entry): Likewise.
978 (do_attach): Likewise.
979 (procfs_target::pid_to_str): Likewise.
980 (iterate_over_mappings): Likewise.
981
982 * procfs.c (create_procinfo): Fix ARI warning.
983 (proc_get_status): Likewise.
984 (proc_stop_process): Likewise.
985 (proc_run_process): Likewise.
986 (proc_kill): Likewise.
987 (proc_get_LDT_entry): Likewise.
988 (procfs_find_LDT_entry): Likewise.
989 (proc_update_threads): Likewise.
990 (proc_iterate_over_threads): Likewise.
991 (do_attach): Likewise.
992 (procfs_xfer_memory): Likewise.
993 (invalidate_cache): Likewise.
994 (procfs_target::resume): Likewise.
995 (procfs_init_inferior): Likewise.
996 (procfs_set_exec_trap): Likewise.
997 (procfs_target::thread_alive): Likewise.
998 (procfs_target::pid_to_exec_file): Likewise.
999 (iterate_over_mappings): Likewise.
1000 (procfs_target::make_corefile_notes): Likewise.
1001 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1002
1003 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1004 (procfs_find_LDT_entry): Likewise.
1005 * sol-thread.c (ps_lgetLDT): Likewise.
1006
1007 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1008
1009 PR tdep/17903
1010 * procfs.c (procfs_target): Declare pid_to_exec_file.
1011 (procfs_target::pid_to_exec_file): New.
1012
1013 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1014
1015 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1016 renaming.
1017 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1018 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1019
1020 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1021
1022 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1023 (supply_fpregset, fill_fpregset): Move ...
1024 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1025 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1026 Remove references to ioctl-based procfs.
1027 Include <sys/reg.h>.
1028 Remove PR_MODEL_NATIVE guards.
1029 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1030 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1031
1032 2018-09-19 Xavier Roirand <roirand@adacore.com>
1033
1034 PR gdb/20981:
1035 * solib-darwin.c (darwin_get_dyld_bfd): New function.
1036 (darwin_solib_get_all_image_info_addr_at_init): Update call.
1037 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1038
1039 2018-09-19 John Baldwin <jhb@FreeBSD.org>
1040
1041 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1042 (fbsd_print_sockaddr_in6): Likewise.
1043
1044 2018-09-19 Richard Bunt <richard.bunt@arm.com>
1045 Chris January <chris.january@arm.com>
1046
1047 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1048 (evaluate_subexp_standard): Return a dummy type when
1049 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1050 OP_F77_UNDETERMINED_ARGLIST case.
1051 * expression.h (enum noside): Update comment.
1052
1053 2018-09-19 George Vasick <george.vasick@oracle.com>
1054
1055 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1056
1057 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1058 April Chin <april.chin@oracle.com>
1059 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1060
1061 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1062 uint_t lwpid_t.
1063 (create_procinfo): Print pids in /proc without leading zeros.
1064
1065 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1066
1067 * nios2-tdep.c (nios2_gcc_target_options): New.
1068 (nios2_gdb_arch_init): Install new hook.
1069
1070 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1071
1072 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1073 New file.
1074 * update-gnulib.sh: Apply patch.
1075 * configure: Re-generate.
1076
1077 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1078
1079 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1080 description. Make "info proc" command descriptions more
1081 consistent.
1082
1083 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1084
1085 * NEWS: Mention 'info proc files' command.
1086
1087 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1088
1089 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1090 descriptors for IP_FILES and IP_ALL.
1091
1092 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1093
1094 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1095 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1096 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1097 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1098 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1099 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1100 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1101 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1102 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1103 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1104 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1105 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1106 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1107 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1108 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1109 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1110 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1111 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1112 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1113 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1114 (struct fbsd_sockaddr_un): New types.
1115 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1116 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1117 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1118 (fbsd_core_info_proc_files): New functions.
1119 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1120 IP_ALL.
1121 * fbsd-tdep.h (fbsd_info_proc_files_header)
1122 (fbsd_info_proc_files_entry): New.
1123
1124 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1125
1126 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1127 * infcmd.c (info_proc_cmd_files): New function.
1128 (_initialize_infcmd): Register 'info proc files' command.
1129
1130 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1131
1132 * gnulib/aclocal-m4-deps.mk: Re-generate.
1133 * gnulib/aclocal.m4: Re-generate.
1134 * gnulib/config.in: Re-generate.
1135 * gnulib/configure: Re-generate.
1136 * gnulib/import/Makefile.am: Re-generate.
1137 * gnulib/import/Makefile.in: Re-generate.
1138 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1139 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1140 * gnulib/import/arpa_inet.in.h: New file.
1141 * gnulib/import/inet_ntop.c: New file.
1142 * gnulib/import/m4/arpa_inet_h.m4: New file.
1143 * gnulib/import/m4/inet_ntop.m4: New file.
1144 * gnulib/import/m4/netinet_in_h.m4: New file.
1145 * gnulib/import/m4/socklen.m4: New file.
1146 * gnulib/import/m4/sockpfaf.m4: New file.
1147 * gnulib/import/m4/stdalign.m4: New file.
1148 * gnulib/import/m4/sys_uio_h.m4: New file.
1149 * gnulib/import/netinet_in.in.h: New file.
1150 * gnulib/import/stdalign.in.h: New file.
1151 * gnulib/import/sys_socket.c: New file.
1152 * gnulib/import/sys_socket.in.h: New file.
1153 * gnulib/import/sys_uio.in.h: New file.
1154 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1155 module.
1156
1157 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1158
1159 * gnulib/aclocal-m4-deps.mk: New file.
1160 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1161 deterministically.
1162
1163 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1164
1165 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1166 KVE_PATH.
1167
1168 2018-09-18 Tom Tromey <tom@tromey.com>
1169
1170 * compile/compile-object-load.c (struct
1171 link_hash_table_cleanup_data): Add constructor and destructor.
1172 Use DISABLE_COPY_AND_ASSIGN.
1173 (~link_hash_table_cleanup_data): Rename from
1174 link_hash_table_free. Now a destructor.
1175 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1176
1177 2018-09-18 Tom Tromey <tom@tromey.com>
1178
1179 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1180 * compile/compile-object-load.c (struct munmap_list): Move to
1181 header file.
1182 (munmap_list::add): Rename from munmap_list_add; rewrite.
1183 (munmap_list::~munmap_list): Rename from munmap_list_free.
1184 (munmap_listp_free_cleanup): Remove.
1185 (compile_object_load): Update.
1186 * compile/compile-object-load.h (struct munmap_list): Move from
1187 compile-object-load.c. Rewrite.
1188
1189 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1190
1191 * aarch64-tdep.c (pass_in_v): Use register size.
1192 (aarch64_extract_return_value): Likewise.
1193 (aarch64_store_return_value): Likewise.
1194
1195 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1196
1197 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1198 rlim_t.
1199
1200 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1201
1202 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1203 Fix short help line.
1204
1205 2018-09-17 Tom Tromey <tom@tromey.com>
1206
1207 PR python/20445:
1208 * configure: Rebuild.
1209 * configure.ac: Conditionally use -DNDEBUG for Python.
1210
1211 2018-09-17 Tom Tromey <tom@tromey.com>
1212
1213 * configure: Rebuild.
1214 * configure.ac: Use gmp as a library dependency when checking for
1215 mpfr.
1216
1217 2018-09-17 Pedro Alves <palves@redhat.com>
1218
1219 * python/py-inferior.c (find_inferior_object): Delete.
1220
1221 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1222
1223 * compile/compile-cplus-types.c
1224 (compile_cplus_instance::enter_scope): Don't use new_scope after
1225 std::move.
1226
1227 2018-09-17 Tom Tromey <tom@tromey.com>
1228
1229 * common/pathstuff.c (get_standard_cache_dir): Use
1230 ~/Library/Caches on macOS.
1231 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1232
1233 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1234
1235 PR python/23669
1236 * breakpoint.c (commands_cmd_element): New.
1237 (_initialize_breakpoint): Assign commands_cmd_element.
1238 * breakpoint.h (commands_cmd_element): New.
1239 * cli/cli-script.c (while_cmd_element, if_command,
1240 define_cmd_element): New.
1241 (command_name_equals): Remove.
1242 (process_next_line): Compare commands by pointer, not by name.
1243 (_initialize_cli_script): Assign the various cmd_list_element
1244 variables.
1245 * compile/compile.c (compile_cmd_element): New.
1246 (_initialize_compile): Assign compile_cmd_element.
1247 * compile/compile.h (compile_cmd_element): New.
1248 * guile/guile.c (guile_cmd_element): New.
1249 (install_gdb_commands): Assign guile_cmd_element.
1250 * guile/guile.h (guile_cmd_element): New.
1251 * python/python.c (python_cmd_element): New.
1252 (_initialize_python): Assign python_cmd_element.
1253 * python/python.h (python_cmd_element): New.
1254 * tracepoint.c (while_stepping_cmd_element): New.
1255 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1256 * tracepoint.h (while_stepping_cmd_element): New.
1257
1258 2018-09-17 Tom Tromey <tom@tromey.com>
1259
1260 * infrun.c (save_infcall_suspend_state): Return
1261 infcall_suspend_state_up.
1262 (save_infcall_control_state): Return infcall_control_state_up.
1263 * inferior.h (save_infcall_suspend_state)
1264 (save_infcall_control_state): Declare later. Return unique
1265 pointers.
1266
1267 2018-09-17 Tom Tromey <tom@tromey.com>
1268
1269 * infrun.c (struct stop_context): Declare constructor,
1270 destructor, "changed" method.
1271 (stop_context::stop_context): Rename from save_stop_context.
1272 (stop_context::~stop_context): Rename from
1273 release_stop_context_cleanup.
1274 (normal_stop): Update.
1275 (stop_context::changed): Rename from stop_context_changed. Return
1276 bool.
1277
1278 2018-09-17 Tom Tromey <tom@tromey.com>
1279
1280 * inferior.h (struct infcall_suspend_state_deleter): New.
1281 (infcall_suspend_state_up): New typedef.
1282 (struct infcall_control_state_deleter): New.
1283 (infcall_control_state_up): New typedef.
1284 (make_cleanup_restore_infcall_suspend_state)
1285 (make_cleanup_restore_infcall_control_state): Don't declare.
1286 * infcall.c (call_function_by_hand_dummy): Update.
1287 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1288 (make_cleanup_restore_infcall_suspend_state): Remove.
1289 (do_restore_infcall_control_state_cleanup)
1290 (make_cleanup_restore_infcall_control_state): Remove.
1291
1292 2018-09-17 Tom Tromey <tom@tromey.com>
1293
1294 * gdbthread.h (struct thread_control_state): Add initializer.
1295 (class thread_info) <control>: Remove initializer.
1296 * inferior.h (struct inferior_control_state): Add initializer.
1297 (class inferior) <control>: Remove initializer.
1298 (exit_inferior_1): Update.
1299 * infrun.c (struct infcall_control_state): Add constructors.
1300 (save_infcall_control_state): Use new.
1301 (restore_infcall_control_state, discard_infcall_control_state):
1302 Use delete.
1303
1304 2018-09-17 Tom Tromey <tom@tromey.com>
1305
1306 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1307 unique_ptr.
1308 <siginfo_data>: Now a unique_xmalloc_ptr.
1309 (save_infcall_suspend_state, restore_infcall_suspend_state)
1310 (discard_infcall_suspend_state)
1311 (get_infcall_suspend_state_regcache): Update.
1312
1313 2018-09-17 Tom Tromey <tom@tromey.com>
1314
1315 * gdbthread.h (struct thread_suspend_state): Add initializers.
1316 (class thread_info) <suspend>: Remove initializer.
1317 * infrun.c (struct infcall_suspend_state): Add initializers.
1318 (save_infcall_suspend_state): Use new.
1319 (discard_infcall_suspend_state): Use delete.
1320
1321 2018-09-16 Tom Tromey <tom@tromey.com>
1322
1323 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1324 Remove.
1325 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1326 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1327 (py_varobj_iter_new): Likewise.
1328 (py_varobj_get_iterator): Use gdbpy_ref.
1329
1330 2018-09-16 Tom Tromey <tom@tromey.com>
1331
1332 * python/py-threadevent.c (py_get_event_thread): Simplify.
1333 * python/py-inferior.c (infpy_thread_from_thread_handle):
1334 Return immediately after calling thread_to_thread_object. Use
1335 Py_RETURN_NONE.
1336 (thread_to_thread_object): Set the exception on a NULL return.
1337
1338 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1339
1340 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1341
1342 2018-09-16 Tom Tromey <tom@tromey.com>
1343
1344 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1345 Remove.
1346
1347 2018-09-16 Tom Tromey <tom@tromey.com>
1348
1349 * python/python-internal.h (thread_to_thread_object): Change
1350 return type.
1351 * python/py-inferior.c (thread_to_thread_object): Return a new
1352 reference.
1353 (infpy_thread_from_thread_handle): Update.
1354 * python/py-infthread.c (gdbpy_selected_thread): Update.
1355 * python/py-stopevent.c (create_stop_event_object): Update.
1356 * python/py-threadevent.c (py_get_event_thread): Return a new
1357 reference.
1358 (py_get_event_thread): Update.
1359 * python/py-event.h (py_get_event_thread): Change return type.
1360 * python/py-continueevent.c (create_continue_event_object):
1361 Update.
1362
1363 2018-09-16 Tom Tromey <tom@tromey.com>
1364
1365 * python/py-progspace.c (pspy_get_objfiles): Update.
1366 * python/python-internal.h (objfile_to_objfile_object): Change
1367 return type.
1368 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1369 Update.
1370 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1371 Update.
1372 * python/python.c (gdbpy_get_current_objfile): Update.
1373 (gdbpy_objfiles): Update.
1374 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1375 Update.
1376 (objfile_to_objfile_object): Return a new reference.
1377 * python/py-symtab.c (stpy_get_objfile): Update.
1378 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1379 Update.
1380
1381 2018-09-16 Tom Tromey <tom@tromey.com>
1382
1383 * python/py-inferior.c (infpy_get_progspace): Update.
1384 * python/python-internal.h (pspace_to_pspace_object): Change
1385 return type.
1386 * python/py-newobjfileevent.c
1387 (create_clear_objfiles_event_object): Update.
1388 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1389 Update.
1390 * python/python.c (gdbpy_get_current_progspace): Update.
1391 (gdbpy_progspaces): Update.
1392 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1393 reference.
1394 * python/py-objfile.c (objfpy_get_progspace): Update.
1395 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1396 Update.
1397
1398 2018-09-16 Tom Tromey <tom@tromey.com>
1399
1400 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1401 (solib_name, block_for_pc, find_pc_line): New functions.
1402 (execute_unwinders): Update.
1403 * python/py-block.c (gdbpy_block_for_pc): Remove.
1404 * python/py-inferior.c (infpy_get_progspace): New function.
1405 (inferior_object_getset) <progspace>: Add.
1406 * python/py-progspace.c (pspy_objfiles): Rewrite.
1407 (pspy_solib_name, pspy_block_for_pc)
1408 (pspy_find_pc_line, pspy_is_valid): New functions.
1409 (progspace_object_methods): Add entries for solib_name,
1410 block_for_pc, find_pc_line, is_valid.
1411 * python/python-internal.h (gdbpy_block_for_pc)
1412 (build_objfiles_list): Don't declare.
1413 * python/python.c: Don't include solib.h.
1414 (gdbpy_solib_name, gdbpy_find_pc_line)
1415 (gdbpy_get_current_progspace, build_objfiles_list)
1416 (gdbpy_objfiles): Remove.
1417 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1418 solib_name, find_pc_line>: Remove entries.
1419
1420 2018-09-16 Tom Tromey <tom@tromey.com>
1421
1422 * top.c (new_ui_command): Use GNU style for metasyntactic
1423 variables.
1424 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1425 variables.
1426 * maint.c (maintenance_translate_address): Remove "<>" around
1427 text.
1428 * interps.c (interpreter_exec_cmd): Use GNU style for
1429 metasyntactic variables.
1430 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1431 metasyntactic variables.
1432 * tracepoint.c (tfind_range_command): Use GNU style for
1433 metasyntactic variables.
1434 (tfind_outside_command): Likewise.
1435 (_initialize_tracepoint): Likewise.
1436 * remote.c (extended_remote_target::create_inferior): Use GNU
1437 style for metasyntactic variables.
1438 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1439 metasyntactic variables.
1440 (adi_assign_command): Likewise.
1441
1442 2018-09-16 Tom Tromey <tom@tromey.com>
1443
1444 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1445 metasyntactic variables. Print message if no disassembler options
1446 are available.
1447
1448 2018-09-15 Tom Tromey <tom@tromey.com>
1449
1450 * infcmd.c (get_inferior_args): Return const char *.
1451 * inferior.h (get_inferior_args): Return type now const.
1452 * linux-tdep.c (linux_fill_prpsinfo): Update.
1453 * procfs.c (procfs_target::make_corefile_notes): Update.
1454
1455 2018-09-07 Tom Tromey <tom@tromey.com>
1456
1457 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1458 inside the TRY.
1459
1460 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1461
1462 * nios2-tdep.c (nios2_type_align): New.
1463 (nios2_gdb_arch_init): Install type_align hook.
1464
1465 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1468 type that is neither object file owned, nor gdbarch owned.
1469 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1470 gdbarch is non-NULL.
1471 (alloc_type_instance): Allocate non-objfile owned types on the
1472 gdbarch obstack.
1473 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1474 using TYPE_ALLOC to ensure memory is allocated on the correct
1475 obstack.
1476 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1477 obstack, or the gdbarch obstack.
1478 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1479
1480 2018-09-14 Tom Tromey <tom@tromey.com>
1481
1482 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1483 block.
1484
1485 2018-09-14 Tom Tromey <tom@tromey.com>
1486
1487 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1488
1489 2018-09-13 Tom Tromey <tom@tromey.com>
1490
1491 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1492 static.
1493
1494 2018-09-13 Tom Tromey <tom@tromey.com>
1495
1496 * exec.c (try_open_exec_file): Use std::string.
1497
1498 2018-09-13 Tom Tromey <tom@tromey.com>
1499
1500 * utils.h (gdb_bfd_errmsg): Return std::string.
1501 * exec.c (exec_file_attach): Update.
1502 * compile/compile-object-load.c (compile_object_load): Update.
1503 * utils.c (gdb_bfd_errmsg): Return std::string.
1504
1505 2018-09-13 Tom Tromey <tom@tromey.com>
1506
1507 * procfs.c (struct procinfo_deleter): New.
1508 (procinfo_up): New typedef.
1509 (do_destroy_procinfo_cleanup): Remove.
1510 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1511
1512 2018-09-13 Tom Tromey <tom@tromey.com>
1513
1514 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1515
1516 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1517 2018-09-13 Tom Tromey <tom@tromey.com>
1518
1519 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1520 (pspy_get_objfiles): New function.
1521 (progspace_object_methods): New.
1522 (pspace_object_type): Add tp_methods callback.
1523 * python/python-internal.h (build_objfiles_list): New
1524 declaration.
1525 * python/python.c (build_objfiles_list): New function.
1526 (gdbpy_objfiles): Implement using build_objfiles_list.
1527 * NEWS: Mention the Progspace.objfiles method.
1528
1529 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1530
1531 * python/py-inferior.c (infpy_get_progspace): New function.
1532 (inferior_object_getset): Add progspace property.
1533 * NEWS: Mention the new property.
1534
1535 2018-09-13 Tom Tromey <tom@tromey.com>
1536
1537 PR rust/23650:
1538 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1539
1540 2018-09-13 Tom Tromey <tom@tromey.com>
1541
1542 PR rust/23626:
1543 * rust-lang.c (rust_enum_variant): Now static.
1544 (rust_empty_enum_p): New function.
1545 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1546 Handle empty enum.
1547
1548 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1549
1550 * python/py-inferior.c (infpy_repr): New.
1551 (inferior_object_type): Register infpy_repr.
1552 * python/py-objfile.c (objfpy_repr): New.
1553 (objfile_object_type): Register objfpy_repr.
1554
1555 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1556
1557 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1558
1559 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1560
1561 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1562 typo.
1563
1564 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1565
1566 * common/common-utils.c: Don't include '<sys/stat.h>'.
1567 (is_regular_file): Move to...
1568 * common/filestuff.c (is_regular_file): ... here.
1569 * common/common-utils.h (is_regular_file): Move to...
1570 * common/filestuff.h (is_regular_file): ... here.
1571
1572 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1573
1574 * skip.c (debug_skip): New variable.
1575 (skiplist_entry::do_skip_file_p): Add debug output.
1576 (skiplist_entry::do_skip_gfile_p): Likewise.
1577 (skiplist_entry::skip_function_p): Likewise.
1578 (_initialize_step_skip): Create debug command.
1579 * NEWS: Mention set/show debug skip.
1580
1581 2018-09-11 Xavier Roirand <roirand@adacore.com>
1582
1583 * darwin-nat.c (should_disable_startup_with_shell):
1584 New function.
1585 (darwin_nat_target::create_inferior): Add call.
1586
1587 2018-09-11 Xavier Roirand <roirand@adacore.com>
1588
1589 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1590 inf_port, msg_state>: Initialize.
1591 (struct darwin_thread_info) <signaled, single_step>: Change
1592 type and initialize.
1593 (struct darwin_thread_info) <event>: Initialize.
1594
1595 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1596
1597 PR gdb/23555
1598 PR gdb/23558
1599 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1600 guesses.
1601
1602 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1603
1604 Revert:
1605 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1606
1607 PR gdb/23555
1608 PR gdb/23558
1609 * gnulib/aclocal.m4: Regenerate.
1610 * gnulib/config.in: Regenerate.
1611 * gnulib/configure: Regenerate.
1612 * gnulib/import/Makefile.am: Update.
1613 * gnulib/import/Makefile.in: Update.
1614 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1615 * gnulib/import/_Noreturn.h: ... this.
1616 * gnulib/import/alloca.in.h: Update.
1617 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1618 * gnulib/import/arg-nonnull.h: ... this.
1619 * gnulib/import/assure.h: Update.
1620 * gnulib/import/at-func.c: Update.
1621 * gnulib/import/basename-lgpl.c: Update.
1622 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1623 * gnulib/import/c++defs.h: ... this.
1624 * gnulib/import/canonicalize-lgpl.c: Update.
1625 * gnulib/import/cdefs.h: Update.
1626 * gnulib/import/chdir-long.c: Update.
1627 * gnulib/import/chdir-long.h: Update.
1628 * gnulib/import/cloexec.c: Update.
1629 * gnulib/import/cloexec.h: Update.
1630 * gnulib/import/close.c: Update.
1631 * gnulib/import/closedir.c: Update.
1632 * gnulib/import/config.charset: Update.
1633 * gnulib/import/dirent-private.h: Update.
1634 * gnulib/import/dirent.in.h: Update.
1635 * gnulib/import/dirfd.c: Update.
1636 * gnulib/import/dirname-lgpl.c: Update.
1637 * gnulib/import/dirname.h: Update.
1638 * gnulib/import/dosname.h: Update.
1639 * gnulib/import/dup-safer-flag.c: Update.
1640 * gnulib/import/dup-safer.c: Update.
1641 * gnulib/import/dup.c: Update.
1642 * gnulib/import/dup2.c: Update.
1643 * gnulib/import/errno.in.h: Update.
1644 * gnulib/import/error.c: Update.
1645 * gnulib/import/error.h: Update.
1646 * gnulib/import/exitfail.c: Update.
1647 * gnulib/import/exitfail.h: Update.
1648 * gnulib/import/extra/update-copyright: Update.
1649 * gnulib/import/fchdir.c: Update.
1650 * gnulib/import/fcntl.c: Update.
1651 * gnulib/import/fcntl.in.h: Update.
1652 * gnulib/import/fd-hook.c: Update.
1653 * gnulib/import/fd-hook.h: Update.
1654 * gnulib/import/fd-safer-flag.c: Update.
1655 * gnulib/import/fd-safer.c: Update.
1656 * gnulib/import/fdopendir.c: Update.
1657 * gnulib/import/filename.h: Update.
1658 * gnulib/import/filenamecat-lgpl.c: Update.
1659 * gnulib/import/filenamecat.h: Update.
1660 * gnulib/import/flexmember.h: Update.
1661 * gnulib/import/float+.h: Update.
1662 * gnulib/import/float.c: Update.
1663 * gnulib/import/float.in.h: Update.
1664 * gnulib/import/fnmatch.c: Update.
1665 * gnulib/import/fnmatch.in.h: Update.
1666 * gnulib/import/fnmatch_loop.c: Update.
1667 * gnulib/import/fpucw.h: Update.
1668 * gnulib/import/frexp.c: Update.
1669 * gnulib/import/frexpl.c: Update.
1670 * gnulib/import/fstat.c: Update.
1671 * gnulib/import/fstatat.c: Update.
1672 * gnulib/import/getcwd-lgpl.c: Update.
1673 * gnulib/import/getcwd.c: Update.
1674 * gnulib/import/getdtablesize.c: Update.
1675 * gnulib/import/getlogin_r.c: Update.
1676 * gnulib/import/getprogname.c: Update.
1677 * gnulib/import/getprogname.h: Update.
1678 * gnulib/import/gettext.h: Update.
1679 * gnulib/import/gettimeofday.c: Update.
1680 * gnulib/import/glob-libc.h: Update.
1681 * gnulib/import/glob.c: Update.
1682 * gnulib/import/glob.in.h: Update.
1683 * gnulib/import/glob_internal.h: Update.
1684 * gnulib/import/glob_pattern_p.c: Update.
1685 * gnulib/import/globfree.c: Update.
1686 * gnulib/import/hard-locale.c: Update.
1687 * gnulib/import/hard-locale.h: Update.
1688 * gnulib/import/intprops.h: Update.
1689 * gnulib/import/inttypes.in.h: Update.
1690 * gnulib/import/isnan.c: Update.
1691 * gnulib/import/isnand-nolibm.h: Update.
1692 * gnulib/import/isnand.c: Update.
1693 * gnulib/import/isnanl-nolibm.h: Update.
1694 * gnulib/import/isnanl.c: Update.
1695 * gnulib/import/itold.c: Update.
1696 * gnulib/import/libc-config.h: Update.
1697 * gnulib/import/limits.in.h: Update.
1698 * gnulib/import/localcharset.c: Update.
1699 * gnulib/import/localcharset.h: Update.
1700 * gnulib/import/localtime-buffer.c: Update.
1701 * gnulib/import/localtime-buffer.h: Update.
1702 * gnulib/import/lstat.c: Update.
1703 * gnulib/import/m4/00gnulib.m4: Update.
1704 * gnulib/import/m4/__inline.m4: Update.
1705 * gnulib/import/m4/absolute-header.m4: Update.
1706 * gnulib/import/m4/alloca.m4: Update.
1707 * gnulib/import/m4/builtin-expect.m4: Update.
1708 * gnulib/import/m4/canonicalize.m4: Update.
1709 * gnulib/import/m4/chdir-long.m4: Update.
1710 * gnulib/import/m4/close.m4: Update.
1711 * gnulib/import/m4/closedir.m4: Update.
1712 * gnulib/import/m4/configmake.m4: Update.
1713 * gnulib/import/m4/d-ino.m4: Update.
1714 * gnulib/import/m4/d-type.m4: Update.
1715 * gnulib/import/m4/dirent_h.m4: Update.
1716 * gnulib/import/m4/dirfd.m4: Update.
1717 * gnulib/import/m4/dirname.m4: Update.
1718 * gnulib/import/m4/double-slash-root.m4: Update.
1719 * gnulib/import/m4/dup.m4: Update.
1720 * gnulib/import/m4/dup2.m4: Update.
1721 * gnulib/import/m4/eealloc.m4: Update.
1722 * gnulib/import/m4/environ.m4: Update.
1723 * gnulib/import/m4/errno_h.m4: Update.
1724 * gnulib/import/m4/error.m4: Update.
1725 * gnulib/import/m4/exponentd.m4: Update.
1726 * gnulib/import/m4/exponentl.m4: Update.
1727 * gnulib/import/m4/extensions.m4: Update.
1728 * gnulib/import/m4/extern-inline.m4: Update.
1729 * gnulib/import/m4/fchdir.m4: Update.
1730 * gnulib/import/m4/fcntl-o.m4: Update.
1731 * gnulib/import/m4/fcntl.m4: Update.
1732 * gnulib/import/m4/fcntl_h.m4: Update.
1733 * gnulib/import/m4/fdopendir.m4: Update.
1734 * gnulib/import/m4/filenamecat.m4: Update.
1735 * gnulib/import/m4/flexmember.m4: Update.
1736 * gnulib/import/m4/float_h.m4: Update.
1737 * gnulib/import/m4/fnmatch.m4: Update.
1738 * gnulib/import/m4/fnmatch_h.m4: Update.
1739 * gnulib/import/m4/fpieee.m4: Update.
1740 * gnulib/import/m4/frexp.m4: Update.
1741 * gnulib/import/m4/frexpl.m4: Update.
1742 * gnulib/import/m4/fstat.m4: Update.
1743 * gnulib/import/m4/fstatat.m4: Update.
1744 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1745 * gnulib/import/m4/getcwd-path-max.m4: Update.
1746 * gnulib/import/m4/getcwd.m4: Update.
1747 * gnulib/import/m4/getdtablesize.m4: Update.
1748 * gnulib/import/m4/getlogin.m4: Update.
1749 * gnulib/import/m4/getlogin_r.m4: Update.
1750 * gnulib/import/m4/getpagesize.m4: Update.
1751 * gnulib/import/m4/getprogname.m4: Update.
1752 * gnulib/import/m4/gettimeofday.m4: Update.
1753 * gnulib/import/m4/glibc21.m4: Update.
1754 * gnulib/import/m4/glob.m4: Update.
1755 * gnulib/import/m4/glob_h.m4: Update.
1756 * gnulib/import/m4/gnulib-cache.m4: Update.
1757 * gnulib/import/m4/gnulib-common.m4: Update.
1758 * gnulib/import/m4/gnulib-comp.m4: Update.
1759 * gnulib/import/m4/gnulib-tool.m4: Update.
1760 * gnulib/import/m4/hard-locale.m4: Update.
1761 * gnulib/import/m4/include_next.m4: Update.
1762 * gnulib/import/m4/inttypes-pri.m4: Update.
1763 * gnulib/import/m4/inttypes.m4: Update.
1764 * gnulib/import/m4/isnand.m4: Update.
1765 * gnulib/import/m4/isnanl.m4: Update.
1766 * gnulib/import/m4/largefile.m4: Update.
1767 * gnulib/import/m4/limits-h.m4: Update.
1768 * gnulib/import/m4/localcharset.m4: Update.
1769 * gnulib/import/m4/locale-fr.m4: Update.
1770 * gnulib/import/m4/locale-ja.m4: Update.
1771 * gnulib/import/m4/locale-zh.m4: Update.
1772 * gnulib/import/m4/localtime-buffer.m4: Update.
1773 * gnulib/import/m4/longlong.m4: Update.
1774 * gnulib/import/m4/lstat.m4: Update.
1775 * gnulib/import/m4/malloc.m4: Update.
1776 * gnulib/import/m4/malloca.m4: Update.
1777 * gnulib/import/m4/math_h.m4: Update.
1778 * gnulib/import/m4/mbrtowc.m4: Update.
1779 * gnulib/import/m4/mbsinit.m4: Update.
1780 * gnulib/import/m4/mbsrtowcs.m4: Update.
1781 * gnulib/import/m4/mbstate_t.m4: Update.
1782 * gnulib/import/m4/memchr.m4: Update.
1783 * gnulib/import/m4/memmem.m4: Update.
1784 * gnulib/import/m4/mempcpy.m4: Update.
1785 * gnulib/import/m4/memrchr.m4: Update.
1786 * gnulib/import/m4/mkdir.m4: Update.
1787 * gnulib/import/m4/mkstemp.m4: Update.
1788 * gnulib/import/m4/mmap-anon.m4: Update.
1789 * gnulib/import/m4/mode_t.m4: Update.
1790 * gnulib/import/m4/msvc-inval.m4: Update.
1791 * gnulib/import/m4/msvc-nothrow.m4: Update.
1792 * gnulib/import/m4/multiarch.m4: Update.
1793 * gnulib/import/m4/nocrash.m4: Update.
1794 * gnulib/import/m4/off_t.m4: Update.
1795 * gnulib/import/m4/onceonly.m4: Update.
1796 * gnulib/import/m4/open-cloexec.m4: Update.
1797 * gnulib/import/m4/open.m4: Update.
1798 * gnulib/import/m4/openat.m4: Update.
1799 * gnulib/import/m4/opendir.m4: Update.
1800 * gnulib/import/m4/pathmax.m4: Update.
1801 * gnulib/import/m4/rawmemchr.m4: Update.
1802 * gnulib/import/m4/readdir.m4: Update.
1803 * gnulib/import/m4/readlink.m4: Update.
1804 * gnulib/import/m4/realloc.m4: Update.
1805 * gnulib/import/m4/rename.m4: Update.
1806 * gnulib/import/m4/rewinddir.m4: Update.
1807 * gnulib/import/m4/rmdir.m4: Update.
1808 * gnulib/import/m4/save-cwd.m4: Update.
1809 * gnulib/import/m4/secure_getenv.m4: Update.
1810 * gnulib/import/m4/setenv.m4: Update.
1811 * gnulib/import/m4/signal_h.m4: Update.
1812 * gnulib/import/m4/ssize_t.m4: Update.
1813 * gnulib/import/m4/stat-time.m4: Update.
1814 * gnulib/import/m4/stat.m4: Update.
1815 * gnulib/import/m4/std-gnu11.m4: Update.
1816 * gnulib/import/m4/stdbool.m4: Update.
1817 * gnulib/import/m4/stddef_h.m4: Update.
1818 * gnulib/import/m4/stdint.m4: Update.
1819 * gnulib/import/m4/stdio_h.m4: Update.
1820 * gnulib/import/m4/stdlib_h.m4: Update.
1821 * gnulib/import/m4/strchrnul.m4: Update.
1822 * gnulib/import/m4/strdup.m4: Update.
1823 * gnulib/import/m4/strerror.m4: Update.
1824 * gnulib/import/m4/string_h.m4: Update.
1825 * gnulib/import/m4/strstr.m4: Update.
1826 * gnulib/import/m4/strtok_r.m4: Update.
1827 * gnulib/import/m4/sys_socket_h.m4: Update.
1828 * gnulib/import/m4/sys_stat_h.m4: Update.
1829 * gnulib/import/m4/sys_time_h.m4: Update.
1830 * gnulib/import/m4/sys_types_h.m4: Update.
1831 * gnulib/import/m4/tempname.m4: Update.
1832 * gnulib/import/m4/time_h.m4: Update.
1833 * gnulib/import/m4/unistd-safer.m4: Update.
1834 * gnulib/import/m4/unistd_h.m4: Update.
1835 * gnulib/import/m4/warn-on-use.m4: Update.
1836 * gnulib/import/m4/wchar_h.m4: Update.
1837 * gnulib/import/m4/wchar_t.m4: Update.
1838 * gnulib/import/m4/wctype_h.m4: Update.
1839 * gnulib/import/m4/wint_t.m4: Update.
1840 * gnulib/import/malloc.c: Update.
1841 * gnulib/import/malloc/scratch_buffer.h: Update.
1842 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1843 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1844 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1845 * gnulib/import/malloca.c: Update.
1846 * gnulib/import/malloca.h: Update.
1847 * gnulib/import/malloca.valgrind: Update.
1848 * gnulib/import/math.in.h: Update.
1849 * gnulib/import/mbrtowc.c: Update.
1850 * gnulib/import/mbsinit.c: Update.
1851 * gnulib/import/mbsrtowcs-impl.h: Update.
1852 * gnulib/import/mbsrtowcs-state.c: Update.
1853 * gnulib/import/mbsrtowcs.c: Update.
1854 * gnulib/import/memchr.c: Update.
1855 * gnulib/import/memmem.c: Update.
1856 * gnulib/import/mempcpy.c: Update.
1857 * gnulib/import/memrchr.c: Update.
1858 * gnulib/import/mkdir.c: Update.
1859 * gnulib/import/mkstemp.c: Update.
1860 * gnulib/import/msvc-inval.c: Update.
1861 * gnulib/import/msvc-inval.h: Update.
1862 * gnulib/import/msvc-nothrow.c: Update.
1863 * gnulib/import/msvc-nothrow.h: Update.
1864 * gnulib/import/open.c: Update.
1865 * gnulib/import/openat-die.c: Update.
1866 * gnulib/import/openat-priv.h: Update.
1867 * gnulib/import/openat-proc.c: Update.
1868 * gnulib/import/openat.c: Update.
1869 * gnulib/import/openat.h: Update.
1870 * gnulib/import/opendir.c: Update.
1871 * gnulib/import/pathmax.h: Update.
1872 * gnulib/import/pipe-safer.c: Update.
1873 * gnulib/import/rawmemchr.c: Update.
1874 * gnulib/import/readdir.c: Update.
1875 * gnulib/import/readlink.c: Update.
1876 * gnulib/import/realloc.c: Update.
1877 * gnulib/import/ref-add.sin: Update.
1878 * gnulib/import/ref-del.sin: Update.
1879 * gnulib/import/rename.c: Update.
1880 * gnulib/import/rewinddir.c: Update.
1881 * gnulib/import/rmdir.c: Update.
1882 * gnulib/import/same-inode.h: Update.
1883 * gnulib/import/save-cwd.c: Update.
1884 * gnulib/import/save-cwd.h: Update.
1885 * gnulib/import/scratch_buffer.h: Update.
1886 * gnulib/import/secure_getenv.c: Update.
1887 * gnulib/import/setenv.c: Update.
1888 * gnulib/import/signal.in.h: Update.
1889 * gnulib/import/stat-time.c: Update.
1890 * gnulib/import/stat-time.h: Update.
1891 * gnulib/import/stat-w32.c: Update.
1892 * gnulib/import/stat-w32.h: Update.
1893 * gnulib/import/stat.c: Update.
1894 * gnulib/import/stdbool.in.h: Update.
1895 * gnulib/import/stddef.in.h: Update.
1896 * gnulib/import/stdint.in.h: Update.
1897 * gnulib/import/stdio.in.h: Update.
1898 * gnulib/import/stdlib.in.h: Update.
1899 * gnulib/import/str-two-way.h: Update.
1900 * gnulib/import/strchrnul.c: Update.
1901 * gnulib/import/strdup.c: Update.
1902 * gnulib/import/streq.h: Update.
1903 * gnulib/import/strerror-override.c: Update.
1904 * gnulib/import/strerror-override.h: Update.
1905 * gnulib/import/strerror.c: Update.
1906 * gnulib/import/string.in.h: Update.
1907 * gnulib/import/stripslash.c: Update.
1908 * gnulib/import/strnlen1.c: Update.
1909 * gnulib/import/strnlen1.h: Update.
1910 * gnulib/import/strstr.c: Update.
1911 * gnulib/import/strtok_r.c: Update.
1912 * gnulib/import/sys_stat.in.h: Update.
1913 * gnulib/import/sys_time.in.h: Update.
1914 * gnulib/import/sys_types.in.h: Update.
1915 * gnulib/import/tempname.c: Update.
1916 * gnulib/import/tempname.h: Update.
1917 * gnulib/import/time.in.h: Update.
1918 * gnulib/import/unistd--.h: Update.
1919 * gnulib/import/unistd-safer.h: Update.
1920 * gnulib/import/unistd.in.h: Update.
1921 * gnulib/import/unsetenv.c: Update.
1922 * gnulib/import/verify.h: Update.
1923 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1924 * gnulib/import/wchar.in.h: Update.
1925 * gnulib/import/wctype.in.h: Update.
1926 * gnulib/import/xalloc-oversized.h: Update.
1927 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1928 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1929
1930 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1931
1932 * record-btrace.c (get_thread_current_frame): Remove
1933 old_inferior_ptid.
1934
1935 2018-09-10 Jerome Guitton <guitton@adacore.com>
1936
1937 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1938 with check_tag to 1 if and only if the type is tagged and the
1939 component being searched cannot been found in the current
1940 view. Otherwise, always call ada_to_fixed_type with
1941 check_tag to 0.
1942
1943 2018-09-10 Xavier Roirand <roirand@adacore.com>
1944
1945 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1946 declaration.
1947 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1948 * ada-varobj.c (ada_varobj_get_number_of_children,
1949 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1950
1951 2018-09-10 Xavier Roirand <roirand@adacore.com>
1952
1953 * ada-valprint.c (ada_value_print): Use type instead of
1954 enclosing type.
1955
1956 2018-09-10 Xavier Roirand <roirand@adacore.com>
1957
1958 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1959 an array of access to unconstrained array.
1960
1961 2018-09-10 Xavier Roirand <roirand@adacore.com>
1962
1963 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1964 (ada_check_typedef): Use it.
1965
1966 2018-09-10 Xavier Roirand <roirand@adacore.com>
1967
1968 * ada-varobj.c (ada_varobj_describe_struct_child)
1969 (ada_varobj_describe_child): Handle union case like struct one.
1970
1971 2018-09-10 Tom Tromey <tom@tromey.com>
1972
1973 PR python/18380:
1974 * python/python.c (_initialize_python): Make example in "python"
1975 help work in Python 3.
1976
1977 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1978
1979 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1980 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1981 $(EXEEXT) to the script, as it is not a program.
1982
1983 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1984
1985 * python/py-prettyprint.c (pretty_print_one_value): Return
1986 gdbpy_ref<>.
1987 (print_string_repr): Adjust.
1988 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1989 * python/python-internal.h (apply_varobj_pretty_printer): Return
1990 gdbpy_ref<>.
1991 * varobj.c (varobj_value_get_print_value): Adjust.
1992
1993 2018-09-08 Tom Tromey <tom@tromey.com>
1994
1995 PR python/16047:
1996 * python/py-prettyprint.c (pretty_print_one_value): Check for
1997 to_string method.
1998
1999 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2000
2001 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2002 replace_operator_with_call.
2003
2004 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2005
2006 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2007
2008 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2009
2010 * ada-typeprint.c (print_range): Print the bounds using TYPE
2011 rather than its TYPE_TARGET_TYPE.
2012
2013 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2014
2015 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2016 call to ada_to_fixed_value_create.
2017
2018 2018-09-08 Jerome Guitton <guitton@adacore.com>
2019
2020 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2021
2022 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2023
2024 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2025 by calls to error.
2026
2027 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2028
2029 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2030 Move update of loop variable "fi".
2031
2032 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2033
2034 * ada-lang.c (value_assign_to_component): In the case of
2035 big-endian targets, extract the bits of the given VAL
2036 using an src_offset of zero if container is not a scalar.
2037
2038 2018-09-06 Simon Ser <contact@emersion.fr>
2039
2040 PR gdb/23105
2041 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2042 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2043 * fbsd-tdep.c (fbsd_make_note_desc): New.
2044 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2045 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2046 * target.h (enum target_object) Add FreeBSD-specific
2047 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2048
2049 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2050
2051 * compile/compile-c.h (generate_c_for_variable_locations):
2052 Change reference to pointer.
2053 * compile/compile-c-support.c (compile_program) <compute>:
2054 Likewise.
2055 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2056 (generate_c_for_for_one_variable): Likewise
2057 (generate_c_for_variable_locations): Likewise
2058 * compile/compile-c-types.c (compile_c_instance::convert_type):
2059 Likewise
2060 * compile/compile-cplus-symbols.c (convert_one_symbol):
2061 std::move the scope passed to enter_scope.
2062 * compile/compile-cplus-types.c
2063 (compile_cplus_instance::enter_scope): Make parameter
2064 rvalue-reference.
2065 (compile_cplus_instance::new_scope): Change reference to
2066 pointer.
2067 (compile_cplus_instance::convert_type): Likewise
2068 (compile_cplus_convert_typedef): std::move the scope passed to
2069 enter_scope.
2070 (compile_cplus_convert_struct_or_union): Likewise.
2071 (compile_cplus_convert_enum): Likewise.
2072 (compile_cplus_convert_namespace): Likewise.
2073 * compile/compile-cplus.h (compile_cplus_instance)
2074 <enter_scope>: Make parameter rvalue-reference.
2075 * compile/compile-internal.h (compile_instance)
2076 <get_cached_type>: Likewise
2077 * compile/compile-loc2c.c (push): Likewise
2078 (pushf): Likewise
2079 (unary): Likewise
2080 (binary): Likewise
2081 (print_label): Likewise
2082 (pushf_register_address): Likewise
2083 (pushf_register): Likewise
2084 (do_compile_dwarf_expr_to_c): Likewise
2085 (compile_dwarf_expr_to_c): Likewise
2086 (compile_dwarf_bounds_to_c): Likewise
2087 * compile/compile.c (compile_instance::get_cached_type):
2088 Likewise
2089 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2090 (compile_dwarf_bounds_to_c): Likewise
2091 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2092 (dwarf2_compile_property_to_c): Likewise
2093 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2094 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2095 Likewise
2096
2097 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2098
2099 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2100 * tui/tui-data.c (init_content_element): Don't initialize it.
2101
2102 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2103
2104 * tui/tui-data.h (struct tui_win_info)
2105 <detail::opaque>: Remove.
2106 * tui/tui-data.c (init_win_info): Remove assignment.
2107
2108 2018-09-05 Tom Tromey <tom@tromey.com>
2109
2110 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2111 -Wformat-nonliteral.
2112 * target-float.c (host_float_ops<T>::to_string)
2113 (host_float_ops<T>::from_string): Use
2114 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2115 * configure: Rebuild.
2116
2117 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2118
2119 * printcmd.c (printf_c_string): Use
2120 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2121 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2122
2123 2018-09-05 Tom Tromey <tom@tromey.com>
2124
2125 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2126
2127 2018-09-05 Tom de Vries <tdevries@suse.de>
2128
2129 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2130 with resolve_abstract_p == true.
2131 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2132 defaulting to false. Propagate resolve_abstract_p to
2133 dwarf2_fetch_die_loc_sect_off.
2134 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2135 parameter, defaulting to false.
2136 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2137 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2138 parameter.
2139 * dwarf2read.h (struct die_info): Forward-declare.
2140 (die_info_ptr): New typedef.
2141 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2142
2143 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2144
2145 GDB 8.2 released.
2146
2147 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2148 Pedro Alves <palves@redhat.com>
2149
2150 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2151 "aclocal-m4-deps.mk". Include file here.
2152 $(srcdir)/aclocal.m4: Add "configure.ac".
2153 * gnulib/aclocal-m4-deps.mk: New file.
2154 * gnulib/update-gnulib.sh: Automatically update
2155 "aclocal-m4-deps.mk".
2156
2157 2018-09-04 Tom Tromey <tom@tromey.com>
2158
2159 * configure: Rebuild.
2160 * configure.ac: Remove multi-ice code.
2161
2162 2018-09-04 Tom Tromey <tom@tromey.com>
2163
2164 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2165 (ada-exp.o): Update.
2166
2167 2018-09-04 Tom Tromey <tom@tromey.com>
2168
2169 * Makefile.in (printcmd.o, target-float.o): Remove.
2170 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2171
2172 2018-09-04 Tom Tromey <tom@tromey.com>
2173
2174 * gnulib/Makefile.in: Remove obsolete comment.
2175 * Makefile.in: Remove obsolete comment.
2176
2177 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2180 line with '+'.
2181
2182 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * riscv-tdep.c: Add 'prologue-value.h' include.
2185 (struct riscv_unwind_cache): New struct.
2186 (riscv_debug_unwinder): New global.
2187 (riscv_scan_prologue): Update arguments, capture register details
2188 from prologue scan.
2189 (riscv_skip_prologue): Reformat arguments line, move end of
2190 prologue calculation into riscv_scan_prologue.
2191 (riscv_frame_cache): Update return type, create
2192 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2193 details.
2194 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2195 (riscv_frame_prev_register): Use the trad_frame within the
2196 riscv_unwind_cache.
2197 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2198 flag.
2199
2200 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * trad-frame.h (trad_frame_set_realreg): Declare.
2203 (trad_frame_set_addr): Declare.
2204 * trad-frame.c (trad_frame_set_realreg): Define new function.
2205 (trad_frame_set_addr): Define new function.
2206 (trad_frame_set_reg_realreg): Use new function.
2207 (trad_frame_set_reg_addr): Use new function.
2208
2209 2018-09-01 Keith Seitz <keiths@redhat.com>
2210
2211 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2212 pulongest instead of "%lld".
2213 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2214 ATTRIBUTE_UNUSED.
2215
2216 2018-08-31 Tom Tromey <tom@tromey.com>
2217
2218 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2219 variant part type.
2220
2221 2018-08-31 Pedro Alves <palves@redhat.com>
2222
2223 * gdbarch.h: Regenerate.
2224
2225 2018-08-31 Pedro Alves <palves@redhat.com>
2226
2227 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2228 * target.h (Hardware watchpoint interfaces): Describe
2229 continuable/steppable/non-steppable watchpoints.
2230 * gdbarch.h, gdbarch.c: Regenerate.
2231
2232 2018-08-31 Pedro Alves <palves@redhat.com>
2233
2234 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2235 Delete.
2236 * s390-linux-nat.c
2237 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2238 * target.h (target_ops::have_continuable_watchpoint): Delete.
2239 (target_have_continuable_watchpoint): Delete.
2240 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2241 * target-delegates.c: Regenerate.
2242
2243 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2244
2245 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2246 the files present in "gnulib/import/m4/".
2247
2248 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2251 c.sw, c.swsp, and c.sdsp.
2252
2253 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2256 (riscv_read_misa_reg): Don't cache value read into inferior data.
2257 (riscv_new_inferior_data): Delete.
2258 (riscv_inferior_data_cleanup): Delete.
2259 (riscv_inferior_data): Delete.
2260 (riscv_invalidate_inferior_data): Delete.
2261 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2262
2263 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2264
2265 * compile/compile-cplus-types.c
2266 (compile_cplus_instance::leave_scope): Take the address of scope
2267 object.
2268 (compile_cplus_instance::convert_qualified_base): Compare quals
2269 to 0.
2270
2271 2018-08-30 Keith Seitz <keiths@redhat.com>
2272
2273 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2274 Use "%s" and host_address_to_string instead of "%p" in printf.
2275
2276 2018-08-29 Keith Seitz <keiths@redhat.com>
2277
2278 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2279 and compile-cplus-types.c.
2280 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2281 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2282 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2283 Declare.
2284 * compile/compile-c-support.c: Include compile-cplus.h.
2285 (load_libcompile): Templatize.
2286 (get_compile_context): "New" function.
2287 (c_get_compile_context): Use get_compile_context.
2288 (cplus_get_compile_context): New function.
2289 (cplus_push_user_expression, cplus_pop_user_expression)
2290 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2291 (cplus_compute_program): Define new structs/functions.
2292 * compile/compile-cplus-symmbols.c: New file.
2293 * compile/compile-cplus-types.c: New file.
2294 * compile/compile-cplus.h: New file.
2295 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2296 Declare.
2297 * compile/compile-object-load.c (get_out_value_type): Use
2298 strncmp_iw when comparing symbol names.
2299 (compile_object_load): Add mst_bss and mst_data.
2300 * compile/compile.c (_initialize_compile): Remove
2301 -Wno-implicit-function-declaration from `compile_args'.
2302 * compile/gcc-cp-plugin.h: New file.
2303 * NEWS: Mention C++ compile support and new debug options.
2304
2305 2018-08-29 Keith Seitz <keiths@redhat.com>
2306
2307 * linespec.c (collect_info::add_symbol): Make virtual.
2308 (struct symbol_searcher_collect_info): New struct.
2309 (symbol_searcher::find_all_symbols): New method.
2310 * symtab.h (class symbol_searcher): New class.
2311
2312 2018-08-29 Keith Seitz <keiths@redhat.com>
2313
2314 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2315 Change to vector of block_symbol. Update all users.
2316 (struct collect_info) <symbols>: Likewise.
2317 (collect_info::add_symbol): Take block_symbol as argument.
2318 Update all callers.
2319 (decode_compound_collector) <m_symbols>: Change type to vector
2320 of block_symbol. Update all users.
2321 (decode_compound_collector::operator ()): Change parameter type
2322 to block_symbol.
2323 (find_method, find_function_symbols, find_linespec_symbols)
2324 (find_label_symbols_in_block, find_label_symbols): Change symbol
2325 vectors to block_symbol vectors.
2326 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2327 block_symbol.
2328
2329 2018-08-29 Keith Seitz <keiths@redhat.com>
2330
2331 * linespec.c (symbolp): Remove typedef and VEC definitions.
2332 (bound_minimal_symbol_d): Likewise.
2333
2334 2018-08-29 Keith Seitz <keiths@redhat.com>
2335
2336 * linespec.c (decode_compound_collector::decode_compound_collector):
2337 Remove initialization for `m_symtabs'.
2338 (decode_compound_collector::release_symbols): Change return type
2339 to std::vector. Update all callers.
2340 (class decode_compound_collector) <m_symbols>: Change type to
2341 std::vector.
2342 (lookup_prefix_sym): Change return type to std::vector. Update all
2343 callers.
2344 (compare_symbols): Remove.
2345 (std_compare_symbols): Rename to `compare_symbols'.
2346 (find_method): Change `sym_classes' parameter to std::vector.
2347 Update all callers. Use std::sort to sort sym_classes.
2348 (find_linespec_symbols): Remove cleanup.
2349
2350 2018-08-29 Keith Seitz <keiths@redhat.com>
2351
2352 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2353 std::vector. Update all users.
2354 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2355 (struct collect_info) <minimal_symbols>: Likewise.
2356 (compare_msymbols): Return bool. Change parameters to const
2357 bound_minimal_symbol references.
2358 (find_method, find_function_symbols, find_linespec_symbols): Change
2359 `minsyms' parameter to std::vector. Update all callers.
2360
2361 2018-08-29 Keith Seitz <keiths@redhat.com>
2362
2363 * linespec.c (struct linespec) <label_symbols>: Change type to
2364 std::vector. Update all users.
2365 (find_label_symbols_in_block): Change `result' parameter to
2366 std::vector. Update all callers.
2367 (find_label_symbols): Return std::vector. Update all callers.
2368
2369 2018-08-29 Keith Seitz <keiths@redhat.com>
2370
2371 * linespec.c (struct linespec) <function_symbols>: Change type to
2372 std::vector. Update all users.
2373 (struct collect_info) <function_symbols>: Likewise.
2374 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2375 (std_compare_symbols): New function.
2376 (find_method, find_function_symbols, find_linespec_symbols)
2377 (find_label_symbols_in_block): Change `symbols' parameter to
2378 std::vector. Update all callers.
2379 (find_label_symbols): Likewise for `function_symbols' and
2380 `label_funcs_ret'.
2381
2382 2018-08-29 Keith Seitz <keiths@redhat.com>
2383
2384 * linespec.c (symtab_vector_up): Define.
2385 (struct linespec) <file_symtabs>: Change type to std::vector *.
2386 Update all uses.
2387 (struct collect_info) <file_symtabs>: Likewise.
2388 (collect_symtabs_from_filename): Return symtab_vector_up.
2389 Update all callers.
2390 (decode_objc): Remove cleanup.
2391 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2392 (symtab_collector::release_symtabs): Return symtab_vector_up.
2393 Update all callers.
2394 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2395 Update all users.
2396 (collect_symtabs_from_filename, symtabs_from_filename): Return
2397 symtab_vector_up. Update all callers.
2398
2399 2018-08-29 Tom Tromey <tom@tromey.com>
2400
2401 * csky-tdep.c (csky_analyze_prologue): Use
2402 core_addr_to_string_nz.
2403
2404 2018-08-29 Tom Tromey <tom@tromey.com>
2405
2406 * windows-nat.c (struct xlate_exception) <them>: Change type to
2407 DWORD.
2408 (xlate): Fix formatting. Remove last entry.
2409 (struct xlate_exception, xlate): Comment out.
2410 (windows_nat_target::resume): Use ranged for.
2411
2412 2018-08-29 Jim Wilson <jimw@sifive.com>
2413
2414 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2415 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2416 of NT_PRFPREG.
2417 (riscv_linux_nat_target::store_registers): Likewise.
2418
2419 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2420
2421 PR gdb/23555
2422 PR gdb/23558
2423 * gnulib/aclocal.m4: Regenerate.
2424 * gnulib/config.in: Regenerate.
2425 * gnulib/configure: Regenerate.
2426 * gnulib/import/Makefile.am: Update.
2427 * gnulib/import/Makefile.in: Update.
2428 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2429 * gnulib/import/_Noreturn.h: ... this.
2430 * gnulib/import/alloca.in.h: Update.
2431 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2432 * gnulib/import/arg-nonnull.h: ... this.
2433 * gnulib/import/assure.h: Update.
2434 * gnulib/import/at-func.c: Update.
2435 * gnulib/import/basename-lgpl.c: Update.
2436 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2437 * gnulib/import/c++defs.h: ... this.
2438 * gnulib/import/canonicalize-lgpl.c: Update.
2439 * gnulib/import/cdefs.h: Update.
2440 * gnulib/import/chdir-long.c: Update.
2441 * gnulib/import/chdir-long.h: Update.
2442 * gnulib/import/cloexec.c: Update.
2443 * gnulib/import/cloexec.h: Update.
2444 * gnulib/import/close.c: Update.
2445 * gnulib/import/closedir.c: Update.
2446 * gnulib/import/config.charset: Update.
2447 * gnulib/import/dirent-private.h: Update.
2448 * gnulib/import/dirent.in.h: Update.
2449 * gnulib/import/dirfd.c: Update.
2450 * gnulib/import/dirname-lgpl.c: Update.
2451 * gnulib/import/dirname.h: Update.
2452 * gnulib/import/dosname.h: Update.
2453 * gnulib/import/dup-safer-flag.c: Update.
2454 * gnulib/import/dup-safer.c: Update.
2455 * gnulib/import/dup.c: Update.
2456 * gnulib/import/dup2.c: Update.
2457 * gnulib/import/errno.in.h: Update.
2458 * gnulib/import/error.c: Update.
2459 * gnulib/import/error.h: Update.
2460 * gnulib/import/exitfail.c: Update.
2461 * gnulib/import/exitfail.h: Update.
2462 * gnulib/import/extra/update-copyright: Update.
2463 * gnulib/import/fchdir.c: Update.
2464 * gnulib/import/fcntl.c: Update.
2465 * gnulib/import/fcntl.in.h: Update.
2466 * gnulib/import/fd-hook.c: Update.
2467 * gnulib/import/fd-hook.h: Update.
2468 * gnulib/import/fd-safer-flag.c: Update.
2469 * gnulib/import/fd-safer.c: Update.
2470 * gnulib/import/fdopendir.c: Update.
2471 * gnulib/import/filename.h: Update.
2472 * gnulib/import/filenamecat-lgpl.c: Update.
2473 * gnulib/import/filenamecat.h: Update.
2474 * gnulib/import/flexmember.h: Update.
2475 * gnulib/import/float+.h: Update.
2476 * gnulib/import/float.c: Update.
2477 * gnulib/import/float.in.h: Update.
2478 * gnulib/import/fnmatch.c: Update.
2479 * gnulib/import/fnmatch.in.h: Update.
2480 * gnulib/import/fnmatch_loop.c: Update.
2481 * gnulib/import/fpucw.h: Update.
2482 * gnulib/import/frexp.c: Update.
2483 * gnulib/import/frexpl.c: Update.
2484 * gnulib/import/fstat.c: Update.
2485 * gnulib/import/fstatat.c: Update.
2486 * gnulib/import/getcwd-lgpl.c: Update.
2487 * gnulib/import/getcwd.c: Update.
2488 * gnulib/import/getdtablesize.c: Update.
2489 * gnulib/import/getlogin_r.c: Update.
2490 * gnulib/import/getprogname.c: Update.
2491 * gnulib/import/getprogname.h: Update.
2492 * gnulib/import/gettext.h: Update.
2493 * gnulib/import/gettimeofday.c: Update.
2494 * gnulib/import/glob-libc.h: Update.
2495 * gnulib/import/glob.c: Update.
2496 * gnulib/import/glob.in.h: Update.
2497 * gnulib/import/glob_internal.h: Update.
2498 * gnulib/import/glob_pattern_p.c: Update.
2499 * gnulib/import/globfree.c: Update.
2500 * gnulib/import/hard-locale.c: Update.
2501 * gnulib/import/hard-locale.h: Update.
2502 * gnulib/import/intprops.h: Update.
2503 * gnulib/import/inttypes.in.h: Update.
2504 * gnulib/import/isnan.c: Update.
2505 * gnulib/import/isnand-nolibm.h: Update.
2506 * gnulib/import/isnand.c: Update.
2507 * gnulib/import/isnanl-nolibm.h: Update.
2508 * gnulib/import/isnanl.c: Update.
2509 * gnulib/import/itold.c: Update.
2510 * gnulib/import/libc-config.h: Update.
2511 * gnulib/import/limits.in.h: Update.
2512 * gnulib/import/localcharset.c: Update.
2513 * gnulib/import/localcharset.h: Update.
2514 * gnulib/import/localtime-buffer.c: Update.
2515 * gnulib/import/localtime-buffer.h: Update.
2516 * gnulib/import/lstat.c: Update.
2517 * gnulib/import/m4/00gnulib.m4: Update.
2518 * gnulib/import/m4/__inline.m4: Update.
2519 * gnulib/import/m4/absolute-header.m4: Update.
2520 * gnulib/import/m4/alloca.m4: Update.
2521 * gnulib/import/m4/builtin-expect.m4: Update.
2522 * gnulib/import/m4/canonicalize.m4: Update.
2523 * gnulib/import/m4/chdir-long.m4: Update.
2524 * gnulib/import/m4/close.m4: Update.
2525 * gnulib/import/m4/closedir.m4: Update.
2526 * gnulib/import/m4/configmake.m4: Update.
2527 * gnulib/import/m4/d-ino.m4: Update.
2528 * gnulib/import/m4/d-type.m4: Update.
2529 * gnulib/import/m4/dirent_h.m4: Update.
2530 * gnulib/import/m4/dirfd.m4: Update.
2531 * gnulib/import/m4/dirname.m4: Update.
2532 * gnulib/import/m4/double-slash-root.m4: Update.
2533 * gnulib/import/m4/dup.m4: Update.
2534 * gnulib/import/m4/dup2.m4: Update.
2535 * gnulib/import/m4/eealloc.m4: Update.
2536 * gnulib/import/m4/environ.m4: Update.
2537 * gnulib/import/m4/errno_h.m4: Update.
2538 * gnulib/import/m4/error.m4: Update.
2539 * gnulib/import/m4/exponentd.m4: Update.
2540 * gnulib/import/m4/exponentl.m4: Update.
2541 * gnulib/import/m4/extensions.m4: Update.
2542 * gnulib/import/m4/extern-inline.m4: Update.
2543 * gnulib/import/m4/fchdir.m4: Update.
2544 * gnulib/import/m4/fcntl-o.m4: Update.
2545 * gnulib/import/m4/fcntl.m4: Update.
2546 * gnulib/import/m4/fcntl_h.m4: Update.
2547 * gnulib/import/m4/fdopendir.m4: Update.
2548 * gnulib/import/m4/filenamecat.m4: Update.
2549 * gnulib/import/m4/flexmember.m4: Update.
2550 * gnulib/import/m4/float_h.m4: Update.
2551 * gnulib/import/m4/fnmatch.m4: Update.
2552 * gnulib/import/m4/fnmatch_h.m4: Update.
2553 * gnulib/import/m4/fpieee.m4: Update.
2554 * gnulib/import/m4/frexp.m4: Update.
2555 * gnulib/import/m4/frexpl.m4: Update.
2556 * gnulib/import/m4/fstat.m4: Update.
2557 * gnulib/import/m4/fstatat.m4: Update.
2558 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2559 * gnulib/import/m4/getcwd-path-max.m4: Update.
2560 * gnulib/import/m4/getcwd.m4: Update.
2561 * gnulib/import/m4/getdtablesize.m4: Update.
2562 * gnulib/import/m4/getlogin.m4: Update.
2563 * gnulib/import/m4/getlogin_r.m4: Update.
2564 * gnulib/import/m4/getpagesize.m4: Update.
2565 * gnulib/import/m4/getprogname.m4: Update.
2566 * gnulib/import/m4/gettimeofday.m4: Update.
2567 * gnulib/import/m4/glibc21.m4: Update.
2568 * gnulib/import/m4/glob.m4: Update.
2569 * gnulib/import/m4/glob_h.m4: Update.
2570 * gnulib/import/m4/gnulib-cache.m4: Update.
2571 * gnulib/import/m4/gnulib-common.m4: Update.
2572 * gnulib/import/m4/gnulib-comp.m4: Update.
2573 * gnulib/import/m4/gnulib-tool.m4: Update.
2574 * gnulib/import/m4/hard-locale.m4: Update.
2575 * gnulib/import/m4/include_next.m4: Update.
2576 * gnulib/import/m4/inttypes-pri.m4: Update.
2577 * gnulib/import/m4/inttypes.m4: Update.
2578 * gnulib/import/m4/isnand.m4: Update.
2579 * gnulib/import/m4/isnanl.m4: Update.
2580 * gnulib/import/m4/largefile.m4: Update.
2581 * gnulib/import/m4/limits-h.m4: Update.
2582 * gnulib/import/m4/localcharset.m4: Update.
2583 * gnulib/import/m4/locale-fr.m4: Update.
2584 * gnulib/import/m4/locale-ja.m4: Update.
2585 * gnulib/import/m4/locale-zh.m4: Update.
2586 * gnulib/import/m4/localtime-buffer.m4: Update.
2587 * gnulib/import/m4/longlong.m4: Update.
2588 * gnulib/import/m4/lstat.m4: Update.
2589 * gnulib/import/m4/malloc.m4: Update.
2590 * gnulib/import/m4/malloca.m4: Update.
2591 * gnulib/import/m4/math_h.m4: Update.
2592 * gnulib/import/m4/mbrtowc.m4: Update.
2593 * gnulib/import/m4/mbsinit.m4: Update.
2594 * gnulib/import/m4/mbsrtowcs.m4: Update.
2595 * gnulib/import/m4/mbstate_t.m4: Update.
2596 * gnulib/import/m4/memchr.m4: Update.
2597 * gnulib/import/m4/memmem.m4: Update.
2598 * gnulib/import/m4/mempcpy.m4: Update.
2599 * gnulib/import/m4/memrchr.m4: Update.
2600 * gnulib/import/m4/mkdir.m4: Update.
2601 * gnulib/import/m4/mkstemp.m4: Update.
2602 * gnulib/import/m4/mmap-anon.m4: Update.
2603 * gnulib/import/m4/mode_t.m4: Update.
2604 * gnulib/import/m4/msvc-inval.m4: Update.
2605 * gnulib/import/m4/msvc-nothrow.m4: Update.
2606 * gnulib/import/m4/multiarch.m4: Update.
2607 * gnulib/import/m4/nocrash.m4: Update.
2608 * gnulib/import/m4/off_t.m4: Update.
2609 * gnulib/import/m4/onceonly.m4: Update.
2610 * gnulib/import/m4/open-cloexec.m4: Update.
2611 * gnulib/import/m4/open.m4: Update.
2612 * gnulib/import/m4/openat.m4: Update.
2613 * gnulib/import/m4/opendir.m4: Update.
2614 * gnulib/import/m4/pathmax.m4: Update.
2615 * gnulib/import/m4/rawmemchr.m4: Update.
2616 * gnulib/import/m4/readdir.m4: Update.
2617 * gnulib/import/m4/readlink.m4: Update.
2618 * gnulib/import/m4/realloc.m4: Update.
2619 * gnulib/import/m4/rename.m4: Update.
2620 * gnulib/import/m4/rewinddir.m4: Update.
2621 * gnulib/import/m4/rmdir.m4: Update.
2622 * gnulib/import/m4/save-cwd.m4: Update.
2623 * gnulib/import/m4/secure_getenv.m4: Update.
2624 * gnulib/import/m4/setenv.m4: Update.
2625 * gnulib/import/m4/signal_h.m4: Update.
2626 * gnulib/import/m4/ssize_t.m4: Update.
2627 * gnulib/import/m4/stat-time.m4: Update.
2628 * gnulib/import/m4/stat.m4: Update.
2629 * gnulib/import/m4/std-gnu11.m4: Update.
2630 * gnulib/import/m4/stdbool.m4: Update.
2631 * gnulib/import/m4/stddef_h.m4: Update.
2632 * gnulib/import/m4/stdint.m4: Update.
2633 * gnulib/import/m4/stdio_h.m4: Update.
2634 * gnulib/import/m4/stdlib_h.m4: Update.
2635 * gnulib/import/m4/strchrnul.m4: Update.
2636 * gnulib/import/m4/strdup.m4: Update.
2637 * gnulib/import/m4/strerror.m4: Update.
2638 * gnulib/import/m4/string_h.m4: Update.
2639 * gnulib/import/m4/strstr.m4: Update.
2640 * gnulib/import/m4/strtok_r.m4: Update.
2641 * gnulib/import/m4/sys_socket_h.m4: Update.
2642 * gnulib/import/m4/sys_stat_h.m4: Update.
2643 * gnulib/import/m4/sys_time_h.m4: Update.
2644 * gnulib/import/m4/sys_types_h.m4: Update.
2645 * gnulib/import/m4/tempname.m4: Update.
2646 * gnulib/import/m4/time_h.m4: Update.
2647 * gnulib/import/m4/unistd-safer.m4: Update.
2648 * gnulib/import/m4/unistd_h.m4: Update.
2649 * gnulib/import/m4/warn-on-use.m4: Update.
2650 * gnulib/import/m4/wchar_h.m4: Update.
2651 * gnulib/import/m4/wchar_t.m4: Update.
2652 * gnulib/import/m4/wctype_h.m4: Update.
2653 * gnulib/import/m4/wint_t.m4: Update.
2654 * gnulib/import/malloc.c: Update.
2655 * gnulib/import/malloc/scratch_buffer.h: Update.
2656 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2657 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2658 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2659 * gnulib/import/malloca.c: Update.
2660 * gnulib/import/malloca.h: Update.
2661 * gnulib/import/malloca.valgrind: Update.
2662 * gnulib/import/math.in.h: Update.
2663 * gnulib/import/mbrtowc.c: Update.
2664 * gnulib/import/mbsinit.c: Update.
2665 * gnulib/import/mbsrtowcs-impl.h: Update.
2666 * gnulib/import/mbsrtowcs-state.c: Update.
2667 * gnulib/import/mbsrtowcs.c: Update.
2668 * gnulib/import/memchr.c: Update.
2669 * gnulib/import/memmem.c: Update.
2670 * gnulib/import/mempcpy.c: Update.
2671 * gnulib/import/memrchr.c: Update.
2672 * gnulib/import/mkdir.c: Update.
2673 * gnulib/import/mkstemp.c: Update.
2674 * gnulib/import/msvc-inval.c: Update.
2675 * gnulib/import/msvc-inval.h: Update.
2676 * gnulib/import/msvc-nothrow.c: Update.
2677 * gnulib/import/msvc-nothrow.h: Update.
2678 * gnulib/import/open.c: Update.
2679 * gnulib/import/openat-die.c: Update.
2680 * gnulib/import/openat-priv.h: Update.
2681 * gnulib/import/openat-proc.c: Update.
2682 * gnulib/import/openat.c: Update.
2683 * gnulib/import/openat.h: Update.
2684 * gnulib/import/opendir.c: Update.
2685 * gnulib/import/pathmax.h: Update.
2686 * gnulib/import/pipe-safer.c: Update.
2687 * gnulib/import/rawmemchr.c: Update.
2688 * gnulib/import/readdir.c: Update.
2689 * gnulib/import/readlink.c: Update.
2690 * gnulib/import/realloc.c: Update.
2691 * gnulib/import/ref-add.sin: Update.
2692 * gnulib/import/ref-del.sin: Update.
2693 * gnulib/import/rename.c: Update.
2694 * gnulib/import/rewinddir.c: Update.
2695 * gnulib/import/rmdir.c: Update.
2696 * gnulib/import/same-inode.h: Update.
2697 * gnulib/import/save-cwd.c: Update.
2698 * gnulib/import/save-cwd.h: Update.
2699 * gnulib/import/scratch_buffer.h: Update.
2700 * gnulib/import/secure_getenv.c: Update.
2701 * gnulib/import/setenv.c: Update.
2702 * gnulib/import/signal.in.h: Update.
2703 * gnulib/import/stat-time.c: Update.
2704 * gnulib/import/stat-time.h: Update.
2705 * gnulib/import/stat-w32.c: Update.
2706 * gnulib/import/stat-w32.h: Update.
2707 * gnulib/import/stat.c: Update.
2708 * gnulib/import/stdbool.in.h: Update.
2709 * gnulib/import/stddef.in.h: Update.
2710 * gnulib/import/stdint.in.h: Update.
2711 * gnulib/import/stdio.in.h: Update.
2712 * gnulib/import/stdlib.in.h: Update.
2713 * gnulib/import/str-two-way.h: Update.
2714 * gnulib/import/strchrnul.c: Update.
2715 * gnulib/import/strdup.c: Update.
2716 * gnulib/import/streq.h: Update.
2717 * gnulib/import/strerror-override.c: Update.
2718 * gnulib/import/strerror-override.h: Update.
2719 * gnulib/import/strerror.c: Update.
2720 * gnulib/import/string.in.h: Update.
2721 * gnulib/import/stripslash.c: Update.
2722 * gnulib/import/strnlen1.c: Update.
2723 * gnulib/import/strnlen1.h: Update.
2724 * gnulib/import/strstr.c: Update.
2725 * gnulib/import/strtok_r.c: Update.
2726 * gnulib/import/sys_stat.in.h: Update.
2727 * gnulib/import/sys_time.in.h: Update.
2728 * gnulib/import/sys_types.in.h: Update.
2729 * gnulib/import/tempname.c: Update.
2730 * gnulib/import/tempname.h: Update.
2731 * gnulib/import/time.in.h: Update.
2732 * gnulib/import/unistd--.h: Update.
2733 * gnulib/import/unistd-safer.h: Update.
2734 * gnulib/import/unistd.in.h: Update.
2735 * gnulib/import/unsetenv.c: Update.
2736 * gnulib/import/verify.h: Update.
2737 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2738 * gnulib/import/wchar.in.h: Update.
2739 * gnulib/import/wctype.in.h: Update.
2740 * gnulib/import/xalloc-oversized.h: Update.
2741 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2742 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2743
2744 2018-08-16 Gary Benson <gbenson@redhat.com>
2745
2746 PR gdb/13000:
2747 * gdb/main.c (captured_main_1): Exit with nonzero status
2748 in batch mode if the last command to be executed failed.
2749 * NEWS: Mention the above.
2750
2751 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2752
2753 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2754 end of warning message.
2755
2756 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2757
2758 PR gdb/22943:
2759 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2760 (aarch64_extract_return_value): Use
2761 aapcs_is_vfp_call_or_return_candidate.
2762 (aarch64_return_in_memory): Likewise.
2763 (aarch64_store_return_value): Likewise.
2764
2765 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2766
2767 * aarch64-tdep.c
2768 (aapcs_is_vfp_call_or_return_candidate): Make static
2769 (pass_in_v_or_stack): Remove function.
2770 (pass_in_v_vfp_candidate): New function.
2771 (aarch64_push_dummy_call): Check for float register candidates.
2772
2773 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2774
2775 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2776 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2777 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2778
2779 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2780
2781 PR build/23399
2782 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2783 (struct ipa_sym_addresses): Rename to...
2784 (struct ipa_sym_addresses_common): ... this.
2785 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2786
2787 2018-08-28 Tom Tromey <tom@tromey.com>
2788
2789 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2790 (token_fifo): Now a std::vector.
2791 (yylex, c_parse): Update.
2792 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2793 (token_fifo): Now a std::vector.
2794 (yylex, d_parse): Update.
2795 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2796 (token_fifo): Now a std::vector.
2797 (yylex, go_parse): Update.
2798
2799 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2800
2801 * parser-defs.h (struct type_stack) <elements>: Change type to
2802 std::vector<union type_stack_elt>.
2803 <depth, size>: Remove.
2804 * parse.c (parse_exp_in_context_1): Adjust.
2805 (type_stack_reserve): Remove.
2806 (check_type_stack_depth): Remove.
2807 (insert_into_type_stack): Adjust to std::vector.
2808 (insert_type): Likewise.
2809 (push_type): Likewise.
2810 (push_type_int): Likewise.
2811 (insert_type_address_space): Likewise.
2812 (pop_type): Likewise.
2813 (pop_type_int): Likewise.
2814 (pop_typelist): Likewise.
2815 (pop_type_stack): Likewise.
2816 (append_type_stack): Likewise.
2817 (push_type_stack): Likewise.
2818 (get_type_stack): Likewise.
2819 (type_stack_cleanup): Likewise.
2820 (push_typelist): Likewise.
2821 (follow_types): Likewise.
2822 (_initialize_parse): Likewise.
2823
2824 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2825
2826 * NEWS: Mention csky target.
2827
2828 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2829 Hafiz Abid Qadeer <abidh@codesourcery.com>
2830 Don Breazeal <donb@codesourcery.com>
2831
2832 * csky-linux-tdep.c: New file.
2833 * csky-tdep.c: Likewise.
2834 * csky-tdep.h: Likewise.
2835 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2836 csky-tdep.o.
2837 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2838 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2839 * configure.tgt: Add csky support.
2840
2841 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2842
2843 * python/py-framefilter.c (py_print_frame): Print frame architecture
2844 when printing on an MI output.
2845
2846 2018-08-27 Tom Tromey <tom@tromey.com>
2847
2848 PR build/23087:
2849 * configure: Rebuild.
2850 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2851
2852 2018-08-27 Tom Tromey <tom@tromey.com>
2853
2854 * aarch64-linux-tdep.c
2855 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2856 casts to int.
2857
2858 2018-08-27 Tom Tromey <tom@tromey.com>
2859
2860 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2861 unsigned.
2862 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2863 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2864 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2865 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2866 unsigned.
2867
2868 2018-08-27 Tom Tromey <tom@tromey.com>
2869
2870 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2871 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2872
2873 2018-08-27 Tom Tromey <tom@tromey.com>
2874
2875 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2876 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2877 ULONGEST_MAX.
2878 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2879 ULONGEST_MAX.
2880 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2881 ULONGEST_MAX.
2882 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2883 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2884 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2885 ULONGEST_MAX.
2886 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2887 (ppc64_linux_sigaction_tramp_frame)
2888 (ppc32_linux_sighandler_tramp_frame)
2889 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2890 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2891 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2892 * mn10300-linux-tdep.c (am33_linux_sigframe)
2893 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2894 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2895 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2896 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2897 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2898 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2899 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2900 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2901 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2902 * microblaze-linux-tdep.c
2903 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2904 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2905 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2906 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2907 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2908 * common/common-types.h (ULONGEST_MAX): New define.
2909 (CORE_ADDR_MAX): Fix formatting.
2910 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2911 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2912 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2913 (arm_linux_rt_sigreturn_tramp_frame)
2914 (arm_eabi_linux_sigreturn_tramp_frame)
2915 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2916 (thumb2_eabi_linux_sigreturn_tramp_frame)
2917 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2918 (arm_linux_restart_syscall_tramp_frame)
2919 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2920 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2921 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2922 ULONGEST_MAX.
2923 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2924
2925 2018-08-27 Tom Tromey <tom@tromey.com>
2926
2927 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2928 CORE_ADDR_MAX.
2929 * mips-tdep.c (mips_deal_with_atomic_sequence)
2930 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2931 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2932 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2933 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2934 CORE_ADDR_MAX.
2935 * aarch64-tdep.c (aarch64_software_single_step): Use
2936 CORE_ADDR_MAX.
2937
2938 2018-08-27 Tom Tromey <tom@tromey.com>
2939
2940 * linespec.c (complete_linespec_component): Add cast to "char".
2941 * completer.c (completion_tracker::build_completion_result): Add
2942 cast to "char".
2943
2944 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * solist.h (struct solist, struct target_so_ops): Fix
2947 indentation.
2948
2949 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2950
2951 * ada-tasks.c (ada_task_info_s): Remove typedef.
2952 (DEF_VEC_O(ada_task_info_s)): Remove.
2953 (struct ada_tasks_inferior_data): Initialize fields.
2954 <task_list>: Make an std::vector.
2955 (get_ada_tasks_inferior_data): Allocate with new.
2956 (ada_get_task_number): Adjust.
2957 (get_task_number_from_id): Likewise.
2958 (valid_task_id): Likewise.
2959 (ada_get_task_info_from_ptid): Likewise.
2960 (iterate_over_live_ada_tasks): Likewise.
2961 (add_ada_task): Likewise.
2962 (read_known_tasks): Likewise.
2963 (ada_build_task_list): Likewise.
2964 (print_ada_task_info): Likewise.
2965 (info_task): Likewise.
2966 (task_command_1): Likewise.
2967
2968 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * ada-lang.c (add_angle_brackets): Return std::string.
2971
2972 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2973
2974 * python/py-threadevent.c (py_get_event_thread): Initialize
2975 pythread.
2976
2977 2018-08-24 Pedro Alves <palves@redhat.com>
2978
2979 * python/py-bpevent.c (create_breakpoint_event_object): Use
2980 copy-initialization.
2981 * python/py-continueevent.c (emit_continue_event): Use
2982 copy-initialization.
2983 * python/py-exitedevent.c (create_exited_event_object): Return a
2984 gdbpy_ref<>.
2985 (emit_exited_event): Use copy-initialization.
2986 * python/py-inferior.c (python_new_inferior)
2987 (python_inferior_deleted, add_thread_object): Use
2988 copy-initialization.
2989 * python/py-infevents.c (create_inferior_call_event_object)
2990 (create_register_changed_event_object)
2991 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2992 (emit_inferior_call_event, emit_memory_changed_event)
2993 (emit_register_changed_event): Use copy-initialization.
2994 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2995 Return a gdbpy_ref<>.
2996 (emit_new_objfile_event): Use copy-initialization.
2997 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2998 (emit_clear_objfiles_event): Use copy-initialization.
2999 * python/py-signalevent.c (create_signal_event_object): Use
3000 copy-initialization.
3001 * python/py-threadevent.c (create_thread_event_object): Use
3002 copy-initialization.
3003
3004 2018-08-24 Pedro Alves <palves@redhat.com>
3005 Simon Marchi <simon.marchi@ericsson.com>
3006
3007 PR gdb/23379
3008 * python/py-continueevent.c: Include "gdbthread.h".
3009 (create_continue_event_object): Add intro comment. Add 'ptid'
3010 parameter. Use it to find thread to pass to
3011 create_thread_event_object.
3012 (emit_continue_event): Pass PTID down to
3013 create_continue_event_object.
3014 * python/py-event.h (py_get_event_thread): Declare.
3015 (create_thread_event_object): Remove default from 'thread'
3016 parameter.
3017 * python/py-stopevent.c (create_stop_event_object): Use
3018 py_get_event_thread.
3019 * python/py-threadevent.c (get_event_thread): Rename to ...
3020 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3021 and use it to find the thread.
3022 (create_thread_event_object): Assert that THREAD isn't null.
3023 Don't find the event thread here.
3024
3025 2018-08-23 Kevin Buettner <kevinb@redhat.com>
3026
3027 * block.h (blockrange, blockranges): New struct declarations.
3028 (struct block): Add new field named `ranges'.
3029 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3030 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3031 macros for accessing ranges in struct block.
3032 (make_blockranges): New declaration.
3033 block.c (make_blockranges): New function.
3034 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3035 for block.
3036 * symtab.h (find_pc_partial_function): Add new parameter `block'.
3037 * blockframe.c (cache_pc_function_block): New static global.
3038 (clear_pc_function_cache): Clear cache_pc_function_block.
3039 (find_pc_partial_function): Move comment to symtab.h. Add
3040 support for non-contiguous blocks.
3041 * cli/cli-cmds.c (block.h): Include.
3042 (print_disassembly): Handle printing of non-contiguous blocks.
3043 (disassemble_current_function): Likewise.
3044 (disassemble_command): Likewise.
3045
3046 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3047 BLOCK_START.
3048 * blockframe.c (get_pc_function_start): Likewise.
3049 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3050 (gcc_symbol_address): Likewise.
3051 * compile/compile-object-run.c (compile_object_run): Likewise.
3052 * compile/compile.c (get_expr_block_and_pc): Likewise.
3053 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3054 (func_addr_to_tail_call_list): Likewise.
3055 * findvar.c (default_read_var_value): Likewise.
3056 * inline-frame.c (inline_frame_this_id): Likewise.
3057 (skip-inline_frames): Likewise.
3058 * infcmd.c (until_next_command): Likewise.
3059 * linespec.c (convert_linespec_to_sals): Likewise.
3060 * parse.c (parse_exp_in_context_1): Likewise.
3061 * printcmd.c (build_address_symbolic): likewise.
3062 (info_address_command): Likewise.
3063 symtab.c (find_function_start_sal): Likewise.
3064 (skip_prologue_sal): Likewise.
3065 (find_function_alias_target): Likewise.
3066 (find_gnu_ifunc): Likewise.
3067 * stack.c (find_frame_funname): Likewise.
3068 * symtab.c (fixup_symbol_section): Likewise.
3069 (find_function_start_sal): Likewise.
3070 (skip_prologue_sal): Likewsie.
3071 (find_function_alias_target): Likewise.
3072 (find_gnu_ifunc): Likewise.
3073 * tracepoint.c (info_scope_command): Likewise.
3074 * value.c (value_fn_field): Likewise.
3075
3076 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3077 in place of find_pc_partial_function.
3078 * blockframe.c (find_function_entry_range_from_pc): New function.
3079 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3080 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3081 for each range in a block.
3082
3083
3084 2018-08-23 Xavier Roirand <roirand@adacore.com>
3085
3086 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3087 incrementation.
3088
3089 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3090
3091 * solib-svr4.c (read_program_headers_from_bfd): Return
3092 gdb::optional<gdb::byte_vector>.
3093 (svr4_exec_displacement): Adjust.
3094
3095 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3096
3097 * solib-svr4.c (read_program_header): Return
3098 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3099 (find_program_interpreter): Return
3100 gdb::optional<gdb::byte_vector>.
3101 (scan_dyntag_auxv): Adjust.
3102 (enable_break): Adjust.
3103 (svr4_exec_displacement): Adjust.
3104
3105 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3106
3107 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3108 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3109
3110 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3111
3112 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3113 string_vprintf.
3114 * guile/scm-utils.c (gdbscm_printf): Likewise.
3115 * serial.c (serial_printf): Likewise.
3116 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3117
3118 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3119
3120 * stack.c (print_frame): Print frame architecture when printing on
3121 an MI output.
3122 * NEWS: Mention new "arch" attribute in frame output.
3123
3124 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3125
3126 * arch/aarch64.h (aarch64_regnum): Update comment.
3127
3128 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3129
3130 * NEWS: Add SVE to 8.2 section.
3131
3132 2018-08-21 Pedro Alves <palves@redhat.com>
3133
3134 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3135 out from gdbscm_parse_function_args.
3136 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3137 gdbscm_parse_function_args_1.
3138
3139 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3140
3141 PR gdb/17816
3142 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3143 operator.
3144
3145 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3146
3147 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3148
3149 2018-08-19 Michael Spang <spang@google.com>
3150
3151 PR gdb/11786
3152 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3153 for PT_TLS segments.
3154
3155 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3156
3157 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3158 dwarf_variable_value.
3159 * dwarf2-frame.c (class dwarf_expr_executor):
3160 Add override for dwarf_variable_value.
3161 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3162 (class symbol_needs_eval_context): Likewise.
3163 (indirect_synthetic_pointer): Add forward declaration.
3164 (sect_variable_value): New function.
3165 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3166 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3167 for DW_OP_GNU_variable_value.
3168
3169 2018-08-16 Tom Tromey <tom@tromey.com>
3170
3171 * top.c (read_command_file): Update.
3172 (command_line_input): Remove "repeat" argument.
3173 * ada-lang.c (get_selections): Update.
3174 * linespec.c (decode_line_2): Update.
3175 * defs.h (command_line_input): Remove argument.
3176 * cli/cli-script.c (read_next_line): Update.
3177 * python/py-gdb-readline.c: Update.
3178
3179 2018-08-17 Tom Tromey <tom@tromey.com>
3180
3181 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3182 command_line_input.
3183
3184 2018-08-15 Tom Tromey <tom@tromey.com>
3185
3186 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3187
3188 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3189
3190 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3191 If used, use find_pc_partial_function to find address range
3192 to disassemble.
3193 * mi/mi-main.c (mi_cmd_list_features): Report
3194 "data-disassemble-a-option" feature.
3195 * NEWS: Mention new -data-disassemble option -a.
3196
3197 2018-08-13 Tom Tromey <tom@tromey.com>
3198
3199 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3200
3201 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3202
3203 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3204 (aarch64_linux_collect_sve_regset): Likewise.
3205 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3206 * regcache.h (regcache_map_entry_size): New function.
3207
3208 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3209
3210 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3211 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3212 (SVE_HEADER_VL_LENGTH): Likewise.
3213 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3214 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3215 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3216 (SVE_HEADER_SIZE_OFFSET): Likewise.
3217 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3218 (SVE_HEADER_VL_OFFSET): Likewise.
3219 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3220 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3221 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3222 (SVE_HEADER_SIZE): Likewise.
3223 (aarch64_linux_core_read_vq): Add function.
3224 (aarch64_linux_core_read_description): Check for SVE section.
3225
3226 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3227
3228 * aarch64-fbsd-tdep.c
3229 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3230 collect_size.
3231 * aarch64-linux-tdep.c
3232 (aarch64_linux_iterate_over_regset_sections): Likewise.
3233 * alpha-linux-tdep.c
3234 (alpha_linux_iterate_over_regset_sections):
3235 * alpha-nbsd-tdep.c
3236 (alphanbsd_iterate_over_regset_sections): Likewise.
3237 * amd64-fbsd-tdep.c
3238 (amd64fbsd_iterate_over_regset_sections): Likewise.
3239 * amd64-linux-tdep.c
3240 (amd64_linux_iterate_over_regset_sections): Likewise.
3241 * arm-bsd-tdep.c
3242 (armbsd_iterate_over_regset_sections): Likewise.
3243 * arm-fbsd-tdep.c
3244 (arm_fbsd_iterate_over_regset_sections): Likewise.
3245 * arm-linux-tdep.c
3246 (arm_linux_iterate_over_regset_sections): Likewise.
3247 * corelow.c (get_core_registers_cb): Likewise.
3248 (core_target::fetch_registers): Likewise.
3249 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3250 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3251 * gdbarch.h (void): Regenerate.
3252 * gdbarch.sh: Add supply_size and collect_size.
3253 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3254 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3255 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3256 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3257 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3258 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3259 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3260 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3261 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3262 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3263 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3264 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3265 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3266 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3267 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3268 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3269 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3270 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3271 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3272 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3273 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3274 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3275 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3276 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3277 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3278 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3279 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3280 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3281 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3282 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3283
3284 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3285
3286 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3287 with string_printf.
3288
3289 2018-08-10 Keith Seitz <keiths@redhat.com>
3290
3291 * compile/compile-c-support.c (add_code_header, add_code_footer):
3292 Move into policy class.
3293 (c_push_user_expression, pop_user_expression_nop)
3294 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3295 (compile_program): New host class.
3296 (c_compile_program): New typedef.
3297 (c_compute_porgram): Use c_compile_program.
3298
3299 2018-08-10 Keith Seitz <keiths@redhat.com>
3300
3301 * compile/compile-internal.h (compile_instance::~compile_instance):
3302 Remove calls to htab_delete.
3303 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3304 * compile.c (compile_instance::compile_instance): Initialize
3305 htab unique pointers.
3306 (compile_instance::get_cached_type, compile_instance::insert_type)
3307 (compile_instance::error_symbol_once): Update for unique_ptr.
3308
3309 2018-08-10 Keith Seitz <keiths@redhat.com>
3310
3311 * compile/compile-c-symbols.c (struct symbol_error)
3312 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3313 (compile_instance::insert_symbol_error)
3314 (compile_instance::error_symbol_once): Move to ...
3315 * compile/compile.c: ... here.
3316
3317 2018-08-10 Keith Seitz <keiths@redhat.com>
3318
3319 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3320 instead of `new_compile_instance'.
3321 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3322 Update description.
3323 If the symbol error map is not initialized, create it.
3324 (generate_c_for_for_one_symbol): Do not check/initialize
3325 the symbol error map.
3326 * compile/compile-c-types.c (compile_c_instance): Make a class.
3327 Update all callers.
3328 (compile_instance::compile_instance): Initialize the type cache.
3329 (get_cached_type): New function.
3330 (insert_type): Update description.
3331 (compile_c_instance::m_default_cflags): Define.
3332 (convert_type): Update description. Use get_cached_type.
3333 (delete_instance): Moved to destructor.
3334 (new_compile_instance): Moved to constructor.
3335 * compile/compile-c.h (compile_c_instance): Make class inheriting
3336 from compile_instance.
3337 <base>: Remove field.
3338 <type_map, symbol_err_map>: Move to base class.
3339 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3340 * compile/compile-internal.h (compile_instance): Make class.
3341 <type_map_t, symbol_err_map_t>: Define.
3342 <fe>: Rename to `m_gcc_fe'.
3343 <scope, block, gcc_target_options>: Add `m_' prefix.
3344 <m_type_map, m_symbol_err_map>: New fields, moved from
3345 compile_c_instance.
3346 <destroy>: Remove.
3347 (convert_type, new_compile_instance): Remove.
3348 * compile/compile.c (cleanup_compile_instance): Remove.
3349 (compile_to_object): Use unique_ptr to eliminate cleanups.
3350 (compile_instance::set_print_callback, compile_instance::version)
3351 (compile_instance::set_verbose)
3352 (compile_instance::set_driver_filename)
3353 (compile_instance::set_triplet_regexp)
3354 (compile_instance::set_arguments)
3355 (compile_instance::set_source_file)
3356 (compile_instance::compile): Define.
3357
3358 2018-08-10 Keith Seitz <keiths@redhat.com>
3359
3360 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3361 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3362 gcc-c-fe.def to define C plugin.
3363 (delete_instance): Delete `c_plugin'.
3364 (new_compile_instance): Initialize `c_plugin'.
3365 * compile/compile-c.h: Include gcc_c_plugin.h.
3366 (struct compile_c_instance) <c_plugin>: New member.
3367 * gcc-c-plugin.h: New file.
3368 Update all callers with API change.
3369
3370 2018-08-10 Keith Seitz <keiths@redhat.com>
3371
3372 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3373 (HFILES_NO_SRCDIR): ... to here.
3374 Add compile-internal.h and compile-c.h.
3375 * compile/compile-c-support.c: Include compile-c.h.
3376 * compile/compile-c-symbols.c: Include compile-c.h.
3377 (generate_c_for_variable_locations): Update comment.
3378 * compile/compile-c-types.c: Include compile-c.h.
3379 * compile/compile-c.h: New file -- moved C language declarations
3380 from other files here.
3381 * compile/compile-internal.h: Do not include hashtab.h or
3382 common/enum-flags.h.
3383 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3384 (gcc_convert_symbol, gcc_symbol_address)
3385 (generate_c_for_variable_locations, c_get_mode_for_size)
3386 (c_get_range_decl_name): Definitions moved to compile-c.h.
3387 * compile/compile-loc2c.c: Include compile-c.h.
3388
3389 2018-08-10 Keith Seitz <keiths@redhat.com>
3390
3391 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3392 (c_symbol_substitution_name): ... this.
3393 Update all callers.
3394
3395 2018-08-10 Keith Seitz <keiths@redhat.com>
3396
3397 * compile/compile-c-support.c (c_compute_program): Use
3398 unique_xmalloc_ptr to eliminate cleanup.
3399 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3400 Return a unique_xmalloc_ptr and eliminate cleanup.
3401 * compile/compile-internal.h (generate_c_for_variable_locations):
3402 Return unique_xmalloc_ptr and update description.
3403
3404 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3405
3406 * corelow.c (core_target::get_core_register_section): Rename
3407 min_size to section_min_size.
3408
3409 2018-08-09 Jim Wilson <jimw@sifive.com>
3410
3411 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3412 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3413 * NEWS: Mention new GNU/Linux RISC-V target.
3414 * configure.host: Add riscv*-*-linux*.
3415 * configure.nat: Add riscv*.
3416 * configure.tgt: Add riscv*-*-linux*.
3417 * riscv-linux-nat.c: New file.
3418 * riscv-linux-tdep.c: New file.
3419
3420 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3421
3422 * infrun.c (resume): Make static, add forward declaration.
3423 (proceed): Update header comment.
3424 * infrun.h (resume): Delete declaration.
3425
3426 2018-08-09 Tom Tromey <tom@tromey.com>
3427
3428 * riscv-tdep.h: Minor formatting fixes.
3429
3430 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3431
3432 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3433 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3434 (test_mkdir_recursive): Likewise.
3435 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3436
3437 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * valarith.c (value_subscripted_rvalue): If an array is not in
3440 memory, and we don't know the upper bound, then we can't know that
3441 the requested element exists or not.
3442
3443 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3444
3445 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3446 (target_options_to_string): Add comment.
3447
3448 2018-08-08 Tom Tromey <tom@tromey.com>
3449
3450 * unittests/scoped_mmap-selftests.c: Check result of "write".
3451
3452 2018-08-08 Jim Wilson <jimw@sifive.com>
3453
3454 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3455 (decode_register_index_short): New.
3456 (decode_j_type_insn, decode_cj_type_insn): New.
3457 (decode_b_type_insn, decode_cb_type_insn): New.
3458 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3459 local xlen. Check xlen when decoding ambiguous compressed insns. In
3460 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3461 is_c_sw_insn instead of is_sw_insn.
3462 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3463 (riscv_software_single_step): New.
3464 * riscv-tdep.h (riscv_software_single_step): Declare.
3465
3466 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3467 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3468
3469 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 PR gdb/18050:
3472 * target.c (dispose_inferior): Don't dispose of inferiors that are
3473 already killed.
3474
3475 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3476
3477 * remote.c (remote_target::download_tracepoint): Change char* to
3478 const char*.
3479
3480 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3481
3482 * target.h (target_options_to_string): Return an std::string.
3483 * target.c (str_comma_list_concat_elem): Return void, use
3484 std::string.
3485 (do_option): Likewise.
3486 (target_options_to_string): Return an std::string.
3487 * linux-nat.c (linux_nat_target::wait): Adjust.
3488 * target-debug.h (target_debug_print_options): Adjust.
3489
3490 2018-08-07 Tom Tromey <tom@tromey.com>
3491
3492 * Makefile.in (CPPFLAGS): New variable.
3493 (INTERNAL_CPPFLAGS): Use it.
3494
3495 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3496
3497 * NEWS: Mention the index cache.
3498
3499 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3500
3501 * common/pathstuff.h (get_standard_cache_dir): New.
3502 * common/pathstuff.c (get_standard_cache_dir): New.
3503 * build-id.h (build_id_to_string): New.
3504 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3505 DEBUG_STR_SUFFIX): Move to here.
3506 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3507 DEBUG_STR_SUFFIX): Move from there.
3508 (write_psymtabs_to_index): Make non-static, add basename
3509 parameter. Write to temporary files, rename when done.
3510 (save_gdb_index_command): Adjust call to
3511 write_psymtabs_to_index.
3512 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3513 field.
3514 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3515 (get_gdb_index_contents_from_cache): New.
3516 (get_gdb_index_contents_from_cache_dwz): New.
3517 (dwarf2_initialize_objfile): Read index from cache.
3518 (dwarf2_build_psymtabs): Save to index.
3519 * dwarf-index-cache.h: New file.
3520 * dwarf-index-cache.c: New file.
3521 * dwarf-index-write.h: New file.
3522
3523 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3524
3525 * gnulib/aclocal.m4: Re-generate.
3526 * gnulib/config.in: Re-generate.
3527 * gnulib/configure: Re-generate.
3528 * gnulib/import/Makefile.am: Re-generate.
3529 * gnulib/import/Makefile.in: Re-generate.
3530 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3531 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3532 * gnulib/import/m4/mkdir.m4: New file.
3533 * gnulib/import/mkdir.c: New file.
3534 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3535 module.
3536
3537 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3538
3539 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3540 * common/scoped_mmap.c: New file.
3541 * common/scoped_mmap.h (destroy): New method.
3542 (~scoped_mmap, reset): Use destroy.
3543 (scoped_mmap): New move constructor.
3544 (mmap_file): New declaration.
3545 * unittests/scoped_mmap-selftests.c (test_normal,
3546 test_invalid_filename, run_tests): New functions.
3547 (_initialize_scoped_mmap_selftests): Register selftest.
3548
3549 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3550
3551 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3552 (read_gdb_index_from_buffer): ... this. Remove section
3553 parameter, add buffer parameter.
3554 (get_gdb_index_contents_ftype,
3555 get_gdb_index_contents_dwz_ftype): New typedefs.
3556 (dwarf2_read_gdb_index): Add callback parameters to get the
3557 index contents.
3558 (get_gdb_index_contents_from_section): New.
3559 (dwarf2_initialize_objfile): Update call to
3560 dwarf2_read_gdb_index.
3561
3562 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3563
3564 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3565 (gdb_open_cloexec): Likewise.
3566 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3567 (commandline_from_pid): Likewise.
3568 (linux_xfer_osdata_threads): Likewise.
3569 (linux_xfer_osdata_fds): Likewise.
3570 * ada-lang.c (is_package_name): Likewise.
3571 * auxv.c (procfs_xfer_auxv): Likewise.
3572 * breakpoint.c (print_one_breakpoint_location): Use
3573 uiout::field_fmt.
3574 (print_one_catch_solib): Use string_printf.
3575 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3576 (add_pe_forwarded_sym): Likewise.
3577 * dwarf2read.c (create_type_unit_group): Likewise.
3578 (build_error_marker_type): Likewise.
3579 * infcall.c (get_function_name): Likewise.
3580 * valprint.c (print_converted_chars_to_obstack): Likewise.
3581 * xtensa-tdep.c (xtensa_register_type): Likewise.
3582
3583 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3584
3585 * remote.c (remote_target::download_tracepoint): Fix format
3586 string errors.
3587
3588 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3589
3590 * tracefile.c: Include common/byte-vector.h.
3591 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3592 with trace_regblock_size if needed. Update uses of buf.
3593
3594 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3595
3596 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3597 std::vector<unsigned char>.
3598 * tracepoint.c (collection_list::collection_list): Remove
3599 m_regs_mask initializer from initializer list. Resize
3600 m_regs_mask using the largest remote register number.
3601 (collection_list::add_remote_register): Remove size check on
3602 m_regs_mask. Use at to access element.
3603 (collection_list::stringify): Change type of temp_buf to
3604 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3605 stringify the register mask. Use pack_hex_byte for the register
3606 mask.
3607
3608 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3609
3610 * tracepoint.h (class collection_list) <add_register>: Remove.
3611 <add_remote_register, add_ax_registers, add_local_register>:
3612 Declare.
3613 <add_memrange>: Add scope parameter.
3614 * tracepoint.c (encode_actions_1): Likewise.
3615 (collection_list::add_register): Rename to ...
3616 (collection_list::add_remote_register): ... this. Update
3617 comment.
3618 (collection_list::add_ax_registers, add_local_register): New
3619 methods.
3620 (collection_list::add_memrange): Add scope parameter. Call
3621 add_local_register instead of add_register.
3622 (finalize_tracepoint_aexpr): New function.
3623 (collection_list::collect_symbol): Update calls to add_memrange.
3624 Call add_local_register instead of add_register. Call
3625 add_ax_registers. Call finalize_tracepoint_aexpr.
3626 (encode_actions_1): Get remote regnos for $reg action. Call
3627 add_remote_register, add_ax_registers, and add_local_register.
3628 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3629 (validate_actionline): Call finalize_tracepoint_aexpr.
3630
3631 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3632
3633 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3634 Replace array buf with gdb::char_vector buf, of size
3635 get_remote_packet_size (). Replace references to buf and
3636 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3637 and xsnprintf with snprintf. Raise errors if the buffer is too
3638 small.
3639
3640 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3641
3642 * remote.c (remote_target::download_tracepoint): Fix the has_more
3643 predicate in the QTDP action list iteration.
3644
3645 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3646
3647 * remote.c (remote_target::download_tracepoint): Fix indentation
3648 in for block.
3649
3650 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3651
3652 * proc-api.c (_initialize_proc_api): Remove c, unused.
3653 * procfs.c (procfs_init_inferior): Remove signals, unused.
3654 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3655 unused.
3656
3657 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3658 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3661 'W_STOPCODE (0)' as this could be ambiguous.
3662
3663 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3664
3665 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3666 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3667 "ai_socktype").
3668
3669 2018-08-02 Tom Tromey <tom@tromey.com>
3670
3671 PR symtab/16842.
3672 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3673 symbols.
3674 (process_structure_scope): Likewise.
3675
3676 2018-08-02 Xavier Roirand <roirand@adacore.com>
3677
3678 PR gdb/22629:
3679 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3680 kill inferior.
3681
3682 2018-08-02 Tom Tromey <tom@tromey.com>
3683
3684 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3685 (darwin_suspend_inferior, darwin_resume_inferior)
3686 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3687 (darwin_check_new_threads): Check result of get_darwin_inferior.
3688
3689 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3690
3691 GDB 8.1.1 released.
3692
3693 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3694
3695 * varobj.c (varobj_get_path_expr_parent): Report an error if
3696 parent is a dynamic varobj.
3697
3698 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3699
3700 * gnulib/aclocal.m4: Re-generate.
3701 * gnulib/config.in: Re-generate.
3702 * gnulib/configure: Re-generate.
3703 * gnulib/import/Makefile.in: Re-generate.
3704 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3705 * gnulib/import/m4/onceonly.m4: Re-generate.
3706
3707 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3708
3709 * target-descriptions.c (struct xml_test_tdesc): New.
3710 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3711 (record_xml_tdesc): Update.
3712 (maintenance_check_xml_descriptions): Update.
3713 * target-descriptions.h (record_xml_tdesc): Update comment.
3714
3715 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3718 checking array bounds are defined.
3719
3720 2018-07-30 Tom Tromey <tom@tromey.com>
3721
3722 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3723 irreflexivity violation.
3724
3725 2018-07-30 Tom Tromey <tom@tromey.com>
3726
3727 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3728 * value.c (unpack_long): Remove lint code.
3729 * valops.c (value_ind): Remove lint code.
3730 * valarith.c (value_x_binop, value_x_unop, value_equal)
3731 (value_pos): Remove lint code.
3732
3733 2018-07-28 Tom de Vries <tdevries@suse.de>
3734
3735 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3736 with undefined upper bound as <optimized out>.
3737
3738 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3739
3740 * gcore.in: Rename variable "name" to "prefix". Expand
3741 "usage" text.
3742
3743 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3744
3745 * windows-nat.c (windows_nat_target::create_inferior): Update to
3746 call close() in global namespace.
3747
3748 2018-07-26 Tom Tromey <tom@tromey.com>
3749
3750 * dwarf-index-write.c (add_address_entry): Don't add objfile
3751 offsets.
3752 * dbxread.c (find_stab_function): Rename from
3753 find_stab_function_addr. Return a bound_minimal_symbol.
3754 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3755 Don't add objfile offsets.
3756 (end_psymtab): Use raw_text_low, raw_text_high,
3757 MSYMBOL_VALUE_RAW_ADDRESS.
3758 (read_ofile_symtab): Update.
3759 (process_one_symbol): Update.
3760 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3761 offsets.
3762 (dw2_relocate): Remove.
3763 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3764 searching addrmap.
3765 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3766 Update.
3767 (process_psymtab_comp_unit_reader, add_partial_symbol)
3768 (add_partial_subprogram, dwarf2_ranges_read): Update.
3769 (load_partial_dies): Update.
3770 (add_address_entry): Don't add objfile offsets.
3771 (dwarf2_build_include_psymtabs): Update.
3772 (create_addrmap_from_aranges): Don't add objfile offsets.
3773 (dw2_find_pc_sect_compunit_symtab): Update.
3774 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3775 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3776 Update.
3777 (parse_partial_symbols): Don't add objfile offsets. Use
3778 raw_text_low, raw_text_high. Update.
3779 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3780 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3781 or call 'relocate' quick function. Clear psymbol_map.
3782 * psympriv.h (struct partial_symbol) <address>: Add section
3783 offset.
3784 <set_unrelocated_address>: Rename from set_address.
3785 <raw_text_low, raw_text_high>: New methods.
3786 <text_low, text_high>: Add objfile parameter.
3787 (add_psymbol_to_bcache): Add 'section' parameter. Call
3788 set_unrelocated_address.
3789 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3790 (find_pc_psymbol): Update.
3791 (fixup_psymbol_section, relocate_psymtabs): Remove.
3792 (dump_psymtab, psym_functions): Update.
3793 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3794 parameter.
3795 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3796 (start_psymtab_common): Update.
3797 * symfile-debug.c (debug_qf_relocate): Remove.
3798 (debug_sym_quick_functions): Update.
3799 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3800 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3801 Update.
3802
3803 2018-07-26 Tom Tromey <tromey@redhat.com>
3804
3805 * dbxread.c (end_psymtab): Use text_high_valid and
3806 text_low_valid.
3807 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3808 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3809 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3810 Update comment.
3811 <text_low_valid, text_high_valid>: New fields.
3812 <set_text_low, set_text_high>: Update.
3813 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3814
3815 2018-07-26 Tom Tromey <tom@tromey.com>
3816
3817 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3818 Update.
3819 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3820 textlow and texthigh fields.
3821 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3822 Update.
3823 * mdebugread.c (parse_lines, parse_partial_symbols)
3824 (psymtab_to_symtab_1): Update.
3825 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3826 Rename fields. Update comment. Now private.
3827 <text_low, text_high, set_text_low, set_text_high>: New methods.
3828 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3829 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3830 (start_psymtab_common, maintenance_info_psymtabs)
3831 (maintenance_check_psymtabs): Update.
3832 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3833 texthigh fields.
3834 (scan_xcoff_symtab): Update.
3835
3836 2018-07-26 Tom Tromey <tromey@redhat.com>
3837
3838 * psympriv.h (struct partial_symbol) <unrelocated_address,
3839 address, set_address>: New methods.
3840 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3841 (fixup_psymbol_section, relocate_psymtabs): Update.
3842 (print_partial_symbols): Add 'objfile' parameter. Update.
3843 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3844 Update.
3845
3846 2018-07-26 Tom Tromey <tom@tromey.com>
3847
3848 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3849 (debug_names::write_psymbols): Update.
3850 * psympriv.h (struct partial_symbol): Derive from
3851 general_symbol_info.
3852 <obj_section>: New method.
3853 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3854 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3855 (find_pc_sect_psymbol, fixup_psymbol_section)
3856 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3857 (print_partial_symbols, recursively_search_psymtabs)
3858 (compare_psymbols, psymbol_hash, psymbol_compare)
3859 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3860 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3861
3862 2018-07-26 Tom Tromey <tromey@redhat.com>
3863
3864 * dbxread.c (end_psymtab): Remove dead code.
3865
3866 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3867
3868 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3869 DWARF unwinders are disabled.
3870 * dwarf2-frame.c: Add dwarf2read.h include.
3871 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3872 disabled.
3873 (dwarf2_frame_unwinders_enabled_p): Define.
3874 (show_dwarf_unwinders_enabled_p): New function.
3875 (_initialize_dwarf2_frame): Register switch to control DWARF
3876 unwinder use.
3877 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3878 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3879 (show_dwarf_cmdlist): Remove static keyword.
3880 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3881 (show_dwarf_cmdlist): Declare.
3882 * NEWS: Document new feature.
3883
3884 2018-07-26 Tom de Vries <tdevries@suse.de>
3885
3886 PR breakpoints/23366
3887 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3888
3889 2018-07-26 Tom de Vries <tdevries@suse.de>
3890
3891 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3892 DW_AT_count can't be translated to a dynamic prop.
3893
3894 2018-07-25 Tom de Vries <tdevries@suse.de>
3895
3896 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3897 try/catch.
3898
3899 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3900
3901 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3902
3903 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3904
3905 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3906
3907 2018-07-24 Keith Seitz <keiths@redhat.comt
3908
3909 PR symtab/23010
3910 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3911 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3912 instead of add_symbol_to_list.
3913 (read_file_scope): Call prepare_one_comp_unit before reading
3914 any other DIEs.
3915
3916 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3917
3918 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3919
3920 2018-07-24 Tom Tromey <tom@tromey.com>
3921
3922 * utils.c (malloc, realloc, free): Don't declare.
3923 * configure, config.in: Rebuild.
3924 * configure.ac: Don't check for declarations of free, malloc, or
3925 realloc.
3926
3927 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3928
3929 * aarch64-linux-nat.c
3930 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3931 variable.
3932 * arm-linux-nat.c (fetch_regs): Likewise.
3933 (store_regs): Likewise.
3934 (fetch_vfp_regs): Likewise.
3935 (store_vfp_regs): Likewise.
3936 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3937 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3938 (arm_linux_nat_target::insert_watchpoint): Likewise.
3939 (arm_linux_nat_target::remove_watchpoint): Likewise.
3940 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3941 Likewise.
3942 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3943 Likewise.
3944 * ppc-linux-nat.c (fetch_register): Likewise.
3945 (fetch_all_gp_regs): Likewise.
3946 (fetch_ppc_registers): Likewise.
3947 (store_all_gp_regs): Likewise.
3948 (store_ppc_registers): Likewise.
3949 (hwdebug_insert_point): Likewise.
3950 (can_use_watchpoint_cond_accel): Likewise.
3951 * remote-sim.c (gdb_os_write_stdout): Likewise.
3952
3953 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3954 Tom Tromey <tom@tromey.com>
3955
3956 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3957 test for it.
3958 * configure: Rebuild.
3959
3960 2018-07-22 Tom Tromey <tom@tromey.com>
3961
3962 * regformats/regdat.sh: Define xmltarget_${name} inside
3963 #ifndef IN_PROCESS_AGENT.
3964
3965 2018-07-22 Tom Tromey <tom@tromey.com>
3966
3967 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3968
3969 2018-07-22 Tom Tromey <tom@tromey.com>
3970
3971 * symfile.c (reread_symbols): Notify iter, not objfile.
3972
3973 2018-07-22 Tom Tromey <tom@tromey.com>
3974
3975 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3976 Use arch_ops.
3977 (ravenscar_thread_target::prepare_to_store): Likewise.
3978
3979 2018-07-22 Tom Tromey <tom@tromey.com>
3980
3981 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3982 unused variable. Call value_fetch_lazy when needed.
3983 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3984 Remove unused variable. Call value_fetch_lazy when needed.
3985
3986 2018-07-22 Tom Tromey <tom@tromey.com>
3987
3988 * m32c-tdep.c (mark_dma): Return void.
3989 (make_regs): Remove unused declarations.
3990
3991 2018-07-22 Tom Tromey <tom@tromey.com>
3992
3993 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3994 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3995 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3996 bkscm_get_valid_block_smob_arg_unsafe for effect.
3997
3998 2018-07-22 Tom Tromey <tom@tromey.com>
3999
4000 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4001 value_type.
4002
4003 2018-07-22 Tom Tromey <tom@tromey.com>
4004
4005 * windows-nat.c (saved_context): Conditionally define.
4006 * remote.c (remote_target::remote_btrace_maybe_reopen):
4007 Conditionally declare "warned".
4008 * inflow.c (sigquit_ours): Conditionally define.
4009 (new_tty): Move "tty" declaration inside #if.
4010 * guile/guile.c (guile_datadir): Conditionally define.
4011 * charset.c (set_be_le_names): Move some declarations inside #if.
4012 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4013 #if.
4014 (parse_xml_btrace_conf): Likewise.
4015
4016 2018-07-22 Tom Tromey <tom@tromey.com>
4017
4018 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4019
4020 2018-07-22 Tom Tromey <tom@tromey.com>
4021
4022 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4023 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4024 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4025 * buildsym-legacy.c (get_macro_table): Remove unused variable.
4026 * stack.c (frame_apply_level_command): Remove unused variable.
4027 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4028 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4029 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4030 unused variable.
4031 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4032 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4033 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4034 variable.
4035 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4036 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4037 variable.
4038 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4039 Remove unused variable.
4040 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4041 variable.
4042 * common/tdesc.c (print_xml_feature::visit): Remove unused
4043 variable.
4044 * compile/compile-object-load.c (store_regs): Remove unused
4045 variables.
4046 * complaints.c (clear_complaints): Remove unused variable.
4047 * corelow.c (core_target_open): Remove unused variable.
4048 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4049 variable.
4050 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4051 variable.
4052 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4053 variable.
4054 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4055 variable.
4056 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4057 variable.
4058 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4059 variable.
4060 * ia64-tdep.c (examine_prologue): Remove unused variable.
4061 * infcall.c (run_inferior_call): Remove unused variable.
4062 * inferior.c (exit_inferior): Remove unused variable.
4063 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4064 * linespec.c (decode_line_2): Remove unused variable.
4065 * linux-nat.c (super_close): Remove.
4066 * linux-tdep.c (linux_info_proc): Remove unused variable.
4067 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4068 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4069 Remove unused variable.
4070 * parse.c (find_minsym_type_and_address): Remove unused variable.
4071 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4072 variable.
4073 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4074 variable.
4075 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4076 variables.
4077 * record-btrace.c (record_btrace_target::store_registers): Remove
4078 unused variable.
4079 (cmd_show_record_btrace_cpu): Remove unused variable.
4080 * riscv-tdep.c (riscv_register_reggroup_p)
4081 (riscv_push_dummy_call, riscv_return_value): Remove unused
4082 variable.
4083 * rust-exp.y (literal): Remove unused variable.
4084 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4085 unused variable.
4086 <STRUCTOP_ANONYMOUS>: Likewise.
4087 * s390-linux-tdep.c (s390_linux_init_abi_31)
4088 (s390_linux_init_abi_64): Remove unused variable.
4089 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4090 (file_select_thread, net_windows_open, _initialize_ser_windows):
4091 Remove unused variables.
4092 * symtab.c (find_pc_sect_line): Remove unused variable.
4093 * target-memory.c (compute_garbled_blocks): Remove unused
4094 variable.
4095 (target_write_memory_blocks): Remove unused variable.
4096 * target.c (target_stack::unpush): Remove unused variables.
4097 * tracepoint.c (start_tracing, all_tracepoint_actions)
4098 (merge_uploaded_trace_state_variables)
4099 (print_one_static_tracepoint_marker): Remove unused variable.
4100 * unittests/basic_string_view/element_access/char/1.cc (test01):
4101 Remove unused variable.
4102 * windows-nat.c (windows_continue, windows_add_all_dlls)
4103 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4104 Remove unused variables.
4105
4106 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4107
4108 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4109 attr_profile in HAVE_ELF.
4110 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4111 HAVE_ELF.
4112
4113 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4114
4115 * frame.c (frame_register_unwind): Change parameter name.
4116 (frame_unwind_register): Likewise.
4117 (frame_unwind_register_value): Likewise.
4118 (frame_unwind_register_signed): Likewise.
4119 (frame_unwind_register_unsigned): Likewise.
4120 * frame.h (frame_register_unwind): Likewise.
4121 (frame_unwind_register): Likewise.
4122 (frame_unwind_register_value): Likewise.
4123 (frame_unwind_register_signed): Likewise.
4124 (frame_unwind_register_unsigned): Likewise.
4125 (frame_unwind_arch): Likewise.
4126
4127 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4128
4129 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4130 ISA maintenance.
4131
4132 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4133
4134 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4135 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4136 hand.
4137
4138 2018-07-20 Keith Seitz <keiths@redhat.com>
4139
4140 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4141 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4142 m_compunit_symtab, m_language>: Add "m_" prefix.
4143 Update all uses.
4144 * buildsym.c: Update all uses.
4145
4146 2018-07-20 Tom Tromey <tom@tromey.com>
4147
4148 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4149 * buildsym.h (record_line_ftype): Remove typedef.
4150
4151 2018-07-20 Tom Tromey <tom@tromey.com>
4152
4153 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4154 (end_expandable_symtab): Likewise.
4155 (end_symtab_get_static_block): Likewise.
4156 (end_symtab_from_static_block): Likewise.
4157 * buildsym-legacy.c (augment_type_symtab): Remove.
4158 (end_expandable_symtab): Remove.
4159 (end_symtab_get_static_block): Remove.
4160 (end_symtab_from_static_block): Remove.
4161
4162 2018-07-20 Tom Tromey <tom@tromey.com>
4163
4164 * dwarf2read.c: Include buildsym.h.
4165 (struct dwarf2_cu) <builder>: New method.
4166 (fixup_go_packaging): Update.
4167 (process_full_comp_unit, process_full_type_unit): Update. Don't
4168 use scoped_free_pendings.
4169 (using_directives): Add "cu" parameter, remove "language".
4170 (read_import_statement, setup_type_unit_groups, )
4171 (read_func_scope, read_lexical_block_scope)
4172 (dwarf2_record_block_ranges, read_namespace): Update.
4173 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4174 (lnp_state_machine::handle_end_sequence): Update.
4175 (class lnp_state_machine) <m_cu>: New member.
4176 <m_record_line_callback>: Remove.
4177 <m_currently_recording_lines>: New member.
4178 (lnp_state_machine::handle_set_file): Update.
4179 (noop_record_line): Remove.
4180 (dwarf_record_line_p): Add cu parameter.
4181 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4182 (lnp_state_machine::record_line)
4183 (lnp_state_machine::lnp_state_machine)
4184 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4185 (dwarf_decode_lines): Update.
4186 (dwarf2_start_subfile): Add cu parameter.
4187 (dwarf2_start_symtab, new_symbol): Update.
4188 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4189 Remove dwarf2_per_objfile parameter.
4190 (dwarf_decode_macros): Update.
4191
4192 2018-07-20 Tom Tromey <tom@tromey.com>
4193
4194 * stabsread.c (define_symbol): Update.
4195 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4196 * dwarf2read.c (new_symbol): Update.
4197 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4198 * cp-namespace.c: Include buildsym.h.
4199 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4200 * buildsym-legacy.c (get_buildsym_compunit): New function.
4201
4202 2018-07-20 Tom Tromey <tom@tromey.com>
4203
4204 * xcoffread.c: Include buildsym-legacy.h.
4205 * windows-nat.c: Include buildsym-legacy.h.
4206 * stabsread.c: Include buildsym-legacy.h.
4207 * mdebugread.c: Include buildsym-legacy.h.
4208 * buildsym-legacy.h: New file.
4209 * buildsym-legacy.c: New file, from buildsym.c.
4210 * go32-nat.c: Include buildsym-legacy.h.
4211 * dwarf2read.c: Include buildsym-legacy.h.
4212 * dbxread.c: Include buildsym-legacy.h.
4213 * cp-namespace.c: Include buildsym-legacy.h.
4214 * coffread.c: Include buildsym-legacy.h.
4215 * buildsym.h: Move some contents to buildsym-legacy.h.
4216 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4217 buildsym-legacy.c.
4218 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4219
4220 2018-07-20 Tom Tromey <tom@tromey.com>
4221
4222 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4223 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4224 (buildsym_compunit::buildsym_compunit)
4225 (buildsym_compunit::~buildsym_compunit)
4226 (buildsym_compunit::get_macro_table): Define.
4227
4228 2018-07-20 Tom Tromey <tom@tromey.com>
4229
4230 * buildsym.c (reset_symtab_globals): Remove.
4231 (buildsym_compunit::end_symtab_from_static_block): Update.
4232 (buildsym_compunit::augment_type_symtab): Update.
4233 (end_symtab_from_static_block): Call free_buildsym_compunit.
4234 (augment_type_symtab, end_symtab, end_expandable_symtab):
4235 Likewise.
4236
4237 2018-07-20 Tom Tromey <tom@tromey.com>
4238
4239 * arch-utils.c: Do not include buildsym.h.
4240 * mipsread.c: Do not include buildsym.h.
4241 * machoread.c: Do not include buildsym.h.
4242 * elfread.c: Do not include buildsym.h.
4243
4244 2018-07-20 Tom Tromey <tom@tromey.com>
4245
4246 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4247 initialization.
4248 (buildsym_compunit): Add new constructor.
4249 (struct buildsym_compunit) <get_last_source_file, finish_block,
4250 record_block_range, start_subfile, patch_subfile_names,
4251 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4252 set_last_source_start_addr, get_last_source_start_addr,
4253 get_local_using_directives, set_local_using_directives,
4254 get_global_using_directives, outermost_context_p,
4255 get_current_context_stack, get_context_stack_depth,
4256 get_current_subfile, get_local_symbols, get_file_symbols,
4257 get_global_symbols, record_debugformat, record_producer,
4258 push_context, pop_context, end_symtab_get_static_block,
4259 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4260 New public methods.
4261 <record_pending_block, finish_block_internal, make_blockvector,
4262 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4263 private methods.
4264 Update all users.
4265
4266 2018-05-22 Tom Tromey <tom@tromey.com>
4267
4268 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4269 parameter.
4270 (finish_block_internal): Update.
4271
4272 2018-07-20 Tom Tromey <tom@tromey.com>
4273
4274 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4275 parameter.
4276 (finish_block_internal): Update.
4277
4278 2018-07-20 Tom Tromey <tom@tromey.com>
4279
4280 * buildsym.h (EXTERN): Don't define or undef.
4281 * buildsym.c (EXTERN): Don't define.
4282
4283 2018-07-20 Tom Tromey <tom@tromey.com>
4284
4285 * buildsym.c: Remove TODO comment.
4286
4287 2018-07-20 Tom Tromey <tom@tromey.com>
4288
4289 * coffread.c (coff_symtab_read): Update.
4290 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4291 (xcoff_new_init): Update.
4292 * mipsread.c (mipscoff_new_init): Update.
4293 * mdebugread.c (mdebug_build_psymtabs): Update.
4294 * elfread.c (elf_new_init): Update.
4295 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4296 Update.
4297 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4298 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4299 (stabsect_build_psymtabs): Update.
4300 * buildsym.h (buildsym_init): Don't declare.
4301 * buildsym.c: Update comment.
4302 (prepare_for_building): Remove.
4303 (start_symtab, restart_symtab): Update.
4304 (reset_symtab_globals): Update comment.
4305 (buildsym_init): Remove.
4306
4307 2018-07-20 Tom Tromey <tom@tromey.com>
4308
4309 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4310 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4311 (read_enum_type, common_block_start, common_block_end)
4312 (cleanup_undefined_types_1, finish_global_stabs): Update.
4313 * mdebugread.c (psymtab_to_symtab_1): Update.
4314 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4315 (read_lexical_block_scope, new_symbol): Update.
4316 * dbxread.c (process_one_symbol): Update.
4317 * coffread.c (coff_symtab_read, process_coff_symbol)
4318 (coff_read_enum_type): Update.
4319 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4320 declare.
4321 (get_local_symbols, get_file_symbols, get_global_symbols): New
4322 functions.
4323 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4324 m_global_symbols.
4325 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4326 (~scoped_free_pendings): Update.
4327 (finish_block, prepare_for_building, reset_symtab_globals)
4328 (end_symtab_get_static_block, end_symtab_with_blockvector)
4329 (augment_type_symtab, push_context): Update.
4330 (get_local_symbols, get_file_symbols, get_global_symbols): New
4331 functions.
4332 (buildsym_init): Update.
4333
4334 2018-07-20 Tom Tromey <tom@tromey.com>
4335
4336 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4337 (process_full_type_unit): Likewise.
4338 (dwarf2_start_symtab): Set list_in_scope.
4339
4340 2018-07-20 Tom Tromey <tom@tromey.com>
4341
4342 * dwarf2read.c (process_psymtab_comp_unit_reader)
4343 (build_type_psymtabs_reader): Do not set list_in_scope.
4344
4345 2018-07-20 Tom Tromey <tom@tromey.com>
4346
4347 * buildsym.c (free_pendings): Remove.
4348 (add_symbol_to_list, scoped_free_pendings)
4349 (finish_block_internal, buildsym_init): Update.
4350
4351 2018-07-20 Tom Tromey <tom@tromey.com>
4352
4353 * xcoffread.c (read_xcoff_symtab): Update.
4354 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4355 Update.
4356 * dbxread.c (process_one_symbol): Update.
4357 * coffread.c (coff_symtab_read): Update.
4358 * buildsym.h (finish_block): Update.
4359 * buildsym.c (finish_block): Remove "listhead" argument.
4360 (end_symtab_get_static_block): Update.
4361
4362 2018-07-20 Tom Tromey <tom@tromey.com>
4363
4364 * buildsym.h (class scoped_free_pendings): Remove constructor.
4365 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4366 method.
4367 <m_pending_block_obstack, m_pending_blocks>: New members.
4368 (pending_block_obstack, pending_blocks): Remove.
4369 (scoped_free_pendings::scoped_free_pendings): Default.
4370 (~scoped_free_pendings): Update.
4371 (free_pending_blocks): Remove.
4372 (finish_block_internal, record_pending_block, make_blockvector)
4373 (end_symtab_get_static_block, augment_type_symtab, push_context)
4374 (buildsym_init): Update.
4375
4376 2018-07-20 Tom Tromey <tom@tromey.com>
4377
4378 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4379 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4380 members.
4381 (pending_addrmap, pending_addrmap_obstack)
4382 (pending_addrmap_interesting): Remove.
4383 (scoped_free_pendings, record_block_range, make_blockvector)
4384 (prepare_for_building, reset_symtab_globals, buildsym_init):
4385 Update.
4386
4387 2018-07-20 Tom Tromey <tom@tromey.com>
4388
4389 * xcoffread.c (process_linenos): Update.
4390 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4391 * mdebugread.c (psymtab_to_symtab_1): Update.
4392 * dwarf2read.c (setup_type_unit_groups)
4393 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4394 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4395 * dbxread.c (process_one_symbol): Update.
4396 * coffread.c (coff_symtab_read, enter_linenos)
4397 (process_coff_symbol): Update.
4398 * buildsym.h (current_subfile): Don't declare.
4399 (get_current_subfile): Declare.
4400 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4401 member.
4402 (start_subfile, free_buildsym_compunit, push_subfile)
4403 (prepare_for_building, start_symtab): Update.
4404 (get_current_subfile): New function.
4405
4406 2018-07-20 Tom Tromey <tom@tromey.com>
4407
4408 * coffread.c (coff_symtab_read): Update.
4409 * xcoffread.c (read_xcoff_symtab): Update.
4410 * dwarf2read.c (new_symbol): Update.
4411 (read_func_scope, read_lexical_block_scope): Update.
4412 * dbxread.c (process_one_symbol): Update.
4413 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4414 (outermost_context_p): Remove macro.
4415 (outermost_context_p, get_current_context_stack)
4416 (get_context_stack_depth): Declare.
4417 (pop_context): Return struct context_stack.
4418 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4419 member.
4420 (context_stack_size): Remove.
4421 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4422 (prepare_for_building, end_symtab_get_static_block)
4423 (augment_type_symtab, push_context): Update.
4424 (pop_context): Return struct context_stack.
4425 (outermost_context_p, get_current_context_stack)
4426 (get_context_stack_depth): New functions.
4427 (buildsym_init): Update.
4428
4429 2018-07-20 Tom Tromey <tom@tromey.com>
4430
4431 * rust-exp.y: Now a pure parser. Update all rules.
4432 (%union): Move earlier.
4433 (current_parser, work_obstack): Remove globals.
4434 (rust_parser, ~rust_parser): Update.
4435 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4436 lex_character, lex_number, lex_string, lex_identifier,
4437 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4438 convert_name, convert_params_to_expression,
4439 convert_ast_to_expression, ast_basic_type, ast_operation,
4440 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4441 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4442 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4443 ast_array_type, ast_slice_type, ast_reference_type,
4444 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4445 (rust_parse): Update.
4446 (rustyyerror, rustyylex): Add parser parameter.
4447 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4448 (rust_lex_stringish_test, rust_lex_test_sequence)
4449 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4450 (rust_lex_test_push_back, rust_lex_tests): Update.
4451
4452 2018-07-19 Pedro Alves <palves@redhat.com>
4453
4454 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4455 gdb::unique_xmalloc_ptr.
4456 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4457 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4458 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4459 copy-initialization.
4460 * guile/scm-pretty-print.c (ppscm_print_children): Use
4461 gdb::unique_xmalloc_ptr instead of cleanups.
4462 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4463 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4464 gdb::unique_xmalloc_ptr.
4465 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4466 Adjust to use gdb::unique_xmalloc_ptr.
4467 * guile/scm-utils.c (extract_arg): Adjust.
4468 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4469 gdb::unique_xmalloc_ptr instead of a cleanup.
4470
4471 2018-07-19 Tom Tromey <tom@tromey.com>
4472
4473 * utils.c (do_value_free_to_mark)
4474 (make_cleanup_value_free_to_mark): Remove.
4475 * utils.h (make_cleanup_value_free_to_mark): Remove.
4476
4477 2018-07-19 Pedro Alves <palves@redhat.com>
4478
4479 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4480 forwarding reference.
4481
4482 2018-07-18 Pedro Alves <palves@redhat.com>
4483
4484 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4485 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4486 cleanup.
4487
4488 2018-07-18 Pedro Alves <palves@redhat.com>
4489
4490 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4491 exceptions.
4492 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4493 (gdbscm_wrap): New.
4494 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4495 directly instead of a cleanup.
4496 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4497 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4498 (vlscm_binop_gdbthrow): New, factored out from ...
4499 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4500 (vlscm_rich_compare): Use gdbscm_wrap.
4501 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4502 instead of a cleanup.
4503 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4504 cleanup.
4505 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4506 Use xfree directly instead of a cleanup.
4507 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4508 Adjust to use gdbscm_wrap and scoped_value_mark.
4509 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4510 (gdbscm_value_address, gdbscm_value_dereference)
4511 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4512 scoped_value_mark.
4513 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4514 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4515 scoped_value_mark.
4516 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4517 gdbscm_wrap and scoped_value_mark.
4518 (gdbscm_value_to_string): Use xfree directly instead of a
4519 cleanup. Move 'buffer' unique_ptr to TRY scope.
4520 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4521 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4522 scoped_value_mark.
4523 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4524 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4525 scoped_value_mark.
4526 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4527 gdbscm_wrap.
4528
4529 2018-07-18 Tom de Vries <tdevries@suse.de>
4530
4531 * findvar.c (default_read_var_value): Also resolve dynamic type for
4532 LOC_OPTIMIZED_OUT vars.
4533
4534 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4535
4536 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4537 decoding.
4538
4539 2018-07-17 Tom Tromey <tom@tromey.com>
4540
4541 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4542 (compute_enum_list, pascm_set_param_value_x)
4543 (gdbscm_parameter_value): Update.
4544 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4545 (gdbscm_scm_to_host_string): Update.
4546 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4547 Update.
4548 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4549 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4550 * guile/scm-string.c (gdbscm_scm_to_string): Return
4551 unique_xmalloc_ptr.
4552 (gdbscm_scm_to_host_string): Likewise.
4553
4554 2018-07-17 Tom Tromey <tom@tromey.com>
4555
4556 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4557 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4558 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4559 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4560 unique_xmalloc_ptr.
4561
4562 2018-07-17 Tom Tromey <tom@tromey.com>
4563
4564 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4565 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4566 Update.
4567 * guile/scm-cmd.c (cmdscm_function): Update.
4568 * guile/scm-pretty-print.c
4569 (ppscm_print_exception_unless_memory_error): Update.
4570 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4571 Return unique_xmalloc_ptr.
4572
4573 2018-07-17 Tom Tromey <tom@tromey.com>
4574
4575 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4576 Use string_printf.
4577
4578 2018-07-17 Jim Wilson <jimw@sifive.com>
4579
4580 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4581 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4582 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4583 unecessary braces after EF_RISCV_RVC test. Delete call to
4584 set_gdbarch_decr_pc_after_break.
4585
4586 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4587 RISCV_LAST_FP_REGNUM + 1.
4588 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4589
4590 2018-07-17 Tom Tromey <tom@tromey.com>
4591
4592 * configure.ac: Remove --disable-gdbcli.
4593 * configure: Rebuild.
4594 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4595 (SUBDIR_CLI_CFLAGS): Remove.
4596 (SFILES): Use SUBDIR_CLI_SRCS.
4597 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4598
4599 2018-07-17 Tom Tromey <tom@tromey.com>
4600
4601 PR gdb/18624:
4602 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4603
4604 2018-07-16 Jim Wilson <jimw@sifive.com>
4605
4606 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4607
4608 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4609
4610 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4611 variable.
4612 (libunwind_frame_sniffer): Likewise.
4613 (libunwind_frame_prev_register): Likewise.
4614 (libunwind_sigtramp_frame_sniffer): Likewise.
4615 * ia64-tdep.c (ia64_access_reg): Likewise.
4616 (ia64_access_rse_reg): Likewise.
4617 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4618 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4619
4620 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4621
4622 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4623
4624 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4625
4626 * remote-sim.c (gdbsim_target::close,
4627 gdbsim_target::mourn_inferior): Remove unused variables.
4628
4629 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4630
4631 * ia64-tdep.c (ktab_buf): New global.
4632 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4633 (get_kernel_table): Adjust.
4634
4635 2018-07-16 Tom Tromey <tom@tromey.com>
4636
4637 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4638 * dwarf2read.c (using_directives, new_symbol): Use
4639 outermost_context_p.
4640 * dbxread.c (process_one_symbol): Use outermost_context_p.
4641 * coffread.c (coff_symtab_read): Use outermost_context_p.
4642
4643 2018-07-16 Tom Tromey <tom@tromey.com>
4644
4645 * dwarf2read.c (using_directives, read_func_scope)
4646 (read_lexical_block_scope): Update.
4647 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4648 * buildsym.h (local_using_directives, global_using_directives):
4649 Don't declare.
4650 (get_local_using_directives, set_local_using_directives)
4651 (get_global_using_directives): Declare.
4652 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4653 m_global_using_directives>: New members.
4654 (finish_block_internal, prepare_for_building)
4655 (reset_symtab_globals, end_symtab_get_static_block)
4656 (push_context): Update.
4657 (get_local_using_directives, set_local_using_directives)
4658 (get_global_using_directives): New functions.
4659 (buildsym_init): Update.
4660
4661 2018-07-16 Tom Tromey <tom@tromey.com>
4662
4663 * xcoffread.c (xcoff_initial_scan): Don't call
4664 free_pending_blocks.
4665 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4666 * buildsym.h (class scoped_free_pendings): Add constructor.
4667 (free_pending_blocks): Don't declare.
4668 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4669 (free_pending_blocks): Now static.
4670
4671 2018-07-16 Tom Tromey <tom@tromey.com>
4672
4673 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4674 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4675 member.
4676 (struct subfile_stack): Remove.
4677 (subfile_stack): Remove.
4678 (push_subfile, pop_subfile, buildsym_init): Update.
4679
4680 2018-07-16 Tom Tromey <tom@tromey.com>
4681
4682 * buildsym.c (push_subfile): Use gdb_assert.
4683 (pop_subfile): Use gdb_assert.
4684
4685 2018-07-16 Tom Tromey <tom@tromey.com>
4686
4687 * buildsym.h (merge_symbol_lists): Remove.
4688 * buildsym.c (merge_symbol_lists): Remove.
4689
4690 2018-07-16 Tom Tromey <tom@tromey.com>
4691
4692 * stabsread.c (scan_file_globals): Update comment.
4693 * stabsread.h (scan_file_globals): Move from buildsym.h.
4694 * buildsym.h (scan_file_globals): Move to stabsread.h.
4695
4696 2018-07-16 Tom Tromey <tom@tromey.com>
4697
4698 * xcoffread.c (xcoff_new_init): Update.
4699 * mipsread.c (mipscoff_new_init): Update.
4700 * mdebugread.c (mdebug_build_psymtabs): Update.
4701 * elfread.c (elf_new_init): Update.
4702 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4703 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4704 * buildsym.h (buildsym_new_init): Don't declare.
4705 * buildsym.c (buildsym_new_init): Remove.
4706
4707 2018-07-16 Tom Tromey <tom@tromey.com>
4708
4709 * stabsread.h (within_function): Move from buildsym.h.
4710 * stabsread.c (start_stabs): Clear within_function.
4711 * coffread.c (coff_start_symtab): Clear within_function.
4712 * buildsym.h (within_function): Move to stabsread.h.
4713 * buildsym.c (prepare_for_building): Update.
4714
4715 2018-07-16 Tom Tromey <tom@tromey.com>
4716
4717 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4718 * dwarf2read.c (dwarf2_start_symtab): Don't set
4719 processing_gcc_compilation.
4720 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4721
4722 2018-07-16 Tom Tromey <tom@tromey.com>
4723
4724 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4725 (next_symbol_text_func): Move from buildsym.h.
4726 * stabsread.c (hashname): Move from buildsym.c.
4727 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4728 (next_symbol_text_func, hashname): Move to stabsread.h.
4729 * buildsym.c: Don't include bcache.h
4730 (hashname): Move to stasbread.c.
4731
4732 2018-07-16 Tom Tromey <tom@tromey.com>
4733
4734 * buildsym.h (context_stack_size): Don't declare.
4735 * buildsym.c (context_stack_size): New global.
4736
4737 2018-07-16 Tom Tromey <tom@tromey.com>
4738
4739 * dbxread.c (processing_acc_compilation): New global.
4740 * buildsym.h (processing_acc_compilation): Don't declare.
4741
4742 2018-07-16 Tom Tromey <tom@tromey.com>
4743
4744 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4745 * dbxread.c (read_ofile_symtab): Update.
4746 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4747 * buildsym.h (last_source_start_addr): Remove.
4748 (set_last_source_start_addr, get_last_source_start_addr):
4749 Declare.
4750 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4751 parameter.
4752 (struct buildsym_compunit) <m_last_source_start_addr>: New
4753 member.
4754 (prepare_for_building): Remove start_addr parameter.
4755 (start_symtab, restart_symtab, end_symtab_get_static_block)
4756 (end_symtab_with_blockvector): Update.
4757 (set_last_source_start_addr, get_last_source_start_addr): New
4758 functions.
4759
4760 2018-07-16 Tom Tromey <tom@tromey.com>
4761
4762 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4763 member.
4764 (have_line_numbers): Remove.
4765 (record_line, prepare_for_building, end_symtab_get_static_block)
4766 (augment_type_symtab): Update.
4767
4768 2018-07-16 Tom Tromey <tom@tromey.com>
4769
4770 * buildsym.c (~buildsym_compunit): Free the macro table.
4771 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4772 methods.
4773 <m_pending_macros>: New member.
4774 (pending_macros): Remove.
4775 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4776 (reset_symtab_globals, end_symtab_get_static_block)
4777 (end_symtab_with_blockvector, augment_type_symtab)
4778 (buildsym_init): Update.
4779
4780 2018-07-16 Tom Tromey <tom@tromey.com>
4781
4782 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4783 parameter.
4784 (buildsym_compunit::set_last_source_file): New method.
4785 <m_last_source_file>: New member.
4786 (prepare_for_building): Remove "name" parameter.
4787 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4788 (last_source_file): Remove.
4789 (set_last_source_file, get_last_source_file): Update.
4790
4791 2018-07-16 Tom Tromey <tom@tromey.com>
4792
4793 * buildsym.c (prepare_for_building): Add assert.
4794
4795 2018-07-16 Tom Tromey <tom@tromey.com>
4796
4797 * buildsym.c (~buildsym_compunit): Update.
4798 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4799 (start_subfile, patch_subfile_names)
4800 (end_symtab_with_blockvector): Update.
4801
4802 2018-07-16 Tom Tromey <tom@tromey.com>
4803
4804 * buildsym.c (struct buildsym_compunit): Add constructor,
4805 destructor, initializers.
4806 (start_buildsym_compunit): Remove.
4807 (free_buildsym_compunit): Use "delete".
4808 (start_symtab, restart_symtab): Use "new".
4809
4810 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * symfile.c (set_objfile_default_section_offset): Remove struct
4813 keyword.
4814
4815 2018-07-14 Stafford Horne <shorne@gmail.com>
4816
4817 * (Responsible Maintainers): Add myself as or1k maintainer.
4818
4819 2018-07-13 Tom Tromey <tom@tromey.com>
4820
4821 * symfile.c (set_objfile_default_section_offset): Use extra braces
4822 around initializer.
4823
4824 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4825
4826 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4827 non-branching basr.
4828
4829 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4830
4831 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4832 unittests/cli-utils-selftests.c
4833 * unittests/cli-utils-selftests.c: New file.
4834
4835 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4836
4837 * NEWS: Mention new commands. Mention change to 'thread apply'.
4838
4839 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4840
4841 * thread.c (thr_try_catch_cmd): New function.
4842 (thread_apply_all_command): Handle qcs flags.
4843 (thread_apply_command): Handle qcs flags.
4844 (taas_command): New function.
4845 (tfaas_command): New function.
4846 (_initialize_thread): Update to setup the new commands 'taas
4847 and 'tfaas'. Change doc string for 'thread apply'.
4848
4849 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4850
4851 * stack.c: (trailing_outermost_frame): New function, mostly
4852 extracted from backtrace_command_1.
4853 (leading_innermost_frame): New function.
4854 (backtrace_command_1): Update to call trailing_outermost_frame.
4855 (frame_apply_command_count): New function.
4856 (frame_apply_level_command): New function.
4857 (frame_apply_all_command): New function.
4858 (frame_apply_command): New function.
4859 (faas_command): New function.
4860 (frame_cmd_list): New variable.
4861 (_initialize_stack): Update to setup the new commands 'frame apply'
4862 and 'faas'.
4863
4864 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4865
4866 * cli-utils.c (number_or_range_parser::get_number): Only handle
4867 numbers or convenience var as numbers.
4868 (parse_flags): New function.
4869 (parse_flags_qcs): New function.
4870 (number_or_range_parser::finished): Ensure parsing end is detected
4871 before end of string.
4872 * cli-utils.h (parse_flags): New function.
4873 (parse_flags_qcs): New function.
4874 (number_or_range_parser): Remove m_finished bool.
4875 (number_or_range_parser::skip_range): Set m_in_range to false.
4876
4877 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4878
4879 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4880 on Windows.
4881
4882 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4883 Jan Kratochvil <jan.kratochvil@redhat.com>
4884 Paul Fertser <fercerpav@gmail.com>
4885 Tsutomu Seki <sekiriki@gmail.com>
4886 Pedro Alves <palves@redhat.com>
4887
4888 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4889 'unittests/parse-connection-spec-selftests.c'.
4890 (COMMON_SFILES): Add 'common/netstuff.c'.
4891 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4892 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4893 * common/netstuff.c: New file.
4894 * common/netstuff.h: New file.
4895 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4896 (wait_for_connect): Update comment. New parameter
4897 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4898 Use 'sock' directly instead of 'scb->fd'.
4899 (try_connect): New function, with code from 'net_open'.
4900 (net_open): Rewrite main loop to deal with multiple
4901 sockets/addresses. Handle IPv6-style hostnames; implement
4902 support for IPv6 connections.
4903 * unittests/parse-connection-spec-selftests.c: New file.
4904
4905 2018-07-11 Pedro Alves <palves@redhat.com>
4906
4907 PR gdb/23377
4908 * remote.c (remote_target::remote_detach_pid): Call
4909 set_current_process.
4910
4911 2018-07-11 Pedro Alves <palves@redhat.com>
4912
4913 * h8300-tdep.c (h8300_gdbarch_init): Remove
4914 set_gdbarch_ecoff_reg_to_regnum calls.
4915
4916 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4917
4918 PR c++/23373
4919 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4920 offsets/sizes for static members of a class/struct.
4921
4922 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4923
4924 * target-descriptions.c (tdesc_register_bitsize): Rename.
4925 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4926 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4927 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4928
4929 2018-07-10 Tom Tromey <tom@tromey.com>
4930
4931 * breakpoint.c (moribund_locations): Now static and a
4932 std::vector.
4933 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4934 (build_bpstat_chain, update_global_location_list)
4935 (breakpoint_retire_moribund): Update.
4936 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4937 VEC.
4938
4939 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4942 (riscv_register_reggroup_p): Use new function, remove unneeded
4943 parenthesis.
4944 (riscv_push_dummy_call): Extend assert to compare against xlen or
4945 flen based on register type.
4946
4947 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4948
4949 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4950
4951 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4952
4953 * remote.c (show_hardware_watchpoint_limit): New function.
4954 (show_hardware_watchpoint_length_limit): New function.
4955 (show_hardware_breakpoint_limit): New function.
4956 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4957 where appropriate, update help text.
4958
4959 2018-07-09 Tom Tromey <tom@tromey.com>
4960
4961 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4962 (CLIBS): Don't mention NAT_CLIBS.
4963
4964 2018-07-09 Tom Tromey <tom@tromey.com>
4965
4966 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4967 (LIBGDB_OBS, clean mostlyclean): Update.
4968 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4969
4970 2018-07-09 Tom Tromey <tom@tromey.com>
4971
4972 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4973 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4974 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4975
4976 2018-07-09 Tom Tromey <tom@tromey.com>
4977
4978 * Makefile.in (ALLDEPFILES): Remove exec.c.
4979 (COMMON_OBS): Remove exec.o.
4980 (COMMON_SFILES): Add exec.c.
4981
4982 2018-07-09 Tom Tromey <tom@tromey.com>
4983
4984 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4985
4986 2018-07-09 Tom Tromey <tom@tromey.com>
4987
4988 * Makefile.in (clean mostlyclean): Remove stamp-version.
4989 (version.c): Depend on stamp-version.
4990 (stamp-version): New rule, from version.c rule.
4991
4992 2018-07-09 Tom Tromey <tom@tromey.com>
4993
4994 * Makefile.in (init.c): Depend on stamp-init.
4995 (stamp-init): New rule, from init.c rule.
4996 (clean mostlyclean): Remove stamp-init.
4997
4998 2018-07-09 Tom Tromey <tom@tromey.com>
4999
5000 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5001 SUBDIR_GCC_COMPILE_SRCS.
5002
5003 2018-07-09 Tom Tromey <tom@tromey.com>
5004
5005 * Makefile.in (init.c): Remove some unused sed rules.
5006
5007 2018-07-09 Tom Tromey <tom@tromey.com>
5008
5009 * Makefile.in (TSOBS): Remove.
5010 (INIT_FILES): Update.
5011 (LIBGDB_OBS): Update.
5012 (COMMON_SFILES): Add inflow.c.
5013 (SFILES): Remove inflow.c.
5014
5015 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5016
5017 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5018
5019 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
5020
5021 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5022 get_saveloc_name, is_signal_frame_name, step_name,
5023 init_remote_name, create_addr_space_name,
5024 destroy_addr_space_name, search_unwind_table_name,
5025 find_dyn_list_name): Constify.
5026
5027 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
5028
5029 * darwin-nat.c (darwin_pthread_kill): New function.
5030 (darwin_resume_thread): Use darwin_pthread_kill.
5031
5032 2018-07-05 Tom de Vries <tdevries@suse.de>
5033
5034 * macroexp.c (macro_buffer) <operator=>: New member function.
5035
5036 2018-07-04 Tom Tromey <tom@tromey.com>
5037
5038 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5039
5040 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5041
5042 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5043 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5044 * maint.c: Likewise.
5045 * top.c: Likewise.
5046
5047 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5048
5049 * NEWS: Create a new section for the next release branch.
5050 Rename the section of the current branch, now that it has
5051 been cut.
5052
5053 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5054
5055 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5056 * version.in: Bump version to 8.2.50.DATE-git.
5057
5058 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5059 Pedro Alves <palves@redhat.com>
5060
5061 * linux-nat.c (linux_init_ptrace): Rename to ...
5062 (linux_init_ptrace_procfs): ... this. Call
5063 linux_proc_init_warnings.
5064 (linux_nat_target::post_attach)
5065 (linux_nat_target::post_startup_inferior): Adjust.
5066 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5067 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5068
5069 2018-07-04 Tom de Vries <tdevries@suse.de>
5070
5071 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5072 check ...
5073 (read_comp_unit_head): ... here.
5074
5075 2018-07-03 Tom Tromey <tom@tromey.com>
5076
5077 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5078 (stop_tracing, tstatus_command)
5079 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5080 (print_one_static_tracepoint_marker): Update.
5081 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5082 std::vector.
5083 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5084 VEC.
5085 (all_tracepoints, static_tracepoints_here): Return std::vector.
5086
5087 2018-07-03 Tom Tromey <tom@tromey.com>
5088
5089 * common/ptid.c (ptid_equal): Remove.
5090 * common/ptid.h (ptid_equal): Don't declare.
5091 * ada-tasks.c: Update.
5092 * breakpoint.c: Update.
5093 * common/agent.c: Update.
5094 * corelow.c: Update.
5095 * darwin-nat-info.c: Update.
5096 * darwin-nat.c: Update.
5097 * dcache.c: Update.
5098 * dtrace-probe.c: Update.
5099 * dummy-frame.c: Update.
5100 * fbsd-nat.c: Update.
5101 * frame.c: Update.
5102 * gdbthread.h: Update.
5103 * gnu-nat.c: Update.
5104 * go32-nat.c: Update.
5105 * inf-loop.c: Update.
5106 * inf-ptrace.c: Update.
5107 * infcall.c: Update.
5108 * infcmd.c: Update.
5109 * inflow.c: Update.
5110 * infrun.c: Update.
5111 * linux-fork.c: Update.
5112 * linux-nat.c: Update.
5113 * linux-thread-db.c: Update.
5114 * mi/mi-cmd-var.c: Update.
5115 * mi/mi-interp.c: Update.
5116 * mi/mi-main.c: Update.
5117 * nto-procfs.c: Update.
5118 * ppc-linux-tdep.c: Update.
5119 * procfs.c: Update.
5120 * python/py-inferior.c: Update.
5121 * python/py-record-btrace.c: Update.
5122 * python/py-record.c: Update.
5123 * ravenscar-thread.c: Update.
5124 * regcache.c: Update.
5125 * remote-sim.c: Update.
5126 * remote.c: Update.
5127 * sol-thread.c: Update.
5128 * solib.c: Update.
5129 * target.c: Update.
5130 * tui/tui-stack.c: Update.
5131 * varobj.c: Update.
5132 * windows-nat.c: Update.
5133 * windows-tdep.c: Update.
5134
5135 2018-07-03 Tom Tromey <tom@tromey.com>
5136
5137 * common/ptid.c (ptid_match): Remove.
5138 * common/ptid.h (ptid_match): Don't declare.
5139 * fbsd-nat.c: Update.
5140 * infcmd.c: Update.
5141 * infrun.c: Update.
5142 * linux-nat.c: Update.
5143 * record-btrace.c: Update.
5144 * regcache.c: Update.
5145 * remote.c: Update.
5146
5147 2018-07-03 Tom Tromey <tom@tromey.com>
5148
5149 * common/ptid.c (ptid_tid_p): Remove.
5150 * common/ptid.h (ptid_tid_p): Don't declare.
5151 * sol-thread.c: Update.
5152
5153 2018-07-03 Tom Tromey <tom@tromey.com>
5154
5155 * common/ptid.c (ptid_lwp_p): Remove.
5156 * common/ptid.h (ptid_lwp_p): Don't declare.
5157 * fbsd-nat.c: Update.
5158 * linux-nat.c: Update.
5159 * nat/linux-procfs.c: Update.
5160 * nat/x86-linux-dregs.c: Update.
5161 * sol-thread.c: Update.
5162
5163 2018-07-03 Tom Tromey <tom@tromey.com>
5164
5165 * common/ptid.c (ptid_is_pid): Remove.
5166 * common/ptid.h (ptid_is_pid): Don't declare.
5167 * infrun.c: Update.
5168 * linux-nat.c: Update.
5169 * mi/mi-interp.c: Update.
5170 * remote.c: Update.
5171 * thread.c: Update.
5172
5173 2018-07-03 Tom Tromey <tom@tromey.com>
5174
5175 * common/ptid.c (ptid_get_tid): Remove.
5176 * common/ptid.h (ptid_get_tid): Don't declare.
5177 * ada-tasks.c: Update.
5178 * aix-thread.c: Update.
5179 * bsd-uthread.c: Update.
5180 * darwin-nat.c: Update.
5181 * fbsd-nat.c: Update.
5182 * i386-darwin-nat.c: Update.
5183 * infrun.c: Update.
5184 * linux-tdep.c: Update.
5185 * nto-procfs.c: Update.
5186 * ppc-ravenscar-thread.c: Update.
5187 * python/py-infthread.c: Update.
5188 * ravenscar-thread.c: Update.
5189 * sol-thread.c: Update.
5190 * sparc-ravenscar-thread.c: Update.
5191 * windows-nat.c: Update.
5192
5193 2018-07-03 Tom Tromey <tom@tromey.com>
5194
5195 * common/ptid.c (ptid_get_lwp): Remove.
5196 * common/ptid.h (ptid_get_lwp): Don't declare.
5197 * aarch64-linux-nat.c: Update.
5198 * ada-tasks.c: Update.
5199 * aix-thread.c: Update.
5200 * amd64-linux-nat.c: Update.
5201 * arm-linux-nat.c: Update.
5202 * corelow.c: Update.
5203 * fbsd-nat.c: Update.
5204 * fbsd-tdep.c: Update.
5205 * gnu-nat.c: Update.
5206 * i386-cygwin-tdep.c: Update.
5207 * i386-gnu-nat.c: Update.
5208 * i386-linux-nat.c: Update.
5209 * ia64-linux-nat.c: Update.
5210 * inf-ptrace.c: Update.
5211 * infrun.c: Update.
5212 * linux-fork.c: Update.
5213 * linux-nat.c: Update.
5214 * linux-tdep.c: Update.
5215 * linux-thread-db.c: Update.
5216 * mips-linux-nat.c: Update.
5217 * nat/aarch64-linux-hw-point.c: Update.
5218 * nat/aarch64-linux.c: Update.
5219 * nat/linux-btrace.c: Update.
5220 * nat/linux-osdata.c: Update.
5221 * nat/linux-procfs.c: Update.
5222 * nat/x86-linux-dregs.c: Update.
5223 * obsd-nat.c: Update.
5224 * ppc-fbsd-nat.c: Update.
5225 * ppc-linux-nat.c: Update.
5226 * procfs.c: Update.
5227 * python/py-infthread.c: Update.
5228 * ravenscar-thread.c: Update.
5229 * remote.c: Update.
5230 * s390-linux-nat.c: Update.
5231 * sol-thread.c: Update.
5232 * sol2-tdep.c: Update.
5233 * spu-linux-nat.c: Update.
5234 * x86-linux-nat.c: Update.
5235 * xtensa-linux-nat.c: Update.
5236
5237 2018-07-03 Tom Tromey <tom@tromey.com>
5238
5239 * common/ptid.c (ptid_get_pid): Remove.
5240 * common/ptid.h (ptid_get_pid): Don't declare.
5241 * aarch64-linux-nat.c: Update.
5242 * ada-lang.c: Update.
5243 * aix-thread.c: Update.
5244 * alpha-bsd-nat.c: Update.
5245 * amd64-fbsd-nat.c: Update.
5246 * amd64-linux-nat.c: Update.
5247 * arm-linux-nat.c: Update.
5248 * arm-nbsd-nat.c: Update.
5249 * auxv.c: Update.
5250 * break-catch-syscall.c: Update.
5251 * breakpoint.c: Update.
5252 * bsd-uthread.c: Update.
5253 * corelow.c: Update.
5254 * ctf.c: Update.
5255 * darwin-nat.c: Update.
5256 * fbsd-nat.c: Update.
5257 * fbsd-tdep.c: Update.
5258 * gcore.c: Update.
5259 * gnu-nat.c: Update.
5260 * hppa-nbsd-nat.c: Update.
5261 * hppa-obsd-nat.c: Update.
5262 * i386-fbsd-nat.c: Update.
5263 * ia64-linux-nat.c: Update.
5264 * inf-ptrace.c: Update.
5265 * infcmd.c: Update.
5266 * inferior.c: Update.
5267 * inferior.h: Update.
5268 * inflow.c: Update.
5269 * infrun.c: Update.
5270 * linux-fork.c: Update.
5271 * linux-nat.c: Update.
5272 * linux-tdep.c: Update.
5273 * linux-thread-db.c: Update.
5274 * m68k-bsd-nat.c: Update.
5275 * mi/mi-interp.c: Update.
5276 * mi/mi-main.c: Update.
5277 * mips-linux-nat.c: Update.
5278 * mips-nbsd-nat.c: Update.
5279 * mips64-obsd-nat.c: Update.
5280 * nat/aarch64-linux-hw-point.c: Update.
5281 * nat/aarch64-linux.c: Update.
5282 * nat/linux-btrace.c: Update.
5283 * nat/linux-osdata.c: Update.
5284 * nat/linux-procfs.c: Update.
5285 * nat/x86-linux-dregs.c: Update.
5286 * nto-procfs.c: Update.
5287 * obsd-nat.c: Update.
5288 * ppc-linux-nat.c: Update.
5289 * ppc-nbsd-nat.c: Update.
5290 * ppc-obsd-nat.c: Update.
5291 * proc-service.c: Update.
5292 * procfs.c: Update.
5293 * python/py-inferior.c: Update.
5294 * python/py-infthread.c: Update.
5295 * ravenscar-thread.c: Update.
5296 * record.c: Update.
5297 * remote-sim.c: Update.
5298 * remote.c: Update.
5299 * rs6000-nat.c: Update.
5300 * s390-linux-nat.c: Update.
5301 * sh-nbsd-nat.c: Update.
5302 * sol-thread.c: Update.
5303 * sparc-nat.c: Update.
5304 * sparc64-tdep.c: Update.
5305 * spu-linux-nat.c: Update.
5306 * spu-tdep.c: Update.
5307 * target-debug.h: Update.
5308 * target.c: Update.
5309 * thread.c: Update.
5310 * tid-parse.c: Update.
5311 * tracefile-tfile.c: Update.
5312 * vax-bsd-nat.c: Update.
5313 * windows-nat.c: Update.
5314 * x86-linux-nat.c: Update.
5315 * x86-nat.c: Update.
5316
5317 2018-07-03 Tom Tromey <tom@tromey.com>
5318
5319 * common/ptid.c (pid_to_ptid): Remove.
5320 * common/ptid.h (pid_to_ptid): Don't declare.
5321 * aix-thread.c: Update.
5322 * arm-linux-nat.c: Update.
5323 * common/ptid.c: Update.
5324 * common/ptid.h: Update.
5325 * corelow.c: Update.
5326 * ctf.c: Update.
5327 * darwin-nat.c: Update.
5328 * fbsd-nat.c: Update.
5329 * fork-child.c: Update.
5330 * gnu-nat.c: Update.
5331 * go32-nat.c: Update.
5332 * inf-ptrace.c: Update.
5333 * infcmd.c: Update.
5334 * inferior.c: Update.
5335 * infrun.c: Update.
5336 * linux-fork.c: Update.
5337 * linux-nat.c: Update.
5338 * nat/aarch64-linux-hw-point.c: Update.
5339 * nat/fork-inferior.c: Update.
5340 * nat/x86-linux-dregs.c: Update.
5341 * nto-procfs.c: Update.
5342 * obsd-nat.c: Update.
5343 * procfs.c: Update.
5344 * progspace.c: Update.
5345 * remote.c: Update.
5346 * rs6000-nat.c: Update.
5347 * s390-linux-nat.c: Update.
5348 * sol-thread.c: Update.
5349 * spu-linux-nat.c: Update.
5350 * target.c: Update.
5351 * top.c: Update.
5352 * tracefile-tfile.c: Update.
5353 * windows-nat.c: Update.
5354
5355 2018-07-03 Tom Tromey <tom@tromey.com>
5356
5357 * common/ptid.h (ptid_build): Don't declare.
5358 * common/ptid.c (ptid_build): Remove.
5359 * aix-thread.c: Update.
5360 * bsd-kvm.c: Update.
5361 * bsd-uthread.c: Update.
5362 * common/agent.c: Update.
5363 * common/ptid.c: Update.
5364 * common/ptid.h: Update.
5365 * corelow.c: Update.
5366 * darwin-nat.c: Update.
5367 * fbsd-nat.c: Update.
5368 * gnu-nat.c: Update.
5369 * linux-fork.c: Update.
5370 * linux-nat.c: Update.
5371 * linux-thread-db.c: Update.
5372 * nat/linux-osdata.c: Update.
5373 * nat/linux-procfs.c: Update.
5374 * nto-procfs.c: Update.
5375 * obsd-nat.c: Update.
5376 * proc-service.c: Update.
5377 * procfs.c: Update.
5378 * ravenscar-thread.c: Update.
5379 * remote-sim.c: Update.
5380 * remote.c: Update.
5381 * sol-thread.c: Update.
5382 * target.c: Update.
5383 * windows-nat.c: Update.
5384
5385 2018-07-03 Tom Tromey <tom@tromey.com>
5386
5387 * infrun.c (follow_exec): Use exit_inferior_silent.
5388 * inferior.c (exit_inferior_num_silent): Remove.
5389 * inferior.h (exit_inferior_num_silent): Don't declare.
5390
5391 2018-07-03 Tom Tromey <tom@tromey.com>
5392
5393 PR cli/23340:
5394 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5395 inferior_ptid on error.
5396
5397 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5398 Simon Marchi <simon.marchi@polymtl.ca>
5399
5400 PR tdep/8282
5401 * disasm.h (gdb_disassembler): Add
5402 `m_disassembler_options_holder'. member
5403 * disasm.c (get_all_disassembler_options): New function.
5404 (gdb_disassembler::gdb_disassembler): Use it.
5405 (gdb_buffered_insn_length_init_dis): Likewise.
5406 (gdb_buffered_insn_length): Adjust accordingly.
5407 (set_disassembler_options): Handle options with arguments.
5408 (show_disassembler_options_sfunc): Likewise. Add a leading new
5409 line if showing options with descriptions.
5410 (disassembler_options_completer): Adapt to using the
5411 `disasm_options_and_args_t' structure.
5412 * mips-tdep.c (mips_disassembler_options): New variable.
5413 (mips_disassembler_options_o32): Likewise.
5414 (mips_disassembler_options_n32): Likewise.
5415 (mips_disassembler_options_n64): Likewise.
5416 (gdb_print_insn_mips): Don't set `disassembler_options'.
5417 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5418 functions.
5419 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5420 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5421 `gdbarch_disassembler_options_implicit' and
5422 `gdbarch_valid_disassembler_options'.
5423 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5424 `disasm_options_and_args_t' structure.
5425 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5426 method.
5427 (valid_disassembler_options): Switch from `disasm_options_t' to
5428 the `disasm_options_and_args_t' structure.
5429 * NEWS: Document `set disassembler-options' support for the MIPS
5430 target.
5431 * gdbarch.h: Regenerate.
5432 * gdbarch.c: Regenerate.
5433
5434 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5435
5436 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5437
5438 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5439
5440 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5441 parameter in call to amd64_target_description.
5442 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5443 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5444 (amd64fbsd_init_abi): Likewise.
5445 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5446 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5447 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5448 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5449
5450 2018-06-29 Pedro Alves <palves@redhat.com>
5451
5452 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5453 "segments" parameter.
5454 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5455 (_initialize_amd64_tdep): Update call to
5456 amd64_create_target_description.
5457 (amd64_target_description): Add "segments" parameter. Adjust
5458 the implementation to use it.
5459 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5460 call to amd64_create_target_description.
5461 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5462 * gdb/arch/amd64.h (amd64_create_target_description): Add
5463 "segments" register.
5464 * gdb/arch/amd64.c (amd64_create_target_description): Add
5465 "segments" parameter. Call create_feature_i386_64bit_segments
5466 only if SEGMENTS is true.
5467 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5468 call to amd64_create_target_description.
5469
5470 2018-06-29 Pedro Alves <palves@redhat.com>
5471
5472 * thread.c (thread_target_id_str): New, factored out from ...
5473 (print_thread_info_1): ... here. Use it to compute the max
5474 "Target Id" column width.
5475
5476 2018-06-29 Pedro Alves <palves@redhat.com>
5477
5478 * remote.c (remote_target::extra_thread_info): Delete
5479 'display_buf' and 'n' locals. from the cache, regardless of
5480 packet mechanims is in use. Use cache for qThreadExtra and qP
5481 methods too.
5482
5483 2018-06-29 Pedro Alves <palves@redhat.com>
5484
5485 * blockframe.c (find_pc_sect_containing_function): New function.
5486 * breakpoint.c (print_breakpoint_location): Don't call
5487 find_pc_sect_function.
5488 * linespec.c (create_sals_line_offset): Record the location's
5489 symbol in the sal.
5490 * linespec.c (convert_address_location_to_sals): Fill in sal's
5491 symbol with find_pc_sect_containing_function.
5492 * symtab.c (find_function_start_sal): Rename to ...
5493 (find_function_start_sal_1): ... this.
5494 (find_function_start_sal): Reimplement as wrapper around
5495 find_function_start_sal_1, and use
5496 find_pc_sect_containing_function to fill in the sal's symbol.
5497 (find_function_start_sal(symbol*, bool)): Adjust.
5498 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5499 comments.
5500 (find_pc_sect_containing_function): Declare.
5501
5502 2018-06-29 Pedro Alves <palves@redhat.com>
5503
5504 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5505 true if the the location has no symbol.
5506
5507 2018-06-28 Tom Tromey <tom@tromey.com>
5508
5509 * NEWS: Mention --enable-codesign.
5510 * silent-rules.mk (ECHO_SIGN): New variable.
5511 * configure.ac: Add --enable-codesign.
5512 * configure: Rebuild.
5513 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5514 (gdb$(EXEEXT)): Optionally invoke codesign.
5515
5516 2018-06-28 Pedro Alves <palves@redhat.com>
5517
5518 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5519 comments.
5520 (switch_to_thread_no_regs): Adjust comment.
5521 * infcmd.c (stop_pc): Delete.
5522 (post_create_inferior, info_program_command): Replace references
5523 to stop_pc with references to thread_info->suspend.stop_pc.
5524 * inferior.h (stop_pc): Delete declaration.
5525 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5526 (handle_inferior_event_1, handle_signal_stop)
5527 (process_event_stop_test, keep_going_stepped_thread)
5528 (handle_step_into_function, handle_step_into_function_backward)
5529 (print_stop_location): Replace references to stop_pc with
5530 references to thread_info->suspend.stop_pc.
5531 (struct infcall_suspend_state) <stop_pc>: Delete field.
5532 (save_infcall_suspend_state, restore_infcall_suspend_state):
5533 Remove references to inf_stat->stop_pc.
5534 * linux-fork.c (fork_load_infrun_state): Likewise.
5535 * record-btrace.c (record_btrace_set_replay): Likewise.
5536 * record-full.c (record_full_goto_entry): Likewise.
5537 * remote.c (print_one_stopped_thread): Likewise.
5538 * target.c (target_resume): Extend comment.
5539 * thread.c (set_executing_thread): New.
5540 (set_executing): Use it.
5541 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5542 Remove references to stop_pc.
5543
5544 2018-06-28 Pedro Alves <palves@redhat.com>
5545
5546 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5547 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5548
5549 2018-06-28 Tom Tromey <tom@tromey.com>
5550
5551 * coffread.c (coff_symfile_finish): Update.
5552 * xcoffread.c (xcoff_symfile_finish): Update.
5553 * elfread.c (elf_symfile_finish): Update.
5554 * symfile.h (dwarf2_free_objfile): Don't declare.
5555 * dwarf2read.c (_initialize_dwarf2_read): Use
5556 register_objfile_data_with_cleanup.
5557 (dwarf2_free_objfile): Now static. Change signature.
5558
5559 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5560
5561 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5562 option "-o" to add-symbol-file-load to add an offset to each
5563 section's load address.
5564 * symfile.c (set_objfile_default_section_offset): New function.
5565
5566 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5567
5568 * symfile.c (add_symbol_file_command): Make sure that sections
5569 with the same name are sorted in the same order.
5570
5571 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5572
5573 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5574 require the second argument. If omitted, load sections at the
5575 addresses specified in the file.
5576
5577 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5578
5579 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5580 (_initialize_symfile): Add option "-o" to symbol-file to add an
5581 offset to each section of the symbol file.
5582
5583 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5584
5585 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5586
5587 2018-06-27 Tom Tromey <tom@tromey.com>
5588
5589 * stack.c (_initialize_stack): Update "func" help text.
5590
5591 2018-06-27 Tom Tromey <tom@tromey.com>
5592
5593 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5594 std::vector.
5595 (unwind_infopy_str, pyuw_create_unwind_info)
5596 (unwind_infopy_add_saved_register, pyuw_sniffer)
5597 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5598 Update.
5599 (struct saved_reg): Add constructor.
5600 <value>: Now a gdbpy_ref<>.
5601
5602 2018-06-27 Tom Tromey <tom@tromey.com>
5603
5604 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5605
5606 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5607
5608 * gdb-gdb.py.in: Format using autopep8.
5609
5610 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5611
5612 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5613 (type_lookup_function): Recognize CORE_ADDR values.
5614
5615 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5616
5617 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5618 print tag_name.
5619
5620 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5621
5622 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5623 <__lt__>: Add.
5624
5625 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5626
5627 * gdb-gdb.py: Move to...
5628 * gdb-gdb.py.in: ... here.
5629 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5630 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5631 dependencies.
5632 (distclean): Remove gdb-gdb.py when cleaning.
5633 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5634 * configure: Re-generate.
5635
5636 2018-06-27 Pedro Alves <palves@redhat.com>
5637
5638 * proc-service.c (get_ps_regcache): New.
5639 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5640 (ps_lsetfpregs): Use it.
5641
5642 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5643
5644 PR gdb/21695
5645 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5646 (dwarf_decode_lines_1): Adjust.
5647
5648 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5649
5650 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5651 override.
5652 <info_proc>: Likewise.
5653
5654 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5655
5656 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5657 to windows_fetch_one_register, and only handle the case of
5658 fetching one register. Move the code that reloads the context
5659 and iterates over all registers if R is negative to...
5660 (windows_nat_target::fetch_registers): ... here.
5661 (do_windows_store_inferior_registers): Rename to
5662 windows_store_one_register, and only handle the case of storing
5663 one register. Move the code that handles the case where r is
5664 negative to...
5665 (windows_nat_target::store_registers) ... here.
5666
5667 2018-06-26 Tom Tromey <tom@tromey.com>
5668
5669 PR rust/22574:
5670 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5671 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5672 Update.
5673 (rust_internal_print_type): Add podata parameter.
5674 (rust_print_type): Update.
5675
5676 2018-06-26 Tom Tromey <tom@tromey.com>
5677
5678 * typeprint.h (struct print_offset_data) <update, finish,
5679 maybe_print_hole>: New methods.
5680 <indentation>: New constant.
5681 * typeprint.c (print_offset_data::indentation): Define.
5682 (print_offset_data::maybe_print_hole, print_offset_data::update)
5683 (print_offset_data::finish): Move from c-typeprint.c and rename.
5684 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5685 (print_spaces_filtered_with_print_options): Update.
5686 (c_print_type_union_field_offset, maybe_print_hole)
5687 (c_print_type_struct_field_offset): Move to typeprint.c and
5688 rename.
5689 (c_type_print_base_struct_union): Update.
5690
5691 2018-06-25 Pedro Alves <palves@redhat.com>
5692
5693 * gdbthread.h (thread_info_ref, delete_thread)
5694 (delete_thread_silent, first_thread_of_inferior)
5695 (any_thread_of_inferior, switch_to_thread)
5696 (enable_thread_stack_temporaries)
5697 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5698 (get_last_thread_stack_temporary)
5699 (value_in_thread_stack_temporaries, can_access_registers_thread):
5700 Spell out "struct thread_info" instead of just "thread_info".
5701 * inferior.h (notice_new_inferior): Likewise.
5702
5703 2018-06-25 Pedro Alves <palves@redhat.com>
5704
5705 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5706 pass thread_info pointer to delete_thread.
5707 (windows_nat_target::detach): Pass inferior pointer to
5708 detach_inferior.
5709 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5710 delete_thread.
5711 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5712 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5713 and pass a thread_info pointer to delete_thread.
5714 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5715 pass thread_info pointer to delete_thread.
5716 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5717 delete_thread_silent call.
5718 * procfs.c (procfs_target::detach): Pass inferior pointer to
5719 detach_inferior.
5720 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5721 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5722 delete_thread_silent call.
5723 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5724 pass thread_info pointer to delete_thread.
5725 (windows_nat_target::detach): Pass inferior pointer to
5726 delete_inferior.
5727
5728 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5729
5730 * regcache.c (readable_regcache::read_part): Fix asserts.
5731 (reg_buffer::raw_collect_part): New function.
5732 (regcache::write_part): Fix asserts.
5733 (reg_buffer::raw_supply_part): New function.
5734 (regcache::transfer_regset_register): New helper function.
5735 (regcache::transfer_regset): Call new functions.
5736 (regcache_supply_regset): Use gdb_byte*.
5737 (regcache::supply_regset): Likewise.
5738 (regcache_collect_regset): Likewise.
5739 (regcache::collect_regset): Likewise.
5740 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5741 (reg_buffer::raw_supply_part): Likewise.
5742 (regcache::transfer_regset_register): Likewise.
5743 (regcache::transfer_regset): Use gdb_byte*.
5744
5745 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5746
5747 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5748
5749 2018-06-21 Pedro Alves <palves@redhat.com>
5750
5751 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5752 instead of a ptid_t. All callers adjusted.
5753 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5754 adjusted.
5755 (print_ada_task_info, display_current_task_id, task_command_1):
5756 Adjust.
5757 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5758 inferior_thread.
5759 (breakpoint_kind): Adjust.
5760 (remove_breakpoints_pid): Rename to ...
5761 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5762 pointer. All callers adjusted.
5763 (bpstat_clear_actions): Use inferior_thread.
5764 (get_bpstat_thread): New.
5765 (bpstat_do_actions): Use it.
5766 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5767 to take a thread_info pointer. All callers adjusted.
5768 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5769 (breakpoint_re_set_thread): Use inferior_thread.
5770 * breakpoint.h (struct inferior): Forward declare.
5771 (bpstat_stop_status): Update.
5772 (remove_breakpoints_pid): Delete.
5773 (remove_breakpoints_inf): New.
5774 * bsd-uthread.c (bsd_uthread_target::wait)
5775 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5776 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5777 (maint_btrace_packet_history_cmd)
5778 (maint_btrace_clear_packet_history_cmd): Adjust.
5779 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5780 inferior_thread.
5781 * cli/cli-interp.c: Include "inferior.h".
5782 * common/refcounted-object.h (struct
5783 refcounted_object_ref_policy): New.
5784 * compile/compile-object-load.c: Include gdbthread.h.
5785 (store_regs): Use inferior_thread.
5786 * corelow.c (core_target::close): Use current_inferior.
5787 (core_target_open): Adjust to use first_thread_of_inferior and use
5788 the current inferior.
5789 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5790 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5791 <thread>: ... this new field. All references adjusted.
5792 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5793 Take a thread_info pointer instead of a ptid_t.
5794 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5795 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5796 thread_info pointer instead of a ptid_t.
5797 * elfread.c: Include "inferior.h".
5798 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5799 Use inferior_thread.
5800 * eval.c (evaluate_subexp): Likewise.
5801 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5802 inferior_thread.
5803 * gdb_proc_service.h (struct thread_info): Forward declare.
5804 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5805 <thread>: ... this new field. All references adjusted.
5806 * gdbarch.h, gdbarch.c: Regenerate.
5807 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5808 'thread' parameter. All implementations and callers adjusted.
5809 * gdbthread.h (thread_info) <set_running>: New method.
5810 (delete_thread, delete_thread_silent): Take a thread_info pointer
5811 instead of a ptid.
5812 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5813 (first_thread_of_process): Delete, replaced by ...
5814 (first_thread_of_inferior): ... this new function. All callers
5815 adjusted.
5816 (any_live_thread_of_process): Delete, replaced by ...
5817 (any_live_thread_of_inferior): ... this new function. All callers
5818 adjusted.
5819 (switch_to_thread, switch_to_no_thread): Declare.
5820 (is_executing): Delete.
5821 (enable_thread_stack_temporaries): Update comment.
5822 <enable_thread_stack_temporaries>: Take a thread_info pointer
5823 instead of a ptid_t. Incref the thread.
5824 <~enable_thread_stack_temporaries>: Decref the thread.
5825 <m_ptid>: Delete
5826 <m_thr>: New.
5827 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5828 (get_last_thread_stack_temporary)
5829 (value_in_thread_stack_temporaries, can_access_registers_thread):
5830 Take a thread_info pointer instead of a ptid_t. All callers
5831 adjusted.
5832 * infcall.c (get_call_return_value): Use inferior_thread.
5833 (run_inferior_call): Work with thread pointers instead of ptid_t.
5834 (call_function_by_hand_dummy): Work with thread pointers instead
5835 of ptid_t. Use thread_info_ref.
5836 * infcmd.c (proceed_thread_callback): Access thread's state
5837 directly.
5838 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5839 access thread's state directly.
5840 (continue_command): Use inferior_thread.
5841 (info_program_command): Use find_thread_ptid and access thread
5842 state directly.
5843 (proceed_after_attach_callback): Use thread state directly.
5844 (notice_new_inferior): Take a thread_info pointer instead of a
5845 ptid_t. All callers adjusted.
5846 (exit_inferior): Take an inferior pointer instead of a pid. All
5847 callers adjusted.
5848 (exit_inferior_silent): New.
5849 (detach_inferior): Delete.
5850 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5851 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5852 (detach_inferior_command, kill_inferior_command): Use
5853 find_inferior_id instead of valid_gdb_inferior_id and
5854 gdb_inferior_id_to_pid.
5855 (inferior_command): Use inferior and thread pointers.
5856 * inferior.h (struct thread_info): Forward declare.
5857 (notice_new_inferior): Take a thread_info pointer instead of a
5858 ptid_t. All callers adjusted.
5859 (detach_inferior): Delete declaration.
5860 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5861 instead of a pid. All callers adjusted.
5862 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5863 (valid_gdb_inferior_id): Delete.
5864 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5865 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5866 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5867 ...
5868 <inf>: ... this new field.
5869 <step_ptid>: Delete, replaced by ...
5870 <step_thread>: ... this new field.
5871 (get_displaced_stepping_state): Take an inferior pointer instead
5872 of a pid. All callers adjusted.
5873 (displaced_step_in_progress_any_inferior): Adjust.
5874 (displaced_step_in_progress_thread): Take a thread pointer instead
5875 of a ptid_t. All callers adjusted.
5876 (displaced_step_in_progress, add_displaced_stepping_state): Take
5877 an inferior pointer instead of a pid. All callers adjusted.
5878 (get_displaced_step_closure_by_addr): Adjust.
5879 (remove_displaced_stepping_state): Take an inferior pointer
5880 instead of a pid. All callers adjusted.
5881 (displaced_step_prepare_throw, displaced_step_prepare)
5882 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5883 All callers adjusted.
5884 (start_step_over): Adjust.
5885 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5886 displaced step queue.
5887 (do_target_resume): Adjust.
5888 (fetch_inferior_event): Use inferior_thread.
5889 (context_switch, get_inferior_stop_soon): Take an
5890 execution_control_state pointer instead of a ptid_t. All callers
5891 adjusted.
5892 (switch_to_thread_cleanup): Delete.
5893 (stop_all_threads): Use scoped_restore_current_thread.
5894 * inline-frame.c: Include "gdbthread.h".
5895 (inline_state) <inline_state>: Take a thread pointer instead of a
5896 ptid_t. All callers adjusted.
5897 <ptid>: Delete, replaced by ...
5898 <thread>: ... this new field.
5899 (find_inline_frame_state): Take a thread pointer instead of a
5900 ptid_t. All callers adjusted.
5901 (skip_inline_frames, step_into_inline_frame)
5902 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5903 pointer instead of a ptid_t. All callers adjusted.
5904 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5905 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5906 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5907 pointers directly.
5908 * linux-nat.c (get_detach_signal): Likewise.
5909 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5910 (thread_db_notice_clone): Adjust.
5911 (thread_db_find_new_threads_silently)
5912 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5913 a thread pointer instead of a ptid_t. All callers adjusted.
5914 * mi/mi-cmd-var.c: Include "inferior.h".
5915 (mi_cmd_var_update_iter): Update to use thread pointers.
5916 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5917 inferior directly.
5918 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5919 out to ...
5920 (mi_output_running): ... this new function.
5921 (mi_on_resume_1): Adjust to use it.
5922 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5923 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5924 directly.
5925 (interrupt_thread_callback): : Adjust to use thread and inferior
5926 pointers.
5927 * proc-service.c: Include "gdbthread.h".
5928 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5929 * progspace-and-thread.c: Include "inferior.h".
5930 * progspace.c: Include "inferior.h".
5931 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5932 hold a reference to an inferior_object.
5933 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5934 inferior_thread.
5935 * python/py-inferior.c (struct inferior_object): Give the type a
5936 tag name instead of a typedef.
5937 (python_on_normal_stop): No need to check if the current thread is
5938 listed.
5939 (inferior_to_inferior_object): Change return type to
5940 inferior_object. All callers adjusted.
5941 (find_thread_object): Delete, bits factored out to ...
5942 (thread_to_thread_object): ... this new function.
5943 * python/py-infthread.c (create_thread_object): Use
5944 inferior_to_inferior_object.
5945 (thpy_is_stopped): Use thread pointer directly.
5946 (gdbpy_selected_thread): Use inferior_thread.
5947 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5948 field, replaced with ...
5949 <thread>: ... this new field. All users adjusted.
5950 (btpy_insn_or_gap_new): Drop const.
5951 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5952 callers adjusted.
5953 * python/py-record.c: Include "gdbthread.h".
5954 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5955 a ptid_t. All callers adjusted.
5956 (gdbpy_current_recording): Use inferior_thread.
5957 * python/py-record.h (recpy_record_object) <ptid>: Delete
5958 field, replaced with ...
5959 <thread>: ... this new field. All users adjusted.
5960 (recpy_element_object) <ptid>: Delete
5961 field, replaced with ...
5962 <thread>: ... this new field. All users adjusted.
5963 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5964 a ptid_t. All callers adjusted.
5965 * python/py-threadevent.c: Include "gdbthread.h".
5966 (get_event_thread): Use thread_to_thread_object.
5967 * python/python-internal.h (struct inferior_object): Forward
5968 declare.
5969 (find_thread_object, find_inferior_object): Delete declarations.
5970 (thread_to_thread_object, inferior_to_inferior_object): New
5971 declarations.
5972 * record-btrace.c: Include "inferior.h".
5973 (require_btrace_thread): Use inferior_thread.
5974 (record_btrace_frame_sniffer)
5975 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5976 (get_thread_current_frame): Use scoped_restore_current_thread and
5977 switch_to_thread.
5978 (get_thread_current_frame): Use thread pointer directly.
5979 (record_btrace_replay_at_breakpoint): Use thread's inferior
5980 pointer directly.
5981 * record-full.c: Include "inferior.h".
5982 * regcache.c: Include "gdbthread.h".
5983 (get_thread_arch_regcache): Use the inferior's address space
5984 directly.
5985 (get_thread_regcache, registers_changed_thread): New.
5986 * regcache.h (get_thread_regcache(thread_info *thread)): New
5987 overload.
5988 (registers_changed_thread): New.
5989 (remote_target) <remote_detach_1>: Swap order of parameters.
5990 (remote_add_thread): <remote_add_thread>: Return the new thread.
5991 (get_remote_thread_info(ptid_t)): New overload.
5992 (remote_target::remote_notice_new_inferior): Use thread pointers
5993 directly.
5994 (remote_target::process_initial_stop_replies): Use
5995 thread_info::set_running.
5996 (remote_target::remote_detach_1, remote_target::detach)
5997 (extended_remote_target::detach): Adjust.
5998 * stack.c (frame_show_address): Use inferior_thread.
5999 * target-debug.h (target_debug_print_thread_info_pp): New.
6000 * target-delegates.c: Regenerate.
6001 * target.c (default_thread_address_space): Delete.
6002 (memory_xfer_partial_1): Use current_inferior.
6003 (target_detach): Use current_inferior.
6004 (target_thread_address_space): Delete.
6005 (generic_mourn_inferior): Use current_inferior.
6006 * target.h (struct target_ops) <thread_address_space>: Delete.
6007 (target_thread_address_space): Delete.
6008 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
6009 pointers directly.
6010 (delete_thread_1, delete_thread, delete_thread_silent): Take a
6011 thread pointer instead of a ptid_t. Adjust all callers.
6012 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6013 (first_thread_of_process): Delete, replaced by ...
6014 (first_thread_of_inferior): ... this new function. All callers
6015 adjusted.
6016 (any_thread_of_process): Rename to ...
6017 (any_thread_of_inferior): ... this, and take an inferior pointer.
6018 (any_live_thread_of_process): Rename to ...
6019 (any_live_thread_of_inferior): ... this, and take an inferior
6020 pointer.
6021 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6022 (value_in_thread_stack_temporaries)
6023 (get_last_thread_stack_temporary): Take a thread pointer instead
6024 of a ptid_t. Adjust all callers.
6025 (thread_info::set_running): New.
6026 (validate_registers_access): Use inferior_thread.
6027 (can_access_registers_ptid): Rename to ...
6028 (can_access_registers_thread): ... this, and take a thread
6029 pointer.
6030 (print_thread_info_1): Adjust to compare thread pointers instead
6031 of ptids.
6032 (switch_to_no_thread, switch_to_thread): Make extern.
6033 (scoped_restore_current_thread::~scoped_restore_current_thread):
6034 Use m_thread pointer directly.
6035 (scoped_restore_current_thread::scoped_restore_current_thread):
6036 Use inferior_thread.
6037 (thread_command): Use thread pointer directly.
6038 (thread_num_make_value_helper): Use inferior_thread.
6039 * top.c (execute_command): Use inferior_thread.
6040 * tui/tui-interp.c: Include "inferior.h".
6041 * varobj.c (varobj_create): Use inferior_thread.
6042 (value_of_root_1): Use find_thread_global_id instead of
6043 global_thread_id_to_ptid.
6044
6045 2018-06-21 Alan Hayward <alan.hayward@arm.com>
6046
6047 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6048 possible.
6049 (regcache::write_part): Likewise.
6050 (readable_regcache::cooked_read_part): Update comment.
6051 (readable_regcache::cooked_write_part): Likewise.
6052 * regcache.h: (readable_regcache::read_part): Likewise.
6053 (regcache::write_part): Likewise.
6054
6055 2018-06-21 Richard Bunt <richard.bunt@arm.com>
6056 Dirk Schubert <dirk.schubert@arm.com>
6057
6058 * aarch64-linux-nat.c (post_attach): New.
6059 (aarch64_linux_nat_target::post_attach): Override post_attach to
6060 record the number of hardware debug registers.
6061
6062 2018-06-20 Tom Tromey <tom@tromey.com>
6063
6064 * python/py-param.c (add_setshow_generic): Make parameters const.
6065 (parmpy_init): Update.
6066
6067 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6068
6069 * regcache.h (regcache_cooked_read_ftype): Rename to...
6070 (register_read_ftype): ...this, change type to function_view.
6071 (class reg_buffer) <save>: Remove src parameter.
6072 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6073 parameter non-const in first overload. Remove src parameter in
6074 second overload.
6075 * regcache.c (do_cooked_read): Remove.
6076 (readonly_detached_regcache::readonly_detached_regcache): Make
6077 parameter non-const, adjust call to other constructor.
6078 (reg_buffer::save): Remove src parameter.
6079 * frame.c (do_frame_register_read): Remove.
6080 (frame_save_as_regcache): Use lambda function.
6081 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6082 parameter to ppu2spu_data *.
6083 (ppu2spu_sniffer): Use lambda function.
6084
6085 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 * record-full.c (record_full_target::insert_breakpoint): Remove
6088 "struct" keyword, add const.
6089
6090 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6093 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6094 * configure.ac: Remove AC_PREREQ, add missing quoting.
6095 * gnulib/configure.ac: Modernize usage of
6096 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6097 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6098 (AUTOMAKE_VERSION): Bump to 1.15.1.
6099 * configure: Re-generate.
6100 * config.in: Re-generate.
6101 * aclocal.m4: Re-generate.
6102 * gnulib/aclocal.m4: Re-generate.
6103 * gnulib/config.in: Re-generate.
6104 * gnulib/configure: Re-generate.
6105 * gnulib/import/Makefile.in: Re-generate.
6106
6107 2018-06-19 Pedro Alves <palves@redhat.com>
6108
6109 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6110 (lookup_minimal_symbol_by_pc_section): ... here with
6111 gdb_assert_not_reached added.
6112
6113 2018-06-19 Pedro Alves <palves@redhat.com>
6114
6115 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6116 parameter with a block parameter. Compare location's block symbol
6117 with the frame's block instead of addresses.
6118 (skip_inline_frames): Pass the current block instead of the
6119 frame's address. Break out as soon as we determine the frame
6120 should not be skipped.
6121
6122 2018-06-18 Tom Tromey <tom@tromey.com>
6123
6124 * solib-aix.c (solib_aix_get_section_offsets): Return
6125 unique_xmalloc_ptr.
6126 (solib_aix_solib_create_inferior_hook): Update.
6127
6128 2018-06-18 Tom Tromey <tom@tromey.com>
6129
6130 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6131
6132 2018-06-18 Tom Tromey <tom@tromey.com>
6133
6134 * solib-frv.c (frv_relocate_main_executable): Use
6135 unique_xmalloc_ptr.
6136 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6137 unique_xmalloc_ptr.
6138
6139 2018-06-18 Tom Tromey <tom@tromey.com>
6140
6141 * objfiles.h (inhibit_section_map_updates): Update.
6142 (resume_section_map_updates, resume_section_map_updates_cleanup):
6143 Remove.
6144 * solib-svr4.c (svr4_handle_solib_event): Update.
6145 * objfiles.c (inhibit_section_map_updates): Return
6146 scoped_restore_tmpl<int>.
6147 (resume_section_map_updates, resume_section_map_updates_cleanup):
6148 Remove.
6149
6150 2018-06-18 Tom Tromey <tom@tromey.com>
6151
6152 * valprint.h (read_string): Update.
6153 * valprint.c (read_string): Change type of "buffer".
6154 (val_print_string): Update.
6155 * python/py-value.c (valpy_string): Update.
6156 * language.h (struct language_defn) <la_get_string>: Change
6157 type of "buffer".
6158 (default_get_string, c_get_string): Update.
6159 * language.c (default_get_string): Change type of "buffer".
6160 * guile/scm-value.c (gdbscm_value_to_string): Update.
6161 * c-lang.c (c_get_string): Change type of "buffer".
6162
6163 2018-06-18 Tom Tromey <tom@tromey.com>
6164
6165 * ser-mingw.c (struct pipe_state_destroyer): New.
6166 (pipe_state_up): New typedef.
6167 (cleanup_pipe_state): Remove.
6168 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6169
6170 2018-06-18 Tom Tromey <tom@tromey.com>
6171
6172 * rust-lang.h (rust_yyerror): Don't declare.
6173 * rust-lang.c (rust_language_defn): Update.
6174 * rust-exp.y (yyerror): Now static.
6175 * parse.c (parse_exp_in_context_1): Update.
6176 * p-lang.h (p_yyerror): Don't declare.
6177 * p-lang.c (p_language_defn): Update.
6178 * p-exp.y (yyerror): Now static.
6179 * opencl-lang.c (opencl_language_defn): Update.
6180 * objc-lang.c (objc_language_defn): Update.
6181 * m2-lang.h (m2_yyerror): Don't declare.
6182 * m2-lang.c (m2_language_defn): Update.
6183 * m2-exp.y (yyerror): Now static.
6184 * language.h (struct language_defn) <la_error>: Remove.
6185 * language.c (unk_lang_error): Remove.
6186 (unknown_language_defn, auto_language_defn): Remove.
6187 * go-lang.h (go_yyerror): Don't declare.
6188 * go-lang.c (go_language_defn): Update.
6189 * go-exp.y (yyerror): Now static.
6190 * f-lang.h (f_yyerror): Don't declare.
6191 * f-lang.c (f_language_defn): Update.
6192 * f-exp.y (yyerror): Now static.
6193 * d-lang.h (d_yyerror): Don't declare.
6194 * d-lang.c (d_language_defn): Update.
6195 * d-exp.y (yyerror): Now static.
6196 * c-lang.h (c_yyerror): Don't declare.
6197 * c-lang.c (c_language_defn, cplus_language_defn)
6198 (asm_language_defn, minimal_language_defn): Update.
6199 * c-exp.y (yyerror): Now static.
6200 * ada-lang.h (ada_yyerror): Don't declare.
6201 * ada-lang.c (ada_language_defn): Update.
6202 * ada-exp.y (yyerror): Now static.
6203
6204 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6205
6206 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6207 (store_sveregs_to_thread): Likewise.
6208 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6209 (aarch64_linux_store_inferior_registers): Likewise.
6210 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6211 function.
6212 (aarch64_sve_regs_copy_to_regcache): Likewise.
6213 (aarch64_sve_regs_copy_from_regcache): Likewise.
6214 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6215 declaration.
6216 (aarch64_sve_regs_copy_to_regcache): Likewise.
6217 (aarch64_sve_regs_copy_from_regcache): Likewise.
6218 (sve_context): Structure from Linux headers.
6219 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6220 (SVE_SIG_ZREG_SIZE): Likewise.
6221 (SVE_SIG_PREG_SIZE): Likewise.
6222 (SVE_SIG_FFR_SIZE): Likewise.
6223 (SVE_SIG_REGS_OFFSET): Likewise.
6224 (SVE_SIG_ZREGS_OFFSET): Likewise.
6225 (SVE_SIG_ZREG_OFFSET): Likewise.
6226 (SVE_SIG_ZREGS_SIZE): Likewise.
6227 (SVE_SIG_PREGS_OFFSET): Likewise.
6228 (SVE_SIG_PREG_OFFSET): Likewise.
6229 (SVE_SIG_PREGS_SIZE): Likewise.
6230 (SVE_SIG_FFR_OFFSET): Likewise.
6231 (SVE_SIG_REGS_SIZE): Likewise.
6232 (SVE_SIG_CONTEXT_SIZE): Likewise.
6233 (SVE_PT_REGS_MASK): Likewise.
6234 (SVE_PT_REGS_FPSIMD): Likewise.
6235 (SVE_PT_REGS_SVE): Likewise.
6236 (SVE_PT_VL_INHERIT): Likewise.
6237 (SVE_PT_VL_ONEXEC): Likewise.
6238 (SVE_PT_REGS_OFFSET): Likewise.
6239 (SVE_PT_FPSIMD_OFFSET): Likewise.
6240 (SVE_PT_FPSIMD_SIZE): Likewise.
6241 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6242 (SVE_PT_SVE_PREG_SIZE): Likewise.
6243 (SVE_PT_SVE_FFR_SIZE): Likewise.
6244 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6245 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6246 (__SVE_SIG_TO_PT): Likewise.
6247 (SVE_PT_SVE_OFFSET): Likewise.
6248 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6249 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6250 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6251 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6252 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6253 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6254 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6255 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6256 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6257 (SVE_PT_SVE_SIZE): Likewise.
6258 (SVE_PT_SIZE): Likewise.
6259 (HAS_SVE_STATE): New define.
6260
6261 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6262
6263 * nat/aarch64-sve-linux-sigcontext.h: New file.
6264 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6265 new files.
6266 (SVE_VQ_MIN): Likewise.
6267 (SVE_VQ_MAX): Likewise.
6268 (SVE_VL_MIN): Likewise.
6269 (SVE_VL_MAX): Likewise.
6270 (SVE_NUM_ZREGS): Likewise.
6271 (SVE_NUM_PREGS): Likewise.
6272 (sve_vl_valid): Likewise.
6273 (struct user_sve_header): Likewise.
6274
6275 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6276 Richard Bunt <Richard.Bunt@arm.com>
6277
6278 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6279 was requested by GDB.
6280
6281 2018-06-15 Tom de Vries <tdevries@suse.de>
6282
6283 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6284
6285 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * gnulib/update-gnulib.sh: Print expected versions of
6288 autoconf/aclocal.
6289
6290 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6291
6292 * arch-utils.c (default_type_align): Use type_length_units.
6293 * gdbtypes.c (type_align): Use type_length_units.
6294
6295 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6296
6297 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6298 of 'define' command.
6299
6300 2018-06-14 Tom de Vries <tdevries@suse.de>
6301
6302 PR cli/22573
6303 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6304 get_no_prettyformat_print_options.
6305
6306 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6307
6308 * sparc-nat.h: Include target.h.
6309 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6310 <fetch_registers>: Remove this argument in function call.
6311 <store_registers>: Remove this argument in function call, remove
6312 extra semicolon.
6313 <low_forget_process>: Call sparc64_forget_process instead of
6314 sparc_forget_process.
6315
6316 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6317
6318 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6319 (procfs_target::make_corefile_notes): Adjust to new
6320 target_read_alloc return type.
6321
6322 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6323 Stephen Roberts <stephen.roberts@arm.com>
6324
6325 PR gdb/22882
6326 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6327 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6328 Move should_notify_stop local into more inner scope.
6329
6330 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6331 Stephen Roberts <stephen.roberts@arm.com>
6332
6333 PR gdb/22882
6334 * infrun.c (resume_1): Add call to mark_async_event_handler.
6335
6336 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6337
6338 * infrun.c (do_target_wait): Change old version of $pc printed.
6339
6340 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6341
6342 * dwarf2read.c (read_index_from_section): Rename to...
6343 (read_gdb_index_from_section): ... this, update all callers.
6344 (dwarf2_read_index): Rename to...
6345 (dwarf2_read_gdb_index): ... this, update all callers.
6346
6347 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6348
6349 * gdb/hppa-linux-nat.c
6350 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6351 hppa_linux_nat_target::fetch_registers.
6352
6353 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6354
6355 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6356 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6357 (AARCH64_DWARF_SVE_FFR): Likewise.
6358 (AARCH64_DWARF_SVE_P0): Likewise.
6359 (AARCH64_DWARF_SVE_Z0): Likewise.
6360
6361 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6362
6363 * common/common-regcache.h (raw_compare): New function.
6364 * regcache.c (regcache::raw_compare): Likewise.
6365 * regcache.h (regcache::raw_compare): New declaration.
6366
6367 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6368
6369 * common/common-regcache.h (reg_buffer_common): New structure.
6370 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6371 (reg_buffer::raw_supply): Likewise.
6372 (reg_buffer::raw_supply_integer): Likewise.
6373 (reg_buffer::raw_supply_zeroed): Likewise.
6374 (reg_buffer::raw_collect): Likewise.
6375 (reg_buffer::raw_collect_integer): Likewise.
6376 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6377 (reg_buffer::raw_supply): Likewise.
6378 (reg_buffer::raw_supply_integer): Likewise.
6379 (reg_buffer::raw_supply_zeroed): Likewise.
6380 (reg_buffer::raw_collect): Likewise.
6381 (reg_buffer::raw_collect_integer): Likewise.
6382
6383 2018-06-10 Tom Tromey <tom@tromey.com>
6384
6385 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6386 (class remote_state) <stop_reply_queue>: Now std::vector.
6387 (remote_state::~remote_state)
6388 (remote_target::stop_reply_queue_length): Update.
6389 (struct queue_iter_param, remove_child_of_pending_fork)
6390 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6391 (check_pending_event_prevents_wildcard_vcont_callback)
6392 (remove_stop_reply_for_inferior)
6393 (remove_stop_reply_of_remote_state)
6394 (remote_notif_remove_once_on_match)
6395 (stop_reply_match_ptid_and_ws)
6396 (remote_kill_child_of_pending_fork): Remove.
6397 (remote_target::remove_new_fork_children)
6398 (remote_target::check_pending_events_prevent_wildcard_vcont)
6399 (remote_target::discard_pending_stop_replies)
6400 (remote_target::discard_pending_stop_replies_in_queue)
6401 (remote_target::remote_notif_remove_queued_reply)
6402 (remote_target::queued_stop_reply)
6403 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6404 (remote_target::wait, remote_target::kill_new_fork_children)
6405 (remote_target::async): Update.
6406
6407 2018-06-10 Tom Tromey <tom@tromey.com>
6408
6409 * record-full.c (record_full_arch_list_cleanups): Remove.
6410 (record_full_message): Use try/catch.
6411 (record_full_wait_cleanups): Remove.
6412 (record_full_wait_1): Use try/catch.
6413 (record_full_restore): Likewise.
6414
6415 2018-06-10 Tom Tromey <tom@tromey.com>
6416
6417 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6418 declare VEC. Add constructor.
6419 <in_target_beneath>: Now bool.
6420 (record_full_breakpoints): Now a std::vector, static.
6421 (record_full_sync_record_breakpoints)
6422 (record_full_init_record_breakpoints)
6423 (record_full_target::insert_breakpoint)
6424 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6425
6426 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6427
6428 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6429 * serial.c (serial_interface_lookup): Remove struct keyword.
6430
6431 2018-06-10 Tom Tromey <tom@tromey.com>
6432
6433 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6434 method.
6435 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6436 a method.
6437 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6438 method.
6439 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6440 "beneath" as a method.
6441 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6442 Use "beneath" as a method.
6443
6444 2018-06-10 Tom Tromey <tom@tromey.com>
6445
6446 * tracefile.c (struct trace_file_writer_deleter): New.
6447 <operator()>: Rename from trace_file_writer_xfree.
6448 (trace_file_writer_up): New typedef.
6449 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6450
6451 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6452
6453 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6454 <m_registers, m_register_status>: Change type to
6455 std::unique_ptr.
6456 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6457 XCNEWVEC.
6458
6459 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6460
6461 * common/common-regcache.h (enum register_status): Add
6462 underlying type "signed char".
6463 * regcache.h (reg_buffer) <m_register_status>: Change type to
6464 register_status *.
6465 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6466 register_status instead of signed char.
6467 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6468 (reg_buffer::get_register_status): Remove cast.
6469 (readable_regcache::raw_read): Remove cast.
6470 (readable_regcache::cooked_read): Remove cast.
6471
6472 2018-06-09 Tom Tromey <tom@tromey.com>
6473
6474 * source.c (reverse_search_command, forward_search_command): Use
6475 scoped_fd.
6476
6477 2018-06-09 Tom Tromey <tom@tromey.com>
6478
6479 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6480 (serial_ops_list): Now static, std::vector.
6481 (serial_interface_lookup, serial_add_interface): Update.
6482
6483 2018-06-09 Tom Tromey <tom@tromey.com>
6484
6485 * dwarf2read.c (process_cu_includes): Update.
6486 (process_full_comp_unit): Update.
6487 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6488 std::vector.
6489
6490 2018-06-08 Paul Koning <paul_koning@dell.com>
6491
6492 PR gdb/23252
6493
6494 * python/python.c (do_start_initialization):
6495 Avoid call to internal Python API.
6496 (init__gdb_module): New function.
6497
6498 2018-06-08 Gary Benson <gbenson@redhat.com>
6499
6500 * linux-thread-db.c (valprint.h): New include.
6501 (struct check_thread_db_info): New structure.
6502 (check_thread_db_on_load, tdb_testinfo): New static globals.
6503 (check_thread_db, check_thread_db_callback): New functions.
6504 (try_thread_db_load_1): Run integrity checks if requested.
6505 (maintenance_check_libthread_db): New function.
6506 (_initialize_thread_db): Register "maint check libthread-db"
6507 and "maint set/show check-libthread-db".
6508 * NEWS: Mention the above new commands.
6509
6510 2018-06-08 Tom Tromey <tom@tromey.com>
6511
6512 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6513 now a method.
6514
6515 2018-06-08 Tom Tromey <tom@tromey.com>
6516
6517 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6518
6519 2018-06-08 Tom Tromey <tom@tromey.com>
6520
6521 * common/btrace-common.h (struct btrace_data): Add constructor,
6522 destructor, move assignment operator.
6523 <empty, clear, fini>: New methods.
6524 <format>: Initialize.
6525 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6526 (btrace_data_empty): Don't declare.
6527 * common/btrace-common.c (btrace_data_init): Remove.
6528 (btrace_data::fini): Rename from btrace_data_fini.
6529 (btrace_data::empty): Rename from btrace_data_empty.
6530 (btrace_data::clear): Rename from btrace_data_clear. Return
6531 bool.
6532 * btrace.h (make_cleanup_btrace_data): Don't declare.
6533 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6534 (parse_xml_btrace): Update.
6535 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6536 (maint_btrace_clear_packet_history_cmd): Update.
6537
6538 2018-06-07 Pedro Alves <palves@redhat.com>
6539
6540 * target.h (target_ops) <beneath>: Now a method. All references
6541 updated.
6542 (class target_stack): New.
6543 * target.c (g_target_stack): New.
6544 (g_current_top_target): Delete.
6545 (current_top_target): Get the top target out of g_target_stack.
6546 (target_stack::push, target_stack::unpush): New.
6547 (push_target, unpush_target): Reimplement.
6548 (target_is_pushed): Reimplement in terms of g_target_stack.
6549 (target_ops::beneath, target_stack::find_beneath): New.
6550
6551 2018-06-07 Pedro Alves <palves@redhat.com>
6552
6553 * target.h (find_target_beneath): Delete declaration.
6554 * target.c (find_target_beneath): Delete definition.
6555 * aix-thread.c: All callers of find_target_beneath adjusted to
6556 call target_ops::beneath instead.
6557 * bsd-uthread.c: Likewise.
6558 * linux-thread-db.c: Likewise.
6559 * ravenscar-thread.c: Likewise.
6560 * sol-thread.c: Likewise.
6561 * spu-multiarch.c: Likewise.
6562
6563 2018-06-07 Pedro Alves <palves@redhat.com>
6564
6565 * target.h (target_ops) <beneath>: Now a method. All references
6566 updated.
6567 (target_ops) <m_beneath>: New.
6568 * target.c (target_ops::beneath): New.
6569 * corelow.c: Adjust all references to target_ops::beneath.
6570 * linux-thread-db.c: Likewise.
6571 * make-target-delegates: Likewise.
6572 * record-btrace.c: Likewise.
6573 * record-full.c: Likewise.
6574 * remote.c: Likewise.
6575 * target.c: Likewise.
6576 * target-delegates.c: Regenerate.
6577
6578 2018-06-07 Pedro Alves <palves@redhat.com>
6579
6580 * target.h (target_stack): Delete.
6581 (current_top_target): Declare function.
6582 * target.c (target_stack): Delete.
6583 (g_current_top_target): New.
6584 (current_top_target): New function.
6585 * auxv.c: Use current_top_target instead of target_stack
6586 throughout.
6587 * avr-tdep.c: Likewise.
6588 * breakpoint.c: Likewise.
6589 * corefile.c: Likewise.
6590 * elfread.c: Likewise.
6591 * eval.c: Likewise.
6592 * exceptions.c: Likewise.
6593 * frame.c: Likewise.
6594 * gdbarch-selftests.c: Likewise.
6595 * gnu-v3-abi.c: Likewise.
6596 * ia64-tdep.c: Likewise.
6597 * ia64-vms-tdep.c: Likewise.
6598 * infcall.c: Likewise.
6599 * infcmd.c: Likewise.
6600 * infrun.c: Likewise.
6601 * linespec.c: Likewise.
6602 * linux-tdep.c: Likewise.
6603 * minsyms.c: Likewise.
6604 * ppc-linux-nat.c: Likewise.
6605 * ppc-linux-tdep.c: Likewise.
6606 * procfs.c: Likewise.
6607 * regcache.c: Likewise.
6608 * remote.c: Likewise.
6609 * rs6000-tdep.c: Likewise.
6610 * s390-linux-nat.c: Likewise.
6611 * s390-tdep.c: Likewise.
6612 * solib-aix.c: Likewise.
6613 * solib-darwin.c: Likewise.
6614 * solib-dsbt.c: Likewise.
6615 * solib-spu.c: Likewise.
6616 * solib-svr4.c: Likewise.
6617 * solib-target.c: Likewise.
6618 * sparc-tdep.c: Likewise.
6619 * sparc64-tdep.c: Likewise.
6620 * spu-tdep.c: Likewise.
6621 * symfile.c: Likewise.
6622 * symtab.c: Likewise.
6623 * target-descriptions.c: Likewise.
6624 * target-memory.c: Likewise.
6625 * target.c: Likewise.
6626 * target.h: Likewise.
6627 * tracefile-tfile.c: Likewise.
6628 * tracepoint.c: Likewise.
6629 * valops.c: Likewise.
6630 * valprint.c: Likewise.
6631 * value.c: Likewise.
6632 * windows-tdep.c: Likewise.
6633 * mi/mi-main.c: Likewise.
6634
6635 2018-06-07 Tom Tromey <tom@tromey.com>
6636
6637 * valprint.h (build_address_symbolic): Declare.
6638 * printcmd.c (print_address_symbolic): Update.
6639 (build_address_symbolic): Change "name" and "filename" to
6640 std::string.
6641 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6642 Update.
6643 * defs.h (build_address_symbolic): Remove declaration.
6644
6645 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6646
6647 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6648 (aarch64_vnv_type): Add function.
6649 (aarch64_pseudo_register_name): Add V regs for SVE.
6650 (aarch64_pseudo_register_type): Likewise.
6651 (aarch64_pseudo_register_reggroup_p): Likewise.
6652 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6653 (aarch64_pseudo_read_value): Add V regs for SVE.
6654 (aarch64_pseudo_write_2): Use V0 offset for SVE
6655 (aarch64_pseudo_write): Add V regs for SVE.
6656 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6657
6658 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6659
6660 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6661 (sve_vl_from_vq): Likewise.
6662
6663 2018-06-05 Tom Tromey <tom@tromey.com>
6664
6665 * cli/cli-cmds.c (show_version): Update.
6666 * top.c (print_gdb_version): Add "interactive" parameter.
6667 Update.
6668 * main.c (captured_main_1): Update.
6669 * top.h (print_gdb_version): Add "interactive" parameter and a
6670 comment.
6671
6672 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6673
6674 * common/enum-flags.h: Add trailing semicolon to example in
6675 comment.
6676
6677 2018-06-05 Tom Tromey <tom@tromey.com>
6678
6679 PR cli/12326:
6680 * NEWS: Add entry about pager.
6681 * utils.c (pagination_disabled_for_command): New global.
6682 (prompt_for_continue): Allow "c" response to prompt.
6683 (reinitialize_more_filter): Clear
6684 pagination_disabled_for_command.
6685 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6686
6687 2018-06-04 Tom Tromey <tom@tromey.com>
6688
6689 * ada-lang.h (ada_lookup_symbol_list): Update.
6690 * ada-lang.c (resolve_subexp): Update.
6691 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6692 parameter.
6693 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6694 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6695 results parameter to std::vector.
6696 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6697 Update.
6698 * ada-exp.y (block_lookup): Update.
6699 (select_possible_type_sym): Change type of syms. Remove nsyms
6700 parameter.
6701 (write_var_or_type, write_name_assoc): Update.
6702
6703 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6704
6705 * windows-nat.c (windows_nat_target::xfer_partial): Return
6706 TARGET_XFER_E_IO if we need to delegate to the target beneath
6707 but BENEATH is NULL.
6708
6709 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6710
6711 * Makefile.in (config.status): Add configure.nat as a
6712 dependency.
6713
6714 2018-06-04 Tom Tromey <tom@tromey.com>
6715
6716 * cp-name-parser.y (cpname_state): Add method declarations.
6717 (HANDLE_QUAL): Update.
6718 (cpname_state::d_grab, cpname_state::fill_comp)
6719 (cpname_state::make_operator, cpname_state::make_dtor)
6720 (cpname_state::make_builtin_type, cpname_state::make_name)
6721 (cpname_state::d_qualify, cpname_state::d_int_type)
6722 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6723 (%union): Move earlier.
6724
6725 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6726
6727 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6728
6729 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6730
6731 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6732 (aarch64_pseudo_write_1): Likewise.
6733 (aarch64_pseudo_read_value): Use helper.
6734 (aarch64_pseudo_write): Likewise.
6735
6736 2018-06-04 Pedro Alves <palves@redhat.com>
6737
6738 * darwin-nat.c (darwin_ops): Delete.
6739 (darwin_attach_pid): Use get_native_target.
6740
6741 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6742
6743 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6744 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6745
6746 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6747
6748 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6749 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6750 (aarch64_gdbarch_init): Check for SVE.
6751 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6752
6753 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6754
6755 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6756 * aarch64-tdep.h (aarch64_read_description): Likewise.
6757 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6758 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6759 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6760 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6761 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6762
6763 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6764
6765 * value.c (value_fetch_lazy_bitfield): New.
6766 (value_fetch_lazy_memory): New.
6767 (value_fetch_lazy_register): New.
6768 (value_fetch_lazy): Factor out to smaller functions.
6769
6770 2018-06-01 Tom Tromey <tom@tromey.com>
6771
6772 * cp-name-parser.y (backslashable, represented): Now const.
6773
6774 2018-06-01 Tom Tromey <tom@tromey.com>
6775
6776 * cp-name-parser.y: Include parser-defs.h.
6777 (parser_fprintf): Remove declaration.
6778
6779 2018-06-01 Tom Tromey <tom@tromey.com>
6780
6781 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6782 %parse-param.
6783 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6784 (global_result): Remove globals.
6785 (struct cpname_state): New.
6786 (yyparse): Don't declare.
6787 (yylex, yyerror): Move declarations after %union.
6788 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6789 (make_name): Add state parameter.
6790 Update all callers.
6791 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6792 parameter.
6793 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6794 Update.
6795 (yylex): Add lvalp, state parameters.
6796 (yyerror): Add state parameter.
6797 (cp_demangled_name_to_comp): Update.
6798
6799 2018-06-01 Tom Tromey <tom@tromey.com>
6800
6801 * cp-name-parser.y (parser_fprintf): Declare.
6802 (GDB_YY_REMAP_PREFIX): Define.
6803 Include yy-remap.h. Don't redefine yy* identifiers.
6804
6805 2018-06-01 Tom Tromey <tom@tromey.com>
6806
6807 * python/py-type.c (typy_legacy_template_argument): Update.
6808 * cp-support.h (cp_demangled_name_to_comp): Update.
6809 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6810 parameter to be a "std::string *".
6811 (main): Update.
6812
6813 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6814
6815 * ada-lex.l: Include "diagnostics.h" instead of
6816 "common/diagnostics.h".
6817 * unittests/environ-selftests.c: Likewise.
6818 * common/diagnostics.h: Moved to ../include.
6819
6820 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6821
6822 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6823 to language_mode_manual while calling breakpoint_re_set_one.
6824
6825 2018-06-01 Tom Tromey <tom@tromey.com>
6826
6827 * valops.c (value_cast_structs, destructor_name_p): Update.
6828 * symtab.c (gdb_mangle_name): Update.
6829 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6830 Update.
6831 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6832 (pascal_object_print_value_fields, pascal_object_print_value):
6833 Update.
6834 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6835 * linespec.c (find_methods): Update.
6836 * gdbtypes.h (type_name_no_tag): Remove.
6837 (type_name_or_error): Rename from type_name_no_tag_or_error.
6838 * gdbtypes.c (type_name_no_tag): Remove.
6839 (type_name_or_error): Rename from type_name_no_tag_or_error.
6840 (lookup_struct_elt_type, check_typedef): Update.
6841 * expprint.c (print_subexp_standard): Update.
6842 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6843 * d-namespace.c (d_lookup_nested_symbol): Update.
6844 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6845 (cp_print_class_member): Update.
6846 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6847 * completer.c (add_struct_fields): Update.
6848 * c-typeprint.c (cp_type_print_derivation_info)
6849 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6850 Update.
6851 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6852 (ada_prefer_type, ada_is_exception_sym): Update.
6853
6854 2018-06-01 Tom Tromey <tom@tromey.com>
6855
6856 * valops.c (enum_constant_from_type, value_namespace_elt)
6857 (value_maybe_namespace_elt): Update.
6858 * valarith.c (find_size_for_pointer_math): Update.
6859 * target-descriptions.c (make_gdb_type): Update.
6860 * symmisc.c (print_symbol): Update.
6861 * stabsread.c (define_symbol, read_type)
6862 (complain_about_struct_wipeout, add_undefined_type)
6863 (cleanup_undefined_types_1): Update.
6864 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6865 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6866 (rust_internal_print_type, rust_composite_type)
6867 (rust_evaluate_funcall, rust_evaluate_subexp)
6868 (rust_inclusive_range_type_p): Update.
6869 * python/py-type.c (typy_get_tag): Update.
6870 * p-typeprint.c (pascal_type_print_base): Update.
6871 * mdebugread.c (parse_symbol, parse_type): Update.
6872 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6873 Update.
6874 * guile/scm-type.c (gdbscm_type_tag): Update.
6875 * go-lang.c (sixg_string_p): Update.
6876 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6877 Update.
6878 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6879 (TYPE_TAG_NAME): Remove.
6880 * gdbtypes.c (type_name_no_tag): Simplify.
6881 (check_typedef, check_types_equal, recursive_dump_type)
6882 (copy_type_recursive, arch_composite_type): Update.
6883 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6884 in summary mode when needed.
6885 * eval.c (evaluate_funcall): Update.
6886 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6887 (process_structure_scope, read_enumeration_type)
6888 (read_namespace_type, read_module_type, determine_prefix): Update.
6889 * cp-support.c (inspect_type): Update.
6890 * coffread.c (process_coff_symbol, decode_base_type): Update.
6891 * c-varobj.c (c_is_path_expr_parent): Update.
6892 * c-typeprint.c (c_type_print_base_struct_union): Update.
6893 (c_type_print_base_1): Update. Print struct/class/union/enum in
6894 summary when using C language.
6895 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6896 (gen_maybe_namespace_elt): Update.
6897 * ada-lang.c (ada_type_name): Simplify.
6898 (empty_record, ada_template_to_fixed_record_type_1)
6899 (template_to_static_fixed_type)
6900 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6901
6902 2018-06-01 Tom Tromey <tom@tromey.com>
6903
6904 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6905 c_print_type.
6906 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6907 (c_print_type): Update.
6908 (c_print_type): New overload.
6909 (c_type_print_varspec_prefix, c_type_print_args)
6910 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6911 (c_type_print_base_struct_union, c_type_print_base_1)
6912 (cp_type_print_method_args): Add "language" parameter.
6913 (c_type_print_base): Update.
6914 * c-lang.h (c_print_type): Add new overload.
6915
6916 2018-06-01 Tom Tromey <tom@tromey.com>
6917
6918 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6919 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6920
6921 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6922
6923 * aarch64-tdep.c (aarch64_sve_register_names): New const
6924 var.
6925 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6926 (AARCH64_SVE_Z_REGS_NUM): New define.
6927 (AARCH64_SVE_P_REGS_NUM): Likewise.
6928 (AARCH64_SVE_NUM_REGS): Likewise.
6929
6930 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6931
6932 * nat/linux-ptrace.h [__alpha__]
6933 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6934 definitions.
6935
6936 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6937
6938 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6939 the endianness selected.
6940 * NEWS: Document `set endian auto' mode operation update.
6941
6942 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6943
6944 * Makefile.in: Add new header.
6945 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6946 (sve_vl_from_vg): Likewise.
6947 (sve_vq_from_vl): Likewise.
6948 (sve_vl_from_vq): Likewise.
6949 (sve_vq_from_vg): Likewise.
6950 (sve_vg_from_vq): Likewise.
6951 * configure.nat: Add new c file.
6952 * nat/aarch64-sve-linux-ptrace.c: New file.
6953 * nat/aarch64-sve-linux-ptrace.h: New file.
6954
6955 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6956
6957 * aarch64-linux-nat.c (aarch64_linux_read_description):
6958 Add parmeter zero.
6959 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6960 Likewise.
6961 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6962 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6963 (aarch64_gdbarch_init): Add parmeter zero.
6964 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6965 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6966 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6967 parmeter.
6968 * doc/gdb.texinfo: Describe SVE feature
6969 * features/aarch64-sve.c: New file.
6970
6971 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6972
6973 PR gdb/23210
6974 * gdbarch.sh (significant_addr_bit): Default to zero when
6975 not set by target architecture.
6976 * gdbarch.c: Re-generated.
6977 * utils.c (address_significant): Update.
6978
6979 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6980
6981 * stack.c (func_command): Remove trailing newline in call to error.
6982
6983 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * regcache.h (regcache_raw_collect): Remove, update callers to
6986 use regcache::raw_collect.
6987 * regcache.c (regcache_raw_collect): Remove.
6988
6989 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6990
6991 * regcache.h (regcache_raw_supply): Remove, update callers to
6992 use detached_regcache::raw_supply.
6993 * regcache.c (regcache_raw_supply): Remove.
6994
6995 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6996
6997 * regcache.h (regcache_cooked_write_part): Remove, update
6998 callers to use regcache::cooked_write_part.
6999 * regcache.c (regcache_cooked_write_part): Remove.
7000
7001 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7002
7003 * regcache.h (regcache_cooked_read_part): Remove, update callers
7004 to use readable_regcache::cooked_read_part.
7005 * regcache.c (regcache_cooked_read_part): Remove.
7006
7007 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * regcache.h (regcache_cooked_read_value): Remove, update
7010 callers to use readable_regcache::cooked_read_value.
7011 * regcache.c (regcache_cooked_read_value): Remove.
7012
7013 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7014
7015 * regcache.h (regcache_cooked_write): Remove, update callers to
7016 use regcache::cooked_write.
7017 * regcache.c (regcache_cooked_write): Remove.
7018
7019 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * regcache.h (regcache_invalidate): Remove, update callers to
7022 use detached_regcache::invalidate instead.
7023 * regcache.c (regcache_invalidate): Remove.
7024
7025 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7026
7027 * regcache.h (regcache_raw_write_part): Remove, update callers
7028 to use regcache::raw_write_part instead.
7029 * regcache.c (regcache_raw_write_part): Remove.
7030
7031 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7032
7033 * regcache.h (regcache_raw_read_part): Remove, update callers to
7034 use readable_regcache::raw_read_part instead.
7035 * regcache.c (regcache_raw_read_part): Remove.
7036
7037 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7038
7039 * regcache.h (regcache_cooked_read): Remove, update callers to
7040 use readable_regcache::cooked_read instead.
7041 * regcache.c (regcache_cooked_read): Remove.
7042
7043 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7044
7045 * regcache.h (regcache_raw_write): Remove, update callers to use
7046 regcache::raw_write instead.
7047 * regcache.c (regcache_raw_write): Remove.
7048
7049 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7050
7051 * regcache.h (regcache_raw_read): Remove, update callers to use
7052 readable_regcache::raw_read instead.
7053 * regcache.c (regcache_raw_read): Remove.
7054
7055 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7056
7057 * regcache.h (regcache_raw_update): Remove, update callers to
7058 use readable_regcache::raw_update instead.
7059 * regcache.c (regcache_raw_update): Remove.
7060
7061 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7062
7063 * regcache.h (regcache_register_status): Remove, update callers
7064 to use reg_buffer::get_register_status directly instead.
7065 * regcache.c (regcache_register_status): Remove.
7066
7067 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7068
7069 * regcache.h (regcache_get_ptid): Remove, update all callers to
7070 call regcache::ptid instead.
7071 * regcache.c (regcache_get_ptid): Remove.
7072
7073 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7074
7075 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7076
7077 2018-05-30 Pedro Alves <palves@redhat.com>
7078
7079 * common/common-exceptions.h (exception_rethrow): Use
7080 ATTRIBUTE_NORETURN.
7081
7082 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7083
7084 * breakpoint.c (print_solib_event, check_status_catch_solib):
7085 Remove struct keyword in range-based for loops.
7086 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7087 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7088 Likewise.
7089 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7090 Likewise.
7091 * symfile.c (addr_info_make_relative): Likewise.
7092 * thread.c (value_in_thread_stack_temporaries): Likewise.
7093
7094 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
7095
7096 PR gdb/16841
7097 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7098 aggregate type to get its real type before accessing it.
7099
7100 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
7101
7102 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7103 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7104 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7105 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7106 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7107 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7108 * printcmd.c (info_address_command): Likewise.
7109
7110 2018-05-29 Tom Tromey <tom@tromey.com>
7111
7112 * windows-nat.c (handle_exception): Update fall-through comment.
7113
7114 2018-05-29 Tom Tromey <tom@tromey.com>
7115
7116 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7117 (struct program_space) <added_solibs>: Now a std::vector.
7118 * breakpoint.c (print_solib_event): Update.
7119 (check_status_catch_solib): Update.
7120 * progspace.c (clear_program_space_solib_cache): Update.
7121 * solib.c (update_solib_list): Update.
7122
7123 2018-05-29 Tom Tromey <tom@tromey.com>
7124
7125 * python/py-type.c (typy_richcompare): Update.
7126 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7127 * gdbtypes.h (types_deeply_equal): Return bool.
7128 (types_equal): Likewise.
7129 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7130 declare VEC.
7131 (check_types_equal): Change worklist to std::vector. Return
7132 bool.
7133 (struct type_equality_entry): Add constructor.
7134 (compare_maybe_null_strings): Return bool.
7135 (check_types_worklist): Return bool. Change worklist to
7136 std::vector.
7137 (types_deeply_equal): Use std::vector.
7138 (types_equal): Return bool.
7139 (compare_maybe_null_strings): Simplify.
7140
7141 2018-05-29 Tom Tromey <tom@tromey.com>
7142
7143 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7144
7145 2018-05-29 Tom Tromey <tom@tromey.com>
7146
7147 * objc-lang.h: Don't include cp-support.h.
7148 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7149 declare VEC.
7150
7151 2018-05-27 Tom Tromey <tom@tromey.com>
7152
7153 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7154
7155 2018-05-25 Tom Tromey <tom@tromey.com>
7156
7157 * value.c (value::location): Initialize.
7158
7159 2018-05-25 Tom Tromey <tom@tromey.com>
7160
7161 * dbxread.c (init_bincl_list): Remove.
7162 (bincl_list): Now a std::vector.
7163 (bincls_allocated, next_bincl): Remove.
7164 (free_bincl_list, do_free_bincl_list_cleanup)
7165 (make_cleanup_free_bincl_list): Remove.
7166 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7167 unique_xmalloc_ptr.
7168 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7169 (struct header_file_location): Add constructor.
7170 (add_bincl_to_list): Remove.
7171
7172 2018-05-25 Tom Tromey <tom@tromey.com>
7173
7174 * tui/tui.c (tui_enable): Update.
7175 * mi/mi-interp.c (mi_interp::init): Update.
7176 * interps.h (class interp) <name>: New method.
7177 <m_name>: Rename from name.
7178 (~scoped_restore_interp): Update.
7179 * interps.c (interp::interp): Update.
7180 (interp_add, interp_set, interp_lookup_existing)
7181 (current_interp_named_p): Update.
7182
7183 2018-05-25 Tom Tromey <tom@tromey.com>
7184
7185 * interps.c (interp_name): Remove.
7186 * mi/mi-interp.c (mi_interp::init): Update.
7187 * interps.h (interp_name): Remove.
7188 (~scoped_restore_interp): Update.
7189 * tui/tui.c (tui_enable): Update.
7190
7191 2018-05-25 Tom Tromey <tom@tromey.com>
7192
7193 * utils.c (fputs_maybe_filtered): Update.
7194 * linespec.c (decode_line_full): Update.
7195 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7196 (mi_print_breakpoint_for_event, mi_solib_loaded)
7197 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7198 (mi_user_selected_context_changed): Update.
7199 * mi/mi-main.c (mi_execute_command): Update.
7200 * cli/cli-script.c (execute_control_command): Update.
7201 * python/python.c (execute_gdb_command): Update.
7202 * solib.c (info_sharedlibrary_command): Update.
7203 * interps.c (interp_ui_out): Remove.
7204 * interps.h (interp_ui_out): Remove.
7205
7206 2018-05-25 Tom Tromey <tom@tromey.com>
7207
7208 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7209 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7210 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7211
7212 2018-05-25 Tom Tromey <tom@tromey.com>
7213
7214 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7215 * interps.c (interp_exec): Use scoped_restore.
7216
7217 2018-05-25 Tom Tromey <tom@tromey.com>
7218
7219 * remote.c (remote_target::remote_file_get): Use
7220 gdb::byte_vector.
7221 (remote_target::remote_file_put): Likewise.
7222
7223 2018-05-25 Tom Tromey <tom@tromey.com>
7224
7225 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7226 a std::string.
7227 (get_pe_section_index, add_pe_exported_sym): Update.
7228 (read_pe_exported_syms): Use gdb::def_vector.
7229
7230 2018-05-25 Tom Tromey <tom@tromey.com>
7231
7232 * frame.c (remove_prev_frame): Remove.
7233 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7234
7235 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7236
7237 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7238 Remove prototypes.
7239 * mips-linux-nat.c (supply_fpregset): Always call
7240 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7241 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7242 `mips_fill_fpregset'.
7243 * mips-linux-tdep.c (mips_supply_fpregset)
7244 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7245 (mips_fill_fpregset_wrapper): Remove functions.
7246 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7247 (mips_linux_fpregset): Remove variable.
7248 (mips_linux_iterate_over_regset_sections): Use
7249 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7250 (mips_linux_o32_sigframe_init): Remove comment.
7251
7252 2018-05-25 Pedro Alves <palves@redhat.com>
7253
7254 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7255 (struct readahead_cache, struct packet_reg, struct
7256 remote_arch_state, class remote_state): Move higher up in the
7257 file.
7258 (remote_target::m_remote_state): Now an object instead of a pointer.
7259 (remote_target::get_remote_state): Adjust.
7260
7261 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7262
7263 * stack.c (select_and_print_frame): Delete.
7264 (struct function_bounds): Move struct within function.
7265 (func_command): Most content moved into new function
7266 find_frame_for_function, use new function, print result, add
7267 function comment.
7268 (find_frame_for_function): New function, now returns a result.
7269
7270 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7271
7272 * stack.c (iterate_over_block_arg_vars): Fix comment.
7273 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7274
7275 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 PR gdb/23203
7278 * frame.c
7279 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7280 Define.
7281 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7282 Define.
7283 * frame.h (class scoped_restore_selected_frame): New class.
7284 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7285 of any exception, use scoped_restore_selected_frame to restore the
7286 frame instead.
7287
7288 2018-05-24 Pedro Alves <palves@redhat.com>
7289
7290 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7291 override.
7292
7293 2018-05-23 Tom Tromey <tom@tromey.com>
7294
7295 * complaints.c (struct complaints): Remove.
7296 (symfile_complaint_book): Remove.
7297 (series): New global.
7298 (complaint_internal): Update.
7299 (clear_complaints): Update.
7300
7301 2018-05-23 Tom Tromey <tom@tromey.com>
7302
7303 * complaints.c (counters): New global.
7304 (struct complain): Remove.
7305 (struct complaints) <root>: Remove.
7306 (complaint_sentinel): Remove.
7307 (symfile_complaint_book): Update.
7308 (find_complaint) Remove.
7309 (complaint_internal, clear_complaints): Update.
7310
7311 2018-05-23 Tom Tromey <tom@tromey.com>
7312
7313 * complaints.c (struct complain) <file, line>: Remove.
7314 (find_complaint): Remove file, line parameters.
7315 (complaint_internal): Update.
7316
7317 2018-05-23 Tom Tromey <tom@tromey.com>
7318
7319 * complaints.c (vcomplaint): Remove.
7320 (complaint_internal) Merge in contents of vcomplaint.
7321
7322 2018-05-23 Tom Tromey <tom@tromey.com>
7323
7324 * complaints.c (struct complaints) <explanation>: Remove.
7325 (symfile_explanations): Remove.
7326 (symfile_complaint_book): Update.
7327 (vcomplaint): Update.
7328 (struct explanation): Remove.
7329
7330 2018-05-23 Tom Tromey <tom@tromey.com>
7331
7332 * complaints.c (symfile_complaints): Remove.
7333 (complaint_internal): Remove "complaints" parameter.
7334 (clear_complaints, vcomplaint): Remove "c" parameter.
7335 (get_complaints): Remove.
7336 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7337 (dwarf2_debug_line_missing_file_complaint)
7338 (dwarf2_debug_line_missing_end_sequence_complaint)
7339 (dwarf2_complex_location_expr_complaint)
7340 (dwarf2_const_value_length_mismatch_complaint)
7341 (dwarf2_section_buffer_overflow_complaint)
7342 (dwarf2_macro_malformed_definition_complaint)
7343 (dwarf2_invalid_attrib_class_complaint)
7344 (create_addrmap_from_index, dw2_symtab_iter_next)
7345 (dw2_expand_marked_cus)
7346 (dw2_debug_names_iterator::find_vec_in_debug_names)
7347 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7348 (create_debug_type_hash_table, init_cutu_and_read_dies)
7349 (partial_die_parent_scope, add_partial_enumeration)
7350 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7351 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7352 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7353 (create_cus_hash_table, create_dwp_hash_table)
7354 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7355 (dwarf2_rnglists_process, dwarf2_ranges_process)
7356 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7357 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7358 (handle_struct_member_die, process_structure_scope)
7359 (read_array_type, read_common_block, read_module_type)
7360 (read_tag_pointer_type, read_typedef, read_base_type)
7361 (read_subrange_type, load_partial_dies, partial_die_info::read)
7362 (partial_die_info::read, partial_die_info::read)
7363 (partial_die_info::read, read_checked_initial_length_and_offset)
7364 (dwarf2_string_attr, read_formatted_entries)
7365 (dwarf_decode_line_header)
7366 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7367 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7368 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7369 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7370 (get_signatured_type, get_DW_AT_signature_type)
7371 (decode_locdesc, file_file_name, consume_improper_spaces)
7372 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7373 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7374 (dwarf2_symbol_mark_computed, set_die_type)
7375 (read_attribute_value): Update.
7376 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7377 Update.
7378 * dbxread.c (unknown_symtype_complaint)
7379 (lbrac_mismatch_complaint, repeated_header_complaint)
7380 (set_namestring, function_outside_compilation_unit_complaint)
7381 (read_dbx_symtab, process_one_symbol): Update.
7382 * gdbtypes.c (stub_noname_complaint): Update.
7383 * windows-nat.c (handle_unload_dll): Update.
7384 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7385 (decode_base_type): Update.
7386 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7387 (eb_complaint, record_include_begin, record_include_end)
7388 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7389 (process_xcoff_symbol, read_symbol)
7390 (function_outside_compilation_unit_complaint)
7391 (scan_xcoff_symtab): Update.
7392 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7393 * buildsym.c (finish_block_internal, make_blockvector)
7394 (end_symtab_get_static_block, augment_type_symtab): Update.
7395 * dtrace-probe.c (dtrace_process_dof)
7396 (dtrace_static_probe_ops::get_probes): Update.
7397 * complaints.h (struct complaint): Don't declare.
7398 (symfile_complaints): Remove.
7399 (complaint_internal): Remove "complaints" parameter.
7400 (complaint): Likewise.
7401 (clear_complaints): Likewise.
7402 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7403 (reread_symbols): Update.
7404 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7405 (dwarf2_frame_cache, decode_frame_entry): Update.
7406 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7407 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7408 (info_selectors_command): Update.
7409 * macrotab.c (macro_include, check_for_redefinition)
7410 (macro_undef): Update.
7411 * objfiles.c (filter_overlapping_sections): Update.
7412 * stabsread.c (invalid_cpp_abbrev_complaint)
7413 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7414 (define_symbol, error_type, read_type, rs6000_builtin_type)
7415 (stabs_method_name_from_physname, read_member_functions)
7416 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7417 (attach_fields_to_type, complain_about_struct_wipeout)
7418 (read_range_type, read_args, common_block_start)
7419 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7420 Update.
7421 * mdebugread.c (index_complaint, unknown_ext_complaint)
7422 (basic_type_complaint, bad_tag_guess_complaint)
7423 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7424 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7425 (parse_procedure, parse_lines)
7426 (function_outside_compilation_unit_complaint)
7427 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7428 (bad_tag_guess_complaint, reg_value_complaint): Update.
7429 * cp-support.c (demangled_name_complaint): Update.
7430 * macroscope.c (sal_macro_scope): Update.
7431 * dwarf-index-write.c (class debug_names): Update.
7432
7433 2018-05-23 Tom Tromey <tom@tromey.com>
7434
7435 * complaints.c (clear_complaints): Remove "noisy" parameter.
7436 * complaints.h (clear_complaints): Update.
7437 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7438 (reread_symbols): Update.
7439
7440 2018-05-23 Tom Tromey <tom@tromey.com>
7441
7442 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7443 SUBSEQUENT_MESSAGE.
7444 (vcomplaint, clear_complaints): Update.
7445 (symfile_explanations): Remove some messages.
7446
7447 2018-05-23 Tom Tromey <tom@tromey.com>
7448
7449 * complaints.c (internal_complaint): Remove.
7450 * complaints.h (internal_complaint): Remove.
7451
7452 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7453
7454 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7455
7456 2018-05-22 Pedro Alves <palves@redhat.com>
7457
7458 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7459 (remote_fileio_badfd, remote_fileio_return_errno)
7460 (remote_fileio_return_success, remote_fileio_func_open)
7461 (remote_fileio_func_open, remote_fileio_func_close)
7462 (remote_fileio_func_read, remote_fileio_func_write)
7463 (remote_fileio_func_lseek, remote_fileio_func_rename)
7464 (remote_fileio_func_unlink, remote_fileio_func_stat)
7465 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7466 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7467 remote_target parameter.
7468 (remote_fio_func_map) <func>: Add remote_target parameter.
7469 (do_remote_fileio_request, remote_fileio_request):
7470 * remote-fileio.h (remote_fileio_request):
7471 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7472 remote_target parameter.
7473 (remote_notif_process, handle_notification): Adjust to pass down
7474 the remote.
7475 (remote_notif_state_allocate): Add remote_target parameter. Save
7476 it.
7477 * remote-notif.h (struct remote_target): Forward declare.
7478 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7479 remote_target parameter.
7480 (struct remote_notif_state) <remote>: New field.
7481 (remote_notif_ack, remote_notif_parse): Add remote_target
7482 parameter.
7483 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7484 remote_target parameter.
7485 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7486 (threads_listing_context, rmt_thread_action, protocol_feature)
7487 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7488 (packet_result, struct threads_listing_context, remote_state):
7489 Move definitions and declarations higher up.
7490 (remote_target) <~remote_target>: Declare.
7491 (remote_download_command_source, remote_file_put, remote_file_get)
7492 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7493 (remote_hostio_pread_vFile, remote_hostio_send_command)
7494 (remote_hostio_set_filesystem, remote_hostio_open)
7495 (remote_hostio_close, remote_hostio_unlink, remote_state)
7496 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7497 (get_memory_write_packet_size, get_memory_read_packet_size)
7498 (append_pending_thread_resumptions, remote_detach_1)
7499 (append_resumption, remote_resume_with_vcont)
7500 (add_current_inferior_and_thread, wait_ns, wait_as)
7501 (process_stop_reply, remote_notice_new_inferior)
7502 (process_initial_stop_replies, remote_add_thread)
7503 (btrace_sync_conf, remote_btrace_maybe_reopen)
7504 (remove_new_fork_children, kill_new_fork_children)
7505 (discard_pending_stop_replies, stop_reply_queue_length)
7506 (check_pending_events_prevent_wildcard_vcont)
7507 (discard_pending_stop_replies_in_queue, stop_reply)
7508 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7509 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7510 (remote_interrupt_as, remote_interrupt_ns)
7511 (remote_get_noisy_reply, remote_query_attached)
7512 (remote_add_inferior, remote_current_thread, get_current_thread)
7513 (set_thread, set_general_thread, set_continue_thread)
7514 (set_general_process, write_ptid)
7515 (remote_unpack_thread_info_response, remote_get_threadinfo)
7516 (parse_threadlist_response, remote_get_threadlist)
7517 (remote_threadlist_iterator, remote_get_threads_with_ql)
7518 (remote_get_threads_with_qxfer)
7519 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7520 (get_offsets, remote_check_symbols, remote_supported_packet)
7521 (remote_query_supported, remote_packet_size)
7522 (remote_serial_quit_handler, remote_detach_pid)
7523 (remote_vcont_probe, remote_resume_with_hc)
7524 (send_interrupt_sequence, interrupt_query)
7525 (remote_notif_get_pending_events, fetch_register_using_p)
7526 (send_g_packet, process_g_packet, fetch_registers_using_g)
7527 (store_register_using_P, store_registers_using_G)
7528 (set_remote_traceframe, check_binary_download)
7529 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7530 (remote_xfer_live_readonly_partial, remote_read_bytes)
7531 (remote_send_printf, remote_flash_write, readchar)
7532 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7533 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7534 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7535 (extended_remote_disable_randomization, extended_remote_run)
7536 (send_environment_packet, extended_remote_environment_support)
7537 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7538 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7539 (packet_command): Now methods of ...
7540 (remote_target): ... this class.
7541 (m_remote_state) <remote_target>: New field.
7542 (struct remote_state) <stop_reply_queue,
7543 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7544 fields.
7545 (remote_state::remote_state): Allocate stop_reply_queue.
7546 (remote_state): Delete global.
7547 (get_remote_state_raw): Delete.
7548 (remote_target::get_remote_state): Allocate m_remote_state on
7549 demand.
7550 (get_current_remote_target): New.
7551 (remote_ops, extended_remote_ops): Delete.
7552 (wait_forever_enabled_p, remote_async_inferior_event_token):
7553 Delete, moved to struct remote_state.
7554 (remote_target::close): Delete self. Destruction bits split to
7555 ...
7556 (remote_target::~remote_target): ... this.
7557 (show_memory_packet_size): Adjust to use
7558 get_current_remote_target.
7559 (struct protocol_feature) <func>: Add remote_target parameter.
7560 All callers adjusted.
7561 (curr_quit_handler_target): New.
7562 (remote_serial_quit_handler): Reimplement.
7563 (remote_target::open_1): Adjust to use get_current_remote_target.
7564 Heap-allocate remote_target/extended_remote_target instances.
7565 (vcont_builder::vcont_builder): Add remote_target parameter, and
7566 save it in m_remote. All callers adjusted.
7567 (vcont_builder::m_remote): New field.
7568 (vcont_builder::restart, vcont_builder::flush)
7569 (vcont_builder::push_action): Use it.
7570 (remote_target::commit_resume): Use it.
7571 (struct queue_iter_param) <remote>: New field.
7572 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7573 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7574 (check_pending_event_prevents_wildcard_vcont_callback)
7575 (remote_target::check_pending_events_prevent_wildcard_vcont)
7576 (remote_target::discard_pending_stop_replies)
7577 (remote_target::discard_pending_stop_replies_in_queue)
7578 (remote_target::remote_notif_remove_queued_reply): Fill in
7579 'remote' field.
7580 (remote_notif_get_pending_events): New.
7581 (remote_target::readchar, remote_target::remote_serial_write):
7582 Save/restore curr_quit_handler_target.
7583 (putpkt): New.
7584 (kill_new_fork_children): Fill in 'remote' field.
7585 (packet_command): Use get_current_remote_target, defer to
7586 remote_target method of same name.
7587 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7588 parameter, and save it in m_remote. All callers adjusted.
7589 (scoped_remote_fd::release): Use m_remote.
7590 (scoped_remote_fd::m_remote): New field.
7591 (remote_file_put, remote_file_get, remote_file_delete): Use
7592 get_current_remote_target, defer to remote_target method of same
7593 name.
7594 (remote_btrace_reset): Add remote_state paremeter. Update all
7595 callers.
7596 (remote_async_inferior_event_handler). Pass down 'data'.
7597 (remote_new_objfile): Use get_current_remote_target.
7598 (remote_target::vcont_r_supported): New.
7599 (set_range_stepping): Use get_current_remote_target and
7600 remote_target::vcont_r_supported.
7601 (_initialize_remote): Don't allocate 'remote_state' and
7602 'stop_reply_queue' globals.
7603 * remote.h (struct remote_target): Forward declare.
7604 (getpkt, putpkt, remote_notif_get_pending_events): Add
7605 'remote_target' parameter.
7606
7607 2018-05-22 Pedro Alves <palves@redhat.com>
7608
7609 * remote.c (vcont_builder): Now a class. Make all data members
7610 private.
7611 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7612 Declare methods.
7613 (vcont_builder_restart): Rename to ...
7614 (vcont_builder::restart): ... this.
7615 (vcont_builder_flush): Rename to ...
7616 (vcont_builder::flush): ... this.
7617 (vcont_builder_push_action): Rename to ...
7618 (vcont_builder::push_action): ... this.
7619 (remote_target::commit_resume): Adjust.
7620
7621 2018-05-22 Pedro Alves <palves@redhat.com>
7622
7623 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7624 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7625 (get_fixed_memory_packet_size): New.
7626 (get_memory_packet_size): Use it.
7627 (set_memory_packet_size): Don't override the config size with
7628 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7629 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7630 Don't refer to get_memory_packet_size if not connected to a remote
7631 target. Show "(default)" if configured size is 0.
7632
7633 2018-05-22 Pedro Alves <palves@redhat.com>
7634
7635 * remote.c (remote_target::mourn_inferior): Move
7636 discard_pending_stop_replies call here from ...
7637 (_initialize_remote): ... here.
7638
7639 2018-05-22 Pedro Alves <palves@redhat.com>
7640
7641 * remote.c (compare_section_command): Remove set_general_process
7642 call.
7643
7644 2018-05-22 Pedro Alves <palves@redhat.com>
7645
7646 * remote.c (struct packet_reg, struct remote_arch_state):
7647 Move higher up in the file.
7648 (remote_state) <m_arch_states>: Store remote_arch_state values
7649 instead of remote_arch_state pointers.
7650 (remote_state::get_remote_arch_state): Adjust.
7651
7652 2018-05-22 Pedro Alves <palves@redhat.com>
7653
7654 * remote.c: Include <unordered_map>.
7655 (remote_state): Now a class.
7656 (remote_state) <get_remote_arch_state>: Declare method.
7657 <get_remote_arch_state>: New field.
7658 (remote_arch_state) <remote_arch_state>: Declare ctor.
7659 <regs>: Now a unique_ptr.
7660 (remote_gdbarch_data_handle): Delete.
7661 (get_remote_arch_state): Delete.
7662 (remote_state::get_remote_arch_state): New.
7663 (get_remote_state): Adjust to call remote_state's
7664 get_remote_arch_state method.
7665 (init_remote_state): Delete, bits factored out to ...
7666 (remote_arch_state::remote_arch_state): ... this new method.
7667 (get_remote_packet_size, get_memory_packet_size)
7668 (process_g_packet, remote_target::fetch_registers)
7669 (remote_target::prepare_to_store, store_registers_using_G)
7670 (remote_target::store_registers, remote_target::get_trace_status):
7671 Adjust to call remote_state's method.
7672 (_initialize_remote): Remove reference to
7673 remote_gdbarch_data_handle.
7674
7675 2018-05-22 Pedro Alves <palves@redhat.com>
7676
7677 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7678 pread>: New method declarations.
7679 (remote_target::open_1): Adjust.
7680 (readahead_cache_invalidate): Rename to ...
7681 (readahead_cache::invalidate): ... this, and adjust to be a class
7682 method.
7683 (readahead_cache_invalidate_fd): Rename to ...
7684 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7685 class method.
7686 (remote_hostio_pwrite): Adjust.
7687 (remote_hostio_pread_from_cache): Rename to ...
7688 (readahead_cache::pread): ... this, and adjust to be a class
7689 method.
7690 (remote_hostio_close): Adjust.
7691
7692 2018-05-22 Pedro Alves <palves@redhat.com>
7693
7694 * remote.c (remote_hostio_close_cleanup): Delete.
7695 (class scoped_remote_fd): New.
7696 (remote_file_put, remote_file_get): Use it.
7697
7698 2018-05-22 Pedro Alves <palves@redhat.com>
7699
7700 (struct vCont_action_support): Use bool and initialize all fields.
7701 (struct readahead_cache): Initialize all fields.
7702 (remote_state): Use bool and initialize all fields.
7703 (remote_state::remote_state, remote_state::~remote_state): New.
7704 (new_remote_state): Delete.
7705 (_initialize_remote): Use new to allocate remote_state.
7706
7707 2018-05-22 Pedro Alves <palves@redhat.com>
7708 張俊芝 <zjz@zjz.name>
7709
7710 PR gdb/22973
7711 * c-exp.y: Include "c-support.h".
7712 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7713 of tolower. Use c_ident_is_alpha to scan names.
7714 * c-lang.c: Include "c-support.h".
7715 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7716 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7717 * c-support.h: New file, with bits factored out from ...
7718 * cp-name-parser.y: ... this file.
7719 Include "c-support.h".
7720 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7721 c-support.h and renamed.
7722 (symbol_end, yylex): Adjust.
7723
7724 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7725
7726 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7727 parameter type to CORE_ADDR.
7728 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7729 parameter type in declaration to CORE_ADDR.
7730 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7731 target_auxv_search to get AT_HWCAP and use the result to get the
7732 target description.
7733 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7734 to CORE_ADDR. Remove the cast of the return value to unsigned
7735 long. Fix error predicate of target_auxv_search.
7736 (ppc_linux_nat_target::read_description): Change the type of the
7737 hwcap variable to CORE_ADDR.
7738
7739 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7740
7741 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7742 if the size of fpscr is larger than 32 bits.
7743
7744 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7745
7746 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7747 (ppc32_linux_vsxregmap): New global.
7748 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7749 regcache_supply_regset, and regcache_collect_regset.
7750 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7751 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7752 (fetch_vsx_register, store_vsx_register): Remove.
7753 (fetch_vsx_registers): Add regno parameter. Get regset using
7754 ppc_linux_vsxregset. Use regset to supply registers.
7755 (store_vsx_registers): Add regno parameter. Get regset using
7756 ppc_linux_vsxregset. Use regset to collect registers.
7757 (fetch_register): Call fetch_vsx_registers instead of
7758 fetch_vsx_register.
7759 (store_register): Call store_vsx_registers instead of
7760 store_vsx_register.
7761 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7762 new regno parameter.
7763 (store_ppc_registers): Call store_vsx_registers with -1 for the
7764 new regno parameter.
7765 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7766 (ppc_collect_vsxregset): Remove.
7767
7768 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7769
7770 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7771 offset fields.
7772 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7773 for vector register offset fields.
7774 (ppc64_fbsd_reg_offsets): Likewise.
7775 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7776 to vector register offset fields.
7777 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7778 to vector register offset fields.
7779 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7780 vector register offset fields.
7781 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7782 initializers for vector register offset fields.
7783 (rs6000_aix64_reg_offsets): Likewise.
7784 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7785 (ppc_supply_vrregset): Remove.
7786 (ppc_collect_vrregset): Remove.
7787 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7788 (ppc_linux_vrregset) : New function.
7789 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7790 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7791 (ppc32_linux_vrregset): Remove.
7792 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7793 and use result instead of ppc32_linux_vrregset.
7794 (ppc32_linux_reg_offsets): Remove initializers for vector register
7795 offset fields.
7796 (ppc64_linux_reg_offsets): Likewise.
7797 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7798 * ppc-linux-nat.c: Include regset.h.
7799 (gdb_vrregset_t): Adjust comment to account for little-endian
7800 mode.
7801 (supply_vrregset, fill_vrregset): Remove.
7802 (fetch_altivec_register, store_altivec_register): Remove.
7803 (fetch_altivec_registers): Add regno parameter. Get regset using
7804 ppc_linux_vrregset. Use regset to supply registers.
7805 (store_altivec_registers): Add regno parameter. Get regset using
7806 ppc_linux_vrregset. Use regset to collect registers.
7807 (fetch_register): Call fetch_altivec_registers instead of
7808 fetch_altivec_register.
7809 (store_register): Call store_altivec_registers instead of
7810 store_altivec_register.
7811 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7812 the new regno parameter.
7813 (store_ppc_registers): Call store_altivec_registers with -1 for
7814 the new regno parameter.
7815
7816 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7817
7818 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7819 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7820 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7821 (gdb_vrregset_t): Change array type size to
7822 PPC_LINUX_SIZEOF_VRREGSET.
7823 (gdb_vsxregset_t): Change array type size to
7824 PPC_LINUX_SIZEOF_VSXREGSET.
7825 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7826 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7827 PPC_LINUX_SIZEOF_VSXREGSET.
7828
7829 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7830
7831 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7832 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7833 nat/ppc-linux.c.
7834 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7835 ppc_linux_target_wordsize with tid.
7836 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7837 wordsize with tid.
7838 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7839 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7840 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7841 tid parameter. Remove static specifier.
7842 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7843 (ppc_linux_target_wordsize): New declaration.
7844
7845 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7846
7847 * arch/ppc-linux-common.c: New file.
7848 * arch/ppc-linux-common.h: New file.
7849 * arch/ppc-linux-tdesc.h: New file.
7850 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7851 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7852 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7853 arch/ppc-linux-tdesc.h.
7854 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7855 arch/ppc-linux-tdesc.h.
7856 (ppc_linux_nat_target::read_description): Remove target
7857 description matching code. Fill a ppc_linux_features struct and
7858 call ppc_linux_match_description with it. Move comment about ISA
7859 2.05 to ppc-linux-common.c.
7860 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7861 arch/ppc-linux-tdesc.h.
7862 (ppc_linux_core_read_description): Remove target description
7863 matching code. Fill a ppc_linux_features struct and call
7864 ppc_linux_match_description with it.
7865 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7866 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7867 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7868 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7869 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7870 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7871 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7872 (tdesc_powerpc_e500l): Remove.
7873
7874 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7875
7876 * ada-lang.c (catch_assert_command): Pass empty string instead
7877 of NULL for excep_string argument.
7878
7879 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7880
7881 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7882 the width of the requested register exceeds the width of the
7883 `ptrace' data type.
7884
7885 2018-05-21 Tom Tromey <tom@tromey.com>
7886
7887 * printcmd.c (output_command): Remove.
7888 (output_command_const): Rename to output_command.
7889 * valprint.h (output_command): Rename from output_command_const.
7890 * tracepoint.c (trace_dump_actions): Call output_command.
7891
7892 2018-05-21 Tom Tromey <tom@tromey.com>
7893
7894 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7895 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7896 * ada-lang.h (create_ada_exception_catchpoint): Update.
7897 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7898 std::string.
7899 (create_excep_cond_exprs, ~ada_catchpoint)
7900 (should_stop_exception, print_one_exception)
7901 (print_mention_exception, print_recreate_exception): Update.
7902 (ada_get_next_arg): Remove.
7903 (catch_ada_exception_command_split): Use std::string. Change type
7904 of "excep_string", "cond_string".
7905 (catch_ada_exception_command): Update.
7906 (create_ada_exception_catchpoint): Change type of excep_string.
7907 (ada_exception_sal): Remove excep_string parameter.
7908 (~ada_catchpoint): Remove.
7909
7910 2018-05-21 Tom Tromey <tom@tromey.com>
7911
7912 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7913 cleanup.
7914
7915 2018-05-21 Tom Tromey <tom@tromey.com>
7916
7917 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7918 Return unique_xmalloc_ptr.
7919 (print_it_exception): Update.
7920
7921 2018-05-21 Tom Tromey <tom@tromey.com>
7922
7923 * tracepoint.c (trace_dump_actions): Use std::string.
7924
7925 2018-05-21 Tom Tromey <tom@tromey.com>
7926
7927 * symfile.c (reread_symbols): Use std::string for original_name.
7928
7929 2018-05-21 Tom Tromey <tom@tromey.com>
7930
7931 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7932 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7933 constructor.
7934
7935 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7936
7937 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7938 instance to...
7939 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7940 * objfiles.c (get_objfile_bfd_data): Allocate
7941 objfile_per_bfd_storage with obstack_new when allocating on
7942 obstack.
7943
7944 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7947 OBSTACK_ZALLOC.
7948 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7949 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7950 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7951 (add_pending): Likewise.
7952 (parse_symbol): Likewise.
7953 (parse_partial_symbols): Likewise.
7954 (psymtab_to_symtab_1): Likewise.
7955 (new_psymtab): Likewise.
7956 (elfmdebug_build_psymtabs): Likewise.
7957 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7958 * objfiles.c (get_objfile_bfd_data): Likewise.
7959 (objfile_register_static_link): Likewise.
7960 * psymtab.c (allocate_psymtab): Likewise.
7961 * stabsread.c (read_member_functions): Likewise.
7962 * xcoffread.c (xcoff_end_psymtab): Likewise.
7963
7964 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7965
7966 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7967 compiler supports std::is_trivially_constructible.
7968 * common/poison.h: Include obstack.h.
7969 (IsMallocable): Define to is_trivially_constructible if the
7970 compiler supports it, define to true_type otherwise.
7971 (xobnew): New.
7972 (XOBNEW): Redefine.
7973 (xobnewvec): New.
7974 (XOBNEWVEC): Redefine.
7975 * gdb_obstack.h (obstack_zalloc): New.
7976 (OBSTACK_ZALLOC): Redefine.
7977 (obstack_calloc): New.
7978 (OBSTACK_CALLOC): Redefine.
7979 (obstack_new): New.
7980 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7981 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7982 gdbarch.c.
7983 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7984 obstack_calloc/obstack_zalloc.
7985 (gdbarch_obstack_zalloc): Remove.
7986 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7987
7988 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7989
7990 * stack.c (backtrace_command_1): Remove useless variable int i.
7991
7992 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7993
7994 * stack.c (print_frame_info): Fix comment.
7995
7996 2018-05-18 Tom Tromey <tom@tromey.com>
7997
7998 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7999 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8000 (~dwarf2_per_objfile): Update
8001 (dwarf2_get_dwz_file): Use new.
8002 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8003 unique_ptr.
8004
8005 2018-05-18 Tom Tromey <tom@tromey.com>
8006
8007 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8008 unique_ptr.
8009 * dwarf2read.c (struct dwp_file): Add constructor and
8010 initializers.
8011 (open_and_init_dwp_file): Return a unique_ptr.
8012 (dwarf2_per_objfile, create_dwp_hash_table)
8013 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8014 (lookup_dwo_unit_in_dwp): Update.
8015 (open_and_init_dwp_file, get_dwp_file): Update.
8016
8017 2018-05-18 Tom Tromey <tom@tromey.com>
8018
8019 * dwarf2read.c (dwarf2_per_objfile): Update.
8020 (struct mapped_index): Add initializers.
8021 (dwarf2_read_index): Use new.
8022 (dw2_symtab_iter_init): Update.
8023 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8024 unique_ptr.
8025
8026 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8027
8028 * dwarf2read.c (mapped_index) <total_size>: Remove.
8029
8030 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8031
8032 * unittests/format_pieces-selftests.c (test_format_specifier):
8033 Add ARI comments.
8034
8035 2018-05-18 Tom Tromey <tom@tromey.com>
8036
8037 * c-typeprint.c (maybe_print_hole): New function.
8038 (c_print_type_struct_field_offset): Update.
8039 (c_type_print_base_struct_union): Call maybe_print_hole.
8040
8041 2018-05-17 Keith Seitz <keiths@redhat.com>
8042
8043 * breakpoint.c (build_bpstat_chain): New function, moved from
8044 bpstat_stop_status.
8045 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8046 If no stop chain is passed, call build_bpstat_chain to build it.
8047 * breakpoint.h (build_bpstat_chain): Declare.
8048 (bpstat_stop_status): Move documentation here from breakpoint.c.
8049 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8050 build the stop chain and pass it to skip_inline_frames.
8051 Pass this stop chain to bpstat_stop_status.
8052 * inline-frame.c: Include breakpoint.h.
8053 (stopped_by_user_bp_inline_frame): New function.
8054 (skip_inline_frames): Add parameter `stop_chain'.
8055 Move documention to inline-frame.h.
8056 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8057 whether the frame should be elided.
8058 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8059 Add moved documentation and update for new parameter.
8060
8061 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8062
8063 PR cli/14975
8064 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8065 unittests/format_pieces-selftests.c.
8066 * common/format.h (format_piece) <operator==>: New.
8067 (format_pieces) <operator[]>: Remove.
8068 * common/format.c (format_pieces::format_pieces): Handle \e.
8069 * unittests/format_pieces-selftests.c: New.
8070
8071 2018-05-17 Tom Tromey <tom@tromey.com>
8072
8073 PR symtab/23010:
8074 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8075 (dw2_instantiate_symtab): Add skip_partial parameter.
8076 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8077 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8078 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8079 (dw2_expand_symtabs_matching_one)
8080 (dw2_find_pc_sect_compunit_symtab)
8081 (dw2_debug_names_lookup_symbol)
8082 (dw2_debug_names_expand_symtabs_for_function): Update.
8083 (init_cutu_and_read_dies): Add skip_partial parameter.
8084 (process_psymtab_comp_unit, build_type_psymtabs_1)
8085 (process_skeletonless_type_unit, load_partial_comp_unit)
8086 (psymtab_to_symtab_1): Update.
8087 (load_full_comp_unit): Add skip_partial parameter.
8088 (process_imported_unit_die, dwarf2_read_addr_index)
8089 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8090 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8091 (read_signatured_type): Update.
8092
8093 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8094
8095 * value.c (release_value): Remove unused variable.
8096 (record_latest_value): Likewise.
8097 (access_value_history): Likewise.
8098 (preserve_values): Likewise.
8099
8100 2018-05-17 Tom Tromey <tom@tromey.com>
8101
8102 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8103 Initialize.
8104
8105 2018-05-16 Maciej W. Rozycki <macro@mips.com>
8106
8107 PR gdb/22286
8108 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8109 Also handle registers whose width is not a multiple of
8110 PTRACE_TYPE_RET.
8111 (linux_nat_trad_target::store_register): Likewise.
8112
8113 2018-05-16 Tom Tromey <tom@tromey.com>
8114
8115 * gdbcore.h (core_bfd): Redefine.
8116 * corelow.c (core_target::close): Update.
8117 (core_target_open): Update.
8118 * progspace.h (struct program_space) <cbfd>: Now a
8119 gdb_bfd_ref_ptr.
8120
8121 2018-05-16 Tom Tromey <tom@tromey.com>
8122
8123 PR cli/19551:
8124 * symfile-add-flags.h (enum symfile_add_flags)
8125 <SYMFILE_NOT_FILENAME>: New constant.
8126 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8127 objfile name from BFD.
8128 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8129 * minidebug.c (find_separate_debug_file_in_section): Put
8130 ".gnu_debugdata" into BFD's file name.
8131
8132 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8133
8134 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8135 Remove.
8136
8137 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8138
8139 PR binutils/21446
8140 * aarch64-tdep.c (aarch64_analyze_prologue,
8141 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8142 Indicate not interested in errors.
8143
8144 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8145
8146 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8147 Supply the MIPS_ZERO_REGNUM register.
8148
8149 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8150
8151 * mips-tdep.c (mask_address_var): Make variable static.
8152
8153 2018-05-14 Tom Tromey <tom@tromey.com>
8154
8155 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8156
8157 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8160 FXSAVE_ADDR for the mxcsr register.
8161
8162 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8163
8164 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8165
8166 2018-05-11 Pedro Alves <palves@redhat.com>
8167
8168 * corelow.c (core_target) <core_target>: No longer inline.
8169 Initialize m_core_gdbarch, m_core_vec and build the section table
8170 here.
8171 <~core_target>: New.
8172 <core_gdbarch, get_core_register_section>: New methods.
8173 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8174 factored out from ...
8175 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8176 (core_ops): Delete.
8177 (sniff_core_bfd): Add gdbarch parameter.
8178 (core_close): Delete, merged into ...
8179 (core_target::close): ... here. Delete self.
8180 (core_close_cleanup): Delete.
8181 (core_target_open): Allocate a core_target on the heap. Use a
8182 unique_ptr instead of a cleanup. Bits moved into the core_target
8183 ctor. Adjust to use core_target methods instead of globals.
8184 (get_core_register_section): Rename to ...
8185 (core_target::get_core_register_section): ... this and adjust.
8186 (struct get_core_registers_cb_data): New.
8187 (get_core_registers_cb): Use it. Use bool.
8188 (core_target::fetch_registers, core_target::files_info)
8189 (core_target::xfer_partial, core_target::read_description)
8190 (core_target::pid_to, core_target::thread_name): Adjust to
8191 reference class fields instead of globals.
8192 * target.h (struct target_ops_deleter, target_ops_up): New.
8193
8194 2018-05-11 Pedro Alves <palves@redhat.com>
8195
8196 * corefile.c (core_file_command): Move to corelow.c.
8197 * corelow.c (the_core_target): Delete.
8198 (core_file_command): Moved from corefile.c. Check exec_bfd
8199 instead of the_core_target. Use target_detach instead of calling
8200 into the_core_target directly.
8201 (maybe_say_no_core_file_now): New.
8202 (core_target::detach): Use it.
8203 (_initialize_corelow): Remove references to the_core_target.
8204 * gdbcore.h (the_core_target): Delete.
8205
8206 2018-05-11 Tom Tromey <tromey@redhat.com>
8207 Pedro Alves <palves@redhat.com>
8208
8209 * corefile.c (core_bfd): Remove.
8210 * gdbcore.h (core_bfd): Now a macro.
8211 * progspace.h (struct program_space) <cbfd>: New field.
8212
8213 2018-05-11 Tom Tromey <tom@tromey.com>
8214
8215 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8216 gdb::def_vector.
8217
8218 2018-05-10 Tom Tromey <tom@tromey.com>
8219
8220 * configure: Rebuild.
8221 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8222
8223 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8224
8225 PR server/23158:
8226 * regformats/regdat.sh: Adjust script, following the addition
8227 of the new expedite_regs parameter to init_target_desc.
8228
8229 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8230
8231 PR gdb/23127
8232 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8233 set_gdbarch_significant_addr_bit.
8234 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8235 set_gdbarch_significant_addr_bit.
8236 * utils.c (address_significant): Update to sign extend addr.
8237
8238 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8239
8240 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8241 (xtensa_linux_init_abi): Limit tdep->num_regs by
8242 tdep->num_nopriv_regs.
8243 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8244 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8245 not initialized.
8246
8247 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8248
8249 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8250
8251 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8252
8253 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8254 (I387_MXCSR_INIT_VAL): New constant.
8255 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8256 buffer if it was supplied by the inferior.
8257 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8258 (i387_xsave_get_clear_bv): New function.
8259 (i387_supply_xsave): Only read x87 control registers from the
8260 xsave buffer if the feature is enabled, and the state will have
8261 been written, otherwise, provide a suitable default.
8262 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8263 including x87 control registers. Update control registers if they
8264 have changed from the default value, and mark features as enabled
8265 as required.
8266 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8267
8268 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8269
8270 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8271
8272 2018-05-07 Tom Tromey <tom@tromey.com>
8273
8274 * configure: Rebuild.
8275 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8276
8277 2018-05-07 Tom Tromey <tom@tromey.com>
8278
8279 PR tdep/20362:
8280 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8281 bit. Use correct value for VDIV.
8282
8283 2018-05-04 Tom Tromey <tom@tromey.com>
8284
8285 * configure: Rebuild.
8286 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8287
8288 2018-05-04 Tom Tromey <tom@tromey.com>
8289
8290 * linux-record.c (record_linux_system_call) <case
8291 RECORD_SYS_RECVFROM>: Add "break".
8292
8293 2018-05-04 Tom Tromey <tom@tromey.com>
8294
8295 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8296 Add missing "break".
8297 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8298 Add missing "break".
8299
8300 2018-05-04 Tom Tromey <tom@tromey.com>
8301
8302 * rs6000-tdep.c (ppc_process_record_op4)
8303 (ppc_process_record_op63): Add fall-through comment.
8304
8305 2018-05-04 Tom Tromey <tom@tromey.com>
8306
8307 * i386-tdep.c (i386_process_record): Add fall-through comment.
8308
8309 2018-05-04 Tom Tromey <tom@tromey.com>
8310
8311 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8312 comment.
8313
8314 2018-05-04 Tom Tromey <tom@tromey.com>
8315
8316 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8317 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8318 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8319 comment.
8320 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8321 comment.
8322 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8323 comment.
8324
8325 2018-05-04 Tom Tromey <tom@tromey.com>
8326
8327 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8328
8329 2018-05-04 Tom Tromey <tom@tromey.com>
8330
8331 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8332 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8333 * symfile.c (section_is_mapped): Fix fall-through comment.
8334 * stabsread.c (define_symbol, read_member_functions): Fix
8335 fall-through comment.
8336 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8337 comment.
8338 * remote.c (remote_wait_as): Fix fall-through comment.
8339 * p-exp.y (yylex): Fix fall-through comment.
8340 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8341 comment.
8342 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8343 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8344 * jv-exp.y (yylex): Fix fall-through comment.
8345 * go-exp.y (lex_one_token): Fix fall-through comment.
8346 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8347 fall-through comment.
8348 * f-exp.y (yylex): Fix fall-through comment.
8349 * dwarf2read.c (process_die): Fix fall-through comments.
8350 * dbxread.c (process_one_symbol): Fix fall-through comment.
8351 * d-exp.y (lex_one_token): Fix fall-through comment.
8352 * cp-name-parser.y (yylex): Fix fall-through comment.
8353 * coffread.c (coff_symtab_read): Fix fall-through comment.
8354 * c-exp.y (lex_one_token): Fix fall-through comment.
8355 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8356 comment.
8357 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8358 comment.
8359
8360 2018-05-04 Tom Tromey <tom@tromey.com>
8361
8362 PR python/22730:
8363 * NEWS: Mention gdb.execute change.
8364 * gdbcmd.h (execute_control_command): Don't declare.
8365 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8366 execute_control_commands, execute_control_commands_to_string.
8367 * cli/cli-script.h (execute_control_commands)
8368 (execute_control_commands_to_string): Declare.
8369 (execute_control_command): Add from_tty parameter.
8370 * cli/cli-script.c (execute_control_commands)
8371 (execute_control_commands_to_string): New functions.
8372 (execute_user_command): Use execute_control_commands.
8373 (execute_control_command_1): Add "from_tty" parameter. Update.
8374 (execute_control_command): Likewise.
8375
8376 2018-05-04 Tom Tromey <tom@tromey.com>
8377
8378 PR python/22731:
8379 * NEWS: Mention that breakpoint commands are writable.
8380 * python/py-breakpoint.c (bppy_set_commands): New function.
8381 (breakpoint_object_getset) <"commands">: Use it.
8382
8383 2018-05-04 Tom Tromey <tom@tromey.com>
8384
8385 * tracepoint.c (actions_command): Update.
8386 * mi/mi-cmd-break.c (mi_command_line_array)
8387 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8388 (mi_read_next_line): Remove.
8389 (mi_cmd_break_commands): Update.
8390 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8391 function_view.
8392 * cli/cli-script.c (get_command_line): Update.
8393 (process_next_line): Use function_view. Constify.
8394 (recurse_read_control_structure, read_command_lines)
8395 (read_command_lines_1): Change argument types to function_view.
8396 (do_define_command, document_command): Update.
8397 * breakpoint.h (check_tracepoint_command): Don't declare.
8398 * breakpoint.c (check_tracepoint_command): Remove.
8399 (commands_command_1, create_tracepoint_from_upload): Update.
8400
8401 2018-05-04 Tom Tromey <tom@tromey.com>
8402
8403 PR gdb/11750:
8404 * cli/cli-script.h (enum command_control_type) <define_control>:
8405 New constant.
8406 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8407 (build_command_line, execute_control_command_1)
8408 (process_next_line): Likewise.
8409 (do_define_command): New function, extracted from define_command.
8410 (define_command): Use it.
8411
8412 2018-05-04 Tom Tromey <tom@tromey.com>
8413
8414 * tracepoint.c (actions_command): Update.
8415 * cli/cli-script.h (read_command_lines): Update.
8416 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8417 (MAX_TMPBUF): Remove define.
8418 (define_command): Use string_printf.
8419 (document_command): Likewise.
8420 * breakpoint.c (commands_command_1): Update.
8421
8422 2018-05-04 Tom Tromey <tom@tromey.com>
8423
8424 * top.c (execute_command): Update.
8425 * cli/cli-script.h (print_command_lines): Now varargs.
8426 * cli/cli-script.c (print_command_lines): Now varargs.
8427 (execute_control_command_1) <case while_control, case if_control>:
8428 Update.
8429
8430 2018-05-04 Tom Tromey <tom@tromey.com>
8431
8432 * tracepoint.c (all_tracepoint_actions): Rename from
8433 all_tracepoint_actions_and_cleanup. Change return type.
8434 (actions_command, encode_actions_1, encode_actions)
8435 (trace_dump_actions, tdump_command): Update.
8436 * remote.c (remote_download_command_source): Update.
8437 * python/python.c (gdbpy_eval_from_control_command)
8438 (python_command, python_interactive_command): Update.
8439 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8440 * guile/guile.c (guile_command)
8441 (gdbscm_eval_from_control_command, guile_command): Update.
8442 * compile/compile.c (compile_code_command)
8443 (compile_print_command, compile_to_object): Update.
8444 * cli/cli-script.h (struct command_lines_deleter): New.
8445 (counted_command_line): New typedef.
8446 (struct command_line): Add constructor, destructor.
8447 <body_list>: Remove.
8448 <body_list_0, body_list_1>: New members.
8449 (command_line_up): Remove typedef.
8450 (read_command_lines, read_command_lines_1, get_command_line):
8451 Update.
8452 (copy_command_lines): Don't declare.
8453 * cli/cli-script.c (build_command_line): Use "new".
8454 (get_command_line): Return counted_command_line.
8455 (print_command_lines, execute_user_command)
8456 (execute_control_command_1, while_command, if_command): Update.
8457 (realloc_body_list): Remove.
8458 (process_next_line, recurse_read_control_structure): Update.
8459 (read_command_lines, read_command_lines_1): Return counted_command_line.
8460 (free_command_lines): Use "delete".
8461 (copy_command_lines): Remove.
8462 (define_command, document_command, show_user_1): Update.
8463 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8464 a counted_command_line.
8465 * breakpoint.h (counted_command_line): Remove typedef.
8466 (breakpoint_set_commands): Update.
8467 * breakpoint.c (check_no_tracepoint_commands)
8468 (validate_commands_for_breakpoint): Update.
8469 (breakpoint_set_commands): Change commands to be a
8470 counted_command_line.
8471 (commands_command_1, update_dprintf_command_list)
8472 (create_tracepoint_from_upload): Update.
8473
8474 2018-05-04 Tom Tromey <tom@tromey.com>
8475
8476 * cli/cli-decode.h (cmd_list_element): New constructor.
8477 (~cmd_list_element): New destructor.
8478 (struct cmd_list_element): Add initializers.
8479 * cli/cli-decode.c (do_add_cmd): Use "new".
8480 (delete_cmd): Use "delete".
8481
8482 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8483 Pedro Alves <palves@redhat.com>
8484
8485 PR breakpoints/19806 and support for PR external/20207.
8486 * NEWS: Mention Aarch64 watchpoint improvements.
8487 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8488 watchpoints and PR external/20207 watchpoints.
8489 * nat/aarch64-linux-hw-point.c
8490 (kernel_supports_any_contiguous_range): New.
8491 (aarch64_watchpoint_offset): New.
8492 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8493 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8494 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8495 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8496 next_addr_orig_p. Support PR external/20207 watchpoints.
8497 (aarch64_downgrade_regs): New.
8498 (aarch64_dr_state_insert_one_point): New parameters offset and
8499 addr_orig.
8500 (aarch64_dr_state_remove_one_point): Likewise.
8501 (aarch64_handle_breakpoint): Update caller.
8502 (aarch64_handle_aligned_watchpoint): Likewise.
8503 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8504 aligned_offset.
8505 (aarch64_linux_set_debug_regs): Remove const from state. Call
8506 aarch64_downgrade_regs.
8507 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8508 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8509 (DR_CONTROL_MASK): ... this.
8510 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8511 (unsigned int aarch64_watchpoint_offset): New prototype.
8512 (aarch64_linux_set_debug_regs): Remove const from state.
8513 * utils.c (align_up, align_down): Move to ...
8514 * common/common-utils.c (align_up, align_down): ... here.
8515 * utils.h (align_up, align_down): Move to ...
8516 * common/common-utils.h (align_up, align_down): ... here.
8517
8518 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8519
8520 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8521 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8522 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8523 Re-implement to match the ABI as summarized in GCC's
8524 gcc/config/sparc/sparc.c. All callers updated.
8525 (sparc32_store_arguments): Remove assertion.
8526
8527 2018-05-04 Tom Tromey <tom@tromey.com>
8528
8529 * printcmd.c: Don't include tui.h.
8530 (decode_format): Use skip_spaces.
8531
8532 2018-05-04 Tom Tromey <tom@tromey.com>
8533
8534 PR gdb/22619:
8535 * printcmd.c (last_count): New global.
8536 (x_command): Use saved count when repeating.
8537
8538 2018-05-04 Tom Tromey <tom@tromey.com>
8539
8540 * nto-procfs.c (do_closedir_cleanup): Remove.
8541 (procfs_pidlist): Use gdb_dir_up.
8542 * procfs.c (do_closedir_cleanup): Remove.
8543 (proc_update_threads): Use gdb_dir_up.
8544 * common/filestuff.h (struct gdb_dir_deleter): New.
8545 (gdb_dir_up): New typedef.
8546
8547 2018-05-04 Tom Tromey <tom@tromey.com>
8548
8549 * ada-lang.c (print_mention_exception): Use std::string.
8550
8551 2018-05-04 Tom Tromey <tom@tromey.com>
8552
8553 * ada-lang.c (create_excep_cond_exprs): Update.
8554 (ada_exception_catchpoint_cond_string): Use std::string.
8555
8556 2018-05-04 Tom Tromey <tom@tromey.com>
8557
8558 * ada-lang.c (xget_renaming_scope): Return std::string.
8559 (old_renaming_is_invisible): Update.
8560
8561 2018-05-04 Tom Tromey <tom@tromey.com>
8562
8563 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8564 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8565
8566 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8567
8568 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8569
8570 2018-05-04 Tom Tromey <tom@tromey.com>
8571
8572 * remote.c (remote_query_supported_append): Change type.
8573 (remote_check_symbols): Update.
8574
8575 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8576
8577 PR gdb/11420
8578 * configure.ac: Prepend libpython.
8579 * python/python-config.py: Likewise.
8580 * configure: Regenerate.
8581
8582 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8583
8584 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8585
8586 2018-05-03 Pedro Alves <palves@redhat.com>
8587
8588 * s390-linux-nat.c
8589 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8590 override. Write 'true' instead of '1'.
8591 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8592 declaration.
8593
8594 2018-05-02 Pedro Alves <palves@redhat.com>
8595
8596 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8597 add_inf_child_target.
8598 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8599 add_inf_child_target.
8600 * aix-thread.c (aix_thread_target_info): New.
8601 (aix_thread_target) <shortname, longname, doc>: Delete.
8602 <info>: New.
8603 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8604 add_inf_child_target.
8605 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8606 add_inf_child_target.
8607 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8608 add_inf_child_target.
8609 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8610 add_inf_child_target.
8611 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8612 add_inf_child_target.
8613 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8614 add_inf_child_target.
8615 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8616 add_inf_child_target.
8617 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8618 add_inf_child_target.
8619 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8620 add_inf_child_target.
8621 * bfd-target.c (target_bfd_target_info): New.
8622 (target_bfd) <shortname, longname, doc>: Delete.
8623 <info>: New.
8624 * bsd-kvm.c (bsd_kvm_target_info): New.
8625 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8626 <info>: New.
8627 (bsd_kvm_target::open): Rename to ...
8628 (bsd_kvm_target_open): ... this. Adjust.
8629 * bsd-uthread.c (bsd_uthread_target_info): New.
8630 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8631 <info>: New.
8632 * corefile.c (core_file_command): Adjust.
8633 * corelow.c (core_target_info): New.
8634 (core_target) <shortname, longname, doc>: Delete.
8635 <info>: New.
8636 (core_target::open): Rename to ...
8637 (core_target_open): ... this. Adjust.
8638 * ctf.c (ctf_target_info): New.
8639 (ctf_target) <shortname, longname, doc>: Delete.
8640 <info>: New.
8641 (ctf_target::open): Rename to ...
8642 (ctf_target_open): ... this.
8643 (_initialize_ctf): Adjust.
8644 * exec.c (exec_target_info): New.
8645 (exec_target) <shortname, longname, doc>: Delete.
8646 <info>: New.
8647 (exec_target::open): Rename to ...
8648 (exec_target_open): ... this.
8649 * gdbcore.h (core_target_open): Declare.
8650 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8651 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8652 add_inf_child_target.
8653 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8654 add_inf_child_target.
8655 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8656 add_inf_child_target.
8657 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8658 add_inf_child_target.
8659 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8660 add_inf_child_target.
8661 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8662 add_inf_child_target.
8663 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8664 add_inf_child_target.
8665 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8666 add_inf_child_target.
8667 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8668 add_inf_child_target.
8669 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8670 add_inf_child_target.
8671 * inf-child.c (inf_child_target_info): New.
8672 (inf_child_target::info): New.
8673 (inf_child_open_target): Remove 'target' parameter. Use
8674 get_native_target instead.
8675 (inf_child_target::open): Delete.
8676 (add_inf_child_target): New.
8677 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8678 Delete.
8679 <info>: New.
8680 (add_inf_child_target): Declare.
8681 (inf_child_open_target): Declare.
8682 * linux-thread-db.c (thread_db_target_info): New.
8683 (thread_db_target) <shortname, longname, doc>: Delete.
8684 <info>: New.
8685 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8686 add_inf_child_target.
8687 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8688 add_inf_child_target.
8689 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8690 add_inf_child_target.
8691 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8692 add_inf_child_target.
8693 * make-target-delegates (print_class): Adjust.
8694 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8695 add_inf_child_target.
8696 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8697 add_inf_child_target.
8698 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8699 add_inf_child_target.
8700 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8701 add_inf_child_target.
8702 * nto-procfs.c (nto_native_target_info): New.
8703 (nto_procfs_target_native) <shortname, longname, doc>:
8704 Delete.
8705 <info>: New.
8706 (nto_procfs_target_info): New.
8707 (nto_procfs_target_procfs) <shortname, longname, doc>:
8708 Delete.
8709 <info>: New.
8710 (init_procfs_targets): Adjust.
8711 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8712 add_inf_child_target.
8713 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8714 add_inf_child_target.
8715 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8716 add_inf_child_target.
8717 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8718 add_inf_child_target.
8719 * ravenscar-thread.c (ravenscar_target_info): New.
8720 (ravenscar_thread_target) <shortname, longname, doc>:
8721 Delete.
8722 <info>: New.
8723 * record-btrace.c (record_btrace_target_info):
8724 (record_btrace_target) <shortname, longname, doc>: Delete.
8725 <info>: New.
8726 (record_btrace_target::open): Rename to ...
8727 (record_btrace_target_open): ... this. Adjust.
8728 * record-full.c (record_longname, record_doc): New.
8729 (record_full_base_target) <shortname, longname, doc>: Delete.
8730 <info>: New.
8731 (record_full_target_info): New.
8732 (record_full_target): <shortname>: Delete.
8733 <info>: New.
8734 (record_full_core_open_1, record_full_open_1): Update comments.
8735 (record_full_base_target::open): Rename to ...
8736 (record_full_open): ... this.
8737 (cmd_record_full_restore): Update.
8738 (_initialize_record_full): Update.
8739 * remote-sim.c (remote_sim_target_info): New.
8740 (gdbsim_target) <shortname, longname, doc>: Delete.
8741 <info>: New.
8742 (gdbsim_target::open): Rename to ...
8743 (gdbsim_target_open): ... this.
8744 (_initialize_remote_sim): Adjust.
8745 * remote.c (remote_doc): New.
8746 (remote_target_info): New.
8747 (remote_target) <shortname, longname, doc>: Delete.
8748 <info>: New.
8749 (extended_remote_target_info): New.
8750 (extended_remote_target) <shortname, longname, doc>: Delete.
8751 <info>: New.
8752 (remote_target::open_1): Make static. Adjust.
8753 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8754 * s390-linux-nat.c (_initialize_s390_nat): Use
8755 add_inf_child_target.
8756 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8757 add_inf_child_target.
8758 * sol-thread.c (thread_db_target_info): New.
8759 (sol_thread_target) <shortname, longname, doc>: Delete.
8760 <info>: New.
8761 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8762 add_inf_child_target.
8763 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8764 add_inf_child_target.
8765 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8766 add_inf_child_target.
8767 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8768 add_inf_child_target.
8769 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8770 add_inf_child_target.
8771 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8772 add_inf_child_target.
8773 * spu-linux-nat.c (_initialize_spu_nat): Use
8774 add_inf_child_target.
8775 * spu-multiarch.c (spu_multiarch_target_info): New.
8776 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8777 <info>: New.
8778 * target-delegates.c: Regenerate.
8779 * target.c: Include <unordered_map>.
8780 (target_ops_p): Delete.
8781 (DEF_VEC_P(target_ops_p)): Delete.
8782 (target_factories): New.
8783 (test_target_info): New.
8784 (test_target_ops::info): New.
8785 (open_target): Adjust to use target_factories.
8786 (add_target_with_completer): Rename to ...
8787 (add_target): ... this. Change prototype. Register target_info
8788 and open callback in target_factories. Register target_info in
8789 command context instead of target_ops.
8790 (add_target): Delete old implementation.
8791 (add_deprecated_target_alias): Change prototype. Adjust.
8792 (the_native_target): New.
8793 (set_native_target, get_native_target): New.
8794 (find_default_run_target): Use the_native_target.
8795 (find_attach_target, find_run_target): Simplify.
8796 (target_ops::open): Delete.
8797 (dummy_target_info): New.
8798 (dummy_target::shortname, dummy_target::longname)
8799 (dummy_target::doc): Delete.
8800 (dummy_target::info): New.
8801 (debug_target::shortname, debug_target::longname)
8802 (debug_target::doc): Delete.
8803 (debug_target::info): New.
8804 * target.h (struct target_info): New.
8805 (target_ops::~target_ops): Add comment.
8806 (target_ops::info): New.
8807 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8808 longer virtual. Implement in terms of target_info.
8809 (set_native_target, get_native_target): Declare.
8810 (target_open_ftype): New.
8811 (add_target, add_target_with_completer)
8812 (add_deprecated_target_alias): Change prototype.
8813 (test_target) <shortname, longname, doc>: Delete.
8814 <info>: New.
8815 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8816 add_inf_child_target.
8817 * tracefile-tfile.c (tfile_target_info): New.
8818 (tfile_target) <shortname, longname, doc>: Delete.
8819 <info>: New.
8820 (tfile_target::open): Rename to ...
8821 (tfile_target_open): ... this.
8822 (_initialize_tracefile_tfile): Adjust.
8823 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8824 add_inf_child_target.
8825 * windows-nat.c (_initialize_windows_nat): Use
8826 add_inf_child_target.
8827 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8828 add_inf_child_target.
8829
8830 2018-05-02 Pedro Alves <palves@redhat.com>
8831
8832 * linux-nat.h (linux_nat_target) <low_new_thread,
8833 low_delete_thread, low_new_fork, low_forget_process,
8834 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8835 New virtual methods.
8836 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8837 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8838 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8839 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8840 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8841 Delete.
8842 * linux-fork.c (delete_fork): Adjust to call low method.
8843 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8844 (linux_nat_new_fork, linux_nat_forget_process_hook)
8845 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8846 (linux_nat_status_is_event):
8847 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8848 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8849 to call low method.
8850 (sigtrap_is_event): Rename to ...
8851 (linux_nat_target::low_status_is_event): ... this.
8852 (linux_nat_set_status_is_event): Delete.
8853 (save_stop_reason, linux_nat_wait_1)
8854 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8855 low methods.
8856 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8857 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8858 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8859 (linux_nat_set_prepare_to_resume): Delete.
8860 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8861 low virtual methods.
8862 * amd64-linux-nat.c: Likewise.
8863 * arm-linux-nat.c: Likewise.
8864 * i386-linux-nat.c: Likewise.
8865 * ia64-linux-nat.c: Likewise.
8866 * mips-linux-nat.c: Likewise.
8867 * ppc-linux-nat.c: Likewise.
8868 * s390-linux-nat.c: Likewise.
8869 * sparc64-linux-nat.c: Likewise.
8870 * x86-linux-nat.c: Likewise.
8871 * x86-linux-nat.h: Include "nat/x86-linux.h".
8872 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8873 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8874 Override methods.
8875
8876 2018-05-02 Pedro Alves <palves@redhat.com>
8877
8878 * target.h (target_ops)
8879 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8880 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8881 stopped_by_watchpoint, have_continuable_watchpoint,
8882 stopped_data_address, watchpoint_addr_within_range,
8883 can_accel_watchpoint_condition, can_run, thread_alive,
8884 has_all_memory, has_memory, has_stack, has_registers,
8885 has_execution, can_async_p, is_async_p, supports_non_stop,
8886 always_non_stop_p, can_execute_reverse, supports_multi_process,
8887 supports_enable_disable_tracepoint,
8888 supports_disable_randomization, supports_string_tracing,
8889 supports_evaluation_of_breakpoint_conditions,
8890 can_run_breakpoint_commands, filesystem_is_local,
8891 can_download_tracepoint, get_trace_state_variable_value,
8892 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8893 record_is_replaying, record_will_replay,
8894 augmented_libraries_svr4_read>: Adjust to return bool.
8895 * aarch64-linux-nat.c: All implementations adjusted.
8896 * aix-thread.c: All implementations adjusted.
8897 * arm-linux-nat.c: All implementations adjusted.
8898 * breakpoint.c: All implementations adjusted.
8899 * bsd-kvm.c: All implementations adjusted.
8900 * bsd-uthread.c: All implementations adjusted.
8901 * corelow.c: All implementations adjusted.
8902 * ctf.c: All implementations adjusted.
8903 * darwin-nat.c: All implementations adjusted.
8904 * darwin-nat.h: All implementations adjusted.
8905 * exec.c: All implementations adjusted.
8906 * fbsd-nat.c: All implementations adjusted.
8907 * fbsd-nat.h: All implementations adjusted.
8908 * gnu-nat.c: All implementations adjusted.
8909 * gnu-nat.h: All implementations adjusted.
8910 * go32-nat.c: All implementations adjusted.
8911 * ia64-linux-nat.c: All implementations adjusted.
8912 * inf-child.c: All implementations adjusted.
8913 * inf-child.h: All implementations adjusted.
8914 * inf-ptrace.c: All implementations adjusted.
8915 * inf-ptrace.h: All implementations adjusted.
8916 * linux-nat.c: All implementations adjusted.
8917 * linux-nat.h: All implementations adjusted.
8918 * mips-linux-nat.c: All implementations adjusted.
8919 * nto-procfs.c: All implementations adjusted.
8920 * ppc-linux-nat.c: All implementations adjusted.
8921 * procfs.c: All implementations adjusted.
8922 * ravenscar-thread.c: All implementations adjusted.
8923 * record-btrace.c: All implementations adjusted.
8924 * record-full.c: All implementations adjusted.
8925 * remote-sim.c: All implementations adjusted.
8926 * remote.c: All implementations adjusted.
8927 * s390-linux-nat.c: All implementations adjusted.
8928 * sol-thread.c: All implementations adjusted.
8929 * spu-multiarch.c: All implementations adjusted.
8930 * target-delegates.c: All implementations adjusted.
8931 * target.c: All implementations adjusted.
8932 * target.h: All implementations adjusted.
8933 * tracefile-tfile.c: All implementations adjusted.
8934 * tracefile.c: All implementations adjusted.
8935 * tracefile.h: All implementations adjusted.
8936 * windows-nat.c: All implementations adjusted.
8937 * x86-linux-nat.h: All implementations adjusted.
8938 * x86-nat.h: All implementations adjusted.
8939
8940 2018-05-02 Pedro Alves <palves@redhat.com>
8941
8942 * make-target-delegates (scan_target_h): Don't trim lines here.
8943 Replace sequences of tabs and/or whitespace with a single
8944 whitespace.
8945 (top level, parsing methods): Trim each line before processing it
8946 here.
8947
8948 2018-05-02 Pedro Alves <palves@redhat.com>
8949 John Baldwin <jhb@freebsd.org>
8950
8951 * target.h (enum strata) <debug_stratum>: New.
8952 (struct target_ops) <all delegation methods>: Replace by C++
8953 virtual methods, and drop "to_" prefix. All references updated
8954 throughout.
8955 <to_shortname, to_longname, to_doc, to_data,
8956 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8957 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8958 virtual methods. All references updated throughout.
8959 <can_attach, supports_terminal_ours, can_create_inferior,
8960 get_thread_control_capabilities, attach_no_wait>: New
8961 virtual methods.
8962 <insert_breakpoint, remove_breakpoint>: Now
8963 TARGET_DEFAULT_NORETURN methods.
8964 <info_proc>: Now returns bool.
8965 <to_magic>: Delete.
8966 (OPS_MAGIC): Delete.
8967 (current_target): Delete. All references replaced by references
8968 to ...
8969 (target_stack): ... this. New.
8970 (target_shortname, target_longname): Adjust.
8971 (target_can_run): Now a function declaration.
8972 (default_child_has_all_memory, default_child_has_memory)
8973 (default_child_has_stack, default_child_has_registers)
8974 (default_child_has_execution): Remove target_ops parameter.
8975 (complete_target_initialization): Delete.
8976 (memory_breakpoint_target): New template class.
8977 (test_target_ops): Refactor as a C++ class with virtual methods.
8978 * make-target-delegates (NAME_PART): Tighten.
8979 (POINTER_PART, CP_SYMBOL): New.
8980 (SIMPLE_RETURN_PART): Reimplement.
8981 (VEC_RETURN_PART): Expect less.
8982 (RETURN_PART, VIRTUAL_PART): New.
8983 (METHOD): Adjust to C++ virtual methods.
8984 (scan_target_h): Remove reference to C99.
8985 (dname): Output "target_ops::" prefix.
8986 (write_function_header): Adjust to output a C++ class method.
8987 (write_declaration): New.
8988 (write_delegator): Adjust to output a C++ class method.
8989 (tdname): Output "dummy_target::" prefix.
8990 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8991 method.
8992 (tdefault_names, debug_names): Delete.
8993 (return_types, tdefaults, styles, argtypes_array): New.
8994 (top level): All methods are delegators.
8995 (print_class): New.
8996 (top level): Print dummy_target and debug_target classes.
8997 * target-delegates.c: Regenerate.
8998 * target-debug.h (target_debug_print_enum_info_proc_what)
8999 (target_debug_print_thread_control_capabilities)
9000 (target_debug_print_thread_info_p): New.
9001 * target.c (dummy_target): Delete.
9002 (the_dummy_target, the_debug_target): New.
9003 (target_stack): Now extern.
9004 (set_targetdebug): Push/unpush debug target.
9005 (default_child_has_all_memory, default_child_has_memory)
9006 (default_child_has_stack, default_child_has_registers)
9007 (default_child_has_execution): Remove target_ops parameter.
9008 (complete_target_initialization): Delete.
9009 (add_target_with_completer): No longer call
9010 complete_target_initialization.
9011 (target_supports_terminal_ours): Use regular delegation.
9012 (update_current_target): Delete.
9013 (push_target): No longer check magic number. Don't call
9014 update_current_target.
9015 (unpush_target): Don't call update_current_target.
9016 (target_is_pushed): No longer check magic number.
9017 (target_require_runnable): Skip for all stratums over
9018 process_stratum.
9019 (target_ops::info_proc): New.
9020 (target_info_proc): Use find_target_at and
9021 find_default_run_target.
9022 (target_supports_disable_randomization): Use regular delegation.
9023 (target_get_osdata): Use find_target_at.
9024 (target_ops::open, target_ops::close, target_ops::can_attach)
9025 (target_ops::attach, target_ops::can_create_inferior)
9026 (target_ops::create_inferior, target_ops::can_run)
9027 (target_can_run): New.
9028 (default_fileio_target): Use regular delegation.
9029 (target_ops::fileio_open, target_ops::fileio_pwrite)
9030 (target_ops::fileio_pread, target_ops::fileio_fstat)
9031 (target_ops::fileio_close, target_ops::fileio_unlink)
9032 (target_ops::fileio_readlink): New.
9033 (target_fileio_open_1, target_fileio_unlink)
9034 (target_fileio_readlink): Always call the target method. Handle
9035 FILEIO_ENOSYS.
9036 (return_zero, return_zero_has_execution): Delete.
9037 (init_dummy_target): Delete.
9038 (dummy_target::dummy_target, dummy_target::shortname)
9039 (dummy_target::longname, dummy_target::doc)
9040 (debug_target::debug_target, debug_target::shortname)
9041 (debug_target::longname, debug_target::doc): New.
9042 (target_supports_delete_record): Use regular delegation.
9043 (setup_target_debug): Delete.
9044 (maintenance_print_target_stack): Skip debug_stratum.
9045 (initialize_targets): Instantiate the_dummy_target and
9046 the_debug_target.
9047 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9048 use target_stack.
9049 (target_auxv_search, fprint_target_auxv): Adjust.
9050 (info_auxv_command): Adjust to use target_stack.
9051 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9052 * exceptions.c (print_flush): Handle a NULL target_stack.
9053 * regcache.c (target_ops_no_register): Refactor as class with
9054 virtual methods.
9055
9056 * exec.c (exec_target): New class.
9057 (exec_ops): Now an exec_target.
9058 (exec_open, exec_close_1, exec_get_section_table)
9059 (exec_xfer_partial, exec_files_info, exec_has_memory)
9060 (exec_make_note_section): Refactor as exec_target methods.
9061 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9062 Delete.
9063 (exec_target::find_memory_regions): New.
9064 (_initialize_exec): Don't call init_exec_ops.
9065 * gdbcore.h (exec_file_clear): Delete.
9066
9067 * corefile.c (core_target): Delete.
9068 (core_file_command): Adjust.
9069 * corelow.c (core_target): New class.
9070 (the_core_target): New.
9071 (core_close): Remove target_ops parameter.
9072 (core_close_cleanup): Adjust.
9073 (core_target::close): New.
9074 (core_open, core_detach, get_core_registers, core_files_info)
9075 (core_xfer_partial, core_thread_alive, core_read_description)
9076 (core_pid_to_str, core_thread_name, core_has_memory)
9077 (core_has_stack, core_has_registers, core_info_proc): Rework as
9078 core_target methods.
9079 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9080 (_initialize_corelow): Initialize the_core_target.
9081 * gdbcore.h (core_target): Delete.
9082 (the_core_target): New.
9083
9084 * ctf.c: (ctf_target): New class.
9085 (ctf_ops): Now a ctf_target.
9086 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9087 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9088 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9089 methods.
9090 (init_ctf_ops): Delete.
9091 (_initialize_ctf): Don't call it.
9092 * tracefile-tfile.c (tfile_target): New class.
9093 (tfile_ops): Now a tfile_target.
9094 (tfile_open, tfile_close, tfile_files_info)
9095 (tfile_get_tracepoint_status, tfile_trace_find)
9096 (tfile_fetch_registers, tfile_xfer_partial)
9097 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9098 Refactor as tfile_target methods.
9099 (tfile_xfer_partial_features): Remove target_ops parameter.
9100 (init_tfile_ops): Delete.
9101 (_initialize_tracefile_tfile): Don't call it.
9102 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9103 (tracefile_has_stack, tracefile_has_registers)
9104 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9105 tracefile_target methods.
9106 (init_tracefile_ops): Delete.
9107 (tracefile_target::tracefile_target): New.
9108 * tracefile.h: Include "target.h".
9109 (tracefile_target): New class.
9110 (init_tracefile_ops): Delete.
9111
9112 * spu-multiarch.c (spu_multiarch_target): New class.
9113 (spu_ops): Now a spu_multiarch_target.
9114 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9115 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9116 (spu_search_memory, spu_mourn_inferior): Refactor as
9117 spu_multiarch_target methods.
9118 (init_spu_ops): Delete.
9119 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9120 complete_target_initialization.
9121
9122 * ravenscar-thread.c (ravenscar_thread_target): New class.
9123 (ravenscar_ops): Now a ravenscar_thread_target.
9124 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9125 (ravenscar_thread_alive, ravenscar_pid_to_str)
9126 (ravenscar_fetch_registers, ravenscar_store_registers)
9127 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9128 (ravenscar_stopped_by_hw_breakpoint)
9129 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9130 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9131 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9132 methods.
9133 (init_ravenscar_thread_ops): Delete.
9134 (_initialize_ravenscar): Remove references to
9135 init_ravenscar_thread_ops and complete_target_initialization.
9136
9137 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9138 (bsd_uthread_target): New class.
9139 (bsd_uthread_ops): Now a bsd_uthread_target.
9140 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9141 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9142 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9143 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9144 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9145 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9146 (bsd_uthread_target): Delete function.
9147 (_initialize_bsd_uthread): Remove reference to
9148 complete_target_initialization.
9149
9150 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9151 (target_bfd): ... this new class.
9152 (target_bfd_xfer_partial, target_bfd_get_section_table)
9153 (target_bfd_close): Refactor as target_bfd methods.
9154 (target_bfd::~target_bfd): New.
9155 (target_bfd_reopen): Adjust.
9156 (target_bfd::close): New.
9157
9158 * record-btrace.c (record_btrace_target): New class.
9159 (record_btrace_ops): Now a record_btrace_target.
9160 (record_btrace_open, record_btrace_stop_recording)
9161 (record_btrace_disconnect, record_btrace_close)
9162 (record_btrace_async, record_btrace_info)
9163 (record_btrace_insn_history, record_btrace_insn_history_range)
9164 (record_btrace_insn_history_from, record_btrace_call_history)
9165 (record_btrace_call_history_range)
9166 (record_btrace_call_history_from, record_btrace_record_method)
9167 (record_btrace_is_replaying, record_btrace_will_replay)
9168 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9169 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9170 (record_btrace_store_registers, record_btrace_prepare_to_store)
9171 (record_btrace_to_get_unwinder)
9172 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9173 (record_btrace_commit_resume, record_btrace_wait)
9174 (record_btrace_stop, record_btrace_can_execute_reverse)
9175 (record_btrace_stopped_by_sw_breakpoint)
9176 (record_btrace_supports_stopped_by_sw_breakpoint)
9177 (record_btrace_stopped_by_hw_breakpoint)
9178 (record_btrace_supports_stopped_by_hw_breakpoint)
9179 (record_btrace_update_thread_list, record_btrace_thread_alive)
9180 (record_btrace_goto_begin, record_btrace_goto_end)
9181 (record_btrace_goto, record_btrace_stop_replaying_all)
9182 (record_btrace_execution_direction)
9183 (record_btrace_prepare_to_generate_core)
9184 (record_btrace_done_generating_core): Refactor as
9185 record_btrace_target methods.
9186 (init_record_btrace_ops): Delete.
9187 (_initialize_record_btrace): Remove reference to
9188 init_record_btrace_ops.
9189 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9190 the execution_direction global.
9191 (record_full_base_target, record_full_target)
9192 (record_full_core_target): New classes.
9193 (record_full_ops): Now a record_full_target.
9194 (record_full_core_ops): Now a record_full_core_target.
9195 (record_full_target::detach, record_full_target::disconnect)
9196 (record_full_core_target::disconnect)
9197 (record_full_target::mourn_inferior, record_full_target::kill):
9198 New.
9199 (record_full_open, record_full_close, record_full_async): Refactor
9200 as methods of the record_full_base_target class.
9201 (record_full_resume, record_full_commit_resume): Refactor
9202 as methods of the record_full_target class.
9203 (record_full_wait, record_full_stopped_by_watchpoint)
9204 (record_full_stopped_data_address)
9205 (record_full_stopped_by_sw_breakpoint)
9206 (record_full_supports_stopped_by_sw_breakpoint)
9207 (record_full_stopped_by_hw_breakpoint)
9208 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9209 methods of the record_full_base_target class.
9210 (record_full_store_registers, record_full_xfer_partial)
9211 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9212 Refactor as methods of the record_full_target class.
9213 (record_full_can_execute_reverse, record_full_get_bookmark)
9214 (record_full_goto_bookmark, record_full_execution_direction)
9215 (record_full_record_method, record_full_info, record_full_delete)
9216 (record_full_is_replaying, record_full_will_replay)
9217 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9218 (record_full_stop_replaying): Refactor as methods of the
9219 record_full_base_target class.
9220 (record_full_core_resume, record_full_core_kill)
9221 (record_full_core_fetch_registers)
9222 (record_full_core_prepare_to_store)
9223 (record_full_core_store_registers, record_full_core_xfer_partial)
9224 (record_full_core_insert_breakpoint)
9225 (record_full_core_remove_breakpoint)
9226 (record_full_core_has_execution): Refactor
9227 as methods of the record_full_core_target class.
9228 (record_full_base_target::supports_delete_record): New.
9229 (init_record_full_ops): Delete.
9230 (init_record_full_core_ops): Delete.
9231 (record_full_save): Refactor as method of the
9232 record_full_base_target class.
9233 (_initialize_record_full): Remove references to
9234 init_record_full_ops and init_record_full_core_ops.
9235
9236 * remote.c (remote_target, extended_remote_target): New classes.
9237 (remote_ops): Now a remote_target.
9238 (extended_remote_ops): Now an extended_remote_target.
9239 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9240 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9241 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9242 (remote_pass_signals, remote_set_syscall_catchpoint)
9243 (remote_program_signals, )
9244 (remote_thread_always_alive): Remove target_ops parameter.
9245 (remote_thread_alive, remote_thread_name)
9246 (remote_update_thread_list, remote_threads_extra_info)
9247 (remote_static_tracepoint_marker_at)
9248 (remote_static_tracepoint_markers_by_strid)
9249 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9250 (remote_open): Refactor as methods of remote_target.
9251 (extended_remote_open, extended_remote_detach)
9252 (extended_remote_attach, extended_remote_post_attach):
9253 (extended_remote_supports_disable_randomization)
9254 (extended_remote_create_inferior): : Refactor as method of
9255 extended_remote_target.
9256 (remote_set_permissions, remote_open_1, remote_detach)
9257 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9258 (remote_resume, remote_commit_resume, remote_stop)
9259 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9260 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9261 (remote_prepare_to_store, remote_store_registers)
9262 (remote_flash_erase, remote_flash_done, remote_files_info)
9263 (remote_kill, remote_mourn, remote_insert_breakpoint)
9264 (remote_remove_breakpoint, remote_insert_watchpoint)
9265 (remote_watchpoint_addr_within_range)
9266 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9267 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9268 (remote_supports_stopped_by_sw_breakpoint)
9269 (remote_stopped_by_hw_breakpoint)
9270 (remote_supports_stopped_by_hw_breakpoint)
9271 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9272 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9273 (remote_verify_memory): Refactor as methods of remote_target.
9274 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9275 parameter.
9276 (remote_xfer_partial, remote_get_memory_xfer_limit)
9277 (remote_search_memory, remote_rcmd, remote_memory_map)
9278 (remote_pid_to_str, remote_get_thread_local_address)
9279 (remote_get_tib_address, remote_read_description): Refactor as
9280 methods of remote_target.
9281 (remote_target::fileio_open, remote_target::fileio_pwrite)
9282 (remote_target::fileio_pread, remote_target::fileio_close): New.
9283 (remote_hostio_readlink, remote_hostio_fstat)
9284 (remote_filesystem_is_local, remote_can_execute_reverse)
9285 (remote_supports_non_stop, remote_supports_disable_randomization)
9286 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9287 (remote_supports_enable_disable_tracepoint)
9288 (remote_supports_string_tracing)
9289 (remote_can_run_breakpoint_commands, remote_trace_init)
9290 (remote_download_tracepoint, remote_can_download_tracepoint)
9291 (remote_download_trace_state_variable, remote_enable_tracepoint)
9292 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9293 (remote_trace_start, remote_get_trace_status)
9294 (remote_get_tracepoint_status, remote_trace_stop)
9295 (remote_trace_find, remote_get_trace_state_variable_value)
9296 (remote_save_trace_data, remote_get_raw_trace_data)
9297 (remote_set_disconnected_tracing, remote_core_of_thread)
9298 (remote_set_circular_trace_buffer, remote_traceframe_info)
9299 (remote_get_min_fast_tracepoint_insn_len)
9300 (remote_set_trace_buffer_size, remote_set_trace_notes)
9301 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9302 (remote_disable_btrace, remote_teardown_btrace)
9303 (remote_read_btrace, remote_btrace_conf)
9304 (remote_augmented_libraries_svr4_read, remote_load)
9305 (remote_pid_to_exec_file, remote_can_do_single_step)
9306 (remote_execution_direction, remote_thread_handle_to_thread_info):
9307 Refactor as methods of remote_target.
9308 (init_remote_ops, init_extended_remote_ops): Delete.
9309 (remote_can_async_p, remote_is_async_p, remote_async)
9310 (remote_thread_events, remote_upload_tracepoints)
9311 (remote_upload_trace_state_variables): Refactor as methods of
9312 remote_target.
9313 (_initialize_remote): Remove references to init_remote_ops and
9314 init_extended_remote_ops.
9315
9316 * remote-sim.c (gdbsim_target): New class.
9317 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9318 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9319 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9320 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9321 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9322 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9323 Refactor as methods of gdbsim_target.
9324 (gdbsim_ops): Now a gdbsim_target.
9325 (init_gdbsim_ops): Delete.
9326 (gdbsim_cntrl_c): Adjust.
9327 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9328
9329 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9330 (the_amd64_linux_nat_target): New.
9331 (amd64_linux_fetch_inferior_registers)
9332 (amd64_linux_store_inferior_registers): Refactor as methods of
9333 amd64_linux_nat_target.
9334 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9335 * i386-linux-nat.c: Don't include "linux-nat.h".
9336 (i386_linux_nat_target): New class.
9337 (the_i386_linux_nat_target): New.
9338 (i386_linux_fetch_inferior_registers)
9339 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9340 as methods of i386_linux_nat_target.
9341 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9342 * inf-child.c (inf_child_ops): Delete.
9343 (inf_child_fetch_inferior_registers)
9344 (inf_child_store_inferior_registers): Delete.
9345 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9346 methods of inf_child_target.
9347 (inf_child_target::supports_terminal_ours)
9348 (inf_child_target::terminal_init)
9349 (inf_child_target::terminal_inferior)
9350 (inf_child_target::terminal_ours_for_output)
9351 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9352 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9353 New.
9354 (inf_child_open, inf_child_disconnect, inf_child_close)
9355 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9356 (inf_child_post_startup_inferior, inf_child_can_run)
9357 (inf_child_pid_to_exec_file): Refactor as methods of
9358 inf_child_target.
9359 (inf_child_follow_fork): Delete.
9360 (inf_child_target::can_create_inferior)
9361 (inf_child_target::can_attach): New.
9362 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9363 (inf_child_target::has_stack, inf_child_target::has_registers)
9364 (inf_child_target::has_execution): New.
9365 (inf_child_fileio_open, inf_child_fileio_pwrite)
9366 (inf_child_fileio_pread, inf_child_fileio_fstat)
9367 (inf_child_fileio_close, inf_child_fileio_unlink)
9368 (inf_child_fileio_readlink, inf_child_use_agent)
9369 (inf_child_can_use_agent): Refactor as methods of
9370 inf_child_target.
9371 (return_zero, inf_child_target): Delete.
9372 (inf_child_target::inf_child_target): New.
9373 * inf-child.h: Include "target.h".
9374 (inf_child_target): Delete function prototype.
9375 (inf_child_target): New class.
9376 (inf_child_open_target, inf_child_mourn_inferior)
9377 (inf_child_maybe_unpush_target): Delete.
9378 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9379 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9380 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9381 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9382 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9383 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9384 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9385 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9386 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9387 methods of inf_ptrace_target.
9388 (inf_ptrace_target): Delete function.
9389 * inf-ptrace.h: Include "inf-child.h".
9390 (inf_ptrace_target): Delete function declaration.
9391 (inf_ptrace_target): New class.
9392 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9393 * linux-nat.c (linux_target): New.
9394 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9395 (linux_nat_target::~linux_nat_target): New.
9396 (linux_child_post_attach, linux_child_post_startup_inferior)
9397 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9398 (linux_child_remove_fork_catchpoint)
9399 (linux_child_insert_vfork_catchpoint)
9400 (linux_child_remove_vfork_catchpoint)
9401 (linux_child_insert_exec_catchpoint)
9402 (linux_child_remove_exec_catchpoint)
9403 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9404 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9405 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9406 (linux_nat_stopped_data_address)
9407 (linux_nat_stopped_by_sw_breakpoint)
9408 (linux_nat_supports_stopped_by_sw_breakpoint)
9409 (linux_nat_stopped_by_hw_breakpoint)
9410 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9411 (linux_nat_kill, linux_nat_mourn_inferior)
9412 (linux_nat_xfer_partial, linux_nat_thread_alive)
9413 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9414 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9415 (linux_child_static_tracepoint_markers_by_strid)
9416 (linux_nat_is_async_p, linux_nat_can_async_p)
9417 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9418 (linux_nat_supports_multi_process)
9419 (linux_nat_supports_disable_randomization, linux_nat_async)
9420 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9421 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9422 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9423 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9424 methods of linux_nat_target.
9425 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9426 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9427 parameter.
9428 (check_stopped_by_watchpoint): Adjust.
9429 (linux_xfer_partial): Delete.
9430 (linux_target_install_ops, linux_target, linux_nat_add_target):
9431 Delete.
9432 (linux_nat_target::linux_nat_target): New.
9433 * linux-nat.h: Include "inf-ptrace.h".
9434 (linux_nat_target): New.
9435 (linux_target, linux_target_install_ops, linux_nat_add_target):
9436 Delete function declarations.
9437 (linux_target): Declare global.
9438 * linux-thread-db.c (thread_db_target): New.
9439 (thread_db_target::thread_db_target): New.
9440 (thread_db_ops): Delete.
9441 (the_thread_db_target): New.
9442 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9443 (thread_db_update_thread_list, thread_db_pid_to_str)
9444 (thread_db_extra_thread_info)
9445 (thread_db_thread_handle_to_thread_info)
9446 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9447 (thread_db_resume): Refactor as methods of thread_db_target.
9448 (init_thread_db_ops): Delete.
9449 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9450 * x86-linux-nat.c: Don't include "linux-nat.h".
9451 (super_post_startup_inferior): Delete.
9452 (x86_linux_nat_target::~x86_linux_nat_target): New.
9453 (x86_linux_child_post_startup_inferior)
9454 (x86_linux_read_description, x86_linux_enable_btrace)
9455 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9456 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9457 methods of x86_linux_nat_target.
9458 (x86_linux_create_target): Delete. Bits folded ...
9459 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9460 pointer.
9461 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9462 (x86_linux_nat_target): New class.
9463 (x86_linux_create_target): Delete.
9464 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9465 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9466 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9467 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9468 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9469 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9470 make extern.
9471 (x86_use_watchpoints): Delete.
9472 * x86-nat.h: Include "breakpoint.h" and "target.h".
9473 (x86_use_watchpoints): Delete.
9474 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9475 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9476 (x86_insert_watchpoint, x86_remove_watchpoint)
9477 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9478 (x86_stopped_by_hw_breakpoint): New declarations.
9479 (x86_nat_target): New template class.
9480
9481 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9482 (the_ppc_linux_nat_target): New.
9483 (ppc_linux_fetch_inferior_registers)
9484 (ppc_linux_can_use_hw_breakpoint)
9485 (ppc_linux_region_ok_for_hw_watchpoint)
9486 (ppc_linux_ranged_break_num_registers)
9487 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9488 (ppc_linux_insert_mask_watchpoint)
9489 (ppc_linux_remove_mask_watchpoint)
9490 (ppc_linux_can_accel_watchpoint_condition)
9491 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9492 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9493 (ppc_linux_watchpoint_addr_within_range)
9494 (ppc_linux_masked_watch_num_registers)
9495 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9496 (ppc_linux_read_description): Refactor as methods of
9497 ppc_linux_nat_target.
9498 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9499
9500 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9501 (procfs_target): New class.
9502 (the_procfs_target): New.
9503 (procfs_target): Delete function.
9504 (procfs_auxv_parse, procfs_attach, procfs_detach)
9505 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9506 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9507 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9508 (procfs_create_inferior, procfs_update_thread_list)
9509 (procfs_thread_alive, procfs_pid_to_str)
9510 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9511 (procfs_stopped_data_address, procfs_insert_watchpoint)
9512 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9513 (proc_find_memory_regions, procfs_info_proc)
9514 (procfs_make_note_section): Refactor as methods of procfs_target.
9515 (_initialize_procfs): Adjust.
9516 * sol-thread.c (sol_thread_target): New class.
9517 (sol_thread_ops): Now a sol_thread_target.
9518 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9519 (sol_thread_fetch_registers, sol_thread_store_registers)
9520 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9521 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9522 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9523 (init_sol_thread_ops): Delete.
9524 (_initialize_sol_thread): Adjust. Remove references to
9525 init_sol_thread_ops and complete_target_initialization.
9526
9527 * windows-nat.c (windows_nat_target): New class.
9528 (windows_fetch_inferior_registers)
9529 (windows_store_inferior_registers, windows_resume, windows_wait)
9530 (windows_attach, windows_detach, windows_pid_to_exec_file)
9531 (windows_files_info, windows_create_inferior)
9532 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9533 (windows_close, windows_pid_to_str, windows_xfer_partial)
9534 (windows_get_tib_address, windows_get_ada_task_ptid)
9535 (windows_thread_name, windows_thread_alive): Refactor as
9536 windows_nat_target methods.
9537 (do_initial_windows_stuff): Adjust.
9538 (windows_target): Delete function.
9539 (_initialize_windows_nat): Adjust.
9540
9541 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9542 (darwin_mourn_inferior, darwin_kill_inferior)
9543 (darwin_create_inferior, darwin_attach, darwin_detach)
9544 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9545 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9546 (darwin_supports_multi_process): Refactor as darwin_nat_target
9547 methods.
9548 (darwin_resume_to, darwin_files_info): Delete.
9549 (_initialize_darwin_inferior): Rename to ...
9550 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9551 * darwin-nat.h: Include "inf-child.h".
9552 (darwin_nat_target): New class.
9553 (darwin_complete_target): Delete.
9554 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9555 (darwin_target): New.
9556 (i386_darwin_fetch_inferior_registers)
9557 (i386_darwin_store_inferior_registers): Refactor as methods of
9558 darwin_nat_target.
9559 (darwin_complete_target): Delete, with ...
9560 (_initialize_i386_darwin_nat): ... bits factored out here.
9561
9562 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9563 (the_alpha_linux_nat_target): New.
9564 (alpha_linux_register_u_offset): Refactor as
9565 alpha_linux_nat_target method.
9566 (_initialize_alpha_linux_nat): Adjust.
9567 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9568 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9569 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9570 methods of linux_nat_trad_target.
9571 (linux_trad_target): Delete.
9572 * linux-nat-trad.h (linux_trad_target): Delete function.
9573 (linux_nat_trad_target): New class.
9574 * mips-linux-nat.c (mips_linux_nat_target): New class.
9575 (super_fetch_registers, super_store_registers, super_close):
9576 Delete.
9577 (the_mips_linux_nat_target): New.
9578 (mips64_linux_regsets_fetch_registers)
9579 (mips64_linux_regsets_store_registers)
9580 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9581 (mips_linux_register_u_offset, mips_linux_read_description)
9582 (mips_linux_can_use_hw_breakpoint)
9583 (mips_linux_stopped_by_watchpoint)
9584 (mips_linux_stopped_data_address)
9585 (mips_linux_region_ok_for_hw_watchpoint)
9586 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9587 (mips_linux_close): Refactor as methods of mips_linux_nat.
9588 (_initialize_mips_linux_nat): Adjust to C++ification.
9589
9590 * aix-thread.c (aix_thread_target): New class.
9591 (aix_thread_ops): Now an aix_thread_target.
9592 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9593 (aix_thread_fetch_registers, aix_thread_store_registers)
9594 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9595 (aix_thread_thread_alive, aix_thread_pid_to_str)
9596 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9597 Refactor as methods of aix_thread_target.
9598 (init_aix_thread_ops): Delete.
9599 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9600 and complete_target_initialization.
9601 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9602 (rs6000_nat_target): New class.
9603 (the_rs6000_nat_target): New.
9604 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9605 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9606 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9607 (super_create_inferior): Delete.
9608 (_initialize_rs6000_nat): Adjust to C++ification.
9609
9610 * arm-linux-nat.c (arm_linux_nat_target): New class.
9611 (the_arm_linux_nat_target): New.
9612 (arm_linux_fetch_inferior_registers)
9613 (arm_linux_store_inferior_registers, arm_linux_read_description)
9614 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9615 (arm_linux_remove_hw_breakpoint)
9616 (arm_linux_region_ok_for_hw_watchpoint)
9617 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9618 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9619 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9620 arm_linux_nat_target.
9621 (_initialize_arm_linux_nat): Adjust to C++ification.
9622
9623 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9624 (the_aarch64_linux_nat_target): New.
9625 (aarch64_linux_fetch_inferior_registers)
9626 (aarch64_linux_store_inferior_registers)
9627 (aarch64_linux_child_post_startup_inferior)
9628 (aarch64_linux_read_description)
9629 (aarch64_linux_can_use_hw_breakpoint)
9630 (aarch64_linux_insert_hw_breakpoint)
9631 (aarch64_linux_remove_hw_breakpoint)
9632 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9633 (aarch64_linux_region_ok_for_hw_watchpoint)
9634 (aarch64_linux_stopped_data_address)
9635 (aarch64_linux_stopped_by_watchpoint)
9636 (aarch64_linux_watchpoint_addr_within_range)
9637 (aarch64_linux_can_do_single_step): Refactor as methods of
9638 aarch64_linux_nat_target.
9639 (super_post_startup_inferior): Delete.
9640 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9641
9642 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9643 (the_hppa_linux_nat_target): New.
9644 (hppa_linux_fetch_inferior_registers)
9645 (hppa_linux_store_inferior_registers): Refactor as methods of
9646 hppa_linux_nat_target.
9647 (_initialize_hppa_linux_nat): Adjust to C++ification.
9648
9649 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9650 (the_ia64_linux_nat_target): New.
9651 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9652 (ia64_linux_stopped_data_address)
9653 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9654 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9655 ia64_linux_nat_target methods.
9656 (super_xfer_partial): Delete.
9657 (_initialize_ia64_linux_nat): Adjust to C++ification.
9658
9659 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9660 (the_m32r_linux_nat_target): New.
9661 (m32r_linux_fetch_inferior_registers)
9662 (m32r_linux_store_inferior_registers): Refactor as
9663 m32r_linux_nat_target methods.
9664 (_initialize_m32r_linux_nat): Adjust to C++ification.
9665
9666 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9667 (the_m68k_linux_nat_target): New.
9668 (m68k_linux_fetch_inferior_registers)
9669 (m68k_linux_store_inferior_registers): Refactor as
9670 m68k_linux_nat_target methods.
9671 (_initialize_m68k_linux_nat): Adjust to C++ification.
9672
9673 * s390-linux-nat.c (s390_linux_nat_target): New class.
9674 (the_s390_linux_nat_target): New.
9675 (s390_linux_fetch_inferior_registers)
9676 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9677 (s390_insert_watchpoint, s390_remove_watchpoint)
9678 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9679 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9680 (s390_auxv_parse, s390_read_description): Refactor as methods of
9681 s390_linux_nat_target.
9682 (_initialize_s390_nat): Adjust to C++ification.
9683
9684 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9685 (the_sparc_linux_nat_target): New.
9686 (_initialize_sparc_linux_nat): Adjust to C++ification.
9687 * sparc-nat.c (sparc_fetch_inferior_registers)
9688 (sparc_store_inferior_registers): Remove target_ops parameter.
9689 * sparc-nat.h (sparc_fetch_inferior_registers)
9690 (sparc_store_inferior_registers): Remove target_ops parameter.
9691 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9692 (the_sparc64_linux_nat_target): New.
9693 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9694
9695 * spu-linux-nat.c (spu_linux_nat_target): New class.
9696 (the_spu_linux_nat_target): New.
9697 (spu_child_post_startup_inferior, spu_child_post_attach)
9698 (spu_child_wait, spu_fetch_inferior_registers)
9699 (spu_store_inferior_registers, spu_xfer_partial)
9700 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9701 methods.
9702 (_initialize_spu_nat): Adjust to C++ification.
9703
9704 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9705 (the_tilegx_linux_nat_target): New.
9706 (fetch_inferior_registers, store_inferior_registers):
9707 Refactor as methods.
9708 (_initialize_tile_linux_nat): Adjust to C++ification.
9709
9710 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9711 (the_xtensa_linux_nat_target): New.
9712 (xtensa_linux_fetch_inferior_registers)
9713 (xtensa_linux_store_inferior_registers): Refactor as
9714 xtensa_linux_nat_target methods.
9715 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9716
9717 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9718 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9719 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9720 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9721 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9722 (fbsd_stopped_by_sw_breakpoint)
9723 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9724 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9725 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9726 (fbsd_post_startup_inferior, fbsd_post_attach)
9727 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9728 (fbsd_set_syscall_catchpoint)
9729 (super_xfer_partial, super_resume, super_wait)
9730 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9731 (fbsd_handle_debug_trap): Remove target_ops parameter.
9732 (fbsd_nat_add_target): Delete.
9733 * fbsd-nat.h: Include "inf-ptrace.h".
9734 (fbsd_nat_add_target): Delete.
9735 (USE_SIGTRAP_SIGINFO): Define.
9736 (fbsd_nat_target): New class.
9737
9738 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9739 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9740 (amd64bsd_target): Delete.
9741 * amd64-bsd-nat.h: New file.
9742 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9743 "x86-bsd-nat.h".
9744 (amd64_fbsd_nat_target): New class.
9745 (the_amd64_fbsd_nat_target): New.
9746 (amd64fbsd_read_description): Refactor as method of
9747 amd64_fbsd_nat_target.
9748 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9749 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9750 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9751 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9752 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9753 (i386bsd_target): Delete.
9754 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9755 (i386bsd_fetch_inferior_registers)
9756 (i386bsd_store_inferior_registers): Declare.
9757 (i386_bsd_nat_target): New class.
9758 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9759 (the_i386_fbsd_nat_target): New.
9760 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9761 i386_fbsd_nat_target methods.
9762 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9763 (_initialize_i386fbsd_nat): Adjust to C++ification.
9764 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9765 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9766 (_initialize_x86_bsd_nat): Adjust to C++ification.
9767 * x86-bsd-nat.h: Include "x86-nat.h".
9768 (x86bsd_target): Delete declaration.
9769 (x86bsd_nat_target): New class.
9770
9771 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9772 (the_aarch64_fbsd_nat_target): New.
9773 (aarch64_fbsd_fetch_inferior_registers)
9774 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9775 aarch64_fbsd_nat_target.
9776 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9777 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9778 (the_alpha_bsd_nat_target): New.
9779 (alphabsd_fetch_inferior_registers)
9780 (alphabsd_store_inferior_registers): Refactor as
9781 alpha_bsd_nat_target methods.
9782 (_initialize_alphabsd_nat): Refactor as methods of
9783 alpha_bsd_nat_target.
9784 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9785 (the_amd64_nbsd_nat_target): New.
9786 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9787 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9788 (the_amd64_obsd_nat_target): New.
9789 (_initialize_amd64obsd_nat): Adjust to C++ification.
9790 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9791 (the_arm_fbsd_nat_target): New.
9792 (arm_fbsd_fetch_inferior_registers)
9793 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9794 (_initialize_arm_fbsd_nat): Refactor as methods of
9795 arm_fbsd_nat_target.
9796 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9797 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9798 (the_arm_netbsd_nat_target): New.
9799 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9800 arm_netbsd_nat_target.
9801 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9802 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9803 (the_hppa_nbsd_nat_target): New.
9804 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9805 hppa_nbsd_nat_target methods.
9806 (_initialize_hppanbsd_nat): Adjust to C++ification.
9807 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9808 (the_hppa_obsd_nat_target): New.
9809 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9810 methods of hppa_obsd_nat_target.
9811 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9812 add_target.
9813 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9814 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9815 add_target.
9816 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9817 (_initialize_i386obsd_nat): Use add_target.
9818 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9819 (the_m68k_bsd_nat_target): New.
9820 (m68kbsd_fetch_inferior_registers)
9821 (m68kbsd_store_inferior_registers): Refactor as methods of
9822 m68k_bsd_nat_target.
9823 (_initialize_m68kbsd_nat): Adjust to C++ification.
9824 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9825 (the_mips_fbsd_nat_target): New.
9826 (mips_fbsd_fetch_inferior_registers)
9827 (mips_fbsd_store_inferior_registers): Refactor as methods of
9828 mips_fbsd_nat_target.
9829 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9830 add_target.
9831 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9832 (the_mips_nbsd_nat_target): New.
9833 (mipsnbsd_fetch_inferior_registers)
9834 (mipsnbsd_store_inferior_registers): Refactor as methods of
9835 mips_nbsd_nat_target.
9836 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9837 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9838 (the_mips64_obsd_nat_target): New.
9839 (mips64obsd_fetch_inferior_registers)
9840 (mips64obsd_store_inferior_registers): Refactor as methods of
9841 mips64_obsd_nat_target.
9842 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9843 add_target.
9844 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9845 nbsd_nat_target.
9846 * nbsd-nat.h: Include "inf-ptrace.h".
9847 (nbsd_nat_target): New class.
9848 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9849 (obsd_wait): Refactor as methods of obsd_nat_target.
9850 (obsd_add_target): Delete.
9851 * obsd-nat.h: Include "inf-ptrace.h".
9852 (obsd_nat_target): New class.
9853 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9854 (the_ppc_fbsd_nat_target): New.
9855 (ppcfbsd_fetch_inferior_registers)
9856 (ppcfbsd_store_inferior_registers): Refactor as methods of
9857 ppc_fbsd_nat_target.
9858 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9859 add_target.
9860 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9861 (the_ppc_nbsd_nat_target): New.
9862 (ppcnbsd_fetch_inferior_registers)
9863 (ppcnbsd_store_inferior_registers): Refactor as methods of
9864 ppc_nbsd_nat_target.
9865 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9866 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9867 (the_ppc_obsd_nat_target): New.
9868 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9869 methods of ppc_obsd_nat_target.
9870 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9871 add_target.
9872 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9873 (the_sh_nbsd_nat_target): New.
9874 (shnbsd_fetch_inferior_registers)
9875 (shnbsd_store_inferior_registers): Refactor as methods of
9876 sh_nbsd_nat_target.
9877 (_initialize_shnbsd_nat): Adjust to C++ification.
9878 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9879 (inf_ptrace_xfer_partial): Delete.
9880 (sparc_xfer_partial, sparc_target): Delete.
9881 * sparc-nat.h (sparc_fetch_inferior_registers)
9882 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9883 (sparc_target): Delete function declaration.
9884 (sparc_target): New template class.
9885 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9886 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9887 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9888 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9889 add_target.
9890 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9891 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9892 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9893 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9894 add_target.
9895 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9896 (the_vax_bsd_nat_target): New.
9897 (vaxbsd_fetch_inferior_registers)
9898 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9899 methods.
9900 (_initialize_vaxbsd_nat): Adjust to C++ification.
9901
9902 * bsd-kvm.c (bsd_kvm_target): New class.
9903 (bsd_kvm_ops): Now a bsd_kvm_target.
9904 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9905 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9906 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9907 bsd_kvm_target.
9908 (bsd_kvm_return_one): Delete.
9909 (bsd_kvm_add_target): Adjust to C++ification.
9910
9911 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9912 (nto_procfs_target_procfs): New classes.
9913 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9914 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9915 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9916 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9917 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9918 (procfs_remove_hw_breakpoint, procfs_resume)
9919 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9920 (procfs_kill_inferior, procfs_store_registers)
9921 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9922 as methods of nto_procfs_target.
9923 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9924 (nto_native_ops): Delete.
9925 (procfs_open, procfs_native_open): Delete.
9926 (nto_native_ops): Now an nto_procfs_target_native.
9927 (init_procfs_targets): Adjust to C++ification.
9928 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9929 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9930 Refactor as methods of nto_procfs_target.
9931
9932 * go32-nat.c (go32_nat_target): New class.
9933 (the_go32_nat_target): New.
9934 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9935 (go32_store_registers, go32_xfer_partial, go32_files_info)
9936 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9937 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9938 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9939 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9940 (go32_target): Delete.
9941 (_initialize_go32_nat): Adjust to C++ification.
9942
9943 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9944 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9945 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9946 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9947 gnu_nat_target.
9948 (gnu_target): Delete.
9949 * gnu-nat.h (gnu_target): Delete.
9950 (gnu_nat_target): New class.
9951 * i386-gnu-nat.c (gnu_base_target): New.
9952 (i386_gnu_nat_target): New class.
9953 (the_i386_gnu_nat_target): New.
9954 (_initialize_i386gnu_nat): Adjust to C++ification.
9955
9956 2018-05-02 Pedro Alves <palves@redhat.com>
9957
9958 * bfd-target.c (target_bfd_xclose): Rename to ...
9959 (target_bfd_close): ... this.
9960 (target_bfd_reopen): Adjust.
9961 * target.c (target_close): Remove references to to_xclose.
9962 * target.h (target_ops::to_xclose): Delete.
9963 (target_ops::to_close): Update comments.
9964
9965 2018-05-02 Pedro Alves <palves@redhat.com>
9966
9967 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9968 "linux-nat.h".
9969 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9970 * inf-ptrace.c (inf_ptrace_register_u_offset)
9971 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9972 (inf_ptrace_store_register, inf_ptrace_store_registers)
9973 (inf_ptrace_trad_target): Move to ...
9974 * linux-nat-trad.c: ... this new file.
9975 * linux-nat-trad.h: New file.
9976 * linux-nat.c (linux_target_install_ops): Make extern.
9977 (linux_trad_target): Delete.
9978 * linux-nat.h (linux_trad_target): Delete declaration.
9979 (linux_target_install_ops): Declare.
9980 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9981 "linux-nat.h".
9982
9983 2018-05-02 Pedro Alves <palves@redhat.com>
9984
9985 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9986 procfs_target/add_target here.
9987 * procfs.c (procfs_target): Make static.
9988 (_initialize_procfs): Call add_target here.
9989 * procfs.h (struct target_ops): Remove forward declaration.
9990 (procfs_target): Remove declaration.
9991 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9992
9993 2018-05-02 Pedro Alves <palves@redhat.com>
9994
9995 * procfs.c (procfs_stopped_by_watchpoint)
9996 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9997 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9998 Forward declare.
9999 (procfs_use_watchpoints): Delete, move contents...
10000 (procfs_target): ... here.
10001 * procfs.h (procfs_use_watchpoints): Delete declaration.
10002 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10003 procfs_use_watchpoints.
10004 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10005 procfs_use_watchpoints.
10006
10007 2018-05-02 Tom Tromey <tom@tromey.com>
10008
10009 PR python/20084:
10010 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10011 and var_zuinteger_unlimited.
10012 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10013 and PARAM_ZUINTEGER_UNLIMITED.
10014 (set_parameter_value): Handle var_zuinteger and
10015 var_zuinteger_unlimited.
10016 (add_setshow_generic): Likewise.
10017 (parmpy_init): Likewise.
10018
10019 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
10020
10021 PR rust/23124
10022 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10023 pointer is not null before dereferencing it.
10024
10025 2018-04-30 Tom Tromey <tom@tromey.com>
10026
10027 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10028 is_mi_like_p.
10029
10030 2018-04-30 Tom Tromey <tom@tromey.com>
10031
10032 * breakpoint.c (mention): Remove use of is_mi_like_p.
10033 (print_mention_ranged_breakpoint): Likewise.
10034 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10035 of is_mi_like_p.
10036
10037 2018-04-30 Tom Tromey <tom@tromey.com>
10038
10039 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10040
10041 2018-04-30 Tom Tromey <tom@tromey.com>
10042
10043 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10044 (info_spu_event_command): Remove some uses of is_mi_like_p.
10045
10046 2018-04-30 Tom Tromey <tom@tromey.com>
10047
10048 * python/py-framefilter.c (py_print_single_arg)
10049 (enumerate_locals, py_print_args, py_print_frame): Remove some
10050 uses of is_mi_like_p.
10051
10052 2018-04-30 Tom Tromey <tom@tromey.com>
10053
10054 * ui-out.c: Update.
10055 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10056 * ui-out.h (ui_out::is_mi_like_p): Now const.
10057 (ui_out::do_is_mi_like_p): Now const.
10058 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10059
10060 2018-04-30 Tom Tromey <tom@tromey.com>
10061
10062 * varobj.c (varobj_set_visualizer): Use new_reference.
10063 * python/python.c (gdbpy_decode_line): Use new_reference.
10064 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10065 new_reference.
10066
10067 2018-04-30 Tom Tromey <tom@tromey.com>
10068
10069 * varobj.c (install_new_value): Use new_reference.
10070 * value.h (value_incref): Return void. Swap intro comment with
10071 value_decref.
10072 * value.c (set_value_parent): Use new_reference.
10073 (value_incref): Return void. Update intro comment.
10074 (release_value): Use new_reference.
10075 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10076
10077 2018-04-30 Tom Tromey <tom@tromey.com>
10078
10079 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10080 * gdb_bfd.h (new_bfd_ref): Remove.
10081 (gdb_bfd_open): Update comment.
10082 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10083 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10084 (gdb_bfd_fdopenr): Use new_reference.
10085 * exec.c (exec_file_attach): Use new_reference.
10086
10087 2018-04-30 Tom Tromey <tom@tromey.com>
10088
10089 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10090 method.
10091
10092 2018-04-30 Tom Tromey <tom@tromey.com>
10093
10094 * jit.c (jit_read_code_entry): Use type_align.
10095 * i386-tdep.c (i386_gdbarch_init): Don't call
10096 set_gdbarch_long_long_align_bit.
10097 * gdbarch.sh: Remove long_long_align_bit.
10098 * gdbarch.c, gdbarch.h: Rebuild.
10099 * arc-tdep.c (arc_type_align): New function.
10100 (arc_gdbarch_init): Use arc_type_align. Don't call
10101 set_gdbarch_long_long_align_bit.
10102
10103 2018-04-30 Tom Tromey <tom@tromey.com>
10104
10105 * rust-lang.c (rust_type_alignment): Remove.
10106 (rust_composite_type): Use type_align.
10107
10108 2018-04-30 Tom Tromey <tom@tromey.com>
10109
10110 * NEWS: Mention Type.align.
10111 * python/py-type.c (typy_get_alignof): New function.
10112 (type_object_getset): Add "alignof".
10113
10114 2018-04-30 Tom Tromey <tom@tromey.com>
10115
10116 PR exp/17095:
10117 * NEWS: Update.
10118 * std-operator.def (UNOP_ALIGNOF): New operator.
10119 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10120 New.
10121 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10122 * c-lang.c (c_op_print_tab): Add alignof.
10123 * c-exp.y (ALIGNOF): New token.
10124 (exp): Add "ALIGNOF" production.
10125 (ident_tokens): Add _Alignof and alignof.
10126
10127 2018-04-30 Tom Tromey <tom@tromey.com>
10128
10129 * i386-tdep.c (i386_type_align): New function.
10130 (i386_gdbarch_init): Update.
10131 * gdbarch.sh (type_align): New method.
10132 * gdbarch.c, gdbarch.h: Rebuild.
10133 * arch-utils.h (default_type_align): Declare.
10134 * arch-utils.c (default_type_align): New function.
10135 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10136 (struct type) <align_log2>: New field.
10137 <instance_flags>: Now a bitfield.
10138 (TYPE_RAW_ALIGN): New macro.
10139 (type_align, type_raw_align, set_type_align): Declare.
10140 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10141 functions.
10142 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10143 (get_alignment, maybe_set_alignment): New functions.
10144 (read_structure_type, read_enumeration_type, read_array_type)
10145 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10146 (read_subrange_type, read_base_type): Set type alignment.
10147
10148 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10149
10150 * dwarf2read.c (read_index_from_section): Use bool.
10151
10152 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10153
10154 PR gdb/22950
10155 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10156 with #ifdef.
10157
10158 2018-04-29 John Reiser <jreiser@BitWagon.com>
10159
10160 PR build/22873
10161 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10162 last step, and do it atomically.
10163
10164 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10165
10166 * compile/compile-c-types.c (convert_int, convert_float):
10167 Update for C FE v1.
10168
10169 2018-04-27 Tom Tromey <tom@tromey.com>
10170
10171 PR rust/22545:
10172 * rust-lang.c (rust_inclusive_range_type_p): New function.
10173 (rust_range): Handle inclusive ranges.
10174 (rust_compute_range): Likewise.
10175 * rust-exp.y (struct rust_op) <inclusive>: New field.
10176 (DOTDOTEQ): New constant.
10177 (range_expr): Add "..=" productions.
10178 (operator_tokens): Add "..=" token.
10179 (ast_range): Add "inclusive" parameter.
10180 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10181 ranges.
10182 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10183 bounds values.
10184 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10185 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10186 Update comments.
10187 * expprint.c (print_subexp_standard): Handle new bounds values.
10188 (dump_subexp_body_standard): Likewise.
10189
10190 2018-04-27 Tom Tromey <tom@tromey.com>
10191
10192 * configure: Rebuild.
10193 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10194 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10195 "OVERRIDE".
10196 (class symbol_needs_eval_context): Likewise.
10197 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10198 (mock_mapped_index::symbol_name_at): Use "override". Remove
10199 "virtual".
10200 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10201 "override".
10202 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10203 * aarch64-tdep.c (instruction_reader::read): Use "override".
10204 (instruction_reader_test::read): Likewise.
10205 * arm-tdep.c (instruction_reader::read): Use "override".
10206 (instruction_reader_thumb::read): Likewise.
10207
10208 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10209
10210 PR remote/9665
10211 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10212 instead of remote_send.
10213 (remote_send): Remove.
10214
10215 2018-04-26 Pedro Alves <palves@redhat.com>
10216
10217 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10218 find_function_start_sal instead of find_pc_line.
10219
10220 2018-04-26 Pedro Alves <palves@redhat.com>
10221
10222 * breakpoint.c (set_breakpoint_location_function): Handle
10223 mst_data_gnu_ifunc.
10224 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10225 * elfread.c (elf_symtab_read): Give data symbols with
10226 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10227 (elf_rel_plt_read): Update comment.
10228 * linespec.c (convert_linespec_to_sals): Handle
10229 mst_data_gnu_ifunc.
10230 (minsym_found): Handle mst_data_gnu_ifunc.
10231 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10232 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10233 * parse.c (find_minsym_type_and_address): Handle
10234 mst_data_gnu_ifunc.
10235 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10236 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10237 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10238 comment.
10239 <mst_data_gnu_ifunc>: New enumerator.
10240
10241 2018-04-26 Pedro Alves <palves@redhat.com>
10242
10243 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10244 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10245 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10246 Handle it.
10247 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10248 (lookup_minimal_symbol_by_pc): Adjust.
10249 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10250 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10251 * minsyms.h (lookup_msym_prefer): New enum.
10252 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10253 parameter by a lookup_msym_prefer parameter.
10254
10255 2018-04-26 Pedro Alves <palves@redhat.com>
10256
10257 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10258 ends in "@plt" instead of looking at the symbol's section.
10259
10260 2018-04-26 Pedro Alves <palves@redhat.com>
10261
10262 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10263 all references.
10264 (find_pc_partial_function_gnu_ifunc): Rename to ...
10265 (find_pc_partial_function): ... this, and remove references to
10266 'is_gnu_ifunc_p'.
10267 (find_pc_partial_function): Delete old implementation.
10268 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10269
10270 2018-04-26 Pedro Alves <palves@redhat.com>
10271
10272 * linespec.c (struct bound_minimal_symbol_search_key): New.
10273 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10274 skip first line if we found a GNU ifunc minimal symbol by name.
10275 (compare_msymbols): Change parameters to work with a destructured
10276 lhs minsym.
10277 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10278 functions.
10279
10280 2018-04-26 Pedro Alves <palves@redhat.com>
10281
10282 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10283 ifunc targets here. Instead, if we have an ifunc minsym, use its
10284 address/name.
10285 (add_location_to_breakpoint): Store the minsym and the objfile in
10286 the breakpoint location.
10287 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10288 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10289 Record the minsym in the sal.
10290 * symtab.h (symtab_and_line) <msymbol>: New field.
10291
10292 2018-04-26 Pedro Alves <palves@redhat.com>
10293
10294 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10295 unless we actually resolved the ifunc.
10296
10297 2018-04-26 Pedro Alves <palves@redhat.com>
10298
10299 * c-exp.y (variable production): Prefer ifunc minsyms over
10300 regular function symbols.
10301 * symtab.c (find_gnu_ifunc): New function.
10302 * minsyms.h (lookup_msym_prefer): New enum.
10303 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10304 parameter by a lookup_msym_prefer parameter.
10305 * symtab.h (find_gnu_ifunc): New declaration.
10306
10307 2018-04-26 Pedro Alves <palves@redhat.com>
10308
10309 * blockframe.c (find_gnu_ifunc_target_type): New function.
10310 (find_function_type): New.
10311 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10312 return a value with a memory address.
10313 (eval_call): For calls to GNU ifunc functions, try to find the
10314 type of the target function from the type that the resolver
10315 returns.
10316 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10317 symbols.
10318 * infcall.c (find_function_return_type): Delete.
10319 (find_function_addr): Add 'function_type' parameter. For calls to
10320 GNU ifunc functions, try to find the type of the target function
10321 from the type that the resolver returns, and return it via
10322 FUNCTION_TYPE.
10323 (call_function_by_hand_dummy): Adjust to use the function type
10324 returned by find_function_addr.
10325 (find_function_addr): Add 'function_type' parameter and move
10326 description here.
10327 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10328 declarations.
10329
10330 2018-04-26 Pedro Alves <palves@redhat.com>
10331
10332 * c-exp.y (variable production): Skip finding an alias for ifunc
10333 symbols.
10334
10335 2018-04-26 Pedro Alves <palves@redhat.com>
10336
10337 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10338
10339 2018-04-25 Pedro Alves <palves@redhat.com>
10340
10341 * infcmd.c (kill_command): Print the pid as string, not the whole
10342 thread's ptid. Add comment. s/has been killed/killed/ in output
10343 message.
10344 * remote.c (remote_detach_1): Print the pid as string, not the
10345 whole thread's ptid.
10346
10347 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10348 Sergio Durigan Junior <sergiodj@redhat.com>
10349 Pedro Alves <palves@redhat.com>
10350
10351 * infcmd.c (kill_command): Print message when inferior has
10352 been killed.
10353 * inferior.c (print_inferior_events): Remove 'static'. Set as
10354 '1'.
10355 (add_inferior): Improve message printed when
10356 'print_inferior_events' is on.
10357 (exit_inferior): Remove message printed when
10358 'print_inferior_events' is on.
10359 (detach_inferior): Improve message printed when
10360 'print_inferior_events' is on.
10361 (initialize_inferiors): Use 'add_inferior_silent' to set
10362 'current_inferior_'.
10363 * inferior.h (print_inferior_events): Declare here as
10364 'extern'.
10365 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10366 '[Detaching...]' messages when 'print_inferior_events' is on.
10367 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10368 as prefix/suffix for messages. Remove periods. Fix erroneous
10369 'Detaching after fork from child...', replace it by '... from
10370 parent...'.
10371 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10372 prefix/suffix when printing 'Detaching...' messages. Print
10373 them when 'print_inferior_events' is on.
10374 * remote.c (remote_detach_1): Print message when detaching
10375 from inferior and '!is_fork_parent'.
10376
10377 2018-04-24 Tom Tromey <tom@tromey.com>
10378
10379 * cli-out.h: Reindent.
10380
10381 2018-04-24 Tom Tromey <tom@tromey.com>
10382
10383 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10384 (cli_ui_out::do_field_string): Use fputs_filtered.
10385 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10386
10387 2018-04-23 Tom Tromey <tom@tromey.com>
10388
10389 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10390 gdb::unique_xmalloc_ptr.
10391
10392 2018-04-23 Tom Tromey <tom@tromey.com>
10393
10394 * configure: Rebuild.
10395
10396 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10397
10398 PR gdb/23095
10399 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10400 prepare_for_testing. Set normal_bp to r_debug_state if target
10401 is bsd.
10402
10403 2018-04-21 Pedro Alves <palves@redhat.com>
10404 Rajendra SY <rajendra.sy@gmail.com>
10405
10406 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10407 * remote.c (extended_remote_attach): In all-stop mode, mark the
10408 thread as executing.
10409
10410 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10411
10412 * thread.c (thread_apply_all_command): Fix comment.
10413 (thread_command): Fix comment.
10414
10415 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10416
10417 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10418 parameter.
10419 * features/aarch64-core.c (create_feature_aarch64_core):
10420 Regenerate.
10421 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10422 Likewise.
10423 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10424 Likewise.
10425 * features/i386/32bit-avx512.c
10426 (create_feature_i386_32bit_avx512): Likewise.
10427 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10428 Likewise.
10429 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10430 Likewise.
10431 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10432 Likewise.
10433 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10434 Likewise.
10435 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10436 Likewise.
10437 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10438 Likewise.
10439 * features/i386/64bit-avx512.c
10440 (create_feature_i386_64bit_avx512): Likewise.
10441 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10442 Likewise.
10443 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10444 Likewise.
10445 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10446 Likewise.
10447 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10448 Likewise.
10449 * features/i386/64bit-segments.c
10450 (create_feature_i386_64bit_segments): Likewise.
10451 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10452 Likewise.
10453 * features/i386/x32-core.c
10454 (create_feature_i386_x32_core): Likewise.
10455 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10456 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10457 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10458 * target-descriptions.c: In generated code, don't pass xml
10459 filename.
10460
10461 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10462
10463 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10464 (print_xml_feature::visit_post): Likewise.
10465 (print_xml_feature::visit): Likewise.
10466 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10467 (print_xml_feature): Add new class.
10468 * regformats/regdat.sh: Null xmltarget on feature targets.
10469 * target-descriptions.c (struct target_desc): Add xmltarget.
10470 (maintenance_check_tdesc_xml_convert): Add unittest function.
10471 (tdesc_get_features_xml): Add function to get xml.
10472 (maintenance_check_xml_descriptions): Test xml generation.
10473 * xml-tdesc.c (string_read_description_xml): Add function.
10474 * xml-tdesc.h (string_read_description_xml): Add declaration.
10475
10476 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10477
10478 * features/Makefile: Add feature marker to targets with new style
10479 target descriptions.
10480 * regformats/aarch64.dat: Regenerate.
10481 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10482 * regformats/i386/amd64-avx-linux.dat: Likewise.
10483 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10484 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10485 * regformats/i386/amd64-linux.dat: Likewise.
10486 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10487 * regformats/i386/amd64.dat: Likewise.
10488 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10489 * regformats/i386/i386-avx-linux.dat: Likewise.
10490 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10491 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10492 * regformats/i386/i386-linux.dat: Likewise.
10493 * regformats/i386/i386-mmx-linux.dat: Likewise.
10494 * regformats/i386/i386-mpx-linux.dat: Likewise.
10495 * regformats/i386/i386.dat: Likewise.
10496 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10497 * regformats/i386/x32-avx-linux.dat: Likewise.
10498 * regformats/i386/x32-linux.dat: Likewise.
10499 * regformats/tic6x-c62x-linux.dat: Likewise.
10500 * regformats/tic6x-c64x-linux.dat: Likewise.
10501 * regformats/tic6x-c64xp-linux.dat: Likewise.
10502 * regformats/regdat.sh: Parse feature marker.
10503
10504 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10505
10506 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10507 (tdesc_osabi_name): Likewise.
10508 * target-descriptions.c (tdesc_architecture_name): Add new
10509 function.
10510 (tdesc_osabi_name): Likewise.
10511
10512 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10513
10514 * common/tdesc.c (tdesc_predefined_type): Move to here.
10515 (tdesc_named_type): Likewise.
10516 (tdesc_create_vector): Likewise.
10517 (tdesc_create_struct): Likewise.
10518 (tdesc_set_struct_size): Likewise.
10519 (tdesc_create_union): Likewise.
10520 (tdesc_create_flags): Likewise.
10521 (tdesc_create_enum): Likewise.
10522 (tdesc_add_field): Likewise.
10523 (tdesc_add_typed_bitfield): Likewise.
10524 (tdesc_add_bitfield): Likewise.
10525 (tdesc_add_flag): Likewise.
10526 (tdesc_add_enum_value): Likewise.
10527 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10528 (struct tdesc_type_vector): Likewise.
10529 (struct tdesc_type_field): Likewise.
10530 (struct tdesc_type_with_fields): Likewise.
10531 (tdesc_create_enum): Add declaration.
10532 (tdesc_add_typed_bitfield): Likewise.
10533 (tdesc_add_enum_value): Likewise.
10534 * target-descriptions.c (tdesc_type_field): Move from here.
10535 (tdesc_type_builtin): Likewise.
10536 (tdesc_type_vector): Likewise.
10537 (tdesc_type_with_fields): Likewise.
10538 (tdesc_predefined_types): Likewise.
10539 (tdesc_named_type): Likewise.
10540 (tdesc_create_vector): Likewise.
10541 (tdesc_create_struct): Likewise.
10542 (tdesc_set_struct_size): Likewise.
10543 (tdesc_create_union): Likewise.
10544 (tdesc_create_flags): Likewise.
10545 (tdesc_create_enum): Likewise.
10546 (tdesc_add_field): Likewise.
10547 (tdesc_add_typed_bitfield): Likewise.
10548 (tdesc_add_bitfield): Likewise.
10549 (tdesc_add_flag): Likewise.
10550 (tdesc_add_enum_value): Likewise.
10551 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10552 (tdesc_add_typed_bitfield): Likewise.
10553 (tdesc_add_enum_value): Likewise.
10554
10555 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10556
10557 * common/tdesc.c (tdesc_feature::accept): Move to here.
10558 (tdesc_feature::operator==): Likewise.
10559 (tdesc_create_reg): Likewise.
10560 * common/tdesc.h (tdesc_type_kind): Likewise.
10561 (struct tdesc_type): Likewise.
10562 (struct tdesc_feature): Likewise.
10563 * regformats/regdat.sh: Create a feature.
10564 * target-descriptions.c (tdesc_type_kind): Move from here.
10565 (tdesc_type): Likewise.
10566 (tdesc_type_up): Likewise.
10567 (tdesc_feature): Likewise.
10568 (tdesc_create_reg): Likewise.
10569
10570 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10571
10572 * Makefile.in: Add arch/tdesc.c
10573 * common/tdesc.c: New file.
10574 * common/tdesc.h (tdesc_element_visitor): Move to here.
10575 (tdesc_element): Likewise.
10576 (tdesc_reg): Likewise.
10577 (tdesc_reg_up): Likewise.
10578 * regformats/regdef.h (reg): Add offset to constructors.
10579 * target-descriptions.c (tdesc_element_visitor): Move from here.
10580 (tdesc_element): Likewise.
10581 (tdesc_reg): Likewise.
10582 (tdesc_reg_up): Likewise.
10583
10584 2018-04-17 Tom Tromey <tom@tromey.com>
10585
10586 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10587 discriminant field.
10588
10589 2018-04-17 Tom Tromey <tom@tromey.com>
10590
10591 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10592
10593 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10594
10595 * symtab.c (print_symbol_info): Skip printing filename and line
10596 number when `last' is NULL.
10597 (symtab_symbol_info): Use empty string instead of NULL for first
10598 invocation of print_symbol_info.
10599 (rbreak_command): Pass NULL to `last' parameter of
10600 print_symbol_info.
10601
10602 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10603
10604 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10605 instead of nullptr.
10606
10607 2018-04-16 Pedro Alves <palves@redhat.com>
10608
10609 * MAINTAINERS (sh): Remove.
10610 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10611 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10612 (ALLDEPFILES): Remove sh64-tdep.c.
10613 * NEWS: Mentions that support for SH-5/SH64 is removed.
10614 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10615 (sh*-*-openbsd*): Ditto.
10616 (sh64-*-elf*): Remove.
10617 (sh*): Remove.
10618 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10619 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10620 * sh-tdep.c: No longer include "sh64-tdep.h".
10621 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10622 * sh64-tdep.c, sh64-tdep.h: Remove files.
10623
10624 2018-04-16 Pedro Alves <palves@redhat.com>
10625
10626 * MAINTAINERS: Remove m88k.
10627 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10628 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10629 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10630 * NEWS: Mention that support for m88k was removed.
10631 * configure.host (m88*-*-*): Remove support.
10632 * configure.nat (m88k-*-*): Remove support.
10633 * configure.tgt (m88*-*-openbsd*): Remove.
10634 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10635
10636 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10637
10638 * configure.tgt (x86_tobjs): New variable.
10639 (amd64_tobjs, i386_tobjs): Use it.
10640
10641 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10642
10643 * symtab.c (print_symbol_info): Precede the symbol definition by
10644 the line number when available.
10645 * NEWS: Advertise this enhancement.
10646
10647 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10648
10649 * NEWS (New options): announce set/show record btrace cpu.
10650 * btrace.c: Include record-btrace.h.
10651 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10652 the vendor is unknown.
10653 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10654 Maybe overwrite the btrace configuration's cpu.
10655 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10656 (btrace_fetch): Add cpu parameter. Update callers.
10657 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10658 Maybe overwrite the btrace configuration's cpu. Skip enabling
10659 errata workarounds if the vendor is unknown.
10660 * python/py-record-btrace.c: Include record-btrace.h.
10661 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10662 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10663 * record-btrace.c (record_btrace_cpu_state_kind): New.
10664 (record_btrace_cpu): New.
10665 (set_record_btrace_cpu_cmdlist): New.
10666 (record_btrace_get_cpu): New.
10667 (require_btrace_thread, record_btrace_info)
10668 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10669 (cmd_set_record_btrace_cpu_none): New.
10670 (cmd_set_record_btrace_cpu_auto): New.
10671 (cmd_set_record_btrace_cpu): New.
10672 (cmd_show_record_btrace_cpu): New.
10673 (_initialize_record_btrace): Initialize set/show record btrace cpu
10674 commands.
10675 * record-btrace.h (record_btrace_get_cpu): New.
10676
10677 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10678
10679 * record.c (set_record_command): Fix typo in message.
10680
10681 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10682
10683 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10684
10685 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10686
10687 * infrun.c (process_event_stop_test): Call
10688 gdbarch_in_indirect_branch_thunk.
10689 * gdbarch.sh (in_indirect_branch_thunk): New.
10690 * gdbarch.c: Regenerated.
10691 * gdbarch.h: Regenerated.
10692 * x86-tdep.h: New.
10693 * x86-tdep.c: New.
10694 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10695 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10696 (ALLDEPFILES): Add x86-tdep.c.
10697 * arch-utils.h (default_in_indirect_branch_thunk): New.
10698 * arch-utils.c (default_in_indirect_branch_thunk): New.
10699 * i386-tdep: Include x86-tdep.h.
10700 (i386_in_indirect_branch_thunk): New.
10701 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10702 function.
10703 * amd64-tdep: Include x86-tdep.h.
10704 (amd64_in_indirect_branch_thunk): New.
10705 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10706
10707 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10708
10709 PR gdb/23053
10710 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10711 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10712 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10713 regression.
10714
10715 2018-04-12 Tom Tromey <tom@tromey.com>
10716
10717 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10718 (rust_evaluate_subexp): Likewise.
10719
10720 2018-04-12 Pedro Alves <palves@redhat.com>
10721
10722 * procfs.c (procfs_detach): Make forward declaration's prototype
10723 match definition's protototype.
10724 (proc_get_LDT_entry): Remove stale do_cleanups call.
10725
10726 2018-04-12 Pedro Alves <palves@redhat.com>
10727
10728 * target.h (target_ops::to_has_exited): Delete.
10729 (target_has_exited): Delete.
10730 * target-delegates.c: Regenerate.
10731
10732 2018-04-11 Pedro Alves <palves@redhat.com>
10733
10734 * target.c (fileio_fh_t::t): Add comment.
10735 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10736 (target_fileio_close): Handle a NULL target.
10737 (invalidate_fileio_fh): New.
10738 (target_close): Call it.
10739 * remote.c (remote_hostio_send_command): No longer check whether
10740 remote_desc is open.
10741
10742 2018-04-11 Pedro Alves <palves@redhat.com>
10743
10744 * target.c (fileio_fh_t): Make it a named struct instead of a
10745 typedef.
10746 (fileio_fh_t::is_closed): New method.
10747 (DEF_VEC_O (fileio_fh_t)): Remove.
10748 (fileio_fhandles): Now a std::vector.
10749 (is_closed_fileio_fh): Delete.
10750 (acquire_fileio_fd): Adjust. Rename parameters.
10751 (release_fileio_fd): Adjust.
10752 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10753 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10754 (target_fileio_close): Adjust.
10755
10756 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10757
10758 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10759 index.
10760
10761 2018-04-10 Pedro Alves <palves@redhat.com>
10762
10763 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10764 (scoped_finish_thread_state): New class.
10765 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10766 cleanup.
10767 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10768 (fetch_inferior_event, normal_stop): Likewise.
10769 * thread.c (finish_thread_state_cleanup): Delete.
10770
10771 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10772 Pedro Alves <palves@redhat.com>
10773
10774 * value.c: Include "selftest.h" and "common/array-view.h".
10775 (struct range) <operator ==>: New.
10776 (test_ranges_contain): New.
10777 (check_ranges_vector): New.
10778 (test_insert_into_bit_range_vector): New.
10779 (_initialize_values): Register selftests.
10780 * common/array-view.h (operator==, operator!=): New.
10781
10782 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10783
10784 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10785 an iterator.
10786 * inline-frame.c: Include <algorithm>.
10787 (struct inline_state): Add constructor.
10788 (inline_state_s): Remove.
10789 (DEF_VEC_O(inline_state_s)): Remove.
10790 (inline_states): Change type to std::vector.
10791 (find_inline_frame_state): Adjust to std::vector.
10792 (allocate_inline_frame_state): Remove.
10793 (clear_inline_frame_state): Adjust to std::vector.
10794 (skip_inline_frames): Adjust to std::vector.
10795
10796 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10797
10798 * tracepoint.h (struct trace_state_variable): Add constructor.
10799 <name>: Change type to std::string.
10800 * tracepoint.c (tsv_s): Remove.
10801 (DEF_VEC_O(tsv_s)): Remove.
10802 (tvariables): Change to std::vector.
10803 (create_trace_state_variable): Adjust to std::vector.
10804 (find_trace_state_variable): Likewise.
10805 (find_trace_state_variable_by_number): Likewise.
10806 (delete_trace_state_variable): Likewise.
10807 (trace_variable_command): Adjust to std::string.
10808 (delete_trace_variable_command): Likewise.
10809 (tvariables_info_1): Adjust to std::vector.
10810 (save_trace_state_variables): Likewise.
10811 (start_tracing): Likewise.
10812 (merge_uploaded_trace_state_variables): Adjust to std::vector
10813 and std::string.
10814 * target.h (struct target_ops)
10815 <to_download_trace_state_variable>: Pass reference to
10816 trace_state_variable.
10817 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10818 * target-delegates.c: Re-generate.
10819 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10820 (mi_tsv_deleted): Likewise.
10821 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10822 * remote.c (remote_download_trace_state_variable): Change
10823 pointer to reference and adjust.
10824 * make-target-delegates (parse_argtypes): Handle references.
10825 (write_function_header): Likewise.
10826 (munge_type): Likewise.
10827
10828 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10829
10830 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10831 string_view-selftests.c.
10832 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10833 testsuite.
10834 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10835 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10836 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10837 * unittests/basic_string_view/element_access/char/1.cc:
10838 Likewise.
10839 * unittests/basic_string_view/element_access/char/empty.cc:
10840 Likewise.
10841 * unittests/basic_string_view/element_access/char/front_back.cc:
10842 Likewise.
10843 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10844 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10845 Likewise.
10846 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10847 Likewise.
10848 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10849 Likewise.
10850 * unittests/basic_string_view/operations/compare/char/1.cc:
10851 Likewise.
10852 * unittests/basic_string_view/operations/compare/char/13650.cc:
10853 Likewise.
10854 * unittests/basic_string_view/operations/copy/char/1.cc:
10855 Likewise.
10856 * unittests/basic_string_view/operations/data/char/1.cc:
10857 Likewise.
10858 * unittests/basic_string_view/operations/find/char/1.cc:
10859 Likewise.
10860 * unittests/basic_string_view/operations/find/char/2.cc:
10861 Likewise.
10862 * unittests/basic_string_view/operations/find/char/3.cc:
10863 Likewise.
10864 * unittests/basic_string_view/operations/find/char/4.cc:
10865 Likewise.
10866 * unittests/basic_string_view/operations/rfind/char/1.cc:
10867 Likewise.
10868 * unittests/basic_string_view/operations/rfind/char/2.cc:
10869 Likewise.
10870 * unittests/basic_string_view/operations/rfind/char/3.cc:
10871 Likewise.
10872 * unittests/basic_string_view/operations/substr/char/1.cc:
10873 Likewise.
10874 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10875 * unittests/string_view-selftests.c: New file.
10876
10877 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10878
10879 * unittests/basic_string_view/capacity/1.cc: New file.
10880 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10881 * unittests/basic_string_view/cons/char/1.cc: New file.
10882 * unittests/basic_string_view/cons/char/2.cc: New file.
10883 * unittests/basic_string_view/cons/char/3.cc: New file.
10884 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10885 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10886 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10887 * unittests/basic_string_view/element_access/char/1.cc: New file.
10888 * unittests/basic_string_view/element_access/char/2.cc: New file.
10889 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10890 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10891 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10892 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10893 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10894 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10895 * unittests/basic_string_view/include.cc: New file.
10896 * unittests/basic_string_view/inserters/char/1.cc: New file.
10897 * unittests/basic_string_view/inserters/char/2.cc: New file.
10898 * unittests/basic_string_view/inserters/char/3.cc: New file.
10899 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10900 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10901 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10902 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10903 * unittests/basic_string_view/literals/types.cc: New file.
10904 * unittests/basic_string_view/literals/values.cc: New file.
10905 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10906 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10907 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10908 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10909 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10910 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10911 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10912 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10913 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10914 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10915 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10916 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10917 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10918 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10919 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10920 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10921 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10922 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10923 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10924 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10925 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10926 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10927 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10928 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10929 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10930 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10931 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10932 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10933 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10934 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10935 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10936 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10937 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10938 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10939 * unittests/basic_string_view/operators/char/2.cc: New file.
10940 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10941 * unittests/basic_string_view/range_access/char/1.cc: New file.
10942 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10943 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10944 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10945 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10946 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10947 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10948 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10949 * unittests/basic_string_view/typedefs.cc: New file.
10950 * unittests/basic_string_view/types/1.cc: New file.
10951
10952 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10953
10954 * common/gdb_string_view.h: Remove libstdc++ implementation
10955 details, adjust to gdb reality.
10956 * common/gdb_string_view.tcc: Likewise.
10957 * cli/cli-script.c (struct string_view): Remove.
10958 (user_args) <m_args>: Change element type to gdb::string_view.
10959 (user_args::insert_args): Adjust.
10960
10961 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10962
10963 * common/gdb_string_view.h: New file.
10964 * common/gdb_string_view.tcc: New file.
10965
10966 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10967
10968 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10969 * configure: Re-generate.
10970
10971 2018-04-09 Pedro Alves <palves@redhat.com>
10972
10973 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10974 (set_target_gdbarch): Call
10975 gdb::observers::architecture_changed.notify instead of
10976 observer_notify_architecture_changed.
10977
10978 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10979
10980 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10981 (do_restore_current_traceframe_cleanup): Remove.
10982 (restore_current_traceframe_cleanup_dtor): Remove.
10983 (make_cleanup_restore_current_traceframe): Remove.
10984 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10985 New.
10986 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10987 * infrun.c (fetch_inferior_event): Use
10988 scoped_restore_current_traceframe.
10989
10990 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10991
10992 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10993 Remove.
10994 <n_allocated_type_units>: Remove.
10995 <all_type_units>: Change to std::vector.
10996 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10997 to std::vector change.
10998 (dwarf2_per_objfile::get_cutu): Likewise.
10999 (dwarf2_per_objfile::get_tu): Likewise.
11000 (create_signatured_type_table_from_index): Likewise.
11001 (create_signatured_type_table_from_debug_names): Likewise.
11002 (dw2_symtab_iter_next): Likewise.
11003 (dw2_print_stats): Likewise.
11004 (dw2_expand_all_symtabs): Likewise.
11005 (dw2_expand_marked_cus): Likewise.
11006 (dw2_debug_names_iterator::next): Likewise.
11007 (dwarf2_initialize_objfile): Likewise.
11008 (add_signatured_type_cu_to_table): Likewise.
11009 (create_all_type_units): Likewise.
11010 (add_type_unit): Likewise.
11011 (struct tu_abbrev_offset): Add constructor.
11012 (build_type_psymtabs_1): Adjust to std::vector change.
11013 (print_tu_stats): Likewise.
11014 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11015 (write_debug_names): Likewise.
11016
11017 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11018
11019 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11020 Make an std::vector.
11021 <n_comp_units>: Remove.
11022 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11023 to std::vector change.
11024 (dwarf2_per_objfile::get_cutu): Likewise.
11025 (dwarf2_per_objfile::get_cu): Likewise.
11026 (create_cus_from_index): Likewise.
11027 (create_addrmap_from_index): Likewise.
11028 (create_addrmap_from_aranges): Likewise.
11029 (dwarf2_read_index): Likewise.
11030 (dw2_find_last_source_symtab): Likewise.
11031 (dw2_map_symtabs_matching_filename): Likewise.
11032 (dw2_symtab_iter_next): Likewise.
11033 (dw2_print_stats): Likewise.
11034 (dw2_expand_all_symtabs): Likewise.
11035 (dw2_expand_symtabs_with_fullname): Likewise.
11036 (dw2_expand_marked_cus): Likewise.
11037 (dw2_map_symbol_filenames): Likewise.
11038 (create_cus_from_debug_names): Likewise.
11039 (dwarf2_read_debug_names): Likewise.
11040 (dw2_debug_names_iterator::next): Likewise.
11041 (dwarf2_initialize_objfile): Likewise.
11042 (set_partial_user): Likewise.
11043 (dwarf2_build_psymtabs_hard): Likewise.
11044 (read_comp_units_from_section): Remove arguments, adjust to
11045 std::vector change.
11046 (create_all_comp_units): Adjust to std::vector and
11047 read_comp_units_from_section changes.
11048 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11049 change.
11050 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11051 (psyms_seen_size): Likewise.
11052 (write_gdbindex): Likewise.
11053 (write_debug_names): Likewise.
11054
11055 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11056
11057 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11058 with dwarf2_per_objfile.
11059 (create_cus_from_index): Likewise.
11060 (create_signatured_type_table_from_index): Likewise.
11061 (dwarf2_read_index): Likewise.
11062 (dwarf2_initialize_objfile): Likewise.
11063 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11064 per_cu rather than get_dwarf2_per_objfile.
11065
11066 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11067
11068 * dwarf2read.h (struct signatured_type): Forward declare.
11069 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11070 New methods.
11071 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11072 (dw2_get_cutu): ...this.
11073 (dwarf2_per_objfile::get_cu): Rename from...
11074 (dw2_get_cu): ...this.
11075 (dwarf2_per_objfile::get_tu): New.
11076 (create_addrmap_from_index): Adjust.
11077 (create_addrmap_from_aranges): Adjust.
11078 (dw2_find_last_source_symtab): Adjust.
11079 (dw2_map_symtabs_matching_filename): Adjust.
11080 (dw2_symtab_iter_next): Adjust.
11081 (dw2_print_stats): Adjust.
11082 (dw2_expand_all_symtabs): Adjust.
11083 (dw2_expand_symtabs_with_fullname): Adjust.
11084 (dw2_expand_marked_cus): Adjust.
11085 (dw_expand_symtabs_matching_file_matcher): Adjust.
11086 (dw2_map_symbol_filenames): Adjust.
11087 (dw2_debug_names_iterator::next): Adjust.
11088 (dwarf2_initialize_objfile): Adjust.
11089 (set_partial_user): Adjust.
11090 (dwarf2_build_psymtabs_hard): Adjust.
11091
11092 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11093
11094 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11095 Remove unused variables.
11096 (dw2_map_symtabs_matching_filename): Likewise.
11097 (dwarf2_record_block_ranges): Likewise.
11098 (dwarf2_read_addr_index): Likewise.
11099 (follow_die_offset): Likewise.
11100
11101 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11102
11103 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11104 to symbol_file_add_main.
11105
11106 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11107
11108 PR mi/22299
11109 * mi/mi-console.c (do_fputc_async_safe): New.
11110 (mi_console_file::write_async_safe): New.
11111 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11112 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11113 New.
11114 * ui-file.c (ui_file::putstrn): Adjust call to
11115 fputstrn_unfiltered.
11116 * utils.c (printchar): Replace do_fputs and do_fprintf
11117 parameters by do_fputc.
11118 (fputstr_filtered): Adjust call to printchar.
11119 (fputstr_unfiltered): Likewise.
11120 (fputstrn_filtered): Likewise.
11121 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11122 printchar.
11123 * utils.h (do_fputc_ftype): New typedef.
11124 (fputstrn_unfiltered): Add do_fputc parameter.
11125
11126 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11127
11128 * regformats/i386/i386-avx.dat: Remove.
11129
11130 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11131
11132 PR gdb/22979
11133 * amd64-tdep.c (amd64_none_init_abi): New function.
11134 (amd64_x32_none_init_abi): New function.
11135 (_initialize_amd64_tdep): Register handlers for x86-64 and
11136 x64_32 with GDB_OSABI_NONE.
11137 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11138 GDB_OSABI_NONE osabi.
11139
11140 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11141
11142 PR gdb/22980
11143 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11144 GDB_OSABI_NONE.
11145 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11146 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11147
11148 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11149
11150 * common/byte-vector.h (char_vector): New type.
11151 * target.h (target_read_alloc): Return
11152 gdb::optional<byte_vector>.
11153 (target_read_stralloc): Return gdb::optional<char_vector>.
11154 (target_get_osdata): Return gdb::optional<char_vector>.
11155 * target.c (target_read_alloc_1): Templatize. Replacement
11156 manual memory management with vector.
11157 (target_read_alloc): Change return type, adjust.
11158 (target_read_stralloc): Change return type, adjust.
11159 (target_get_osdata): Change return type, adjust.
11160 * auxv.c (struct auxv_info) <length>: Remove.
11161 <data>: Change type to gdb::optional<byte_vector>.
11162 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11163 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11164 (target_auxv_search): Adjust.
11165 (fprint_target_auxv): Adjust.
11166 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11167 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11168 (linux_make_corefile_notes): Adjust.
11169 * osdata.c (get_osdata): Adjust.
11170 * remote.c (remote_get_threads_with_qxfer): Adjust.
11171 (remote_memory_map): Adjust.
11172 (remote_traceframe_info): Adjust.
11173 (btrace_read_config): Adjust.
11174 (remote_read_btrace): Adjust.
11175 (remote_pid_to_exec_file): Adjust.
11176 * solib-aix.c (solib_aix_get_library_list): Adjust.
11177 * solib-dsbt.c (decode_loadmap): Don't free buf.
11178 (dsbt_get_initial_loadmaps): Adjust.
11179 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11180 * solib-target.c (solib_target_current_sos): Adjust.
11181 * tracepoint.c (sdata_make_value): Adjust.
11182 * xml-support.c (xinclude_start_include): Adjust.
11183 (xml_fetch_content_from_file): Adjust.
11184 * xml-support.h (xml_fetch_another): Change return type.
11185 (xml_fetch_content_from_file): Change return type.
11186 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11187 * xml-tdesc.c (file_read_description_xml): Adjust.
11188 (fetch_available_features_from_target): Change return type.
11189 (target_fetch_description_xml): Adjust.
11190 (target_read_description_xml): Adjust.
11191
11192 2018-04-06 Tom Tromey <tom@tromey.com>
11193
11194 * value.c (~value): Update.
11195 (struct value) <contents>: Now unique_xmalloc_ptr.
11196 (value_contents_bits_eq, allocate_value_contents)
11197 (value_contents_raw, value_contents_all_raw)
11198 (value_contents_for_printing, value_contents_for_printing_const)
11199 (set_value_enclosing_type): Update.
11200
11201 2018-04-06 Tom Tromey <tom@tromey.com>
11202
11203 * value.c (range_s): Remove typedef, VEC.
11204 (struct range): Add operator<.
11205 (range_lessthan): Remove.
11206 (ranges_contain): Change type.
11207 (~value): Update.
11208 (struct value) <unavailable, optimized_out>: Now std::vector.
11209 (value_entirely_available)
11210 (value_entirely_covered_by_range_vector)
11211 (value_entirely_unavailable, value_entirely_optimized_out):
11212 Update.
11213 (insert_into_bit_range_vector): Change argument type.
11214 (find_first_range_overlap): Likewise.
11215 (struct ranges_and_idx, value_contents_bits_eq)
11216 (require_not_optimized_out, require_available): Update.
11217 (ranges_copy_adjusted): Change argument types.
11218 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11219
11220 2018-04-06 Tom Tromey <tom@tromey.com>
11221
11222 * value.c (~value): Update.
11223 (struct value) <parent>: Now a value_ref_ptr.
11224 (value_parent, set_value_parent, value_address, value_copy):
11225 Update.
11226
11227 2018-04-06 Tom Tromey <tom@tromey.com>
11228
11229 * value.c (struct value): Add constructor, destructor, and member
11230 initializers.
11231 (allocate_value_lazy, value_decref): Update.
11232
11233 2018-04-06 Tom Tromey <tom@tromey.com>
11234
11235 * value.c (struct value) <released, next>: Remove.
11236 (all_values): Now a std::vector.
11237 (allocate_value_lazy): Update.
11238 (value_next): Remove.
11239 (value_mark, value_free_to_mark, release_value)
11240 (value_release_to_mark): Update.
11241
11242 2018-04-06 Tom Tromey <tom@tromey.com>
11243
11244 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11245 (free_value_chain): Remove.
11246 * value.c (free_value_chain): Remove.
11247 (value_release_to_mark): Return a std::vector.
11248 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11249 std::vector.
11250 (check_condition): Update.
11251 * eval.c (fetch_subexp_value): Change "val_chain" to a
11252 std::vector.
11253 * breakpoint.c (update_watchpoint): Update.
11254 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11255
11256 2018-04-06 Tom Tromey <tom@tromey.com>
11257
11258 * value.h (free_all_values): Remove.
11259 * value.c (free_all_values): Remove.
11260
11261 2018-04-06 Tom Tromey <tom@tromey.com>
11262
11263 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11264 (value_history_chain, value_history_count): Remove.
11265 (value_history): New global.
11266 (record_latest_value, access_value_history, show_values)
11267 (preserve_values): Update.
11268
11269 2018-04-06 Tom Tromey <tom@tromey.com>
11270
11271 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11272 * varobj.c (varobj_set_display_format, varobj_set_value)
11273 (install_default_visualizer, construct_visualizer)
11274 (install_new_value, ~varobj, varobj_get_value_type)
11275 (my_value_of_variable, varobj_editable_p): Update.
11276 * c-varobj.c (c_describe_child, c_value_of_variable)
11277 (cplus_number_of_children, cplus_describe_child): Update.
11278 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11279 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11280 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11281
11282 2018-04-06 Tom Tromey <tom@tromey.com>
11283
11284 * printcmd.c (last_examine_address): Change type to
11285 value_ref_ptr.
11286 (do_examine, x_command): Update.
11287
11288 2018-04-06 Tom Tromey <tom@tromey.com>
11289
11290 * value.c (release_value): Update.
11291 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11292 (struct bpstats) <val>: Now a value_ref_ptr.
11293 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11294 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11295 (~watchpoint, print_it_watchpoint, watch_command_1)
11296 (invalidate_bp_value_on_memory_change): Update.
11297
11298 2018-04-06 Tom Tromey <tom@tromey.com>
11299
11300 * varobj.c (varobj_clear_saved_item)
11301 (update_dynamic_varobj_children, install_new_value, ~varobj):
11302 Update.
11303 * value.h (value_incref): Move declaration earlier.
11304 (value_decref): Rename from value_free.
11305 (struct value_ref_policy): New.
11306 (value_ref_ptr): New typedef.
11307 (struct value_deleter): Remove.
11308 (gdb_value_up): Remove typedef.
11309 (release_value): Change return type.
11310 (release_value_or_incref): Remove.
11311 * value.c (set_value_parent): Update.
11312 (value_incref): Change return type.
11313 (value_decref): Rename from value_free.
11314 (value_free_to_mark, free_all_values, free_value_chain): Update.
11315 (release_value): Return value_ref_ptr.
11316 (release_value_or_incref): Remove.
11317 (record_latest_value, set_internalvar, clear_internalvar):
11318 Update.
11319 * stack.c (info_frame_command): Don't call value_free.
11320 * python/py-value.c (valpy_dealloc, valpy_new)
11321 (value_to_value_object): Update.
11322 * printcmd.c (do_examine): Update.
11323 * opencl-lang.c (lval_func_free_closure): Update.
11324 * mi/mi-main.c (register_changed_p): Don't call value_free.
11325 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11326 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11327 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11328 value_free.
11329 * guile/scm-value.c (vlscm_free_value_smob)
11330 (vlscm_scm_from_value): Update.
11331 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11332 (frame_unwind_register_unsigned, get_frame_register_bytes)
11333 (put_frame_register_bytes): Don't call value_free.
11334 * findvar.c (address_from_register): Don't call value_free.
11335 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11336 * dwarf2loc.c (entry_data_value_free_closure)
11337 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11338 (dwarf2_evaluate_loc_desc_full): Update.
11339 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11340 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11341 (~watchpoint, watch_command_1)
11342 (invalidate_bp_value_on_memory_change): Update.
11343 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11344
11345 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 PR gdb/23022
11348 * warning.m4: Add -Wno-error=deprecated-register.
11349 * configure: Re-generate.
11350
11351 2018-04-05 Tom Tromey <tom@tromey.com>
11352
11353 * linespec.h: Remove include of "vec.h".
11354
11355 2018-04-05 Tom Tromey <tom@tromey.com>
11356
11357 * linespec.c (typep): Remove typedef.
11358 (find_methods, find_superclass_methods): Take a std::vector.
11359 (find_method): Use std::vector.
11360
11361 2018-04-05 Tom Tromey <tom@tromey.com>
11362
11363 * utils.c (compare_strings): Remove.
11364 * utils.h (compare_strings): Remove.
11365 * objc-lang.h (find_imps): Update.
11366 * objc-lang.c (find_methods): Take a std::vector.
11367 (uniquify_strings, find_imps): Likewise.
11368 * linespec.c (find_methods): Take a std::vector.
11369 (decode_objc): Use std::vector.
11370 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11371 a std::vector.
11372 (find_method, find_function_symbols): Use std::vector.
11373
11374 2018-04-05 Tom Tromey <tom@tromey.com>
11375
11376 * completer.c (completion_tracker::completion_tracker): Remove
11377 cast.
11378 (completion_tracker::discard_completions): Likewise.
11379 * breakpoint.c (ambiguous_names_p): Remove cast.
11380 * ada-lang.c (_initialize_ada_language): Remove cast.
11381 * utils.h (streq): Update.
11382 (streq_hash): Add new declaration.
11383 * utils.c (streq): Return bool.
11384 (streq_hash): New function.
11385
11386 2018-04-05 Tom Tromey <tom@tromey.com>
11387
11388 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11389 Remove a string copy.
11390
11391 2018-04-05 Tom Tromey <tom@tromey.com>
11392
11393 * linespec.c (filter_results): Use std::vector.
11394 (decode_line_2, decode_line_full): Update.
11395
11396 2018-04-05 Tom Tromey <tom@tromey.com>
11397
11398 * linespec.c (canonical_to_fullform): Return std::string.
11399 (filter_results): Update.
11400 (struct decode_line_2_item): Add constructor.
11401 <fullform, displayform>: Now std::string.
11402 (decode_line_2_compare_items): Now a std::sort comparator.
11403 (decode_line_2): Update.
11404
11405 2018-04-05 Tom Tromey <tom@tromey.com>
11406
11407 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11408 (unexpected_linespec_error): Update.
11409 (linespec_parse_basic, parse_linespec): Update.
11410
11411 2018-04-05 Tom Tromey <tom@tromey.com>
11412
11413 * linespec.c (linespec_parse_basic): Reindent.
11414
11415 2018-04-05 Tom Tromey <tom@tromey.com>
11416
11417 * minsyms.h (iterate_over_minimal_symbols): Update.
11418 * minsyms.c (iterate_over_minimal_symbols): Take a
11419 gdb::function_view.
11420 * linespec.c (struct collect_minsyms): Remove.
11421 (compare_msyms): Now a std::sort comparator.
11422 (add_minsym): Add parameters.
11423 (search_minsyms_for_name): Update. Use std::vector.
11424
11425 2018-04-03 Tom Tromey <tom@tromey.com>
11426
11427 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11428 gdb::byte_vector.
11429
11430 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11431
11432 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11433
11434 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11435
11436 PR gdb/16959
11437 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11438 printing static type.
11439
11440 2018-04-01 Tom Tromey <tom@tromey.com>
11441
11442 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11443 (rs6000_xfer_shared_libraries): Update.
11444
11445 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11446
11447 * common/gdb_vecs.h (char_ptr): Remove.
11448 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11449
11450 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11451
11452 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11453 with std::vector.
11454 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11455
11456 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11457
11458 * tracepoint.h (struct uploaded_tp): Initialize fields.
11459 <actions, step_actions, cmd_strings>: Change type to
11460 std::vector<char *>.
11461 * tracepoint.c (get_uploaded_tp): Allocate with new.
11462 (free_uploaded_tps): Free with delete.
11463 (parse_tracepoint_definition): Adjust to std::vector change.
11464 * breakpoint.c (read_uploaded_action): Likewise.
11465 (create_tracepoint_from_upload): Likewise.
11466 * ctf.c (ctf_write_uploaded_tp): Likewise.
11467 (SET_ARRAY_FIELD): Likewise.
11468 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11469
11470 2018-03-30 Tom Tromey <tom@tromey.com>
11471
11472 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11473 std::unique_ptr.
11474 (svr4_keep_data_in_core): Update.
11475 (svr4_read_so_list): Update.
11476
11477 2018-03-30 Tom Tromey <tom@tromey.com>
11478
11479 * windows-nat.c (handle_output_debug_string, handle_exception):
11480 Update.
11481 * target.h (target_read_string): Update.
11482 * target.c (target_read_string): Change "string" to
11483 unique_xmalloc_ptr.
11484 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11485 Update.
11486 * solib-frv.c (frv_current_sos): Update.
11487 * solib-dsbt.c (dsbt_current_sos): Update.
11488 * solib-darwin.c (darwin_current_sos): Update.
11489 * linux-thread-db.c (inferior_has_bug): Update.
11490 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11491 Update. Remove alloca.
11492 * ada-lang.c (ada_main_name): Update.
11493
11494 2018-03-30 Tom Tromey <tom@tromey.com>
11495
11496 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11497 (struct dwo_file_deleter): New.
11498 (dwo_file_up): New typedef.
11499 (open_and_init_dwo_file): Use dwo_file_up.
11500 (free_dwo_file_cleanup): Remove.
11501
11502 2018-03-30 Tom Tromey <tom@tromey.com>
11503
11504 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11505 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11506
11507 2018-03-30 Tom Tromey <tom@tromey.com>
11508
11509 * dwarf2read.c (class free_cached_comp_units): New class.
11510 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11511 (free_cached_comp_units): Remove function.
11512
11513 2018-03-30 Tom Tromey <tom@tromey.com>
11514
11515 * utils.h (make_cleanup_unpush_target): Remove.
11516 * inf-ptrace.c (struct target_unpusher): New.
11517 (target_unpush_up) New typedef.
11518 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11519 target_unpush_up.
11520 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11521
11522 2018-03-27 Tom Tromey <tom@tromey.com>
11523
11524 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11525
11526 2018-03-27 Pedro Alves <palves@redhat.com>
11527 Tom Tromey <tom@tromey.com>
11528
11529 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11530 destructor. Now a class.
11531 (gdb_readline_wrapper_cleanup): Remove function.
11532 (gdb_readline_wrapper): Remove cleanups.
11533
11534 2018-03-27 Tom Tromey <tom@tromey.com>
11535
11536 * typeprint.h (struct type_print_options) <local_typedefs,
11537 global_typedefs>: Remove "struct" keyword.
11538 (class typedef_hash_table): New class.
11539 (recursively_update_typedef_hash, add_template_parameters)
11540 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11541 (find_typedef_in_hash): Don't declare.
11542 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11543 (typedef_hash_table::recursively_update): Rename from
11544 recursively_update_typedef_hash. Now a member.
11545 (typedef_hash_table::add_template_parameters): Rename from
11546 add_template_parameters. Now a member.
11547 (typedef_hash_table::typedef_hash_table): Now a constructor;
11548 rename from create_typedef_hash.
11549 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11550 rename from free_typedef_hash.
11551 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11552 (do_free_global_table): Remove.
11553 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11554 from copy_type_recursive.
11555 (create_global_typedef_table): Remove.
11556 (typedef_hash_table::find_global_typedef): Now a member of
11557 typedef_hash_table.
11558 (typedef_hash_table::find_typedef): Rename from
11559 find_typedef_in_hash; now a member.
11560 (whatis_exp): Update.
11561 * extension.h (struct ext_lang_type_printers): Add constructor and
11562 destructor.
11563 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11564 declare.
11565 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11566 Now a constructor; rename from start_ext_lang_type_printers.
11567 (ext_lang_type_printers): Now a destructor; rename from
11568 free_ext_lang_type_printers.
11569 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11570 Update.
11571 (c_type_print_base_struct_union): Update. Remove cleanups.
11572
11573 2018-03-27 Tom Tromey <tom@tromey.com>
11574
11575 * dwarf-index-write.c: Include <cmath>.
11576
11577 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11578
11579 * NEWS: Add entry describing new "set|show varsize-limit" command.
11580 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11581 command.
11582 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11583 "set variable".
11584
11585 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11586
11587 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11588 dwarf-index-write.c
11589 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11590 * dwarf-index-common.c: New file.
11591 * dwarf-index-common.h: New file.
11592 * dwarf-index-write.c: New file.
11593 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11594 (struct dwarf2_section_info): Move from here.
11595 (dwarf2_section_info_def): Likewise.
11596 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11597 (offset_type): Likewise.
11598 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11599 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11600 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11601 (byte_swap): Likewise.
11602 (MAYBE_SWAP): Likewise.
11603 (dwarf2_per_cu_ptr): Likewise.
11604 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11605 (struct tu_stats): Likewise.
11606 (struct dwarf2_per_objfile): Likewise.
11607 (struct dwarf2_per_cu_data): Likewise.
11608 (struct signatured_type): Likewise.
11609 (sig_type_ptr): Likewise.
11610 (DEF_VEC_P (sig_type_ptr)): Likewise.
11611 (INDEX4_SUFFIX): Likewise.
11612 (INDEX5_SUFFIX): Likewise.
11613 (DEBUG_STR_SUFFIX): Likewise.
11614 (dwarf2_read_section): Make non-static.
11615 (mapped_index_string_hash): Move from here.
11616 (dwarf5_djb_hash): Likewise.
11617 (file_write): Likewise.
11618 (class data_buf): Likewise.
11619 (struct symtab_index_entry): Likewise.
11620 (struct mapped_symtab): Likewise.
11621 (find_slot): Likewise.
11622 (hash_expand): Likewise.
11623 (add_index_entry): Likewise.
11624 (uniquify_cu_indices): Likewise.
11625 (class c_str_view): Likewise.
11626 (class c_str_view_hasher): Likewise.
11627 (class vector_hasher): Likewise.
11628 (write_hash_table): Likewise.
11629 (psym_index_map): Likewise.
11630 (struct addrmap_index_data): Likewise.
11631 (add_address_entry): Likewise.
11632 (add_address_entry_worker): Likewise.
11633 (write_address_map): Likewise.
11634 (symbol_kind): Likewise.
11635 (write_psymbols): Likewise.
11636 (struct signatured_type_index_data): Likewise.
11637 (write_one_signatured_type): Likewise.
11638 (recursively_count_psymbols): Likewise.
11639 (recursively_write_psymbols): Likewise.
11640 (class debug_names): Likewise.
11641 (check_dwarf64_offsets): Likewise.
11642 (psyms_seen_size): Likewise.
11643 (write_gdbindex): Likewise.
11644 (write_debug_names): Likewise.
11645 (assert_file_size): Likewise.
11646 (write_psymtabs_to_index): Likewise.
11647 (save_gdb_index_command): Likewise.
11648 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11649 command.
11650 * dwarf2read.h: New file.
11651
11652 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11653
11654 PR gdb/22670
11655 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11656 symbol name if the CU's language stores symbol names in linkage
11657 format.
11658 * language.h (struct language_defn)
11659 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11660 all instances of this struct.
11661
11662 2018-03-26 Tom Tromey <tom@tromey.com>
11663
11664 * stack.c (backtrace_command_1): Remove verbose code.
11665
11666 2018-03-26 Tom Tromey <tom@tromey.com>
11667
11668 * python/py-framefilter.c (py_print_type): Don't catch
11669 exceptions. Return void.
11670 (py_print_value): Likewise.
11671 (py_print_single_arg): Likewise.
11672 (enumerate_args): Don't catch exceptions.
11673 (py_print_args): Likewise.
11674 (py_print_frame): Likewise.
11675 (gdbpy_apply_frame_filter): Catch exceptions here.
11676
11677 2018-03-26 Tom Tromey <tom@tromey.com>
11678
11679 * stack.c (_initialize_stack): Remove trailing newlines from help
11680 text. Add "Usage" line to "backtrace" help.
11681
11682 2018-03-26 Tom Tromey <tom@tromey.com>
11683
11684 PR python/16486:
11685 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11686
11687 2018-03-26 Tom Tromey <tom@tromey.com>
11688
11689 * python/py-framefilter.c (py_print_single_arg): Return
11690 EXT_LANG_BT_ERROR from catch.
11691
11692 2018-03-26 Tom Tromey <tom@tromey.com>
11693
11694 PR backtrace/15584:
11695 * stack.c (backtrace_command_1): Move some code into no-filters
11696 "if".
11697
11698 2018-03-26 Tom Tromey <tom@tromey.com>
11699
11700 * python/py-framefilter.c (throw_quit_or_print_exception): New
11701 function.
11702 (gdbpy_apply_frame_filter): Use it.
11703
11704 2018-03-26 Tom Tromey <tom@tromey.com>
11705
11706 PR cli/17716:
11707 * python/py-framefilter.c (py_print_type, py_print_value)
11708 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11709 RETURN_MASK_ERROR.
11710
11711 2018-03-26 Tom Tromey <tom@tromey.com>
11712
11713 * python/py-framefilter.c (enumerate_args): Use
11714 gdb::unique_xmalloc_ptr.
11715
11716 2018-03-26 Tom Tromey <tom@tromey.com>
11717
11718 * python/py-framefilter.c (py_print_frame): Return
11719 EXT_LANG_BT_OK.
11720 (gdbpy_apply_frame_filter): Update comment.
11721 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11722 Remove.
11723 <EXT_LANG_BT_NO_FILTERS>: Change value.
11724
11725 2018-03-26 Tom Tromey <tom@tromey.com>
11726
11727 PR backtrace/15582:
11728 * stack.c (backtrace_command): Parse "hide" argument.
11729 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11730 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11731 constant.
11732
11733 2018-03-26 Tom Tromey <tom@tromey.com>
11734
11735 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11736 add "flags".
11737 (backtrace_command): Remove "fulltrace", add "flags".
11738
11739 2018-03-26 Tom Tromey <tom@tromey.com>
11740
11741 * stack.c (backtrace_command): Rewrite command line parsing.
11742
11743 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11744
11745 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11746
11747 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11748
11749 * filename-seen-cache.h: Add include guard.
11750
11751 2018-03-26 Keith Seitz <keiths@redhat.com>
11752
11753 * symfile.c (place_section): Remove "struct" from section_addr_info
11754 in comment.
11755 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11756 "struct" keyword from section_addr_info.
11757
11758 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11759
11760 * regformats/regdef.h (reg): Add constructors.
11761
11762 2018-03-25 Pedro Alves <palves@redhat.com>
11763
11764 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11765 if then/else bodies in var_func_name extraction.
11766
11767 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11768
11769 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11770 lookup_minimal_symbol() to find symbol entry.
11771 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11772
11773 2018-03-23 Keith Seitz <keiths@redhat.com>
11774
11775 PR c++/22968
11776 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11777 nested type definitions for C++, too.
11778
11779 2018-03-23 Tom Tromey <tom@tromey.com>
11780
11781 * machoread.c (struct oso_el): Add a constructor. Don't define as
11782 a typedef.
11783 (macho_register_oso): Remove.
11784 (macho_symtab_read): Take a std::vector.
11785 (oso_el_compare_name): Now a std::sort comparator.
11786 (macho_symfile_read_all_oso): Take a std::vector.
11787 (macho_symfile_read): Use std::vector. Remove cleanups.
11788
11789 2018-03-22 Tom Tromey <tom@tromey.com>
11790
11791 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11792 (record_full_goto_bookmark): Use std::string.
11793
11794 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11795
11796 PR tdep/18295
11797 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11798 a single mask.
11799
11800 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11801
11802 * rs6000-tdep.c (store_insn_p): New function.
11803 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11804 and cr_reg to their unshifted values. Use store_insn_p to
11805 match LR saves using either R1 or fdata->alloca_reg. Use
11806 store_insn_p to match CR saves. Set alloca_reg_offset
11807 when alloca_reg and framep are set. Remove lr_reg shift
11808 when assigning to fdata->lr_register.
11809
11810 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11811
11812 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11813 command line args instead of emitting a warning.
11814
11815 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11816
11817 * tracepoint.h (struct static_tracepoint_marker): Initialize
11818 fields, define default constructor, move constructor and move
11819 assignment, disable the rest.
11820 <str_id, extra>: Make std::string.
11821 (release_static_tracepoint_marker): Remove.
11822 (free_current_marker): Remove.
11823 * tracepoint.c (free_current_marker): Remove.
11824 (parse_static_tracepoint_marker_definition): Adjust to
11825 std::string, use new hex2str overload.
11826 (release_static_tracepoint_marker): Remove.
11827 (print_one_static_tracepoint_marker): Get marker by reference
11828 and adjust to std::string.
11829 (info_static_tracepoint_markers_command): Adjust to std::vector
11830 changes
11831 * target.h (static_tracepoint_marker_p): Remove typedef.
11832 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11833 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11834 bool.
11835 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11836 * target-debug.h
11837 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11838 (target_debug_print_std_vector_static_tracepoint_marker): New.
11839 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11840 to...
11841 (target_debug_print_static_tracepoint_marker_p): ... this.
11842 * target-delegates.c: Re-generate.
11843 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11844 Make std::string.
11845 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11846 (decode_static_tracepoint_spec): Adjust to std::vector.
11847 (tracepoint_print_one_detail): Adjust to std::string.
11848 (strace_marker_decode_location): Adjust to std::string.
11849 (update_static_tracepoint): Adjust to std::string, remove call
11850 to release_static_tracepoint_marker.
11851 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11852 Adjust to std::vector.
11853 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11854 (remote_static_tracepoint_markers_by_strid): Adjust to
11855 std::vector.
11856 * common/rsp-low.h (hex2str): New overload with explicit count
11857 of bytes.
11858 * common/rsp-low.c (hex2str): New overload with explicit count
11859 of bytes.
11860 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11861 (_initialize_rsp_low_selftests): Add test_hex2str test.
11862 * unittests/tracepoint-selftests.c
11863 (test_parse_static_tracepoint_marker_definition): Adjust to
11864 std::string.
11865
11866 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11867
11868 * tracepoint.c (parse_static_tracepoint_marker_definition):
11869 Consider case where the definition is followed by more
11870 definitions.
11871 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11872 tracepoint-selftests.c.
11873 * unittests/tracepoint-selftests.c: New.
11874
11875 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11876
11877 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11878 Carvalho.
11879
11880 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11881
11882 * symtab.c (find_pc_sect_line): fixed indentation.
11883
11884 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11885
11886 * symtab.c (find_pc_sect_line): now uses binary search.
11887
11888 2018-03-19 Tom Tromey <tom@tromey.com>
11889
11890 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11891 "IDENT" production.
11892
11893 2018-03-19 Pedro Alves <palves@redhat.com>
11894 Tom Tromey <tom@tromey.com>
11895
11896 * unittests/observable-selftests.c: New file.
11897 * common/observable.h: New file.
11898 * observable.h: New file.
11899 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11900 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11901 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11902 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11903 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11904 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11905 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11906 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11907 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11908 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11909 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11910 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11911 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11912 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11913 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11914 tui/tui-interp.c, valops.c: Update all users.
11915 * tui/tui-hooks.c (tui_bp_created_observer)
11916 (tui_bp_deleted_observer, tui_bp_modified_observer)
11917 (tui_inferior_exit_observer, tui_before_prompt_observer)
11918 (tui_normal_stop_observer, tui_register_changed_observer):
11919 Remove.
11920 (tui_observers_token): New global.
11921 (attach_or_detach, tui_attach_detach_observers): New functions.
11922 (tui_install_hooks, tui_remove_hooks): Use
11923 tui_attach_detach_observers.
11924 * record-btrace.c (record_btrace_thread_observer): Remove.
11925 (record_btrace_thread_observer_token): New global.
11926 * observer.sh: Remove.
11927 * observer.c: Rename to observable.c.
11928 * observable.c (namespace gdb_observers): Define new objects.
11929 (observer_debug): Move into gdb_observers namespace.
11930 (struct observer, struct observer_list, xalloc_observer_list_node)
11931 (xfree_observer_list_node, generic_observer_attach)
11932 (generic_observer_detach, generic_observer_notify): Remove.
11933 (_initialize_observer): Update.
11934 Don't include observer.inc.
11935 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11936 (clean mostlyclean): Likewise.
11937 (observer.h, observer.inc): Remove targets.
11938 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11939 (COMMON_SFILES): Use observable.c, not observer.c.
11940 * .gitignore: Remove observer.h.
11941
11942 2018-03-18 Tom Tromey <tom@tromey.com>
11943
11944 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11945 gdb::def_vector.
11946 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11947
11948 2018-03-17 Tom Tromey <tom@tromey.com>
11949
11950 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11951
11952 2018-03-17 Tom Tromey <tom@tromey.com>
11953
11954 * target.c (class scoped_target_fd): New.
11955 (target_fileio_close_cleanup): Remove.
11956 (target_fileio_read_alloc_1): Use scoped_target_fd.
11957
11958 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11959
11960 * silent-rules.mk: New.
11961 * Makefile.in: Include silent-rules.mk
11962 (srcdir, VPATH, top_srcdir): Move up.
11963 (COMPILE): Add ECHO_CXX.
11964 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11965 (init.c): Add ECHO_INIT_C.
11966 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11967 (version.c): Add ECHO_GEN.
11968 (printcmd.o): Add ECHO_CXX.
11969 (target-float.o): Add ECHO_CXX.
11970 (ada-exp.o): Add ECHO_CXX.
11971 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11972 (insight$(EXEEXT)): Add ECHO_CXXLD.
11973 * gnulib/configure.ac: Add AM_SILENT_RULES.
11974 * gnulib/aclocal.m4: Re-generate.
11975 * gnulib/configure: Re-generate.
11976 * gnulib/import/Makefile.in: Re-generate.
11977
11978 2018-03-16 Tom Tromey <tom@tromey.com>
11979
11980 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11981 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11982 * utils.c (do_free_section_addr_info)
11983 (make_cleanup_free_section_addr_info): Remove.
11984 * symfile.h (struct other_sections): Add constructor.
11985 (struct section_addr_info): Remove.
11986 (section_addr_info): New typedef.
11987 (struct sym_fns) <sym_offsets>: Change type of parameter.
11988 (build_section_addr_info_from_objfile)
11989 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11990 (default_symfile_offsets, symbol_file_add)
11991 (symbol_file_add_from_bfd)
11992 (build_section_addr_info_from_section_table): Update.
11993 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11994 * symfile.c (alloc_section_addr_info): Remove.
11995 (build_section_addr_info_from_section_table): Change return type.
11996 Update.
11997 (build_section_addr_info_from_bfd)
11998 (build_section_addr_info_from_objfile): Likewise.
11999 (free_section_addr_info): Remove.
12000 (relative_addr_info_to_section_offsets): Change type of "addrs".
12001 (addrs_section_compar): Now a std::sort comparator.
12002 (addrs_section_sort): Change return type.
12003 (addr_info_make_relative): Change type of "addrs". Update.
12004 (default_symfile_offsets, syms_from_objfile_1)
12005 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12006 (symbol_file_add_separate): Update.
12007 (symbol_file_add): Change type of "addrs". Update.
12008 (add_symbol_file_command): Update. Remove cleanups.
12009 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
12010 cleanups.
12011 * symfile-debug.c (debug_sym_offsets): Change type of "info".
12012 * solib.c (solib_read_symbols): Update.
12013 * objfiles.c (objfile_relocate): Update. Remove cleanups.
12014 * machoread.c (macho_symfile_offsets): Update.
12015 * jit.c (jit_bfd_try_read_symtab): Update.
12016
12017 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
12018
12019 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12020 unittests/utils-selftests.c.
12021 * unittests/utils-selftests.c: New file.
12022
12023 2018-03-14 Tom Tromey <tom@tromey.com>
12024
12025 PR cli/14977:
12026 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12027 for NULL.
12028
12029 2018-03-14 Tom Tromey <tom@tromey.com>
12030
12031 PR cli/19918:
12032 * printcmd.c (printf_pointer): Allow "-" in format.
12033
12034 2018-03-14 Tom Tromey <tom@tromey.com>
12035
12036 * printcmd.c (_initialize_printcmd): Add usage to printf.
12037
12038 2018-03-14 Yao Qi <qiyao@sourceware.org>
12039
12040 * MAINTAINERS: Update my email address.
12041
12042 2018-03-13 Tom Tromey <tom@tromey.com>
12043
12044 * machoread.c (macho_check_dsym): Change filenamep to a
12045 std::string*.
12046 (macho_symfile_read): Update.
12047 * symfile.c (load_command): Use std::string.
12048
12049 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12050
12051 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12052 to error message string.
12053 (riscv_register_name): Use xsnprintf instead of sprintf.
12054 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12055 internal_error.
12056 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12057 error.
12058 (riscv_push_dummy_call): Likewise.
12059
12060 2018-03-12 Tom Tromey <tom@tromey.com>
12061
12062 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12063 Use gdb::byte_vector.
12064 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12065
12066 2018-03-12 Yao Qi <yao.qi@linaro.org>
12067
12068 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12069 parameter type to readable_regcache.
12070 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12071 the declaration.
12072
12073 2018-03-11 Tom Tromey <tom@tromey.com>
12074
12075 * dwarf2read.c (struct nextfield): Add initializers.
12076 (struct nextfnfield): Remove.
12077 (struct fnfieldlist): Add initializers. Remove "length" and
12078 "head", use std::vector.
12079 (struct decl_field_list): Remove.
12080 (struct field_info): Add initializers.
12081 <fields, baseclasses>: Now std::vector.
12082 <nbaseclasses, nfnfields, typedef_field_list_count,
12083 nested_types_list_count>: Remove.
12084 (dwarf2_add_field, dwarf2_add_type_defn)
12085 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12086 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12087 (process_structure_scope): Update.
12088
12089 2018-03-11 Tom Tromey <tom@tromey.com>
12090
12091 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12092 for use by std::sort.
12093 (build_type_psymtabs_1): Use std::vector.
12094
12095 2018-03-09 Eli Zaretskii <eliz@gnu.org>
12096
12097 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12098 and LIBMPFR in the printed configuration.
12099
12100 2018-03-08 Tom Tromey <tom@tromey.com>
12101
12102 * source.c (get_filename_and_charpos): Use scoped_fd.
12103 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12104 (procfs_pidlist): Likewise.
12105 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12106 (iterate_over_mappings): Likewise.
12107
12108 2018-03-08 Tom Tromey <tom@tromey.com>
12109
12110 * infcall.c (struct call_return_meta_info)
12111 <stack_temporaries_enabled>: Remove.
12112 (get_call_return_value, call_function_by_hand_dummy): Update.
12113 * thread.c (disable_thread_stack_temporaries): Remove.
12114 (enable_thread_stack_temporaries): Remove.
12115 (thread_stack_temporaries_enabled_p): Return bool.
12116 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12117 (get_last_thread_stack_temporary): Update.
12118 * eval.c (evaluate_subexp): Update.
12119 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12120 class, not a function.
12121 (value_ptr, value_vec): Remove typedefs.
12122 (class thread_info) <stack_temporaries_enabled>: Now bool.
12123 <stack_temporaries>: Now a std::vector.
12124 (thread_stack_temporaries_enabled_p)
12125 (value_in_thread_stack_temporaries): Return bool.
12126
12127 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12128
12129 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12130 (getpkt_or_notif_sane_1): Likewise.
12131
12132 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12133
12134 * build-id.c (build_id_to_debug_bfd): Use std::string.
12135
12136 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12137
12138 * build-id.c (find_separate_debug_file_by_buildid): Return
12139 std::string.
12140 * build-id.h (find_separate_debug_file_by_buildid): Return
12141 std::string.
12142 * coffread.c (coff_symfile_read): Adjust to std::string.
12143 * elfread.c (elf_symfile_read): Adjust to std::string.
12144 * symfile.c (separate_debug_file_exists): Change parameter to
12145 std::string.
12146 (find_separate_debug_file): Return std::string.
12147 (find_separate_debug_file_by_debuglink): Return std::string.
12148 * symfile.h (find_separate_debug_file_by_debuglink): Return
12149 std::string.
12150
12151 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12152
12153 * common/xml-utils.c (xml_escape_text): Move code to...
12154 (xml_escape_text_append): ... this new function.
12155 * common/xml-utils.h (xml_escape_text_append): New declaration.
12156 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12157 New function.
12158 (_initialize_xml_utils): register test_xml_escape_text_append as
12159 a selftest.
12160
12161 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12162
12163 * defs.h: Remove MAX_REGISTER_SIZE.
12164 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12165 asserts.
12166 * python/py-unwind.c (pyuw_sniffer): Likewise.
12167
12168 2018-03-07 Tom Tromey <tom@tromey.com>
12169
12170 * linux-tdep.c (linux_info_proc): Update.
12171 * target.h (struct target_ops) <to_fileio_readlink>: Return
12172 optional<string>.
12173 (target_fileio_readlink): Return optional<string>.
12174 * remote.c (remote_hostio_readlink): Return optional<string>.
12175 * inf-child.c (inf_child_fileio_readlink): Return
12176 optional<string>.
12177 * target.c (target_fileio_readlink): Return optional<string>.
12178
12179 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12180
12181 * regcache.c (cooked_read_test): Add riscv to the list of
12182 architectures that have a save_reggroup.
12183
12184 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12185
12186 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12187 value is not a dynamic class object.
12188
12189 2018-03-06 Tom Tromey <tom@tromey.com>
12190
12191 * rust-exp.y: Formatting fixes.
12192
12193 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12194
12195 * riscv-tdep.c (riscv_register_name): Remove target description
12196 support.
12197 (riscv_gdbarch_init): Remove target description check.
12198
12199 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12200
12201 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12202 comment.
12203 * riscv-tdep.h: Likewise.
12204
12205 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12206
12207 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12208 (riscv_pseudo_register_write): Delete.
12209 (riscv_gdbarch_init): Remove all use of pseudo registers.
12210
12211 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12212
12213 * record-btrace.c (btrace_print_lines): Replace cleanup
12214 parameter with RAII equivalents.
12215 (btrace_insn_history): Replace cleanup with RAII equivalents.
12216 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12217 make_cleanup_ui_out_tuple_begin_end): Remove.
12218 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12219 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12220 make_cleanup_ui_out_list_begin_end): Remove.
12221
12222 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12223
12224 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12225 parameter types to std::vector. Use bool.
12226 (record_btrace_wait): Replace VEC(tp_t) with
12227 std::vector<thread_info *>.
12228 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12229
12230 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12231
12232 * record-btrace.c (record_btrace_disable_callback): Remove.
12233 (struct scoped_btrace_disable): New.
12234 (record_btrace_open): Use scoped_btrace_disable.
12235
12236 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12237
12238 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12239 reading values from registers.
12240
12241 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12242
12243 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12244 where appropriate.
12245
12246 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12247
12248 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12249 change parameter type. Use GDB's print functions, and use
12250 core_addr_to_string where appropriate.
12251 (riscv_push_dummy_call): Use core_addr_to_string where
12252 appropriate, update call to riscv_print_arg_location, and reindent
12253 a few lines.
12254 (riscv_return_value): Update call to riscv_print_arg_location.
12255
12256 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12257 Tim Newsome <tim@sifive.com>
12258 Albert Ou <a0u@eecs.berkeley.edu>
12259 Darius Rad <darius@bluespec.com>
12260
12261 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12262 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12263 (ALLDEPFILES): Add riscv-tdep.c
12264 * configure.tgt: Add riscv support.
12265 * riscv-tdep.c: New file.
12266 * riscv-tdep.h: New file.
12267 * NEWS: Mention new target.
12268 * MAINTAINERS: Add entry for riscv.
12269
12270 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12271
12272 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12273 fields within aggregates.
12274
12275 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12276
12277 * record-btrace.c (btrace_print_lines): Change type of flags to
12278 gdb_disassembly_flags.
12279
12280 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12281
12282 * fbsd-nat.c: Include "inf-ptrace.h".
12283 (USE_SIGTRAP_SIGINFO): Conditionally define.
12284 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12285 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12286 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12287 function.
12288 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12289 Likewise.
12290 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12291 Likewise.
12292 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12293 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12294 "supports_stopped_by_hw_breakpoint" target methods.
12295
12296 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12297
12298 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12299 * fbsd-nat.c (debug_fbsd_nat): New variable.
12300 (show_fbsd_nat_debug): New function.
12301 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12302 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12303
12304 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12305
12306 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12307 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12308 prototype.
12309 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12310 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12311 method.
12312
12313 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12314
12315 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12316 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12317
12318 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12319
12320 * charset.c (struct charset_vector): New.
12321 (charsets): Change type to charset_vector.
12322 (find_charset_names): Adjust.
12323 (add_one): Adjust.
12324 (_initialize_charset): Adjust.
12325
12326 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12327
12328 * progspace.h (struct program_space) <deleted_solibs>: Change
12329 type to std::vector<std::string>.
12330 * progspace.c (clear_program_space_solib_cache): Adjust.
12331 * breakpoint.c (print_solib_event): Adjust.
12332 (check_status_catch_solib): Adjust.
12333 * solib.c (update_solib_list): Adjust.
12334 * ui-out.h (class ui_out) <field_string>: New overload.
12335 * ui-out.c (ui_out::field_string): New overload.
12336
12337 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12338
12339 * progspace.h (struct program_space): Add constructor and
12340 destructor, initialize fields.
12341 (add_program_space): Remove.
12342 * progspace.c (add_program_space): Rename to...
12343 (program_space::program_space): ... this.
12344 (release_program_space): Rename to...
12345 (program_space::~program_space): ... this.
12346 (delete_program_space): Use delete to delete program_space.
12347 (initialize_progspace): Use new to allocate program_space.
12348 * inferior.c (add_inferior_with_spaces): Likewise.
12349 (clone_inferior_command): Likewise.
12350 * infrun.c (follow_fork_inferior): Likewise.
12351 (handle_vfork_child_exec_or_exit): Likewise.
12352
12353 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12354
12355 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12356 (delim_string_to_char_ptr_vec): Return std::vector of
12357 gdb::unique_xmalloc_ptr.
12358 (dirnames_to_char_ptr_vec_append): Take std::vector of
12359 gdb::unique_xmalloc_ptr.
12360 (dirnames_to_char_ptr_vec): Return std::vector of
12361 gdb::unique_xmalloc_ptr.
12362 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12363 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12364 (delim_string_to_char_ptr_vec): Return an std::vector of
12365 gdb::unique_xmalloc_ptr, adjust the code.
12366 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12367 gdb::unique_xmalloc_ptr, adjust the code.
12368 (dirnames_to_char_ptr_vec): Return an std::vector of
12369 gdb::unique_xmalloc_ptr, adjust the code.
12370 * auto-load.c (auto_load_safe_path_vec): Change type to
12371 std::vector of gdb::unique_xmalloc_ptr.
12372 (auto_load_expand_dir_vars): Return an std::vector of
12373 gdb::unique_xmalloc_ptr, adjust the code.
12374 (auto_load_safe_path_vec_update): Adjust.
12375 (filename_is_in_auto_load_safe_path_vec): Adjust.
12376 (auto_load_objfile_script_1): Adjust.
12377 * build-id.c (build_id_to_debug_bfd): Adjust.
12378 * linux-thread-db.c (thread_db_load_search): Adjust.
12379 * source.c (add_path): Adjust.
12380 (openp): Adjust.
12381 * symfile.c (find_separate_debug_file): Adjust.
12382 * utils.c (do_free_char_ptr_vec): Remove.
12383 (make_cleanup_free_char_ptr_vec): Remove.
12384
12385 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12386
12387 PR gdb/22907
12388 * common/pathstuff.c: Conditionally include "<windows.h>".
12389
12390 2018-03-01 Georg Sauthoff <mail@georg.so>
12391
12392 PR gdb/22888
12393 * gcore.in: Quote variables and switch interpreter to bash.
12394
12395 2018-03-01 Tom Tromey <tom@tromey.com>
12396
12397 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12398 assertion. Add assertion for discriminant_index.
12399 (quirk_rust_enum): Use correct base type name in univariant case.
12400
12401 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12402
12403 * record.c (get_call_history_modifiers): Return a
12404 record_print_flags.
12405 (cmd_record_call_history): Adjust.
12406 * record-btrace.c (record_btrace_call_history): Adjust.
12407 (record_btrace_call_history_range): Adjust.
12408 (record_btrace_call_history_from): Adjust.
12409 * target-debug.h (target_debug_print_record_print_flags): New.
12410 * target-delegates.c: Re-generate.
12411 * target.c (target_call_history): Change flags type.
12412 (target_call_history_from): Likewise.
12413 (target_call_history_range): Likewise.
12414 * target.h (struct target_ops) <target_call_history>: Likewise.
12415 (target_call_history_from): Likewise.
12416 (target_call_history_range): Likewise.
12417
12418 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12419 Simon Marchi <simon.marchi@polymtl.ca>
12420
12421 * common/common-utils.c: Include "sys/stat.h".
12422 (is_regular_file): Move here from "source.c"; change return
12423 type to "bool".
12424 * common/common-utils.h (is_regular_file): New prototype.
12425 * common/pathstuff.c (contains_dir_separator): New function.
12426 * common/pathstuff.h (contains_dir_separator): New prototype.
12427 * source.c: Don't include "sys/stat.h".
12428 (is_regular_file): Move to "common/common-utils.c".
12429
12430 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12431
12432 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12433 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12434 * auto-load.c: Include "common/pathstuff.h".
12435 * common/common-def.h (current_directory): Move here.
12436 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12437 function.
12438 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12439 prototype.
12440 * common/pathstuff.c: New file.
12441 * common/pathstuff.h: New file.
12442 * compile/compile.c: Include "common/pathstuff.h".
12443 * defs.h (current_directory): Move to "common/common-defs.h".
12444 * dwarf2read.c: Include "common/pathstuff.h".
12445 * exec.c: Likewise.
12446 * guile/scm-safe-call.c: Likewise.
12447 * linux-thread-db.c: Likewise.
12448 * main.c: Likewise.
12449 * nto-tdep.c: Likewise.
12450 * objfiles.c: Likewise.
12451 * source.c: Likewise.
12452 * symtab.c: Likewise.
12453 * utils.c: Include "common/pathstuff.h".
12454 (gdb_realpath): Move to "common/pathstuff.c".
12455 (gdb_realpath_keepfile): Likewise.
12456 (gdb_abspath): Likewise.
12457 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12458 (gdb_realpath_keepfile): Likewise.
12459 (gdb_abspath): Likewise.
12460
12461 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12462
12463 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12464 wildcard process pid for super_resume for kernels with a
12465 specific bug.
12466
12467 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12468
12469 * compile/compile.c (get_args): Add additional comments
12470 explaining function.
12471
12472 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12473 Tom Tromey <tom@tromey.com>
12474
12475 * target.h (memory_write_request_s): Remove typedef. Don't define
12476 VEC.
12477 (target_write_memory_blocks): Change argument to std::vector.
12478 (struct memory_write_request): Add constructor.
12479 * target-memory.c (compare_block_starting_address): Return bool.
12480 Change argument types.
12481 (claim_memory): Change arguments to use std::vector.
12482 (split_regular_and_flash_blocks, blocks_to_erase)
12483 (compute_garbled_blocks): Likewise.
12484 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12485 (target_write_memory_blocks): Change argument to std::vector.
12486 * symfile.c (struct load_section_data): Add constructor and
12487 destructor. Use std::vector for "requests".
12488 (struct load_progress_data): Add initializers.
12489 (load_section_callback): Update. Use "new".
12490 (clear_memory_write_data): Remove.
12491 (generic_load): Update.
12492
12493 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12494
12495 * arch/aarch64.h: Use common/tdesc.h.
12496
12497 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12498
12499 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12500 architecture with a 64-bit ABI.
12501
12502 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12503
12504 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12505 ahead of target description loading.
12506
12507 2018-02-26 Tom Tromey <tom@tromey.com>
12508
12509 * stack.c (backtrace_command_1): Update.
12510 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12511 of "flags".
12512 * python/py-framefilter.c (py_print_frame)
12513 (gdbpy_apply_frame_filter): Change type of "flags".
12514 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12515 of "flags".
12516 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12517 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12518 * extension.h (enum frame_filter_flag): Rename from
12519 frame_filter_flags.
12520 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12521 (apply_ext_lang_frame_filter): Change type of "flags".
12522 * extension.c (apply_ext_lang_frame_filter): Change type of
12523 "flags".
12524 * extension-priv.h (struct extension_language_ops)
12525 <apply_frame_filter>: Change type of "flags".
12526
12527 2018-02-26 Tom Tromey <tom@tromey.com>
12528
12529 PR python/16497:
12530 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12531 off-by-one in py_end computation.
12532 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12533 PRINT_MORE_FRAMES.
12534 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12535 constant.
12536
12537 2018-02-26 Tom Tromey <tom@tromey.com>
12538
12539 * dwarf2read.c (struct variant_field): New.
12540 (struct nextfield) <variant>: New field.
12541 (dwarf2_add_field): Handle DW_TAG_variant_part.
12542 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12543 discriminated union.
12544 (read_structure_type): Handle DW_TAG_variant_part.
12545 (handle_struct_member_die): New function, extracted from
12546 process_structure_scope. Handle DW_TAG_variant.
12547 (process_structure_scope): Handle discriminated unions. Call
12548 handle_struct_member_die.
12549
12550 2018-02-26 Tom Tromey <tom@tromey.com>
12551
12552 * rust-lang.h (rust_last_path_segment): Declare.
12553 * rust-lang.c (rust_last_path_segment): Now public. Change
12554 contract.
12555 (struct disr_info): Remove.
12556 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12557 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12558 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12559 (rust_enum_p, rust_enum_variant): New function.
12560 (rust_underscore_fields): Remove "offset" parameter.
12561 (rust_print_enum): New function.
12562 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12563 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12564 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12565 enums.
12566 (rust_internal_print_type): New function, from rust_print_type.
12567 Remove enum code.
12568 (rust_print_type): Call rust_internal_print_type.
12569 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12570 Update enum handling.
12571 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12572 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12573 (rust_union_quirks): New functions.
12574 (process_full_comp_unit, process_full_type_unit): Call
12575 rust_union_quirks.
12576 (process_structure_scope): Update rust_unions if necessary.
12577
12578 2018-02-26 Tom Tromey <tom@tromey.com>
12579
12580 * value.h (value_union_variant): Declare.
12581 * valops.c (value_union_variant): New function.
12582 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12583 (struct discriminant_info): New.
12584 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12585 enumerator.
12586 (struct main_type) <flag_discriminated_union>: New field.
12587
12588 2018-02-26 Tom Tromey <tom@tromey.com>
12589
12590 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12591 unittests/unpack-selftests.c.
12592 * unittests/unpack-selftests.c: New file.
12593 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12594
12595 2018-02-26 Yao Qi <yao.qi@linaro.org>
12596
12597 * dwarf2read.c (struct partial_die_info) <read>: New method.
12598 (read_partial_die): Remove the declaration.
12599 (load_partial_dies): Update.
12600 (partial_die_info::partial_die_info):
12601 (read_partial_die): Change it to partial_die_info::read.
12602
12603 2018-02-26 Yao Qi <yao.qi@linaro.org>
12604
12605 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12606 (fixup_partial_die): Remove declaration.
12607 (scan_partial_symbols): Update.
12608 (partial_die_parent_scope): Likewise.
12609 (partial_die_full_name): Likewise.
12610 (fixup_partial_die): Change it to partial_die_info::fixup.
12611
12612 2018-02-26 Yao Qi <yao.qi@linaro.org>
12613
12614 * dwarf2read.c (read_partial_die): Update the declaration.
12615 (load_partial_dies): Caller update.
12616 (read_partial_die): Remove one argument abbrev_len.
12617
12618 2018-02-26 Yao Qi <yao.qi@linaro.org>
12619
12620 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12621 assignment operator.
12622 (load_partial_dies): Use ctor and copy ctor.
12623 (read_partial_die): Update.
12624 (dwarf2_cu::find_partial_die): Use ctor.
12625
12626 2018-02-26 Yao Qi <yao.qi@linaro.org>
12627
12628 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12629 (find_partial_die_in_comp_unit): Change it to
12630 dwarf2_cu::find_partial_die.
12631 (find_partial_die): Update.
12632
12633 2018-02-26 Yao Qi <yao.qi@linaro.org>
12634
12635 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12636 is NULL.
12637
12638 2018-02-26 Yao Qi <yao.qi@linaro.org>
12639
12640 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12641
12642 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12643
12644 * arch/amd64.h: Use common/tdesc.h.
12645 * arch/i386.c: Likewise.
12646 * arch/i386.h: Likewise.
12647 * arch/tic6x.c: Likewise.
12648 * arch/tdesc.h: Move file from here...
12649 * common/tdesc.h: ...to here.
12650 * features/aarch64-core.c: Regenerate.
12651 * features/aarch64-fpu.c: Regenerate.
12652 * features/i386/32bit-avx.c: Regenerate.
12653 * features/i386/32bit-avx512.c: Regenerate.
12654 * features/i386/32bit-core.c: Regenerate.
12655 * features/i386/32bit-linux.c: Regenerate.
12656 * features/i386/32bit-mpx.c: Regenerate.
12657 * features/i386/32bit-pkeys.c: Regenerate.
12658 * features/i386/32bit-sse.c: Regenerate.
12659 * features/i386/64bit-avx.c: Regenerate.
12660 * features/i386/64bit-avx512.c: Regenerate.
12661 * features/i386/64bit-core.c: Regenerate.
12662 * features/i386/64bit-linux.c: Regenerate.
12663 * features/i386/64bit-mpx.c: Regenerate.
12664 * features/i386/64bit-pkeys.c: Regenerate.
12665 * features/i386/64bit-segments.c: Regenerate.
12666 * features/i386/64bit-sse.c: Regenerate.
12667 * features/i386/x32-core.c: Regenerate.
12668 * features/tic6x-c6xp.c: Regenerate.
12669 * features/tic6x-core.c: Regenerate.
12670 * features/tic6x-gp.c: Regenerate.
12671 * target-descriptions.c: Use common/tdesc.h.
12672 * target-descriptions.h: Likewise.
12673
12674 2018-02-24 Tom Tromey <tom@tromey.com>
12675
12676 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12677 (try_thread_db_load_from_dir, thread_db_load_search): Use
12678 std::string.
12679 (info_auto_load_libthread_db_compare): Return bool. Change
12680 argument types.
12681 (info_auto_load_libthread_db): Use std::vector, std::string.
12682 Remove cleanups.
12683
12684 2018-02-24 Tom Tromey <tom@tromey.com>
12685
12686 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12687 std::string.
12688 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12689 std::string*.
12690 * gdbarch.c: Rebuild.
12691 * gdbarch.h: Rebuild.
12692 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12693 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12694 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12695 std::string*.
12696
12697 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12698
12699 * gdbtypes.h (sect_offset): Change type to uint64_t.
12700 (sect_offset_str): New function.
12701 * dwarf2read.c (create_addrmap_from_aranges): Use
12702 sect_offset_str.
12703 (error_check_comp_unit_head): Likewise.
12704 (create_debug_type_hash_table): Likewise.
12705 (read_cutu_die_from_dwo): Likewise.
12706 (init_cutu_and_read_dies): Likewise.
12707 (init_cutu_and_read_dies_no_follow): Likewise.
12708 (process_psymtab_comp_unit_reader): Likewise.
12709 (partial_die_parent_scope): Likewise.
12710 (peek_die_abbrev): Likewise.
12711 (process_queue): Likewise.
12712 (dwarf2_physname): Likewise.
12713 (read_namespace_alias): Likewise.
12714 (read_import_statement): Likewise.
12715 (create_dwo_cu_reader): Likewise.
12716 (create_cus_hash_table): Likewise.
12717 (lookup_dwo_cutu): Likewise.
12718 (inherit_abstract_dies): Likewise.
12719 (read_func_scope): Likewise.
12720 (read_call_site_scope): Likewise.
12721 (dwarf2_add_member_fn): Likewise.
12722 (read_common_block): Likewise.
12723 (read_module_type): Likewise.
12724 (read_typedef): Likewise.
12725 (read_subrange_type): Likewise.
12726 (load_partial_dies): Likewise.
12727 (read_partial_die): Likewise.
12728 (find_partial_die): Likewise.
12729 (read_str_index): Likewise.
12730 (dwarf2_string_attr): Likewise.
12731 (build_error_marker_type): Likewise.
12732 (lookup_die_type): Likewise.
12733 (dump_die_shallow): Likewise.
12734 (follow_die_ref): Likewise.
12735 (dwarf2_fetch_die_loc_sect_off): Likewise.
12736 (dwarf2_fetch_constant_bytes): Likewise.
12737 (follow_die_sig): Likewise.
12738 (get_signatured_type): Likewise.
12739 (get_DW_AT_signature_type): Likewise.
12740 (dwarf2_find_containing_comp_unit): Likewise.
12741 (set_die_type): Likewise.
12742
12743 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12744
12745 * arch/aarch64.c: Include "common-defs.h".
12746 * arch/amd64.c: Likewise.
12747 * arch/i386.c: Likewise.
12748
12749 2018-02-21 Tom Tromey <tom@tromey.com>
12750
12751 * value.h: (extract_field_op): Update.
12752 * eval.c (extract_field_op): Return a const char *.
12753 * expression.h (parse_expression_for_completion): Update.
12754 * completer.c (complete_expression): Update.
12755 (add_struct_fields): Make fieldname const.
12756 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12757 (mark_completion_tag, parse_exp_in_context_1): Update.
12758 (parse_expression_for_completion): Change "name" to
12759 unique_xmalloc_ptr*.
12760
12761 2018-02-21 Tom Tromey <tom@tromey.com>
12762
12763 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12764
12765 2018-02-21 Yao Qi <yao.qi@linaro.org>
12766
12767 * avr-tdep.c (avr_read_pc): Change parameter type to
12768 readable_regcache.
12769 * gdbarch.sh (read_pc): Likewise.
12770 * gdbarch.c: Re-generated.
12771 * gdbarch.h: Re-generated.
12772 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12773 readable_regcache.
12774 * ia64-tdep.c (ia64_read_pc): Likewise.
12775 * mips-tdep.c (mips_read_pc): Likewise.
12776 * spu-tdep.c (spu_read_pc): Likewise.
12777
12778 2018-02-21 Yao Qi <yao.qi@linaro.org>
12779
12780 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12781 * regcache-dump.c: New file.
12782 * regcache.c: Move register_dump to regcache-dump.c.
12783 (maintenance_print_registers): Likewise.
12784 (maintenance_print_raw_registers): Likewise.
12785 (maintenance_print_cooked_registers): Likewise.
12786 (maintenance_print_register_groups): Likewise.
12787 (maintenance_print_remote_registers): Likewise.
12788 (_initialize_regcache): Likewise.
12789 * regcache.h (register_dump): Moved from regcache.c.
12790
12791 2018-02-21 Yao Qi <yao.qi@linaro.org>
12792
12793 * regcache.c (regcache::regcache): Update.
12794 (regcache::invalidate): Move it to detached_regcache::invalidate.
12795 (get_thread_arch_aspace_regcache): Update.
12796 (regcache::raw_update): Update.
12797 (regcache::cooked_read): Remove some code.
12798 (regcache::cooked_read_value): Likewise.
12799 (regcache::raw_write): Remove assert on m_readonly_p.
12800 (regcache::raw_supply_integer): Move it to
12801 detached_regcache::raw_supply_integer.
12802 (regcache::raw_supply_zeroed): Likewise.
12803 * regcache.h (detached_regcache) <raw_supply_integer>: New
12804 declaration.
12805 <raw_supply_zeroed, invalidate>: Likewise.
12806 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12807 <invalidate>: Likewise.
12808 <m_readonly_p>: Removed.
12809
12810 2018-02-21 Yao Qi <yao.qi@linaro.org>
12811
12812 * infcmd.c (get_return_value): Let stop_regs point to
12813 get_current_regcache.
12814 * regcache.c (regcache::regcache): Remove.
12815 (register_dump_reg_buffer): New class.
12816 (regcache_print): Adjust.
12817 * regcache.h (regcache): Remove constructors.
12818
12819 2018-02-21 Yao Qi <yao.qi@linaro.org>
12820
12821 * regcache.c (class register_dump): New class.
12822 (register_dump_regcache, register_dump_none): New class.
12823 (register_dump_remote, register_dump_groups): New class.
12824 (regcache_print): Update.
12825 * regcache.h (regcache_dump_what): Move it to regcache.c.
12826 (regcache) <dump>: Remove.
12827
12828 2018-02-21 Yao Qi <yao.qi@linaro.org>
12829
12830 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12831 reg_buffer_rw *.
12832 (jit_unwind_reg_set_impl): Call raw_supply.
12833 (jit_frame_sniffer): Use reg_buffer_rw.
12834 * record-full.c (record_full_core_regbuf): Change its type.
12835 (record_full_core_open_1): Use reg_buffer_rw.
12836 (record_full_close): Likewise.
12837 (record_full_core_fetch_registers): Use regcache->raw_supply.
12838 (record_full_core_store_registers): Likewise.
12839 * regcache.c (regcache::get_register_status): Move it to
12840 reg_buffer.
12841 (regcache_raw_set_cached_value): Remove.
12842 (regcache::raw_set_cached_value): Remove.
12843 (regcache::raw_write): Call raw_supply.
12844 (regcache::raw_supply): Move it to reg_buffer_rw.
12845 * regcache.h (regcache_raw_set_cached_value): Remove.
12846 (reg_buffer_rw): New class.
12847
12848 2018-02-21 Yao Qi <yao.qi@linaro.org>
12849
12850 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12851 readonly_detached_regcache.
12852 (dummy_frame_prev_register): Use regcache->cooked_read.
12853 * frame.c (frame_save_as_regcache): Change return type.
12854 (frame_pop): Update.
12855 * frame.h (frame_save_as_regcache): Update declaration.
12856 * inferior.h (get_infcall_suspend_state_regcache): Update
12857 declaration.
12858 * infrun.c (infcall_suspend_state) <registers>: use
12859 readonly_detached_regcache.
12860 (save_infcall_suspend_state): Don't use regcache_dup.
12861 (get_infcall_suspend_state_regcache): Change return type.
12862 * linux-fork.c (struct fork_info) <savedregs>: Change to
12863 readonly_detached_regcache.
12864 <pc>: New field.
12865 (fork_save_infrun_state): Don't use regcache_dup.
12866 (info_checkpoints_command): Adjust.
12867 * mi/mi-main.c (register_changed_p): Update declaration.
12868 (mi_cmd_data_list_changed_registers): Use
12869 readonly_detached_regcache.
12870 (register_changed_p): Change parameter type to
12871 readonly_detached_regcache.
12872 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12873 readonly_detached_regcache.
12874 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12875 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12876 New.
12877 (regcache::save): Move it to reg_buffer.
12878 (regcache::restore): Change parameter type.
12879 (regcache_dup): Remove.
12880 * regcache.h (reg_buffer) <save>: New method.
12881 (readonly_detached_regcache): New class.
12882 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12883 readonly_detached_regcache.
12884 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12885
12886 2018-02-21 Yao Qi <yao.qi@linaro.org>
12887
12888 * frame.c (frame_save_as_regcache): Use regcache method save.
12889 (frame_pop): Use regcache method restore.
12890 * infrun.c (restore_infcall_suspend_state): Likewise.
12891 * linux-fork.c (fork_load_infrun_state): Likewise.
12892 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12893 save.
12894 * regcache.c (regcache_save): Remove.
12895 (regcache::restore): More asserts.
12896 (regcache_cpy): Remove.
12897 * regcache.h (regcache_save): Remove the declaration.
12898 (regcache::restore): Move from private to public.
12899 Remove the friend declaration of regcache_cpy.
12900 (regcache_cpy): Remove declaration.
12901
12902 2018-02-21 Yao Qi <yao.qi@linaro.org>
12903
12904 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12905 parameter type to 'readable_regcache *'.
12906 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12907 * arm-tdep.c (arm_neon_quad_read): Likewise.
12908 (arm_pseudo_read): Likewise.
12909 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12910 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12911 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12912 * gdbarch.c: Re-generated.
12913 * gdbarch.h: Re-generated.
12914 * gdbarch.sh (pseudo_register_read): Change parameter type to
12915 'readable_regcache *'.
12916 (pseudo_register_read_value): Likewise.
12917 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12918 (h8300_pseudo_register_read): Likewise.
12919 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12920 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12921 (i386_pseudo_register_read_into_value): Likewise.
12922 (i386_pseudo_register_read_value): Likewise.
12923 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12924 declaration.
12925 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12926 * m32c-tdep.c (m32c_raw_read): Likewise.
12927 (m32c_read_flg): Likewise.
12928 (m32c_banked_register): Likewise.
12929 (m32c_banked_read): Likewise.
12930 (m32c_sb_read): Likewise.
12931 (m32c_part_read): Likewise.
12932 (m32c_cat_read): Likewise.
12933 (m32c_r3r2r1r0_read): Likewise.
12934 (m32c_pseudo_register_read): Likewise.
12935 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12936 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12937 (mep_pseudo_cr64_read): Likewise.
12938 (mep_pseudo_register_read): Likewise.
12939 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12940 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12941 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12942 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12943 (regcache::cooked_read): Likewise.
12944 (regcache::cooked_read_value): Likewise.
12945 (regcache_cooked_read_signed):
12946 (regcache::cooked_read): Likewise.
12947 * regcache.h (readable_regcache): New class.
12948 (regcache): Inherit readable_regcache. Move some methods to
12949 readable_regcache.
12950 * rl78-tdep.c (rl78_pseudo_register_read): Change
12951 parameter type to 'readable_regcache *'.
12952 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12953 (e500_pseudo_register_read): Change parameter type to
12954 'readable_regcache *'.
12955 (dfp_pseudo_register_read): Likewise.
12956 (vsx_pseudo_register_read): Likewise.
12957 (efpr_pseudo_register_read): Likewise.
12958 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12959 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12960 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12961 (sh64_pseudo_register_read): Likewise.
12962 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12963 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12964 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12965 (spu_pseudo_register_read): Likewise.
12966 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12967 (xtensa_pseudo_register_read): Likewise.
12968
12969 2018-02-21 Yao Qi <yao.qi@linaro.org>
12970
12971 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12972 (regcache::arch): Move it to reg_buffer::arch.
12973 (regcache::register_buffer): Likewise.
12974 (regcache::assert_regnum): Likewise.
12975 (regcache::num_raw_registers): Likewise.
12976 * regcache.h (reg_buffer): New class.
12977 (regcache): Inherit reg_buffer.
12978
12979 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12980
12981 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12982 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12983
12984 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12985
12986 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12987
12988 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12989
12990 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12991 (SFILES): Remove common/*.c files.
12992 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12993 * common/common.host: Add common reference.
12994 * configure.ac: Likewise.
12995 * configure: Regenerate.
12996
12997 2018-02-16 Yao Qi <yao.qi@linaro.org>
12998
12999 * block.c (block_namespace_info): Inherit allocate_on_obstack.
13000 (block_initialize_namespace): Use new.
13001 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13002 (dwarf2_free_objfile): Use delete.
13003 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13004 (copy_type_recursive): Use new.
13005 * gdb_obstack.h (allocate_on_obstack): New.
13006
13007 2018-02-15 Yao Qi <yao.qi@linaro.org>
13008
13009 PR gdb/22849
13010 * inferior.c (exit_inferior_1): Reset inf->control.
13011
13012 2018-02-15 Joel Brobecker <brobecker@adacore.com>
13013
13014 * ada-lang.c (ada_to_fixed_value_create): Delete advance
13015 declaration.
13016
13017 2018-02-14 Pedro Alves <palves@redhat.com>
13018
13019 * frame-unwind.c (frame_unwind_try_unwinder): Always call
13020 frame_cleanup_after_sniffer on exception.
13021
13022 2018-02-14 Tom Tromey <tom@tromey.com>
13023
13024 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13025 const.
13026 (solib_bfd_open): Make pathname const.
13027 * solib.c (solib_bfd_open): Make pathname const.
13028 * solib-spu.c (spu_bfd_fopen): Make name const.
13029 (spu_bfd_open): Make pathname const.
13030 * solib-darwin.c (darwin_bfd_open): Make pathname const.
13031 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13032
13033 2018-02-14 Tom Tromey <tom@tromey.com>
13034
13035 * symfile.c (symfile_bfd_open): Update.
13036 * source.h (openp, source_full_path_of, find_and_open_source):
13037 Change argument type to unique_xmalloc_ptr.
13038 * source.c (openp): Take a unique_xmalloc_ptr.
13039 (source_full_path_of, find_and_open_source): Likewise.
13040 (open_source_file, symtab_to_fullname): Update.
13041 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13042 unique_xmalloc_ptr.
13043 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13044 (exec_file_find): Update.
13045 * psymtab.c (psymtab_to_fullname): Update.
13046 * nto-tdep.h (nto_find_and_open_solib): Update.
13047 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13048 unique_xmalloc_ptr.
13049 * exec.c (exec_file_attach): Update.
13050 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13051 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13052
13053 2018-02-14 Tom Tromey <tom@tromey.com>
13054
13055 * solib.c: Include source.h.
13056 * nto-tdep.c: Include source.h.
13057 * mi/mi-cmd-env.c: Include source.h.
13058 * infcmd.c: Include source.h.
13059 * exec.c: Include source.h.
13060 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13061 (add_path, directory_switch, source_path, init_source_path): Move
13062 declarations...
13063 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13064 (add_path, directory_switch, source_path, init_source_path):
13065 ...here.
13066
13067 2018-02-14 Tom Tromey <tom@tromey.com>
13068
13069 * solist.h (exec_file_find, solib_find): Return
13070 unique_xmalloc_ptr.
13071 (solib_bfd_fopen): Take a const char *.
13072 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13073 (exec_file_find, solib_find): Likewise.
13074 (solib_bfd_fopen): Do not take ownership of "pathname".
13075 (solib_bfd_open): Use unique_xmalloc_ptr.
13076 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13077 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13078 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13079 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13080
13081 2018-02-14 Joel Brobecker <brobecker@adacore.com>
13082
13083 * ada-lang.c (name_match_type_from_name): Remove reference to
13084 ada_name_for_lookup in function's documentation.
13085 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13086
13087 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13088
13089 * defs.h (enum openp_flags): New enum.
13090 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13091 Move to enum openp_flags.
13092 (openp_flags): New enum flags.
13093 (openp): Change parameter type to openp_flags.
13094 * source.c (openp): Change parameter type to openp_flags.
13095 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13096 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13097
13098 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13099
13100 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13101 per-command.
13102
13103 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13104
13105 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13106 into...
13107 (class dwarf2_queue_guard): ...the destructor of this new class.
13108 (dw2_do_instantiate_symtab): Create instance of the new class
13109 dwarf2_queue_guard, remove cleanup.
13110
13111 2018-02-09 Tom Tromey <tom@tromey.com>
13112
13113 * source.c (find_source_lines): Don't reference past the end of
13114 the vector.
13115
13116 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13117
13118 * remote.c (remote_btrace_maybe_reopen): Change error message.
13119 * btrace.c (btrace_enable): Likewise.
13120 (parse_xml_btrace): Likewise.
13121 (parse_xml_btrace_conf): Likewise.
13122
13123 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13124
13125 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13126 (linux_enable_pt, linux_enable_bts): Call
13127 diagnose_perf_event_open_fail.
13128
13129 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13130
13131 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13132 Remove parameter and change return type. Update callers. Move it.
13133 (linux_enable_bts, linux_enable_pt): Improve error message.
13134 (linux_enable_pt): Remove zero buffer size check.
13135 (linux_enable_btrace): Improve error messages. Remove NULL return
13136 check.
13137
13138 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13139
13140 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13141 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13142 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13143 (linux_supports_pt, linux_supports_btrace): Remove.
13144 (linux_enable_bts): Call cpu_supports_bts.
13145 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13146 * remote.c (remote_supports_btrace): Remove.
13147 (init_remote_ops): Remove remote_supports_btrace.
13148 * target-delegates.c: Regenerated.
13149 * target.c (target_supports_btrace): Remove.
13150 * target.h (target_ops) <to_supports_btrace>: Remove
13151 (target_supports_btrace): Remove.
13152 * x86-linux-nat.c (x86_linux_create_target): Remove
13153 linux_supports_btrace.
13154
13155 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13156
13157 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13158 btrace failed.
13159 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13160 exception and use message in own exception.
13161
13162 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13163
13164 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13165 (perf_event_pt_event_type): Use gdb_file_up.
13166 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13167 scoped_fd, and scoped_mmap.
13168
13169 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13170
13171 * common/scoped_mmap.h: New.
13172 * unittests/scoped_mmap-selftest.c: New.
13173 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13174 unittests/scoped_mmap-selftest.c.
13175
13176 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13177
13178 * common/scoped_fd.h: New.
13179 * unittests/scoped_fd-selftest.c: New.
13180 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13181 unittests/scoped_fd-selftest.c.
13182
13183 2018-02-09 Tom Tromey <tom@tromey.com>
13184
13185 * auto-load.c (auto_load_section_scripts): Use
13186 gdb::unique_xmalloc_ptr.
13187
13188 2018-02-09 Tom Tromey <tom@tromey.com>
13189
13190 * auto-load.c (execute_script_contents): Use std::string.
13191
13192 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13193
13194 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13195 Python function, rather than a new command.
13196
13197 2018-02-08 Tom Tromey <tom@tromey.com>
13198
13199 * solib.c (solib_find_1): Use std::string.
13200 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13201
13202 2018-02-08 Tom Tromey <tom@tromey.com>
13203
13204 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13205
13206 2018-02-08 Tom Tromey <tom@tromey.com>
13207
13208 * source.c (find_source_lines): Use gdb::def_vector.
13209
13210 2018-02-08 Tom Tromey <tom@tromey.com>
13211
13212 * macrocmd.c (struct temporary_macro_definition): New.
13213 (macro_define_command): Use temporary_macro_definition. Remove
13214 cleanups.
13215 (free_macro_definition_ptr): Remove.
13216
13217 2018-02-08 Tom Tromey <tom@tromey.com>
13218
13219 * macroexp.c (maybe_expand): Use std::string.
13220
13221 2018-02-08 Tom Tromey <tom@tromey.com>
13222
13223 * macroexp.c (struct macro_buffer): Add initializers for some
13224 members.
13225 (init_buffer, init_shared_buffer, free_buffer)
13226 (free_buffer_return_text): Remove.
13227 (macro_buffer): New constructors.
13228 (~macro_buffer): New destructor.
13229 (macro_buffer::set_shared): New method.
13230 (macro_buffer::resize_buffer, macro_buffer::appendc)
13231 (macro_buffer::appendmem): Now methods, not free functions.
13232 (set_token, append_tokens_without_splicing, stringify)
13233 (macro_stringify): Update.
13234 (gather_arguments): Change return type. Remove argc_p argument,
13235 add args_ptr argument. Use std::vector.
13236 (substitute_args): Remove argc argument. Accept std::vector.
13237 (expand): Update. Use std::vector.
13238 (scan, macro_expand, macro_expand_next): Update.
13239
13240 2018-02-08 Tom Tromey <tom@tromey.com>
13241
13242 * symtab.c (default_collect_symbol_completion_matches_break_on):
13243 Use unique_xmalloc_ptr.
13244 * macroscope.h: (sal_macro_scope, user_macro_scope)
13245 (default_macro_scope): Return unique_xmalloc_ptr.
13246 * macroscope.c (sal_macro_scope, user_macro_scope)
13247 (default_macro_scope): Return unique_xmalloc_ptr.
13248 * macroexp.h (macro_expand, macro_expand_once): Return
13249 unique_xmalloc_ptr.
13250 * macroexp.c (macro_expand, macro_expand_once): Return
13251 unique_xmalloc_ptr.
13252 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13253 (info_macro_command, info_macros_command): Use
13254 unique_xmalloc_ptr.
13255 * compile/compile-c-support.c (write_macro_definitions): Use
13256 unique_xmalloc_ptr.
13257 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13258
13259 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13260
13261 * value.c (value_static_field): Assign field type instead of
13262 containing type when returning an optimized out value.
13263
13264 2018-02-06 Yao Qi <yao.qi@linaro.org>
13265
13266 * ft32-tdep.c (ft32_read_pc): Remove.
13267 (ft32_write_pc): Remove.
13268 (ft32_gdbarch_init): Update.
13269 * m32r-tdep.c (m32r_read_pc): Remove.
13270 (m32r_gdbarch_init): Update.
13271 * mep-tdep.c (mep_read_pc): Remove.
13272 (mep_gdbarch_init): Update.
13273 * microblaze-tdep.c (microblaze_write_pc): Remove.
13274 (microblaze_gdbarch_init): Update.
13275 * mn10300-tdep.c (mn10300_read_pc): Remove.
13276 (mn10300_write_pc): Remove.
13277 (mn10300_gdbarch_init): Update.
13278 * moxie-tdep.c (moxie_read_pc): Remove.
13279 (moxie_write_pc): Remove.
13280 (moxie_gdbarch_init): Update.
13281
13282 2018-02-06 Yao Qi <yao.qi@linaro.org>
13283
13284 * expprint.c (print_subexp_standard): Handle
13285 OP_F77_UNDETERMINED_ARGLIST.
13286 (dump_subexp_body_standard): Likewise.
13287
13288 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13289
13290 * target-descriptions.c (tdesc_element_visitor) Add empty
13291 implementations.
13292 (tdesc_type): Move make_gdb_type from here.
13293 (tdesc_type_builtin): Likewise.
13294 (tdesc_type_vector): Likewise.
13295 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13296 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13297 (make_gdb_type_union): Likewise.
13298 (make_gdb_type_flags): Likewise.
13299 (make_gdb_type_enum): Likewise.
13300 (make_gdb_type): New function.
13301 (tdesc_register_type): Use static make_gdb_type.
13302
13303 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13304
13305 * infcmd.c (default_print_one_register_info): Align natural-format
13306 column values consistently one under another.
13307 (pad_to_column): New function.
13308
13309 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13310
13311 * dwarf2read.c (dwarf2_physname): Move commment.
13312
13313 2018-02-01 Leszek Swirski <leszeks@google.com>
13314
13315 * varobj.c (varobj_formatted_print_options): Allow recursive
13316 pretty printing if pretty printing is enabled.
13317
13318 2018-02-01 Leszek Swirski <leszeks@google.com>
13319
13320 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13321 names after a structop as a filename.
13322
13323 2018-02-01 Yao Qi <yao.qi@linaro.org>
13324
13325 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13326 (arm_record_coproc_data_proc): Likewise.
13327
13328 2018-02-01 Yao Qi <yao.qi@linaro.org>
13329
13330 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13331
13332 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13333
13334 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13335 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13336
13337 2018-01-31 Pedro Alves <palves@redhat.com>
13338
13339 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13340 * inflow.c (child_terminal_save_inferior): Wrap reference to
13341 tcgetpgrp in HAVE_TERMIOS_H.
13342 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13343 _WIN32.
13344 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13345 always iterate over all inferiors.
13346 (gdbsim_cntrl_c): Adjust.
13347 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13348
13349 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13350
13351 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13352 index type is objfile-owned if the element type is as well.
13353
13354 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13355
13356 GDB 8.1 released.
13357
13358 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13359
13360 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13361 "features/s390x-linux64.c".
13362 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13363 s390_linux32 and s390x_linux64.
13364 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13365 default tdesc.
13366 * s390-tdep.c: Include "features/s390-linux32.c" and
13367 "features/s390x-linux64.c".
13368 (s390_tdesc_valid): Add check for tdesc_has_registers.
13369 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13370 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13371 tdesc_s390x_linux64.
13372 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13373 tdesc_s390x_linux64 to...
13374 * s390-tdep.h: ...here.
13375
13376 2018-01-30 Pedro Alves <palves@redhat.com>
13377
13378 PR gdb/13211
13379 * config.in, configure: Regenerate.
13380 * configure.ac: Check for getpgid.
13381 * go32-nat.c (go32_pass_ctrlc): New.
13382 (go32_target): Install it.
13383 * inf-child.c (inf_child_target): Install
13384 child_terminal_save_inferior, child_pass_ctrlc and
13385 child_interrupt.
13386 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13387 (inf_ptrace_target): No longer install it.
13388 * infcmd.c (interrupt_target_1): Adjust.
13389 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13390 (child_interrupt): Declare.
13391 (inferior::terminal_state): New.
13392 * inflow.c (struct terminal_info): Update comments.
13393 (inferior_process_group): Delete.
13394 (terminal_is_ours): Delete.
13395 (gdb_tty_state): New.
13396 (child_terminal_init): Adjust.
13397 (is_gdb_terminal, sharing_input_terminal_1)
13398 (sharing_input_terminal): New functions.
13399 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13400 Set the process's actual process group in the foreground if
13401 possible. Handle is_ours_for_output/is_ours distinction. Don't
13402 mark terminal as the inferior's if not sharing GDB's terminal.
13403 Don't check attach_flag.
13404 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13405 pass down a target_terminal_state.
13406 (child_terminal_save_inferior): New, factored out from ...
13407 (child_terminal_ours_1): ... this. Handle
13408 target_terminal_state::is_ours_for_output.
13409 (child_interrupt, child_pass_ctrlc): New.
13410 (inflow_inferior_exit): Clear the inferior's terminal_state.
13411 (copy_terminal_info): Copy the inferior's terminal state.
13412 (_initialize_inflow): Remove reference to terminal_is_ours.
13413 * inflow.h (inferior_process_group): Delete.
13414 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13415 * procfs.c (procfs_target): Don't install procfs_interrupt.
13416 (procfs_interrupt): Delete.
13417 * remote.c (remote_serial_quit_handler): Adjust.
13418 (remote_interrupt): Remove ptid parameter. Adjust.
13419 * target-delegates.c: Regenerate.
13420 * target.c: Include "terminal.h".
13421 (target_terminal::terminal_state): Rename to ...
13422 (target_terminal::m_terminal_state): ... this.
13423 (target_terminal::init): Adjust.
13424 (target_terminal::inferior): Adjust to per-inferior
13425 terminal_state.
13426 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13427 (target_terminal::ours, target_terminal::ours_for_output): Use
13428 target_terminal_is_ours_kind.
13429 (target_interrupt): Remove ptid parameter. Adjust.
13430 (default_target_pass_ctrlc): Adjust.
13431 * target.h (target_ops::to_terminal_save_inferior): New field.
13432 (target_ops::to_interrupt): Remove ptid_t parameter.
13433 (target_interrupt): Remove ptid_t parameter. Update comment.
13434 (target_pass_ctrlc): Update comment.
13435 * target/target.h (target_terminal_state): New scoped enum,
13436 factored out of ...
13437 (target_terminal::terminal_state): ... here.
13438 (target_terminal::inferior): Update comments.
13439 (target_terminal::restore_inferior): New.
13440 (target_terminal::is_inferior, target_terminal::is_ours)
13441 (target_terminal::is_ours_for_output): Adjust.
13442 (target_terminal::scoped_restore_terminal_state): Adjust to
13443 rename, and call restore_inferior() instead of inferior().
13444 (target_terminal::scoped_restore_terminal_state::m_state): Change
13445 type.
13446 (target_terminal::terminal_state): Rename to ...
13447 (target_terminal::m_terminal_state): ... this and change type.
13448
13449 2018-01-30 Pedro Alves <palves@redhat.com>
13450
13451 * linux-nat.c (wait_for_signal): New function.
13452 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13453 directly.
13454 (async_terminal_is_ours)
13455 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13456 (linux_nat_add_target): Don't override
13457 to_terminal_inferior/to_terminal_ours.
13458
13459 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13460
13461 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13462
13463 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13464
13465 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13466 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13467 dwarf2_per_objfile_free here.
13468 (dwarf2_per_objfile_free): Remove.
13469 (_initialize_dwarf2_read): Don't register
13470 dwarf2_per_objfile_free as a registry cleanup.
13471
13472 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13473
13474 Avoid compilation errors in MinGW native builds
13475
13476 The error is triggered by including python-internal.h, and the
13477 error message is:
13478
13479 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13480 from build-gnulib/import/math.h:27,
13481 from d:/usr/Python26/include/pyport.h:235,
13482 from d:/usr/Python26/include/Python.h:58,
13483 from python/python-internal.h:94,
13484 from python/py-arch.c:24:
13485 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13486 using ::hypot;
13487 ^~~~~
13488
13489 This happens because Python headers define 'hypot' to expand t
13490 '_hypot' in the Windows builds.
13491 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13492 'hypoth'. This avoids a compilation error.
13493
13494 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13495
13496 * MAINTAINERS (Write After Approval): Fix ordering.
13497
13498 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13499
13500 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13501
13502 2018-01-26 Alan Modra <amodra@gmail.com>
13503
13504 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13505 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13506 Remove nop. Make const. Comment.
13507 (powerpc32_plt_stub_so_2): New.
13508 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13509 Correct count. Update uses.
13510 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13511 Move common code reading PLT entry word. Correct
13512 powerpc32_plt_stub PLT address calculation.
13513 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13514 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13515 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13516 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13517 (ppc64_standard_linkage8): Likewise.
13518 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13519 Correct insns description.
13520 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13521
13522 2018-01-24 Pedro Alves <palves@redhat.com>
13523
13524 GCC PR libstdc++/83906
13525 * gdbtypes.c (operator==(const dynamic_prop &,
13526 const dynamic_prop &)): New.
13527 (operator==(const range_bounds &, const range_bounds &)): New.
13528 (check_types_equal): Use them instead of memcmp.
13529 * gdbtypes.h (operator==(const dynamic_prop &,
13530 const dynamic_prop &)): Declare.
13531 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13532 (operator==(const range_bounds &, const range_bounds &)): Declare.
13533 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13534
13535 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13536
13537 * s390-linux-tdep.c (s390_record_address_mask)
13538 (s390_record_calc_disp_common, s390_record_calc_disp)
13539 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13540 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13541 (s390_process_record): Move to s390-tdep.c.
13542 (s390_linux_init_abi_any): Adjust.
13543 * s390-tdep.c (s390_record_address_mask)
13544 (s390_record_calc_disp_common, s390_record_calc_disp)
13545 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13546 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13547 (s390_process_record): Moved from s390-linux-tdep.c
13548 (s390_gdbarch_init): Adjust.
13549
13550 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13551
13552 * s390-linux-nat.c (s390-tdep.h): New include.
13553 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13554 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13555 (ALLDEPFILES): Add s390-tdep.c.
13556 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13557 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13558 * s390-tdep.h: ...this. New file.
13559 * s390-linux-tdep.c (s390-tdep.h): New include.
13560 (_initialize_s390_tdep): Rename to...
13561 (_initialize_s390_linux_tdep): ...this and adjust.
13562 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13563 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13564 s390-tdep.h.
13565 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13566 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13567 (s390_is_partial_instruction, s390_software_single_step)
13568 (is_non_branch_ril, s390_displaced_step_copy_insn)
13569 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13570 (s390_prologue_data, s390_addr, s390_store, s390_load)
13571 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13572 (s390_register_call_saved, s390_guess_tracepoint_registers)
13573 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13574 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13575 (s390_pseudo_register_name, s390_pseudo_register_type)
13576 (s390_pseudo_register_read, s390_pseudo_register_write)
13577 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13578 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13579 (s390_addr_bits_remove, s390_address_class_type_flags)
13580 (s390_address_class_type_flags_to_name)
13581 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13582 (s390_function_arg_float, s390_function_arg_vector)
13583 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13584 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13585 (s390_frame_align, s390_register_return_value, s390_return_value)
13586 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13587 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13588 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13589 (s390_trad_frame_prev_register, s390_unwind_cache)
13590 (s390_prologue_frame_unwind_cache)
13591 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13592 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13593 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13594 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13595 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13596 (s390_frame_base_address, s390_local_base_address)
13597 (s390_frame_base, s390_gcc_target_options)
13598 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13599 (s390_validate_reg_range, s390_tdesc_valid)
13600 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13601 * s390-tdep.c: ...this. New file.
13602
13603 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13604
13605 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13606 (s390_process_record, s390_gdbarch_tdep_alloc)
13607 (s390_linux_init_abi_any): Use/set new hook.
13608
13609 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13610
13611 * s390-linux-tdep.c (osabi.h): New include.
13612 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13613 (s390_linux_init_abi_any): New functions.
13614 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13615
13616 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13617
13618 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13619 tdesc_has_registers check
13620
13621 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13622
13623 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13624 (s390_validate_reg_range): New macro.
13625 (s390_gdbarch_init): Adjust.
13626
13627 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13628
13629 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13630 (s390_gdbarch_tdep_alloc): Adjust.
13631 (s390_gdbarch_init): Adjust.
13632
13633 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13634
13635 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13636 <have_tdb>: Change type to bool.
13637 (s390_gdbarch_tdep_alloc): Adjust.
13638 (s390_gdbarch_init): Adjust.
13639
13640 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13641
13642 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13643 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13644 (s390_gdbarch_tdep_alloc): New function.
13645 (s390_gdbarch_init): Allocate tdep at start and use its fields
13646 instead of separate variables.
13647
13648 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13649
13650 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13651 when looking for cached gdbarch and add comment for remaining.
13652
13653 2018-01-22 Pedro Alves <palves@redhat.com>
13654 Sergio Durigan Junior <sergiodj@redhat.com>
13655
13656 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13657 case.
13658
13659 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13660
13661 * MAINTAINERS: Update my company e-mail address.
13662
13663 2018-01-22 Yao Qi <yao.qi@linaro.org>
13664
13665 * regcache.c (cooked_write_test): New function.
13666 (_initialize_regcache): Register the test.
13667
13668 2018-01-22 Yao Qi <yao.qi@linaro.org>
13669
13670 * ia64-tdep.c (ia64_pseudo_register_read): Call
13671 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13672 * m32c-tdep.c (m32c_cat_read): Likewise.
13673 (m32c_r3r2r1r0_read): Likewise.
13674 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13675 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13676
13677 2018-01-22 Yao Qi <yao.qi@linaro.org>
13678
13679 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13680 method raw_read instead of regcache_raw_read.
13681 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13682 * arm-tdep.c (arm_neon_quad_read): Likewise.
13683 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13684 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13685 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13686 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13687 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13688 (i386_pseudo_register_read_into_value): Likewise.
13689 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13690 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13691 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13692 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13693 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13694 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13695 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13696 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13697 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13698
13699 2018-01-22 Yao Qi <yao.qi@linaro.org>
13700
13701 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13702 * configure.tgt: Remove target mt.
13703 * mt-tdep.c: Remove.
13704 * regcache.c (cooked_read_test): Remove the check for mt.
13705
13706 2018-01-22 Yao Qi <yao.qi@linaro.org>
13707
13708 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13709 instead of gdbarch_pseudo_register_read_value.
13710
13711 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13712
13713 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13714 language is Ada.
13715
13716 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13717
13718 * linespec.c (create_sals_line_offset): Remove code that preserved
13719 the symtab_and_line's line number.
13720
13721 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13722
13723 * varobj.c (varobj_create): Don't set valid_block when creating a
13724 floating varobj.
13725
13726 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13727
13728 * varobj.c (varobj_create): Remove out of date comment.
13729
13730 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13731
13732 PR mi/20395
13733 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13734 updating innermost block.
13735 * parse.c (innermost_block_tracker::update): Take extra type
13736 parameter, and check types match before updating innermost block.
13737 (write_dollar_variable): Update innermost block for registers.
13738 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13739 (innermost_block_tracker::innermost_block_tracker): Initialise
13740 m_types member.
13741 (innermost_block_tracker::reset): Take type parameter.
13742 (innermost_block_tracker::update): Take type parameter, and pass
13743 type through as needed.
13744 (innermost_block_tracker::m_types): New member.
13745 * varobj.c (varobj_create): Pass type when reseting innermost
13746 block.
13747
13748 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13751 * ada-lang.c (resolve_subexp): Likewise.
13752 * breakpoint.c (set_breakpoint_condition) Likewise.
13753 (watch_command_1) Likewise.
13754 * c-exp.y (variable): Likewise.
13755 * d-exp.y (PrimaryExpression): Likewise.
13756 * f-exp.y (variable): Likewise.
13757 * go-exp.y (variable): Likewise.
13758 * m2-exp.y (variable): Likewise.
13759 * objfiles.c (objfile::~objfile): Likewise.
13760 * p-exp.y (variable): Likewise.
13761 * parse.c (innermost_block): Change type.
13762 * parser-defs.h (class innermost_block_tracker): New.
13763 (innermost_block): Change to innermost_block_tracker.
13764 * printcmd.c (display_command): Switch to innermost_block API.
13765 (do_one_display): Likewise.
13766 * rust-exp.y (do_one_display): Likewise.
13767 * symfile.c (clear_symtab_users): Likewise.
13768 * varobj.c (varobj_create): Switch to innermost_block API, replace
13769 use of innermost_block with block stored on varobj object.
13770
13771 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13772
13773 * expression.h (innermost_block): Remove declaration.
13774 * varobj.c: Add 'parser-defs.h' include.
13775
13776 2018-01-19 Tom Tromey <tom@tromey.com>
13777
13778 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13779 symbols in the static and global blocks.
13780
13781 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13782
13783 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13784 gdb_ptrace.h, and move including gdb_wait.h ...
13785 * nat/linux-ptrace.h: ... to here.
13786
13787 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13788
13789 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13790 inf_ptrace_detach_success.
13791 (inf_ptrace_detach_success): Add inferior parameter, use it
13792 instead of inferior_ptid, pass it to detach_inferior.
13793 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13794 parameter.
13795 * inferior.c (detach_inferior): Add overload that takes an
13796 inferior object.
13797 * inferior.h (detach_inferior): Likewise.
13798 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13799 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13800 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13801
13802 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13803
13804 * target.h (struct target_ops) <to_detach>: Add inferior
13805 parameter.
13806 (target_detach): Likewise.
13807 * target.c (dispose_inferior): Pass inferior down.
13808 (target_detach): Pass inferior down. Assert that it is equal to
13809 the current inferior.
13810 * aix-thread.c (aix_thread_detach): Pass inferior down.
13811 * corefile.c (core_file_command): Pass current_inferior() down.
13812 * corelow.c (core_detach): Add inferior parameter.
13813 * darwin-nat.c (darwin_detach): Likewise.
13814 * gnu-nat.c (gnu_detach): Likewise.
13815 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13816 * infcmd.c (detach_command): Pass current_inferior() down to
13817 target_detach.
13818 * infrun.c (follow_fork_inferior): Pass parent_inf to
13819 target_detach.
13820 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13821 target_detach.
13822 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13823 * linux-thread-db.c (thread_db_detach): Likewise.
13824 * nto-procfs.c (procfs_detach): Likewise.
13825 * procfs.c (procfs_detach): Likewise.
13826 * record.c (record_detach): Likewise.
13827 * record.h (struct inferior): Forward-declare.
13828 (record_detach): Add inferior parameter.
13829 * remote-sim.c (gdbsim_detach): Likewise.
13830 * remote.c (remote_detach_1): Likewise.
13831 (remote_detach): Likewise.
13832 (extended_remote_detach): Likewise.
13833 * sol-thread.c (sol_thread_detach): Likewise.
13834 * target-debug.h (target_debug_print_inferior_p): New macro.
13835 * target-delegates.c: Re-generate.
13836 * top.c (kill_or_detach): Pass inferior down to target_detach.
13837 * windows-nat.c (windows_detach): Add inferior parameter.
13838
13839 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13840
13841 * target.h (struct target_ops) <to_detach>: Remove args
13842 parameter.
13843 (target_detach): Likewise.
13844 * target.c (dispose_inferior): Adjust.
13845 (target_detach): Remove args parameter, adjust.
13846 * aix-thread.c (aix_thread_detach): Adjust.
13847 * corefile.c (core_file_command): Adjust.
13848 * corelow.c (core_detach): Adjust.
13849 * darwin-nat.c (darwin_detach): Adjust.
13850 * gnu-nat.c (gnu_detach): Adjust.
13851 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13852 * infcmd.c (detach_command): Adjust
13853 * infrun.c (follow_fork_inferior): Adjust.
13854 (handle_vfork_child_exec_or_exit): Adjust.
13855 * linux-fork.c (linux_fork_detach): Remove args parameter.
13856 * linux-fork.h (linux_fork_detach): Likewise.
13857 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13858 * linux-thread-db.c (thread_db_detach): Likewise.
13859 * nto-procfs.c (procfs_detach): Likewise.
13860 * procfs.c (procfs_detach): Likewise.
13861 (do_detach): Remove signo parameter.
13862 * record.c (record_detach): Remove args parameter.
13863 * record.h (record_detach): Likewise.
13864 * remote-sim.c (gdbsim_detach): Likewise.
13865 * remote.c (remote_detach_1): Likewise.
13866 (remote_detach): Likewise.
13867 (extended_remote_detach): Likewise.
13868 * sol-thread.c (sol_thread_detach): Likewise.
13869 * target-delegates.c: Re-generate.
13870 * top.c (struct qt_args) <args>: Remove field.
13871 (kill_or_detach): Don't pass args.
13872 (quit_force): Don't set args.
13873 * windows-nat.c (windows_detach): Remove args parameter.
13874
13875 2018-01-19 Yao Qi <yao.qi@linaro.org>
13876
13877 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13878 (arm_linux_init_abi): Install it.
13879
13880 2018-01-19 Yao Qi <yao.qi@linaro.org>
13881
13882 * osabi.c (gdb_osabi_names): Extend the regexp for
13883 arm-linux-gnueabihf.
13884
13885 2018-01-18 Yao Qi <yao.qi@linaro.org>
13886
13887 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13888 m_abbrevs.
13889 (abbrev_table::add_abbrev): Update.
13890 (abbrev_table::lookup_abbrev): Update.
13891
13892 2018-01-18 Yao Qi <yao.qi@linaro.org>
13893
13894 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13895
13896 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13897
13898 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13899 to "std::string".
13900
13901 2018-01-17 Tom Tromey <tom@tromey.com>
13902
13903 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13904
13905 2018-01-17 Tom Tromey <tom@tromey.com>
13906
13907 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13908 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13909 (create_array_type_with_stride): Update.
13910 * dwarf2read.c (set_die_type): Update.
13911
13912 2018-01-17 Tom Tromey <tom@tromey.com>
13913
13914 * dwarf2read.c (delayed_method_info): Remove typedef.
13915 (dwarf2_cu::method_info): Now a std::vector.
13916 (add_to_method_list): Update.
13917 (free_delayed_list): Remove.
13918 (compute_delayed_physnames): Update.
13919 (process_full_comp_unit, process_full_type_unit): Clear the method
13920 list. Remove cleanups.
13921 (psymtab_include_file_name): Add name_holder parameter. Use
13922 unique_xmalloc_ptr.
13923 (dwarf_decode_lines): Update.
13924
13925 2018-01-17 Tom Tromey <tom@tromey.com>
13926 Simon Marchi <simon.marchi@ericsson.com>
13927
13928 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13929 (dwarf2_per_objfile::free_cached_comp_units)
13930 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13931 (init_cutu_and_read_dies_no_follow): Update.
13932 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13933 (dwarf2_cu::~dwarf2_cu): New.
13934 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13935 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13936
13937 2018-01-17 Tom Tromey <tom@tromey.com>
13938 Simon Marchi <simon.marchi@ericsson.com>
13939
13940 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13941 (struct die_reader_specs) <abbrev_table>: New member.
13942 (struct abbrev_table): Add constructor.
13943 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13944 <abbrev_obstack>: Now an auto_obstack.
13945 (abbrev_table_up): New typedef.
13946 (init_cu_die_reader): Add abbrev_table parameter.
13947 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13948 Add result_dwo_abbrev_table.
13949 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13950 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13951 Update.
13952 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13953 parameter.
13954 (skip_children): Update.
13955 (abbrev_table::alloc_abbrev): Rename from
13956 abbrev_table_alloc_abbrev.
13957 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13958 (abbrev_table::lookup_abbrev): Rename from
13959 abbrev_table_lookup_abbrev.
13960 (abbrev_table_read_table): Return abbrev_table_up.
13961 (abbrev_table_free, abbrev_table_free_cleanup)
13962 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13963 (load_partial_dies): Update.
13964
13965 2018-01-17 Tom Tromey <tom@tromey.com>
13966
13967 * dwarf2read.c (dwarf2_compute_name): Update comment.
13968 (read_func_scope, read_variable): Update.
13969 (new_symbol): Remove.
13970 (new_symbol_full): Rename to new_symbol.
13971
13972 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13973
13974 PR gdb/16577
13975 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13976 a warning instead of throwing an error, set section size to 0 and return
13977 NULL.
13978 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13979
13980 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13981
13982 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13983 std::string.
13984 (linux_ptrace_attach_fail_reason_string): Likewise.
13985 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13986 Likewise.
13987 (linux_ptrace_attach_fail_reason_string): Likewise.
13988 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13989
13990 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13991
13992 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13993
13994 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13995
13996 PR gdb/21559
13997 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13998 checking for fs_base/gs_base fields in struct user_regs_struct.
13999 * configure: Regenerate.
14000
14001 2018-01-17 Yao Qi <yao.qi@linaro.org>
14002
14003 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14004 function.
14005 (aarch64_linux_init_abi): Install it to gdbarch hook
14006 gcc_target_options.
14007
14008 2018-01-15 Pedro Alves <palves@redhat.com>
14009
14010 * common/signals-state-save-restore.c
14011 (save_original_signals_state): Fix typos.
14012
14013 2017-01-12 Tom Tromey <tom@tromey.com>
14014 Sergio Durigan Junior <sergiodj@redhat.com>
14015
14016 * Makefile.in (install-only): Install gdb-add-index.
14017
14018 2018-01-12 John Baldwin <jhb@FreeBSD.org>
14019
14020 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14021
14022 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
14023
14024 * infrun.c (keep_going_pass_signal): Clear step-over info when
14025 insert_breakpoints fails.
14026
14027 2018-01-11 Pedro Alves <palves@redhat.com>
14028
14029 PR gdb/22583
14030 * infrun.c (resume): Rename to ...
14031 (resume_1): ... this.
14032 (resume): Reimplement as wrapper around resume_1.
14033
14034 2018-01-11 Pedro Alves <palves@redhat.com>
14035
14036 PR remote/22597
14037 * remote.c (remote_parse_stop_reply): Default to the last-set
14038 general thread instead of to 'magic_null_ptid'.
14039
14040 2018-01-10 Pedro Alves <palves@redhat.com>
14041
14042 * language.h (language_get_symbol_name_matcher): Rename ...
14043 (get_symbol_name_matcher): ... this.
14044 * language.c (language_get_symbol_name_matcher): Ditto.
14045 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14046 callers adjusted.
14047
14048 2018-01-10 Pedro Alves <palves@redhat.com>
14049
14050 PR gdb/22670
14051 * dwarf2read.c
14052 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14053 Adjust to use language_get_symbol_name_matcher instead of
14054 language_defn::la_get_symbol_name_matcher.
14055 * language.c (language_get_symbol_name_matcher): If in Ada mode
14056 and the lookup name is a verbatim match, return Ada's matcher.
14057 * language.h (language_get_symbol_name_matcher): Adjust comment.
14058 (ada_lookup_name_info::verbatim_p):: New method.
14059
14060 2018-01-10 Pedro Alves <palves@redhat.com>
14061
14062 PR gdb/22670
14063 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14064 minsym's language is language_auto or language_cplus, pass down
14065 language_ada instead.
14066 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14067
14068 2018-01-10 Pedro Alves <palves@redhat.com>
14069
14070 PR gdb/22670
14071 * minsyms.c (linkage_name_str): New function.
14072 (iterate_over_minimal_symbols): Use it.
14073
14074 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14075
14076 * NEWS: Document that 'info proc' now works on FreeBSD.
14077
14078 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14079
14080 * configure.ac: Check for kinfo_getfile in libutil.
14081 * configure: Regenerate.
14082 * config.in: Regenerate.
14083 * fbsd-nat.c: Include "fbsd-tdep.h".
14084 (fbsd_fetch_cmdline): New.
14085 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14086 rather than calling error.
14087 (fbsd_info_proc): New.
14088 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14089 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14090 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14091
14092 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14093
14094 * fbsd-nat.c (struct free_deleter): Remove.
14095 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14096
14097 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14098
14099 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14100 NULL for an empty pathname.
14101
14102 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14103
14104 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14105 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14106 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14107 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14108 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14109 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14110 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14111 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14112 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14113 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14114 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14115 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14116 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14117 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14118 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14119
14120 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14121
14122 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14123 (gnu_xfer_auxv): New function.
14124 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14125 TARGET_OBJECT_AUXV.
14126
14127 2018-01-08 Yao Qi <yao.qi@linaro.org>
14128 Simon Marchi <simon.marchi@ericsson.com>
14129
14130 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14131 common/selftest.c.
14132 (COMMON_OBS): Remove selftest.o.
14133 * configure.ac: Append selftest-arch.c and common/selftest.c to
14134 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14135 * configure: Re-generated.
14136 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14137 GDB_SELF_TEST.
14138 (maintenance_info_selftests): Likewise.
14139
14140 2018-01-08 Xavier Roirand <roirand@adacore.com>
14141
14142 * ada-valprint.c (val_print_packed_array_elements): Use
14143 proper number of elements when printing an array indexed
14144 by an enumeration type.
14145
14146 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14147
14148 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14149 (dw2_get_file_names_reader): Adjust.
14150 (lookup_dwo_signatured_type): Adjust.
14151 (lookup_dwp_signatured_type): Adjust.
14152 (lookup_signatured_type): Adjust.
14153 (create_type_unit_group): Adjust.
14154 (get_type_unit_group): Adjust.
14155 (process_psymtab_comp_unit_reader): Adjust.
14156 (build_type_psymtabs_reader): Adjust.
14157 (scan_partial_symbols): Adjust.
14158 (add_partial_symbol): Adjust.
14159 (add_partial_subprogram): Adjust.
14160 (peek_die_abbrev): Adjust.
14161 (fixup_go_packaging): Adjust.
14162 (process_imported_unit_die): Adjust.
14163 (dwarf2_compute_name): Adjust.
14164 (dwarf2_physname): Adjust.
14165 (read_import_statement): Adjust.
14166 (handle_DW_AT_stmt_list): Adjust.
14167 (read_file_scope): Adjust.
14168 (read_func_scope): Adjust.
14169 (read_lexical_block_scope): Adjust.
14170 (read_call_site_scope): Adjust.
14171 (read_variable): Adjust.
14172 (dwarf2_rnglists_process): Adjust.
14173 (dwarf2_ranges_process): Adjust.
14174 (dwarf2_ranges_read): Adjust.
14175 (dwarf2_get_pc_bounds): Adjust.
14176 (dwarf2_record_block_ranges): Adjust.
14177 (dwarf2_add_field): Adjust.
14178 (dwarf2_add_member_fn): Adjust.
14179 (read_structure_type): Adjust.
14180 (process_structure_scope): Adjust.
14181 (read_enumeration_type): Adjust.
14182 (read_array_type): Adjust.
14183 (mark_common_block_symbol_computed): Adjust.
14184 (read_common_block): Adjust.
14185 (read_namespace_type): Adjust.
14186 (read_namespace): Adjust.
14187 (read_module_type): Adjust.
14188 (read_tag_pointer_type): Adjust.
14189 (read_tag_ptr_to_member_type): Adjust.
14190 (read_tag_string_type): Adjust.
14191 (read_subroutine_type): Adjust.
14192 (read_typedef): Adjust.
14193 (read_base_type): Adjust.
14194 (attr_to_dynamic_prop): Adjust.
14195 (read_subrange_type): Adjust.
14196 (read_unspecified_type): Adjust.
14197 (dwarf2_read_abbrevs): Adjust.
14198 (load_partial_dies): Adjust.
14199 (read_partial_die): Adjust.
14200 (find_partial_die): Adjust.
14201 (guess_partial_die_structure_name): Adjust.
14202 (fixup_partial_die): Adjust.
14203 (read_attribute_value): Adjust.
14204 (read_addr_index): Adjust.
14205 (read_addr_index_from_leb128): Adjust.
14206 (read_str_index): Adjust.
14207 (dwarf2_string_attr): Adjust.
14208 (get_debug_line_section): Adjust.
14209 (dwarf_decode_line_header): Adjust.
14210 (lnp_state_machine::check_line_address): Adjust.
14211 (dwarf_decode_lines_1): Adjust.
14212 (dwarf_decode_lines): Adjust.
14213 (dwarf2_start_symtab): Adjust.
14214 (var_decode_location): Adjust.
14215 (new_symbol_full): Adjust.
14216 (dwarf2_const_value_data): Adjust.
14217 (dwarf2_const_value_attr): Adjust.
14218 (dwarf2_const_value): Adjust.
14219 (die_type): Adjust.
14220 (die_containing_type): Adjust.
14221 (build_error_marker_type): Adjust.
14222 (lookup_die_type): Adjust.
14223 (guess_full_die_structure_name): Adjust.
14224 (anonymous_struct_prefix): Adjust.
14225 (determine_prefix): Adjust.
14226 (dwarf2_name): Adjust.
14227 (follow_die_ref_or_sig): Adjust.
14228 (follow_die_offset): Adjust.
14229 (follow_die_ref): Adjust.
14230 (follow_die_sig_1): Adjust.
14231 (follow_die_sig): Adjust.
14232 (get_signatured_type): Adjust.
14233 (get_DW_AT_signature_type): Adjust.
14234 (decode_locdesc): Adjust.
14235 (dwarf_decode_macros): Adjust.
14236 (cu_debug_loc_section): Adjust.
14237 (fill_in_loclist_baton): Adjust.
14238 (dwarf2_symbol_mark_computed): Adjust.
14239 (init_one_comp_unit): Don't assign
14240 dwarf2_cu::dwarf2_per_objfile.
14241 (set_die_type): Adjust.
14242
14243 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14244
14245 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14246 <dwarf2_per_objfile>: New field.
14247 (dwarf2_per_objfile): Remove global.
14248 (get_dwarf2_per_objfile): New function.
14249 (set_dwarf2_per_objfile): New function.
14250 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14251 dwarf2_per_objfile.
14252 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14253 (read_abbrev_offset): Likewise.
14254 (read_indirect_string): Likewise.
14255 (read_indirect_line_string): Likewise.
14256 (read_indirect_string_at_offset): Likewise.
14257 (read_indirect_string_from_dwz): Likewise.
14258 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14259 dwarf2_per_objfile.
14260 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14261 (create_all_comp_units): Change objfile parameter to
14262 dwarf2_per_objfile.
14263 (create_all_type_units): Likewise.
14264 (process_queue): Add dwarf2_per_objfile parameter.
14265 (read_and_check_comp_unit_head): Likewise.
14266 (lookup_dwo_unit_in_dwp): Likewise.
14267 (get_dwp_file): Likewise.
14268 (process_cu_includes): Likewise.
14269 (struct free_dwo_file_cleanup_data): New struct.
14270 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14271 set_dwarf2_per_objfile.
14272 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14273 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14274 context, adjust calls.
14275 (dw2_instantiate_symtab): Likewise.
14276 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14277 (dw2_get_cu): Likewise.
14278 (create_cu_from_index_list): Change objfile parameter to
14279 dwarf2_per_objfile.
14280 (create_cus_from_index_list): Get dwarf2_per_objfile from
14281 context, adjust calls.
14282 (create_cus_from_index): Likewise.
14283 (create_signatured_type_table_from_index): Change objfile
14284 parameter to dwarf2_per_objfile.
14285 (create_signatured_type_table_from_debug_names): Change objfile
14286 parameter to dwarf2_per_objfile.
14287 (create_addrmap_from_index): Likewise.
14288 (create_addrmap_from_aranges): Likewise.
14289 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14290 (dw2_setup): Remove.
14291 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14292 context.
14293 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14294 get_dwarf2_per_objfile.
14295 (dw2_forget_cached_source_info): Likewise.
14296 (dw2_map_symtabs_matching_filename): Likewise.
14297 (struct dw2_symtab_iterator) <index>: Remove.
14298 <dwarf2_per_objfile>: New field.
14299 (dw2_symtab_iter_init): Replace index parameter with
14300 dwarf2_per_objfile.
14301 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14302 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14303 (dw2_print_stats): Likewise.
14304 (dw2_dump): Likewise.
14305 (dw2_expand_symtabs_for_function): Likewise.
14306 (dw2_expand_all_symtabs): Likewise.
14307 (dw2_expand_symtabs_with_fullname): Likewise.
14308 (dw2_expand_marked_cus): Replace index and objfile parameters
14309 with dwarf2_per_objfile.
14310 (dw_expand_symtabs_matching_file_matcher): Add
14311 dwarf2_per_objfile parameter and adjust calls.
14312 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14313 adjust calls.
14314 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14315 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14316 adjust calls.
14317 (create_cus_from_debug_names_list): Replace objfile parameter
14318 with dwarf2_per_objfile and adjust calls.
14319 (create_cus_from_debug_names): Likewise.
14320 (dwarf2_read_debug_names): Likewise.
14321 (mapped_debug_names::namei_to_name): Adjust call.
14322 (dw2_debug_names_iterator::next): Likewise.
14323 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14324 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14325 (dw2_debug_names_dump): Likewise.
14326 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14327 (dw2_debug_names_expand_symtabs_matching): Likewise.
14328 (dwarf2_initialize_objfile): Likewise.
14329 (dwarf2_build_psymtabs): Likewise.
14330 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14331 this_cu.
14332 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14333 (read_and_check_comp_unit_head): Likewise.
14334 (read_abbrev_offset): Likewise.
14335 (create_debug_type_hash_table): Likewise.
14336 (create_debug_types_hash_table): Likewise.
14337 (create_all_type_units): Replace objfile parameter with
14338 dwarf2_per_objfile.
14339 (add_type_unit): Add dwarf2_per_objfile parameter.
14340 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14341 with dwarf2_per_objfile.
14342 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14343 (lookup_dwp_signatured_type): Likewise.
14344 (lookup_signatured_type): Likewise.
14345 (read_cutu_die_from_dwo): Likewise.
14346 (init_tu_and_read_dwo_dies): Likewise.
14347 (init_cutu_and_read_dies): Likewise.
14348 (init_cutu_and_read_dies_no_follow): Likewise.
14349 (allocate_type_unit_groups_table): Add objfile parameter.
14350 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14351 (get_type_unit_group): Likewise.
14352 (process_psymtab_comp_unit): Update call.
14353 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14354 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14355 (print_tu_stats): Likewise.
14356 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14357 in void* parameter.
14358 (build_type_psymtabs): Change objfile parameter to
14359 dwarf2_per_objfile.
14360 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14361 passed in void* parameter.
14362 (process_skeletonless_type_units): Change objfile parameter to
14363 dwarf2_per_objfile.
14364 (set_partial_user): Likewise.
14365 (dwarf2_build_psymtabs_hard): Likewise.
14366 (read_comp_units_from_section): Likewise.
14367 (create_all_comp_units): Likewise.
14368 (scan_partial_symbols): Update calls.
14369 (add_partial_symbol): Likewise.
14370 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14371 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14372 (process_queue): Add dwarf2_per_objfile parameter.
14373 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14374 (compute_compunit_symtab_includes): Likewise.
14375 (process_cu_includes): Add dwarf2_per_objfile parameter.
14376 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14377 (process_full_type_unit): Likewise.
14378 (process_imported_unit_die): Update call.
14379 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14380 (read_file_scope): Likewise.
14381 (allocate_dwo_file_hash_table): Add objfile parameter.
14382 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14383 (create_cus_hash_table): Likewise.
14384 (create_dwp_hash_table): Likewise.
14385 (create_dwo_unit_in_dwp_v1): Likewise.
14386 (create_dwp_v2_section): Likewise.
14387 (create_dwo_unit_in_dwp_v2): Likewise.
14388 (lookup_dwo_unit_in_dwp): Likewise.
14389 (try_open_dwop_file): Likewise.
14390 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14391 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14392 cleanup to include a reference to dwarf2_per_objfile.
14393 (open_dwp_file): Add dwarf2_per_objfile parameter.
14394 (open_and_init_dwp_file): Likewise.
14395 (get_dwp_file): Likewise.
14396 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14397 (queue_and_load_all_dwo_tus): Update call.
14398 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14399 data.
14400 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14401 (dwarf2_ranges_process): Likewise.
14402 (dwarf2_get_pc_bounds): Likewise.
14403 (mark_common_block_symbol_computed): Likewise.
14404 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14405 (dwarf2_read_abbrevs): Update call.
14406 (read_partial_die): Use dwarf2_per_objfile from cu.
14407 (find_partial_die): Likewise.
14408 (fixup_partial_die): Likewise.
14409 (read_attribute_value): Likewise.
14410 (read_indirect_string_at_offset_from): Add objfile parameter.
14411 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14412 parameter.
14413 (read_indirect_string_from_dwz): Add objfile parameter.
14414 (read_indirect_string): Add objfile parameter.
14415 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14416 (read_addr_index): Use dwarf2_per_objfile from cu.
14417 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14418 call dw2_setup.
14419 (read_str_index): Use dwarf2_per_objfile from cu.
14420 (get_debug_line_section): Likewise.
14421 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14422 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14423 (new_symbol_full): Use dwarf2_per_objfile from cu.
14424 (build_error_marker_type): Likewise.
14425 (lookup_die_type): Likewise.
14426 (determine_prefix): Likewise.
14427 (follow_die_offset): Likewise.
14428 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14429 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14430 (dwarf2_fetch_die_type_sect_off): Likewise.
14431 (dwarf2_get_die_type): Likewise.
14432 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14433 (get_signatured_type): Likewise.
14434 (get_DW_AT_signature_type): Likewise.
14435 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14436 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14437 (cu_debug_loc_section): Likewise.
14438 (fill_in_loclist_baton): Likewise.
14439 (dwarf2_symbol_mark_computed): Likewise.
14440 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14441 dwarf2_per_objfile.
14442 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14443 parameter.
14444 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14445 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14446 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14447 (set_die_type): Use dwarf2_free_objfile from cu.
14448 (get_die_type_at_offset): Likewise.
14449 (dwarf2_per_objfile_free): Don't assign global variable.
14450 (debug_names) <constructor>: Add dwarf2_per_objfile
14451 parameter, update m_debugstrlookup construction.
14452 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14453 parameter.
14454 <m_dwarf2_per_objfile>: New field.
14455 <lookup>: Use m_dwarf2_per_objfile.
14456 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14457 (psyms_seen_size): Likewise.
14458 (write_gdbindex): Replace objfile parameter with
14459 dwarf2_per_objfile.
14460 (write_debug_names): Likewise.
14461 (write_psymtabs_to_index): Likewise.
14462 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14463 calls.
14464
14465 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14466
14467 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14468 <dwarf2_per_objfile>: New field.
14469 (struct dwarf2_per_cu_data) <objfile>: Remove.
14470 <dwarf2_per_objfile>: New field.
14471 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14472 of objfile.
14473 (create_signatured_type_table_from_index): Likewise.
14474 (create_debug_type_hash_table): Likewise.
14475 (fill_in_sig_entry_from_dwo_entry): Likewise.
14476 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14477 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14478 objfile.
14479 (create_partial_symtab): Access objfile through
14480 dwarf2_per_objfile.
14481 (process_psymtab_comp_unit_reader): Likewise.
14482 (read_comp_units_from_section): Likewise.
14483 (scan_partial_symbols): Likewise.
14484 (add_partial_symbol): Likewise.
14485 (add_partial_subprogram): Likewise.
14486 (peek_die_abbrev): Likewise.
14487 (fixup_go_packaging): Likewise.
14488 (process_full_comp_unit): Likewise.
14489 (process_full_type_unit): Likewise.
14490 (process_imported_unit_die): Likewise.
14491 (dwarf2_compute_name): Likewise.
14492 (dwarf2_physname): Likewise.
14493 (read_import_statement): Likewise.
14494 (create_cus_hash_table): Assign dwarf2_physname instead of
14495 objfile.
14496 (read_func_scope): Access objfile through dwarf2_per_objfile.
14497 (read_lexical_block_scope): Likewise.
14498 (read_call_site_scope): Likewise.
14499 (read_variable): Likewise.
14500 (dwarf2_rnglists_process): Likewise.
14501 (dwarf2_ranges_process): Likewise.
14502 (dwarf2_ranges_read): Likewise.
14503 (dwarf2_record_block_ranges): Likewise.
14504 (dwarf2_add_field): Likewise.
14505 (dwarf2_add_member_fn): Likewise.
14506 (read_structure_type): Likewise.
14507 (process_structure_scope): Likewise.
14508 (read_enumeration_type): Likewise.
14509 (read_array_type): Likewise.
14510 (read_common_block): Likewise.
14511 (read_namespace_type): Likewise.
14512 (read_namespace): Likewise.
14513 (read_module_type): Likewise.
14514 (read_tag_pointer_type): Likewise.
14515 (read_tag_ptr_to_member_type): Likewise.
14516 (read_tag_string_type): Likewise.
14517 (read_subroutine_type): Likewise.
14518 (read_typedef): Likewise.
14519 (read_base_type): Likewise.
14520 (attr_to_dynamic_prop): Likewise.
14521 (read_subrange_type): Likewise.
14522 (read_unspecified_type): Likewise.
14523 (load_partial_dies): Likewise.
14524 (read_partial_die): Likewise.
14525 (find_partial_die): Likewise.
14526 (guess_partial_die_structure_name): Likewise.
14527 (fixup_partial_die): Likewise.
14528 (read_attribute_value): Likewise.
14529 (read_addr_index_from_leb128): Likewise.
14530 (dwarf2_read_addr_index): Likewise.
14531 (dwarf2_string_attr): Likewise.
14532 (lnp_state_machine::check_line_address): Likewise.
14533 (dwarf_decode_lines_1): Likewise.
14534 (dwarf_decode_lines): Likewise.
14535 (dwarf2_start_symtab): Likewise.
14536 (var_decode_location): Likewise.
14537 (new_symbol_full): Likewise.
14538 (dwarf2_const_value_data): Likewise.
14539 (dwarf2_const_value_attr): Likewise.
14540 (dwarf2_const_value): Likewise.
14541 (die_type): Likewise.
14542 (die_containing_type): Likewise.
14543 (lookup_die_type): Likewise.
14544 (guess_full_die_structure_name): Likewise.
14545 (anonymous_struct_prefix): Likewise.
14546 (dwarf2_name): Likewise.
14547 (follow_die_ref_or_sig): Likewise.
14548 (follow_die_offset): Likewise.
14549 (follow_die_ref): Likewise.
14550 (dwarf2_fetch_die_loc_sect_off): Likewise.
14551 (dwarf2_fetch_constant_bytes): Likewise.
14552 (dwarf2_fetch_die_type_sect_off): Likewise.
14553 (dwarf2_get_die_type): Likewise.
14554 (follow_die_sig): Likewise.
14555 (decode_locdesc): Likewise.
14556 (dwarf2_per_cu_objfile): Likewise.
14557 (dwarf2_per_cu_text_offset): Likewise.
14558 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14559 objfile.
14560 (set_die_type): Access objfile through
14561 dwarf2_per_objfile.
14562
14563 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14564
14565 * valprint.c (converted_character_d): Remove typedef.
14566 (DEF_VEC_O (converted_character_d)): Remove.
14567 (count_next_character): Use std::vector.
14568 (print_converted_chars_to_obstack): Likewise.
14569 (generic_printstr): Likewise.
14570
14571 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14572
14573 * xml-support.h (struct gdb_xml_value): Add constructor.
14574 <value>: Change type to unique_xmalloc_ptr.
14575 (gdb_xml_value_s): Remove typedef.
14576 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14577 (gdb_xml_element_start_handler): Change parameter type to
14578 std::vector.
14579 (xml_find_attribute): Likewise.
14580 * xml-support.c (xml_find_attribute): Change parameter type to
14581 std::vector and adjust.
14582 (gdb_xml_values_cleanup): Remove.
14583 (gdb_xml_parser::start_element): Adjust to std::vector.
14584 (xinclude_start_include): Change paraeter type to std::vector
14585 and adjust.
14586 * btrace.c (check_xml_btrace_version): Likewise.
14587 (parse_xml_btrace_block): Likewise.
14588 (parse_xml_btrace_pt_config_cpu): Likewise.
14589 (parse_xml_btrace_pt): Likewise.
14590 (parse_xml_btrace_conf_bts): Likewise.
14591 (parse_xml_btrace_conf_pt): Likewise.
14592 * memory-map.c (memory_map_start_memory): Likewise.
14593 (memory_map_start_property): Likewise.
14594 * osdata.c (osdata_start_osdata): Likewise.
14595 (osdata_start_item): Likewise.
14596 (osdata_start_column): Likewise.
14597 * remote.c (start_thread): Likewise.
14598 * solib-aix.c (library_list_start_library): Likewise.
14599 (library_list_start_list): Likewise.
14600 * solib-svr4.c (library_list_start_library): Likewise.
14601 (svr4_library_list_start_list): Likewise.
14602 * solib-target.c (library_list_start_segment): Likewise.
14603 (library_list_start_section): Likewise.
14604 (library_list_start_library): Likewise.
14605 (library_list_start_list): Likewise.
14606 * tracepoint.c (traceframe_info_start_memory): Likewise.
14607 (traceframe_info_start_tvar): Likewise.
14608 * xml-syscall.c (syscall_start_syscall): Likewise.
14609 * xml-tdesc.c (tdesc_start_target): Likewise.
14610 (tdesc_start_feature): Likewise.
14611 (tdesc_start_reg): Likewise.
14612 (tdesc_start_union): Likewise.
14613 (tdesc_start_struct): Likewise.
14614 (tdesc_start_flags): Likewise.
14615 (tdesc_start_enum): Likewise.
14616 (tdesc_start_field): Likewise.
14617 (tdesc_start_enum_value): Likewise.
14618 (tdesc_start_vector): Likewise.
14619
14620 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14621
14622 * extension.h (struct xmethod_worker) <clone>: Remove.
14623 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14624 Remove.
14625 (python_xmethod_worker::clone): Remove.
14626 * valops.c (find_overload_match): Use std::move instead of
14627 clone.
14628
14629 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14630
14631 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14632 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14633 <free_xmethod_worker_data>: Remove.
14634 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14635 <get_xmethod_arg_types>: Remove.
14636 <get_xmethod_result_type>: Remove.
14637 <invoke_xmethod>: Remove.
14638 * extension.c (new_xmethod_worker): Remove.
14639 (clone_xmethod_worker): Remove.
14640 (get_matching_xmethod_workers): Return void, pass std::vector by
14641 pointer.
14642 (get_xmethod_arg_types): Rename to...
14643 (xmethod_worker::get_arg_types): ... this, and adjust.
14644 (get_xmethod_result_type): Rename to...
14645 (xmethod_worker::get_result_type): ... this, and adjust.
14646 (invoke_xmethod): Remove.
14647 (free_xmethod_worker): Remove.
14648 (free_xmethod_worker_vec): Remove.
14649 * extension.h (enum ext_lang_rc): Move here from
14650 extension-priv.h.
14651 (struct xmethod_worker): Add constructor and destructor.
14652 <data>: Remove.
14653 <value>: Remove.
14654 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14655 virtual pure methods.
14656 <get_arg_types, get_result_type>: New methods.
14657 (xmethod_worker_ptr): Remove typedef.
14658 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14659 (xmethod_worker_vec): Remove typedef.
14660 (xmethod_worker_up): New typedef.
14661 (invoke_xmethod): Remove.
14662 (clone_xmethod_worker): Remove.
14663 (free_xmethod_worker): Remove.
14664 (free_xmethod_worker_vec): Remove.
14665 (get_xmethod_arg_types): Remove.
14666 (get_xmethod_result_type): Remove.
14667 * valops.c (find_method_list): Use std::vector, don't use
14668 intermediate vector.
14669 (value_find_oload_method_list): Use std::vector.
14670 (find_overload_match): Use std::vector.
14671 (find_oload_champ): Use std::vector.
14672 * value.c (value_free): Use operator delete.
14673 (value_of_xmethod): Rename to...
14674 (value_from_xmethod): ... this. Don't assign
14675 xmethod_worker::value, take rvalue-reference.
14676 (result_type_of_xmethod): Adjust.
14677 (call_xmethod): Adjust.
14678 * value.h: Include extension.h.
14679 (struct xmethod_worker): Don't forward-declare.
14680 (value_of_xmethod): Rename to...
14681 (value_from_xmethod): ... this, take rvalue-reference.
14682 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14683 (struct python_xmethod_worker): ... this, add constructor and
14684 destructor.
14685 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14686 (gdbpy_free_xmethod_worker_data): Rename to...
14687 (python_xmethod_worker::~python_xmethod_worker): ... this and
14688 adjust.
14689 (gdbpy_clone_xmethod_worker_data): Rename to...
14690 (python_xmethod_worker::clone): ... this and adjust.
14691 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14692 temporary vector.
14693 (gdbpy_get_xmethod_arg_types): Rename to...
14694 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14695 (gdbpy_get_xmethod_result_type): Rename to...
14696 (python_xmethod_worker::do_get_result_type): ... this and
14697 adjust.
14698 (gdbpy_invoke_xmethod): Rename to...
14699 (python_xmethod_worker::invoke): ... this and adjust.
14700 (new_python_xmethod_worker): Rename to...
14701 (python_xmethod_worker::python_xmethod_worker): ... this and
14702 adjust.
14703 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14704 Remove.
14705 (gdbpy_free_xmethod_worker_data): Remove.
14706 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14707 (gdbpy_get_xmethod_arg_types): Remove.
14708 (gdbpy_get_xmethod_result_type): Remove.
14709 (gdbpy_invoke_xmethod): Remove.
14710 * python/python.c (python_extension_ops): Remove obsolete
14711 callbacks.
14712
14713 2018-01-05 Pedro Alves <palves@redhat.com>
14714
14715 PR gdb/18653
14716 * common/signals-state-save-restore.c
14717 (save_original_signals_state): New parameter 'quiet'. Warn if we
14718 find a custom handler preinstalled, instead of internal erroring.
14719 But only warn if !quiet.
14720 * common/signals-state-save-restore.h
14721 (save_original_signals_state): New parameter 'quiet'.
14722 * main.c (captured_main_1): Move save_original_signals_state call
14723 after option handling, and pass QUIET.
14724
14725 2018-01-05 Pedro Alves <palves@redhat.com>
14726
14727 * spu-tdep.c (spu_catch_start): Pass
14728 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14729
14730 2018-01-05 Pedro Alves <palves@redhat.com>
14731
14732 PR gdb/22670
14733 * ada-lang.c (literal_symbol_name_matcher): New function.
14734 (ada_get_symbol_name_matcher): Use it for
14735 symbol_name_match_type::SEARCH_NAME.
14736 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14737 it down instead of assuming symbol_name_match_type::FULL.
14738 * block.h (block_lookup_symbol): New parameter 'match_type'.
14739 * c-valprint.c (print_unpacked_pointer): Use
14740 lookup_symbol_search_name instead of lookup_symbol.
14741 * compile/compile-object-load.c (get_out_value_type): Pass down
14742 symbol_name_match_type::SEARCH_NAME.
14743 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14744 symbol_name_match_type::FULL.
14745 * cp-support.c (cp_get_symbol_name_matcher): Handle
14746 symbol_name_match_type::SEARCH_NAME.
14747 * infrun.c (insert_exception_resume_breakpoint): Use
14748 lookup_symbol_search_name.
14749 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14750 * psymtab.c (maintenance_check_psymtabs): Use
14751 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14752 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14753 SYMBOL_SEARCH_NAME.
14754 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14755 if symbol_name_match_type::SEARCH_NAME.
14756 (lookup_symbol_in_language): Pass down
14757 symbol_name_match_type::FULL.
14758 (lookup_symbol_search_name): New.
14759 (lookup_language_this): Pass down
14760 symbol_name_match_type::SEARCH_NAME.
14761 (lookup_symbol_aux, lookup_local_symbol): New parameter
14762 'match_type'. Pass it down.
14763 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14764 (lookup_symbol_search_name): New declaration.
14765 (lookup_symbol_in_block): New 'match_type' parameter.
14766
14767 2018-01-05 Pedro Alves <palves@redhat.com>
14768
14769 PR gdb/22670
14770 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14771 ada_lookup_symbol.
14772 (ada_lookup_symbol): Reimplement in terms of
14773 ada_lookup_symbol_list, bits factored out from
14774 ada_lookup_encoded_symbol.
14775
14776 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14777
14778 * ada-exp.y (write_object_renaming): When subscripting an array
14779 using a symbol as the index, pass the block in call to
14780 ada_lookup_encoded_symbol when looking that symbol up.
14781
14782 2018-01-05 Jerome Guitton <guitton@adacore.com>
14783
14784 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14785 TYPE_INDEX_TYPE.
14786
14787 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14788
14789 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14790 the case where VALUE_LVAL (val0) is not lval_memory.
14791
14792 2018-01-05 Xavier Roirand <roirand@adacore.com>
14793
14794 * ada-valprint.c (print_optional_low_bound): Handle
14795 character-indexed array printing like boolean-indexed array
14796 printing.
14797
14798 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14799
14800 * NEWS: Create a new section for the next release branch.
14801 Rename the section of the current branch, now that it has
14802 been cut.
14803
14804 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14805
14806 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14807 * version.in: Bump version to 8.1.50.DATE-git.
14808
14809 2018-01-03 Xavier Roirand <roirand@adacore.com>
14810
14811 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14812 Add field.
14813 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14814 Add field.
14815 (default_exception_support_info) <catch_handlers_sym>: Add field.
14816 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14817 (ada_exception_name_addr_1): Add "catch handlers" handling.
14818 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14819 Update all callers.
14820 (create_excep_cond_exprs) <ex>: Add parameter.
14821 (re_set_exception): Update create_excep_cond_exprs call.
14822 (print_it_exception, print_one_exception, print_mention_exception)
14823 (print_recreate_exception): Add "catch handler" handling.
14824 (allocate_location_catch_handlers, re_set_catch_handlers)
14825 (check_status_catch_handlers, print_it_catch_handlers)
14826 (print_one_catch_handlers, print_mention_catch_handlers)
14827 (print_recreate_catch_handlers): New function.
14828 (catch_handlers_breakpoint_ops): New variable.
14829 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14830 Add parameter. Add "catch handler" handling.
14831 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14832 Add "catch handler" handling.
14833 (ada_exception_catchpoint_cond_string): Add "catch handler"
14834 handling.
14835 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14836 call.
14837 (catch_ada_handlers_command): New function.
14838 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14839 operations structure.
14840 (_initialize_ada_language): Add "catch handlers" command entry.
14841 * NEWS: Document "catch handlers" feature.
14842
14843 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14844
14845 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14846 account when creating the array type of the slice.
14847 (ada_value_slice): Likewise.
14848
14849 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14850
14851 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14852 New enum value.
14853 (create_array_type_with_stride): Add byte_stride_prop parameter.
14854 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14855 New parameter. Update all callers in this file.
14856 (array_type_has_dynamic_stride): New function.
14857 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14858 of arrays with dynamic byte strides.
14859 * dwarf2read.c (read_array_type): Add support for dynamic
14860 DW_AT_byte_stride attributes.
14861
14862 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14863
14864 * dwarf2read.c (read_unspecified_type): Treat
14865 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14866
14867 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14868
14869 Update copyright year range in all GDB files.
14870
14871 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14872
14873 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14874 and gdb/testsuite/gdb.base/step-line.c.
14875
14876 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14877
14878 * copyright.py (main): Dump the contents of
14879 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14880 even if BY_HAND is empty.
14881
14882 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14883
14884 * top.c (print_gdb_version): Update Copyright year in version
14885 message.
14886
14887 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14888
14889 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14890
14891 For older changes see ChangeLog-2017.
14892 \f
14893 Local Variables:
14894 mode: change-log
14895 left-margin: 8
14896 fill-column: 74
14897 version-control: never
14898 coding: utf-8
14899 End:
This page took 0.329195 seconds and 5 git commands to generate.