Fix use-after-free in record_btrace_start_replaying
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-10-23 Tom Tromey <tom@tromey.com>
2
3 * record-btrace.c (get_thread_current_frame_id): Rename from
4 get_thread_current_frame. Return a frame_id.
5 (record_btrace_start_replaying): Update.
6
7 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
10 for CSRs.
11
12 2018-10-23 Joel Brobecker <brobecker@adacore.com>
13
14 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
15 have_nonsteppable_watchpoint attribute to 1.
16
17 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
20 register names.
21 (struct register_alias): Rename to...
22 (struct riscv_register_alias): ...this, and update comment.
23 (riscv_register_aliases): Update type, and alias names. Remove
24 CSR names from this list.
25 (riscv_register_name): Use riscv_gdb_reg_names for int and float
26 register names. Add an extra assertion.
27 (riscv_is_regnum_a_named_csr): New function.
28 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
29
30 2018-10-22 Jim Wilson <jimw@sifive.com>
31
32 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
33 FP reg smaller than FP reg size, and fill with -1 instead of 0.
34
35 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
36 (riscv_register_type): Use them.
37 (riscv_print_one_register_info): Handle union of floats same as float.
38 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
39 riscv_fpreg_q_type fields.
40
41 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
42
43 * gdbarch.sh (gdbarch_num_cooked_regs): New.
44 * gdbarch.h: Re-generate.
45 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
46 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
47 * eval.c (evaluate_subexp_standard): Likewise.
48 * findvar.c (value_of_register): Likewise.
49 (value_of_register_lazy): Likewise.
50 (address_from_register): Likewise.
51 * frame.c (get_frame_register_bytes): Likewise.
52 * gdbarch-selftests.c (register_to_value_test): Likewise.
53 * h8300-tdep.c (h8300_register_type): Likewise.
54 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
55 (i386_svr4_reg_to_regnum): Likewise.
56 * infcmd.c (default_print_registers_info): Likewise.
57 (registers_info): Likewise.
58 (print_vector_info): Likewise.
59 (default_print_float_info): Likewise.
60 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
61 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
62 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
63 (mi_cmd_data_list_changed_registers): Likewise.
64 (mi_cmd_data_list_register_values): Likewise.
65 (mi_cmd_data_write_register_values): Likewise.
66 (mi_cmd_trace_frame_collected): Likewise.
67 * mips-tdep.c (print_gp_register_row): Likewise.
68 (mips_print_registers_info): Likewise.
69 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
70 * regcache.c (init_regcache_descr): Likewise.
71 (register_size): Likewise.
72 (register_dump::dump): Likewise.
73 (cooked_read_test): Likewise.
74 (cooked_write_test): Likewise.
75 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
76 (rs6000_gdbarch_init): Likewise.
77 * stabsread.c (stab_reg_to_regnum): Likewise.
78 * stack.c (info_frame_command): Likewise.
79 * target-descriptions.c (tdesc_register_name): Likewise.
80 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
81 * tui/tui-regs.c (tui_show_register_group): Likewise.
82 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
83 (user_reg_map_regnum_to_name): Likewise.
84 (value_of_user_reg): Likewise.
85 (maintenance_print_user_registers): Likewise.
86 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
87 (xtensa_register_name): Likewise.
88 (xtensa_register_type): Likewise.
89 (xtensa_reg_to_regnum): Likewise.
90 (xtensa_pseudo_register_read): Likewise.
91 (xtensa_pseudo_register_write): Likewise.
92
93 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
96 correctly-sized buffer with raw_read.
97 (amd64_pseudo_register_write): Use correctly-sized buffer for
98 raw_read/raw_write.
99
100 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
101
102 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
103 in add_prefix_cmd of set print type.
104
105 2018-10-19 Tom Tromey <tom@tromey.com>
106
107 PR tui/18388:
108 * NEWS: Mention tabset deprecation.
109 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
110 (update_tab_width): New function.
111 (tui_set_tab_width, tui_show_tab_width): New functions.
112 (tui_set_tab_width_command): Use update_tab_width.
113 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
114 Add new "set tui tab-width" command.
115 * tui/tui-source.c (tui_set_source_content): Update.
116 * tui/tui-disasm.c (tui_set_disassem_content): Update.
117 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
118 Don't declare.
119 (tui_tab_width): Declare.
120 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
121 (tui_set_default_tab_len): Remove.
122
123 2018-10-19 Tom Tromey <tom@tromey.com>
124
125 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
126 (key_is_backspace, tui_getc): Don't declare.
127 * tui/tui-io.c (key_is_start_sequence): Now static.
128 (key_is_end_sequence, key_is_backspace): Remove.
129 (tui_getc): Now static.
130
131 2018-10-19 Tom Tromey <tom@tromey.com>
132
133 * symfile.c (reread_symbols): Clear "static_links".
134
135 2018-10-19 Alan Hayward <alan.hayward@arm.com>
136
137 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
138 define.
139 (aarch64_linux_sigframe_init): Extra boundary checks.
140
141 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
142
143 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
144 the possibly non-existent tdesc type 'vec128', but the type of raw
145 register v16 instead.
146
147 2018-10-19 Gary Benson <gbenson@redhat.com>
148
149 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
150
151 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
152
153 PR cli/23785
154 * cli/cli-dump.c (restore_binary_file): Check if "file" is
155 NULL.
156
157 2018-10-17 Paul Koning <paul_koning@dell.com>
158
159 * charset.c (convert_between_encodings): Fix unsigned overflow.
160
161 2018-10-17 John Baldwin <jhb@FreeBSD.org>
162
163 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
164 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
165 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
166 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
167 New functions.
168 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
169 and fbsd_info_proc_mappings_header.
170 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
171 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
172 New.
173
174 2018-10-17 Joel Brobecker <brobecker@adacore.com>
175
176 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
177 Solaris Maintainer.
178
179 2018-10-15 Tom Tromey <tom@tromey.com>
180
181 * tui/tui.c (strcat_to_buf): Remove casts.
182 * tui/tui-winsource.c (tui_show_source_line)
183 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
184 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
185 * tui/tui-windata.c (tui_first_data_item_displayed)
186 (tui_delete_data_content_windows, tui_erase_data_content)
187 (tui_display_all_data, tui_display_data_from)
188 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
189 * tui/tui-win.c (tui_set_win_height)
190 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
191 casts.
192 * tui/tui-win.c (tui_resize_all): Remove casts.
193 (tui_scroll_backward_command, tui_set_focus)
194 (tui_set_tab_width_command): Likewise.
195 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
196 * tui/tui-regs.c (tui_show_register_group): Remove cast.
197 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
198 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
199 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
200 Remove casts.
201
202 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
203
204 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
205 AArch64/ARM maintainer.
206
207 2018-10-11 Gary Benson <gbenson@redhat.com>
208
209 * interps.h (interp::m_name): Make private and mutable.
210 * interps.c (interp::~interp): Free m_name.
211
212 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
213 Simon Marchi <simark@simark.ca>
214
215 * README (`configure' options): Add documentation for new
216 "--enable-unit-tests" option.
217 * acinclude.m4: Include "selftest.m4".
218 * configure: Regenerate.
219 * configure.ac: Use "GDB_AC_SELFTEST".
220 * maint.c (maintenance_selftest): Update message informing
221 that selftests have been disabled.
222 (maintenance_info_selftests): Likewise.
223 * selftest.m4: New file.
224
225 2018-10-10 Gary Benson <gbenson@redhat.com>
226
227 * remote.c (remote_target::remote_send_printf): Add
228 missing va_end found by Coverity.
229
230 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
231
232 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
233
234 2018-10-09 Tom Tromey <tom@tromey.com>
235
236 * configure: Rebuild.
237 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
238 * NEWS: Update --enable-ubsan documentation.
239
240 2018-10-09 Gary Benson <gbenson@redhat.com>
241
242 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
243 found by Coverity.
244
245 2018-10-08 Tom Tromey <tom@tromey.com>
246
247 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
248 variable.
249 (riscv_fbsd_init_abi): Likewise.
250
251 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
252 * valops.c (value_struct_elt_for_reference): Rename local variable
253 to work around the shadowing a previous local warning.
254
255 2018-10-08 John Baldwin <jhb@FreeBSD.org>
256
257 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
258 * NEWS: Mention new FreeBSD/riscv native configuration.
259 * configure.host: Add riscv*-*-freebsd*.
260 * configure.nat: Likewise.
261 * riscv-fbsd-nat.c: New file.
262
263 2018-10-08 John Baldwin <jhb@FreeBSD.org>
264
265 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
266 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
267 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
268 * NEWS: Mention new FreeBSD/riscv target.
269 * configure.tgt: Add riscv*-*-freebsd*.
270 * riscv-fbsd-tdep.c: New file.
271 * riscv-fbsd-tdep.h: New file.
272
273 2018-10-08 John Baldwin <jhb@FreeBSD.org>
274
275 * regcache.h (struct regcache_map_entry): Note that this type can
276 be used with traditional frame caches.
277 * trad-frame.c (trad_frame_set_reg_regmap): New.
278 * trad-frame.h (trad_frame_set_reg_regmap): New.
279
280 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
281
282 PR c++/16841
283 * valops.c (get_virtual_base_offset): New function.
284 (value_struct_elt_for_reference): Use it to get virtual base offset
285 and add it in calculating class member address.
286
287 2018-10-08 John Darrington <john@darrington.wattle.id.au>
288
289 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
290 (check_producer): Check if the producer is codewarrior.
291 (producer_is_codewarrior): New function.
292 (lnp_state_machine::record_line): Ignore is_stmt flag for records
293 produced by codewarrior.
294 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
295
296 2018-10-06 Tom Tromey <tom@tromey.com>
297
298 PR python/19399:
299 * python/py-inferior.c: Add "architecture" entry.
300 (infpy_architecture): New function.
301
302 2018-10-06 Tom Tromey <tom@tromey.com>
303
304 PR python/21765:
305 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
306 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
307 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
308 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
309
310 2018-10-06 Tom Tromey <tom@tromey.com>
311
312 PR build/17077:
313 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
314 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
315 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
316 #include.
317
318 2018-10-06 Tom Tromey <tom@tromey.com>
319
320 * python/py-breakpoint.c (bppy_get_location): Handle a
321 bp_breakpoint without a location.
322
323 2018-10-06 Tom Tromey <tom@tromey.com>
324
325 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
326 (_RegEx): Reformat help text.
327 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
328 (AnyCallerIs, AnyCallerMatches): Reformat help text.
329 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
330 text.
331 * python/lib/gdb/command/xmethods.py (InfoXMethod)
332 (EnableXMethod, DisableXMethod): Remove help indentation.
333 Capitalize meta-syntactic variables.
334 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
335 (EnableUnwinder, DisableUnwinder): Remove help indentation.
336 Capitalize meta-syntactic variables.
337 * python/lib/gdb/command/explore.py (ExploreCommand)
338 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
339 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
340 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
341 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
342 Remove help indentation.
343 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
344 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
345 (DisableFrameFilter, SetFrameFilterPriority)
346 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
347
348 2018-10-06 Tom Tromey <tom@tromey.com>
349
350 PR tui/28819:
351 * tui/tui-io.c (gdb_wgetch): New function.
352 (tui_mld_getc, tui_getc): Use it.
353
354 2018-10-05 Tom Tromey <tom@tromey.com>
355
356 * sol-thread.c (sol_thread_target::wait): Rename inner
357 "save_ptid".
358
359 2018-10-04 Tom Tromey <tom@tromey.com>
360
361 * configure: Rebuild.
362 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
363
364 2018-10-04 Tom Tromey <tom@tromey.com>
365
366 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
367 declaration of "block".
368
369 2018-10-04 Tom Tromey <tom@tromey.com>
370
371 * common/filestuff.c (fdwalk): Remove inner declaration of
372 "result".
373
374 2018-10-04 Tom Tromey <tom@tromey.com>
375
376 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
377 "structs_addr" and hoist declaration.
378
379 2018-10-04 Tom Tromey <tom@tromey.com>
380
381 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
382 variable "size".
383
384 2018-10-04 Tom Tromey <tom@tromey.com>
385
386 * mdebugread.c (parse_partial_symbols): Use std::string.
387
388 2018-10-04 Tom Tromey <tom@tromey.com>
389
390 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
391 * p-valprint.c (pascal_val_print): Split inner "i" variable.
392 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
393 header.
394 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
395 more inner scope.
396 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
397 * varobj.c (varobj_update): Rename inner "newobj",
398 "type_changed".
399 * valprint.c (generic_emit_char): Rename inner "buf".
400 * valops.c (find_overload_match): Rename inner "temp".
401 (value_struct_elt_for_reference): Declare "v" in more inner
402 scope.
403 * v850-tdep.c (v850_push_dummy_call): Rename "len".
404 * unittests/array-view-selftests.c (run_tests): Rename inner
405 "vec".
406 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
407 header.
408 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
409 "tsv" in more inner scope.
410 (print_one_static_tracepoint_marker): Rename inner
411 "tuple_emitter".
412 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
413 (tic6x_push_dummy_call): Don't redeclare "addr".
414 * target-float.c: Declare "dto" lower.
415 * symtab.c (lookup_local_symbol): Rename inner "sym".
416 (find_pc_sect_line): Rename inner "pc".
417 * stack.c (print_frame): Don't redeclare "gdbarch".
418 (return_command): Rename inner "gdbarch".
419 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
420 "sp".
421 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
422 header.
423 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
424 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
425 scope.
426 * remote.c (remote_target::update_thread_list): Don't redeclare
427 "tp".
428 (remote_target::process_initial_stop_replies): Rename inner
429 "thread".
430 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
431 (remote_target::wait_as): Don't redeclare "stop_reply".
432 (remote_target::get_thread_local_address): Rename inner
433 "result".
434 (remote_target::get_tib_address): Likewise.
435
436 * regcache.c (cooked_read_test): Rename "regnum".
437 * record-btrace.c (cmd_record_btrace_start): Rename inner
438 "exception".
439 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
440 loop header.
441 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
442 header.
443 (ppu2spu_sniffer): Rename inner "buf".
444 * parse.c (operator_check_standard): Rename inner "type",
445 "objfile".
446 * p-valprint.c (pascal_val_print): Introduce new scope for
447 "low_bound", "high_bound".
448 * p-exp.y (yylex): Declare "i" in loop header.
449 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
450 Lower declaration of "s".
451 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
452 header.
453 (nios2_push_dummy_call): Rename "len".
454 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
455 "buf".
456 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
457 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
458 (linux_xfer_osdata_modules): Likewise.
459 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
460 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
461 (mips_o64_push_dummy_call): Likewise.
462 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
463 "op".
464 * mi/mi-main.c (list_available_thread_groups): Rename inner
465 "tuple_emitter".
466 (mi_cmd_data_read_memory): Rename inner "opts".
467 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
468 "tuple_emitter".
469 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
470 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
471 more inner scope.
472 (parse_partial_symbols): Rename inner "pst", "p", "name"
473 * main.c (captured_main_1): Rename inner "i"s.
474 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
475 "oso2".
476 * linux-tdep.c (linux_info_proc): Rename inner "filename".
477 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
478 * infrun.c (handle_no_resumed): Don't redeclare "thread".
479 (handle_signal_stop): Rename inner "gdbarch".
480 (handle_command): Declare "signum" in loop header.
481 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
482 "status".
483 (examine_prologue): Rename inner "sol" and "sof".
484 (ia64_extract_return_value): Rename inner "val". Declare another
485 "val" in a more inner scope.
486 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
487 inner scope.
488 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
489 "except".
490 * findvar.c (default_read_var_value): Don't redeclare "addr".
491 * f-exp.y (yylex): Declare "i" in loop header.
492 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
493 Rename inner "type", "expect_type".
494 (evaluate_subexp_for_sizeof): Rename inner "pc".
495 * elfread.c (elf_symfile_read): Rename inner "abfd".
496 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
497 "bytes_read".
498 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
499 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
500 (dwarf_decode_line_header): Rename inner "lh".
501 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
502 "offset". Declare "i" in loop header.
503 (disassemble_dwarf_expression): Rename inner "addr_size".
504 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
505 inner "result".
506 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
507 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
508 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
509 "inner_list_emitter".
510 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
511 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
512 declaration in a block.
513 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
514 * cp-valprint.c (cp_print_value_fields): Don't redeclare
515 "obstack_final_size".
516 * cp-support.c (inspect_type): Declare "i" in loop header.
517 * compile/compile.c (compile_instance::insert_symbol_error):
518 Rename inner "e".
519 * common/agent.c (agent_run_command): Remove inner "ret"
520 declaration.
521 * coffread.c (coff_symfile_read): Rename inner "name".
522 (coff_symfile_read): Rename inner "abfd".
523 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
524 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
525 "high".
526 * c-exp.y (lex_one_token): Move "len" declaration lower.
527 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
528 "gdbarch".
529 (create_exception_master_breakpoint): Likewise. Don't redeclare
530 "b".
531 (watch_command_1): Declare "mark" later.
532 (clear_command): Don't shadow "a" or "b".
533 (delete_command): Rename inner "b".
534 (delete_trace_command): Likewise.
535 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
536 "op".
537 (arm_gdbarch_init): Remove inner "e_flags".
538 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
539 "offset" in inner blocks.
540
541 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
542
543 * dwarf-index-write.c (file_write): Don't write if the vector is
544 empty.
545
546 2018-10-05 Tom de Vries <tdevries@suse.de>
547
548 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
549 PyArg_ParseTuple call.
550
551 2018-10-05 Tom de Vries <tdevries@suse.de>
552
553 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
554 PyArg_ParseTuple call.
555
556 2018-10-04 Joel Brobecker <brobecker@adacore.com>
557
558 * psymtab.c (recursively_search_psymtabs): Reformat parameters
559 to avoid exceeding 80 characters per line limit.
560
561 2018-10-04 Tom Tromey <tom@tromey.com>
562
563 * symfile.c (syms_from_objfile_1, finish_new_objfile)
564 (reread_symbols): Update.
565 * complaints.h (clear_complaints): Remove argument.
566 * complaints.c (enum complaint_series): Remove.
567 (series): Remove global.
568 (complaint_internal): Update.
569 (clear_complaints): Remove argument.
570
571 2018-10-04 Tom Tromey <tom@tromey.com>
572
573 * symfile.c (symbol_file_add_with_addrs): Do not print "no
574 debugging symbols" message if there is a separate debug objfile.
575
576 2018-10-04 Tom Tromey <tom@tromey.com>
577
578 PR cli/19551:
579 * symfile.c (symbol_file_add_with_addrs): Update output.
580 * psymtab.c (require_partial_symbols): Update output.
581
582 2018-10-04 Tom Tromey <tom@tromey.com>
583
584 PR cli/22234:
585 * complaints.c: Emit \n.
586
587 2018-10-04 Tom Tromey <tom@tromey.com>
588
589 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
590 (separate_debug_file_exists, find_separate_debug_file)
591 (add_symbol_file_command, reread_symbols, allocate_symtab)
592 (allocate_compunit_symtab): Use filtered printing, not
593 unfiltered.
594 * psymtab.c (require_partial_symbols, dump_psymtab)
595 (allocate_psymtab): Use filtered printing, not unfiltered.
596
597 2018-10-04 Tom Tromey <tom@tromey.com>
598
599 * complaints.c (complaint_internal): Correctly check complaint
600 count.
601
602 2018-10-04 Tom Tromey <tom@tromey.com>
603
604 * complaints.h (struct complaints): Remove declaration.
605 * complaints.c (clear_complaints): Remove an unused variable.
606
607 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
608
609 * MAINTAINERS (Write After Approval): Add self.
610
611 2018-10-03 Tom Tromey <tom@tromey.com>
612
613 * guile/scm-value.c (gdbscm_value_to_string): Initialize
614 "buffer_contents".
615 * coffread.c (coff_symtab_read): Initialize "newobj".
616
617 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * dwarf2read.c (read_func_scope): Remove struct keyword in
620 range-based for.
621
622 2018-10-03 Tom Tromey <tom@tromey.com>
623
624 * README: Mention --enable-ubsan.
625 * NEWS: Mention --enable-ubsan.
626 * acinclude.m4: Include sanitize.m4.
627 * configure: Rebuild.
628 * configure.ac: Call AM_GDB_UBSAN.
629 * sanitize.m4: New file.
630
631 2018-10-03 Tom Tromey <tom@tromey.com>
632
633 * expression.h (enum exp_opcode): Use uint8_t as base type.
634 * expprint.c (op_name): Handle invalid opcodes.
635
636 2018-10-03 Tom Tromey <tom@tromey.com>
637
638 * parse.c (prefixify_expression): Add assert.
639 (parse_exp_in_context_1): Throw exception if the expression is
640 empty.
641
642 2018-10-03 Tom Tromey <tom@tromey.com>
643
644 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
645
646 2018-10-03 Tom Tromey <tom@tromey.com>
647
648 * c-exp.y (parse_number): Work in unsigned. Remove casts.
649
650 2018-10-03 Tom Tromey <tom@tromey.com>
651
652 * dwarf2read.c (read_subrange_type): Make "negative_mask"
653 unsigned.
654
655 2018-10-03 Tom Tromey <tom@tromey.com>
656
657 * findvar.c (extract_integer): Do work in an unsigned type.
658
659 2018-10-03 Tom Tromey <tom@tromey.com>
660
661 * common/enum-flags.h (enum_flags::operator~): Add static assert.
662 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
663 base type.
664 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
665 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
666 type.
667 * c-lang.h (enum c_string_type_values): Use unsigned as base
668 type.
669 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
670
671 2018-10-03 Tom Tromey <tom@tromey.com>
672
673 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
674 <~dwarf2_frame_state_reg_info>: Update.
675 <dwarf2_frame_state_reg_info>: Update.
676 <alloc_regs>: Add assertion. Update.
677 <reg>: Now a std::vector.
678 <num_regs>: Remove.
679 <swap>: Update.
680 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
681 (execute_cfa_program_test, dwarf2_frame_cache): Update.
682
683 2018-10-03 Tom Tromey <tom@tromey.com>
684
685 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
686
687 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
688
689 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
690
691 2018-10-02 Tom Tromey <tom@tromey.com>
692
693 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
694
695 2018-10-02 John Darrington <john@darrington.wattle.id.au>
696
697 * NEWS: Mention changed commands.
698 * ser-uds.c: New file.
699 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
700 * configure: Regenerate.
701 * Makefile.in: Add new file.
702 * serial.c (serial_open): Check if filename is a socket
703 and lookup the appropriate interface accordingly.
704
705 2018-10-01 Alan Hayward <alan.hayward@arm.com>
706
707 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
708 define.
709 (AARCH64_EXTRA_MAGIC): Likewise.
710 (AARCH64_FPSIMD_MAGIC): Likewise.
711 (AARCH64_SVE_MAGIC): Likewise.
712 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
713 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
714 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
715 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
716 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
717 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
718 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
719 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
720 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
721 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
722 (read_aarch64_ctx): Add function.
723 (aarch64_linux_sigframe_init): Detect FP registers.
724
725 2018-10-01 Alan Hayward <alan.hayward@arm.com>
726
727 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
728 (AARCH64_D0_REGNUM): Likewise.
729 (AARCH64_S0_REGNUM): Likewise.
730 (AARCH64_H0_REGNUM): Likewise.
731 (AARCH64_B0_REGNUM): Likewise.
732 (AARCH64_SVE_V0_REGNUM): Likewise.
733 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
734 (AARCH64_D0_REGNUM): Likewise.
735 (AARCH64_S0_REGNUM): Likewise.
736 (AARCH64_H0_REGNUM): Likewise.
737 (AARCH64_B0_REGNUM): Likewise.
738 (AARCH64_SVE_V0_REGNUM): Likewise.
739
740 2018-10-01 Gary Benson <gbenson@redhat.com>
741
742 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
743 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
744 prfpregset_t instead of gdb_prfpregset_t.
745 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
746 * configure, config.in: Rebuild.
747
748 2018-10-01 Gary Benson <gbenson@redhat.com>
749
750 * common/gdb_proc_service.h: New file, factored out from...
751 * gdb_proc_service.h: Moved common code to the above file.
752 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
753
754 2018-10-01 Gary Benson <gbenson@redhat.com>
755
756 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
757 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
758
759 2018-10-01 Gary Benson <gbenson@redhat.com>
760
761 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
762 (AC_CHECK_HEADERS): Check for linux/elf.h.
763 * configure, config.in: Rebuild.
764 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
765 doesn't define elf_fpregset_t.
766
767 2018-10-01 Gary Benson <gbenson@redhat.com>
768
769 * gdb_proc_service.h: Whitespace change.
770
771 2018-10-01 Tom Tromey <tom@tromey.com>
772
773 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
774 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
775 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
776
777 2018-10-01 Tom Tromey <tom@tromey.com>
778
779 * README: Minor change.
780
781 2018-09-30 Pedro Alves <palves@redhat.com>
782
783 * darwin-nat-info.c (darwin_debug_regions_recurse)
784 (info_mach_exceptions_command): Remove unused local variables.
785 * darwin-nat.c (darwin_decode_notify_message)
786 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
787 (darwin_stop_inferior, darwin_setup_exceptions)
788 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
789 (darwin_nat_target::attach, darwin_nat_target::detach)
790 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
791 local variables.
792 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
793 variables.
794
795 2018-09-29 Tom Tromey <tom@tromey.com>
796
797 * README: Remove some leftover text.
798
799 2018-09-29 Tom Tromey <tom@tromey.com>
800
801 * PROBLEMS: Rewrite.
802 * README: Update.
803
804 2018-09-28 John Baldwin <jhb@FreeBSD.org>
805
806 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
807 case with explicit breakpoint kind.
808 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
809 'additional_info' and related logic.
810 (riscv_debug_breakpoints): New variable.
811 (riscv_breakpoint_kind_from_pc): Use the length of the existing
812 instruction to determine the breakpoint kind.
813 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
814 flag. Update description of 'set/show riscv
815 use-compressed-breakpoints' flag.
816
817 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 (NEWS): Mention changes to frame related commands.
820 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
821 (add_prefix_cmd_suppress_notification): New function.
822 (add_com_suppress_notification): Call
823 add_cmd_suppress_notification.
824 * command.h (add_cmd_suppress_notification): Declare.
825 (add_prefix_cmd_suppress_notification): Declare.
826 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
827 (parse_frame_specification): Moved from stack.c, with
828 simplification to handle a single argument.
829 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
830 switch to the selected frame. Add a header comment.
831 * stack.c: Remove 'safe-ctype.h' include.
832 (find_frame_for_function): Add declaration.
833 (find_frame_for_address): New function.
834 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
835 (frame_selection_by_function_completer): New function.
836 (info_frame_command): Rename to...
837 (info_frame_command_core): ...this, and update parameter types.
838 (select_frame_command): Rename to...
839 (select_frame_command_core): ...this, and update parameter types.
840 (frame_command): Rename to...
841 (frame_command_core): ...this, and update parameter types.
842 (class frame_command_helper): New class to wrap implementations of
843 frame related sub-commands.
844 (frame_apply_cmd_list): New static global.
845 (frame_cmd_list): Make static.
846 (select_frame_cmd_list): New global for sub-commands.
847 (info_frame_cmd_list): New global for sub-commands.
848 (_initialize_stack): Register sub-commands for 'frame',
849 'select-frame', and 'info frame'. Update 'frame apply' commands
850 to use frame_apply_cmd_list. Move function local static
851 frame_apply_list to file static frame_apply_cmd_list for
852 consistency.
853 * stack.h (select_frame_command): Delete declarationn.
854 (select_frame_for_mi): Declare new function.
855
856 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
859 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
860 and NOP.
861
862 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
863
864 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
865
866 2018-09-26 Tom Tromey <tom@tromey.com>
867
868 * valops.c (auto_abandon): Remove dead code.
869
870 2018-09-26 Tom Tromey <tom@tromey.com>
871
872 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
873
874 2018-09-24 Tom Tromey <tom@tromey.com>
875
876 * common/pathstuff.c (get_standard_cache_dir): Make
877 "xdg_cache_home" and "home" const.
878 * top.c (init_history): Make "tmpenv" const.
879 * main.c (get_init_files): Make "homedir" const.
880
881 2018-09-23 Tom Tromey <tom@tromey.com>
882
883 PR python/18852:
884 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
885
886 2018-09-23 Tom Tromey <tom@tromey.com>
887
888 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
889 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
890 * python/python-internal.h (gdbpy_handle_exception): Declare.
891 * python/py-utils.c (gdbpy_handle_exception): New function.
892
893 2018-09-23 Tom Tromey <tom@tromey.com>
894
895 PR python/17284:
896 * python/py-type.c (typy_template_argument): Check for negative
897 argument number.
898
899 2018-09-23 Tom Tromey <tom@tromey.com>
900
901 PR python/14062:
902 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
903
904 2018-09-23 Tom Tromey <tom@tromey.com>
905
906 PR python/18170:
907 * python/py-value.c (valpy_int): Allow conversion from pointer
908 type.
909
910 2018-09-23 Tom Tromey <tom@tromey.com>
911
912 PR python/20126:
913 * python/py-value.c (valpy_int): Respect type sign.
914
915 2018-09-23 Tom Tromey <tom@tromey.com>
916
917 PR python/18352;
918 * python/py-value.c (valpy_float): Allow conversions from int or
919 char.
920 (valpy_int, valpy_long): Allow conversions from float.
921
922 2018-09-23 Tom Tromey <tom@tromey.com>
923
924 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
925 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
926
927 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
928
929 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
930 __sighndlr.
931 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
932
933 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
934
935 * windows-nat.c (windows_nat_target::wait): Remove a spurious
936 target_terminal::ours().
937
938 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
939
940 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
941 of vl to ULONGEST.
942
943 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
944
945 * breakpoint.c (update_inserted_breakpoint_locations): Remove
946 redundant condition.
947
948 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
949
950 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
951
952 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
953 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
954 * sol-thread.c (ps_pdmodel): Don't guard definition.
955
956 * procfs.c: Fix formatting.
957
958 * procfs.c (sysset_t_alloc): Remove.
959 (create_procinfo): Use XNEW instead of sysset_t_alloc.
960 (procfs_debug_inferior): Likewise.
961 (procfs_set_exec_trap): Likewise.
962 (proc_set_traced_sysentry): Don't allocate argp dynamically.
963 (proc_set_traced_sysexit): Likewise.
964
965 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
966 (dead_procinfo): Likewise.
967 (proc_warn): Likewise.
968 (proc_error): Likewise.
969 (proc_get_LDT_entry): Likewise.
970 (do_attach): Likewise.
971 (procfs_target::pid_to_str): Likewise.
972 (iterate_over_mappings): Likewise.
973
974 * procfs.c (create_procinfo): Fix ARI warning.
975 (proc_get_status): Likewise.
976 (proc_stop_process): Likewise.
977 (proc_run_process): Likewise.
978 (proc_kill): Likewise.
979 (proc_get_LDT_entry): Likewise.
980 (procfs_find_LDT_entry): Likewise.
981 (proc_update_threads): Likewise.
982 (proc_iterate_over_threads): Likewise.
983 (do_attach): Likewise.
984 (procfs_xfer_memory): Likewise.
985 (invalidate_cache): Likewise.
986 (procfs_target::resume): Likewise.
987 (procfs_init_inferior): Likewise.
988 (procfs_set_exec_trap): Likewise.
989 (procfs_target::thread_alive): Likewise.
990 (procfs_target::pid_to_exec_file): Likewise.
991 (iterate_over_mappings): Likewise.
992 (procfs_target::make_corefile_notes): Likewise.
993 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
994
995 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
996 (procfs_find_LDT_entry): Likewise.
997 * sol-thread.c (ps_lgetLDT): Likewise.
998
999 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1000
1001 PR tdep/17903
1002 * procfs.c (procfs_target): Declare pid_to_exec_file.
1003 (procfs_target::pid_to_exec_file): New.
1004
1005 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1006
1007 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1008 renaming.
1009 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1010 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1011
1012 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1013
1014 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1015 (supply_fpregset, fill_fpregset): Move ...
1016 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1017 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1018 Remove references to ioctl-based procfs.
1019 Include <sys/reg.h>.
1020 Remove PR_MODEL_NATIVE guards.
1021 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1022 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1023
1024 2018-09-19 Xavier Roirand <roirand@adacore.com>
1025
1026 PR gdb/20981:
1027 * solib-darwin.c (darwin_get_dyld_bfd): New function.
1028 (darwin_solib_get_all_image_info_addr_at_init): Update call.
1029 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1030
1031 2018-09-19 John Baldwin <jhb@FreeBSD.org>
1032
1033 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1034 (fbsd_print_sockaddr_in6): Likewise.
1035
1036 2018-09-19 Richard Bunt <richard.bunt@arm.com>
1037 Chris January <chris.january@arm.com>
1038
1039 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1040 (evaluate_subexp_standard): Return a dummy type when
1041 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1042 OP_F77_UNDETERMINED_ARGLIST case.
1043 * expression.h (enum noside): Update comment.
1044
1045 2018-09-19 George Vasick <george.vasick@oracle.com>
1046
1047 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1048
1049 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1050 April Chin <april.chin@oracle.com>
1051 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1052
1053 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1054 uint_t lwpid_t.
1055 (create_procinfo): Print pids in /proc without leading zeros.
1056
1057 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1058
1059 * nios2-tdep.c (nios2_gcc_target_options): New.
1060 (nios2_gdb_arch_init): Install new hook.
1061
1062 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1063
1064 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1065 New file.
1066 * update-gnulib.sh: Apply patch.
1067 * configure: Re-generate.
1068
1069 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1070
1071 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1072 description. Make "info proc" command descriptions more
1073 consistent.
1074
1075 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1076
1077 * NEWS: Mention 'info proc files' command.
1078
1079 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1080
1081 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1082 descriptors for IP_FILES and IP_ALL.
1083
1084 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1085
1086 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1087 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1088 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1089 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1090 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1091 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1092 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1093 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1094 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1095 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1096 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1097 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1098 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1099 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1100 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1101 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1102 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1103 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1104 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1105 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1106 (struct fbsd_sockaddr_un): New types.
1107 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1108 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1109 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1110 (fbsd_core_info_proc_files): New functions.
1111 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1112 IP_ALL.
1113 * fbsd-tdep.h (fbsd_info_proc_files_header)
1114 (fbsd_info_proc_files_entry): New.
1115
1116 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1117
1118 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1119 * infcmd.c (info_proc_cmd_files): New function.
1120 (_initialize_infcmd): Register 'info proc files' command.
1121
1122 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1123
1124 * gnulib/aclocal-m4-deps.mk: Re-generate.
1125 * gnulib/aclocal.m4: Re-generate.
1126 * gnulib/config.in: Re-generate.
1127 * gnulib/configure: Re-generate.
1128 * gnulib/import/Makefile.am: Re-generate.
1129 * gnulib/import/Makefile.in: Re-generate.
1130 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1131 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1132 * gnulib/import/arpa_inet.in.h: New file.
1133 * gnulib/import/inet_ntop.c: New file.
1134 * gnulib/import/m4/arpa_inet_h.m4: New file.
1135 * gnulib/import/m4/inet_ntop.m4: New file.
1136 * gnulib/import/m4/netinet_in_h.m4: New file.
1137 * gnulib/import/m4/socklen.m4: New file.
1138 * gnulib/import/m4/sockpfaf.m4: New file.
1139 * gnulib/import/m4/stdalign.m4: New file.
1140 * gnulib/import/m4/sys_uio_h.m4: New file.
1141 * gnulib/import/netinet_in.in.h: New file.
1142 * gnulib/import/stdalign.in.h: New file.
1143 * gnulib/import/sys_socket.c: New file.
1144 * gnulib/import/sys_socket.in.h: New file.
1145 * gnulib/import/sys_uio.in.h: New file.
1146 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1147 module.
1148
1149 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1150
1151 * gnulib/aclocal-m4-deps.mk: New file.
1152 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1153 deterministically.
1154
1155 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1156
1157 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1158 KVE_PATH.
1159
1160 2018-09-18 Tom Tromey <tom@tromey.com>
1161
1162 * compile/compile-object-load.c (struct
1163 link_hash_table_cleanup_data): Add constructor and destructor.
1164 Use DISABLE_COPY_AND_ASSIGN.
1165 (~link_hash_table_cleanup_data): Rename from
1166 link_hash_table_free. Now a destructor.
1167 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1168
1169 2018-09-18 Tom Tromey <tom@tromey.com>
1170
1171 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1172 * compile/compile-object-load.c (struct munmap_list): Move to
1173 header file.
1174 (munmap_list::add): Rename from munmap_list_add; rewrite.
1175 (munmap_list::~munmap_list): Rename from munmap_list_free.
1176 (munmap_listp_free_cleanup): Remove.
1177 (compile_object_load): Update.
1178 * compile/compile-object-load.h (struct munmap_list): Move from
1179 compile-object-load.c. Rewrite.
1180
1181 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1182
1183 * aarch64-tdep.c (pass_in_v): Use register size.
1184 (aarch64_extract_return_value): Likewise.
1185 (aarch64_store_return_value): Likewise.
1186
1187 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1188
1189 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1190 rlim_t.
1191
1192 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1193
1194 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1195 Fix short help line.
1196
1197 2018-09-17 Tom Tromey <tom@tromey.com>
1198
1199 PR python/20445:
1200 * configure: Rebuild.
1201 * configure.ac: Conditionally use -DNDEBUG for Python.
1202
1203 2018-09-17 Tom Tromey <tom@tromey.com>
1204
1205 * configure: Rebuild.
1206 * configure.ac: Use gmp as a library dependency when checking for
1207 mpfr.
1208
1209 2018-09-17 Pedro Alves <palves@redhat.com>
1210
1211 * python/py-inferior.c (find_inferior_object): Delete.
1212
1213 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1214
1215 * compile/compile-cplus-types.c
1216 (compile_cplus_instance::enter_scope): Don't use new_scope after
1217 std::move.
1218
1219 2018-09-17 Tom Tromey <tom@tromey.com>
1220
1221 * common/pathstuff.c (get_standard_cache_dir): Use
1222 ~/Library/Caches on macOS.
1223 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1224
1225 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 PR python/23669
1228 * breakpoint.c (commands_cmd_element): New.
1229 (_initialize_breakpoint): Assign commands_cmd_element.
1230 * breakpoint.h (commands_cmd_element): New.
1231 * cli/cli-script.c (while_cmd_element, if_command,
1232 define_cmd_element): New.
1233 (command_name_equals): Remove.
1234 (process_next_line): Compare commands by pointer, not by name.
1235 (_initialize_cli_script): Assign the various cmd_list_element
1236 variables.
1237 * compile/compile.c (compile_cmd_element): New.
1238 (_initialize_compile): Assign compile_cmd_element.
1239 * compile/compile.h (compile_cmd_element): New.
1240 * guile/guile.c (guile_cmd_element): New.
1241 (install_gdb_commands): Assign guile_cmd_element.
1242 * guile/guile.h (guile_cmd_element): New.
1243 * python/python.c (python_cmd_element): New.
1244 (_initialize_python): Assign python_cmd_element.
1245 * python/python.h (python_cmd_element): New.
1246 * tracepoint.c (while_stepping_cmd_element): New.
1247 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1248 * tracepoint.h (while_stepping_cmd_element): New.
1249
1250 2018-09-17 Tom Tromey <tom@tromey.com>
1251
1252 * infrun.c (save_infcall_suspend_state): Return
1253 infcall_suspend_state_up.
1254 (save_infcall_control_state): Return infcall_control_state_up.
1255 * inferior.h (save_infcall_suspend_state)
1256 (save_infcall_control_state): Declare later. Return unique
1257 pointers.
1258
1259 2018-09-17 Tom Tromey <tom@tromey.com>
1260
1261 * infrun.c (struct stop_context): Declare constructor,
1262 destructor, "changed" method.
1263 (stop_context::stop_context): Rename from save_stop_context.
1264 (stop_context::~stop_context): Rename from
1265 release_stop_context_cleanup.
1266 (normal_stop): Update.
1267 (stop_context::changed): Rename from stop_context_changed. Return
1268 bool.
1269
1270 2018-09-17 Tom Tromey <tom@tromey.com>
1271
1272 * inferior.h (struct infcall_suspend_state_deleter): New.
1273 (infcall_suspend_state_up): New typedef.
1274 (struct infcall_control_state_deleter): New.
1275 (infcall_control_state_up): New typedef.
1276 (make_cleanup_restore_infcall_suspend_state)
1277 (make_cleanup_restore_infcall_control_state): Don't declare.
1278 * infcall.c (call_function_by_hand_dummy): Update.
1279 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1280 (make_cleanup_restore_infcall_suspend_state): Remove.
1281 (do_restore_infcall_control_state_cleanup)
1282 (make_cleanup_restore_infcall_control_state): Remove.
1283
1284 2018-09-17 Tom Tromey <tom@tromey.com>
1285
1286 * gdbthread.h (struct thread_control_state): Add initializer.
1287 (class thread_info) <control>: Remove initializer.
1288 * inferior.h (struct inferior_control_state): Add initializer.
1289 (class inferior) <control>: Remove initializer.
1290 (exit_inferior_1): Update.
1291 * infrun.c (struct infcall_control_state): Add constructors.
1292 (save_infcall_control_state): Use new.
1293 (restore_infcall_control_state, discard_infcall_control_state):
1294 Use delete.
1295
1296 2018-09-17 Tom Tromey <tom@tromey.com>
1297
1298 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1299 unique_ptr.
1300 <siginfo_data>: Now a unique_xmalloc_ptr.
1301 (save_infcall_suspend_state, restore_infcall_suspend_state)
1302 (discard_infcall_suspend_state)
1303 (get_infcall_suspend_state_regcache): Update.
1304
1305 2018-09-17 Tom Tromey <tom@tromey.com>
1306
1307 * gdbthread.h (struct thread_suspend_state): Add initializers.
1308 (class thread_info) <suspend>: Remove initializer.
1309 * infrun.c (struct infcall_suspend_state): Add initializers.
1310 (save_infcall_suspend_state): Use new.
1311 (discard_infcall_suspend_state): Use delete.
1312
1313 2018-09-16 Tom Tromey <tom@tromey.com>
1314
1315 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1316 Remove.
1317 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1318 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1319 (py_varobj_iter_new): Likewise.
1320 (py_varobj_get_iterator): Use gdbpy_ref.
1321
1322 2018-09-16 Tom Tromey <tom@tromey.com>
1323
1324 * python/py-threadevent.c (py_get_event_thread): Simplify.
1325 * python/py-inferior.c (infpy_thread_from_thread_handle):
1326 Return immediately after calling thread_to_thread_object. Use
1327 Py_RETURN_NONE.
1328 (thread_to_thread_object): Set the exception on a NULL return.
1329
1330 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1331
1332 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1333
1334 2018-09-16 Tom Tromey <tom@tromey.com>
1335
1336 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1337 Remove.
1338
1339 2018-09-16 Tom Tromey <tom@tromey.com>
1340
1341 * python/python-internal.h (thread_to_thread_object): Change
1342 return type.
1343 * python/py-inferior.c (thread_to_thread_object): Return a new
1344 reference.
1345 (infpy_thread_from_thread_handle): Update.
1346 * python/py-infthread.c (gdbpy_selected_thread): Update.
1347 * python/py-stopevent.c (create_stop_event_object): Update.
1348 * python/py-threadevent.c (py_get_event_thread): Return a new
1349 reference.
1350 (py_get_event_thread): Update.
1351 * python/py-event.h (py_get_event_thread): Change return type.
1352 * python/py-continueevent.c (create_continue_event_object):
1353 Update.
1354
1355 2018-09-16 Tom Tromey <tom@tromey.com>
1356
1357 * python/py-progspace.c (pspy_get_objfiles): Update.
1358 * python/python-internal.h (objfile_to_objfile_object): Change
1359 return type.
1360 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1361 Update.
1362 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1363 Update.
1364 * python/python.c (gdbpy_get_current_objfile): Update.
1365 (gdbpy_objfiles): Update.
1366 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1367 Update.
1368 (objfile_to_objfile_object): Return a new reference.
1369 * python/py-symtab.c (stpy_get_objfile): Update.
1370 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1371 Update.
1372
1373 2018-09-16 Tom Tromey <tom@tromey.com>
1374
1375 * python/py-inferior.c (infpy_get_progspace): Update.
1376 * python/python-internal.h (pspace_to_pspace_object): Change
1377 return type.
1378 * python/py-newobjfileevent.c
1379 (create_clear_objfiles_event_object): Update.
1380 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1381 Update.
1382 * python/python.c (gdbpy_get_current_progspace): Update.
1383 (gdbpy_progspaces): Update.
1384 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1385 reference.
1386 * python/py-objfile.c (objfpy_get_progspace): Update.
1387 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1388 Update.
1389
1390 2018-09-16 Tom Tromey <tom@tromey.com>
1391
1392 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1393 (solib_name, block_for_pc, find_pc_line): New functions.
1394 (execute_unwinders): Update.
1395 * python/py-block.c (gdbpy_block_for_pc): Remove.
1396 * python/py-inferior.c (infpy_get_progspace): New function.
1397 (inferior_object_getset) <progspace>: Add.
1398 * python/py-progspace.c (pspy_objfiles): Rewrite.
1399 (pspy_solib_name, pspy_block_for_pc)
1400 (pspy_find_pc_line, pspy_is_valid): New functions.
1401 (progspace_object_methods): Add entries for solib_name,
1402 block_for_pc, find_pc_line, is_valid.
1403 * python/python-internal.h (gdbpy_block_for_pc)
1404 (build_objfiles_list): Don't declare.
1405 * python/python.c: Don't include solib.h.
1406 (gdbpy_solib_name, gdbpy_find_pc_line)
1407 (gdbpy_get_current_progspace, build_objfiles_list)
1408 (gdbpy_objfiles): Remove.
1409 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1410 solib_name, find_pc_line>: Remove entries.
1411
1412 2018-09-16 Tom Tromey <tom@tromey.com>
1413
1414 * top.c (new_ui_command): Use GNU style for metasyntactic
1415 variables.
1416 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1417 variables.
1418 * maint.c (maintenance_translate_address): Remove "<>" around
1419 text.
1420 * interps.c (interpreter_exec_cmd): Use GNU style for
1421 metasyntactic variables.
1422 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1423 metasyntactic variables.
1424 * tracepoint.c (tfind_range_command): Use GNU style for
1425 metasyntactic variables.
1426 (tfind_outside_command): Likewise.
1427 (_initialize_tracepoint): Likewise.
1428 * remote.c (extended_remote_target::create_inferior): Use GNU
1429 style for metasyntactic variables.
1430 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1431 metasyntactic variables.
1432 (adi_assign_command): Likewise.
1433
1434 2018-09-16 Tom Tromey <tom@tromey.com>
1435
1436 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1437 metasyntactic variables. Print message if no disassembler options
1438 are available.
1439
1440 2018-09-15 Tom Tromey <tom@tromey.com>
1441
1442 * infcmd.c (get_inferior_args): Return const char *.
1443 * inferior.h (get_inferior_args): Return type now const.
1444 * linux-tdep.c (linux_fill_prpsinfo): Update.
1445 * procfs.c (procfs_target::make_corefile_notes): Update.
1446
1447 2018-09-07 Tom Tromey <tom@tromey.com>
1448
1449 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1450 inside the TRY.
1451
1452 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1453
1454 * nios2-tdep.c (nios2_type_align): New.
1455 (nios2_gdb_arch_init): Install type_align hook.
1456
1457 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1460 type that is neither object file owned, nor gdbarch owned.
1461 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1462 gdbarch is non-NULL.
1463 (alloc_type_instance): Allocate non-objfile owned types on the
1464 gdbarch obstack.
1465 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1466 using TYPE_ALLOC to ensure memory is allocated on the correct
1467 obstack.
1468 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1469 obstack, or the gdbarch obstack.
1470 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1471
1472 2018-09-14 Tom Tromey <tom@tromey.com>
1473
1474 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1475 block.
1476
1477 2018-09-14 Tom Tromey <tom@tromey.com>
1478
1479 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1480
1481 2018-09-13 Tom Tromey <tom@tromey.com>
1482
1483 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1484 static.
1485
1486 2018-09-13 Tom Tromey <tom@tromey.com>
1487
1488 * exec.c (try_open_exec_file): Use std::string.
1489
1490 2018-09-13 Tom Tromey <tom@tromey.com>
1491
1492 * utils.h (gdb_bfd_errmsg): Return std::string.
1493 * exec.c (exec_file_attach): Update.
1494 * compile/compile-object-load.c (compile_object_load): Update.
1495 * utils.c (gdb_bfd_errmsg): Return std::string.
1496
1497 2018-09-13 Tom Tromey <tom@tromey.com>
1498
1499 * procfs.c (struct procinfo_deleter): New.
1500 (procinfo_up): New typedef.
1501 (do_destroy_procinfo_cleanup): Remove.
1502 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1503
1504 2018-09-13 Tom Tromey <tom@tromey.com>
1505
1506 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1507
1508 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1509 2018-09-13 Tom Tromey <tom@tromey.com>
1510
1511 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1512 (pspy_get_objfiles): New function.
1513 (progspace_object_methods): New.
1514 (pspace_object_type): Add tp_methods callback.
1515 * python/python-internal.h (build_objfiles_list): New
1516 declaration.
1517 * python/python.c (build_objfiles_list): New function.
1518 (gdbpy_objfiles): Implement using build_objfiles_list.
1519 * NEWS: Mention the Progspace.objfiles method.
1520
1521 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1522
1523 * python/py-inferior.c (infpy_get_progspace): New function.
1524 (inferior_object_getset): Add progspace property.
1525 * NEWS: Mention the new property.
1526
1527 2018-09-13 Tom Tromey <tom@tromey.com>
1528
1529 PR rust/23650:
1530 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1531
1532 2018-09-13 Tom Tromey <tom@tromey.com>
1533
1534 PR rust/23626:
1535 * rust-lang.c (rust_enum_variant): Now static.
1536 (rust_empty_enum_p): New function.
1537 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1538 Handle empty enum.
1539
1540 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1541
1542 * python/py-inferior.c (infpy_repr): New.
1543 (inferior_object_type): Register infpy_repr.
1544 * python/py-objfile.c (objfpy_repr): New.
1545 (objfile_object_type): Register objfpy_repr.
1546
1547 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1548
1549 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1550
1551 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1552
1553 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1554 typo.
1555
1556 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1557
1558 * common/common-utils.c: Don't include '<sys/stat.h>'.
1559 (is_regular_file): Move to...
1560 * common/filestuff.c (is_regular_file): ... here.
1561 * common/common-utils.h (is_regular_file): Move to...
1562 * common/filestuff.h (is_regular_file): ... here.
1563
1564 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1565
1566 * skip.c (debug_skip): New variable.
1567 (skiplist_entry::do_skip_file_p): Add debug output.
1568 (skiplist_entry::do_skip_gfile_p): Likewise.
1569 (skiplist_entry::skip_function_p): Likewise.
1570 (_initialize_step_skip): Create debug command.
1571 * NEWS: Mention set/show debug skip.
1572
1573 2018-09-11 Xavier Roirand <roirand@adacore.com>
1574
1575 * darwin-nat.c (should_disable_startup_with_shell):
1576 New function.
1577 (darwin_nat_target::create_inferior): Add call.
1578
1579 2018-09-11 Xavier Roirand <roirand@adacore.com>
1580
1581 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1582 inf_port, msg_state>: Initialize.
1583 (struct darwin_thread_info) <signaled, single_step>: Change
1584 type and initialize.
1585 (struct darwin_thread_info) <event>: Initialize.
1586
1587 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1588
1589 PR gdb/23555
1590 PR gdb/23558
1591 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1592 guesses.
1593
1594 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1595
1596 Revert:
1597 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1598
1599 PR gdb/23555
1600 PR gdb/23558
1601 * gnulib/aclocal.m4: Regenerate.
1602 * gnulib/config.in: Regenerate.
1603 * gnulib/configure: Regenerate.
1604 * gnulib/import/Makefile.am: Update.
1605 * gnulib/import/Makefile.in: Update.
1606 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1607 * gnulib/import/_Noreturn.h: ... this.
1608 * gnulib/import/alloca.in.h: Update.
1609 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1610 * gnulib/import/arg-nonnull.h: ... this.
1611 * gnulib/import/assure.h: Update.
1612 * gnulib/import/at-func.c: Update.
1613 * gnulib/import/basename-lgpl.c: Update.
1614 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1615 * gnulib/import/c++defs.h: ... this.
1616 * gnulib/import/canonicalize-lgpl.c: Update.
1617 * gnulib/import/cdefs.h: Update.
1618 * gnulib/import/chdir-long.c: Update.
1619 * gnulib/import/chdir-long.h: Update.
1620 * gnulib/import/cloexec.c: Update.
1621 * gnulib/import/cloexec.h: Update.
1622 * gnulib/import/close.c: Update.
1623 * gnulib/import/closedir.c: Update.
1624 * gnulib/import/config.charset: Update.
1625 * gnulib/import/dirent-private.h: Update.
1626 * gnulib/import/dirent.in.h: Update.
1627 * gnulib/import/dirfd.c: Update.
1628 * gnulib/import/dirname-lgpl.c: Update.
1629 * gnulib/import/dirname.h: Update.
1630 * gnulib/import/dosname.h: Update.
1631 * gnulib/import/dup-safer-flag.c: Update.
1632 * gnulib/import/dup-safer.c: Update.
1633 * gnulib/import/dup.c: Update.
1634 * gnulib/import/dup2.c: Update.
1635 * gnulib/import/errno.in.h: Update.
1636 * gnulib/import/error.c: Update.
1637 * gnulib/import/error.h: Update.
1638 * gnulib/import/exitfail.c: Update.
1639 * gnulib/import/exitfail.h: Update.
1640 * gnulib/import/extra/update-copyright: Update.
1641 * gnulib/import/fchdir.c: Update.
1642 * gnulib/import/fcntl.c: Update.
1643 * gnulib/import/fcntl.in.h: Update.
1644 * gnulib/import/fd-hook.c: Update.
1645 * gnulib/import/fd-hook.h: Update.
1646 * gnulib/import/fd-safer-flag.c: Update.
1647 * gnulib/import/fd-safer.c: Update.
1648 * gnulib/import/fdopendir.c: Update.
1649 * gnulib/import/filename.h: Update.
1650 * gnulib/import/filenamecat-lgpl.c: Update.
1651 * gnulib/import/filenamecat.h: Update.
1652 * gnulib/import/flexmember.h: Update.
1653 * gnulib/import/float+.h: Update.
1654 * gnulib/import/float.c: Update.
1655 * gnulib/import/float.in.h: Update.
1656 * gnulib/import/fnmatch.c: Update.
1657 * gnulib/import/fnmatch.in.h: Update.
1658 * gnulib/import/fnmatch_loop.c: Update.
1659 * gnulib/import/fpucw.h: Update.
1660 * gnulib/import/frexp.c: Update.
1661 * gnulib/import/frexpl.c: Update.
1662 * gnulib/import/fstat.c: Update.
1663 * gnulib/import/fstatat.c: Update.
1664 * gnulib/import/getcwd-lgpl.c: Update.
1665 * gnulib/import/getcwd.c: Update.
1666 * gnulib/import/getdtablesize.c: Update.
1667 * gnulib/import/getlogin_r.c: Update.
1668 * gnulib/import/getprogname.c: Update.
1669 * gnulib/import/getprogname.h: Update.
1670 * gnulib/import/gettext.h: Update.
1671 * gnulib/import/gettimeofday.c: Update.
1672 * gnulib/import/glob-libc.h: Update.
1673 * gnulib/import/glob.c: Update.
1674 * gnulib/import/glob.in.h: Update.
1675 * gnulib/import/glob_internal.h: Update.
1676 * gnulib/import/glob_pattern_p.c: Update.
1677 * gnulib/import/globfree.c: Update.
1678 * gnulib/import/hard-locale.c: Update.
1679 * gnulib/import/hard-locale.h: Update.
1680 * gnulib/import/intprops.h: Update.
1681 * gnulib/import/inttypes.in.h: Update.
1682 * gnulib/import/isnan.c: Update.
1683 * gnulib/import/isnand-nolibm.h: Update.
1684 * gnulib/import/isnand.c: Update.
1685 * gnulib/import/isnanl-nolibm.h: Update.
1686 * gnulib/import/isnanl.c: Update.
1687 * gnulib/import/itold.c: Update.
1688 * gnulib/import/libc-config.h: Update.
1689 * gnulib/import/limits.in.h: Update.
1690 * gnulib/import/localcharset.c: Update.
1691 * gnulib/import/localcharset.h: Update.
1692 * gnulib/import/localtime-buffer.c: Update.
1693 * gnulib/import/localtime-buffer.h: Update.
1694 * gnulib/import/lstat.c: Update.
1695 * gnulib/import/m4/00gnulib.m4: Update.
1696 * gnulib/import/m4/__inline.m4: Update.
1697 * gnulib/import/m4/absolute-header.m4: Update.
1698 * gnulib/import/m4/alloca.m4: Update.
1699 * gnulib/import/m4/builtin-expect.m4: Update.
1700 * gnulib/import/m4/canonicalize.m4: Update.
1701 * gnulib/import/m4/chdir-long.m4: Update.
1702 * gnulib/import/m4/close.m4: Update.
1703 * gnulib/import/m4/closedir.m4: Update.
1704 * gnulib/import/m4/configmake.m4: Update.
1705 * gnulib/import/m4/d-ino.m4: Update.
1706 * gnulib/import/m4/d-type.m4: Update.
1707 * gnulib/import/m4/dirent_h.m4: Update.
1708 * gnulib/import/m4/dirfd.m4: Update.
1709 * gnulib/import/m4/dirname.m4: Update.
1710 * gnulib/import/m4/double-slash-root.m4: Update.
1711 * gnulib/import/m4/dup.m4: Update.
1712 * gnulib/import/m4/dup2.m4: Update.
1713 * gnulib/import/m4/eealloc.m4: Update.
1714 * gnulib/import/m4/environ.m4: Update.
1715 * gnulib/import/m4/errno_h.m4: Update.
1716 * gnulib/import/m4/error.m4: Update.
1717 * gnulib/import/m4/exponentd.m4: Update.
1718 * gnulib/import/m4/exponentl.m4: Update.
1719 * gnulib/import/m4/extensions.m4: Update.
1720 * gnulib/import/m4/extern-inline.m4: Update.
1721 * gnulib/import/m4/fchdir.m4: Update.
1722 * gnulib/import/m4/fcntl-o.m4: Update.
1723 * gnulib/import/m4/fcntl.m4: Update.
1724 * gnulib/import/m4/fcntl_h.m4: Update.
1725 * gnulib/import/m4/fdopendir.m4: Update.
1726 * gnulib/import/m4/filenamecat.m4: Update.
1727 * gnulib/import/m4/flexmember.m4: Update.
1728 * gnulib/import/m4/float_h.m4: Update.
1729 * gnulib/import/m4/fnmatch.m4: Update.
1730 * gnulib/import/m4/fnmatch_h.m4: Update.
1731 * gnulib/import/m4/fpieee.m4: Update.
1732 * gnulib/import/m4/frexp.m4: Update.
1733 * gnulib/import/m4/frexpl.m4: Update.
1734 * gnulib/import/m4/fstat.m4: Update.
1735 * gnulib/import/m4/fstatat.m4: Update.
1736 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1737 * gnulib/import/m4/getcwd-path-max.m4: Update.
1738 * gnulib/import/m4/getcwd.m4: Update.
1739 * gnulib/import/m4/getdtablesize.m4: Update.
1740 * gnulib/import/m4/getlogin.m4: Update.
1741 * gnulib/import/m4/getlogin_r.m4: Update.
1742 * gnulib/import/m4/getpagesize.m4: Update.
1743 * gnulib/import/m4/getprogname.m4: Update.
1744 * gnulib/import/m4/gettimeofday.m4: Update.
1745 * gnulib/import/m4/glibc21.m4: Update.
1746 * gnulib/import/m4/glob.m4: Update.
1747 * gnulib/import/m4/glob_h.m4: Update.
1748 * gnulib/import/m4/gnulib-cache.m4: Update.
1749 * gnulib/import/m4/gnulib-common.m4: Update.
1750 * gnulib/import/m4/gnulib-comp.m4: Update.
1751 * gnulib/import/m4/gnulib-tool.m4: Update.
1752 * gnulib/import/m4/hard-locale.m4: Update.
1753 * gnulib/import/m4/include_next.m4: Update.
1754 * gnulib/import/m4/inttypes-pri.m4: Update.
1755 * gnulib/import/m4/inttypes.m4: Update.
1756 * gnulib/import/m4/isnand.m4: Update.
1757 * gnulib/import/m4/isnanl.m4: Update.
1758 * gnulib/import/m4/largefile.m4: Update.
1759 * gnulib/import/m4/limits-h.m4: Update.
1760 * gnulib/import/m4/localcharset.m4: Update.
1761 * gnulib/import/m4/locale-fr.m4: Update.
1762 * gnulib/import/m4/locale-ja.m4: Update.
1763 * gnulib/import/m4/locale-zh.m4: Update.
1764 * gnulib/import/m4/localtime-buffer.m4: Update.
1765 * gnulib/import/m4/longlong.m4: Update.
1766 * gnulib/import/m4/lstat.m4: Update.
1767 * gnulib/import/m4/malloc.m4: Update.
1768 * gnulib/import/m4/malloca.m4: Update.
1769 * gnulib/import/m4/math_h.m4: Update.
1770 * gnulib/import/m4/mbrtowc.m4: Update.
1771 * gnulib/import/m4/mbsinit.m4: Update.
1772 * gnulib/import/m4/mbsrtowcs.m4: Update.
1773 * gnulib/import/m4/mbstate_t.m4: Update.
1774 * gnulib/import/m4/memchr.m4: Update.
1775 * gnulib/import/m4/memmem.m4: Update.
1776 * gnulib/import/m4/mempcpy.m4: Update.
1777 * gnulib/import/m4/memrchr.m4: Update.
1778 * gnulib/import/m4/mkdir.m4: Update.
1779 * gnulib/import/m4/mkstemp.m4: Update.
1780 * gnulib/import/m4/mmap-anon.m4: Update.
1781 * gnulib/import/m4/mode_t.m4: Update.
1782 * gnulib/import/m4/msvc-inval.m4: Update.
1783 * gnulib/import/m4/msvc-nothrow.m4: Update.
1784 * gnulib/import/m4/multiarch.m4: Update.
1785 * gnulib/import/m4/nocrash.m4: Update.
1786 * gnulib/import/m4/off_t.m4: Update.
1787 * gnulib/import/m4/onceonly.m4: Update.
1788 * gnulib/import/m4/open-cloexec.m4: Update.
1789 * gnulib/import/m4/open.m4: Update.
1790 * gnulib/import/m4/openat.m4: Update.
1791 * gnulib/import/m4/opendir.m4: Update.
1792 * gnulib/import/m4/pathmax.m4: Update.
1793 * gnulib/import/m4/rawmemchr.m4: Update.
1794 * gnulib/import/m4/readdir.m4: Update.
1795 * gnulib/import/m4/readlink.m4: Update.
1796 * gnulib/import/m4/realloc.m4: Update.
1797 * gnulib/import/m4/rename.m4: Update.
1798 * gnulib/import/m4/rewinddir.m4: Update.
1799 * gnulib/import/m4/rmdir.m4: Update.
1800 * gnulib/import/m4/save-cwd.m4: Update.
1801 * gnulib/import/m4/secure_getenv.m4: Update.
1802 * gnulib/import/m4/setenv.m4: Update.
1803 * gnulib/import/m4/signal_h.m4: Update.
1804 * gnulib/import/m4/ssize_t.m4: Update.
1805 * gnulib/import/m4/stat-time.m4: Update.
1806 * gnulib/import/m4/stat.m4: Update.
1807 * gnulib/import/m4/std-gnu11.m4: Update.
1808 * gnulib/import/m4/stdbool.m4: Update.
1809 * gnulib/import/m4/stddef_h.m4: Update.
1810 * gnulib/import/m4/stdint.m4: Update.
1811 * gnulib/import/m4/stdio_h.m4: Update.
1812 * gnulib/import/m4/stdlib_h.m4: Update.
1813 * gnulib/import/m4/strchrnul.m4: Update.
1814 * gnulib/import/m4/strdup.m4: Update.
1815 * gnulib/import/m4/strerror.m4: Update.
1816 * gnulib/import/m4/string_h.m4: Update.
1817 * gnulib/import/m4/strstr.m4: Update.
1818 * gnulib/import/m4/strtok_r.m4: Update.
1819 * gnulib/import/m4/sys_socket_h.m4: Update.
1820 * gnulib/import/m4/sys_stat_h.m4: Update.
1821 * gnulib/import/m4/sys_time_h.m4: Update.
1822 * gnulib/import/m4/sys_types_h.m4: Update.
1823 * gnulib/import/m4/tempname.m4: Update.
1824 * gnulib/import/m4/time_h.m4: Update.
1825 * gnulib/import/m4/unistd-safer.m4: Update.
1826 * gnulib/import/m4/unistd_h.m4: Update.
1827 * gnulib/import/m4/warn-on-use.m4: Update.
1828 * gnulib/import/m4/wchar_h.m4: Update.
1829 * gnulib/import/m4/wchar_t.m4: Update.
1830 * gnulib/import/m4/wctype_h.m4: Update.
1831 * gnulib/import/m4/wint_t.m4: Update.
1832 * gnulib/import/malloc.c: Update.
1833 * gnulib/import/malloc/scratch_buffer.h: Update.
1834 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1835 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1836 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1837 * gnulib/import/malloca.c: Update.
1838 * gnulib/import/malloca.h: Update.
1839 * gnulib/import/malloca.valgrind: Update.
1840 * gnulib/import/math.in.h: Update.
1841 * gnulib/import/mbrtowc.c: Update.
1842 * gnulib/import/mbsinit.c: Update.
1843 * gnulib/import/mbsrtowcs-impl.h: Update.
1844 * gnulib/import/mbsrtowcs-state.c: Update.
1845 * gnulib/import/mbsrtowcs.c: Update.
1846 * gnulib/import/memchr.c: Update.
1847 * gnulib/import/memmem.c: Update.
1848 * gnulib/import/mempcpy.c: Update.
1849 * gnulib/import/memrchr.c: Update.
1850 * gnulib/import/mkdir.c: Update.
1851 * gnulib/import/mkstemp.c: Update.
1852 * gnulib/import/msvc-inval.c: Update.
1853 * gnulib/import/msvc-inval.h: Update.
1854 * gnulib/import/msvc-nothrow.c: Update.
1855 * gnulib/import/msvc-nothrow.h: Update.
1856 * gnulib/import/open.c: Update.
1857 * gnulib/import/openat-die.c: Update.
1858 * gnulib/import/openat-priv.h: Update.
1859 * gnulib/import/openat-proc.c: Update.
1860 * gnulib/import/openat.c: Update.
1861 * gnulib/import/openat.h: Update.
1862 * gnulib/import/opendir.c: Update.
1863 * gnulib/import/pathmax.h: Update.
1864 * gnulib/import/pipe-safer.c: Update.
1865 * gnulib/import/rawmemchr.c: Update.
1866 * gnulib/import/readdir.c: Update.
1867 * gnulib/import/readlink.c: Update.
1868 * gnulib/import/realloc.c: Update.
1869 * gnulib/import/ref-add.sin: Update.
1870 * gnulib/import/ref-del.sin: Update.
1871 * gnulib/import/rename.c: Update.
1872 * gnulib/import/rewinddir.c: Update.
1873 * gnulib/import/rmdir.c: Update.
1874 * gnulib/import/same-inode.h: Update.
1875 * gnulib/import/save-cwd.c: Update.
1876 * gnulib/import/save-cwd.h: Update.
1877 * gnulib/import/scratch_buffer.h: Update.
1878 * gnulib/import/secure_getenv.c: Update.
1879 * gnulib/import/setenv.c: Update.
1880 * gnulib/import/signal.in.h: Update.
1881 * gnulib/import/stat-time.c: Update.
1882 * gnulib/import/stat-time.h: Update.
1883 * gnulib/import/stat-w32.c: Update.
1884 * gnulib/import/stat-w32.h: Update.
1885 * gnulib/import/stat.c: Update.
1886 * gnulib/import/stdbool.in.h: Update.
1887 * gnulib/import/stddef.in.h: Update.
1888 * gnulib/import/stdint.in.h: Update.
1889 * gnulib/import/stdio.in.h: Update.
1890 * gnulib/import/stdlib.in.h: Update.
1891 * gnulib/import/str-two-way.h: Update.
1892 * gnulib/import/strchrnul.c: Update.
1893 * gnulib/import/strdup.c: Update.
1894 * gnulib/import/streq.h: Update.
1895 * gnulib/import/strerror-override.c: Update.
1896 * gnulib/import/strerror-override.h: Update.
1897 * gnulib/import/strerror.c: Update.
1898 * gnulib/import/string.in.h: Update.
1899 * gnulib/import/stripslash.c: Update.
1900 * gnulib/import/strnlen1.c: Update.
1901 * gnulib/import/strnlen1.h: Update.
1902 * gnulib/import/strstr.c: Update.
1903 * gnulib/import/strtok_r.c: Update.
1904 * gnulib/import/sys_stat.in.h: Update.
1905 * gnulib/import/sys_time.in.h: Update.
1906 * gnulib/import/sys_types.in.h: Update.
1907 * gnulib/import/tempname.c: Update.
1908 * gnulib/import/tempname.h: Update.
1909 * gnulib/import/time.in.h: Update.
1910 * gnulib/import/unistd--.h: Update.
1911 * gnulib/import/unistd-safer.h: Update.
1912 * gnulib/import/unistd.in.h: Update.
1913 * gnulib/import/unsetenv.c: Update.
1914 * gnulib/import/verify.h: Update.
1915 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1916 * gnulib/import/wchar.in.h: Update.
1917 * gnulib/import/wctype.in.h: Update.
1918 * gnulib/import/xalloc-oversized.h: Update.
1919 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1920 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1921
1922 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1923
1924 * record-btrace.c (get_thread_current_frame): Remove
1925 old_inferior_ptid.
1926
1927 2018-09-10 Jerome Guitton <guitton@adacore.com>
1928
1929 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1930 with check_tag to 1 if and only if the type is tagged and the
1931 component being searched cannot been found in the current
1932 view. Otherwise, always call ada_to_fixed_type with
1933 check_tag to 0.
1934
1935 2018-09-10 Xavier Roirand <roirand@adacore.com>
1936
1937 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1938 declaration.
1939 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1940 * ada-varobj.c (ada_varobj_get_number_of_children,
1941 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1942
1943 2018-09-10 Xavier Roirand <roirand@adacore.com>
1944
1945 * ada-valprint.c (ada_value_print): Use type instead of
1946 enclosing type.
1947
1948 2018-09-10 Xavier Roirand <roirand@adacore.com>
1949
1950 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1951 an array of access to unconstrained array.
1952
1953 2018-09-10 Xavier Roirand <roirand@adacore.com>
1954
1955 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1956 (ada_check_typedef): Use it.
1957
1958 2018-09-10 Xavier Roirand <roirand@adacore.com>
1959
1960 * ada-varobj.c (ada_varobj_describe_struct_child)
1961 (ada_varobj_describe_child): Handle union case like struct one.
1962
1963 2018-09-10 Tom Tromey <tom@tromey.com>
1964
1965 PR python/18380:
1966 * python/python.c (_initialize_python): Make example in "python"
1967 help work in Python 3.
1968
1969 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1970
1971 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1972 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1973 $(EXEEXT) to the script, as it is not a program.
1974
1975 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1976
1977 * python/py-prettyprint.c (pretty_print_one_value): Return
1978 gdbpy_ref<>.
1979 (print_string_repr): Adjust.
1980 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1981 * python/python-internal.h (apply_varobj_pretty_printer): Return
1982 gdbpy_ref<>.
1983 * varobj.c (varobj_value_get_print_value): Adjust.
1984
1985 2018-09-08 Tom Tromey <tom@tromey.com>
1986
1987 PR python/16047:
1988 * python/py-prettyprint.c (pretty_print_one_value): Check for
1989 to_string method.
1990
1991 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1992
1993 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1994 replace_operator_with_call.
1995
1996 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1997
1998 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1999
2000 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2001
2002 * ada-typeprint.c (print_range): Print the bounds using TYPE
2003 rather than its TYPE_TARGET_TYPE.
2004
2005 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2006
2007 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2008 call to ada_to_fixed_value_create.
2009
2010 2018-09-08 Jerome Guitton <guitton@adacore.com>
2011
2012 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2013
2014 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2015
2016 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2017 by calls to error.
2018
2019 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2020
2021 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2022 Move update of loop variable "fi".
2023
2024 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2025
2026 * ada-lang.c (value_assign_to_component): In the case of
2027 big-endian targets, extract the bits of the given VAL
2028 using an src_offset of zero if container is not a scalar.
2029
2030 2018-09-06 Simon Ser <contact@emersion.fr>
2031
2032 PR gdb/23105
2033 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2034 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2035 * fbsd-tdep.c (fbsd_make_note_desc): New.
2036 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2037 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2038 * target.h (enum target_object) Add FreeBSD-specific
2039 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2040
2041 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2042
2043 * compile/compile-c.h (generate_c_for_variable_locations):
2044 Change reference to pointer.
2045 * compile/compile-c-support.c (compile_program) <compute>:
2046 Likewise.
2047 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2048 (generate_c_for_for_one_variable): Likewise
2049 (generate_c_for_variable_locations): Likewise
2050 * compile/compile-c-types.c (compile_c_instance::convert_type):
2051 Likewise
2052 * compile/compile-cplus-symbols.c (convert_one_symbol):
2053 std::move the scope passed to enter_scope.
2054 * compile/compile-cplus-types.c
2055 (compile_cplus_instance::enter_scope): Make parameter
2056 rvalue-reference.
2057 (compile_cplus_instance::new_scope): Change reference to
2058 pointer.
2059 (compile_cplus_instance::convert_type): Likewise
2060 (compile_cplus_convert_typedef): std::move the scope passed to
2061 enter_scope.
2062 (compile_cplus_convert_struct_or_union): Likewise.
2063 (compile_cplus_convert_enum): Likewise.
2064 (compile_cplus_convert_namespace): Likewise.
2065 * compile/compile-cplus.h (compile_cplus_instance)
2066 <enter_scope>: Make parameter rvalue-reference.
2067 * compile/compile-internal.h (compile_instance)
2068 <get_cached_type>: Likewise
2069 * compile/compile-loc2c.c (push): Likewise
2070 (pushf): Likewise
2071 (unary): Likewise
2072 (binary): Likewise
2073 (print_label): Likewise
2074 (pushf_register_address): Likewise
2075 (pushf_register): Likewise
2076 (do_compile_dwarf_expr_to_c): Likewise
2077 (compile_dwarf_expr_to_c): Likewise
2078 (compile_dwarf_bounds_to_c): Likewise
2079 * compile/compile.c (compile_instance::get_cached_type):
2080 Likewise
2081 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2082 (compile_dwarf_bounds_to_c): Likewise
2083 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2084 (dwarf2_compile_property_to_c): Likewise
2085 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2086 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2087 Likewise
2088
2089 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2090
2091 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2092 * tui/tui-data.c (init_content_element): Don't initialize it.
2093
2094 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2095
2096 * tui/tui-data.h (struct tui_win_info)
2097 <detail::opaque>: Remove.
2098 * tui/tui-data.c (init_win_info): Remove assignment.
2099
2100 2018-09-05 Tom Tromey <tom@tromey.com>
2101
2102 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2103 -Wformat-nonliteral.
2104 * target-float.c (host_float_ops<T>::to_string)
2105 (host_float_ops<T>::from_string): Use
2106 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2107 * configure: Rebuild.
2108
2109 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2110
2111 * printcmd.c (printf_c_string): Use
2112 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2113 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2114
2115 2018-09-05 Tom Tromey <tom@tromey.com>
2116
2117 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2118
2119 2018-09-05 Tom de Vries <tdevries@suse.de>
2120
2121 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2122 with resolve_abstract_p == true.
2123 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2124 defaulting to false. Propagate resolve_abstract_p to
2125 dwarf2_fetch_die_loc_sect_off.
2126 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2127 parameter, defaulting to false.
2128 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2129 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2130 parameter.
2131 * dwarf2read.h (struct die_info): Forward-declare.
2132 (die_info_ptr): New typedef.
2133 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2134
2135 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2136
2137 GDB 8.2 released.
2138
2139 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2140 Pedro Alves <palves@redhat.com>
2141
2142 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2143 "aclocal-m4-deps.mk". Include file here.
2144 $(srcdir)/aclocal.m4: Add "configure.ac".
2145 * gnulib/aclocal-m4-deps.mk: New file.
2146 * gnulib/update-gnulib.sh: Automatically update
2147 "aclocal-m4-deps.mk".
2148
2149 2018-09-04 Tom Tromey <tom@tromey.com>
2150
2151 * configure: Rebuild.
2152 * configure.ac: Remove multi-ice code.
2153
2154 2018-09-04 Tom Tromey <tom@tromey.com>
2155
2156 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2157 (ada-exp.o): Update.
2158
2159 2018-09-04 Tom Tromey <tom@tromey.com>
2160
2161 * Makefile.in (printcmd.o, target-float.o): Remove.
2162 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2163
2164 2018-09-04 Tom Tromey <tom@tromey.com>
2165
2166 * gnulib/Makefile.in: Remove obsolete comment.
2167 * Makefile.in: Remove obsolete comment.
2168
2169 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2172 line with '+'.
2173
2174 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * riscv-tdep.c: Add 'prologue-value.h' include.
2177 (struct riscv_unwind_cache): New struct.
2178 (riscv_debug_unwinder): New global.
2179 (riscv_scan_prologue): Update arguments, capture register details
2180 from prologue scan.
2181 (riscv_skip_prologue): Reformat arguments line, move end of
2182 prologue calculation into riscv_scan_prologue.
2183 (riscv_frame_cache): Update return type, create
2184 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2185 details.
2186 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2187 (riscv_frame_prev_register): Use the trad_frame within the
2188 riscv_unwind_cache.
2189 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2190 flag.
2191
2192 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * trad-frame.h (trad_frame_set_realreg): Declare.
2195 (trad_frame_set_addr): Declare.
2196 * trad-frame.c (trad_frame_set_realreg): Define new function.
2197 (trad_frame_set_addr): Define new function.
2198 (trad_frame_set_reg_realreg): Use new function.
2199 (trad_frame_set_reg_addr): Use new function.
2200
2201 2018-09-01 Keith Seitz <keiths@redhat.com>
2202
2203 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2204 pulongest instead of "%lld".
2205 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2206 ATTRIBUTE_UNUSED.
2207
2208 2018-08-31 Tom Tromey <tom@tromey.com>
2209
2210 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2211 variant part type.
2212
2213 2018-08-31 Pedro Alves <palves@redhat.com>
2214
2215 * gdbarch.h: Regenerate.
2216
2217 2018-08-31 Pedro Alves <palves@redhat.com>
2218
2219 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2220 * target.h (Hardware watchpoint interfaces): Describe
2221 continuable/steppable/non-steppable watchpoints.
2222 * gdbarch.h, gdbarch.c: Regenerate.
2223
2224 2018-08-31 Pedro Alves <palves@redhat.com>
2225
2226 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2227 Delete.
2228 * s390-linux-nat.c
2229 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2230 * target.h (target_ops::have_continuable_watchpoint): Delete.
2231 (target_have_continuable_watchpoint): Delete.
2232 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2233 * target-delegates.c: Regenerate.
2234
2235 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2236
2237 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2238 the files present in "gnulib/import/m4/".
2239
2240 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2243 c.sw, c.swsp, and c.sdsp.
2244
2245 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2248 (riscv_read_misa_reg): Don't cache value read into inferior data.
2249 (riscv_new_inferior_data): Delete.
2250 (riscv_inferior_data_cleanup): Delete.
2251 (riscv_inferior_data): Delete.
2252 (riscv_invalidate_inferior_data): Delete.
2253 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2254
2255 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2256
2257 * compile/compile-cplus-types.c
2258 (compile_cplus_instance::leave_scope): Take the address of scope
2259 object.
2260 (compile_cplus_instance::convert_qualified_base): Compare quals
2261 to 0.
2262
2263 2018-08-30 Keith Seitz <keiths@redhat.com>
2264
2265 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2266 Use "%s" and host_address_to_string instead of "%p" in printf.
2267
2268 2018-08-29 Keith Seitz <keiths@redhat.com>
2269
2270 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2271 and compile-cplus-types.c.
2272 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2273 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2274 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2275 Declare.
2276 * compile/compile-c-support.c: Include compile-cplus.h.
2277 (load_libcompile): Templatize.
2278 (get_compile_context): "New" function.
2279 (c_get_compile_context): Use get_compile_context.
2280 (cplus_get_compile_context): New function.
2281 (cplus_push_user_expression, cplus_pop_user_expression)
2282 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2283 (cplus_compute_program): Define new structs/functions.
2284 * compile/compile-cplus-symmbols.c: New file.
2285 * compile/compile-cplus-types.c: New file.
2286 * compile/compile-cplus.h: New file.
2287 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2288 Declare.
2289 * compile/compile-object-load.c (get_out_value_type): Use
2290 strncmp_iw when comparing symbol names.
2291 (compile_object_load): Add mst_bss and mst_data.
2292 * compile/compile.c (_initialize_compile): Remove
2293 -Wno-implicit-function-declaration from `compile_args'.
2294 * compile/gcc-cp-plugin.h: New file.
2295 * NEWS: Mention C++ compile support and new debug options.
2296
2297 2018-08-29 Keith Seitz <keiths@redhat.com>
2298
2299 * linespec.c (collect_info::add_symbol): Make virtual.
2300 (struct symbol_searcher_collect_info): New struct.
2301 (symbol_searcher::find_all_symbols): New method.
2302 * symtab.h (class symbol_searcher): New class.
2303
2304 2018-08-29 Keith Seitz <keiths@redhat.com>
2305
2306 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2307 Change to vector of block_symbol. Update all users.
2308 (struct collect_info) <symbols>: Likewise.
2309 (collect_info::add_symbol): Take block_symbol as argument.
2310 Update all callers.
2311 (decode_compound_collector) <m_symbols>: Change type to vector
2312 of block_symbol. Update all users.
2313 (decode_compound_collector::operator ()): Change parameter type
2314 to block_symbol.
2315 (find_method, find_function_symbols, find_linespec_symbols)
2316 (find_label_symbols_in_block, find_label_symbols): Change symbol
2317 vectors to block_symbol vectors.
2318 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2319 block_symbol.
2320
2321 2018-08-29 Keith Seitz <keiths@redhat.com>
2322
2323 * linespec.c (symbolp): Remove typedef and VEC definitions.
2324 (bound_minimal_symbol_d): Likewise.
2325
2326 2018-08-29 Keith Seitz <keiths@redhat.com>
2327
2328 * linespec.c (decode_compound_collector::decode_compound_collector):
2329 Remove initialization for `m_symtabs'.
2330 (decode_compound_collector::release_symbols): Change return type
2331 to std::vector. Update all callers.
2332 (class decode_compound_collector) <m_symbols>: Change type to
2333 std::vector.
2334 (lookup_prefix_sym): Change return type to std::vector. Update all
2335 callers.
2336 (compare_symbols): Remove.
2337 (std_compare_symbols): Rename to `compare_symbols'.
2338 (find_method): Change `sym_classes' parameter to std::vector.
2339 Update all callers. Use std::sort to sort sym_classes.
2340 (find_linespec_symbols): Remove cleanup.
2341
2342 2018-08-29 Keith Seitz <keiths@redhat.com>
2343
2344 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2345 std::vector. Update all users.
2346 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2347 (struct collect_info) <minimal_symbols>: Likewise.
2348 (compare_msymbols): Return bool. Change parameters to const
2349 bound_minimal_symbol references.
2350 (find_method, find_function_symbols, find_linespec_symbols): Change
2351 `minsyms' parameter to std::vector. Update all callers.
2352
2353 2018-08-29 Keith Seitz <keiths@redhat.com>
2354
2355 * linespec.c (struct linespec) <label_symbols>: Change type to
2356 std::vector. Update all users.
2357 (find_label_symbols_in_block): Change `result' parameter to
2358 std::vector. Update all callers.
2359 (find_label_symbols): Return std::vector. Update all callers.
2360
2361 2018-08-29 Keith Seitz <keiths@redhat.com>
2362
2363 * linespec.c (struct linespec) <function_symbols>: Change type to
2364 std::vector. Update all users.
2365 (struct collect_info) <function_symbols>: Likewise.
2366 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2367 (std_compare_symbols): New function.
2368 (find_method, find_function_symbols, find_linespec_symbols)
2369 (find_label_symbols_in_block): Change `symbols' parameter to
2370 std::vector. Update all callers.
2371 (find_label_symbols): Likewise for `function_symbols' and
2372 `label_funcs_ret'.
2373
2374 2018-08-29 Keith Seitz <keiths@redhat.com>
2375
2376 * linespec.c (symtab_vector_up): Define.
2377 (struct linespec) <file_symtabs>: Change type to std::vector *.
2378 Update all uses.
2379 (struct collect_info) <file_symtabs>: Likewise.
2380 (collect_symtabs_from_filename): Return symtab_vector_up.
2381 Update all callers.
2382 (decode_objc): Remove cleanup.
2383 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2384 (symtab_collector::release_symtabs): Return symtab_vector_up.
2385 Update all callers.
2386 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2387 Update all users.
2388 (collect_symtabs_from_filename, symtabs_from_filename): Return
2389 symtab_vector_up. Update all callers.
2390
2391 2018-08-29 Tom Tromey <tom@tromey.com>
2392
2393 * csky-tdep.c (csky_analyze_prologue): Use
2394 core_addr_to_string_nz.
2395
2396 2018-08-29 Tom Tromey <tom@tromey.com>
2397
2398 * windows-nat.c (struct xlate_exception) <them>: Change type to
2399 DWORD.
2400 (xlate): Fix formatting. Remove last entry.
2401 (struct xlate_exception, xlate): Comment out.
2402 (windows_nat_target::resume): Use ranged for.
2403
2404 2018-08-29 Jim Wilson <jimw@sifive.com>
2405
2406 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2407 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2408 of NT_PRFPREG.
2409 (riscv_linux_nat_target::store_registers): Likewise.
2410
2411 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2412
2413 PR gdb/23555
2414 PR gdb/23558
2415 * gnulib/aclocal.m4: Regenerate.
2416 * gnulib/config.in: Regenerate.
2417 * gnulib/configure: Regenerate.
2418 * gnulib/import/Makefile.am: Update.
2419 * gnulib/import/Makefile.in: Update.
2420 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2421 * gnulib/import/_Noreturn.h: ... this.
2422 * gnulib/import/alloca.in.h: Update.
2423 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2424 * gnulib/import/arg-nonnull.h: ... this.
2425 * gnulib/import/assure.h: Update.
2426 * gnulib/import/at-func.c: Update.
2427 * gnulib/import/basename-lgpl.c: Update.
2428 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2429 * gnulib/import/c++defs.h: ... this.
2430 * gnulib/import/canonicalize-lgpl.c: Update.
2431 * gnulib/import/cdefs.h: Update.
2432 * gnulib/import/chdir-long.c: Update.
2433 * gnulib/import/chdir-long.h: Update.
2434 * gnulib/import/cloexec.c: Update.
2435 * gnulib/import/cloexec.h: Update.
2436 * gnulib/import/close.c: Update.
2437 * gnulib/import/closedir.c: Update.
2438 * gnulib/import/config.charset: Update.
2439 * gnulib/import/dirent-private.h: Update.
2440 * gnulib/import/dirent.in.h: Update.
2441 * gnulib/import/dirfd.c: Update.
2442 * gnulib/import/dirname-lgpl.c: Update.
2443 * gnulib/import/dirname.h: Update.
2444 * gnulib/import/dosname.h: Update.
2445 * gnulib/import/dup-safer-flag.c: Update.
2446 * gnulib/import/dup-safer.c: Update.
2447 * gnulib/import/dup.c: Update.
2448 * gnulib/import/dup2.c: Update.
2449 * gnulib/import/errno.in.h: Update.
2450 * gnulib/import/error.c: Update.
2451 * gnulib/import/error.h: Update.
2452 * gnulib/import/exitfail.c: Update.
2453 * gnulib/import/exitfail.h: Update.
2454 * gnulib/import/extra/update-copyright: Update.
2455 * gnulib/import/fchdir.c: Update.
2456 * gnulib/import/fcntl.c: Update.
2457 * gnulib/import/fcntl.in.h: Update.
2458 * gnulib/import/fd-hook.c: Update.
2459 * gnulib/import/fd-hook.h: Update.
2460 * gnulib/import/fd-safer-flag.c: Update.
2461 * gnulib/import/fd-safer.c: Update.
2462 * gnulib/import/fdopendir.c: Update.
2463 * gnulib/import/filename.h: Update.
2464 * gnulib/import/filenamecat-lgpl.c: Update.
2465 * gnulib/import/filenamecat.h: Update.
2466 * gnulib/import/flexmember.h: Update.
2467 * gnulib/import/float+.h: Update.
2468 * gnulib/import/float.c: Update.
2469 * gnulib/import/float.in.h: Update.
2470 * gnulib/import/fnmatch.c: Update.
2471 * gnulib/import/fnmatch.in.h: Update.
2472 * gnulib/import/fnmatch_loop.c: Update.
2473 * gnulib/import/fpucw.h: Update.
2474 * gnulib/import/frexp.c: Update.
2475 * gnulib/import/frexpl.c: Update.
2476 * gnulib/import/fstat.c: Update.
2477 * gnulib/import/fstatat.c: Update.
2478 * gnulib/import/getcwd-lgpl.c: Update.
2479 * gnulib/import/getcwd.c: Update.
2480 * gnulib/import/getdtablesize.c: Update.
2481 * gnulib/import/getlogin_r.c: Update.
2482 * gnulib/import/getprogname.c: Update.
2483 * gnulib/import/getprogname.h: Update.
2484 * gnulib/import/gettext.h: Update.
2485 * gnulib/import/gettimeofday.c: Update.
2486 * gnulib/import/glob-libc.h: Update.
2487 * gnulib/import/glob.c: Update.
2488 * gnulib/import/glob.in.h: Update.
2489 * gnulib/import/glob_internal.h: Update.
2490 * gnulib/import/glob_pattern_p.c: Update.
2491 * gnulib/import/globfree.c: Update.
2492 * gnulib/import/hard-locale.c: Update.
2493 * gnulib/import/hard-locale.h: Update.
2494 * gnulib/import/intprops.h: Update.
2495 * gnulib/import/inttypes.in.h: Update.
2496 * gnulib/import/isnan.c: Update.
2497 * gnulib/import/isnand-nolibm.h: Update.
2498 * gnulib/import/isnand.c: Update.
2499 * gnulib/import/isnanl-nolibm.h: Update.
2500 * gnulib/import/isnanl.c: Update.
2501 * gnulib/import/itold.c: Update.
2502 * gnulib/import/libc-config.h: Update.
2503 * gnulib/import/limits.in.h: Update.
2504 * gnulib/import/localcharset.c: Update.
2505 * gnulib/import/localcharset.h: Update.
2506 * gnulib/import/localtime-buffer.c: Update.
2507 * gnulib/import/localtime-buffer.h: Update.
2508 * gnulib/import/lstat.c: Update.
2509 * gnulib/import/m4/00gnulib.m4: Update.
2510 * gnulib/import/m4/__inline.m4: Update.
2511 * gnulib/import/m4/absolute-header.m4: Update.
2512 * gnulib/import/m4/alloca.m4: Update.
2513 * gnulib/import/m4/builtin-expect.m4: Update.
2514 * gnulib/import/m4/canonicalize.m4: Update.
2515 * gnulib/import/m4/chdir-long.m4: Update.
2516 * gnulib/import/m4/close.m4: Update.
2517 * gnulib/import/m4/closedir.m4: Update.
2518 * gnulib/import/m4/configmake.m4: Update.
2519 * gnulib/import/m4/d-ino.m4: Update.
2520 * gnulib/import/m4/d-type.m4: Update.
2521 * gnulib/import/m4/dirent_h.m4: Update.
2522 * gnulib/import/m4/dirfd.m4: Update.
2523 * gnulib/import/m4/dirname.m4: Update.
2524 * gnulib/import/m4/double-slash-root.m4: Update.
2525 * gnulib/import/m4/dup.m4: Update.
2526 * gnulib/import/m4/dup2.m4: Update.
2527 * gnulib/import/m4/eealloc.m4: Update.
2528 * gnulib/import/m4/environ.m4: Update.
2529 * gnulib/import/m4/errno_h.m4: Update.
2530 * gnulib/import/m4/error.m4: Update.
2531 * gnulib/import/m4/exponentd.m4: Update.
2532 * gnulib/import/m4/exponentl.m4: Update.
2533 * gnulib/import/m4/extensions.m4: Update.
2534 * gnulib/import/m4/extern-inline.m4: Update.
2535 * gnulib/import/m4/fchdir.m4: Update.
2536 * gnulib/import/m4/fcntl-o.m4: Update.
2537 * gnulib/import/m4/fcntl.m4: Update.
2538 * gnulib/import/m4/fcntl_h.m4: Update.
2539 * gnulib/import/m4/fdopendir.m4: Update.
2540 * gnulib/import/m4/filenamecat.m4: Update.
2541 * gnulib/import/m4/flexmember.m4: Update.
2542 * gnulib/import/m4/float_h.m4: Update.
2543 * gnulib/import/m4/fnmatch.m4: Update.
2544 * gnulib/import/m4/fnmatch_h.m4: Update.
2545 * gnulib/import/m4/fpieee.m4: Update.
2546 * gnulib/import/m4/frexp.m4: Update.
2547 * gnulib/import/m4/frexpl.m4: Update.
2548 * gnulib/import/m4/fstat.m4: Update.
2549 * gnulib/import/m4/fstatat.m4: Update.
2550 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2551 * gnulib/import/m4/getcwd-path-max.m4: Update.
2552 * gnulib/import/m4/getcwd.m4: Update.
2553 * gnulib/import/m4/getdtablesize.m4: Update.
2554 * gnulib/import/m4/getlogin.m4: Update.
2555 * gnulib/import/m4/getlogin_r.m4: Update.
2556 * gnulib/import/m4/getpagesize.m4: Update.
2557 * gnulib/import/m4/getprogname.m4: Update.
2558 * gnulib/import/m4/gettimeofday.m4: Update.
2559 * gnulib/import/m4/glibc21.m4: Update.
2560 * gnulib/import/m4/glob.m4: Update.
2561 * gnulib/import/m4/glob_h.m4: Update.
2562 * gnulib/import/m4/gnulib-cache.m4: Update.
2563 * gnulib/import/m4/gnulib-common.m4: Update.
2564 * gnulib/import/m4/gnulib-comp.m4: Update.
2565 * gnulib/import/m4/gnulib-tool.m4: Update.
2566 * gnulib/import/m4/hard-locale.m4: Update.
2567 * gnulib/import/m4/include_next.m4: Update.
2568 * gnulib/import/m4/inttypes-pri.m4: Update.
2569 * gnulib/import/m4/inttypes.m4: Update.
2570 * gnulib/import/m4/isnand.m4: Update.
2571 * gnulib/import/m4/isnanl.m4: Update.
2572 * gnulib/import/m4/largefile.m4: Update.
2573 * gnulib/import/m4/limits-h.m4: Update.
2574 * gnulib/import/m4/localcharset.m4: Update.
2575 * gnulib/import/m4/locale-fr.m4: Update.
2576 * gnulib/import/m4/locale-ja.m4: Update.
2577 * gnulib/import/m4/locale-zh.m4: Update.
2578 * gnulib/import/m4/localtime-buffer.m4: Update.
2579 * gnulib/import/m4/longlong.m4: Update.
2580 * gnulib/import/m4/lstat.m4: Update.
2581 * gnulib/import/m4/malloc.m4: Update.
2582 * gnulib/import/m4/malloca.m4: Update.
2583 * gnulib/import/m4/math_h.m4: Update.
2584 * gnulib/import/m4/mbrtowc.m4: Update.
2585 * gnulib/import/m4/mbsinit.m4: Update.
2586 * gnulib/import/m4/mbsrtowcs.m4: Update.
2587 * gnulib/import/m4/mbstate_t.m4: Update.
2588 * gnulib/import/m4/memchr.m4: Update.
2589 * gnulib/import/m4/memmem.m4: Update.
2590 * gnulib/import/m4/mempcpy.m4: Update.
2591 * gnulib/import/m4/memrchr.m4: Update.
2592 * gnulib/import/m4/mkdir.m4: Update.
2593 * gnulib/import/m4/mkstemp.m4: Update.
2594 * gnulib/import/m4/mmap-anon.m4: Update.
2595 * gnulib/import/m4/mode_t.m4: Update.
2596 * gnulib/import/m4/msvc-inval.m4: Update.
2597 * gnulib/import/m4/msvc-nothrow.m4: Update.
2598 * gnulib/import/m4/multiarch.m4: Update.
2599 * gnulib/import/m4/nocrash.m4: Update.
2600 * gnulib/import/m4/off_t.m4: Update.
2601 * gnulib/import/m4/onceonly.m4: Update.
2602 * gnulib/import/m4/open-cloexec.m4: Update.
2603 * gnulib/import/m4/open.m4: Update.
2604 * gnulib/import/m4/openat.m4: Update.
2605 * gnulib/import/m4/opendir.m4: Update.
2606 * gnulib/import/m4/pathmax.m4: Update.
2607 * gnulib/import/m4/rawmemchr.m4: Update.
2608 * gnulib/import/m4/readdir.m4: Update.
2609 * gnulib/import/m4/readlink.m4: Update.
2610 * gnulib/import/m4/realloc.m4: Update.
2611 * gnulib/import/m4/rename.m4: Update.
2612 * gnulib/import/m4/rewinddir.m4: Update.
2613 * gnulib/import/m4/rmdir.m4: Update.
2614 * gnulib/import/m4/save-cwd.m4: Update.
2615 * gnulib/import/m4/secure_getenv.m4: Update.
2616 * gnulib/import/m4/setenv.m4: Update.
2617 * gnulib/import/m4/signal_h.m4: Update.
2618 * gnulib/import/m4/ssize_t.m4: Update.
2619 * gnulib/import/m4/stat-time.m4: Update.
2620 * gnulib/import/m4/stat.m4: Update.
2621 * gnulib/import/m4/std-gnu11.m4: Update.
2622 * gnulib/import/m4/stdbool.m4: Update.
2623 * gnulib/import/m4/stddef_h.m4: Update.
2624 * gnulib/import/m4/stdint.m4: Update.
2625 * gnulib/import/m4/stdio_h.m4: Update.
2626 * gnulib/import/m4/stdlib_h.m4: Update.
2627 * gnulib/import/m4/strchrnul.m4: Update.
2628 * gnulib/import/m4/strdup.m4: Update.
2629 * gnulib/import/m4/strerror.m4: Update.
2630 * gnulib/import/m4/string_h.m4: Update.
2631 * gnulib/import/m4/strstr.m4: Update.
2632 * gnulib/import/m4/strtok_r.m4: Update.
2633 * gnulib/import/m4/sys_socket_h.m4: Update.
2634 * gnulib/import/m4/sys_stat_h.m4: Update.
2635 * gnulib/import/m4/sys_time_h.m4: Update.
2636 * gnulib/import/m4/sys_types_h.m4: Update.
2637 * gnulib/import/m4/tempname.m4: Update.
2638 * gnulib/import/m4/time_h.m4: Update.
2639 * gnulib/import/m4/unistd-safer.m4: Update.
2640 * gnulib/import/m4/unistd_h.m4: Update.
2641 * gnulib/import/m4/warn-on-use.m4: Update.
2642 * gnulib/import/m4/wchar_h.m4: Update.
2643 * gnulib/import/m4/wchar_t.m4: Update.
2644 * gnulib/import/m4/wctype_h.m4: Update.
2645 * gnulib/import/m4/wint_t.m4: Update.
2646 * gnulib/import/malloc.c: Update.
2647 * gnulib/import/malloc/scratch_buffer.h: Update.
2648 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2649 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2650 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2651 * gnulib/import/malloca.c: Update.
2652 * gnulib/import/malloca.h: Update.
2653 * gnulib/import/malloca.valgrind: Update.
2654 * gnulib/import/math.in.h: Update.
2655 * gnulib/import/mbrtowc.c: Update.
2656 * gnulib/import/mbsinit.c: Update.
2657 * gnulib/import/mbsrtowcs-impl.h: Update.
2658 * gnulib/import/mbsrtowcs-state.c: Update.
2659 * gnulib/import/mbsrtowcs.c: Update.
2660 * gnulib/import/memchr.c: Update.
2661 * gnulib/import/memmem.c: Update.
2662 * gnulib/import/mempcpy.c: Update.
2663 * gnulib/import/memrchr.c: Update.
2664 * gnulib/import/mkdir.c: Update.
2665 * gnulib/import/mkstemp.c: Update.
2666 * gnulib/import/msvc-inval.c: Update.
2667 * gnulib/import/msvc-inval.h: Update.
2668 * gnulib/import/msvc-nothrow.c: Update.
2669 * gnulib/import/msvc-nothrow.h: Update.
2670 * gnulib/import/open.c: Update.
2671 * gnulib/import/openat-die.c: Update.
2672 * gnulib/import/openat-priv.h: Update.
2673 * gnulib/import/openat-proc.c: Update.
2674 * gnulib/import/openat.c: Update.
2675 * gnulib/import/openat.h: Update.
2676 * gnulib/import/opendir.c: Update.
2677 * gnulib/import/pathmax.h: Update.
2678 * gnulib/import/pipe-safer.c: Update.
2679 * gnulib/import/rawmemchr.c: Update.
2680 * gnulib/import/readdir.c: Update.
2681 * gnulib/import/readlink.c: Update.
2682 * gnulib/import/realloc.c: Update.
2683 * gnulib/import/ref-add.sin: Update.
2684 * gnulib/import/ref-del.sin: Update.
2685 * gnulib/import/rename.c: Update.
2686 * gnulib/import/rewinddir.c: Update.
2687 * gnulib/import/rmdir.c: Update.
2688 * gnulib/import/same-inode.h: Update.
2689 * gnulib/import/save-cwd.c: Update.
2690 * gnulib/import/save-cwd.h: Update.
2691 * gnulib/import/scratch_buffer.h: Update.
2692 * gnulib/import/secure_getenv.c: Update.
2693 * gnulib/import/setenv.c: Update.
2694 * gnulib/import/signal.in.h: Update.
2695 * gnulib/import/stat-time.c: Update.
2696 * gnulib/import/stat-time.h: Update.
2697 * gnulib/import/stat-w32.c: Update.
2698 * gnulib/import/stat-w32.h: Update.
2699 * gnulib/import/stat.c: Update.
2700 * gnulib/import/stdbool.in.h: Update.
2701 * gnulib/import/stddef.in.h: Update.
2702 * gnulib/import/stdint.in.h: Update.
2703 * gnulib/import/stdio.in.h: Update.
2704 * gnulib/import/stdlib.in.h: Update.
2705 * gnulib/import/str-two-way.h: Update.
2706 * gnulib/import/strchrnul.c: Update.
2707 * gnulib/import/strdup.c: Update.
2708 * gnulib/import/streq.h: Update.
2709 * gnulib/import/strerror-override.c: Update.
2710 * gnulib/import/strerror-override.h: Update.
2711 * gnulib/import/strerror.c: Update.
2712 * gnulib/import/string.in.h: Update.
2713 * gnulib/import/stripslash.c: Update.
2714 * gnulib/import/strnlen1.c: Update.
2715 * gnulib/import/strnlen1.h: Update.
2716 * gnulib/import/strstr.c: Update.
2717 * gnulib/import/strtok_r.c: Update.
2718 * gnulib/import/sys_stat.in.h: Update.
2719 * gnulib/import/sys_time.in.h: Update.
2720 * gnulib/import/sys_types.in.h: Update.
2721 * gnulib/import/tempname.c: Update.
2722 * gnulib/import/tempname.h: Update.
2723 * gnulib/import/time.in.h: Update.
2724 * gnulib/import/unistd--.h: Update.
2725 * gnulib/import/unistd-safer.h: Update.
2726 * gnulib/import/unistd.in.h: Update.
2727 * gnulib/import/unsetenv.c: Update.
2728 * gnulib/import/verify.h: Update.
2729 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2730 * gnulib/import/wchar.in.h: Update.
2731 * gnulib/import/wctype.in.h: Update.
2732 * gnulib/import/xalloc-oversized.h: Update.
2733 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2734 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2735
2736 2018-08-16 Gary Benson <gbenson@redhat.com>
2737
2738 PR gdb/13000:
2739 * gdb/main.c (captured_main_1): Exit with nonzero status
2740 in batch mode if the last command to be executed failed.
2741 * NEWS: Mention the above.
2742
2743 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2744
2745 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2746 end of warning message.
2747
2748 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2749
2750 PR gdb/22943:
2751 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2752 (aarch64_extract_return_value): Use
2753 aapcs_is_vfp_call_or_return_candidate.
2754 (aarch64_return_in_memory): Likewise.
2755 (aarch64_store_return_value): Likewise.
2756
2757 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2758
2759 * aarch64-tdep.c
2760 (aapcs_is_vfp_call_or_return_candidate): Make static
2761 (pass_in_v_or_stack): Remove function.
2762 (pass_in_v_vfp_candidate): New function.
2763 (aarch64_push_dummy_call): Check for float register candidates.
2764
2765 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2766
2767 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2768 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2769 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2770
2771 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 PR build/23399
2774 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2775 (struct ipa_sym_addresses): Rename to...
2776 (struct ipa_sym_addresses_common): ... this.
2777 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2778
2779 2018-08-28 Tom Tromey <tom@tromey.com>
2780
2781 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2782 (token_fifo): Now a std::vector.
2783 (yylex, c_parse): Update.
2784 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2785 (token_fifo): Now a std::vector.
2786 (yylex, d_parse): Update.
2787 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2788 (token_fifo): Now a std::vector.
2789 (yylex, go_parse): Update.
2790
2791 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2792
2793 * parser-defs.h (struct type_stack) <elements>: Change type to
2794 std::vector<union type_stack_elt>.
2795 <depth, size>: Remove.
2796 * parse.c (parse_exp_in_context_1): Adjust.
2797 (type_stack_reserve): Remove.
2798 (check_type_stack_depth): Remove.
2799 (insert_into_type_stack): Adjust to std::vector.
2800 (insert_type): Likewise.
2801 (push_type): Likewise.
2802 (push_type_int): Likewise.
2803 (insert_type_address_space): Likewise.
2804 (pop_type): Likewise.
2805 (pop_type_int): Likewise.
2806 (pop_typelist): Likewise.
2807 (pop_type_stack): Likewise.
2808 (append_type_stack): Likewise.
2809 (push_type_stack): Likewise.
2810 (get_type_stack): Likewise.
2811 (type_stack_cleanup): Likewise.
2812 (push_typelist): Likewise.
2813 (follow_types): Likewise.
2814 (_initialize_parse): Likewise.
2815
2816 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2817
2818 * NEWS: Mention csky target.
2819
2820 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2821 Hafiz Abid Qadeer <abidh@codesourcery.com>
2822 Don Breazeal <donb@codesourcery.com>
2823
2824 * csky-linux-tdep.c: New file.
2825 * csky-tdep.c: Likewise.
2826 * csky-tdep.h: Likewise.
2827 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2828 csky-tdep.o.
2829 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2830 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2831 * configure.tgt: Add csky support.
2832
2833 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2834
2835 * python/py-framefilter.c (py_print_frame): Print frame architecture
2836 when printing on an MI output.
2837
2838 2018-08-27 Tom Tromey <tom@tromey.com>
2839
2840 PR build/23087:
2841 * configure: Rebuild.
2842 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2843
2844 2018-08-27 Tom Tromey <tom@tromey.com>
2845
2846 * aarch64-linux-tdep.c
2847 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2848 casts to int.
2849
2850 2018-08-27 Tom Tromey <tom@tromey.com>
2851
2852 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2853 unsigned.
2854 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2855 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2856 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2857 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2858 unsigned.
2859
2860 2018-08-27 Tom Tromey <tom@tromey.com>
2861
2862 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2863 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2864
2865 2018-08-27 Tom Tromey <tom@tromey.com>
2866
2867 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2868 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2869 ULONGEST_MAX.
2870 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2871 ULONGEST_MAX.
2872 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2873 ULONGEST_MAX.
2874 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2875 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2876 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2877 ULONGEST_MAX.
2878 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2879 (ppc64_linux_sigaction_tramp_frame)
2880 (ppc32_linux_sighandler_tramp_frame)
2881 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2882 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2883 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2884 * mn10300-linux-tdep.c (am33_linux_sigframe)
2885 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2886 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2887 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2888 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2889 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2890 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2891 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2892 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2893 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2894 * microblaze-linux-tdep.c
2895 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2896 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2897 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2898 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2899 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2900 * common/common-types.h (ULONGEST_MAX): New define.
2901 (CORE_ADDR_MAX): Fix formatting.
2902 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2903 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2904 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2905 (arm_linux_rt_sigreturn_tramp_frame)
2906 (arm_eabi_linux_sigreturn_tramp_frame)
2907 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2908 (thumb2_eabi_linux_sigreturn_tramp_frame)
2909 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2910 (arm_linux_restart_syscall_tramp_frame)
2911 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2912 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2913 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2914 ULONGEST_MAX.
2915 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2916
2917 2018-08-27 Tom Tromey <tom@tromey.com>
2918
2919 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2920 CORE_ADDR_MAX.
2921 * mips-tdep.c (mips_deal_with_atomic_sequence)
2922 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2923 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2924 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2925 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2926 CORE_ADDR_MAX.
2927 * aarch64-tdep.c (aarch64_software_single_step): Use
2928 CORE_ADDR_MAX.
2929
2930 2018-08-27 Tom Tromey <tom@tromey.com>
2931
2932 * linespec.c (complete_linespec_component): Add cast to "char".
2933 * completer.c (completion_tracker::build_completion_result): Add
2934 cast to "char".
2935
2936 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * solist.h (struct solist, struct target_so_ops): Fix
2939 indentation.
2940
2941 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * ada-tasks.c (ada_task_info_s): Remove typedef.
2944 (DEF_VEC_O(ada_task_info_s)): Remove.
2945 (struct ada_tasks_inferior_data): Initialize fields.
2946 <task_list>: Make an std::vector.
2947 (get_ada_tasks_inferior_data): Allocate with new.
2948 (ada_get_task_number): Adjust.
2949 (get_task_number_from_id): Likewise.
2950 (valid_task_id): Likewise.
2951 (ada_get_task_info_from_ptid): Likewise.
2952 (iterate_over_live_ada_tasks): Likewise.
2953 (add_ada_task): Likewise.
2954 (read_known_tasks): Likewise.
2955 (ada_build_task_list): Likewise.
2956 (print_ada_task_info): Likewise.
2957 (info_task): Likewise.
2958 (task_command_1): Likewise.
2959
2960 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2961
2962 * ada-lang.c (add_angle_brackets): Return std::string.
2963
2964 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * python/py-threadevent.c (py_get_event_thread): Initialize
2967 pythread.
2968
2969 2018-08-24 Pedro Alves <palves@redhat.com>
2970
2971 * python/py-bpevent.c (create_breakpoint_event_object): Use
2972 copy-initialization.
2973 * python/py-continueevent.c (emit_continue_event): Use
2974 copy-initialization.
2975 * python/py-exitedevent.c (create_exited_event_object): Return a
2976 gdbpy_ref<>.
2977 (emit_exited_event): Use copy-initialization.
2978 * python/py-inferior.c (python_new_inferior)
2979 (python_inferior_deleted, add_thread_object): Use
2980 copy-initialization.
2981 * python/py-infevents.c (create_inferior_call_event_object)
2982 (create_register_changed_event_object)
2983 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2984 (emit_inferior_call_event, emit_memory_changed_event)
2985 (emit_register_changed_event): Use copy-initialization.
2986 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2987 Return a gdbpy_ref<>.
2988 (emit_new_objfile_event): Use copy-initialization.
2989 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2990 (emit_clear_objfiles_event): Use copy-initialization.
2991 * python/py-signalevent.c (create_signal_event_object): Use
2992 copy-initialization.
2993 * python/py-threadevent.c (create_thread_event_object): Use
2994 copy-initialization.
2995
2996 2018-08-24 Pedro Alves <palves@redhat.com>
2997 Simon Marchi <simon.marchi@ericsson.com>
2998
2999 PR gdb/23379
3000 * python/py-continueevent.c: Include "gdbthread.h".
3001 (create_continue_event_object): Add intro comment. Add 'ptid'
3002 parameter. Use it to find thread to pass to
3003 create_thread_event_object.
3004 (emit_continue_event): Pass PTID down to
3005 create_continue_event_object.
3006 * python/py-event.h (py_get_event_thread): Declare.
3007 (create_thread_event_object): Remove default from 'thread'
3008 parameter.
3009 * python/py-stopevent.c (create_stop_event_object): Use
3010 py_get_event_thread.
3011 * python/py-threadevent.c (get_event_thread): Rename to ...
3012 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3013 and use it to find the thread.
3014 (create_thread_event_object): Assert that THREAD isn't null.
3015 Don't find the event thread here.
3016
3017 2018-08-23 Kevin Buettner <kevinb@redhat.com>
3018
3019 * block.h (blockrange, blockranges): New struct declarations.
3020 (struct block): Add new field named `ranges'.
3021 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3022 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3023 macros for accessing ranges in struct block.
3024 (make_blockranges): New declaration.
3025 block.c (make_blockranges): New function.
3026 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3027 for block.
3028 * symtab.h (find_pc_partial_function): Add new parameter `block'.
3029 * blockframe.c (cache_pc_function_block): New static global.
3030 (clear_pc_function_cache): Clear cache_pc_function_block.
3031 (find_pc_partial_function): Move comment to symtab.h. Add
3032 support for non-contiguous blocks.
3033 * cli/cli-cmds.c (block.h): Include.
3034 (print_disassembly): Handle printing of non-contiguous blocks.
3035 (disassemble_current_function): Likewise.
3036 (disassemble_command): Likewise.
3037
3038 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3039 BLOCK_START.
3040 * blockframe.c (get_pc_function_start): Likewise.
3041 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3042 (gcc_symbol_address): Likewise.
3043 * compile/compile-object-run.c (compile_object_run): Likewise.
3044 * compile/compile.c (get_expr_block_and_pc): Likewise.
3045 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3046 (func_addr_to_tail_call_list): Likewise.
3047 * findvar.c (default_read_var_value): Likewise.
3048 * inline-frame.c (inline_frame_this_id): Likewise.
3049 (skip-inline_frames): Likewise.
3050 * infcmd.c (until_next_command): Likewise.
3051 * linespec.c (convert_linespec_to_sals): Likewise.
3052 * parse.c (parse_exp_in_context_1): Likewise.
3053 * printcmd.c (build_address_symbolic): likewise.
3054 (info_address_command): Likewise.
3055 symtab.c (find_function_start_sal): Likewise.
3056 (skip_prologue_sal): Likewise.
3057 (find_function_alias_target): Likewise.
3058 (find_gnu_ifunc): Likewise.
3059 * stack.c (find_frame_funname): Likewise.
3060 * symtab.c (fixup_symbol_section): Likewise.
3061 (find_function_start_sal): Likewise.
3062 (skip_prologue_sal): Likewsie.
3063 (find_function_alias_target): Likewise.
3064 (find_gnu_ifunc): Likewise.
3065 * tracepoint.c (info_scope_command): Likewise.
3066 * value.c (value_fn_field): Likewise.
3067
3068 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3069 in place of find_pc_partial_function.
3070 * blockframe.c (find_function_entry_range_from_pc): New function.
3071 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3072 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3073 for each range in a block.
3074
3075
3076 2018-08-23 Xavier Roirand <roirand@adacore.com>
3077
3078 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3079 incrementation.
3080
3081 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3082
3083 * solib-svr4.c (read_program_headers_from_bfd): Return
3084 gdb::optional<gdb::byte_vector>.
3085 (svr4_exec_displacement): Adjust.
3086
3087 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * solib-svr4.c (read_program_header): Return
3090 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3091 (find_program_interpreter): Return
3092 gdb::optional<gdb::byte_vector>.
3093 (scan_dyntag_auxv): Adjust.
3094 (enable_break): Adjust.
3095 (svr4_exec_displacement): Adjust.
3096
3097 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3100 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3101
3102 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3105 string_vprintf.
3106 * guile/scm-utils.c (gdbscm_printf): Likewise.
3107 * serial.c (serial_printf): Likewise.
3108 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3109
3110 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3111
3112 * stack.c (print_frame): Print frame architecture when printing on
3113 an MI output.
3114 * NEWS: Mention new "arch" attribute in frame output.
3115
3116 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3117
3118 * arch/aarch64.h (aarch64_regnum): Update comment.
3119
3120 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3121
3122 * NEWS: Add SVE to 8.2 section.
3123
3124 2018-08-21 Pedro Alves <palves@redhat.com>
3125
3126 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3127 out from gdbscm_parse_function_args.
3128 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3129 gdbscm_parse_function_args_1.
3130
3131 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3132
3133 PR gdb/17816
3134 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3135 operator.
3136
3137 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3138
3139 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3140
3141 2018-08-19 Michael Spang <spang@google.com>
3142
3143 PR gdb/11786
3144 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3145 for PT_TLS segments.
3146
3147 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3148
3149 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3150 dwarf_variable_value.
3151 * dwarf2-frame.c (class dwarf_expr_executor):
3152 Add override for dwarf_variable_value.
3153 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3154 (class symbol_needs_eval_context): Likewise.
3155 (indirect_synthetic_pointer): Add forward declaration.
3156 (sect_variable_value): New function.
3157 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3158 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3159 for DW_OP_GNU_variable_value.
3160
3161 2018-08-16 Tom Tromey <tom@tromey.com>
3162
3163 * top.c (read_command_file): Update.
3164 (command_line_input): Remove "repeat" argument.
3165 * ada-lang.c (get_selections): Update.
3166 * linespec.c (decode_line_2): Update.
3167 * defs.h (command_line_input): Remove argument.
3168 * cli/cli-script.c (read_next_line): Update.
3169 * python/py-gdb-readline.c: Update.
3170
3171 2018-08-17 Tom Tromey <tom@tromey.com>
3172
3173 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3174 command_line_input.
3175
3176 2018-08-15 Tom Tromey <tom@tromey.com>
3177
3178 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3179
3180 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3181
3182 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3183 If used, use find_pc_partial_function to find address range
3184 to disassemble.
3185 * mi/mi-main.c (mi_cmd_list_features): Report
3186 "data-disassemble-a-option" feature.
3187 * NEWS: Mention new -data-disassemble option -a.
3188
3189 2018-08-13 Tom Tromey <tom@tromey.com>
3190
3191 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3192
3193 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3194
3195 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3196 (aarch64_linux_collect_sve_regset): Likewise.
3197 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3198 * regcache.h (regcache_map_entry_size): New function.
3199
3200 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3201
3202 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3203 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3204 (SVE_HEADER_VL_LENGTH): Likewise.
3205 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3206 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3207 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3208 (SVE_HEADER_SIZE_OFFSET): Likewise.
3209 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3210 (SVE_HEADER_VL_OFFSET): Likewise.
3211 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3212 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3213 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3214 (SVE_HEADER_SIZE): Likewise.
3215 (aarch64_linux_core_read_vq): Add function.
3216 (aarch64_linux_core_read_description): Check for SVE section.
3217
3218 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3219
3220 * aarch64-fbsd-tdep.c
3221 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3222 collect_size.
3223 * aarch64-linux-tdep.c
3224 (aarch64_linux_iterate_over_regset_sections): Likewise.
3225 * alpha-linux-tdep.c
3226 (alpha_linux_iterate_over_regset_sections):
3227 * alpha-nbsd-tdep.c
3228 (alphanbsd_iterate_over_regset_sections): Likewise.
3229 * amd64-fbsd-tdep.c
3230 (amd64fbsd_iterate_over_regset_sections): Likewise.
3231 * amd64-linux-tdep.c
3232 (amd64_linux_iterate_over_regset_sections): Likewise.
3233 * arm-bsd-tdep.c
3234 (armbsd_iterate_over_regset_sections): Likewise.
3235 * arm-fbsd-tdep.c
3236 (arm_fbsd_iterate_over_regset_sections): Likewise.
3237 * arm-linux-tdep.c
3238 (arm_linux_iterate_over_regset_sections): Likewise.
3239 * corelow.c (get_core_registers_cb): Likewise.
3240 (core_target::fetch_registers): Likewise.
3241 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3242 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3243 * gdbarch.h (void): Regenerate.
3244 * gdbarch.sh: Add supply_size and collect_size.
3245 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3246 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3247 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3248 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3249 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3250 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3251 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3252 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3253 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3254 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3255 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3256 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3257 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3258 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3259 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3260 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3261 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3262 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3263 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3264 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3265 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3266 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3267 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3268 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3269 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3270 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3271 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3272 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3273 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3274 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3275
3276 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3277
3278 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3279 with string_printf.
3280
3281 2018-08-10 Keith Seitz <keiths@redhat.com>
3282
3283 * compile/compile-c-support.c (add_code_header, add_code_footer):
3284 Move into policy class.
3285 (c_push_user_expression, pop_user_expression_nop)
3286 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3287 (compile_program): New host class.
3288 (c_compile_program): New typedef.
3289 (c_compute_porgram): Use c_compile_program.
3290
3291 2018-08-10 Keith Seitz <keiths@redhat.com>
3292
3293 * compile/compile-internal.h (compile_instance::~compile_instance):
3294 Remove calls to htab_delete.
3295 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3296 * compile.c (compile_instance::compile_instance): Initialize
3297 htab unique pointers.
3298 (compile_instance::get_cached_type, compile_instance::insert_type)
3299 (compile_instance::error_symbol_once): Update for unique_ptr.
3300
3301 2018-08-10 Keith Seitz <keiths@redhat.com>
3302
3303 * compile/compile-c-symbols.c (struct symbol_error)
3304 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3305 (compile_instance::insert_symbol_error)
3306 (compile_instance::error_symbol_once): Move to ...
3307 * compile/compile.c: ... here.
3308
3309 2018-08-10 Keith Seitz <keiths@redhat.com>
3310
3311 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3312 instead of `new_compile_instance'.
3313 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3314 Update description.
3315 If the symbol error map is not initialized, create it.
3316 (generate_c_for_for_one_symbol): Do not check/initialize
3317 the symbol error map.
3318 * compile/compile-c-types.c (compile_c_instance): Make a class.
3319 Update all callers.
3320 (compile_instance::compile_instance): Initialize the type cache.
3321 (get_cached_type): New function.
3322 (insert_type): Update description.
3323 (compile_c_instance::m_default_cflags): Define.
3324 (convert_type): Update description. Use get_cached_type.
3325 (delete_instance): Moved to destructor.
3326 (new_compile_instance): Moved to constructor.
3327 * compile/compile-c.h (compile_c_instance): Make class inheriting
3328 from compile_instance.
3329 <base>: Remove field.
3330 <type_map, symbol_err_map>: Move to base class.
3331 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3332 * compile/compile-internal.h (compile_instance): Make class.
3333 <type_map_t, symbol_err_map_t>: Define.
3334 <fe>: Rename to `m_gcc_fe'.
3335 <scope, block, gcc_target_options>: Add `m_' prefix.
3336 <m_type_map, m_symbol_err_map>: New fields, moved from
3337 compile_c_instance.
3338 <destroy>: Remove.
3339 (convert_type, new_compile_instance): Remove.
3340 * compile/compile.c (cleanup_compile_instance): Remove.
3341 (compile_to_object): Use unique_ptr to eliminate cleanups.
3342 (compile_instance::set_print_callback, compile_instance::version)
3343 (compile_instance::set_verbose)
3344 (compile_instance::set_driver_filename)
3345 (compile_instance::set_triplet_regexp)
3346 (compile_instance::set_arguments)
3347 (compile_instance::set_source_file)
3348 (compile_instance::compile): Define.
3349
3350 2018-08-10 Keith Seitz <keiths@redhat.com>
3351
3352 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3353 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3354 gcc-c-fe.def to define C plugin.
3355 (delete_instance): Delete `c_plugin'.
3356 (new_compile_instance): Initialize `c_plugin'.
3357 * compile/compile-c.h: Include gcc_c_plugin.h.
3358 (struct compile_c_instance) <c_plugin>: New member.
3359 * gcc-c-plugin.h: New file.
3360 Update all callers with API change.
3361
3362 2018-08-10 Keith Seitz <keiths@redhat.com>
3363
3364 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3365 (HFILES_NO_SRCDIR): ... to here.
3366 Add compile-internal.h and compile-c.h.
3367 * compile/compile-c-support.c: Include compile-c.h.
3368 * compile/compile-c-symbols.c: Include compile-c.h.
3369 (generate_c_for_variable_locations): Update comment.
3370 * compile/compile-c-types.c: Include compile-c.h.
3371 * compile/compile-c.h: New file -- moved C language declarations
3372 from other files here.
3373 * compile/compile-internal.h: Do not include hashtab.h or
3374 common/enum-flags.h.
3375 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3376 (gcc_convert_symbol, gcc_symbol_address)
3377 (generate_c_for_variable_locations, c_get_mode_for_size)
3378 (c_get_range_decl_name): Definitions moved to compile-c.h.
3379 * compile/compile-loc2c.c: Include compile-c.h.
3380
3381 2018-08-10 Keith Seitz <keiths@redhat.com>
3382
3383 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3384 (c_symbol_substitution_name): ... this.
3385 Update all callers.
3386
3387 2018-08-10 Keith Seitz <keiths@redhat.com>
3388
3389 * compile/compile-c-support.c (c_compute_program): Use
3390 unique_xmalloc_ptr to eliminate cleanup.
3391 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3392 Return a unique_xmalloc_ptr and eliminate cleanup.
3393 * compile/compile-internal.h (generate_c_for_variable_locations):
3394 Return unique_xmalloc_ptr and update description.
3395
3396 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3397
3398 * corelow.c (core_target::get_core_register_section): Rename
3399 min_size to section_min_size.
3400
3401 2018-08-09 Jim Wilson <jimw@sifive.com>
3402
3403 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3404 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3405 * NEWS: Mention new GNU/Linux RISC-V target.
3406 * configure.host: Add riscv*-*-linux*.
3407 * configure.nat: Add riscv*.
3408 * configure.tgt: Add riscv*-*-linux*.
3409 * riscv-linux-nat.c: New file.
3410 * riscv-linux-tdep.c: New file.
3411
3412 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3413
3414 * infrun.c (resume): Make static, add forward declaration.
3415 (proceed): Update header comment.
3416 * infrun.h (resume): Delete declaration.
3417
3418 2018-08-09 Tom Tromey <tom@tromey.com>
3419
3420 * riscv-tdep.h: Minor formatting fixes.
3421
3422 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3423
3424 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3425 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3426 (test_mkdir_recursive): Likewise.
3427 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3428
3429 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * valarith.c (value_subscripted_rvalue): If an array is not in
3432 memory, and we don't know the upper bound, then we can't know that
3433 the requested element exists or not.
3434
3435 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3436
3437 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3438 (target_options_to_string): Add comment.
3439
3440 2018-08-08 Tom Tromey <tom@tromey.com>
3441
3442 * unittests/scoped_mmap-selftests.c: Check result of "write".
3443
3444 2018-08-08 Jim Wilson <jimw@sifive.com>
3445
3446 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3447 (decode_register_index_short): New.
3448 (decode_j_type_insn, decode_cj_type_insn): New.
3449 (decode_b_type_insn, decode_cb_type_insn): New.
3450 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3451 local xlen. Check xlen when decoding ambiguous compressed insns. In
3452 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3453 is_c_sw_insn instead of is_sw_insn.
3454 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3455 (riscv_software_single_step): New.
3456 * riscv-tdep.h (riscv_software_single_step): Declare.
3457
3458 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3459 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3460
3461 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 PR gdb/18050:
3464 * target.c (dispose_inferior): Don't dispose of inferiors that are
3465 already killed.
3466
3467 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3468
3469 * remote.c (remote_target::download_tracepoint): Change char* to
3470 const char*.
3471
3472 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * target.h (target_options_to_string): Return an std::string.
3475 * target.c (str_comma_list_concat_elem): Return void, use
3476 std::string.
3477 (do_option): Likewise.
3478 (target_options_to_string): Return an std::string.
3479 * linux-nat.c (linux_nat_target::wait): Adjust.
3480 * target-debug.h (target_debug_print_options): Adjust.
3481
3482 2018-08-07 Tom Tromey <tom@tromey.com>
3483
3484 * Makefile.in (CPPFLAGS): New variable.
3485 (INTERNAL_CPPFLAGS): Use it.
3486
3487 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3488
3489 * NEWS: Mention the index cache.
3490
3491 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3492
3493 * common/pathstuff.h (get_standard_cache_dir): New.
3494 * common/pathstuff.c (get_standard_cache_dir): New.
3495 * build-id.h (build_id_to_string): New.
3496 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3497 DEBUG_STR_SUFFIX): Move to here.
3498 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3499 DEBUG_STR_SUFFIX): Move from there.
3500 (write_psymtabs_to_index): Make non-static, add basename
3501 parameter. Write to temporary files, rename when done.
3502 (save_gdb_index_command): Adjust call to
3503 write_psymtabs_to_index.
3504 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3505 field.
3506 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3507 (get_gdb_index_contents_from_cache): New.
3508 (get_gdb_index_contents_from_cache_dwz): New.
3509 (dwarf2_initialize_objfile): Read index from cache.
3510 (dwarf2_build_psymtabs): Save to index.
3511 * dwarf-index-cache.h: New file.
3512 * dwarf-index-cache.c: New file.
3513 * dwarf-index-write.h: New file.
3514
3515 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3516
3517 * gnulib/aclocal.m4: Re-generate.
3518 * gnulib/config.in: Re-generate.
3519 * gnulib/configure: Re-generate.
3520 * gnulib/import/Makefile.am: Re-generate.
3521 * gnulib/import/Makefile.in: Re-generate.
3522 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3523 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3524 * gnulib/import/m4/mkdir.m4: New file.
3525 * gnulib/import/mkdir.c: New file.
3526 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3527 module.
3528
3529 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3530
3531 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3532 * common/scoped_mmap.c: New file.
3533 * common/scoped_mmap.h (destroy): New method.
3534 (~scoped_mmap, reset): Use destroy.
3535 (scoped_mmap): New move constructor.
3536 (mmap_file): New declaration.
3537 * unittests/scoped_mmap-selftests.c (test_normal,
3538 test_invalid_filename, run_tests): New functions.
3539 (_initialize_scoped_mmap_selftests): Register selftest.
3540
3541 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3542
3543 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3544 (read_gdb_index_from_buffer): ... this. Remove section
3545 parameter, add buffer parameter.
3546 (get_gdb_index_contents_ftype,
3547 get_gdb_index_contents_dwz_ftype): New typedefs.
3548 (dwarf2_read_gdb_index): Add callback parameters to get the
3549 index contents.
3550 (get_gdb_index_contents_from_section): New.
3551 (dwarf2_initialize_objfile): Update call to
3552 dwarf2_read_gdb_index.
3553
3554 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3555
3556 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3557 (gdb_open_cloexec): Likewise.
3558 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3559 (commandline_from_pid): Likewise.
3560 (linux_xfer_osdata_threads): Likewise.
3561 (linux_xfer_osdata_fds): Likewise.
3562 * ada-lang.c (is_package_name): Likewise.
3563 * auxv.c (procfs_xfer_auxv): Likewise.
3564 * breakpoint.c (print_one_breakpoint_location): Use
3565 uiout::field_fmt.
3566 (print_one_catch_solib): Use string_printf.
3567 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3568 (add_pe_forwarded_sym): Likewise.
3569 * dwarf2read.c (create_type_unit_group): Likewise.
3570 (build_error_marker_type): Likewise.
3571 * infcall.c (get_function_name): Likewise.
3572 * valprint.c (print_converted_chars_to_obstack): Likewise.
3573 * xtensa-tdep.c (xtensa_register_type): Likewise.
3574
3575 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3576
3577 * remote.c (remote_target::download_tracepoint): Fix format
3578 string errors.
3579
3580 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3581
3582 * tracefile.c: Include common/byte-vector.h.
3583 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3584 with trace_regblock_size if needed. Update uses of buf.
3585
3586 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3587
3588 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3589 std::vector<unsigned char>.
3590 * tracepoint.c (collection_list::collection_list): Remove
3591 m_regs_mask initializer from initializer list. Resize
3592 m_regs_mask using the largest remote register number.
3593 (collection_list::add_remote_register): Remove size check on
3594 m_regs_mask. Use at to access element.
3595 (collection_list::stringify): Change type of temp_buf to
3596 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3597 stringify the register mask. Use pack_hex_byte for the register
3598 mask.
3599
3600 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3601
3602 * tracepoint.h (class collection_list) <add_register>: Remove.
3603 <add_remote_register, add_ax_registers, add_local_register>:
3604 Declare.
3605 <add_memrange>: Add scope parameter.
3606 * tracepoint.c (encode_actions_1): Likewise.
3607 (collection_list::add_register): Rename to ...
3608 (collection_list::add_remote_register): ... this. Update
3609 comment.
3610 (collection_list::add_ax_registers, add_local_register): New
3611 methods.
3612 (collection_list::add_memrange): Add scope parameter. Call
3613 add_local_register instead of add_register.
3614 (finalize_tracepoint_aexpr): New function.
3615 (collection_list::collect_symbol): Update calls to add_memrange.
3616 Call add_local_register instead of add_register. Call
3617 add_ax_registers. Call finalize_tracepoint_aexpr.
3618 (encode_actions_1): Get remote regnos for $reg action. Call
3619 add_remote_register, add_ax_registers, and add_local_register.
3620 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3621 (validate_actionline): Call finalize_tracepoint_aexpr.
3622
3623 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3624
3625 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3626 Replace array buf with gdb::char_vector buf, of size
3627 get_remote_packet_size (). Replace references to buf and
3628 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3629 and xsnprintf with snprintf. Raise errors if the buffer is too
3630 small.
3631
3632 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3633
3634 * remote.c (remote_target::download_tracepoint): Fix the has_more
3635 predicate in the QTDP action list iteration.
3636
3637 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3638
3639 * remote.c (remote_target::download_tracepoint): Fix indentation
3640 in for block.
3641
3642 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3643
3644 * proc-api.c (_initialize_proc_api): Remove c, unused.
3645 * procfs.c (procfs_init_inferior): Remove signals, unused.
3646 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3647 unused.
3648
3649 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3650 Andrew Burgess <andrew.burgess@embecosm.com>
3651
3652 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3653 'W_STOPCODE (0)' as this could be ambiguous.
3654
3655 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3656
3657 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3658 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3659 "ai_socktype").
3660
3661 2018-08-02 Tom Tromey <tom@tromey.com>
3662
3663 PR symtab/16842.
3664 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3665 symbols.
3666 (process_structure_scope): Likewise.
3667
3668 2018-08-02 Xavier Roirand <roirand@adacore.com>
3669
3670 PR gdb/22629:
3671 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3672 kill inferior.
3673
3674 2018-08-02 Tom Tromey <tom@tromey.com>
3675
3676 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3677 (darwin_suspend_inferior, darwin_resume_inferior)
3678 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3679 (darwin_check_new_threads): Check result of get_darwin_inferior.
3680
3681 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3682
3683 GDB 8.1.1 released.
3684
3685 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3686
3687 * varobj.c (varobj_get_path_expr_parent): Report an error if
3688 parent is a dynamic varobj.
3689
3690 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3691
3692 * gnulib/aclocal.m4: Re-generate.
3693 * gnulib/config.in: Re-generate.
3694 * gnulib/configure: Re-generate.
3695 * gnulib/import/Makefile.in: Re-generate.
3696 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3697 * gnulib/import/m4/onceonly.m4: Re-generate.
3698
3699 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3700
3701 * target-descriptions.c (struct xml_test_tdesc): New.
3702 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3703 (record_xml_tdesc): Update.
3704 (maintenance_check_xml_descriptions): Update.
3705 * target-descriptions.h (record_xml_tdesc): Update comment.
3706
3707 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3710 checking array bounds are defined.
3711
3712 2018-07-30 Tom Tromey <tom@tromey.com>
3713
3714 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3715 irreflexivity violation.
3716
3717 2018-07-30 Tom Tromey <tom@tromey.com>
3718
3719 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3720 * value.c (unpack_long): Remove lint code.
3721 * valops.c (value_ind): Remove lint code.
3722 * valarith.c (value_x_binop, value_x_unop, value_equal)
3723 (value_pos): Remove lint code.
3724
3725 2018-07-28 Tom de Vries <tdevries@suse.de>
3726
3727 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3728 with undefined upper bound as <optimized out>.
3729
3730 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3731
3732 * gcore.in: Rename variable "name" to "prefix". Expand
3733 "usage" text.
3734
3735 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3736
3737 * windows-nat.c (windows_nat_target::create_inferior): Update to
3738 call close() in global namespace.
3739
3740 2018-07-26 Tom Tromey <tom@tromey.com>
3741
3742 * dwarf-index-write.c (add_address_entry): Don't add objfile
3743 offsets.
3744 * dbxread.c (find_stab_function): Rename from
3745 find_stab_function_addr. Return a bound_minimal_symbol.
3746 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3747 Don't add objfile offsets.
3748 (end_psymtab): Use raw_text_low, raw_text_high,
3749 MSYMBOL_VALUE_RAW_ADDRESS.
3750 (read_ofile_symtab): Update.
3751 (process_one_symbol): Update.
3752 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3753 offsets.
3754 (dw2_relocate): Remove.
3755 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3756 searching addrmap.
3757 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3758 Update.
3759 (process_psymtab_comp_unit_reader, add_partial_symbol)
3760 (add_partial_subprogram, dwarf2_ranges_read): Update.
3761 (load_partial_dies): Update.
3762 (add_address_entry): Don't add objfile offsets.
3763 (dwarf2_build_include_psymtabs): Update.
3764 (create_addrmap_from_aranges): Don't add objfile offsets.
3765 (dw2_find_pc_sect_compunit_symtab): Update.
3766 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3767 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3768 Update.
3769 (parse_partial_symbols): Don't add objfile offsets. Use
3770 raw_text_low, raw_text_high. Update.
3771 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3772 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3773 or call 'relocate' quick function. Clear psymbol_map.
3774 * psympriv.h (struct partial_symbol) <address>: Add section
3775 offset.
3776 <set_unrelocated_address>: Rename from set_address.
3777 <raw_text_low, raw_text_high>: New methods.
3778 <text_low, text_high>: Add objfile parameter.
3779 (add_psymbol_to_bcache): Add 'section' parameter. Call
3780 set_unrelocated_address.
3781 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3782 (find_pc_psymbol): Update.
3783 (fixup_psymbol_section, relocate_psymtabs): Remove.
3784 (dump_psymtab, psym_functions): Update.
3785 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3786 parameter.
3787 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3788 (start_psymtab_common): Update.
3789 * symfile-debug.c (debug_qf_relocate): Remove.
3790 (debug_sym_quick_functions): Update.
3791 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3792 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3793 Update.
3794
3795 2018-07-26 Tom Tromey <tromey@redhat.com>
3796
3797 * dbxread.c (end_psymtab): Use text_high_valid and
3798 text_low_valid.
3799 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3800 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3801 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3802 Update comment.
3803 <text_low_valid, text_high_valid>: New fields.
3804 <set_text_low, set_text_high>: Update.
3805 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3806
3807 2018-07-26 Tom Tromey <tom@tromey.com>
3808
3809 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3810 Update.
3811 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3812 textlow and texthigh fields.
3813 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3814 Update.
3815 * mdebugread.c (parse_lines, parse_partial_symbols)
3816 (psymtab_to_symtab_1): Update.
3817 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3818 Rename fields. Update comment. Now private.
3819 <text_low, text_high, set_text_low, set_text_high>: New methods.
3820 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3821 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3822 (start_psymtab_common, maintenance_info_psymtabs)
3823 (maintenance_check_psymtabs): Update.
3824 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3825 texthigh fields.
3826 (scan_xcoff_symtab): Update.
3827
3828 2018-07-26 Tom Tromey <tromey@redhat.com>
3829
3830 * psympriv.h (struct partial_symbol) <unrelocated_address,
3831 address, set_address>: New methods.
3832 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3833 (fixup_psymbol_section, relocate_psymtabs): Update.
3834 (print_partial_symbols): Add 'objfile' parameter. Update.
3835 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3836 Update.
3837
3838 2018-07-26 Tom Tromey <tom@tromey.com>
3839
3840 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3841 (debug_names::write_psymbols): Update.
3842 * psympriv.h (struct partial_symbol): Derive from
3843 general_symbol_info.
3844 <obj_section>: New method.
3845 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3846 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3847 (find_pc_sect_psymbol, fixup_psymbol_section)
3848 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3849 (print_partial_symbols, recursively_search_psymtabs)
3850 (compare_psymbols, psymbol_hash, psymbol_compare)
3851 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3852 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3853
3854 2018-07-26 Tom Tromey <tromey@redhat.com>
3855
3856 * dbxread.c (end_psymtab): Remove dead code.
3857
3858 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3859
3860 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3861 DWARF unwinders are disabled.
3862 * dwarf2-frame.c: Add dwarf2read.h include.
3863 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3864 disabled.
3865 (dwarf2_frame_unwinders_enabled_p): Define.
3866 (show_dwarf_unwinders_enabled_p): New function.
3867 (_initialize_dwarf2_frame): Register switch to control DWARF
3868 unwinder use.
3869 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3870 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3871 (show_dwarf_cmdlist): Remove static keyword.
3872 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3873 (show_dwarf_cmdlist): Declare.
3874 * NEWS: Document new feature.
3875
3876 2018-07-26 Tom de Vries <tdevries@suse.de>
3877
3878 PR breakpoints/23366
3879 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3880
3881 2018-07-26 Tom de Vries <tdevries@suse.de>
3882
3883 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3884 DW_AT_count can't be translated to a dynamic prop.
3885
3886 2018-07-25 Tom de Vries <tdevries@suse.de>
3887
3888 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3889 try/catch.
3890
3891 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3892
3893 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3894
3895 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3896
3897 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3898
3899 2018-07-24 Keith Seitz <keiths@redhat.comt
3900
3901 PR symtab/23010
3902 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3903 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3904 instead of add_symbol_to_list.
3905 (read_file_scope): Call prepare_one_comp_unit before reading
3906 any other DIEs.
3907
3908 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3909
3910 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3911
3912 2018-07-24 Tom Tromey <tom@tromey.com>
3913
3914 * utils.c (malloc, realloc, free): Don't declare.
3915 * configure, config.in: Rebuild.
3916 * configure.ac: Don't check for declarations of free, malloc, or
3917 realloc.
3918
3919 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3920
3921 * aarch64-linux-nat.c
3922 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3923 variable.
3924 * arm-linux-nat.c (fetch_regs): Likewise.
3925 (store_regs): Likewise.
3926 (fetch_vfp_regs): Likewise.
3927 (store_vfp_regs): Likewise.
3928 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3929 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3930 (arm_linux_nat_target::insert_watchpoint): Likewise.
3931 (arm_linux_nat_target::remove_watchpoint): Likewise.
3932 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3933 Likewise.
3934 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3935 Likewise.
3936 * ppc-linux-nat.c (fetch_register): Likewise.
3937 (fetch_all_gp_regs): Likewise.
3938 (fetch_ppc_registers): Likewise.
3939 (store_all_gp_regs): Likewise.
3940 (store_ppc_registers): Likewise.
3941 (hwdebug_insert_point): Likewise.
3942 (can_use_watchpoint_cond_accel): Likewise.
3943 * remote-sim.c (gdb_os_write_stdout): Likewise.
3944
3945 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3946 Tom Tromey <tom@tromey.com>
3947
3948 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3949 test for it.
3950 * configure: Rebuild.
3951
3952 2018-07-22 Tom Tromey <tom@tromey.com>
3953
3954 * regformats/regdat.sh: Define xmltarget_${name} inside
3955 #ifndef IN_PROCESS_AGENT.
3956
3957 2018-07-22 Tom Tromey <tom@tromey.com>
3958
3959 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3960
3961 2018-07-22 Tom Tromey <tom@tromey.com>
3962
3963 * symfile.c (reread_symbols): Notify iter, not objfile.
3964
3965 2018-07-22 Tom Tromey <tom@tromey.com>
3966
3967 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3968 Use arch_ops.
3969 (ravenscar_thread_target::prepare_to_store): Likewise.
3970
3971 2018-07-22 Tom Tromey <tom@tromey.com>
3972
3973 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3974 unused variable. Call value_fetch_lazy when needed.
3975 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3976 Remove unused variable. Call value_fetch_lazy when needed.
3977
3978 2018-07-22 Tom Tromey <tom@tromey.com>
3979
3980 * m32c-tdep.c (mark_dma): Return void.
3981 (make_regs): Remove unused declarations.
3982
3983 2018-07-22 Tom Tromey <tom@tromey.com>
3984
3985 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3986 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3987 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3988 bkscm_get_valid_block_smob_arg_unsafe for effect.
3989
3990 2018-07-22 Tom Tromey <tom@tromey.com>
3991
3992 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3993 value_type.
3994
3995 2018-07-22 Tom Tromey <tom@tromey.com>
3996
3997 * windows-nat.c (saved_context): Conditionally define.
3998 * remote.c (remote_target::remote_btrace_maybe_reopen):
3999 Conditionally declare "warned".
4000 * inflow.c (sigquit_ours): Conditionally define.
4001 (new_tty): Move "tty" declaration inside #if.
4002 * guile/guile.c (guile_datadir): Conditionally define.
4003 * charset.c (set_be_le_names): Move some declarations inside #if.
4004 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4005 #if.
4006 (parse_xml_btrace_conf): Likewise.
4007
4008 2018-07-22 Tom Tromey <tom@tromey.com>
4009
4010 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4011
4012 2018-07-22 Tom Tromey <tom@tromey.com>
4013
4014 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4015 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4016 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4017 * buildsym-legacy.c (get_macro_table): Remove unused variable.
4018 * stack.c (frame_apply_level_command): Remove unused variable.
4019 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4020 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4021 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4022 unused variable.
4023 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4024 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4025 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4026 variable.
4027 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4028 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4029 variable.
4030 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4031 Remove unused variable.
4032 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4033 variable.
4034 * common/tdesc.c (print_xml_feature::visit): Remove unused
4035 variable.
4036 * compile/compile-object-load.c (store_regs): Remove unused
4037 variables.
4038 * complaints.c (clear_complaints): Remove unused variable.
4039 * corelow.c (core_target_open): Remove unused variable.
4040 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4041 variable.
4042 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4043 variable.
4044 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4045 variable.
4046 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4047 variable.
4048 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4049 variable.
4050 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4051 variable.
4052 * ia64-tdep.c (examine_prologue): Remove unused variable.
4053 * infcall.c (run_inferior_call): Remove unused variable.
4054 * inferior.c (exit_inferior): Remove unused variable.
4055 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4056 * linespec.c (decode_line_2): Remove unused variable.
4057 * linux-nat.c (super_close): Remove.
4058 * linux-tdep.c (linux_info_proc): Remove unused variable.
4059 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4060 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4061 Remove unused variable.
4062 * parse.c (find_minsym_type_and_address): Remove unused variable.
4063 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4064 variable.
4065 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4066 variable.
4067 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4068 variables.
4069 * record-btrace.c (record_btrace_target::store_registers): Remove
4070 unused variable.
4071 (cmd_show_record_btrace_cpu): Remove unused variable.
4072 * riscv-tdep.c (riscv_register_reggroup_p)
4073 (riscv_push_dummy_call, riscv_return_value): Remove unused
4074 variable.
4075 * rust-exp.y (literal): Remove unused variable.
4076 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4077 unused variable.
4078 <STRUCTOP_ANONYMOUS>: Likewise.
4079 * s390-linux-tdep.c (s390_linux_init_abi_31)
4080 (s390_linux_init_abi_64): Remove unused variable.
4081 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4082 (file_select_thread, net_windows_open, _initialize_ser_windows):
4083 Remove unused variables.
4084 * symtab.c (find_pc_sect_line): Remove unused variable.
4085 * target-memory.c (compute_garbled_blocks): Remove unused
4086 variable.
4087 (target_write_memory_blocks): Remove unused variable.
4088 * target.c (target_stack::unpush): Remove unused variables.
4089 * tracepoint.c (start_tracing, all_tracepoint_actions)
4090 (merge_uploaded_trace_state_variables)
4091 (print_one_static_tracepoint_marker): Remove unused variable.
4092 * unittests/basic_string_view/element_access/char/1.cc (test01):
4093 Remove unused variable.
4094 * windows-nat.c (windows_continue, windows_add_all_dlls)
4095 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4096 Remove unused variables.
4097
4098 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4101 attr_profile in HAVE_ELF.
4102 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4103 HAVE_ELF.
4104
4105 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4106
4107 * frame.c (frame_register_unwind): Change parameter name.
4108 (frame_unwind_register): Likewise.
4109 (frame_unwind_register_value): Likewise.
4110 (frame_unwind_register_signed): Likewise.
4111 (frame_unwind_register_unsigned): Likewise.
4112 * frame.h (frame_register_unwind): Likewise.
4113 (frame_unwind_register): Likewise.
4114 (frame_unwind_register_value): Likewise.
4115 (frame_unwind_register_signed): Likewise.
4116 (frame_unwind_register_unsigned): Likewise.
4117 (frame_unwind_arch): Likewise.
4118
4119 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4120
4121 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4122 ISA maintenance.
4123
4124 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4125
4126 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4127 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4128 hand.
4129
4130 2018-07-20 Keith Seitz <keiths@redhat.com>
4131
4132 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4133 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4134 m_compunit_symtab, m_language>: Add "m_" prefix.
4135 Update all uses.
4136 * buildsym.c: Update all uses.
4137
4138 2018-07-20 Tom Tromey <tom@tromey.com>
4139
4140 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4141 * buildsym.h (record_line_ftype): Remove typedef.
4142
4143 2018-07-20 Tom Tromey <tom@tromey.com>
4144
4145 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4146 (end_expandable_symtab): Likewise.
4147 (end_symtab_get_static_block): Likewise.
4148 (end_symtab_from_static_block): Likewise.
4149 * buildsym-legacy.c (augment_type_symtab): Remove.
4150 (end_expandable_symtab): Remove.
4151 (end_symtab_get_static_block): Remove.
4152 (end_symtab_from_static_block): Remove.
4153
4154 2018-07-20 Tom Tromey <tom@tromey.com>
4155
4156 * dwarf2read.c: Include buildsym.h.
4157 (struct dwarf2_cu) <builder>: New method.
4158 (fixup_go_packaging): Update.
4159 (process_full_comp_unit, process_full_type_unit): Update. Don't
4160 use scoped_free_pendings.
4161 (using_directives): Add "cu" parameter, remove "language".
4162 (read_import_statement, setup_type_unit_groups, )
4163 (read_func_scope, read_lexical_block_scope)
4164 (dwarf2_record_block_ranges, read_namespace): Update.
4165 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4166 (lnp_state_machine::handle_end_sequence): Update.
4167 (class lnp_state_machine) <m_cu>: New member.
4168 <m_record_line_callback>: Remove.
4169 <m_currently_recording_lines>: New member.
4170 (lnp_state_machine::handle_set_file): Update.
4171 (noop_record_line): Remove.
4172 (dwarf_record_line_p): Add cu parameter.
4173 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4174 (lnp_state_machine::record_line)
4175 (lnp_state_machine::lnp_state_machine)
4176 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4177 (dwarf_decode_lines): Update.
4178 (dwarf2_start_subfile): Add cu parameter.
4179 (dwarf2_start_symtab, new_symbol): Update.
4180 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4181 Remove dwarf2_per_objfile parameter.
4182 (dwarf_decode_macros): Update.
4183
4184 2018-07-20 Tom Tromey <tom@tromey.com>
4185
4186 * stabsread.c (define_symbol): Update.
4187 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4188 * dwarf2read.c (new_symbol): Update.
4189 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4190 * cp-namespace.c: Include buildsym.h.
4191 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4192 * buildsym-legacy.c (get_buildsym_compunit): New function.
4193
4194 2018-07-20 Tom Tromey <tom@tromey.com>
4195
4196 * xcoffread.c: Include buildsym-legacy.h.
4197 * windows-nat.c: Include buildsym-legacy.h.
4198 * stabsread.c: Include buildsym-legacy.h.
4199 * mdebugread.c: Include buildsym-legacy.h.
4200 * buildsym-legacy.h: New file.
4201 * buildsym-legacy.c: New file, from buildsym.c.
4202 * go32-nat.c: Include buildsym-legacy.h.
4203 * dwarf2read.c: Include buildsym-legacy.h.
4204 * dbxread.c: Include buildsym-legacy.h.
4205 * cp-namespace.c: Include buildsym-legacy.h.
4206 * coffread.c: Include buildsym-legacy.h.
4207 * buildsym.h: Move some contents to buildsym-legacy.h.
4208 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4209 buildsym-legacy.c.
4210 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4211
4212 2018-07-20 Tom Tromey <tom@tromey.com>
4213
4214 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4215 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4216 (buildsym_compunit::buildsym_compunit)
4217 (buildsym_compunit::~buildsym_compunit)
4218 (buildsym_compunit::get_macro_table): Define.
4219
4220 2018-07-20 Tom Tromey <tom@tromey.com>
4221
4222 * buildsym.c (reset_symtab_globals): Remove.
4223 (buildsym_compunit::end_symtab_from_static_block): Update.
4224 (buildsym_compunit::augment_type_symtab): Update.
4225 (end_symtab_from_static_block): Call free_buildsym_compunit.
4226 (augment_type_symtab, end_symtab, end_expandable_symtab):
4227 Likewise.
4228
4229 2018-07-20 Tom Tromey <tom@tromey.com>
4230
4231 * arch-utils.c: Do not include buildsym.h.
4232 * mipsread.c: Do not include buildsym.h.
4233 * machoread.c: Do not include buildsym.h.
4234 * elfread.c: Do not include buildsym.h.
4235
4236 2018-07-20 Tom Tromey <tom@tromey.com>
4237
4238 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4239 initialization.
4240 (buildsym_compunit): Add new constructor.
4241 (struct buildsym_compunit) <get_last_source_file, finish_block,
4242 record_block_range, start_subfile, patch_subfile_names,
4243 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4244 set_last_source_start_addr, get_last_source_start_addr,
4245 get_local_using_directives, set_local_using_directives,
4246 get_global_using_directives, outermost_context_p,
4247 get_current_context_stack, get_context_stack_depth,
4248 get_current_subfile, get_local_symbols, get_file_symbols,
4249 get_global_symbols, record_debugformat, record_producer,
4250 push_context, pop_context, end_symtab_get_static_block,
4251 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4252 New public methods.
4253 <record_pending_block, finish_block_internal, make_blockvector,
4254 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4255 private methods.
4256 Update all users.
4257
4258 2018-05-22 Tom Tromey <tom@tromey.com>
4259
4260 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4261 parameter.
4262 (finish_block_internal): Update.
4263
4264 2018-07-20 Tom Tromey <tom@tromey.com>
4265
4266 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4267 parameter.
4268 (finish_block_internal): Update.
4269
4270 2018-07-20 Tom Tromey <tom@tromey.com>
4271
4272 * buildsym.h (EXTERN): Don't define or undef.
4273 * buildsym.c (EXTERN): Don't define.
4274
4275 2018-07-20 Tom Tromey <tom@tromey.com>
4276
4277 * buildsym.c: Remove TODO comment.
4278
4279 2018-07-20 Tom Tromey <tom@tromey.com>
4280
4281 * coffread.c (coff_symtab_read): Update.
4282 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4283 (xcoff_new_init): Update.
4284 * mipsread.c (mipscoff_new_init): Update.
4285 * mdebugread.c (mdebug_build_psymtabs): Update.
4286 * elfread.c (elf_new_init): Update.
4287 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4288 Update.
4289 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4290 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4291 (stabsect_build_psymtabs): Update.
4292 * buildsym.h (buildsym_init): Don't declare.
4293 * buildsym.c: Update comment.
4294 (prepare_for_building): Remove.
4295 (start_symtab, restart_symtab): Update.
4296 (reset_symtab_globals): Update comment.
4297 (buildsym_init): Remove.
4298
4299 2018-07-20 Tom Tromey <tom@tromey.com>
4300
4301 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4302 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4303 (read_enum_type, common_block_start, common_block_end)
4304 (cleanup_undefined_types_1, finish_global_stabs): Update.
4305 * mdebugread.c (psymtab_to_symtab_1): Update.
4306 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4307 (read_lexical_block_scope, new_symbol): Update.
4308 * dbxread.c (process_one_symbol): Update.
4309 * coffread.c (coff_symtab_read, process_coff_symbol)
4310 (coff_read_enum_type): Update.
4311 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4312 declare.
4313 (get_local_symbols, get_file_symbols, get_global_symbols): New
4314 functions.
4315 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4316 m_global_symbols.
4317 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4318 (~scoped_free_pendings): Update.
4319 (finish_block, prepare_for_building, reset_symtab_globals)
4320 (end_symtab_get_static_block, end_symtab_with_blockvector)
4321 (augment_type_symtab, push_context): Update.
4322 (get_local_symbols, get_file_symbols, get_global_symbols): New
4323 functions.
4324 (buildsym_init): Update.
4325
4326 2018-07-20 Tom Tromey <tom@tromey.com>
4327
4328 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4329 (process_full_type_unit): Likewise.
4330 (dwarf2_start_symtab): Set list_in_scope.
4331
4332 2018-07-20 Tom Tromey <tom@tromey.com>
4333
4334 * dwarf2read.c (process_psymtab_comp_unit_reader)
4335 (build_type_psymtabs_reader): Do not set list_in_scope.
4336
4337 2018-07-20 Tom Tromey <tom@tromey.com>
4338
4339 * buildsym.c (free_pendings): Remove.
4340 (add_symbol_to_list, scoped_free_pendings)
4341 (finish_block_internal, buildsym_init): Update.
4342
4343 2018-07-20 Tom Tromey <tom@tromey.com>
4344
4345 * xcoffread.c (read_xcoff_symtab): Update.
4346 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4347 Update.
4348 * dbxread.c (process_one_symbol): Update.
4349 * coffread.c (coff_symtab_read): Update.
4350 * buildsym.h (finish_block): Update.
4351 * buildsym.c (finish_block): Remove "listhead" argument.
4352 (end_symtab_get_static_block): Update.
4353
4354 2018-07-20 Tom Tromey <tom@tromey.com>
4355
4356 * buildsym.h (class scoped_free_pendings): Remove constructor.
4357 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4358 method.
4359 <m_pending_block_obstack, m_pending_blocks>: New members.
4360 (pending_block_obstack, pending_blocks): Remove.
4361 (scoped_free_pendings::scoped_free_pendings): Default.
4362 (~scoped_free_pendings): Update.
4363 (free_pending_blocks): Remove.
4364 (finish_block_internal, record_pending_block, make_blockvector)
4365 (end_symtab_get_static_block, augment_type_symtab, push_context)
4366 (buildsym_init): Update.
4367
4368 2018-07-20 Tom Tromey <tom@tromey.com>
4369
4370 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4371 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4372 members.
4373 (pending_addrmap, pending_addrmap_obstack)
4374 (pending_addrmap_interesting): Remove.
4375 (scoped_free_pendings, record_block_range, make_blockvector)
4376 (prepare_for_building, reset_symtab_globals, buildsym_init):
4377 Update.
4378
4379 2018-07-20 Tom Tromey <tom@tromey.com>
4380
4381 * xcoffread.c (process_linenos): Update.
4382 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4383 * mdebugread.c (psymtab_to_symtab_1): Update.
4384 * dwarf2read.c (setup_type_unit_groups)
4385 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4386 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4387 * dbxread.c (process_one_symbol): Update.
4388 * coffread.c (coff_symtab_read, enter_linenos)
4389 (process_coff_symbol): Update.
4390 * buildsym.h (current_subfile): Don't declare.
4391 (get_current_subfile): Declare.
4392 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4393 member.
4394 (start_subfile, free_buildsym_compunit, push_subfile)
4395 (prepare_for_building, start_symtab): Update.
4396 (get_current_subfile): New function.
4397
4398 2018-07-20 Tom Tromey <tom@tromey.com>
4399
4400 * coffread.c (coff_symtab_read): Update.
4401 * xcoffread.c (read_xcoff_symtab): Update.
4402 * dwarf2read.c (new_symbol): Update.
4403 (read_func_scope, read_lexical_block_scope): Update.
4404 * dbxread.c (process_one_symbol): Update.
4405 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4406 (outermost_context_p): Remove macro.
4407 (outermost_context_p, get_current_context_stack)
4408 (get_context_stack_depth): Declare.
4409 (pop_context): Return struct context_stack.
4410 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4411 member.
4412 (context_stack_size): Remove.
4413 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4414 (prepare_for_building, end_symtab_get_static_block)
4415 (augment_type_symtab, push_context): Update.
4416 (pop_context): Return struct context_stack.
4417 (outermost_context_p, get_current_context_stack)
4418 (get_context_stack_depth): New functions.
4419 (buildsym_init): Update.
4420
4421 2018-07-20 Tom Tromey <tom@tromey.com>
4422
4423 * rust-exp.y: Now a pure parser. Update all rules.
4424 (%union): Move earlier.
4425 (current_parser, work_obstack): Remove globals.
4426 (rust_parser, ~rust_parser): Update.
4427 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4428 lex_character, lex_number, lex_string, lex_identifier,
4429 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4430 convert_name, convert_params_to_expression,
4431 convert_ast_to_expression, ast_basic_type, ast_operation,
4432 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4433 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4434 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4435 ast_array_type, ast_slice_type, ast_reference_type,
4436 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4437 (rust_parse): Update.
4438 (rustyyerror, rustyylex): Add parser parameter.
4439 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4440 (rust_lex_stringish_test, rust_lex_test_sequence)
4441 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4442 (rust_lex_test_push_back, rust_lex_tests): Update.
4443
4444 2018-07-19 Pedro Alves <palves@redhat.com>
4445
4446 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4447 gdb::unique_xmalloc_ptr.
4448 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4449 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4450 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4451 copy-initialization.
4452 * guile/scm-pretty-print.c (ppscm_print_children): Use
4453 gdb::unique_xmalloc_ptr instead of cleanups.
4454 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4455 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4456 gdb::unique_xmalloc_ptr.
4457 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4458 Adjust to use gdb::unique_xmalloc_ptr.
4459 * guile/scm-utils.c (extract_arg): Adjust.
4460 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4461 gdb::unique_xmalloc_ptr instead of a cleanup.
4462
4463 2018-07-19 Tom Tromey <tom@tromey.com>
4464
4465 * utils.c (do_value_free_to_mark)
4466 (make_cleanup_value_free_to_mark): Remove.
4467 * utils.h (make_cleanup_value_free_to_mark): Remove.
4468
4469 2018-07-19 Pedro Alves <palves@redhat.com>
4470
4471 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4472 forwarding reference.
4473
4474 2018-07-18 Pedro Alves <palves@redhat.com>
4475
4476 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4477 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4478 cleanup.
4479
4480 2018-07-18 Pedro Alves <palves@redhat.com>
4481
4482 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4483 exceptions.
4484 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4485 (gdbscm_wrap): New.
4486 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4487 directly instead of a cleanup.
4488 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4489 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4490 (vlscm_binop_gdbthrow): New, factored out from ...
4491 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4492 (vlscm_rich_compare): Use gdbscm_wrap.
4493 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4494 instead of a cleanup.
4495 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4496 cleanup.
4497 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4498 Use xfree directly instead of a cleanup.
4499 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4500 Adjust to use gdbscm_wrap and scoped_value_mark.
4501 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4502 (gdbscm_value_address, gdbscm_value_dereference)
4503 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4504 scoped_value_mark.
4505 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4506 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4507 scoped_value_mark.
4508 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4509 gdbscm_wrap and scoped_value_mark.
4510 (gdbscm_value_to_string): Use xfree directly instead of a
4511 cleanup. Move 'buffer' unique_ptr to TRY scope.
4512 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4513 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4514 scoped_value_mark.
4515 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4516 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4517 scoped_value_mark.
4518 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4519 gdbscm_wrap.
4520
4521 2018-07-18 Tom de Vries <tdevries@suse.de>
4522
4523 * findvar.c (default_read_var_value): Also resolve dynamic type for
4524 LOC_OPTIMIZED_OUT vars.
4525
4526 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4527
4528 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4529 decoding.
4530
4531 2018-07-17 Tom Tromey <tom@tromey.com>
4532
4533 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4534 (compute_enum_list, pascm_set_param_value_x)
4535 (gdbscm_parameter_value): Update.
4536 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4537 (gdbscm_scm_to_host_string): Update.
4538 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4539 Update.
4540 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4541 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4542 * guile/scm-string.c (gdbscm_scm_to_string): Return
4543 unique_xmalloc_ptr.
4544 (gdbscm_scm_to_host_string): Likewise.
4545
4546 2018-07-17 Tom Tromey <tom@tromey.com>
4547
4548 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4549 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4550 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4551 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4552 unique_xmalloc_ptr.
4553
4554 2018-07-17 Tom Tromey <tom@tromey.com>
4555
4556 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4557 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4558 Update.
4559 * guile/scm-cmd.c (cmdscm_function): Update.
4560 * guile/scm-pretty-print.c
4561 (ppscm_print_exception_unless_memory_error): Update.
4562 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4563 Return unique_xmalloc_ptr.
4564
4565 2018-07-17 Tom Tromey <tom@tromey.com>
4566
4567 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4568 Use string_printf.
4569
4570 2018-07-17 Jim Wilson <jimw@sifive.com>
4571
4572 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4573 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4574 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4575 unecessary braces after EF_RISCV_RVC test. Delete call to
4576 set_gdbarch_decr_pc_after_break.
4577
4578 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4579 RISCV_LAST_FP_REGNUM + 1.
4580 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4581
4582 2018-07-17 Tom Tromey <tom@tromey.com>
4583
4584 * configure.ac: Remove --disable-gdbcli.
4585 * configure: Rebuild.
4586 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4587 (SUBDIR_CLI_CFLAGS): Remove.
4588 (SFILES): Use SUBDIR_CLI_SRCS.
4589 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4590
4591 2018-07-17 Tom Tromey <tom@tromey.com>
4592
4593 PR gdb/18624:
4594 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4595
4596 2018-07-16 Jim Wilson <jimw@sifive.com>
4597
4598 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4599
4600 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4601
4602 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4603 variable.
4604 (libunwind_frame_sniffer): Likewise.
4605 (libunwind_frame_prev_register): Likewise.
4606 (libunwind_sigtramp_frame_sniffer): Likewise.
4607 * ia64-tdep.c (ia64_access_reg): Likewise.
4608 (ia64_access_rse_reg): Likewise.
4609 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4610 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4611
4612 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4613
4614 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4615
4616 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4617
4618 * remote-sim.c (gdbsim_target::close,
4619 gdbsim_target::mourn_inferior): Remove unused variables.
4620
4621 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4622
4623 * ia64-tdep.c (ktab_buf): New global.
4624 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4625 (get_kernel_table): Adjust.
4626
4627 2018-07-16 Tom Tromey <tom@tromey.com>
4628
4629 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4630 * dwarf2read.c (using_directives, new_symbol): Use
4631 outermost_context_p.
4632 * dbxread.c (process_one_symbol): Use outermost_context_p.
4633 * coffread.c (coff_symtab_read): Use outermost_context_p.
4634
4635 2018-07-16 Tom Tromey <tom@tromey.com>
4636
4637 * dwarf2read.c (using_directives, read_func_scope)
4638 (read_lexical_block_scope): Update.
4639 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4640 * buildsym.h (local_using_directives, global_using_directives):
4641 Don't declare.
4642 (get_local_using_directives, set_local_using_directives)
4643 (get_global_using_directives): Declare.
4644 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4645 m_global_using_directives>: New members.
4646 (finish_block_internal, prepare_for_building)
4647 (reset_symtab_globals, end_symtab_get_static_block)
4648 (push_context): Update.
4649 (get_local_using_directives, set_local_using_directives)
4650 (get_global_using_directives): New functions.
4651 (buildsym_init): Update.
4652
4653 2018-07-16 Tom Tromey <tom@tromey.com>
4654
4655 * xcoffread.c (xcoff_initial_scan): Don't call
4656 free_pending_blocks.
4657 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4658 * buildsym.h (class scoped_free_pendings): Add constructor.
4659 (free_pending_blocks): Don't declare.
4660 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4661 (free_pending_blocks): Now static.
4662
4663 2018-07-16 Tom Tromey <tom@tromey.com>
4664
4665 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4666 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4667 member.
4668 (struct subfile_stack): Remove.
4669 (subfile_stack): Remove.
4670 (push_subfile, pop_subfile, buildsym_init): Update.
4671
4672 2018-07-16 Tom Tromey <tom@tromey.com>
4673
4674 * buildsym.c (push_subfile): Use gdb_assert.
4675 (pop_subfile): Use gdb_assert.
4676
4677 2018-07-16 Tom Tromey <tom@tromey.com>
4678
4679 * buildsym.h (merge_symbol_lists): Remove.
4680 * buildsym.c (merge_symbol_lists): Remove.
4681
4682 2018-07-16 Tom Tromey <tom@tromey.com>
4683
4684 * stabsread.c (scan_file_globals): Update comment.
4685 * stabsread.h (scan_file_globals): Move from buildsym.h.
4686 * buildsym.h (scan_file_globals): Move to stabsread.h.
4687
4688 2018-07-16 Tom Tromey <tom@tromey.com>
4689
4690 * xcoffread.c (xcoff_new_init): Update.
4691 * mipsread.c (mipscoff_new_init): Update.
4692 * mdebugread.c (mdebug_build_psymtabs): Update.
4693 * elfread.c (elf_new_init): Update.
4694 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4695 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4696 * buildsym.h (buildsym_new_init): Don't declare.
4697 * buildsym.c (buildsym_new_init): Remove.
4698
4699 2018-07-16 Tom Tromey <tom@tromey.com>
4700
4701 * stabsread.h (within_function): Move from buildsym.h.
4702 * stabsread.c (start_stabs): Clear within_function.
4703 * coffread.c (coff_start_symtab): Clear within_function.
4704 * buildsym.h (within_function): Move to stabsread.h.
4705 * buildsym.c (prepare_for_building): Update.
4706
4707 2018-07-16 Tom Tromey <tom@tromey.com>
4708
4709 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4710 * dwarf2read.c (dwarf2_start_symtab): Don't set
4711 processing_gcc_compilation.
4712 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4713
4714 2018-07-16 Tom Tromey <tom@tromey.com>
4715
4716 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4717 (next_symbol_text_func): Move from buildsym.h.
4718 * stabsread.c (hashname): Move from buildsym.c.
4719 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4720 (next_symbol_text_func, hashname): Move to stabsread.h.
4721 * buildsym.c: Don't include bcache.h
4722 (hashname): Move to stasbread.c.
4723
4724 2018-07-16 Tom Tromey <tom@tromey.com>
4725
4726 * buildsym.h (context_stack_size): Don't declare.
4727 * buildsym.c (context_stack_size): New global.
4728
4729 2018-07-16 Tom Tromey <tom@tromey.com>
4730
4731 * dbxread.c (processing_acc_compilation): New global.
4732 * buildsym.h (processing_acc_compilation): Don't declare.
4733
4734 2018-07-16 Tom Tromey <tom@tromey.com>
4735
4736 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4737 * dbxread.c (read_ofile_symtab): Update.
4738 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4739 * buildsym.h (last_source_start_addr): Remove.
4740 (set_last_source_start_addr, get_last_source_start_addr):
4741 Declare.
4742 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4743 parameter.
4744 (struct buildsym_compunit) <m_last_source_start_addr>: New
4745 member.
4746 (prepare_for_building): Remove start_addr parameter.
4747 (start_symtab, restart_symtab, end_symtab_get_static_block)
4748 (end_symtab_with_blockvector): Update.
4749 (set_last_source_start_addr, get_last_source_start_addr): New
4750 functions.
4751
4752 2018-07-16 Tom Tromey <tom@tromey.com>
4753
4754 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4755 member.
4756 (have_line_numbers): Remove.
4757 (record_line, prepare_for_building, end_symtab_get_static_block)
4758 (augment_type_symtab): Update.
4759
4760 2018-07-16 Tom Tromey <tom@tromey.com>
4761
4762 * buildsym.c (~buildsym_compunit): Free the macro table.
4763 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4764 methods.
4765 <m_pending_macros>: New member.
4766 (pending_macros): Remove.
4767 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4768 (reset_symtab_globals, end_symtab_get_static_block)
4769 (end_symtab_with_blockvector, augment_type_symtab)
4770 (buildsym_init): Update.
4771
4772 2018-07-16 Tom Tromey <tom@tromey.com>
4773
4774 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4775 parameter.
4776 (buildsym_compunit::set_last_source_file): New method.
4777 <m_last_source_file>: New member.
4778 (prepare_for_building): Remove "name" parameter.
4779 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4780 (last_source_file): Remove.
4781 (set_last_source_file, get_last_source_file): Update.
4782
4783 2018-07-16 Tom Tromey <tom@tromey.com>
4784
4785 * buildsym.c (prepare_for_building): Add assert.
4786
4787 2018-07-16 Tom Tromey <tom@tromey.com>
4788
4789 * buildsym.c (~buildsym_compunit): Update.
4790 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4791 (start_subfile, patch_subfile_names)
4792 (end_symtab_with_blockvector): Update.
4793
4794 2018-07-16 Tom Tromey <tom@tromey.com>
4795
4796 * buildsym.c (struct buildsym_compunit): Add constructor,
4797 destructor, initializers.
4798 (start_buildsym_compunit): Remove.
4799 (free_buildsym_compunit): Use "delete".
4800 (start_symtab, restart_symtab): Use "new".
4801
4802 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4803
4804 * symfile.c (set_objfile_default_section_offset): Remove struct
4805 keyword.
4806
4807 2018-07-14 Stafford Horne <shorne@gmail.com>
4808
4809 * (Responsible Maintainers): Add myself as or1k maintainer.
4810
4811 2018-07-13 Tom Tromey <tom@tromey.com>
4812
4813 * symfile.c (set_objfile_default_section_offset): Use extra braces
4814 around initializer.
4815
4816 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4817
4818 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4819 non-branching basr.
4820
4821 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4822
4823 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4824 unittests/cli-utils-selftests.c
4825 * unittests/cli-utils-selftests.c: New file.
4826
4827 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4828
4829 * NEWS: Mention new commands. Mention change to 'thread apply'.
4830
4831 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4832
4833 * thread.c (thr_try_catch_cmd): New function.
4834 (thread_apply_all_command): Handle qcs flags.
4835 (thread_apply_command): Handle qcs flags.
4836 (taas_command): New function.
4837 (tfaas_command): New function.
4838 (_initialize_thread): Update to setup the new commands 'taas
4839 and 'tfaas'. Change doc string for 'thread apply'.
4840
4841 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4842
4843 * stack.c: (trailing_outermost_frame): New function, mostly
4844 extracted from backtrace_command_1.
4845 (leading_innermost_frame): New function.
4846 (backtrace_command_1): Update to call trailing_outermost_frame.
4847 (frame_apply_command_count): New function.
4848 (frame_apply_level_command): New function.
4849 (frame_apply_all_command): New function.
4850 (frame_apply_command): New function.
4851 (faas_command): New function.
4852 (frame_cmd_list): New variable.
4853 (_initialize_stack): Update to setup the new commands 'frame apply'
4854 and 'faas'.
4855
4856 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4857
4858 * cli-utils.c (number_or_range_parser::get_number): Only handle
4859 numbers or convenience var as numbers.
4860 (parse_flags): New function.
4861 (parse_flags_qcs): New function.
4862 (number_or_range_parser::finished): Ensure parsing end is detected
4863 before end of string.
4864 * cli-utils.h (parse_flags): New function.
4865 (parse_flags_qcs): New function.
4866 (number_or_range_parser): Remove m_finished bool.
4867 (number_or_range_parser::skip_range): Set m_in_range to false.
4868
4869 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4870
4871 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4872 on Windows.
4873
4874 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4875 Jan Kratochvil <jan.kratochvil@redhat.com>
4876 Paul Fertser <fercerpav@gmail.com>
4877 Tsutomu Seki <sekiriki@gmail.com>
4878 Pedro Alves <palves@redhat.com>
4879
4880 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4881 'unittests/parse-connection-spec-selftests.c'.
4882 (COMMON_SFILES): Add 'common/netstuff.c'.
4883 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4884 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4885 * common/netstuff.c: New file.
4886 * common/netstuff.h: New file.
4887 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4888 (wait_for_connect): Update comment. New parameter
4889 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4890 Use 'sock' directly instead of 'scb->fd'.
4891 (try_connect): New function, with code from 'net_open'.
4892 (net_open): Rewrite main loop to deal with multiple
4893 sockets/addresses. Handle IPv6-style hostnames; implement
4894 support for IPv6 connections.
4895 * unittests/parse-connection-spec-selftests.c: New file.
4896
4897 2018-07-11 Pedro Alves <palves@redhat.com>
4898
4899 PR gdb/23377
4900 * remote.c (remote_target::remote_detach_pid): Call
4901 set_current_process.
4902
4903 2018-07-11 Pedro Alves <palves@redhat.com>
4904
4905 * h8300-tdep.c (h8300_gdbarch_init): Remove
4906 set_gdbarch_ecoff_reg_to_regnum calls.
4907
4908 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4909
4910 PR c++/23373
4911 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4912 offsets/sizes for static members of a class/struct.
4913
4914 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4915
4916 * target-descriptions.c (tdesc_register_bitsize): Rename.
4917 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4918 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4919 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4920
4921 2018-07-10 Tom Tromey <tom@tromey.com>
4922
4923 * breakpoint.c (moribund_locations): Now static and a
4924 std::vector.
4925 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4926 (build_bpstat_chain, update_global_location_list)
4927 (breakpoint_retire_moribund): Update.
4928 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4929 VEC.
4930
4931 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4932
4933 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4934 (riscv_register_reggroup_p): Use new function, remove unneeded
4935 parenthesis.
4936 (riscv_push_dummy_call): Extend assert to compare against xlen or
4937 flen based on register type.
4938
4939 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4942
4943 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * remote.c (show_hardware_watchpoint_limit): New function.
4946 (show_hardware_watchpoint_length_limit): New function.
4947 (show_hardware_breakpoint_limit): New function.
4948 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4949 where appropriate, update help text.
4950
4951 2018-07-09 Tom Tromey <tom@tromey.com>
4952
4953 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4954 (CLIBS): Don't mention NAT_CLIBS.
4955
4956 2018-07-09 Tom Tromey <tom@tromey.com>
4957
4958 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4959 (LIBGDB_OBS, clean mostlyclean): Update.
4960 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4961
4962 2018-07-09 Tom Tromey <tom@tromey.com>
4963
4964 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4965 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4966 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4967
4968 2018-07-09 Tom Tromey <tom@tromey.com>
4969
4970 * Makefile.in (ALLDEPFILES): Remove exec.c.
4971 (COMMON_OBS): Remove exec.o.
4972 (COMMON_SFILES): Add exec.c.
4973
4974 2018-07-09 Tom Tromey <tom@tromey.com>
4975
4976 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4977
4978 2018-07-09 Tom Tromey <tom@tromey.com>
4979
4980 * Makefile.in (clean mostlyclean): Remove stamp-version.
4981 (version.c): Depend on stamp-version.
4982 (stamp-version): New rule, from version.c rule.
4983
4984 2018-07-09 Tom Tromey <tom@tromey.com>
4985
4986 * Makefile.in (init.c): Depend on stamp-init.
4987 (stamp-init): New rule, from init.c rule.
4988 (clean mostlyclean): Remove stamp-init.
4989
4990 2018-07-09 Tom Tromey <tom@tromey.com>
4991
4992 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4993 SUBDIR_GCC_COMPILE_SRCS.
4994
4995 2018-07-09 Tom Tromey <tom@tromey.com>
4996
4997 * Makefile.in (init.c): Remove some unused sed rules.
4998
4999 2018-07-09 Tom Tromey <tom@tromey.com>
5000
5001 * Makefile.in (TSOBS): Remove.
5002 (INIT_FILES): Update.
5003 (LIBGDB_OBS): Update.
5004 (COMMON_SFILES): Add inflow.c.
5005 (SFILES): Remove inflow.c.
5006
5007 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5008
5009 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5010
5011 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5014 get_saveloc_name, is_signal_frame_name, step_name,
5015 init_remote_name, create_addr_space_name,
5016 destroy_addr_space_name, search_unwind_table_name,
5017 find_dyn_list_name): Constify.
5018
5019 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
5020
5021 * darwin-nat.c (darwin_pthread_kill): New function.
5022 (darwin_resume_thread): Use darwin_pthread_kill.
5023
5024 2018-07-05 Tom de Vries <tdevries@suse.de>
5025
5026 * macroexp.c (macro_buffer) <operator=>: New member function.
5027
5028 2018-07-04 Tom Tromey <tom@tromey.com>
5029
5030 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5031
5032 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5033
5034 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5035 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5036 * maint.c: Likewise.
5037 * top.c: Likewise.
5038
5039 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5040
5041 * NEWS: Create a new section for the next release branch.
5042 Rename the section of the current branch, now that it has
5043 been cut.
5044
5045 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5046
5047 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5048 * version.in: Bump version to 8.2.50.DATE-git.
5049
5050 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5051 Pedro Alves <palves@redhat.com>
5052
5053 * linux-nat.c (linux_init_ptrace): Rename to ...
5054 (linux_init_ptrace_procfs): ... this. Call
5055 linux_proc_init_warnings.
5056 (linux_nat_target::post_attach)
5057 (linux_nat_target::post_startup_inferior): Adjust.
5058 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5059 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5060
5061 2018-07-04 Tom de Vries <tdevries@suse.de>
5062
5063 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5064 check ...
5065 (read_comp_unit_head): ... here.
5066
5067 2018-07-03 Tom Tromey <tom@tromey.com>
5068
5069 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5070 (stop_tracing, tstatus_command)
5071 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5072 (print_one_static_tracepoint_marker): Update.
5073 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5074 std::vector.
5075 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5076 VEC.
5077 (all_tracepoints, static_tracepoints_here): Return std::vector.
5078
5079 2018-07-03 Tom Tromey <tom@tromey.com>
5080
5081 * common/ptid.c (ptid_equal): Remove.
5082 * common/ptid.h (ptid_equal): Don't declare.
5083 * ada-tasks.c: Update.
5084 * breakpoint.c: Update.
5085 * common/agent.c: Update.
5086 * corelow.c: Update.
5087 * darwin-nat-info.c: Update.
5088 * darwin-nat.c: Update.
5089 * dcache.c: Update.
5090 * dtrace-probe.c: Update.
5091 * dummy-frame.c: Update.
5092 * fbsd-nat.c: Update.
5093 * frame.c: Update.
5094 * gdbthread.h: Update.
5095 * gnu-nat.c: Update.
5096 * go32-nat.c: Update.
5097 * inf-loop.c: Update.
5098 * inf-ptrace.c: Update.
5099 * infcall.c: Update.
5100 * infcmd.c: Update.
5101 * inflow.c: Update.
5102 * infrun.c: Update.
5103 * linux-fork.c: Update.
5104 * linux-nat.c: Update.
5105 * linux-thread-db.c: Update.
5106 * mi/mi-cmd-var.c: Update.
5107 * mi/mi-interp.c: Update.
5108 * mi/mi-main.c: Update.
5109 * nto-procfs.c: Update.
5110 * ppc-linux-tdep.c: Update.
5111 * procfs.c: Update.
5112 * python/py-inferior.c: Update.
5113 * python/py-record-btrace.c: Update.
5114 * python/py-record.c: Update.
5115 * ravenscar-thread.c: Update.
5116 * regcache.c: Update.
5117 * remote-sim.c: Update.
5118 * remote.c: Update.
5119 * sol-thread.c: Update.
5120 * solib.c: Update.
5121 * target.c: Update.
5122 * tui/tui-stack.c: Update.
5123 * varobj.c: Update.
5124 * windows-nat.c: Update.
5125 * windows-tdep.c: Update.
5126
5127 2018-07-03 Tom Tromey <tom@tromey.com>
5128
5129 * common/ptid.c (ptid_match): Remove.
5130 * common/ptid.h (ptid_match): Don't declare.
5131 * fbsd-nat.c: Update.
5132 * infcmd.c: Update.
5133 * infrun.c: Update.
5134 * linux-nat.c: Update.
5135 * record-btrace.c: Update.
5136 * regcache.c: Update.
5137 * remote.c: Update.
5138
5139 2018-07-03 Tom Tromey <tom@tromey.com>
5140
5141 * common/ptid.c (ptid_tid_p): Remove.
5142 * common/ptid.h (ptid_tid_p): Don't declare.
5143 * sol-thread.c: Update.
5144
5145 2018-07-03 Tom Tromey <tom@tromey.com>
5146
5147 * common/ptid.c (ptid_lwp_p): Remove.
5148 * common/ptid.h (ptid_lwp_p): Don't declare.
5149 * fbsd-nat.c: Update.
5150 * linux-nat.c: Update.
5151 * nat/linux-procfs.c: Update.
5152 * nat/x86-linux-dregs.c: Update.
5153 * sol-thread.c: Update.
5154
5155 2018-07-03 Tom Tromey <tom@tromey.com>
5156
5157 * common/ptid.c (ptid_is_pid): Remove.
5158 * common/ptid.h (ptid_is_pid): Don't declare.
5159 * infrun.c: Update.
5160 * linux-nat.c: Update.
5161 * mi/mi-interp.c: Update.
5162 * remote.c: Update.
5163 * thread.c: Update.
5164
5165 2018-07-03 Tom Tromey <tom@tromey.com>
5166
5167 * common/ptid.c (ptid_get_tid): Remove.
5168 * common/ptid.h (ptid_get_tid): Don't declare.
5169 * ada-tasks.c: Update.
5170 * aix-thread.c: Update.
5171 * bsd-uthread.c: Update.
5172 * darwin-nat.c: Update.
5173 * fbsd-nat.c: Update.
5174 * i386-darwin-nat.c: Update.
5175 * infrun.c: Update.
5176 * linux-tdep.c: Update.
5177 * nto-procfs.c: Update.
5178 * ppc-ravenscar-thread.c: Update.
5179 * python/py-infthread.c: Update.
5180 * ravenscar-thread.c: Update.
5181 * sol-thread.c: Update.
5182 * sparc-ravenscar-thread.c: Update.
5183 * windows-nat.c: Update.
5184
5185 2018-07-03 Tom Tromey <tom@tromey.com>
5186
5187 * common/ptid.c (ptid_get_lwp): Remove.
5188 * common/ptid.h (ptid_get_lwp): Don't declare.
5189 * aarch64-linux-nat.c: Update.
5190 * ada-tasks.c: Update.
5191 * aix-thread.c: Update.
5192 * amd64-linux-nat.c: Update.
5193 * arm-linux-nat.c: Update.
5194 * corelow.c: Update.
5195 * fbsd-nat.c: Update.
5196 * fbsd-tdep.c: Update.
5197 * gnu-nat.c: Update.
5198 * i386-cygwin-tdep.c: Update.
5199 * i386-gnu-nat.c: Update.
5200 * i386-linux-nat.c: Update.
5201 * ia64-linux-nat.c: Update.
5202 * inf-ptrace.c: Update.
5203 * infrun.c: Update.
5204 * linux-fork.c: Update.
5205 * linux-nat.c: Update.
5206 * linux-tdep.c: Update.
5207 * linux-thread-db.c: Update.
5208 * mips-linux-nat.c: Update.
5209 * nat/aarch64-linux-hw-point.c: Update.
5210 * nat/aarch64-linux.c: Update.
5211 * nat/linux-btrace.c: Update.
5212 * nat/linux-osdata.c: Update.
5213 * nat/linux-procfs.c: Update.
5214 * nat/x86-linux-dregs.c: Update.
5215 * obsd-nat.c: Update.
5216 * ppc-fbsd-nat.c: Update.
5217 * ppc-linux-nat.c: Update.
5218 * procfs.c: Update.
5219 * python/py-infthread.c: Update.
5220 * ravenscar-thread.c: Update.
5221 * remote.c: Update.
5222 * s390-linux-nat.c: Update.
5223 * sol-thread.c: Update.
5224 * sol2-tdep.c: Update.
5225 * spu-linux-nat.c: Update.
5226 * x86-linux-nat.c: Update.
5227 * xtensa-linux-nat.c: Update.
5228
5229 2018-07-03 Tom Tromey <tom@tromey.com>
5230
5231 * common/ptid.c (ptid_get_pid): Remove.
5232 * common/ptid.h (ptid_get_pid): Don't declare.
5233 * aarch64-linux-nat.c: Update.
5234 * ada-lang.c: Update.
5235 * aix-thread.c: Update.
5236 * alpha-bsd-nat.c: Update.
5237 * amd64-fbsd-nat.c: Update.
5238 * amd64-linux-nat.c: Update.
5239 * arm-linux-nat.c: Update.
5240 * arm-nbsd-nat.c: Update.
5241 * auxv.c: Update.
5242 * break-catch-syscall.c: Update.
5243 * breakpoint.c: Update.
5244 * bsd-uthread.c: Update.
5245 * corelow.c: Update.
5246 * ctf.c: Update.
5247 * darwin-nat.c: Update.
5248 * fbsd-nat.c: Update.
5249 * fbsd-tdep.c: Update.
5250 * gcore.c: Update.
5251 * gnu-nat.c: Update.
5252 * hppa-nbsd-nat.c: Update.
5253 * hppa-obsd-nat.c: Update.
5254 * i386-fbsd-nat.c: Update.
5255 * ia64-linux-nat.c: Update.
5256 * inf-ptrace.c: Update.
5257 * infcmd.c: Update.
5258 * inferior.c: Update.
5259 * inferior.h: Update.
5260 * inflow.c: Update.
5261 * infrun.c: Update.
5262 * linux-fork.c: Update.
5263 * linux-nat.c: Update.
5264 * linux-tdep.c: Update.
5265 * linux-thread-db.c: Update.
5266 * m68k-bsd-nat.c: Update.
5267 * mi/mi-interp.c: Update.
5268 * mi/mi-main.c: Update.
5269 * mips-linux-nat.c: Update.
5270 * mips-nbsd-nat.c: Update.
5271 * mips64-obsd-nat.c: Update.
5272 * nat/aarch64-linux-hw-point.c: Update.
5273 * nat/aarch64-linux.c: Update.
5274 * nat/linux-btrace.c: Update.
5275 * nat/linux-osdata.c: Update.
5276 * nat/linux-procfs.c: Update.
5277 * nat/x86-linux-dregs.c: Update.
5278 * nto-procfs.c: Update.
5279 * obsd-nat.c: Update.
5280 * ppc-linux-nat.c: Update.
5281 * ppc-nbsd-nat.c: Update.
5282 * ppc-obsd-nat.c: Update.
5283 * proc-service.c: Update.
5284 * procfs.c: Update.
5285 * python/py-inferior.c: Update.
5286 * python/py-infthread.c: Update.
5287 * ravenscar-thread.c: Update.
5288 * record.c: Update.
5289 * remote-sim.c: Update.
5290 * remote.c: Update.
5291 * rs6000-nat.c: Update.
5292 * s390-linux-nat.c: Update.
5293 * sh-nbsd-nat.c: Update.
5294 * sol-thread.c: Update.
5295 * sparc-nat.c: Update.
5296 * sparc64-tdep.c: Update.
5297 * spu-linux-nat.c: Update.
5298 * spu-tdep.c: Update.
5299 * target-debug.h: Update.
5300 * target.c: Update.
5301 * thread.c: Update.
5302 * tid-parse.c: Update.
5303 * tracefile-tfile.c: Update.
5304 * vax-bsd-nat.c: Update.
5305 * windows-nat.c: Update.
5306 * x86-linux-nat.c: Update.
5307 * x86-nat.c: Update.
5308
5309 2018-07-03 Tom Tromey <tom@tromey.com>
5310
5311 * common/ptid.c (pid_to_ptid): Remove.
5312 * common/ptid.h (pid_to_ptid): Don't declare.
5313 * aix-thread.c: Update.
5314 * arm-linux-nat.c: Update.
5315 * common/ptid.c: Update.
5316 * common/ptid.h: Update.
5317 * corelow.c: Update.
5318 * ctf.c: Update.
5319 * darwin-nat.c: Update.
5320 * fbsd-nat.c: Update.
5321 * fork-child.c: Update.
5322 * gnu-nat.c: Update.
5323 * go32-nat.c: Update.
5324 * inf-ptrace.c: Update.
5325 * infcmd.c: Update.
5326 * inferior.c: Update.
5327 * infrun.c: Update.
5328 * linux-fork.c: Update.
5329 * linux-nat.c: Update.
5330 * nat/aarch64-linux-hw-point.c: Update.
5331 * nat/fork-inferior.c: Update.
5332 * nat/x86-linux-dregs.c: Update.
5333 * nto-procfs.c: Update.
5334 * obsd-nat.c: Update.
5335 * procfs.c: Update.
5336 * progspace.c: Update.
5337 * remote.c: Update.
5338 * rs6000-nat.c: Update.
5339 * s390-linux-nat.c: Update.
5340 * sol-thread.c: Update.
5341 * spu-linux-nat.c: Update.
5342 * target.c: Update.
5343 * top.c: Update.
5344 * tracefile-tfile.c: Update.
5345 * windows-nat.c: Update.
5346
5347 2018-07-03 Tom Tromey <tom@tromey.com>
5348
5349 * common/ptid.h (ptid_build): Don't declare.
5350 * common/ptid.c (ptid_build): Remove.
5351 * aix-thread.c: Update.
5352 * bsd-kvm.c: Update.
5353 * bsd-uthread.c: Update.
5354 * common/agent.c: Update.
5355 * common/ptid.c: Update.
5356 * common/ptid.h: Update.
5357 * corelow.c: Update.
5358 * darwin-nat.c: Update.
5359 * fbsd-nat.c: Update.
5360 * gnu-nat.c: Update.
5361 * linux-fork.c: Update.
5362 * linux-nat.c: Update.
5363 * linux-thread-db.c: Update.
5364 * nat/linux-osdata.c: Update.
5365 * nat/linux-procfs.c: Update.
5366 * nto-procfs.c: Update.
5367 * obsd-nat.c: Update.
5368 * proc-service.c: Update.
5369 * procfs.c: Update.
5370 * ravenscar-thread.c: Update.
5371 * remote-sim.c: Update.
5372 * remote.c: Update.
5373 * sol-thread.c: Update.
5374 * target.c: Update.
5375 * windows-nat.c: Update.
5376
5377 2018-07-03 Tom Tromey <tom@tromey.com>
5378
5379 * infrun.c (follow_exec): Use exit_inferior_silent.
5380 * inferior.c (exit_inferior_num_silent): Remove.
5381 * inferior.h (exit_inferior_num_silent): Don't declare.
5382
5383 2018-07-03 Tom Tromey <tom@tromey.com>
5384
5385 PR cli/23340:
5386 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5387 inferior_ptid on error.
5388
5389 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5390 Simon Marchi <simon.marchi@polymtl.ca>
5391
5392 PR tdep/8282
5393 * disasm.h (gdb_disassembler): Add
5394 `m_disassembler_options_holder'. member
5395 * disasm.c (get_all_disassembler_options): New function.
5396 (gdb_disassembler::gdb_disassembler): Use it.
5397 (gdb_buffered_insn_length_init_dis): Likewise.
5398 (gdb_buffered_insn_length): Adjust accordingly.
5399 (set_disassembler_options): Handle options with arguments.
5400 (show_disassembler_options_sfunc): Likewise. Add a leading new
5401 line if showing options with descriptions.
5402 (disassembler_options_completer): Adapt to using the
5403 `disasm_options_and_args_t' structure.
5404 * mips-tdep.c (mips_disassembler_options): New variable.
5405 (mips_disassembler_options_o32): Likewise.
5406 (mips_disassembler_options_n32): Likewise.
5407 (mips_disassembler_options_n64): Likewise.
5408 (gdb_print_insn_mips): Don't set `disassembler_options'.
5409 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5410 functions.
5411 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5412 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5413 `gdbarch_disassembler_options_implicit' and
5414 `gdbarch_valid_disassembler_options'.
5415 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5416 `disasm_options_and_args_t' structure.
5417 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5418 method.
5419 (valid_disassembler_options): Switch from `disasm_options_t' to
5420 the `disasm_options_and_args_t' structure.
5421 * NEWS: Document `set disassembler-options' support for the MIPS
5422 target.
5423 * gdbarch.h: Regenerate.
5424 * gdbarch.c: Regenerate.
5425
5426 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5427
5428 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5429
5430 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5431
5432 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5433 parameter in call to amd64_target_description.
5434 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5435 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5436 (amd64fbsd_init_abi): Likewise.
5437 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5438 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5439 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5440 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5441
5442 2018-06-29 Pedro Alves <palves@redhat.com>
5443
5444 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5445 "segments" parameter.
5446 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5447 (_initialize_amd64_tdep): Update call to
5448 amd64_create_target_description.
5449 (amd64_target_description): Add "segments" parameter. Adjust
5450 the implementation to use it.
5451 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5452 call to amd64_create_target_description.
5453 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5454 * gdb/arch/amd64.h (amd64_create_target_description): Add
5455 "segments" register.
5456 * gdb/arch/amd64.c (amd64_create_target_description): Add
5457 "segments" parameter. Call create_feature_i386_64bit_segments
5458 only if SEGMENTS is true.
5459 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5460 call to amd64_create_target_description.
5461
5462 2018-06-29 Pedro Alves <palves@redhat.com>
5463
5464 * thread.c (thread_target_id_str): New, factored out from ...
5465 (print_thread_info_1): ... here. Use it to compute the max
5466 "Target Id" column width.
5467
5468 2018-06-29 Pedro Alves <palves@redhat.com>
5469
5470 * remote.c (remote_target::extra_thread_info): Delete
5471 'display_buf' and 'n' locals. from the cache, regardless of
5472 packet mechanims is in use. Use cache for qThreadExtra and qP
5473 methods too.
5474
5475 2018-06-29 Pedro Alves <palves@redhat.com>
5476
5477 * blockframe.c (find_pc_sect_containing_function): New function.
5478 * breakpoint.c (print_breakpoint_location): Don't call
5479 find_pc_sect_function.
5480 * linespec.c (create_sals_line_offset): Record the location's
5481 symbol in the sal.
5482 * linespec.c (convert_address_location_to_sals): Fill in sal's
5483 symbol with find_pc_sect_containing_function.
5484 * symtab.c (find_function_start_sal): Rename to ...
5485 (find_function_start_sal_1): ... this.
5486 (find_function_start_sal): Reimplement as wrapper around
5487 find_function_start_sal_1, and use
5488 find_pc_sect_containing_function to fill in the sal's symbol.
5489 (find_function_start_sal(symbol*, bool)): Adjust.
5490 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5491 comments.
5492 (find_pc_sect_containing_function): Declare.
5493
5494 2018-06-29 Pedro Alves <palves@redhat.com>
5495
5496 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5497 true if the the location has no symbol.
5498
5499 2018-06-28 Tom Tromey <tom@tromey.com>
5500
5501 * NEWS: Mention --enable-codesign.
5502 * silent-rules.mk (ECHO_SIGN): New variable.
5503 * configure.ac: Add --enable-codesign.
5504 * configure: Rebuild.
5505 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5506 (gdb$(EXEEXT)): Optionally invoke codesign.
5507
5508 2018-06-28 Pedro Alves <palves@redhat.com>
5509
5510 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5511 comments.
5512 (switch_to_thread_no_regs): Adjust comment.
5513 * infcmd.c (stop_pc): Delete.
5514 (post_create_inferior, info_program_command): Replace references
5515 to stop_pc with references to thread_info->suspend.stop_pc.
5516 * inferior.h (stop_pc): Delete declaration.
5517 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5518 (handle_inferior_event_1, handle_signal_stop)
5519 (process_event_stop_test, keep_going_stepped_thread)
5520 (handle_step_into_function, handle_step_into_function_backward)
5521 (print_stop_location): Replace references to stop_pc with
5522 references to thread_info->suspend.stop_pc.
5523 (struct infcall_suspend_state) <stop_pc>: Delete field.
5524 (save_infcall_suspend_state, restore_infcall_suspend_state):
5525 Remove references to inf_stat->stop_pc.
5526 * linux-fork.c (fork_load_infrun_state): Likewise.
5527 * record-btrace.c (record_btrace_set_replay): Likewise.
5528 * record-full.c (record_full_goto_entry): Likewise.
5529 * remote.c (print_one_stopped_thread): Likewise.
5530 * target.c (target_resume): Extend comment.
5531 * thread.c (set_executing_thread): New.
5532 (set_executing): Use it.
5533 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5534 Remove references to stop_pc.
5535
5536 2018-06-28 Pedro Alves <palves@redhat.com>
5537
5538 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5539 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5540
5541 2018-06-28 Tom Tromey <tom@tromey.com>
5542
5543 * coffread.c (coff_symfile_finish): Update.
5544 * xcoffread.c (xcoff_symfile_finish): Update.
5545 * elfread.c (elf_symfile_finish): Update.
5546 * symfile.h (dwarf2_free_objfile): Don't declare.
5547 * dwarf2read.c (_initialize_dwarf2_read): Use
5548 register_objfile_data_with_cleanup.
5549 (dwarf2_free_objfile): Now static. Change signature.
5550
5551 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5552
5553 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5554 option "-o" to add-symbol-file-load to add an offset to each
5555 section's load address.
5556 * symfile.c (set_objfile_default_section_offset): New function.
5557
5558 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5559
5560 * symfile.c (add_symbol_file_command): Make sure that sections
5561 with the same name are sorted in the same order.
5562
5563 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5564
5565 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5566 require the second argument. If omitted, load sections at the
5567 addresses specified in the file.
5568
5569 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5570
5571 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5572 (_initialize_symfile): Add option "-o" to symbol-file to add an
5573 offset to each section of the symbol file.
5574
5575 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5576
5577 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5578
5579 2018-06-27 Tom Tromey <tom@tromey.com>
5580
5581 * stack.c (_initialize_stack): Update "func" help text.
5582
5583 2018-06-27 Tom Tromey <tom@tromey.com>
5584
5585 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5586 std::vector.
5587 (unwind_infopy_str, pyuw_create_unwind_info)
5588 (unwind_infopy_add_saved_register, pyuw_sniffer)
5589 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5590 Update.
5591 (struct saved_reg): Add constructor.
5592 <value>: Now a gdbpy_ref<>.
5593
5594 2018-06-27 Tom Tromey <tom@tromey.com>
5595
5596 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5597
5598 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5599
5600 * gdb-gdb.py.in: Format using autopep8.
5601
5602 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5603
5604 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5605 (type_lookup_function): Recognize CORE_ADDR values.
5606
5607 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5608
5609 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5610 print tag_name.
5611
5612 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5613
5614 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5615 <__lt__>: Add.
5616
5617 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5618
5619 * gdb-gdb.py: Move to...
5620 * gdb-gdb.py.in: ... here.
5621 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5622 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5623 dependencies.
5624 (distclean): Remove gdb-gdb.py when cleaning.
5625 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5626 * configure: Re-generate.
5627
5628 2018-06-27 Pedro Alves <palves@redhat.com>
5629
5630 * proc-service.c (get_ps_regcache): New.
5631 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5632 (ps_lsetfpregs): Use it.
5633
5634 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5635
5636 PR gdb/21695
5637 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5638 (dwarf_decode_lines_1): Adjust.
5639
5640 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5643 override.
5644 <info_proc>: Likewise.
5645
5646 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5647
5648 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5649 to windows_fetch_one_register, and only handle the case of
5650 fetching one register. Move the code that reloads the context
5651 and iterates over all registers if R is negative to...
5652 (windows_nat_target::fetch_registers): ... here.
5653 (do_windows_store_inferior_registers): Rename to
5654 windows_store_one_register, and only handle the case of storing
5655 one register. Move the code that handles the case where r is
5656 negative to...
5657 (windows_nat_target::store_registers) ... here.
5658
5659 2018-06-26 Tom Tromey <tom@tromey.com>
5660
5661 PR rust/22574:
5662 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5663 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5664 Update.
5665 (rust_internal_print_type): Add podata parameter.
5666 (rust_print_type): Update.
5667
5668 2018-06-26 Tom Tromey <tom@tromey.com>
5669
5670 * typeprint.h (struct print_offset_data) <update, finish,
5671 maybe_print_hole>: New methods.
5672 <indentation>: New constant.
5673 * typeprint.c (print_offset_data::indentation): Define.
5674 (print_offset_data::maybe_print_hole, print_offset_data::update)
5675 (print_offset_data::finish): Move from c-typeprint.c and rename.
5676 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5677 (print_spaces_filtered_with_print_options): Update.
5678 (c_print_type_union_field_offset, maybe_print_hole)
5679 (c_print_type_struct_field_offset): Move to typeprint.c and
5680 rename.
5681 (c_type_print_base_struct_union): Update.
5682
5683 2018-06-25 Pedro Alves <palves@redhat.com>
5684
5685 * gdbthread.h (thread_info_ref, delete_thread)
5686 (delete_thread_silent, first_thread_of_inferior)
5687 (any_thread_of_inferior, switch_to_thread)
5688 (enable_thread_stack_temporaries)
5689 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5690 (get_last_thread_stack_temporary)
5691 (value_in_thread_stack_temporaries, can_access_registers_thread):
5692 Spell out "struct thread_info" instead of just "thread_info".
5693 * inferior.h (notice_new_inferior): Likewise.
5694
5695 2018-06-25 Pedro Alves <palves@redhat.com>
5696
5697 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5698 pass thread_info pointer to delete_thread.
5699 (windows_nat_target::detach): Pass inferior pointer to
5700 detach_inferior.
5701 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5702 delete_thread.
5703 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5704 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5705 and pass a thread_info pointer to delete_thread.
5706 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5707 pass thread_info pointer to delete_thread.
5708 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5709 delete_thread_silent call.
5710 * procfs.c (procfs_target::detach): Pass inferior pointer to
5711 detach_inferior.
5712 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5713 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5714 delete_thread_silent call.
5715 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5716 pass thread_info pointer to delete_thread.
5717 (windows_nat_target::detach): Pass inferior pointer to
5718 delete_inferior.
5719
5720 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5721
5722 * regcache.c (readable_regcache::read_part): Fix asserts.
5723 (reg_buffer::raw_collect_part): New function.
5724 (regcache::write_part): Fix asserts.
5725 (reg_buffer::raw_supply_part): New function.
5726 (regcache::transfer_regset_register): New helper function.
5727 (regcache::transfer_regset): Call new functions.
5728 (regcache_supply_regset): Use gdb_byte*.
5729 (regcache::supply_regset): Likewise.
5730 (regcache_collect_regset): Likewise.
5731 (regcache::collect_regset): Likewise.
5732 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5733 (reg_buffer::raw_supply_part): Likewise.
5734 (regcache::transfer_regset_register): Likewise.
5735 (regcache::transfer_regset): Use gdb_byte*.
5736
5737 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5738
5739 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5740
5741 2018-06-21 Pedro Alves <palves@redhat.com>
5742
5743 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5744 instead of a ptid_t. All callers adjusted.
5745 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5746 adjusted.
5747 (print_ada_task_info, display_current_task_id, task_command_1):
5748 Adjust.
5749 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5750 inferior_thread.
5751 (breakpoint_kind): Adjust.
5752 (remove_breakpoints_pid): Rename to ...
5753 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5754 pointer. All callers adjusted.
5755 (bpstat_clear_actions): Use inferior_thread.
5756 (get_bpstat_thread): New.
5757 (bpstat_do_actions): Use it.
5758 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5759 to take a thread_info pointer. All callers adjusted.
5760 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5761 (breakpoint_re_set_thread): Use inferior_thread.
5762 * breakpoint.h (struct inferior): Forward declare.
5763 (bpstat_stop_status): Update.
5764 (remove_breakpoints_pid): Delete.
5765 (remove_breakpoints_inf): New.
5766 * bsd-uthread.c (bsd_uthread_target::wait)
5767 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5768 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5769 (maint_btrace_packet_history_cmd)
5770 (maint_btrace_clear_packet_history_cmd): Adjust.
5771 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5772 inferior_thread.
5773 * cli/cli-interp.c: Include "inferior.h".
5774 * common/refcounted-object.h (struct
5775 refcounted_object_ref_policy): New.
5776 * compile/compile-object-load.c: Include gdbthread.h.
5777 (store_regs): Use inferior_thread.
5778 * corelow.c (core_target::close): Use current_inferior.
5779 (core_target_open): Adjust to use first_thread_of_inferior and use
5780 the current inferior.
5781 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5782 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5783 <thread>: ... this new field. All references adjusted.
5784 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5785 Take a thread_info pointer instead of a ptid_t.
5786 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5787 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5788 thread_info pointer instead of a ptid_t.
5789 * elfread.c: Include "inferior.h".
5790 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5791 Use inferior_thread.
5792 * eval.c (evaluate_subexp): Likewise.
5793 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5794 inferior_thread.
5795 * gdb_proc_service.h (struct thread_info): Forward declare.
5796 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5797 <thread>: ... this new field. All references adjusted.
5798 * gdbarch.h, gdbarch.c: Regenerate.
5799 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5800 'thread' parameter. All implementations and callers adjusted.
5801 * gdbthread.h (thread_info) <set_running>: New method.
5802 (delete_thread, delete_thread_silent): Take a thread_info pointer
5803 instead of a ptid.
5804 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5805 (first_thread_of_process): Delete, replaced by ...
5806 (first_thread_of_inferior): ... this new function. All callers
5807 adjusted.
5808 (any_live_thread_of_process): Delete, replaced by ...
5809 (any_live_thread_of_inferior): ... this new function. All callers
5810 adjusted.
5811 (switch_to_thread, switch_to_no_thread): Declare.
5812 (is_executing): Delete.
5813 (enable_thread_stack_temporaries): Update comment.
5814 <enable_thread_stack_temporaries>: Take a thread_info pointer
5815 instead of a ptid_t. Incref the thread.
5816 <~enable_thread_stack_temporaries>: Decref the thread.
5817 <m_ptid>: Delete
5818 <m_thr>: New.
5819 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5820 (get_last_thread_stack_temporary)
5821 (value_in_thread_stack_temporaries, can_access_registers_thread):
5822 Take a thread_info pointer instead of a ptid_t. All callers
5823 adjusted.
5824 * infcall.c (get_call_return_value): Use inferior_thread.
5825 (run_inferior_call): Work with thread pointers instead of ptid_t.
5826 (call_function_by_hand_dummy): Work with thread pointers instead
5827 of ptid_t. Use thread_info_ref.
5828 * infcmd.c (proceed_thread_callback): Access thread's state
5829 directly.
5830 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5831 access thread's state directly.
5832 (continue_command): Use inferior_thread.
5833 (info_program_command): Use find_thread_ptid and access thread
5834 state directly.
5835 (proceed_after_attach_callback): Use thread state directly.
5836 (notice_new_inferior): Take a thread_info pointer instead of a
5837 ptid_t. All callers adjusted.
5838 (exit_inferior): Take an inferior pointer instead of a pid. All
5839 callers adjusted.
5840 (exit_inferior_silent): New.
5841 (detach_inferior): Delete.
5842 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5843 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5844 (detach_inferior_command, kill_inferior_command): Use
5845 find_inferior_id instead of valid_gdb_inferior_id and
5846 gdb_inferior_id_to_pid.
5847 (inferior_command): Use inferior and thread pointers.
5848 * inferior.h (struct thread_info): Forward declare.
5849 (notice_new_inferior): Take a thread_info pointer instead of a
5850 ptid_t. All callers adjusted.
5851 (detach_inferior): Delete declaration.
5852 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5853 instead of a pid. All callers adjusted.
5854 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5855 (valid_gdb_inferior_id): Delete.
5856 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5857 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5858 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5859 ...
5860 <inf>: ... this new field.
5861 <step_ptid>: Delete, replaced by ...
5862 <step_thread>: ... this new field.
5863 (get_displaced_stepping_state): Take an inferior pointer instead
5864 of a pid. All callers adjusted.
5865 (displaced_step_in_progress_any_inferior): Adjust.
5866 (displaced_step_in_progress_thread): Take a thread pointer instead
5867 of a ptid_t. All callers adjusted.
5868 (displaced_step_in_progress, add_displaced_stepping_state): Take
5869 an inferior pointer instead of a pid. All callers adjusted.
5870 (get_displaced_step_closure_by_addr): Adjust.
5871 (remove_displaced_stepping_state): Take an inferior pointer
5872 instead of a pid. All callers adjusted.
5873 (displaced_step_prepare_throw, displaced_step_prepare)
5874 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5875 All callers adjusted.
5876 (start_step_over): Adjust.
5877 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5878 displaced step queue.
5879 (do_target_resume): Adjust.
5880 (fetch_inferior_event): Use inferior_thread.
5881 (context_switch, get_inferior_stop_soon): Take an
5882 execution_control_state pointer instead of a ptid_t. All callers
5883 adjusted.
5884 (switch_to_thread_cleanup): Delete.
5885 (stop_all_threads): Use scoped_restore_current_thread.
5886 * inline-frame.c: Include "gdbthread.h".
5887 (inline_state) <inline_state>: Take a thread pointer instead of a
5888 ptid_t. All callers adjusted.
5889 <ptid>: Delete, replaced by ...
5890 <thread>: ... this new field.
5891 (find_inline_frame_state): Take a thread pointer instead of a
5892 ptid_t. All callers adjusted.
5893 (skip_inline_frames, step_into_inline_frame)
5894 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5895 pointer instead of a ptid_t. All callers adjusted.
5896 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5897 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5898 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5899 pointers directly.
5900 * linux-nat.c (get_detach_signal): Likewise.
5901 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5902 (thread_db_notice_clone): Adjust.
5903 (thread_db_find_new_threads_silently)
5904 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5905 a thread pointer instead of a ptid_t. All callers adjusted.
5906 * mi/mi-cmd-var.c: Include "inferior.h".
5907 (mi_cmd_var_update_iter): Update to use thread pointers.
5908 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5909 inferior directly.
5910 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5911 out to ...
5912 (mi_output_running): ... this new function.
5913 (mi_on_resume_1): Adjust to use it.
5914 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5915 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5916 directly.
5917 (interrupt_thread_callback): : Adjust to use thread and inferior
5918 pointers.
5919 * proc-service.c: Include "gdbthread.h".
5920 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5921 * progspace-and-thread.c: Include "inferior.h".
5922 * progspace.c: Include "inferior.h".
5923 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5924 hold a reference to an inferior_object.
5925 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5926 inferior_thread.
5927 * python/py-inferior.c (struct inferior_object): Give the type a
5928 tag name instead of a typedef.
5929 (python_on_normal_stop): No need to check if the current thread is
5930 listed.
5931 (inferior_to_inferior_object): Change return type to
5932 inferior_object. All callers adjusted.
5933 (find_thread_object): Delete, bits factored out to ...
5934 (thread_to_thread_object): ... this new function.
5935 * python/py-infthread.c (create_thread_object): Use
5936 inferior_to_inferior_object.
5937 (thpy_is_stopped): Use thread pointer directly.
5938 (gdbpy_selected_thread): Use inferior_thread.
5939 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5940 field, replaced with ...
5941 <thread>: ... this new field. All users adjusted.
5942 (btpy_insn_or_gap_new): Drop const.
5943 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5944 callers adjusted.
5945 * python/py-record.c: Include "gdbthread.h".
5946 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5947 a ptid_t. All callers adjusted.
5948 (gdbpy_current_recording): Use inferior_thread.
5949 * python/py-record.h (recpy_record_object) <ptid>: Delete
5950 field, replaced with ...
5951 <thread>: ... this new field. All users adjusted.
5952 (recpy_element_object) <ptid>: Delete
5953 field, replaced with ...
5954 <thread>: ... this new field. All users adjusted.
5955 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5956 a ptid_t. All callers adjusted.
5957 * python/py-threadevent.c: Include "gdbthread.h".
5958 (get_event_thread): Use thread_to_thread_object.
5959 * python/python-internal.h (struct inferior_object): Forward
5960 declare.
5961 (find_thread_object, find_inferior_object): Delete declarations.
5962 (thread_to_thread_object, inferior_to_inferior_object): New
5963 declarations.
5964 * record-btrace.c: Include "inferior.h".
5965 (require_btrace_thread): Use inferior_thread.
5966 (record_btrace_frame_sniffer)
5967 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5968 (get_thread_current_frame): Use scoped_restore_current_thread and
5969 switch_to_thread.
5970 (get_thread_current_frame): Use thread pointer directly.
5971 (record_btrace_replay_at_breakpoint): Use thread's inferior
5972 pointer directly.
5973 * record-full.c: Include "inferior.h".
5974 * regcache.c: Include "gdbthread.h".
5975 (get_thread_arch_regcache): Use the inferior's address space
5976 directly.
5977 (get_thread_regcache, registers_changed_thread): New.
5978 * regcache.h (get_thread_regcache(thread_info *thread)): New
5979 overload.
5980 (registers_changed_thread): New.
5981 (remote_target) <remote_detach_1>: Swap order of parameters.
5982 (remote_add_thread): <remote_add_thread>: Return the new thread.
5983 (get_remote_thread_info(ptid_t)): New overload.
5984 (remote_target::remote_notice_new_inferior): Use thread pointers
5985 directly.
5986 (remote_target::process_initial_stop_replies): Use
5987 thread_info::set_running.
5988 (remote_target::remote_detach_1, remote_target::detach)
5989 (extended_remote_target::detach): Adjust.
5990 * stack.c (frame_show_address): Use inferior_thread.
5991 * target-debug.h (target_debug_print_thread_info_pp): New.
5992 * target-delegates.c: Regenerate.
5993 * target.c (default_thread_address_space): Delete.
5994 (memory_xfer_partial_1): Use current_inferior.
5995 (target_detach): Use current_inferior.
5996 (target_thread_address_space): Delete.
5997 (generic_mourn_inferior): Use current_inferior.
5998 * target.h (struct target_ops) <thread_address_space>: Delete.
5999 (target_thread_address_space): Delete.
6000 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
6001 pointers directly.
6002 (delete_thread_1, delete_thread, delete_thread_silent): Take a
6003 thread pointer instead of a ptid_t. Adjust all callers.
6004 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6005 (first_thread_of_process): Delete, replaced by ...
6006 (first_thread_of_inferior): ... this new function. All callers
6007 adjusted.
6008 (any_thread_of_process): Rename to ...
6009 (any_thread_of_inferior): ... this, and take an inferior pointer.
6010 (any_live_thread_of_process): Rename to ...
6011 (any_live_thread_of_inferior): ... this, and take an inferior
6012 pointer.
6013 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6014 (value_in_thread_stack_temporaries)
6015 (get_last_thread_stack_temporary): Take a thread pointer instead
6016 of a ptid_t. Adjust all callers.
6017 (thread_info::set_running): New.
6018 (validate_registers_access): Use inferior_thread.
6019 (can_access_registers_ptid): Rename to ...
6020 (can_access_registers_thread): ... this, and take a thread
6021 pointer.
6022 (print_thread_info_1): Adjust to compare thread pointers instead
6023 of ptids.
6024 (switch_to_no_thread, switch_to_thread): Make extern.
6025 (scoped_restore_current_thread::~scoped_restore_current_thread):
6026 Use m_thread pointer directly.
6027 (scoped_restore_current_thread::scoped_restore_current_thread):
6028 Use inferior_thread.
6029 (thread_command): Use thread pointer directly.
6030 (thread_num_make_value_helper): Use inferior_thread.
6031 * top.c (execute_command): Use inferior_thread.
6032 * tui/tui-interp.c: Include "inferior.h".
6033 * varobj.c (varobj_create): Use inferior_thread.
6034 (value_of_root_1): Use find_thread_global_id instead of
6035 global_thread_id_to_ptid.
6036
6037 2018-06-21 Alan Hayward <alan.hayward@arm.com>
6038
6039 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6040 possible.
6041 (regcache::write_part): Likewise.
6042 (readable_regcache::cooked_read_part): Update comment.
6043 (readable_regcache::cooked_write_part): Likewise.
6044 * regcache.h: (readable_regcache::read_part): Likewise.
6045 (regcache::write_part): Likewise.
6046
6047 2018-06-21 Richard Bunt <richard.bunt@arm.com>
6048 Dirk Schubert <dirk.schubert@arm.com>
6049
6050 * aarch64-linux-nat.c (post_attach): New.
6051 (aarch64_linux_nat_target::post_attach): Override post_attach to
6052 record the number of hardware debug registers.
6053
6054 2018-06-20 Tom Tromey <tom@tromey.com>
6055
6056 * python/py-param.c (add_setshow_generic): Make parameters const.
6057 (parmpy_init): Update.
6058
6059 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6060
6061 * regcache.h (regcache_cooked_read_ftype): Rename to...
6062 (register_read_ftype): ...this, change type to function_view.
6063 (class reg_buffer) <save>: Remove src parameter.
6064 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6065 parameter non-const in first overload. Remove src parameter in
6066 second overload.
6067 * regcache.c (do_cooked_read): Remove.
6068 (readonly_detached_regcache::readonly_detached_regcache): Make
6069 parameter non-const, adjust call to other constructor.
6070 (reg_buffer::save): Remove src parameter.
6071 * frame.c (do_frame_register_read): Remove.
6072 (frame_save_as_regcache): Use lambda function.
6073 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6074 parameter to ppu2spu_data *.
6075 (ppu2spu_sniffer): Use lambda function.
6076
6077 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6078
6079 * record-full.c (record_full_target::insert_breakpoint): Remove
6080 "struct" keyword, add const.
6081
6082 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6083
6084 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6085 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6086 * configure.ac: Remove AC_PREREQ, add missing quoting.
6087 * gnulib/configure.ac: Modernize usage of
6088 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6089 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6090 (AUTOMAKE_VERSION): Bump to 1.15.1.
6091 * configure: Re-generate.
6092 * config.in: Re-generate.
6093 * aclocal.m4: Re-generate.
6094 * gnulib/aclocal.m4: Re-generate.
6095 * gnulib/config.in: Re-generate.
6096 * gnulib/configure: Re-generate.
6097 * gnulib/import/Makefile.in: Re-generate.
6098
6099 2018-06-19 Pedro Alves <palves@redhat.com>
6100
6101 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6102 (lookup_minimal_symbol_by_pc_section): ... here with
6103 gdb_assert_not_reached added.
6104
6105 2018-06-19 Pedro Alves <palves@redhat.com>
6106
6107 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6108 parameter with a block parameter. Compare location's block symbol
6109 with the frame's block instead of addresses.
6110 (skip_inline_frames): Pass the current block instead of the
6111 frame's address. Break out as soon as we determine the frame
6112 should not be skipped.
6113
6114 2018-06-18 Tom Tromey <tom@tromey.com>
6115
6116 * solib-aix.c (solib_aix_get_section_offsets): Return
6117 unique_xmalloc_ptr.
6118 (solib_aix_solib_create_inferior_hook): Update.
6119
6120 2018-06-18 Tom Tromey <tom@tromey.com>
6121
6122 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6123
6124 2018-06-18 Tom Tromey <tom@tromey.com>
6125
6126 * solib-frv.c (frv_relocate_main_executable): Use
6127 unique_xmalloc_ptr.
6128 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6129 unique_xmalloc_ptr.
6130
6131 2018-06-18 Tom Tromey <tom@tromey.com>
6132
6133 * objfiles.h (inhibit_section_map_updates): Update.
6134 (resume_section_map_updates, resume_section_map_updates_cleanup):
6135 Remove.
6136 * solib-svr4.c (svr4_handle_solib_event): Update.
6137 * objfiles.c (inhibit_section_map_updates): Return
6138 scoped_restore_tmpl<int>.
6139 (resume_section_map_updates, resume_section_map_updates_cleanup):
6140 Remove.
6141
6142 2018-06-18 Tom Tromey <tom@tromey.com>
6143
6144 * valprint.h (read_string): Update.
6145 * valprint.c (read_string): Change type of "buffer".
6146 (val_print_string): Update.
6147 * python/py-value.c (valpy_string): Update.
6148 * language.h (struct language_defn) <la_get_string>: Change
6149 type of "buffer".
6150 (default_get_string, c_get_string): Update.
6151 * language.c (default_get_string): Change type of "buffer".
6152 * guile/scm-value.c (gdbscm_value_to_string): Update.
6153 * c-lang.c (c_get_string): Change type of "buffer".
6154
6155 2018-06-18 Tom Tromey <tom@tromey.com>
6156
6157 * ser-mingw.c (struct pipe_state_destroyer): New.
6158 (pipe_state_up): New typedef.
6159 (cleanup_pipe_state): Remove.
6160 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6161
6162 2018-06-18 Tom Tromey <tom@tromey.com>
6163
6164 * rust-lang.h (rust_yyerror): Don't declare.
6165 * rust-lang.c (rust_language_defn): Update.
6166 * rust-exp.y (yyerror): Now static.
6167 * parse.c (parse_exp_in_context_1): Update.
6168 * p-lang.h (p_yyerror): Don't declare.
6169 * p-lang.c (p_language_defn): Update.
6170 * p-exp.y (yyerror): Now static.
6171 * opencl-lang.c (opencl_language_defn): Update.
6172 * objc-lang.c (objc_language_defn): Update.
6173 * m2-lang.h (m2_yyerror): Don't declare.
6174 * m2-lang.c (m2_language_defn): Update.
6175 * m2-exp.y (yyerror): Now static.
6176 * language.h (struct language_defn) <la_error>: Remove.
6177 * language.c (unk_lang_error): Remove.
6178 (unknown_language_defn, auto_language_defn): Remove.
6179 * go-lang.h (go_yyerror): Don't declare.
6180 * go-lang.c (go_language_defn): Update.
6181 * go-exp.y (yyerror): Now static.
6182 * f-lang.h (f_yyerror): Don't declare.
6183 * f-lang.c (f_language_defn): Update.
6184 * f-exp.y (yyerror): Now static.
6185 * d-lang.h (d_yyerror): Don't declare.
6186 * d-lang.c (d_language_defn): Update.
6187 * d-exp.y (yyerror): Now static.
6188 * c-lang.h (c_yyerror): Don't declare.
6189 * c-lang.c (c_language_defn, cplus_language_defn)
6190 (asm_language_defn, minimal_language_defn): Update.
6191 * c-exp.y (yyerror): Now static.
6192 * ada-lang.h (ada_yyerror): Don't declare.
6193 * ada-lang.c (ada_language_defn): Update.
6194 * ada-exp.y (yyerror): Now static.
6195
6196 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6197
6198 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6199 (store_sveregs_to_thread): Likewise.
6200 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6201 (aarch64_linux_store_inferior_registers): Likewise.
6202 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6203 function.
6204 (aarch64_sve_regs_copy_to_regcache): Likewise.
6205 (aarch64_sve_regs_copy_from_regcache): Likewise.
6206 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6207 declaration.
6208 (aarch64_sve_regs_copy_to_regcache): Likewise.
6209 (aarch64_sve_regs_copy_from_regcache): Likewise.
6210 (sve_context): Structure from Linux headers.
6211 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6212 (SVE_SIG_ZREG_SIZE): Likewise.
6213 (SVE_SIG_PREG_SIZE): Likewise.
6214 (SVE_SIG_FFR_SIZE): Likewise.
6215 (SVE_SIG_REGS_OFFSET): Likewise.
6216 (SVE_SIG_ZREGS_OFFSET): Likewise.
6217 (SVE_SIG_ZREG_OFFSET): Likewise.
6218 (SVE_SIG_ZREGS_SIZE): Likewise.
6219 (SVE_SIG_PREGS_OFFSET): Likewise.
6220 (SVE_SIG_PREG_OFFSET): Likewise.
6221 (SVE_SIG_PREGS_SIZE): Likewise.
6222 (SVE_SIG_FFR_OFFSET): Likewise.
6223 (SVE_SIG_REGS_SIZE): Likewise.
6224 (SVE_SIG_CONTEXT_SIZE): Likewise.
6225 (SVE_PT_REGS_MASK): Likewise.
6226 (SVE_PT_REGS_FPSIMD): Likewise.
6227 (SVE_PT_REGS_SVE): Likewise.
6228 (SVE_PT_VL_INHERIT): Likewise.
6229 (SVE_PT_VL_ONEXEC): Likewise.
6230 (SVE_PT_REGS_OFFSET): Likewise.
6231 (SVE_PT_FPSIMD_OFFSET): Likewise.
6232 (SVE_PT_FPSIMD_SIZE): Likewise.
6233 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6234 (SVE_PT_SVE_PREG_SIZE): Likewise.
6235 (SVE_PT_SVE_FFR_SIZE): Likewise.
6236 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6237 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6238 (__SVE_SIG_TO_PT): Likewise.
6239 (SVE_PT_SVE_OFFSET): Likewise.
6240 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6241 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6242 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6243 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6244 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6245 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6246 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6247 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6248 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6249 (SVE_PT_SVE_SIZE): Likewise.
6250 (SVE_PT_SIZE): Likewise.
6251 (HAS_SVE_STATE): New define.
6252
6253 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6254
6255 * nat/aarch64-sve-linux-sigcontext.h: New file.
6256 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6257 new files.
6258 (SVE_VQ_MIN): Likewise.
6259 (SVE_VQ_MAX): Likewise.
6260 (SVE_VL_MIN): Likewise.
6261 (SVE_VL_MAX): Likewise.
6262 (SVE_NUM_ZREGS): Likewise.
6263 (SVE_NUM_PREGS): Likewise.
6264 (sve_vl_valid): Likewise.
6265 (struct user_sve_header): Likewise.
6266
6267 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6268 Richard Bunt <Richard.Bunt@arm.com>
6269
6270 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6271 was requested by GDB.
6272
6273 2018-06-15 Tom de Vries <tdevries@suse.de>
6274
6275 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6276
6277 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6278
6279 * gnulib/update-gnulib.sh: Print expected versions of
6280 autoconf/aclocal.
6281
6282 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6283
6284 * arch-utils.c (default_type_align): Use type_length_units.
6285 * gdbtypes.c (type_align): Use type_length_units.
6286
6287 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6288
6289 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6290 of 'define' command.
6291
6292 2018-06-14 Tom de Vries <tdevries@suse.de>
6293
6294 PR cli/22573
6295 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6296 get_no_prettyformat_print_options.
6297
6298 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6299
6300 * sparc-nat.h: Include target.h.
6301 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6302 <fetch_registers>: Remove this argument in function call.
6303 <store_registers>: Remove this argument in function call, remove
6304 extra semicolon.
6305 <low_forget_process>: Call sparc64_forget_process instead of
6306 sparc_forget_process.
6307
6308 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6309
6310 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6311 (procfs_target::make_corefile_notes): Adjust to new
6312 target_read_alloc return type.
6313
6314 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6315 Stephen Roberts <stephen.roberts@arm.com>
6316
6317 PR gdb/22882
6318 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6319 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6320 Move should_notify_stop local into more inner scope.
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 (resume_1): Add call to mark_async_event_handler.
6327
6328 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6329
6330 * infrun.c (do_target_wait): Change old version of $pc printed.
6331
6332 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6333
6334 * dwarf2read.c (read_index_from_section): Rename to...
6335 (read_gdb_index_from_section): ... this, update all callers.
6336 (dwarf2_read_index): Rename to...
6337 (dwarf2_read_gdb_index): ... this, update all callers.
6338
6339 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6340
6341 * gdb/hppa-linux-nat.c
6342 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6343 hppa_linux_nat_target::fetch_registers.
6344
6345 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6346
6347 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6348 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6349 (AARCH64_DWARF_SVE_FFR): Likewise.
6350 (AARCH64_DWARF_SVE_P0): Likewise.
6351 (AARCH64_DWARF_SVE_Z0): Likewise.
6352
6353 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6354
6355 * common/common-regcache.h (raw_compare): New function.
6356 * regcache.c (regcache::raw_compare): Likewise.
6357 * regcache.h (regcache::raw_compare): New declaration.
6358
6359 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6360
6361 * common/common-regcache.h (reg_buffer_common): New structure.
6362 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6363 (reg_buffer::raw_supply): Likewise.
6364 (reg_buffer::raw_supply_integer): Likewise.
6365 (reg_buffer::raw_supply_zeroed): Likewise.
6366 (reg_buffer::raw_collect): Likewise.
6367 (reg_buffer::raw_collect_integer): Likewise.
6368 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6369 (reg_buffer::raw_supply): Likewise.
6370 (reg_buffer::raw_supply_integer): Likewise.
6371 (reg_buffer::raw_supply_zeroed): Likewise.
6372 (reg_buffer::raw_collect): Likewise.
6373 (reg_buffer::raw_collect_integer): Likewise.
6374
6375 2018-06-10 Tom Tromey <tom@tromey.com>
6376
6377 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6378 (class remote_state) <stop_reply_queue>: Now std::vector.
6379 (remote_state::~remote_state)
6380 (remote_target::stop_reply_queue_length): Update.
6381 (struct queue_iter_param, remove_child_of_pending_fork)
6382 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6383 (check_pending_event_prevents_wildcard_vcont_callback)
6384 (remove_stop_reply_for_inferior)
6385 (remove_stop_reply_of_remote_state)
6386 (remote_notif_remove_once_on_match)
6387 (stop_reply_match_ptid_and_ws)
6388 (remote_kill_child_of_pending_fork): Remove.
6389 (remote_target::remove_new_fork_children)
6390 (remote_target::check_pending_events_prevent_wildcard_vcont)
6391 (remote_target::discard_pending_stop_replies)
6392 (remote_target::discard_pending_stop_replies_in_queue)
6393 (remote_target::remote_notif_remove_queued_reply)
6394 (remote_target::queued_stop_reply)
6395 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6396 (remote_target::wait, remote_target::kill_new_fork_children)
6397 (remote_target::async): Update.
6398
6399 2018-06-10 Tom Tromey <tom@tromey.com>
6400
6401 * record-full.c (record_full_arch_list_cleanups): Remove.
6402 (record_full_message): Use try/catch.
6403 (record_full_wait_cleanups): Remove.
6404 (record_full_wait_1): Use try/catch.
6405 (record_full_restore): Likewise.
6406
6407 2018-06-10 Tom Tromey <tom@tromey.com>
6408
6409 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6410 declare VEC. Add constructor.
6411 <in_target_beneath>: Now bool.
6412 (record_full_breakpoints): Now a std::vector, static.
6413 (record_full_sync_record_breakpoints)
6414 (record_full_init_record_breakpoints)
6415 (record_full_target::insert_breakpoint)
6416 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6417
6418 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6419
6420 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6421 * serial.c (serial_interface_lookup): Remove struct keyword.
6422
6423 2018-06-10 Tom Tromey <tom@tromey.com>
6424
6425 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6426 method.
6427 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6428 a method.
6429 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6430 method.
6431 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6432 "beneath" as a method.
6433 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6434 Use "beneath" as a method.
6435
6436 2018-06-10 Tom Tromey <tom@tromey.com>
6437
6438 * tracefile.c (struct trace_file_writer_deleter): New.
6439 <operator()>: Rename from trace_file_writer_xfree.
6440 (trace_file_writer_up): New typedef.
6441 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6442
6443 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6444
6445 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6446 <m_registers, m_register_status>: Change type to
6447 std::unique_ptr.
6448 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6449 XCNEWVEC.
6450
6451 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6452
6453 * common/common-regcache.h (enum register_status): Add
6454 underlying type "signed char".
6455 * regcache.h (reg_buffer) <m_register_status>: Change type to
6456 register_status *.
6457 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6458 register_status instead of signed char.
6459 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6460 (reg_buffer::get_register_status): Remove cast.
6461 (readable_regcache::raw_read): Remove cast.
6462 (readable_regcache::cooked_read): Remove cast.
6463
6464 2018-06-09 Tom Tromey <tom@tromey.com>
6465
6466 * source.c (reverse_search_command, forward_search_command): Use
6467 scoped_fd.
6468
6469 2018-06-09 Tom Tromey <tom@tromey.com>
6470
6471 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6472 (serial_ops_list): Now static, std::vector.
6473 (serial_interface_lookup, serial_add_interface): Update.
6474
6475 2018-06-09 Tom Tromey <tom@tromey.com>
6476
6477 * dwarf2read.c (process_cu_includes): Update.
6478 (process_full_comp_unit): Update.
6479 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6480 std::vector.
6481
6482 2018-06-08 Paul Koning <paul_koning@dell.com>
6483
6484 PR gdb/23252
6485
6486 * python/python.c (do_start_initialization):
6487 Avoid call to internal Python API.
6488 (init__gdb_module): New function.
6489
6490 2018-06-08 Gary Benson <gbenson@redhat.com>
6491
6492 * linux-thread-db.c (valprint.h): New include.
6493 (struct check_thread_db_info): New structure.
6494 (check_thread_db_on_load, tdb_testinfo): New static globals.
6495 (check_thread_db, check_thread_db_callback): New functions.
6496 (try_thread_db_load_1): Run integrity checks if requested.
6497 (maintenance_check_libthread_db): New function.
6498 (_initialize_thread_db): Register "maint check libthread-db"
6499 and "maint set/show check-libthread-db".
6500 * NEWS: Mention the above new commands.
6501
6502 2018-06-08 Tom Tromey <tom@tromey.com>
6503
6504 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6505 now a method.
6506
6507 2018-06-08 Tom Tromey <tom@tromey.com>
6508
6509 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6510
6511 2018-06-08 Tom Tromey <tom@tromey.com>
6512
6513 * common/btrace-common.h (struct btrace_data): Add constructor,
6514 destructor, move assignment operator.
6515 <empty, clear, fini>: New methods.
6516 <format>: Initialize.
6517 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6518 (btrace_data_empty): Don't declare.
6519 * common/btrace-common.c (btrace_data_init): Remove.
6520 (btrace_data::fini): Rename from btrace_data_fini.
6521 (btrace_data::empty): Rename from btrace_data_empty.
6522 (btrace_data::clear): Rename from btrace_data_clear. Return
6523 bool.
6524 * btrace.h (make_cleanup_btrace_data): Don't declare.
6525 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6526 (parse_xml_btrace): Update.
6527 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6528 (maint_btrace_clear_packet_history_cmd): Update.
6529
6530 2018-06-07 Pedro Alves <palves@redhat.com>
6531
6532 * target.h (target_ops) <beneath>: Now a method. All references
6533 updated.
6534 (class target_stack): New.
6535 * target.c (g_target_stack): New.
6536 (g_current_top_target): Delete.
6537 (current_top_target): Get the top target out of g_target_stack.
6538 (target_stack::push, target_stack::unpush): New.
6539 (push_target, unpush_target): Reimplement.
6540 (target_is_pushed): Reimplement in terms of g_target_stack.
6541 (target_ops::beneath, target_stack::find_beneath): New.
6542
6543 2018-06-07 Pedro Alves <palves@redhat.com>
6544
6545 * target.h (find_target_beneath): Delete declaration.
6546 * target.c (find_target_beneath): Delete definition.
6547 * aix-thread.c: All callers of find_target_beneath adjusted to
6548 call target_ops::beneath instead.
6549 * bsd-uthread.c: Likewise.
6550 * linux-thread-db.c: Likewise.
6551 * ravenscar-thread.c: Likewise.
6552 * sol-thread.c: Likewise.
6553 * spu-multiarch.c: Likewise.
6554
6555 2018-06-07 Pedro Alves <palves@redhat.com>
6556
6557 * target.h (target_ops) <beneath>: Now a method. All references
6558 updated.
6559 (target_ops) <m_beneath>: New.
6560 * target.c (target_ops::beneath): New.
6561 * corelow.c: Adjust all references to target_ops::beneath.
6562 * linux-thread-db.c: Likewise.
6563 * make-target-delegates: Likewise.
6564 * record-btrace.c: Likewise.
6565 * record-full.c: Likewise.
6566 * remote.c: Likewise.
6567 * target.c: Likewise.
6568 * target-delegates.c: Regenerate.
6569
6570 2018-06-07 Pedro Alves <palves@redhat.com>
6571
6572 * target.h (target_stack): Delete.
6573 (current_top_target): Declare function.
6574 * target.c (target_stack): Delete.
6575 (g_current_top_target): New.
6576 (current_top_target): New function.
6577 * auxv.c: Use current_top_target instead of target_stack
6578 throughout.
6579 * avr-tdep.c: Likewise.
6580 * breakpoint.c: Likewise.
6581 * corefile.c: Likewise.
6582 * elfread.c: Likewise.
6583 * eval.c: Likewise.
6584 * exceptions.c: Likewise.
6585 * frame.c: Likewise.
6586 * gdbarch-selftests.c: Likewise.
6587 * gnu-v3-abi.c: Likewise.
6588 * ia64-tdep.c: Likewise.
6589 * ia64-vms-tdep.c: Likewise.
6590 * infcall.c: Likewise.
6591 * infcmd.c: Likewise.
6592 * infrun.c: Likewise.
6593 * linespec.c: Likewise.
6594 * linux-tdep.c: Likewise.
6595 * minsyms.c: Likewise.
6596 * ppc-linux-nat.c: Likewise.
6597 * ppc-linux-tdep.c: Likewise.
6598 * procfs.c: Likewise.
6599 * regcache.c: Likewise.
6600 * remote.c: Likewise.
6601 * rs6000-tdep.c: Likewise.
6602 * s390-linux-nat.c: Likewise.
6603 * s390-tdep.c: Likewise.
6604 * solib-aix.c: Likewise.
6605 * solib-darwin.c: Likewise.
6606 * solib-dsbt.c: Likewise.
6607 * solib-spu.c: Likewise.
6608 * solib-svr4.c: Likewise.
6609 * solib-target.c: Likewise.
6610 * sparc-tdep.c: Likewise.
6611 * sparc64-tdep.c: Likewise.
6612 * spu-tdep.c: Likewise.
6613 * symfile.c: Likewise.
6614 * symtab.c: Likewise.
6615 * target-descriptions.c: Likewise.
6616 * target-memory.c: Likewise.
6617 * target.c: Likewise.
6618 * target.h: Likewise.
6619 * tracefile-tfile.c: Likewise.
6620 * tracepoint.c: Likewise.
6621 * valops.c: Likewise.
6622 * valprint.c: Likewise.
6623 * value.c: Likewise.
6624 * windows-tdep.c: Likewise.
6625 * mi/mi-main.c: Likewise.
6626
6627 2018-06-07 Tom Tromey <tom@tromey.com>
6628
6629 * valprint.h (build_address_symbolic): Declare.
6630 * printcmd.c (print_address_symbolic): Update.
6631 (build_address_symbolic): Change "name" and "filename" to
6632 std::string.
6633 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6634 Update.
6635 * defs.h (build_address_symbolic): Remove declaration.
6636
6637 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6638
6639 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6640 (aarch64_vnv_type): Add function.
6641 (aarch64_pseudo_register_name): Add V regs for SVE.
6642 (aarch64_pseudo_register_type): Likewise.
6643 (aarch64_pseudo_register_reggroup_p): Likewise.
6644 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6645 (aarch64_pseudo_read_value): Add V regs for SVE.
6646 (aarch64_pseudo_write_2): Use V0 offset for SVE
6647 (aarch64_pseudo_write): Add V regs for SVE.
6648 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6649
6650 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6651
6652 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6653 (sve_vl_from_vq): Likewise.
6654
6655 2018-06-05 Tom Tromey <tom@tromey.com>
6656
6657 * cli/cli-cmds.c (show_version): Update.
6658 * top.c (print_gdb_version): Add "interactive" parameter.
6659 Update.
6660 * main.c (captured_main_1): Update.
6661 * top.h (print_gdb_version): Add "interactive" parameter and a
6662 comment.
6663
6664 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6665
6666 * common/enum-flags.h: Add trailing semicolon to example in
6667 comment.
6668
6669 2018-06-05 Tom Tromey <tom@tromey.com>
6670
6671 PR cli/12326:
6672 * NEWS: Add entry about pager.
6673 * utils.c (pagination_disabled_for_command): New global.
6674 (prompt_for_continue): Allow "c" response to prompt.
6675 (reinitialize_more_filter): Clear
6676 pagination_disabled_for_command.
6677 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6678
6679 2018-06-04 Tom Tromey <tom@tromey.com>
6680
6681 * ada-lang.h (ada_lookup_symbol_list): Update.
6682 * ada-lang.c (resolve_subexp): Update.
6683 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6684 parameter.
6685 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6686 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6687 results parameter to std::vector.
6688 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6689 Update.
6690 * ada-exp.y (block_lookup): Update.
6691 (select_possible_type_sym): Change type of syms. Remove nsyms
6692 parameter.
6693 (write_var_or_type, write_name_assoc): Update.
6694
6695 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6696
6697 * windows-nat.c (windows_nat_target::xfer_partial): Return
6698 TARGET_XFER_E_IO if we need to delegate to the target beneath
6699 but BENEATH is NULL.
6700
6701 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * Makefile.in (config.status): Add configure.nat as a
6704 dependency.
6705
6706 2018-06-04 Tom Tromey <tom@tromey.com>
6707
6708 * cp-name-parser.y (cpname_state): Add method declarations.
6709 (HANDLE_QUAL): Update.
6710 (cpname_state::d_grab, cpname_state::fill_comp)
6711 (cpname_state::make_operator, cpname_state::make_dtor)
6712 (cpname_state::make_builtin_type, cpname_state::make_name)
6713 (cpname_state::d_qualify, cpname_state::d_int_type)
6714 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6715 (%union): Move earlier.
6716
6717 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6718
6719 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6720
6721 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6722
6723 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6724 (aarch64_pseudo_write_1): Likewise.
6725 (aarch64_pseudo_read_value): Use helper.
6726 (aarch64_pseudo_write): Likewise.
6727
6728 2018-06-04 Pedro Alves <palves@redhat.com>
6729
6730 * darwin-nat.c (darwin_ops): Delete.
6731 (darwin_attach_pid): Use get_native_target.
6732
6733 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6734
6735 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6736 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6737
6738 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6739
6740 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6741 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6742 (aarch64_gdbarch_init): Check for SVE.
6743 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6744
6745 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6746
6747 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6748 * aarch64-tdep.h (aarch64_read_description): Likewise.
6749 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6750 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6751 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6752 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6753 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6754
6755 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6756
6757 * value.c (value_fetch_lazy_bitfield): New.
6758 (value_fetch_lazy_memory): New.
6759 (value_fetch_lazy_register): New.
6760 (value_fetch_lazy): Factor out to smaller functions.
6761
6762 2018-06-01 Tom Tromey <tom@tromey.com>
6763
6764 * cp-name-parser.y (backslashable, represented): Now const.
6765
6766 2018-06-01 Tom Tromey <tom@tromey.com>
6767
6768 * cp-name-parser.y: Include parser-defs.h.
6769 (parser_fprintf): Remove declaration.
6770
6771 2018-06-01 Tom Tromey <tom@tromey.com>
6772
6773 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6774 %parse-param.
6775 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6776 (global_result): Remove globals.
6777 (struct cpname_state): New.
6778 (yyparse): Don't declare.
6779 (yylex, yyerror): Move declarations after %union.
6780 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6781 (make_name): Add state parameter.
6782 Update all callers.
6783 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6784 parameter.
6785 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6786 Update.
6787 (yylex): Add lvalp, state parameters.
6788 (yyerror): Add state parameter.
6789 (cp_demangled_name_to_comp): Update.
6790
6791 2018-06-01 Tom Tromey <tom@tromey.com>
6792
6793 * cp-name-parser.y (parser_fprintf): Declare.
6794 (GDB_YY_REMAP_PREFIX): Define.
6795 Include yy-remap.h. Don't redefine yy* identifiers.
6796
6797 2018-06-01 Tom Tromey <tom@tromey.com>
6798
6799 * python/py-type.c (typy_legacy_template_argument): Update.
6800 * cp-support.h (cp_demangled_name_to_comp): Update.
6801 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6802 parameter to be a "std::string *".
6803 (main): Update.
6804
6805 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6806
6807 * ada-lex.l: Include "diagnostics.h" instead of
6808 "common/diagnostics.h".
6809 * unittests/environ-selftests.c: Likewise.
6810 * common/diagnostics.h: Moved to ../include.
6811
6812 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6813
6814 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6815 to language_mode_manual while calling breakpoint_re_set_one.
6816
6817 2018-06-01 Tom Tromey <tom@tromey.com>
6818
6819 * valops.c (value_cast_structs, destructor_name_p): Update.
6820 * symtab.c (gdb_mangle_name): Update.
6821 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6822 Update.
6823 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6824 (pascal_object_print_value_fields, pascal_object_print_value):
6825 Update.
6826 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6827 * linespec.c (find_methods): Update.
6828 * gdbtypes.h (type_name_no_tag): Remove.
6829 (type_name_or_error): Rename from type_name_no_tag_or_error.
6830 * gdbtypes.c (type_name_no_tag): Remove.
6831 (type_name_or_error): Rename from type_name_no_tag_or_error.
6832 (lookup_struct_elt_type, check_typedef): Update.
6833 * expprint.c (print_subexp_standard): Update.
6834 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6835 * d-namespace.c (d_lookup_nested_symbol): Update.
6836 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6837 (cp_print_class_member): Update.
6838 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6839 * completer.c (add_struct_fields): Update.
6840 * c-typeprint.c (cp_type_print_derivation_info)
6841 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6842 Update.
6843 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6844 (ada_prefer_type, ada_is_exception_sym): Update.
6845
6846 2018-06-01 Tom Tromey <tom@tromey.com>
6847
6848 * valops.c (enum_constant_from_type, value_namespace_elt)
6849 (value_maybe_namespace_elt): Update.
6850 * valarith.c (find_size_for_pointer_math): Update.
6851 * target-descriptions.c (make_gdb_type): Update.
6852 * symmisc.c (print_symbol): Update.
6853 * stabsread.c (define_symbol, read_type)
6854 (complain_about_struct_wipeout, add_undefined_type)
6855 (cleanup_undefined_types_1): Update.
6856 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6857 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6858 (rust_internal_print_type, rust_composite_type)
6859 (rust_evaluate_funcall, rust_evaluate_subexp)
6860 (rust_inclusive_range_type_p): Update.
6861 * python/py-type.c (typy_get_tag): Update.
6862 * p-typeprint.c (pascal_type_print_base): Update.
6863 * mdebugread.c (parse_symbol, parse_type): Update.
6864 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6865 Update.
6866 * guile/scm-type.c (gdbscm_type_tag): Update.
6867 * go-lang.c (sixg_string_p): Update.
6868 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6869 Update.
6870 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6871 (TYPE_TAG_NAME): Remove.
6872 * gdbtypes.c (type_name_no_tag): Simplify.
6873 (check_typedef, check_types_equal, recursive_dump_type)
6874 (copy_type_recursive, arch_composite_type): Update.
6875 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6876 in summary mode when needed.
6877 * eval.c (evaluate_funcall): Update.
6878 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6879 (process_structure_scope, read_enumeration_type)
6880 (read_namespace_type, read_module_type, determine_prefix): Update.
6881 * cp-support.c (inspect_type): Update.
6882 * coffread.c (process_coff_symbol, decode_base_type): Update.
6883 * c-varobj.c (c_is_path_expr_parent): Update.
6884 * c-typeprint.c (c_type_print_base_struct_union): Update.
6885 (c_type_print_base_1): Update. Print struct/class/union/enum in
6886 summary when using C language.
6887 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6888 (gen_maybe_namespace_elt): Update.
6889 * ada-lang.c (ada_type_name): Simplify.
6890 (empty_record, ada_template_to_fixed_record_type_1)
6891 (template_to_static_fixed_type)
6892 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6893
6894 2018-06-01 Tom Tromey <tom@tromey.com>
6895
6896 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6897 c_print_type.
6898 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6899 (c_print_type): Update.
6900 (c_print_type): New overload.
6901 (c_type_print_varspec_prefix, c_type_print_args)
6902 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6903 (c_type_print_base_struct_union, c_type_print_base_1)
6904 (cp_type_print_method_args): Add "language" parameter.
6905 (c_type_print_base): Update.
6906 * c-lang.h (c_print_type): Add new overload.
6907
6908 2018-06-01 Tom Tromey <tom@tromey.com>
6909
6910 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6911 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6912
6913 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6914
6915 * aarch64-tdep.c (aarch64_sve_register_names): New const
6916 var.
6917 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6918 (AARCH64_SVE_Z_REGS_NUM): New define.
6919 (AARCH64_SVE_P_REGS_NUM): Likewise.
6920 (AARCH64_SVE_NUM_REGS): Likewise.
6921
6922 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6923
6924 * nat/linux-ptrace.h [__alpha__]
6925 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6926 definitions.
6927
6928 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6929
6930 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6931 the endianness selected.
6932 * NEWS: Document `set endian auto' mode operation update.
6933
6934 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6935
6936 * Makefile.in: Add new header.
6937 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6938 (sve_vl_from_vg): Likewise.
6939 (sve_vq_from_vl): Likewise.
6940 (sve_vl_from_vq): Likewise.
6941 (sve_vq_from_vg): Likewise.
6942 (sve_vg_from_vq): Likewise.
6943 * configure.nat: Add new c file.
6944 * nat/aarch64-sve-linux-ptrace.c: New file.
6945 * nat/aarch64-sve-linux-ptrace.h: New file.
6946
6947 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6948
6949 * aarch64-linux-nat.c (aarch64_linux_read_description):
6950 Add parmeter zero.
6951 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6952 Likewise.
6953 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6954 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6955 (aarch64_gdbarch_init): Add parmeter zero.
6956 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6957 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6958 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6959 parmeter.
6960 * doc/gdb.texinfo: Describe SVE feature
6961 * features/aarch64-sve.c: New file.
6962
6963 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6964
6965 PR gdb/23210
6966 * gdbarch.sh (significant_addr_bit): Default to zero when
6967 not set by target architecture.
6968 * gdbarch.c: Re-generated.
6969 * utils.c (address_significant): Update.
6970
6971 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6972
6973 * stack.c (func_command): Remove trailing newline in call to error.
6974
6975 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6976
6977 * regcache.h (regcache_raw_collect): Remove, update callers to
6978 use regcache::raw_collect.
6979 * regcache.c (regcache_raw_collect): Remove.
6980
6981 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6982
6983 * regcache.h (regcache_raw_supply): Remove, update callers to
6984 use detached_regcache::raw_supply.
6985 * regcache.c (regcache_raw_supply): Remove.
6986
6987 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6988
6989 * regcache.h (regcache_cooked_write_part): Remove, update
6990 callers to use regcache::cooked_write_part.
6991 * regcache.c (regcache_cooked_write_part): Remove.
6992
6993 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6994
6995 * regcache.h (regcache_cooked_read_part): Remove, update callers
6996 to use readable_regcache::cooked_read_part.
6997 * regcache.c (regcache_cooked_read_part): Remove.
6998
6999 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7000
7001 * regcache.h (regcache_cooked_read_value): Remove, update
7002 callers to use readable_regcache::cooked_read_value.
7003 * regcache.c (regcache_cooked_read_value): Remove.
7004
7005 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7006
7007 * regcache.h (regcache_cooked_write): Remove, update callers to
7008 use regcache::cooked_write.
7009 * regcache.c (regcache_cooked_write): Remove.
7010
7011 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7012
7013 * regcache.h (regcache_invalidate): Remove, update callers to
7014 use detached_regcache::invalidate instead.
7015 * regcache.c (regcache_invalidate): Remove.
7016
7017 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7018
7019 * regcache.h (regcache_raw_write_part): Remove, update callers
7020 to use regcache::raw_write_part instead.
7021 * regcache.c (regcache_raw_write_part): Remove.
7022
7023 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7024
7025 * regcache.h (regcache_raw_read_part): Remove, update callers to
7026 use readable_regcache::raw_read_part instead.
7027 * regcache.c (regcache_raw_read_part): Remove.
7028
7029 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7030
7031 * regcache.h (regcache_cooked_read): Remove, update callers to
7032 use readable_regcache::cooked_read instead.
7033 * regcache.c (regcache_cooked_read): Remove.
7034
7035 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7036
7037 * regcache.h (regcache_raw_write): Remove, update callers to use
7038 regcache::raw_write instead.
7039 * regcache.c (regcache_raw_write): Remove.
7040
7041 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7042
7043 * regcache.h (regcache_raw_read): Remove, update callers to use
7044 readable_regcache::raw_read instead.
7045 * regcache.c (regcache_raw_read): Remove.
7046
7047 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7048
7049 * regcache.h (regcache_raw_update): Remove, update callers to
7050 use readable_regcache::raw_update instead.
7051 * regcache.c (regcache_raw_update): Remove.
7052
7053 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7054
7055 * regcache.h (regcache_register_status): Remove, update callers
7056 to use reg_buffer::get_register_status directly instead.
7057 * regcache.c (regcache_register_status): Remove.
7058
7059 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7060
7061 * regcache.h (regcache_get_ptid): Remove, update all callers to
7062 call regcache::ptid instead.
7063 * regcache.c (regcache_get_ptid): Remove.
7064
7065 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7066
7067 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7068
7069 2018-05-30 Pedro Alves <palves@redhat.com>
7070
7071 * common/common-exceptions.h (exception_rethrow): Use
7072 ATTRIBUTE_NORETURN.
7073
7074 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7075
7076 * breakpoint.c (print_solib_event, check_status_catch_solib):
7077 Remove struct keyword in range-based for loops.
7078 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7079 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7080 Likewise.
7081 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7082 Likewise.
7083 * symfile.c (addr_info_make_relative): Likewise.
7084 * thread.c (value_in_thread_stack_temporaries): Likewise.
7085
7086 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
7087
7088 PR gdb/16841
7089 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7090 aggregate type to get its real type before accessing it.
7091
7092 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
7093
7094 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7095 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7096 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7097 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7098 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7099 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7100 * printcmd.c (info_address_command): Likewise.
7101
7102 2018-05-29 Tom Tromey <tom@tromey.com>
7103
7104 * windows-nat.c (handle_exception): Update fall-through comment.
7105
7106 2018-05-29 Tom Tromey <tom@tromey.com>
7107
7108 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7109 (struct program_space) <added_solibs>: Now a std::vector.
7110 * breakpoint.c (print_solib_event): Update.
7111 (check_status_catch_solib): Update.
7112 * progspace.c (clear_program_space_solib_cache): Update.
7113 * solib.c (update_solib_list): Update.
7114
7115 2018-05-29 Tom Tromey <tom@tromey.com>
7116
7117 * python/py-type.c (typy_richcompare): Update.
7118 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7119 * gdbtypes.h (types_deeply_equal): Return bool.
7120 (types_equal): Likewise.
7121 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7122 declare VEC.
7123 (check_types_equal): Change worklist to std::vector. Return
7124 bool.
7125 (struct type_equality_entry): Add constructor.
7126 (compare_maybe_null_strings): Return bool.
7127 (check_types_worklist): Return bool. Change worklist to
7128 std::vector.
7129 (types_deeply_equal): Use std::vector.
7130 (types_equal): Return bool.
7131 (compare_maybe_null_strings): Simplify.
7132
7133 2018-05-29 Tom Tromey <tom@tromey.com>
7134
7135 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7136
7137 2018-05-29 Tom Tromey <tom@tromey.com>
7138
7139 * objc-lang.h: Don't include cp-support.h.
7140 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7141 declare VEC.
7142
7143 2018-05-27 Tom Tromey <tom@tromey.com>
7144
7145 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7146
7147 2018-05-25 Tom Tromey <tom@tromey.com>
7148
7149 * value.c (value::location): Initialize.
7150
7151 2018-05-25 Tom Tromey <tom@tromey.com>
7152
7153 * dbxread.c (init_bincl_list): Remove.
7154 (bincl_list): Now a std::vector.
7155 (bincls_allocated, next_bincl): Remove.
7156 (free_bincl_list, do_free_bincl_list_cleanup)
7157 (make_cleanup_free_bincl_list): Remove.
7158 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7159 unique_xmalloc_ptr.
7160 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7161 (struct header_file_location): Add constructor.
7162 (add_bincl_to_list): Remove.
7163
7164 2018-05-25 Tom Tromey <tom@tromey.com>
7165
7166 * tui/tui.c (tui_enable): Update.
7167 * mi/mi-interp.c (mi_interp::init): Update.
7168 * interps.h (class interp) <name>: New method.
7169 <m_name>: Rename from name.
7170 (~scoped_restore_interp): Update.
7171 * interps.c (interp::interp): Update.
7172 (interp_add, interp_set, interp_lookup_existing)
7173 (current_interp_named_p): Update.
7174
7175 2018-05-25 Tom Tromey <tom@tromey.com>
7176
7177 * interps.c (interp_name): Remove.
7178 * mi/mi-interp.c (mi_interp::init): Update.
7179 * interps.h (interp_name): Remove.
7180 (~scoped_restore_interp): Update.
7181 * tui/tui.c (tui_enable): Update.
7182
7183 2018-05-25 Tom Tromey <tom@tromey.com>
7184
7185 * utils.c (fputs_maybe_filtered): Update.
7186 * linespec.c (decode_line_full): Update.
7187 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7188 (mi_print_breakpoint_for_event, mi_solib_loaded)
7189 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7190 (mi_user_selected_context_changed): Update.
7191 * mi/mi-main.c (mi_execute_command): Update.
7192 * cli/cli-script.c (execute_control_command): Update.
7193 * python/python.c (execute_gdb_command): Update.
7194 * solib.c (info_sharedlibrary_command): Update.
7195 * interps.c (interp_ui_out): Remove.
7196 * interps.h (interp_ui_out): Remove.
7197
7198 2018-05-25 Tom Tromey <tom@tromey.com>
7199
7200 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7201 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7202 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7203
7204 2018-05-25 Tom Tromey <tom@tromey.com>
7205
7206 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7207 * interps.c (interp_exec): Use scoped_restore.
7208
7209 2018-05-25 Tom Tromey <tom@tromey.com>
7210
7211 * remote.c (remote_target::remote_file_get): Use
7212 gdb::byte_vector.
7213 (remote_target::remote_file_put): Likewise.
7214
7215 2018-05-25 Tom Tromey <tom@tromey.com>
7216
7217 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7218 a std::string.
7219 (get_pe_section_index, add_pe_exported_sym): Update.
7220 (read_pe_exported_syms): Use gdb::def_vector.
7221
7222 2018-05-25 Tom Tromey <tom@tromey.com>
7223
7224 * frame.c (remove_prev_frame): Remove.
7225 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7226
7227 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7228
7229 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7230 Remove prototypes.
7231 * mips-linux-nat.c (supply_fpregset): Always call
7232 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7233 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7234 `mips_fill_fpregset'.
7235 * mips-linux-tdep.c (mips_supply_fpregset)
7236 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7237 (mips_fill_fpregset_wrapper): Remove functions.
7238 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7239 (mips_linux_fpregset): Remove variable.
7240 (mips_linux_iterate_over_regset_sections): Use
7241 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7242 (mips_linux_o32_sigframe_init): Remove comment.
7243
7244 2018-05-25 Pedro Alves <palves@redhat.com>
7245
7246 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7247 (struct readahead_cache, struct packet_reg, struct
7248 remote_arch_state, class remote_state): Move higher up in the
7249 file.
7250 (remote_target::m_remote_state): Now an object instead of a pointer.
7251 (remote_target::get_remote_state): Adjust.
7252
7253 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * stack.c (select_and_print_frame): Delete.
7256 (struct function_bounds): Move struct within function.
7257 (func_command): Most content moved into new function
7258 find_frame_for_function, use new function, print result, add
7259 function comment.
7260 (find_frame_for_function): New function, now returns a result.
7261
7262 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7263
7264 * stack.c (iterate_over_block_arg_vars): Fix comment.
7265 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7266
7267 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 PR gdb/23203
7270 * frame.c
7271 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7272 Define.
7273 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7274 Define.
7275 * frame.h (class scoped_restore_selected_frame): New class.
7276 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7277 of any exception, use scoped_restore_selected_frame to restore the
7278 frame instead.
7279
7280 2018-05-24 Pedro Alves <palves@redhat.com>
7281
7282 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7283 override.
7284
7285 2018-05-23 Tom Tromey <tom@tromey.com>
7286
7287 * complaints.c (struct complaints): Remove.
7288 (symfile_complaint_book): Remove.
7289 (series): New global.
7290 (complaint_internal): Update.
7291 (clear_complaints): Update.
7292
7293 2018-05-23 Tom Tromey <tom@tromey.com>
7294
7295 * complaints.c (counters): New global.
7296 (struct complain): Remove.
7297 (struct complaints) <root>: Remove.
7298 (complaint_sentinel): Remove.
7299 (symfile_complaint_book): Update.
7300 (find_complaint) Remove.
7301 (complaint_internal, clear_complaints): Update.
7302
7303 2018-05-23 Tom Tromey <tom@tromey.com>
7304
7305 * complaints.c (struct complain) <file, line>: Remove.
7306 (find_complaint): Remove file, line parameters.
7307 (complaint_internal): Update.
7308
7309 2018-05-23 Tom Tromey <tom@tromey.com>
7310
7311 * complaints.c (vcomplaint): Remove.
7312 (complaint_internal) Merge in contents of vcomplaint.
7313
7314 2018-05-23 Tom Tromey <tom@tromey.com>
7315
7316 * complaints.c (struct complaints) <explanation>: Remove.
7317 (symfile_explanations): Remove.
7318 (symfile_complaint_book): Update.
7319 (vcomplaint): Update.
7320 (struct explanation): Remove.
7321
7322 2018-05-23 Tom Tromey <tom@tromey.com>
7323
7324 * complaints.c (symfile_complaints): Remove.
7325 (complaint_internal): Remove "complaints" parameter.
7326 (clear_complaints, vcomplaint): Remove "c" parameter.
7327 (get_complaints): Remove.
7328 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7329 (dwarf2_debug_line_missing_file_complaint)
7330 (dwarf2_debug_line_missing_end_sequence_complaint)
7331 (dwarf2_complex_location_expr_complaint)
7332 (dwarf2_const_value_length_mismatch_complaint)
7333 (dwarf2_section_buffer_overflow_complaint)
7334 (dwarf2_macro_malformed_definition_complaint)
7335 (dwarf2_invalid_attrib_class_complaint)
7336 (create_addrmap_from_index, dw2_symtab_iter_next)
7337 (dw2_expand_marked_cus)
7338 (dw2_debug_names_iterator::find_vec_in_debug_names)
7339 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7340 (create_debug_type_hash_table, init_cutu_and_read_dies)
7341 (partial_die_parent_scope, add_partial_enumeration)
7342 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7343 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7344 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7345 (create_cus_hash_table, create_dwp_hash_table)
7346 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7347 (dwarf2_rnglists_process, dwarf2_ranges_process)
7348 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7349 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7350 (handle_struct_member_die, process_structure_scope)
7351 (read_array_type, read_common_block, read_module_type)
7352 (read_tag_pointer_type, read_typedef, read_base_type)
7353 (read_subrange_type, load_partial_dies, partial_die_info::read)
7354 (partial_die_info::read, partial_die_info::read)
7355 (partial_die_info::read, read_checked_initial_length_and_offset)
7356 (dwarf2_string_attr, read_formatted_entries)
7357 (dwarf_decode_line_header)
7358 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7359 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7360 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7361 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7362 (get_signatured_type, get_DW_AT_signature_type)
7363 (decode_locdesc, file_file_name, consume_improper_spaces)
7364 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7365 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7366 (dwarf2_symbol_mark_computed, set_die_type)
7367 (read_attribute_value): Update.
7368 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7369 Update.
7370 * dbxread.c (unknown_symtype_complaint)
7371 (lbrac_mismatch_complaint, repeated_header_complaint)
7372 (set_namestring, function_outside_compilation_unit_complaint)
7373 (read_dbx_symtab, process_one_symbol): Update.
7374 * gdbtypes.c (stub_noname_complaint): Update.
7375 * windows-nat.c (handle_unload_dll): Update.
7376 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7377 (decode_base_type): Update.
7378 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7379 (eb_complaint, record_include_begin, record_include_end)
7380 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7381 (process_xcoff_symbol, read_symbol)
7382 (function_outside_compilation_unit_complaint)
7383 (scan_xcoff_symtab): Update.
7384 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7385 * buildsym.c (finish_block_internal, make_blockvector)
7386 (end_symtab_get_static_block, augment_type_symtab): Update.
7387 * dtrace-probe.c (dtrace_process_dof)
7388 (dtrace_static_probe_ops::get_probes): Update.
7389 * complaints.h (struct complaint): Don't declare.
7390 (symfile_complaints): Remove.
7391 (complaint_internal): Remove "complaints" parameter.
7392 (complaint): Likewise.
7393 (clear_complaints): Likewise.
7394 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7395 (reread_symbols): Update.
7396 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7397 (dwarf2_frame_cache, decode_frame_entry): Update.
7398 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7399 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7400 (info_selectors_command): Update.
7401 * macrotab.c (macro_include, check_for_redefinition)
7402 (macro_undef): Update.
7403 * objfiles.c (filter_overlapping_sections): Update.
7404 * stabsread.c (invalid_cpp_abbrev_complaint)
7405 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7406 (define_symbol, error_type, read_type, rs6000_builtin_type)
7407 (stabs_method_name_from_physname, read_member_functions)
7408 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7409 (attach_fields_to_type, complain_about_struct_wipeout)
7410 (read_range_type, read_args, common_block_start)
7411 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7412 Update.
7413 * mdebugread.c (index_complaint, unknown_ext_complaint)
7414 (basic_type_complaint, bad_tag_guess_complaint)
7415 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7416 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7417 (parse_procedure, parse_lines)
7418 (function_outside_compilation_unit_complaint)
7419 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7420 (bad_tag_guess_complaint, reg_value_complaint): Update.
7421 * cp-support.c (demangled_name_complaint): Update.
7422 * macroscope.c (sal_macro_scope): Update.
7423 * dwarf-index-write.c (class debug_names): Update.
7424
7425 2018-05-23 Tom Tromey <tom@tromey.com>
7426
7427 * complaints.c (clear_complaints): Remove "noisy" parameter.
7428 * complaints.h (clear_complaints): Update.
7429 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7430 (reread_symbols): Update.
7431
7432 2018-05-23 Tom Tromey <tom@tromey.com>
7433
7434 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7435 SUBSEQUENT_MESSAGE.
7436 (vcomplaint, clear_complaints): Update.
7437 (symfile_explanations): Remove some messages.
7438
7439 2018-05-23 Tom Tromey <tom@tromey.com>
7440
7441 * complaints.c (internal_complaint): Remove.
7442 * complaints.h (internal_complaint): Remove.
7443
7444 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7445
7446 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7447
7448 2018-05-22 Pedro Alves <palves@redhat.com>
7449
7450 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7451 (remote_fileio_badfd, remote_fileio_return_errno)
7452 (remote_fileio_return_success, remote_fileio_func_open)
7453 (remote_fileio_func_open, remote_fileio_func_close)
7454 (remote_fileio_func_read, remote_fileio_func_write)
7455 (remote_fileio_func_lseek, remote_fileio_func_rename)
7456 (remote_fileio_func_unlink, remote_fileio_func_stat)
7457 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7458 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7459 remote_target parameter.
7460 (remote_fio_func_map) <func>: Add remote_target parameter.
7461 (do_remote_fileio_request, remote_fileio_request):
7462 * remote-fileio.h (remote_fileio_request):
7463 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7464 remote_target parameter.
7465 (remote_notif_process, handle_notification): Adjust to pass down
7466 the remote.
7467 (remote_notif_state_allocate): Add remote_target parameter. Save
7468 it.
7469 * remote-notif.h (struct remote_target): Forward declare.
7470 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7471 remote_target parameter.
7472 (struct remote_notif_state) <remote>: New field.
7473 (remote_notif_ack, remote_notif_parse): Add remote_target
7474 parameter.
7475 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7476 remote_target parameter.
7477 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7478 (threads_listing_context, rmt_thread_action, protocol_feature)
7479 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7480 (packet_result, struct threads_listing_context, remote_state):
7481 Move definitions and declarations higher up.
7482 (remote_target) <~remote_target>: Declare.
7483 (remote_download_command_source, remote_file_put, remote_file_get)
7484 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7485 (remote_hostio_pread_vFile, remote_hostio_send_command)
7486 (remote_hostio_set_filesystem, remote_hostio_open)
7487 (remote_hostio_close, remote_hostio_unlink, remote_state)
7488 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7489 (get_memory_write_packet_size, get_memory_read_packet_size)
7490 (append_pending_thread_resumptions, remote_detach_1)
7491 (append_resumption, remote_resume_with_vcont)
7492 (add_current_inferior_and_thread, wait_ns, wait_as)
7493 (process_stop_reply, remote_notice_new_inferior)
7494 (process_initial_stop_replies, remote_add_thread)
7495 (btrace_sync_conf, remote_btrace_maybe_reopen)
7496 (remove_new_fork_children, kill_new_fork_children)
7497 (discard_pending_stop_replies, stop_reply_queue_length)
7498 (check_pending_events_prevent_wildcard_vcont)
7499 (discard_pending_stop_replies_in_queue, stop_reply)
7500 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7501 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7502 (remote_interrupt_as, remote_interrupt_ns)
7503 (remote_get_noisy_reply, remote_query_attached)
7504 (remote_add_inferior, remote_current_thread, get_current_thread)
7505 (set_thread, set_general_thread, set_continue_thread)
7506 (set_general_process, write_ptid)
7507 (remote_unpack_thread_info_response, remote_get_threadinfo)
7508 (parse_threadlist_response, remote_get_threadlist)
7509 (remote_threadlist_iterator, remote_get_threads_with_ql)
7510 (remote_get_threads_with_qxfer)
7511 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7512 (get_offsets, remote_check_symbols, remote_supported_packet)
7513 (remote_query_supported, remote_packet_size)
7514 (remote_serial_quit_handler, remote_detach_pid)
7515 (remote_vcont_probe, remote_resume_with_hc)
7516 (send_interrupt_sequence, interrupt_query)
7517 (remote_notif_get_pending_events, fetch_register_using_p)
7518 (send_g_packet, process_g_packet, fetch_registers_using_g)
7519 (store_register_using_P, store_registers_using_G)
7520 (set_remote_traceframe, check_binary_download)
7521 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7522 (remote_xfer_live_readonly_partial, remote_read_bytes)
7523 (remote_send_printf, remote_flash_write, readchar)
7524 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7525 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7526 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7527 (extended_remote_disable_randomization, extended_remote_run)
7528 (send_environment_packet, extended_remote_environment_support)
7529 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7530 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7531 (packet_command): Now methods of ...
7532 (remote_target): ... this class.
7533 (m_remote_state) <remote_target>: New field.
7534 (struct remote_state) <stop_reply_queue,
7535 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7536 fields.
7537 (remote_state::remote_state): Allocate stop_reply_queue.
7538 (remote_state): Delete global.
7539 (get_remote_state_raw): Delete.
7540 (remote_target::get_remote_state): Allocate m_remote_state on
7541 demand.
7542 (get_current_remote_target): New.
7543 (remote_ops, extended_remote_ops): Delete.
7544 (wait_forever_enabled_p, remote_async_inferior_event_token):
7545 Delete, moved to struct remote_state.
7546 (remote_target::close): Delete self. Destruction bits split to
7547 ...
7548 (remote_target::~remote_target): ... this.
7549 (show_memory_packet_size): Adjust to use
7550 get_current_remote_target.
7551 (struct protocol_feature) <func>: Add remote_target parameter.
7552 All callers adjusted.
7553 (curr_quit_handler_target): New.
7554 (remote_serial_quit_handler): Reimplement.
7555 (remote_target::open_1): Adjust to use get_current_remote_target.
7556 Heap-allocate remote_target/extended_remote_target instances.
7557 (vcont_builder::vcont_builder): Add remote_target parameter, and
7558 save it in m_remote. All callers adjusted.
7559 (vcont_builder::m_remote): New field.
7560 (vcont_builder::restart, vcont_builder::flush)
7561 (vcont_builder::push_action): Use it.
7562 (remote_target::commit_resume): Use it.
7563 (struct queue_iter_param) <remote>: New field.
7564 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7565 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7566 (check_pending_event_prevents_wildcard_vcont_callback)
7567 (remote_target::check_pending_events_prevent_wildcard_vcont)
7568 (remote_target::discard_pending_stop_replies)
7569 (remote_target::discard_pending_stop_replies_in_queue)
7570 (remote_target::remote_notif_remove_queued_reply): Fill in
7571 'remote' field.
7572 (remote_notif_get_pending_events): New.
7573 (remote_target::readchar, remote_target::remote_serial_write):
7574 Save/restore curr_quit_handler_target.
7575 (putpkt): New.
7576 (kill_new_fork_children): Fill in 'remote' field.
7577 (packet_command): Use get_current_remote_target, defer to
7578 remote_target method of same name.
7579 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7580 parameter, and save it in m_remote. All callers adjusted.
7581 (scoped_remote_fd::release): Use m_remote.
7582 (scoped_remote_fd::m_remote): New field.
7583 (remote_file_put, remote_file_get, remote_file_delete): Use
7584 get_current_remote_target, defer to remote_target method of same
7585 name.
7586 (remote_btrace_reset): Add remote_state paremeter. Update all
7587 callers.
7588 (remote_async_inferior_event_handler). Pass down 'data'.
7589 (remote_new_objfile): Use get_current_remote_target.
7590 (remote_target::vcont_r_supported): New.
7591 (set_range_stepping): Use get_current_remote_target and
7592 remote_target::vcont_r_supported.
7593 (_initialize_remote): Don't allocate 'remote_state' and
7594 'stop_reply_queue' globals.
7595 * remote.h (struct remote_target): Forward declare.
7596 (getpkt, putpkt, remote_notif_get_pending_events): Add
7597 'remote_target' parameter.
7598
7599 2018-05-22 Pedro Alves <palves@redhat.com>
7600
7601 * remote.c (vcont_builder): Now a class. Make all data members
7602 private.
7603 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7604 Declare methods.
7605 (vcont_builder_restart): Rename to ...
7606 (vcont_builder::restart): ... this.
7607 (vcont_builder_flush): Rename to ...
7608 (vcont_builder::flush): ... this.
7609 (vcont_builder_push_action): Rename to ...
7610 (vcont_builder::push_action): ... this.
7611 (remote_target::commit_resume): Adjust.
7612
7613 2018-05-22 Pedro Alves <palves@redhat.com>
7614
7615 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7616 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7617 (get_fixed_memory_packet_size): New.
7618 (get_memory_packet_size): Use it.
7619 (set_memory_packet_size): Don't override the config size with
7620 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7621 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7622 Don't refer to get_memory_packet_size if not connected to a remote
7623 target. Show "(default)" if configured size is 0.
7624
7625 2018-05-22 Pedro Alves <palves@redhat.com>
7626
7627 * remote.c (remote_target::mourn_inferior): Move
7628 discard_pending_stop_replies call here from ...
7629 (_initialize_remote): ... here.
7630
7631 2018-05-22 Pedro Alves <palves@redhat.com>
7632
7633 * remote.c (compare_section_command): Remove set_general_process
7634 call.
7635
7636 2018-05-22 Pedro Alves <palves@redhat.com>
7637
7638 * remote.c (struct packet_reg, struct remote_arch_state):
7639 Move higher up in the file.
7640 (remote_state) <m_arch_states>: Store remote_arch_state values
7641 instead of remote_arch_state pointers.
7642 (remote_state::get_remote_arch_state): Adjust.
7643
7644 2018-05-22 Pedro Alves <palves@redhat.com>
7645
7646 * remote.c: Include <unordered_map>.
7647 (remote_state): Now a class.
7648 (remote_state) <get_remote_arch_state>: Declare method.
7649 <get_remote_arch_state>: New field.
7650 (remote_arch_state) <remote_arch_state>: Declare ctor.
7651 <regs>: Now a unique_ptr.
7652 (remote_gdbarch_data_handle): Delete.
7653 (get_remote_arch_state): Delete.
7654 (remote_state::get_remote_arch_state): New.
7655 (get_remote_state): Adjust to call remote_state's
7656 get_remote_arch_state method.
7657 (init_remote_state): Delete, bits factored out to ...
7658 (remote_arch_state::remote_arch_state): ... this new method.
7659 (get_remote_packet_size, get_memory_packet_size)
7660 (process_g_packet, remote_target::fetch_registers)
7661 (remote_target::prepare_to_store, store_registers_using_G)
7662 (remote_target::store_registers, remote_target::get_trace_status):
7663 Adjust to call remote_state's method.
7664 (_initialize_remote): Remove reference to
7665 remote_gdbarch_data_handle.
7666
7667 2018-05-22 Pedro Alves <palves@redhat.com>
7668
7669 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7670 pread>: New method declarations.
7671 (remote_target::open_1): Adjust.
7672 (readahead_cache_invalidate): Rename to ...
7673 (readahead_cache::invalidate): ... this, and adjust to be a class
7674 method.
7675 (readahead_cache_invalidate_fd): Rename to ...
7676 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7677 class method.
7678 (remote_hostio_pwrite): Adjust.
7679 (remote_hostio_pread_from_cache): Rename to ...
7680 (readahead_cache::pread): ... this, and adjust to be a class
7681 method.
7682 (remote_hostio_close): Adjust.
7683
7684 2018-05-22 Pedro Alves <palves@redhat.com>
7685
7686 * remote.c (remote_hostio_close_cleanup): Delete.
7687 (class scoped_remote_fd): New.
7688 (remote_file_put, remote_file_get): Use it.
7689
7690 2018-05-22 Pedro Alves <palves@redhat.com>
7691
7692 (struct vCont_action_support): Use bool and initialize all fields.
7693 (struct readahead_cache): Initialize all fields.
7694 (remote_state): Use bool and initialize all fields.
7695 (remote_state::remote_state, remote_state::~remote_state): New.
7696 (new_remote_state): Delete.
7697 (_initialize_remote): Use new to allocate remote_state.
7698
7699 2018-05-22 Pedro Alves <palves@redhat.com>
7700 張俊芝 <zjz@zjz.name>
7701
7702 PR gdb/22973
7703 * c-exp.y: Include "c-support.h".
7704 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7705 of tolower. Use c_ident_is_alpha to scan names.
7706 * c-lang.c: Include "c-support.h".
7707 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7708 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7709 * c-support.h: New file, with bits factored out from ...
7710 * cp-name-parser.y: ... this file.
7711 Include "c-support.h".
7712 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7713 c-support.h and renamed.
7714 (symbol_end, yylex): Adjust.
7715
7716 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7717
7718 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7719 parameter type to CORE_ADDR.
7720 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7721 parameter type in declaration to CORE_ADDR.
7722 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7723 target_auxv_search to get AT_HWCAP and use the result to get the
7724 target description.
7725 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7726 to CORE_ADDR. Remove the cast of the return value to unsigned
7727 long. Fix error predicate of target_auxv_search.
7728 (ppc_linux_nat_target::read_description): Change the type of the
7729 hwcap variable to CORE_ADDR.
7730
7731 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7732
7733 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7734 if the size of fpscr is larger than 32 bits.
7735
7736 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7737
7738 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7739 (ppc32_linux_vsxregmap): New global.
7740 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7741 regcache_supply_regset, and regcache_collect_regset.
7742 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7743 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7744 (fetch_vsx_register, store_vsx_register): Remove.
7745 (fetch_vsx_registers): Add regno parameter. Get regset using
7746 ppc_linux_vsxregset. Use regset to supply registers.
7747 (store_vsx_registers): Add regno parameter. Get regset using
7748 ppc_linux_vsxregset. Use regset to collect registers.
7749 (fetch_register): Call fetch_vsx_registers instead of
7750 fetch_vsx_register.
7751 (store_register): Call store_vsx_registers instead of
7752 store_vsx_register.
7753 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7754 new regno parameter.
7755 (store_ppc_registers): Call store_vsx_registers with -1 for the
7756 new regno parameter.
7757 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7758 (ppc_collect_vsxregset): Remove.
7759
7760 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7761
7762 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7763 offset fields.
7764 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7765 for vector register offset fields.
7766 (ppc64_fbsd_reg_offsets): Likewise.
7767 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7768 to vector register offset fields.
7769 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7770 to vector register offset fields.
7771 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7772 vector register offset fields.
7773 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7774 initializers for vector register offset fields.
7775 (rs6000_aix64_reg_offsets): Likewise.
7776 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7777 (ppc_supply_vrregset): Remove.
7778 (ppc_collect_vrregset): Remove.
7779 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7780 (ppc_linux_vrregset) : New function.
7781 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7782 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7783 (ppc32_linux_vrregset): Remove.
7784 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7785 and use result instead of ppc32_linux_vrregset.
7786 (ppc32_linux_reg_offsets): Remove initializers for vector register
7787 offset fields.
7788 (ppc64_linux_reg_offsets): Likewise.
7789 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7790 * ppc-linux-nat.c: Include regset.h.
7791 (gdb_vrregset_t): Adjust comment to account for little-endian
7792 mode.
7793 (supply_vrregset, fill_vrregset): Remove.
7794 (fetch_altivec_register, store_altivec_register): Remove.
7795 (fetch_altivec_registers): Add regno parameter. Get regset using
7796 ppc_linux_vrregset. Use regset to supply registers.
7797 (store_altivec_registers): Add regno parameter. Get regset using
7798 ppc_linux_vrregset. Use regset to collect registers.
7799 (fetch_register): Call fetch_altivec_registers instead of
7800 fetch_altivec_register.
7801 (store_register): Call store_altivec_registers instead of
7802 store_altivec_register.
7803 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7804 the new regno parameter.
7805 (store_ppc_registers): Call store_altivec_registers with -1 for
7806 the new regno parameter.
7807
7808 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7809
7810 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7811 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7812 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7813 (gdb_vrregset_t): Change array type size to
7814 PPC_LINUX_SIZEOF_VRREGSET.
7815 (gdb_vsxregset_t): Change array type size to
7816 PPC_LINUX_SIZEOF_VSXREGSET.
7817 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7818 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7819 PPC_LINUX_SIZEOF_VSXREGSET.
7820
7821 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7822
7823 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7824 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7825 nat/ppc-linux.c.
7826 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7827 ppc_linux_target_wordsize with tid.
7828 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7829 wordsize with tid.
7830 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7831 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7832 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7833 tid parameter. Remove static specifier.
7834 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7835 (ppc_linux_target_wordsize): New declaration.
7836
7837 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7838
7839 * arch/ppc-linux-common.c: New file.
7840 * arch/ppc-linux-common.h: New file.
7841 * arch/ppc-linux-tdesc.h: New file.
7842 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7843 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7844 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7845 arch/ppc-linux-tdesc.h.
7846 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7847 arch/ppc-linux-tdesc.h.
7848 (ppc_linux_nat_target::read_description): Remove target
7849 description matching code. Fill a ppc_linux_features struct and
7850 call ppc_linux_match_description with it. Move comment about ISA
7851 2.05 to ppc-linux-common.c.
7852 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7853 arch/ppc-linux-tdesc.h.
7854 (ppc_linux_core_read_description): Remove target description
7855 matching code. Fill a ppc_linux_features struct and call
7856 ppc_linux_match_description with it.
7857 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7858 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7859 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7860 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7861 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7862 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7863 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7864 (tdesc_powerpc_e500l): Remove.
7865
7866 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7867
7868 * ada-lang.c (catch_assert_command): Pass empty string instead
7869 of NULL for excep_string argument.
7870
7871 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7872
7873 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7874 the width of the requested register exceeds the width of the
7875 `ptrace' data type.
7876
7877 2018-05-21 Tom Tromey <tom@tromey.com>
7878
7879 * printcmd.c (output_command): Remove.
7880 (output_command_const): Rename to output_command.
7881 * valprint.h (output_command): Rename from output_command_const.
7882 * tracepoint.c (trace_dump_actions): Call output_command.
7883
7884 2018-05-21 Tom Tromey <tom@tromey.com>
7885
7886 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7887 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7888 * ada-lang.h (create_ada_exception_catchpoint): Update.
7889 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7890 std::string.
7891 (create_excep_cond_exprs, ~ada_catchpoint)
7892 (should_stop_exception, print_one_exception)
7893 (print_mention_exception, print_recreate_exception): Update.
7894 (ada_get_next_arg): Remove.
7895 (catch_ada_exception_command_split): Use std::string. Change type
7896 of "excep_string", "cond_string".
7897 (catch_ada_exception_command): Update.
7898 (create_ada_exception_catchpoint): Change type of excep_string.
7899 (ada_exception_sal): Remove excep_string parameter.
7900 (~ada_catchpoint): Remove.
7901
7902 2018-05-21 Tom Tromey <tom@tromey.com>
7903
7904 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7905 cleanup.
7906
7907 2018-05-21 Tom Tromey <tom@tromey.com>
7908
7909 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7910 Return unique_xmalloc_ptr.
7911 (print_it_exception): Update.
7912
7913 2018-05-21 Tom Tromey <tom@tromey.com>
7914
7915 * tracepoint.c (trace_dump_actions): Use std::string.
7916
7917 2018-05-21 Tom Tromey <tom@tromey.com>
7918
7919 * symfile.c (reread_symbols): Use std::string for original_name.
7920
7921 2018-05-21 Tom Tromey <tom@tromey.com>
7922
7923 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7924 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7925 constructor.
7926
7927 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7928
7929 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7930 instance to...
7931 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7932 * objfiles.c (get_objfile_bfd_data): Allocate
7933 objfile_per_bfd_storage with obstack_new when allocating on
7934 obstack.
7935
7936 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7937
7938 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7939 OBSTACK_ZALLOC.
7940 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7941 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7942 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7943 (add_pending): Likewise.
7944 (parse_symbol): Likewise.
7945 (parse_partial_symbols): Likewise.
7946 (psymtab_to_symtab_1): Likewise.
7947 (new_psymtab): Likewise.
7948 (elfmdebug_build_psymtabs): Likewise.
7949 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7950 * objfiles.c (get_objfile_bfd_data): Likewise.
7951 (objfile_register_static_link): Likewise.
7952 * psymtab.c (allocate_psymtab): Likewise.
7953 * stabsread.c (read_member_functions): Likewise.
7954 * xcoffread.c (xcoff_end_psymtab): Likewise.
7955
7956 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7957
7958 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7959 compiler supports std::is_trivially_constructible.
7960 * common/poison.h: Include obstack.h.
7961 (IsMallocable): Define to is_trivially_constructible if the
7962 compiler supports it, define to true_type otherwise.
7963 (xobnew): New.
7964 (XOBNEW): Redefine.
7965 (xobnewvec): New.
7966 (XOBNEWVEC): Redefine.
7967 * gdb_obstack.h (obstack_zalloc): New.
7968 (OBSTACK_ZALLOC): Redefine.
7969 (obstack_calloc): New.
7970 (OBSTACK_CALLOC): Redefine.
7971 (obstack_new): New.
7972 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7973 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7974 gdbarch.c.
7975 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7976 obstack_calloc/obstack_zalloc.
7977 (gdbarch_obstack_zalloc): Remove.
7978 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7979
7980 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7981
7982 * stack.c (backtrace_command_1): Remove useless variable int i.
7983
7984 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7985
7986 * stack.c (print_frame_info): Fix comment.
7987
7988 2018-05-18 Tom Tromey <tom@tromey.com>
7989
7990 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7991 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7992 (~dwarf2_per_objfile): Update
7993 (dwarf2_get_dwz_file): Use new.
7994 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7995 unique_ptr.
7996
7997 2018-05-18 Tom Tromey <tom@tromey.com>
7998
7999 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8000 unique_ptr.
8001 * dwarf2read.c (struct dwp_file): Add constructor and
8002 initializers.
8003 (open_and_init_dwp_file): Return a unique_ptr.
8004 (dwarf2_per_objfile, create_dwp_hash_table)
8005 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8006 (lookup_dwo_unit_in_dwp): Update.
8007 (open_and_init_dwp_file, get_dwp_file): Update.
8008
8009 2018-05-18 Tom Tromey <tom@tromey.com>
8010
8011 * dwarf2read.c (dwarf2_per_objfile): Update.
8012 (struct mapped_index): Add initializers.
8013 (dwarf2_read_index): Use new.
8014 (dw2_symtab_iter_init): Update.
8015 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8016 unique_ptr.
8017
8018 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8019
8020 * dwarf2read.c (mapped_index) <total_size>: Remove.
8021
8022 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8023
8024 * unittests/format_pieces-selftests.c (test_format_specifier):
8025 Add ARI comments.
8026
8027 2018-05-18 Tom Tromey <tom@tromey.com>
8028
8029 * c-typeprint.c (maybe_print_hole): New function.
8030 (c_print_type_struct_field_offset): Update.
8031 (c_type_print_base_struct_union): Call maybe_print_hole.
8032
8033 2018-05-17 Keith Seitz <keiths@redhat.com>
8034
8035 * breakpoint.c (build_bpstat_chain): New function, moved from
8036 bpstat_stop_status.
8037 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8038 If no stop chain is passed, call build_bpstat_chain to build it.
8039 * breakpoint.h (build_bpstat_chain): Declare.
8040 (bpstat_stop_status): Move documentation here from breakpoint.c.
8041 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8042 build the stop chain and pass it to skip_inline_frames.
8043 Pass this stop chain to bpstat_stop_status.
8044 * inline-frame.c: Include breakpoint.h.
8045 (stopped_by_user_bp_inline_frame): New function.
8046 (skip_inline_frames): Add parameter `stop_chain'.
8047 Move documention to inline-frame.h.
8048 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8049 whether the frame should be elided.
8050 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8051 Add moved documentation and update for new parameter.
8052
8053 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8054
8055 PR cli/14975
8056 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8057 unittests/format_pieces-selftests.c.
8058 * common/format.h (format_piece) <operator==>: New.
8059 (format_pieces) <operator[]>: Remove.
8060 * common/format.c (format_pieces::format_pieces): Handle \e.
8061 * unittests/format_pieces-selftests.c: New.
8062
8063 2018-05-17 Tom Tromey <tom@tromey.com>
8064
8065 PR symtab/23010:
8066 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8067 (dw2_instantiate_symtab): Add skip_partial parameter.
8068 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8069 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8070 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8071 (dw2_expand_symtabs_matching_one)
8072 (dw2_find_pc_sect_compunit_symtab)
8073 (dw2_debug_names_lookup_symbol)
8074 (dw2_debug_names_expand_symtabs_for_function): Update.
8075 (init_cutu_and_read_dies): Add skip_partial parameter.
8076 (process_psymtab_comp_unit, build_type_psymtabs_1)
8077 (process_skeletonless_type_unit, load_partial_comp_unit)
8078 (psymtab_to_symtab_1): Update.
8079 (load_full_comp_unit): Add skip_partial parameter.
8080 (process_imported_unit_die, dwarf2_read_addr_index)
8081 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8082 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8083 (read_signatured_type): Update.
8084
8085 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8086
8087 * value.c (release_value): Remove unused variable.
8088 (record_latest_value): Likewise.
8089 (access_value_history): Likewise.
8090 (preserve_values): Likewise.
8091
8092 2018-05-17 Tom Tromey <tom@tromey.com>
8093
8094 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8095 Initialize.
8096
8097 2018-05-16 Maciej W. Rozycki <macro@mips.com>
8098
8099 PR gdb/22286
8100 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8101 Also handle registers whose width is not a multiple of
8102 PTRACE_TYPE_RET.
8103 (linux_nat_trad_target::store_register): Likewise.
8104
8105 2018-05-16 Tom Tromey <tom@tromey.com>
8106
8107 * gdbcore.h (core_bfd): Redefine.
8108 * corelow.c (core_target::close): Update.
8109 (core_target_open): Update.
8110 * progspace.h (struct program_space) <cbfd>: Now a
8111 gdb_bfd_ref_ptr.
8112
8113 2018-05-16 Tom Tromey <tom@tromey.com>
8114
8115 PR cli/19551:
8116 * symfile-add-flags.h (enum symfile_add_flags)
8117 <SYMFILE_NOT_FILENAME>: New constant.
8118 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8119 objfile name from BFD.
8120 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8121 * minidebug.c (find_separate_debug_file_in_section): Put
8122 ".gnu_debugdata" into BFD's file name.
8123
8124 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8125
8126 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8127 Remove.
8128
8129 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8130
8131 PR binutils/21446
8132 * aarch64-tdep.c (aarch64_analyze_prologue,
8133 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8134 Indicate not interested in errors.
8135
8136 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8137
8138 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8139 Supply the MIPS_ZERO_REGNUM register.
8140
8141 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8142
8143 * mips-tdep.c (mask_address_var): Make variable static.
8144
8145 2018-05-14 Tom Tromey <tom@tromey.com>
8146
8147 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8148
8149 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8150
8151 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8152 FXSAVE_ADDR for the mxcsr register.
8153
8154 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8155
8156 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8157
8158 2018-05-11 Pedro Alves <palves@redhat.com>
8159
8160 * corelow.c (core_target) <core_target>: No longer inline.
8161 Initialize m_core_gdbarch, m_core_vec and build the section table
8162 here.
8163 <~core_target>: New.
8164 <core_gdbarch, get_core_register_section>: New methods.
8165 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8166 factored out from ...
8167 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8168 (core_ops): Delete.
8169 (sniff_core_bfd): Add gdbarch parameter.
8170 (core_close): Delete, merged into ...
8171 (core_target::close): ... here. Delete self.
8172 (core_close_cleanup): Delete.
8173 (core_target_open): Allocate a core_target on the heap. Use a
8174 unique_ptr instead of a cleanup. Bits moved into the core_target
8175 ctor. Adjust to use core_target methods instead of globals.
8176 (get_core_register_section): Rename to ...
8177 (core_target::get_core_register_section): ... this and adjust.
8178 (struct get_core_registers_cb_data): New.
8179 (get_core_registers_cb): Use it. Use bool.
8180 (core_target::fetch_registers, core_target::files_info)
8181 (core_target::xfer_partial, core_target::read_description)
8182 (core_target::pid_to, core_target::thread_name): Adjust to
8183 reference class fields instead of globals.
8184 * target.h (struct target_ops_deleter, target_ops_up): New.
8185
8186 2018-05-11 Pedro Alves <palves@redhat.com>
8187
8188 * corefile.c (core_file_command): Move to corelow.c.
8189 * corelow.c (the_core_target): Delete.
8190 (core_file_command): Moved from corefile.c. Check exec_bfd
8191 instead of the_core_target. Use target_detach instead of calling
8192 into the_core_target directly.
8193 (maybe_say_no_core_file_now): New.
8194 (core_target::detach): Use it.
8195 (_initialize_corelow): Remove references to the_core_target.
8196 * gdbcore.h (the_core_target): Delete.
8197
8198 2018-05-11 Tom Tromey <tromey@redhat.com>
8199 Pedro Alves <palves@redhat.com>
8200
8201 * corefile.c (core_bfd): Remove.
8202 * gdbcore.h (core_bfd): Now a macro.
8203 * progspace.h (struct program_space) <cbfd>: New field.
8204
8205 2018-05-11 Tom Tromey <tom@tromey.com>
8206
8207 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8208 gdb::def_vector.
8209
8210 2018-05-10 Tom Tromey <tom@tromey.com>
8211
8212 * configure: Rebuild.
8213 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8214
8215 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8216
8217 PR server/23158:
8218 * regformats/regdat.sh: Adjust script, following the addition
8219 of the new expedite_regs parameter to init_target_desc.
8220
8221 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8222
8223 PR gdb/23127
8224 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8225 set_gdbarch_significant_addr_bit.
8226 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8227 set_gdbarch_significant_addr_bit.
8228 * utils.c (address_significant): Update to sign extend addr.
8229
8230 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8231
8232 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8233 (xtensa_linux_init_abi): Limit tdep->num_regs by
8234 tdep->num_nopriv_regs.
8235 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8236 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8237 not initialized.
8238
8239 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8240
8241 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8242
8243 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8246 (I387_MXCSR_INIT_VAL): New constant.
8247 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8248 buffer if it was supplied by the inferior.
8249 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8250 (i387_xsave_get_clear_bv): New function.
8251 (i387_supply_xsave): Only read x87 control registers from the
8252 xsave buffer if the feature is enabled, and the state will have
8253 been written, otherwise, provide a suitable default.
8254 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8255 including x87 control registers. Update control registers if they
8256 have changed from the default value, and mark features as enabled
8257 as required.
8258 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8259
8260 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8261
8262 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8263
8264 2018-05-07 Tom Tromey <tom@tromey.com>
8265
8266 * configure: Rebuild.
8267 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8268
8269 2018-05-07 Tom Tromey <tom@tromey.com>
8270
8271 PR tdep/20362:
8272 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8273 bit. Use correct value for VDIV.
8274
8275 2018-05-04 Tom Tromey <tom@tromey.com>
8276
8277 * configure: Rebuild.
8278 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8279
8280 2018-05-04 Tom Tromey <tom@tromey.com>
8281
8282 * linux-record.c (record_linux_system_call) <case
8283 RECORD_SYS_RECVFROM>: Add "break".
8284
8285 2018-05-04 Tom Tromey <tom@tromey.com>
8286
8287 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8288 Add missing "break".
8289 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8290 Add missing "break".
8291
8292 2018-05-04 Tom Tromey <tom@tromey.com>
8293
8294 * rs6000-tdep.c (ppc_process_record_op4)
8295 (ppc_process_record_op63): Add fall-through comment.
8296
8297 2018-05-04 Tom Tromey <tom@tromey.com>
8298
8299 * i386-tdep.c (i386_process_record): Add fall-through comment.
8300
8301 2018-05-04 Tom Tromey <tom@tromey.com>
8302
8303 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8304 comment.
8305
8306 2018-05-04 Tom Tromey <tom@tromey.com>
8307
8308 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8309 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8310 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8311 comment.
8312 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8313 comment.
8314 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8315 comment.
8316
8317 2018-05-04 Tom Tromey <tom@tromey.com>
8318
8319 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8320
8321 2018-05-04 Tom Tromey <tom@tromey.com>
8322
8323 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8324 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8325 * symfile.c (section_is_mapped): Fix fall-through comment.
8326 * stabsread.c (define_symbol, read_member_functions): Fix
8327 fall-through comment.
8328 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8329 comment.
8330 * remote.c (remote_wait_as): Fix fall-through comment.
8331 * p-exp.y (yylex): Fix fall-through comment.
8332 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8333 comment.
8334 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8335 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8336 * jv-exp.y (yylex): Fix fall-through comment.
8337 * go-exp.y (lex_one_token): Fix fall-through comment.
8338 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8339 fall-through comment.
8340 * f-exp.y (yylex): Fix fall-through comment.
8341 * dwarf2read.c (process_die): Fix fall-through comments.
8342 * dbxread.c (process_one_symbol): Fix fall-through comment.
8343 * d-exp.y (lex_one_token): Fix fall-through comment.
8344 * cp-name-parser.y (yylex): Fix fall-through comment.
8345 * coffread.c (coff_symtab_read): Fix fall-through comment.
8346 * c-exp.y (lex_one_token): Fix fall-through comment.
8347 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8348 comment.
8349 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8350 comment.
8351
8352 2018-05-04 Tom Tromey <tom@tromey.com>
8353
8354 PR python/22730:
8355 * NEWS: Mention gdb.execute change.
8356 * gdbcmd.h (execute_control_command): Don't declare.
8357 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8358 execute_control_commands, execute_control_commands_to_string.
8359 * cli/cli-script.h (execute_control_commands)
8360 (execute_control_commands_to_string): Declare.
8361 (execute_control_command): Add from_tty parameter.
8362 * cli/cli-script.c (execute_control_commands)
8363 (execute_control_commands_to_string): New functions.
8364 (execute_user_command): Use execute_control_commands.
8365 (execute_control_command_1): Add "from_tty" parameter. Update.
8366 (execute_control_command): Likewise.
8367
8368 2018-05-04 Tom Tromey <tom@tromey.com>
8369
8370 PR python/22731:
8371 * NEWS: Mention that breakpoint commands are writable.
8372 * python/py-breakpoint.c (bppy_set_commands): New function.
8373 (breakpoint_object_getset) <"commands">: Use it.
8374
8375 2018-05-04 Tom Tromey <tom@tromey.com>
8376
8377 * tracepoint.c (actions_command): Update.
8378 * mi/mi-cmd-break.c (mi_command_line_array)
8379 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8380 (mi_read_next_line): Remove.
8381 (mi_cmd_break_commands): Update.
8382 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8383 function_view.
8384 * cli/cli-script.c (get_command_line): Update.
8385 (process_next_line): Use function_view. Constify.
8386 (recurse_read_control_structure, read_command_lines)
8387 (read_command_lines_1): Change argument types to function_view.
8388 (do_define_command, document_command): Update.
8389 * breakpoint.h (check_tracepoint_command): Don't declare.
8390 * breakpoint.c (check_tracepoint_command): Remove.
8391 (commands_command_1, create_tracepoint_from_upload): Update.
8392
8393 2018-05-04 Tom Tromey <tom@tromey.com>
8394
8395 PR gdb/11750:
8396 * cli/cli-script.h (enum command_control_type) <define_control>:
8397 New constant.
8398 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8399 (build_command_line, execute_control_command_1)
8400 (process_next_line): Likewise.
8401 (do_define_command): New function, extracted from define_command.
8402 (define_command): Use it.
8403
8404 2018-05-04 Tom Tromey <tom@tromey.com>
8405
8406 * tracepoint.c (actions_command): Update.
8407 * cli/cli-script.h (read_command_lines): Update.
8408 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8409 (MAX_TMPBUF): Remove define.
8410 (define_command): Use string_printf.
8411 (document_command): Likewise.
8412 * breakpoint.c (commands_command_1): Update.
8413
8414 2018-05-04 Tom Tromey <tom@tromey.com>
8415
8416 * top.c (execute_command): Update.
8417 * cli/cli-script.h (print_command_lines): Now varargs.
8418 * cli/cli-script.c (print_command_lines): Now varargs.
8419 (execute_control_command_1) <case while_control, case if_control>:
8420 Update.
8421
8422 2018-05-04 Tom Tromey <tom@tromey.com>
8423
8424 * tracepoint.c (all_tracepoint_actions): Rename from
8425 all_tracepoint_actions_and_cleanup. Change return type.
8426 (actions_command, encode_actions_1, encode_actions)
8427 (trace_dump_actions, tdump_command): Update.
8428 * remote.c (remote_download_command_source): Update.
8429 * python/python.c (gdbpy_eval_from_control_command)
8430 (python_command, python_interactive_command): Update.
8431 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8432 * guile/guile.c (guile_command)
8433 (gdbscm_eval_from_control_command, guile_command): Update.
8434 * compile/compile.c (compile_code_command)
8435 (compile_print_command, compile_to_object): Update.
8436 * cli/cli-script.h (struct command_lines_deleter): New.
8437 (counted_command_line): New typedef.
8438 (struct command_line): Add constructor, destructor.
8439 <body_list>: Remove.
8440 <body_list_0, body_list_1>: New members.
8441 (command_line_up): Remove typedef.
8442 (read_command_lines, read_command_lines_1, get_command_line):
8443 Update.
8444 (copy_command_lines): Don't declare.
8445 * cli/cli-script.c (build_command_line): Use "new".
8446 (get_command_line): Return counted_command_line.
8447 (print_command_lines, execute_user_command)
8448 (execute_control_command_1, while_command, if_command): Update.
8449 (realloc_body_list): Remove.
8450 (process_next_line, recurse_read_control_structure): Update.
8451 (read_command_lines, read_command_lines_1): Return counted_command_line.
8452 (free_command_lines): Use "delete".
8453 (copy_command_lines): Remove.
8454 (define_command, document_command, show_user_1): Update.
8455 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8456 a counted_command_line.
8457 * breakpoint.h (counted_command_line): Remove typedef.
8458 (breakpoint_set_commands): Update.
8459 * breakpoint.c (check_no_tracepoint_commands)
8460 (validate_commands_for_breakpoint): Update.
8461 (breakpoint_set_commands): Change commands to be a
8462 counted_command_line.
8463 (commands_command_1, update_dprintf_command_list)
8464 (create_tracepoint_from_upload): Update.
8465
8466 2018-05-04 Tom Tromey <tom@tromey.com>
8467
8468 * cli/cli-decode.h (cmd_list_element): New constructor.
8469 (~cmd_list_element): New destructor.
8470 (struct cmd_list_element): Add initializers.
8471 * cli/cli-decode.c (do_add_cmd): Use "new".
8472 (delete_cmd): Use "delete".
8473
8474 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8475 Pedro Alves <palves@redhat.com>
8476
8477 PR breakpoints/19806 and support for PR external/20207.
8478 * NEWS: Mention Aarch64 watchpoint improvements.
8479 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8480 watchpoints and PR external/20207 watchpoints.
8481 * nat/aarch64-linux-hw-point.c
8482 (kernel_supports_any_contiguous_range): New.
8483 (aarch64_watchpoint_offset): New.
8484 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8485 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8486 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8487 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8488 next_addr_orig_p. Support PR external/20207 watchpoints.
8489 (aarch64_downgrade_regs): New.
8490 (aarch64_dr_state_insert_one_point): New parameters offset and
8491 addr_orig.
8492 (aarch64_dr_state_remove_one_point): Likewise.
8493 (aarch64_handle_breakpoint): Update caller.
8494 (aarch64_handle_aligned_watchpoint): Likewise.
8495 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8496 aligned_offset.
8497 (aarch64_linux_set_debug_regs): Remove const from state. Call
8498 aarch64_downgrade_regs.
8499 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8500 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8501 (DR_CONTROL_MASK): ... this.
8502 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8503 (unsigned int aarch64_watchpoint_offset): New prototype.
8504 (aarch64_linux_set_debug_regs): Remove const from state.
8505 * utils.c (align_up, align_down): Move to ...
8506 * common/common-utils.c (align_up, align_down): ... here.
8507 * utils.h (align_up, align_down): Move to ...
8508 * common/common-utils.h (align_up, align_down): ... here.
8509
8510 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8511
8512 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8513 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8514 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8515 Re-implement to match the ABI as summarized in GCC's
8516 gcc/config/sparc/sparc.c. All callers updated.
8517 (sparc32_store_arguments): Remove assertion.
8518
8519 2018-05-04 Tom Tromey <tom@tromey.com>
8520
8521 * printcmd.c: Don't include tui.h.
8522 (decode_format): Use skip_spaces.
8523
8524 2018-05-04 Tom Tromey <tom@tromey.com>
8525
8526 PR gdb/22619:
8527 * printcmd.c (last_count): New global.
8528 (x_command): Use saved count when repeating.
8529
8530 2018-05-04 Tom Tromey <tom@tromey.com>
8531
8532 * nto-procfs.c (do_closedir_cleanup): Remove.
8533 (procfs_pidlist): Use gdb_dir_up.
8534 * procfs.c (do_closedir_cleanup): Remove.
8535 (proc_update_threads): Use gdb_dir_up.
8536 * common/filestuff.h (struct gdb_dir_deleter): New.
8537 (gdb_dir_up): New typedef.
8538
8539 2018-05-04 Tom Tromey <tom@tromey.com>
8540
8541 * ada-lang.c (print_mention_exception): Use std::string.
8542
8543 2018-05-04 Tom Tromey <tom@tromey.com>
8544
8545 * ada-lang.c (create_excep_cond_exprs): Update.
8546 (ada_exception_catchpoint_cond_string): Use std::string.
8547
8548 2018-05-04 Tom Tromey <tom@tromey.com>
8549
8550 * ada-lang.c (xget_renaming_scope): Return std::string.
8551 (old_renaming_is_invisible): Update.
8552
8553 2018-05-04 Tom Tromey <tom@tromey.com>
8554
8555 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8556 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8557
8558 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8559
8560 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8561
8562 2018-05-04 Tom Tromey <tom@tromey.com>
8563
8564 * remote.c (remote_query_supported_append): Change type.
8565 (remote_check_symbols): Update.
8566
8567 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8568
8569 PR gdb/11420
8570 * configure.ac: Prepend libpython.
8571 * python/python-config.py: Likewise.
8572 * configure: Regenerate.
8573
8574 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8575
8576 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8577
8578 2018-05-03 Pedro Alves <palves@redhat.com>
8579
8580 * s390-linux-nat.c
8581 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8582 override. Write 'true' instead of '1'.
8583 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8584 declaration.
8585
8586 2018-05-02 Pedro Alves <palves@redhat.com>
8587
8588 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8589 add_inf_child_target.
8590 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8591 add_inf_child_target.
8592 * aix-thread.c (aix_thread_target_info): New.
8593 (aix_thread_target) <shortname, longname, doc>: Delete.
8594 <info>: New.
8595 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8596 add_inf_child_target.
8597 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8598 add_inf_child_target.
8599 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8600 add_inf_child_target.
8601 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8602 add_inf_child_target.
8603 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8604 add_inf_child_target.
8605 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8606 add_inf_child_target.
8607 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8608 add_inf_child_target.
8609 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8610 add_inf_child_target.
8611 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8612 add_inf_child_target.
8613 * bfd-target.c (target_bfd_target_info): New.
8614 (target_bfd) <shortname, longname, doc>: Delete.
8615 <info>: New.
8616 * bsd-kvm.c (bsd_kvm_target_info): New.
8617 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8618 <info>: New.
8619 (bsd_kvm_target::open): Rename to ...
8620 (bsd_kvm_target_open): ... this. Adjust.
8621 * bsd-uthread.c (bsd_uthread_target_info): New.
8622 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8623 <info>: New.
8624 * corefile.c (core_file_command): Adjust.
8625 * corelow.c (core_target_info): New.
8626 (core_target) <shortname, longname, doc>: Delete.
8627 <info>: New.
8628 (core_target::open): Rename to ...
8629 (core_target_open): ... this. Adjust.
8630 * ctf.c (ctf_target_info): New.
8631 (ctf_target) <shortname, longname, doc>: Delete.
8632 <info>: New.
8633 (ctf_target::open): Rename to ...
8634 (ctf_target_open): ... this.
8635 (_initialize_ctf): Adjust.
8636 * exec.c (exec_target_info): New.
8637 (exec_target) <shortname, longname, doc>: Delete.
8638 <info>: New.
8639 (exec_target::open): Rename to ...
8640 (exec_target_open): ... this.
8641 * gdbcore.h (core_target_open): Declare.
8642 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8643 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8644 add_inf_child_target.
8645 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8646 add_inf_child_target.
8647 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8648 add_inf_child_target.
8649 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8650 add_inf_child_target.
8651 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8652 add_inf_child_target.
8653 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8654 add_inf_child_target.
8655 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8656 add_inf_child_target.
8657 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8658 add_inf_child_target.
8659 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8660 add_inf_child_target.
8661 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8662 add_inf_child_target.
8663 * inf-child.c (inf_child_target_info): New.
8664 (inf_child_target::info): New.
8665 (inf_child_open_target): Remove 'target' parameter. Use
8666 get_native_target instead.
8667 (inf_child_target::open): Delete.
8668 (add_inf_child_target): New.
8669 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8670 Delete.
8671 <info>: New.
8672 (add_inf_child_target): Declare.
8673 (inf_child_open_target): Declare.
8674 * linux-thread-db.c (thread_db_target_info): New.
8675 (thread_db_target) <shortname, longname, doc>: Delete.
8676 <info>: New.
8677 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8678 add_inf_child_target.
8679 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8680 add_inf_child_target.
8681 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8682 add_inf_child_target.
8683 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8684 add_inf_child_target.
8685 * make-target-delegates (print_class): Adjust.
8686 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8687 add_inf_child_target.
8688 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8689 add_inf_child_target.
8690 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8691 add_inf_child_target.
8692 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8693 add_inf_child_target.
8694 * nto-procfs.c (nto_native_target_info): New.
8695 (nto_procfs_target_native) <shortname, longname, doc>:
8696 Delete.
8697 <info>: New.
8698 (nto_procfs_target_info): New.
8699 (nto_procfs_target_procfs) <shortname, longname, doc>:
8700 Delete.
8701 <info>: New.
8702 (init_procfs_targets): Adjust.
8703 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8704 add_inf_child_target.
8705 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8706 add_inf_child_target.
8707 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8708 add_inf_child_target.
8709 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8710 add_inf_child_target.
8711 * ravenscar-thread.c (ravenscar_target_info): New.
8712 (ravenscar_thread_target) <shortname, longname, doc>:
8713 Delete.
8714 <info>: New.
8715 * record-btrace.c (record_btrace_target_info):
8716 (record_btrace_target) <shortname, longname, doc>: Delete.
8717 <info>: New.
8718 (record_btrace_target::open): Rename to ...
8719 (record_btrace_target_open): ... this. Adjust.
8720 * record-full.c (record_longname, record_doc): New.
8721 (record_full_base_target) <shortname, longname, doc>: Delete.
8722 <info>: New.
8723 (record_full_target_info): New.
8724 (record_full_target): <shortname>: Delete.
8725 <info>: New.
8726 (record_full_core_open_1, record_full_open_1): Update comments.
8727 (record_full_base_target::open): Rename to ...
8728 (record_full_open): ... this.
8729 (cmd_record_full_restore): Update.
8730 (_initialize_record_full): Update.
8731 * remote-sim.c (remote_sim_target_info): New.
8732 (gdbsim_target) <shortname, longname, doc>: Delete.
8733 <info>: New.
8734 (gdbsim_target::open): Rename to ...
8735 (gdbsim_target_open): ... this.
8736 (_initialize_remote_sim): Adjust.
8737 * remote.c (remote_doc): New.
8738 (remote_target_info): New.
8739 (remote_target) <shortname, longname, doc>: Delete.
8740 <info>: New.
8741 (extended_remote_target_info): New.
8742 (extended_remote_target) <shortname, longname, doc>: Delete.
8743 <info>: New.
8744 (remote_target::open_1): Make static. Adjust.
8745 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8746 * s390-linux-nat.c (_initialize_s390_nat): Use
8747 add_inf_child_target.
8748 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8749 add_inf_child_target.
8750 * sol-thread.c (thread_db_target_info): New.
8751 (sol_thread_target) <shortname, longname, doc>: Delete.
8752 <info>: New.
8753 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8754 add_inf_child_target.
8755 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8756 add_inf_child_target.
8757 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8758 add_inf_child_target.
8759 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8760 add_inf_child_target.
8761 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8762 add_inf_child_target.
8763 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8764 add_inf_child_target.
8765 * spu-linux-nat.c (_initialize_spu_nat): Use
8766 add_inf_child_target.
8767 * spu-multiarch.c (spu_multiarch_target_info): New.
8768 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8769 <info>: New.
8770 * target-delegates.c: Regenerate.
8771 * target.c: Include <unordered_map>.
8772 (target_ops_p): Delete.
8773 (DEF_VEC_P(target_ops_p)): Delete.
8774 (target_factories): New.
8775 (test_target_info): New.
8776 (test_target_ops::info): New.
8777 (open_target): Adjust to use target_factories.
8778 (add_target_with_completer): Rename to ...
8779 (add_target): ... this. Change prototype. Register target_info
8780 and open callback in target_factories. Register target_info in
8781 command context instead of target_ops.
8782 (add_target): Delete old implementation.
8783 (add_deprecated_target_alias): Change prototype. Adjust.
8784 (the_native_target): New.
8785 (set_native_target, get_native_target): New.
8786 (find_default_run_target): Use the_native_target.
8787 (find_attach_target, find_run_target): Simplify.
8788 (target_ops::open): Delete.
8789 (dummy_target_info): New.
8790 (dummy_target::shortname, dummy_target::longname)
8791 (dummy_target::doc): Delete.
8792 (dummy_target::info): New.
8793 (debug_target::shortname, debug_target::longname)
8794 (debug_target::doc): Delete.
8795 (debug_target::info): New.
8796 * target.h (struct target_info): New.
8797 (target_ops::~target_ops): Add comment.
8798 (target_ops::info): New.
8799 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8800 longer virtual. Implement in terms of target_info.
8801 (set_native_target, get_native_target): Declare.
8802 (target_open_ftype): New.
8803 (add_target, add_target_with_completer)
8804 (add_deprecated_target_alias): Change prototype.
8805 (test_target) <shortname, longname, doc>: Delete.
8806 <info>: New.
8807 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8808 add_inf_child_target.
8809 * tracefile-tfile.c (tfile_target_info): New.
8810 (tfile_target) <shortname, longname, doc>: Delete.
8811 <info>: New.
8812 (tfile_target::open): Rename to ...
8813 (tfile_target_open): ... this.
8814 (_initialize_tracefile_tfile): Adjust.
8815 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8816 add_inf_child_target.
8817 * windows-nat.c (_initialize_windows_nat): Use
8818 add_inf_child_target.
8819 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8820 add_inf_child_target.
8821
8822 2018-05-02 Pedro Alves <palves@redhat.com>
8823
8824 * linux-nat.h (linux_nat_target) <low_new_thread,
8825 low_delete_thread, low_new_fork, low_forget_process,
8826 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8827 New virtual methods.
8828 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8829 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8830 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8831 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8832 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8833 Delete.
8834 * linux-fork.c (delete_fork): Adjust to call low method.
8835 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8836 (linux_nat_new_fork, linux_nat_forget_process_hook)
8837 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8838 (linux_nat_status_is_event):
8839 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8840 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8841 to call low method.
8842 (sigtrap_is_event): Rename to ...
8843 (linux_nat_target::low_status_is_event): ... this.
8844 (linux_nat_set_status_is_event): Delete.
8845 (save_stop_reason, linux_nat_wait_1)
8846 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8847 low methods.
8848 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8849 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8850 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8851 (linux_nat_set_prepare_to_resume): Delete.
8852 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8853 low virtual methods.
8854 * amd64-linux-nat.c: Likewise.
8855 * arm-linux-nat.c: Likewise.
8856 * i386-linux-nat.c: Likewise.
8857 * ia64-linux-nat.c: Likewise.
8858 * mips-linux-nat.c: Likewise.
8859 * ppc-linux-nat.c: Likewise.
8860 * s390-linux-nat.c: Likewise.
8861 * sparc64-linux-nat.c: Likewise.
8862 * x86-linux-nat.c: Likewise.
8863 * x86-linux-nat.h: Include "nat/x86-linux.h".
8864 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8865 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8866 Override methods.
8867
8868 2018-05-02 Pedro Alves <palves@redhat.com>
8869
8870 * target.h (target_ops)
8871 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8872 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8873 stopped_by_watchpoint, have_continuable_watchpoint,
8874 stopped_data_address, watchpoint_addr_within_range,
8875 can_accel_watchpoint_condition, can_run, thread_alive,
8876 has_all_memory, has_memory, has_stack, has_registers,
8877 has_execution, can_async_p, is_async_p, supports_non_stop,
8878 always_non_stop_p, can_execute_reverse, supports_multi_process,
8879 supports_enable_disable_tracepoint,
8880 supports_disable_randomization, supports_string_tracing,
8881 supports_evaluation_of_breakpoint_conditions,
8882 can_run_breakpoint_commands, filesystem_is_local,
8883 can_download_tracepoint, get_trace_state_variable_value,
8884 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8885 record_is_replaying, record_will_replay,
8886 augmented_libraries_svr4_read>: Adjust to return bool.
8887 * aarch64-linux-nat.c: All implementations adjusted.
8888 * aix-thread.c: All implementations adjusted.
8889 * arm-linux-nat.c: All implementations adjusted.
8890 * breakpoint.c: All implementations adjusted.
8891 * bsd-kvm.c: All implementations adjusted.
8892 * bsd-uthread.c: All implementations adjusted.
8893 * corelow.c: All implementations adjusted.
8894 * ctf.c: All implementations adjusted.
8895 * darwin-nat.c: All implementations adjusted.
8896 * darwin-nat.h: All implementations adjusted.
8897 * exec.c: All implementations adjusted.
8898 * fbsd-nat.c: All implementations adjusted.
8899 * fbsd-nat.h: All implementations adjusted.
8900 * gnu-nat.c: All implementations adjusted.
8901 * gnu-nat.h: All implementations adjusted.
8902 * go32-nat.c: All implementations adjusted.
8903 * ia64-linux-nat.c: All implementations adjusted.
8904 * inf-child.c: All implementations adjusted.
8905 * inf-child.h: All implementations adjusted.
8906 * inf-ptrace.c: All implementations adjusted.
8907 * inf-ptrace.h: All implementations adjusted.
8908 * linux-nat.c: All implementations adjusted.
8909 * linux-nat.h: All implementations adjusted.
8910 * mips-linux-nat.c: All implementations adjusted.
8911 * nto-procfs.c: All implementations adjusted.
8912 * ppc-linux-nat.c: All implementations adjusted.
8913 * procfs.c: All implementations adjusted.
8914 * ravenscar-thread.c: All implementations adjusted.
8915 * record-btrace.c: All implementations adjusted.
8916 * record-full.c: All implementations adjusted.
8917 * remote-sim.c: All implementations adjusted.
8918 * remote.c: All implementations adjusted.
8919 * s390-linux-nat.c: All implementations adjusted.
8920 * sol-thread.c: All implementations adjusted.
8921 * spu-multiarch.c: All implementations adjusted.
8922 * target-delegates.c: All implementations adjusted.
8923 * target.c: All implementations adjusted.
8924 * target.h: All implementations adjusted.
8925 * tracefile-tfile.c: All implementations adjusted.
8926 * tracefile.c: All implementations adjusted.
8927 * tracefile.h: All implementations adjusted.
8928 * windows-nat.c: All implementations adjusted.
8929 * x86-linux-nat.h: All implementations adjusted.
8930 * x86-nat.h: All implementations adjusted.
8931
8932 2018-05-02 Pedro Alves <palves@redhat.com>
8933
8934 * make-target-delegates (scan_target_h): Don't trim lines here.
8935 Replace sequences of tabs and/or whitespace with a single
8936 whitespace.
8937 (top level, parsing methods): Trim each line before processing it
8938 here.
8939
8940 2018-05-02 Pedro Alves <palves@redhat.com>
8941 John Baldwin <jhb@freebsd.org>
8942
8943 * target.h (enum strata) <debug_stratum>: New.
8944 (struct target_ops) <all delegation methods>: Replace by C++
8945 virtual methods, and drop "to_" prefix. All references updated
8946 throughout.
8947 <to_shortname, to_longname, to_doc, to_data,
8948 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8949 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8950 virtual methods. All references updated throughout.
8951 <can_attach, supports_terminal_ours, can_create_inferior,
8952 get_thread_control_capabilities, attach_no_wait>: New
8953 virtual methods.
8954 <insert_breakpoint, remove_breakpoint>: Now
8955 TARGET_DEFAULT_NORETURN methods.
8956 <info_proc>: Now returns bool.
8957 <to_magic>: Delete.
8958 (OPS_MAGIC): Delete.
8959 (current_target): Delete. All references replaced by references
8960 to ...
8961 (target_stack): ... this. New.
8962 (target_shortname, target_longname): Adjust.
8963 (target_can_run): Now a function declaration.
8964 (default_child_has_all_memory, default_child_has_memory)
8965 (default_child_has_stack, default_child_has_registers)
8966 (default_child_has_execution): Remove target_ops parameter.
8967 (complete_target_initialization): Delete.
8968 (memory_breakpoint_target): New template class.
8969 (test_target_ops): Refactor as a C++ class with virtual methods.
8970 * make-target-delegates (NAME_PART): Tighten.
8971 (POINTER_PART, CP_SYMBOL): New.
8972 (SIMPLE_RETURN_PART): Reimplement.
8973 (VEC_RETURN_PART): Expect less.
8974 (RETURN_PART, VIRTUAL_PART): New.
8975 (METHOD): Adjust to C++ virtual methods.
8976 (scan_target_h): Remove reference to C99.
8977 (dname): Output "target_ops::" prefix.
8978 (write_function_header): Adjust to output a C++ class method.
8979 (write_declaration): New.
8980 (write_delegator): Adjust to output a C++ class method.
8981 (tdname): Output "dummy_target::" prefix.
8982 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8983 method.
8984 (tdefault_names, debug_names): Delete.
8985 (return_types, tdefaults, styles, argtypes_array): New.
8986 (top level): All methods are delegators.
8987 (print_class): New.
8988 (top level): Print dummy_target and debug_target classes.
8989 * target-delegates.c: Regenerate.
8990 * target-debug.h (target_debug_print_enum_info_proc_what)
8991 (target_debug_print_thread_control_capabilities)
8992 (target_debug_print_thread_info_p): New.
8993 * target.c (dummy_target): Delete.
8994 (the_dummy_target, the_debug_target): New.
8995 (target_stack): Now extern.
8996 (set_targetdebug): Push/unpush debug target.
8997 (default_child_has_all_memory, default_child_has_memory)
8998 (default_child_has_stack, default_child_has_registers)
8999 (default_child_has_execution): Remove target_ops parameter.
9000 (complete_target_initialization): Delete.
9001 (add_target_with_completer): No longer call
9002 complete_target_initialization.
9003 (target_supports_terminal_ours): Use regular delegation.
9004 (update_current_target): Delete.
9005 (push_target): No longer check magic number. Don't call
9006 update_current_target.
9007 (unpush_target): Don't call update_current_target.
9008 (target_is_pushed): No longer check magic number.
9009 (target_require_runnable): Skip for all stratums over
9010 process_stratum.
9011 (target_ops::info_proc): New.
9012 (target_info_proc): Use find_target_at and
9013 find_default_run_target.
9014 (target_supports_disable_randomization): Use regular delegation.
9015 (target_get_osdata): Use find_target_at.
9016 (target_ops::open, target_ops::close, target_ops::can_attach)
9017 (target_ops::attach, target_ops::can_create_inferior)
9018 (target_ops::create_inferior, target_ops::can_run)
9019 (target_can_run): New.
9020 (default_fileio_target): Use regular delegation.
9021 (target_ops::fileio_open, target_ops::fileio_pwrite)
9022 (target_ops::fileio_pread, target_ops::fileio_fstat)
9023 (target_ops::fileio_close, target_ops::fileio_unlink)
9024 (target_ops::fileio_readlink): New.
9025 (target_fileio_open_1, target_fileio_unlink)
9026 (target_fileio_readlink): Always call the target method. Handle
9027 FILEIO_ENOSYS.
9028 (return_zero, return_zero_has_execution): Delete.
9029 (init_dummy_target): Delete.
9030 (dummy_target::dummy_target, dummy_target::shortname)
9031 (dummy_target::longname, dummy_target::doc)
9032 (debug_target::debug_target, debug_target::shortname)
9033 (debug_target::longname, debug_target::doc): New.
9034 (target_supports_delete_record): Use regular delegation.
9035 (setup_target_debug): Delete.
9036 (maintenance_print_target_stack): Skip debug_stratum.
9037 (initialize_targets): Instantiate the_dummy_target and
9038 the_debug_target.
9039 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9040 use target_stack.
9041 (target_auxv_search, fprint_target_auxv): Adjust.
9042 (info_auxv_command): Adjust to use target_stack.
9043 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9044 * exceptions.c (print_flush): Handle a NULL target_stack.
9045 * regcache.c (target_ops_no_register): Refactor as class with
9046 virtual methods.
9047
9048 * exec.c (exec_target): New class.
9049 (exec_ops): Now an exec_target.
9050 (exec_open, exec_close_1, exec_get_section_table)
9051 (exec_xfer_partial, exec_files_info, exec_has_memory)
9052 (exec_make_note_section): Refactor as exec_target methods.
9053 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9054 Delete.
9055 (exec_target::find_memory_regions): New.
9056 (_initialize_exec): Don't call init_exec_ops.
9057 * gdbcore.h (exec_file_clear): Delete.
9058
9059 * corefile.c (core_target): Delete.
9060 (core_file_command): Adjust.
9061 * corelow.c (core_target): New class.
9062 (the_core_target): New.
9063 (core_close): Remove target_ops parameter.
9064 (core_close_cleanup): Adjust.
9065 (core_target::close): New.
9066 (core_open, core_detach, get_core_registers, core_files_info)
9067 (core_xfer_partial, core_thread_alive, core_read_description)
9068 (core_pid_to_str, core_thread_name, core_has_memory)
9069 (core_has_stack, core_has_registers, core_info_proc): Rework as
9070 core_target methods.
9071 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9072 (_initialize_corelow): Initialize the_core_target.
9073 * gdbcore.h (core_target): Delete.
9074 (the_core_target): New.
9075
9076 * ctf.c: (ctf_target): New class.
9077 (ctf_ops): Now a ctf_target.
9078 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9079 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9080 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9081 methods.
9082 (init_ctf_ops): Delete.
9083 (_initialize_ctf): Don't call it.
9084 * tracefile-tfile.c (tfile_target): New class.
9085 (tfile_ops): Now a tfile_target.
9086 (tfile_open, tfile_close, tfile_files_info)
9087 (tfile_get_tracepoint_status, tfile_trace_find)
9088 (tfile_fetch_registers, tfile_xfer_partial)
9089 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9090 Refactor as tfile_target methods.
9091 (tfile_xfer_partial_features): Remove target_ops parameter.
9092 (init_tfile_ops): Delete.
9093 (_initialize_tracefile_tfile): Don't call it.
9094 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9095 (tracefile_has_stack, tracefile_has_registers)
9096 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9097 tracefile_target methods.
9098 (init_tracefile_ops): Delete.
9099 (tracefile_target::tracefile_target): New.
9100 * tracefile.h: Include "target.h".
9101 (tracefile_target): New class.
9102 (init_tracefile_ops): Delete.
9103
9104 * spu-multiarch.c (spu_multiarch_target): New class.
9105 (spu_ops): Now a spu_multiarch_target.
9106 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9107 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9108 (spu_search_memory, spu_mourn_inferior): Refactor as
9109 spu_multiarch_target methods.
9110 (init_spu_ops): Delete.
9111 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9112 complete_target_initialization.
9113
9114 * ravenscar-thread.c (ravenscar_thread_target): New class.
9115 (ravenscar_ops): Now a ravenscar_thread_target.
9116 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9117 (ravenscar_thread_alive, ravenscar_pid_to_str)
9118 (ravenscar_fetch_registers, ravenscar_store_registers)
9119 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9120 (ravenscar_stopped_by_hw_breakpoint)
9121 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9122 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9123 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9124 methods.
9125 (init_ravenscar_thread_ops): Delete.
9126 (_initialize_ravenscar): Remove references to
9127 init_ravenscar_thread_ops and complete_target_initialization.
9128
9129 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9130 (bsd_uthread_target): New class.
9131 (bsd_uthread_ops): Now a bsd_uthread_target.
9132 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9133 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9134 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9135 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9136 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9137 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9138 (bsd_uthread_target): Delete function.
9139 (_initialize_bsd_uthread): Remove reference to
9140 complete_target_initialization.
9141
9142 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9143 (target_bfd): ... this new class.
9144 (target_bfd_xfer_partial, target_bfd_get_section_table)
9145 (target_bfd_close): Refactor as target_bfd methods.
9146 (target_bfd::~target_bfd): New.
9147 (target_bfd_reopen): Adjust.
9148 (target_bfd::close): New.
9149
9150 * record-btrace.c (record_btrace_target): New class.
9151 (record_btrace_ops): Now a record_btrace_target.
9152 (record_btrace_open, record_btrace_stop_recording)
9153 (record_btrace_disconnect, record_btrace_close)
9154 (record_btrace_async, record_btrace_info)
9155 (record_btrace_insn_history, record_btrace_insn_history_range)
9156 (record_btrace_insn_history_from, record_btrace_call_history)
9157 (record_btrace_call_history_range)
9158 (record_btrace_call_history_from, record_btrace_record_method)
9159 (record_btrace_is_replaying, record_btrace_will_replay)
9160 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9161 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9162 (record_btrace_store_registers, record_btrace_prepare_to_store)
9163 (record_btrace_to_get_unwinder)
9164 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9165 (record_btrace_commit_resume, record_btrace_wait)
9166 (record_btrace_stop, record_btrace_can_execute_reverse)
9167 (record_btrace_stopped_by_sw_breakpoint)
9168 (record_btrace_supports_stopped_by_sw_breakpoint)
9169 (record_btrace_stopped_by_hw_breakpoint)
9170 (record_btrace_supports_stopped_by_hw_breakpoint)
9171 (record_btrace_update_thread_list, record_btrace_thread_alive)
9172 (record_btrace_goto_begin, record_btrace_goto_end)
9173 (record_btrace_goto, record_btrace_stop_replaying_all)
9174 (record_btrace_execution_direction)
9175 (record_btrace_prepare_to_generate_core)
9176 (record_btrace_done_generating_core): Refactor as
9177 record_btrace_target methods.
9178 (init_record_btrace_ops): Delete.
9179 (_initialize_record_btrace): Remove reference to
9180 init_record_btrace_ops.
9181 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9182 the execution_direction global.
9183 (record_full_base_target, record_full_target)
9184 (record_full_core_target): New classes.
9185 (record_full_ops): Now a record_full_target.
9186 (record_full_core_ops): Now a record_full_core_target.
9187 (record_full_target::detach, record_full_target::disconnect)
9188 (record_full_core_target::disconnect)
9189 (record_full_target::mourn_inferior, record_full_target::kill):
9190 New.
9191 (record_full_open, record_full_close, record_full_async): Refactor
9192 as methods of the record_full_base_target class.
9193 (record_full_resume, record_full_commit_resume): Refactor
9194 as methods of the record_full_target class.
9195 (record_full_wait, record_full_stopped_by_watchpoint)
9196 (record_full_stopped_data_address)
9197 (record_full_stopped_by_sw_breakpoint)
9198 (record_full_supports_stopped_by_sw_breakpoint)
9199 (record_full_stopped_by_hw_breakpoint)
9200 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9201 methods of the record_full_base_target class.
9202 (record_full_store_registers, record_full_xfer_partial)
9203 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9204 Refactor as methods of the record_full_target class.
9205 (record_full_can_execute_reverse, record_full_get_bookmark)
9206 (record_full_goto_bookmark, record_full_execution_direction)
9207 (record_full_record_method, record_full_info, record_full_delete)
9208 (record_full_is_replaying, record_full_will_replay)
9209 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9210 (record_full_stop_replaying): Refactor as methods of the
9211 record_full_base_target class.
9212 (record_full_core_resume, record_full_core_kill)
9213 (record_full_core_fetch_registers)
9214 (record_full_core_prepare_to_store)
9215 (record_full_core_store_registers, record_full_core_xfer_partial)
9216 (record_full_core_insert_breakpoint)
9217 (record_full_core_remove_breakpoint)
9218 (record_full_core_has_execution): Refactor
9219 as methods of the record_full_core_target class.
9220 (record_full_base_target::supports_delete_record): New.
9221 (init_record_full_ops): Delete.
9222 (init_record_full_core_ops): Delete.
9223 (record_full_save): Refactor as method of the
9224 record_full_base_target class.
9225 (_initialize_record_full): Remove references to
9226 init_record_full_ops and init_record_full_core_ops.
9227
9228 * remote.c (remote_target, extended_remote_target): New classes.
9229 (remote_ops): Now a remote_target.
9230 (extended_remote_ops): Now an extended_remote_target.
9231 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9232 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9233 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9234 (remote_pass_signals, remote_set_syscall_catchpoint)
9235 (remote_program_signals, )
9236 (remote_thread_always_alive): Remove target_ops parameter.
9237 (remote_thread_alive, remote_thread_name)
9238 (remote_update_thread_list, remote_threads_extra_info)
9239 (remote_static_tracepoint_marker_at)
9240 (remote_static_tracepoint_markers_by_strid)
9241 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9242 (remote_open): Refactor as methods of remote_target.
9243 (extended_remote_open, extended_remote_detach)
9244 (extended_remote_attach, extended_remote_post_attach):
9245 (extended_remote_supports_disable_randomization)
9246 (extended_remote_create_inferior): : Refactor as method of
9247 extended_remote_target.
9248 (remote_set_permissions, remote_open_1, remote_detach)
9249 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9250 (remote_resume, remote_commit_resume, remote_stop)
9251 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9252 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9253 (remote_prepare_to_store, remote_store_registers)
9254 (remote_flash_erase, remote_flash_done, remote_files_info)
9255 (remote_kill, remote_mourn, remote_insert_breakpoint)
9256 (remote_remove_breakpoint, remote_insert_watchpoint)
9257 (remote_watchpoint_addr_within_range)
9258 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9259 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9260 (remote_supports_stopped_by_sw_breakpoint)
9261 (remote_stopped_by_hw_breakpoint)
9262 (remote_supports_stopped_by_hw_breakpoint)
9263 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9264 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9265 (remote_verify_memory): Refactor as methods of remote_target.
9266 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9267 parameter.
9268 (remote_xfer_partial, remote_get_memory_xfer_limit)
9269 (remote_search_memory, remote_rcmd, remote_memory_map)
9270 (remote_pid_to_str, remote_get_thread_local_address)
9271 (remote_get_tib_address, remote_read_description): Refactor as
9272 methods of remote_target.
9273 (remote_target::fileio_open, remote_target::fileio_pwrite)
9274 (remote_target::fileio_pread, remote_target::fileio_close): New.
9275 (remote_hostio_readlink, remote_hostio_fstat)
9276 (remote_filesystem_is_local, remote_can_execute_reverse)
9277 (remote_supports_non_stop, remote_supports_disable_randomization)
9278 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9279 (remote_supports_enable_disable_tracepoint)
9280 (remote_supports_string_tracing)
9281 (remote_can_run_breakpoint_commands, remote_trace_init)
9282 (remote_download_tracepoint, remote_can_download_tracepoint)
9283 (remote_download_trace_state_variable, remote_enable_tracepoint)
9284 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9285 (remote_trace_start, remote_get_trace_status)
9286 (remote_get_tracepoint_status, remote_trace_stop)
9287 (remote_trace_find, remote_get_trace_state_variable_value)
9288 (remote_save_trace_data, remote_get_raw_trace_data)
9289 (remote_set_disconnected_tracing, remote_core_of_thread)
9290 (remote_set_circular_trace_buffer, remote_traceframe_info)
9291 (remote_get_min_fast_tracepoint_insn_len)
9292 (remote_set_trace_buffer_size, remote_set_trace_notes)
9293 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9294 (remote_disable_btrace, remote_teardown_btrace)
9295 (remote_read_btrace, remote_btrace_conf)
9296 (remote_augmented_libraries_svr4_read, remote_load)
9297 (remote_pid_to_exec_file, remote_can_do_single_step)
9298 (remote_execution_direction, remote_thread_handle_to_thread_info):
9299 Refactor as methods of remote_target.
9300 (init_remote_ops, init_extended_remote_ops): Delete.
9301 (remote_can_async_p, remote_is_async_p, remote_async)
9302 (remote_thread_events, remote_upload_tracepoints)
9303 (remote_upload_trace_state_variables): Refactor as methods of
9304 remote_target.
9305 (_initialize_remote): Remove references to init_remote_ops and
9306 init_extended_remote_ops.
9307
9308 * remote-sim.c (gdbsim_target): New class.
9309 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9310 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9311 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9312 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9313 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9314 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9315 Refactor as methods of gdbsim_target.
9316 (gdbsim_ops): Now a gdbsim_target.
9317 (init_gdbsim_ops): Delete.
9318 (gdbsim_cntrl_c): Adjust.
9319 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9320
9321 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9322 (the_amd64_linux_nat_target): New.
9323 (amd64_linux_fetch_inferior_registers)
9324 (amd64_linux_store_inferior_registers): Refactor as methods of
9325 amd64_linux_nat_target.
9326 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9327 * i386-linux-nat.c: Don't include "linux-nat.h".
9328 (i386_linux_nat_target): New class.
9329 (the_i386_linux_nat_target): New.
9330 (i386_linux_fetch_inferior_registers)
9331 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9332 as methods of i386_linux_nat_target.
9333 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9334 * inf-child.c (inf_child_ops): Delete.
9335 (inf_child_fetch_inferior_registers)
9336 (inf_child_store_inferior_registers): Delete.
9337 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9338 methods of inf_child_target.
9339 (inf_child_target::supports_terminal_ours)
9340 (inf_child_target::terminal_init)
9341 (inf_child_target::terminal_inferior)
9342 (inf_child_target::terminal_ours_for_output)
9343 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9344 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9345 New.
9346 (inf_child_open, inf_child_disconnect, inf_child_close)
9347 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9348 (inf_child_post_startup_inferior, inf_child_can_run)
9349 (inf_child_pid_to_exec_file): Refactor as methods of
9350 inf_child_target.
9351 (inf_child_follow_fork): Delete.
9352 (inf_child_target::can_create_inferior)
9353 (inf_child_target::can_attach): New.
9354 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9355 (inf_child_target::has_stack, inf_child_target::has_registers)
9356 (inf_child_target::has_execution): New.
9357 (inf_child_fileio_open, inf_child_fileio_pwrite)
9358 (inf_child_fileio_pread, inf_child_fileio_fstat)
9359 (inf_child_fileio_close, inf_child_fileio_unlink)
9360 (inf_child_fileio_readlink, inf_child_use_agent)
9361 (inf_child_can_use_agent): Refactor as methods of
9362 inf_child_target.
9363 (return_zero, inf_child_target): Delete.
9364 (inf_child_target::inf_child_target): New.
9365 * inf-child.h: Include "target.h".
9366 (inf_child_target): Delete function prototype.
9367 (inf_child_target): New class.
9368 (inf_child_open_target, inf_child_mourn_inferior)
9369 (inf_child_maybe_unpush_target): Delete.
9370 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9371 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9372 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9373 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9374 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9375 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9376 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9377 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9378 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9379 methods of inf_ptrace_target.
9380 (inf_ptrace_target): Delete function.
9381 * inf-ptrace.h: Include "inf-child.h".
9382 (inf_ptrace_target): Delete function declaration.
9383 (inf_ptrace_target): New class.
9384 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9385 * linux-nat.c (linux_target): New.
9386 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9387 (linux_nat_target::~linux_nat_target): New.
9388 (linux_child_post_attach, linux_child_post_startup_inferior)
9389 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9390 (linux_child_remove_fork_catchpoint)
9391 (linux_child_insert_vfork_catchpoint)
9392 (linux_child_remove_vfork_catchpoint)
9393 (linux_child_insert_exec_catchpoint)
9394 (linux_child_remove_exec_catchpoint)
9395 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9396 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9397 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9398 (linux_nat_stopped_data_address)
9399 (linux_nat_stopped_by_sw_breakpoint)
9400 (linux_nat_supports_stopped_by_sw_breakpoint)
9401 (linux_nat_stopped_by_hw_breakpoint)
9402 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9403 (linux_nat_kill, linux_nat_mourn_inferior)
9404 (linux_nat_xfer_partial, linux_nat_thread_alive)
9405 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9406 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9407 (linux_child_static_tracepoint_markers_by_strid)
9408 (linux_nat_is_async_p, linux_nat_can_async_p)
9409 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9410 (linux_nat_supports_multi_process)
9411 (linux_nat_supports_disable_randomization, linux_nat_async)
9412 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9413 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9414 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9415 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9416 methods of linux_nat_target.
9417 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9418 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9419 parameter.
9420 (check_stopped_by_watchpoint): Adjust.
9421 (linux_xfer_partial): Delete.
9422 (linux_target_install_ops, linux_target, linux_nat_add_target):
9423 Delete.
9424 (linux_nat_target::linux_nat_target): New.
9425 * linux-nat.h: Include "inf-ptrace.h".
9426 (linux_nat_target): New.
9427 (linux_target, linux_target_install_ops, linux_nat_add_target):
9428 Delete function declarations.
9429 (linux_target): Declare global.
9430 * linux-thread-db.c (thread_db_target): New.
9431 (thread_db_target::thread_db_target): New.
9432 (thread_db_ops): Delete.
9433 (the_thread_db_target): New.
9434 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9435 (thread_db_update_thread_list, thread_db_pid_to_str)
9436 (thread_db_extra_thread_info)
9437 (thread_db_thread_handle_to_thread_info)
9438 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9439 (thread_db_resume): Refactor as methods of thread_db_target.
9440 (init_thread_db_ops): Delete.
9441 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9442 * x86-linux-nat.c: Don't include "linux-nat.h".
9443 (super_post_startup_inferior): Delete.
9444 (x86_linux_nat_target::~x86_linux_nat_target): New.
9445 (x86_linux_child_post_startup_inferior)
9446 (x86_linux_read_description, x86_linux_enable_btrace)
9447 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9448 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9449 methods of x86_linux_nat_target.
9450 (x86_linux_create_target): Delete. Bits folded ...
9451 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9452 pointer.
9453 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9454 (x86_linux_nat_target): New class.
9455 (x86_linux_create_target): Delete.
9456 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9457 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9458 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9459 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9460 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9461 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9462 make extern.
9463 (x86_use_watchpoints): Delete.
9464 * x86-nat.h: Include "breakpoint.h" and "target.h".
9465 (x86_use_watchpoints): Delete.
9466 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9467 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9468 (x86_insert_watchpoint, x86_remove_watchpoint)
9469 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9470 (x86_stopped_by_hw_breakpoint): New declarations.
9471 (x86_nat_target): New template class.
9472
9473 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9474 (the_ppc_linux_nat_target): New.
9475 (ppc_linux_fetch_inferior_registers)
9476 (ppc_linux_can_use_hw_breakpoint)
9477 (ppc_linux_region_ok_for_hw_watchpoint)
9478 (ppc_linux_ranged_break_num_registers)
9479 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9480 (ppc_linux_insert_mask_watchpoint)
9481 (ppc_linux_remove_mask_watchpoint)
9482 (ppc_linux_can_accel_watchpoint_condition)
9483 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9484 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9485 (ppc_linux_watchpoint_addr_within_range)
9486 (ppc_linux_masked_watch_num_registers)
9487 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9488 (ppc_linux_read_description): Refactor as methods of
9489 ppc_linux_nat_target.
9490 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9491
9492 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9493 (procfs_target): New class.
9494 (the_procfs_target): New.
9495 (procfs_target): Delete function.
9496 (procfs_auxv_parse, procfs_attach, procfs_detach)
9497 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9498 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9499 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9500 (procfs_create_inferior, procfs_update_thread_list)
9501 (procfs_thread_alive, procfs_pid_to_str)
9502 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9503 (procfs_stopped_data_address, procfs_insert_watchpoint)
9504 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9505 (proc_find_memory_regions, procfs_info_proc)
9506 (procfs_make_note_section): Refactor as methods of procfs_target.
9507 (_initialize_procfs): Adjust.
9508 * sol-thread.c (sol_thread_target): New class.
9509 (sol_thread_ops): Now a sol_thread_target.
9510 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9511 (sol_thread_fetch_registers, sol_thread_store_registers)
9512 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9513 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9514 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9515 (init_sol_thread_ops): Delete.
9516 (_initialize_sol_thread): Adjust. Remove references to
9517 init_sol_thread_ops and complete_target_initialization.
9518
9519 * windows-nat.c (windows_nat_target): New class.
9520 (windows_fetch_inferior_registers)
9521 (windows_store_inferior_registers, windows_resume, windows_wait)
9522 (windows_attach, windows_detach, windows_pid_to_exec_file)
9523 (windows_files_info, windows_create_inferior)
9524 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9525 (windows_close, windows_pid_to_str, windows_xfer_partial)
9526 (windows_get_tib_address, windows_get_ada_task_ptid)
9527 (windows_thread_name, windows_thread_alive): Refactor as
9528 windows_nat_target methods.
9529 (do_initial_windows_stuff): Adjust.
9530 (windows_target): Delete function.
9531 (_initialize_windows_nat): Adjust.
9532
9533 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9534 (darwin_mourn_inferior, darwin_kill_inferior)
9535 (darwin_create_inferior, darwin_attach, darwin_detach)
9536 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9537 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9538 (darwin_supports_multi_process): Refactor as darwin_nat_target
9539 methods.
9540 (darwin_resume_to, darwin_files_info): Delete.
9541 (_initialize_darwin_inferior): Rename to ...
9542 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9543 * darwin-nat.h: Include "inf-child.h".
9544 (darwin_nat_target): New class.
9545 (darwin_complete_target): Delete.
9546 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9547 (darwin_target): New.
9548 (i386_darwin_fetch_inferior_registers)
9549 (i386_darwin_store_inferior_registers): Refactor as methods of
9550 darwin_nat_target.
9551 (darwin_complete_target): Delete, with ...
9552 (_initialize_i386_darwin_nat): ... bits factored out here.
9553
9554 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9555 (the_alpha_linux_nat_target): New.
9556 (alpha_linux_register_u_offset): Refactor as
9557 alpha_linux_nat_target method.
9558 (_initialize_alpha_linux_nat): Adjust.
9559 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9560 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9561 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9562 methods of linux_nat_trad_target.
9563 (linux_trad_target): Delete.
9564 * linux-nat-trad.h (linux_trad_target): Delete function.
9565 (linux_nat_trad_target): New class.
9566 * mips-linux-nat.c (mips_linux_nat_target): New class.
9567 (super_fetch_registers, super_store_registers, super_close):
9568 Delete.
9569 (the_mips_linux_nat_target): New.
9570 (mips64_linux_regsets_fetch_registers)
9571 (mips64_linux_regsets_store_registers)
9572 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9573 (mips_linux_register_u_offset, mips_linux_read_description)
9574 (mips_linux_can_use_hw_breakpoint)
9575 (mips_linux_stopped_by_watchpoint)
9576 (mips_linux_stopped_data_address)
9577 (mips_linux_region_ok_for_hw_watchpoint)
9578 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9579 (mips_linux_close): Refactor as methods of mips_linux_nat.
9580 (_initialize_mips_linux_nat): Adjust to C++ification.
9581
9582 * aix-thread.c (aix_thread_target): New class.
9583 (aix_thread_ops): Now an aix_thread_target.
9584 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9585 (aix_thread_fetch_registers, aix_thread_store_registers)
9586 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9587 (aix_thread_thread_alive, aix_thread_pid_to_str)
9588 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9589 Refactor as methods of aix_thread_target.
9590 (init_aix_thread_ops): Delete.
9591 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9592 and complete_target_initialization.
9593 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9594 (rs6000_nat_target): New class.
9595 (the_rs6000_nat_target): New.
9596 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9597 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9598 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9599 (super_create_inferior): Delete.
9600 (_initialize_rs6000_nat): Adjust to C++ification.
9601
9602 * arm-linux-nat.c (arm_linux_nat_target): New class.
9603 (the_arm_linux_nat_target): New.
9604 (arm_linux_fetch_inferior_registers)
9605 (arm_linux_store_inferior_registers, arm_linux_read_description)
9606 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9607 (arm_linux_remove_hw_breakpoint)
9608 (arm_linux_region_ok_for_hw_watchpoint)
9609 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9610 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9611 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9612 arm_linux_nat_target.
9613 (_initialize_arm_linux_nat): Adjust to C++ification.
9614
9615 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9616 (the_aarch64_linux_nat_target): New.
9617 (aarch64_linux_fetch_inferior_registers)
9618 (aarch64_linux_store_inferior_registers)
9619 (aarch64_linux_child_post_startup_inferior)
9620 (aarch64_linux_read_description)
9621 (aarch64_linux_can_use_hw_breakpoint)
9622 (aarch64_linux_insert_hw_breakpoint)
9623 (aarch64_linux_remove_hw_breakpoint)
9624 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9625 (aarch64_linux_region_ok_for_hw_watchpoint)
9626 (aarch64_linux_stopped_data_address)
9627 (aarch64_linux_stopped_by_watchpoint)
9628 (aarch64_linux_watchpoint_addr_within_range)
9629 (aarch64_linux_can_do_single_step): Refactor as methods of
9630 aarch64_linux_nat_target.
9631 (super_post_startup_inferior): Delete.
9632 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9633
9634 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9635 (the_hppa_linux_nat_target): New.
9636 (hppa_linux_fetch_inferior_registers)
9637 (hppa_linux_store_inferior_registers): Refactor as methods of
9638 hppa_linux_nat_target.
9639 (_initialize_hppa_linux_nat): Adjust to C++ification.
9640
9641 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9642 (the_ia64_linux_nat_target): New.
9643 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9644 (ia64_linux_stopped_data_address)
9645 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9646 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9647 ia64_linux_nat_target methods.
9648 (super_xfer_partial): Delete.
9649 (_initialize_ia64_linux_nat): Adjust to C++ification.
9650
9651 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9652 (the_m32r_linux_nat_target): New.
9653 (m32r_linux_fetch_inferior_registers)
9654 (m32r_linux_store_inferior_registers): Refactor as
9655 m32r_linux_nat_target methods.
9656 (_initialize_m32r_linux_nat): Adjust to C++ification.
9657
9658 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9659 (the_m68k_linux_nat_target): New.
9660 (m68k_linux_fetch_inferior_registers)
9661 (m68k_linux_store_inferior_registers): Refactor as
9662 m68k_linux_nat_target methods.
9663 (_initialize_m68k_linux_nat): Adjust to C++ification.
9664
9665 * s390-linux-nat.c (s390_linux_nat_target): New class.
9666 (the_s390_linux_nat_target): New.
9667 (s390_linux_fetch_inferior_registers)
9668 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9669 (s390_insert_watchpoint, s390_remove_watchpoint)
9670 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9671 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9672 (s390_auxv_parse, s390_read_description): Refactor as methods of
9673 s390_linux_nat_target.
9674 (_initialize_s390_nat): Adjust to C++ification.
9675
9676 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9677 (the_sparc_linux_nat_target): New.
9678 (_initialize_sparc_linux_nat): Adjust to C++ification.
9679 * sparc-nat.c (sparc_fetch_inferior_registers)
9680 (sparc_store_inferior_registers): Remove target_ops parameter.
9681 * sparc-nat.h (sparc_fetch_inferior_registers)
9682 (sparc_store_inferior_registers): Remove target_ops parameter.
9683 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9684 (the_sparc64_linux_nat_target): New.
9685 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9686
9687 * spu-linux-nat.c (spu_linux_nat_target): New class.
9688 (the_spu_linux_nat_target): New.
9689 (spu_child_post_startup_inferior, spu_child_post_attach)
9690 (spu_child_wait, spu_fetch_inferior_registers)
9691 (spu_store_inferior_registers, spu_xfer_partial)
9692 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9693 methods.
9694 (_initialize_spu_nat): Adjust to C++ification.
9695
9696 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9697 (the_tilegx_linux_nat_target): New.
9698 (fetch_inferior_registers, store_inferior_registers):
9699 Refactor as methods.
9700 (_initialize_tile_linux_nat): Adjust to C++ification.
9701
9702 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9703 (the_xtensa_linux_nat_target): New.
9704 (xtensa_linux_fetch_inferior_registers)
9705 (xtensa_linux_store_inferior_registers): Refactor as
9706 xtensa_linux_nat_target methods.
9707 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9708
9709 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9710 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9711 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9712 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9713 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9714 (fbsd_stopped_by_sw_breakpoint)
9715 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9716 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9717 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9718 (fbsd_post_startup_inferior, fbsd_post_attach)
9719 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9720 (fbsd_set_syscall_catchpoint)
9721 (super_xfer_partial, super_resume, super_wait)
9722 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9723 (fbsd_handle_debug_trap): Remove target_ops parameter.
9724 (fbsd_nat_add_target): Delete.
9725 * fbsd-nat.h: Include "inf-ptrace.h".
9726 (fbsd_nat_add_target): Delete.
9727 (USE_SIGTRAP_SIGINFO): Define.
9728 (fbsd_nat_target): New class.
9729
9730 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9731 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9732 (amd64bsd_target): Delete.
9733 * amd64-bsd-nat.h: New file.
9734 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9735 "x86-bsd-nat.h".
9736 (amd64_fbsd_nat_target): New class.
9737 (the_amd64_fbsd_nat_target): New.
9738 (amd64fbsd_read_description): Refactor as method of
9739 amd64_fbsd_nat_target.
9740 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9741 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9742 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9743 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9744 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9745 (i386bsd_target): Delete.
9746 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9747 (i386bsd_fetch_inferior_registers)
9748 (i386bsd_store_inferior_registers): Declare.
9749 (i386_bsd_nat_target): New class.
9750 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9751 (the_i386_fbsd_nat_target): New.
9752 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9753 i386_fbsd_nat_target methods.
9754 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9755 (_initialize_i386fbsd_nat): Adjust to C++ification.
9756 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9757 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9758 (_initialize_x86_bsd_nat): Adjust to C++ification.
9759 * x86-bsd-nat.h: Include "x86-nat.h".
9760 (x86bsd_target): Delete declaration.
9761 (x86bsd_nat_target): New class.
9762
9763 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9764 (the_aarch64_fbsd_nat_target): New.
9765 (aarch64_fbsd_fetch_inferior_registers)
9766 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9767 aarch64_fbsd_nat_target.
9768 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9769 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9770 (the_alpha_bsd_nat_target): New.
9771 (alphabsd_fetch_inferior_registers)
9772 (alphabsd_store_inferior_registers): Refactor as
9773 alpha_bsd_nat_target methods.
9774 (_initialize_alphabsd_nat): Refactor as methods of
9775 alpha_bsd_nat_target.
9776 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9777 (the_amd64_nbsd_nat_target): New.
9778 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9779 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9780 (the_amd64_obsd_nat_target): New.
9781 (_initialize_amd64obsd_nat): Adjust to C++ification.
9782 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9783 (the_arm_fbsd_nat_target): New.
9784 (arm_fbsd_fetch_inferior_registers)
9785 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9786 (_initialize_arm_fbsd_nat): Refactor as methods of
9787 arm_fbsd_nat_target.
9788 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9789 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9790 (the_arm_netbsd_nat_target): New.
9791 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9792 arm_netbsd_nat_target.
9793 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9794 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9795 (the_hppa_nbsd_nat_target): New.
9796 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9797 hppa_nbsd_nat_target methods.
9798 (_initialize_hppanbsd_nat): Adjust to C++ification.
9799 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9800 (the_hppa_obsd_nat_target): New.
9801 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9802 methods of hppa_obsd_nat_target.
9803 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9804 add_target.
9805 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9806 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9807 add_target.
9808 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9809 (_initialize_i386obsd_nat): Use add_target.
9810 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9811 (the_m68k_bsd_nat_target): New.
9812 (m68kbsd_fetch_inferior_registers)
9813 (m68kbsd_store_inferior_registers): Refactor as methods of
9814 m68k_bsd_nat_target.
9815 (_initialize_m68kbsd_nat): Adjust to C++ification.
9816 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9817 (the_mips_fbsd_nat_target): New.
9818 (mips_fbsd_fetch_inferior_registers)
9819 (mips_fbsd_store_inferior_registers): Refactor as methods of
9820 mips_fbsd_nat_target.
9821 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9822 add_target.
9823 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9824 (the_mips_nbsd_nat_target): New.
9825 (mipsnbsd_fetch_inferior_registers)
9826 (mipsnbsd_store_inferior_registers): Refactor as methods of
9827 mips_nbsd_nat_target.
9828 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9829 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9830 (the_mips64_obsd_nat_target): New.
9831 (mips64obsd_fetch_inferior_registers)
9832 (mips64obsd_store_inferior_registers): Refactor as methods of
9833 mips64_obsd_nat_target.
9834 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9835 add_target.
9836 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9837 nbsd_nat_target.
9838 * nbsd-nat.h: Include "inf-ptrace.h".
9839 (nbsd_nat_target): New class.
9840 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9841 (obsd_wait): Refactor as methods of obsd_nat_target.
9842 (obsd_add_target): Delete.
9843 * obsd-nat.h: Include "inf-ptrace.h".
9844 (obsd_nat_target): New class.
9845 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9846 (the_ppc_fbsd_nat_target): New.
9847 (ppcfbsd_fetch_inferior_registers)
9848 (ppcfbsd_store_inferior_registers): Refactor as methods of
9849 ppc_fbsd_nat_target.
9850 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9851 add_target.
9852 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9853 (the_ppc_nbsd_nat_target): New.
9854 (ppcnbsd_fetch_inferior_registers)
9855 (ppcnbsd_store_inferior_registers): Refactor as methods of
9856 ppc_nbsd_nat_target.
9857 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9858 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9859 (the_ppc_obsd_nat_target): New.
9860 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9861 methods of ppc_obsd_nat_target.
9862 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9863 add_target.
9864 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9865 (the_sh_nbsd_nat_target): New.
9866 (shnbsd_fetch_inferior_registers)
9867 (shnbsd_store_inferior_registers): Refactor as methods of
9868 sh_nbsd_nat_target.
9869 (_initialize_shnbsd_nat): Adjust to C++ification.
9870 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9871 (inf_ptrace_xfer_partial): Delete.
9872 (sparc_xfer_partial, sparc_target): Delete.
9873 * sparc-nat.h (sparc_fetch_inferior_registers)
9874 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9875 (sparc_target): Delete function declaration.
9876 (sparc_target): New template class.
9877 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9878 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9879 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9880 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9881 add_target.
9882 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9883 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9884 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9885 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9886 add_target.
9887 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9888 (the_vax_bsd_nat_target): New.
9889 (vaxbsd_fetch_inferior_registers)
9890 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9891 methods.
9892 (_initialize_vaxbsd_nat): Adjust to C++ification.
9893
9894 * bsd-kvm.c (bsd_kvm_target): New class.
9895 (bsd_kvm_ops): Now a bsd_kvm_target.
9896 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9897 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9898 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9899 bsd_kvm_target.
9900 (bsd_kvm_return_one): Delete.
9901 (bsd_kvm_add_target): Adjust to C++ification.
9902
9903 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9904 (nto_procfs_target_procfs): New classes.
9905 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9906 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9907 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9908 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9909 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9910 (procfs_remove_hw_breakpoint, procfs_resume)
9911 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9912 (procfs_kill_inferior, procfs_store_registers)
9913 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9914 as methods of nto_procfs_target.
9915 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9916 (nto_native_ops): Delete.
9917 (procfs_open, procfs_native_open): Delete.
9918 (nto_native_ops): Now an nto_procfs_target_native.
9919 (init_procfs_targets): Adjust to C++ification.
9920 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9921 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9922 Refactor as methods of nto_procfs_target.
9923
9924 * go32-nat.c (go32_nat_target): New class.
9925 (the_go32_nat_target): New.
9926 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9927 (go32_store_registers, go32_xfer_partial, go32_files_info)
9928 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9929 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9930 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9931 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9932 (go32_target): Delete.
9933 (_initialize_go32_nat): Adjust to C++ification.
9934
9935 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9936 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9937 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9938 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9939 gnu_nat_target.
9940 (gnu_target): Delete.
9941 * gnu-nat.h (gnu_target): Delete.
9942 (gnu_nat_target): New class.
9943 * i386-gnu-nat.c (gnu_base_target): New.
9944 (i386_gnu_nat_target): New class.
9945 (the_i386_gnu_nat_target): New.
9946 (_initialize_i386gnu_nat): Adjust to C++ification.
9947
9948 2018-05-02 Pedro Alves <palves@redhat.com>
9949
9950 * bfd-target.c (target_bfd_xclose): Rename to ...
9951 (target_bfd_close): ... this.
9952 (target_bfd_reopen): Adjust.
9953 * target.c (target_close): Remove references to to_xclose.
9954 * target.h (target_ops::to_xclose): Delete.
9955 (target_ops::to_close): Update comments.
9956
9957 2018-05-02 Pedro Alves <palves@redhat.com>
9958
9959 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9960 "linux-nat.h".
9961 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9962 * inf-ptrace.c (inf_ptrace_register_u_offset)
9963 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9964 (inf_ptrace_store_register, inf_ptrace_store_registers)
9965 (inf_ptrace_trad_target): Move to ...
9966 * linux-nat-trad.c: ... this new file.
9967 * linux-nat-trad.h: New file.
9968 * linux-nat.c (linux_target_install_ops): Make extern.
9969 (linux_trad_target): Delete.
9970 * linux-nat.h (linux_trad_target): Delete declaration.
9971 (linux_target_install_ops): Declare.
9972 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9973 "linux-nat.h".
9974
9975 2018-05-02 Pedro Alves <palves@redhat.com>
9976
9977 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9978 procfs_target/add_target here.
9979 * procfs.c (procfs_target): Make static.
9980 (_initialize_procfs): Call add_target here.
9981 * procfs.h (struct target_ops): Remove forward declaration.
9982 (procfs_target): Remove declaration.
9983 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9984
9985 2018-05-02 Pedro Alves <palves@redhat.com>
9986
9987 * procfs.c (procfs_stopped_by_watchpoint)
9988 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9989 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9990 Forward declare.
9991 (procfs_use_watchpoints): Delete, move contents...
9992 (procfs_target): ... here.
9993 * procfs.h (procfs_use_watchpoints): Delete declaration.
9994 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9995 procfs_use_watchpoints.
9996 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9997 procfs_use_watchpoints.
9998
9999 2018-05-02 Tom Tromey <tom@tromey.com>
10000
10001 PR python/20084:
10002 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10003 and var_zuinteger_unlimited.
10004 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10005 and PARAM_ZUINTEGER_UNLIMITED.
10006 (set_parameter_value): Handle var_zuinteger and
10007 var_zuinteger_unlimited.
10008 (add_setshow_generic): Likewise.
10009 (parmpy_init): Likewise.
10010
10011 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
10012
10013 PR rust/23124
10014 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10015 pointer is not null before dereferencing it.
10016
10017 2018-04-30 Tom Tromey <tom@tromey.com>
10018
10019 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10020 is_mi_like_p.
10021
10022 2018-04-30 Tom Tromey <tom@tromey.com>
10023
10024 * breakpoint.c (mention): Remove use of is_mi_like_p.
10025 (print_mention_ranged_breakpoint): Likewise.
10026 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10027 of is_mi_like_p.
10028
10029 2018-04-30 Tom Tromey <tom@tromey.com>
10030
10031 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10032
10033 2018-04-30 Tom Tromey <tom@tromey.com>
10034
10035 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10036 (info_spu_event_command): Remove some uses of is_mi_like_p.
10037
10038 2018-04-30 Tom Tromey <tom@tromey.com>
10039
10040 * python/py-framefilter.c (py_print_single_arg)
10041 (enumerate_locals, py_print_args, py_print_frame): Remove some
10042 uses of is_mi_like_p.
10043
10044 2018-04-30 Tom Tromey <tom@tromey.com>
10045
10046 * ui-out.c: Update.
10047 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10048 * ui-out.h (ui_out::is_mi_like_p): Now const.
10049 (ui_out::do_is_mi_like_p): Now const.
10050 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10051
10052 2018-04-30 Tom Tromey <tom@tromey.com>
10053
10054 * varobj.c (varobj_set_visualizer): Use new_reference.
10055 * python/python.c (gdbpy_decode_line): Use new_reference.
10056 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10057 new_reference.
10058
10059 2018-04-30 Tom Tromey <tom@tromey.com>
10060
10061 * varobj.c (install_new_value): Use new_reference.
10062 * value.h (value_incref): Return void. Swap intro comment with
10063 value_decref.
10064 * value.c (set_value_parent): Use new_reference.
10065 (value_incref): Return void. Update intro comment.
10066 (release_value): Use new_reference.
10067 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10068
10069 2018-04-30 Tom Tromey <tom@tromey.com>
10070
10071 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10072 * gdb_bfd.h (new_bfd_ref): Remove.
10073 (gdb_bfd_open): Update comment.
10074 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10075 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10076 (gdb_bfd_fdopenr): Use new_reference.
10077 * exec.c (exec_file_attach): Use new_reference.
10078
10079 2018-04-30 Tom Tromey <tom@tromey.com>
10080
10081 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10082 method.
10083
10084 2018-04-30 Tom Tromey <tom@tromey.com>
10085
10086 * jit.c (jit_read_code_entry): Use type_align.
10087 * i386-tdep.c (i386_gdbarch_init): Don't call
10088 set_gdbarch_long_long_align_bit.
10089 * gdbarch.sh: Remove long_long_align_bit.
10090 * gdbarch.c, gdbarch.h: Rebuild.
10091 * arc-tdep.c (arc_type_align): New function.
10092 (arc_gdbarch_init): Use arc_type_align. Don't call
10093 set_gdbarch_long_long_align_bit.
10094
10095 2018-04-30 Tom Tromey <tom@tromey.com>
10096
10097 * rust-lang.c (rust_type_alignment): Remove.
10098 (rust_composite_type): Use type_align.
10099
10100 2018-04-30 Tom Tromey <tom@tromey.com>
10101
10102 * NEWS: Mention Type.align.
10103 * python/py-type.c (typy_get_alignof): New function.
10104 (type_object_getset): Add "alignof".
10105
10106 2018-04-30 Tom Tromey <tom@tromey.com>
10107
10108 PR exp/17095:
10109 * NEWS: Update.
10110 * std-operator.def (UNOP_ALIGNOF): New operator.
10111 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10112 New.
10113 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10114 * c-lang.c (c_op_print_tab): Add alignof.
10115 * c-exp.y (ALIGNOF): New token.
10116 (exp): Add "ALIGNOF" production.
10117 (ident_tokens): Add _Alignof and alignof.
10118
10119 2018-04-30 Tom Tromey <tom@tromey.com>
10120
10121 * i386-tdep.c (i386_type_align): New function.
10122 (i386_gdbarch_init): Update.
10123 * gdbarch.sh (type_align): New method.
10124 * gdbarch.c, gdbarch.h: Rebuild.
10125 * arch-utils.h (default_type_align): Declare.
10126 * arch-utils.c (default_type_align): New function.
10127 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10128 (struct type) <align_log2>: New field.
10129 <instance_flags>: Now a bitfield.
10130 (TYPE_RAW_ALIGN): New macro.
10131 (type_align, type_raw_align, set_type_align): Declare.
10132 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10133 functions.
10134 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10135 (get_alignment, maybe_set_alignment): New functions.
10136 (read_structure_type, read_enumeration_type, read_array_type)
10137 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10138 (read_subrange_type, read_base_type): Set type alignment.
10139
10140 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10141
10142 * dwarf2read.c (read_index_from_section): Use bool.
10143
10144 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10145
10146 PR gdb/22950
10147 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10148 with #ifdef.
10149
10150 2018-04-29 John Reiser <jreiser@BitWagon.com>
10151
10152 PR build/22873
10153 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10154 last step, and do it atomically.
10155
10156 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10157
10158 * compile/compile-c-types.c (convert_int, convert_float):
10159 Update for C FE v1.
10160
10161 2018-04-27 Tom Tromey <tom@tromey.com>
10162
10163 PR rust/22545:
10164 * rust-lang.c (rust_inclusive_range_type_p): New function.
10165 (rust_range): Handle inclusive ranges.
10166 (rust_compute_range): Likewise.
10167 * rust-exp.y (struct rust_op) <inclusive>: New field.
10168 (DOTDOTEQ): New constant.
10169 (range_expr): Add "..=" productions.
10170 (operator_tokens): Add "..=" token.
10171 (ast_range): Add "inclusive" parameter.
10172 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10173 ranges.
10174 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10175 bounds values.
10176 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10177 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10178 Update comments.
10179 * expprint.c (print_subexp_standard): Handle new bounds values.
10180 (dump_subexp_body_standard): Likewise.
10181
10182 2018-04-27 Tom Tromey <tom@tromey.com>
10183
10184 * configure: Rebuild.
10185 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10186 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10187 "OVERRIDE".
10188 (class symbol_needs_eval_context): Likewise.
10189 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10190 (mock_mapped_index::symbol_name_at): Use "override". Remove
10191 "virtual".
10192 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10193 "override".
10194 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10195 * aarch64-tdep.c (instruction_reader::read): Use "override".
10196 (instruction_reader_test::read): Likewise.
10197 * arm-tdep.c (instruction_reader::read): Use "override".
10198 (instruction_reader_thumb::read): Likewise.
10199
10200 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10201
10202 PR remote/9665
10203 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10204 instead of remote_send.
10205 (remote_send): Remove.
10206
10207 2018-04-26 Pedro Alves <palves@redhat.com>
10208
10209 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10210 find_function_start_sal instead of find_pc_line.
10211
10212 2018-04-26 Pedro Alves <palves@redhat.com>
10213
10214 * breakpoint.c (set_breakpoint_location_function): Handle
10215 mst_data_gnu_ifunc.
10216 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10217 * elfread.c (elf_symtab_read): Give data symbols with
10218 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10219 (elf_rel_plt_read): Update comment.
10220 * linespec.c (convert_linespec_to_sals): Handle
10221 mst_data_gnu_ifunc.
10222 (minsym_found): Handle mst_data_gnu_ifunc.
10223 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10224 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10225 * parse.c (find_minsym_type_and_address): Handle
10226 mst_data_gnu_ifunc.
10227 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10228 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10229 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10230 comment.
10231 <mst_data_gnu_ifunc>: New enumerator.
10232
10233 2018-04-26 Pedro Alves <palves@redhat.com>
10234
10235 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10236 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10237 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10238 Handle it.
10239 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10240 (lookup_minimal_symbol_by_pc): Adjust.
10241 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10242 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10243 * minsyms.h (lookup_msym_prefer): New enum.
10244 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10245 parameter by a lookup_msym_prefer parameter.
10246
10247 2018-04-26 Pedro Alves <palves@redhat.com>
10248
10249 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10250 ends in "@plt" instead of looking at the symbol's section.
10251
10252 2018-04-26 Pedro Alves <palves@redhat.com>
10253
10254 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10255 all references.
10256 (find_pc_partial_function_gnu_ifunc): Rename to ...
10257 (find_pc_partial_function): ... this, and remove references to
10258 'is_gnu_ifunc_p'.
10259 (find_pc_partial_function): Delete old implementation.
10260 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10261
10262 2018-04-26 Pedro Alves <palves@redhat.com>
10263
10264 * linespec.c (struct bound_minimal_symbol_search_key): New.
10265 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10266 skip first line if we found a GNU ifunc minimal symbol by name.
10267 (compare_msymbols): Change parameters to work with a destructured
10268 lhs minsym.
10269 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10270 functions.
10271
10272 2018-04-26 Pedro Alves <palves@redhat.com>
10273
10274 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10275 ifunc targets here. Instead, if we have an ifunc minsym, use its
10276 address/name.
10277 (add_location_to_breakpoint): Store the minsym and the objfile in
10278 the breakpoint location.
10279 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10280 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10281 Record the minsym in the sal.
10282 * symtab.h (symtab_and_line) <msymbol>: New field.
10283
10284 2018-04-26 Pedro Alves <palves@redhat.com>
10285
10286 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10287 unless we actually resolved the ifunc.
10288
10289 2018-04-26 Pedro Alves <palves@redhat.com>
10290
10291 * c-exp.y (variable production): Prefer ifunc minsyms over
10292 regular function symbols.
10293 * symtab.c (find_gnu_ifunc): New function.
10294 * minsyms.h (lookup_msym_prefer): New enum.
10295 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10296 parameter by a lookup_msym_prefer parameter.
10297 * symtab.h (find_gnu_ifunc): New declaration.
10298
10299 2018-04-26 Pedro Alves <palves@redhat.com>
10300
10301 * blockframe.c (find_gnu_ifunc_target_type): New function.
10302 (find_function_type): New.
10303 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10304 return a value with a memory address.
10305 (eval_call): For calls to GNU ifunc functions, try to find the
10306 type of the target function from the type that the resolver
10307 returns.
10308 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10309 symbols.
10310 * infcall.c (find_function_return_type): Delete.
10311 (find_function_addr): Add 'function_type' parameter. For calls to
10312 GNU ifunc functions, try to find the type of the target function
10313 from the type that the resolver returns, and return it via
10314 FUNCTION_TYPE.
10315 (call_function_by_hand_dummy): Adjust to use the function type
10316 returned by find_function_addr.
10317 (find_function_addr): Add 'function_type' parameter and move
10318 description here.
10319 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10320 declarations.
10321
10322 2018-04-26 Pedro Alves <palves@redhat.com>
10323
10324 * c-exp.y (variable production): Skip finding an alias for ifunc
10325 symbols.
10326
10327 2018-04-26 Pedro Alves <palves@redhat.com>
10328
10329 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10330
10331 2018-04-25 Pedro Alves <palves@redhat.com>
10332
10333 * infcmd.c (kill_command): Print the pid as string, not the whole
10334 thread's ptid. Add comment. s/has been killed/killed/ in output
10335 message.
10336 * remote.c (remote_detach_1): Print the pid as string, not the
10337 whole thread's ptid.
10338
10339 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10340 Sergio Durigan Junior <sergiodj@redhat.com>
10341 Pedro Alves <palves@redhat.com>
10342
10343 * infcmd.c (kill_command): Print message when inferior has
10344 been killed.
10345 * inferior.c (print_inferior_events): Remove 'static'. Set as
10346 '1'.
10347 (add_inferior): Improve message printed when
10348 'print_inferior_events' is on.
10349 (exit_inferior): Remove message printed when
10350 'print_inferior_events' is on.
10351 (detach_inferior): Improve message printed when
10352 'print_inferior_events' is on.
10353 (initialize_inferiors): Use 'add_inferior_silent' to set
10354 'current_inferior_'.
10355 * inferior.h (print_inferior_events): Declare here as
10356 'extern'.
10357 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10358 '[Detaching...]' messages when 'print_inferior_events' is on.
10359 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10360 as prefix/suffix for messages. Remove periods. Fix erroneous
10361 'Detaching after fork from child...', replace it by '... from
10362 parent...'.
10363 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10364 prefix/suffix when printing 'Detaching...' messages. Print
10365 them when 'print_inferior_events' is on.
10366 * remote.c (remote_detach_1): Print message when detaching
10367 from inferior and '!is_fork_parent'.
10368
10369 2018-04-24 Tom Tromey <tom@tromey.com>
10370
10371 * cli-out.h: Reindent.
10372
10373 2018-04-24 Tom Tromey <tom@tromey.com>
10374
10375 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10376 (cli_ui_out::do_field_string): Use fputs_filtered.
10377 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10378
10379 2018-04-23 Tom Tromey <tom@tromey.com>
10380
10381 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10382 gdb::unique_xmalloc_ptr.
10383
10384 2018-04-23 Tom Tromey <tom@tromey.com>
10385
10386 * configure: Rebuild.
10387
10388 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10389
10390 PR gdb/23095
10391 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10392 prepare_for_testing. Set normal_bp to r_debug_state if target
10393 is bsd.
10394
10395 2018-04-21 Pedro Alves <palves@redhat.com>
10396 Rajendra SY <rajendra.sy@gmail.com>
10397
10398 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10399 * remote.c (extended_remote_attach): In all-stop mode, mark the
10400 thread as executing.
10401
10402 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10403
10404 * thread.c (thread_apply_all_command): Fix comment.
10405 (thread_command): Fix comment.
10406
10407 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10408
10409 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10410 parameter.
10411 * features/aarch64-core.c (create_feature_aarch64_core):
10412 Regenerate.
10413 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10414 Likewise.
10415 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10416 Likewise.
10417 * features/i386/32bit-avx512.c
10418 (create_feature_i386_32bit_avx512): Likewise.
10419 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10420 Likewise.
10421 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10422 Likewise.
10423 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10424 Likewise.
10425 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10426 Likewise.
10427 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10428 Likewise.
10429 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10430 Likewise.
10431 * features/i386/64bit-avx512.c
10432 (create_feature_i386_64bit_avx512): Likewise.
10433 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10434 Likewise.
10435 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10436 Likewise.
10437 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10438 Likewise.
10439 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10440 Likewise.
10441 * features/i386/64bit-segments.c
10442 (create_feature_i386_64bit_segments): Likewise.
10443 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10444 Likewise.
10445 * features/i386/x32-core.c
10446 (create_feature_i386_x32_core): Likewise.
10447 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10448 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10449 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10450 * target-descriptions.c: In generated code, don't pass xml
10451 filename.
10452
10453 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10454
10455 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10456 (print_xml_feature::visit_post): Likewise.
10457 (print_xml_feature::visit): Likewise.
10458 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10459 (print_xml_feature): Add new class.
10460 * regformats/regdat.sh: Null xmltarget on feature targets.
10461 * target-descriptions.c (struct target_desc): Add xmltarget.
10462 (maintenance_check_tdesc_xml_convert): Add unittest function.
10463 (tdesc_get_features_xml): Add function to get xml.
10464 (maintenance_check_xml_descriptions): Test xml generation.
10465 * xml-tdesc.c (string_read_description_xml): Add function.
10466 * xml-tdesc.h (string_read_description_xml): Add declaration.
10467
10468 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10469
10470 * features/Makefile: Add feature marker to targets with new style
10471 target descriptions.
10472 * regformats/aarch64.dat: Regenerate.
10473 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10474 * regformats/i386/amd64-avx-linux.dat: Likewise.
10475 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10476 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10477 * regformats/i386/amd64-linux.dat: Likewise.
10478 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10479 * regformats/i386/amd64.dat: Likewise.
10480 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10481 * regformats/i386/i386-avx-linux.dat: Likewise.
10482 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10483 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10484 * regformats/i386/i386-linux.dat: Likewise.
10485 * regformats/i386/i386-mmx-linux.dat: Likewise.
10486 * regformats/i386/i386-mpx-linux.dat: Likewise.
10487 * regformats/i386/i386.dat: Likewise.
10488 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10489 * regformats/i386/x32-avx-linux.dat: Likewise.
10490 * regformats/i386/x32-linux.dat: Likewise.
10491 * regformats/tic6x-c62x-linux.dat: Likewise.
10492 * regformats/tic6x-c64x-linux.dat: Likewise.
10493 * regformats/tic6x-c64xp-linux.dat: Likewise.
10494 * regformats/regdat.sh: Parse feature marker.
10495
10496 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10497
10498 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10499 (tdesc_osabi_name): Likewise.
10500 * target-descriptions.c (tdesc_architecture_name): Add new
10501 function.
10502 (tdesc_osabi_name): Likewise.
10503
10504 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10505
10506 * common/tdesc.c (tdesc_predefined_type): Move to here.
10507 (tdesc_named_type): Likewise.
10508 (tdesc_create_vector): Likewise.
10509 (tdesc_create_struct): Likewise.
10510 (tdesc_set_struct_size): Likewise.
10511 (tdesc_create_union): Likewise.
10512 (tdesc_create_flags): Likewise.
10513 (tdesc_create_enum): Likewise.
10514 (tdesc_add_field): Likewise.
10515 (tdesc_add_typed_bitfield): Likewise.
10516 (tdesc_add_bitfield): Likewise.
10517 (tdesc_add_flag): Likewise.
10518 (tdesc_add_enum_value): Likewise.
10519 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10520 (struct tdesc_type_vector): Likewise.
10521 (struct tdesc_type_field): Likewise.
10522 (struct tdesc_type_with_fields): Likewise.
10523 (tdesc_create_enum): Add declaration.
10524 (tdesc_add_typed_bitfield): Likewise.
10525 (tdesc_add_enum_value): Likewise.
10526 * target-descriptions.c (tdesc_type_field): Move from here.
10527 (tdesc_type_builtin): Likewise.
10528 (tdesc_type_vector): Likewise.
10529 (tdesc_type_with_fields): Likewise.
10530 (tdesc_predefined_types): Likewise.
10531 (tdesc_named_type): Likewise.
10532 (tdesc_create_vector): Likewise.
10533 (tdesc_create_struct): Likewise.
10534 (tdesc_set_struct_size): Likewise.
10535 (tdesc_create_union): Likewise.
10536 (tdesc_create_flags): Likewise.
10537 (tdesc_create_enum): Likewise.
10538 (tdesc_add_field): Likewise.
10539 (tdesc_add_typed_bitfield): Likewise.
10540 (tdesc_add_bitfield): Likewise.
10541 (tdesc_add_flag): Likewise.
10542 (tdesc_add_enum_value): Likewise.
10543 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10544 (tdesc_add_typed_bitfield): Likewise.
10545 (tdesc_add_enum_value): Likewise.
10546
10547 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10548
10549 * common/tdesc.c (tdesc_feature::accept): Move to here.
10550 (tdesc_feature::operator==): Likewise.
10551 (tdesc_create_reg): Likewise.
10552 * common/tdesc.h (tdesc_type_kind): Likewise.
10553 (struct tdesc_type): Likewise.
10554 (struct tdesc_feature): Likewise.
10555 * regformats/regdat.sh: Create a feature.
10556 * target-descriptions.c (tdesc_type_kind): Move from here.
10557 (tdesc_type): Likewise.
10558 (tdesc_type_up): Likewise.
10559 (tdesc_feature): Likewise.
10560 (tdesc_create_reg): Likewise.
10561
10562 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10563
10564 * Makefile.in: Add arch/tdesc.c
10565 * common/tdesc.c: New file.
10566 * common/tdesc.h (tdesc_element_visitor): Move to here.
10567 (tdesc_element): Likewise.
10568 (tdesc_reg): Likewise.
10569 (tdesc_reg_up): Likewise.
10570 * regformats/regdef.h (reg): Add offset to constructors.
10571 * target-descriptions.c (tdesc_element_visitor): Move from here.
10572 (tdesc_element): Likewise.
10573 (tdesc_reg): Likewise.
10574 (tdesc_reg_up): Likewise.
10575
10576 2018-04-17 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10579 discriminant field.
10580
10581 2018-04-17 Tom Tromey <tom@tromey.com>
10582
10583 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10584
10585 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10586
10587 * symtab.c (print_symbol_info): Skip printing filename and line
10588 number when `last' is NULL.
10589 (symtab_symbol_info): Use empty string instead of NULL for first
10590 invocation of print_symbol_info.
10591 (rbreak_command): Pass NULL to `last' parameter of
10592 print_symbol_info.
10593
10594 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10595
10596 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10597 instead of nullptr.
10598
10599 2018-04-16 Pedro Alves <palves@redhat.com>
10600
10601 * MAINTAINERS (sh): Remove.
10602 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10603 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10604 (ALLDEPFILES): Remove sh64-tdep.c.
10605 * NEWS: Mentions that support for SH-5/SH64 is removed.
10606 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10607 (sh*-*-openbsd*): Ditto.
10608 (sh64-*-elf*): Remove.
10609 (sh*): Remove.
10610 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10611 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10612 * sh-tdep.c: No longer include "sh64-tdep.h".
10613 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10614 * sh64-tdep.c, sh64-tdep.h: Remove files.
10615
10616 2018-04-16 Pedro Alves <palves@redhat.com>
10617
10618 * MAINTAINERS: Remove m88k.
10619 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10620 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10621 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10622 * NEWS: Mention that support for m88k was removed.
10623 * configure.host (m88*-*-*): Remove support.
10624 * configure.nat (m88k-*-*): Remove support.
10625 * configure.tgt (m88*-*-openbsd*): Remove.
10626 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10627
10628 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10629
10630 * configure.tgt (x86_tobjs): New variable.
10631 (amd64_tobjs, i386_tobjs): Use it.
10632
10633 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10634
10635 * symtab.c (print_symbol_info): Precede the symbol definition by
10636 the line number when available.
10637 * NEWS: Advertise this enhancement.
10638
10639 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10640
10641 * NEWS (New options): announce set/show record btrace cpu.
10642 * btrace.c: Include record-btrace.h.
10643 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10644 the vendor is unknown.
10645 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10646 Maybe overwrite the btrace configuration's cpu.
10647 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10648 (btrace_fetch): Add cpu parameter. Update callers.
10649 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10650 Maybe overwrite the btrace configuration's cpu. Skip enabling
10651 errata workarounds if the vendor is unknown.
10652 * python/py-record-btrace.c: Include record-btrace.h.
10653 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10654 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10655 * record-btrace.c (record_btrace_cpu_state_kind): New.
10656 (record_btrace_cpu): New.
10657 (set_record_btrace_cpu_cmdlist): New.
10658 (record_btrace_get_cpu): New.
10659 (require_btrace_thread, record_btrace_info)
10660 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10661 (cmd_set_record_btrace_cpu_none): New.
10662 (cmd_set_record_btrace_cpu_auto): New.
10663 (cmd_set_record_btrace_cpu): New.
10664 (cmd_show_record_btrace_cpu): New.
10665 (_initialize_record_btrace): Initialize set/show record btrace cpu
10666 commands.
10667 * record-btrace.h (record_btrace_get_cpu): New.
10668
10669 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10670
10671 * record.c (set_record_command): Fix typo in message.
10672
10673 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10674
10675 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10676
10677 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10678
10679 * infrun.c (process_event_stop_test): Call
10680 gdbarch_in_indirect_branch_thunk.
10681 * gdbarch.sh (in_indirect_branch_thunk): New.
10682 * gdbarch.c: Regenerated.
10683 * gdbarch.h: Regenerated.
10684 * x86-tdep.h: New.
10685 * x86-tdep.c: New.
10686 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10687 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10688 (ALLDEPFILES): Add x86-tdep.c.
10689 * arch-utils.h (default_in_indirect_branch_thunk): New.
10690 * arch-utils.c (default_in_indirect_branch_thunk): New.
10691 * i386-tdep: Include x86-tdep.h.
10692 (i386_in_indirect_branch_thunk): New.
10693 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10694 function.
10695 * amd64-tdep: Include x86-tdep.h.
10696 (amd64_in_indirect_branch_thunk): New.
10697 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10698
10699 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10700
10701 PR gdb/23053
10702 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10703 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10704 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10705 regression.
10706
10707 2018-04-12 Tom Tromey <tom@tromey.com>
10708
10709 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10710 (rust_evaluate_subexp): Likewise.
10711
10712 2018-04-12 Pedro Alves <palves@redhat.com>
10713
10714 * procfs.c (procfs_detach): Make forward declaration's prototype
10715 match definition's protototype.
10716 (proc_get_LDT_entry): Remove stale do_cleanups call.
10717
10718 2018-04-12 Pedro Alves <palves@redhat.com>
10719
10720 * target.h (target_ops::to_has_exited): Delete.
10721 (target_has_exited): Delete.
10722 * target-delegates.c: Regenerate.
10723
10724 2018-04-11 Pedro Alves <palves@redhat.com>
10725
10726 * target.c (fileio_fh_t::t): Add comment.
10727 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10728 (target_fileio_close): Handle a NULL target.
10729 (invalidate_fileio_fh): New.
10730 (target_close): Call it.
10731 * remote.c (remote_hostio_send_command): No longer check whether
10732 remote_desc is open.
10733
10734 2018-04-11 Pedro Alves <palves@redhat.com>
10735
10736 * target.c (fileio_fh_t): Make it a named struct instead of a
10737 typedef.
10738 (fileio_fh_t::is_closed): New method.
10739 (DEF_VEC_O (fileio_fh_t)): Remove.
10740 (fileio_fhandles): Now a std::vector.
10741 (is_closed_fileio_fh): Delete.
10742 (acquire_fileio_fd): Adjust. Rename parameters.
10743 (release_fileio_fd): Adjust.
10744 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10745 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10746 (target_fileio_close): Adjust.
10747
10748 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10749
10750 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10751 index.
10752
10753 2018-04-10 Pedro Alves <palves@redhat.com>
10754
10755 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10756 (scoped_finish_thread_state): New class.
10757 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10758 cleanup.
10759 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10760 (fetch_inferior_event, normal_stop): Likewise.
10761 * thread.c (finish_thread_state_cleanup): Delete.
10762
10763 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10764 Pedro Alves <palves@redhat.com>
10765
10766 * value.c: Include "selftest.h" and "common/array-view.h".
10767 (struct range) <operator ==>: New.
10768 (test_ranges_contain): New.
10769 (check_ranges_vector): New.
10770 (test_insert_into_bit_range_vector): New.
10771 (_initialize_values): Register selftests.
10772 * common/array-view.h (operator==, operator!=): New.
10773
10774 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10775
10776 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10777 an iterator.
10778 * inline-frame.c: Include <algorithm>.
10779 (struct inline_state): Add constructor.
10780 (inline_state_s): Remove.
10781 (DEF_VEC_O(inline_state_s)): Remove.
10782 (inline_states): Change type to std::vector.
10783 (find_inline_frame_state): Adjust to std::vector.
10784 (allocate_inline_frame_state): Remove.
10785 (clear_inline_frame_state): Adjust to std::vector.
10786 (skip_inline_frames): Adjust to std::vector.
10787
10788 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10789
10790 * tracepoint.h (struct trace_state_variable): Add constructor.
10791 <name>: Change type to std::string.
10792 * tracepoint.c (tsv_s): Remove.
10793 (DEF_VEC_O(tsv_s)): Remove.
10794 (tvariables): Change to std::vector.
10795 (create_trace_state_variable): Adjust to std::vector.
10796 (find_trace_state_variable): Likewise.
10797 (find_trace_state_variable_by_number): Likewise.
10798 (delete_trace_state_variable): Likewise.
10799 (trace_variable_command): Adjust to std::string.
10800 (delete_trace_variable_command): Likewise.
10801 (tvariables_info_1): Adjust to std::vector.
10802 (save_trace_state_variables): Likewise.
10803 (start_tracing): Likewise.
10804 (merge_uploaded_trace_state_variables): Adjust to std::vector
10805 and std::string.
10806 * target.h (struct target_ops)
10807 <to_download_trace_state_variable>: Pass reference to
10808 trace_state_variable.
10809 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10810 * target-delegates.c: Re-generate.
10811 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10812 (mi_tsv_deleted): Likewise.
10813 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10814 * remote.c (remote_download_trace_state_variable): Change
10815 pointer to reference and adjust.
10816 * make-target-delegates (parse_argtypes): Handle references.
10817 (write_function_header): Likewise.
10818 (munge_type): Likewise.
10819
10820 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10821
10822 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10823 string_view-selftests.c.
10824 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10825 testsuite.
10826 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10827 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10828 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10829 * unittests/basic_string_view/element_access/char/1.cc:
10830 Likewise.
10831 * unittests/basic_string_view/element_access/char/empty.cc:
10832 Likewise.
10833 * unittests/basic_string_view/element_access/char/front_back.cc:
10834 Likewise.
10835 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10836 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10837 Likewise.
10838 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10839 Likewise.
10840 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10841 Likewise.
10842 * unittests/basic_string_view/operations/compare/char/1.cc:
10843 Likewise.
10844 * unittests/basic_string_view/operations/compare/char/13650.cc:
10845 Likewise.
10846 * unittests/basic_string_view/operations/copy/char/1.cc:
10847 Likewise.
10848 * unittests/basic_string_view/operations/data/char/1.cc:
10849 Likewise.
10850 * unittests/basic_string_view/operations/find/char/1.cc:
10851 Likewise.
10852 * unittests/basic_string_view/operations/find/char/2.cc:
10853 Likewise.
10854 * unittests/basic_string_view/operations/find/char/3.cc:
10855 Likewise.
10856 * unittests/basic_string_view/operations/find/char/4.cc:
10857 Likewise.
10858 * unittests/basic_string_view/operations/rfind/char/1.cc:
10859 Likewise.
10860 * unittests/basic_string_view/operations/rfind/char/2.cc:
10861 Likewise.
10862 * unittests/basic_string_view/operations/rfind/char/3.cc:
10863 Likewise.
10864 * unittests/basic_string_view/operations/substr/char/1.cc:
10865 Likewise.
10866 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10867 * unittests/string_view-selftests.c: New file.
10868
10869 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10870
10871 * unittests/basic_string_view/capacity/1.cc: New file.
10872 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10873 * unittests/basic_string_view/cons/char/1.cc: New file.
10874 * unittests/basic_string_view/cons/char/2.cc: New file.
10875 * unittests/basic_string_view/cons/char/3.cc: New file.
10876 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10877 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10878 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10879 * unittests/basic_string_view/element_access/char/1.cc: New file.
10880 * unittests/basic_string_view/element_access/char/2.cc: New file.
10881 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10882 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10883 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10884 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10885 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10886 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10887 * unittests/basic_string_view/include.cc: New file.
10888 * unittests/basic_string_view/inserters/char/1.cc: New file.
10889 * unittests/basic_string_view/inserters/char/2.cc: New file.
10890 * unittests/basic_string_view/inserters/char/3.cc: New file.
10891 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10892 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10893 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10894 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10895 * unittests/basic_string_view/literals/types.cc: New file.
10896 * unittests/basic_string_view/literals/values.cc: New file.
10897 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10898 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10899 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10900 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10901 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10902 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10903 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10904 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10905 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10906 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10907 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10908 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10909 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10910 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10911 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10912 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10913 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10914 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10915 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10916 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10917 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10918 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10919 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10920 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10921 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10922 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10923 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10924 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10925 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10926 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10927 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10928 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10929 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10930 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10931 * unittests/basic_string_view/operators/char/2.cc: New file.
10932 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10933 * unittests/basic_string_view/range_access/char/1.cc: New file.
10934 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10935 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10936 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10937 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10938 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10939 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10940 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10941 * unittests/basic_string_view/typedefs.cc: New file.
10942 * unittests/basic_string_view/types/1.cc: New file.
10943
10944 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10945
10946 * common/gdb_string_view.h: Remove libstdc++ implementation
10947 details, adjust to gdb reality.
10948 * common/gdb_string_view.tcc: Likewise.
10949 * cli/cli-script.c (struct string_view): Remove.
10950 (user_args) <m_args>: Change element type to gdb::string_view.
10951 (user_args::insert_args): Adjust.
10952
10953 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10954
10955 * common/gdb_string_view.h: New file.
10956 * common/gdb_string_view.tcc: New file.
10957
10958 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10959
10960 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10961 * configure: Re-generate.
10962
10963 2018-04-09 Pedro Alves <palves@redhat.com>
10964
10965 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10966 (set_target_gdbarch): Call
10967 gdb::observers::architecture_changed.notify instead of
10968 observer_notify_architecture_changed.
10969
10970 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10971
10972 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10973 (do_restore_current_traceframe_cleanup): Remove.
10974 (restore_current_traceframe_cleanup_dtor): Remove.
10975 (make_cleanup_restore_current_traceframe): Remove.
10976 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10977 New.
10978 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10979 * infrun.c (fetch_inferior_event): Use
10980 scoped_restore_current_traceframe.
10981
10982 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10983
10984 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10985 Remove.
10986 <n_allocated_type_units>: Remove.
10987 <all_type_units>: Change to std::vector.
10988 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10989 to std::vector change.
10990 (dwarf2_per_objfile::get_cutu): Likewise.
10991 (dwarf2_per_objfile::get_tu): Likewise.
10992 (create_signatured_type_table_from_index): Likewise.
10993 (create_signatured_type_table_from_debug_names): Likewise.
10994 (dw2_symtab_iter_next): Likewise.
10995 (dw2_print_stats): Likewise.
10996 (dw2_expand_all_symtabs): Likewise.
10997 (dw2_expand_marked_cus): Likewise.
10998 (dw2_debug_names_iterator::next): Likewise.
10999 (dwarf2_initialize_objfile): Likewise.
11000 (add_signatured_type_cu_to_table): Likewise.
11001 (create_all_type_units): Likewise.
11002 (add_type_unit): Likewise.
11003 (struct tu_abbrev_offset): Add constructor.
11004 (build_type_psymtabs_1): Adjust to std::vector change.
11005 (print_tu_stats): Likewise.
11006 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11007 (write_debug_names): Likewise.
11008
11009 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11010
11011 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11012 Make an std::vector.
11013 <n_comp_units>: Remove.
11014 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11015 to std::vector change.
11016 (dwarf2_per_objfile::get_cutu): Likewise.
11017 (dwarf2_per_objfile::get_cu): Likewise.
11018 (create_cus_from_index): Likewise.
11019 (create_addrmap_from_index): Likewise.
11020 (create_addrmap_from_aranges): Likewise.
11021 (dwarf2_read_index): Likewise.
11022 (dw2_find_last_source_symtab): Likewise.
11023 (dw2_map_symtabs_matching_filename): Likewise.
11024 (dw2_symtab_iter_next): Likewise.
11025 (dw2_print_stats): Likewise.
11026 (dw2_expand_all_symtabs): Likewise.
11027 (dw2_expand_symtabs_with_fullname): Likewise.
11028 (dw2_expand_marked_cus): Likewise.
11029 (dw2_map_symbol_filenames): Likewise.
11030 (create_cus_from_debug_names): Likewise.
11031 (dwarf2_read_debug_names): Likewise.
11032 (dw2_debug_names_iterator::next): Likewise.
11033 (dwarf2_initialize_objfile): Likewise.
11034 (set_partial_user): Likewise.
11035 (dwarf2_build_psymtabs_hard): Likewise.
11036 (read_comp_units_from_section): Remove arguments, adjust to
11037 std::vector change.
11038 (create_all_comp_units): Adjust to std::vector and
11039 read_comp_units_from_section changes.
11040 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11041 change.
11042 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11043 (psyms_seen_size): Likewise.
11044 (write_gdbindex): Likewise.
11045 (write_debug_names): Likewise.
11046
11047 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11048
11049 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11050 with dwarf2_per_objfile.
11051 (create_cus_from_index): Likewise.
11052 (create_signatured_type_table_from_index): Likewise.
11053 (dwarf2_read_index): Likewise.
11054 (dwarf2_initialize_objfile): Likewise.
11055 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11056 per_cu rather than get_dwarf2_per_objfile.
11057
11058 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11059
11060 * dwarf2read.h (struct signatured_type): Forward declare.
11061 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11062 New methods.
11063 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11064 (dw2_get_cutu): ...this.
11065 (dwarf2_per_objfile::get_cu): Rename from...
11066 (dw2_get_cu): ...this.
11067 (dwarf2_per_objfile::get_tu): New.
11068 (create_addrmap_from_index): Adjust.
11069 (create_addrmap_from_aranges): Adjust.
11070 (dw2_find_last_source_symtab): Adjust.
11071 (dw2_map_symtabs_matching_filename): Adjust.
11072 (dw2_symtab_iter_next): Adjust.
11073 (dw2_print_stats): Adjust.
11074 (dw2_expand_all_symtabs): Adjust.
11075 (dw2_expand_symtabs_with_fullname): Adjust.
11076 (dw2_expand_marked_cus): Adjust.
11077 (dw_expand_symtabs_matching_file_matcher): Adjust.
11078 (dw2_map_symbol_filenames): Adjust.
11079 (dw2_debug_names_iterator::next): Adjust.
11080 (dwarf2_initialize_objfile): Adjust.
11081 (set_partial_user): Adjust.
11082 (dwarf2_build_psymtabs_hard): Adjust.
11083
11084 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11085
11086 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11087 Remove unused variables.
11088 (dw2_map_symtabs_matching_filename): Likewise.
11089 (dwarf2_record_block_ranges): Likewise.
11090 (dwarf2_read_addr_index): Likewise.
11091 (follow_die_offset): Likewise.
11092
11093 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11094
11095 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11096 to symbol_file_add_main.
11097
11098 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11099
11100 PR mi/22299
11101 * mi/mi-console.c (do_fputc_async_safe): New.
11102 (mi_console_file::write_async_safe): New.
11103 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11104 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11105 New.
11106 * ui-file.c (ui_file::putstrn): Adjust call to
11107 fputstrn_unfiltered.
11108 * utils.c (printchar): Replace do_fputs and do_fprintf
11109 parameters by do_fputc.
11110 (fputstr_filtered): Adjust call to printchar.
11111 (fputstr_unfiltered): Likewise.
11112 (fputstrn_filtered): Likewise.
11113 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11114 printchar.
11115 * utils.h (do_fputc_ftype): New typedef.
11116 (fputstrn_unfiltered): Add do_fputc parameter.
11117
11118 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11119
11120 * regformats/i386/i386-avx.dat: Remove.
11121
11122 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11123
11124 PR gdb/22979
11125 * amd64-tdep.c (amd64_none_init_abi): New function.
11126 (amd64_x32_none_init_abi): New function.
11127 (_initialize_amd64_tdep): Register handlers for x86-64 and
11128 x64_32 with GDB_OSABI_NONE.
11129 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11130 GDB_OSABI_NONE osabi.
11131
11132 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11133
11134 PR gdb/22980
11135 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11136 GDB_OSABI_NONE.
11137 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11138 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11139
11140 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11141
11142 * common/byte-vector.h (char_vector): New type.
11143 * target.h (target_read_alloc): Return
11144 gdb::optional<byte_vector>.
11145 (target_read_stralloc): Return gdb::optional<char_vector>.
11146 (target_get_osdata): Return gdb::optional<char_vector>.
11147 * target.c (target_read_alloc_1): Templatize. Replacement
11148 manual memory management with vector.
11149 (target_read_alloc): Change return type, adjust.
11150 (target_read_stralloc): Change return type, adjust.
11151 (target_get_osdata): Change return type, adjust.
11152 * auxv.c (struct auxv_info) <length>: Remove.
11153 <data>: Change type to gdb::optional<byte_vector>.
11154 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11155 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11156 (target_auxv_search): Adjust.
11157 (fprint_target_auxv): Adjust.
11158 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11159 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11160 (linux_make_corefile_notes): Adjust.
11161 * osdata.c (get_osdata): Adjust.
11162 * remote.c (remote_get_threads_with_qxfer): Adjust.
11163 (remote_memory_map): Adjust.
11164 (remote_traceframe_info): Adjust.
11165 (btrace_read_config): Adjust.
11166 (remote_read_btrace): Adjust.
11167 (remote_pid_to_exec_file): Adjust.
11168 * solib-aix.c (solib_aix_get_library_list): Adjust.
11169 * solib-dsbt.c (decode_loadmap): Don't free buf.
11170 (dsbt_get_initial_loadmaps): Adjust.
11171 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11172 * solib-target.c (solib_target_current_sos): Adjust.
11173 * tracepoint.c (sdata_make_value): Adjust.
11174 * xml-support.c (xinclude_start_include): Adjust.
11175 (xml_fetch_content_from_file): Adjust.
11176 * xml-support.h (xml_fetch_another): Change return type.
11177 (xml_fetch_content_from_file): Change return type.
11178 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11179 * xml-tdesc.c (file_read_description_xml): Adjust.
11180 (fetch_available_features_from_target): Change return type.
11181 (target_fetch_description_xml): Adjust.
11182 (target_read_description_xml): Adjust.
11183
11184 2018-04-06 Tom Tromey <tom@tromey.com>
11185
11186 * value.c (~value): Update.
11187 (struct value) <contents>: Now unique_xmalloc_ptr.
11188 (value_contents_bits_eq, allocate_value_contents)
11189 (value_contents_raw, value_contents_all_raw)
11190 (value_contents_for_printing, value_contents_for_printing_const)
11191 (set_value_enclosing_type): Update.
11192
11193 2018-04-06 Tom Tromey <tom@tromey.com>
11194
11195 * value.c (range_s): Remove typedef, VEC.
11196 (struct range): Add operator<.
11197 (range_lessthan): Remove.
11198 (ranges_contain): Change type.
11199 (~value): Update.
11200 (struct value) <unavailable, optimized_out>: Now std::vector.
11201 (value_entirely_available)
11202 (value_entirely_covered_by_range_vector)
11203 (value_entirely_unavailable, value_entirely_optimized_out):
11204 Update.
11205 (insert_into_bit_range_vector): Change argument type.
11206 (find_first_range_overlap): Likewise.
11207 (struct ranges_and_idx, value_contents_bits_eq)
11208 (require_not_optimized_out, require_available): Update.
11209 (ranges_copy_adjusted): Change argument types.
11210 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11211
11212 2018-04-06 Tom Tromey <tom@tromey.com>
11213
11214 * value.c (~value): Update.
11215 (struct value) <parent>: Now a value_ref_ptr.
11216 (value_parent, set_value_parent, value_address, value_copy):
11217 Update.
11218
11219 2018-04-06 Tom Tromey <tom@tromey.com>
11220
11221 * value.c (struct value): Add constructor, destructor, and member
11222 initializers.
11223 (allocate_value_lazy, value_decref): Update.
11224
11225 2018-04-06 Tom Tromey <tom@tromey.com>
11226
11227 * value.c (struct value) <released, next>: Remove.
11228 (all_values): Now a std::vector.
11229 (allocate_value_lazy): Update.
11230 (value_next): Remove.
11231 (value_mark, value_free_to_mark, release_value)
11232 (value_release_to_mark): Update.
11233
11234 2018-04-06 Tom Tromey <tom@tromey.com>
11235
11236 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11237 (free_value_chain): Remove.
11238 * value.c (free_value_chain): Remove.
11239 (value_release_to_mark): Return a std::vector.
11240 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11241 std::vector.
11242 (check_condition): Update.
11243 * eval.c (fetch_subexp_value): Change "val_chain" to a
11244 std::vector.
11245 * breakpoint.c (update_watchpoint): Update.
11246 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11247
11248 2018-04-06 Tom Tromey <tom@tromey.com>
11249
11250 * value.h (free_all_values): Remove.
11251 * value.c (free_all_values): Remove.
11252
11253 2018-04-06 Tom Tromey <tom@tromey.com>
11254
11255 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11256 (value_history_chain, value_history_count): Remove.
11257 (value_history): New global.
11258 (record_latest_value, access_value_history, show_values)
11259 (preserve_values): Update.
11260
11261 2018-04-06 Tom Tromey <tom@tromey.com>
11262
11263 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11264 * varobj.c (varobj_set_display_format, varobj_set_value)
11265 (install_default_visualizer, construct_visualizer)
11266 (install_new_value, ~varobj, varobj_get_value_type)
11267 (my_value_of_variable, varobj_editable_p): Update.
11268 * c-varobj.c (c_describe_child, c_value_of_variable)
11269 (cplus_number_of_children, cplus_describe_child): Update.
11270 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11271 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11272 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11273
11274 2018-04-06 Tom Tromey <tom@tromey.com>
11275
11276 * printcmd.c (last_examine_address): Change type to
11277 value_ref_ptr.
11278 (do_examine, x_command): Update.
11279
11280 2018-04-06 Tom Tromey <tom@tromey.com>
11281
11282 * value.c (release_value): Update.
11283 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11284 (struct bpstats) <val>: Now a value_ref_ptr.
11285 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11286 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11287 (~watchpoint, print_it_watchpoint, watch_command_1)
11288 (invalidate_bp_value_on_memory_change): Update.
11289
11290 2018-04-06 Tom Tromey <tom@tromey.com>
11291
11292 * varobj.c (varobj_clear_saved_item)
11293 (update_dynamic_varobj_children, install_new_value, ~varobj):
11294 Update.
11295 * value.h (value_incref): Move declaration earlier.
11296 (value_decref): Rename from value_free.
11297 (struct value_ref_policy): New.
11298 (value_ref_ptr): New typedef.
11299 (struct value_deleter): Remove.
11300 (gdb_value_up): Remove typedef.
11301 (release_value): Change return type.
11302 (release_value_or_incref): Remove.
11303 * value.c (set_value_parent): Update.
11304 (value_incref): Change return type.
11305 (value_decref): Rename from value_free.
11306 (value_free_to_mark, free_all_values, free_value_chain): Update.
11307 (release_value): Return value_ref_ptr.
11308 (release_value_or_incref): Remove.
11309 (record_latest_value, set_internalvar, clear_internalvar):
11310 Update.
11311 * stack.c (info_frame_command): Don't call value_free.
11312 * python/py-value.c (valpy_dealloc, valpy_new)
11313 (value_to_value_object): Update.
11314 * printcmd.c (do_examine): Update.
11315 * opencl-lang.c (lval_func_free_closure): Update.
11316 * mi/mi-main.c (register_changed_p): Don't call value_free.
11317 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11318 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11319 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11320 value_free.
11321 * guile/scm-value.c (vlscm_free_value_smob)
11322 (vlscm_scm_from_value): Update.
11323 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11324 (frame_unwind_register_unsigned, get_frame_register_bytes)
11325 (put_frame_register_bytes): Don't call value_free.
11326 * findvar.c (address_from_register): Don't call value_free.
11327 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11328 * dwarf2loc.c (entry_data_value_free_closure)
11329 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11330 (dwarf2_evaluate_loc_desc_full): Update.
11331 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11332 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11333 (~watchpoint, watch_command_1)
11334 (invalidate_bp_value_on_memory_change): Update.
11335 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11336
11337 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11338
11339 PR gdb/23022
11340 * warning.m4: Add -Wno-error=deprecated-register.
11341 * configure: Re-generate.
11342
11343 2018-04-05 Tom Tromey <tom@tromey.com>
11344
11345 * linespec.h: Remove include of "vec.h".
11346
11347 2018-04-05 Tom Tromey <tom@tromey.com>
11348
11349 * linespec.c (typep): Remove typedef.
11350 (find_methods, find_superclass_methods): Take a std::vector.
11351 (find_method): Use std::vector.
11352
11353 2018-04-05 Tom Tromey <tom@tromey.com>
11354
11355 * utils.c (compare_strings): Remove.
11356 * utils.h (compare_strings): Remove.
11357 * objc-lang.h (find_imps): Update.
11358 * objc-lang.c (find_methods): Take a std::vector.
11359 (uniquify_strings, find_imps): Likewise.
11360 * linespec.c (find_methods): Take a std::vector.
11361 (decode_objc): Use std::vector.
11362 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11363 a std::vector.
11364 (find_method, find_function_symbols): Use std::vector.
11365
11366 2018-04-05 Tom Tromey <tom@tromey.com>
11367
11368 * completer.c (completion_tracker::completion_tracker): Remove
11369 cast.
11370 (completion_tracker::discard_completions): Likewise.
11371 * breakpoint.c (ambiguous_names_p): Remove cast.
11372 * ada-lang.c (_initialize_ada_language): Remove cast.
11373 * utils.h (streq): Update.
11374 (streq_hash): Add new declaration.
11375 * utils.c (streq): Return bool.
11376 (streq_hash): New function.
11377
11378 2018-04-05 Tom Tromey <tom@tromey.com>
11379
11380 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11381 Remove a string copy.
11382
11383 2018-04-05 Tom Tromey <tom@tromey.com>
11384
11385 * linespec.c (filter_results): Use std::vector.
11386 (decode_line_2, decode_line_full): Update.
11387
11388 2018-04-05 Tom Tromey <tom@tromey.com>
11389
11390 * linespec.c (canonical_to_fullform): Return std::string.
11391 (filter_results): Update.
11392 (struct decode_line_2_item): Add constructor.
11393 <fullform, displayform>: Now std::string.
11394 (decode_line_2_compare_items): Now a std::sort comparator.
11395 (decode_line_2): Update.
11396
11397 2018-04-05 Tom Tromey <tom@tromey.com>
11398
11399 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11400 (unexpected_linespec_error): Update.
11401 (linespec_parse_basic, parse_linespec): Update.
11402
11403 2018-04-05 Tom Tromey <tom@tromey.com>
11404
11405 * linespec.c (linespec_parse_basic): Reindent.
11406
11407 2018-04-05 Tom Tromey <tom@tromey.com>
11408
11409 * minsyms.h (iterate_over_minimal_symbols): Update.
11410 * minsyms.c (iterate_over_minimal_symbols): Take a
11411 gdb::function_view.
11412 * linespec.c (struct collect_minsyms): Remove.
11413 (compare_msyms): Now a std::sort comparator.
11414 (add_minsym): Add parameters.
11415 (search_minsyms_for_name): Update. Use std::vector.
11416
11417 2018-04-03 Tom Tromey <tom@tromey.com>
11418
11419 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11420 gdb::byte_vector.
11421
11422 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11423
11424 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11425
11426 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11427
11428 PR gdb/16959
11429 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11430 printing static type.
11431
11432 2018-04-01 Tom Tromey <tom@tromey.com>
11433
11434 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11435 (rs6000_xfer_shared_libraries): Update.
11436
11437 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11438
11439 * common/gdb_vecs.h (char_ptr): Remove.
11440 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11441
11442 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11443
11444 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11445 with std::vector.
11446 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11447
11448 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11449
11450 * tracepoint.h (struct uploaded_tp): Initialize fields.
11451 <actions, step_actions, cmd_strings>: Change type to
11452 std::vector<char *>.
11453 * tracepoint.c (get_uploaded_tp): Allocate with new.
11454 (free_uploaded_tps): Free with delete.
11455 (parse_tracepoint_definition): Adjust to std::vector change.
11456 * breakpoint.c (read_uploaded_action): Likewise.
11457 (create_tracepoint_from_upload): Likewise.
11458 * ctf.c (ctf_write_uploaded_tp): Likewise.
11459 (SET_ARRAY_FIELD): Likewise.
11460 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11461
11462 2018-03-30 Tom Tromey <tom@tromey.com>
11463
11464 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11465 std::unique_ptr.
11466 (svr4_keep_data_in_core): Update.
11467 (svr4_read_so_list): Update.
11468
11469 2018-03-30 Tom Tromey <tom@tromey.com>
11470
11471 * windows-nat.c (handle_output_debug_string, handle_exception):
11472 Update.
11473 * target.h (target_read_string): Update.
11474 * target.c (target_read_string): Change "string" to
11475 unique_xmalloc_ptr.
11476 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11477 Update.
11478 * solib-frv.c (frv_current_sos): Update.
11479 * solib-dsbt.c (dsbt_current_sos): Update.
11480 * solib-darwin.c (darwin_current_sos): Update.
11481 * linux-thread-db.c (inferior_has_bug): Update.
11482 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11483 Update. Remove alloca.
11484 * ada-lang.c (ada_main_name): Update.
11485
11486 2018-03-30 Tom Tromey <tom@tromey.com>
11487
11488 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11489 (struct dwo_file_deleter): New.
11490 (dwo_file_up): New typedef.
11491 (open_and_init_dwo_file): Use dwo_file_up.
11492 (free_dwo_file_cleanup): Remove.
11493
11494 2018-03-30 Tom Tromey <tom@tromey.com>
11495
11496 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11497 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11498
11499 2018-03-30 Tom Tromey <tom@tromey.com>
11500
11501 * dwarf2read.c (class free_cached_comp_units): New class.
11502 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11503 (free_cached_comp_units): Remove function.
11504
11505 2018-03-30 Tom Tromey <tom@tromey.com>
11506
11507 * utils.h (make_cleanup_unpush_target): Remove.
11508 * inf-ptrace.c (struct target_unpusher): New.
11509 (target_unpush_up) New typedef.
11510 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11511 target_unpush_up.
11512 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11513
11514 2018-03-27 Tom Tromey <tom@tromey.com>
11515
11516 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11517
11518 2018-03-27 Pedro Alves <palves@redhat.com>
11519 Tom Tromey <tom@tromey.com>
11520
11521 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11522 destructor. Now a class.
11523 (gdb_readline_wrapper_cleanup): Remove function.
11524 (gdb_readline_wrapper): Remove cleanups.
11525
11526 2018-03-27 Tom Tromey <tom@tromey.com>
11527
11528 * typeprint.h (struct type_print_options) <local_typedefs,
11529 global_typedefs>: Remove "struct" keyword.
11530 (class typedef_hash_table): New class.
11531 (recursively_update_typedef_hash, add_template_parameters)
11532 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11533 (find_typedef_in_hash): Don't declare.
11534 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11535 (typedef_hash_table::recursively_update): Rename from
11536 recursively_update_typedef_hash. Now a member.
11537 (typedef_hash_table::add_template_parameters): Rename from
11538 add_template_parameters. Now a member.
11539 (typedef_hash_table::typedef_hash_table): Now a constructor;
11540 rename from create_typedef_hash.
11541 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11542 rename from free_typedef_hash.
11543 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11544 (do_free_global_table): Remove.
11545 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11546 from copy_type_recursive.
11547 (create_global_typedef_table): Remove.
11548 (typedef_hash_table::find_global_typedef): Now a member of
11549 typedef_hash_table.
11550 (typedef_hash_table::find_typedef): Rename from
11551 find_typedef_in_hash; now a member.
11552 (whatis_exp): Update.
11553 * extension.h (struct ext_lang_type_printers): Add constructor and
11554 destructor.
11555 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11556 declare.
11557 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11558 Now a constructor; rename from start_ext_lang_type_printers.
11559 (ext_lang_type_printers): Now a destructor; rename from
11560 free_ext_lang_type_printers.
11561 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11562 Update.
11563 (c_type_print_base_struct_union): Update. Remove cleanups.
11564
11565 2018-03-27 Tom Tromey <tom@tromey.com>
11566
11567 * dwarf-index-write.c: Include <cmath>.
11568
11569 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11570
11571 * NEWS: Add entry describing new "set|show varsize-limit" command.
11572 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11573 command.
11574 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11575 "set variable".
11576
11577 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11578
11579 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11580 dwarf-index-write.c
11581 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11582 * dwarf-index-common.c: New file.
11583 * dwarf-index-common.h: New file.
11584 * dwarf-index-write.c: New file.
11585 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11586 (struct dwarf2_section_info): Move from here.
11587 (dwarf2_section_info_def): Likewise.
11588 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11589 (offset_type): Likewise.
11590 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11591 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11592 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11593 (byte_swap): Likewise.
11594 (MAYBE_SWAP): Likewise.
11595 (dwarf2_per_cu_ptr): Likewise.
11596 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11597 (struct tu_stats): Likewise.
11598 (struct dwarf2_per_objfile): Likewise.
11599 (struct dwarf2_per_cu_data): Likewise.
11600 (struct signatured_type): Likewise.
11601 (sig_type_ptr): Likewise.
11602 (DEF_VEC_P (sig_type_ptr)): Likewise.
11603 (INDEX4_SUFFIX): Likewise.
11604 (INDEX5_SUFFIX): Likewise.
11605 (DEBUG_STR_SUFFIX): Likewise.
11606 (dwarf2_read_section): Make non-static.
11607 (mapped_index_string_hash): Move from here.
11608 (dwarf5_djb_hash): Likewise.
11609 (file_write): Likewise.
11610 (class data_buf): Likewise.
11611 (struct symtab_index_entry): Likewise.
11612 (struct mapped_symtab): Likewise.
11613 (find_slot): Likewise.
11614 (hash_expand): Likewise.
11615 (add_index_entry): Likewise.
11616 (uniquify_cu_indices): Likewise.
11617 (class c_str_view): Likewise.
11618 (class c_str_view_hasher): Likewise.
11619 (class vector_hasher): Likewise.
11620 (write_hash_table): Likewise.
11621 (psym_index_map): Likewise.
11622 (struct addrmap_index_data): Likewise.
11623 (add_address_entry): Likewise.
11624 (add_address_entry_worker): Likewise.
11625 (write_address_map): Likewise.
11626 (symbol_kind): Likewise.
11627 (write_psymbols): Likewise.
11628 (struct signatured_type_index_data): Likewise.
11629 (write_one_signatured_type): Likewise.
11630 (recursively_count_psymbols): Likewise.
11631 (recursively_write_psymbols): Likewise.
11632 (class debug_names): Likewise.
11633 (check_dwarf64_offsets): Likewise.
11634 (psyms_seen_size): Likewise.
11635 (write_gdbindex): Likewise.
11636 (write_debug_names): Likewise.
11637 (assert_file_size): Likewise.
11638 (write_psymtabs_to_index): Likewise.
11639 (save_gdb_index_command): Likewise.
11640 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11641 command.
11642 * dwarf2read.h: New file.
11643
11644 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11645
11646 PR gdb/22670
11647 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11648 symbol name if the CU's language stores symbol names in linkage
11649 format.
11650 * language.h (struct language_defn)
11651 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11652 all instances of this struct.
11653
11654 2018-03-26 Tom Tromey <tom@tromey.com>
11655
11656 * stack.c (backtrace_command_1): Remove verbose code.
11657
11658 2018-03-26 Tom Tromey <tom@tromey.com>
11659
11660 * python/py-framefilter.c (py_print_type): Don't catch
11661 exceptions. Return void.
11662 (py_print_value): Likewise.
11663 (py_print_single_arg): Likewise.
11664 (enumerate_args): Don't catch exceptions.
11665 (py_print_args): Likewise.
11666 (py_print_frame): Likewise.
11667 (gdbpy_apply_frame_filter): Catch exceptions here.
11668
11669 2018-03-26 Tom Tromey <tom@tromey.com>
11670
11671 * stack.c (_initialize_stack): Remove trailing newlines from help
11672 text. Add "Usage" line to "backtrace" help.
11673
11674 2018-03-26 Tom Tromey <tom@tromey.com>
11675
11676 PR python/16486:
11677 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11678
11679 2018-03-26 Tom Tromey <tom@tromey.com>
11680
11681 * python/py-framefilter.c (py_print_single_arg): Return
11682 EXT_LANG_BT_ERROR from catch.
11683
11684 2018-03-26 Tom Tromey <tom@tromey.com>
11685
11686 PR backtrace/15584:
11687 * stack.c (backtrace_command_1): Move some code into no-filters
11688 "if".
11689
11690 2018-03-26 Tom Tromey <tom@tromey.com>
11691
11692 * python/py-framefilter.c (throw_quit_or_print_exception): New
11693 function.
11694 (gdbpy_apply_frame_filter): Use it.
11695
11696 2018-03-26 Tom Tromey <tom@tromey.com>
11697
11698 PR cli/17716:
11699 * python/py-framefilter.c (py_print_type, py_print_value)
11700 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11701 RETURN_MASK_ERROR.
11702
11703 2018-03-26 Tom Tromey <tom@tromey.com>
11704
11705 * python/py-framefilter.c (enumerate_args): Use
11706 gdb::unique_xmalloc_ptr.
11707
11708 2018-03-26 Tom Tromey <tom@tromey.com>
11709
11710 * python/py-framefilter.c (py_print_frame): Return
11711 EXT_LANG_BT_OK.
11712 (gdbpy_apply_frame_filter): Update comment.
11713 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11714 Remove.
11715 <EXT_LANG_BT_NO_FILTERS>: Change value.
11716
11717 2018-03-26 Tom Tromey <tom@tromey.com>
11718
11719 PR backtrace/15582:
11720 * stack.c (backtrace_command): Parse "hide" argument.
11721 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11722 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11723 constant.
11724
11725 2018-03-26 Tom Tromey <tom@tromey.com>
11726
11727 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11728 add "flags".
11729 (backtrace_command): Remove "fulltrace", add "flags".
11730
11731 2018-03-26 Tom Tromey <tom@tromey.com>
11732
11733 * stack.c (backtrace_command): Rewrite command line parsing.
11734
11735 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11736
11737 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11738
11739 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11740
11741 * filename-seen-cache.h: Add include guard.
11742
11743 2018-03-26 Keith Seitz <keiths@redhat.com>
11744
11745 * symfile.c (place_section): Remove "struct" from section_addr_info
11746 in comment.
11747 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11748 "struct" keyword from section_addr_info.
11749
11750 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11751
11752 * regformats/regdef.h (reg): Add constructors.
11753
11754 2018-03-25 Pedro Alves <palves@redhat.com>
11755
11756 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11757 if then/else bodies in var_func_name extraction.
11758
11759 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11760
11761 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11762 lookup_minimal_symbol() to find symbol entry.
11763 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11764
11765 2018-03-23 Keith Seitz <keiths@redhat.com>
11766
11767 PR c++/22968
11768 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11769 nested type definitions for C++, too.
11770
11771 2018-03-23 Tom Tromey <tom@tromey.com>
11772
11773 * machoread.c (struct oso_el): Add a constructor. Don't define as
11774 a typedef.
11775 (macho_register_oso): Remove.
11776 (macho_symtab_read): Take a std::vector.
11777 (oso_el_compare_name): Now a std::sort comparator.
11778 (macho_symfile_read_all_oso): Take a std::vector.
11779 (macho_symfile_read): Use std::vector. Remove cleanups.
11780
11781 2018-03-22 Tom Tromey <tom@tromey.com>
11782
11783 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11784 (record_full_goto_bookmark): Use std::string.
11785
11786 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11787
11788 PR tdep/18295
11789 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11790 a single mask.
11791
11792 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11793
11794 * rs6000-tdep.c (store_insn_p): New function.
11795 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11796 and cr_reg to their unshifted values. Use store_insn_p to
11797 match LR saves using either R1 or fdata->alloca_reg. Use
11798 store_insn_p to match CR saves. Set alloca_reg_offset
11799 when alloca_reg and framep are set. Remove lr_reg shift
11800 when assigning to fdata->lr_register.
11801
11802 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11803
11804 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11805 command line args instead of emitting a warning.
11806
11807 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11808
11809 * tracepoint.h (struct static_tracepoint_marker): Initialize
11810 fields, define default constructor, move constructor and move
11811 assignment, disable the rest.
11812 <str_id, extra>: Make std::string.
11813 (release_static_tracepoint_marker): Remove.
11814 (free_current_marker): Remove.
11815 * tracepoint.c (free_current_marker): Remove.
11816 (parse_static_tracepoint_marker_definition): Adjust to
11817 std::string, use new hex2str overload.
11818 (release_static_tracepoint_marker): Remove.
11819 (print_one_static_tracepoint_marker): Get marker by reference
11820 and adjust to std::string.
11821 (info_static_tracepoint_markers_command): Adjust to std::vector
11822 changes
11823 * target.h (static_tracepoint_marker_p): Remove typedef.
11824 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11825 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11826 bool.
11827 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11828 * target-debug.h
11829 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11830 (target_debug_print_std_vector_static_tracepoint_marker): New.
11831 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11832 to...
11833 (target_debug_print_static_tracepoint_marker_p): ... this.
11834 * target-delegates.c: Re-generate.
11835 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11836 Make std::string.
11837 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11838 (decode_static_tracepoint_spec): Adjust to std::vector.
11839 (tracepoint_print_one_detail): Adjust to std::string.
11840 (strace_marker_decode_location): Adjust to std::string.
11841 (update_static_tracepoint): Adjust to std::string, remove call
11842 to release_static_tracepoint_marker.
11843 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11844 Adjust to std::vector.
11845 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11846 (remote_static_tracepoint_markers_by_strid): Adjust to
11847 std::vector.
11848 * common/rsp-low.h (hex2str): New overload with explicit count
11849 of bytes.
11850 * common/rsp-low.c (hex2str): New overload with explicit count
11851 of bytes.
11852 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11853 (_initialize_rsp_low_selftests): Add test_hex2str test.
11854 * unittests/tracepoint-selftests.c
11855 (test_parse_static_tracepoint_marker_definition): Adjust to
11856 std::string.
11857
11858 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11859
11860 * tracepoint.c (parse_static_tracepoint_marker_definition):
11861 Consider case where the definition is followed by more
11862 definitions.
11863 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11864 tracepoint-selftests.c.
11865 * unittests/tracepoint-selftests.c: New.
11866
11867 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11868
11869 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11870 Carvalho.
11871
11872 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11873
11874 * symtab.c (find_pc_sect_line): fixed indentation.
11875
11876 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11877
11878 * symtab.c (find_pc_sect_line): now uses binary search.
11879
11880 2018-03-19 Tom Tromey <tom@tromey.com>
11881
11882 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11883 "IDENT" production.
11884
11885 2018-03-19 Pedro Alves <palves@redhat.com>
11886 Tom Tromey <tom@tromey.com>
11887
11888 * unittests/observable-selftests.c: New file.
11889 * common/observable.h: New file.
11890 * observable.h: New file.
11891 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11892 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11893 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11894 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11895 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11896 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11897 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11898 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11899 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11900 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11901 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11902 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11903 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11904 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11905 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11906 tui/tui-interp.c, valops.c: Update all users.
11907 * tui/tui-hooks.c (tui_bp_created_observer)
11908 (tui_bp_deleted_observer, tui_bp_modified_observer)
11909 (tui_inferior_exit_observer, tui_before_prompt_observer)
11910 (tui_normal_stop_observer, tui_register_changed_observer):
11911 Remove.
11912 (tui_observers_token): New global.
11913 (attach_or_detach, tui_attach_detach_observers): New functions.
11914 (tui_install_hooks, tui_remove_hooks): Use
11915 tui_attach_detach_observers.
11916 * record-btrace.c (record_btrace_thread_observer): Remove.
11917 (record_btrace_thread_observer_token): New global.
11918 * observer.sh: Remove.
11919 * observer.c: Rename to observable.c.
11920 * observable.c (namespace gdb_observers): Define new objects.
11921 (observer_debug): Move into gdb_observers namespace.
11922 (struct observer, struct observer_list, xalloc_observer_list_node)
11923 (xfree_observer_list_node, generic_observer_attach)
11924 (generic_observer_detach, generic_observer_notify): Remove.
11925 (_initialize_observer): Update.
11926 Don't include observer.inc.
11927 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11928 (clean mostlyclean): Likewise.
11929 (observer.h, observer.inc): Remove targets.
11930 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11931 (COMMON_SFILES): Use observable.c, not observer.c.
11932 * .gitignore: Remove observer.h.
11933
11934 2018-03-18 Tom Tromey <tom@tromey.com>
11935
11936 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11937 gdb::def_vector.
11938 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11939
11940 2018-03-17 Tom Tromey <tom@tromey.com>
11941
11942 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11943
11944 2018-03-17 Tom Tromey <tom@tromey.com>
11945
11946 * target.c (class scoped_target_fd): New.
11947 (target_fileio_close_cleanup): Remove.
11948 (target_fileio_read_alloc_1): Use scoped_target_fd.
11949
11950 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11951
11952 * silent-rules.mk: New.
11953 * Makefile.in: Include silent-rules.mk
11954 (srcdir, VPATH, top_srcdir): Move up.
11955 (COMPILE): Add ECHO_CXX.
11956 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11957 (init.c): Add ECHO_INIT_C.
11958 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11959 (version.c): Add ECHO_GEN.
11960 (printcmd.o): Add ECHO_CXX.
11961 (target-float.o): Add ECHO_CXX.
11962 (ada-exp.o): Add ECHO_CXX.
11963 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11964 (insight$(EXEEXT)): Add ECHO_CXXLD.
11965 * gnulib/configure.ac: Add AM_SILENT_RULES.
11966 * gnulib/aclocal.m4: Re-generate.
11967 * gnulib/configure: Re-generate.
11968 * gnulib/import/Makefile.in: Re-generate.
11969
11970 2018-03-16 Tom Tromey <tom@tromey.com>
11971
11972 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11973 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11974 * utils.c (do_free_section_addr_info)
11975 (make_cleanup_free_section_addr_info): Remove.
11976 * symfile.h (struct other_sections): Add constructor.
11977 (struct section_addr_info): Remove.
11978 (section_addr_info): New typedef.
11979 (struct sym_fns) <sym_offsets>: Change type of parameter.
11980 (build_section_addr_info_from_objfile)
11981 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11982 (default_symfile_offsets, symbol_file_add)
11983 (symbol_file_add_from_bfd)
11984 (build_section_addr_info_from_section_table): Update.
11985 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11986 * symfile.c (alloc_section_addr_info): Remove.
11987 (build_section_addr_info_from_section_table): Change return type.
11988 Update.
11989 (build_section_addr_info_from_bfd)
11990 (build_section_addr_info_from_objfile): Likewise.
11991 (free_section_addr_info): Remove.
11992 (relative_addr_info_to_section_offsets): Change type of "addrs".
11993 (addrs_section_compar): Now a std::sort comparator.
11994 (addrs_section_sort): Change return type.
11995 (addr_info_make_relative): Change type of "addrs". Update.
11996 (default_symfile_offsets, syms_from_objfile_1)
11997 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11998 (symbol_file_add_separate): Update.
11999 (symbol_file_add): Change type of "addrs". Update.
12000 (add_symbol_file_command): Update. Remove cleanups.
12001 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
12002 cleanups.
12003 * symfile-debug.c (debug_sym_offsets): Change type of "info".
12004 * solib.c (solib_read_symbols): Update.
12005 * objfiles.c (objfile_relocate): Update. Remove cleanups.
12006 * machoread.c (macho_symfile_offsets): Update.
12007 * jit.c (jit_bfd_try_read_symtab): Update.
12008
12009 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
12010
12011 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12012 unittests/utils-selftests.c.
12013 * unittests/utils-selftests.c: New file.
12014
12015 2018-03-14 Tom Tromey <tom@tromey.com>
12016
12017 PR cli/14977:
12018 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12019 for NULL.
12020
12021 2018-03-14 Tom Tromey <tom@tromey.com>
12022
12023 PR cli/19918:
12024 * printcmd.c (printf_pointer): Allow "-" in format.
12025
12026 2018-03-14 Tom Tromey <tom@tromey.com>
12027
12028 * printcmd.c (_initialize_printcmd): Add usage to printf.
12029
12030 2018-03-14 Yao Qi <qiyao@sourceware.org>
12031
12032 * MAINTAINERS: Update my email address.
12033
12034 2018-03-13 Tom Tromey <tom@tromey.com>
12035
12036 * machoread.c (macho_check_dsym): Change filenamep to a
12037 std::string*.
12038 (macho_symfile_read): Update.
12039 * symfile.c (load_command): Use std::string.
12040
12041 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12042
12043 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12044 to error message string.
12045 (riscv_register_name): Use xsnprintf instead of sprintf.
12046 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12047 internal_error.
12048 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12049 error.
12050 (riscv_push_dummy_call): Likewise.
12051
12052 2018-03-12 Tom Tromey <tom@tromey.com>
12053
12054 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12055 Use gdb::byte_vector.
12056 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12057
12058 2018-03-12 Yao Qi <yao.qi@linaro.org>
12059
12060 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12061 parameter type to readable_regcache.
12062 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12063 the declaration.
12064
12065 2018-03-11 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2read.c (struct nextfield): Add initializers.
12068 (struct nextfnfield): Remove.
12069 (struct fnfieldlist): Add initializers. Remove "length" and
12070 "head", use std::vector.
12071 (struct decl_field_list): Remove.
12072 (struct field_info): Add initializers.
12073 <fields, baseclasses>: Now std::vector.
12074 <nbaseclasses, nfnfields, typedef_field_list_count,
12075 nested_types_list_count>: Remove.
12076 (dwarf2_add_field, dwarf2_add_type_defn)
12077 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12078 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12079 (process_structure_scope): Update.
12080
12081 2018-03-11 Tom Tromey <tom@tromey.com>
12082
12083 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12084 for use by std::sort.
12085 (build_type_psymtabs_1): Use std::vector.
12086
12087 2018-03-09 Eli Zaretskii <eliz@gnu.org>
12088
12089 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12090 and LIBMPFR in the printed configuration.
12091
12092 2018-03-08 Tom Tromey <tom@tromey.com>
12093
12094 * source.c (get_filename_and_charpos): Use scoped_fd.
12095 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12096 (procfs_pidlist): Likewise.
12097 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12098 (iterate_over_mappings): Likewise.
12099
12100 2018-03-08 Tom Tromey <tom@tromey.com>
12101
12102 * infcall.c (struct call_return_meta_info)
12103 <stack_temporaries_enabled>: Remove.
12104 (get_call_return_value, call_function_by_hand_dummy): Update.
12105 * thread.c (disable_thread_stack_temporaries): Remove.
12106 (enable_thread_stack_temporaries): Remove.
12107 (thread_stack_temporaries_enabled_p): Return bool.
12108 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12109 (get_last_thread_stack_temporary): Update.
12110 * eval.c (evaluate_subexp): Update.
12111 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12112 class, not a function.
12113 (value_ptr, value_vec): Remove typedefs.
12114 (class thread_info) <stack_temporaries_enabled>: Now bool.
12115 <stack_temporaries>: Now a std::vector.
12116 (thread_stack_temporaries_enabled_p)
12117 (value_in_thread_stack_temporaries): Return bool.
12118
12119 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12120
12121 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12122 (getpkt_or_notif_sane_1): Likewise.
12123
12124 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12125
12126 * build-id.c (build_id_to_debug_bfd): Use std::string.
12127
12128 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12129
12130 * build-id.c (find_separate_debug_file_by_buildid): Return
12131 std::string.
12132 * build-id.h (find_separate_debug_file_by_buildid): Return
12133 std::string.
12134 * coffread.c (coff_symfile_read): Adjust to std::string.
12135 * elfread.c (elf_symfile_read): Adjust to std::string.
12136 * symfile.c (separate_debug_file_exists): Change parameter to
12137 std::string.
12138 (find_separate_debug_file): Return std::string.
12139 (find_separate_debug_file_by_debuglink): Return std::string.
12140 * symfile.h (find_separate_debug_file_by_debuglink): Return
12141 std::string.
12142
12143 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12144
12145 * common/xml-utils.c (xml_escape_text): Move code to...
12146 (xml_escape_text_append): ... this new function.
12147 * common/xml-utils.h (xml_escape_text_append): New declaration.
12148 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12149 New function.
12150 (_initialize_xml_utils): register test_xml_escape_text_append as
12151 a selftest.
12152
12153 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12154
12155 * defs.h: Remove MAX_REGISTER_SIZE.
12156 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12157 asserts.
12158 * python/py-unwind.c (pyuw_sniffer): Likewise.
12159
12160 2018-03-07 Tom Tromey <tom@tromey.com>
12161
12162 * linux-tdep.c (linux_info_proc): Update.
12163 * target.h (struct target_ops) <to_fileio_readlink>: Return
12164 optional<string>.
12165 (target_fileio_readlink): Return optional<string>.
12166 * remote.c (remote_hostio_readlink): Return optional<string>.
12167 * inf-child.c (inf_child_fileio_readlink): Return
12168 optional<string>.
12169 * target.c (target_fileio_readlink): Return optional<string>.
12170
12171 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12172
12173 * regcache.c (cooked_read_test): Add riscv to the list of
12174 architectures that have a save_reggroup.
12175
12176 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12177
12178 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12179 value is not a dynamic class object.
12180
12181 2018-03-06 Tom Tromey <tom@tromey.com>
12182
12183 * rust-exp.y: Formatting fixes.
12184
12185 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12186
12187 * riscv-tdep.c (riscv_register_name): Remove target description
12188 support.
12189 (riscv_gdbarch_init): Remove target description check.
12190
12191 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12192
12193 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12194 comment.
12195 * riscv-tdep.h: Likewise.
12196
12197 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12198
12199 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12200 (riscv_pseudo_register_write): Delete.
12201 (riscv_gdbarch_init): Remove all use of pseudo registers.
12202
12203 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12204
12205 * record-btrace.c (btrace_print_lines): Replace cleanup
12206 parameter with RAII equivalents.
12207 (btrace_insn_history): Replace cleanup with RAII equivalents.
12208 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12209 make_cleanup_ui_out_tuple_begin_end): Remove.
12210 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12211 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12212 make_cleanup_ui_out_list_begin_end): Remove.
12213
12214 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12215
12216 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12217 parameter types to std::vector. Use bool.
12218 (record_btrace_wait): Replace VEC(tp_t) with
12219 std::vector<thread_info *>.
12220 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12221
12222 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12223
12224 * record-btrace.c (record_btrace_disable_callback): Remove.
12225 (struct scoped_btrace_disable): New.
12226 (record_btrace_open): Use scoped_btrace_disable.
12227
12228 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12229
12230 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12231 reading values from registers.
12232
12233 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12234
12235 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12236 where appropriate.
12237
12238 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12239
12240 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12241 change parameter type. Use GDB's print functions, and use
12242 core_addr_to_string where appropriate.
12243 (riscv_push_dummy_call): Use core_addr_to_string where
12244 appropriate, update call to riscv_print_arg_location, and reindent
12245 a few lines.
12246 (riscv_return_value): Update call to riscv_print_arg_location.
12247
12248 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12249 Tim Newsome <tim@sifive.com>
12250 Albert Ou <a0u@eecs.berkeley.edu>
12251 Darius Rad <darius@bluespec.com>
12252
12253 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12254 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12255 (ALLDEPFILES): Add riscv-tdep.c
12256 * configure.tgt: Add riscv support.
12257 * riscv-tdep.c: New file.
12258 * riscv-tdep.h: New file.
12259 * NEWS: Mention new target.
12260 * MAINTAINERS: Add entry for riscv.
12261
12262 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12263
12264 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12265 fields within aggregates.
12266
12267 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12268
12269 * record-btrace.c (btrace_print_lines): Change type of flags to
12270 gdb_disassembly_flags.
12271
12272 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12273
12274 * fbsd-nat.c: Include "inf-ptrace.h".
12275 (USE_SIGTRAP_SIGINFO): Conditionally define.
12276 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12277 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12278 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12279 function.
12280 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12281 Likewise.
12282 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12283 Likewise.
12284 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12285 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12286 "supports_stopped_by_hw_breakpoint" target methods.
12287
12288 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12289
12290 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12291 * fbsd-nat.c (debug_fbsd_nat): New variable.
12292 (show_fbsd_nat_debug): New function.
12293 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12294 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12295
12296 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12297
12298 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12299 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12300 prototype.
12301 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12302 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12303 method.
12304
12305 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12306
12307 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12308 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12309
12310 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12311
12312 * charset.c (struct charset_vector): New.
12313 (charsets): Change type to charset_vector.
12314 (find_charset_names): Adjust.
12315 (add_one): Adjust.
12316 (_initialize_charset): Adjust.
12317
12318 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12319
12320 * progspace.h (struct program_space) <deleted_solibs>: Change
12321 type to std::vector<std::string>.
12322 * progspace.c (clear_program_space_solib_cache): Adjust.
12323 * breakpoint.c (print_solib_event): Adjust.
12324 (check_status_catch_solib): Adjust.
12325 * solib.c (update_solib_list): Adjust.
12326 * ui-out.h (class ui_out) <field_string>: New overload.
12327 * ui-out.c (ui_out::field_string): New overload.
12328
12329 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12330
12331 * progspace.h (struct program_space): Add constructor and
12332 destructor, initialize fields.
12333 (add_program_space): Remove.
12334 * progspace.c (add_program_space): Rename to...
12335 (program_space::program_space): ... this.
12336 (release_program_space): Rename to...
12337 (program_space::~program_space): ... this.
12338 (delete_program_space): Use delete to delete program_space.
12339 (initialize_progspace): Use new to allocate program_space.
12340 * inferior.c (add_inferior_with_spaces): Likewise.
12341 (clone_inferior_command): Likewise.
12342 * infrun.c (follow_fork_inferior): Likewise.
12343 (handle_vfork_child_exec_or_exit): Likewise.
12344
12345 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12346
12347 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12348 (delim_string_to_char_ptr_vec): Return std::vector of
12349 gdb::unique_xmalloc_ptr.
12350 (dirnames_to_char_ptr_vec_append): Take std::vector of
12351 gdb::unique_xmalloc_ptr.
12352 (dirnames_to_char_ptr_vec): Return std::vector of
12353 gdb::unique_xmalloc_ptr.
12354 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12355 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12356 (delim_string_to_char_ptr_vec): Return an std::vector of
12357 gdb::unique_xmalloc_ptr, adjust the code.
12358 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12359 gdb::unique_xmalloc_ptr, adjust the code.
12360 (dirnames_to_char_ptr_vec): Return an std::vector of
12361 gdb::unique_xmalloc_ptr, adjust the code.
12362 * auto-load.c (auto_load_safe_path_vec): Change type to
12363 std::vector of gdb::unique_xmalloc_ptr.
12364 (auto_load_expand_dir_vars): Return an std::vector of
12365 gdb::unique_xmalloc_ptr, adjust the code.
12366 (auto_load_safe_path_vec_update): Adjust.
12367 (filename_is_in_auto_load_safe_path_vec): Adjust.
12368 (auto_load_objfile_script_1): Adjust.
12369 * build-id.c (build_id_to_debug_bfd): Adjust.
12370 * linux-thread-db.c (thread_db_load_search): Adjust.
12371 * source.c (add_path): Adjust.
12372 (openp): Adjust.
12373 * symfile.c (find_separate_debug_file): Adjust.
12374 * utils.c (do_free_char_ptr_vec): Remove.
12375 (make_cleanup_free_char_ptr_vec): Remove.
12376
12377 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12378
12379 PR gdb/22907
12380 * common/pathstuff.c: Conditionally include "<windows.h>".
12381
12382 2018-03-01 Georg Sauthoff <mail@georg.so>
12383
12384 PR gdb/22888
12385 * gcore.in: Quote variables and switch interpreter to bash.
12386
12387 2018-03-01 Tom Tromey <tom@tromey.com>
12388
12389 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12390 assertion. Add assertion for discriminant_index.
12391 (quirk_rust_enum): Use correct base type name in univariant case.
12392
12393 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12394
12395 * record.c (get_call_history_modifiers): Return a
12396 record_print_flags.
12397 (cmd_record_call_history): Adjust.
12398 * record-btrace.c (record_btrace_call_history): Adjust.
12399 (record_btrace_call_history_range): Adjust.
12400 (record_btrace_call_history_from): Adjust.
12401 * target-debug.h (target_debug_print_record_print_flags): New.
12402 * target-delegates.c: Re-generate.
12403 * target.c (target_call_history): Change flags type.
12404 (target_call_history_from): Likewise.
12405 (target_call_history_range): Likewise.
12406 * target.h (struct target_ops) <target_call_history>: Likewise.
12407 (target_call_history_from): Likewise.
12408 (target_call_history_range): Likewise.
12409
12410 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12411 Simon Marchi <simon.marchi@polymtl.ca>
12412
12413 * common/common-utils.c: Include "sys/stat.h".
12414 (is_regular_file): Move here from "source.c"; change return
12415 type to "bool".
12416 * common/common-utils.h (is_regular_file): New prototype.
12417 * common/pathstuff.c (contains_dir_separator): New function.
12418 * common/pathstuff.h (contains_dir_separator): New prototype.
12419 * source.c: Don't include "sys/stat.h".
12420 (is_regular_file): Move to "common/common-utils.c".
12421
12422 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12423
12424 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12425 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12426 * auto-load.c: Include "common/pathstuff.h".
12427 * common/common-def.h (current_directory): Move here.
12428 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12429 function.
12430 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12431 prototype.
12432 * common/pathstuff.c: New file.
12433 * common/pathstuff.h: New file.
12434 * compile/compile.c: Include "common/pathstuff.h".
12435 * defs.h (current_directory): Move to "common/common-defs.h".
12436 * dwarf2read.c: Include "common/pathstuff.h".
12437 * exec.c: Likewise.
12438 * guile/scm-safe-call.c: Likewise.
12439 * linux-thread-db.c: Likewise.
12440 * main.c: Likewise.
12441 * nto-tdep.c: Likewise.
12442 * objfiles.c: Likewise.
12443 * source.c: Likewise.
12444 * symtab.c: Likewise.
12445 * utils.c: Include "common/pathstuff.h".
12446 (gdb_realpath): Move to "common/pathstuff.c".
12447 (gdb_realpath_keepfile): Likewise.
12448 (gdb_abspath): Likewise.
12449 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12450 (gdb_realpath_keepfile): Likewise.
12451 (gdb_abspath): Likewise.
12452
12453 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12454
12455 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12456 wildcard process pid for super_resume for kernels with a
12457 specific bug.
12458
12459 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12460
12461 * compile/compile.c (get_args): Add additional comments
12462 explaining function.
12463
12464 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12465 Tom Tromey <tom@tromey.com>
12466
12467 * target.h (memory_write_request_s): Remove typedef. Don't define
12468 VEC.
12469 (target_write_memory_blocks): Change argument to std::vector.
12470 (struct memory_write_request): Add constructor.
12471 * target-memory.c (compare_block_starting_address): Return bool.
12472 Change argument types.
12473 (claim_memory): Change arguments to use std::vector.
12474 (split_regular_and_flash_blocks, blocks_to_erase)
12475 (compute_garbled_blocks): Likewise.
12476 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12477 (target_write_memory_blocks): Change argument to std::vector.
12478 * symfile.c (struct load_section_data): Add constructor and
12479 destructor. Use std::vector for "requests".
12480 (struct load_progress_data): Add initializers.
12481 (load_section_callback): Update. Use "new".
12482 (clear_memory_write_data): Remove.
12483 (generic_load): Update.
12484
12485 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12486
12487 * arch/aarch64.h: Use common/tdesc.h.
12488
12489 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12490
12491 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12492 architecture with a 64-bit ABI.
12493
12494 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12495
12496 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12497 ahead of target description loading.
12498
12499 2018-02-26 Tom Tromey <tom@tromey.com>
12500
12501 * stack.c (backtrace_command_1): Update.
12502 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12503 of "flags".
12504 * python/py-framefilter.c (py_print_frame)
12505 (gdbpy_apply_frame_filter): Change type of "flags".
12506 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12507 of "flags".
12508 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12509 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12510 * extension.h (enum frame_filter_flag): Rename from
12511 frame_filter_flags.
12512 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12513 (apply_ext_lang_frame_filter): Change type of "flags".
12514 * extension.c (apply_ext_lang_frame_filter): Change type of
12515 "flags".
12516 * extension-priv.h (struct extension_language_ops)
12517 <apply_frame_filter>: Change type of "flags".
12518
12519 2018-02-26 Tom Tromey <tom@tromey.com>
12520
12521 PR python/16497:
12522 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12523 off-by-one in py_end computation.
12524 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12525 PRINT_MORE_FRAMES.
12526 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12527 constant.
12528
12529 2018-02-26 Tom Tromey <tom@tromey.com>
12530
12531 * dwarf2read.c (struct variant_field): New.
12532 (struct nextfield) <variant>: New field.
12533 (dwarf2_add_field): Handle DW_TAG_variant_part.
12534 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12535 discriminated union.
12536 (read_structure_type): Handle DW_TAG_variant_part.
12537 (handle_struct_member_die): New function, extracted from
12538 process_structure_scope. Handle DW_TAG_variant.
12539 (process_structure_scope): Handle discriminated unions. Call
12540 handle_struct_member_die.
12541
12542 2018-02-26 Tom Tromey <tom@tromey.com>
12543
12544 * rust-lang.h (rust_last_path_segment): Declare.
12545 * rust-lang.c (rust_last_path_segment): Now public. Change
12546 contract.
12547 (struct disr_info): Remove.
12548 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12549 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12550 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12551 (rust_enum_p, rust_enum_variant): New function.
12552 (rust_underscore_fields): Remove "offset" parameter.
12553 (rust_print_enum): New function.
12554 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12555 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12556 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12557 enums.
12558 (rust_internal_print_type): New function, from rust_print_type.
12559 Remove enum code.
12560 (rust_print_type): Call rust_internal_print_type.
12561 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12562 Update enum handling.
12563 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12564 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12565 (rust_union_quirks): New functions.
12566 (process_full_comp_unit, process_full_type_unit): Call
12567 rust_union_quirks.
12568 (process_structure_scope): Update rust_unions if necessary.
12569
12570 2018-02-26 Tom Tromey <tom@tromey.com>
12571
12572 * value.h (value_union_variant): Declare.
12573 * valops.c (value_union_variant): New function.
12574 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12575 (struct discriminant_info): New.
12576 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12577 enumerator.
12578 (struct main_type) <flag_discriminated_union>: New field.
12579
12580 2018-02-26 Tom Tromey <tom@tromey.com>
12581
12582 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12583 unittests/unpack-selftests.c.
12584 * unittests/unpack-selftests.c: New file.
12585 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12586
12587 2018-02-26 Yao Qi <yao.qi@linaro.org>
12588
12589 * dwarf2read.c (struct partial_die_info) <read>: New method.
12590 (read_partial_die): Remove the declaration.
12591 (load_partial_dies): Update.
12592 (partial_die_info::partial_die_info):
12593 (read_partial_die): Change it to partial_die_info::read.
12594
12595 2018-02-26 Yao Qi <yao.qi@linaro.org>
12596
12597 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12598 (fixup_partial_die): Remove declaration.
12599 (scan_partial_symbols): Update.
12600 (partial_die_parent_scope): Likewise.
12601 (partial_die_full_name): Likewise.
12602 (fixup_partial_die): Change it to partial_die_info::fixup.
12603
12604 2018-02-26 Yao Qi <yao.qi@linaro.org>
12605
12606 * dwarf2read.c (read_partial_die): Update the declaration.
12607 (load_partial_dies): Caller update.
12608 (read_partial_die): Remove one argument abbrev_len.
12609
12610 2018-02-26 Yao Qi <yao.qi@linaro.org>
12611
12612 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12613 assignment operator.
12614 (load_partial_dies): Use ctor and copy ctor.
12615 (read_partial_die): Update.
12616 (dwarf2_cu::find_partial_die): Use ctor.
12617
12618 2018-02-26 Yao Qi <yao.qi@linaro.org>
12619
12620 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12621 (find_partial_die_in_comp_unit): Change it to
12622 dwarf2_cu::find_partial_die.
12623 (find_partial_die): Update.
12624
12625 2018-02-26 Yao Qi <yao.qi@linaro.org>
12626
12627 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12628 is NULL.
12629
12630 2018-02-26 Yao Qi <yao.qi@linaro.org>
12631
12632 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12633
12634 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12635
12636 * arch/amd64.h: Use common/tdesc.h.
12637 * arch/i386.c: Likewise.
12638 * arch/i386.h: Likewise.
12639 * arch/tic6x.c: Likewise.
12640 * arch/tdesc.h: Move file from here...
12641 * common/tdesc.h: ...to here.
12642 * features/aarch64-core.c: Regenerate.
12643 * features/aarch64-fpu.c: Regenerate.
12644 * features/i386/32bit-avx.c: Regenerate.
12645 * features/i386/32bit-avx512.c: Regenerate.
12646 * features/i386/32bit-core.c: Regenerate.
12647 * features/i386/32bit-linux.c: Regenerate.
12648 * features/i386/32bit-mpx.c: Regenerate.
12649 * features/i386/32bit-pkeys.c: Regenerate.
12650 * features/i386/32bit-sse.c: Regenerate.
12651 * features/i386/64bit-avx.c: Regenerate.
12652 * features/i386/64bit-avx512.c: Regenerate.
12653 * features/i386/64bit-core.c: Regenerate.
12654 * features/i386/64bit-linux.c: Regenerate.
12655 * features/i386/64bit-mpx.c: Regenerate.
12656 * features/i386/64bit-pkeys.c: Regenerate.
12657 * features/i386/64bit-segments.c: Regenerate.
12658 * features/i386/64bit-sse.c: Regenerate.
12659 * features/i386/x32-core.c: Regenerate.
12660 * features/tic6x-c6xp.c: Regenerate.
12661 * features/tic6x-core.c: Regenerate.
12662 * features/tic6x-gp.c: Regenerate.
12663 * target-descriptions.c: Use common/tdesc.h.
12664 * target-descriptions.h: Likewise.
12665
12666 2018-02-24 Tom Tromey <tom@tromey.com>
12667
12668 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12669 (try_thread_db_load_from_dir, thread_db_load_search): Use
12670 std::string.
12671 (info_auto_load_libthread_db_compare): Return bool. Change
12672 argument types.
12673 (info_auto_load_libthread_db): Use std::vector, std::string.
12674 Remove cleanups.
12675
12676 2018-02-24 Tom Tromey <tom@tromey.com>
12677
12678 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12679 std::string.
12680 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12681 std::string*.
12682 * gdbarch.c: Rebuild.
12683 * gdbarch.h: Rebuild.
12684 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12685 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12686 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12687 std::string*.
12688
12689 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12690
12691 * gdbtypes.h (sect_offset): Change type to uint64_t.
12692 (sect_offset_str): New function.
12693 * dwarf2read.c (create_addrmap_from_aranges): Use
12694 sect_offset_str.
12695 (error_check_comp_unit_head): Likewise.
12696 (create_debug_type_hash_table): Likewise.
12697 (read_cutu_die_from_dwo): Likewise.
12698 (init_cutu_and_read_dies): Likewise.
12699 (init_cutu_and_read_dies_no_follow): Likewise.
12700 (process_psymtab_comp_unit_reader): Likewise.
12701 (partial_die_parent_scope): Likewise.
12702 (peek_die_abbrev): Likewise.
12703 (process_queue): Likewise.
12704 (dwarf2_physname): Likewise.
12705 (read_namespace_alias): Likewise.
12706 (read_import_statement): Likewise.
12707 (create_dwo_cu_reader): Likewise.
12708 (create_cus_hash_table): Likewise.
12709 (lookup_dwo_cutu): Likewise.
12710 (inherit_abstract_dies): Likewise.
12711 (read_func_scope): Likewise.
12712 (read_call_site_scope): Likewise.
12713 (dwarf2_add_member_fn): Likewise.
12714 (read_common_block): Likewise.
12715 (read_module_type): Likewise.
12716 (read_typedef): Likewise.
12717 (read_subrange_type): Likewise.
12718 (load_partial_dies): Likewise.
12719 (read_partial_die): Likewise.
12720 (find_partial_die): Likewise.
12721 (read_str_index): Likewise.
12722 (dwarf2_string_attr): Likewise.
12723 (build_error_marker_type): Likewise.
12724 (lookup_die_type): Likewise.
12725 (dump_die_shallow): Likewise.
12726 (follow_die_ref): Likewise.
12727 (dwarf2_fetch_die_loc_sect_off): Likewise.
12728 (dwarf2_fetch_constant_bytes): Likewise.
12729 (follow_die_sig): Likewise.
12730 (get_signatured_type): Likewise.
12731 (get_DW_AT_signature_type): Likewise.
12732 (dwarf2_find_containing_comp_unit): Likewise.
12733 (set_die_type): Likewise.
12734
12735 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12736
12737 * arch/aarch64.c: Include "common-defs.h".
12738 * arch/amd64.c: Likewise.
12739 * arch/i386.c: Likewise.
12740
12741 2018-02-21 Tom Tromey <tom@tromey.com>
12742
12743 * value.h: (extract_field_op): Update.
12744 * eval.c (extract_field_op): Return a const char *.
12745 * expression.h (parse_expression_for_completion): Update.
12746 * completer.c (complete_expression): Update.
12747 (add_struct_fields): Make fieldname const.
12748 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12749 (mark_completion_tag, parse_exp_in_context_1): Update.
12750 (parse_expression_for_completion): Change "name" to
12751 unique_xmalloc_ptr*.
12752
12753 2018-02-21 Tom Tromey <tom@tromey.com>
12754
12755 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12756
12757 2018-02-21 Yao Qi <yao.qi@linaro.org>
12758
12759 * avr-tdep.c (avr_read_pc): Change parameter type to
12760 readable_regcache.
12761 * gdbarch.sh (read_pc): Likewise.
12762 * gdbarch.c: Re-generated.
12763 * gdbarch.h: Re-generated.
12764 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12765 readable_regcache.
12766 * ia64-tdep.c (ia64_read_pc): Likewise.
12767 * mips-tdep.c (mips_read_pc): Likewise.
12768 * spu-tdep.c (spu_read_pc): Likewise.
12769
12770 2018-02-21 Yao Qi <yao.qi@linaro.org>
12771
12772 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12773 * regcache-dump.c: New file.
12774 * regcache.c: Move register_dump to regcache-dump.c.
12775 (maintenance_print_registers): Likewise.
12776 (maintenance_print_raw_registers): Likewise.
12777 (maintenance_print_cooked_registers): Likewise.
12778 (maintenance_print_register_groups): Likewise.
12779 (maintenance_print_remote_registers): Likewise.
12780 (_initialize_regcache): Likewise.
12781 * regcache.h (register_dump): Moved from regcache.c.
12782
12783 2018-02-21 Yao Qi <yao.qi@linaro.org>
12784
12785 * regcache.c (regcache::regcache): Update.
12786 (regcache::invalidate): Move it to detached_regcache::invalidate.
12787 (get_thread_arch_aspace_regcache): Update.
12788 (regcache::raw_update): Update.
12789 (regcache::cooked_read): Remove some code.
12790 (regcache::cooked_read_value): Likewise.
12791 (regcache::raw_write): Remove assert on m_readonly_p.
12792 (regcache::raw_supply_integer): Move it to
12793 detached_regcache::raw_supply_integer.
12794 (regcache::raw_supply_zeroed): Likewise.
12795 * regcache.h (detached_regcache) <raw_supply_integer>: New
12796 declaration.
12797 <raw_supply_zeroed, invalidate>: Likewise.
12798 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12799 <invalidate>: Likewise.
12800 <m_readonly_p>: Removed.
12801
12802 2018-02-21 Yao Qi <yao.qi@linaro.org>
12803
12804 * infcmd.c (get_return_value): Let stop_regs point to
12805 get_current_regcache.
12806 * regcache.c (regcache::regcache): Remove.
12807 (register_dump_reg_buffer): New class.
12808 (regcache_print): Adjust.
12809 * regcache.h (regcache): Remove constructors.
12810
12811 2018-02-21 Yao Qi <yao.qi@linaro.org>
12812
12813 * regcache.c (class register_dump): New class.
12814 (register_dump_regcache, register_dump_none): New class.
12815 (register_dump_remote, register_dump_groups): New class.
12816 (regcache_print): Update.
12817 * regcache.h (regcache_dump_what): Move it to regcache.c.
12818 (regcache) <dump>: Remove.
12819
12820 2018-02-21 Yao Qi <yao.qi@linaro.org>
12821
12822 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12823 reg_buffer_rw *.
12824 (jit_unwind_reg_set_impl): Call raw_supply.
12825 (jit_frame_sniffer): Use reg_buffer_rw.
12826 * record-full.c (record_full_core_regbuf): Change its type.
12827 (record_full_core_open_1): Use reg_buffer_rw.
12828 (record_full_close): Likewise.
12829 (record_full_core_fetch_registers): Use regcache->raw_supply.
12830 (record_full_core_store_registers): Likewise.
12831 * regcache.c (regcache::get_register_status): Move it to
12832 reg_buffer.
12833 (regcache_raw_set_cached_value): Remove.
12834 (regcache::raw_set_cached_value): Remove.
12835 (regcache::raw_write): Call raw_supply.
12836 (regcache::raw_supply): Move it to reg_buffer_rw.
12837 * regcache.h (regcache_raw_set_cached_value): Remove.
12838 (reg_buffer_rw): New class.
12839
12840 2018-02-21 Yao Qi <yao.qi@linaro.org>
12841
12842 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12843 readonly_detached_regcache.
12844 (dummy_frame_prev_register): Use regcache->cooked_read.
12845 * frame.c (frame_save_as_regcache): Change return type.
12846 (frame_pop): Update.
12847 * frame.h (frame_save_as_regcache): Update declaration.
12848 * inferior.h (get_infcall_suspend_state_regcache): Update
12849 declaration.
12850 * infrun.c (infcall_suspend_state) <registers>: use
12851 readonly_detached_regcache.
12852 (save_infcall_suspend_state): Don't use regcache_dup.
12853 (get_infcall_suspend_state_regcache): Change return type.
12854 * linux-fork.c (struct fork_info) <savedregs>: Change to
12855 readonly_detached_regcache.
12856 <pc>: New field.
12857 (fork_save_infrun_state): Don't use regcache_dup.
12858 (info_checkpoints_command): Adjust.
12859 * mi/mi-main.c (register_changed_p): Update declaration.
12860 (mi_cmd_data_list_changed_registers): Use
12861 readonly_detached_regcache.
12862 (register_changed_p): Change parameter type to
12863 readonly_detached_regcache.
12864 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12865 readonly_detached_regcache.
12866 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12867 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12868 New.
12869 (regcache::save): Move it to reg_buffer.
12870 (regcache::restore): Change parameter type.
12871 (regcache_dup): Remove.
12872 * regcache.h (reg_buffer) <save>: New method.
12873 (readonly_detached_regcache): New class.
12874 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12875 readonly_detached_regcache.
12876 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12877
12878 2018-02-21 Yao Qi <yao.qi@linaro.org>
12879
12880 * frame.c (frame_save_as_regcache): Use regcache method save.
12881 (frame_pop): Use regcache method restore.
12882 * infrun.c (restore_infcall_suspend_state): Likewise.
12883 * linux-fork.c (fork_load_infrun_state): Likewise.
12884 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12885 save.
12886 * regcache.c (regcache_save): Remove.
12887 (regcache::restore): More asserts.
12888 (regcache_cpy): Remove.
12889 * regcache.h (regcache_save): Remove the declaration.
12890 (regcache::restore): Move from private to public.
12891 Remove the friend declaration of regcache_cpy.
12892 (regcache_cpy): Remove declaration.
12893
12894 2018-02-21 Yao Qi <yao.qi@linaro.org>
12895
12896 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12897 parameter type to 'readable_regcache *'.
12898 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12899 * arm-tdep.c (arm_neon_quad_read): Likewise.
12900 (arm_pseudo_read): Likewise.
12901 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12902 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12903 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12904 * gdbarch.c: Re-generated.
12905 * gdbarch.h: Re-generated.
12906 * gdbarch.sh (pseudo_register_read): Change parameter type to
12907 'readable_regcache *'.
12908 (pseudo_register_read_value): Likewise.
12909 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12910 (h8300_pseudo_register_read): Likewise.
12911 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12912 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12913 (i386_pseudo_register_read_into_value): Likewise.
12914 (i386_pseudo_register_read_value): Likewise.
12915 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12916 declaration.
12917 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12918 * m32c-tdep.c (m32c_raw_read): Likewise.
12919 (m32c_read_flg): Likewise.
12920 (m32c_banked_register): Likewise.
12921 (m32c_banked_read): Likewise.
12922 (m32c_sb_read): Likewise.
12923 (m32c_part_read): Likewise.
12924 (m32c_cat_read): Likewise.
12925 (m32c_r3r2r1r0_read): Likewise.
12926 (m32c_pseudo_register_read): Likewise.
12927 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12928 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12929 (mep_pseudo_cr64_read): Likewise.
12930 (mep_pseudo_register_read): Likewise.
12931 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12932 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12933 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12934 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12935 (regcache::cooked_read): Likewise.
12936 (regcache::cooked_read_value): Likewise.
12937 (regcache_cooked_read_signed):
12938 (regcache::cooked_read): Likewise.
12939 * regcache.h (readable_regcache): New class.
12940 (regcache): Inherit readable_regcache. Move some methods to
12941 readable_regcache.
12942 * rl78-tdep.c (rl78_pseudo_register_read): Change
12943 parameter type to 'readable_regcache *'.
12944 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12945 (e500_pseudo_register_read): Change parameter type to
12946 'readable_regcache *'.
12947 (dfp_pseudo_register_read): Likewise.
12948 (vsx_pseudo_register_read): Likewise.
12949 (efpr_pseudo_register_read): Likewise.
12950 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12951 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12952 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12953 (sh64_pseudo_register_read): Likewise.
12954 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12955 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12956 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12957 (spu_pseudo_register_read): Likewise.
12958 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12959 (xtensa_pseudo_register_read): Likewise.
12960
12961 2018-02-21 Yao Qi <yao.qi@linaro.org>
12962
12963 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12964 (regcache::arch): Move it to reg_buffer::arch.
12965 (regcache::register_buffer): Likewise.
12966 (regcache::assert_regnum): Likewise.
12967 (regcache::num_raw_registers): Likewise.
12968 * regcache.h (reg_buffer): New class.
12969 (regcache): Inherit reg_buffer.
12970
12971 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12972
12973 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12974 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12975
12976 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12977
12978 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12979
12980 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12981
12982 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12983 (SFILES): Remove common/*.c files.
12984 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12985 * common/common.host: Add common reference.
12986 * configure.ac: Likewise.
12987 * configure: Regenerate.
12988
12989 2018-02-16 Yao Qi <yao.qi@linaro.org>
12990
12991 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12992 (block_initialize_namespace): Use new.
12993 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12994 (dwarf2_free_objfile): Use delete.
12995 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12996 (copy_type_recursive): Use new.
12997 * gdb_obstack.h (allocate_on_obstack): New.
12998
12999 2018-02-15 Yao Qi <yao.qi@linaro.org>
13000
13001 PR gdb/22849
13002 * inferior.c (exit_inferior_1): Reset inf->control.
13003
13004 2018-02-15 Joel Brobecker <brobecker@adacore.com>
13005
13006 * ada-lang.c (ada_to_fixed_value_create): Delete advance
13007 declaration.
13008
13009 2018-02-14 Pedro Alves <palves@redhat.com>
13010
13011 * frame-unwind.c (frame_unwind_try_unwinder): Always call
13012 frame_cleanup_after_sniffer on exception.
13013
13014 2018-02-14 Tom Tromey <tom@tromey.com>
13015
13016 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13017 const.
13018 (solib_bfd_open): Make pathname const.
13019 * solib.c (solib_bfd_open): Make pathname const.
13020 * solib-spu.c (spu_bfd_fopen): Make name const.
13021 (spu_bfd_open): Make pathname const.
13022 * solib-darwin.c (darwin_bfd_open): Make pathname const.
13023 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13024
13025 2018-02-14 Tom Tromey <tom@tromey.com>
13026
13027 * symfile.c (symfile_bfd_open): Update.
13028 * source.h (openp, source_full_path_of, find_and_open_source):
13029 Change argument type to unique_xmalloc_ptr.
13030 * source.c (openp): Take a unique_xmalloc_ptr.
13031 (source_full_path_of, find_and_open_source): Likewise.
13032 (open_source_file, symtab_to_fullname): Update.
13033 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13034 unique_xmalloc_ptr.
13035 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13036 (exec_file_find): Update.
13037 * psymtab.c (psymtab_to_fullname): Update.
13038 * nto-tdep.h (nto_find_and_open_solib): Update.
13039 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13040 unique_xmalloc_ptr.
13041 * exec.c (exec_file_attach): Update.
13042 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13043 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13044
13045 2018-02-14 Tom Tromey <tom@tromey.com>
13046
13047 * solib.c: Include source.h.
13048 * nto-tdep.c: Include source.h.
13049 * mi/mi-cmd-env.c: Include source.h.
13050 * infcmd.c: Include source.h.
13051 * exec.c: Include source.h.
13052 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13053 (add_path, directory_switch, source_path, init_source_path): Move
13054 declarations...
13055 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13056 (add_path, directory_switch, source_path, init_source_path):
13057 ...here.
13058
13059 2018-02-14 Tom Tromey <tom@tromey.com>
13060
13061 * solist.h (exec_file_find, solib_find): Return
13062 unique_xmalloc_ptr.
13063 (solib_bfd_fopen): Take a const char *.
13064 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13065 (exec_file_find, solib_find): Likewise.
13066 (solib_bfd_fopen): Do not take ownership of "pathname".
13067 (solib_bfd_open): Use unique_xmalloc_ptr.
13068 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13069 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13070 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13071 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13072
13073 2018-02-14 Joel Brobecker <brobecker@adacore.com>
13074
13075 * ada-lang.c (name_match_type_from_name): Remove reference to
13076 ada_name_for_lookup in function's documentation.
13077 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13078
13079 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13080
13081 * defs.h (enum openp_flags): New enum.
13082 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13083 Move to enum openp_flags.
13084 (openp_flags): New enum flags.
13085 (openp): Change parameter type to openp_flags.
13086 * source.c (openp): Change parameter type to openp_flags.
13087 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13088 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13089
13090 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13091
13092 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13093 per-command.
13094
13095 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13096
13097 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13098 into...
13099 (class dwarf2_queue_guard): ...the destructor of this new class.
13100 (dw2_do_instantiate_symtab): Create instance of the new class
13101 dwarf2_queue_guard, remove cleanup.
13102
13103 2018-02-09 Tom Tromey <tom@tromey.com>
13104
13105 * source.c (find_source_lines): Don't reference past the end of
13106 the vector.
13107
13108 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13109
13110 * remote.c (remote_btrace_maybe_reopen): Change error message.
13111 * btrace.c (btrace_enable): Likewise.
13112 (parse_xml_btrace): Likewise.
13113 (parse_xml_btrace_conf): Likewise.
13114
13115 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13116
13117 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13118 (linux_enable_pt, linux_enable_bts): Call
13119 diagnose_perf_event_open_fail.
13120
13121 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13122
13123 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13124 Remove parameter and change return type. Update callers. Move it.
13125 (linux_enable_bts, linux_enable_pt): Improve error message.
13126 (linux_enable_pt): Remove zero buffer size check.
13127 (linux_enable_btrace): Improve error messages. Remove NULL return
13128 check.
13129
13130 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13131
13132 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13133 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13134 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13135 (linux_supports_pt, linux_supports_btrace): Remove.
13136 (linux_enable_bts): Call cpu_supports_bts.
13137 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13138 * remote.c (remote_supports_btrace): Remove.
13139 (init_remote_ops): Remove remote_supports_btrace.
13140 * target-delegates.c: Regenerated.
13141 * target.c (target_supports_btrace): Remove.
13142 * target.h (target_ops) <to_supports_btrace>: Remove
13143 (target_supports_btrace): Remove.
13144 * x86-linux-nat.c (x86_linux_create_target): Remove
13145 linux_supports_btrace.
13146
13147 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13148
13149 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13150 btrace failed.
13151 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13152 exception and use message in own exception.
13153
13154 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13155
13156 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13157 (perf_event_pt_event_type): Use gdb_file_up.
13158 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13159 scoped_fd, and scoped_mmap.
13160
13161 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13162
13163 * common/scoped_mmap.h: New.
13164 * unittests/scoped_mmap-selftest.c: New.
13165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13166 unittests/scoped_mmap-selftest.c.
13167
13168 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13169
13170 * common/scoped_fd.h: New.
13171 * unittests/scoped_fd-selftest.c: New.
13172 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13173 unittests/scoped_fd-selftest.c.
13174
13175 2018-02-09 Tom Tromey <tom@tromey.com>
13176
13177 * auto-load.c (auto_load_section_scripts): Use
13178 gdb::unique_xmalloc_ptr.
13179
13180 2018-02-09 Tom Tromey <tom@tromey.com>
13181
13182 * auto-load.c (execute_script_contents): Use std::string.
13183
13184 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13185
13186 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13187 Python function, rather than a new command.
13188
13189 2018-02-08 Tom Tromey <tom@tromey.com>
13190
13191 * solib.c (solib_find_1): Use std::string.
13192 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13193
13194 2018-02-08 Tom Tromey <tom@tromey.com>
13195
13196 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13197
13198 2018-02-08 Tom Tromey <tom@tromey.com>
13199
13200 * source.c (find_source_lines): Use gdb::def_vector.
13201
13202 2018-02-08 Tom Tromey <tom@tromey.com>
13203
13204 * macrocmd.c (struct temporary_macro_definition): New.
13205 (macro_define_command): Use temporary_macro_definition. Remove
13206 cleanups.
13207 (free_macro_definition_ptr): Remove.
13208
13209 2018-02-08 Tom Tromey <tom@tromey.com>
13210
13211 * macroexp.c (maybe_expand): Use std::string.
13212
13213 2018-02-08 Tom Tromey <tom@tromey.com>
13214
13215 * macroexp.c (struct macro_buffer): Add initializers for some
13216 members.
13217 (init_buffer, init_shared_buffer, free_buffer)
13218 (free_buffer_return_text): Remove.
13219 (macro_buffer): New constructors.
13220 (~macro_buffer): New destructor.
13221 (macro_buffer::set_shared): New method.
13222 (macro_buffer::resize_buffer, macro_buffer::appendc)
13223 (macro_buffer::appendmem): Now methods, not free functions.
13224 (set_token, append_tokens_without_splicing, stringify)
13225 (macro_stringify): Update.
13226 (gather_arguments): Change return type. Remove argc_p argument,
13227 add args_ptr argument. Use std::vector.
13228 (substitute_args): Remove argc argument. Accept std::vector.
13229 (expand): Update. Use std::vector.
13230 (scan, macro_expand, macro_expand_next): Update.
13231
13232 2018-02-08 Tom Tromey <tom@tromey.com>
13233
13234 * symtab.c (default_collect_symbol_completion_matches_break_on):
13235 Use unique_xmalloc_ptr.
13236 * macroscope.h: (sal_macro_scope, user_macro_scope)
13237 (default_macro_scope): Return unique_xmalloc_ptr.
13238 * macroscope.c (sal_macro_scope, user_macro_scope)
13239 (default_macro_scope): Return unique_xmalloc_ptr.
13240 * macroexp.h (macro_expand, macro_expand_once): Return
13241 unique_xmalloc_ptr.
13242 * macroexp.c (macro_expand, macro_expand_once): Return
13243 unique_xmalloc_ptr.
13244 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13245 (info_macro_command, info_macros_command): Use
13246 unique_xmalloc_ptr.
13247 * compile/compile-c-support.c (write_macro_definitions): Use
13248 unique_xmalloc_ptr.
13249 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13250
13251 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13252
13253 * value.c (value_static_field): Assign field type instead of
13254 containing type when returning an optimized out value.
13255
13256 2018-02-06 Yao Qi <yao.qi@linaro.org>
13257
13258 * ft32-tdep.c (ft32_read_pc): Remove.
13259 (ft32_write_pc): Remove.
13260 (ft32_gdbarch_init): Update.
13261 * m32r-tdep.c (m32r_read_pc): Remove.
13262 (m32r_gdbarch_init): Update.
13263 * mep-tdep.c (mep_read_pc): Remove.
13264 (mep_gdbarch_init): Update.
13265 * microblaze-tdep.c (microblaze_write_pc): Remove.
13266 (microblaze_gdbarch_init): Update.
13267 * mn10300-tdep.c (mn10300_read_pc): Remove.
13268 (mn10300_write_pc): Remove.
13269 (mn10300_gdbarch_init): Update.
13270 * moxie-tdep.c (moxie_read_pc): Remove.
13271 (moxie_write_pc): Remove.
13272 (moxie_gdbarch_init): Update.
13273
13274 2018-02-06 Yao Qi <yao.qi@linaro.org>
13275
13276 * expprint.c (print_subexp_standard): Handle
13277 OP_F77_UNDETERMINED_ARGLIST.
13278 (dump_subexp_body_standard): Likewise.
13279
13280 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13281
13282 * target-descriptions.c (tdesc_element_visitor) Add empty
13283 implementations.
13284 (tdesc_type): Move make_gdb_type from here.
13285 (tdesc_type_builtin): Likewise.
13286 (tdesc_type_vector): Likewise.
13287 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13288 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13289 (make_gdb_type_union): Likewise.
13290 (make_gdb_type_flags): Likewise.
13291 (make_gdb_type_enum): Likewise.
13292 (make_gdb_type): New function.
13293 (tdesc_register_type): Use static make_gdb_type.
13294
13295 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13296
13297 * infcmd.c (default_print_one_register_info): Align natural-format
13298 column values consistently one under another.
13299 (pad_to_column): New function.
13300
13301 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13302
13303 * dwarf2read.c (dwarf2_physname): Move commment.
13304
13305 2018-02-01 Leszek Swirski <leszeks@google.com>
13306
13307 * varobj.c (varobj_formatted_print_options): Allow recursive
13308 pretty printing if pretty printing is enabled.
13309
13310 2018-02-01 Leszek Swirski <leszeks@google.com>
13311
13312 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13313 names after a structop as a filename.
13314
13315 2018-02-01 Yao Qi <yao.qi@linaro.org>
13316
13317 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13318 (arm_record_coproc_data_proc): Likewise.
13319
13320 2018-02-01 Yao Qi <yao.qi@linaro.org>
13321
13322 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13323
13324 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13325
13326 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13327 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13328
13329 2018-01-31 Pedro Alves <palves@redhat.com>
13330
13331 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13332 * inflow.c (child_terminal_save_inferior): Wrap reference to
13333 tcgetpgrp in HAVE_TERMIOS_H.
13334 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13335 _WIN32.
13336 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13337 always iterate over all inferiors.
13338 (gdbsim_cntrl_c): Adjust.
13339 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13340
13341 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13342
13343 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13344 index type is objfile-owned if the element type is as well.
13345
13346 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13347
13348 GDB 8.1 released.
13349
13350 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13351
13352 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13353 "features/s390x-linux64.c".
13354 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13355 s390_linux32 and s390x_linux64.
13356 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13357 default tdesc.
13358 * s390-tdep.c: Include "features/s390-linux32.c" and
13359 "features/s390x-linux64.c".
13360 (s390_tdesc_valid): Add check for tdesc_has_registers.
13361 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13362 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13363 tdesc_s390x_linux64.
13364 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13365 tdesc_s390x_linux64 to...
13366 * s390-tdep.h: ...here.
13367
13368 2018-01-30 Pedro Alves <palves@redhat.com>
13369
13370 PR gdb/13211
13371 * config.in, configure: Regenerate.
13372 * configure.ac: Check for getpgid.
13373 * go32-nat.c (go32_pass_ctrlc): New.
13374 (go32_target): Install it.
13375 * inf-child.c (inf_child_target): Install
13376 child_terminal_save_inferior, child_pass_ctrlc and
13377 child_interrupt.
13378 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13379 (inf_ptrace_target): No longer install it.
13380 * infcmd.c (interrupt_target_1): Adjust.
13381 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13382 (child_interrupt): Declare.
13383 (inferior::terminal_state): New.
13384 * inflow.c (struct terminal_info): Update comments.
13385 (inferior_process_group): Delete.
13386 (terminal_is_ours): Delete.
13387 (gdb_tty_state): New.
13388 (child_terminal_init): Adjust.
13389 (is_gdb_terminal, sharing_input_terminal_1)
13390 (sharing_input_terminal): New functions.
13391 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13392 Set the process's actual process group in the foreground if
13393 possible. Handle is_ours_for_output/is_ours distinction. Don't
13394 mark terminal as the inferior's if not sharing GDB's terminal.
13395 Don't check attach_flag.
13396 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13397 pass down a target_terminal_state.
13398 (child_terminal_save_inferior): New, factored out from ...
13399 (child_terminal_ours_1): ... this. Handle
13400 target_terminal_state::is_ours_for_output.
13401 (child_interrupt, child_pass_ctrlc): New.
13402 (inflow_inferior_exit): Clear the inferior's terminal_state.
13403 (copy_terminal_info): Copy the inferior's terminal state.
13404 (_initialize_inflow): Remove reference to terminal_is_ours.
13405 * inflow.h (inferior_process_group): Delete.
13406 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13407 * procfs.c (procfs_target): Don't install procfs_interrupt.
13408 (procfs_interrupt): Delete.
13409 * remote.c (remote_serial_quit_handler): Adjust.
13410 (remote_interrupt): Remove ptid parameter. Adjust.
13411 * target-delegates.c: Regenerate.
13412 * target.c: Include "terminal.h".
13413 (target_terminal::terminal_state): Rename to ...
13414 (target_terminal::m_terminal_state): ... this.
13415 (target_terminal::init): Adjust.
13416 (target_terminal::inferior): Adjust to per-inferior
13417 terminal_state.
13418 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13419 (target_terminal::ours, target_terminal::ours_for_output): Use
13420 target_terminal_is_ours_kind.
13421 (target_interrupt): Remove ptid parameter. Adjust.
13422 (default_target_pass_ctrlc): Adjust.
13423 * target.h (target_ops::to_terminal_save_inferior): New field.
13424 (target_ops::to_interrupt): Remove ptid_t parameter.
13425 (target_interrupt): Remove ptid_t parameter. Update comment.
13426 (target_pass_ctrlc): Update comment.
13427 * target/target.h (target_terminal_state): New scoped enum,
13428 factored out of ...
13429 (target_terminal::terminal_state): ... here.
13430 (target_terminal::inferior): Update comments.
13431 (target_terminal::restore_inferior): New.
13432 (target_terminal::is_inferior, target_terminal::is_ours)
13433 (target_terminal::is_ours_for_output): Adjust.
13434 (target_terminal::scoped_restore_terminal_state): Adjust to
13435 rename, and call restore_inferior() instead of inferior().
13436 (target_terminal::scoped_restore_terminal_state::m_state): Change
13437 type.
13438 (target_terminal::terminal_state): Rename to ...
13439 (target_terminal::m_terminal_state): ... this and change type.
13440
13441 2018-01-30 Pedro Alves <palves@redhat.com>
13442
13443 * linux-nat.c (wait_for_signal): New function.
13444 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13445 directly.
13446 (async_terminal_is_ours)
13447 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13448 (linux_nat_add_target): Don't override
13449 to_terminal_inferior/to_terminal_ours.
13450
13451 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13452
13453 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13454
13455 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13456
13457 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13458 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13459 dwarf2_per_objfile_free here.
13460 (dwarf2_per_objfile_free): Remove.
13461 (_initialize_dwarf2_read): Don't register
13462 dwarf2_per_objfile_free as a registry cleanup.
13463
13464 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13465
13466 Avoid compilation errors in MinGW native builds
13467
13468 The error is triggered by including python-internal.h, and the
13469 error message is:
13470
13471 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13472 from build-gnulib/import/math.h:27,
13473 from d:/usr/Python26/include/pyport.h:235,
13474 from d:/usr/Python26/include/Python.h:58,
13475 from python/python-internal.h:94,
13476 from python/py-arch.c:24:
13477 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13478 using ::hypot;
13479 ^~~~~
13480
13481 This happens because Python headers define 'hypot' to expand t
13482 '_hypot' in the Windows builds.
13483 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13484 'hypoth'. This avoids a compilation error.
13485
13486 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13487
13488 * MAINTAINERS (Write After Approval): Fix ordering.
13489
13490 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13491
13492 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13493
13494 2018-01-26 Alan Modra <amodra@gmail.com>
13495
13496 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13497 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13498 Remove nop. Make const. Comment.
13499 (powerpc32_plt_stub_so_2): New.
13500 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13501 Correct count. Update uses.
13502 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13503 Move common code reading PLT entry word. Correct
13504 powerpc32_plt_stub PLT address calculation.
13505 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13506 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13507 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13508 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13509 (ppc64_standard_linkage8): Likewise.
13510 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13511 Correct insns description.
13512 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13513
13514 2018-01-24 Pedro Alves <palves@redhat.com>
13515
13516 GCC PR libstdc++/83906
13517 * gdbtypes.c (operator==(const dynamic_prop &,
13518 const dynamic_prop &)): New.
13519 (operator==(const range_bounds &, const range_bounds &)): New.
13520 (check_types_equal): Use them instead of memcmp.
13521 * gdbtypes.h (operator==(const dynamic_prop &,
13522 const dynamic_prop &)): Declare.
13523 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13524 (operator==(const range_bounds &, const range_bounds &)): Declare.
13525 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13526
13527 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13528
13529 * s390-linux-tdep.c (s390_record_address_mask)
13530 (s390_record_calc_disp_common, s390_record_calc_disp)
13531 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13532 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13533 (s390_process_record): Move to s390-tdep.c.
13534 (s390_linux_init_abi_any): Adjust.
13535 * s390-tdep.c (s390_record_address_mask)
13536 (s390_record_calc_disp_common, s390_record_calc_disp)
13537 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13538 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13539 (s390_process_record): Moved from s390-linux-tdep.c
13540 (s390_gdbarch_init): Adjust.
13541
13542 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13543
13544 * s390-linux-nat.c (s390-tdep.h): New include.
13545 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13546 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13547 (ALLDEPFILES): Add s390-tdep.c.
13548 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13549 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13550 * s390-tdep.h: ...this. New file.
13551 * s390-linux-tdep.c (s390-tdep.h): New include.
13552 (_initialize_s390_tdep): Rename to...
13553 (_initialize_s390_linux_tdep): ...this and adjust.
13554 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13555 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13556 s390-tdep.h.
13557 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13558 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13559 (s390_is_partial_instruction, s390_software_single_step)
13560 (is_non_branch_ril, s390_displaced_step_copy_insn)
13561 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13562 (s390_prologue_data, s390_addr, s390_store, s390_load)
13563 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13564 (s390_register_call_saved, s390_guess_tracepoint_registers)
13565 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13566 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13567 (s390_pseudo_register_name, s390_pseudo_register_type)
13568 (s390_pseudo_register_read, s390_pseudo_register_write)
13569 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13570 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13571 (s390_addr_bits_remove, s390_address_class_type_flags)
13572 (s390_address_class_type_flags_to_name)
13573 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13574 (s390_function_arg_float, s390_function_arg_vector)
13575 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13576 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13577 (s390_frame_align, s390_register_return_value, s390_return_value)
13578 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13579 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13580 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13581 (s390_trad_frame_prev_register, s390_unwind_cache)
13582 (s390_prologue_frame_unwind_cache)
13583 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13584 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13585 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13586 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13587 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13588 (s390_frame_base_address, s390_local_base_address)
13589 (s390_frame_base, s390_gcc_target_options)
13590 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13591 (s390_validate_reg_range, s390_tdesc_valid)
13592 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13593 * s390-tdep.c: ...this. New file.
13594
13595 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13596
13597 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13598 (s390_process_record, s390_gdbarch_tdep_alloc)
13599 (s390_linux_init_abi_any): Use/set new hook.
13600
13601 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13602
13603 * s390-linux-tdep.c (osabi.h): New include.
13604 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13605 (s390_linux_init_abi_any): New functions.
13606 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13607
13608 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13609
13610 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13611 tdesc_has_registers check
13612
13613 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13614
13615 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13616 (s390_validate_reg_range): New macro.
13617 (s390_gdbarch_init): Adjust.
13618
13619 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13620
13621 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13622 (s390_gdbarch_tdep_alloc): Adjust.
13623 (s390_gdbarch_init): Adjust.
13624
13625 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13626
13627 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13628 <have_tdb>: Change type to bool.
13629 (s390_gdbarch_tdep_alloc): Adjust.
13630 (s390_gdbarch_init): Adjust.
13631
13632 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13633
13634 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13635 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13636 (s390_gdbarch_tdep_alloc): New function.
13637 (s390_gdbarch_init): Allocate tdep at start and use its fields
13638 instead of separate variables.
13639
13640 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13641
13642 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13643 when looking for cached gdbarch and add comment for remaining.
13644
13645 2018-01-22 Pedro Alves <palves@redhat.com>
13646 Sergio Durigan Junior <sergiodj@redhat.com>
13647
13648 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13649 case.
13650
13651 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13652
13653 * MAINTAINERS: Update my company e-mail address.
13654
13655 2018-01-22 Yao Qi <yao.qi@linaro.org>
13656
13657 * regcache.c (cooked_write_test): New function.
13658 (_initialize_regcache): Register the test.
13659
13660 2018-01-22 Yao Qi <yao.qi@linaro.org>
13661
13662 * ia64-tdep.c (ia64_pseudo_register_read): Call
13663 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13664 * m32c-tdep.c (m32c_cat_read): Likewise.
13665 (m32c_r3r2r1r0_read): Likewise.
13666 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13667 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13668
13669 2018-01-22 Yao Qi <yao.qi@linaro.org>
13670
13671 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13672 method raw_read instead of regcache_raw_read.
13673 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13674 * arm-tdep.c (arm_neon_quad_read): Likewise.
13675 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13676 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13677 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13678 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13679 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13680 (i386_pseudo_register_read_into_value): Likewise.
13681 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13682 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13683 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13684 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13685 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13686 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13687 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13688 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13689 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13690
13691 2018-01-22 Yao Qi <yao.qi@linaro.org>
13692
13693 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13694 * configure.tgt: Remove target mt.
13695 * mt-tdep.c: Remove.
13696 * regcache.c (cooked_read_test): Remove the check for mt.
13697
13698 2018-01-22 Yao Qi <yao.qi@linaro.org>
13699
13700 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13701 instead of gdbarch_pseudo_register_read_value.
13702
13703 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13704
13705 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13706 language is Ada.
13707
13708 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13709
13710 * linespec.c (create_sals_line_offset): Remove code that preserved
13711 the symtab_and_line's line number.
13712
13713 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13714
13715 * varobj.c (varobj_create): Don't set valid_block when creating a
13716 floating varobj.
13717
13718 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13719
13720 * varobj.c (varobj_create): Remove out of date comment.
13721
13722 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13723
13724 PR mi/20395
13725 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13726 updating innermost block.
13727 * parse.c (innermost_block_tracker::update): Take extra type
13728 parameter, and check types match before updating innermost block.
13729 (write_dollar_variable): Update innermost block for registers.
13730 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13731 (innermost_block_tracker::innermost_block_tracker): Initialise
13732 m_types member.
13733 (innermost_block_tracker::reset): Take type parameter.
13734 (innermost_block_tracker::update): Take type parameter, and pass
13735 type through as needed.
13736 (innermost_block_tracker::m_types): New member.
13737 * varobj.c (varobj_create): Pass type when reseting innermost
13738 block.
13739
13740 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13741
13742 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13743 * ada-lang.c (resolve_subexp): Likewise.
13744 * breakpoint.c (set_breakpoint_condition) Likewise.
13745 (watch_command_1) Likewise.
13746 * c-exp.y (variable): Likewise.
13747 * d-exp.y (PrimaryExpression): Likewise.
13748 * f-exp.y (variable): Likewise.
13749 * go-exp.y (variable): Likewise.
13750 * m2-exp.y (variable): Likewise.
13751 * objfiles.c (objfile::~objfile): Likewise.
13752 * p-exp.y (variable): Likewise.
13753 * parse.c (innermost_block): Change type.
13754 * parser-defs.h (class innermost_block_tracker): New.
13755 (innermost_block): Change to innermost_block_tracker.
13756 * printcmd.c (display_command): Switch to innermost_block API.
13757 (do_one_display): Likewise.
13758 * rust-exp.y (do_one_display): Likewise.
13759 * symfile.c (clear_symtab_users): Likewise.
13760 * varobj.c (varobj_create): Switch to innermost_block API, replace
13761 use of innermost_block with block stored on varobj object.
13762
13763 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13764
13765 * expression.h (innermost_block): Remove declaration.
13766 * varobj.c: Add 'parser-defs.h' include.
13767
13768 2018-01-19 Tom Tromey <tom@tromey.com>
13769
13770 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13771 symbols in the static and global blocks.
13772
13773 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13774
13775 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13776 gdb_ptrace.h, and move including gdb_wait.h ...
13777 * nat/linux-ptrace.h: ... to here.
13778
13779 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13780
13781 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13782 inf_ptrace_detach_success.
13783 (inf_ptrace_detach_success): Add inferior parameter, use it
13784 instead of inferior_ptid, pass it to detach_inferior.
13785 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13786 parameter.
13787 * inferior.c (detach_inferior): Add overload that takes an
13788 inferior object.
13789 * inferior.h (detach_inferior): Likewise.
13790 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13791 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13792 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13793
13794 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13795
13796 * target.h (struct target_ops) <to_detach>: Add inferior
13797 parameter.
13798 (target_detach): Likewise.
13799 * target.c (dispose_inferior): Pass inferior down.
13800 (target_detach): Pass inferior down. Assert that it is equal to
13801 the current inferior.
13802 * aix-thread.c (aix_thread_detach): Pass inferior down.
13803 * corefile.c (core_file_command): Pass current_inferior() down.
13804 * corelow.c (core_detach): Add inferior parameter.
13805 * darwin-nat.c (darwin_detach): Likewise.
13806 * gnu-nat.c (gnu_detach): Likewise.
13807 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13808 * infcmd.c (detach_command): Pass current_inferior() down to
13809 target_detach.
13810 * infrun.c (follow_fork_inferior): Pass parent_inf to
13811 target_detach.
13812 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13813 target_detach.
13814 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13815 * linux-thread-db.c (thread_db_detach): Likewise.
13816 * nto-procfs.c (procfs_detach): Likewise.
13817 * procfs.c (procfs_detach): Likewise.
13818 * record.c (record_detach): Likewise.
13819 * record.h (struct inferior): Forward-declare.
13820 (record_detach): Add inferior parameter.
13821 * remote-sim.c (gdbsim_detach): Likewise.
13822 * remote.c (remote_detach_1): Likewise.
13823 (remote_detach): Likewise.
13824 (extended_remote_detach): Likewise.
13825 * sol-thread.c (sol_thread_detach): Likewise.
13826 * target-debug.h (target_debug_print_inferior_p): New macro.
13827 * target-delegates.c: Re-generate.
13828 * top.c (kill_or_detach): Pass inferior down to target_detach.
13829 * windows-nat.c (windows_detach): Add inferior parameter.
13830
13831 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13832
13833 * target.h (struct target_ops) <to_detach>: Remove args
13834 parameter.
13835 (target_detach): Likewise.
13836 * target.c (dispose_inferior): Adjust.
13837 (target_detach): Remove args parameter, adjust.
13838 * aix-thread.c (aix_thread_detach): Adjust.
13839 * corefile.c (core_file_command): Adjust.
13840 * corelow.c (core_detach): Adjust.
13841 * darwin-nat.c (darwin_detach): Adjust.
13842 * gnu-nat.c (gnu_detach): Adjust.
13843 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13844 * infcmd.c (detach_command): Adjust
13845 * infrun.c (follow_fork_inferior): Adjust.
13846 (handle_vfork_child_exec_or_exit): Adjust.
13847 * linux-fork.c (linux_fork_detach): Remove args parameter.
13848 * linux-fork.h (linux_fork_detach): Likewise.
13849 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13850 * linux-thread-db.c (thread_db_detach): Likewise.
13851 * nto-procfs.c (procfs_detach): Likewise.
13852 * procfs.c (procfs_detach): Likewise.
13853 (do_detach): Remove signo parameter.
13854 * record.c (record_detach): Remove args parameter.
13855 * record.h (record_detach): Likewise.
13856 * remote-sim.c (gdbsim_detach): Likewise.
13857 * remote.c (remote_detach_1): Likewise.
13858 (remote_detach): Likewise.
13859 (extended_remote_detach): Likewise.
13860 * sol-thread.c (sol_thread_detach): Likewise.
13861 * target-delegates.c: Re-generate.
13862 * top.c (struct qt_args) <args>: Remove field.
13863 (kill_or_detach): Don't pass args.
13864 (quit_force): Don't set args.
13865 * windows-nat.c (windows_detach): Remove args parameter.
13866
13867 2018-01-19 Yao Qi <yao.qi@linaro.org>
13868
13869 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13870 (arm_linux_init_abi): Install it.
13871
13872 2018-01-19 Yao Qi <yao.qi@linaro.org>
13873
13874 * osabi.c (gdb_osabi_names): Extend the regexp for
13875 arm-linux-gnueabihf.
13876
13877 2018-01-18 Yao Qi <yao.qi@linaro.org>
13878
13879 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13880 m_abbrevs.
13881 (abbrev_table::add_abbrev): Update.
13882 (abbrev_table::lookup_abbrev): Update.
13883
13884 2018-01-18 Yao Qi <yao.qi@linaro.org>
13885
13886 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13887
13888 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13889
13890 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13891 to "std::string".
13892
13893 2018-01-17 Tom Tromey <tom@tromey.com>
13894
13895 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13896
13897 2018-01-17 Tom Tromey <tom@tromey.com>
13898
13899 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13900 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13901 (create_array_type_with_stride): Update.
13902 * dwarf2read.c (set_die_type): Update.
13903
13904 2018-01-17 Tom Tromey <tom@tromey.com>
13905
13906 * dwarf2read.c (delayed_method_info): Remove typedef.
13907 (dwarf2_cu::method_info): Now a std::vector.
13908 (add_to_method_list): Update.
13909 (free_delayed_list): Remove.
13910 (compute_delayed_physnames): Update.
13911 (process_full_comp_unit, process_full_type_unit): Clear the method
13912 list. Remove cleanups.
13913 (psymtab_include_file_name): Add name_holder parameter. Use
13914 unique_xmalloc_ptr.
13915 (dwarf_decode_lines): Update.
13916
13917 2018-01-17 Tom Tromey <tom@tromey.com>
13918 Simon Marchi <simon.marchi@ericsson.com>
13919
13920 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13921 (dwarf2_per_objfile::free_cached_comp_units)
13922 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13923 (init_cutu_and_read_dies_no_follow): Update.
13924 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13925 (dwarf2_cu::~dwarf2_cu): New.
13926 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13927 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13928
13929 2018-01-17 Tom Tromey <tom@tromey.com>
13930 Simon Marchi <simon.marchi@ericsson.com>
13931
13932 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13933 (struct die_reader_specs) <abbrev_table>: New member.
13934 (struct abbrev_table): Add constructor.
13935 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13936 <abbrev_obstack>: Now an auto_obstack.
13937 (abbrev_table_up): New typedef.
13938 (init_cu_die_reader): Add abbrev_table parameter.
13939 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13940 Add result_dwo_abbrev_table.
13941 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13942 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13943 Update.
13944 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13945 parameter.
13946 (skip_children): Update.
13947 (abbrev_table::alloc_abbrev): Rename from
13948 abbrev_table_alloc_abbrev.
13949 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13950 (abbrev_table::lookup_abbrev): Rename from
13951 abbrev_table_lookup_abbrev.
13952 (abbrev_table_read_table): Return abbrev_table_up.
13953 (abbrev_table_free, abbrev_table_free_cleanup)
13954 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13955 (load_partial_dies): Update.
13956
13957 2018-01-17 Tom Tromey <tom@tromey.com>
13958
13959 * dwarf2read.c (dwarf2_compute_name): Update comment.
13960 (read_func_scope, read_variable): Update.
13961 (new_symbol): Remove.
13962 (new_symbol_full): Rename to new_symbol.
13963
13964 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13965
13966 PR gdb/16577
13967 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13968 a warning instead of throwing an error, set section size to 0 and return
13969 NULL.
13970 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13971
13972 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13973
13974 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13975 std::string.
13976 (linux_ptrace_attach_fail_reason_string): Likewise.
13977 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13978 Likewise.
13979 (linux_ptrace_attach_fail_reason_string): Likewise.
13980 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13981
13982 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13983
13984 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13985
13986 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13987
13988 PR gdb/21559
13989 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13990 checking for fs_base/gs_base fields in struct user_regs_struct.
13991 * configure: Regenerate.
13992
13993 2018-01-17 Yao Qi <yao.qi@linaro.org>
13994
13995 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13996 function.
13997 (aarch64_linux_init_abi): Install it to gdbarch hook
13998 gcc_target_options.
13999
14000 2018-01-15 Pedro Alves <palves@redhat.com>
14001
14002 * common/signals-state-save-restore.c
14003 (save_original_signals_state): Fix typos.
14004
14005 2017-01-12 Tom Tromey <tom@tromey.com>
14006 Sergio Durigan Junior <sergiodj@redhat.com>
14007
14008 * Makefile.in (install-only): Install gdb-add-index.
14009
14010 2018-01-12 John Baldwin <jhb@FreeBSD.org>
14011
14012 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14013
14014 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
14015
14016 * infrun.c (keep_going_pass_signal): Clear step-over info when
14017 insert_breakpoints fails.
14018
14019 2018-01-11 Pedro Alves <palves@redhat.com>
14020
14021 PR gdb/22583
14022 * infrun.c (resume): Rename to ...
14023 (resume_1): ... this.
14024 (resume): Reimplement as wrapper around resume_1.
14025
14026 2018-01-11 Pedro Alves <palves@redhat.com>
14027
14028 PR remote/22597
14029 * remote.c (remote_parse_stop_reply): Default to the last-set
14030 general thread instead of to 'magic_null_ptid'.
14031
14032 2018-01-10 Pedro Alves <palves@redhat.com>
14033
14034 * language.h (language_get_symbol_name_matcher): Rename ...
14035 (get_symbol_name_matcher): ... this.
14036 * language.c (language_get_symbol_name_matcher): Ditto.
14037 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14038 callers adjusted.
14039
14040 2018-01-10 Pedro Alves <palves@redhat.com>
14041
14042 PR gdb/22670
14043 * dwarf2read.c
14044 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14045 Adjust to use language_get_symbol_name_matcher instead of
14046 language_defn::la_get_symbol_name_matcher.
14047 * language.c (language_get_symbol_name_matcher): If in Ada mode
14048 and the lookup name is a verbatim match, return Ada's matcher.
14049 * language.h (language_get_symbol_name_matcher): Adjust comment.
14050 (ada_lookup_name_info::verbatim_p):: New method.
14051
14052 2018-01-10 Pedro Alves <palves@redhat.com>
14053
14054 PR gdb/22670
14055 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14056 minsym's language is language_auto or language_cplus, pass down
14057 language_ada instead.
14058 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14059
14060 2018-01-10 Pedro Alves <palves@redhat.com>
14061
14062 PR gdb/22670
14063 * minsyms.c (linkage_name_str): New function.
14064 (iterate_over_minimal_symbols): Use it.
14065
14066 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14067
14068 * NEWS: Document that 'info proc' now works on FreeBSD.
14069
14070 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14071
14072 * configure.ac: Check for kinfo_getfile in libutil.
14073 * configure: Regenerate.
14074 * config.in: Regenerate.
14075 * fbsd-nat.c: Include "fbsd-tdep.h".
14076 (fbsd_fetch_cmdline): New.
14077 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14078 rather than calling error.
14079 (fbsd_info_proc): New.
14080 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14081 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14082 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14083
14084 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14085
14086 * fbsd-nat.c (struct free_deleter): Remove.
14087 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14088
14089 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14090
14091 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14092 NULL for an empty pathname.
14093
14094 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14095
14096 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14097 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14098 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14099 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14100 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14101 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14102 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14103 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14104 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14105 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14106 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14107 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14108 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14109 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14110 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14111
14112 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14113
14114 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14115 (gnu_xfer_auxv): New function.
14116 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14117 TARGET_OBJECT_AUXV.
14118
14119 2018-01-08 Yao Qi <yao.qi@linaro.org>
14120 Simon Marchi <simon.marchi@ericsson.com>
14121
14122 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14123 common/selftest.c.
14124 (COMMON_OBS): Remove selftest.o.
14125 * configure.ac: Append selftest-arch.c and common/selftest.c to
14126 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14127 * configure: Re-generated.
14128 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14129 GDB_SELF_TEST.
14130 (maintenance_info_selftests): Likewise.
14131
14132 2018-01-08 Xavier Roirand <roirand@adacore.com>
14133
14134 * ada-valprint.c (val_print_packed_array_elements): Use
14135 proper number of elements when printing an array indexed
14136 by an enumeration type.
14137
14138 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14139
14140 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14141 (dw2_get_file_names_reader): Adjust.
14142 (lookup_dwo_signatured_type): Adjust.
14143 (lookup_dwp_signatured_type): Adjust.
14144 (lookup_signatured_type): Adjust.
14145 (create_type_unit_group): Adjust.
14146 (get_type_unit_group): Adjust.
14147 (process_psymtab_comp_unit_reader): Adjust.
14148 (build_type_psymtabs_reader): Adjust.
14149 (scan_partial_symbols): Adjust.
14150 (add_partial_symbol): Adjust.
14151 (add_partial_subprogram): Adjust.
14152 (peek_die_abbrev): Adjust.
14153 (fixup_go_packaging): Adjust.
14154 (process_imported_unit_die): Adjust.
14155 (dwarf2_compute_name): Adjust.
14156 (dwarf2_physname): Adjust.
14157 (read_import_statement): Adjust.
14158 (handle_DW_AT_stmt_list): Adjust.
14159 (read_file_scope): Adjust.
14160 (read_func_scope): Adjust.
14161 (read_lexical_block_scope): Adjust.
14162 (read_call_site_scope): Adjust.
14163 (read_variable): Adjust.
14164 (dwarf2_rnglists_process): Adjust.
14165 (dwarf2_ranges_process): Adjust.
14166 (dwarf2_ranges_read): Adjust.
14167 (dwarf2_get_pc_bounds): Adjust.
14168 (dwarf2_record_block_ranges): Adjust.
14169 (dwarf2_add_field): Adjust.
14170 (dwarf2_add_member_fn): Adjust.
14171 (read_structure_type): Adjust.
14172 (process_structure_scope): Adjust.
14173 (read_enumeration_type): Adjust.
14174 (read_array_type): Adjust.
14175 (mark_common_block_symbol_computed): Adjust.
14176 (read_common_block): Adjust.
14177 (read_namespace_type): Adjust.
14178 (read_namespace): Adjust.
14179 (read_module_type): Adjust.
14180 (read_tag_pointer_type): Adjust.
14181 (read_tag_ptr_to_member_type): Adjust.
14182 (read_tag_string_type): Adjust.
14183 (read_subroutine_type): Adjust.
14184 (read_typedef): Adjust.
14185 (read_base_type): Adjust.
14186 (attr_to_dynamic_prop): Adjust.
14187 (read_subrange_type): Adjust.
14188 (read_unspecified_type): Adjust.
14189 (dwarf2_read_abbrevs): Adjust.
14190 (load_partial_dies): Adjust.
14191 (read_partial_die): Adjust.
14192 (find_partial_die): Adjust.
14193 (guess_partial_die_structure_name): Adjust.
14194 (fixup_partial_die): Adjust.
14195 (read_attribute_value): Adjust.
14196 (read_addr_index): Adjust.
14197 (read_addr_index_from_leb128): Adjust.
14198 (read_str_index): Adjust.
14199 (dwarf2_string_attr): Adjust.
14200 (get_debug_line_section): Adjust.
14201 (dwarf_decode_line_header): Adjust.
14202 (lnp_state_machine::check_line_address): Adjust.
14203 (dwarf_decode_lines_1): Adjust.
14204 (dwarf_decode_lines): Adjust.
14205 (dwarf2_start_symtab): Adjust.
14206 (var_decode_location): Adjust.
14207 (new_symbol_full): Adjust.
14208 (dwarf2_const_value_data): Adjust.
14209 (dwarf2_const_value_attr): Adjust.
14210 (dwarf2_const_value): Adjust.
14211 (die_type): Adjust.
14212 (die_containing_type): Adjust.
14213 (build_error_marker_type): Adjust.
14214 (lookup_die_type): Adjust.
14215 (guess_full_die_structure_name): Adjust.
14216 (anonymous_struct_prefix): Adjust.
14217 (determine_prefix): Adjust.
14218 (dwarf2_name): Adjust.
14219 (follow_die_ref_or_sig): Adjust.
14220 (follow_die_offset): Adjust.
14221 (follow_die_ref): Adjust.
14222 (follow_die_sig_1): Adjust.
14223 (follow_die_sig): Adjust.
14224 (get_signatured_type): Adjust.
14225 (get_DW_AT_signature_type): Adjust.
14226 (decode_locdesc): Adjust.
14227 (dwarf_decode_macros): Adjust.
14228 (cu_debug_loc_section): Adjust.
14229 (fill_in_loclist_baton): Adjust.
14230 (dwarf2_symbol_mark_computed): Adjust.
14231 (init_one_comp_unit): Don't assign
14232 dwarf2_cu::dwarf2_per_objfile.
14233 (set_die_type): Adjust.
14234
14235 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14236
14237 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14238 <dwarf2_per_objfile>: New field.
14239 (dwarf2_per_objfile): Remove global.
14240 (get_dwarf2_per_objfile): New function.
14241 (set_dwarf2_per_objfile): New function.
14242 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14243 dwarf2_per_objfile.
14244 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14245 (read_abbrev_offset): Likewise.
14246 (read_indirect_string): Likewise.
14247 (read_indirect_line_string): Likewise.
14248 (read_indirect_string_at_offset): Likewise.
14249 (read_indirect_string_from_dwz): Likewise.
14250 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14251 dwarf2_per_objfile.
14252 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14253 (create_all_comp_units): Change objfile parameter to
14254 dwarf2_per_objfile.
14255 (create_all_type_units): Likewise.
14256 (process_queue): Add dwarf2_per_objfile parameter.
14257 (read_and_check_comp_unit_head): Likewise.
14258 (lookup_dwo_unit_in_dwp): Likewise.
14259 (get_dwp_file): Likewise.
14260 (process_cu_includes): Likewise.
14261 (struct free_dwo_file_cleanup_data): New struct.
14262 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14263 set_dwarf2_per_objfile.
14264 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14265 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14266 context, adjust calls.
14267 (dw2_instantiate_symtab): Likewise.
14268 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14269 (dw2_get_cu): Likewise.
14270 (create_cu_from_index_list): Change objfile parameter to
14271 dwarf2_per_objfile.
14272 (create_cus_from_index_list): Get dwarf2_per_objfile from
14273 context, adjust calls.
14274 (create_cus_from_index): Likewise.
14275 (create_signatured_type_table_from_index): Change objfile
14276 parameter to dwarf2_per_objfile.
14277 (create_signatured_type_table_from_debug_names): Change objfile
14278 parameter to dwarf2_per_objfile.
14279 (create_addrmap_from_index): Likewise.
14280 (create_addrmap_from_aranges): Likewise.
14281 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14282 (dw2_setup): Remove.
14283 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14284 context.
14285 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14286 get_dwarf2_per_objfile.
14287 (dw2_forget_cached_source_info): Likewise.
14288 (dw2_map_symtabs_matching_filename): Likewise.
14289 (struct dw2_symtab_iterator) <index>: Remove.
14290 <dwarf2_per_objfile>: New field.
14291 (dw2_symtab_iter_init): Replace index parameter with
14292 dwarf2_per_objfile.
14293 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14294 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14295 (dw2_print_stats): Likewise.
14296 (dw2_dump): Likewise.
14297 (dw2_expand_symtabs_for_function): Likewise.
14298 (dw2_expand_all_symtabs): Likewise.
14299 (dw2_expand_symtabs_with_fullname): Likewise.
14300 (dw2_expand_marked_cus): Replace index and objfile parameters
14301 with dwarf2_per_objfile.
14302 (dw_expand_symtabs_matching_file_matcher): Add
14303 dwarf2_per_objfile parameter and adjust calls.
14304 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14305 adjust calls.
14306 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14307 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14308 adjust calls.
14309 (create_cus_from_debug_names_list): Replace objfile parameter
14310 with dwarf2_per_objfile and adjust calls.
14311 (create_cus_from_debug_names): Likewise.
14312 (dwarf2_read_debug_names): Likewise.
14313 (mapped_debug_names::namei_to_name): Adjust call.
14314 (dw2_debug_names_iterator::next): Likewise.
14315 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14316 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14317 (dw2_debug_names_dump): Likewise.
14318 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14319 (dw2_debug_names_expand_symtabs_matching): Likewise.
14320 (dwarf2_initialize_objfile): Likewise.
14321 (dwarf2_build_psymtabs): Likewise.
14322 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14323 this_cu.
14324 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14325 (read_and_check_comp_unit_head): Likewise.
14326 (read_abbrev_offset): Likewise.
14327 (create_debug_type_hash_table): Likewise.
14328 (create_debug_types_hash_table): Likewise.
14329 (create_all_type_units): Replace objfile parameter with
14330 dwarf2_per_objfile.
14331 (add_type_unit): Add dwarf2_per_objfile parameter.
14332 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14333 with dwarf2_per_objfile.
14334 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14335 (lookup_dwp_signatured_type): Likewise.
14336 (lookup_signatured_type): Likewise.
14337 (read_cutu_die_from_dwo): Likewise.
14338 (init_tu_and_read_dwo_dies): Likewise.
14339 (init_cutu_and_read_dies): Likewise.
14340 (init_cutu_and_read_dies_no_follow): Likewise.
14341 (allocate_type_unit_groups_table): Add objfile parameter.
14342 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14343 (get_type_unit_group): Likewise.
14344 (process_psymtab_comp_unit): Update call.
14345 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14346 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14347 (print_tu_stats): Likewise.
14348 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14349 in void* parameter.
14350 (build_type_psymtabs): Change objfile parameter to
14351 dwarf2_per_objfile.
14352 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14353 passed in void* parameter.
14354 (process_skeletonless_type_units): Change objfile parameter to
14355 dwarf2_per_objfile.
14356 (set_partial_user): Likewise.
14357 (dwarf2_build_psymtabs_hard): Likewise.
14358 (read_comp_units_from_section): Likewise.
14359 (create_all_comp_units): Likewise.
14360 (scan_partial_symbols): Update calls.
14361 (add_partial_symbol): Likewise.
14362 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14363 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14364 (process_queue): Add dwarf2_per_objfile parameter.
14365 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14366 (compute_compunit_symtab_includes): Likewise.
14367 (process_cu_includes): Add dwarf2_per_objfile parameter.
14368 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14369 (process_full_type_unit): Likewise.
14370 (process_imported_unit_die): Update call.
14371 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14372 (read_file_scope): Likewise.
14373 (allocate_dwo_file_hash_table): Add objfile parameter.
14374 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14375 (create_cus_hash_table): Likewise.
14376 (create_dwp_hash_table): Likewise.
14377 (create_dwo_unit_in_dwp_v1): Likewise.
14378 (create_dwp_v2_section): Likewise.
14379 (create_dwo_unit_in_dwp_v2): Likewise.
14380 (lookup_dwo_unit_in_dwp): Likewise.
14381 (try_open_dwop_file): Likewise.
14382 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14383 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14384 cleanup to include a reference to dwarf2_per_objfile.
14385 (open_dwp_file): Add dwarf2_per_objfile parameter.
14386 (open_and_init_dwp_file): Likewise.
14387 (get_dwp_file): Likewise.
14388 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14389 (queue_and_load_all_dwo_tus): Update call.
14390 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14391 data.
14392 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14393 (dwarf2_ranges_process): Likewise.
14394 (dwarf2_get_pc_bounds): Likewise.
14395 (mark_common_block_symbol_computed): Likewise.
14396 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14397 (dwarf2_read_abbrevs): Update call.
14398 (read_partial_die): Use dwarf2_per_objfile from cu.
14399 (find_partial_die): Likewise.
14400 (fixup_partial_die): Likewise.
14401 (read_attribute_value): Likewise.
14402 (read_indirect_string_at_offset_from): Add objfile parameter.
14403 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14404 parameter.
14405 (read_indirect_string_from_dwz): Add objfile parameter.
14406 (read_indirect_string): Add objfile parameter.
14407 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14408 (read_addr_index): Use dwarf2_per_objfile from cu.
14409 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14410 call dw2_setup.
14411 (read_str_index): Use dwarf2_per_objfile from cu.
14412 (get_debug_line_section): Likewise.
14413 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14414 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14415 (new_symbol_full): Use dwarf2_per_objfile from cu.
14416 (build_error_marker_type): Likewise.
14417 (lookup_die_type): Likewise.
14418 (determine_prefix): Likewise.
14419 (follow_die_offset): Likewise.
14420 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14421 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14422 (dwarf2_fetch_die_type_sect_off): Likewise.
14423 (dwarf2_get_die_type): Likewise.
14424 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14425 (get_signatured_type): Likewise.
14426 (get_DW_AT_signature_type): Likewise.
14427 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14428 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14429 (cu_debug_loc_section): Likewise.
14430 (fill_in_loclist_baton): Likewise.
14431 (dwarf2_symbol_mark_computed): Likewise.
14432 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14433 dwarf2_per_objfile.
14434 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14435 parameter.
14436 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14437 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14438 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14439 (set_die_type): Use dwarf2_free_objfile from cu.
14440 (get_die_type_at_offset): Likewise.
14441 (dwarf2_per_objfile_free): Don't assign global variable.
14442 (debug_names) <constructor>: Add dwarf2_per_objfile
14443 parameter, update m_debugstrlookup construction.
14444 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14445 parameter.
14446 <m_dwarf2_per_objfile>: New field.
14447 <lookup>: Use m_dwarf2_per_objfile.
14448 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14449 (psyms_seen_size): Likewise.
14450 (write_gdbindex): Replace objfile parameter with
14451 dwarf2_per_objfile.
14452 (write_debug_names): Likewise.
14453 (write_psymtabs_to_index): Likewise.
14454 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14455 calls.
14456
14457 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14458
14459 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14460 <dwarf2_per_objfile>: New field.
14461 (struct dwarf2_per_cu_data) <objfile>: Remove.
14462 <dwarf2_per_objfile>: New field.
14463 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14464 of objfile.
14465 (create_signatured_type_table_from_index): Likewise.
14466 (create_debug_type_hash_table): Likewise.
14467 (fill_in_sig_entry_from_dwo_entry): Likewise.
14468 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14469 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14470 objfile.
14471 (create_partial_symtab): Access objfile through
14472 dwarf2_per_objfile.
14473 (process_psymtab_comp_unit_reader): Likewise.
14474 (read_comp_units_from_section): Likewise.
14475 (scan_partial_symbols): Likewise.
14476 (add_partial_symbol): Likewise.
14477 (add_partial_subprogram): Likewise.
14478 (peek_die_abbrev): Likewise.
14479 (fixup_go_packaging): Likewise.
14480 (process_full_comp_unit): Likewise.
14481 (process_full_type_unit): Likewise.
14482 (process_imported_unit_die): Likewise.
14483 (dwarf2_compute_name): Likewise.
14484 (dwarf2_physname): Likewise.
14485 (read_import_statement): Likewise.
14486 (create_cus_hash_table): Assign dwarf2_physname instead of
14487 objfile.
14488 (read_func_scope): Access objfile through dwarf2_per_objfile.
14489 (read_lexical_block_scope): Likewise.
14490 (read_call_site_scope): Likewise.
14491 (read_variable): Likewise.
14492 (dwarf2_rnglists_process): Likewise.
14493 (dwarf2_ranges_process): Likewise.
14494 (dwarf2_ranges_read): Likewise.
14495 (dwarf2_record_block_ranges): Likewise.
14496 (dwarf2_add_field): Likewise.
14497 (dwarf2_add_member_fn): Likewise.
14498 (read_structure_type): Likewise.
14499 (process_structure_scope): Likewise.
14500 (read_enumeration_type): Likewise.
14501 (read_array_type): Likewise.
14502 (read_common_block): Likewise.
14503 (read_namespace_type): Likewise.
14504 (read_namespace): Likewise.
14505 (read_module_type): Likewise.
14506 (read_tag_pointer_type): Likewise.
14507 (read_tag_ptr_to_member_type): Likewise.
14508 (read_tag_string_type): Likewise.
14509 (read_subroutine_type): Likewise.
14510 (read_typedef): Likewise.
14511 (read_base_type): Likewise.
14512 (attr_to_dynamic_prop): Likewise.
14513 (read_subrange_type): Likewise.
14514 (read_unspecified_type): Likewise.
14515 (load_partial_dies): Likewise.
14516 (read_partial_die): Likewise.
14517 (find_partial_die): Likewise.
14518 (guess_partial_die_structure_name): Likewise.
14519 (fixup_partial_die): Likewise.
14520 (read_attribute_value): Likewise.
14521 (read_addr_index_from_leb128): Likewise.
14522 (dwarf2_read_addr_index): Likewise.
14523 (dwarf2_string_attr): Likewise.
14524 (lnp_state_machine::check_line_address): Likewise.
14525 (dwarf_decode_lines_1): Likewise.
14526 (dwarf_decode_lines): Likewise.
14527 (dwarf2_start_symtab): Likewise.
14528 (var_decode_location): Likewise.
14529 (new_symbol_full): Likewise.
14530 (dwarf2_const_value_data): Likewise.
14531 (dwarf2_const_value_attr): Likewise.
14532 (dwarf2_const_value): Likewise.
14533 (die_type): Likewise.
14534 (die_containing_type): Likewise.
14535 (lookup_die_type): Likewise.
14536 (guess_full_die_structure_name): Likewise.
14537 (anonymous_struct_prefix): Likewise.
14538 (dwarf2_name): Likewise.
14539 (follow_die_ref_or_sig): Likewise.
14540 (follow_die_offset): Likewise.
14541 (follow_die_ref): Likewise.
14542 (dwarf2_fetch_die_loc_sect_off): Likewise.
14543 (dwarf2_fetch_constant_bytes): Likewise.
14544 (dwarf2_fetch_die_type_sect_off): Likewise.
14545 (dwarf2_get_die_type): Likewise.
14546 (follow_die_sig): Likewise.
14547 (decode_locdesc): Likewise.
14548 (dwarf2_per_cu_objfile): Likewise.
14549 (dwarf2_per_cu_text_offset): Likewise.
14550 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14551 objfile.
14552 (set_die_type): Access objfile through
14553 dwarf2_per_objfile.
14554
14555 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14556
14557 * valprint.c (converted_character_d): Remove typedef.
14558 (DEF_VEC_O (converted_character_d)): Remove.
14559 (count_next_character): Use std::vector.
14560 (print_converted_chars_to_obstack): Likewise.
14561 (generic_printstr): Likewise.
14562
14563 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14564
14565 * xml-support.h (struct gdb_xml_value): Add constructor.
14566 <value>: Change type to unique_xmalloc_ptr.
14567 (gdb_xml_value_s): Remove typedef.
14568 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14569 (gdb_xml_element_start_handler): Change parameter type to
14570 std::vector.
14571 (xml_find_attribute): Likewise.
14572 * xml-support.c (xml_find_attribute): Change parameter type to
14573 std::vector and adjust.
14574 (gdb_xml_values_cleanup): Remove.
14575 (gdb_xml_parser::start_element): Adjust to std::vector.
14576 (xinclude_start_include): Change paraeter type to std::vector
14577 and adjust.
14578 * btrace.c (check_xml_btrace_version): Likewise.
14579 (parse_xml_btrace_block): Likewise.
14580 (parse_xml_btrace_pt_config_cpu): Likewise.
14581 (parse_xml_btrace_pt): Likewise.
14582 (parse_xml_btrace_conf_bts): Likewise.
14583 (parse_xml_btrace_conf_pt): Likewise.
14584 * memory-map.c (memory_map_start_memory): Likewise.
14585 (memory_map_start_property): Likewise.
14586 * osdata.c (osdata_start_osdata): Likewise.
14587 (osdata_start_item): Likewise.
14588 (osdata_start_column): Likewise.
14589 * remote.c (start_thread): Likewise.
14590 * solib-aix.c (library_list_start_library): Likewise.
14591 (library_list_start_list): Likewise.
14592 * solib-svr4.c (library_list_start_library): Likewise.
14593 (svr4_library_list_start_list): Likewise.
14594 * solib-target.c (library_list_start_segment): Likewise.
14595 (library_list_start_section): Likewise.
14596 (library_list_start_library): Likewise.
14597 (library_list_start_list): Likewise.
14598 * tracepoint.c (traceframe_info_start_memory): Likewise.
14599 (traceframe_info_start_tvar): Likewise.
14600 * xml-syscall.c (syscall_start_syscall): Likewise.
14601 * xml-tdesc.c (tdesc_start_target): Likewise.
14602 (tdesc_start_feature): Likewise.
14603 (tdesc_start_reg): Likewise.
14604 (tdesc_start_union): Likewise.
14605 (tdesc_start_struct): Likewise.
14606 (tdesc_start_flags): Likewise.
14607 (tdesc_start_enum): Likewise.
14608 (tdesc_start_field): Likewise.
14609 (tdesc_start_enum_value): Likewise.
14610 (tdesc_start_vector): Likewise.
14611
14612 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14613
14614 * extension.h (struct xmethod_worker) <clone>: Remove.
14615 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14616 Remove.
14617 (python_xmethod_worker::clone): Remove.
14618 * valops.c (find_overload_match): Use std::move instead of
14619 clone.
14620
14621 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14622
14623 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14624 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14625 <free_xmethod_worker_data>: Remove.
14626 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14627 <get_xmethod_arg_types>: Remove.
14628 <get_xmethod_result_type>: Remove.
14629 <invoke_xmethod>: Remove.
14630 * extension.c (new_xmethod_worker): Remove.
14631 (clone_xmethod_worker): Remove.
14632 (get_matching_xmethod_workers): Return void, pass std::vector by
14633 pointer.
14634 (get_xmethod_arg_types): Rename to...
14635 (xmethod_worker::get_arg_types): ... this, and adjust.
14636 (get_xmethod_result_type): Rename to...
14637 (xmethod_worker::get_result_type): ... this, and adjust.
14638 (invoke_xmethod): Remove.
14639 (free_xmethod_worker): Remove.
14640 (free_xmethod_worker_vec): Remove.
14641 * extension.h (enum ext_lang_rc): Move here from
14642 extension-priv.h.
14643 (struct xmethod_worker): Add constructor and destructor.
14644 <data>: Remove.
14645 <value>: Remove.
14646 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14647 virtual pure methods.
14648 <get_arg_types, get_result_type>: New methods.
14649 (xmethod_worker_ptr): Remove typedef.
14650 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14651 (xmethod_worker_vec): Remove typedef.
14652 (xmethod_worker_up): New typedef.
14653 (invoke_xmethod): Remove.
14654 (clone_xmethod_worker): Remove.
14655 (free_xmethod_worker): Remove.
14656 (free_xmethod_worker_vec): Remove.
14657 (get_xmethod_arg_types): Remove.
14658 (get_xmethod_result_type): Remove.
14659 * valops.c (find_method_list): Use std::vector, don't use
14660 intermediate vector.
14661 (value_find_oload_method_list): Use std::vector.
14662 (find_overload_match): Use std::vector.
14663 (find_oload_champ): Use std::vector.
14664 * value.c (value_free): Use operator delete.
14665 (value_of_xmethod): Rename to...
14666 (value_from_xmethod): ... this. Don't assign
14667 xmethod_worker::value, take rvalue-reference.
14668 (result_type_of_xmethod): Adjust.
14669 (call_xmethod): Adjust.
14670 * value.h: Include extension.h.
14671 (struct xmethod_worker): Don't forward-declare.
14672 (value_of_xmethod): Rename to...
14673 (value_from_xmethod): ... this, take rvalue-reference.
14674 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14675 (struct python_xmethod_worker): ... this, add constructor and
14676 destructor.
14677 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14678 (gdbpy_free_xmethod_worker_data): Rename to...
14679 (python_xmethod_worker::~python_xmethod_worker): ... this and
14680 adjust.
14681 (gdbpy_clone_xmethod_worker_data): Rename to...
14682 (python_xmethod_worker::clone): ... this and adjust.
14683 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14684 temporary vector.
14685 (gdbpy_get_xmethod_arg_types): Rename to...
14686 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14687 (gdbpy_get_xmethod_result_type): Rename to...
14688 (python_xmethod_worker::do_get_result_type): ... this and
14689 adjust.
14690 (gdbpy_invoke_xmethod): Rename to...
14691 (python_xmethod_worker::invoke): ... this and adjust.
14692 (new_python_xmethod_worker): Rename to...
14693 (python_xmethod_worker::python_xmethod_worker): ... this and
14694 adjust.
14695 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14696 Remove.
14697 (gdbpy_free_xmethod_worker_data): Remove.
14698 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14699 (gdbpy_get_xmethod_arg_types): Remove.
14700 (gdbpy_get_xmethod_result_type): Remove.
14701 (gdbpy_invoke_xmethod): Remove.
14702 * python/python.c (python_extension_ops): Remove obsolete
14703 callbacks.
14704
14705 2018-01-05 Pedro Alves <palves@redhat.com>
14706
14707 PR gdb/18653
14708 * common/signals-state-save-restore.c
14709 (save_original_signals_state): New parameter 'quiet'. Warn if we
14710 find a custom handler preinstalled, instead of internal erroring.
14711 But only warn if !quiet.
14712 * common/signals-state-save-restore.h
14713 (save_original_signals_state): New parameter 'quiet'.
14714 * main.c (captured_main_1): Move save_original_signals_state call
14715 after option handling, and pass QUIET.
14716
14717 2018-01-05 Pedro Alves <palves@redhat.com>
14718
14719 * spu-tdep.c (spu_catch_start): Pass
14720 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14721
14722 2018-01-05 Pedro Alves <palves@redhat.com>
14723
14724 PR gdb/22670
14725 * ada-lang.c (literal_symbol_name_matcher): New function.
14726 (ada_get_symbol_name_matcher): Use it for
14727 symbol_name_match_type::SEARCH_NAME.
14728 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14729 it down instead of assuming symbol_name_match_type::FULL.
14730 * block.h (block_lookup_symbol): New parameter 'match_type'.
14731 * c-valprint.c (print_unpacked_pointer): Use
14732 lookup_symbol_search_name instead of lookup_symbol.
14733 * compile/compile-object-load.c (get_out_value_type): Pass down
14734 symbol_name_match_type::SEARCH_NAME.
14735 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14736 symbol_name_match_type::FULL.
14737 * cp-support.c (cp_get_symbol_name_matcher): Handle
14738 symbol_name_match_type::SEARCH_NAME.
14739 * infrun.c (insert_exception_resume_breakpoint): Use
14740 lookup_symbol_search_name.
14741 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14742 * psymtab.c (maintenance_check_psymtabs): Use
14743 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14744 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14745 SYMBOL_SEARCH_NAME.
14746 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14747 if symbol_name_match_type::SEARCH_NAME.
14748 (lookup_symbol_in_language): Pass down
14749 symbol_name_match_type::FULL.
14750 (lookup_symbol_search_name): New.
14751 (lookup_language_this): Pass down
14752 symbol_name_match_type::SEARCH_NAME.
14753 (lookup_symbol_aux, lookup_local_symbol): New parameter
14754 'match_type'. Pass it down.
14755 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14756 (lookup_symbol_search_name): New declaration.
14757 (lookup_symbol_in_block): New 'match_type' parameter.
14758
14759 2018-01-05 Pedro Alves <palves@redhat.com>
14760
14761 PR gdb/22670
14762 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14763 ada_lookup_symbol.
14764 (ada_lookup_symbol): Reimplement in terms of
14765 ada_lookup_symbol_list, bits factored out from
14766 ada_lookup_encoded_symbol.
14767
14768 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14769
14770 * ada-exp.y (write_object_renaming): When subscripting an array
14771 using a symbol as the index, pass the block in call to
14772 ada_lookup_encoded_symbol when looking that symbol up.
14773
14774 2018-01-05 Jerome Guitton <guitton@adacore.com>
14775
14776 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14777 TYPE_INDEX_TYPE.
14778
14779 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14780
14781 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14782 the case where VALUE_LVAL (val0) is not lval_memory.
14783
14784 2018-01-05 Xavier Roirand <roirand@adacore.com>
14785
14786 * ada-valprint.c (print_optional_low_bound): Handle
14787 character-indexed array printing like boolean-indexed array
14788 printing.
14789
14790 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14791
14792 * NEWS: Create a new section for the next release branch.
14793 Rename the section of the current branch, now that it has
14794 been cut.
14795
14796 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14797
14798 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14799 * version.in: Bump version to 8.1.50.DATE-git.
14800
14801 2018-01-03 Xavier Roirand <roirand@adacore.com>
14802
14803 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14804 Add field.
14805 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14806 Add field.
14807 (default_exception_support_info) <catch_handlers_sym>: Add field.
14808 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14809 (ada_exception_name_addr_1): Add "catch handlers" handling.
14810 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14811 Update all callers.
14812 (create_excep_cond_exprs) <ex>: Add parameter.
14813 (re_set_exception): Update create_excep_cond_exprs call.
14814 (print_it_exception, print_one_exception, print_mention_exception)
14815 (print_recreate_exception): Add "catch handler" handling.
14816 (allocate_location_catch_handlers, re_set_catch_handlers)
14817 (check_status_catch_handlers, print_it_catch_handlers)
14818 (print_one_catch_handlers, print_mention_catch_handlers)
14819 (print_recreate_catch_handlers): New function.
14820 (catch_handlers_breakpoint_ops): New variable.
14821 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14822 Add parameter. Add "catch handler" handling.
14823 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14824 Add "catch handler" handling.
14825 (ada_exception_catchpoint_cond_string): Add "catch handler"
14826 handling.
14827 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14828 call.
14829 (catch_ada_handlers_command): New function.
14830 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14831 operations structure.
14832 (_initialize_ada_language): Add "catch handlers" command entry.
14833 * NEWS: Document "catch handlers" feature.
14834
14835 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14836
14837 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14838 account when creating the array type of the slice.
14839 (ada_value_slice): Likewise.
14840
14841 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14842
14843 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14844 New enum value.
14845 (create_array_type_with_stride): Add byte_stride_prop parameter.
14846 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14847 New parameter. Update all callers in this file.
14848 (array_type_has_dynamic_stride): New function.
14849 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14850 of arrays with dynamic byte strides.
14851 * dwarf2read.c (read_array_type): Add support for dynamic
14852 DW_AT_byte_stride attributes.
14853
14854 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14855
14856 * dwarf2read.c (read_unspecified_type): Treat
14857 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14858
14859 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14860
14861 Update copyright year range in all GDB files.
14862
14863 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14864
14865 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14866 and gdb/testsuite/gdb.base/step-line.c.
14867
14868 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14869
14870 * copyright.py (main): Dump the contents of
14871 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14872 even if BY_HAND is empty.
14873
14874 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14875
14876 * top.c (print_gdb_version): Update Copyright year in version
14877 message.
14878
14879 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14880
14881 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14882
14883 For older changes see ChangeLog-2017.
14884 \f
14885 Local Variables:
14886 mode: change-log
14887 left-margin: 8
14888 fill-column: 74
14889 version-control: never
14890 coding: utf-8
14891 End:
This page took 0.377288 seconds and 4 git commands to generate.